Initial commit: TaskPool React panel

- React frontend with route-level code splitting
- Backend rebranded from Baihu to TaskPool
- DB brand migration script and local compatibility
This commit is contained in:
2026-07-26 08:43:52 +08:00
commit e6956aa001
397 changed files with 73621 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import { useEffect } from 'react'
import { useNavigate } from '@tanstack/react-router'
import { FileCode } from 'lucide-react'
import { Button, Card, PageHeader } from '@/components/ui'
/** 兼容旧路由:脚本管理已合并到编辑器 */
export default function Scripts() {
const navigate = useNavigate()
useEffect(() => {
navigate({ to: '/editor' })
}, [navigate])
return (
<div>
<PageHeader title="脚本管理" description="已合并到脚本编辑器" />
<Card className="p-8 text-center">
<FileCode className="mx-auto mb-3 opacity-50" size={32} />
<p className="mb-4 text-sm text-[var(--text-muted)]">...</p>
<Button onClick={() => navigate({ to: '/editor' })}></Button>
</Card>
</div>
)
}