metacubexd/src/main.tsx

24 lines
516 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'
import { I18nProvider } from '~/i18n'
2023-08-24 04:20:53 +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
),
document.getElementById('root')!,
2023-08-24 04:20:53 +08:00
)