From dd0daeb6a5e9c98668c9ee4f69a33c285c804830 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 4 Aug 2025 16:25:06 +0800 Subject: [PATCH 1/2] perf: icon optimize --- .../components/app-icon/icons/application.ts | 26 +++++++++++++++++++ ui/src/components/app-icon/icons/system.ts | 21 +++++++++++++++ ui/src/components/folder-tree/index.vue | 2 +- ui/src/views/application/index.vue | 5 ++-- ui/src/views/system/operate-log/index.vue | 10 ++++--- ui/src/workflow/common/NodeControl.vue | 14 +++++----- 6 files changed, 63 insertions(+), 15 deletions(-) diff --git a/ui/src/components/app-icon/icons/application.ts b/ui/src/components/app-icon/icons/application.ts index 5d575c65d9f..282e07d0901 100644 --- a/ui/src/components/app-icon/icons/application.ts +++ b/ui/src/components/app-icon/icons/application.ts @@ -713,4 +713,30 @@ export default { ]) }, }, + + 'app-clock': { + iconReader: () => { + return h('i', [ + h( + 'svg', + { + style: { height: '100%', width: '100%' }, + viewBox: '0 0 1024 1024', + version: '1.1', + xmlns: 'http://www.w3.org/2000/svg', + }, + [ + h('path', { + d: 'M469.333333 320a21.333333 21.333333 0 0 1 21.333334-21.333333h42.666666a21.333333 21.333333 0 0 1 21.333334 21.333333V469.333333h149.333333a21.333333 21.333333 0 0 1 21.333333 21.333334v42.666666a21.333333 21.333333 0 0 1-21.333333 21.333334h-213.333333a21.333333 21.333333 0 0 1-21.333334-21.333334v-213.333333z', + fill: 'currentColor', + }), + h('path', { + d: 'M512 981.333333c259.2 0 469.333333-210.133333 469.333333-469.333333S771.2 42.666667 512 42.666667 42.666667 252.8 42.666667 512s210.133333 469.333333 469.333333 469.333333z m0-85.333333a384 384 0 1 1 0-768 384 384 0 0 1 0 768z', + fill: 'currentColor', + }), + ], + ), + ]) + }, + }, } diff --git a/ui/src/components/app-icon/icons/system.ts b/ui/src/components/app-icon/icons/system.ts index b54b6c5b5c1..61561124d3e 100644 --- a/ui/src/components/app-icon/icons/system.ts +++ b/ui/src/components/app-icon/icons/system.ts @@ -60,4 +60,25 @@ export default { ]) }, }, + + 'app-operate-log': { + iconReader: () => { + return h('i', [ + h( + 'svg', + { + viewBox: '0 0 1024 1024', + version: '1.1', + xmlns: 'http://www.w3.org/2000/svg', + }, + [ + h('path', { + d: 'M213.333333 128v768h597.333334V128H213.333333zM170.666667 42.666667h682.666666c23.552 0 42.666667 20.010667 42.666667 44.714666v849.237334c0 24.704-19.114667 44.714667-42.666667 44.714666H170.666667c-23.552 0-42.666667-20.010667-42.666667-44.714666V87.381333C128 62.677333 147.114667 42.666667 170.666667 42.666667z m149.333333 256h170.666667a21.333333 21.333333 0 0 1 21.333333 21.333333v42.666667a21.333333 21.333333 0 0 1-21.333333 21.333333h-170.666667a21.333333 21.333333 0 0 1-21.333333-21.333333v-42.666667a21.333333 21.333333 0 0 1 21.333333-21.333333z m0 170.666666h384a21.333333 21.333333 0 0 1 21.333333 21.333334v42.666666a21.333333 21.333333 0 0 1-21.333333 21.333334h-384a21.333333 21.333333 0 0 1-21.333333-21.333334v-42.666666a21.333333 21.333333 0 0 1 21.333333-21.333334z m0 170.666667h384a21.333333 21.333333 0 0 1 21.333333 21.333333v42.666667a21.333333 21.333333 0 0 1-21.333333 21.333333h-384a21.333333 21.333333 0 0 1-21.333333-21.333333v-42.666667a21.333333 21.333333 0 0 1 21.333333-21.333333z', + fill: 'currentColor', + }), + ], + ), + ]) + }, + }, } diff --git a/ui/src/components/folder-tree/index.vue b/ui/src/components/folder-tree/index.vue index 0bf13b27b03..51cd44fc8ee 100644 --- a/ui/src/components/folder-tree/index.vue +++ b/ui/src/components/folder-tree/index.vue @@ -39,7 +39,7 @@ - + diff --git a/ui/src/workflow/common/NodeControl.vue b/ui/src/workflow/common/NodeControl.vue index 8e822b0978d..32ce5692937 100644 --- a/ui/src/workflow/common/NodeControl.vue +++ b/ui/src/workflow/common/NodeControl.vue @@ -1,6 +1,6 @@