metacubexd/src/main.tsx

21 lines
433 B
TypeScript
Raw Normal View History

2023-08-24 04:20:53 +08:00
/* @refresh reload */
2023-08-30 10:41:40 +08:00
import '~/index.css'
2023-08-24 04:20:53 +08:00
import { Router, hashIntegration } from '@solidjs/router'
import dayjs from 'dayjs'
2023-09-04 18:48:39 +08:00
import 'dayjs/locale/zh-cn'
import relativeTime from 'dayjs/plugin/relativeTime'
2023-08-30 10:41:40 +08:00
import { render } from 'solid-js/web'
2023-09-01 23:25:37 +08:00
import { App } from '~/App'
2023-08-24 04:20:53 +08:00
dayjs.extend(relativeTime)
2023-08-24 04:20:53 +08:00
render(
() => (
<Router source={hashIntegration()}>
<App />
</Router>
2023-08-24 04:20:53 +08:00
),
document.getElementById('root')!,
2023-08-24 04:20:53 +08:00
)