Skip to content

Commit baecd8d

Browse files
authored
[Improvement-18056] Remove the unused code in dolphinscheduler-ui (#18057)
1 parent 0472599 commit baecd8d

8 files changed

Lines changed: 3 additions & 210 deletions

File tree

dolphinscheduler-ui/src/env.d.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
import { DefineComponent } from 'vue'
19-
// import * as $ from 'jquery'
2019

2120
declare module '*.vue' {
2221
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
@@ -30,14 +29,6 @@ declare global {
3029
}
3130
}
3231

33-
declare global {
34-
interface Navigator {
35-
msSaveBlob?: (blob: any, defaultName?: string) => boolean
36-
}
37-
}
38-
39-
declare namespace jquery {}
40-
4132
declare module '*.png'
4233
declare module '*.jpg'
4334
declare module '*.jpeg'

dolphinscheduler-ui/src/locales/en_US/profile.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,5 @@ export default {
3232
email_tips: 'Please enter your email',
3333
email_correct_tips: 'Please enter your email in the correct format',
3434
phone_tips: 'Please enter your phone',
35-
state_tips: 'Please choose your state',
36-
enable: 'Enable',
37-
disable: 'Disable',
38-
timezone_success: 'Time zone updated successful',
3935
please_select_timezone: 'Choose timeZone'
4036
}

dolphinscheduler-ui/src/locales/zh_CN/profile.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,5 @@ export default {
3232
email_tips: '请输入邮箱',
3333
email_correct_tips: '请输入正确格式的邮箱',
3434
phone_tips: '请输入手机号',
35-
state_tips: '请选择状态',
36-
enable: '启用',
37-
disable: '禁用',
38-
timezone_success: '时区更新成功',
3935
please_select_timezone: '请选择时区'
4036
}

dolphinscheduler-ui/src/service/modules/workflow-task-relation/index.ts

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

dolphinscheduler-ui/src/service/modules/workflow-task-relation/types.ts

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

dolphinscheduler-ui/src/views/datasource/list/use-form.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,6 @@ export function useForm(id?: number) {
197197
}
198198
}
199199
}
200-
// databaseUserName: {
201-
// trigger: ['input'],
202-
// validator() {
203-
// if (!state.detailForm.userName) {
204-
// return new Error(t('datasource.user_name_tips'))
205-
// }
206-
// }
207-
// },
208200
} as FormRules,
209201
modeOptions: [
210202
{

dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-cell-active.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ export function useCellActive(options: Options) {
5454
function setEdgeStyle(edge: Edge) {
5555
const isHover = edge === hoverCell.value
5656
const isSelected = graph.value?.isSelected(edge)
57-
// TODO
58-
// const labelName = this.getEdgeLabelName ? this.getEdgeLabelName(edge) : ''
5957
let edgeProps = null
6058

6159
if (isHover) {
@@ -69,14 +67,9 @@ export function useCellActive(options: Options) {
6967
edge.setAttrs(edgeProps.attrs)
7068
edge.setLabels([
7169
{
72-
..._.merge(
73-
{
74-
attrs: _.cloneDeep(edgeProps.defaultLabel.attrs)
75-
}
76-
// {
77-
// attrs: { label: { text: labelName } }
78-
// }
79-
)
70+
..._.merge({
71+
attrs: _.cloneDeep(edgeProps.defaultLabel.attrs)
72+
})
8073
}
8174
])
8275
}

dolphinscheduler-ui/src/views/resource/index.tsx

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

0 commit comments

Comments
 (0)