Skip to content

Commit 2c526be

Browse files
committed
docs(app): updte types and add missing labs category
1 parent 485f520 commit 2c526be

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/docs/src/store/app.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,19 @@ import { defineStore } from 'pinia'
55
import data from '@/data/nav.json'
66

77
// Types
8+
export type Category = {
9+
icon: string
10+
color: string
11+
}
12+
813
export type RootState = {
914
apiSearch: string
1015
drawer: boolean | null
11-
settings: boolean
1216
toc: boolean | null
17+
items: NavItem[]
18+
pages: string[]
19+
settings: boolean
20+
categories: Record<string, Category>
1321
}
1422

1523
type NavItem = {
@@ -71,6 +79,10 @@ export const useAppStore = defineStore({
7179
icon: 'mdi-script-text-outline',
7280
color: 'pink',
7381
},
82+
labs: {
83+
icon: 'mdi-beaker-outline',
84+
color: 'purple',
85+
},
7486
},
7587
} as RootState),
7688
})

0 commit comments

Comments
 (0)