-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathApp.tsx
More file actions
73 lines (69 loc) · 2.08 KB
/
Copy pathApp.tsx
File metadata and controls
73 lines (69 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { Component, lazy } from 'solid-js';
import { RouteDefinition, useRoutes } from 'solid-app-router';
import AppShellView from './views/app/AppShell.view';
import DocsShellView from './views/docs/DocsShell/DocsShell.view';
import DocsView from './views/docs/Docs.view';
import ApiView from './views/docs/Api/Api.view';
import HomeView from './views/home/Home.view';
const routes: Array<RouteDefinition> = [
{
path: '/',
component: AppShellView,
children: [
{
path: '/docs',
component: DocsShellView,
children: [
{
path: '/',
component: DocsView,
},
{
path: '/overview',
component: lazy(() => import('./views/docs/introduction/Overview.view')),
},
{
path: '/installation',
component: lazy(() => import('./views/docs/introduction/Installation.view')),
},
{
path: '/api',
children: [
{ path: '/', component: ApiView },
{
path: '/define-action',
component: lazy(() => import('./views/docs/Api/ApiDefineAction.view')),
},
{ path: '/root', component: lazy(() => import('./views/docs/Api/ApiRoot.view')) },
{
path: '/command-palette',
component: lazy(() => import('./views/docs/Api/ApiCommandPalette.view')),
},
],
},
],
},
{
path: '/demo',
component: lazy(() => import('./views/demo/Default.view')),
},
{
path: '/demo/InitialVisibleActions/All',
component: lazy(() => import('./views/demo/InitialVisibleActions-All.view')),
},
{
path: '/demo/InitialVisibleActions/Root',
component: lazy(() => import('./views/demo/InitialVisibleActions-Root.view')),
},
{
path: '/',
component: HomeView,
},
],
},
];
const App: Component = () => {
const Routes = useRoutes(routes);
return <Routes />;
};
export default App;