feat: add ModelAccess to settings page (#29)

* feat: Update site name to DataMate and refine text for AI data processing

* feat: Refactor settings page and implement model access functionality

- Created a new ModelAccess component for managing model configurations.
- Removed the old Settings component and replaced it with a new SettingsPage component that integrates ModelAccess, SystemConfig, and WebhookConfig.
- Added SystemConfig component for managing system settings.
- Implemented WebhookConfig component for managing webhook configurations.
- Updated API functions for model management in settings.apis.ts.
- Adjusted routing to point to the new SettingsPage component.
This commit is contained in:
chenghh-9609
2025-10-28 16:02:18 +08:00
committed by GitHub
parent a4b5238621
commit acafe70d90
14 changed files with 662 additions and 444 deletions

View File

@@ -2,7 +2,7 @@ import { createBrowserRouter } from "react-router";
import Home from "../pages/Home/Home";
import MainLayout from "../pages/Layout/MainLayout";
import DataCollection from "@/pages/DataCollection/Home/DataCollection";
import DataCollection from "@/pages/DataCollection/Home/DataCollectionPage";
import CollectionTaskCreate from "@/pages/DataCollection/Create/CreateTask";
import DatasetManagement from "@/pages/DataManagement/Home/DataManagement";
@@ -44,7 +44,7 @@ import CreateRatioTask from "@/pages/RatioTask/CreateRatioTask";
import OrchestrationPage from "@/pages/Orchestration/Orchestration";
import WorkflowEditor from "@/pages/Orchestration/WorkflowEditor";
import AgentPage from "@/pages/Agent/Agent";
import SettingsPage from "@/pages/SettingsPage/Settings";
import SettingsPage from "@/pages/SettingsPage/SettingsPage";
import { withErrorBoundary } from "@/components/ErrorBoundary";
const router = createBrowserRouter([