From 6d883a8572bb26c55d419afaf46f889419f325b3 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 23 May 2022 14:53:56 +0200 Subject: Fix various errors reported by eslint And also make sure eslint doesn't try to index apps-extra that contains other repo with not necessarely the same eslint rules Signed-off-by: Carl Schwan --- .../src/components/AdminSettings.vue | 2 +- apps/settings/src/admin.js | 8 ++++---- apps/settings/src/apps.js | 2 +- .../src/components/BasicSettings/BackgroundJob.vue | 17 ++++++++--------- apps/sharebymail/src/components/AdminSettings.vue | 4 ++-- apps/systemtags/src/app.js | 2 +- apps/user_status/src/menu.js | 2 +- 7 files changed, 18 insertions(+), 19 deletions(-) (limited to 'apps') diff --git a/apps/federatedfilesharing/src/components/AdminSettings.vue b/apps/federatedfilesharing/src/components/AdminSettings.vue index cd0f6e5beb6..b3fb2a7675b 100644 --- a/apps/federatedfilesharing/src/components/AdminSettings.vue +++ b/apps/federatedfilesharing/src/components/AdminSettings.vue @@ -124,6 +124,6 @@ export default { console.error(errorMessage, error) } }, - } + }, } diff --git a/apps/settings/src/admin.js b/apps/settings/src/admin.js index 833ed3e1ea9..eadc91c1759 100644 --- a/apps/settings/src/admin.js +++ b/apps/settings/src/admin.js @@ -117,7 +117,7 @@ window.addEventListener('DOMContentLoaded', () => { }, error: () => { OC.msg.finishedError('#publicShareDisclaimerStatus', t('settings', 'Not saved')) - } + }, } OC.msg.startSaving('#publicShareDisclaimerStatus') @@ -194,7 +194,7 @@ window.addEventListener('DOMContentLoaded', () => { }, error: (xhr) => { OC.msg.finishedError('#mail_settings_msg', xhr.responseJSON) - } + }, }) } @@ -214,7 +214,7 @@ window.addEventListener('DOMContentLoaded', () => { }, error: (xhr) => { OC.msg.finishedError('#mail_settings_msg', xhr.responseJSON) - } + }, }) } @@ -239,7 +239,7 @@ window.addEventListener('DOMContentLoaded', () => { }, error: (xhr) => { OC.msg.finishedError('#sendtestmail_msg', xhr.responseJSON) - } + }, }) }) diff --git a/apps/settings/src/apps.js b/apps/settings/src/apps.js index fafdb531399..61eea28f9d9 100644 --- a/apps/settings/src/apps.js +++ b/apps/settings/src/apps.js @@ -2,5 +2,5 @@ import rebuildNavigation from './service/rebuild-navigation.js' window.OC.Settings = window.OC.Settings || {} window.OC.Settings.Apps = window.OC.Settings.Apps || { - rebuildNavigation + rebuildNavigation, } diff --git a/apps/settings/src/components/BasicSettings/BackgroundJob.vue b/apps/settings/src/components/BasicSettings/BackgroundJob.vue index 5413db38f91..a785d585228 100644 --- a/apps/settings/src/components/BasicSettings/BackgroundJob.vue +++ b/apps/settings/src/components/BasicSettings/BackgroundJob.vue @@ -24,7 +24,6 @@ - - + {{ t('settings', 'Background job didn’t run yet!') }} @@ -66,11 +65,11 @@ {{ t('settings', 'cron.php is registered at a webcron service to call cron.php every 5 minutes over HTTP. Use case: Very small instance (1–5 users depending on the usage).') }} - {{ t('settings', 'Cron (Recommended)') }} @@ -137,7 +136,7 @@ export default { }, longExecutionCron() { return Date.now() / 1000 - this.cronMaxAge > 12 * 3600 && this.backgroundJobsMode === 'cron' - } + }, }, methods: { async onBackgroundJobModeChanged(backgroundJobsMode) { @@ -150,10 +149,10 @@ export default { try { const { data } = await axios.post(url, { - value: backgroundJobsMode + value: backgroundJobsMode, }) this.handleResponse({ - status: data.ocs?.meta?.status + status: data.ocs?.meta?.status, }) } catch (e) { this.handleResponse({ @@ -184,7 +183,7 @@ export default { } catch (error) { console.error(error) } - } + }, }, } diff --git a/apps/sharebymail/src/components/AdminSettings.vue b/apps/sharebymail/src/components/AdminSettings.vue index 29b7f051a4b..c84ded9bb2a 100644 --- a/apps/sharebymail/src/components/AdminSettings.vue +++ b/apps/sharebymail/src/components/AdminSettings.vue @@ -71,7 +71,7 @@ export default { value: stringValue, }) this.handleResponse({ - status: data.ocs?.meta?.status + status: data.ocs?.meta?.status, }) } catch (e) { this.handleResponse({ @@ -86,6 +86,6 @@ export default { console.error(errorMessage, error) } }, - } + }, } diff --git a/apps/systemtags/src/app.js b/apps/systemtags/src/app.js index e7e5fea5372..9696f1edbad 100644 --- a/apps/systemtags/src/app.js +++ b/apps/systemtags/src/app.js @@ -52,7 +52,7 @@ // done if handling the event with the file list already // created. shown: true, - systemTagIds: initialTags + systemTagIds: initialTags, } ) diff --git a/apps/user_status/src/menu.js b/apps/user_status/src/menu.js index c8d007d98a0..19d21939544 100644 --- a/apps/user_status/src/menu.js +++ b/apps/user_status/src/menu.js @@ -41,7 +41,7 @@ const propsData = { preloadedUserStatus: { message: userStatusData.message, icon: userStatusData.icon, - status: userStatusData.status + status: userStatusData.status, }, user: avatarDiv.dataset.user, displayName: avatarDiv.dataset.displayname, -- cgit v1.2.3