@@ -3,52 +3,44 @@ import { NavItem } from '@nuxt/content/dist/runtime/types';
33import { blocks } from ' ~/utils/blocks' ;
44import { components } from ' ~/utils/components' ;
55
6- type Framework = {
7- name: ' vue' | ' react' | ' qwik' ;
8- icon: string ;
9- };
10- const framework = useCookie <Framework >(' framework' );
11-
126const links = computed <NavItem []>(() => {
137 return [
148 {
159 title: ' Components' ,
1610 _path: ' /components' ,
17-
1811 children: [
1912 {
2013 title: ' All Components' ,
2114 _path: ' /components' ,
2215 _id: ' all-components' ,
2316 sidebarNesting: ' inline' ,
2417 },
25- ... ( components . qwik ? .map ((component : string ) => ({
18+ ... components .map ((component : string ) => ({
2619 title: component .replace (' Sf' , ' ' ),
2720 _path: ` /qwik/components/${component
2821 .replace (' Sf' , ' ' )
2922 .toLowerCase ()} ` ,
3023 _id: component ,
3124 sidebarNesting: ' inline' ,
32- })) ?? []) ,
25+ })),
3326 ],
3427 },
3528 {
3629 title: ' Blocks' ,
3730 _path: ' /blocks' ,
38-
3931 children: [
4032 {
4133 title: ' All Blocks' ,
4234 _path: ' /blocks' ,
4335 _id: ' all-blocks' ,
4436 sidebarNesting: ' inline' ,
4537 },
46- ... ( blocks . qwik ? .map ((block : string ) => ({
38+ ... blocks .map ((block : string ) => ({
4739 title: block .replace (' Sf' , ' ' ),
4840 _path: ` /qwik/blocks/${block .toLowerCase ()} ` ,
4941 _id: block ,
5042 sidebarNesting: ' inline' ,
51- })) ?? []) ,
43+ })),
5244 ],
5345 },
5446 // {
@@ -61,12 +53,12 @@ const links = computed<NavItem[]>(() => {
6153 // _id: 'all-hooks',
6254 // sidebarNesting: 'inline',
6355 // },
64- // ...( hooks.qwik .map((hook: string) => ({
56+ // ...hooks.map((hook: string) => ({
6557 // title: hook,
6658 // _path: `/qwik/hooks/${hook.toLowerCase()}`,
6759 // _id: hook,
6860 // sidebarNesting: 'inline',
69- // })) ?? []) ,
61+ // })),
7062 // ],
7163 // },
7264 ];
0 commit comments