This is an automated email from the ASF dual-hosted git repository.

zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new baecd8d0f0 [Improvement-18056] Remove the unused code in 
dolphinscheduler-ui (#18057)
baecd8d0f0 is described below

commit baecd8d0f0bb8cd57d82ccb7db58688eb983a329
Author: Wenjun Ruan <[email protected]>
AuthorDate: Thu Mar 12 18:01:27 2026 +0800

    [Improvement-18056] Remove the unused code in dolphinscheduler-ui (#18057)
---
 dolphinscheduler-ui/src/env.d.ts                   |  9 --
 dolphinscheduler-ui/src/locales/en_US/profile.ts   |  4 -
 dolphinscheduler-ui/src/locales/zh_CN/profile.ts   |  4 -
 .../modules/workflow-task-relation/index.ts        | 97 ----------------------
 .../modules/workflow-task-relation/types.ts        | 50 -----------
 .../src/views/datasource/list/use-form.ts          |  8 --
 .../workflow/components/dag/use-cell-active.ts     | 13 +--
 dolphinscheduler-ui/src/views/resource/index.tsx   | 28 -------
 8 files changed, 3 insertions(+), 210 deletions(-)

diff --git a/dolphinscheduler-ui/src/env.d.ts b/dolphinscheduler-ui/src/env.d.ts
index a1c62d2fb6..518937339c 100644
--- a/dolphinscheduler-ui/src/env.d.ts
+++ b/dolphinscheduler-ui/src/env.d.ts
@@ -16,7 +16,6 @@
  */
 
 import { DefineComponent } from 'vue'
-// import * as $ from 'jquery'
 
 declare module '*.vue' {
   // eslint-disable-next-line @typescript-eslint/no-explicit-any, 
@typescript-eslint/ban-types
@@ -30,14 +29,6 @@ declare global {
   }
 }
 
-declare global {
-  interface Navigator {
-    msSaveBlob?: (blob: any, defaultName?: string) => boolean
-  }
-}
-
-declare namespace jquery {}
-
 declare module '*.png'
 declare module '*.jpg'
 declare module '*.jpeg'
diff --git a/dolphinscheduler-ui/src/locales/en_US/profile.ts 
b/dolphinscheduler-ui/src/locales/en_US/profile.ts
index bffdb0cc7d..401e483cc3 100644
--- a/dolphinscheduler-ui/src/locales/en_US/profile.ts
+++ b/dolphinscheduler-ui/src/locales/en_US/profile.ts
@@ -32,9 +32,5 @@ export default {
   email_tips: 'Please enter your email',
   email_correct_tips: 'Please enter your email in the correct format',
   phone_tips: 'Please enter your phone',
-  state_tips: 'Please choose your state',
-  enable: 'Enable',
-  disable: 'Disable',
-  timezone_success: 'Time zone updated successful',
   please_select_timezone: 'Choose timeZone'
 }
diff --git a/dolphinscheduler-ui/src/locales/zh_CN/profile.ts 
b/dolphinscheduler-ui/src/locales/zh_CN/profile.ts
index 81f6a8b789..0153a2ef34 100644
--- a/dolphinscheduler-ui/src/locales/zh_CN/profile.ts
+++ b/dolphinscheduler-ui/src/locales/zh_CN/profile.ts
@@ -32,9 +32,5 @@ export default {
   email_tips: '请输入邮箱',
   email_correct_tips: '请输入正确格式的邮箱',
   phone_tips: '请输入手机号',
-  state_tips: '请选择状态',
-  enable: '启用',
-  disable: '禁用',
-  timezone_success: '时区更新成功',
   please_select_timezone: '请选择时区'
 }
diff --git 
a/dolphinscheduler-ui/src/service/modules/workflow-task-relation/index.ts 
b/dolphinscheduler-ui/src/service/modules/workflow-task-relation/index.ts
deleted file mode 100644
index 0559b2da99..0000000000
--- a/dolphinscheduler-ui/src/service/modules/workflow-task-relation/index.ts
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {
-  ProjectCodeReq,
-  WorkflowDefinitionCodeReq,
-  PreTaskCodesReq,
-  PostTaskCodesReq,
-  TaskCodeReq,
-  SaveReq
-} from './types'
-import { axios } from '@/service/service'
-
-export function save(data: SaveReq, projectCode: ProjectCodeReq): any {
-  return axios({
-    url: `/projects/${projectCode}/workflow-task-relation`,
-    method: 'post',
-    data
-  })
-}
-
-export function deleteEdge(data: SaveReq): any {
-  return axios({
-    url: 
`/projects/${data.projectCode}/workflow-task-relation/${data.workflowDefinitionCode}/${data.preTaskCode}/${data.postTaskCode}`,
-    method: 'delete'
-  })
-}
-
-export function deleteRelation(
-  data: WorkflowDefinitionCodeReq,
-  projectCode: ProjectCodeReq,
-  taskCode: TaskCodeReq
-): any {
-  return axios({
-    url: `/projects/${projectCode}/workflow-task-relation/${taskCode}`,
-    method: 'delete',
-    data
-  })
-}
-
-export function queryDownstreamRelation(
-  projectCode: ProjectCodeReq,
-  taskCode: TaskCodeReq
-): any {
-  return axios({
-    url: 
`/projects/${projectCode}/workflow-task-relation/${taskCode}/downstream`,
-    method: 'get'
-  })
-}
-
-export function deleteDownstreamRelation(
-  data: PostTaskCodesReq,
-  projectCode: ProjectCodeReq,
-  taskCode: TaskCodeReq
-): any {
-  return axios({
-    url: 
`/projects/${projectCode}/workflow-task-relation/${taskCode}/downstream`,
-    method: 'delete',
-    data
-  })
-}
-
-export function queryUpstreamRelation(
-  projectCode: ProjectCodeReq,
-  taskCode: TaskCodeReq
-): any {
-  return axios({
-    url: 
`/projects/${projectCode}/workflow-task-relation/${taskCode}/upstream`,
-    method: 'get'
-  })
-}
-
-export function deleteUpstreamRelation(
-  data: PreTaskCodesReq,
-  projectCode: ProjectCodeReq,
-  taskCode: TaskCodeReq
-): any {
-  return axios({
-    url: 
`/projects/${projectCode}/workflow-task-relation/${taskCode}/upstream`,
-    method: 'delete',
-    data
-  })
-}
diff --git 
a/dolphinscheduler-ui/src/service/modules/workflow-task-relation/types.ts 
b/dolphinscheduler-ui/src/service/modules/workflow-task-relation/types.ts
deleted file mode 100644
index 582248cbf7..0000000000
--- a/dolphinscheduler-ui/src/service/modules/workflow-task-relation/types.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-interface ProjectCodeReq {
-  projectCode: string
-}
-
-interface WorkflowDefinitionCodeReq {
-  workflowDefinitionCode: string
-}
-
-interface PreTaskCodesReq {
-  preTaskCodes: string
-}
-
-interface PostTaskCodesReq {
-  postTaskCodes: string
-}
-
-interface TaskCodeReq {
-  taskCode: string
-}
-
-interface SaveReq extends WorkflowDefinitionCodeReq, ProjectCodeReq {
-  postTaskCode: string
-  preTaskCode: string
-}
-
-export {
-  ProjectCodeReq,
-  WorkflowDefinitionCodeReq,
-  PreTaskCodesReq,
-  PostTaskCodesReq,
-  TaskCodeReq,
-  SaveReq
-}
diff --git a/dolphinscheduler-ui/src/views/datasource/list/use-form.ts 
b/dolphinscheduler-ui/src/views/datasource/list/use-form.ts
index 9701c79381..d291e39402 100644
--- a/dolphinscheduler-ui/src/views/datasource/list/use-form.ts
+++ b/dolphinscheduler-ui/src/views/datasource/list/use-form.ts
@@ -197,14 +197,6 @@ export function useForm(id?: number) {
           }
         }
       }
