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: fix some eslint warning (#2475)
boojack2096c9411640
diff --git a/frontend/src/components/FeatureAttention.vue b/frontend/src/components/FeatureAttention.vueindex 64efa13906..767ce22413 100644--- a/frontend/src/components/FeatureAttention.vue+++ b/frontend/src/components/FeatureAttention.vue@@ -12,7 +12,6 @@<script lang="ts">import { defineComponent, PropType } from "vue";import { FeatureType } from "../types";-import { useI18n } from "vue-i18n";import { useRouter } from "vue-router";export default defineComponent({@@ -33,7 +32,6 @@ export default defineComponent({},},setup(props) {- const { t } = useI18n();const router = useRouter();const redirect = () => {diff --git a/frontend/src/components/FeatureModal.vue b/frontend/src/components/FeatureModal.vueindex 243832fee1..0c03daf1e6 100644--- a/frontend/src/components/FeatureModal.vue+++ b/frontend/src/components/FeatureModal.vue@@ -54,14 +54,10 @@ export default defineComponent({},},emits: ["cancel"],- setup(props, { emit }) {+ setup(props) {const { t } = useI18n();const router = useRouter();- const cancel = () => {- emit("cancel");- };-const ok = () => {router.push({ name: "setting.workspace.subscription" });};diff --git a/frontend/src/components/Issue/IssueHighlightPanel.vue b/frontend/src/components/Issue/IssueHighlightPanel.vueindex e645d02a93..6a3819ba96 100644--- a/frontend/src/components/Issue/IssueHighlightPanel.vue+++ b/frontend/src/components/Issue/IssueHighlightPanel.vue@@ -126,15 +126,6 @@ const pushEvent = computed((): VCSPushEvent | undefined => {return undefined;});-const vcsType = computed((): string => {- if (pushEvent.value) {- if (pushEvent.value.vcsType.startsWith("GITLAB")) {- return "GitLab";- }- }- return "";-});-const vcsBranch = computed((): string => {if (pushEvent.value) {return pushEvent.value.ref.replace(/^refs\/heads\//g, "");diff --git a/frontend/src/components/Issue/TaskRunTable.vue b/frontend/src/components/Issue/TaskRunTable.vueindex da5d04d651..4b9500b9c7 100644--- a/frontend/src/components/Issue/TaskRunTable.vue+++ b/frontend/src/components/Issue/TaskRunTable.vue@@ -65,7 +65,6 @@<script lang="ts" setup>import { computed, PropType } from "vue";-import PrincipalAvatar from "../PrincipalAvatar.vue";import { BBTableColumn } from "../../bbkit/types";import { MigrationErrorCode, Task, TaskRun, TaskRunStatus } from "../../types";import { databaseSlug, instanceSlug, migrationHistorySlug } from "../../utils";diff --git a/frontend/src/components/SQLReview/SQLReviewConfig.vue b/frontend/src/components/SQLReview/SQLReviewConfig.vueindex 7fe52e01af..fb739fc8e7 100644--- a/frontend/src/components/SQLReview/SQLReviewConfig.vue+++ b/frontend/src/components/SQLReview/SQLReviewConfig.vue@@ -65,7 +65,7 @@ interface LocalState {openTemplate: boolean;}-const props = defineProps({+defineProps({selectedRuleList: {required: true,type: Object as PropType<RuleTemplate[]>,@@ -111,7 +111,6 @@ const onPayloadChange = (const newRule: RuleTemplate = {...rule,componentList: rule.componentList.reduce((list, component, index) => {- let val = data[index];switch (component.payload.type) {case "STRING_ARRAY":list.push({diff --git a/frontend/src/components/SQLReview/SQLReviewInfo.vue b/frontend/src/components/SQLReview/SQLReviewInfo.vueindex 8c0dc9986c..a6452c5e87 100644--- a/frontend/src/components/SQLReview/SQLReviewInfo.vue+++ b/frontend/src/components/SQLReview/SQLReviewInfo.vue@@ -106,7 +106,7 @@<script lang="ts" setup>import { PropType, reactive, computed } from "vue";-import { useSQLReviewStore, useEnvironmentList } from "@/store";+import { useEnvironmentList } from "@/store";import { Environment, SQLReviewPolicyTemplate } from "@/types";import { environmentName } from "@/utils";@@ -153,8 +153,6 @@ const state = reactive<LocalState>({openTemplate: false,});-const store = useSQLReviewStore();-const environmentList = computed((): LocalEnvironment[] => {const environmentList = useEnvironmentList(["NORMAL"]);const availableIdSet = new Set(diff --git a/frontend/src/components/SQLReview/components/SQLReviewCard.vue b/frontend/src/components/SQLReview/components/SQLReviewCard.vueindex 6707114dd8..3d159cc8ac 100644--- a/frontend/src/components/SQLReview/components/SQLReviewCard.vue+++ b/frontend/src/components/SQLReview/components/SQLReviewCard.vue@@ -72,19 +72,14 @@<script lang="ts" setup>import { PropType } from "vue";-import { useRouter } from "vue-router";import { SQLReviewPolicy } from "@/types/sqlReview";-import { useEnvironmentStore } from "@/store";import { environmentName } from "@/utils";-const props = defineProps({+defineProps({reviewPolicy: {required: true,type: Object as PropType<SQLReviewPolicy>,},});const emit = defineEmits(["click"]);--const router = useRouter();-const envStore = useEnvironmentStore();</script>diff --git a/frontend/src/components/SQLReview/components/SQLReviewCategoryTabFilter.vue b/frontend/src/components/SQLReview/components/SQLReviewCategoryTabFilter.vueindex 21b8ae5bac..eb30388eca 100644--- a/frontend/src/components/SQLReview/components/SQLReviewCategoryTabFilter.vue+++ b/frontend/src/components/SQLReview/components/SQLReviewCategoryTabFilter.vue@@ -38,7 +38,7 @@ const props = defineProps({},});-const emit = defineEmits(["select"]);+defineEmits(["select"]);const { t } = useI18n();diff --git a/frontend/src/components/SQLReview/components/SQLReviewTemplates.vue b/frontend/src/components/SQLReview/components/SQLReviewTemplates.vueindex fc5282e36a..8d165dd8d4 100644--- a/frontend/src/components/SQLReview/components/SQLReviewTemplates.vue+++ b/frontend/src/components/SQLReview/components/SQLReviewTemplates.vue@@ -35,7 +35,7 @@import { PropType } from "vue";import { SQLReviewPolicyTemplate } from "@/types/sqlReview";-const props = defineProps({+defineProps({templateList: {required: true,type: Object as PropType<SQLReviewPolicyTemplate[]>,@@ -56,7 +56,7 @@ const props = defineProps({},});-const emit = defineEmits(["select"]);+defineEmits(["select"]);const getTemplateImage = (id: string) =>new URL(`../../../assets/${id}.png`, import.meta.url).href;diff --git a/frontend/src/components/VCSProviderBasicInfoPanel.vue b/frontend/src/components/VCSProviderBasicInfoPanel.vueindex 66efcae675..20ddb61596 100644--- a/frontend/src/components/VCSProviderBasicInfoPanel.vue+++ b/frontend/src/components/VCSProviderBasicInfoPanel.vue@@ -108,7 +108,7 @@ import {} from "vue";import isEmpty from "lodash-es/isEmpty";import { TEXT_VALIDATION_DELAY, VCSConfig } from "../types";-import { isUrl, isDev } from "../utils";+import { isUrl } from "../utils";import { useI18n } from "vue-i18n";interface LocalState {diff --git a/frontend/src/layouts/DatabaseLayout.vue b/frontend/src/layouts/DatabaseLayout.vueindex 2d676c8e5b..64757c7134 100644--- a/frontend/src/layouts/DatabaseLayout.vue+++ b/frontend/src/layouts/DatabaseLayout.vue@@ -17,6 +17,7 @@ export default {},dataSourceSlug: {type: String,+ default: "",},},};diff --git a/frontend/src/store/modules/sqlReview.ts b/frontend/src/store/modules/sqlReview.tsindex 7352153d31..095f23bc23 100644--- a/frontend/src/store/modules/sqlReview.ts+++ b/frontend/src/store/modules/sqlReview.ts@@ -1,7 +1,6 @@import { pullAt } from "lodash-es";import {empty,- unknown,Policy,PolicyId,EnvironmentId,diff --git a/frontend/src/types/oauth.ts b/frontend/src/types/oauth.tsindex 25cf98fdee..0d7ebd0969 100644--- a/frontend/src/types/oauth.ts+++ b/frontend/src/types/oauth.ts@@ -1,6 +1,5 @@-import { useWindowScroll } from "@vueuse/core";import { VCSType } from ".";-import { randomString, vcsSlug } from "../utils";+import { randomString } from "../utils";export type OAuthConfig = {endpoint: string;diff --git a/frontend/src/utils/activity.ts b/frontend/src/utils/activity.tsindex c9e154727d..ed1d0805d8 100644--- a/frontend/src/utils/activity.ts+++ b/frontend/src/utils/activity.ts@@ -18,10 +18,6 @@ export function issueActivityActionSentence(const principalStore = usePrincipalStore();const update = activity.payload as ActivityIssueFieldUpdatePayload;- const name = "Unknown Field";- const oldValue = undefined;- const newValue = undefined;-switch (update.fieldId) {case IssueBuiltinFieldId.ASSIGNEE: {if (update.oldValue && update.newValue) {diff --git a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vueindex a63ba5e0c6..f463145cd4 100644--- a/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue+++ b/frontend/src/views/SettingWorkspaceSQLReviewDetail.vue@@ -198,7 +198,6 @@ import { useRouter } from "vue-router";import { idFromSlug, environmentName, isDBAOrOwner } from "@/utils";import {unknown,- RuleType,LEVEL_LIST,RuleLevel,RuleTemplate,diff --git a/frontend/src/views/auth/Signup.vue b/frontend/src/views/auth/Signup.vueindex 85c7596231..416f5ade31 100644--- a/frontend/src/views/auth/Signup.vue+++ b/frontend/src/views/auth/Signup.vue@@ -7,8 +7,12 @@alt="Bytebase"/><h2 class="mt-6 text-3xl leading-9 font-extrabold text-main">- <template v-if="needAdminSetup" class="text-accent font-semnibold">- <i18n-t keypath="auth.sign-up.admin-title" tag="p">+ <template v-if="needAdminSetup">+ <i18n-t+ keypath="auth.sign-up.admin-title"+ tag="p"+ class="text-accent font-semnibold"+ ><template #account><span class="text-accent font-semnibold">{{$t("auth.sign-up.admin-account")