From 4c1d67b51313882030894d8078b75bcdf1262324 Mon Sep 17 00:00:00 2001 From: Sun <95302870@qq.com> Date: Tue, 9 Jan 2024 14:03:03 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=201.3.0-beta24-01-09=20S?= =?UTF-8?q?quashed=20commit=20of=20the=20following:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 53d1f382c5142f6a388b2d3fa13caef04a48db91 Author: Sun <95302870@qq.com> Date: Tue Jan 9 11:54:33 2024 +0800 系统状态标题加上阴影,beta版本最终优化 commit fc56328765b8a4d902b59f2393f43e10f3c3dac5 Author: Sun <95302870@qq.com> Date: Mon Jan 8 22:37:24 2024 +0800 磁盘监控增加表单验证 commit 3905717d420d8339e0d04443a79e69229cd10a1a Author: Sun <95302870@qq.com> Date: Mon Jan 8 22:36:10 2024 +0800 删除无用文件 commit 89b6b633107832465973656abfdb6e25be156747 Author: Sun <95302870@qq.com> Date: Mon Jan 8 21:10:10 2024 +0800 修改翻译文件为json格式(为了方便引用插件)优化过期登录弹窗多个的问题 commit 2efb31571ebe5997113c75e69f973dd436cef985 Author: Sun <95302870@qq.com> Date: Mon Jan 8 13:56:57 2024 +0800 增加vscode工作区文件 commit bc79b661db2defa36bdfadb13b1038e906e36d7e Author: Sun <95302870@qq.com> Date: Mon Jan 8 13:56:45 2024 +0800 暂时解决依赖循环的问题 commit a24520f8087a45abe08ee7ea864169888754a5fc Author: Sun <95302870@qq.com> Date: Sun Jan 7 20:07:52 2024 +0800 修改设置里面壁纸提示词错误的问题修改首页默认标题 commit 394c6ce20ce33cd3edf43b33ac7c1f5b23cfe89a Author: Sun <95302870@qq.com> Date: Sun Jan 7 14:53:53 2024 +0800 适配多语言 Squashed commit of the following: commit 632f86c0228c68391c01865c7576f3aa0408c102 Author: Sun <95302870@qq.com> Date: Sun Jan 7 14:47:55 2024 +0800 退出的时候清除appstore commit b9d805e49a3c6b2ad38bc8d527cb12cc8709012e Author: Sun <95302870@qq.com> Date: Sun Jan 7 13:55:20 2024 +0800 系统状态监控适配国际化 commit daece99723ec96d210241d2ca4e5a85dc5ae69bd Author: Sun <95302870@qq.com> Date: Sun Jan 7 13:09:46 2024 +0800 适配添加项目页面的国际化配置还有时钟的星期* commit 8ea2b2fe951f6266415c96a197cb8d00faef4058 Author: Sun <95302870@qq.com> Date: Sun Jan 7 12:01:55 2024 +0800 完成适配所有apps国际化 commit 21ef54e0d4afb10f560c8cb7aff666374afe0f87 Author: Sun <95302870@qq.com> Date: Sat Jan 6 21:36:07 2024 +0800 增加读取默认浏览器语言 commit 6f710bbebe63ab2800193f27c71e5c0034f11978 Author: Sun <95302870@qq.com> Date: Sat Jan 6 21:09:58 2024 +0800 登录页面增加语言选择选项 commit cb7c4a89a160ed3ef91ad566ec98e75325e7601f Author: Sun <95302870@qq.com> Date: Sat Jan 6 20:37:16 2024 +0800 首次尝试增加英文语言,并在我的信息设置 commit fb996e17cd11611d30c0e12feee00ddf7b225e32 Author: Sun <95302870@qq.com> Date: Sat Jan 6 18:22:40 2024 +0800 完成基础设置页面的语言国际化适配 commit ffc378a38fa4221a9240b067660614ab43009325 Author: Sun <95302870@qq.com> Date: Sat Jan 6 17:35:13 2024 +0800 增加完善基本配置中的系统状态开关 commit c91eaf3e941dfa91b7feca925109ec7121874fda Merge: 7ebe358 a60f72c Author: Sun <95302870@qq.com> Date: Sat Jan 6 12:57:05 2024 +0800 Merge branch 'feature/monitor2' into dev commit 7ebe35856e423bb10d8078636b0c80e472203a68 Merge: d3e3cf5 779712a Author: Sun <95302870@qq.com> Date: Sat Jan 6 12:56:15 2024 +0800 Merge branch 'feature/footer' into dev commit a60f72c2779a4adee77f4ab161fb4fad21ff0611 Author: Sun <95302870@qq.com> Date: Sat Jan 6 12:55:04 2024 +0800 优化了首页 commit 899c945fff12290f3c81348a3c262400b1a0ce15 Author: Sun <95302870@qq.com> Date: Sat Jan 6 12:54:19 2024 +0800 完成系统监控 commit cdf16277ff85cee5029de3b7ea78b14bc0274623 Author: Sun <95302870@qq.com> Date: Sat Jan 6 12:41:38 2024 +0800 增加删除功能 commit 128af005ebc95b73ecef8873301a61556984fbea Author: Sun <95302870@qq.com> Date: Sat Jan 6 11:56:32 2024 +0800 完成排序保存功能 commit 3f4b3c67f261f21121c8e9f7c14d926f152a5836 Author: Sun <95302870@qq.com> Date: Sat Jan 6 11:46:59 2024 +0800 初步完成了增改查包括磁盘状态 commit a85d90985df45af75f8fbc165021b160d5e6500d Author: Sun <95302870@qq.com> Date: Fri Jan 5 22:19:47 2024 +0800 增加磁盘信息卡片的适配 commit c955afd86134b38620a884e9e6540eda398392e4 Author: Sun <95302870@qq.com> Date: Fri Jan 5 21:36:38 2024 +0800 增加获取磁盘挂载点接口 commit 21e8e8f1b872a7e7989c45b29061f52127dffce5 Author: Sun <95302870@qq.com> Date: Fri Jan 5 21:14:57 2024 +0800 基础完成了增改查cpu和内存状态 commit bdbcd50aa1b1b6958043e26be5b705430312c64c Author: Sun <95302870@qq.com> Date: Fri Jan 5 14:25:09 2024 +0800 优化公共入口组件 commit 9735e67a7d6334e39d4f58b053c32b3be25e7fa8 Author: Sun <95302870@qq.com> Date: Fri Jan 5 14:01:46 2024 +0800 适配三个组件 commit 3a82949afc64147209be046f9298d55096abd0c3 Author: Sun <95302870@qq.com> Date: Fri Jan 5 13:58:58 2024 +0800 优化组件 commit 0d0421c8ebc749889422c416970fd5760f2a5f6a Author: Sun <95302870@qq.com> Date: Fri Jan 5 13:27:29 2024 +0800 初步完成了编辑器 commit 1474f796fc29051b7e0813839dbb6bdc22293990 Author: Sun <95302870@qq.com> Date: Thu Jan 4 16:22:33 2024 +0800 完成大图标小图标切换 commit baf64a927280fdb04579d5afeff1b5d50e56556a Author: Sun <95302870@qq.com> Date: Thu Jan 4 12:08:39 2024 +0800 增加获取各项监控的单独api commit d3e3cf5d58168cad1e2fa3c96e2381c21aabcab4 Author: Sun <95302870@qq.com> Date: Wed Jan 3 20:46:58 2024 +0800 尝试将所有监控放在顶部 commit 8dfec7e4b78cc393fad96df9d452c5f2dd4933bb Author: Sun <95302870@qq.com> Date: Wed Jan 3 20:02:03 2024 +0800 完整横条显示并对容量尺寸单位优化自动识别 commit fe967a93141472970616a5eac416c59510810b64 Author: Sun <95302870@qq.com> Date: Wed Jan 3 18:55:39 2024 +0800 适配显示了cpu、硬盘、内存信息 commit 11ea134be3ce8aca9c1bf6af4610e3bb4e09eca7 Author: Sun <95302870@qq.com> Date: Tue Jan 2 23:14:04 2024 +0800 完成系统监控的基础api接口 commit c447884d77349553864e0e045b83b3a4b67345da Author: Sun <95302870@qq.com> Date: Tue Jan 2 22:11:34 2024 +0800 完成基本的系统监控类库 commit 779712a5da617fa090056a5d549145f687d8db54 Author: Sun <95302870@qq.com> Date: Tue Jan 2 17:14:16 2024 +0800 增加自定义footer --- .vscode/settings.json | 8 +- index.html | 2 +- .../apiData/systemApiStructs/monitor.go | 5 + service/api/api_v1/system/A_ENTER.go | 1 + service/api/api_v1/system/monitor.go | 96 ++++++ service/assets/version | 2 +- service/global/global.go | 1 + service/global/monitor.go | 18 + service/initialize/A_ENTER.go | 2 + .../initialize/systemMonitor/systemMonitor.go | 53 +++ service/lib/cache/base.go | 5 + service/lib/monitor/monitor.go | 149 +++++++++ service/router/system/A_ENTER.go | 1 + service/router/system/monitor.go | 23 ++ src/api/system/systemMonitor.ts | 32 ++ .../svg-icons/clarity-hard-disk-solid.svg | 1 + src/assets/svg-icons/ion-language.svg | 1 + .../material-symbols-memory-alt-rounded.svg | 1 + src/assets/svg-icons/solar-cpu-bold.svg | 1 + src/components/apps/About/index.vue | 14 +- src/components/apps/ImportExport/index.vue | 56 ++-- src/components/apps/ItemGroupManage/index.vue | 29 +- src/components/apps/Style/index.vue | 94 ++++-- src/components/apps/UserInfo/index.vue | 49 ++- src/components/common/ItemCard/index.vue | 53 +++ src/components/common/index.ts | 2 + src/components/deskModule/Clock/index.vue | 15 +- .../AppIconSystemMonitor/CPU.vue | 59 ++++ .../AppIconSystemMonitor/Disk.vue | 69 ++++ .../AppIconSystemMonitor/Memory.vue | 64 ++++ .../AppIconSystemMonitor/index.vue | 118 +++++++ .../SystemMonitor/Edit/DiskEditor/index.vue | 163 +++++++++ .../Edit/GenericProgressStyleEditor/index.vue | 101 ++++++ .../deskModule/SystemMonitor/Edit/index.vue | 148 +++++++++ .../deskModule/SystemMonitor/common.ts | 88 +++++ .../components/GenericMonitorCard/index.vue | 61 ++++ .../components/GenericProgress/index.vue | 57 ++++ .../deskModule/SystemMonitor/index.vue | 308 ++++++++++++++++++ .../deskModule/SystemMonitor/typings.ts | 33 ++ src/components/deskModule/index.ts | 3 +- src/enums/panel/index.ts | 1 + src/locales/en-US.json | 246 ++++++++++++++ src/locales/en-US.ts | 94 ------ src/locales/index.ts | 17 +- src/locales/zh-CN.json | 245 ++++++++++++++ src/locales/zh-CN.ts | 121 ------- src/store/modules/app/helper.ts | 11 +- src/store/modules/app/index.ts | 7 +- src/store/modules/moduleConfig/index.ts | 4 +- src/store/modules/panel/helper.ts | 7 + src/typings/panel.d.ts | 4 + src/typings/systemMonitor.d.ts | 43 +++ src/utils/cmn/index.ts | 8 + src/utils/defaultData/index.ts | 17 + src/utils/request/index.ts | 15 +- .../index.vue => exception/test/zujian.vue} | 0 .../home/components/AppStarter/index.vue | 18 +- .../home/components/EditItem/IconEditor.vue | 23 +- src/views/home/components/EditItem/index.vue | 52 +-- src/views/home/index.vue | 67 ++-- src/views/login/index.vue | 23 +- sun-panel.code-workspace | 84 +++++ 62 files changed, 2696 insertions(+), 397 deletions(-) create mode 100644 service/api/api_v1/common/apiData/systemApiStructs/monitor.go create mode 100644 service/api/api_v1/system/monitor.go create mode 100644 service/global/monitor.go create mode 100644 service/initialize/systemMonitor/systemMonitor.go create mode 100644 service/lib/monitor/monitor.go create mode 100644 service/router/system/monitor.go create mode 100644 src/api/system/systemMonitor.ts create mode 100644 src/assets/svg-icons/clarity-hard-disk-solid.svg create mode 100644 src/assets/svg-icons/ion-language.svg create mode 100644 src/assets/svg-icons/material-symbols-memory-alt-rounded.svg create mode 100644 src/assets/svg-icons/solar-cpu-bold.svg create mode 100644 src/components/common/ItemCard/index.vue create mode 100644 src/components/deskModule/SystemMonitor/AppIconSystemMonitor/CPU.vue create mode 100644 src/components/deskModule/SystemMonitor/AppIconSystemMonitor/Disk.vue create mode 100644 src/components/deskModule/SystemMonitor/AppIconSystemMonitor/Memory.vue create mode 100644 src/components/deskModule/SystemMonitor/AppIconSystemMonitor/index.vue create mode 100644 src/components/deskModule/SystemMonitor/Edit/DiskEditor/index.vue create mode 100644 src/components/deskModule/SystemMonitor/Edit/GenericProgressStyleEditor/index.vue create mode 100644 src/components/deskModule/SystemMonitor/Edit/index.vue create mode 100644 src/components/deskModule/SystemMonitor/common.ts create mode 100644 src/components/deskModule/SystemMonitor/components/GenericMonitorCard/index.vue create mode 100644 src/components/deskModule/SystemMonitor/components/GenericProgress/index.vue create mode 100644 src/components/deskModule/SystemMonitor/index.vue create mode 100644 src/components/deskModule/SystemMonitor/typings.ts create mode 100644 src/locales/en-US.json delete mode 100644 src/locales/en-US.ts create mode 100644 src/locales/zh-CN.json delete mode 100644 src/locales/zh-CN.ts create mode 100644 src/typings/systemMonitor.d.ts create mode 100644 src/utils/defaultData/index.ts rename src/views/{home/applist/index.vue => exception/test/zujian.vue} (100%) create mode 100644 sun-panel.code-workspace diff --git a/.vscode/settings.json b/.vscode/settings.json index a161def..4da5073 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,16 +19,12 @@ "markdown" ], "cSpell.words": [ - "antfu", "axios", "bumpp", - "chatgpt", - "chenzhaoyu", "commitlint", "davinci", "dockerhub", "esno", - "GPTAPI", "highlightjs", "hljs", "iconify", @@ -39,7 +35,6 @@ "mdhljs", "mila", "nodata", - "OPENAI", "pinia", "Popconfirm", "rushstack", @@ -50,8 +45,7 @@ "Typecheck", "unplugin", "VITE", - "vueuse", - "Zhao" + "vueuse" ], "i18n-ally.enabledParsers": [ "ts" diff --git a/index.html b/index.html index b8f7493..24e2ca0 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ -
导入图标配置数据不会清空现有图标数据
+{{ $t('apps.exportImport.tip') }}
|
|
@@ -54,10 +60,10 @@
- [x] 增加访客账号
- [x] 帐号解除邮箱限制
- [x] 对上传的文件管理(针对账户增强重复利用,节省空间)
+- [x] 服务器监控
+- [x] 多国语言支持
- [ ] 用户自定义搜索框搜索引擎
- [ ] 搜索框样式自定义(背景颜色,文字颜色)
-- [ ] 多国语言支持
-- [ ] 服务器监控
- [ ] docker管理器
- [ ] 计划任务
diff --git a/doc/donate.md b/doc/donate.md
index d21c6a2..bf043df 100644
--- a/doc/donate.md
+++ b/doc/donate.md
@@ -1,5 +1,10 @@
-> 开源不易,如果觉得我的项目有帮到你,欢迎给我打赏或者请我喝个奶茶☕(如果可以备注下您的昵称或者名字),打赏不准超过你工资的一半。你的支持就是我的动力,谢谢。
+> Open source development is not easy. If you feel that my project has been helpful to you, please feel free to buy me a cup of coffee ☕ (If possible, leave your nickname, name, or email in the note). Your support is my motivation. Thank you.
-| | |
+
+
+
|
|
\ No newline at end of file
diff --git a/doc/images/donate/paypal.png b/doc/images/donate/paypal.png
new file mode 100644
index 0000000000000000000000000000000000000000..3f4ac6df6534a003919ba4e0c3ceb2922a2ae6b4
GIT binary patch
literal 62685
zcma(2Q+TCI^9Kx1oUCNUwr$&5aWb)O+nLyQCicX3GO=w>Y@3sJfB(Io?>&8g2lsU!
zbk|krs;=tpid0gN0s?RW-@bhVf~3V&zI_9a{O7+97W$uWkr*x9w{OJXK;j~*p4k`O
zaBXHQYJ@M>-7}8iT+8LOppvl$`mv<47L&Sq6MQ}dIQE>YAALX~&|aeW|?bpNa?
z6~SFevb`A0dI4Cl3EmBPaJ`wZWU!Q0qpHd;@}=Ue%I!+7ZJ(Jsj{uuXzi9yvPqk;Y
zZrbi=>#xV03h(DFpDUjC3!}^CzmH6}XRV*Gk|8*cv4sD_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