From 9430bee86fbf943283eb5a6f63bd750b875ff433 Mon Sep 17 00:00:00 2001
From: 苏向夜 <fu050409@163.com>
Date: Fri, 23 Jan 2026 20:51:28 +0800
Subject: feat(ui): add new ui project

---
 packages/ui-new/src/main.tsx | 48 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 packages/ui-new/src/main.tsx

(limited to 'packages/ui-new/src/main.tsx')

diff --git a/packages/ui-new/src/main.tsx b/packages/ui-new/src/main.tsx
new file mode 100644
index 0000000..e2ae9c2
--- /dev/null
+++ b/packages/ui-new/src/main.tsx
@@ -0,0 +1,48 @@
+import { StrictMode } from "react";
+import { createRoot } from "react-dom/client";
+import "./index.css";
+import { createHashRouter, RouterProvider } from "react-router";
+import { Toaster } from "./components/ui/sonner";
+import { AssistantView } from "./pages/assistant-view";
+import { HomeView } from "./pages/home-view";
+import { IndexPage } from "./pages/index";
+import { InstancesView } from "./pages/instances-view";
+import { SettingsView } from "./pages/settings-view";
+import { VersionsView } from "./pages/versions-view";
+
+const router = createHashRouter([
+  {
+    path: "/",
+    element: <IndexPage />,
+    children: [
+      {
+        index: true,
+        element: <HomeView />,
+      },
+      {
+        path: "instances",
+        element: <InstancesView />,
+      },
+      {
+        path: "versions",
+        element: <VersionsView />,
+      },
+      {
+        path: "settings",
+        element: <SettingsView />,
+      },
+      {
+        path: "guide",
+        element: <AssistantView />,
+      },
+    ],
+  },
+]);
+
+const root = createRoot(document.getElementById("root") as HTMLElement);
+root.render(
+  <StrictMode>
+    <RouterProvider router={router} />
+    <Toaster />
+  </StrictMode>,
+);
-- 
cgit v1.2.3-70-g09d2

