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: use naive-ui for bbkits (#10009)
ecmadao83b9d806b20b
diff --git a/frontend/src/bbkit/BBAlert.vue b/frontend/src/bbkit/BBAlert.vueindex 4f2a9861ef..e4c0d36e1a 100644--- a/frontend/src/bbkit/BBAlert.vue+++ b/frontend/src/bbkit/BBAlert.vue@@ -1,177 +1,60 @@<template>- <div v-zindexable="{ enabled: true }" class="fixed inset-0 overflow-y-auto">- <div- class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"- >- <!--- Background overlay, show/hide based on modal state.-- Entering: "ease-out duration-300"- From: "opacity-0"- To: "opacity-100"- Leaving: "ease-in duration-200"- From: "opacity-100"- To: "opacity-0"- -->- <div class="fixed inset-0 transition-opacity" aria-hidden="true">- <div class="absolute inset-0 bg-gray-500 opacity-75"></div>- </div>-- <!-- This element is to trick the browser into centering the modal contents. -->- <span- class="hidden sm:inline-block sm:align-middle sm:h-screen"- aria-hidden="true"- >​</span- >- <!--- Modal panel, show/hide based on modal state.-- Entering: "ease-out duration-300"- From: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"- To: "opacity-100 translate-y-0 sm:scale-100"- Leaving: "ease-in duration-200"- From: "opacity-100 translate-y-0 sm:scale-100"- To: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"- -->- <div- class="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6"- role="dialog"- aria-modal="true"- aria-labelledby="modal-headline"- >- <div class="sm:flex sm:flex-col sm:items-start">- <div class="flex items-start">- <div- v-if="style == 'SUCCESS'"- class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-green-100 sm:mx-0 sm:h-10 sm:w-10"- >- <!-- Heroicons name: outline/exclamation -->- <heroicons-outline:exclamation class="h-6 w-6 text-success" />- </div>- <div- v-else-if="style == 'WARN'"- class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-yellow-100 sm:mx-0 sm:h-10 sm:w-10"- >- <!-- Heroicons name: outline/exclamation -->- <heroicons-outline:exclamation class="h-6 w-6 text-yellow-600" />- </div>- <div- v-else-if="style == 'CRITICAL'"- class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"- >- <!-- Heroicons name: outline/exclamation -->- <heroicons-outline:exclamation class="h-6 w-6 text-red-600" />- </div>- <div- v-else- class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-100 sm:mx-0 sm:h-10 sm:w-10"- >- <!-- Heroicons name: outline/exclamation -->- <heroicons-outline:exclamation class="h-6 w-6 text-blue-600" />- </div>- <h3- id="modal-headline"- class="ml-4 flex self-center text-lg leading-6 font-medium text-gray-900"- >- {{ $t(title) }}- </h3>- </div>- <div- v-if="description"- class="mt-3 text-center sm:mt-0 sm:ml-14 sm:text-left"- >- <div class="mt-2">- <p class="text-gray-500 whitespace-pre-wrap">- {{ $t(description) }}- </p>- </div>- </div>- <div class="sm:mt-0 sm:ml-14 sm:text-left">- <slot name="default" />- </div>- </div>- <div class="mt-4 flex flex-col space-y-4">- <div class="flex justify-end">- <button- type="button"- class="btn-normal mt-3 px-4 py-2 sm:mt-0 sm:w-auto"- data-label="bb-alert-cancel-button"- :disabled="inProgress"- @click.stop="cancel"- >- {{ $t(cancelText) }}- </button>- <button- type="button"- class="sm:ml-3 inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-error text-base font-medium text-white focus:outline-none focus-visible:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:w-auto sm:text-sm"- data-label="bb-alert-ok-button"- :class="okButtonStyle"- :disabled="inProgress"- @click.stop="$emit('ok', payload)"- >- {{ $t(okText) }}- </button>- </div>- <div v-if="inProgress" class="flex flex-row justify-end items-center">- <BBSpin />{{ progressText }}- </div>- </div>- </div>- </div>- </div>+ <NModal+ :show="show"+ preset="dialog"+ :type="type"+ :title="title"+ :content="description"+ :negative-text="negativeText"+ :positive-text="positiveText"+ @update:show="$emit('update:show', $event)"+ @positive-click="() => $emit('ok')"+ @negative-click="() => $emit('cancel')"+ >+ <slot name="default" />+ </NModal></template><script lang="ts" setup>-import { useEventListener } from "@vueuse/core";-import { zindexable as vZindexable } from "vdirs";+import { NModal } from "naive-ui";import { withDefaults, computed } from "vue";-import { BBAlertStyle } from "./types";--type Payload = string | number | boolean | any;+import { useI18n } from "vue-i18n";const props = withDefaults(defineProps<{- style?: BBAlertStyle;+ show: boolean;+ type: "info" | "warning";title: string;description?: string;okText?: string;cancelText?: string;- inProgress?: boolean;- progressText?: string;- payload?: Payload; // Any payload pass through to "ok" and "cancel" events}>(),{- style: "INFO",+ type: "info",description: "",okText: "bbkit.common.ok",cancelText: "bbkit.common.cancel",- inProgress: false,- progressText: "",payload: undefined,});-const emit = defineEmits<{- (event: "ok", payload: Payload): void;- (event: "cancel", payload: Payload): void;+defineEmits<{+ (event: "ok"): void;+ (event: "cancel"): void;+ (event: "update:show", val: boolean): void;}>();-const cancel = () => {- emit("cancel", props.payload);-};+const { t, te } = useI18n();-useEventListener(document, "keydown", (e) => {- if (!props.inProgress && e.code == "Escape") {- cancel();- }+const negativeText = computed(() => {+ const { cancelText } = props;+ if (te(cancelText)) return t(cancelText);+ return cancelText;});-const buttonStyleMap: Record<string, string> = {- INFO: "btn-primary",- SUCCESS: "btn-success",- WARN: "btn-primary",- CRITICAL: "btn-danger",-};--const okButtonStyle = computed(() => buttonStyleMap[props.style]);+const positiveText = computed(() => {+ const { okText } = props;+ if (te(okText)) return t(okText);+ return okText;+});</script>diff --git a/frontend/src/bbkit/BBAttention.vue b/frontend/src/bbkit/BBAttention.vueindex 4a7bfe0396..2db213418b 100644--- a/frontend/src/bbkit/BBAttention.vue+++ b/frontend/src/bbkit/BBAttention.vue@@ -1,90 +1,52 @@<template>- <div- class="rounded-md p-4 flex flex-col md:flex-row md:items-center"- :class="`bg-${color}-50 ${additionalSideClasses}`"- >- <div class="flex">- <div class="flex-shrink-0">- <!-- Heroicon name: solid/information -->- <heroicons-solid:information-circle- v-if="style == 'INFO'"- class="w-5 h-5"- :class="`text-${color}-400`"- />- <heroicons-solid:information-circle- v-else-if="style == 'WARN'"- class="h-5 w-5"- :class="`text-${color}-400`"- />- <heroicons-solid:information-circle- v-else-if="style == 'CRITICAL'"- class="w-5 h-5"- :class="`text-${color}-400`"- />- </div>- <div class="ml-3">- <slot name="title">- <h3 class="text-sm font-medium" :class="`text-${color}-800`">- {{ displayTitle }}- </h3>- </slot>- <slot name="default">- <div- v-if="description"- class="mt-2 text-sm"- :class="`text-${color}-700`"- >- <p class="whitespace-pre-wrap">- {{ $te(description) ? $t(description) : description }}- <LearnMoreLink v-if="link" :url="link" class="ml-1 text-sm" />- </p>- </div>- </slot>- </div>- </div>- <slot name="action">- <div- v-if="actionText != ''"- class="flex items-center justify-end mt-2 md:mt-0 md:ml-2"- >- <button- type="button"- class="btn-primary whitespace-nowrap"- @click.prevent="$emit('click-action')"+ <NAlert :title="displayTitle" :type="type">+ <div class="flex items-center justify-between">+ <slot name="default">+ <div v-if="description" class="mt-2 text-sm">+ <p class="whitespace-pre-wrap">+ {{ $te(description) ? $t(description) : description }}+ <LearnMoreLink v-if="link" :url="link" class="ml-1 text-sm" />+ </p>+ </div>+ </slot>++ <slot name="action">+ <div+ v-if="actionText != ''"+ class="flex items-center justify-end mt-2 md:mt-0 md:ml-2">- {{ $t(actionText) }}- </button>- </div>- </slot>- </div>+ <NButton :type="buttonType" @click.prevent="$emit('click')">+ {{ $t(actionText) }}+ </NButton>+ </div>+ </slot>+ </div>+ </NAlert></template><script lang="ts" setup>+import { NAlert } from "naive-ui";import { computed, withDefaults } from "vue";import { useI18n } from "vue-i18n";-import { BBAttentionSide, BBAttentionStyle } from "./types";const props = withDefaults(defineProps<{- style?: BBAttentionStyle;+ type: "default" | "info" | "success" | "warning" | "error";title?: string;description?: string;link?: string;actionText?: string;- side?: BBAttentionSide;}>(),{- style: "INFO",title: "bbkit.attention.default",description: "",link: undefined,actionText: "",- side: "BETWEEN",});defineEmits<{- (event: "click-action"): void;+ (event: "click"): void;}>();const { t, te } = useI18n();@@ -95,26 +57,14 @@ const displayTitle = computed(() => {return title;});-// eslint-disable-next-line vue/return-in-computed-property-const color = computed(() => {- switch (props.style) {- case "INFO":- return "blue";- case "WARN":- return "yellow";- case "CRITICAL":- return "red";- }-});--const additionalSideClasses = computed(() => {- switch (props.side) {- case "BETWEEN":- return "justify-between";- case "CENTER":- return "justify-center";+const buttonType = computed(() => {+ switch (props.type) {+ case "warning":+ return "warning";+ case "error":+ return "default";default:- return "";+ return "primary";}});</script>diff --git a/frontend/src/bbkit/BBBadge.vue b/frontend/src/bbkit/BBBadge.vueindex 6ad2f39eba..fe41367006 100644--- a/frontend/src/bbkit/BBBadge.vue+++ b/frontend/src/bbkit/BBBadge.vue@@ -30,9 +30,8 @@<script lang="ts" setup>import { computed, withDefaults } from "vue";-import { BBAttentionStyle } from "./types";-export type BBBadgeStyle = BBAttentionStyle | "DISABLED";+export type BBBadgeStyle = "INFO" | "WARN" | "CRITICAL" | "DISABLED";export type BBBadgeSize = "normal" | "small";const props = withDefaults(diff --git a/frontend/src/bbkit/BBButtonConfirm.vue b/frontend/src/bbkit/BBButtonConfirm.vueindex d61c9191fd..91ac4f63b5 100644--- a/frontend/src/bbkit/BBButtonConfirm.vue+++ b/frontend/src/bbkit/BBButtonConfirm.vue@@ -39,13 +39,13 @@</span></NButton><BBAlert- v-if="state.showModal"- :style="+ v-model:show="state.showModal"+ :type="state.style == 'DELETE' ||state.style == 'ARCHIVE' ||state.style == 'DISABLE'- ? 'CRITICAL'- : 'INFO'+ ? 'warning'+ : 'info'":ok-text="state.okText":title="state.confirmTitle"diff --git a/frontend/src/bbkit/types.ts b/frontend/src/bbkit/types.tsindex 99bbbabfb9..71938c72c3 100644--- a/frontend/src/bbkit/types.ts+++ b/frontend/src/bbkit/types.ts@@ -62,10 +62,4 @@ export type BBNotificationItem = {onClose: () => void;};-export type BBAlertStyle = "INFO" | "SUCCESS" | "WARN" | "CRITICAL";--export type BBAttentionStyle = "INFO" | "WARN" | "CRITICAL";--export type BBAttentionSide = "BETWEEN" | "CENTER";-export type BBAvatarSizeType = "TINY" | "SMALL" | "NORMAL" | "LARGE" | "HUGE";diff --git a/frontend/src/components/Changelist/ChangelistDetail/RawSQLPanel/RawSQLPanel.vue b/frontend/src/components/Changelist/ChangelistDetail/RawSQLPanel/RawSQLPanel.vueindex 586e65ff48..fecb03486d 100644--- a/frontend/src/components/Changelist/ChangelistDetail/RawSQLPanel/RawSQLPanel.vue+++ b/frontend/src/components/Changelist/ChangelistDetail/RawSQLPanel/RawSQLPanel.vue@@ -9,7 +9,7 @@<div class="h-full flex flex-col gap-y-4 flex-1 overflow-hidden"><BBAttentionv-if="isSheetOversize"- :style="`WARN`"+ type="warning":title="$t('issue.statement-from-sheet-warning')"><template #action>diff --git a/frontend/src/components/CreateDataSourceExample.vue b/frontend/src/components/CreateDataSourceExample.vueindex 821ea1c794..975c7da66a 100644--- a/frontend/src/components/CreateDataSourceExample.vue+++ b/frontend/src/components/CreateDataSourceExample.vue@@ -83,7 +83,7 @@<template v-else-if="props.engine === Engine.POSTGRES"><BBAttentionclass="mb-1"- :style="'WARN'"+ type="warning":title="$t('instance.sentence.create-user-example.postgresql.warn')"/><i18n-tdiff --git a/frontend/src/components/DatabaseChangeHistoryPanel.vue b/frontend/src/components/DatabaseChangeHistoryPanel.vueindex 8423e5e874..ade199a556 100644--- a/frontend/src/components/DatabaseChangeHistoryPanel.vue+++ b/frontend/src/components/DatabaseChangeHistoryPanel.vue@@ -82,9 +82,9 @@</div><BBAlert- v-if="state.showBaselineModal"+ v-model:show="state.showBaselineModal"data-label="bb-change-history-establish-baseline-alert"- :style="'INFO'"+ type="info":ok-text="$t('change-history.establish-baseline')":cancel-text="$t('common.cancel')":title="@@ -95,8 +95,7 @@:description="$t('change-history.establish-baseline-description')"@ok="doCreateBaseline"@cancel="state.showBaselineModal = false"- >- </BBAlert>+ /></template><script lang="ts" setup>diff --git a/frontend/src/components/DatabaseGroup/DatabaseGroupForm.vue b/frontend/src/components/DatabaseGroup/DatabaseGroupForm.vueindex d4ab9ee240..64ca5334cb 100644--- a/frontend/src/components/DatabaseGroup/DatabaseGroupForm.vue+++ b/frontend/src/components/DatabaseGroup/DatabaseGroupForm.vue@@ -3,7 +3,7 @@<FeatureAttentionForInstanceLicensev-if="existMatchedUnactivateInstance"custom-class="mb-4"- :style="`WARN`"+ type="warning"feature="bb.feature.database-grouping"/><div class="w-full grid grid-cols-3 gap-x-6 pb-6 mb-4 border-b">diff --git a/frontend/src/components/FeatureGuard/FeatureAttention.vue b/frontend/src/components/FeatureGuard/FeatureAttention.vueindex 038cb31199..ce1b24ff89 100644--- a/frontend/src/components/FeatureGuard/FeatureAttention.vue+++ b/frontend/src/components/FeatureGuard/FeatureAttention.vue@@ -2,11 +2,11 @@<BBAttentionv-if="!hasFeature":class="customClass"- :style="`WARN`"+ type="warning":title="$t(`subscription.features.${featureKey}.title`)":description="descriptionText":action-text="actionText"- @click-action="onClick"+ @click="onClick"/><WeChatQRModalv-if="state.showQRCodeModal"diff --git a/frontend/src/components/FeatureGuard/FeatureAttentionForInstanceLicense.vue b/frontend/src/components/FeatureGuard/FeatureAttentionForInstanceLicense.vueindex 5cfd3d407e..faad84f33a 100644--- a/frontend/src/components/FeatureGuard/FeatureAttentionForInstanceLicense.vue+++ b/frontend/src/components/FeatureGuard/FeatureAttentionForInstanceLicense.vue@@ -6,7 +6,7 @@subscriptionV1Store.currentPlan !== PlanType.FREE":class="customClass"- :style="style ?? `INFO`"+ :type="type ?? `info`":title="$t(`subscription.features.${featureKey}.desc`)":description="$t('subscription.instance-assignment.missing-license-attention')@@ -16,7 +16,7 @@? $t('subscription.instance-assignment.assign-license'): ''"- @click-action="onClick"+ @click="onClick"/><InstanceAssignment:show="state.showInstanceAssignmentDrawer"@@ -26,7 +26,6 @@<script lang="ts" setup>import { reactive, computed } from "vue";-import { BBAttentionStyle } from "@/bbkit";import {useSubscriptionV1Store,useCurrentUserV1,@@ -41,7 +40,7 @@ interface LocalState {}const props = defineProps<{- style?: BBAttentionStyle;+ type?: "warning" | "info";feature: FeatureType;customClass?: string;}>();diff --git a/frontend/src/components/InstanceForm/InstanceForm.vue b/frontend/src/components/InstanceForm/InstanceForm.vueindex f2b0c45b65..6016083e2d 100644--- a/frontend/src/components/InstanceForm/InstanceForm.vue+++ b/frontend/src/components/InstanceForm/InstanceForm.vue@@ -237,7 +237,7 @@<BBAttentionv-if="outboundIpList && actuatorStore.isSaaSMode"class="my-4 border-none"- :style="'INFO'"+ type="info":title="$t('instance.sentence.outbound-ip-list')":description="outboundIpList"/>@@ -259,24 +259,21 @@<!-- Action Button Group --><div v-if="!drawer" class="pt-4"><div class="w-full flex justify-between items-center">- <div class="w-full flex justify-end items-center gap-x-4">- <NButton- v-if="allowEdit"- :disabled="!allowUpdate || state.isRequesting"- :loading="state.isRequesting"- type="primary"- @click.prevent="doUpdate"- >- {{ $t("common.update") }}- </NButton>- </div>+ <InstanceArchiveRestoreButton+ v-if="!isCreating && instance"+ :instance="(instance as ComposedInstance)"+ />+ <NButton+ v-if="allowEdit"+ :disabled="!allowUpdate || state.isRequesting"+ :loading="state.isRequesting"+ type="primary"+ @click.prevent="doUpdate"+ >+ {{ $t("common.update") }}+ </NButton></div></div>-- <InstanceArchiveRestoreButton- v-if="!isCreating && instance"- :instance="(instance as ComposedInstance)"- /></div><template v-if="drawer" #footer>@@ -311,15 +308,14 @@/><BBAlert- v-if="state.showCreateInstanceWarningModal"- :style="'WARN'"+ v-model:show="state.showCreateInstanceWarningModal"+ type="warning":ok-text="t('instance.ignore-and-create')":title="$t('instance.connection-info-seems-to-be-incorrect')":description="state.createInstanceWarning"- :progress-text="$t('common.creating')"@ok="handleWarningModalOkClick"@cancel="state.showCreateInstanceWarningModal = false"- ></BBAlert>+ /></template><script lang="ts" setup>diff --git a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vueindex 2b2513c8b4..23ca7cbfed 100644--- a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue+++ b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue@@ -109,7 +109,7 @@<BBAttentionv-if="isTaskSheetOversize"- :style="`WARN`"+ type="warning":title="$t('issue.statement-from-sheet-warning')"><template #action>diff --git a/frontend/src/components/LabelEditorDrawer.vue b/frontend/src/components/LabelEditorDrawer.vueindex dd58b9b939..1c35a7f658 100644--- a/frontend/src/components/LabelEditorDrawer.vue+++ b/frontend/src/components/LabelEditorDrawer.vue@@ -4,7 +4,7 @@<BBAttentionv-if="showWarning"class="mb-5"- :style="'WARN'"+ type="warning":title="$t('database.mixed-label-values-warning')"/><LabelListEditordiff --git a/frontend/src/components/ProjectDeploymentConfigPanel.vue b/frontend/src/components/ProjectDeploymentConfigPanel.vueindex c7787baf6f..e8eba9c49e 100644--- a/frontend/src/components/ProjectDeploymentConfigPanel.vue+++ b/frontend/src/components/ProjectDeploymentConfigPanel.vue@@ -22,7 +22,7 @@<template v-if="state.ready"><BBAttentionv-if="state.deployment === undefined"- :style="'WARN'"+ type="warning":title="$t('common.deployment-config')":description="$t('deployment-config.this-is-example-deployment-config')diff --git a/frontend/src/components/RecoveryCodesView.vue b/frontend/src/components/RecoveryCodesView.vueindex f0f37a429e..5ef88aa65f 100644--- a/frontend/src/components/RecoveryCodesView.vue+++ b/frontend/src/components/RecoveryCodesView.vue@@ -6,7 +6,7 @@{{ $t("two-factor.setup-steps.download-recovery-codes.tips") }}</p><BBAttention- :style="'INFO'"+ type="info":title="$t('two-factor.setup-steps.download-recovery-codes.keep-safe.self')"diff --git a/frontend/src/components/RepositoryForm.vue b/frontend/src/components/RepositoryForm.vueindex 28832ff0ab..2d4dcf70b5 100644--- a/frontend/src/components/RepositoryForm.vue+++ b/frontend/src/components/RepositoryForm.vue@@ -205,7 +205,7 @@hasFeature('bb.feature.vcs-schema-write-back')"class="my-4"- :style="`WARN`"+ type="warning":title="$t('subscription.features.bb-feature-vcs-schema-write-back.title')"@@ -216,7 +216,7 @@})":action-text="$t('subscription.instance-assignment.assign-license')"- @click-action="state.showInstanceAssignmentDrawer = true"+ @click="state.showInstanceAssignmentDrawer = true"/><inputv-if="hasFeature('bb.feature.vcs-schema-write-back')"@@ -293,7 +293,7 @@hasFeature('bb.feature.vcs-sql-review')"class="my-4"- :style="`WARN`"+ type="warning":title="$t('subscription.features.bb-feature-vcs-sql-review.title')":description="$t('subscription.instance-assignment.missing-license-for-instances', {@@ -302,7 +302,7 @@})":action-text="$t('subscription.instance-assignment.assign-license')"- @click-action="state.showInstanceAssignmentDrawer = true"+ @click="state.showInstanceAssignmentDrawer = true"/><div class="flex space-x-4 mt-2"><BBCheckboxdiff --git a/frontend/src/components/RepositoryPanel.vue b/frontend/src/components/RepositoryPanel.vueindex df3e14e7ae..894a276d64 100644--- a/frontend/src/components/RepositoryPanel.vue+++ b/frontend/src/components/RepositoryPanel.vue@@ -153,8 +153,9 @@</div></BBModal><BBAlert- v-if="supportSQLReviewCI && state.showSetupSQLReviewCIFailureModal"- :style="'CRITICAL'"+ v-if="supportSQLReviewCI"+ v-model:show="state.showSetupSQLReviewCIFailureModal"+ type="warning":ok-text="$t('common.retry')":title="$t('repository.sql-review-ci-setup-failed')"@ok="@@ -168,8 +169,7 @@state.showSetupSQLReviewCIFailureModal = false;}"- >- </BBAlert>+ /><BBModalv-if="supportSQLReviewCI && state.showLoadingSQLReviewPRModal"class="relative overflow-hidden"diff --git a/frontend/src/components/RepositorySelectionPanel.vue b/frontend/src/components/RepositorySelectionPanel.vueindex ed3a95c31e..8a280ee2ae 100644--- a/frontend/src/components/RepositorySelectionPanel.vue+++ b/frontend/src/components/RepositorySelectionPanel.vue@@ -1,5 +1,5 @@<template>- <BBAttention :style="'WARN'" :description="attentionText" />+ <BBAttention type="warning" :description="attentionText" /><div class="mt-4 space-y-2"><div class="flex justify-between items-center"><button class="btn-icon" @click.prevent="refreshRepositoryList">diff --git a/frontend/src/components/RepositorySetupWizard.vue b/frontend/src/components/RepositorySetupWizard.vueindex 96c59c7c09..f6af466ac2 100644--- a/frontend/src/components/RepositorySetupWizard.vue+++ b/frontend/src/components/RepositorySetupWizard.vue@@ -83,8 +83,8 @@</div></BBModal><BBAlert- v-if="state.showSetupSQLReviewCIFailureModal"- :style="'CRITICAL'"+ v-model:show="state.showSetupSQLReviewCIFailureModal"+ type="warning":ok-text="$t('common.retry')":title="$t('repository.sql-review-ci-setup-failed')"@ok="@@ -99,8 +99,7 @@$emit('finish');}"- >- </BBAlert>+ /><BBModalv-if="state.showLoadingSQLReviewPRModal"class="relative overflow-hidden"diff --git a/frontend/src/components/SQLReview/SQLReviewInfo.vue b/frontend/src/components/SQLReview/SQLReviewInfo.vueindex 77f1c9527d..664043b4bf 100644--- a/frontend/src/components/SQLReview/SQLReviewInfo.vue+++ b/frontend/src/components/SQLReview/SQLReviewInfo.vue@@ -11,7 +11,7 @@<BBAttentionv-if="availableEnvironmentList.length === 0"class="mt-2"- :style="'WARN'"+ type="warning":title="$t('common.environment')":description="$t('sql-review.create.basic-info.no-available-environment-desc')diff --git a/frontend/src/components/SensitiveData/ClassificationView.vue b/frontend/src/components/SensitiveData/ClassificationView.vueindex 1b23d80d04..968a21d0b4 100644--- a/frontend/src/components/SensitiveData/ClassificationView.vue+++ b/frontend/src/components/SensitiveData/ClassificationView.vue@@ -40,8 +40,8 @@/><BBAlert- v-if="state.showOverrideModal"- :style="'WARN'"+ v-model:show="state.showOverrideModal"+ type="warning":ok-text="$t('settings.sensitive-data.classification.override-confirm')":title="$t('settings.sensitive-data.classification.override-title')":description="$t('settings.sensitive-data.classification.override-desc')"diff --git a/frontend/src/components/SyncDatabaseSchema/RawSQLEditor.vue b/frontend/src/components/SyncDatabaseSchema/RawSQLEditor.vueindex f11839b728..c54be3b60d 100644--- a/frontend/src/components/SyncDatabaseSchema/RawSQLEditor.vue+++ b/frontend/src/components/SyncDatabaseSchema/RawSQLEditor.vue@@ -53,7 +53,7 @@<BBAttentionv-if="isSheetOversized && !viewMode":class="'my-2'"- :style="`WARN`"+ type="warning":title="$t('issue.statement-from-sheet-warning')"><template v-if="sheet?.name" #action>diff --git a/frontend/src/components/User/Settings/UserTable.vue b/frontend/src/components/User/Settings/UserTable.vueindex e0924aa9b5..cf876be014 100644--- a/frontend/src/components/User/Settings/UserTable.vue+++ b/frontend/src/components/User/Settings/UserTable.vue@@ -152,8 +152,8 @@</template></BBTable><BBAlert- v-if="state.showResetKeyAlert"- :style="'CRITICAL'"+ v-model:show="state.showResetKeyAlert"+ type="warning":ok-text="$t('settings.members.reset-service-key')":title="$t('settings.members.reset-service-key')":description="$t('settings.members.reset-service-key-alert')"diff --git a/frontend/src/components/VCS/VCSSetupWizard.vue b/frontend/src/components/VCS/VCSSetupWizard.vueindex 775d073ab3..47a1eee116 100644--- a/frontend/src/components/VCS/VCSSetupWizard.vue+++ b/frontend/src/components/VCS/VCSSetupWizard.vue@@ -1,7 +1,7 @@<template><BBAttentionv-if="showAttention"- :style="'WARN'"+ type="warning":description="attentionText":link="link"/>diff --git a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vueindex f37a1bda28..1deed55f91 100644--- a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue+++ b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue@@ -66,8 +66,8 @@</Drawer><BBAlert- v-if="state.showUnassignAlert"- :style="'WARN'"+ v-model:show="state.showUnassignAlert"+ type="warning":ok-text="$t('database.unassign')":title="$t('database.unassign-alert-title')":description="$t('database.unassign-alert-description')"diff --git a/frontend/src/layouts/ProjectLayout.vue b/frontend/src/layouts/ProjectLayout.vueindex 081d8608f6..234dd53925 100644--- a/frontend/src/layouts/ProjectLayout.vue+++ b/frontend/src/layouts/ProjectLayout.vue@@ -10,7 +10,7 @@<BBAttentionv-if="isDefaultProject"class="mb-4"- :style="'INFO'"+ type="info":title="$t('project.overview.info-slot-content')"/></HideInStandaloneMode>diff --git a/frontend/src/layouts/ProjectV1Layout.vue b/frontend/src/layouts/ProjectV1Layout.vueindex 3c3bea28de..a1d47da981 100644--- a/frontend/src/layouts/ProjectV1Layout.vue+++ b/frontend/src/layouts/ProjectV1Layout.vue@@ -10,7 +10,7 @@<BBAttentionv-if="isDefaultProject"class="mb-4"- :style="'INFO'"+ type="info":title="$t('project.overview.info-slot-content')"/></HideInStandaloneMode>diff --git a/frontend/src/views/DatabaseGroupDetail.vue b/frontend/src/views/DatabaseGroupDetail.vueindex 1fa0310886..a60980c685 100644--- a/frontend/src/views/DatabaseGroupDetail.vue+++ b/frontend/src/views/DatabaseGroupDetail.vue@@ -69,7 +69,7 @@<FeatureAttentionForInstanceLicensev-if="existMatchedUnactivateInstance"- :style="`WARN`"+ type="warning"feature="bb.feature.database-grouping"/>diff --git a/frontend/src/views/SchemaGroupDetail.vue b/frontend/src/views/SchemaGroupDetail.vueindex c9fb26aea7..ee57cd1fd4 100644--- a/frontend/src/views/SchemaGroupDetail.vue+++ b/frontend/src/views/SchemaGroupDetail.vue@@ -63,7 +63,7 @@<FeatureAttentionForInstanceLicensev-if="existMatchedUnactivateInstance"- :style="`WARN`"+ type="warning"feature="bb.feature.database-grouping"/>diff --git a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vueindex 107f066245..b62de2350c 100644--- a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue+++ b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue@@ -61,7 +61,7 @@<BBAttentionv-if="!reviewPolicy.environment"class="my-4"- :style="`WARN`"+ type="warning":title="$t('sql-review.create.basic-info.no-linked-environments')"/><SQLRuleFilter@@ -101,8 +101,8 @@</div></div><BBAlert- v-if="state.showDisableModal"- :style="'CRITICAL'"+ v-model:show="state.showDisableModal"+ type="warning":ok-text="$t('common.disable')":title="$t('common.disable') + ` '${reviewPolicy.name}'?`"description=""@@ -113,11 +113,10 @@}"@cancel="state.showDisableModal = false"- >- </BBAlert>+ /><BBAlert- v-if="state.showEnableModal"- :style="'INFO'"+ v-model:show="state.showEnableModal"+ type="info":ok-text="$t('common.enable')":title="$t('common.enable') + ` '${reviewPolicy.name}'?`"description=""@@ -128,8 +127,7 @@}"@cancel="state.showEnableModal = false"- >- </BBAlert>+ /></template><script lang="ts" setup>diff --git a/frontend/src/views/TwoFactorRequired.vue b/frontend/src/views/TwoFactorRequired.vueindex e0e952ec7d..a48e99cf32 100644--- a/frontend/src/views/TwoFactorRequired.vue+++ b/frontend/src/views/TwoFactorRequired.vue@@ -1,9 +1,8 @@<template><div class="w-full"><BBAttention- :style="'WARN'"+ type="warning":title="$t('two-factor.messages.2fa-required')"- side="CENTER"/><div class="w-full p-2 sm:p-8 sm:px-16"><TwoFactorSetup :cancel-action="handleSetupCancel" />diff --git a/frontend/src/views/auth/PasswordForgot.vue b/frontend/src/views/auth/PasswordForgot.vueindex a266cfbd5f..068db81842 100644--- a/frontend/src/views/auth/PasswordForgot.vue+++ b/frontend/src/views/auth/PasswordForgot.vue@@ -13,7 +13,7 @@<div class="mt-8"><div class="mt-6">- <BBAttention :style="`WARN`" :title="hint">+ <BBAttention type="warning" :title="hint"><template v-if="actuatorStore.isSaaSMode && !hint" #title><i18n-ttag="h3"