diff --git a/next-ui/eslint.config.js b/next-ui/eslint.config.js index 038a47bd..53168fb2 100644 --- a/next-ui/eslint.config.js +++ b/next-ui/eslint.config.js @@ -5,9 +5,9 @@ */ import pluginVue from 'eslint-plugin-vue' -import vueTsEslintConfig from '@vue/eslint-config-typescript' +import {defineConfigWithVueTs, vueTsConfigs} from '@vue/eslint-config-typescript' -export default [ +export default defineConfigWithVueTs( { name: 'app/files-to-lint', files: ['**/*.{ts,mts,tsx,vue}'], @@ -15,11 +15,11 @@ export default [ { name: 'app/files-to-ignore', - ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'], + ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**', 'openapi-generator.mts'], }, ...pluginVue.configs['flat/recommended'], - ...vueTsEslintConfig(), + vueTsConfigs.recommendedTypeChecked, { rules: { @@ -33,4 +33,4 @@ export default [ 'vue/multi-word-component-names': 'off', } } -] +) diff --git a/next-ui/src/api/komga-client.ts b/next-ui/src/api/komga-client.ts index 908e65b1..1e9711b7 100644 --- a/next-ui/src/api/komga-client.ts +++ b/next-ui/src/api/komga-client.ts @@ -4,7 +4,7 @@ import type {paths} from '@/generated/openapi/komga' // Middleware that throws on error, so it works with Pinia Colada const coladaMiddleware: Middleware = { - async onResponse({response}: {response: Response}) { + onResponse({response}: {response: Response}) { if (!response.ok) throw new Error(`${response.url}: ${response.status} ${response.statusText}`) // return response untouched diff --git a/next-ui/src/colada/mutations/logout.ts b/next-ui/src/colada/mutations/logout.ts index 87918a9f..c58cc8ff 100644 --- a/next-ui/src/colada/mutations/logout.ts +++ b/next-ui/src/colada/mutations/logout.ts @@ -7,7 +7,7 @@ export const useLogout = defineMutation(() => { mutation: () => komgaClient.POST('/api/logout'), onSuccess: () => { - queryCache.invalidateQueries({key: ['current-user']}) + void queryCache.invalidateQueries({key: ['current-user']}) }, onError: (error) => { console.log('logout error', error) diff --git a/next-ui/src/colada/mutations/mark-announcements-read.ts b/next-ui/src/colada/mutations/mark-announcements-read.ts index c6de7fb7..08e610fc 100644 --- a/next-ui/src/colada/mutations/mark-announcements-read.ts +++ b/next-ui/src/colada/mutations/mark-announcements-read.ts @@ -7,7 +7,7 @@ export const useMarkAnnouncementsRead = defineMutation(() => { mutation: (announcementIds: string[]) => komgaClient.PUT('/api/v1/announcements', {body: announcementIds}), onSuccess: () => { - queryCache.invalidateQueries({key: ['announcements']}) + void queryCache.invalidateQueries({key: ['announcements']}) }, onError: (error) => { console.log('announcements mark read error', error) diff --git a/next-ui/src/colada/mutations/update-user.ts b/next-ui/src/colada/mutations/update-user.ts index d448d03c..bf3d6c31 100644 --- a/next-ui/src/colada/mutations/update-user.ts +++ b/next-ui/src/colada/mutations/update-user.ts @@ -11,7 +11,7 @@ export const useUpdateUser = defineMutation(() => { body: user, }), onSuccess: () => { - queryCache.invalidateQueries({key: ['users']}) + void queryCache.invalidateQueries({key: ['users']}) }, onError: (error) => { console.log('update user error', error) diff --git a/next-ui/src/components/HelloWorld.vue b/next-ui/src/components/HelloWorld.vue index e44c01ab..888bc2c3 100644 --- a/next-ui/src/components/HelloWorld.vue +++ b/next-ui/src/components/HelloWorld.vue @@ -10,16 +10,6 @@ src="@/assets/logo.svg" /> -
-
- Welcome "{{ currentUser?.email }}" -
- - - Logout - -
-
@@ -172,17 +162,6 @@ diff --git a/next-ui/src/components/dialogs/DialogConfirmEdit.vue b/next-ui/src/components/dialogs/DialogConfirmEdit.vue index e3308f55..2de6f985 100644 --- a/next-ui/src/components/dialogs/DialogConfirmEdit.vue +++ b/next-ui/src/components/dialogs/DialogConfirmEdit.vue @@ -15,13 +15,15 @@ :subtitle="subtitle" >