remove md file from tsconfig and lint upgrade bug
This commit is contained in:
parent
af2ab3d906
commit
43633495a3
|
@ -29,7 +29,7 @@
|
|||
"@sentry/vue": "7.47.0",
|
||||
"@tauri-apps/api": "2.0.0-beta.1",
|
||||
"@types/jsmediatags": "3.9.6",
|
||||
"@vue/runtime-core": "3.3.11",
|
||||
"@vue/runtime-core": "3.5.14",
|
||||
"@vueuse/components": "10.11.1",
|
||||
"@vueuse/core": "10.11.1",
|
||||
"@vueuse/integrations": "10.11.1",
|
||||
|
@ -60,7 +60,7 @@
|
|||
"type-fest": "4.41.0",
|
||||
"universal-cookie": "4.0.4",
|
||||
"vite-plugin-pwa": "0.21.2",
|
||||
"vue": "3.5.13",
|
||||
"vue": "3.5.14",
|
||||
"vue-dompurify-html": "5.3.0",
|
||||
"vue-gettext": "2.1.12",
|
||||
"vue-i18n": "9.14.4",
|
||||
|
@ -94,7 +94,7 @@
|
|||
"@vitest/coverage-v8": "1.3.1",
|
||||
"@vue-macros/common": "1.16.1",
|
||||
"@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-typescript": "12.0.0",
|
||||
"@vue/test-utils": "2.4.6",
|
||||
|
|
|
@ -38,9 +38,9 @@ export interface 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)
|
||||
return implementation
|
||||
}
|
||||
|
@ -49,8 +49,8 @@ export const registerSoundImplementation = <T extends Constructor<Sound>>(implem
|
|||
@registerSoundImplementation
|
||||
export class HTMLSound implements Sound {
|
||||
#audio = new Audio()
|
||||
#soundLoopEventHook = createEventHook<HTMLSound>()
|
||||
#soundEndEventHook = createEventHook<HTMLSound>()
|
||||
#soundLoopEventHook = createEventHook<Sound>()
|
||||
#soundEndEventHook = createEventHook<Sound>()
|
||||
#ignoreError = false
|
||||
#scope = effectScope()
|
||||
|
||||
|
@ -59,8 +59,8 @@ export class HTMLSound implements Sound {
|
|||
readonly isDisposed = ref(false)
|
||||
|
||||
audioNode = createAudioSource(this.#audio)
|
||||
onSoundLoop: EventHookOn<HTMLSound>
|
||||
onSoundEnd: EventHookOn<HTMLSound>
|
||||
onSoundLoop: EventHookOn<Sound>
|
||||
onSoundEnd: EventHookOn<Sound>
|
||||
|
||||
constructor (sources: SoundSource[]) {
|
||||
this.onSoundLoop = this.#soundLoopEventHook.on
|
||||
|
|
|
@ -90,6 +90,7 @@ watchEffect(async () => {
|
|||
const list = ref()
|
||||
const el = useCurrentElement()
|
||||
const scrollToCurrent = (behavior: ScrollBehavior = 'smooth') => {
|
||||
if (!(el.value instanceof HTMLElement)) return
|
||||
const item = el.value?.querySelector('.queue-item.active')
|
||||
item?.scrollIntoView({
|
||||
behavior,
|
||||
|
|
|
@ -28,7 +28,7 @@ const defaultAvatarStyle = computed(() => ({ backgroundColor: `#${userColor.valu
|
|||
|
||||
<template>
|
||||
<Link
|
||||
:to="user"
|
||||
:to="{name: 'profile.overview', params: {username: user.full_username}}"
|
||||
:title="user.full_username"
|
||||
class="username"
|
||||
:solid="!discrete"
|
||||
|
|
|
@ -14,7 +14,7 @@ const props = defineProps<{
|
|||
thinFont?: true
|
||||
|
||||
icon?: string;
|
||||
round?: true;
|
||||
round?: boolean;
|
||||
|
||||
autofocus? : boolean
|
||||
forceUnderline? : true
|
||||
|
|
|
@ -61,11 +61,11 @@ const onTouchmove = (event: TouchEvent) => {
|
|||
}
|
||||
}
|
||||
|
||||
document.addEventListener('touchcancel', (event: TouchEvent) => {
|
||||
document.addEventListener('touchcancel', (_event: TouchEvent) => {
|
||||
cleanup()
|
||||
})
|
||||
|
||||
const reorder = (event: MouseEvent | TouchEvent) => {
|
||||
const reorder = (_event: MouseEvent | TouchEvent) => {
|
||||
if (draggedItem.value) {
|
||||
const from = draggedItem.value.index
|
||||
let to = hoveredIndex.value
|
||||
|
@ -155,6 +155,7 @@ const { resume, pause } = useRafFn(() => {
|
|||
const now = +new Date()
|
||||
const direction = scrollDirection.value
|
||||
|
||||
if (!(el.value instanceof HTMLElement)) return
|
||||
if (direction && el.value?.children[0] && !isTouch.value) {
|
||||
el.value.children[0].scrollTop += 200 / (now - lastDate) * (direction === 'up' ? -1 : 1)
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ const isOpen = useModal('language').isOpen
|
|||
ghost
|
||||
thin-font
|
||||
small
|
||||
align-text="left"
|
||||
align-text="start"
|
||||
:aria-pressed="key===locale || undefined"
|
||||
@click="setI18nLanguage(key)"
|
||||
>
|
||||
|
|
|
@ -208,7 +208,7 @@ const categories = computed(() => [
|
|||
object_uri: trimmedQuery.value
|
||||
}
|
||||
}
|
||||
] as const satisfies {
|
||||
] as const satisfies readonly {
|
||||
type: Category
|
||||
label: string
|
||||
post?: true
|
||||
|
|
|
@ -301,7 +301,6 @@ const showUploadDetailModal = ref(false)
|
|||
>
|
||||
<Slider
|
||||
v-model="globalPrivacyLevel"
|
||||
:disabled="selectedItems.length === 0 ? true : undefined"
|
||||
:options="options"
|
||||
:label="`Privacy level (${ selectedItems.length } items)`"
|
||||
/>
|
||||
|
|
|
@ -25,16 +25,11 @@ import Nav from '~/components/ui/Nav.vue'
|
|||
import Alert from '~/components/ui/Alert.vue'
|
||||
import Modal from '~/components/ui/Modal.vue'
|
||||
|
||||
interface Events {
|
||||
(e: 'updated', value: components['schemas']['FullActor']): void
|
||||
}
|
||||
|
||||
interface Props {
|
||||
username: string
|
||||
domain?: string | null
|
||||
}
|
||||
|
||||
const emit = defineEmits<Events>()
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
domain: null
|
||||
})
|
||||
|
|
|
@ -14,10 +14,6 @@ import Modal from '~/components/ui/Modal.vue'
|
|||
import Button from '~/components/ui/Button.vue'
|
||||
import Link from '~/components/ui/Link.vue'
|
||||
|
||||
interface Events {
|
||||
(e: 'updated', value: Actor): void
|
||||
}
|
||||
|
||||
interface Props {
|
||||
object: Actor | null
|
||||
}
|
||||
|
@ -26,7 +22,6 @@ const store = useStore()
|
|||
const { t } = useI18n()
|
||||
const router = useRouter()
|
||||
|
||||
const emit = defineEmits<Events>()
|
||||
defineProps<Props>()
|
||||
|
||||
const step = ref(1)
|
||||
|
|
|
@ -13,7 +13,7 @@ defineProps<Props>()
|
|||
<template>
|
||||
<section>
|
||||
<channel-entries
|
||||
:default-cover="object.artist?.cover"
|
||||
:default-cover="object.artist?.cover || null"
|
||||
:is-podcast="object.artist?.content_category === 'podcast'"
|
||||
:limit="25"
|
||||
:filters="{channel: object.uuid, ordering: 'creation_date'}"
|
||||
|
|
|
@ -20,14 +20,12 @@
|
|||
}
|
||||
},
|
||||
"include": [
|
||||
"**/*.md",
|
||||
"src/**/*.ts",
|
||||
"src/**/*.vue",
|
||||
"vite.config.ts",
|
||||
"test/**/*.ts",
|
||||
"src/docs/vite.config.ts",
|
||||
"src/docs/**/*.ts",
|
||||
"ui-docs/**/*.md"
|
||||
"src/docs/**/*.ts"
|
||||
],
|
||||
"vueCompilerOptions": {
|
||||
"vitePressExtensions": [".md"],
|
||||
|
|
613
front/yarn.lock
613
front/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue