Skip to content

Commit 5ef436d

Browse files
committed
docs: fix
1 parent 4fe6fe9 commit 5ef436d

File tree

5 files changed

+70
-207
lines changed

5 files changed

+70
-207
lines changed

apps/docs/components/content/AppSidebarBottom.vue

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,44 @@ import { NavItem } from '@nuxt/content/dist/runtime/types';
33
import { blocks } from '~/utils/blocks';
44
import { components } from '~/utils/components';
55
6-
type Framework = {
7-
name: 'vue' | 'react' | 'qwik';
8-
icon: string;
9-
};
10-
const framework = useCookie<Framework>('framework');
11-
126
const 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
];

apps/docs/components/content/AppSidebarTop.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const selectedFramework = useCookie('framework', {
2929
});
3030
3131
const route = useRoute();
32-
const router = useRouter();
3332
3433
watch(
3534
() => route,

apps/docs/utils/blocks.ts

Lines changed: 26 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,26 @@
1-
export const blocks = {
2-
vue: [
3-
'Alert',
4-
'Banners',
5-
'Breadcrumbs',
6-
'Card',
7-
'Checkout',
8-
'Combobox',
9-
'Filters',
10-
'Footer',
11-
'FormFields',
12-
'Gallery',
13-
'MegaMenu',
14-
'NavbarBottom',
15-
'NavbarTop',
16-
'NewsletterBox',
17-
'OrderSummary',
18-
'Pagination',
19-
'ProductCard',
20-
'ProductSlider',
21-
'QuantitySelector',
22-
'RatingForms',
23-
'Review',
24-
'Search',
25-
'SelectDropdown',
26-
'Tabs',
27-
],
28-
react: [
29-
'Alert',
30-
'Banners',
31-
'Breadcrumbs',
32-
'Card',
33-
'Checkout',
34-
'Combobox',
35-
'Filters',
36-
'Footer',
37-
'FormFields',
38-
'Gallery',
39-
'MegaMenu',
40-
'NavbarBottom',
41-
'NavbarTop',
42-
'NewsletterBox',
43-
'OrderSummary',
44-
'Pagination',
45-
'ProductCard',
46-
'ProductSlider',
47-
'QuantitySelector',
48-
'RatingForms',
49-
'Review',
50-
'Search',
51-
'SelectDropdown',
52-
'Tabs',
53-
],
54-
qwik: [
55-
'Alert',
56-
'Banners',
57-
'Breadcrumbs',
58-
'Card',
59-
'Checkout',
60-
'Combobox',
61-
'Filters',
62-
'Footer',
63-
'FormFields',
64-
'Gallery',
65-
'MegaMenu',
66-
'NavbarBottom',
67-
'NavbarTop',
68-
'NewsletterBox',
69-
'OrderSummary',
70-
'Pagination',
71-
'ProductCard',
72-
'ProductSlider',
73-
'QuantitySelector',
74-
'RatingForms',
75-
'Review',
76-
'Search',
77-
'SelectDropdown',
78-
'Tabs',
79-
],
80-
};
1+
export const blocks = [
2+
'Alert',
3+
'Banners',
4+
'Breadcrumbs',
5+
'Card',
6+
// 'Checkout',
7+
// 'Combobox',
8+
// 'Filters',
9+
'Footer',
10+
// 'FormFields',
11+
// 'Gallery',
12+
// 'MegaMenu',
13+
'NavbarBottom',
14+
'NavbarTop',
15+
'NewsletterBox',
16+
'OrderSummary',
17+
// 'Pagination',
18+
// 'ProductCard',
19+
// 'ProductSlider',
20+
// 'QuantitySelector',
21+
// 'RatingForms',
22+
// 'Review',
23+
// 'Search',
24+
// 'SelectDropdown',
25+
// 'Tabs',
26+
];

apps/docs/utils/components.ts

Lines changed: 28 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,28 @@
1-
export const components = {
2-
vue: [
3-
'SfAccordionItem',
4-
'SfBadge',
5-
'SfButton',
6-
'SfCheckbox',
7-
'SfChip',
8-
'SfCounter',
9-
'SfDrawer',
10-
'SfDropdown',
11-
'SfIconBase',
12-
'SfInput',
13-
'SfLink',
14-
'SfListItem',
15-
'SfLoaderCircular',
16-
'SfLoaderLinear',
17-
'SfModal',
18-
'SfProgressCircular',
19-
'SfProgressLinear',
20-
'SfRadio',
21-
'SfRating',
22-
'SfRatingButton',
23-
'SfScrollable',
24-
'SfSelect',
25-
'SfSwitch',
26-
'SfTextarea',
27-
'SfThumbnail',
28-
'SfTooltip',
29-
],
30-
react: [
31-
'SfAccordionItem',
32-
'SfBadge',
33-
'SfButton',
34-
'SfCheckbox',
35-
'SfChip',
36-
'SfCounter',
37-
'SfDrawer',
38-
'SfDropdown',
39-
'SfIconBase',
40-
'SfInput',
41-
'SfLink',
42-
'SfListItem',
43-
'SfLoaderCircular',
44-
'SfLoaderLinear',
45-
'SfModal',
46-
'SfProgressCircular',
47-
'SfProgressLinear',
48-
'SfRadio',
49-
'SfRating',
50-
'SfRatingButton',
51-
'SfScrollable',
52-
'SfSelect',
53-
'SfSwitch',
54-
'SfTextarea',
55-
'SfThumbnail',
56-
'SfTooltip',
57-
],
58-
qwik: [
59-
'SfAccordionItem',
60-
'SfBadge',
61-
'SfButton',
62-
'SfCheckbox',
63-
'SfChip',
64-
'SfCounter',
65-
'SfDrawer',
66-
'SfDropdown',
67-
'SfIconBase',
68-
'SfInput',
69-
'SfLink',
70-
'SfListItem',
71-
'SfLoaderCircular',
72-
'SfLoaderLinear',
73-
'SfModal',
74-
'SfProgressCircular',
75-
'SfProgressLinear',
76-
'SfRadio',
77-
'SfRating',
78-
'SfSwitch',
79-
],
80-
};
1+
export const components = [
2+
'SfAccordionItem',
3+
'SfBadge',
4+
'SfButton',
5+
'SfCheckbox',
6+
'SfChip',
7+
'SfCounter',
8+
'SfDrawer',
9+
'SfDropdown',
10+
'SfIconBase',
11+
'SfInput',
12+
'SfLink',
13+
'SfListItem',
14+
'SfLoaderCircular',
15+
'SfLoaderLinear',
16+
'SfModal',
17+
'SfProgressCircular',
18+
'SfProgressLinear',
19+
'SfRadio',
20+
'SfRating',
21+
// 'SfRatingButton',
22+
// 'SfScrollable',
23+
// 'SfSelect',
24+
'SfSwitch',
25+
// 'SfTextarea',
26+
// 'SfThumbnail',
27+
// 'SfTooltip',
28+
];

apps/docs/utils/hooks.ts

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,10 @@
1-
export const hooks = {
2-
vue: [
3-
'useDisclosure',
4-
'useDropdown',
5-
'useFocusVisible',
6-
'usePagination',
7-
'usePopover',
8-
'useScrollable',
9-
'useTooltip',
10-
'useTrapFocus',
11-
],
12-
react: [
13-
'useDisclosure',
14-
'useDropdown',
15-
'useFocusVisible',
16-
'usePagination',
17-
'usePopover',
18-
'useScrollable',
19-
'useTooltip',
20-
'useTrapFocus',
21-
],
22-
qwik: [
23-
'useDisclosure',
24-
'useDropdown',
25-
'useFocusVisible',
26-
'usePagination',
27-
'usePopover',
28-
'useScrollable',
29-
'useTooltip',
30-
'useTrapFocus',
31-
],
32-
};
1+
export const hooks = [
2+
// 'useDisclosure',
3+
// 'useDropdown',
4+
// 'useFocusVisible',
5+
// 'usePagination',
6+
// 'usePopover',
7+
// 'useScrollable',
8+
// 'useTooltip',
9+
// 'useTrapFocus',
10+
];

0 commit comments

Comments
 (0)