Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
(#16770)
p0ny4d3dcbe8589a
diff --git a/frontend/src/bbkit/BBUtil.ts b/frontend/src/bbkit/BBUtil.tsindex 18ea65d0ed..bd1c9d518f 100644--- a/frontend/src/bbkit/BBUtil.ts+++ b/frontend/src/bbkit/BBUtil.ts@@ -7,15 +7,6 @@ export function hashCode(s: string): number {return hash;}-export function scrollIntoViewIfNeeded(elem: any, ...args: any[]) {- // this is not well-defined in typescript- if (typeof elem.scrollIntoViewIfNeeded === "function") {- elem.scrollIntoViewIfNeeded(...args);- } else if (typeof elem.scrollIntoView === "function") {- elem.scrollIntoView(...args);- }-}-export function isAncestorOf(maybeAncestor: HTMLElement,maybeDescendant: HTMLElementdiff --git a/frontend/src/views/TwoFactorSetup.vue b/frontend/src/views/TwoFactorSetup.vueindex d2e1daf385..7308156355 100644--- a/frontend/src/views/TwoFactorSetup.vue+++ b/frontend/src/views/TwoFactorSetup.vue@@ -95,6 +95,7 @@ import { pushNotification, useCurrentUserV1, useUserStore } from "@/store";import { create } from "@bufbuild/protobuf";import { UpdateUserRequestSchema } from "@/types/proto-es/v1/user_service_pb";import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";+import type { ConnectError } from "@connectrpc/connect";const issuerName = "Bytebase";@@ -173,11 +174,11 @@ const verifyTOPCode = async () => {otpCode: state.otpCode,}));- } catch (error: any) {+ } catch (error) {pushNotification({module: "bytebase",style: "CRITICAL",- title: error.details,+ title: (error as ConnectError).message,});return false;}diff --git a/frontend/src/views/auth/Signin.vue b/frontend/src/views/auth/Signin.vueindex 8206fa5a3a..8f155bfe10 100644--- a/frontend/src/views/auth/Signin.vue+++ b/frontend/src/views/auth/Signin.vue@@ -196,6 +196,7 @@ import type { IdentityProvider } from "@/types/proto-es/v1/idp_service_pb";import { IdentityProviderType } from "@/types/proto-es/v1/idp_service_pb";import { openWindowForSSO } from "@/utils";import AuthFooter from "./AuthFooter.vue";+import type { ConnectError } from "@connectrpc/connect";const props = withDefaults(defineProps<{@@ -268,7 +269,7 @@ onMounted(async () => {module: "bytebase",style: "CRITICAL",title: `Request error occurred`,- description: (error as any).message,+ description: (error as ConnectError).message,});}// Check if there is an identity provider in the query string and try to sign in with it.@@ -322,7 +323,7 @@ const trySigninWithIdentityProvider = async (module: "bytebase",style: "CRITICAL",title: `Request error occurred`,- description: (error as any).message,+ description: (error as ConnectError).message,});}};diff --git a/frontend/src/views/project/ProjectAuditLogDashboard.vue b/frontend/src/views/project/ProjectAuditLogDashboard.vueindex ee71c81199..315a35c8d2 100644--- a/frontend/src/views/project/ProjectAuditLogDashboard.vue+++ b/frontend/src/views/project/ProjectAuditLogDashboard.vue@@ -154,7 +154,7 @@ const handleExport = async ({reject,}: {options: ExportOption;- reject: (reason?: any) => void;+ reject: (reason?: unknown) => void;resolve: (content: DownloadContent) => void;}) => {let pageToken = "";