Skip to content

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

workspace version control setting basic step stub

天舟660679e598e8
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 46f16b3d56..ff7fa60d80 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -246,6 +246,13 @@ const routes: Array<RouteRecordRaw> = [
component: () => import("../views/SettingWorkspaceMember.vue"),
props: true,
},
+ {
+ path: "version-control",
+ name: "setting.workspace.version-control",
+ meta: { title: () => "Version Control" },
+ component: () => import("../views/SettingWorkspaceVCS.vue"),
+ props: true,
+ },
{
path: "plan",
name: "setting.workspace.plan",
diff --git a/frontend/src/views/SettingSidebar.vue b/frontend/src/views/SettingSidebar.vue
index 67a9313852..325cd7acc0 100644
--- a/frontend/src/views/SettingSidebar.vue
+++ b/frontend/src/views/SettingSidebar.vue
@@ -4,10 +4,28 @@
<div class="space-y-1">
<button
@click.prevent="goBack"
- class="group flex items-center px-2 py-2 text-base leading-5 font-normal rounded-md text-gray-700 focus:outline-none"
+ class="
+ group
+ flex
+ items-center
+ px-2
+ py-2
+ text-base
+ leading-5
+ font-normal
+ rounded-md
+ text-gray-700
+ focus:outline-none
+ "
>
<svg
- class="mr-1 h-6 w-6 text-gray-500 group-hover:text-gray-500 group-focus:text-gray-600"
+ class="
+ mr-1
+ h-6
+ w-6
+ text-gray-500
+ group-hover:text-gray-500 group-focus:text-gray-600
+ "
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
@@ -25,7 +43,18 @@
<div class="mt-8">
<div
- class="group flex items-center px-2 py-2 text-sm leading-5 font-medium rounded-md text-gray-700"
+ class="
+ group
+ flex
+ items-center
+ px-2
+ py-2
+ text-sm
+ leading-5
+ font-medium
+ rounded-md
+ text-gray-700
+ "
>
<svg
class="mr-3 w-5 h-5"
@@ -52,7 +81,18 @@
</div>
<div class="mt-8">
<div
- class="group flex items-center px-2 py-2 text-sm leading-5 font-medium rounded-md text-gray-700"
+ class="
+ group
+ flex
+ items-center
+ px-2
+ py-2
+ text-sm
+ leading-5
+ font-medium
+ rounded-md
+ text-gray-700
+ "
>
<svg
class="mr-3 w-5 h-5"
@@ -87,6 +127,12 @@
>
Members
</router-link>
+ <router-link
+ to="/setting/version-control"
+ class="outline-item group w-full flex items-center pl-11 pr-2 py-2"
+ >
+ Version Control
+ </router-link>
<router-link
v-if="false"
to="/setting/plan"
diff --git a/frontend/src/views/SettingWorkspaceVCS.vue b/frontend/src/views/SettingWorkspaceVCS.vue
new file mode 100644
index 0000000000..9db1782773
--- /dev/null
+++ b/frontend/src/views/SettingWorkspaceVCS.vue
@@ -0,0 +1,42 @@
+<template>
+ <h1>VCS</h1>
+ <BBStepTab
+ :stepItemList="stepList"
+ @select-step="selectStep"
+ @finish="finishSetup"
+ >
+ <template v-slot:0> choose git provider </template>
+ <template v-slot:1> fill provider basic info </template>
+ <template v-slot:2> configure settings </template>
+ </BBStepTab>
+</template>
+
+<script lang="ts">
+import { BBStepTabItem } from "../bbkit/types";
+
+const stepList: BBStepTabItem[] = [
+ { title: "Choose Git provider" },
+ { title: "Fill provider basic info" },
+ { title: "Configure settings" },
+];
+
+export default {
+ name: "SettingWorkspaceVCS",
+ props: {},
+ setup(props, ctx) {
+ const selectStep = (step: number) => {
+ console.log("select step", step);
+ };
+
+ const finishSetup = () => {
+ console.log("finish");
+ };
+
+ return {
+ stepList,
+ selectStep,
+ finishSetup,
+ };
+ },
+};
+</script>