-      // databaseUserName: {
-      //   trigger: ['input'],
-      //   validator() {
-      //     if (!state.detailForm.userName) {
-      //       return new Error(t('datasource.user_name_tips'))
-      //     }
-      //   }
-      // },
     } as FormRules,
     modeOptions: [
       {
diff --git 
a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-cell-active.ts
 
b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-cell-active.ts
index d6b3c8ffbc..03a19a563d 100644
--- 
a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-cell-active.ts
+++ 
b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-cell-active.ts
@@ -54,8 +54,6 @@ export function useCellActive(options: Options) {
   function setEdgeStyle(edge: Edge) {
     const isHover = edge === hoverCell.value
     const isSelected = graph.value?.isSelected(edge)
-    // TODO
-    // const labelName = this.getEdgeLabelName ? this.getEdgeLabelName(edge) : 
''
     let edgeProps = null
 
     if (isHover) {
@@ -69,14 +67,9 @@ export function useCellActive(options: Options) {
     edge.setAttrs(edgeProps.attrs)
     edge.setLabels([
       {
-        ..._.merge(
-          {
-            attrs: _.cloneDeep(edgeProps.defaultLabel.attrs)
-          }
-          // {
-          //   attrs: { label: { text: labelName } }
-          // }
-        )
+        ..._.merge({
+          attrs: _.cloneDeep(edgeProps.defaultLabel.attrs)
+        })
       }
     ])
   }
diff --git a/dolphinscheduler-ui/src/views/resource/index.tsx 
b/dolphinscheduler-ui/src/views/resource/index.tsx
deleted file mode 100644
index 4112215508..0000000000
--- a/dolphinscheduler-ui/src/views/resource/index.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { defineComponent } from 'vue'
-
-const resource = defineComponent({
-  name: 'resource',
-  setup() {},
-  render() {
-    return {}
-  }
-})
-
-export default resource

Reply via email to