2021-07-05 18:32:33 +00:00
|
|
|
import {lazy} from 'solid-js';
|
|
|
|
import {render} from 'solid-js/web';
|
2021-07-12 08:23:02 +00:00
|
|
|
import 'virtual:windi.css';
|
2021-07-05 18:32:33 +00:00
|
|
|
// eslint-disable-next-line no-unused-vars
|
2021-07-12 08:33:14 +00:00
|
|
|
import {Router} from 'solid-app-router';
|
2021-07-05 18:32:33 +00:00
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
import Default from './layouts/default.jsx';
|
|
|
|
|
2021-07-12 08:23:02 +00:00
|
|
|
const route = [
|
2021-07-05 18:32:33 +00:00
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
component: () => lazy(() => import('./pages/index.jsx')),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '*all',
|
|
|
|
component: () => lazy(() => import('./pages/index.jsx')),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
render(() => (
|
2021-07-12 08:23:02 +00:00
|
|
|
<Router routes={route}>
|
|
|
|
<Default />
|
|
|
|
</Router>
|
|
|
|
), document.getElementById('root'));
|
2021-07-05 18:32:33 +00:00
|
|
|
|