refactor: Fix some linting issues in frontend code

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/46649/head
Ferdinand Thiessen 2024-07-19 19:42:35 +07:00
parent 2e273e477a
commit 4bcb0734cd
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
3 changed files with 9 additions and 7 deletions

@ -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')"

@ -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)

@ -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()
}
},
},
},