Skip to content

Commit 628ce15

Browse files
committed
feat: add navigation config
1 parent 1bfc126 commit 628ce15

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/module.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ export default defineNuxtModule<ModuleOptions>({
5454
buttonUrl: '',
5555
},
5656

57+
// Navigation
58+
navigation: {
59+
primary: [],
60+
secondary: [],
61+
altPrimary: [],
62+
altSecondary: [],
63+
},
64+
5765
// Credits
5866
credits: {
5967
creator: {

src/types.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
interface Link {
2+
text: string
3+
to?: string
4+
href?: string
5+
icon?: string
6+
openInNew?: boolean
7+
}
8+
9+
interface TitledLinks {
10+
title: string
11+
links: Link[]
12+
}
13+
114
interface BrandOptions {
215
/**
316
* The name of the brand.
@@ -79,6 +92,16 @@ export interface ModuleOptions {
7992
buttonUrl?: string
8093
}
8194

95+
/**
96+
* Navigation options
97+
*/
98+
navigation?: {
99+
primary?: Link[]
100+
secondary?: Link[]
101+
altPrimary?: TitledLinks[]
102+
altSecondary?: Link[]
103+
}
104+
82105
/**
83106
* Credits options
84107
*/

0 commit comments

Comments
 (0)