forked from viandwi24/nuxt3-awesome-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.config.ts
125 lines (118 loc) · 2.74 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
import type { RouteLocationRaw } from 'vue-router'
import {
AwesomeLayoutPageNavbarMenu,
AwesomeLayoutPageNavbarMenuDropdownItem,
} from './types'
import { NuxtApp } from '#app'
export interface NuxtAwesomeAppConfig {
/** title name */
name?: string
/** description */
description?: string
/** project config */
project?: {
/** links */
links?: {
/** project github link */
github?: string
}
}
/** layout config */
layout?: {
/** page layout */
page?: {
/** navbar */
navbar?: {
/** menus in navbar */
menus?: AwesomeLayoutPageNavbarMenu[]
}
}
/** footer */
footer?: {
/** footer year */
year?: number
}
/** welcome component page */
welcome?: {
title?: string
disableInfoReplaceIndexInWelcomePage?: boolean
primaryActionButton?: {
title?: string
to?: RouteLocationRaw | ((nuxt: NuxtApp) => RouteLocationRaw)
}
secondaryActionButton?: {
title?: string
to?: RouteLocationRaw | ((nuxt: NuxtApp) => RouteLocationRaw)
}
}
}
/** author config */
author?: {
/** author name */
name?: string
/** author links */
links?: {
/** author github link */
github?: string
/** author medium link */
medium?: string
/** author website link */
website?: string
}
}
/** author config */
disableInfoReplaceIndexInWelcomePage?: boolean
}
declare module '@nuxt/schema' {
interface AppConfigInput {
awesome?: NuxtAwesomeAppConfig
}
}
export default defineAppConfig({
awesome: {
name: 'Nuxt 3 Awesome Starter',
description:
'a starter template for Nuxt 3 with minimalist themes design, built in components, drawer & menus, and more.',
project: {
links: {
github: 'https://github.com/viandwi24/nuxt3-awesome-starter',
},
},
layout: {
page: {
navbar: {
menus: [],
},
},
footer: {
year: new Date().getFullYear(),
},
welcome: {
title: 'Nuxt 3 Awesome Starter',
disableInfoReplaceIndexInWelcomePage: true,
primaryActionButton: {
title: 'Nuxt 3',
to: 'https://nuxt.com/',
},
secondaryActionButton: {
title: 'Github',
to: 'https://github.com/viandwi24/nuxt3-awesome-starter',
},
},
},
author: {
name: 'viandwi24',
links: {
github: 'https://github.com/viandwi24',
medium: 'https://viandwi24.medium.com',
website: 'https://viandwi24.site',
},
},
disableInfoReplaceIndexInWelcomePage: false,
} as NuxtAwesomeAppConfig,
nuxtIcon: {
aliases: {},
class: '',
size: '1em',
},
})