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: ui update (#9532)
ecmadao99dbe47063d9
diff --git a/frontend/src/components/AuditLog/AuditLogEmptyView.vue b/frontend/src/components/AuditLog/AuditLogEmptyView.vuedeleted file mode 100644index f218bea257..0000000000--- a/frontend/src/components/AuditLog/AuditLogEmptyView.vue+++ /dev/null@@ -1,14 +0,0 @@-<template>- <div class="bg-white rounded-lg py-6">- <div- class="border-4 border-dashed border-gray-200 rounded-lg h-96 flex justify-center items-center"- >- <div class="text-center flex flex-col justify-center items-center">- <img src="../../assets/illustration/no-data.webp" class="w-52" />- <h3 class="mt-2 font-medium text-gray-900">- {{ $t("audit-log.no-logs") }}- </h3>- </div>- </div>- </div>-</template>diff --git a/frontend/src/components/SQLReview/SQLReviewEmptyView.vue b/frontend/src/components/SQLReview/SQLReviewEmptyView.vuedeleted file mode 100644index 6a7a4bc778..0000000000--- a/frontend/src/components/SQLReview/SQLReviewEmptyView.vue+++ /dev/null@@ -1,27 +0,0 @@-<template>- <div class="bg-white rounded-lg py-6">- <div- class="border-4 border-dashed border-gray-200 rounded-lg h-96 flex justify-center items-center"- >- <div class="text-center flex flex-col justify-center items-center">- <img src="../../assets/illustration/no-data.webp" class="w-52" />- <h3 class="mt-2 font-medium text-gray-900">- {{ $t("sql-review.no-policy-set") }}- </h3>- <div class="mt-6">- <button- type="button"- class="inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"- @click="$emit('create')"- >- {{ $t("sql-review.create-policy") }}- </button>- </div>- </div>- </div>- </div>-</template>--<script lang="ts" setup>-defineEmits(["create"]);-</script>diff --git a/frontend/src/components/SensitiveData/NoDataPlaceholder.vue b/frontend/src/components/SensitiveData/NoDataPlaceholder.vueindex 7fc91c9286..a63cc1381d 100644--- a/frontend/src/components/SensitiveData/NoDataPlaceholder.vue+++ b/frontend/src/components/SensitiveData/NoDataPlaceholder.vue@@ -1,12 +1,13 @@<template><div- class="border-4 border-dashed border-gray-200 rounded-lg h-96 flex justify-center items-center"+ class="border-4 border-dashed border-gray-200 rounded-lg h-96 flex flex-col justify-center items-center"><NoData:img-attrs="{- class: '!w-auto max-h-[30vh]',+ class: '!w-auto max-h-[20vh]',}"/>+ <slot /></div></template>diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex d13a976534..341ca955e3 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2679,6 +2679,8 @@"no-logs": "No debug logs","count-of-logs": "Fetched latest {count} log(s) from server.","debug-log-detail": "Debug Log Details",+ "enabled": "Debug mode is enabled.",+ "open-debug-mode": "Enable debug","table": {"record-ts": "Time","method": "Method",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex b626e5d4b1..c7a4d997ad 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2675,6 +2675,8 @@"no-logs": "No hay registros de depuración","count-of-logs": "Se recuperaron los últimos {count} registro(s) del servidor.","debug-log-detail": "Detalles del registro de depuración",+ "enabled": "El modo de depuración está habilitado.",+ "open-debug-mode": "Habilitar depuración","table": {"record-ts": "Hora","method": "Método",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex b0289ffbe2..236497442b 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2675,6 +2675,8 @@"no-logs": "暂无 Debug 日志","count-of-logs": "从服务端获取的最新 {count} 条日志。","debug-log-detail": "日志详情",+ "enabled": "Debug 模式已开启",+ "open-debug-mode": "开启 Debug","table": {"record-ts": "时间","method": "方法",diff --git a/frontend/src/views/DashboardSidebar.vue b/frontend/src/views/DashboardSidebar.vueindex 13e1916aeb..be0edde027 100644--- a/frontend/src/views/DashboardSidebar.vue+++ b/frontend/src/views/DashboardSidebar.vue@@ -62,6 +62,8 @@</div></router-link>+ <div class="border-t border-gray-300 my-4" />+<router-linkv-if="shouldShowSyncSchemaEntry"to="/sync-schema"diff --git a/frontend/src/views/SettingWorkspaceAuditLog.vue b/frontend/src/views/SettingWorkspaceAuditLog.vueindex 583169434c..d06e4e6273 100644--- a/frontend/src/views/SettingWorkspaceAuditLog.vue+++ b/frontend/src/views/SettingWorkspaceAuditLog.vue@@ -52,9 +52,6 @@</PagedActivityTable><template v-else><AuditLogTable :audit-log-list="[]" />- <div class="w-full h-full flex flex-col items-center justify-center">- <img src="../assets/illustration/no-data.webp" class="max-h-[30vh]" />- </div></template><BBDialogdiff --git a/frontend/src/views/SettingWorkspaceDebugLog.vue b/frontend/src/views/SettingWorkspaceDebugLog.vueindex a80bac3ab5..fe45ba42dc 100644--- a/frontend/src/views/SettingWorkspaceDebugLog.vue+++ b/frontend/src/views/SettingWorkspaceDebugLog.vue@@ -71,7 +71,11 @@</div></BBDialog></div>- <NoDataPlaceholder v-else />+ <NoDataPlaceholder v-else>+ <NButton v-if="!isDebug" type="primary" @click="enableDebug">+ {{ $t("debug-log.open-debug-mode") }}+ </NButton>+ </NoDataPlaceholder></div></template>@@ -80,10 +84,15 @@ import { useClipboard } from "@vueuse/core";import dayjs from "dayjs";import download from "downloadjs";import { NGrid, NGi } from "naive-ui";+import { storeToRefs } from "pinia";import { reactive, ref, computed } from "vue";import { useI18n } from "vue-i18n";import { BBDialog } from "@/bbkit";-import { useDebugLogList, useNotificationStore } from "@/store";+import {+ useDebugLogList,+ useActuatorV1Store,+ useNotificationStore,+} from "@/store";import { DebugLog } from "@/types/proto/v1/actuator_service";const dialog = ref<InstanceType<typeof BBDialog> | null>(null);@@ -107,6 +116,23 @@ const { copy } = useClipboard({});const notificationStore = useNotificationStore();const debugLogList = useDebugLogList();+const actuatorStore = useActuatorV1Store();++const { isDebug } = storeToRefs(actuatorStore);++const enableDebug = () => {+ actuatorStore+ .patchDebug({+ debug: true,+ })+ .then(() => {+ notificationStore.pushNotification({+ module: "bytebase",+ style: "SUCCESS",+ title: t("debug-log.enabled"),+ });+ });+};const logKeyMap = {recordTime: t("debug-log.table.record-ts"),diff --git a/frontend/src/views/SettingWorkspaceSSO.vue b/frontend/src/views/SettingWorkspaceSSO.vueindex 579be7953e..f0d51356da 100644--- a/frontend/src/views/SettingWorkspaceSSO.vue+++ b/frontend/src/views/SettingWorkspaceSSO.vue@@ -24,27 +24,17 @@</button></div></div>- <div- v-if="identityProviderList.length === 0"- class="w-full flex flex-col justify-center items-center"- >- <div- class="w-full border-4 border-dashed border-gray-200 rounded-lg h-96 flex justify-center items-center"- >- <div class="text-center flex flex-col justify-center items-center">- <img src="@/assets/illustration/no-data.webp" class="w-52" />- <div class="mt-6">- <button type="button" class="btn-primary" @click="handleCreateSSO">- {{ $t("settings.sso.create") }}- <FeatureBadge- :feature="'bb.feature.sso'"- custom-class="ml-2 !text-white"- />- </button>- </div>- </div>+ <NoDataPlaceholder v-if="identityProviderList.length === 0">+ <div>+ <NButton type="primary" @click="handleCreateSSO">+ {{ $t("settings.sso.create") }}+ <FeatureBadge+ :feature="'bb.feature.sso'"+ custom-class="ml-2 !text-white"+ />+ </NButton></div>- </div>+ </NoDataPlaceholder><template v-else><div class="w-full flex flex-col justify-start items-start space-y-4"><div