diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-25 00:00:31 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-09 17:13:30 +0200 |
commit | 691f570237e26398aa22f40c0efca23141d5583e (patch) | |
tree | 4409270ac8ee482ad03f745f77003c726ffbf09f /apps/settings/src/components/Encryption.vue | |
parent | 3a97dbf248b3e581b5782a638743958eb6f2a640 (diff) | |
download | nextcloud-server-691f570237e26398aa22f40c0efca23141d5583e.tar.gz nextcloud-server-691f570237e26398aa22f40c0efca23141d5583e.zip |
chore: Enable ESLint for apps and fix all errors
Nevertheless this causes a huge amount of new warnings.
Previously the shell script for directories to lint was wrong it was generating all app names to lint,
but was missing the `apps/` prefix. Causing only `core` to be linted.
Co-authored-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/settings/src/components/Encryption.vue')
-rw-r--r-- | apps/settings/src/components/Encryption.vue | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/apps/settings/src/components/Encryption.vue b/apps/settings/src/components/Encryption.vue index ba9fa186f9f..6574f4e728d 100644 --- a/apps/settings/src/components/Encryption.vue +++ b/apps/settings/src/components/Encryption.vue @@ -59,22 +59,18 @@ </template> <script> +import { showError } from '@nextcloud/dialogs' +import { loadState } from '@nextcloud/initial-state' +import { generateOcsUrl } from '@nextcloud/router' +import { confirmPassword } from '@nextcloud/password-confirmation' import axios from '@nextcloud/axios' import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js' -import { loadState } from '@nextcloud/initial-state' -import { getLoggerBuilder } from '@nextcloud/logger' -import { generateOcsUrl } from '@nextcloud/router' -import { confirmPassword } from '@nextcloud/password-confirmation' -import '@nextcloud/password-confirmation/dist/style.css' -import { showError } from '@nextcloud/dialogs' +import logger from '../logger' -const logger = getLoggerBuilder() - .setApp('settings') - .detectUser() - .build() +import '@nextcloud/password-confirmation/dist/style.css' export default { name: 'Encryption', @@ -122,7 +118,7 @@ export default { try { const { data } = await axios.post(url, { - value: value, + value, }) this.handleResponse({ status: data.ocs?.meta?.status, |