forked from Innei/Shiro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.d.ts
91 lines (81 loc) · 1.46 KB
/
config.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import type { ScriptProps } from 'next/script'
declare global {
export interface AppThemeConfig {
config: AppConfig
footer: FooterConfig
}
export interface AccentColor {
light: string[]
dark: string[]
}
export interface AppConfig {
site: Site
hero: Hero
module: Module
color?: AccentColor
custom?: Custom
poweredBy?: {
vercel?: boolean
}
}
export interface LinkSection {
name: string
links: {
name: string
href: string
external?: boolean
}[]
}
export interface OtherInfo {
date: string
icp?: {
text: string
link: string
}
}
export interface Custom {
css: string[]
js: string[]
styles: string[]
scripts: ScriptProps[]
}
export interface Site {
favicon: string
faviconDark?: string
}
export interface Hero {
title: Title
description: string
}
export interface Title {
template: TemplateItem[]
}
export interface TemplateItem {
type: string
text?: string
class?: string
}
export interface Module {
donate: Donate
bilibili: Bilibili
activity: {
enable: boolean
endpoint: string
}
}
export interface Donate {
enable: boolean
link: string
qrcode: string[]
}
export interface Bilibili {
liveId: number
}
declare module '*?worker' {
const workerConstructor: {
new (): Worker
}
export default workerConstructor
}
}
export {}