mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
refactor: organize and categorize functions
This commit is contained in:
parent
f5526f8622
commit
d352b6fb65
13 changed files with 150 additions and 176 deletions
6
src/types/index.d.ts
vendored
6
src/types/index.d.ts
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue