Skip to content

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

chore: clean frontend dependencies (#16176)

boojack59cb98f4a80a
diff --git a/frontend/package.json b/frontend/package.json
index a6142e6716..e14a77915b 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -31,8 +31,6 @@
"@vueuse/core": "12.7.0",
"axios": "1.8.2",
"bootstrap": "5.3.3",
- "canvas-confetti": "1.9.3",
- "core-js": "^3.41.0",
"crypto-js": "^4.2.0",
"d3-shape": "^3.2.0",
"dayjs": "1.11.13",
@@ -95,7 +93,6 @@
"@tailwindcss/typography": "0.5.16",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@tsconfig/node22": "22.0.0",
- "@types/canvas-confetti": "1.6.4",
"@types/crypto-js": "^4.2.2",
"@types/d3-shape": "^3.1.7",
"@types/downloadjs": "1.4.6",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index 292bf039de..96e76bd234 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -55,12 +55,6 @@ importers:
bootstrap:
specifier: 5.3.3
version: 5.3.3(@popperjs/[email protected])
- canvas-confetti:
- specifier: 1.9.3
- version: 1.9.3
- core-js:
- specifier: ^3.41.0
- version: 3.42.0
crypto-js:
specifier: ^4.2.0
version: 4.2.0
@@ -242,9 +236,6 @@ importers:
'@tsconfig/node22':
specifier: 22.0.0
version: 22.0.0
- '@types/canvas-confetti':
- specifier: 1.6.4
- version: 1.6.4
'@types/crypto-js':
specifier: ^4.2.2
version: 4.2.2
@@ -2155,9 +2146,6 @@ packages:
'@tsconfig/[email protected]':
resolution: {integrity: sha512-twLQ77zevtxobBOD4ToAtVmuYrpeYUh3qh+TEp+08IWhpsrIflVHqQ1F1CiPxQGL7doCdBIOOCF+1Tm833faNg==}
- '@types/[email protected]':
- resolution: {integrity: sha512-fNyZ/Fdw/Y92X0vv7B+BD6ysHL4xVU5dJcgzgxLdGbn8O3PezZNIJpml44lKM0nsGur+o/6+NZbZeNTt00U1uA==}
-
resolution: {integrity: sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==}
@@ -2717,9 +2705,6 @@ packages:
resolution: {integrity: sha512-49/c1+x3Kwz7ZIWt+4DvK3aMJy9oYXXG6/97JKsnjdCk/6n9vVyWL8NAwVt95Lwt9eigI10Hl782kDfZUUlRXw==}
- resolution: {integrity: sha512-rFfTURMvmVEX1gyXFgn5QMn81bYk70qa0HLzcIOSVEyl57n6o9ItHeBtUSWdvKAPY0xlvBHno4/v3QPrT83q9g==}
-
resolution: {integrity: sha512-K7Qy8O9p76sL3/3m7/zLKbRkyOlSZAgzEaLhyj2mXS8PsCud2Eo4hAb8aLtZqHh0QGqLcb9dlJSu6lHRVENm1w==}
engines: {node: '>=6'}
@@ -7633,8 +7618,6 @@ snapshots:
'@tsconfig/[email protected]': {}
- '@types/[email protected]': {}
-
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -8334,8 +8317,6 @@ snapshots:
-
diff --git a/frontend/src/components/IssueV1/components/Panel/IssueReviewActionPanel.vue b/frontend/src/components/IssueV1/components/Panel/IssueReviewActionPanel.vue
index 30e1ea666b..351e1fcd8f 100644
--- a/frontend/src/components/IssueV1/components/Panel/IssueReviewActionPanel.vue
+++ b/frontend/src/components/IssueV1/components/Panel/IssueReviewActionPanel.vue
@@ -81,7 +81,7 @@
<NButton
:disabled="confirmErrors.length > 0"
v-bind="confirmButtonProps"
- @click="handleClickConfirm"
+ @click="handleConfirm"
>
{{ $t("common.confirm") }}
</NButton>
@@ -205,32 +205,7 @@ const confirmButtonProps = computed(() => {
return p;
});
-const handleClickConfirm = (e: MouseEvent) => {
- const button = e.target as HTMLElement;
- const { left, top, width, height } = button.getBoundingClientRect();
- const { innerWidth: winWidth, innerHeight: winHeight } = window;
- const onSuccess = () => {
- if (props.action !== "APPROVE") {
- return;
- }
- // import the effect lib asynchronously
- import("canvas-confetti").then(({ default: confetti }) => {
- // Create a confetti effect from the position of the LGTM button
- confetti({
- particleCount: 100,
- spread: 70,
- origin: {
- x: (left + width / 2) / winWidth,
- y: (top + height / 2) / winHeight,
- },
- });
- });
- };
-
- handleConfirm(onSuccess);
-};
-
-const handleConfirm = async (onSuccess: () => void) => {
+const handleConfirm = async () => {
const { action } = props;
if (!action) return;
state.loading = true;
@@ -241,7 +216,6 @@ const handleConfirm = async (onSuccess: () => void) => {
name: issue.value.name,
comment: comment.value,
});
- onSuccess();
} else if (status === Issue_Approver_Status.PENDING) {
await issueServiceClient.requestIssue({
name: issue.value.name,
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 384024d433..46c69e9c5d 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -1,5 +1,4 @@
import { VueQueryPlugin } from "@tanstack/vue-query";
-import "core-js/stable";
import Long from "long";
import protobufjs from "protobufjs";
import "regenerator-runtime/runtime";
@@ -43,16 +42,13 @@ console.debug("release:", isRelease());
app.use(pinia);
- const initStores = async () => {
- await Promise.all([
- useActuatorV1Store().fetchServerInfo(),
- useSubscriptionV1Store().fetchSubscription(),
- useSubscriptionV1Store().fetchFeatureMatrix(),
- useAuthStore().fetchCurrentUser(),
- ]);
- };
-
- await initStores();
+ // Initialize stores.
+ await Promise.all([
+ useActuatorV1Store().fetchServerInfo(),
+ useSubscriptionV1Store().fetchSubscription(),
+ useSubscriptionV1Store().fetchFeatureMatrix(),
+ useAuthStore().fetchCurrentUser(),
+ ]);
app.use(router).use(highlight).use(i18n).use(NaiveUI).use(VueQueryPlugin);