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
|
|
|
|
2023-08-27 16:41:09 +08:00
|
|
|
import { Router, hashIntegration } from '@solidjs/router'
|
2023-09-03 05:35:08 +08:00
|
|
|
import dayjs from 'dayjs'
|
2023-09-04 18:48:39 +08:00
|
|
|
import 'dayjs/locale/zh-cn'
|
2023-09-03 05:35:08 +08:00
|
|
|
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'
|
|
|
|
import { I18nProvider } from '~/i18n'
|
2023-08-24 04:20:53 +08:00
|
|
|
|
2023-09-03 05:35:08 +08:00
|
|
|
dayjs.extend(relativeTime)
|
2023-08-24 04:20:53 +08:00
|
|
|
|
|
|
|
render(
|
|
|
|
() => (
|
2023-09-01 23:25:37 +08:00
|
|
|
<I18nProvider>
|
2023-09-01 16:30:23 +08:00
|
|
|
<Router source={hashIntegration()}>
|
|
|
|
<App />
|
|
|
|
</Router>
|
2023-09-01 23:25:37 +08:00
|
|
|
</I18nProvider>
|
2023-08-24 04:20:53 +08:00
|
|
|
),
|
2023-09-03 05:35:08 +08:00
|
|
|
document.getElementById('root')!,
|
2023-08-24 04:20:53 +08:00
|
|
|
)
|