Skip to content

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

Rename BBTableTabFilter to BBTabFilter

天舟23caf1511215
diff --git a/frontend/src/bbkit/BBTable/BBTableTabFilter.vue b/frontend/src/bbkit/BBTabFilter.vue
similarity index 98%
rename from frontend/src/bbkit/BBTable/BBTableTabFilter.vue
rename to frontend/src/bbkit/BBTabFilter.vue
index 5126007627..acc4081b52 100644
--- a/frontend/src/bbkit/BBTable/BBTableTabFilter.vue
+++ b/frontend/src/bbkit/BBTabFilter.vue
@@ -42,7 +42,7 @@
import { PropType } from "vue";
export default {
- name: "BBTableTabFilter",
+ name: "BBTabFilter",
emits: ["select-index"],
props: {
tabList: {
diff --git a/frontend/src/bbkit/BBTable/index.ts b/frontend/src/bbkit/BBTable/index.ts
index 65d4618245..306c52dc27 100644
--- a/frontend/src/bbkit/BBTable/index.ts
+++ b/frontend/src/bbkit/BBTable/index.ts
@@ -2,12 +2,5 @@ import BBTable from "./BBTable.vue";
import BBTableCell from "./BBTableCell.vue";
import BBTableHeaderCell from "./BBTableHeaderCell.vue";
import BBTableSearch from "./BBTableSearch.vue";
-import BBTableTabFilter from "./BBTableTabFilter.vue";
-export {
- BBTable,
- BBTableCell,
- BBTableHeaderCell,
- BBTableSearch,
- BBTableTabFilter,
-};
+export { BBTable, BBTableCell, BBTableHeaderCell, BBTableSearch };
diff --git a/frontend/src/bbkit/index.ts b/frontend/src/bbkit/index.ts
index cefd063cc6..9aa9f56d24 100644
--- a/frontend/src/bbkit/index.ts
+++ b/frontend/src/bbkit/index.ts
@@ -14,13 +14,13 @@ import BBStepBar from "./BBStepBar.vue";
import BBStepTab from "./BBStepTab.vue";
import BBTab from "./BBTab.vue";
import BBTabPanel from "./BBTabPanel.vue";
+import BBTabFilter from "./BBTabFilter.vue";
import BBTextField from "./BBTextField.vue";
import {
BBTable,
BBTableCell,
BBTableHeaderCell,
BBTableSearch,
- BBTableTabFilter,
} from "./BBTable";
export {
@@ -40,10 +40,10 @@ export {
BBSwitch,
BBTab,
BBTabPanel,
+ BBTabFilter,
BBTable,
BBTableCell,
BBTableHeaderCell,
BBTableSearch,
- BBTableTabFilter,
BBTextField,
};
diff --git a/frontend/src/components/EnvironmentTabFilter.vue b/frontend/src/components/EnvironmentTabFilter.vue
index 67b727ad64..0d59a1e9e6 100644
--- a/frontend/src/components/EnvironmentTabFilter.vue
+++ b/frontend/src/components/EnvironmentTabFilter.vue
@@ -1,5 +1,5 @@
<template>
- <BBTableTabFilter
+ <BBTabFilter
:tabList="tabList"
:selectedIndex="state.selectedIndex"
@select-index="
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 6fac1300d4..94dd57382b 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -29,7 +29,7 @@ import {
BBTableCell,
BBTableHeaderCell,
BBTableSearch,
- BBTableTabFilter,
+ BBTabFilter,
BBTextField,
} from "./bbkit";
import dataSourceType from "./directives/data-source-type";
@@ -152,6 +152,6 @@ app
.component("BBTableCell", BBTableCell)
.component("BBTableHeaderCell", BBTableHeaderCell)
.component("BBTableSearch", BBTableSearch)
- .component("BBTableTabFilter", BBTableTabFilter)
+ .component("BBTabFilter", BBTabFilter)
.component("BBTextField", BBTextField)
.mount("#app");
diff --git a/frontend/src/views/Archive.vue b/frontend/src/views/Archive.vue
index 04fdf0da78..aeb5b0d8a1 100644
--- a/frontend/src/views/Archive.vue
+++ b/frontend/src/views/Archive.vue
@@ -1,7 +1,7 @@
<template>
<div class="flex flex-col">
<div class="px-2 py-2 flex justify-between items-center">
- <BBTableTabFilter
+ <BBTabFilter
:tabList="tabList"
:selectedIndex="state.selectedIndex"
@select-index="
diff --git a/frontend/src/views/Inbox.vue b/frontend/src/views/Inbox.vue
index 646511b755..f1b933d0fd 100644
--- a/frontend/src/views/Inbox.vue
+++ b/frontend/src/views/Inbox.vue
@@ -1,7 +1,7 @@
<template>
<!-- This example requires Tailwind CSS v2.0+ -->
<div class="my-2 space-y-2 divide-y divide-block-border">
- <BBTableTabFilter
+ <BBTabFilter
v-if="isCurrentUserDBAOrOwner"
class="mx-2"
:tabList="['General', 'Membership']"
diff --git a/frontend/src/views/ProjectDetail.vue b/frontend/src/views/ProjectDetail.vue
index 614c568eb8..8a25e61779 100644
--- a/frontend/src/views/ProjectDetail.vue
+++ b/frontend/src/views/ProjectDetail.vue
@@ -5,7 +5,7 @@
<h1 class="px-4 pb-4 text-xl font-bold leading-6 text-main truncate">
{{ project.name }}
</h1>
- <BBTableTabFilter
+ <BBTabFilter
class="px-1 pb-2 border-b border-block-border"
:responsive="false"
:tabList="projectTabItemList.map((item) => item.name)"