chore: lint
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const { t } = useI18n()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -19,4 +16,3 @@ const { t } = useI18n()
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -4,14 +4,12 @@ import type { Character } from '../../../types/character'
|
||||
import { Button, FieldInput } from '@proj-airi/ui'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
import CharacterDialog from './components/CharacterDialog.vue'
|
||||
import CharacterItem from './components/CharacterItem.vue'
|
||||
|
||||
import { useCharacterStore } from '../../../stores/characters'
|
||||
|
||||
const { t } = useI18n()
|
||||
const characterStore = useCharacterStore()
|
||||
const { characters, isLoading } = storeToRefs(characterStore)
|
||||
|
||||
@@ -45,6 +43,8 @@ function handleEdit(char: Character) {
|
||||
}
|
||||
|
||||
function handleDelete(id: string) {
|
||||
// TODO: Remove this
|
||||
// eslint-disable-next-line no-alert
|
||||
if (confirm('Are you sure you want to delete this character?')) {
|
||||
characterStore.remove(id).catch(console.error)
|
||||
}
|
||||
@@ -52,6 +52,7 @@ function handleDelete(id: string) {
|
||||
|
||||
function handleActivate(char: Character) {
|
||||
// TODO: Implement activation logic (global store for active character)
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('Activate', char.id)
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -9,7 +9,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
const user = ref<User>()
|
||||
const session = ref<Session>()
|
||||
const isAuthenticated = computed(() => !!user.value && !!session.value)
|
||||
|
||||
|
||||
// TODO: include fetchSession here for pulling and updating better-auth session with initialize(...) action
|
||||
|
||||
return {
|
||||
|
||||
@@ -103,7 +103,7 @@ const variantClasses: Record<ButtonVariant, Record<ButtonTheme, {
|
||||
],
|
||||
},
|
||||
},
|
||||
'ghost': {
|
||||
'pure': {
|
||||
default: {
|
||||
default: [
|
||||
'bg-transparent',
|
||||
@@ -114,7 +114,12 @@ const variantClasses: Record<ButtonVariant, Record<ButtonTheme, {
|
||||
},
|
||||
'ghost': {
|
||||
default: {
|
||||
default: 'bg-transparent hover:bg-neutral-100/50 dark:hover:bg-neutral-800/50 text-neutral-500 dark:text-neutral-400 focus:ring-neutral-300/30 dark:focus:ring-neutral-600/30',
|
||||
default: [
|
||||
'bg-transparent',
|
||||
'hover:bg-neutral-100/50 dark:hover:bg-neutral-800/50',
|
||||
'text-neutral-500 dark:text-neutral-400',
|
||||
'focus:ring-2 focus:ring-neutral-300/30 dark:focus:ring-neutral-600/30',
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
+14
-15
@@ -11,6 +11,19 @@ packages:
|
||||
- apps/**
|
||||
- '!**/dist/**'
|
||||
|
||||
overrides:
|
||||
array-flatten: npm:@nolyfill/array-flatten@^1.0.44
|
||||
axios: npm:feaxios@^0.0.23
|
||||
is-core-module: npm:@nolyfill/is-core-module@^1.0.39
|
||||
isarray: npm:@nolyfill/isarray@^1.0.44
|
||||
safe-buffer: npm:@nolyfill/safe-buffer@^1.0.44
|
||||
safer-buffer: npm:@nolyfill/safer-buffer@^1.0.44
|
||||
side-channel: npm:@nolyfill/side-channel@^1.0.44
|
||||
string.prototype.matchall: npm:@nolyfill/string.prototype.matchall@^1.0.44
|
||||
|
||||
patchedDependencies:
|
||||
srvx@0.9.8: patches/srvx@0.9.8.patch
|
||||
|
||||
catalog:
|
||||
'@capacitor/cli': ^8.0.0
|
||||
'@capacitor/core': ^8.0.0
|
||||
@@ -18,7 +31,6 @@ catalog:
|
||||
'@capacitor/local-notifications': ^8.0.0
|
||||
'@guiiai/logg': ^1.2.11
|
||||
'@iconify-json/logos': ^1.2.10
|
||||
'@iconify-json/material-icon-theme': ^1.2.45
|
||||
'@iconify-json/tabler': ^1.2.26
|
||||
'@moeru/eslint-config': 0.1.0-beta.14
|
||||
'@moeru/std': 0.1.0-beta.14
|
||||
@@ -51,9 +63,9 @@ catalog:
|
||||
splitpanes: ^4.0.4
|
||||
tsx: ^4.21.0
|
||||
uncrypto: ^0.1.3
|
||||
vite-plugin-mkcert: ^1.17.9
|
||||
unplugin-info: ^1.2.4
|
||||
valibot: ^1.2.0
|
||||
vite-plugin-mkcert: ^1.17.9
|
||||
xsschema: ^0.4.0-beta.12
|
||||
zod: ^4.2.1
|
||||
|
||||
@@ -92,16 +104,3 @@ onlyBuiltDependencies:
|
||||
- spawn-sync
|
||||
- utf-8-validate
|
||||
- vue-demi
|
||||
|
||||
overrides:
|
||||
array-flatten: npm:@nolyfill/array-flatten@^1.0.44
|
||||
axios: npm:feaxios@^0.0.23
|
||||
is-core-module: npm:@nolyfill/is-core-module@^1.0.39
|
||||
isarray: npm:@nolyfill/isarray@^1.0.44
|
||||
safe-buffer: npm:@nolyfill/safe-buffer@^1.0.44
|
||||
safer-buffer: npm:@nolyfill/safer-buffer@^1.0.44
|
||||
side-channel: npm:@nolyfill/side-channel@^1.0.44
|
||||
string.prototype.matchall: npm:@nolyfill/string.prototype.matchall@^1.0.44
|
||||
|
||||
patchedDependencies:
|
||||
srvx@0.9.8: patches/srvx@0.9.8.patch
|
||||
|
||||
Reference in New Issue
Block a user