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: improve type definitions (#14647)
Liu Jiaf6e5850e932
diff --git a/frontend/src/components/InstanceForm/Form.vue b/frontend/src/components/InstanceForm/Form.vueindex 2922fbe208..272e79f5da 100644--- a/frontend/src/components/InstanceForm/Form.vue+++ b/frontend/src/components/InstanceForm/Form.vue@@ -482,6 +482,7 @@ import {extractInstanceResourceName,onlyAllowNumber,autoSubscriptionRoute,+ urlfy,} from "@/utils";import { getErrorCode } from "@/utils/grpcweb";import LearnMoreLink from "../LearnMoreLink.vue";diff --git a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vueindex 8a2c1a650f..85765b4427 100644--- a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue+++ b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue@@ -203,7 +203,7 @@<script setup lang="ts">import { useElementSize } from "@vueuse/core";-import { cloneDeep, head, uniq } from "lodash-es";+import { cloneDeep, head, isEmpty, uniq } from "lodash-es";import { ExpandIcon } from "lucide-vue-next";import { NButton, NTooltip, useDialog } from "naive-ui";import { computed, h, reactive, ref, toRef, watch } from "vue";diff --git a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vueindex 1c05b8599d..2d2130f454 100644--- a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue+++ b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue@@ -192,7 +192,7 @@<script setup lang="ts">import { useElementSize } from "@vueuse/core";-import { cloneDeep, head } from "lodash-es";+import { cloneDeep, head, isEmpty } from "lodash-es";import { ExpandIcon } from "lucide-vue-next";import { NButton, NTooltip, useDialog } from "naive-ui";import { v1 as uuidv1 } from "uuid";diff --git a/frontend/src/main.ts b/frontend/src/main.tsindex 528c5e5a51..12ecab0fb8 100644--- a/frontend/src/main.ts+++ b/frontend/src/main.ts@@ -1,6 +1,5 @@import { VueQueryPlugin } from "@tanstack/vue-query";import axios from "axios";-import isEmpty from "lodash-es/isEmpty";import Long from "long";import protobufjs from "protobufjs";import { createApp } from "vue";@@ -21,8 +20,6 @@ import {humanizeDate,isDev,isRelease,- sizeToFit,- urlfy,} from "./utils";protobufjs.util.Long = Long;@@ -122,9 +119,6 @@ app.config.globalProperties.humanizeDurationV1 = humanizeDurationV1;app.config.globalProperties.humanizeDate = humanizeDate;app.config.globalProperties.isDev = isDev();app.config.globalProperties.isRelease = isRelease();-app.config.globalProperties.sizeToFit = sizeToFit;-app.config.globalProperties.urlfy = urlfy;-app.config.globalProperties.isEmpty = isEmpty;app.use(VueQueryPlugin);app.use(pinia);diff --git a/frontend/src/shims-vue-globals.d.ts b/frontend/src/shims-vue-globals.d.tsindex a8295c469f..4ef0f3dce5 100644--- a/frontend/src/shims-vue-globals.d.ts+++ b/frontend/src/shims-vue-globals.d.ts@@ -1,12 +1,6 @@import type dayjs from "dayjs";-import type { isEmpty } from "lodash-es";-import type {- humanizeTs,- humanizeDurationV1,- humanizeDate,- sizeToFit,- urlfy,-} from "./utils";+import type { Composer } from "vue-i18n";+import type { humanizeTs, humanizeDurationV1, humanizeDate } from "./utils";export {};@@ -20,9 +14,8 @@ declare module "vue" {humanizeDate: typeof humanizeDate;isDev: boolean;isRelease: boolean;- sizeToFit: typeof sizeToFit;- urlfy: typeof urlfy;- isEmpty: typeof isEmpty;- $t: (key: string, values?: Record<string, string>) => string;+ $t: Composer["t"];+ $te: Composer["te"];+ $tm: Composer["tm"];}}