Skip to content

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

chore: make vue compiler happy (#12744)

Liu Jif45ddc591937
diff --git a/frontend/src/bbkit/BBAttention.vue b/frontend/src/bbkit/BBAttention.vue
index 90d4350246..7bdac91f04 100644
--- a/frontend/src/bbkit/BBAttention.vue
+++ b/frontend/src/bbkit/BBAttention.vue
@@ -28,7 +28,7 @@
<script lang="ts" setup>
import { NAlert } from "naive-ui";
-import { computed, withDefaults } from "vue";
+import { computed } from "vue";
import { useI18n } from "vue-i18n";
const props = withDefaults(
diff --git a/frontend/src/bbkit/BBAvatar.vue b/frontend/src/bbkit/BBAvatar.vue
index 36bc5d07ff..97c7b2ddcb 100644
--- a/frontend/src/bbkit/BBAvatar.vue
+++ b/frontend/src/bbkit/BBAvatar.vue
@@ -13,7 +13,7 @@
<script lang="ts" setup>
import isChinese from "is-chinese";
-import { computed, withDefaults } from "vue";
+import { computed } from "vue";
import { SYSTEM_BOT_EMAIL } from "@/types";
import type { VueClass } from "@/utils";
import { callCssVariable } from "@/utils";
diff --git a/frontend/src/bbkit/BBBadge.vue b/frontend/src/bbkit/BBBadge.vue
index fe41367006..53daa1e1fd 100644
--- a/frontend/src/bbkit/BBBadge.vue
+++ b/frontend/src/bbkit/BBBadge.vue
@@ -29,7 +29,7 @@
</template>
<script lang="ts" setup>
-import { computed, withDefaults } from "vue";
+import { computed } from "vue";
export type BBBadgeStyle = "INFO" | "WARN" | "CRITICAL" | "DISABLED";
export type BBBadgeSize = "normal" | "small";
diff --git a/frontend/src/bbkit/BBTable/BBTable.vue b/frontend/src/bbkit/BBTable/BBTable.vue
index 4673074600..6b93c03eb0 100644
--- a/frontend/src/bbkit/BBTable/BBTable.vue
+++ b/frontend/src/bbkit/BBTable/BBTable.vue
@@ -113,7 +113,7 @@
</template>
<script lang="ts" setup>
-import { computed, withDefaults } from "vue";
+import { computed } from "vue";
import type { VueClass } from "@/utils";
import type { BBTableColumn, BBTableSectionDataSource } from "../types";
diff --git a/frontend/src/bbkit/BBTextField.vue b/frontend/src/bbkit/BBTextField.vue
index d6b73da110..871ef4c028 100644
--- a/frontend/src/bbkit/BBTextField.vue
+++ b/frontend/src/bbkit/BBTextField.vue
@@ -22,7 +22,7 @@
<script lang="ts" setup>
import { isEmpty } from "lodash-es";
import { NInput } from "naive-ui";
-import { reactive, ref, watch, withDefaults } from "vue";
+import { reactive, ref, watch } from "vue";
interface LocalState {
text: string;
diff --git a/frontend/src/components/SQLReview/SQLReviewCreation.vue b/frontend/src/components/SQLReview/SQLReviewCreation.vue
index 0bceff0b82..0fd0fd26ce 100644
--- a/frontend/src/components/SQLReview/SQLReviewCreation.vue
+++ b/frontend/src/components/SQLReview/SQLReviewCreation.vue
@@ -44,7 +44,7 @@
<script lang="ts" setup>
import { useDialog } from "naive-ui";
-import { reactive, computed, withDefaults } from "vue";
+import { reactive, computed } from "vue";
import { useI18n } from "vue-i18n";
import { useRouter } from "vue-router";
import { StepTab } from "@/components/v2";
diff --git a/frontend/src/components/TenantDatabaseTable/DeployDatabaseTable.vue b/frontend/src/components/TenantDatabaseTable/DeployDatabaseTable.vue
index 62e9d34a2f..0a4a0a5a84 100644
--- a/frontend/src/components/TenantDatabaseTable/DeployDatabaseTable.vue
+++ b/frontend/src/components/TenantDatabaseTable/DeployDatabaseTable.vue
@@ -105,7 +105,7 @@
<script lang="ts" setup>
import { groupBy } from "lodash-es";
import { NPopover } from "naive-ui";
-import { computed, withDefaults } from "vue";
+import { computed } from "vue";
import type { ComposedDatabase } from "@/types";
import type { Environment } from "@/types/proto/v1/environment_service";
import type { DeploymentConfig } from "@/types/proto/v1/project_service";
diff --git a/frontend/src/components/TenantDatabaseTable/YAxisRadioGroup.vue b/frontend/src/components/TenantDatabaseTable/YAxisRadioGroup.vue
index ec8740aa4e..a57e4cda56 100644
--- a/frontend/src/components/TenantDatabaseTable/YAxisRadioGroup.vue
+++ b/frontend/src/components/TenantDatabaseTable/YAxisRadioGroup.vue
@@ -12,7 +12,7 @@
<script lang="ts" setup>
import type { SelectOption } from "naive-ui";
import { NSelect } from "naive-ui";
-import { computed, withDefaults } from "vue";
+import { computed } from "vue";
import type { ComposedDatabase } from "@/types";
import {
displayDeploymentMatchSelectorKey,