feat: dash command

This commit is contained in:
hamster1963
2025-01-24 01:08:25 +08:00
parent 733767a363
commit c5f81d70d4
9 changed files with 230 additions and 127 deletions
+2
View File
@@ -15,6 +15,7 @@ import ErrorPage from "./pages/ErrorPage"
import NotFound from "./pages/NotFound"
import Server from "./pages/Server"
import ServerDetail from "./pages/ServerDetail"
import { DashCommand } from "./components/DashCommand"
const App: React.FC = () => {
const { data: settingData, error } = useQuery({
@@ -90,6 +91,7 @@ const App: React.FC = () => {
<main className="flex z-20 min-h-[calc(100vh-calc(var(--spacing)*16))] flex-1 flex-col gap-4 p-4 md:p-10 md:pt-8">
<RefreshToast />
<Header />
<DashCommand />
<Routes>
<Route path="/" element={<Server />} />
<Route path="/server/:id" element={<ServerDetail />} />