create-ssnode-cli 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/backend/config/config.develop.yaml +6 -4
- package/templates/backend/data/template.dev.sqlite-shm +0 -0
- package/templates/backend/data/template.dev.sqlite-wal +0 -0
- package/templates/backend/dist/app.module.js +85 -1
- package/templates/backend/dist/app.module.js.map +1 -1
- package/templates/backend/dist/common/all-exceptions.filter.js +47 -1
- package/templates/backend/dist/common/all-exceptions.filter.js.map +1 -1
- package/templates/backend/dist/common/app-crypto.js +119 -1
- package/templates/backend/dist/common/app-crypto.js.map +1 -1
- package/templates/backend/dist/common/app-sign.guard.js +72 -1
- package/templates/backend/dist/common/app-sign.guard.js.map +1 -1
- package/templates/backend/dist/common/app-sign.module.js +20 -1
- package/templates/backend/dist/common/app-sign.module.js.map +1 -1
- package/templates/backend/dist/common/response.js +23 -1
- package/templates/backend/dist/common/response.js.map +1 -1
- package/templates/backend/dist/common/throttle.guard.js +42 -1
- package/templates/backend/dist/common/throttle.guard.js.map +1 -1
- package/templates/backend/dist/common/transform.interceptor.js +28 -1
- package/templates/backend/dist/common/transform.interceptor.js.map +1 -1
- package/templates/backend/dist/config/config.interface.js +2 -1
- package/templates/backend/dist/config/config.interface.js.map +1 -1
- package/templates/backend/dist/config/configuration.js +91 -1
- package/templates/backend/dist/config/configuration.js.map +1 -1
- package/templates/backend/dist/database/migrations/0001-init.migration.js +69 -1
- package/templates/backend/dist/database/migrations/0001-init.migration.js.map +1 -1
- package/templates/backend/dist/database/sqlite.config.js +32 -1
- package/templates/backend/dist/database/sqlite.config.js.map +1 -1
- package/templates/backend/dist/entities/audit-log.entity.js +49 -1
- package/templates/backend/dist/entities/audit-log.entity.js.map +1 -1
- package/templates/backend/dist/entities/image.entity.js +50 -1
- package/templates/backend/dist/entities/image.entity.js.map +1 -1
- package/templates/backend/dist/entities/page-data.entity.js +60 -1
- package/templates/backend/dist/entities/page-data.entity.js.map +1 -1
- package/templates/backend/dist/entities/screen-config.entity.js +74 -1
- package/templates/backend/dist/entities/screen-config.entity.js.map +1 -1
- package/templates/backend/dist/entities/user.entity.js +59 -1
- package/templates/backend/dist/entities/user.entity.js.map +1 -1
- package/templates/backend/dist/main.js +56 -1
- package/templates/backend/dist/main.js.map +1 -1
- package/templates/backend/dist/modules/audit/audit.controller.js +51 -1
- package/templates/backend/dist/modules/audit/audit.controller.js.map +1 -1
- package/templates/backend/dist/modules/audit/audit.module.js +25 -1
- package/templates/backend/dist/modules/audit/audit.module.js.map +1 -1
- package/templates/backend/dist/modules/audit/audit.service.js +57 -1
- package/templates/backend/dist/modules/audit/audit.service.js.map +1 -1
- package/templates/backend/dist/modules/auth/auth.controller.js +74 -1
- package/templates/backend/dist/modules/auth/auth.controller.js.map +1 -1
- package/templates/backend/dist/modules/auth/auth.module.js +45 -1
- package/templates/backend/dist/modules/auth/auth.module.js.map +1 -1
- package/templates/backend/dist/modules/auth/auth.service.js +151 -1
- package/templates/backend/dist/modules/auth/auth.service.js.map +1 -1
- package/templates/backend/dist/modules/auth/captcha.service.js +56 -1
- package/templates/backend/dist/modules/auth/captcha.service.js.map +1 -1
- package/templates/backend/dist/modules/auth/jwt-auth.guard.js +17 -1
- package/templates/backend/dist/modules/auth/jwt-auth.guard.js.map +1 -1
- package/templates/backend/dist/modules/auth/jwt.strategy.js +37 -1
- package/templates/backend/dist/modules/auth/jwt.strategy.js.map +1 -1
- package/templates/backend/dist/modules/image/image.controller.js +75 -1
- package/templates/backend/dist/modules/image/image.controller.js.map +1 -1
- package/templates/backend/dist/modules/image/image.module.js +26 -1
- package/templates/backend/dist/modules/image/image.module.js.map +1 -1
- package/templates/backend/dist/modules/image/image.service.js +94 -1
- package/templates/backend/dist/modules/image/image.service.js.map +1 -1
- package/templates/backend/dist/modules/ops/backend-version.probe.js +58 -1
- package/templates/backend/dist/modules/ops/backend-version.probe.js.map +1 -1
- package/templates/backend/dist/modules/ops/ops-probe.interface.js +4 -1
- package/templates/backend/dist/modules/ops/ops-probe.interface.js.map +1 -1
- package/templates/backend/dist/modules/ops/ops.controller.js +52 -1
- package/templates/backend/dist/modules/ops/ops.controller.js.map +1 -1
- package/templates/backend/dist/modules/ops/ops.module.js +39 -1
- package/templates/backend/dist/modules/ops/ops.module.js.map +1 -1
- package/templates/backend/dist/modules/ops/ops.service.js +72 -1
- package/templates/backend/dist/modules/ops/ops.service.js.map +1 -1
- package/templates/backend/dist/modules/ops/sqlite-backup-list.probe.js +105 -1
- package/templates/backend/dist/modules/ops/sqlite-backup-list.probe.js.map +1 -1
- package/templates/backend/dist/modules/ops/sqlite-backup-log.probe.js +67 -1
- package/templates/backend/dist/modules/ops/sqlite-backup-log.probe.js.map +1 -1
- package/templates/backend/dist/modules/ops/sqlite-backup.probe.js +115 -1
- package/templates/backend/dist/modules/ops/sqlite-backup.probe.js.map +1 -1
- package/templates/backend/dist/modules/ops/version.controller.js +52 -1
- package/templates/backend/dist/modules/ops/version.controller.js.map +1 -1
- package/templates/backend/dist/modules/page-data/page-data.controller.js +109 -1
- package/templates/backend/dist/modules/page-data/page-data.controller.js.map +1 -1
- package/templates/backend/dist/modules/page-data/page-data.module.js +25 -1
- package/templates/backend/dist/modules/page-data/page-data.module.js.map +1 -1
- package/templates/backend/dist/modules/page-data/page-data.service.js +69 -1
- package/templates/backend/dist/modules/page-data/page-data.service.js.map +1 -1
- package/templates/backend/dist/modules/screen-config/screen-config.controller.js +61 -1
- package/templates/backend/dist/modules/screen-config/screen-config.controller.js.map +1 -1
- package/templates/backend/dist/modules/screen-config/screen-config.module.js +25 -1
- package/templates/backend/dist/modules/screen-config/screen-config.module.js.map +1 -1
- package/templates/backend/dist/modules/screen-config/screen-config.service.js +41 -1
- package/templates/backend/dist/modules/screen-config/screen-config.service.js.map +1 -1
- package/templates/backend/dist/modules/upload/upload.controller.js +65 -1
- package/templates/backend/dist/modules/upload/upload.controller.js.map +1 -1
- package/templates/backend/dist/modules/upload/upload.module.js +22 -1
- package/templates/backend/dist/modules/upload/upload.module.js.map +1 -1
- package/templates/backend/dist/modules/upload/upload.service.js +75 -1
- package/templates/backend/dist/modules/upload/upload.service.js.map +1 -1
- package/templates/backend/dist/modules/user/user.controller.js +149 -1
- package/templates/backend/dist/modules/user/user.controller.js.map +1 -1
- package/templates/backend/dist/modules/user/user.module.js +26 -1
- package/templates/backend/dist/modules/user/user.module.js.map +1 -1
- package/templates/backend/dist/modules/user/user.service.js +249 -1
- package/templates/backend/dist/modules/user/user.service.js.map +1 -1
- package/templates/backend/dist/modules/websocket/websocket.gateway.js +33 -1
- package/templates/backend/dist/modules/websocket/websocket.gateway.js.map +1 -1
- package/templates/backend/dist/modules/websocket/websocket.module.js +19 -1
- package/templates/backend/dist/modules/websocket/websocket.module.js.map +1 -1
- package/templates/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/templates/backend/package.json +1 -1
- package/templates/backend/src/modules/auth/captcha.service.ts +6 -5
- package/templates/web/dist/assets/{AuthLayout-bcf98efb.js → AuthLayout-f1e8d110.js} +1 -1
- package/templates/web/dist/assets/{AuthLayout-legacy-6e7a8ae1.js → AuthLayout-legacy-f871651c.js} +1 -1
- package/templates/web/dist/assets/{Background-eb77ef54.js → Background-955d549f.js} +1 -1
- package/templates/web/dist/assets/{Background-legacy-50457007.js → Background-legacy-fbad6e76.js} +1 -1
- package/templates/web/dist/assets/{Screen-318c3fc2.js → Screen-b14b0813.js} +1 -1
- package/templates/web/dist/assets/{Screen-legacy-af123b0f.js → Screen-legacy-154c8ee6.js} +1 -1
- package/templates/web/dist/assets/{api-beff4a3e.js → api-4d80e36e.js} +1 -1
- package/templates/web/dist/assets/{api-legacy-9fe41d4b.js → api-legacy-054fd569.js} +1 -1
- package/templates/web/dist/assets/{component-89b5253e.js → component-9d9f33fa.js} +1 -1
- package/templates/web/dist/assets/{component-legacy-8c5a28ef.js → component-legacy-4445386a.js} +1 -1
- package/templates/web/dist/assets/{index-a79e448b.js → index-107a0e80.js} +1 -1
- package/templates/web/dist/assets/{index-b60badf7.js → index-5afb70be.js} +1 -1
- package/templates/web/dist/assets/{index-cba19800.js → index-7b807c2d.js} +1 -1
- package/templates/web/dist/assets/{index-86214b19.js → index-ab64cd34.js} +1 -1
- package/templates/web/dist/assets/{index-7277cbfb.js → index-d8bfffb3.js} +1 -1
- package/templates/web/dist/assets/{index-d70eb540.js → index-db169639.js} +1 -1
- package/templates/web/dist/assets/{index-bd4ed808.js → index-e08dc495.js} +1 -1
- package/templates/web/dist/assets/index-e31f4b7c.js +1 -0
- package/templates/web/dist/assets/{index-legacy-783129a7.js → index-legacy-5cf7be80.js} +1 -1
- package/templates/web/dist/assets/index-legacy-6f112001.js +1 -0
- package/templates/web/dist/assets/{index-legacy-b3bd40c1.js → index-legacy-91e012ac.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-0da8de82.js → index-legacy-aa61cf72.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-06483318.js → index-legacy-afba9135.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-d510e318.js → index-legacy-da51c769.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-993ef005.js → index-legacy-eec0ca6e.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-feb54578.js → index-legacy-f732db29.js} +1 -1
- package/templates/web/dist/index.html +2 -2
- package/templates/web/node_modules/.vite/deps/@ant-design_icons.js +4 -4
- package/templates/web/node_modules/.vite/deps/_metadata.json +57 -57
- package/templates/web/node_modules/.vite/deps/antd.js +6 -6
- package/templates/web/node_modules/.vite/deps/antd_locale_zh_CN.js +1 -1
- package/templates/web/node_modules/.vite/deps/axios.js +2793 -1104
- package/templates/web/node_modules/.vite/deps/axios.js.map +4 -4
- package/templates/web/node_modules/.vite/deps/{chunk-FADIZLW4.js → chunk-3EE4ABTD.js} +3 -3
- package/templates/web/node_modules/.vite/deps/{chunk-5JEEJ3ET.js → chunk-3KXTUEQ5.js} +2 -2
- package/templates/web/node_modules/.vite/deps/{chunk-DSEUD2VO.js → chunk-622VOE6C.js} +28 -237
- package/templates/web/node_modules/.vite/deps/chunk-622VOE6C.js.map +7 -0
- package/templates/web/node_modules/.vite/deps/{chunk-PCLWPLHU.js → chunk-AX2S74EI.js} +4 -4
- package/templates/web/node_modules/.vite/deps/{chunk-UX3FVGZU.js → chunk-DXNXWKU4.js} +1670 -1309
- package/templates/web/node_modules/.vite/deps/chunk-DXNXWKU4.js.map +7 -0
- package/templates/web/node_modules/.vite/deps/{chunk-OTDKR2HU.js → chunk-GT2UP6M4.js} +2 -2
- package/templates/web/node_modules/.vite/deps/{chunk-5WWUZCGV.js → chunk-HM4MQYWN.js} +10 -2
- package/templates/web/node_modules/.vite/deps/{chunk-Z4XTF2JV.js → chunk-NDUAOA7M.js} +2 -2
- package/templates/web/node_modules/.vite/deps/{chunk-PIIG5WB7.js → chunk-OKY2XKJX.js} +14406 -12416
- package/templates/web/node_modules/.vite/deps/chunk-OKY2XKJX.js.map +7 -0
- package/templates/web/node_modules/.vite/deps/{chunk-UIM57Q7Y.js → chunk-SC6QO7UO.js} +6086 -4354
- package/templates/web/node_modules/.vite/deps/chunk-SC6QO7UO.js.map +7 -0
- package/templates/web/node_modules/.vite/deps/classnames.js +2 -2
- package/templates/web/node_modules/.vite/deps/dayjs.js +2 -2
- package/templates/web/node_modules/.vite/deps/dayjs_locale_zh-cn.js +2 -2
- package/templates/web/node_modules/.vite/deps/echarts_charts.js +7172 -6102
- package/templates/web/node_modules/.vite/deps/echarts_charts.js.map +4 -4
- package/templates/web/node_modules/.vite/deps/echarts_components.js +3363 -1326
- package/templates/web/node_modules/.vite/deps/echarts_components.js.map +4 -4
- package/templates/web/node_modules/.vite/deps/echarts_core.js +57 -42
- package/templates/web/node_modules/.vite/deps/echarts_core.js.map +3 -3
- package/templates/web/node_modules/.vite/deps/echarts_renderers.js +432 -334
- package/templates/web/node_modules/.vite/deps/echarts_renderers.js.map +4 -4
- package/templates/web/node_modules/.vite/deps/exceljs.js +25762 -0
- package/templates/web/node_modules/.vite/deps/exceljs.js.map +7 -0
- package/templates/web/node_modules/.vite/deps/lodash.js +28 -10
- package/templates/web/node_modules/.vite/deps/lodash.js.map +3 -3
- package/templates/web/node_modules/.vite/deps/path-browserify.js +1 -1
- package/templates/web/node_modules/.vite/deps/prop-types.js +1 -1
- package/templates/web/node_modules/.vite/deps/qs.js +405 -138
- package/templates/web/node_modules/.vite/deps/qs.js.map +4 -4
- package/templates/web/node_modules/.vite/deps/react-dom.js +3 -3
- package/templates/web/node_modules/.vite/deps/react-dom_client.js +3 -3
- package/templates/web/node_modules/.vite/deps/react-router-dom.js +3445 -1283
- package/templates/web/node_modules/.vite/deps/react-router-dom.js.map +4 -4
- package/templates/web/node_modules/.vite/deps/react.js +2 -2
- package/templates/web/node_modules/.vite/deps/react_jsx-dev-runtime.js +2 -2
- package/templates/web/node_modules/.vite/deps/recoil.js +3 -3
- package/templates/web/src/pages/Login/index.tsx +8 -1
- package/templates/web/src/services/api.ts +6 -1
- package/templates/web/vite.config.js +5 -5
- package/templates/web/dist/assets/index-e6071630.js +0 -1
- package/templates/web/dist/assets/index-legacy-028ed5d5.js +0 -1
- package/templates/web/node_modules/.vite/deps/chunk-DSEUD2VO.js.map +0 -7
- package/templates/web/node_modules/.vite/deps/chunk-PIIG5WB7.js.map +0 -7
- package/templates/web/node_modules/.vite/deps/chunk-UIM57Q7Y.js.map +0 -7
- package/templates/web/node_modules/.vite/deps/chunk-UX3FVGZU.js.map +0 -7
- package/templates/web/node_modules/.vite/deps/xlsx.js +0 -33827
- package/templates/web/node_modules/.vite/deps/xlsx.js.map +0 -7
- /package/templates/web/node_modules/.vite/deps/{chunk-FADIZLW4.js.map → chunk-3EE4ABTD.js.map} +0 -0
- /package/templates/web/node_modules/.vite/deps/{chunk-5JEEJ3ET.js.map → chunk-3KXTUEQ5.js.map} +0 -0
- /package/templates/web/node_modules/.vite/deps/{chunk-PCLWPLHU.js.map → chunk-AX2S74EI.js.map} +0 -0
- /package/templates/web/node_modules/.vite/deps/{chunk-OTDKR2HU.js.map → chunk-GT2UP6M4.js.map} +0 -0
- /package/templates/web/node_modules/.vite/deps/{chunk-5WWUZCGV.js.map → chunk-HM4MQYWN.js.map} +0 -0
- /package/templates/web/node_modules/.vite/deps/{chunk-Z4XTF2JV.js.map → chunk-NDUAOA7M.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./vendor-legacy-55fa76eb.js"],(function(e,t){"use strict";var n,o,r,a,i,s,c,d,p,l,m,x,g;return{setters:[e=>{n=e.R,o=e.D,r=e.F,a=e.P,i=e.U,s=e.p,c=e.j,d=e.a,p=e.N,l=e.b,m=e.B,x=e.c,g=e.d}],execute:function(){var h=document.createElement("style");h.textContent="body{margin:0;background-color:transparent!important}html{user-select:none}div::-webkit-scrollbar{position:relative;z-index:0;width:0;height:0}\n",document.head.appendChild(h);const u=function(e,t,n){return e()},f=e("R",[{path:"/",redirect:"/directory"},{path:"/directory",name:"工程目录",component:"./pages/directory/index"},{path:"/components",name:"前端组件库",component:"./pages/directory/component"},{name:"登录",path:"/login",hideInMenu:!0,component:"./pages/Login/index"},{name:"系统",path:"/",children:[{name:"可视化大屏",path:"/screen",component:"./layouts/Screen",children:[{path:"/",redirect:"./demo"},{path:"./demo",name:"示例大屏",icon:n.createElement(o),component:"./pages/Screen/Demo/index",meta:{width:1920,height:1080,key:"demo"}},{component:"./pages/404"}]},{name:"后台管理系统",path:"/background",component:"./layouts/AuthLayout",children:[{component:"./layouts/Background",path:"/",name:"后台管理系统",children:[{path:"/",redirect:"/page-data"},{path:"./page-data",name:"页面管理",icon:n.createElement(r),component:"./pages/Backend/PageData/index"},{path:"./image",name:"图片管理",icon:n.createElement(a),component:"./pages/Backend/Image/index"},{name:"运维管理",path:"./yunwei",children:[{name:"运维监控",path:"./ops",icon:n.createElement(r),component:"./pages/Backend/Maintenance/Ops/index"},{name:"用户管理",path:"./user-manage",icon:n.createElement(i),component:"./pages/Backend/Maintenance/UserManage/index"},{name:"日志管理",path:"./audit-log",icon:n.createElement(r),component:"./pages/Backend/Maintenance/AuditLog/index"}]},{component:"./pages/404"}]}]}]},{component:"./pages/404"}]),y=(e,t=[])=>{for(let n=0;n<e.length;n++){const o=e[n];o.path&&(o.fullPath=s.join(...[...t,o].map((e=>e.path||"")))),o.children&&y(o.children,[...t,o])}};y(f),e("g",(e=>{const t=(n,o=[])=>{for(let r=0;r<n.length;r++){const a=n[r];if(a.fullPath===e)return[...o,a];if(a.children){const e=t(a.children,[...o,a]);if(e.length>0)return e}}return[]},n=t(f);return{urlPath:e,routes:n}}));const j=e("P",{title:"<模板项目>",directory:"",screenWeb:{width:1920,height:1080},request:{ignoreContentTypes:["application/vnd.ms-excel"]}});function b(){return c.jsx("div",{style:{width:"100%",height:"100vh",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}})}const k=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"}));class S extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({errorInfo:t})}render(){const{hasError:e}=this.state;return e?c.jsx("div",{style:{minHeight:"100vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 20px",backgroundColor:"#f5f5f5",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},children:c.jsxs("div",{style:{maxWidth:"800px",width:"100%",backgroundColor:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",padding:"32px"},children:[c.jsxs("div",{style:{textAlign:"center",marginBottom:"24px"},children:[c.jsx("h1",{style:{color:"#ff4d4f",fontSize:"24px",marginBottom:"16px"},children:"页面出错了"}),c.jsx("p",{style:{color:"#666",fontSize:"16px",marginBottom:"24px"},children:"抱歉,页面加载过程中发生错误"})]}),c.jsxs("div",{style:{backgroundColor:"#fafafa",padding:"16px",borderRadius:"4px",marginBottom:"24px",border:"1px solid #f0f0f0"},children:[c.jsx("h3",{style:{color:"#333",fontSize:"16px",marginBottom:"12px"},children:"错误信息:"}),c.jsx("pre",{style:{color:"#ff4d4f",fontSize:"14px",whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0,padding:"12px",backgroundColor:"#fff",borderRadius:"4px",border:"1px solid #ffccc7",userSelect:"text"},children:this.state.error?.toString()})]}),this.state.errorInfo&&c.jsxs("div",{style:{backgroundColor:"#fafafa",padding:"16px",borderRadius:"4px",marginBottom:"24px",border:"1px solid #f0f0f0"},children:[c.jsx("h3",{style:{color:"#333",fontSize:"16px",marginBottom:"12px"},children:"错误堆栈:"}),c.jsx("pre",{style:{color:"#666",fontSize:"12px",whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0,padding:"12px",backgroundColor:"#fff",borderRadius:"4px",border:"1px solid #d9d9d9",maxHeight:"200px",overflow:"auto"},children:this.state.errorInfo.componentStack})]}),c.jsx("div",{style:{textAlign:"center"},children:c.jsx("button",{onClick:()=>window.location.reload(),style:{padding:"8px 24px",fontSize:"16px",backgroundColor:"#1890ff",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",transition:"background-color 0.3s",":hover":{backgroundColor:"#40a9ff"}},children:"刷新页面"})})]})}):this.props.children}}const v=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),B=Object.assign({"./layouts/AuthLayout.tsx":()=>u((()=>t.import("./AuthLayout-legacy-
|
|
1
|
+
System.register(["./vendor-legacy-55fa76eb.js"],(function(e,t){"use strict";var n,o,r,a,i,s,c,d,p,l,m,x,g;return{setters:[e=>{n=e.R,o=e.D,r=e.F,a=e.P,i=e.U,s=e.p,c=e.j,d=e.a,p=e.N,l=e.b,m=e.B,x=e.c,g=e.d}],execute:function(){var h=document.createElement("style");h.textContent="body{margin:0;background-color:transparent!important}html{user-select:none}div::-webkit-scrollbar{position:relative;z-index:0;width:0;height:0}\n",document.head.appendChild(h);const u=function(e,t,n){return e()},f=e("R",[{path:"/",redirect:"/directory"},{path:"/directory",name:"工程目录",component:"./pages/directory/index"},{path:"/components",name:"前端组件库",component:"./pages/directory/component"},{name:"登录",path:"/login",hideInMenu:!0,component:"./pages/Login/index"},{name:"系统",path:"/",children:[{name:"可视化大屏",path:"/screen",component:"./layouts/Screen",children:[{path:"/",redirect:"./demo"},{path:"./demo",name:"示例大屏",icon:n.createElement(o),component:"./pages/Screen/Demo/index",meta:{width:1920,height:1080,key:"demo"}},{component:"./pages/404"}]},{name:"后台管理系统",path:"/background",component:"./layouts/AuthLayout",children:[{component:"./layouts/Background",path:"/",name:"后台管理系统",children:[{path:"/",redirect:"/page-data"},{path:"./page-data",name:"页面管理",icon:n.createElement(r),component:"./pages/Backend/PageData/index"},{path:"./image",name:"图片管理",icon:n.createElement(a),component:"./pages/Backend/Image/index"},{name:"运维管理",path:"./yunwei",children:[{name:"运维监控",path:"./ops",icon:n.createElement(r),component:"./pages/Backend/Maintenance/Ops/index"},{name:"用户管理",path:"./user-manage",icon:n.createElement(i),component:"./pages/Backend/Maintenance/UserManage/index"},{name:"日志管理",path:"./audit-log",icon:n.createElement(r),component:"./pages/Backend/Maintenance/AuditLog/index"}]},{component:"./pages/404"}]}]}]},{component:"./pages/404"}]),y=(e,t=[])=>{for(let n=0;n<e.length;n++){const o=e[n];o.path&&(o.fullPath=s.join(...[...t,o].map((e=>e.path||"")))),o.children&&y(o.children,[...t,o])}};y(f),e("g",(e=>{const t=(n,o=[])=>{for(let r=0;r<n.length;r++){const a=n[r];if(a.fullPath===e)return[...o,a];if(a.children){const e=t(a.children,[...o,a]);if(e.length>0)return e}}return[]},n=t(f);return{urlPath:e,routes:n}}));const j=e("P",{title:"<模板项目>",directory:"",screenWeb:{width:1920,height:1080},request:{ignoreContentTypes:["application/vnd.ms-excel"]}});function b(){return c.jsx("div",{style:{width:"100%",height:"100vh",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}})}const k=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"}));class S extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({errorInfo:t})}render(){const{hasError:e}=this.state;return e?c.jsx("div",{style:{minHeight:"100vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 20px",backgroundColor:"#f5f5f5",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},children:c.jsxs("div",{style:{maxWidth:"800px",width:"100%",backgroundColor:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",padding:"32px"},children:[c.jsxs("div",{style:{textAlign:"center",marginBottom:"24px"},children:[c.jsx("h1",{style:{color:"#ff4d4f",fontSize:"24px",marginBottom:"16px"},children:"页面出错了"}),c.jsx("p",{style:{color:"#666",fontSize:"16px",marginBottom:"24px"},children:"抱歉,页面加载过程中发生错误"})]}),c.jsxs("div",{style:{backgroundColor:"#fafafa",padding:"16px",borderRadius:"4px",marginBottom:"24px",border:"1px solid #f0f0f0"},children:[c.jsx("h3",{style:{color:"#333",fontSize:"16px",marginBottom:"12px"},children:"错误信息:"}),c.jsx("pre",{style:{color:"#ff4d4f",fontSize:"14px",whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0,padding:"12px",backgroundColor:"#fff",borderRadius:"4px",border:"1px solid #ffccc7",userSelect:"text"},children:this.state.error?.toString()})]}),this.state.errorInfo&&c.jsxs("div",{style:{backgroundColor:"#fafafa",padding:"16px",borderRadius:"4px",marginBottom:"24px",border:"1px solid #f0f0f0"},children:[c.jsx("h3",{style:{color:"#333",fontSize:"16px",marginBottom:"12px"},children:"错误堆栈:"}),c.jsx("pre",{style:{color:"#666",fontSize:"12px",whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0,padding:"12px",backgroundColor:"#fff",borderRadius:"4px",border:"1px solid #d9d9d9",maxHeight:"200px",overflow:"auto"},children:this.state.errorInfo.componentStack})]}),c.jsx("div",{style:{textAlign:"center"},children:c.jsx("button",{onClick:()=>window.location.reload(),style:{padding:"8px 24px",fontSize:"16px",backgroundColor:"#1890ff",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",transition:"background-color 0.3s",":hover":{backgroundColor:"#40a9ff"}},children:"刷新页面"})})]})}):this.props.children}}const v=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),B=Object.assign({"./layouts/AuthLayout.tsx":()=>u((()=>t.import("./AuthLayout-legacy-f871651c.js"))),"./layouts/Background.tsx":()=>u((()=>t.import("./Background-legacy-fbad6e76.js"))),"./layouts/Screen.tsx":()=>u((()=>t.import("./Screen-legacy-154c8ee6.js"))),"./pages/404.tsx":()=>u((()=>t.import("./404-legacy-f6ca5b91.js"))),"./pages/Backend/Image/index.tsx":()=>u((()=>t.import("./index-legacy-91e012ac.js"))),"./pages/Backend/Maintenance/AuditLog/index.tsx":()=>u((()=>t.import("./index-legacy-aa61cf72.js"))),"./pages/Backend/Maintenance/Ops/index.tsx":()=>u((()=>t.import("./index-legacy-eec0ca6e.js"))),"./pages/Backend/Maintenance/UserManage/index.tsx":()=>u((()=>t.import("./index-legacy-f732db29.js"))),"./pages/Backend/PageData/index.tsx":()=>u((()=>t.import("./index-legacy-5cf7be80.js"))),"./pages/Error.tsx":()=>u((()=>Promise.resolve().then((()=>v)))),"./pages/Loading/index.tsx":()=>u((()=>Promise.resolve().then((()=>k)))),"./pages/Login/index.tsx":()=>u((()=>t.import("./index-legacy-6f112001.js"))),"./pages/Screen/Demo/index.tsx":()=>u((()=>t.import("./index-legacy-3965dcaf.js"))),"./pages/demo/child.tsx":()=>u((()=>t.import("./child-legacy-7665b5f8.js"))),"./pages/demo/components/EquipProgress/index.tsx":()=>u((()=>t.import("./index-legacy-8a2cfb9d.js"))),"./pages/demo/demo.tsx":()=>u((()=>t.import("./demo-legacy-f7bbfe55.js"))),"./pages/demo/grandson.tsx":()=>u((()=>t.import("./grandson-legacy-3e10990b.js"))),"./pages/demo/parent.tsx":()=>u((()=>t.import("./parent-legacy-48111978.js"))),"./pages/directory/component.tsx":()=>u((()=>t.import("./component-legacy-4445386a.js"))),"./pages/directory/index.tsx":()=>u((()=>t.import("./index-legacy-da51c769.js")))});(class{static getRoutes=(e=[],t=[],o=[])=>e.map((e=>{const r=[...t,e].map((e=>e.path||"")).filter((e=>""!==e)),a=r.length>0?s.join(...r):"/";if(e.redirect){const t=s.join(a,e.redirect);return c.jsx(d,{path:a,element:c.jsx(p,{to:t},a)},a)}let i=null;const l=Object.keys(B).find((t=>t===e.component||t===`${e.component}.jsx`||t===`${e.component}.tsx`||t===`${e.component}/index`||t===`${e.component}/index.tsx`||t===`${e.component}/index.jsx`));if(l&&(i=B[l]),!e.path&&e.component){const t=n.lazy(i);return c.jsx(d,{path:"*",element:c.jsx(t,{})},e.component)}const m=n.lazy(i);let x=null;return(e.children||e.routes)?.length>0&&(x=this.getRoutes(e.children||e.routes,[...t,e],o)),e.component?(o.push({...e,path:a}),c.jsx(d,{path:a,element:m?c.jsx(m,{routes:o}):null,children:x},a)):x}));static getRenderRoutes=()=>c.jsx(l,{children:c.jsx(S,{children:c.jsx(n.Suspense,{fallback:c.jsx(b,{}),children:c.jsx(m,{basename:j.directory,children:c.jsx(x,{children:this.getRoutes(f)})})})})});static renderDom=()=>{const e=this.getRenderRoutes(),t=document.createElement("div");t.id="app",document.body.appendChild(t),g(t).render(e)}}).renderDom(),console.log("%c 系统版本 %c v1.0.0 ","background: #35495e; padding: 4px; border-radius: 3px 0 0 3px; color: #fff","background: #41b883; padding: 4px; border-radius: 0 3px 3px 0; color: #fff"),document.title=j.title}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./vendor-legacy-55fa76eb.js","./index-legacy-
|
|
1
|
+
System.register(["./vendor-legacy-55fa76eb.js","./index-legacy-afba9135.js"],(function(e,n){"use strict";var t,l,s,i,a;return{setters:[e=>{t=e.u,l=e.j,s=e.p},e=>{i=e.P,a=e.R}],execute:function(){var n=document.createElement("style");n.textContent="._background_5sl44_10{z-index:2;display:flex;flex-direction:column;margin:20px 50px;font-size:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}._background_5sl44_10 ._row_5sl44_18{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:35px}._background_5sl44_10 ._row_5sl44_18 ._pagetitle_5sl44_25{font-size:14px;color:#00e;cursor:pointer}._background_5sl44_10 ._row_5sl44_18 ._filetitle_5sl44_30{font-size:14px}\n",document.head.appendChild(n),e("default",(function(){const e=t(),n=(t,i=0,a=[])=>t.map(((t,c)=>{if(t.redirect)return null;if(!t.name&&!t.path)return null;const o=((e=[])=>e.reduce(((e,n)=>s.join(e,n.path||"")),""))([...a,t]);return t.children?.length>0?l.jsxs("div",{style:{display:"flex",flexDirection:"column",marginLeft:15*i},children:[l.jsxs("div",{className:r.row,children:[l.jsx("span",{className:r.pagetitle,onClick:()=>{e(o)},children:t.name?`${t.name}(${o})`:o}),l.jsx("span",{className:r.filetitle,children:s.join("src",t.component||"")})]}),n(t.children,i+1,[...a,t])]},`${t.path+c}`):l.jsxs("div",{className:r.row,children:[l.jsx("span",{className:r.pagetitle,style:{marginLeft:15*i},onClick:()=>{e(o)},children:t.name?`${t.name}(${o})`:o},`${t.path+c}`),l.jsx("span",{className:r.filetitle,children:s.join("src",t.component||"")})]},t.path)}));return l.jsxs("div",{className:r.background,children:[l.jsxs("h2",{style:{margin:0},children:[i.title," - 目录"]}),l.jsxs("h4",{style:{margin:"15px 0px 0px"},children:["版本号:","v1.0.0"]}),n(a)]})}));const r={background:"_background_5sl44_10",row:"_row_5sl44_18",pagetitle:"_pagetitle_5sl44_25",filetitle:"_filetitle_5sl44_30"}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./vendor-legacy-55fa76eb.js","./api-legacy-
|
|
1
|
+
System.register(["./vendor-legacy-55fa76eb.js","./api-legacy-054fd569.js","./index-legacy-afba9135.js"],(function(e,s){"use strict";var t,a,l,n,d,r,o,i,c,_,u,x,p;return{setters:[e=>{t=e.r,a=e.j,l=e.o,n=e.l,d=e.q,r=e.H,o=e.S,i=e.K,c=e.y,_=e.V,u=e.J,x=e.T},e=>{p=e.a},null],execute:function(){var s=document.createElement("style");s.textContent="._container_1k61d_10{display:flex;flex-direction:column;gap:16px}._header_1k61d_15{display:flex;align-items:center;justify-content:space-between}._header_1k61d_15 ._title_1k61d_20{font-size:18px;font-weight:600}._header_1k61d_15 ._updated_1k61d_24{font-size:12px;color:#9297a0}._cards_1k61d_28{display:flex;flex-direction:column;gap:16px}._card_1k61d_28{border:1px solid #dddddd;border-radius:12px}._card_1k61d_28 ._summary_1k61d_37{font-size:12px;color:#6b7280}._statusItems_1k61d_41{display:flex;flex-direction:column;gap:6px}._statusRow_1k61d_46{display:flex;justify-content:space-between;font-size:13px;padding:4px 0;border-bottom:1px solid #f0f0f0}._statusRow_1k61d_46:last-child{border-bottom:none}._statusRow_1k61d_46 ._statusLabel_1k61d_56{color:#6b7280}._statusRow_1k61d_46 ._statusValue_1k61d_59{color:#181d26;text-align:right;word-break:break-all}._logBox_1k61d_64{margin:0;max-height:320px;overflow:auto;padding:8px 12px;background:#f8fafc;border-radius:8px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12px;line-height:1.6;color:#4b5563;white-space:pre-wrap;word-break:break-all}._logBox_1k61d_64 ._logErr_1k61d_78{color:#d4351c}\n",document.head.appendChild(s),e("default",(function(){const[e,s]=t.useState([]),[c,_]=t.useState(!1),[u,x]=t.useState(null),k=t.useCallback((()=>{_(!0),p.admin.ops.overview().then((e=>s(e?.data||[]))).finally((()=>_(!1)))}),[]);t.useEffect((()=>{k()}),[k]);const f=t.useCallback((e=>{x(e),p.admin.ops.probe(e).then((t=>{const a=t?.data;a&&s((s=>s.map((s=>s.key===e?a:s))))})).finally((()=>x(null)))}),[]);return a.jsxs("div",{className:m.container,children:[a.jsxs("div",{className:m.header,children:[a.jsx("span",{className:m.title,children:"运维监控"}),a.jsxs(l,{children:[a.jsxs("span",{className:m.updated,children:["数据更新于 ",e.length?n(e[0].collectedAt).format("YYYY-MM-DD HH:mm:ss"):"--"]}),a.jsx(d,{icon:a.jsx(r,{}),onClick:k,loading:c,children:"全部刷新"})]})]}),a.jsx(o,{spinning:c&&0===e.length,children:0!==e.length||c?a.jsx("div",{className:m.cards,children:e.map((e=>a.jsx(h,{probe:e,loading:u===e.key,onRefresh:()=>f(e.key)},e.key)))}):a.jsx(i,{description:"暂无探针数据"})})]})}));const m={container:"_container_1k61d_10",header:"_header_1k61d_15",title:"_title_1k61d_20",updated:"_updated_1k61d_24",cards:"_cards_1k61d_28",card:"_card_1k61d_28",summary:"_summary_1k61d_37",statusItems:"_statusItems_1k61d_41",statusRow:"_statusRow_1k61d_46",statusLabel:"_statusLabel_1k61d_56",statusValue:"_statusValue_1k61d_59",logBox:"_logBox_1k61d_64",logErr:"_logErr_1k61d_78"};function h({probe:e,loading:s,onRefresh:t}){return a.jsx(c,{className:m.card,title:a.jsxs(l,{children:[a.jsx(k,{healthy:e.healthy}),a.jsx("span",{children:e.name})]}),extra:a.jsxs(l,{size:8,children:[a.jsx("span",{className:m.summary,children:e.summary}),a.jsx(_,{title:"刷新",children:a.jsx(d,{type:"text",size:"small",icon:a.jsx(r,{}),loading:s,onClick:t})})]}),children:a.jsx(f,{probe:e})})}function k({healthy:e}){return!0===e?a.jsx(u,{color:"success",children:"正常"}):!1===e?a.jsx(u,{color:"error",children:"异常"}):a.jsx(u,{color:"default",children:"未知"})}function f({probe:e}){const s=e.detail;return"status"===s.kind?a.jsx(g,{detail:s}):"table"===s.kind?a.jsx(j,{detail:s}):"log"===s.kind?a.jsx(y,{detail:s}):a.jsx(i,{description:`未知类型: ${e.kind}`})}function g({detail:e}){return a.jsx("div",{className:m.statusItems,children:e.items.map((e=>a.jsxs("div",{className:m.statusRow,children:[a.jsx("span",{className:m.statusLabel,children:e.label}),a.jsx("span",{className:m.statusValue,children:e.value})]},e.label)))})}function j({detail:e}){const s=e.columns.map((e=>({title:e.title,dataIndex:e.key,key:e.key,render:s=>"number"==typeof s&&"mainBytes"===e.key?function(e){if(0===e)return"0 B";const s=["B","KB","MB","GB"],t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**t).toFixed(0===t?0:1)} ${s[t]}`}(s):String(s)})));return a.jsx(x,{size:"small",rowKey:e=>String(e.dirName??e.ts),columns:s,dataSource:e.rows,pagination:e.rows.length>10&&{pageSize:10}})}function y({detail:e}){return 0===e.lines.length?a.jsx(i,{description:"无日志"}):a.jsx("pre",{className:m.logBox,children:e.lines.map(((e,s)=>a.jsx("div",{className:e.includes("❌")||e.includes("ALERT")?m.logErr:void 0,children:e},s)))})}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./vendor-legacy-55fa76eb.js","./api-legacy-
|
|
1
|
+
System.register(["./vendor-legacy-55fa76eb.js","./api-legacy-054fd569.js","./index-legacy-afba9135.js"],(function(e,a){"use strict";var s,l,n,t,i,r,d,o,c,u,m,x,h,j,g,p,b,v,f,y,S;return{setters:[e=>{s=e.r,l=e.n,n=e.j,t=e.y,i=e.o,r=e.I,d=e.q,o=e.G,c=e.W,u=e.H,m=e.T,x=e.J,h=e.l,j=e.E,g=e.X,p=e.Y,b=e.x,v=e.v,f=e.$,y=e.w},e=>{S=e.a},null],execute:function(){e("default",(function(){const[e,a]=s.useState([]),[k,w]=s.useState(0),[C,I]=s.useState(!1),[z,M]=s.useState(1),[F,O]=s.useState(20),[U,E]=s.useState(""),[Y,P]=s.useState(),[T,$]=s.useState(""),[q,D]=s.useState(!1),[H,V]=s.useState(!1),[L,G]=s.useState(null),[J,K]=s.useState(!1),[W]=l.useForm(),[X]=l.useForm(),A=s.useCallback((()=>{I(!0),S.admin.userManage.listUsers({page:z,size:F,username:U||void 0}).then((e=>{200===e.code&&e.data&&(a(e.data.list),w(e.data.total))})).finally((()=>I(!1)))}),[z,F,U]);return s.useEffect((()=>{A()}),[A]),s.useEffect((()=>{S.admin.user.getInfo().then((e=>{"SUCCESS"===e?.status&&e.data&&(P(e.data.id),$(e.data.role))}))}),[]),n.jsxs(t,{title:"用户管理",extra:n.jsxs(i,{children:[n.jsx(r,{allowClear:!0,placeholder:"用户名搜索",value:U,onChange:e=>E(e.target.value),onPressEnter:()=>{M(1),A()},style:{width:180}}),n.jsx(d,{icon:n.jsx(o,{}),onClick:()=>{M(1),A()},children:"搜索"}),n.jsx(d,{icon:n.jsx(c,{}),type:"primary",onClick:()=>D(!0),children:"新增用户"}),n.jsx(d,{icon:n.jsx(u,{}),onClick:A})]}),children:[n.jsx(m,{rowKey:"id",loading:C,dataSource:e,size:"small",pagination:{current:z,pageSize:F,total:k,showSizeChanger:!0,onChange:(e,a)=>{M(e),O(a)}},columns:[{title:"ID",dataIndex:"id",width:60},{title:"用户名",dataIndex:"username"},{title:"昵称",dataIndex:"nickname"},{title:"角色",dataIndex:"role",width:100,render:e=>"superadmin"===e?n.jsx(x,{color:"red",children:"超管"}):"admin"===e?n.jsx(x,{color:"blue",children:"管理员"}):n.jsx(x,{children:"普通"})},{title:"状态",dataIndex:"status",width:80,render:e=>"1"===e?n.jsx(x,{color:"green",children:"启用"}):n.jsx(x,{children:"禁用"})},{title:"创建时间",dataIndex:"createTime",width:180,render:e=>e?h(e).format("YYYY-MM-DD HH:mm:ss"):"-"},{title:"操作",key:"op",width:240,fixed:"right",render:(e,a)=>{const s=void 0!==Y&&a.id===Y,l="admin"===a.role||"superadmin"===a.role;return n.jsxs(i,{size:"small",children:[n.jsx(d,{size:"small",icon:n.jsx(j,{}),onClick:()=>(e=>{G(e),X.setFieldsValue({nickname:e.nickname,role:e.role,status:e.status}),V(!0)})(a),disabled:l&&"admin"!==T&&"superadmin"!==T,children:"编辑"}),n.jsx(d,{size:"small",icon:n.jsx(g,{}),onClick:()=>(e=>{v.confirm({title:"重置密码",content:`将重置用户「${e.username}」的密码,生成新随机密码。继续?`,onOk:()=>S.admin.userManage.resetUserPassword(e.id).then((e=>{200===e.code&&e.data?.password&&(v.info({title:"重置成功",content:n.jsxs("div",{children:["新密码(仅显示一次,请妥善保管):",n.jsx(r.Password,{value:e.data.password,readOnly:!0,style:{marginTop:8}})]})}),A())}))})})(a),children:"重置密码"}),n.jsx(d,{size:"small",icon:n.jsx(p,{}),onClick:()=>(e=>{S.admin.userManage.toggleUserStatus(e.id).then((a=>{200===a.code&&(y.success("1"===e.status?"已禁用":"已启用"),A())}))})(a),disabled:s,children:"1"===a.status?"禁用":"启用"}),n.jsx(d,{size:"small",danger:!0,icon:n.jsx(b,{}),onClick:()=>(e=>{v.confirm({title:"确认删除",content:`确定删除用户「${e.username}」?该操作不可恢复。`,okType:"danger",onOk:()=>S.admin.userManage.deleteUser(e.id).then((e=>{200===e.code&&(y.success("已删除"),A())}))})})(a),disabled:s||l,children:"删除"})]})}}]}),n.jsx(v,{title:"新增用户",open:q,onCancel:()=>{D(!1),W.resetFields()},onOk:()=>{W.validateFields().then((e=>{K(!0),S.admin.userManage.createUser(e).then((e=>{200===e.code&&(y.success("新增成功"),D(!1),W.resetFields(),A())})).finally((()=>K(!1)))})).catch((()=>{}))},confirmLoading:J,destroyOnClose:!0,children:n.jsxs(l,{form:W,layout:"vertical",preserve:!1,children:[n.jsx(l.Item,{name:"username",label:"用户名",rules:[{required:!0,message:"请输入用户名"}],children:n.jsx(r,{placeholder:"登录用户名"})}),n.jsx(l.Item,{name:"password",label:"密码",rules:[{required:!0,message:"请输入密码"}],children:n.jsx(r.Password,{placeholder:"初始密码"})}),n.jsx(l.Item,{name:"nickname",label:"昵称",children:n.jsx(r,{placeholder:"显示名"})}),n.jsx(l.Item,{name:"role",label:"角色",initialValue:"web",children:n.jsx(f,{options:[{value:"web",label:"普通"},{value:"admin",label:"管理员"}]})}),n.jsx(l.Item,{name:"status",label:"状态",initialValue:"1",children:n.jsx(f,{options:[{value:"1",label:"启用"},{value:"0",label:"禁用"}]})})]})}),n.jsx(v,{title:`编辑用户 - ${L?.username||""}`,open:H,onCancel:()=>{V(!1),G(null)},onOk:()=>{L&&X.validateFields().then((e=>{K(!0),S.admin.userManage.updateUser({id:L.id,...e}).then((e=>{200===e.code&&(y.success("修改成功"),V(!1),G(null),A())})).finally((()=>K(!1)))})).catch((()=>{}))},confirmLoading:J,destroyOnClose:!0,children:n.jsxs(l,{form:X,layout:"vertical",preserve:!1,children:[n.jsx(l.Item,{name:"nickname",label:"昵称",children:n.jsx(r,{placeholder:"显示名"})}),n.jsx(l.Item,{name:"role",label:"角色",children:n.jsx(f,{options:[{value:"web",label:"普通"},{value:"admin",label:"管理员"}],disabled:L?.id===Y})}),n.jsx(l.Item,{name:"status",label:"状态",children:n.jsx(f,{options:[{value:"1",label:"启用"},{value:"0",label:"禁用"}],disabled:L?.id===Y})})]})})]})}))}}}));
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
/>
|
|
10
10
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
11
11
|
<title>-</title>
|
|
12
|
-
<script type="module" crossorigin src="/assets/index-
|
|
12
|
+
<script type="module" crossorigin src="/assets/index-ab64cd34.js"></script>
|
|
13
13
|
<link rel="modulepreload" crossorigin href="/assets/vendor-affac96c.js">
|
|
14
14
|
<link rel="stylesheet" href="/assets/index-ec1f790a.css">
|
|
15
15
|
<script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<script src="/env.config.js"></script>
|
|
22
22
|
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
|
|
23
23
|
<script nomodule crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy-b0716348.js"></script>
|
|
24
|
-
<script nomodule crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-
|
|
24
|
+
<script nomodule crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-afba9135.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
|
25
25
|
</body>
|
|
26
26
|
|
|
27
27
|
</html>
|
|
@@ -63,16 +63,16 @@ import {
|
|
|
63
63
|
useComposeRef,
|
|
64
64
|
useInsertStyles,
|
|
65
65
|
warning2 as warning
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-AX2S74EI.js";
|
|
67
67
|
import {
|
|
68
68
|
require_classnames
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-GT2UP6M4.js";
|
|
70
70
|
import {
|
|
71
71
|
require_react
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-NDUAOA7M.js";
|
|
73
73
|
import {
|
|
74
74
|
__toESM
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-HM4MQYWN.js";
|
|
76
76
|
|
|
77
77
|
// ../../node_modules/.pnpm/@ant-design+icons@5.3.0_react-dom@18.2.0_react@18.2.0/node_modules/@ant-design/icons/es/icons/AccountBookFilled.js
|
|
78
78
|
var React = __toESM(require_react());
|
|
@@ -1,170 +1,170 @@
|
|
|
1
1
|
{
|
|
2
|
-
"hash": "
|
|
3
|
-
"browserHash": "
|
|
2
|
+
"hash": "441ec80d",
|
|
3
|
+
"browserHash": "7bb63fbb",
|
|
4
4
|
"optimized": {
|
|
5
5
|
"react/jsx-dev-runtime": {
|
|
6
6
|
"src": "../../../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-dev-runtime.js",
|
|
7
7
|
"file": "react_jsx-dev-runtime.js",
|
|
8
|
-
"fileHash": "
|
|
8
|
+
"fileHash": "d3b51782",
|
|
9
9
|
"needsInterop": true
|
|
10
10
|
},
|
|
11
11
|
"@ant-design/icons": {
|
|
12
12
|
"src": "../../../../../node_modules/.pnpm/@ant-design+icons@5.3.0_react-dom@18.2.0_react@18.2.0/node_modules/@ant-design/icons/es/index.js",
|
|
13
13
|
"file": "@ant-design_icons.js",
|
|
14
|
-
"fileHash": "
|
|
14
|
+
"fileHash": "7c75191c",
|
|
15
15
|
"needsInterop": false
|
|
16
16
|
},
|
|
17
17
|
"antd": {
|
|
18
18
|
"src": "../../../../../node_modules/.pnpm/antd@5.14.2_react-dom@18.2.0_react@18.2.0/node_modules/antd/es/index.js",
|
|
19
19
|
"file": "antd.js",
|
|
20
|
-
"fileHash": "
|
|
20
|
+
"fileHash": "6f227321",
|
|
21
21
|
"needsInterop": false
|
|
22
22
|
},
|
|
23
23
|
"antd/locale/zh_CN": {
|
|
24
24
|
"src": "../../../../../node_modules/.pnpm/antd@5.14.2_react-dom@18.2.0_react@18.2.0/node_modules/antd/locale/zh_CN.js",
|
|
25
25
|
"file": "antd_locale_zh_CN.js",
|
|
26
|
-
"fileHash": "
|
|
26
|
+
"fileHash": "a99abe27",
|
|
27
27
|
"needsInterop": true
|
|
28
28
|
},
|
|
29
29
|
"axios": {
|
|
30
|
-
"src": "../../../../../node_modules/.pnpm/axios@1.
|
|
30
|
+
"src": "../../../../../node_modules/.pnpm/axios@1.20.0/node_modules/axios/index.js",
|
|
31
31
|
"file": "axios.js",
|
|
32
|
-
"fileHash": "
|
|
32
|
+
"fileHash": "b89eae67",
|
|
33
33
|
"needsInterop": false
|
|
34
34
|
},
|
|
35
35
|
"classnames": {
|
|
36
36
|
"src": "../../../../../node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js",
|
|
37
37
|
"file": "classnames.js",
|
|
38
|
-
"fileHash": "
|
|
38
|
+
"fileHash": "d7c20def",
|
|
39
39
|
"needsInterop": true
|
|
40
40
|
},
|
|
41
41
|
"dayjs": {
|
|
42
42
|
"src": "../../../../../node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/dayjs.min.js",
|
|
43
43
|
"file": "dayjs.js",
|
|
44
|
-
"fileHash": "
|
|
44
|
+
"fileHash": "6a9c76db",
|
|
45
45
|
"needsInterop": true
|
|
46
46
|
},
|
|
47
47
|
"dayjs/locale/zh-cn": {
|
|
48
48
|
"src": "../../../../../node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.js",
|
|
49
49
|
"file": "dayjs_locale_zh-cn.js",
|
|
50
|
-
"fileHash": "
|
|
50
|
+
"fileHash": "f72568b7",
|
|
51
51
|
"needsInterop": true
|
|
52
52
|
},
|
|
53
53
|
"echarts/charts": {
|
|
54
|
-
"src": "../../../../../node_modules/.pnpm/echarts@
|
|
54
|
+
"src": "../../../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/charts.js",
|
|
55
55
|
"file": "echarts_charts.js",
|
|
56
|
-
"fileHash": "
|
|
56
|
+
"fileHash": "eee0c680",
|
|
57
57
|
"needsInterop": false
|
|
58
58
|
},
|
|
59
59
|
"echarts/components": {
|
|
60
|
-
"src": "../../../../../node_modules/.pnpm/echarts@
|
|
60
|
+
"src": "../../../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/components.js",
|
|
61
61
|
"file": "echarts_components.js",
|
|
62
|
-
"fileHash": "
|
|
62
|
+
"fileHash": "04a9a3ba",
|
|
63
63
|
"needsInterop": false
|
|
64
64
|
},
|
|
65
65
|
"echarts/core": {
|
|
66
|
-
"src": "../../../../../node_modules/.pnpm/echarts@
|
|
66
|
+
"src": "../../../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/core.js",
|
|
67
67
|
"file": "echarts_core.js",
|
|
68
|
-
"fileHash": "
|
|
68
|
+
"fileHash": "95f2304e",
|
|
69
69
|
"needsInterop": false
|
|
70
70
|
},
|
|
71
71
|
"echarts/renderers": {
|
|
72
|
-
"src": "../../../../../node_modules/.pnpm/echarts@
|
|
72
|
+
"src": "../../../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/renderers.js",
|
|
73
73
|
"file": "echarts_renderers.js",
|
|
74
|
-
"fileHash": "
|
|
74
|
+
"fileHash": "da31f563",
|
|
75
75
|
"needsInterop": false
|
|
76
76
|
},
|
|
77
|
+
"exceljs": {
|
|
78
|
+
"src": "../../../../../node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.js",
|
|
79
|
+
"file": "exceljs.js",
|
|
80
|
+
"fileHash": "86a076c0",
|
|
81
|
+
"needsInterop": true
|
|
82
|
+
},
|
|
77
83
|
"lodash": {
|
|
78
|
-
"src": "../../../../../node_modules/.pnpm/lodash@4.
|
|
84
|
+
"src": "../../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js",
|
|
79
85
|
"file": "lodash.js",
|
|
80
|
-
"fileHash": "
|
|
86
|
+
"fileHash": "102ca371",
|
|
81
87
|
"needsInterop": true
|
|
82
88
|
},
|
|
83
89
|
"path-browserify": {
|
|
84
90
|
"src": "../../../../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js",
|
|
85
91
|
"file": "path-browserify.js",
|
|
86
|
-
"fileHash": "
|
|
92
|
+
"fileHash": "6dd738ea",
|
|
87
93
|
"needsInterop": true
|
|
88
94
|
},
|
|
89
95
|
"prop-types": {
|
|
90
96
|
"src": "../../../../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js",
|
|
91
97
|
"file": "prop-types.js",
|
|
92
|
-
"fileHash": "
|
|
98
|
+
"fileHash": "ba114b83",
|
|
93
99
|
"needsInterop": true
|
|
94
100
|
},
|
|
95
101
|
"qs": {
|
|
96
|
-
"src": "../../../../../node_modules/.pnpm/qs@6.
|
|
102
|
+
"src": "../../../../../node_modules/.pnpm/qs@6.16.0/node_modules/qs/lib/index.js",
|
|
97
103
|
"file": "qs.js",
|
|
98
|
-
"fileHash": "
|
|
104
|
+
"fileHash": "0d52b4d4",
|
|
99
105
|
"needsInterop": true
|
|
100
106
|
},
|
|
101
107
|
"react": {
|
|
102
108
|
"src": "../../../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js",
|
|
103
109
|
"file": "react.js",
|
|
104
|
-
"fileHash": "
|
|
110
|
+
"fileHash": "9a850744",
|
|
105
111
|
"needsInterop": true
|
|
106
112
|
},
|
|
107
113
|
"react-dom": {
|
|
108
114
|
"src": "../../../../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js",
|
|
109
115
|
"file": "react-dom.js",
|
|
110
|
-
"fileHash": "
|
|
116
|
+
"fileHash": "73fbcf46",
|
|
111
117
|
"needsInterop": true
|
|
112
118
|
},
|
|
113
119
|
"react-dom/client": {
|
|
114
120
|
"src": "../../../../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/client.js",
|
|
115
121
|
"file": "react-dom_client.js",
|
|
116
|
-
"fileHash": "
|
|
122
|
+
"fileHash": "b6d707d6",
|
|
117
123
|
"needsInterop": true
|
|
118
124
|
},
|
|
119
125
|
"react-router-dom": {
|
|
120
|
-
"src": "../../../../../node_modules/.pnpm/react-router-dom@6.
|
|
126
|
+
"src": "../../../../../node_modules/.pnpm/react-router-dom@6.30.6_react-dom@18.2.0_react@18.2.0/node_modules/react-router-dom/dist/index.js",
|
|
121
127
|
"file": "react-router-dom.js",
|
|
122
|
-
"fileHash": "
|
|
128
|
+
"fileHash": "debe2fbd",
|
|
123
129
|
"needsInterop": false
|
|
124
130
|
},
|
|
125
131
|
"recoil": {
|
|
126
132
|
"src": "../../../../../node_modules/.pnpm/recoil@0.7.7_react-dom@18.2.0_react@18.2.0/node_modules/recoil/es/index.js",
|
|
127
133
|
"file": "recoil.js",
|
|
128
|
-
"fileHash": "
|
|
129
|
-
"needsInterop": false
|
|
130
|
-
},
|
|
131
|
-
"xlsx": {
|
|
132
|
-
"src": "../../../../../node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.mjs",
|
|
133
|
-
"file": "xlsx.js",
|
|
134
|
-
"fileHash": "7d74e1a5",
|
|
134
|
+
"fileHash": "b6ca204f",
|
|
135
135
|
"needsInterop": false
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
"chunks": {
|
|
139
|
-
"chunk-
|
|
140
|
-
"file": "chunk-
|
|
139
|
+
"chunk-3EE4ABTD": {
|
|
140
|
+
"file": "chunk-3EE4ABTD.js"
|
|
141
141
|
},
|
|
142
|
-
"chunk-
|
|
143
|
-
"file": "chunk-
|
|
142
|
+
"chunk-AX2S74EI": {
|
|
143
|
+
"file": "chunk-AX2S74EI.js"
|
|
144
144
|
},
|
|
145
|
-
"chunk-
|
|
146
|
-
"file": "chunk-
|
|
145
|
+
"chunk-GT2UP6M4": {
|
|
146
|
+
"file": "chunk-GT2UP6M4.js"
|
|
147
147
|
},
|
|
148
|
-
"chunk-
|
|
149
|
-
"file": "chunk-
|
|
148
|
+
"chunk-NDUAOA7M": {
|
|
149
|
+
"file": "chunk-NDUAOA7M.js"
|
|
150
150
|
},
|
|
151
|
-
"chunk-
|
|
152
|
-
"file": "chunk-
|
|
151
|
+
"chunk-SC6QO7UO": {
|
|
152
|
+
"file": "chunk-SC6QO7UO.js"
|
|
153
153
|
},
|
|
154
|
-
"chunk-
|
|
155
|
-
"file": "chunk-
|
|
154
|
+
"chunk-622VOE6C": {
|
|
155
|
+
"file": "chunk-622VOE6C.js"
|
|
156
156
|
},
|
|
157
|
-
"chunk-
|
|
158
|
-
"file": "chunk-
|
|
157
|
+
"chunk-OKY2XKJX": {
|
|
158
|
+
"file": "chunk-OKY2XKJX.js"
|
|
159
159
|
},
|
|
160
|
-
"chunk-
|
|
161
|
-
"file": "chunk-
|
|
160
|
+
"chunk-DXNXWKU4": {
|
|
161
|
+
"file": "chunk-DXNXWKU4.js"
|
|
162
162
|
},
|
|
163
|
-
"chunk-
|
|
164
|
-
"file": "chunk-
|
|
163
|
+
"chunk-3KXTUEQ5": {
|
|
164
|
+
"file": "chunk-3KXTUEQ5.js"
|
|
165
165
|
},
|
|
166
|
-
"chunk-
|
|
167
|
-
"file": "chunk-
|
|
166
|
+
"chunk-HM4MQYWN": {
|
|
167
|
+
"file": "chunk-HM4MQYWN.js"
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
require_react_dom
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3EE4ABTD.js";
|
|
5
5
|
import {
|
|
6
6
|
BarsOutlined_default,
|
|
7
7
|
CalendarOutlined_default,
|
|
@@ -87,20 +87,20 @@ import {
|
|
|
87
87
|
useMemo,
|
|
88
88
|
warning,
|
|
89
89
|
warning_default
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-AX2S74EI.js";
|
|
91
91
|
import {
|
|
92
92
|
require_classnames
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-GT2UP6M4.js";
|
|
94
94
|
import {
|
|
95
95
|
require_react
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-NDUAOA7M.js";
|
|
97
97
|
import {
|
|
98
98
|
require_dayjs_min
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-3KXTUEQ5.js";
|
|
100
100
|
import {
|
|
101
101
|
__commonJS,
|
|
102
102
|
__toESM
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-HM4MQYWN.js";
|
|
104
104
|
|
|
105
105
|
// ../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js
|
|
106
106
|
var require_classnames2 = __commonJS({
|