From e6947ec5c4c2e5bc9e8ba19a23d02811ff6a28f8 Mon Sep 17 00:00:00 2001 From: chudong <1738613989@qq.com> Date: Wed, 14 May 2025 16:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=E6=8F=92?= =?UTF-8?q?=E4=BB=B6git=E5=90=8C=E6=AD=A5=E6=A8=A1=E5=9D=97=EF=BC=8C?= =?UTF-8?q?=E7=94=A8=E4=BA=8E=E5=90=8C=E6=AD=A5=E9=A1=B9=E7=9B=AE=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=8C=E5=8A=A0=E9=80=9F=E9=A1=B9=E7=9B=AE=E5=BC=80?= =?UTF-8?q?=E5=8F=91=20=E3=80=90=E8=B0=83=E6=95=B4=E3=80=91=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=9A=97=E8=89=B2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/index.html | 6 +- build/static/css/style-CIgcu4bk.css | 1 + build/static/css/style-DsAJ--Wa.css | 1 - .../{Badge-DYmPf-ju.js => Badge-DkW8afdp.js} | 2 +- .../js/{Flex-D8wlmEmi.js => Flex-CfuRT3n6.js} | 2 +- .../js/{Flow-CG6guN7d.js => Flow-6ch3XsK7.js} | 2 +- ...d-C4Ue53lt.js => LockOutlined-Cnf7b3lD.js} | 2 +- .../js/{Tabs-D5mRvcyC.js => Tabs-CTDuIeeZ.js} | 2 +- ...iness-CRXZMi5O.js => business-DeShhBC1.js} | 2 +- .../js/{cert-CO76XRgq.js => cert-BZ7eWr4f.js} | 2 +- ...{drawer-KDsBGqLr.js => drawer-CXlQHE7E.js} | 2 +- ...{drawer-BVrx-HyC.js => drawer-DKWlHKmY.js} | 2 +- ...{drawer-6A-PtNh1.js => drawer-DfH4qLeP.js} | 2 +- ...{drawer-BGyGwfK3.js => drawer-S59DerHz.js} | 2 +- ...{drawer-C2WvH_fg.js => drawer-qBSiqGEq.js} | 2 +- .../{index-BlRSe5J5.js => index--0lN_itO.js} | 2 +- build/static/js/index-4FxKeQrl.js | 1 - .../{index-BOMaPstl.js => index-B8YySqrG.js} | 2 +- .../{index-BP7Q8O2i.js => index-B8f1PT4R.js} | 2 +- .../{index-CzdzY6Jl.js => index-BLhrz285.js} | 2 +- .../{index-DB8a04kf.js => index-BR6XzYWc.js} | 2 +- build/static/js/index-B_5Ab5kP.js | 1 - .../{index-poabpFgq.js => index-Bls9BUdA.js} | 2 +- build/static/js/index-BoVX1frA.js | 1 - .../{index-B6esJ-dj.js => index-Bpd7HpMD.js} | 2 +- .../{index-D7VkqSem.js => index-BvtwVn3g.js} | 2 +- .../{index-KCUOobnu.js => index-C8NIzWwZ.js} | 2 +- build/static/js/index-C8quDLSr.js | 1 - .../{index-ByyBko8V.js => index-CR9JJyNQ.js} | 2 +- build/static/js/index-CWi2_2yD.js | 1 + .../{index-hudA1TtW.js => index-ChA4Tx0W.js} | 2 +- .../{index-E2IQDJEn.js => index-CiP_J79Q.js} | 2 +- .../{index-DgujJfgP.js => index-Ck4ZugNa.js} | 2 +- .../{index-C9r2f0Ic.js => index-ClL52y7R.js} | 2 +- .../{index-BFoI7iji.js => index-CpnxPwGt.js} | 2 +- .../{index-BGj9802u.js => index-DGVEFNvj.js} | 2 +- .../{index-BTx8nPFt.js => index-DIYXuUDZ.js} | 2 +- build/static/js/index-DPJpVAsS.js | 1 + .../{index-ByYOsZrT.js => index-Db9zWoHd.js} | 2 +- .../{index-DobLzAdB.js => index-DffoH-R8.js} | 2 +- build/static/js/index-DmT_SHh4.js | 1 + .../{index-DgjT6rfd.js => index-DoBLtCBk.js} | 2 +- .../{index-BbsMgSA8.js => index-DpMxWTvF.js} | 2 +- build/static/js/index-DpzSP3Yj.js | 1 + .../{index-BygmNX12.js => index-K1QYmvkf.js} | 2 +- build/static/js/main-DKqTMGci.js | 51 + build/static/js/main-DUOwN26A.js | 51 - ...{public-D-eRb2n_.js => public-Dp0eFScr.js} | 2 +- ...etting-BtTwGaRp.js => setting-huTIIu1c.js} | 2 +- .../js/{test-DX0x6VVo.js => test-BLZVy0JC.js} | 2 +- .../js/{text-D2UE5EL1.js => text-CBxeXF61.js} | 2 +- ...Store-D55peUEd.js => useStore-BxWZ-2Xk.js} | 2 +- ...Store-BhpEzt4H.js => useStore-fO20gUdJ.js} | 2 +- ...{verify-t26GTzlI.js => verify-B-A9YSDN.js} | 2 +- ...{verify-DntmcGWB.js => verify-B43ktUsL.js} | 2 +- ...{verify-1qWWLiqD.js => verify-BuSCsdPA.js} | 2 +- ...{verify-TSo8Q64G.js => verify-Ccmvvliy.js} | 2 +- ...{verify-Bitg124P.js => verify-DqBodpCp.js} | 2 +- frontend/.DS_Store | Bin 10244 -> 14340 bytes frontend/.editorconfig | 11 + frontend/.gitattributes | 1 + frontend/.gitignore | 49 + frontend/.npmrc | 0 frontend/.sync-project-config.yaml | 18 + frontend/.sync-project-history | 0 frontend/.vscode/launch.json | 16 + frontend/.vscode/settings.json | 11 + frontend/README.md | 112 + frontend/apps/.DS_Store | Bin 10244 -> 14340 bytes frontend/apps/allin-ssl/.DS_Store | Bin 14340 -> 12292 bytes frontend/apps/allin-ssl/README.md | 132 +- .../allin-ssl/cache/translation_cache.json | 17032 ++++++++-------- frontend/apps/allin-ssl/index.html | 2 +- frontend/apps/allin-ssl/package.json | 5 +- .../allin-ssl/src/assets/icons/svg/.DS_Store | Bin 10244 -> 10244 bytes .../assets/icons/svg/resources/cloudflare.svg | 1 + .../icons/svg/resources/huaweicloud.svg | 1 + .../components/dnsProviderSelect/index.tsx | 25 +- .../src/components/emptyState/index.tsx | 47 + .../components/task/applyNode/drawer.tsx | 57 +- .../components/task/applyNode/verify.tsx | 4 +- .../components/task/deployNode/drawer.tsx | 95 +- .../components/task/deployNode/verify.tsx | 4 +- .../components/task/notifyNode/drawer.tsx | 14 +- .../components/task/startNode/drawer.tsx | 19 +- .../components/task/uploadNode/drawer.tsx | 133 +- .../components/task/uploadNode/verify.tsx | 4 +- .../src/components/flowChart/index.module.css | 8 +- .../src/components/flowChart/lib/config.tsx | 7 +- .../src/components/flowChart/mock/index.ts | 2 +- .../src/components/flowChart/types.d.ts | 14 +- .../src/components/typeIcon/index.tsx | 16 +- frontend/apps/allin-ssl/src/lib/directive.tsx | 33 + frontend/apps/allin-ssl/src/lib/index.tsx | 0 .../allin-ssl/src/locales/model/arDZ.json | 42 +- .../allin-ssl/src/locales/model/enUS.json | 42 +- .../allin-ssl/src/locales/model/esAR.json | 42 +- .../allin-ssl/src/locales/model/frFR.json | 42 +- .../allin-ssl/src/locales/model/jaJP.json | 42 +- .../allin-ssl/src/locales/model/koKR.json | 42 +- .../allin-ssl/src/locales/model/ptBR.json | 42 +- .../allin-ssl/src/locales/model/ruRU.json | 42 +- .../allin-ssl/src/locales/model/zhCN.json | 42 +- .../allin-ssl/src/locales/model/zhTW.json | 42 +- frontend/apps/allin-ssl/src/main.ts | 4 + .../apps/allin-ssl/src/styles/variable.css | 5 + frontend/apps/allin-ssl/src/types/access.d.ts | 40 +- frontend/apps/allin-ssl/src/types/cert.d.ts | 9 +- .../src/views/authApiManage/index.tsx | 10 +- .../src/views/authApiManage/useController.tsx | 112 +- .../src/views/authApiManage/useStore.tsx | 15 +- .../allin-ssl/src/views/autoDeploy/index.tsx | 16 +- .../src/views/autoDeploy/useController.tsx | 2 +- .../allin-ssl/src/views/certManage/index.tsx | 9 +- .../src/views/certManage/useController.tsx | 2 +- .../allin-ssl/src/views/home/index.module.css | 84 +- .../apps/allin-ssl/src/views/home/index.tsx | 16 +- .../src/views/layout/index.module.css | 20 +- .../apps/allin-ssl/src/views/layout/index.tsx | 4 +- .../src/views/layout/useController.tsx | 2 +- .../allin-ssl/src/views/layout/useStore.tsx | 51 +- .../apps/allin-ssl/src/views/login/index.tsx | 11 +- .../allin-ssl/src/views/monitor/index.tsx | 9 +- .../settings/components/aboutSettings.tsx | 4 +- .../allin-ssl/src/views/settings/useStore.tsx | 2 +- frontend/apps/allin-ssl/types/components.d.ts | 2 + frontend/apps/allin-ssl/types/vite-env.d.ts | 8 +- frontend/apps/allin-ssl/vite.config.ts | 66 +- frontend/install.sh | 198 + frontend/package.json | 12 +- frontend/packages/.DS_Store | Bin 8196 -> 8196 bytes frontend/packages/utils/.DS_Store | Bin 6148 -> 6148 bytes frontend/packages/utils/src/data.ts | 33 +- frontend/packages/utils/src/string.ts | 2 + frontend/packages/vue/.DS_Store | Bin 6148 -> 6148 bytes frontend/packages/vue/hooks/.DS_Store | Bin 8196 -> 8196 bytes .../packages/vue/hooks/src/socket/index.ts | 1 + frontend/packages/vue/naive-ui/.DS_Store | Bin 6148 -> 6148 bytes .../vue/naive-ui/src/hooks/useForm.tsx | 8 +- .../vue/naive-ui/src/hooks/useMessage.tsx | 42 +- .../vue/naive-ui/src/hooks/useModal.tsx | 9 +- .../vue/naive-ui/src/hooks/useTable.tsx | 5 +- .../packages/vue/naive-ui/src/theme/index.tsx | 6 +- .../src/theme/model/default/index.tsx | 4 + frontend/plugin/.DS_Store | Bin 6148 -> 6148 bytes frontend/plugin/plugin-i18n/.DS_Store | Bin 6148 -> 0 bytes .../plugin-i18n/__tests__/adapter.test.js | 69 - .../plugin-i18n/__tests__/cache.test.js | 120 - .../plugin/plugin-i18n/__tests__/log.test.js | 133 - .../__tests__/utils.extend.test.js | 100 - .../plugin-i18n/__tests__/utils.test.js | 62 - .../plugin-i18n/__tests__/zhipuAI.test.js | 112 - frontend/plugin/plugin-i18n/src/.DS_Store | Bin 8196 -> 0 bytes .../plugin-i18n/src/translation/.DS_Store | Bin 6148 -> 0 bytes frontend/plugin/project-sync-git/.DS_Store | Bin 6148 -> 6148 bytes frontend/plugin/test.md | 319 + .../README.md | 0 .../package.json | 2 +- .../src/index.ts | 32 +- .../tsconfig.json | 0 .../README.md | 0 .../eslint.config.js | 0 .../index.md | 0 .../package.json | 4 +- .../prettier.config.js | 0 .../src/cache/index.js | 0 .../src/cleanUp/unusedTranslationDetector.js | 0 .../src/cli/cleanup.js | 0 .../src/config/config.js | 0 .../src/fileOperation/index.js | 0 .../src/index.js | 0 .../src/logManagement/index.js | 0 .../src/stateManagement/index.js | 0 .../src/translation/adapter/aiBatchAdapter.js | 0 .../src/translation/adapter/index.js | 0 .../adapter/traditionalApiAdapter.js | 0 .../src/translation/ai/deepseekAI.js | 0 .../src/translation/ai/qianwenAI.js | 0 .../src/translation/ai/zhipuAI.js | 0 .../src/translation/traditional/api1.js | 0 .../src/utils/index.js | 0 .../vite-plugin-turborepo-deploy/.gitignore | 91 + .../vite-plugin-turborepo-deploy/CHANGELOG.md | 136 + .../vite-plugin-turborepo-deploy/README.md | 290 + .../vite-plugin-turborepo-deploy/package.json | 65 + .../src/constants.ts | 6 + .../src/core/autoCommitHandler.ts | 242 + .../src/core/config.ts | 160 + .../src/core/gitHandler.ts | 269 + .../src/core/localSync.ts | 476 + .../src/core/logger.ts | 105 + .../src/core/utils.ts | 130 + .../vite-plugin-turborepo-deploy/src/index.ts | 118 + .../vite-plugin-turborepo-deploy/src/types.ts | 246 + .../tsconfig.json | 21 + .../vite.config.ts | 70 + .../vitest.config.ts | 60 + frontend/scripts/{ => backup}/extensions.json | 0 frontend/scripts/{ => backup}/settings.json | 0 frontend/scripts/clear-temp.sh | 150 + frontend/scripts/index.md | 194 - frontend/scripts/sync-project.md | 96 + frontend/scripts/sync-project.sh | 660 + frontend/scripts/temp/build-operations.sh | 589 + frontend/scripts/{ => temp}/clear.sh | 0 frontend/scripts/{ => temp}/cursor_backup.sh | 0 frontend/scripts/temp/file-operations.sh | 709 + frontend/scripts/temp/git-operations.sh | 515 + frontend/scripts/temp/sync-project.sh | 306 + frontend/scripts/tools/file-handle.sh | 1379 ++ frontend/scripts/tools/git-handle.sh | 860 + frontend/scripts/tools/help.md | 76 + frontend/scripts/tools/notice-handle.sh | 694 + frontend/scripts/tools/other-handle.sh | 611 + frontend/tools-monorepo.code-workspace | 27 + 215 files changed, 19918 insertions(+), 9710 deletions(-) create mode 100644 build/static/css/style-CIgcu4bk.css delete mode 100644 build/static/css/style-DsAJ--Wa.css rename build/static/js/{Badge-DYmPf-ju.js => Badge-DkW8afdp.js} (99%) rename build/static/js/{Flex-D8wlmEmi.js => Flex-CfuRT3n6.js} (89%) rename build/static/js/{Flow-CG6guN7d.js => Flow-6ch3XsK7.js} (96%) rename build/static/js/{LockOutlined-C4Ue53lt.js => LockOutlined-Cnf7b3lD.js} (90%) rename build/static/js/{Tabs-D5mRvcyC.js => Tabs-CTDuIeeZ.js} (96%) rename build/static/js/{business-CRXZMi5O.js => business-DeShhBC1.js} (61%) rename build/static/js/{cert-CO76XRgq.js => cert-BZ7eWr4f.js} (62%) rename build/static/js/{drawer-KDsBGqLr.js => drawer-CXlQHE7E.js} (84%) rename build/static/js/{drawer-BVrx-HyC.js => drawer-DKWlHKmY.js} (81%) rename build/static/js/{drawer-6A-PtNh1.js => drawer-DfH4qLeP.js} (70%) rename build/static/js/{drawer-BGyGwfK3.js => drawer-S59DerHz.js} (77%) rename build/static/js/{drawer-C2WvH_fg.js => drawer-qBSiqGEq.js} (92%) rename build/static/js/{index-BlRSe5J5.js => index--0lN_itO.js} (94%) delete mode 100644 build/static/js/index-4FxKeQrl.js rename build/static/js/{index-BOMaPstl.js => index-B8YySqrG.js} (96%) rename build/static/js/{index-BP7Q8O2i.js => index-B8f1PT4R.js} (68%) rename build/static/js/{index-CzdzY6Jl.js => index-BLhrz285.js} (82%) rename build/static/js/{index-DB8a04kf.js => index-BR6XzYWc.js} (88%) delete mode 100644 build/static/js/index-B_5Ab5kP.js rename build/static/js/{index-poabpFgq.js => index-Bls9BUdA.js} (62%) delete mode 100644 build/static/js/index-BoVX1frA.js rename build/static/js/{index-B6esJ-dj.js => index-Bpd7HpMD.js} (58%) rename build/static/js/{index-D7VkqSem.js => index-BvtwVn3g.js} (87%) rename build/static/js/{index-KCUOobnu.js => index-C8NIzWwZ.js} (91%) delete mode 100644 build/static/js/index-C8quDLSr.js rename build/static/js/{index-ByyBko8V.js => index-CR9JJyNQ.js} (66%) create mode 100644 build/static/js/index-CWi2_2yD.js rename build/static/js/{index-hudA1TtW.js => index-ChA4Tx0W.js} (93%) rename build/static/js/{index-E2IQDJEn.js => index-CiP_J79Q.js} (96%) rename build/static/js/{index-DgujJfgP.js => index-Ck4ZugNa.js} (92%) rename build/static/js/{index-C9r2f0Ic.js => index-ClL52y7R.js} (53%) rename build/static/js/{index-BFoI7iji.js => index-CpnxPwGt.js} (96%) rename build/static/js/{index-BGj9802u.js => index-DGVEFNvj.js} (86%) rename build/static/js/{index-BTx8nPFt.js => index-DIYXuUDZ.js} (64%) create mode 100644 build/static/js/index-DPJpVAsS.js rename build/static/js/{index-ByYOsZrT.js => index-Db9zWoHd.js} (87%) rename build/static/js/{index-DobLzAdB.js => index-DffoH-R8.js} (91%) create mode 100644 build/static/js/index-DmT_SHh4.js rename build/static/js/{index-DgjT6rfd.js => index-DoBLtCBk.js} (99%) rename build/static/js/{index-BbsMgSA8.js => index-DpMxWTvF.js} (91%) create mode 100644 build/static/js/index-DpzSP3Yj.js rename build/static/js/{index-BygmNX12.js => index-K1QYmvkf.js} (84%) create mode 100644 build/static/js/main-DKqTMGci.js delete mode 100644 build/static/js/main-DUOwN26A.js rename build/static/js/{public-D-eRb2n_.js => public-Dp0eFScr.js} (70%) rename build/static/js/{setting-BtTwGaRp.js => setting-huTIIu1c.js} (81%) rename build/static/js/{test-DX0x6VVo.js => test-BLZVy0JC.js} (96%) rename build/static/js/{text-D2UE5EL1.js => text-CBxeXF61.js} (94%) rename build/static/js/{useStore-D55peUEd.js => useStore-BxWZ-2Xk.js} (88%) rename build/static/js/{useStore-BhpEzt4H.js => useStore-fO20gUdJ.js} (90%) rename build/static/js/{verify-t26GTzlI.js => verify-B-A9YSDN.js} (87%) rename build/static/js/{verify-DntmcGWB.js => verify-B43ktUsL.js} (88%) rename build/static/js/{verify-1qWWLiqD.js => verify-BuSCsdPA.js} (86%) rename build/static/js/{verify-TSo8Q64G.js => verify-Ccmvvliy.js} (81%) rename build/static/js/{verify-Bitg124P.js => verify-DqBodpCp.js} (81%) create mode 100644 frontend/.editorconfig create mode 100644 frontend/.gitattributes create mode 100644 frontend/.gitignore create mode 100644 frontend/.npmrc create mode 100644 frontend/.sync-project-config.yaml create mode 100644 frontend/.sync-project-history create mode 100644 frontend/.vscode/launch.json create mode 100644 frontend/.vscode/settings.json create mode 100644 frontend/README.md create mode 100644 frontend/apps/allin-ssl/src/assets/icons/svg/resources/cloudflare.svg create mode 100644 frontend/apps/allin-ssl/src/assets/icons/svg/resources/huaweicloud.svg create mode 100644 frontend/apps/allin-ssl/src/components/emptyState/index.tsx create mode 100644 frontend/apps/allin-ssl/src/lib/directive.tsx create mode 100644 frontend/apps/allin-ssl/src/lib/index.tsx create mode 100644 frontend/install.sh delete mode 100644 frontend/plugin/plugin-i18n/.DS_Store delete mode 100644 frontend/plugin/plugin-i18n/__tests__/adapter.test.js delete mode 100644 frontend/plugin/plugin-i18n/__tests__/cache.test.js delete mode 100644 frontend/plugin/plugin-i18n/__tests__/log.test.js delete mode 100644 frontend/plugin/plugin-i18n/__tests__/utils.extend.test.js delete mode 100644 frontend/plugin/plugin-i18n/__tests__/utils.test.js delete mode 100644 frontend/plugin/plugin-i18n/__tests__/zhipuAI.test.js delete mode 100644 frontend/plugin/plugin-i18n/src/.DS_Store delete mode 100644 frontend/plugin/plugin-i18n/src/translation/.DS_Store create mode 100644 frontend/plugin/test.md rename frontend/plugin/{project-ftp-sync => vite-plugin-ftp-sync}/README.md (100%) rename frontend/plugin/{project-ftp-sync => vite-plugin-ftp-sync}/package.json (92%) rename frontend/plugin/{project-ftp-sync => vite-plugin-ftp-sync}/src/index.ts (60%) rename frontend/plugin/{project-ftp-sync => vite-plugin-ftp-sync}/tsconfig.json (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/README.md (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/eslint.config.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/index.md (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/package.json (96%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/prettier.config.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/cache/index.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/cleanUp/unusedTranslationDetector.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/cli/cleanup.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/config/config.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/fileOperation/index.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/index.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/logManagement/index.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/stateManagement/index.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/translation/adapter/aiBatchAdapter.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/translation/adapter/index.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/translation/adapter/traditionalApiAdapter.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/translation/ai/deepseekAI.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/translation/ai/qianwenAI.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/translation/ai/zhipuAI.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/translation/traditional/api1.js (100%) rename frontend/plugin/{plugin-i18n => vite-plugin-i18n}/src/utils/index.js (100%) create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/.gitignore create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/CHANGELOG.md create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/README.md create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/package.json create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/src/constants.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/src/core/autoCommitHandler.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/src/core/config.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/src/core/gitHandler.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/src/core/localSync.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/src/core/logger.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/src/core/utils.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/src/index.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/src/types.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/tsconfig.json create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/vite.config.ts create mode 100644 frontend/plugin/vite-plugin-turborepo-deploy/vitest.config.ts rename frontend/scripts/{ => backup}/extensions.json (100%) rename frontend/scripts/{ => backup}/settings.json (100%) create mode 100644 frontend/scripts/clear-temp.sh delete mode 100644 frontend/scripts/index.md create mode 100644 frontend/scripts/sync-project.md create mode 100644 frontend/scripts/sync-project.sh create mode 100644 frontend/scripts/temp/build-operations.sh rename frontend/scripts/{ => temp}/clear.sh (100%) rename frontend/scripts/{ => temp}/cursor_backup.sh (100%) create mode 100644 frontend/scripts/temp/file-operations.sh create mode 100644 frontend/scripts/temp/git-operations.sh create mode 100644 frontend/scripts/temp/sync-project.sh create mode 100644 frontend/scripts/tools/file-handle.sh create mode 100644 frontend/scripts/tools/git-handle.sh create mode 100644 frontend/scripts/tools/help.md create mode 100644 frontend/scripts/tools/notice-handle.sh create mode 100644 frontend/scripts/tools/other-handle.sh create mode 100644 frontend/tools-monorepo.code-workspace diff --git a/build/index.html b/build/index.html index d0f6bea..cfde172 100644 --- a/build/index.html +++ b/build/index.html @@ -4,9 +4,9 @@ -
/**"], + "program": "${workspaceFolder}/apps/cloud-control/bt-i18n.work.js", + "cwd": "${workspaceFolder}/apps/cloud-control" + } + ] +} diff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.json new file mode 100644 index 0000000..1a747a4 --- /dev/null +++ b/frontend/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "i18n-ally.enabledParsers": ["json", "yaml", "js"], + "i18n-ally.keystyle": "flat", + "i18n-ally.sourceLanguage": "zhCN", // 设置源语言为中文 + "i18n-ally.displayLanguage": "zhCN", // 设置显示语言为中文 + "i18n-ally.enabledFrameworks": ["vue"], + "i18n-ally.localesPaths": [ + "apps/cloud-control/src/locales/model", + "apps/allin-ssl/src/locales/model" + ] +} diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 0000000..def393c --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,112 @@ +# 宝塔 Turborepo 项目 + +基于 Turborepo 构建的多项目工作空间,包含多个应用和共享包。 + +## 技术栈 + +- **构建工具**: Turborepo、Vite +- **前端框架**: Vue 3、React、Svelte +- **语言**: TypeScript +- **样式**: Tailwind CSS、CSS Modules +- **UI 组件库**: Naive UI +- **状态管理**: Pinia +- **路由**: Vue Router +- **工具库**: VueUse、Axios +- **包管理器**: pnpm + +## 项目结构 + +``` +. +├── apps/ # 应用目录 +│ ├── allin-ssl/ # SSL 管理应用 +│ ├── cloud-control/ # 云控制应用 +│ ├── monorepo-docs/ # 项目文档应用 +│ ├── naive-template/ # Naive UI 模板 +│ └── vueFlow/ # Vue Flow 应用示例 +├── packages/ # 共享包目录 +│ ├── utils/ # 通用工具函数 +│ ├── vue/ # Vue 相关组件和工具 +│ ├── react/ # React 相关组件和工具 +│ ├── svelte/ # Svelte 相关组件和工具 +│ └── node/ # Node.js 相关工具 +├── environment/ # 环境配置 +├── plugin/ # 自定义插件 +├── scripts/ # 脚本工具 +├── types/ # 全局类型定义 +└── ... +``` + +## 主要应用 + +### Cloud Control + +云控制应用是本项目的主要应用之一,基于 Vue 3、TypeScript 和 Vite 构建。 + +## 快速开始 + +### 环境要求 + +- Node.js >= 18 +- pnpm 9.0.0+ + +### 安装依赖 + +```bash +pnpm install +``` + +### 启动开发环境 + +```bash +# 启动所有应用 +pnpm dev + +# 仅启动云控制应用 +pnpm devcloud +``` + +### 构建项目 + +```bash +# 构建所有应用 +pnpm build + +# 仅构建云控制应用 +pnpm buildcloud +``` + +### 其他命令 + +```bash +# 代码检查 +pnpm lint + +# 类型检查 +pnpm check-types + +# 运行测试 +pnpm test + +# 清理项目 +pnpm clear + +# 同步项目 +pnpm sync + +# Cursor 备份 +pnpm cursor:backup +``` + +## 开发规范 + +- 使用 TypeScript 编写所有代码 +- 遵循函数式编程和声明式编程模式 +- 使用 Vue 3 的 Composition API 和 `