remove md file from tsconfig and lint upgrade bug

This commit is contained in:
Petitminion 2025-05-15 12:13:18 +02:00
parent af2ab3d906
commit 43633495a3
14 changed files with 300 additions and 362 deletions

View File

@ -29,7 +29,7 @@
"@sentry/vue": "7.47.0", "@sentry/vue": "7.47.0",
"@tauri-apps/api": "2.0.0-beta.1", "@tauri-apps/api": "2.0.0-beta.1",
"@types/jsmediatags": "3.9.6", "@types/jsmediatags": "3.9.6",
"@vue/runtime-core": "3.3.11", "@vue/runtime-core": "3.5.14",
"@vueuse/components": "10.11.1", "@vueuse/components": "10.11.1",
"@vueuse/core": "10.11.1", "@vueuse/core": "10.11.1",
"@vueuse/integrations": "10.11.1", "@vueuse/integrations": "10.11.1",
@ -60,7 +60,7 @@
"type-fest": "4.41.0", "type-fest": "4.41.0",
"universal-cookie": "4.0.4", "universal-cookie": "4.0.4",
"vite-plugin-pwa": "0.21.2", "vite-plugin-pwa": "0.21.2",
"vue": "3.5.13", "vue": "3.5.14",
"vue-dompurify-html": "5.3.0", "vue-dompurify-html": "5.3.0",
"vue-gettext": "2.1.12", "vue-gettext": "2.1.12",
"vue-i18n": "9.14.4", "vue-i18n": "9.14.4",
@ -94,7 +94,7 @@
"@vitest/coverage-v8": "1.3.1", "@vitest/coverage-v8": "1.3.1",
"@vue-macros/common": "1.16.1", "@vue-macros/common": "1.16.1",
"@vue-macros/volar": "0.30.15", "@vue-macros/volar": "0.30.15",
"@vue/compiler-sfc": "3.3.11", "@vue/compiler-sfc": "3.5.14",
"@vue/eslint-config-standard": "8.0.1", "@vue/eslint-config-standard": "8.0.1",
"@vue/eslint-config-typescript": "12.0.0", "@vue/eslint-config-typescript": "12.0.0",
"@vue/test-utils": "2.4.6", "@vue/test-utils": "2.4.6",

View File

