feat: add modelling layer

This commit is contained in:
qixinbo
2026-03-16 22:18:23 +08:00
parent a1a855a126
commit 720c30a893
16 changed files with 1115 additions and 106 deletions
+9
View File
@@ -10,6 +10,7 @@ import { Projects } from "./pages/Projects";
import { Login } from "./pages/Login";
import { ModelConfigs } from "./pages/ModelConfigs";
import { DataSources } from "./pages/DataSources";
import { Modeling } from "./pages/Modeling";
import { useAuthStore } from "./store/authStore";
// Protected Route Component
@@ -115,6 +116,14 @@ function App() {
</MainLayout>
</ProtectedRoute>
} />
<Route path="/modeling/:id" element={
<ProtectedRoute requireAdmin={true}>
<MainLayout>
<Modeling />
</MainLayout>
</ProtectedRoute>
} />
</Routes>
</BrowserRouter>
);