feat: 更新页面语言为中文并添加评论功能的 HTML 模板

This commit is contained in:
2026-02-20 04:02:53 +08:00
parent 6750a8858d
commit a934a7620d
5 changed files with 128 additions and 39 deletions

View File

@@ -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 />