aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-19 19:42:35 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-07-19 22:45:13 +0200
commit4bcb0734cd8b72ca364eca380b4c7e525cd5a0de (patch)
treece7b2d1333d94fde935cc8816f4d99366d543146
parent2e273e477abfc992e2841c3b3b8f19839505a944 (diff)
downloadnextcloud-server-4bcb0734cd8b72ca364eca380b4c7e525cd5a0de.tar.gz
nextcloud-server-4bcb0734cd8b72ca364eca380b4c7e525cd5a0de.zip
refactor: Fix some linting issues in frontend code
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r--apps/settings/src/components/Users/NewUserDialog.vue2
-rw-r--r--apps/settings/src/main-personal-security.js8
-rw-r--r--core/src/components/UnifiedSearch/UnifiedSearchModal.vue6
3 files changed, 9 insertions, 7 deletions
diff --git a/apps/settings/src/components/Users/NewUserDialog.vue b/apps/settings/src/components/Users/NewUserDialog.vue
index 29bfc277e18..5547fed2216 100644
--- a/apps/settings/src/components/Users/NewUserDialog.vue
+++ b/apps/settings/src/components/Users/NewUserDialog.vue
@@ -100,7 +100,7 @@
</div>
<div v-if="showConfig.showLanguages"
class="dialog__item">
- <NcSelect v-model="newUser.language"
+ <NcSelect v-model="newUser.language"
class="dialog__select"
:input-label="t('settings', 'Language')"
:placeholder="t('settings', 'Set default language')"
diff --git a/apps/settings/src/main-personal-security.js b/apps/settings/src/main-personal-security.js
index 54e761ae680..4582bb0ec5b 100644
--- a/apps/settings/src/main-personal-security.js
+++ b/apps/settings/src/main-personal-security.js
@@ -3,12 +3,12 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
+import { getRequestToken } from '@nextcloud/auth'
+import { PiniaVuePlugin, createPinia } from 'pinia'
+import VTooltipPlugin from 'v-tooltip'
import Vue from 'vue'
-import VTooltip from 'v-tooltip'
import AuthTokenSection from './components/AuthTokenSection.vue'
-import { getRequestToken } from '@nextcloud/auth'
-import { PiniaVuePlugin, createPinia } from 'pinia'
import '@nextcloud/password-confirmation/dist/style.css'
@@ -18,7 +18,7 @@ __webpack_nonce__ = btoa(getRequestToken())
const pinia = createPinia()
Vue.use(PiniaVuePlugin)
-Vue.use(VTooltip, { defaultHtml: false })
+Vue.use(VTooltipPlugin, { defaultHtml: false })
Vue.prototype.t = t
const View = Vue.extend(AuthTokenSection)
diff --git a/core/src/components/UnifiedSearch/UnifiedSearchModal.vue b/core/src/components/UnifiedSearch/UnifiedSearchModal.vue
index 75009ee9be5..ac1348ed8e6 100644
--- a/core/src/components/UnifiedSearch/UnifiedSearchModal.vue
+++ b/core/src/components/UnifiedSearch/UnifiedSearchModal.vue
@@ -114,7 +114,9 @@
</div>
<div v-else class="unified-search-modal__results">
- <h3 class="hidden-visually">{{ t('core', 'Results') }}</h3>
+ <h3 class="hidden-visually">
+ {{ t('core', 'Results') }}
+ </h3>
<div v-for="providerResult in results" :key="providerResult.id" class="result">
<h4 :id="`unified-search-result-${providerResult.id}`" class="result-title">
{{ providerResult.provider }}
@@ -311,7 +313,7 @@ export default defineComponent({
immediate: true,
handler() {
this.searchQuery = this.query.trim()
- }
+ },
},
},