Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: add back partial header (#3141)
Tianzhou (天舟)51d1fa2c835e
diff --git a/frontend/.env.dev b/frontend/.env.devindex c0d6652113..ac96f10204 100644--- a/frontend/.env.dev+++ b/frontend/.env.dev@@ -1 +1,3 @@NODE_ENV=development+BB_DEV_TEAM_LICENSE=eyJhbGciOiJSUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJpbnN0YW5jZUNvdW50Ijo5OTk5LCJ0cmlhbGluZyI6ZmFsc2UsInBsYW4iOiJURUFNIiwiYXVkIjoiYmIubGljZW5zZSIsImV4cCI6MzMxNjkzOTIwMDAsImlhdCI6MTY0MzQ2Mzg4MiwiaXNzIjoiYnl0ZWJhc2UiLCJzdWIiOiI2NzUxODU0NS45MTI4NjI4NSJ9.plmS-PNPsI-Esis1ZCLWYgbx7K3C1AlQKG7pY1w_stuxOZgpSK3wm-GC4ILg8e6HebqAhz_39X2f9DvvOFySbnPffJ9v3Q3bTwxgk9vR1ttorS9VTWlZNv2tRmKeQD1rZCIS3gRV8pLX4WEClkn41Bv4DFnmQfcEXeBnw_DivE_yMFgrAmxFeyJVZfP0NslXBBRcwiZ_nObntF_65k6Hr4uPXFR5L99XCCqg5Fu-R0lj7tCbheHBQyXbDujBYqrltbVsrN5ov8Mc7gqbgV9KTCEfAzLsgygO2epkuQkMYdXxRz_oWDLED0WwCZ7-EMz3EqLngZjr6e_hHcapt6SSNQ+BB_DEV_ENTERPRISE_LICENSE=eyJhbGciOiJSUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJpbnN0YW5jZUNvdW50Ijo5OTksInRyaWFsaW5nIjpmYWxzZSwicGxhbiI6IkVOVEVSUFJJU0UiLCJvcmdOYW1lIjoiYmIiLCJhdWQiOiJiYi5saWNlbnNlIiwiZXhwIjo3OTc0OTc5MjAwLCJpYXQiOjE2NjM2Njc1NjEsImlzcyI6ImJ5dGViYXNlIiwic3ViIjoiMDAwMDEwMDAuIn0.JjYCMeAAMB9FlVeDFLdN3jvFcqtPsbEzaIm1YEDhUrfekthCbIOeX_DB2Bg2OUji3HSX5uDvG9AkK4Gtrc4gLMPI3D5mk3L-6wUKZ0L4REztS47LT4oxVhpqPQayYa9lKJB1YoHaqeMV4Z5FXeOXwuACoELznlwpT6pXo9xXm_I6QwQiO7-zD83XOTO4PRjByc-q3GKQu_64zJMIKiCW0I8a3GvrdSnO7jUuYU1KPmCuk0ZRq3I91m29LTo478BMST59HqCLj1GGuCKtR3SL_376XsZfUUM0iSAur5scg99zNGWRj-sUo05wbAadYx6V6TKaWrBUi_8_0RnJyP5gbA\ No newline at end of filediff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex df35e69776..9064078c45 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -77,11 +77,6 @@"developer": "Developer","member": "Member"},- "role-switch": {- "dba": "Switch to DBA",- "owner": "Switch to Owner",- "developer": "Switch to Developer"- },"assignee": "Assignee","revert": "Revert","apply": "Apply",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex ddc6cfe24d..72cbb47793 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -77,11 +77,6 @@"developer": "开发者","member": "成员"},- "role-switch": {- "dba": "切换到 DBA",- "owner": "切换到所有者",- "developer": "切换到开发者"- },"assignee": "审核人","revert": "恢复","apply": "应用",diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vueindex e4dc1f97ad..805f319831 100644--- a/frontend/src/views/DashboardHeader.vue+++ b/frontend/src/views/DashboardHeader.vue@@ -62,6 +62,48 @@</div><div><div class="flex items-center space-x-3">+ <div+ v-if="isDevFeatures"+ class="hidden md:flex sm:flex-row items-center space-x-2 text-sm font-medium"+ >+ <div+ class="cursor-pointer hover:bg-link-hover focus:outline-none"+ :class="currentPlan == 0 ? 'underline text-accent' : 'text-main'"+ @click.prevent="switchToFree"+ >+ {{ $t("subscription.plan.free.title") }}+ </div>+ <div+ class="cursor-pointer hover:bg-link-hover focus:outline-none"+ :class="currentPlan == 1 ? 'underline text-accent' : 'text-main'"+ @click.prevent="switchToTeam"+ >+ {{ $t("subscription.plan.team.title") }}+ </div>+ <div+ class="cursor-pointer hover:bg-link-hover focus:outline-none"+ :class="currentPlan == 2 ? 'underline text-accent' : 'text-main'"+ @click.prevent="switchToEnterprise"+ >+ {{ $t("subscription.plan.enterprise.title") }}+ </div>+ <div class="cursor-pointer" @click="toggleLocales">+ <heroicons-outline:translate class="w-6 h-6" />+ </div>+ <div class="cursor-pointer" @click="toggleDebug">+ <svg+ class="w-6 h-6"+ :class="isDebug ? `text-accent` : `text-gray-400`"+ fill="currentColor"+ viewBox="0 0 32 32"+ >+ <path+ d="M29,15h-5.1c-0.1-1.2-0.5-2.4-1-3.5c1.9-1.5,3.1-3.7,3.1-6.1V5c0-0.6-0.4-1-1-1s-1,0.4-1,1v0.4c0,1.8-0.8,3.4-2.2,4.5 c-0.5-0.7-1.2-1.2-1.9-1.7c0-0.1,0-0.1,0-0.2c0-2.2-1.8-4-4-4s-4,1.8-4,4c0,0.1,0,0.1,0,0.2c-0.7,0.5-1.3,1-1.9,1.7 C8.8,8.8,8,7.2,8,5.4V5c0-0.6-0.4-1-1-1S6,4.4,6,5v0.4c0,2.4,1.1,4.7,3.1,6.1c-0.5,1-0.9,2.2-1,3.5H3c-0.6,0-1,0.4-1,1s0.4,1,1,1 h5.1c0.1,1.2,0.5,2.4,1,3.5C7.1,21.9,6,24.2,6,26.6V27c0,0.6,0.4,1,1,1s1-0.4,1-1v-0.4c0-1.8,0.8-3.4,2.2-4.5 c1.5,1.8,3.5,2.9,5.8,2.9s4.4-1.1,5.8-2.9c1.4,1.1,2.2,2.7,2.2,4.5V27c0,0.6,0.4,1,1,1s1-0.4,1-1v-0.4c0-2.4-1.1-4.7-3.1-6.1 c0.5-1,0.9-2.2,1-3.5H29c0.6,0,1-0.4,1-1S29.6,15,29,15z"+ stroke-width="1"+ />+ </svg>+ </div>+ </div><router-link to="/inbox" exact-active-class><spanv-if="inboxSummary.hasUnread"@@ -154,6 +196,7 @@ import { isDBAOrOwner, isDev } from "../utils";import { useLanguage } from "../composables/useLanguage";import {useCurrentUser,+ useDebugStore,useSettingStore,useSubscriptionStore,useInboxStore,@@ -170,12 +213,13 @@ export default defineComponent({components: { ProfileDropdown },setup() {const { t, availableLocales } = useI18n();+ const debugStore = useDebugStore();const inboxStore = useInboxStore();const settingStore = useSettingStore();const subscriptionStore = useSubscriptionStore();const router = useRouter();const route = useRoute();- const { setLocale } = useLanguage();+ const { setLocale, toggleLocales } = useLanguage();const state = reactive<LocalState>({showMobileMenu: false,@@ -289,6 +333,30 @@ export default defineComponent({]);useRegisterActions(kbarActions);+ const switchToFree = () => {+ subscriptionStore.patchSubscription("");+ };++ const switchToTeam = () => {+ subscriptionStore.patchSubscription(+ import.meta.env.BB_DEV_TEAM_LICENSE as string+ );+ };++ const switchToEnterprise = () => {+ subscriptionStore.patchSubscription(+ import.meta.env.BB_DEV_ENTERPRISE_LICENSE as string+ );+ };++ const { isDebug } = storeToRefs(debugStore);++ const toggleDebug = () => {+ debugStore.patchDebug({+ isDebug: !isDebug.value,+ });+ };+const I18N_CHANGE_ACTION_ID_NAMESPACE = "bb.preferences.locale";const i18nChangeAction = computed(() =>defineAction({@@ -324,6 +392,12 @@ export default defineComponent({showDBAItem,isDevFeatures,inboxSummary,+ switchToFree,+ switchToTeam,+ switchToEnterprise,+ isDebug,+ toggleDebug,+ toggleLocales,};},});