mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
21 lines
433 B
TypeScript
21 lines
433 B
TypeScript
/* @refresh reload */
|
|
import '~/index.css'
|
|
|
|
import { Router, hashIntegration } from '@solidjs/router'
|
|
import dayjs from 'dayjs'
|
|
import 'dayjs/locale/zh-cn'
|
|
import relativeTime from 'dayjs/plugin/relativeTime'
|
|
import { render } from 'solid-js/web'
|
|
import { App } from '~/App'
|
|
|
|
dayjs.extend(relativeTime)
|
|
|
|
render(
|
|
() => (
|
|
<Router source={hashIntegration()}>
|
|
<App />
|
|
</Router>
|
|
),
|
|
document.getElementById('root')!,
|
|
)
|