generated from kevisual/vite-react-template
feat: 更新页面语言为中文并添加评论功能的 HTML 模板
This commit is contained in:
@@ -3,6 +3,7 @@ import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'
|
||||
import { Toaster } from '@/components/ui/sonner'
|
||||
import { useConfigStore } from '@/app/config/store'
|
||||
import { useEffect } from 'react'
|
||||
import { Settings } from 'lucide-react'
|
||||
export const Route = createRootRoute({
|
||||
component: RootComponent,
|
||||
})
|
||||
@@ -20,18 +21,26 @@ function RootComponent() {
|
||||
return (
|
||||
<div className='h-full overflow-hidden'>
|
||||
|
||||
<div className="p-2 flex gap-2 text-lg">
|
||||
<div className="p-2 flex gap-2 text-lg items-center">
|
||||
<Link
|
||||
to="/"
|
||||
activeProps={{
|
||||
className: 'font-bold',
|
||||
className: 'text-gray-800',
|
||||
}}
|
||||
inactiveProps={{
|
||||
className: 'text-gray-500',
|
||||
}}
|
||||
activeOptions={{ exact: true }}
|
||||
>
|
||||
仓库列表
|
||||
</Link>
|
||||
<Link to='/config'>
|
||||
配置项
|
||||
<Link to='/config' activeProps={{
|
||||
className: 'text-gray-800',
|
||||
}}
|
||||
inactiveProps={{
|
||||
className: 'text-gray-500',
|
||||
}}
|
||||
>
|
||||
<Settings className="h-5 w-5" />
|
||||
</Link>
|
||||
</div>
|
||||
<hr />
|
||||
|
||||
Reference in New Issue
Block a user