refactor: organize and categorize functions

This commit is contained in:
radishzzz 2025-03-14 16:18:17 +00:00
parent f5526f8622
commit d352b6fb65
13 changed files with 150 additions and 176 deletions

View file

@ -1,4 +1,4 @@
import type { langPath } from '@/i18n/ui'
import type { supportedLangs } from '@/i18n/ui'
type Exclude<T, U> = T extends U ? never : T
@ -30,8 +30,8 @@ export interface ThemeConfig {
}
global: {
locale: typeof langPath[number]
moreLocales: typeof langPath[number][]
locale: typeof supportedLangs[number]
moreLocales: typeof supportedLangs[number][]
fontStyle: 'sans' | 'serif'
dateFormat: 'YYYY-MM-DD' | 'MM-DD-YYYY' | 'DD-MM-YYYY' | 'MONTH DAY YYYY' | 'DAY MONTH YYYY'
titleSpace: 1 | 2 | 3