-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.config.ts
196 lines (195 loc) · 6.16 KB
/
app.config.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
import pkg from './package.json'
export default defineAppConfig({
unaContent: {
header: {
darkModeToggle: true,
showLoadingIndicator: true,
showLogo: true,
showTitle: false,
packageVersionNav: {
enable: true,
label: `v${pkg.version}`,
items: [
{
label: 'Release Notes',
to: 'https://github.com/una-ui/una-ui/releases',
trailing: 'i-heroicons-arrow-up-right text-10px',
},
{
label: 'Contributing',
to: 'https://github.com/una-ui/una-ui/blob/main/CONTRIBUTING.md',
trailing: 'i-heroicons-arrow-up-right text-10px',
},
],
},
nav: [{
title: 'Docs',
links: [{
title: 'Getting Started',
to: '/getting-started',
description: 'Start building your document with una-content',
}, {
title: 'API',
to: '/api',
description: 'Discover the configurations and exposed APIs.',
target: '_self',
}],
}, {
title: 'Credits',
links: [
{
title: 'Una UI',
to: 'https://unaui.com/',
description: 'For the beautiful component design',
target: '_blank',
},
{
title: 'shadcn-ui',
to: 'https://ui.shadcn.com/',
description: 'For the beautiful component design & docs design',
target: '_blank',
},
{
title: 'shadcn-vue',
to: 'https://www.shadcn-vue.com/',
description: 'For the vue port of shadcn-ui & some docs component source',
target: '_blank',
},
{
title: 'Nuxt Content',
to: 'https://content.nuxt.com/',
description: 'Content made easy for Vue Developers',
target: '_blank',
},
],
}, {
title: 'Use This Template',
to: '/getting-started/installation',
target: '_self',
}],
links: [
{
icon: 'i-radix-icons-github-logo',
to: 'https://github.com/una-ui/content',
target: '_blank',
},
{
icon: 'i-tabler-brand-x',
to: 'https://x.com/phojiee',
target: '_blank',
},
{
icon: 'i-tabler-brand-discord-filled',
to: 'https://discord.gg/gmdTPGkxRs',
target: '_blank',
},
],
},
aside: {
useLevel: true,
collapse: false,
},
main: {
breadCrumb: true,
showTitle: true,
codeCopyToast: true,
editLink: {
enable: true,
pattern: 'https://github.com/una-ui/content/tree/main/content/:path',
text: 'Edit this page',
icon: 'lucide:square-pen',
placement: ['docsFooter', 'toc'],
},
codeIcon: {
'package.json': 'vscode-icons:file-type-node',
'tsconfig.json': 'vscode-icons:file-type-tsconfig',
'.npmrc': 'vscode-icons:file-type-npm',
'.editorconfig': 'vscode-icons:file-type-editorconfig',
'.eslintrc': 'vscode-icons:file-type-eslint',
'.eslintrc.cjs': 'vscode-icons:file-type-eslint',
'.eslintignore': 'vscode-icons:file-type-eslint',
'eslint.config.js': 'vscode-icons:file-type-eslint',
'eslint.config.mjs': 'vscode-icons:file-type-eslint',
'eslint.config.cjs': 'vscode-icons:file-type-eslint',
'.gitignore': 'vscode-icons:file-type-git',
'yarn.lock': 'vscode-icons:file-type-yarn',
'.env': 'vscode-icons:file-type-dotenv',
'.env.example': 'vscode-icons:file-type-dotenv',
'.vscode/settings.json': 'vscode-icons:file-type-vscode',
'nuxt': 'vscode-icons:file-type-nuxt',
'.nuxtrc': 'vscode-icons:file-type-nuxt',
'.nuxtignore': 'vscode-icons:file-type-nuxt',
'nuxt.config.js': 'vscode-icons:file-type-nuxt',
'nuxt.config.ts': 'vscode-icons:file-type-nuxt',
'nuxt.schema.ts': 'vscode-icons:file-type-nuxt',
'tailwind.config.js': 'vscode-icons:file-type-tailwind',
'tailwind.config.ts': 'vscode-icons:file-type-tailwind',
'vue': 'vscode-icons:file-type-vue',
'ts': 'vscode-icons:file-type-typescript',
'tsx': 'vscode-icons:file-type-typescript',
'mjs': 'vscode-icons:file-type-js',
'cjs': 'vscode-icons:file-type-js',
'js': 'vscode-icons:file-type-js',
'jsx': 'vscode-icons:file-type-js',
'md': 'vscode-icons:file-type-markdown',
'mdc': 'vscode-icons:file-type-markdown',
'py': 'vscode-icons:file-type-python',
'npm': 'vscode-icons:file-type-npm',
'pnpm': 'vscode-icons:file-type-pnpm',
'npx': 'vscode-icons:file-type-npm',
'yarn': 'vscode-icons:file-type-yarn',
'bun': 'vscode-icons:file-type-bun',
'yml': 'vscode-icons:file-type-yaml',
'json': 'vscode-icons:file-type-json',
'terminal': 'lucide:terminal',
},
},
footer: {
credits: 'Copyright © 2024',
links: [
{
label: 'i-radix-icons-github-logo',
icon: true,
square: true,
to: 'https://github.com/una-ui/content',
target: '_blank',
},
],
},
toc: {
enable: true,
title: 'On This Page',
links: [{
title: 'Star on GitHub',
icon: 'lucide:star',
to: 'https://github.com/una-ui/una-ui',
target: '_blank',
}, {
title: 'Create Issues',
icon: 'lucide:circle-dot',
to: 'https://github.com/una-ui/una-ui/issues',
target: '_blank',
}, {
title: 'Release Notes',
icon: 'lucide:book',
to: 'https://github.com/una-ui/una-ui/releases',
target: '_blank',
}, {
title: 'Sponsor the Project',
icon: 'lucide:heart',
to: 'https://github.com/sponsors/phojie',
target: '_blank',
}, {
title: 'Release Notes',
icon: 'lucide:file-text',
to: 'https://github.com/una-ui/una-ui/releases',
target: '_blank',
}],
},
search: {
enable: true,
style: 'input',
inAside: false,
},
},
})