refactoring

This commit is contained in:
Gauthier Roebroeck 2025-06-04 11:19:05 +08:00
parent 940b33f83b
commit e98de20f24
6 changed files with 5 additions and 6 deletions

View file

@ -72,6 +72,8 @@ export default defineConfig((ctx) => {
colada: fileURLToPath(new URL('./src/colada', import.meta.url)),
openapi: fileURLToPath(new URL('./src/generated/openapi', import.meta.url)),
types: fileURLToPath(new URL('./src/types', import.meta.url)),
styles: fileURLToPath(new URL('./src/styles', import.meta.url)),
utils: fileURLToPath(new URL('./src/utils', import.meta.url)),
},
// Komga: cannot use the import syntax as it breaks the type checker, meaning we cannot use strongly typed options

View file

@ -6,6 +6,6 @@
//
</script>
<style>
@import 'styles/global.scss';
<style lang="scss">
@use 'styles/global';
</style>

View file

@ -103,7 +103,7 @@
<script lang="ts" setup>
import { useAnnouncements } from 'colada/queries/announcements'
import { useMarkAnnouncementsRead } from 'colada/mutations/mark-announcements-read'
import { commonMessages } from 'src/utils/common-messages'
import { commonMessages } from 'utils/i18n/common-messages'
const { data: announcements, error, unreadCount, isLoading } = useAnnouncements()

View file

@ -1,3 +0,0 @@
export function delay(ms: number) {
return new Promise((resolve) => setTimeout(resolve, ms))
}