From 794dedddc3ecfd001d6a909e5b8644fadc7d10cd Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 27 Aug 2024 23:06:00 +0200 Subject: [PATCH] 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 --- .../src/components/SharingEntryLink.vue | 19 ++++++++++--------- apps/settings/src/admin.js | 3 +++ .../settings/src/components/Users/UserRow.vue | 6 ------ core/src/OC/l10n.js | 2 +- core/src/OC/notification.js | 4 ++-- core/src/OC/query-string.js | 4 ++-- core/src/OC/xhr-error.js | 12 +++++++----- core/src/OCP/collaboration.js | 2 +- core/src/OCP/toast.js | 2 ++ core/src/jquery/contactsmenu.js | 4 ++-- core/src/jquery/showpassword.js | 3 ++- 11 files changed, 32 insertions(+), 29 deletions(-) diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index 8dfe85b4f05d4..d95027d82d295 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -150,8 +150,8 @@ :share="share" /> - @@ -207,11 +207,12 @@