初始提交: ScriptForge 脚本快速转运行链接服务
Some checks failed
Release / build-and-release (push) Failing after 1m31s
Some checks failed
Release / build-and-release (push) Failing after 1m31s
- Go 后端 (Gin + GORM + SQLite) 提供 API 和纯文本脚本服务 - Vite + React + TypeScript + Tailwind 前端 - 单二进制部署 (Go embed 前端静态文件) - Gitea Actions CI/CD: 打标签自动构建多平台 Release - 支持 bash/zsh/sh/fish/python3/node/ruby/php 8种运行环境 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
31
frontend/src/App.tsx
Normal file
31
frontend/src/App.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Routes, Route, Link } from 'react-router-dom'
|
||||
import Home from './pages/Home'
|
||||
import ScriptDetail from './pages/ScriptDetail'
|
||||
import DeleteScript from './pages/DeleteScript'
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<div className="min-h-screen flex flex-col">
|
||||
<header className="border-b border-gray-800">
|
||||
<div className="max-w-4xl mx-auto px-4 py-4 flex items-center justify-between">
|
||||
<Link to="/" className="text-xl font-bold tracking-tight hover:text-blue-400 transition-colors">
|
||||
<span className="text-blue-500">⚡</span> ScriptForge
|
||||
</Link>
|
||||
<span className="text-sm text-gray-500">脚本快速转运行链接</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main className="flex-1 max-w-4xl mx-auto px-4 py-8 w-full">
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
<Route path="/s/:id" element={<ScriptDetail />} />
|
||||
<Route path="/s/:id/delete" element={<DeleteScript />} />
|
||||
</Routes>
|
||||
</main>
|
||||
|
||||
<footer className="border-t border-gray-800 text-center text-xs text-gray-600 py-4">
|
||||
ScriptForge
|
||||
</footer>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user