From c572debdb4f360d3e7bd94cfe5e735f29b4a2e24 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Sat, 11 Jan 2025 11:38:19 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat(1.3.0-beta1.1):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=99=AE=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=B7=BB=E5=8A=A0=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=97=A0=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/components/common/system-user.vue | 6 +++--- src/service/api/user.ts | 10 +++++++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 535bef2..d90b332 100644 --- a/.env +++ b/.env @@ -4,7 +4,7 @@ VITE_APP_TITLE=Snail Job VITE_APP_DESC=A flexible, reliable, and fast platform for distributed task retry and distributed task scheduling. -VITE_APP_VERSION=1.3.0-beta1 +VITE_APP_VERSION=1.3.0-beta1.1 VITE_APP_DEFAULT_TOKEN=SJ_Wyz3dmsdbDOkDujOTSSoBjGQP1BMsVnj diff --git a/src/components/common/system-user.vue b/src/components/common/system-user.vue index f67cc98..8d16dea 100644 --- a/src/components/common/system-user.vue +++ b/src/components/common/system-user.vue @@ -1,7 +1,7 @@ + + diff --git a/src/components/common/log-drawer.vue b/src/components/common/log-drawer.vue index f61b735..743c280 100644 --- a/src/components/common/log-drawer.vue +++ b/src/components/common/log-drawer.vue @@ -7,6 +7,7 @@ import { NDivider, NDropdown, NEmpty, + NScrollbar, NSpin, NVirtualList, type VirtualListInst @@ -282,7 +283,11 @@ const SnailLogComponent = defineComponent({ return <>; } const restOfText = throwable.replace(/^.+(\n|$)/m, ''); - return {`${restOfText}`}; + return ( + + {`${restOfText}`} + + ); }; const messageComponent = (message: Api.JobLog.JobMessage) => { @@ -297,7 +302,9 @@ const SnailLogComponent = defineComponent({ const restOfText = msg.replace(/^.+(\n|$)/m, '').replaceAll('\n', '\n - '); if (restOfText) { return ( - {` - ${restOfText}`} + + {` - ${restOfText}`} + ); } return
- {`${msg}`}
; @@ -322,12 +329,11 @@ const SnailLogComponent = defineComponent({ ref={virtualListInst} class="virtual-list" itemSize={85} - item-resizable - ignore-item-resize - padding-bottom={16} + itemResizable + paddingBottom={16} items={logList.value} - scrollbar-props={{ xScrollable: true }} - on-resize={handleResize} + scrollbarProps={{ xScrollable: true }} + onResize={handleResize} > {{ default: ({ item: message }: { item: Api.JobLog.JobMessage }) => ( @@ -592,4 +598,15 @@ const SnailLogComponent = defineComponent({ display: inline-block !important; min-width: 100%; } + +:deep(.message-scroll-body) { + margin-top: 6px; + max-height: 150px; + border: 1px solid rgb(239, 239, 245); + border-radius: var(--n-border-radius); +} + +:deep(.dark .message-scroll-body) { + border: 1px solid rgba(255, 255, 255, 0.09) !important; +} From aab874bdadf0e593daefd9ebb22674c2bc70c580 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Sun, 12 Jan 2025 11:07:58 +0800 Subject: [PATCH 3/5] =?UTF-8?q?feat(1.3.0-beta1.1):=20=E5=8F=91=E5=B8=831.?= =?UTF-8?q?3.0-beta1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/job/task/modules/job-task-operate-drawer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/job/task/modules/job-task-operate-drawer.vue b/src/views/job/task/modules/job-task-operate-drawer.vue index e2c205c..437f451 100644 --- a/src/views/job/task/modules/job-task-operate-drawer.vue +++ b/src/views/job/task/modules/job-task-operate-drawer.vue @@ -467,7 +467,7 @@ const scriptMethodOptions = [ - + From 960c8c68581f748e4332254a9b8ba9e0848f7159 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Sat, 18 Jan 2025 09:07:06 +0800 Subject: [PATCH 4/5] =?UTF-8?q?feat(1.3.0-beta2):=20=E5=8F=91=E5=B8=831.3.?= =?UTF-8?q?0-beta2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index d90b332..c341145 100644 --- a/.env +++ b/.env @@ -4,7 +4,7 @@ VITE_APP_TITLE=Snail Job VITE_APP_DESC=A flexible, reliable, and fast platform for distributed task retry and distributed task scheduling. -VITE_APP_VERSION=1.3.0-beta1.1 +VITE_APP_VERSION=1.3.0-beta2 VITE_APP_DEFAULT_TOKEN=SJ_Wyz3dmsdbDOkDujOTSSoBjGQP1BMsVnj From fe035218bae59b35c5f56c8a4677135b7e1a5332 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Thu, 23 Jan 2025 21:29:23 +0800 Subject: [PATCH 5/5] =?UTF-8?q?feat(1.3.0):=20=E5=8F=91=E5=B8=831.3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index c341145..ccd84e7 100644 --- a/.env +++ b/.env @@ -4,7 +4,7 @@ VITE_APP_TITLE=Snail Job VITE_APP_DESC=A flexible, reliable, and fast platform for distributed task retry and distributed task scheduling. -VITE_APP_VERSION=1.3.0-beta2 +VITE_APP_VERSION=1.3.0 VITE_APP_DEFAULT_TOKEN=SJ_Wyz3dmsdbDOkDujOTSSoBjGQP1BMsVnj