From 288ea9b43dcdf74f6b4f0ec3379beaa2c844877b Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Fri, 12 Jun 2026 21:21:49 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=95=B4=E7=90=86=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=92=8C=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE | 1 + README.en-US.md | 6 +- README.md | 6 +- deploy.mjs | 33 +++++++ licenses/vue-element-admin/LICENSE | 21 ---- licenses/vue3-element-admin/LICENSE | 21 ---- package.json | 3 +- .../images/preview/app-01.png | Bin .../images/preview/app-02.png | Bin .../images/preview/app-03.png | Bin .../images/preview/app-04.png | Bin .../images/preview/pc-01.png | Bin .../images/preview/pc-02.png | Bin .../images/preview/pc-03.png | Bin .../images/preview/pc-04.png | Bin .../images/preview/pc-05.png | Bin .../images/preview/pc-06.png | Bin .../assets => public}/images/qr/wechat-mp.jpg | Bin .../images/qr/wechat-official.png | Bin .../images/qr/wechat-personal.png | Bin src/layouts/components/LayoutTagsView.vue | 92 +++++++++--------- src/layouts/composables/useMixMenu.ts | 38 +++----- src/layouts/useLayout.ts | 22 ++++- src/types/api/index.ts | 41 -------- src/types/global.d.ts | 5 - src/utils/download.ts | 2 +- src/views/dashboard/index.vue | 5 +- src/views/system/config/index.vue | 2 +- src/views/system/role/index.vue | 11 +-- src/views/system/user/index.vue | 18 +--- 30 files changed, 128 insertions(+), 199 deletions(-) create mode 100644 deploy.mjs delete mode 100644 licenses/vue-element-admin/LICENSE delete mode 100644 licenses/vue3-element-admin/LICENSE rename {src/assets => public}/images/preview/app-01.png (100%) rename {src/assets => public}/images/preview/app-02.png (100%) rename {src/assets => public}/images/preview/app-03.png (100%) rename {src/assets => public}/images/preview/app-04.png (100%) rename {src/assets => public}/images/preview/pc-01.png (100%) rename {src/assets => public}/images/preview/pc-02.png (100%) rename {src/assets => public}/images/preview/pc-03.png (100%) rename {src/assets => public}/images/preview/pc-04.png (100%) rename {src/assets => public}/images/preview/pc-05.png (100%) rename {src/assets => public}/images/preview/pc-06.png (100%) rename {src/assets => public}/images/qr/wechat-mp.jpg (100%) rename {src/assets => public}/images/qr/wechat-official.png (100%) rename {src/assets => public}/images/qr/wechat-personal.png (100%) delete mode 100644 src/types/api/index.ts diff --git a/LICENSE b/LICENSE index 9825cba0..1ffeefc1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,6 @@ MIT License +Copyright (c) 2017-present PanJiaChen Copyright (c) 2021-present 有来开源组织 Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/README.en-US.md b/README.en-US.md index a29b07b4..e83b7f26 100644 --- a/README.en-US.md +++ b/README.en-US.md @@ -226,17 +226,17 @@ Thanks to all the contributors! diff --git a/README.md b/README.md index 94cf9cb4..1b7ebb8d 100644 --- a/README.md +++ b/README.md @@ -223,17 +223,17 @@ Thanks to all the contributors!
- WeChat Official Account
+ WeChat Official Account
WeChat Official Account
     - Mini Program
+ Mini Program
Mini Program
     - Add Author WeChat
