From d8839f91384e4d06e25f9bd4c1ffdc12d2e61442 Mon Sep 17 00:00:00 2001 From: godo Date: Tue, 30 Jul 2024 08:12:52 +0800 Subject: [PATCH] add progress --- README.md | 1 + frontend/components.d.ts | 1 + frontend/public/font/demo_index.html | 98 ++++++++++++- frontend/public/font/iconfont.css | 22 ++- frontend/public/font/iconfont.js | 2 +- frontend/public/font/iconfont.json | 28 ++++ frontend/public/font/iconfont.ttf | Bin 40792 -> 42416 bytes frontend/public/font/iconfont.woff | Bin 24600 -> 25672 bytes frontend/public/font/iconfont.woff2 | Bin 20728 -> 21660 bytes frontend/src/assets/store.json | 32 ++++- frontend/src/components/builtin/FileList.vue | 92 +++++++++--- frontend/src/components/setting/SetUpdate.vue | 56 -------- frontend/src/components/store/AppItem.vue | 49 ++++--- frontend/src/components/store/Store.vue | 131 ++++++++++++++--- .../src/components/window/WindowInner.vue | 2 +- frontend/src/hook/useAppMenu.ts | 59 ++++---- frontend/src/hook/useContextMenu.ts | 30 +--- frontend/src/i18n/lang/en.json | 2 + frontend/src/i18n/lang/zh.json | 4 + frontend/src/system/core/FileOs.ts | 62 +++++--- frontend/src/system/core/FileSystem.ts | 75 +++++++++- frontend/src/system/initBuiltin.ts | 2 +- frontend/src/util/Icon.ts | 38 +---- go.mod | 2 +- go.sum | 4 +- godo/cmd/main.go | 41 +++--- godo/files/fs.go | 52 +++++++ godo/files/unzip.go | 54 +++++-- godo/files/zip.go | 2 - godo/go.mod | 2 +- godo/go.sum | 2 + godo/progress/start.go | 99 ------------- godo/{progress => store}/checkactive.go | 4 +- godo/store/install.go | 68 +++++---- godo/{progress => store}/linux.go | 3 +- godo/{progress => store}/map.go | 2 +- godo/{progress => store}/port.go | 2 +- godo/{progress => store}/progress.go | 36 ++--- godo/store/start.go | 136 ++++++++++++++++++ godo/{progress => store}/stop.go | 51 ++++--- godo/{progress => store}/windows.go | 3 +- 41 files changed, 905 insertions(+), 444 deletions(-) delete mode 100644 godo/progress/start.go rename godo/{progress => store}/checkactive.go (94%) rename godo/{progress => store}/linux.go (88%) rename godo/{progress => store}/map.go (89%) rename godo/{progress => store}/port.go (99%) rename godo/{progress => store}/progress.go (57%) create mode 100644 godo/store/start.go rename godo/{progress => store}/stop.go (61%) rename godo/{progress => store}/windows.go (92%) diff --git a/README.md b/README.md index 36a3cc0..3aa4902 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,7 @@ - 文件拖拽上传 - 文件搜索 - 原生文件存储 +- 直接压缩/解压文件夹(本地存储支持zip/tar/gz/bz2) ### 三、内网聊天 diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 24e08ad..3eb1fa7 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -52,6 +52,7 @@ declare module 'vue' { ElInput: typeof import('element-plus/es')['ElInput'] ElOption: typeof import('element-plus/es')['ElOption'] ElPopover: typeof import('element-plus/es')['ElPopover'] + ElProgress: typeof import('element-plus/es')['ElProgress'] ElRow: typeof import('element-plus/es')['ElRow'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSelect: typeof import('element-plus/es')['ElSelect'] diff --git a/frontend/public/font/demo_index.html b/frontend/public/font/demo_index.html index 72bd6f2..c876cf0 100644 --- a/frontend/public/font/demo_index.html +++ b/frontend/public/font/demo_index.html @@ -54,6 +54,30 @@