@k3000/s1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -0
- package/RuoYi-Vue3/.env.development +8 -0
- package/RuoYi-Vue3/.env.production +11 -0
- package/RuoYi-Vue3/.env.staging +11 -0
- package/RuoYi-Vue3/.github/FUNDING.yml +1 -0
- package/RuoYi-Vue3/LICENSE +20 -0
- package/RuoYi-Vue3/README.md +109 -0
- package/RuoYi-Vue3/bin/build.bat +12 -0
- package/RuoYi-Vue3/bin/package.bat +12 -0
- package/RuoYi-Vue3/bin/run-web.bat +12 -0
- package/RuoYi-Vue3/html/ie.html +46 -0
- package/RuoYi-Vue3/index.html +215 -0
- package/RuoYi-Vue3/package.json +44 -0
- package/RuoYi-Vue3/public/favicon.ico +0 -0
- package/RuoYi-Vue3/src/App.vue +15 -0
- package/RuoYi-Vue3/src/api/login.js +60 -0
- package/RuoYi-Vue3/src/api/menu.js +9 -0
- package/RuoYi-Vue3/src/api/monitor/cache.js +57 -0
- package/RuoYi-Vue3/src/api/monitor/job.js +71 -0
- package/RuoYi-Vue3/src/api/monitor/jobLog.js +26 -0
- package/RuoYi-Vue3/src/api/monitor/logininfor.js +34 -0
- package/RuoYi-Vue3/src/api/monitor/online.js +18 -0
- package/RuoYi-Vue3/src/api/monitor/operlog.js +26 -0
- package/RuoYi-Vue3/src/api/monitor/server.js +9 -0
- package/RuoYi-Vue3/src/api/system/config.js +60 -0
- package/RuoYi-Vue3/src/api/system/dept.js +52 -0
- package/RuoYi-Vue3/src/api/system/dict/data.js +52 -0
- package/RuoYi-Vue3/src/api/system/dict/type.js +60 -0
- package/RuoYi-Vue3/src/api/system/menu.js +60 -0
- package/RuoYi-Vue3/src/api/system/notice.js +44 -0
- package/RuoYi-Vue3/src/api/system/post.js +44 -0
- package/RuoYi-Vue3/src/api/system/role.js +119 -0
- package/RuoYi-Vue3/src/api/system/user.js +136 -0
- package/RuoYi-Vue3/src/api/tool/gen.js +85 -0
- package/RuoYi-Vue3/src/assets/401_images/401.gif +0 -0
- package/RuoYi-Vue3/src/assets/404_images/404.png +0 -0
- package/RuoYi-Vue3/src/assets/404_images/404_cloud.png +0 -0
- package/RuoYi-Vue3/src/assets/icons/svg/404.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/bug.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/build.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/button.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/cascader.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/chart.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/checkbox.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/clipboard.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/code.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/color.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/component.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/dashboard.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/date-range.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/date.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/dict.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/documentation.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/download.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/drag.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/druid.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/edit.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/education.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/email.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/example.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/excel.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/exit-fullscreen.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/eye-open.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/eye.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/form.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/fullscreen.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/github.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/guide.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/icon.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/input.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/international.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/job.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/language.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/link.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/list.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/lock.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/log.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/logininfor.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/message.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/money.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/monitor.svg +2 -0
- package/RuoYi-Vue3/src/assets/icons/svg/nested.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/number.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/online.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/password.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/pdf.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/people.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/peoples.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/phone.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/post.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/qq.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/question.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/radio.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/rate.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/redis-list.svg +2 -0
- package/RuoYi-Vue3/src/assets/icons/svg/redis.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/row.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/search.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/select.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/server.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/shopping.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/size.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/skill.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/slider.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/star.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/swagger.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/switch.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/system.svg +2 -0
- package/RuoYi-Vue3/src/assets/icons/svg/tab.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/table.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/textarea.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/theme.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/time-range.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/time.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/tool.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/tree-table.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/tree.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/upload.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/user.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/validCode.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/wechat.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/zip.svg +1 -0
- package/RuoYi-Vue3/src/assets/images/dark.svg +39 -0
- package/RuoYi-Vue3/src/assets/images/light.svg +39 -0
- package/RuoYi-Vue3/src/assets/images/login-background.jpg +0 -0
- package/RuoYi-Vue3/src/assets/images/pay.png +0 -0
- package/RuoYi-Vue3/src/assets/images/profile.jpg +0 -0
- package/RuoYi-Vue3/src/assets/logo/logo.png +0 -0
- package/RuoYi-Vue3/src/assets/styles/btn.scss +99 -0
- package/RuoYi-Vue3/src/assets/styles/element-ui.scss +96 -0
- package/RuoYi-Vue3/src/assets/styles/index.scss +184 -0
- package/RuoYi-Vue3/src/assets/styles/mixin.scss +66 -0
- package/RuoYi-Vue3/src/assets/styles/ruoyi.scss +281 -0
- package/RuoYi-Vue3/src/assets/styles/sidebar.scss +238 -0
- package/RuoYi-Vue3/src/assets/styles/transition.scss +49 -0
- package/RuoYi-Vue3/src/assets/styles/variables.module.scss +65 -0
- package/RuoYi-Vue3/src/components/Breadcrumb/index.vue +66 -0
- package/RuoYi-Vue3/src/components/Crontab/day.vue +174 -0
- package/RuoYi-Vue3/src/components/Crontab/hour.vue +133 -0
- package/RuoYi-Vue3/src/components/Crontab/index.vue +310 -0
- package/RuoYi-Vue3/src/components/Crontab/min.vue +126 -0
- package/RuoYi-Vue3/src/components/Crontab/month.vue +141 -0
- package/RuoYi-Vue3/src/components/Crontab/result.vue +540 -0
- package/RuoYi-Vue3/src/components/Crontab/second.vue +128 -0
- package/RuoYi-Vue3/src/components/Crontab/week.vue +197 -0
- package/RuoYi-Vue3/src/components/Crontab/year.vue +149 -0
- package/RuoYi-Vue3/src/components/DictTag/index.vue +82 -0
- package/RuoYi-Vue3/src/components/Editor/index.vue +251 -0
- package/RuoYi-Vue3/src/components/FileUpload/index.vue +207 -0
- package/RuoYi-Vue3/src/components/Hamburger/index.vue +41 -0
- package/RuoYi-Vue3/src/components/HeaderSearch/index.vue +187 -0
- package/RuoYi-Vue3/src/components/IconSelect/index.vue +111 -0
- package/RuoYi-Vue3/src/components/IconSelect/requireIcons.js +8 -0
- package/RuoYi-Vue3/src/components/ImagePreview/index.vue +92 -0
- package/RuoYi-Vue3/src/components/ImageUpload/index.vue +213 -0
- package/RuoYi-Vue3/src/components/Pagination/index.vue +105 -0
- package/RuoYi-Vue3/src/components/ParentView/index.vue +3 -0
- package/RuoYi-Vue3/src/components/RightToolbar/index.vue +134 -0
- package/RuoYi-Vue3/src/components/RuoYi/Doc/index.vue +13 -0
- package/RuoYi-Vue3/src/components/RuoYi/Git/index.vue +13 -0
- package/RuoYi-Vue3/src/components/Screenfull/index.vue +22 -0
- package/RuoYi-Vue3/src/components/SizeSelect/index.vue +45 -0
- package/RuoYi-Vue3/src/components/SvgIcon/index.vue +53 -0
- package/RuoYi-Vue3/src/components/SvgIcon/svgicon.js +10 -0
- package/RuoYi-Vue3/src/components/TopNav/index.vue +214 -0
- package/RuoYi-Vue3/src/components/TreeSelect/index.vue +156 -0
- package/RuoYi-Vue3/src/components/iFrame/index.vue +31 -0
- package/RuoYi-Vue3/src/directive/common/copyText.js +66 -0
- package/RuoYi-Vue3/src/directive/index.js +9 -0
- package/RuoYi-Vue3/src/directive/permission/hasPermi.js +28 -0
- package/RuoYi-Vue3/src/directive/permission/hasRole.js +28 -0
- package/RuoYi-Vue3/src/layout/components/AppMain.vue +68 -0
- package/RuoYi-Vue3/src/layout/components/IframeToggle/index.vue +25 -0
- package/RuoYi-Vue3/src/layout/components/InnerLink/index.vue +24 -0
- package/RuoYi-Vue3/src/layout/components/Navbar.vue +191 -0
- package/RuoYi-Vue3/src/layout/components/Settings/index.vue +209 -0
- package/RuoYi-Vue3/src/layout/components/Sidebar/Link.vue +40 -0
- package/RuoYi-Vue3/src/layout/components/Sidebar/Logo.vue +81 -0
- package/RuoYi-Vue3/src/layout/components/Sidebar/SidebarItem.vue +102 -0
- package/RuoYi-Vue3/src/layout/components/Sidebar/index.vue +54 -0
- package/RuoYi-Vue3/src/layout/components/TagsView/ScrollPane.vue +107 -0
- package/RuoYi-Vue3/src/layout/components/TagsView/index.vue +358 -0
- package/RuoYi-Vue3/src/layout/components/index.js +4 -0
- package/RuoYi-Vue3/src/layout/index.vue +114 -0
- package/RuoYi-Vue3/src/main.js +84 -0
- package/RuoYi-Vue3/src/permission.js +65 -0
- package/RuoYi-Vue3/src/plugins/auth.js +60 -0
- package/RuoYi-Vue3/src/plugins/cache.js +77 -0
- package/RuoYi-Vue3/src/plugins/download.js +79 -0
- package/RuoYi-Vue3/src/plugins/index.js +18 -0
- package/RuoYi-Vue3/src/plugins/modal.js +82 -0
- package/RuoYi-Vue3/src/plugins/tab.js +69 -0
- package/RuoYi-Vue3/src/router/index.js +175 -0
- package/RuoYi-Vue3/src/settings.js +47 -0
- package/RuoYi-Vue3/src/store/index.js +3 -0
- package/RuoYi-Vue3/src/store/modules/app.js +46 -0
- package/RuoYi-Vue3/src/store/modules/dict.js +57 -0
- package/RuoYi-Vue3/src/store/modules/permission.js +142 -0
- package/RuoYi-Vue3/src/store/modules/settings.js +38 -0
- package/RuoYi-Vue3/src/store/modules/tagsView.js +182 -0
- package/RuoYi-Vue3/src/store/modules/user.js +72 -0
- package/RuoYi-Vue3/src/utils/auth.js +15 -0
- package/RuoYi-Vue3/src/utils/dict.js +24 -0
- package/RuoYi-Vue3/src/utils/dynamicTitle.js +15 -0
- package/RuoYi-Vue3/src/utils/errorCode.js +6 -0
- package/RuoYi-Vue3/src/utils/index.js +390 -0
- package/RuoYi-Vue3/src/utils/jsencrypt.js +30 -0
- package/RuoYi-Vue3/src/utils/permission.js +51 -0
- package/RuoYi-Vue3/src/utils/request.js +152 -0
- package/RuoYi-Vue3/src/utils/ruoyi.js +246 -0
- package/RuoYi-Vue3/src/utils/scroll-to.js +58 -0
- package/RuoYi-Vue3/src/utils/theme.js +49 -0
- package/RuoYi-Vue3/src/utils/validate.js +93 -0
- package/RuoYi-Vue3/src/views/error/401.vue +82 -0
- package/RuoYi-Vue3/src/views/error/404.vue +227 -0
- package/RuoYi-Vue3/src/views/index.vue +1092 -0
- package/RuoYi-Vue3/src/views/login.vue +227 -0
- package/RuoYi-Vue3/src/views/monitor/cache/index.vue +132 -0
- package/RuoYi-Vue3/src/views/monitor/cache/list.vue +246 -0
- package/RuoYi-Vue3/src/views/monitor/druid/index.vue +13 -0
- package/RuoYi-Vue3/src/views/monitor/job/index.vue +501 -0
- package/RuoYi-Vue3/src/views/monitor/job/log.vue +283 -0
- package/RuoYi-Vue3/src/views/monitor/logininfor/index.vue +233 -0
- package/RuoYi-Vue3/src/views/monitor/online/index.vue +109 -0
- package/RuoYi-Vue3/src/views/monitor/operlog/index.vue +310 -0
- package/RuoYi-Vue3/src/views/monitor/server/index.vue +187 -0
- package/RuoYi-Vue3/src/views/redirect/index.vue +14 -0
- package/RuoYi-Vue3/src/views/register.vue +219 -0
- package/RuoYi-Vue3/src/views/system/config/index.vue +316 -0
- package/RuoYi-Vue3/src/views/system/dept/index.vue +283 -0
- package/RuoYi-Vue3/src/views/system/dict/data.vue +362 -0
- package/RuoYi-Vue3/src/views/system/dict/index.vue +323 -0
- package/RuoYi-Vue3/src/views/system/menu/index.vue +452 -0
- package/RuoYi-Vue3/src/views/system/notice/index.vue +292 -0
- package/RuoYi-Vue3/src/views/system/post/index.vue +287 -0
- package/RuoYi-Vue3/src/views/system/role/authUser.vue +179 -0
- package/RuoYi-Vue3/src/views/system/role/index.vue +584 -0
- package/RuoYi-Vue3/src/views/system/role/selectUser.vue +144 -0
- package/RuoYi-Vue3/src/views/system/user/authRole.vue +116 -0
- package/RuoYi-Vue3/src/views/system/user/index.vue +635 -0
- package/RuoYi-Vue3/src/views/system/user/profile/index.vue +87 -0
- package/RuoYi-Vue3/src/views/system/user/profile/resetPwd.vue +59 -0
- package/RuoYi-Vue3/src/views/system/user/profile/userAvatar.vue +180 -0
- package/RuoYi-Vue3/src/views/system/user/profile/userInfo.vue +67 -0
- package/RuoYi-Vue3/src/views/tool/build/index.vue +3 -0
- package/RuoYi-Vue3/src/views/tool/gen/basicInfoForm.vue +48 -0
- package/RuoYi-Vue3/src/views/tool/gen/createTable.vue +46 -0
- package/RuoYi-Vue3/src/views/tool/gen/editTable.vue +200 -0
- package/RuoYi-Vue3/src/views/tool/gen/genInfoForm.vue +306 -0
- package/RuoYi-Vue3/src/views/tool/gen/importTable.vue +126 -0
- package/RuoYi-Vue3/src/views/tool/gen/index.vue +310 -0
- package/RuoYi-Vue3/src/views/tool/swagger/index.vue +9 -0
- package/RuoYi-Vue3/vite/plugins/auto-import.js +12 -0
- package/RuoYi-Vue3/vite/plugins/compression.js +28 -0
- package/RuoYi-Vue3/vite/plugins/index.js +15 -0
- package/RuoYi-Vue3/vite/plugins/setup-extend.js +5 -0
- package/RuoYi-Vue3/vite/plugins/svg-icon.js +10 -0
- package/RuoYi-Vue3/vite.config.js +58 -0
- package/admin/README.MD +0 -0
- package/admin/base.mjs +447 -0
- package/admin/index.mjs +19 -0
- package/admin/monitor/job.mjs +24 -0
- package/admin/monitor/jobLog.mjs +8 -0
- package/admin/monitor/logininfor.mjs +23 -0
- package/admin/monitor/operlog.mjs +9 -0
- package/admin/monitor/server.mjs +54 -0
- package/admin/service.mjs +10 -0
- package/admin/system/component.mjs +16 -0
- package/admin/system/config.mjs +8 -0
- package/admin/system/dept.mjs +24 -0
- package/admin/system/dict.mjs +34 -0
- package/admin/system/login.mjs +119 -0
- package/admin/system/menu.mjs +33 -0
- package/admin/system/notice.mjs +8 -0
- package/admin/system/path.mjs +53 -0
- package/admin/system/post.mjs +8 -0
- package/admin/system/role.mjs +105 -0
- package/admin/system/user.mjs +93 -0
- package/admin/tool/gen.mjs +95 -0
- package/admin/tool/helper.mjs +1335 -0
- package/admin/tool/pm2.mjs +71 -0
- package/admin/tool/store.mjs +84 -0
- package/admin/tool/upload.mjs +112 -0
- package/app/README.MD +0 -0
- package/app/index.mjs +9 -0
- package/bin.mjs +211 -0
- package/build.mjs +25 -0
- package/common/README.MD +0 -0
- package/common/config.mjs +40 -0
- package/common/pm2.mjs +145 -0
- package/common/service.mjs +79 -0
- package/common/service0.mjs +468 -0
- package/common/tools.mjs +314 -0
- package/common/type.ts +498 -0
- package/file/README.MD +0 -0
- package/files/.env.production +11 -0
- package/files/gen.js +76 -0
- package/files/genImportTable.vue +120 -0
- package/files/genIndex.vue +309 -0
- package/files/genInfoForm.vue +302 -0
- package/files/login.vue +237 -0
- package/files/menu.js +68 -0
- package/files/menuIndex.vue +447 -0
- package/files/pm2.js +88 -0
- package/files/pm2Data.vue +335 -0
- package/files/pm2Index.vue +343 -0
- package/files/routerIndex.js +204 -0
- package/files/serverIndex.vue +215 -0
- package/files/store.js +96 -0
- package/files/storeData.vue +294 -0
- package/files/storeIndex.vue +245 -0
- package/files/upload.js +47 -0
- package/files/uploadIndex.vue +240 -0
- package/files/vite.config.js +58 -0
- package/index.mjs +28 -0
- package/jwt/README.MD +12 -0
- package/jwt/index.mjs +17 -0
- package/package.json +22 -0
- package/proxy/README.MD +0 -0
- package/proxy/index.mjs +16 -0
- package/static/README.MD +0 -0
- package/static/admin/assets/401-CYieuz9-.js +1 -0
- package/static/admin/assets/401-CYieuz9-.js.gz +0 -0
- package/static/admin/assets/401-DmT2Eyz6.css +1 -0
- package/static/admin/assets/401-HGF6Q5qM.gif +0 -0
- package/static/admin/assets/404-DFv5Zpvm.js +1 -0
- package/static/admin/assets/404-DFv5Zpvm.js.gz +0 -0
- package/static/admin/assets/404-Dy3nURRX.js +1 -0
- package/static/admin/assets/404-Dy3nURRX.js.gz +0 -0
- package/static/admin/assets/404-N4aRkdWY.png +0 -0
- package/static/admin/assets/404-uZCOR2Ze.css +1 -0
- package/static/admin/assets/404-uZCOR2Ze.css.gz +0 -0
- package/static/admin/assets/404_cloud-CPexjtDj.png +0 -0
- package/static/admin/assets/authRole-ma37t91O.js +1 -0
- package/static/admin/assets/authRole-ma37t91O.js.gz +0 -0
- package/static/admin/assets/authUser-C2Y6gkW3.js +1 -0
- package/static/admin/assets/authUser-C2Y6gkW3.js.gz +0 -0
- package/static/admin/assets/basicInfoForm-Cqv-g0Vq.js +1 -0
- package/static/admin/assets/basicInfoForm-Cqv-g0Vq.js.gz +0 -0
- package/static/admin/assets/bug-10dePVta.js +1 -0
- package/static/admin/assets/bug-10dePVta.js.gz +0 -0
- package/static/admin/assets/build-2jMyI6eP.js +1 -0
- package/static/admin/assets/build-2jMyI6eP.js.gz +0 -0
- package/static/admin/assets/button-BlSCM_GH.js +1 -0
- package/static/admin/assets/button-BlSCM_GH.js.gz +0 -0
- package/static/admin/assets/cache-CRGI5LFU.js +1 -0
- package/static/admin/assets/cascader-CXIOcY1C.js +1 -0
- package/static/admin/assets/cascader-CXIOcY1C.js.gz +0 -0
- package/static/admin/assets/chart-BsLMrzXU.js +1 -0
- package/static/admin/assets/checkbox-Bpiun3bf.js +1 -0
- package/static/admin/assets/checkbox-Bpiun3bf.js.gz +0 -0
- package/static/admin/assets/clipboard-DaV3cn7f.js +1 -0
- package/static/admin/assets/clipboard-DaV3cn7f.js.gz +0 -0
- package/static/admin/assets/code-DgJ8cT4a.js +1 -0
- package/static/admin/assets/color-y1Sshoou.js +1 -0
- package/static/admin/assets/color-y1Sshoou.js.gz +0 -0
- package/static/admin/assets/component-Djp9s69L.js +1 -0
- package/static/admin/assets/component-Djp9s69L.js.gz +0 -0
- package/static/admin/assets/createTable-CpixhIJI.js +1 -0
- package/static/admin/assets/createTable-CpixhIJI.js.gz +0 -0
- package/static/admin/assets/dashboard-Dy7qt_a2.js +1 -0
- package/static/admin/assets/dashboard-Dy7qt_a2.js.gz +0 -0
- package/static/admin/assets/data-B6ExfNCI.js +1 -0
- package/static/admin/assets/data-B6ExfNCI.js.gz +0 -0
- package/static/admin/assets/data-BNwnwlkO.js +34 -0
- package/static/admin/assets/data-BNwnwlkO.js.gz +0 -0
- package/static/admin/assets/data-C3FuPwta.css +1 -0
- package/static/admin/assets/data-DmSA0HcO.js +1 -0
- package/static/admin/assets/data-DmSA0HcO.js.gz +0 -0
- package/static/admin/assets/date-B1FSITvi.js +1 -0
- package/static/admin/assets/date-B1FSITvi.js.gz +0 -0
- package/static/admin/assets/date-range-B8MgYLb1.js +1 -0
- package/static/admin/assets/date-range-B8MgYLb1.js.gz +0 -0
- package/static/admin/assets/dict-Bi_GqSXR.js +1 -0
- package/static/admin/assets/dict-Bi_GqSXR.js.gz +0 -0
- package/static/admin/assets/documentation-uH9BvL5U.js +1 -0
- package/static/admin/assets/download-DeIzgQWH.js +1 -0
- package/static/admin/assets/download-DeIzgQWH.js.gz +0 -0
- package/static/admin/assets/drag-BG1_I1vT.js +1 -0
- package/static/admin/assets/druid-BybW_S_B.js +1 -0
- package/static/admin/assets/edit-D0DI9pAq.js +1 -0
- package/static/admin/assets/editTable-zr5bdAM7.js +1 -0
- package/static/admin/assets/editTable-zr5bdAM7.js.gz +0 -0
- package/static/admin/assets/education-47KsSYIl.js +1 -0
- package/static/admin/assets/email-Dig28Vt2.js +1 -0
- package/static/admin/assets/example-CnLLAFb9.js +1 -0
- package/static/admin/assets/excel-D3hj5F35.js +1 -0
- package/static/admin/assets/exit-fullscreen-dXhGKlQm.js +1 -0
- package/static/admin/assets/exit-fullscreen-dXhGKlQm.js.gz +0 -0
- package/static/admin/assets/eye-DqRz4sMZ.js +1 -0
- package/static/admin/assets/eye-DqRz4sMZ.js.gz +0 -0
- package/static/admin/assets/eye-open-BxlshWqB.js +1 -0
- package/static/admin/assets/eye-open-BxlshWqB.js.gz +0 -0
- package/static/admin/assets/form-BDTA_i-I.js +1 -0
- package/static/admin/assets/form-BDTA_i-I.js.gz +0 -0
- package/static/admin/assets/fullscreen-0JHt5yWX.js +1 -0
- package/static/admin/assets/gen-DLNrNhtb.js +1 -0
- package/static/admin/assets/genInfoForm-CMDsV5QX.js +1 -0
- package/static/admin/assets/genInfoForm-CMDsV5QX.js.gz +0 -0
- package/static/admin/assets/github-AJ0WQBa2.js +1 -0
- package/static/admin/assets/github-AJ0WQBa2.js.gz +0 -0
- package/static/admin/assets/guide-DZWUPi2j.js +1 -0
- package/static/admin/assets/icon-BtMv6Od8.js +1 -0
- package/static/admin/assets/icon-BtMv6Od8.js.gz +0 -0
- package/static/admin/assets/importTable-BsBsGfWB.js +1 -0
- package/static/admin/assets/importTable-BsBsGfWB.js.gz +0 -0
- package/static/admin/assets/index-1Gtzb1EG.css +1 -0
- package/static/admin/assets/index-1Gtzb1EG.css.gz +0 -0
- package/static/admin/assets/index-22TxXV_H.js +1 -0
- package/static/admin/assets/index-2PS_9Njt.js +1 -0
- package/static/admin/assets/index-2PS_9Njt.js.gz +0 -0
- package/static/admin/assets/index-2QWdVCKT.js +1 -0
- package/static/admin/assets/index-BH2yis6M.js +1 -0
- package/static/admin/assets/index-BYiWbDzj.js +137 -0
- package/static/admin/assets/index-BYiWbDzj.js.gz +0 -0
- package/static/admin/assets/index-BcoIBYYg.js +1 -0
- package/static/admin/assets/index-BcoIBYYg.js.gz +0 -0
- package/static/admin/assets/index-BdfyYxZX.css +1 -0
- package/static/admin/assets/index-BdfyYxZX.css.gz +0 -0
- package/static/admin/assets/index-BpFFXMK5.js +1 -0
- package/static/admin/assets/index-BpFFXMK5.js.gz +0 -0
- package/static/admin/assets/index-CKPU_AaL.js +1 -0
- package/static/admin/assets/index-CKPU_AaL.js.gz +0 -0
- package/static/admin/assets/index-CXsykB0X.js +1 -0
- package/static/admin/assets/index-CXsykB0X.js.gz +0 -0
- package/static/admin/assets/index-CfHRKVJR.js +1 -0
- package/static/admin/assets/index-CfHRKVJR.js.gz +0 -0
- package/static/admin/assets/index-ChrWcM7o.js +1 -0
- package/static/admin/assets/index-ChrWcM7o.js.gz +0 -0
- package/static/admin/assets/index-CyGqJLpz.css +1 -0
- package/static/admin/assets/index-Czuq8j-W.js +1 -0
- package/static/admin/assets/index-D5kEXJN3.js +1 -0
- package/static/admin/assets/index-D5kEXJN3.js.gz +0 -0
- package/static/admin/assets/index-D7sjRL--.js +1 -0
- package/static/admin/assets/index-D7sjRL--.js.gz +0 -0
- package/static/admin/assets/index-D9JRAPr4.js +1 -0
- package/static/admin/assets/index-D9JRAPr4.js.gz +0 -0
- package/static/admin/assets/index-DADWjT7Y.js +1 -0
- package/static/admin/assets/index-DADWjT7Y.js.gz +0 -0
- package/static/admin/assets/index-DUTtT4NU.js +1 -0
- package/static/admin/assets/index-DUTtT4NU.js.gz +0 -0
- package/static/admin/assets/index-DZR__uIb.js +1 -0
- package/static/admin/assets/index-DZR__uIb.js.gz +0 -0
- package/static/admin/assets/index-Da2r8G2b.js +1 -0
- package/static/admin/assets/index-Da2r8G2b.js.gz +0 -0
- package/static/admin/assets/index-DakybE_b.js +1 -0
- package/static/admin/assets/index-DakybE_b.js.gz +0 -0
- package/static/admin/assets/index-DdnU2rJ0.css +1 -0
- package/static/admin/assets/index-H21xXZr5.js +60 -0
- package/static/admin/assets/index-H21xXZr5.js.gz +0 -0
- package/static/admin/assets/index-PGDGQEbD.js +1 -0
- package/static/admin/assets/index-PGDGQEbD.js.gz +0 -0
- package/static/admin/assets/index-Rm6qYhrO.js +1 -0
- package/static/admin/assets/index-VG6ZkdYt.js +1 -0
- package/static/admin/assets/index-VG6ZkdYt.js.gz +0 -0
- package/static/admin/assets/index-YVnsjgTq.js +1 -0
- package/static/admin/assets/index-YVnsjgTq.js.gz +0 -0
- package/static/admin/assets/index-t3XJ47us.css +1 -0
- package/static/admin/assets/index-t3XJ47us.css.gz +0 -0
- package/static/admin/assets/index-xfai-fRy.js +1 -0
- package/static/admin/assets/index-xfai-fRy.js.gz +0 -0
- package/static/admin/assets/input-BJoPMnBW.js +1 -0
- package/static/admin/assets/international-CmzG1OHg.js +1 -0
- package/static/admin/assets/international-CmzG1OHg.js.gz +0 -0
- package/static/admin/assets/job-BcmuINx7.js +1 -0
- package/static/admin/assets/job-BcmuINx7.js.gz +0 -0
- package/static/admin/assets/job-COdMvNx2.js +1 -0
- package/static/admin/assets/language-CaW1LMEk.js +1 -0
- package/static/admin/assets/language-CaW1LMEk.js.gz +0 -0
- package/static/admin/assets/link-C93f4PgI.js +1 -0
- package/static/admin/assets/list-C7O8B4zW.js +1 -0
- package/static/admin/assets/list-C7O8B4zW.js.gz +0 -0
- package/static/admin/assets/list-DUaPnccL.js +1 -0
- package/static/admin/assets/list-DUaPnccL.js.gz +0 -0
- package/static/admin/assets/lock-Bexeb9hp.js +1 -0
- package/static/admin/assets/log-CF2F-nSs.js +1 -0
- package/static/admin/assets/log-CF2F-nSs.js.gz +0 -0
- package/static/admin/assets/log-g6qirYnf.js +1 -0
- package/static/admin/assets/log-g6qirYnf.js.gz +0 -0
- package/static/admin/assets/login-1ezV0PC1.css +1 -0
- package/static/admin/assets/login-1ezV0PC1.css.gz +0 -0
- package/static/admin/assets/login-BnkuYS6J.js +22 -0
- package/static/admin/assets/login-BnkuYS6J.js.gz +0 -0
- package/static/admin/assets/login-background-Yn3y1TP_.jpg +0 -0
- package/static/admin/assets/logininfor-Bm9ZYYR7.js +1 -0
- package/static/admin/assets/logininfor-Bm9ZYYR7.js.gz +0 -0
- package/static/admin/assets/logo-BjsPc2xl.png +0 -0
- package/static/admin/assets/menu-BIu3IsSF.js +1 -0
- package/static/admin/assets/message-UkR-VIBB.js +1 -0
- package/static/admin/assets/money-B1qqPuhn.js +1 -0
- package/static/admin/assets/monitor-gwnnVq4l.js +1 -0
- package/static/admin/assets/monitor-gwnnVq4l.js.gz +0 -0
- package/static/admin/assets/nested-B4d5u3hW.js +1 -0
- package/static/admin/assets/number-D4hB_nHC.js +1 -0
- package/static/admin/assets/number-D4hB_nHC.js.gz +0 -0
- package/static/admin/assets/online-C2ZP8pdY.js +1 -0
- package/static/admin/assets/online-C2ZP8pdY.js.gz +0 -0
- package/static/admin/assets/password-DfGvqQpB.js +1 -0
- package/static/admin/assets/password-DfGvqQpB.js.gz +0 -0
- package/static/admin/assets/pay-2ZbgPnxn.png +0 -0
- package/static/admin/assets/pdf-CD9mOGjJ.js +1 -0
- package/static/admin/assets/pdf-CD9mOGjJ.js.gz +0 -0
- package/static/admin/assets/people-CdGMHN63.js +1 -0
- package/static/admin/assets/people-CdGMHN63.js.gz +0 -0
- package/static/admin/assets/peoples-BRYsIqmI.js +1 -0
- package/static/admin/assets/phone-BpAUIz0g.js +1 -0
- package/static/admin/assets/phone-BpAUIz0g.js.gz +0 -0
- package/static/admin/assets/pm2-BkmkkE2A.js +1 -0
- package/static/admin/assets/post-DrLDyPY9.js +1 -0
- package/static/admin/assets/post-DrLDyPY9.js.gz +0 -0
- package/static/admin/assets/profile-DruvkrZU.jpg +0 -0
- package/static/admin/assets/qq-D8j4O83Y.js +1 -0
- package/static/admin/assets/qq-D8j4O83Y.js.gz +0 -0
- package/static/admin/assets/question-CvYWQbyW.js +1 -0
- package/static/admin/assets/question-CvYWQbyW.js.gz +0 -0
- package/static/admin/assets/radio-B0t9wPBQ.js +1 -0
- package/static/admin/assets/radio-B0t9wPBQ.js.gz +0 -0
- package/static/admin/assets/rate-CgnHQvKS.js +1 -0
- package/static/admin/assets/rate-CgnHQvKS.js.gz +0 -0
- package/static/admin/assets/redis-D4ECyT6a.js +1 -0
- package/static/admin/assets/redis-D4ECyT6a.js.gz +0 -0
- package/static/admin/assets/redis-list-BtKGPnqO.js +1 -0
- package/static/admin/assets/redis-list-BtKGPnqO.js.gz +0 -0
- package/static/admin/assets/register-B9RmZvjt.js +1 -0
- package/static/admin/assets/register-B9RmZvjt.js.gz +0 -0
- package/static/admin/assets/register-n3u7gqca.css +1 -0
- package/static/admin/assets/resetPwd-M0EIDnQk.js +1 -0
- package/static/admin/assets/resetPwd-M0EIDnQk.js.gz +0 -0
- package/static/admin/assets/role-XbHkNxnW.js +1 -0
- package/static/admin/assets/role-XbHkNxnW.js.gz +0 -0
- package/static/admin/assets/row-CRXKIHjm.js +1 -0
- package/static/admin/assets/row-CRXKIHjm.js.gz +0 -0
- package/static/admin/assets/search-CUfclCsR.js +1 -0
- package/static/admin/assets/select-DhuHHMxz.js +1 -0
- package/static/admin/assets/select-DhuHHMxz.js.gz +0 -0
- package/static/admin/assets/selectUser-DA_rE9J_.js +1 -0
- package/static/admin/assets/selectUser-DA_rE9J_.js.gz +0 -0
- package/static/admin/assets/server-unS7EyF7.js +1 -0
- package/static/admin/assets/shopping-CU1IRvxM.js +1 -0
- package/static/admin/assets/shopping-CU1IRvxM.js.gz +0 -0
- package/static/admin/assets/size-Cj9fB5Rp.js +1 -0
- package/static/admin/assets/skill-B8f_I4m_.js +1 -0
- package/static/admin/assets/skill-B8f_I4m_.js.gz +0 -0
- package/static/admin/assets/slider-BGfehM6X.js +1 -0
- package/static/admin/assets/star-kST8a72V.js +1 -0
- package/static/admin/assets/store-CX7IRN8X.js +1 -0
- package/static/admin/assets/swagger-BHGXZ2Jt.js +1 -0
- package/static/admin/assets/swagger-BHGXZ2Jt.js.gz +0 -0
- package/static/admin/assets/switch-CvaargRJ.js +1 -0
- package/static/admin/assets/system-DcNSH_Fq.js +1 -0
- package/static/admin/assets/system-DcNSH_Fq.js.gz +0 -0
- package/static/admin/assets/tab-nA3f0aBt.js +1 -0
- package/static/admin/assets/table-5PRh60AQ.js +1 -0
- package/static/admin/assets/test-CEJIIaDM.js +1 -0
- package/static/admin/assets/test-CEJIIaDM.js.gz +0 -0
- package/static/admin/assets/textarea-CJWXlgbJ.js +1 -0
- package/static/admin/assets/theme-CyGq941x.js +1 -0
- package/static/admin/assets/time-BVERp0sU.js +1 -0
- package/static/admin/assets/time-BVERp0sU.js.gz +0 -0
- package/static/admin/assets/time-range-D3dxgtLj.js +1 -0
- package/static/admin/assets/time-range-D3dxgtLj.js.gz +0 -0
- package/static/admin/assets/tool-D8kXk1l-.js +1 -0
- package/static/admin/assets/tool-D8kXk1l-.js.gz +0 -0
- package/static/admin/assets/tree-BCtS3oPD.js +1 -0
- package/static/admin/assets/tree-BCtS3oPD.js.gz +0 -0
- package/static/admin/assets/tree-table-CnOS99I9.js +1 -0
- package/static/admin/assets/tree-table-CnOS99I9.js.gz +0 -0
- package/static/admin/assets/type-BU7MsCG8.js +1 -0
- package/static/admin/assets/upload-BueI-Il1.js +1 -0
- package/static/admin/assets/upload-BueI-Il1.js.gz +0 -0
- package/static/admin/assets/user-DCGYGA9G.js +1 -0
- package/static/admin/assets/user-DCGYGA9G.js.gz +0 -0
- package/static/admin/assets/user-DqMuW5cU.js +1 -0
- package/static/admin/assets/userAvatar-BAmwMY1G.css +1 -0
- package/static/admin/assets/userAvatar-BAmwMY1G.css.gz +0 -0
- package/static/admin/assets/userAvatar-Bax34kaQ.js +7 -0
- package/static/admin/assets/userAvatar-Bax34kaQ.js.gz +0 -0
- package/static/admin/assets/userInfo-OvdBjEQX.js +1 -0
- package/static/admin/assets/userInfo-OvdBjEQX.js.gz +0 -0
- package/static/admin/assets/validCode-COB1iLxa.js +1 -0
- package/static/admin/assets/validCode-COB1iLxa.js.gz +0 -0
- package/static/admin/assets/wechat-lmQOcPZu.js +1 -0
- package/static/admin/assets/wechat-lmQOcPZu.js.gz +0 -0
- package/static/admin/assets/zip-DIOSZc69.js +1 -0
- package/static/admin/assets/zip-DIOSZc69.js.gz +0 -0
- package/static/admin/favicon.ico +0 -0
- package/static/admin/index.html +216 -0
- package/static/admin/index.html.gz +0 -0
- package/store1/README.MD +0 -0
- package/store1/generic.mjs +102 -0
- package/store1/index.mjs +30 -0
- package/store1/monitor.mjs +13 -0
- package/store1/role.mjs +137 -0
- package/store1/store/0/data +0 -0
- package/store1/store/0/index +0 -0
- package/store1/store/0/index.mjs +15 -0
- package/store1/store/1/buffer/464135 +1 -0
- package/store1/store/1/buffer/464587 +1 -0
- package/store1/store/1/data +0 -0
- package/store1/store/1/data-LAPTOP-S8G0S6EH +0 -0
- package/store1/store/1/index +0 -0
- package/store1/store/1/index-LAPTOP-S8G0S6EH +0 -0
- package/store1/store/1/index.mjs +4045 -0
- package/store1/store/1/type.ts +1492 -0
- package/store1/store/index.mjs +23 -0
- package/store1/store2/0/data +0 -0
- package/store1/store2/0/index +0 -0
- package/store1/store2/0/index.mjs +15 -0
- package/store1/store2/1/buffer/464135 +1 -0
- package/store1/store2/1/buffer/464587 +1 -0
- package/store1/store2/1/data +0 -0
- package/store1/store2/1/data-LAPTOP-S8G0S6EH +0 -0
- package/store1/store2/1/index +0 -0
- package/store1/store2/1/index-LAPTOP-S8G0S6EH +0 -0
- package/store1/store2/1/index.mjs +4045 -0
- package/store1/store2/1/type.ts +1492 -0
- package/store1/store2/index.mjs +23 -0
- package/store1/system.mjs +67 -0
- package/store1/tool.mjs +472 -0
- package/store1/user.mjs +228 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
import {AdminAuthPerm, NoActionHandle, NoActionParams} from "../base.mjs";
|
2
|
+
import {store1} from "../service.mjs";
|
3
|
+
import {pm2} from "../../common/pm2.mjs";
|
4
|
+
import archiver from "archiver";
|
5
|
+
|
6
|
+
export class Pm2 extends AdminAuthPerm {
|
7
|
+
|
8
|
+
route = '/tool/pm2'
|
9
|
+
|
10
|
+
list = store1.toolPm2List
|
11
|
+
|
12
|
+
POST(body, {req, res}) {
|
13
|
+
|
14
|
+
const id = this.call(body, {req, res})
|
15
|
+
|
16
|
+
if (id !== NoActionParams && !NoActionHandle.is(id)) return id
|
17
|
+
|
18
|
+
return store1.toolPm2AddService(body)
|
19
|
+
}
|
20
|
+
|
21
|
+
DELETE(data, {req}) {
|
22
|
+
|
23
|
+
return store1.toolPm2RemoveService(req.params.action)
|
24
|
+
}
|
25
|
+
|
26
|
+
changeStatus = store1.toolPm2ChangeStatus
|
27
|
+
|
28
|
+
save = pm2.save
|
29
|
+
|
30
|
+
resurrect = pm2.resurrect
|
31
|
+
|
32
|
+
data = store1.toolPm2Data
|
33
|
+
}
|
34
|
+
|
35
|
+
export class Service extends AdminAuthPerm {
|
36
|
+
|
37
|
+
set = 'serviceData'
|
38
|
+
route = '/tool/pm2/data'
|
39
|
+
|
40
|
+
POST(data, {req, res}) {
|
41
|
+
|
42
|
+
return this.call(data, {req, res})
|
43
|
+
}
|
44
|
+
|
45
|
+
list = store1.toolPm2DataList
|
46
|
+
|
47
|
+
DELETE(data, {req, res}) {
|
48
|
+
|
49
|
+
return store1.toolPm2RemoveData(req.params.action)
|
50
|
+
}
|
51
|
+
|
52
|
+
export(_, {res}) {
|
53
|
+
|
54
|
+
return store1.toolPm2Export()
|
55
|
+
.then(data => {
|
56
|
+
|
57
|
+
const archive = archiver('zip', {
|
58
|
+
zlib: {level: 9}
|
59
|
+
})
|
60
|
+
|
61
|
+
archive.append(data[0], {name: 'type.ts'})
|
62
|
+
archive.append(data[1], {name: 'service.mjs'})
|
63
|
+
|
64
|
+
res.piping = true
|
65
|
+
|
66
|
+
archive.pipe(res)
|
67
|
+
|
68
|
+
archive.finalize()
|
69
|
+
})
|
70
|
+
}
|
71
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import {AdminAuthPerm} from "../base.mjs";
|
2
|
+
import {store1} from "../service.mjs";
|
3
|
+
|
4
|
+
export class StoreManage extends AdminAuthPerm {
|
5
|
+
|
6
|
+
get path() {
|
7
|
+
|
8
|
+
return '/tool/store';
|
9
|
+
}
|
10
|
+
|
11
|
+
PUT(_, {req, res}) {
|
12
|
+
|
13
|
+
return store1.getStruct().then(data => {
|
14
|
+
|
15
|
+
if (Reflect.has(data, req.body.name)) return new Error('存储名称已存在')
|
16
|
+
})
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
export class StoreList extends AdminAuthPerm {
|
21
|
+
|
22
|
+
get path() {
|
23
|
+
|
24
|
+
return '/tool/store/list';
|
25
|
+
}
|
26
|
+
|
27
|
+
GET(query) {
|
28
|
+
|
29
|
+
query.user = query.userInfo
|
30
|
+
|
31
|
+
return store1.toolPm2StoreList(query).then(this.addCode200)
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
export class TypeList extends AdminAuthPerm {
|
36
|
+
|
37
|
+
get path() {
|
38
|
+
|
39
|
+
return '/tool/store/type/:name';
|
40
|
+
}
|
41
|
+
|
42
|
+
GET(_, {req}) {
|
43
|
+
|
44
|
+
return store1.getStruct().then(struct => {
|
45
|
+
|
46
|
+
if (!Reflect.has(struct, req.params.name)) return Promise.reject('数据不存在')
|
47
|
+
|
48
|
+
return {code: 200, struct: struct[req.params.name]}
|
49
|
+
})
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
export class DataList extends AdminAuthPerm {
|
54
|
+
|
55
|
+
get path() {
|
56
|
+
|
57
|
+
return '/tool/store/data/list';
|
58
|
+
}
|
59
|
+
|
60
|
+
GET(query) {
|
61
|
+
|
62
|
+
return store1.genericPage({
|
63
|
+
name: query.name,
|
64
|
+
query: {pageNum: query.pageNum, pageSize: query.pageSize, ...(query.filter || {})}
|
65
|
+
})
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
export class StoreData extends AdminAuthPerm {
|
70
|
+
|
71
|
+
get path() {
|
72
|
+
|
73
|
+
return '/tool/store/data';
|
74
|
+
}
|
75
|
+
|
76
|
+
POST(body) {
|
77
|
+
|
78
|
+
return store1.genericPush({name: body.name, body: body.data})
|
79
|
+
}
|
80
|
+
|
81
|
+
PUT = store1.toolPm2StoreDataUpdate
|
82
|
+
|
83
|
+
DELETE = store1.toolPm2RemoveStoreData
|
84
|
+
}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
import {existsSync, mkdirSync, readdirSync, renameSync, rmdirSync, statSync, unlinkSync, writeFileSync} from "node:fs";
|
2
|
+
import {AdminAuthPerm} from "../base.mjs";
|
3
|
+
import {staticDir} from "../../common/config.mjs";
|
4
|
+
|
5
|
+
function deleteDir(dir) {
|
6
|
+
|
7
|
+
for (const name of readdirSync(dir)) {
|
8
|
+
|
9
|
+
const path = `${dir}/${name}`
|
10
|
+
|
11
|
+
if (statSync(path).isDirectory()) {
|
12
|
+
|
13
|
+
deleteDir(path)
|
14
|
+
|
15
|
+
} else {
|
16
|
+
|
17
|
+
unlinkSync(path)
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
rmdirSync(dir)
|
22
|
+
}
|
23
|
+
|
24
|
+
export class Upload extends AdminAuthPerm {
|
25
|
+
|
26
|
+
route = '/tool/upload'
|
27
|
+
|
28
|
+
get #list() {
|
29
|
+
|
30
|
+
const files = []
|
31
|
+
|
32
|
+
for (const name of readdirSync(staticDir)) {
|
33
|
+
|
34
|
+
const path = `${staticDir}/${name}`
|
35
|
+
const stat = statSync(path)
|
36
|
+
|
37
|
+
const info = {
|
38
|
+
name,
|
39
|
+
createTime: stat.birthtime.format('yyyy/MM/dd HH:mm:ss'),
|
40
|
+
updateTime: stat.ctime.format('yyyy/MM/dd HH:mm:ss'),
|
41
|
+
}
|
42
|
+
|
43
|
+
if (stat.isDirectory()) {
|
44
|
+
|
45
|
+
files.push(info)
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
return files
|
50
|
+
}
|
51
|
+
|
52
|
+
list() {
|
53
|
+
|
54
|
+
return {rows: this.#list, code: 200}
|
55
|
+
}
|
56
|
+
|
57
|
+
directory(_, {req, res}) {
|
58
|
+
|
59
|
+
let {dir, name} = req.body
|
60
|
+
|
61
|
+
if (dir.length === 0) {
|
62
|
+
|
63
|
+
if (existsSync(`${staticDir}/${name}`)) return Promise.reject('资源已存在')
|
64
|
+
|
65
|
+
dir = staticDir
|
66
|
+
|
67
|
+
} else {
|
68
|
+
|
69
|
+
dir = `${staticDir}/${dir}`
|
70
|
+
}
|
71
|
+
|
72
|
+
const newDir = `${dir}/${name}`
|
73
|
+
|
74
|
+
if (existsSync(dir) && !existsSync(newDir)) mkdirSync(newDir)
|
75
|
+
}
|
76
|
+
|
77
|
+
file(body, {req}) {
|
78
|
+
|
79
|
+
let {dir, name} = body
|
80
|
+
|
81
|
+
const {data} = req.files.file || {}
|
82
|
+
|
83
|
+
dir = `${staticDir}/${dir}`
|
84
|
+
|
85
|
+
const path = `${dir}/${name}`
|
86
|
+
|
87
|
+
if (existsSync(dir) && !existsSync(path)) writeFileSync(path, data)
|
88
|
+
}
|
89
|
+
|
90
|
+
DELETE(_, {req, res}) {
|
91
|
+
|
92
|
+
for (const name of req.params.action.split(',')) {
|
93
|
+
|
94
|
+
const path = `${staticDir}/${name}`
|
95
|
+
|
96
|
+
if (existsSync(path)) deleteDir(path)
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
PUT(_, {req, res}) {
|
101
|
+
|
102
|
+
const {name, newName} = req.body
|
103
|
+
|
104
|
+
const oldPath = `${staticDir}/${name}`
|
105
|
+
const newPath = `${staticDir}/${newName}`
|
106
|
+
|
107
|
+
if (!existsSync(oldPath)) return Promise.reject('资源目录不存在')
|
108
|
+
if (existsSync(newPath)) return Promise.reject('新目录已存在')
|
109
|
+
|
110
|
+
renameSync(oldPath, newPath)
|
111
|
+
}
|
112
|
+
}
|
package/app/README.MD
ADDED
File without changes
|
package/app/index.mjs
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
import {Express} from "tools2/router.mjs";
|
2
|
+
import bodyParser from "body-parser";
|
3
|
+
import {appServicePort} from "../common/config.mjs";
|
4
|
+
|
5
|
+
const app = new Express({
|
6
|
+
port: appServicePort,
|
7
|
+
callback: () => console.log('running on ' + appServicePort),
|
8
|
+
})
|
9
|
+
app.use(bodyParser.urlencoded({extended: true}));
|
package/bin.mjs
ADDED
@@ -0,0 +1,211 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
import {cpSync, existsSync, mkdirSync} from "node:fs";
|
3
|
+
import {resolve, dirname} from "node:path";
|
4
|
+
|
5
|
+
import {pm2} from './common/pm2.mjs'
|
6
|
+
import {proxyService, uiService} from "./common/config.mjs";
|
7
|
+
|
8
|
+
const [, , key, value] = process.argv
|
9
|
+
|
10
|
+
const path = import.meta.url.substring(process.platform === 'win32' ? 8 : 7)
|
11
|
+
|
12
|
+
switch (key) {
|
13
|
+
|
14
|
+
case 'init':
|
15
|
+
|
16
|
+
init(!!value)
|
17
|
+
|
18
|
+
break
|
19
|
+
|
20
|
+
case 'open':
|
21
|
+
|
22
|
+
if (value === 'ui') pm2.start(uiService)
|
23
|
+
|
24
|
+
break
|
25
|
+
|
26
|
+
case 'close':
|
27
|
+
|
28
|
+
if (value === 'ui') pm2.stop(uiService)
|
29
|
+
|
30
|
+
break
|
31
|
+
|
32
|
+
case 'save':
|
33
|
+
|
34
|
+
pm2.save()
|
35
|
+
|
36
|
+
break
|
37
|
+
|
38
|
+
case 'resurrect':
|
39
|
+
|
40
|
+
pm2.resurrect()
|
41
|
+
|
42
|
+
break
|
43
|
+
|
44
|
+
case 'update':
|
45
|
+
|
46
|
+
updateUI()
|
47
|
+
|
48
|
+
break
|
49
|
+
}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* @param {boolean} override
|
53
|
+
*/
|
54
|
+
function init(override) {
|
55
|
+
|
56
|
+
myCopyFn('admin', 'admin', override)
|
57
|
+
myCopyFn('app', 'app', override)
|
58
|
+
myCopyFn('common', 'common', override)
|
59
|
+
myCopyFn('file', 'file', override)
|
60
|
+
myCopyFn('jwt', 'jwt', override)
|
61
|
+
myCopyFn('proxy', 'proxy', override)
|
62
|
+
myCopyFn('static', 'static', override)
|
63
|
+
myCopyFn('store1', 'store1', override)
|
64
|
+
myCopyFn('index.mjs', 'index.mjs', override)
|
65
|
+
|
66
|
+
// pm2.del(uiService)
|
67
|
+
// pm2.add(uiService, './backstage/index.mjs')
|
68
|
+
// pm2.stop(uiService)
|
69
|
+
pm2.save()
|
70
|
+
|
71
|
+
// pm2.exec('npm i dmb3').log()
|
72
|
+
// pm2.exec('npm i tools2').log()
|
73
|
+
pm2.exec('npm i svg-captcha').log()
|
74
|
+
pm2.exec('npm i mysql2').log()
|
75
|
+
pm2.exec('npm i ssh2').log()
|
76
|
+
pm2.exec('npm i archiver').log()
|
77
|
+
pm2.exec('npm i exceljs').log()
|
78
|
+
pm2.exec('npm i body-parser').log()
|
79
|
+
pm2.exec('npm i express-fileupload').log()
|
80
|
+
|
81
|
+
pm2.del(proxyService)
|
82
|
+
pm2.add(proxyService, './proxy.mjs')
|
83
|
+
}
|
84
|
+
|
85
|
+
/**
|
86
|
+
* 将本目录下的文件或者文件夹复制到项目运行目录
|
87
|
+
* @param {string} path
|
88
|
+
* @param {string} source 自动加上'/'
|
89
|
+
* @param {string} destination
|
90
|
+
* @param {boolean} force
|
91
|
+
* @example
|
92
|
+
* myCopyFn('source', 'destination')
|
93
|
+
*/
|
94
|
+
function myCopyFn(source, destination = source, force = false) {
|
95
|
+
|
96
|
+
return cpSync( `${dirname(path)}/${source}`, destination, {recursive: true, force})
|
97
|
+
}
|
98
|
+
|
99
|
+
function updateUI() {
|
100
|
+
|
101
|
+
const dir = resolve('')
|
102
|
+
|
103
|
+
const loginVue = `${dir}/src/views/login.vue`
|
104
|
+
|
105
|
+
if (existsSync(loginVue)) {
|
106
|
+
|
107
|
+
cpSync( `${dirname(path)}/files/login.vue`, loginVue, {recursive: true, force: true})
|
108
|
+
}
|
109
|
+
|
110
|
+
const serverVue = `${dir}/src/views/monitor/server/index.vue`
|
111
|
+
|
112
|
+
if (existsSync(serverVue)) {
|
113
|
+
|
114
|
+
cpSync( `${dirname(path)}/files/serverIndex.vue`, serverVue, {recursive: true, force: true})
|
115
|
+
}
|
116
|
+
|
117
|
+
const genInfoForm = `${dir}/src/views/tool/gen/genInfoForm.vue`
|
118
|
+
|
119
|
+
if (existsSync(genInfoForm)) {
|
120
|
+
|
121
|
+
cpSync( `${dirname(path)}/files/genInfoForm.vue`, genInfoForm, {recursive: true, force: true})
|
122
|
+
}
|
123
|
+
|
124
|
+
const genIndex = `${dir}/src/views/tool/gen/index.vue`
|
125
|
+
|
126
|
+
if (existsSync(genIndex)) {
|
127
|
+
|
128
|
+
cpSync( `${dirname(path)}/files/genIndex.vue`, genIndex, {recursive: true, force: true})
|
129
|
+
}
|
130
|
+
|
131
|
+
const genImportTable = `${dir}/src/views/tool/gen/importTable.vue`
|
132
|
+
|
133
|
+
if (existsSync(genImportTable)) {
|
134
|
+
|
135
|
+
cpSync( `${dirname(path)}/files/genImportTable.vue`, genImportTable, {recursive: true, force: true})
|
136
|
+
}
|
137
|
+
|
138
|
+
const menuIndex = `${dir}/src/views/system/menu/index.vue`
|
139
|
+
|
140
|
+
if (existsSync(menuIndex)) {
|
141
|
+
|
142
|
+
cpSync( `${dirname(path)}/files/menuIndex.vue`, menuIndex, {recursive: true, force: true})
|
143
|
+
}
|
144
|
+
|
145
|
+
const menuJs = `${dir}/src/api/system/menu.js`
|
146
|
+
|
147
|
+
if (existsSync(menuJs)) {
|
148
|
+
|
149
|
+
cpSync( `${dirname(path)}/files/menu.js`, menuJs, {recursive: true, force: true})
|
150
|
+
}
|
151
|
+
|
152
|
+
const genJs = `${dir}/src/api/system/gen.js`
|
153
|
+
|
154
|
+
if (existsSync(genJs)) {
|
155
|
+
|
156
|
+
cpSync( `${dirname(path)}/files/gen.js`, genJs, {recursive: true, force: true})
|
157
|
+
}
|
158
|
+
|
159
|
+
const routerJs = `${dir}/src/router/index.js`
|
160
|
+
|
161
|
+
if (existsSync(routerJs)) {
|
162
|
+
|
163
|
+
cpSync( `${dirname(path)}/files/routerIndex.js`, routerJs, {recursive: true, force: true})
|
164
|
+
}
|
165
|
+
|
166
|
+
const toolDir = `${dir}/src/views/tool/`
|
167
|
+
|
168
|
+
if (existsSync(toolDir)) {
|
169
|
+
|
170
|
+
const storeDir = toolDir + 'store'
|
171
|
+
|
172
|
+
if (!existsSync(storeDir)) {
|
173
|
+
|
174
|
+
mkdirSync(storeDir)
|
175
|
+
}
|
176
|
+
|
177
|
+
const pm2Dir = toolDir + 'pm2'
|
178
|
+
|
179
|
+
if (!existsSync(pm2Dir)) {
|
180
|
+
|
181
|
+
mkdirSync(pm2Dir)
|
182
|
+
}
|
183
|
+
|
184
|
+
const uploadDir = toolDir + 'upload'
|
185
|
+
|
186
|
+
if (!existsSync(uploadDir)) {
|
187
|
+
|
188
|
+
mkdirSync(uploadDir)
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
try {
|
193
|
+
|
194
|
+
cpSync( `${dirname(path)}/files/storeIndex.vue`, `${dir}/src/views/tool/store/index.vue`, {recursive: true, force: true})
|
195
|
+
cpSync( `${dirname(path)}/files/storeData.vue`, `${dir}/src/views/tool/store/data.vue`, {recursive: true, force: true})
|
196
|
+
cpSync( `${dirname(path)}/files/pm2Index.vue`, `${dir}/src/views/tool/pm2/index.vue`, {recursive: true, force: true})
|
197
|
+
cpSync( `${dirname(path)}/files/pm2Data.vue`, `${dir}/src/views/tool/pm2/data.vue`, {recursive: true, force: true})
|
198
|
+
cpSync( `${dirname(path)}/files/uploadIndex.vue`, `${dir}/src/views/tool/upload/index.vue`, {recursive: true, force: true})
|
199
|
+
cpSync( `${dirname(path)}/files/.env.production`, `${dir}/.env.production`, {recursive: true, force: true})
|
200
|
+
cpSync( `${dirname(path)}/files/vite.config.js`, `${dir}/vite.config.js`, {recursive: true, force: true})
|
201
|
+
|
202
|
+
for (const name of ['store', 'pm2', 'upload']) {
|
203
|
+
|
204
|
+
cpSync( `${dirname(path)}/files/${name}.js`, `${dir}/src/api/tool/${name}.js`, {recursive: true, force: true})
|
205
|
+
}
|
206
|
+
|
207
|
+
} catch (e) {
|
208
|
+
|
209
|
+
console.error(e)
|
210
|
+
}
|
211
|
+
}
|
package/build.mjs
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
/*import {build} from 'tools2/module.mjs'
|
2
|
+
|
3
|
+
// build('admin', 'index', 'admin') // 打包
|
4
|
+
// build('jwt', 'index', 'jwt') // 打包
|
5
|
+
// build('proxy', 'index', 'proxy') // 打包
|
6
|
+
build('test', {
|
7
|
+
target: 'index2.mjs',
|
8
|
+
except: ['test/a']
|
9
|
+
}) // 打包*/
|
10
|
+
|
11
|
+
// import './test/index.mjs'
|
12
|
+
import './index2.mjs'
|
13
|
+
|
14
|
+
/*import {build} from 'tools2/module.mjs'
|
15
|
+
|
16
|
+
// build('admin', 'index', 'admin') // 打包
|
17
|
+
// build('jwt', 'index', 'jwt') // 打包
|
18
|
+
// build('proxy', 'index', 'proxy') // 打包
|
19
|
+
build('store1', {
|
20
|
+
target: 'store1/index2.mjs',
|
21
|
+
except: ['store1/store']
|
22
|
+
}) // 打包*/
|
23
|
+
|
24
|
+
// import './store1/index.mjs'
|
25
|
+
// import './store1/index2.mjs'
|
package/common/README.MD
ADDED
File without changes
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import {resolve} from "node:path";
|
2
|
+
|
3
|
+
export const appServicePort = 8000
|
4
|
+
export const adminServicePort = 8080
|
5
|
+
|
6
|
+
export const proxyPort = 80
|
7
|
+
export const proxyMap = {
|
8
|
+
// '/app-api': `http://localhost:${appServicePort}`,
|
9
|
+
'/api': `http://localhost:${adminServicePort}`,
|
10
|
+
'/dev-api': `http://localhost:${adminServicePort}`,
|
11
|
+
// '/api': `http://localhost:${adminServicePort}`,
|
12
|
+
'/admin': '/static/admin',
|
13
|
+
// '/app': '/static/app',
|
14
|
+
}
|
15
|
+
|
16
|
+
export const store1Port = 9000
|
17
|
+
export const adminUdpPort = 9010
|
18
|
+
export const jwtPort = 9020
|
19
|
+
|
20
|
+
export const captchaSalt = '2024 captcha'
|
21
|
+
export const jwtSalt = '2024 jwt'
|
22
|
+
export const jwtLifetime = 1000 * 60 * 60 * 24 * 7;
|
23
|
+
// export const jwtLifetime = 1000 * 60 * 10; // 十分钟
|
24
|
+
|
25
|
+
// export const adminLifetime = 1000 * 60 * 10;
|
26
|
+
export const adminLifetime = 1000 * 60 * 30;
|
27
|
+
|
28
|
+
const rootPath = process.cwd()
|
29
|
+
|
30
|
+
export const uiDevViewDir = resolve(rootPath, '../') + '/ui/src/views'
|
31
|
+
export const serverDir = rootPath
|
32
|
+
export const staticDir = rootPath + '/static'
|
33
|
+
|
34
|
+
export const mysql = {
|
35
|
+
host: 'qshfu.com',
|
36
|
+
port: '3306',
|
37
|
+
user: 'admin',
|
38
|
+
database: 'wms',
|
39
|
+
password: 'QSF0099++mysql',
|
40
|
+
}
|
package/common/pm2.mjs
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
|
2
|
+
import {execSync} from 'node:child_process'
|
3
|
+
|
4
|
+
class PM2 {
|
5
|
+
|
6
|
+
constructor() {
|
7
|
+
|
8
|
+
try {
|
9
|
+
|
10
|
+
this.exec('pm2 -v').log()
|
11
|
+
|
12
|
+
} catch (e) {
|
13
|
+
|
14
|
+
this.exec('npm i pm2 -g').log()
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @param {string} command
|
21
|
+
*/
|
22
|
+
exec(command) {
|
23
|
+
|
24
|
+
console.log(' > ' + command)
|
25
|
+
|
26
|
+
const string = execSync(command).toString()
|
27
|
+
|
28
|
+
return {
|
29
|
+
valueOf: () => string,
|
30
|
+
log: () => console.log(string)
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @return {[{
|
37
|
+
* id: number,
|
38
|
+
* name: string
|
39
|
+
* }]}
|
40
|
+
*/
|
41
|
+
get list() {
|
42
|
+
|
43
|
+
const list = this.exec('pm2 list').valueOf()
|
44
|
+
.split('\n').filter(line => line.trim().startsWith('│'))
|
45
|
+
.map(line => line.split('│').map(value => value.trim()))
|
46
|
+
.map(list => list.slice(1, list.length - 1))
|
47
|
+
|
48
|
+
const taskList = []
|
49
|
+
|
50
|
+
for (const arr of list.slice(1)) {
|
51
|
+
|
52
|
+
const item = {}
|
53
|
+
|
54
|
+
for (const [key, value] of arr.entries()) {
|
55
|
+
|
56
|
+
item[list[0][key]] = key === 0 ? Number.parseInt(value) : value
|
57
|
+
}
|
58
|
+
|
59
|
+
taskList.push(item)
|
60
|
+
}
|
61
|
+
|
62
|
+
return taskList
|
63
|
+
}
|
64
|
+
|
65
|
+
/**
|
66
|
+
*
|
67
|
+
* @param {string} name
|
68
|
+
* @param {string} arg
|
69
|
+
* @return {boolean}
|
70
|
+
*/
|
71
|
+
add(name, arg) {
|
72
|
+
|
73
|
+
name = name.replace(/\|/g, '')
|
74
|
+
|
75
|
+
if (this.list.some(it => it.name === name)) return false
|
76
|
+
|
77
|
+
this.exec(`pm2 start ${arg} --name="${name}"`)
|
78
|
+
|
79
|
+
return true
|
80
|
+
}
|
81
|
+
|
82
|
+
/**
|
83
|
+
*
|
84
|
+
* @param {string} name
|
85
|
+
*/
|
86
|
+
del(name) {
|
87
|
+
|
88
|
+
const item = this.list.find(it => it.name === name)
|
89
|
+
|
90
|
+
if (item === undefined) return
|
91
|
+
|
92
|
+
return this.exec(`pm2 del ${item.id}`)
|
93
|
+
}
|
94
|
+
|
95
|
+
/**
|
96
|
+
*
|
97
|
+
* @param {string} name
|
98
|
+
*/
|
99
|
+
start(name) {
|
100
|
+
|
101
|
+
const item = this.list.find(it => it.name === name)
|
102
|
+
|
103
|
+
if (item === undefined) return
|
104
|
+
|
105
|
+
return this.exec(`pm2 start ${item.id}`)
|
106
|
+
}
|
107
|
+
|
108
|
+
/**
|
109
|
+
*
|
110
|
+
* @param {string} name
|
111
|
+
*/
|
112
|
+
stop(name) {
|
113
|
+
|
114
|
+
const item = this.list.find(it => it.name === name)
|
115
|
+
|
116
|
+
if (item === undefined) return
|
117
|
+
|
118
|
+
return this.exec(`pm2 stop ${item.id}`)
|
119
|
+
}
|
120
|
+
|
121
|
+
/**
|
122
|
+
*
|
123
|
+
* @param {string} name
|
124
|
+
*/
|
125
|
+
restart(name) {
|
126
|
+
|
127
|
+
const item = this.list.find(it => it.name === name)
|
128
|
+
|
129
|
+
if (item === undefined) return
|
130
|
+
|
131
|
+
return this.exec(`pm2 restart ${item.id}`)
|
132
|
+
}
|
133
|
+
|
134
|
+
save() {
|
135
|
+
|
136
|
+
return this.exec('pm2 save')
|
137
|
+
}
|
138
|
+
|
139
|
+
resurrect() {
|
140
|
+
|
141
|
+
return this.exec('pm2 resurrect')
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
export const pm2 = new PM2()
|