+ Add Author WeChat
Add Author WeChat
diff --git a/deploy.mjs b/deploy.mjs new file mode 100644 index 00000000..977f29b0 --- /dev/null +++ b/deploy.mjs @@ -0,0 +1,33 @@ +/** + * 部署管理后台到服务器 | 用法:pnpm run deploy + * + * 前置:SSH 免密登录(只需一次) + * 1. 如果 %USERPROFILE%\.ssh\id_rsa 已存在跳过,否则 ssh-keygen -t rsa 回车到底 + * + * 2. 拷贝公钥到服务器(会提示输一次服务器密码): + * Windows: type %USERPROFILE%\.ssh\id_rsa.pub | ssh root@server "cat >> ~/.ssh/authorized_keys" + * Mac: ssh-copy-id root@server + * + * 3. ssh root@server 输完不弹密码直接连上即成功 + */ +import { execSync } from "node:child_process"; + + + +// ==================== 改为你的服务器信息 ==================== +const HOST = "127.0.0.1"; // 服务器 IP,改为你的 +const USER = "root"; // SSH 用户名,改为你的 +const PORT = 22; // SSH 端口,改为你的 +const TARGET = "/data/www/vue3-element-admin"; // 部署目录,改为你的 +// ========================================================= + +console.log("构建中..."); +execSync("pnpm build-only", { stdio: "inherit" }); + +console.log(`部署 → ${USER}@${HOST}:${TARGET}`); +execSync( + `scp -o StrictHostKeyChecking=no -P ${PORT} -r "dist/." "${USER}@${HOST}:${TARGET}/"`, + { stdio: "inherit", shell: true } +); + +console.log("部署完成"); diff --git a/licenses/vue-element-admin/LICENSE b/licenses/vue-element-admin/LICENSE deleted file mode 100644 index 3fce3848..00000000 --- a/licenses/vue-element-admin/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017-present PanJiaChen - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/licenses/vue3-element-admin/LICENSE b/licenses/vue3-element-admin/LICENSE deleted file mode 100644 index 9825cba0..00000000 --- a/licenses/vue3-element-admin/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021-present 有来开源组织 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/package.json b/package.json index ae322c28..684efb1f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:stylelint", "preinstall": "npx only-allow pnpm", "prepare": "husky", - "commit": "git-cz" + "commit": "git-cz", + "deploy": "node deploy.mjs" }, "config": { "commitizen": { diff --git a/src/assets/images/preview/app-01.png b/public/images/preview/app-01.png similarity index 100% rename from src/assets/images/preview/app-01.png rename to public/images/preview/app-01.png diff --git a/src/assets/images/preview/app-02.png b/public/images/preview/app-02.png similarity index 100% rename from src/assets/images/preview/app-02.png rename to public/images/preview/app-02.png diff --git a/src/assets/images/preview/app-03.png b/public/images/preview/app-03.png similarity index 100% rename from src/assets/images/preview/app-03.png rename to public/images/preview/app-03.png diff --git a/src/assets/images/preview/app-04.png b/public/images/preview/app-04.png similarity index 100% rename from src/assets/images/preview/app-04.png rename to public/images/preview/app-04.png diff --git a/src/assets/images/preview/pc-01.png b/public/images/preview/pc-01.png similarity index 100% rename from src/assets/images/preview/pc-01.png rename to public/images/preview/pc-01.png diff --git a/src/assets/images/preview/pc-02.png b/public/images/preview/pc-02.png similarity index 100% rename from src/assets/images/preview/pc-02.png rename to public/images/preview/pc-02.png diff --git a/src/assets/images/preview/pc-03.png b/public/images/preview/pc-03.png similarity index 100% rename from src/assets/images/preview/pc-03.png rename to public/images/preview/pc-03.png diff --git a/src/assets/images/preview/pc-04.png b/public/images/preview/pc-04.png similarity index 100% rename from src/assets/images/preview/pc-04.png rename to public/images/preview/pc-04.png diff --git a/src/assets/images/preview/pc-05.png b/public/images/preview/pc-05.png similarity index 100% rename from src/assets/images/preview/pc-05.png rename to public/images/preview/pc-05.png diff --git a/src/assets/images/preview/pc-06.png b/public/images/preview/pc-06.png similarity index 100% rename from src/assets/images/preview/pc-06.png rename to public/images/preview/pc-06.png diff --git a/src/assets/images/qr/wechat-mp.jpg b/public/images/qr/wechat-mp.jpg similarity index 100% rename from src/assets/images/qr/wechat-mp.jpg rename to public/images/qr/wechat-mp.jpg diff --git a/src/assets/images/qr/wechat-official.png b/public/images/qr/wechat-official.png similarity index 100% rename from src/assets/images/qr/wechat-official.png rename to public/images/qr/wechat-official.png diff --git a/src/assets/images/qr/wechat-personal.png b/public/images/qr/wechat-personal.png similarity index 100% rename from src/assets/images/qr/wechat-personal.png rename to public/images/qr/wechat-personal.png diff --git a/src/layouts/components/LayoutTagsView.vue b/src/layouts/components/LayoutTagsView.vue index 2eac8eb6..20270657 100644 --- a/src/layouts/components/LayoutTagsView.vue +++ b/src/layouts/components/LayoutTagsView.vue @@ -49,10 +49,8 @@ - - - - +
+
@@ -62,39 +60,27 @@
- 公众号「有来技术」
+ 公众号「有来技术」
公众号「有来技术」
     - 小程序「有来技术」
+ 小程序「有来技术」
小程序「有来技术」
     - 添加作者微信
+ 添加作者微信
添加作者微信