diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-27 23:06:00 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-20 03:30:20 +0200 |
commit | 085aab24ffd920df2f3610c9f6c2fa1e71a6d294 (patch) | |
tree | 0536be9d78feeba507bbe76d4c745158ab63005b /apps/settings/src | |
parent | 4ba3d4a31a5a27a7fad6b8928d899ec7247289ca (diff) | |
download | nextcloud-server-085aab24ffd920df2f3610c9f6c2fa1e71a6d294.tar.gz nextcloud-server-085aab24ffd920df2f3610c9f6c2fa1e71a6d294.zip |
chore: fix usage of deprecated functions and adjust code style
This solves 57 ESLint warnings by replacing deprecated code with `@nextcloud/` libraries,
as well as adding missing type information, importing jQuery instead of relying on global one,
and the same with Moment.js.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/admin.js | 3 | ||||
-rw-r--r-- | apps/settings/src/components/Users/UserRow.vue | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/apps/settings/src/admin.js b/apps/settings/src/admin.js index d788e7424b4..88b32f941a5 100644 --- a/apps/settings/src/admin.js +++ b/apps/settings/src/admin.js @@ -2,6 +2,9 @@ * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ + +import $ from 'jquery' + window.addEventListener('DOMContentLoaded', () => { $('#loglevel').change(function() { $.post(OC.generateUrl('/settings/admin/log/level'), { level: $(this).val() }, () => { diff --git a/apps/settings/src/components/Users/UserRow.vue b/apps/settings/src/components/Users/UserRow.vue index 1644fc89a55..af0879573c9 100644 --- a/apps/settings/src/components/Users/UserRow.vue +++ b/apps/settings/src/components/Users/UserRow.vue @@ -621,8 +621,6 @@ export default { /** * Set user displayName - * - * @param {string} displayName The display name */ async updateDisplayName() { this.loading.displayName = true @@ -643,8 +641,6 @@ export default { /** * Set user password - * - * @param {string} password The email address */ async updatePassword() { this.loading.password = true @@ -668,8 +664,6 @@ export default { /** * Set user mailAddress - * - * @param {string} mailAddress The email address */ async updateEmail() { this.loading.mailAddress = true |