|
1 |
| -import type { NSSidebarGroup } from '../../.vitepress/theme/vitepress-theme' |
| 1 | +import type { NSSidebarItem } from '../../.vitepress/theme/vitepress-theme' |
2 | 2 |
|
3 | 3 | export default [
|
4 | 4 | {
|
5 |
| - text: 'Layout Containers', |
6 |
| - link: '/ui/#layout-containers', |
| 5 | + text: 'UI Components', |
| 6 | + link: '/ui/', |
| 7 | + // hides the sidebar item from the sidebar, but keeps it in the breadcrumbs |
| 8 | + visible: false, |
| 9 | + // todo: add a different type to disable indentation on the root level |
| 10 | + type: 'filetree', |
7 | 11 | items: [
|
8 |
| - { text: 'StackLayout', link: '/ui/stack-layout' }, |
9 |
| - { text: 'GridLayout', link: '/ui/grid-layout' }, |
10 |
| - { text: 'RootLayout', link: '/ui/root-layout' }, |
11 |
| - { text: 'FlexboxLayout', link: '/ui/flexbox-layout' }, |
12 |
| - { text: 'WrapLayout', link: '/ui/wrap-layout' }, |
13 |
| - { text: 'DockLayout', link: '/ui/dock-layout' }, |
14 |
| - { text: 'AbsoluteLayout', link: '/ui/absolute-layout' }, |
15 |
| - ], |
16 |
| - }, |
17 |
| - { |
18 |
| - text: 'Navigation Components', |
19 |
| - link: '/ui/#navigation-containers', |
20 |
| - items: [ |
21 |
| - // { text: 'Frame', link: '//#' }, |
22 |
| - { text: 'Page', link: '/ui/page' }, |
23 |
| - { text: 'ActionBar', link: '/ui/action-bar' }, |
24 |
| - // { text: 'ActionItem', link: '//#' }, |
25 |
| - // { text: 'NavigationButton', link: '//#' }, |
26 |
| - // todo: move this elsewhere |
27 | 12 | {
|
28 |
| - text: 'Showing Modal', |
29 |
| - link: '/guide/ui/showing-modal', |
| 13 | + text: 'Layout Containers', |
| 14 | + link: '/ui/#layout-containers', |
| 15 | + items: [ |
| 16 | + { text: 'StackLayout', link: '/ui/stack-layout' }, |
| 17 | + { text: 'GridLayout', link: '/ui/grid-layout' }, |
| 18 | + { text: 'RootLayout', link: '/ui/root-layout' }, |
| 19 | + { text: 'FlexboxLayout', link: '/ui/flexbox-layout' }, |
| 20 | + { text: 'WrapLayout', link: '/ui/wrap-layout' }, |
| 21 | + { text: 'DockLayout', link: '/ui/dock-layout' }, |
| 22 | + { text: 'AbsoluteLayout', link: '/ui/absolute-layout' }, |
| 23 | + ], |
| 24 | + }, |
| 25 | + { |
| 26 | + text: 'Navigation Components', |
| 27 | + link: '/ui/#navigation-containers', |
| 28 | + items: [ |
| 29 | + // { text: 'Frame', link: '//#' }, |
| 30 | + { text: 'Page', link: '/ui/page' }, |
| 31 | + { text: 'ActionBar', link: '/ui/action-bar' }, |
| 32 | + // { text: 'ActionItem', link: '//#' }, |
| 33 | + // { text: 'NavigationButton', link: '//#' }, |
| 34 | + // todo: move this elsewhere |
| 35 | + { |
| 36 | + text: 'Showing Modal', |
| 37 | + link: '/guide/ui/showing-modal', |
| 38 | + }, |
| 39 | + ], |
| 40 | + }, |
| 41 | + { |
| 42 | + text: 'Components', |
| 43 | + link: '/ui/#components', |
| 44 | + items: [ |
| 45 | + { text: 'ActivityIndicator', link: '/ui/activity-indicator' }, |
| 46 | + { text: 'Button', link: '/ui/button' }, |
| 47 | + { text: 'DatePicker', link: '/ui/datepicker' }, |
| 48 | + { text: 'HtmlView', link: '/ui/htmlview' }, |
| 49 | + { text: 'Image', link: '/ui/image' }, |
| 50 | + { text: 'Label', link: '/ui/label' }, |
| 51 | + { text: 'ListPicker', link: '/ui/listpicker' }, |
| 52 | + { text: 'ListView', link: '/ui/listview' }, |
| 53 | + { text: 'Placeholder', link: '/ui/placeholder' }, |
| 54 | + { text: 'Progress', link: '/ui/progress' }, |
| 55 | + { text: 'ScrollView', link: '/ui/scrollview' }, |
| 56 | + { text: 'SearchBar', link: '/ui/searchbar' }, |
| 57 | + { text: 'SegmentedBar', link: '/ui/segmentedbar' }, |
| 58 | + { text: 'Slider', link: '/ui/slider' }, |
| 59 | + { text: 'Switch', link: '/ui/switch' }, |
| 60 | + { text: 'TabView', link: '/ui/tabview' }, |
| 61 | + { text: 'TextField', link: '/ui/textfield' }, |
| 62 | + { text: 'TextView', link: '/ui/textview' }, |
| 63 | + { text: 'TimePicker', link: '/ui/timepicker' }, |
| 64 | + { text: 'WebView', link: '/ui/webview' }, |
| 65 | + ], |
30 | 66 | },
|
31 | 67 | ],
|
32 | 68 | },
|
33 |
| - { |
34 |
| - text: 'Components', |
35 |
| - link: '/ui/#components', |
36 |
| - items: [ |
37 |
| - { text: 'ActivityIndicator', link: '/ui/activity-indicator' }, |
38 |
| - { text: 'Button', link: '/ui/button' }, |
39 |
| - { text: 'DatePicker', link: '/ui/datepicker' }, |
40 |
| - { text: 'HtmlView', link: '/ui/htmlview' }, |
41 |
| - { text: 'Image', link: '/ui/image' }, |
42 |
| - { text: 'Label', link: '/ui/label' }, |
43 |
| - { text: 'ListPicker', link: '/ui/listpicker' }, |
44 |
| - { text: 'ListView', link: '/ui/listview' }, |
45 |
| - { text: 'Placeholder', link: '/ui/placeholder' }, |
46 |
| - { text: 'Progress', link: '/ui/progress' }, |
47 |
| - { text: 'ScrollView', link: '/ui/scrollview' }, |
48 |
| - { text: 'SearchBar', link: '/ui/searchbar' }, |
49 |
| - { text: 'SegmentedBar', link: '/ui/segmentedbar' }, |
50 |
| - { text: 'Slider', link: '/ui/slider' }, |
51 |
| - { text: 'Switch', link: '/ui/switch' }, |
52 |
| - { text: 'TabView', link: '/ui/tabview' }, |
53 |
| - { text: 'TextField', link: '/ui/textfield' }, |
54 |
| - { text: 'TextView', link: '/ui/textview' }, |
55 |
| - { text: 'TimePicker', link: '/ui/timepicker' }, |
56 |
| - { text: 'WebView', link: '/ui/webview' }, |
57 |
| - ], |
58 |
| - }, |
59 |
| -] as NSSidebarGroup[] |
| 69 | +] as NSSidebarItem[] |
0 commit comments