aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-10 14:06:28 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-11 17:12:55 +0100
commitd92cbf51493f0aa15745d2f9545cba2372eecec3 (patch)
tree349a555a74c99b40c20fcc470c26b7f7c0029f8d /apps/settings/src
parent7484abb6c07f2296abc2040ecd747ddf1d65e98e (diff)
downloadnextcloud-server-d92cbf51493f0aa15745d2f9545cba2372eecec3.tar.gz
nextcloud-server-d92cbf51493f0aa15745d2f9545cba2372eecec3.zip
Typing corrections
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/settings/src')
-rw-r--r--apps/settings/src/mixins/UserRowMixin.js2
-rw-r--r--apps/settings/src/store/admin-security.js4
-rw-r--r--apps/settings/src/store/index.js4
-rw-r--r--apps/settings/src/store/oc.js2
-rw-r--r--apps/settings/src/store/users.js17
5 files changed, 15 insertions, 14 deletions
diff --git a/apps/settings/src/mixins/UserRowMixin.js b/apps/settings/src/mixins/UserRowMixin.js
index 603f7a87837..23c039357be 100644
--- a/apps/settings/src/mixins/UserRowMixin.js
+++ b/apps/settings/src/mixins/UserRowMixin.js
@@ -158,7 +158,7 @@ export default {
* Generate avatar url
*
* @param {string} user The user name
- * @param {int} size Size integer, default 32
+ * @param {number} size Size integer, default 32
* @return {string}
*/
generateAvatar(user, size = 32) {
diff --git a/apps/settings/src/store/admin-security.js b/apps/settings/src/store/admin-security.js
index b2806096989..c8e9dc5ad08 100644
--- a/apps/settings/src/store/admin-security.js
+++ b/apps/settings/src/store/admin-security.js
@@ -22,7 +22,7 @@
*/
import Vue from 'vue'
-import Vuex from 'vuex'
+import Vuex, { Store } from 'vuex'
Vue.use(Vuex)
@@ -44,7 +44,7 @@ const mutations = {
},
}
-export default new Vuex.Store({
+export default new Store({
strict: process.env.NODE_ENV !== 'production',
state,
mutations,
diff --git a/apps/settings/src/store/index.js b/apps/settings/src/store/index.js
index 9f4313413eb..e9e58513ca9 100644
--- a/apps/settings/src/store/index.js
+++ b/apps/settings/src/store/index.js
@@ -22,7 +22,7 @@
*/
import Vue from 'vue'
-import Vuex from 'vuex'
+import Vuex, { Store } from 'vuex'
import users from './users'
import apps from './apps'
import settings from './settings'
@@ -44,7 +44,7 @@ const mutations = {
},
}
-export default new Vuex.Store({
+export default new Store({
modules: {
users,
apps,
diff --git a/apps/settings/src/store/oc.js b/apps/settings/src/store/oc.js
index 35fbfcd34d1..7e34641deff 100644
--- a/apps/settings/src/store/oc.js
+++ b/apps/settings/src/store/oc.js
@@ -36,7 +36,7 @@ const actions = {
* @param {string} options.app Application name
* @param {boolean} options.key Config key
* @param {boolean} options.value Value to set
- * @returns{Promise}
+ * @return {Promise}
*/
setAppConfig(context, { app, key, value }) {
return api.requireAdmin().then((response) => {
diff --git a/apps/settings/src/store/users.js b/apps/settings/src/store/users.js
index 7bc04e25d9f..d898e647d32 100644
--- a/apps/settings/src/store/users.js
+++ b/apps/settings/src/store/users.js
@@ -207,8 +207,8 @@ const actions = {
*
* @param {object} context store context
* @param {object} options destructuring object
- * @param {int} options.offset List offset to request
- * @param {int} options.limit List number to return from offset
+ * @param {number} options.offset List offset to request
+ * @param {number} options.limit List number to return from offset
* @param {string} options.search Search amongst users
* @param {string} options.group Get users from group
* @return {Promise}
@@ -276,8 +276,8 @@ const actions = {
*
* @param {object} context store context
* @param {object} options destructuring object
- * @param {int} options.offset List offset to request
- * @param {int} options.limit List number to return from offset
+ * @param {number} options.offset List offset to request
+ * @param {number} options.limit List number to return from offset
* @param options.search
* @return {Promise}
*/
@@ -299,8 +299,8 @@ const actions = {
*
* @param {object} context store context
* @param {object} options destructuring object
- * @param {int} options.offset List offset to request
- * @param {int} options.limit List number to return from offset
+ * @param {number} options.offset List offset to request
+ * @param {number} options.limit List number to return from offset
* @param options.groupid
* @return {Promise}
*/
@@ -462,6 +462,8 @@ const actions = {
* Add a user
*
* @param {object} context store context
+ * @param {Function} context.commit
+ * @param {Function} context.dispatch
* @param {object} options destructuring object
* @param {string} options.userid User id
* @param {string} options.password User password
@@ -470,8 +472,7 @@ const actions = {
* @param {string} options.groups User groups
* @param {string} options.subadmin User subadmin groups
* @param {string} options.quota User email
- * @param context.commit
- * @param context.dispatch
+ * @param {string} options.language User language
* @param options.language
* @return {Promise}
*/