File tree Expand file tree Collapse file tree 2 files changed +57
-69
lines changed Expand file tree Collapse file tree 2 files changed +57
-69
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { render } from 'solid-js/web' ;
2- import { Router } from 'solid-app-router' ;
32
4- import App from './App' ;
3+ import { Router , Route } from '@solidjs/router' ;
4+ import { lazy } from 'solid-js' ;
5+ import AppShellView from './views/app/AppShell.view' ;
6+ import DocsShellView from './views/docs/DocsShell/DocsShell.view' ;
7+ import DocsView from './views/docs/Docs.view' ;
8+ import ApiView from './views/docs/Api/Api.view' ;
9+ import HomeView from './views/home/Home.view' ;
10+ import ApiRootView from './views/docs/Api/ApiRoot.view' ;
11+ import DemoView from './views/demo/Demo.view' ;
512
613const appRender = ( ) => {
714 return (
8- < Router >
9- < App />
15+ < Router root = { AppShellView } >
16+ < Route
17+ path = "/"
18+ component = { HomeView }
19+ />
20+ < Route
21+ path = "/demo"
22+ component = { DemoView }
23+ />
24+ < Route
25+ path = "/docs"
26+ component = { DocsShellView }
27+ >
28+ < Route
29+ path = "/"
30+ component = { DocsView }
31+ />
32+ < Route
33+ path = "/overview"
34+ component = { lazy ( ( ) => import ( './views/docs/introduction/Overview.view' ) ) }
35+ />
36+ < Route
37+ path = "/installation"
38+ component = { lazy ( ( ) => import ( './views/docs/introduction/Installation.view' ) ) }
39+ />
40+
41+ < Route
42+ path = "/api"
43+ component = { ApiRootView }
44+ >
45+ < Route
46+ path = "/"
47+ component = { ApiView }
48+ />
49+ < Route
50+ path = "/define-action"
51+ component = { lazy ( ( ) => import ( './views/docs/Api/ApiDefineAction.view' ) ) }
52+ />
53+ < Route
54+ path = "/root"
55+ component = { lazy ( ( ) => import ( './views/docs/Api/ApiRoot.view' ) ) }
56+ />
57+ < Route
58+ path = "/command-palette"
59+ component = { lazy ( ( ) => import ( './views/docs/Api/ApiCommandPalette.view' ) ) }
60+ />
61+ </ Route >
62+ </ Route >
1063 </ Router >
1164 ) ;
1265} ;
You can’t perform that action at this time.
0 commit comments