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(react): drop NDialogProvider and dead Vue instance table (#20316)
boojackc7a24c196ab5
diff --git a/frontend/src/App.vue b/frontend/src/App.vueindex 41c5a36f9f..8cd9572880 100644--- a/frontend/src/App.vue+++ b/frontend/src/App.vue@@ -10,15 +10,13 @@:max="MAX_NOTIFICATION_DISPLAY_COUNT"placement="bottom-right">- <NDialogProvider>- <OverlayStackManager>- <NotificationContext>- <AuthContext>- <router-view />- </AuthContext>- </NotificationContext>- </OverlayStackManager>- </NDialogProvider>+ <OverlayStackManager>+ <NotificationContext>+ <AuthContext>+ <router-view />+ </AuthContext>+ </NotificationContext>+ </OverlayStackManager></NNotificationProvider></NConfigProvider></template>@@ -26,11 +24,7 @@<script lang="ts" setup>import { Code, ConnectError } from "@connectrpc/connect";import { cloneDeep, isEqual } from "lodash-es";-import {- NConfigProvider,- NDialogProvider,- NNotificationProvider,-} from "naive-ui";+import { NConfigProvider, NNotificationProvider } from "naive-ui";import {onErrorCaptured,onMounted,diff --git a/frontend/src/components/Instance/InstanceActionDropdown.vue b/frontend/src/components/Instance/InstanceActionDropdown.vuedeleted file mode 100644index 9e18a0193e..0000000000--- a/frontend/src/components/Instance/InstanceActionDropdown.vue+++ /dev/null@@ -1,175 +0,0 @@-<template>- <NDropdown- trigger="click"- :options="dropdownOptions"- @select="handleSelect"- >- <NButton size="small" quaternary class="px-1!">- <template #icon>- <EllipsisVerticalIcon class="w-4 h-4" />- </template>- </NButton>- </NDropdown>-</template>--<script setup lang="ts">-import { EllipsisVerticalIcon } from "lucide-vue-next";-import type { DropdownOption } from "naive-ui";-import { NButton, NCheckbox, NDropdown, useDialog } from "naive-ui";-import { computed, h, ref } from "vue";-import { useI18n } from "vue-i18n";-import { useRouter } from "vue-router";-import { INSTANCE_ROUTE_DASHBOARD } from "@/router/dashboard/workspaceRoutes";-import { pushNotification, useInstanceV1Store } from "@/store";-import { State } from "@/types/proto-es/v1/common_pb";-import type { Instance } from "@/types/proto-es/v1/instance_service_pb";-import { hasWorkspacePermissionV2 } from "@/utils";--const props = defineProps<{- instance: Instance;-}>();--const emit = defineEmits<{- (e: "deleted"): void;-}>();--const { t } = useI18n();-const dialog = useDialog();-const instanceStore = useInstanceV1Store();-const router = useRouter();--const force = ref(false);--const canArchive = computed(() =>- hasWorkspacePermissionV2("bb.instances.delete")-);-const canRestore = computed(() =>- hasWorkspacePermissionV2("bb.instances.undelete")-);--const dropdownOptions = computed((): DropdownOption[] => {- const options: DropdownOption[] = [];-- if (props.instance.state === State.ACTIVE && canArchive.value) {- options.push({- key: "archive",- label: t("common.archive"),- });- } else if (props.instance.state === State.DELETED && canRestore.value) {- options.push({- key: "restore",- label: t("common.restore"),- });- }-- if (canArchive.value || canRestore.value) {- options.push({- key: "delete",- label: t("common.delete"),- });- }-- return options;-});--const handleArchive = () => {- force.value = false;- dialog.warning({- title: t("instance.archive-instance-instance-name", [props.instance.title]),- content: () =>- h("div", [- h(- "div",- { class: "mb-3" },- t("instance.archived-instances-will-not-be-displayed")- ),- h(- NCheckbox,- {- checked: force.value,- "onUpdate:checked": (value: boolean) => {- force.value = value;- },- },- {- default: () =>- h(- "div",- { class: "text-sm font-normal text-control-light" },- t("instance.force-archive-description")- ),- }- ),- ]),- negativeText: t("common.cancel"),- positiveText: t("common.archive"),- onPositiveClick: async () => {- await instanceStore.archiveInstance(props.instance, force.value);- pushNotification({- module: "bytebase",- style: "INFO",- title: t("instance.successfully-archived-instance", [- props.instance.title,- ]),- });- router.replace({- name: INSTANCE_ROUTE_DASHBOARD,- });- },- });-};--const handleRestore = () => {- dialog.info({- title: t("instance.restore-instance-instance-name-to-normal-state", [- props.instance.title,- ]),- negativeText: t("common.cancel"),- positiveText: t("instance.restore"),- onPositiveClick: async () => {- await instanceStore.restoreInstance(props.instance);- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t("instance.successfully-restored-instance", [- props.instance.title,- ]),- });- },- });-};--const handleDelete = () => {- dialog.warning({- title: t("common.delete-resource", {- resource: props.instance.title,- }),- content: t("common.cannot-undo-this-action"),- negativeText: t("common.cancel"),- positiveText: t("common.delete"),- onPositiveClick: async () => {- await instanceStore.deleteInstance(props.instance.name);- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t("common.deleted"),- });- emit("deleted");- router.replace({- name: INSTANCE_ROUTE_DASHBOARD,- query: { q: "state:DELETED" },- });- },- });-};--const handleSelect = (key: string) => {- if (key === "archive") {- handleArchive();- } else if (key === "restore") {- handleRestore();- } else if (key === "delete") {- handleDelete();- }-};-</script>diff --git a/frontend/src/components/v2/Model/Instance/InstanceV1Table/InstanceOperations.vue b/frontend/src/components/v2/Model/Instance/InstanceV1Table/InstanceOperations.vuedeleted file mode 100644index 79011bafff..0000000000--- a/frontend/src/components/v2/Model/Instance/InstanceV1Table/InstanceOperations.vue+++ /dev/null@@ -1,179 +0,0 @@-<template>- <div- v-bind="$attrs"- class="text-sm flex flex-col lg:flex-row items-start lg:items-center bg-blue-100 py-3 px-4 text-main gap-y-2 gap-x-4 overflow-x-auto"- >- <span class="whitespace-nowrap">- {{- $t("instance.selected-n-instances", {- n: instanceList.length,- })- }}- </span>- <div class="flex items-center">- <PermissionGuardWrapper- v-for="action in actions"- :key="action.text"- v-slot="slotProps"- :permissions="action.requiredPermissions"- >- <component :is="action.render()" v-if="action.render" />- <NButton- v-else- quaternary- size="small"- type="primary"- :disabled="slotProps.disabled || action.disabled"- @click="action.click"- >- <template v-if="action.icon" #icon>- <component :is="action.icon" class="h-4 w-4" />- </template>- <span class="text-sm">{{ action.text }}</span>- </NButton>- </PermissionGuardWrapper>- </div>- </div>- <EditEnvironmentDrawer- :show="state.showEditEnvironmentDrawer"- @dismiss="state.showEditEnvironmentDrawer = false"- @update="onEnvironmentUpdate($event)"- />-</template>--<script setup lang="tsx">-import { create } from "@bufbuild/protobuf";-import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";-import { GraduationCapIcon, SquareStackIcon } from "lucide-vue-next";-import { NButton } from "naive-ui";-import type { VNode } from "vue";-import { computed, h, reactive } from "vue";-import { useI18n } from "vue-i18n";-import { useRouter } from "vue-router";-import EditEnvironmentDrawer from "@/components/EditEnvironmentDrawer.vue";-import InstanceSyncButton from "@/components/Instance/InstanceSyncButton.vue";-import PermissionGuardWrapper from "@/components/Permission/PermissionGuardWrapper.vue";-import { INSTANCE_ROUTE_DASHBOARD } from "@/router/dashboard/workspaceRoutes";-import {- pushNotification,- useInstanceV1Store,- useSubscriptionV1Store,-} from "@/store";-import type { Permission } from "@/types";-import type { Instance } from "@/types/proto-es/v1/instance_service_pb";-import { UpdateInstanceRequestSchema } from "@/types/proto-es/v1/instance_service_pb";--interface Action {- icon?: VNode;- render?: () => VNode;- text: string;- disabled?: boolean;- click?: () => void;- requiredPermissions: Permission[];-}--interface LocalState {- loading: boolean;- showEditEnvironmentDrawer: boolean;-}--const props = defineProps<{- instanceList: Instance[];-}>();--const emit = defineEmits<{- (event: "update", instances: Instance[]): void;-}>();--const { t } = useI18n();-const router = useRouter();-const instanceStore = useInstanceV1Store();-const subscriptionStore = useSubscriptionV1Store();-const state = reactive<LocalState>({- loading: false,- showEditEnvironmentDrawer: false,-});--const canAssignLicense = computed(() => {- return subscriptionStore.hasSplitInstanceLicense;-});--const actions = computed((): Action[] => {- const list: Action[] = [- // We'll always show the sync button, even if the user doesn't have the permission to sync.- // If the user doesn't have the permission, the button will be disabled.- {- render: () => (- <InstanceSyncButton- size={"small"}- type={"primary"}- quaternary={true}- disabled={props.instanceList.length < 1}- onSync-schema={syncSchema}- />- ),- text: "",- requiredPermissions: ["bb.instances.sync"],- },- {- icon: h(SquareStackIcon),- text: t("database.edit-environment"),- disabled: props.instanceList.length < 1,- click: () => (state.showEditEnvironmentDrawer = true),- requiredPermissions: ["bb.instances.update"],- },- ];-- if (canAssignLicense.value) {- list.push({- icon: h(GraduationCapIcon),- text: t("subscription.instance-assignment.assign-license"),- click: () =>- router.push({- name: INSTANCE_ROUTE_DASHBOARD,- query: {- assignLicense: "1",- instances: props.instanceList- .map((instance) => instance.name)- .join(","),- },- }),- requiredPermissions: ["bb.instances.update", "bb.settings.get"],- });- }-- return list;-});--const syncSchema = async (enableFullSync: boolean) => {- await instanceStore.batchSyncInstances(- props.instanceList.map((instance) => instance.name),- enableFullSync- );- pushNotification({- module: "bytebase",- style: "INFO",- title: t("db.start-to-sync-schema"),- });-};--const onEnvironmentUpdate = async (environment: string) => {- const updated = await instanceStore.batchUpdateInstances(- props.instanceList.map((instance) =>- create(UpdateInstanceRequestSchema, {- instance: {- ...instance,- environment,- },- updateMask: create(FieldMaskSchema, { paths: ["environment"] }),- })- )- );- emit("update", updated);- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t("common.updated"),- });-};-</script>diff --git a/frontend/src/components/v2/Model/Instance/InstanceV1Table/InstanceV1Table.vue b/frontend/src/components/v2/Model/Instance/InstanceV1Table/InstanceV1Table.vuedeleted file mode 100644index 39e88c1bf5..0000000000--- a/frontend/src/components/v2/Model/Instance/InstanceV1Table/InstanceV1Table.vue+++ /dev/null@@ -1,297 +0,0 @@-<template>- <div ref="tableRef">- <NDataTable- key="instance-table"- size="small"- :columns="columnList"- :data="instanceList"- :striped="true"- :bordered="bordered"- :loading="loading"- :scroll-x="scrollX"- :row-key="(data: Instance) => data.name"- :checked-row-keys="selectedInstanceNames"- :row-props="rowProps"- :paginate-single-page="false"- @update:checked-row-keys="- (val) => $emit('update:selected-instance-names', val as string[])- "- @update:sorter="$emit('update:sorters', $event)"- />- </div>-</template>--<script setup lang="tsx">-import { useElementSize } from "@vueuse/core";-import {- ChevronDownIcon,- ChevronUpIcon,- ExternalLinkIcon,-} from "lucide-vue-next";-import {- type DataTableColumn,- type DataTableSortState,- NButton,- NDataTable,-} from "naive-ui";-import { computed, reactive, ref, watch } from "vue";-import { useI18n } from "vue-i18n";-import { useRouter } from "vue-router";-import EllipsisText from "@/components/EllipsisText.vue";-import InstanceActionDropdown from "@/components/Instance/InstanceActionDropdown.vue";-import { InstanceV1Name } from "@/components/v2";-import { LabelsCell } from "@/components/v2/Model/cells";-import { useEnvironmentV1Store } from "@/store";-import { NULL_ENVIRONMENT_NAME } from "@/types";-import type { Instance } from "@/types/proto-es/v1/instance_service_pb";-import {- hostPortOfDataSource,- hostPortOfInstanceV1,- TailwindBreakpoints,- urlfy,-} from "@/utils";-import EnvironmentV1Name from "../../EnvironmentV1Name.vue";-import { mapSorterStatus } from "../../utils";--type InstanceDataTableColumn = DataTableColumn<Instance> & {- hide?: boolean;-};--interface LocalState {- dataSourceToggle: Set<string>;- processing: boolean;-}--const props = withDefaults(- defineProps<{- instanceList: Instance[];- bordered?: boolean;- loading?: boolean;- showSelection?: boolean;- defaultExpandDataSource?: string[];- selectedInstanceNames?: string[];- disabledSelectedInstanceNames?: Set<string>;- showAddress?: boolean;- showExternalLink?: boolean;- showActions?: boolean;- onClick?: (instance: Instance, e: MouseEvent) => void;- sorters?: DataTableSortState[];- }>(),- {- bordered: true,- showSelection: true,- onClick: undefined,- showAddress: true,- showExternalLink: true,- showActions: false,- disabledSelectedInstanceNames: () => new Set(),- defaultExpandDataSource: () => [],- selectedInstanceNames: () => [],- }-);--defineEmits<{- (event: "update:selected-instance-names", val: string[]): void;- (event: "update:sorters", sorters: DataTableSortState[]): void;-}>();--const { t } = useI18n();-const router = useRouter();-const environmentStore = useEnvironmentV1Store();-const tableRef = ref<HTMLDivElement>();-const { width: tableWidth } = useElementSize(tableRef);-const showExtendedColumns = computed(- () => tableWidth.value > TailwindBreakpoints.md-);-const state = reactive<LocalState>({- dataSourceToggle: new Set(),- processing: false,-});--watch(- () => props.defaultExpandDataSource,- () => {- state.dataSourceToggle = new Set(props.defaultExpandDataSource);- },- {- immediate: true,- deep: true,- }-);--const columnList = computed((): InstanceDataTableColumn[] => {- const SELECTION: InstanceDataTableColumn = {- type: "selection",- hide: !props.showSelection,- disabled: (instance) =>- props.disabledSelectedInstanceNames.has(instance.name),- cellProps: () => {- return {- onClick: (e: MouseEvent) => {- e.stopPropagation();- },- };- },- };- const NAME: InstanceDataTableColumn = {- key: "title",- title: t("common.name"),- resizable: true,- minWidth: 200,- render: (instance) => {- return <InstanceV1Name instance={instance} link={false} />;- },- };- const ENVIRONMENT: InstanceDataTableColumn = {- key: "environment",- title: t("common.environment"),- className: "whitespace-nowrap",- resizable: true,- ellipsis: {- tooltip: true,- },- minWidth: 200,- render: (instance) => (- <EnvironmentV1Name- environment={environmentStore.getEnvironmentByName(- instance.environment || NULL_ENVIRONMENT_NAME- )}- link={false}- showColor={true}- />- ),- };- const ADDRESS: InstanceDataTableColumn = {- key: "address",- title: t("common.address"),- resizable: true,- hide: !props.showAddress,- render: (instance) => {- return (- <div class={"flex items-start gap-x-2"}>- <EllipsisText>- {state.dataSourceToggle.has(instance.name)- ? instance.dataSources.map((ds) => (- <div>{hostPortOfDataSource(ds)}</div>- ))- : hostPortOfInstanceV1(instance)}- </EllipsisText>- {instance.dataSources.length > 1 ? (- <NButton- quaternary- size="tiny"- onClick={(e) => handleDataSourceToggle(e, instance)}- >- {state.dataSourceToggle.has(instance.name) ? (- <ChevronUpIcon class={"w-4 cursor-pointer"} />- ) : (- <ChevronDownIcon class={"w-4 cursor-pointer"} />- )}- </NButton>- ) : null}- </div>- );- },- };- const EXTERNAL_LINK: InstanceDataTableColumn = {- key: "project",- title: t("instance.external-link"),- resizable: true,- width: 150,- hide: !props.showExternalLink,- render: (instance) =>- instance.externalLink?.trim().length !== 0 && (- <NButton- quaternary- size="small"- onClick={() => window.open(urlfy(instance.externalLink), "_blank")}- >- <ExternalLinkIcon class="w-4 h-4" />- </NButton>- ),- };- const LABELS: InstanceDataTableColumn = {- key: "labels",- title: t("common.labels"),- resizable: true,- minWidth: 240,- hide: !showExtendedColumns.value,- render: (instance) => (- <LabelsCell labels={instance.labels} showCount={3} placeholder="-" />- ),- };- const LICENSE: InstanceDataTableColumn = {- key: "instance",- title: t("subscription.instance-assignment.license"),- resizable: true,- width: 100,- render: (instance) => (instance.activation ? "Y" : ""),- };- const ACTIONS: InstanceDataTableColumn = {- key: "actions",- title: "",- width: 50,- hide: !props.showActions,- render: (instance) => (- <div- class="flex justify-end"- onClick={(e: MouseEvent) => {- e.stopPropagation();- }}- >- <InstanceActionDropdown instance={instance} />- </div>- ),- };-- const columns: InstanceDataTableColumn[] = [- SELECTION,- NAME,- ENVIRONMENT,- ADDRESS,- LABELS,- EXTERNAL_LINK,- LICENSE,- ACTIONS,- ].filter((column) => !column.hide);- return mapSorterStatus(columns, props.sorters);-});--const scrollX = computed(() => {- return columnList.value.reduce((sum, col) => {- return (- sum +- ((col as { width?: number; minWidth?: number }).width ??- (col as { minWidth?: number }).minWidth ??- 100)- );- }, 0);-});--const handleDataSourceToggle = (e: MouseEvent, instance: Instance) => {- e.stopPropagation();- if (state.dataSourceToggle.has(instance.name)) {- state.dataSourceToggle.delete(instance.name);- } else {- state.dataSourceToggle.add(instance.name);- }-};--const rowProps = (instance: Instance) => {- return {- style: "cursor: pointer;",- onClick: (e: MouseEvent) => {- if (props.onClick) {- props.onClick(instance, e);- return;- }- const url = `/${instance.name}`;- if (e.ctrlKey || e.metaKey) {- window.open(url, "_blank");- } else {- router.push(url);- }- },- };-};-</script>diff --git a/frontend/src/components/v2/Model/Instance/InstanceV1Table/index.ts b/frontend/src/components/v2/Model/Instance/InstanceV1Table/index.tsdeleted file mode 100644index cfc7bf21de..0000000000--- a/frontend/src/components/v2/Model/Instance/InstanceV1Table/index.ts+++ /dev/null@@ -1,3 +0,0 @@-import InstanceV1Table from "./InstanceV1Table.vue";--export default InstanceV1Table;diff --git a/frontend/src/components/v2/Model/Instance/PagedInstanceTable.vue b/frontend/src/components/v2/Model/Instance/PagedInstanceTable.vuedeleted file mode 100644index 02ebd67d9f..0000000000--- a/frontend/src/components/v2/Model/Instance/PagedInstanceTable.vue+++ /dev/null@@ -1,80 +0,0 @@-<template>- <PagedTable- ref="instancePagedTable"- :session-key="sessionKey"- :fetch-list="fetchInstances"- :order-keys="['title', 'environment']"- >- <template #table="{ list, loading, sorters, onSortersUpdate }">- <InstanceV1Table- v-bind="$attrs"- :loading="loading"- :instance-list="list"- :sorters="sorters"- :show-external-link="showExternalLink"- :show-actions="showActions"- @update:sorters="onSortersUpdate"- />- </template>- </PagedTable>-</template>--<script lang="tsx" setup>-import { computed, ref, watch } from "vue";-import type { ComponentExposed } from "vue-component-type-helpers";-import PagedTable from "@/components/v2/Model/PagedTable.vue";-import { type InstanceFilter, useInstanceV1Store } from "@/store";-import { type Instance } from "@/types/proto-es/v1/instance_service_pb";-import InstanceV1Table from "./InstanceV1Table";--const props = withDefaults(- defineProps<{- filter?: InstanceFilter;- sessionKey: string;- showExternalLink?: boolean;- showActions?: boolean;- }>(),- {- showExternalLink: true,- showActions: false,- }-);--const instanceStore = useInstanceV1Store();-const instancePagedTable = ref<ComponentExposed<typeof PagedTable<Instance>>>();--const fetchInstances = async ({- pageToken,- pageSize,- orderBy,-}: {- pageToken: string;- pageSize: number;- orderBy?: string;-}) => {- const { nextPageToken, instances } = await instanceStore.fetchInstanceList({- pageToken,- pageSize,- filter: props.filter,- orderBy,- });- return {- nextPageToken: nextPageToken ?? "",- list: instances,- };-};--watch(- () => props.filter,- () => instancePagedTable.value?.refresh(),- { deep: true }-);--defineExpose({- updateCache: (instances: Instance[]) => {- instancePagedTable.value?.updateCache(instances);- },- refresh: () => instancePagedTable.value?.refresh(),- dataList: computed(() => instancePagedTable.value?.dataList),-});-</script>diff --git a/frontend/src/components/v2/Model/Instance/index.ts b/frontend/src/components/v2/Model/Instance/index.tsindex 0bc44ea71b..5b22cf3b30 100644--- a/frontend/src/components/v2/Model/Instance/index.ts+++ b/frontend/src/components/v2/Model/Instance/index.ts@@ -2,18 +2,12 @@ import InstanceEngineRadioGrid from "./InstanceEngineRadioGrid.vue";import InstanceRoleTable from "./InstanceRoleTable";import InstanceV1EngineIcon from "./InstanceV1EngineIcon.vue";import InstanceV1Name from "./InstanceV1Name.vue";-import InstanceV1Table from "./InstanceV1Table";-import InstanceOperations from "./InstanceV1Table/InstanceOperations.vue";-import PagedInstanceTable from "./PagedInstanceTable.vue";import RichEngineName from "./RichEngineName.vue";export {InstanceEngineRadioGrid,InstanceV1Name,InstanceV1EngineIcon,- InstanceV1Table,InstanceRoleTable,RichEngineName,- PagedInstanceTable,- InstanceOperations,};diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 0044f65f33..a37d017270 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -962,7 +962,6 @@"password-write-only": "YOUR_DB_PWD - write only","port": "Port","project-id": "Project ID",- "restore": "Restore","restore-instance-instance-name-to-normal-state": "Restore instance '{0}' to normal state?","role-arn": "Role ARN","role-arn-description": "IAM role to assume for cross-account access. Leave empty for same-account access.",@@ -978,7 +977,6 @@"connection": "Connection"},"select-database-user": "Select database user",- "selected-n-instances": "{n} instance selected | {n} instances selected","sentence": {"aws-rds": {"mysql": {diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex c5d643d3a1..ef253748a4 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -962,7 +962,6 @@"password-write-only": "SU_DB_PWD - solo escritura","port": "Puerto","project-id": "ID del proyecto",- "restore": "Restaurar","restore-instance-instance-name-to-normal-state": "¿Restaurar la instancia '{0}' al estado normal?","role-arn": "ARN del rol","role-arn-description": "Rol IAM para asumir en acceso entre cuentas. Dejar vacío para acceso en la misma cuenta.",@@ -978,7 +977,6 @@"connection": "Conexión"},"select-database-user": "Seleccionar usuario de base de datos",- "selected-n-instances": "{n} instancia seleccionada | {n} instancias seleccionadas","sentence": {"aws-rds": {"mysql": {diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 701a241efe..c17cab86e0 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -962,7 +962,6 @@"password-write-only": "YOUR_DB_PWD - 書き込み専用","port": "ポート","project-id": "プロジェクトID",- "restore": "復元する","restore-instance-instance-name-to-normal-state": "インスタンス '{0}' を通常の状態に復元しますか?","role-arn": "ロール ARN","role-arn-description": "クロスアカウントアクセス用の IAM ロール。同一アカウントアクセスの場合は空のままにしてください。",@@ -978,7 +977,6 @@"connection": "接続"},"select-database-user": "データベースユーザーの選択",- "selected-n-instances": "{n} 個のインスタンスが選択されました","sentence": {"aws-rds": {"mysql": {diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 00fb94de24..ecc16ff5e2 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -962,7 +962,6 @@"password-write-only": "YOUR_DB_PWD - chỉ ghi","port": "Cổng","project-id": "ID dự án",- "restore": "Khôi phục","restore-instance-instance-name-to-normal-state": "Khôi phục phiên bản '{0}' về trạng thái bình thường?","role-arn": "ARN vai trò","role-arn-description": "Vai trò IAM để đảm nhận cho truy cập xuyên tài khoản. Để trống cho truy cập cùng tài khoản.",@@ -978,7 +977,6 @@"connection": "Kết nối"},"select-database-user": "Chọn người dùng cơ sở dữ liệu",- "selected-n-instances": "{n} phiên bản đã chọn | {n} phiên bản đã chọn","sentence": {"aws-rds": {"mysql": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex dad873aeb3..4bbbadd2b8 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -962,7 +962,6 @@"password-write-only": "YOUR_DB_PWD - 仅写入","port": "端口","project-id": "项目 ID",- "restore": "恢复","restore-instance-instance-name-to-normal-state": "恢复实例'{0}'到正常状态?","role-arn": "角色 ARN","role-arn-description": "用于跨账户访问的 IAM 角色。同账户访问请留空。",@@ -978,7 +977,6 @@"connection": "连接"},"select-database-user": "选择数据库用户",- "selected-n-instances": "已选择 {n} 个实例","sentence": {"aws-rds": {"mysql": {diff --git a/frontend/src/shell-bridge.test.ts b/frontend/src/shell-bridge.test.tsindex f52fec9ad6..4cbbab4509 100644--- a/frontend/src/shell-bridge.test.ts+++ b/frontend/src/shell-bridge.test.ts@@ -44,7 +44,6 @@ vi.mock("naive-ui", async () => {});return {NConfigProvider: passthrough("NConfigProvider"),- NDialogProvider: passthrough("NDialogProvider"),NNotificationProvider: passthrough("NNotificationProvider"),useNotification: () => ({create: mocks.notificationCreate,