@@ -7,17 +7,6 @@ import { getViteClient } from 'vite-hot-client'
7
7
import { createApp } from 'vue'
8
8
import { createMemoryHistory , createRouter } from 'vue-router'
9
9
import WaitForConnection from '~/components/WaitForConnection.vue'
10
- import Assets from '~/pages/assets.vue'
11
- import Components from '~/pages/components.vue'
12
- import CustomInspectorTabView from '~/pages/custom-inspector-tab-view.vue'
13
- import CustomTabView from '~/pages/custom-tab-view.vue'
14
- import Graph from '~/pages/graph.vue'
15
- import Overview from '~/pages/overview.vue'
16
- import Pages from '~/pages/pages.vue'
17
- import PiniaPage from '~/pages/pinia.vue'
18
- import RouterPage from '~/pages/router.vue'
19
- import Settings from '~/pages/settings.vue'
20
- import Timeline from '~/pages/timeline.vue'
21
10
import App from './App.vue'
22
11
import '@unocss/reset/tailwind.css'
23
12
import 'uno.css'
@@ -27,17 +16,17 @@ import '~/assets/styles/main.css'
27
16
28
17
const routes = [
29
18
{ path : '/' , redirect : '/components' } ,
30
- { path : '/overview' , component : Overview } ,
31
- { path : '/components' , component : Components } ,
32
- { path : '/pinia' , component : PiniaPage } ,
33
- { path : '/router' , component : RouterPage } ,
34
- { path : '/pages' , component : Pages } ,
35
- { path : '/timeline' , component : Timeline } ,
36
- { path : '/assets' , component : Assets } ,
37
- { path : '/graph' , component : Graph } ,
38
- { path : '/settings' , component : Settings } ,
39
- { path : `/${ CUSTOM_TAB_VIEW } /:name` , component : CustomTabView } ,
40
- { path : `/${ CUSTOM_INSPECTOR_TAB_VIEW } /:name` , component : CustomInspectorTabView } ,
19
+ { path : '/overview' , component : ( ) => import ( '~/pages/overview.vue' ) } ,
20
+ { path : '/components' , component : ( ) => import ( '~/pages/components.vue' ) } ,
21
+ { path : '/pinia' , component : ( ) => import ( '~/pages/pinia.vue' ) } ,
22
+ { path : '/router' , component : ( ) => import ( '~/pages/router.vue' ) } ,
23
+ { path : '/pages' , component : ( ) => import ( '~/pages/pages.vue' ) } ,
24
+ { path : '/timeline' , component : ( ) => import ( '~/pages/timeline.vue' ) } ,
25
+ { path : '/assets' , component : ( ) => import ( '~/pages/assets.vue' ) } ,
26
+ { path : '/graph' , component : ( ) => import ( '~/pages/graph.vue' ) } ,
27
+ { path : '/settings' , component : ( ) => import ( '~/pages/settings.vue' ) } ,
28
+ { path : `/${ CUSTOM_TAB_VIEW } /:name` , component : ( ) => import ( '~/pages/custom-tab-view.vue' ) } ,
29
+ { path : `/${ CUSTOM_INSPECTOR_TAB_VIEW } /:name` , component : ( ) => import ( '~/pages/custom-inspector-tab-view.vue' ) } ,
41
30
]
42
31
43
32
const router = createRouter ( {
0 commit comments