Skip to content

Commit d7d021a

Browse files
authored
chore: clear legacy code (#17118)
1 parent 0f43887 commit d7d021a

File tree

8 files changed

+0
-50
lines changed

8 files changed

+0
-50
lines changed

frontend/src/components/IssueV1/components/DescriptionSection/DescriptionSection.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ import { computed, nextTick, reactive, ref, watch } from "vue";
7676
import { useI18n } from "vue-i18n";
7777
import { useRenderMarkdown } from "@/components/MarkdownEditor";
7878
import { issueServiceClientConnect, planServiceClientConnect } from "@/grpcweb";
79-
import { emitWindowEvent } from "@/plugins";
8079
import { pushNotification, useCurrentProjectV1 } from "@/store";
8180
import {
8281
IssueSchema,
@@ -161,7 +160,6 @@ const saveEdit = async () => {
161160
title: t("common.updated"),
162161
});
163162
events.emit("status-changed", { eager: true });
164-
emitWindowEvent("bb.issue-field-update");
165163
state.isEditing = false;
166164
} finally {
167165
state.isUpdating = false;

frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,11 @@ import {
7474
releaseServiceClientConnect,
7575
rolloutServiceClientConnect,
7676
} from "@/grpcweb";
77-
import { emitWindowEvent } from "@/plugins";
7877
import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";
7978
import { useSheetV1Store, useCurrentProjectV1 } from "@/store";
8079
import { dialectOfEngineV1, languageOfEngineV1 } from "@/types";
8180
import type { Engine } from "@/types/proto-es/v1/common_pb";
8281
import { CreateIssueRequestSchema } from "@/types/proto-es/v1/issue_service_pb";
83-
import type { Issue } from "@/types/proto-es/v1/issue_service_pb";
8482
import { IssueSchema, Issue_Type } from "@/types/proto-es/v1/issue_service_pb";
8583
import { CreatePlanRequestSchema } from "@/types/proto-es/v1/plan_service_pb";
8684
import type { Plan_ExportDataConfig } from "@/types/proto-es/v1/plan_service_pb";
@@ -95,7 +93,6 @@ import { Advice_Status } from "@/types/proto-es/v1/sql_service_pb";
9593
import { databaseForTask } from "@/utils";
9694
import {
9795
defer,
98-
extractIssueUID,
9996
extractProjectResourceName,
10097
extractSheetUID,
10198
flattenTaskV1List,
@@ -192,7 +189,6 @@ const doCreateIssue = async () => {
192189
});
193190
await rolloutServiceClientConnect.createRollout(rolloutRequest);
194191
195-
emitIssueCreateWindowEvent(createdIssue);
196192
router.replace({
197193
name: PROJECT_V1_ROUTE_ISSUE_DETAIL,
198194
params: {
@@ -289,15 +285,6 @@ const maybeFormatSQL = async (sheet: Sheet, engine: Engine) => {
289285
setSheetStatement(sheet, formatted);
290286
};
291287
292-
const emitIssueCreateWindowEvent = (issue: Issue) => {
293-
const eventParams = {
294-
uid: extractIssueUID(issue.name),
295-
name: issue.name,
296-
description: issue.description,
297-
};
298-
emitWindowEvent("bb.issue-create", eventParams);
299-
};
300-
301288
const runSQLCheckForIssue = async () => {
302289
if (
303290
!isCreating.value ||

frontend/src/components/IssueV1/components/HeaderSection/Title.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import type { CSSProperties } from "vue";
2323
import { computed, reactive, watch } from "vue";
2424
import { useI18n } from "vue-i18n";
2525
import { issueServiceClientConnect, planServiceClientConnect } from "@/grpcweb";
26-
import { emitWindowEvent } from "@/plugins";
2726
import { pushNotification } from "@/store";
2827
import {
2928
IssueSchema,
@@ -114,7 +113,6 @@ const onBlur = async () => {
114113
style: "SUCCESS",
115114
title: t("common.updated"),
116115
});
117-
emitWindowEvent("bb.issue-field-update");
118116
} finally {
119117
cleanup();
120118
}

frontend/src/components/IssueV1/components/IssueTableV1.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ import { BBAvatar } from "@/bbkit";
4949
import BatchIssueActionsV1 from "@/components/IssueV1/components/BatchIssueActionsV1.vue";
5050
import CurrentApproverV1 from "@/components/IssueV1/components/CurrentApproverV1.vue";
5151
import { useElementVisibilityInScrollParent } from "@/composables/useElementVisibilityInScrollParent";
52-
import { emitWindowEvent } from "@/plugins";
5352
import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";
5453
import { useUserStore } from "@/store";
5554
import {
@@ -263,9 +262,6 @@ const rowProps = (issue: ComposedIssue) => {
263262
return {
264263
style: "cursor: pointer;",
265264
onClick: (e: MouseEvent) => {
266-
emitWindowEvent("bb.issue-detail", {
267-
uid: extractIssueUID(issue.name),
268-
});
269265
const url = issueUrl(issue);
270266
if (e.ctrlKey || e.metaKey) {
271267
window.open(url, "_blank");

frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ import {
198198
import DownloadSheetButton from "@/components/Sheet/DownloadSheetButton.vue";
199199
import SQLUploadButton from "@/components/misc/SQLUploadButton.vue";
200200
import { planServiceClientConnect } from "@/grpcweb";
201-
import { emitWindowEvent } from "@/plugins";
202201
import {
203202
pushNotification,
204203
useCurrentProjectV1,
@@ -491,8 +490,6 @@ const updateStatement = async (statement: string) => {
491490
style: "SUCCESS",
492491
title: t("common.updated"),
493492
});
494-
495-
emitWindowEvent("bb.pipeline-task-statement-update");
496493
};
497494
498495
const handleStatementChange = (value: string) => {

frontend/src/plugins/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/src/plugins/window-events.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

frontend/src/views/ExportCenter/DataExportIssueDataTable/DataExportIssueDataTable.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import IssueLabelSelector, {
2727
} from "@/components/IssueV1/components/IssueLabelSelector.vue";
2828
import IssueStatusIconWithTaskSummary from "@/components/IssueV1/components/IssueStatusIconWithTaskSummary.vue";
2929
import { projectOfIssue } from "@/components/IssueV1/logic";
30-
import { emitWindowEvent } from "@/plugins";
3130
import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";
3231
import { useSheetV1Store } from "@/store";
3332
import { getTimeForPbTimestampProtoEs, type ComposedIssue } from "@/types";
@@ -154,9 +153,6 @@ const rowProps = (issue: ComposedIssue) => {
154153
return {
155154
style: "cursor: pointer;",
156155
onClick: (e: MouseEvent) => {
157-
emitWindowEvent("bb.issue-detail", {
158-
uid: extractIssueUID(issue.name),
159-
});
160156
const route = router.resolve({
161157
name: PROJECT_V1_ROUTE_ISSUE_DETAIL,
162158
params: {

0 commit comments

Comments
 (0)