Skip to content

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

chore: fix a bunch of frontend code warnings (#4712)

Tianzhou (天舟)058fdc50e358
diff --git a/frontend/src/components/FeatureBadge.vue b/frontend/src/components/FeatureBadge.vue
index 45e3fca944..8f36992421 100644
--- a/frontend/src/components/FeatureBadge.vue
+++ b/frontend/src/components/FeatureBadge.vue
@@ -2,7 +2,7 @@
<router-link
v-if="!hasFeature"
to="/setting/subscription"
- exact-active-class
+ exact-active-class=""
@click.prevent="noop"
>
<heroicons-solid:sparkles class="w-5 h-5" />
diff --git a/frontend/src/components/SQLReview/SQLReviewCreation.vue b/frontend/src/components/SQLReview/SQLReviewCreation.vue
index b1342b6103..e20a055e40 100644
--- a/frontend/src/components/SQLReview/SQLReviewCreation.vue
+++ b/frontend/src/components/SQLReview/SQLReviewCreation.vue
@@ -19,8 +19,8 @@
:is-edit="!!policyId"
class="py-5"
@select-template="tryApplyTemplate"
- @name-change="(val) => (state.name = val)"
- @env-change="(env) => onEnvChange(env)"
+ @name-change="(val: string) => (state.name = val)"
+ @env-change="(env: Environment) => onEnvChange(env)"
/>
</template>
<template #1>
diff --git a/frontend/src/layouts/BodyLayout.vue b/frontend/src/layouts/BodyLayout.vue
index 7d80f3390f..c1fb6fa587 100644
--- a/frontend/src/layouts/BodyLayout.vue
+++ b/frontend/src/layouts/BodyLayout.vue
@@ -38,7 +38,7 @@
<router-link
v-if="!isFreePlan"
to="/setting/subscription"
- exact-active-class
+ exact-active-class=""
class="text-sm flex"
>
{{ $t(currentPlan) }}
@@ -101,7 +101,7 @@
<router-link
v-if="!isFreePlan"
to="/setting/subscription"
- exact-active-class
+ exact-active-class=""
class="text-sm flex whitespace-nowrap mr-1"
>
{{ $t(currentPlan) }}
diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vue
index 772c585a7d..8a5c6eb04b 100644
--- a/frontend/src/views/DashboardHeader.vue
+++ b/frontend/src/views/DashboardHeader.vue
@@ -2,7 +2,12 @@
<div class="flex items-center justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 w-44">
- <router-link to="/" class="select-none" active-class exact-active-class>
+ <router-link
+ to="/"
+ class="select-none"
+ active-class=""
+ exact-active-class=""
+ >
<img
class="h-12 w-auto"
src="../assets/logo-full.svg"
@@ -124,7 +129,7 @@
<span class="hidden lg:block mr-2">{{ $t("common.want-help") }}</span>
<heroicons-outline:chat-bubble-left-right class="w-5 h-5" />
</div>
- <router-link to="/inbox" exact-active-class>
+ <router-link to="/inbox" exact-active-class="">
<span
v-if="inboxSummary.hasUnread"
class="absolute rounded-full ml-4 -mt-1 h-2.5 w-2.5 bg-accent opacity-75"