Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add control center route and link to the sidebar

天舟0b7fcadd6372
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 3bb7b887b2..c66461da64 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -191,6 +191,19 @@ const routes: Array<RouteRecordRaw> = [
leftSidebar: true,
},
},
+ {
+ path: "control-center",
+ name: "workspace.control-center",
+ meta: { title: () => "Control Center" },
+ components: {
+ content: () => import("../views/ControlCenterDashboard.vue"),
+ leftSidebar: DashboardSidebar,
+ },
+ props: {
+ content: true,
+ leftSidebar: true,
+ },
+ },
{
path: "archive",
name: "workspace.archive",
@@ -860,6 +873,7 @@ router.beforeEach((to, from, next) => {
to.name === "oauth-callback" ||
to.name === "workspace.home" ||
to.name === "workspace.inbox" ||
+ to.name === "workspace.control-center" ||
to.name === "workspace.project" ||
to.name === "workspace.database" ||
to.name === "workspace.archive" ||
diff --git a/frontend/src/views/ControlCenterDashboard.vue b/frontend/src/views/ControlCenterDashboard.vue
new file mode 100644
index 0000000000..dca19bb869
--- /dev/null
+++ b/frontend/src/views/ControlCenterDashboard.vue
@@ -0,0 +1,13 @@
+<template>
+ <div>Control Center</div>
+</template>
+
+<script lang="ts">
+export default {
+ name: "ControlCenterDashboard",
+ components: {},
+ setup(props, ctx) {
+ return {};
+ },
+};
+</script>
diff --git a/frontend/src/views/DashboardSidebar.vue b/frontend/src/views/DashboardSidebar.vue
index 55b2c172a6..938f32fdc3 100644
--- a/frontend/src/views/DashboardSidebar.vue
+++ b/frontend/src/views/DashboardSidebar.vue
@@ -64,6 +64,22 @@
></path>
</svg>
</router-link>
+ <router-link
+ to="/control-center"
+ class="outline-item group flex items-center px-2 py-2"
+ >
+ <svg
+ class="w-5 h-5 mr-2"
+ fill="currentColor"
+ viewBox="0 0 20 20"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"
+ ></path>
+ </svg>
+ Control Center
+ </router-link>
<div>
<BookmarkListSidePanel />
</div>