@ -38,9 +38,9 @@ export interface Sound {
onSoundEnd: EventHookOn<Sound> onSoundEnd: EventHookOn<Sound>
} }
export const soundImplementations = reactive(new Set<Constructor<Sound>>()) export const soundImplementations: Set<Constructor<Sound>> = reactive(new Set<Constructor<Sound>>())
export const registerSoundImplementation = <T extends Constructor<Sound>>(implementation: T) => { export const registerSoundImplementation = <T extends Sound>(implementation: Constructor<T>): Constructor<T> => {
soundImplementations.add(implementation) soundImplementations.add(implementation)
return implementation return implementation
} }
@ -49,8 +49,8 @@ export const registerSoundImplementation = <T extends Constructor<Sound>>(implem
@registerSoundImplementation @registerSoundImplementation
export class HTMLSound implements Sound { export class HTMLSound implements Sound {
#audio = new Audio() #audio = new Audio()
#soundLoopEventHook = createEventHook<HTMLSound>() #soundLoopEventHook = createEventHook<Sound>()
#soundEndEventHook = createEventHook<HTMLSound>() #soundEndEventHook = createEventHook<Sound>()
#ignoreError = false #ignoreError = false
#scope = effectScope() #scope = effectScope()
@ -59,8 +59,8 @@ export class HTMLSound implements Sound {
readonly isDisposed = ref(false) readonly isDisposed = ref(false)
audioNode = createAudioSource(this.#audio) audioNode = createAudioSource(this.#audio)
onSoundLoop: EventHookOn<HTMLSound> onSoundLoop: EventHookOn<Sound>
onSoundEnd: EventHookOn<HTMLSound> onSoundEnd: EventHookOn<Sound>
constructor (sources: SoundSource[]) { constructor (sources: SoundSource[]) {
this.onSoundLoop = this.#soundLoopEventHook.on this.onSoundLoop = this.#soundLoopEventHook.on

View File

@ -90,6 +90,7 @@ watchEffect(async () => {
const list = ref() const list = ref()
const el = useCurrentElement() const el = useCurrentElement()
const scrollToCurrent = (behavior: ScrollBehavior = 'smooth') => { const scrollToCurrent = (behavior: ScrollBehavior = 'smooth') => {
if (!(el.value instanceof HTMLElement)) return
const item = el.value?.querySelector('.queue-item.active') const item = el.value?.querySelector('.queue-item.active')
item?.scrollIntoView({ item?.scrollIntoView({
behavior, behavior,

View File

@ -28,7 +28,7 @@ const defaultAvatarStyle = computed(() => ({ backgroundColor: `#${userColor.valu
<template> <template>
<Link <Link
:to="user" :to="{name: 'profile.overview', params: {username: user.full_username}}"
:title="user.full_username" :title="user.full_username"
class="username" class="username"
:solid="!discrete" :solid="!discrete"

View File

@ -14,7 +14,7 @@ const props = defineProps<{
thinFont?: true thinFont?: true
icon?: string; icon?: string;
round?: true; round?: boolean;
autofocus? : boolean autofocus? : boolean
forceUnderline? : true forceUnderline? : true

View File

@ -61,11 +61,11 @@ const onTouchmove = (event: TouchEvent) => {
} }
} }
document.addEventListener('touchcancel', (event: TouchEvent) => { document.addEventListener('touchcancel', (_event: TouchEvent) => {
cleanup() cleanup()
}) })
const reorder = (event: MouseEvent | TouchEvent) => { const reorder = (_event: MouseEvent | TouchEvent) => {
if (draggedItem.value) { if (draggedItem.value) {
const from = draggedItem.value.index const from = draggedItem.value.index
let to = hoveredIndex.value let to = hoveredIndex.value
@ -155,6 +155,7 @@ const { resume, pause } = useRafFn(() => {
const now = +new Date() const now = +new Date()
const direction = scrollDirection.value const direction = scrollDirection.value
if (!(el.value instanceof HTMLElement)) return
if (direction && el.value?.children[0] && !isTouch.value) { if (direction && el.value?.children[0] && !isTouch.value) {
el.value.children[0].scrollTop += 200 / (now - lastDate) * (direction === 'up' ? -1 : 1) el.value.children[0].scrollTop += 200 / (now - lastDate) * (direction === 'up' ? -1 : 1)
} }

View File

@ -29,7 +29,7 @@ const isOpen = useModal('language').isOpen
ghost ghost
thin-font thin-font
small small
align-text="left" align-text="start"
:aria-pressed="key===locale || undefined" :aria-pressed="key===locale || undefined"
@click="setI18nLanguage(key)" @click="setI18nLanguage(key)"
> >

View File

@ -208,7 +208,7 @@ const categories = computed(() => [
object_uri: trimmedQuery.value object_uri: trimmedQuery.value
} }
} }
] as const satisfies { ] as const satisfies readonly {
type: Category type: Category
label: string label: string
post?: true post?: true

View File

@ -301,7 +301,6 @@ const showUploadDetailModal = ref(false)
> >
<Slider <Slider
v-model="globalPrivacyLevel" v-model="globalPrivacyLevel"
:disabled="selectedItems.length === 0 ? true : undefined"
:options="options" :options="options"
:label="`Privacy level (${ selectedItems.length } items)`" :label="`Privacy level (${ selectedItems.length } items)`"
/> />

View File

@ -25,16 +25,11 @@ import Nav from '~/components/ui/Nav.vue'
import Alert from '~/components/ui/Alert.vue' import Alert from '~/components/ui/Alert.vue'
import Modal from '~/components/ui/Modal.vue' import Modal from '~/components/ui/Modal.vue'
interface Events {
(e: 'updated', value: components['schemas']['FullActor']): void
}
interface Props { interface Props {
username: string username: string
domain?: string | null domain?: string | null
} }
const emit = defineEmits<Events>()
const props = withDefaults(defineProps<Props>(), { const props = withDefaults(defineProps<Props>(), {
domain: null domain: null
}) })

View File

@ -14,10 +14,6 @@ import Modal from '~/components/ui/Modal.vue'
import Button from '~/components/ui/Button.vue' import Button from '~/components/ui/Button.vue'
import Link from '~/components/ui/Link.vue' import Link from '~/components/ui/Link.vue'
interface Events {
(e: 'updated', value: Actor): void
}
interface Props { interface Props {
object: Actor | null object: Actor | null
} }
@ -26,7 +22,6 @@ const store = useStore()
const { t } = useI18n() const { t } = useI18n()
const router = useRouter() const router = useRouter()
const emit = defineEmits<Events>()
defineProps<Props>() defineProps<Props>()
const step = ref(1) const step = ref(1)

View File

@ -13,7 +13,7 @@ defineProps<Props>()
<template> <template>
<section> <section>
<channel-entries <channel-entries
:default-cover="object.artist?.cover" :default-cover="object.artist?.cover || null"
:is-podcast="object.artist?.content_category === 'podcast'" :is-podcast="object.artist?.content_category === 'podcast'"
:limit="25" :limit="25"
:filters="{channel: object.uuid, ordering: 'creation_date'}" :filters="{channel: object.uuid, ordering: 'creation_date'}"

View File

@ -20,14 +20,12 @@
} }
}, },
"include": [ "include": [
"**/*.md",
"src/**/*.ts", "src/**/*.ts",
"src/**/*.vue", "src/**/*.vue",
"vite.config.ts", "vite.config.ts",
"test/**/*.ts", "test/**/*.ts",
"src/docs/vite.config.ts", "src/docs/vite.config.ts",
"src/docs/**/*.ts", "src/docs/**/*.ts"
"ui-docs/**/*.md"
], ],
"vueCompilerOptions": { "vueCompilerOptions": {
"vitePressExtensions": [".md"], "vitePressExtensions": [".md"],

File diff suppressed because it is too large Load Diff