From 7c422c2140e8e71e6db968b07baa5960091bec20 Mon Sep 17 00:00:00 2001 From: "donknap@gmail.com" Date: Fri, 8 Nov 2024 18:42:59 +0800 Subject: [PATCH] v1.2.3 --- asset/static/3355.42439e95.async.js | 1 + asset/static/3355.619fb336.async.js | 1 - asset/static/7297.2fd0056f.async.js | 1 + asset/static/7297.72864936.async.js | 1 - asset/static/index.html | 2 +- .../p__app__create__image.4dab1cad.async.js | 3 --- .../p__app__create__image.9a5b2dd0.async.js | 3 +++ .../p__app__detail__log.ca8fec9e.async.js | 1 - .../p__app__detail__log.d20eb132.async.js | 1 + .../static/p__app__recycle.b16eff13.async.js | 1 - .../static/p__app__recycle.da316054.async.js | 1 + .../p__compose__create.7362ecb6.async.js | 1 - .../p__compose__create.c029c4dd.async.js | 1 + .../p__compose__deploy.36d51823.async.js | 3 +++ .../p__compose__deploy.cf89dacd.async.js | 3 --- .../static/p__compose__list.5d59c280.async.js | 1 - .../static/p__compose__list.b92859ed.async.js | 1 + .../p__console__index.123365a9.async.js | 1 + .../p__console__index.b161cbea.async.js | 1 - .../static/p__image__create.aca854ff.async.js | 25 +++++++++++++++++++ .../static/p__image__create.d244852a.async.js | 25 ------------------- .../p__image__recycle.2b9e5ef8.async.js | 1 - .../p__image__recycle.c7bd6716.async.js | 1 + .../static/p__system__home.111b686e.async.js | 1 - .../static/p__system__home.f3bb31fe.async.js | 1 + .../{umi.265fce25.js => umi.9a20dfd7.js} | 6 ++--- 26 files changed, 44 insertions(+), 44 deletions(-) create mode 100644 asset/static/3355.42439e95.async.js delete mode 100644 asset/static/3355.619fb336.async.js create mode 100644 asset/static/7297.2fd0056f.async.js delete mode 100644 asset/static/7297.72864936.async.js delete mode 100644 asset/static/p__app__create__image.4dab1cad.async.js create mode 100644 asset/static/p__app__create__image.9a5b2dd0.async.js delete mode 100644 asset/static/p__app__detail__log.ca8fec9e.async.js create mode 100644 asset/static/p__app__detail__log.d20eb132.async.js delete mode 100644 asset/static/p__app__recycle.b16eff13.async.js create mode 100644 asset/static/p__app__recycle.da316054.async.js delete mode 100644 asset/static/p__compose__create.7362ecb6.async.js create mode 100644 asset/static/p__compose__create.c029c4dd.async.js create mode 100644 asset/static/p__compose__deploy.36d51823.async.js delete mode 100644 asset/static/p__compose__deploy.cf89dacd.async.js delete mode 100644 asset/static/p__compose__list.5d59c280.async.js create mode 100644 asset/static/p__compose__list.b92859ed.async.js create mode 100644 asset/static/p__console__index.123365a9.async.js delete mode 100644 asset/static/p__console__index.b161cbea.async.js create mode 100644 asset/static/p__image__create.aca854ff.async.js delete mode 100644 asset/static/p__image__create.d244852a.async.js delete mode 100644 asset/static/p__image__recycle.2b9e5ef8.async.js create mode 100644 asset/static/p__image__recycle.c7bd6716.async.js delete mode 100644 asset/static/p__system__home.111b686e.async.js create mode 100644 asset/static/p__system__home.f3bb31fe.async.js rename asset/static/{umi.265fce25.js => umi.9a20dfd7.js} (99%) diff --git a/asset/static/3355.42439e95.async.js b/asset/static/3355.42439e95.async.js new file mode 100644 index 00000000..27173ece --- /dev/null +++ b/asset/static/3355.42439e95.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3355],{28307:function(y,O,t){var M=t(5574),u=t.n(M),h=t(38345),s=t(97269),n=t(5966),g=t(62370),p=t(14726),P=t(85265),f=t(42075),D=t(34041),c=t(67294),T=t(80821),E=t(3393),b=t(97961),v=t(92754),m=t(54006),r=t(85893),d=(0,c.forwardRef)(function(a,l){var B=(0,c.useState)(!1),R=u()(B,2),I=R[0],C=R[1],j=(0,c.useRef)(),i=(0,c.useRef)();return(0,c.useImperativeHandle)(l,function(){return{upgradeImage:function(_){var e;return C(!0),(e=j.current)===null||e===void 0||e.setFieldValue("imageUrl",_),(0,E.Gb)({tag:_,type:"pull"})},setImageName:function(_){var e;C(!0),(e=j.current)===null||e===void 0||e.setFieldValue("imageUrl",_)}}}),[(0,r.jsx)(p.ZP,{type:a.buttonType?a.buttonType:"default",onClick:function(){var _,e;a.onClick&&a.onClick(),C(!0),(_=j.current)===null||_===void 0||_.resetFields(),(e=i.current)===null||e===void 0||e.setStart("")},children:"\u62C9\u53D6\u65B0\u955C\u50CF"},"remoteBtn"),(0,r.jsxs)(P.Z,{forceRender:!0,open:I,title:"\u4E0B\u8F7D\u8FDC\u7A0B\u955C\u50CF",width:800,onClose:function(){return C(!1)},footer:!1,children:[(0,r.jsx)(h.Z,{children:(0,r.jsxs)(f.Z,{direction:"vertical",size:"middle",children:[(0,r.jsxs)("div",{children:["1\u3001\u955C\u50CF\u540D\u79F0\u4E2D\u4E0D\u5305\u542B\u4ED3\u5E93\u5730\u5740\u65F6\uFF0C \u9ED8\u8BA4\u4ECE ",(0,r.jsx)("a",{href:"https://hub.docker.com/",target:"_blank",children:"docker hub"})," \u4E2D\u4E0B\u8F7D\uFF0C \u4F60\u53EF\u4EE5\u5728\u4E0A\u9762",(0,r.jsx)("a",{href:"https://hub.docker.com/search?q=",target:"_blank",children:"\u3010\u67E5\u627E\u3011"}),"\u9700\u8981\u7684\u955C\u50CF"]}),(0,r.jsxs)("div",{children:["2\u3001\u955C\u50CF\u4E2D\u5305\u542B\u4ED3\u5E93\u5730\u5740\u65F6\uFF0C\u8BF7\u786E",(0,r.jsx)(m.Link,{to:"/image/registry",children:"\u3010\u6DFB\u52A0\u3011"}),"\u8FC7\u8BE5\u4ED3\u5E93\uFF0C\u5E76\u6709 Pull \u6743\u9650"]}),(0,r.jsxs)("div",{children:["3\u3001\u53EF\u5728",(0,r.jsx)(m.Link,{to:"/image/registry",children:"\u3010\u4ED3\u5E93\u7BA1\u7406\u3011"}),"\u4E2D\u914D\u7F6E\u955C\u50CF\u7684\u52A0\u901F\u5730\u5740"]})]})}),(0,r.jsx)(h.Z,{title:"\u4E0B\u8F7D\u955C\u50CF",headerBordered:!0,children:(0,r.jsxs)(s.A,{submitter:!1,formRef:j,children:[(0,r.jsxs)(f.Z.Compact,{children:[(0,r.jsx)(n.Z,{width:400,name:"imageUrl",placeholder:"\u8BF7\u8F93\u5165\u955C\u50CF\u5730\u5740"}),(0,r.jsx)(g.Z,{name:"platform",children:(0,r.jsx)(D.Z,{style:{width:150},placeholder:"\u9ED8\u8BA4\u5F53\u524D\u67B6\u6784",options:b.ii.map(function(o){return{label:o.name,value:o.name}})})}),(0,r.jsx)(T.Z,{action:function(){var _,e,F,U,w,A=(_=(e=j.current)===null||e===void 0?void 0:e.getFieldValue("imageUrl"))!==null&&_!==void 0?_:"";return(F=i.current)===null||F===void 0||F.setStart(A),(0,E.Gb)({tag:A,type:"pull",platform:(U=(w=j.current)===null||w===void 0?void 0:w.getFieldValue("platform"))!==null&&U!==void 0?U:"amd64"})},onSuccess:function(_){var e;(e=i.current)===null||e===void 0||e.setFinish(),a.onFinish},messageSuccess:function(_){var e="\u62C9\u53D6\u6210\u529F";return _.data.proxyUrl&&(e+="\uFF0C\u4F7F\u7528\u4EE3\u7406 "+_.data.proxyUrl),e},children:"\u62C9\u53D6\u955C\u50CF"})]}),(0,r.jsx)(g.Z,{label:"\u4E0B\u8F7D\u8FDB\u5EA6",children:(0,r.jsx)(v.Z,{ref:i})})]})})]},"remoteDrawer")]});O.Z=d},92754:function(y,O,t){var M=t(5574),u=t.n(M),h=t(67294),s=t(54006),n=t(38703),g=t(85893),p=(0,h.forwardRef)(function(P,f){var D=(0,h.useState)(""),c=u()(D,2),T=c[0],E=c[1];(0,h.useImperativeHandle)(f,function(){return{setFinish:function(){d({finish:{downloading:100,extracting:100}})},setStart:function(l){l&&E(l),d({start:{downloading:0,extracting:0}})}}});var b=(0,s.useModel)("subscriber");b.addDataHandler("image:pull:"+T,function(a){d(a.data)});var v=(0,h.useState)(),m=u()(v,2),r=m[0],d=m[1];return(0,h.useEffect)(function(){d({start:{downloading:0,extracting:0}})},[]),(0,g.jsx)(g.Fragment,{children:r&&Object.keys(r).map(function(a){return(0,g.jsx)(n.Z,{percent:r[a].downloading,success:{percent:r[a].extracting}},a)})})});O.Z=p},97961:function(y,O,t){t.d(O,{MF:function(){return v},_2:function(){return E},fN:function(){return p},hG:function(){return c},ii:function(){return g},vC:function(){return f}});var M=t(15009),u=t.n(M),h=t(99289),s=t.n(h),n=t(54006),g=[{name:"amd64",arch:"amd64"},{name:"arm64",arch:"arm64"},{name:"i386",arch:"386"},{name:"arm/v6",arch:"arm"},{name:"arm/v7",arch:"arm"},{name:"arm/v8",arch:"arm64"},{name:"ppc64le",arch:"ppc64le"},{name:"riscv64",arch:"riscv64"}];function p(r){return P.apply(this,arguments)}function P(){return P=s()(u()().mark(function r(d){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,n.request)("/api/app/image/create-by-dockerfile",{method:"POST",data:d}));case 1:case"end":return l.stop()}},r)})),P.apply(this,arguments)}function f(r){return D.apply(this,arguments)}function D(){return D=s()(u()().mark(function r(d){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,n.request)("/api/app/image/import-by-container-tar",{method:"POST",data:d}));case 1:case"end":return l.stop()}},r)})),D.apply(this,arguments)}function c(r){return T.apply(this,arguments)}function T(){return T=s()(u()().mark(function r(d){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,n.request)("/api/app/image/import-by-image-tar",{method:"POST",data:d}));case 1:case"end":return l.stop()}},r)})),T.apply(this,arguments)}function E(r){return b.apply(this,arguments)}function b(){return b=s()(u()().mark(function r(d){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,n.request)("/api/common/attach/delete",{method:"POST",data:d});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},r)})),b.apply(this,arguments)}function v(){return m.apply(this,arguments)}function m(){return m=s()(u()().mark(function r(){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/get-template-list",{method:"POST"}));case 1:case"end":return a.stop()}},r)})),m.apply(this,arguments)}},3393:function(y,O,t){t.d(O,{Gb:function(){return P},Pn:function(){return T},Rb:function(){return b},YU:function(){return g},_U:function(){return D}});var M=t(15009),u=t.n(M),h=t(99289),s=t.n(h),n=t(54006);function g(m){return p.apply(this,arguments)}function p(){return p=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/get-detail",{method:"POST",data:r}));case 1:case"end":return a.stop()}},m)})),p.apply(this,arguments)}function P(m){return f.apply(this,arguments)}function f(){return f=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/tag-remote",{method:"POST",data:r}));case 1:case"end":return a.stop()}},m)})),f.apply(this,arguments)}function D(m){return c.apply(this,arguments)}function c(){return c=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/tag-add",{method:"POST",data:r}));case 1:case"end":return a.stop()}},m)})),c.apply(this,arguments)}function T(m){return E.apply(this,arguments)}function E(){return E=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/tag-delete",{method:"POST",data:r}));case 1:case"end":return a.stop()}},m)})),E.apply(this,arguments)}function b(m){return v.apply(this,arguments)}function v(){return v=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/export",{method:"POST",data:r,responseType:"blob"}));case 1:case"end":return a.stop()}},m)})),v.apply(this,arguments)}},18148:function(y,O,t){t.d(O,{$q:function(){return b},Fj:function(){return R},KG:function(){return g},KX:function(){return C},T8:function(){return T},Xn:function(){return D},ao:function(){return m},c5:function(){return l},c7:function(){return d}});var M=t(15009),u=t.n(M),h=t(99289),s=t.n(h),n=t(54006);function g(i){return p.apply(this,arguments)}function p(){return p=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,n.request)("/api/app/image/get-list",{method:"POST",data:o}));case 1:case"end":return e.stop()}},i)})),p.apply(this,arguments)}function P(i){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function i(o){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request("/api/app/log/image-build",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),f.apply(this,arguments)}function D(i){return c.apply(this,arguments)}function c(){return c=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,n.request)("/api/app/image/get-list-build",{method:"POST",data:o}));case 1:case"end":return e.stop()}},i)})),c.apply(this,arguments)}function T(i){return E.apply(this,arguments)}function E(){return E=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.request)("/api/app/image/get-build-task",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),E.apply(this,arguments)}function b(i){return v.apply(this,arguments)}function v(){return v=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.request)("/api/app/image/delete-build-task",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),v.apply(this,arguments)}function m(i){return r.apply(this,arguments)}function r(){return r=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.request)("/api/app/image/image-delete",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),r.apply(this,arguments)}function d(){return a.apply(this,arguments)}function a(){return a=s()(u()().mark(function i(){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,(0,n.request)("/api/app/image/image-prune",{method:"POST"});case 2:return _.abrupt("return",_.sent);case 3:case"end":return _.stop()}},i)})),a.apply(this,arguments)}function l(){return B.apply(this,arguments)}function B(){return B=s()(u()().mark(function i(){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,(0,n.request)("/api/app/image/build-prune",{method:"POST"});case 2:return _.abrupt("return",_.sent);case 3:case"end":return _.stop()}},i)})),B.apply(this,arguments)}function R(i){return I.apply(this,arguments)}function I(){return I=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.request)("/api/app/image/update-title",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),I.apply(this,arguments)}function C(i){return j.apply(this,arguments)}function j(){return j=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,n.request)("/api/app/image/tag-sync",{method:"POST",data:o}));case 1:case"end":return e.stop()}},i)})),j.apply(this,arguments)}},5251:function(y,O,t){t.d(O,{FI:function(){return u},ZM:function(){return h}});function M(s){return s.trim()}function u(s){var n="";s<.1*1024?n=s.toFixed(2)+"B":s<.1*1024*1024?n=(s/1024).toFixed(2)+"KB":s<1*1024*1024*1024?n=(s/(1024*1024)).toFixed(2)+"MB":n=(s/(1024*1024*1024)).toFixed(2)+"GB";var g=n+"",p=g.indexOf("."),P=g.substring(p+1,p+3);return P=="00"?g.substring(0,p)+g.substr(p+3,2):n}function h(s){if(s){var n=new Date(s),g=n.getFullYear()+"-",p=(n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1)+"-",P=(n.getDate()<10?"0"+n.getDate():n.getDate())+" ",f=(n.getHours()<10?"0"+n.getHours():n.getHours())+":",D=(n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes())+":",c=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return g+p+P+f+D+c}}}}]); diff --git a/asset/static/3355.619fb336.async.js b/asset/static/3355.619fb336.async.js deleted file mode 100644 index e8f1ce91..00000000 --- a/asset/static/3355.619fb336.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3355],{28307:function(y,O,t){var M=t(5574),u=t.n(M),h=t(38345),s=t(97269),n=t(5966),g=t(62370),p=t(14726),P=t(85265),f=t(42075),D=t(34041),c=t(67294),T=t(80821),E=t(3393),b=t(97961),v=t(92754),m=t(54006),r=t(85893),d=(0,c.forwardRef)(function(a,l){var B=(0,c.useState)(!1),R=u()(B,2),I=R[0],C=R[1],j=(0,c.useRef)(),i=(0,c.useRef)();return(0,c.useImperativeHandle)(l,function(){return{upgradeImage:function(_){var e;return C(!0),(e=j.current)===null||e===void 0||e.setFieldValue("imageUrl",_),(0,E.Gb)({tag:_,type:"pull"})},setImageName:function(_){var e;C(!0),(e=j.current)===null||e===void 0||e.setFieldValue("imageUrl",_)}}}),[(0,r.jsx)(p.ZP,{type:a.buttonType?a.buttonType:"default",onClick:function(){var _,e;a.onClick&&a.onClick(),C(!0),(_=j.current)===null||_===void 0||_.resetFields(),(e=i.current)===null||e===void 0||e.setStart()},children:"\u62C9\u53D6\u65B0\u955C\u50CF"},"remoteBtn"),(0,r.jsxs)(P.Z,{forceRender:!0,open:I,title:"\u4E0B\u8F7D\u8FDC\u7A0B\u955C\u50CF",width:800,onClose:function(){return C(!1)},footer:!1,children:[(0,r.jsx)(h.Z,{children:(0,r.jsxs)(f.Z,{direction:"vertical",size:"middle",children:[(0,r.jsxs)("div",{children:["1\u3001\u955C\u50CF\u540D\u79F0\u4E2D\u4E0D\u5305\u542B\u4ED3\u5E93\u5730\u5740\u65F6\uFF0C \u9ED8\u8BA4\u4ECE ",(0,r.jsx)("a",{href:"https://hub.docker.com/",target:"_blank",children:"docker hub"})," \u4E2D\u4E0B\u8F7D\uFF0C \u4F60\u53EF\u4EE5\u5728\u4E0A\u9762",(0,r.jsx)("a",{href:"https://hub.docker.com/search?q=",target:"_blank",children:"\u3010\u67E5\u627E\u3011"}),"\u9700\u8981\u7684\u955C\u50CF"]}),(0,r.jsxs)("div",{children:["2\u3001\u955C\u50CF\u4E2D\u5305\u542B\u4ED3\u5E93\u5730\u5740\u65F6\uFF0C\u8BF7\u786E",(0,r.jsx)(m.Link,{to:"/image/registry",children:"\u3010\u6DFB\u52A0\u3011"}),"\u8FC7\u8BE5\u4ED3\u5E93\uFF0C\u5E76\u6709 Pull \u6743\u9650"]}),(0,r.jsxs)("div",{children:["3\u3001\u53EF\u5728",(0,r.jsx)(m.Link,{to:"/image/registry",children:"\u3010\u4ED3\u5E93\u7BA1\u7406\u3011"}),"\u4E2D\u914D\u7F6E\u955C\u50CF\u7684\u52A0\u901F\u5730\u5740"]})]})}),(0,r.jsx)(h.Z,{title:"\u4E0B\u8F7D\u955C\u50CF",headerBordered:!0,children:(0,r.jsxs)(s.A,{submitter:!1,formRef:j,children:[(0,r.jsxs)(f.Z.Compact,{children:[(0,r.jsx)(n.Z,{width:400,name:"imageUrl",placeholder:"\u8BF7\u8F93\u5165\u955C\u50CF\u5730\u5740"}),(0,r.jsx)(g.Z,{name:"platform",children:(0,r.jsx)(D.Z,{style:{width:150},placeholder:"\u9ED8\u8BA4\u5F53\u524D\u67B6\u6784",options:b.ii.map(function(o){return{label:o.name,value:o.name}})})}),(0,r.jsx)(T.Z,{action:function(){var _,e,F,U,w,A=(_=(e=j.current)===null||e===void 0?void 0:e.getFieldValue("imageUrl"))!==null&&_!==void 0?_:"";return(F=i.current)===null||F===void 0||F.setStart(A),(0,E.Gb)({tag:A,type:"pull",platform:(U=(w=j.current)===null||w===void 0?void 0:w.getFieldValue("platform"))!==null&&U!==void 0?U:"amd64"})},onSuccess:function(_){var e;(e=i.current)===null||e===void 0||e.setFinish(),a.onFinish},messageSuccess:function(_){var e="\u62C9\u53D6\u6210\u529F";return _.data.proxyUrl&&(e+="\uFF0C\u4F7F\u7528\u4EE3\u7406 "+_.data.proxyUrl),e},children:"\u62C9\u53D6\u955C\u50CF"})]}),(0,r.jsx)(g.Z,{label:"\u4E0B\u8F7D\u8FDB\u5EA6",children:(0,r.jsx)(v.Z,{ref:i})})]})})]},"remoteDrawer")]});O.Z=d},92754:function(y,O,t){var M=t(5574),u=t.n(M),h=t(67294),s=t(54006),n=t(38703),g=t(85893),p=(0,h.forwardRef)(function(P,f){var D=(0,h.useState)(""),c=u()(D,2),T=c[0],E=c[1];(0,h.useImperativeHandle)(f,function(){return{setFinish:function(){d({finish:{downloading:100,extracting:100}})},setStart:function(l){l&&E(l),d({start:{downloading:0,extracting:0}})}}});var b=(0,s.useModel)("subscriber");b.addDataHandler("image:pull:"+T,function(a){d(a.data)});var v=(0,h.useState)(),m=u()(v,2),r=m[0],d=m[1];return(0,h.useEffect)(function(){d({start:{downloading:0,extracting:0}})},[]),(0,g.jsx)(g.Fragment,{children:r&&Object.keys(r).map(function(a){return(0,g.jsx)(n.Z,{percent:r[a].downloading,success:{percent:r[a].extracting}},a)})})});O.Z=p},97961:function(y,O,t){t.d(O,{MF:function(){return v},_2:function(){return E},fN:function(){return p},hG:function(){return c},ii:function(){return g},vC:function(){return f}});var M=t(15009),u=t.n(M),h=t(99289),s=t.n(h),n=t(54006),g=[{name:"amd64",arch:"amd64"},{name:"arm64",arch:"arm64"},{name:"i386",arch:"386"},{name:"arm/v6",arch:"arm"},{name:"arm/v7",arch:"arm"},{name:"arm/v8",arch:"arm64"},{name:"ppc64le",arch:"ppc64le"},{name:"riscv64",arch:"riscv64"}];function p(r){return P.apply(this,arguments)}function P(){return P=s()(u()().mark(function r(d){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,n.request)("/api/app/image/create-by-dockerfile",{method:"POST",data:d}));case 1:case"end":return l.stop()}},r)})),P.apply(this,arguments)}function f(r){return D.apply(this,arguments)}function D(){return D=s()(u()().mark(function r(d){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,n.request)("/api/app/image/import-by-container-tar",{method:"POST",data:d}));case 1:case"end":return l.stop()}},r)})),D.apply(this,arguments)}function c(r){return T.apply(this,arguments)}function T(){return T=s()(u()().mark(function r(d){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,n.request)("/api/app/image/import-by-image-tar",{method:"POST",data:d}));case 1:case"end":return l.stop()}},r)})),T.apply(this,arguments)}function E(r){return b.apply(this,arguments)}function b(){return b=s()(u()().mark(function r(d){return u()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,n.request)("/api/common/attach/delete",{method:"POST",data:d});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},r)})),b.apply(this,arguments)}function v(){return m.apply(this,arguments)}function m(){return m=s()(u()().mark(function r(){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/get-template-list",{method:"POST"}));case 1:case"end":return a.stop()}},r)})),m.apply(this,arguments)}},3393:function(y,O,t){t.d(O,{Gb:function(){return P},Pn:function(){return T},Rb:function(){return b},YU:function(){return g},_U:function(){return D}});var M=t(15009),u=t.n(M),h=t(99289),s=t.n(h),n=t(54006);function g(m){return p.apply(this,arguments)}function p(){return p=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/get-detail",{method:"POST",data:r}));case 1:case"end":return a.stop()}},m)})),p.apply(this,arguments)}function P(m){return f.apply(this,arguments)}function f(){return f=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/tag-remote",{method:"POST",data:r}));case 1:case"end":return a.stop()}},m)})),f.apply(this,arguments)}function D(m){return c.apply(this,arguments)}function c(){return c=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/tag-add",{method:"POST",data:r}));case 1:case"end":return a.stop()}},m)})),c.apply(this,arguments)}function T(m){return E.apply(this,arguments)}function E(){return E=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/tag-delete",{method:"POST",data:r}));case 1:case"end":return a.stop()}},m)})),E.apply(this,arguments)}function b(m){return v.apply(this,arguments)}function v(){return v=s()(u()().mark(function m(r){return u()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,n.request)("/api/app/image/export",{method:"POST",data:r,responseType:"blob"}));case 1:case"end":return a.stop()}},m)})),v.apply(this,arguments)}},18148:function(y,O,t){t.d(O,{$q:function(){return b},Fj:function(){return R},KG:function(){return g},KX:function(){return C},T8:function(){return T},Xn:function(){return D},ao:function(){return m},c5:function(){return l},c7:function(){return d}});var M=t(15009),u=t.n(M),h=t(99289),s=t.n(h),n=t(54006);function g(i){return p.apply(this,arguments)}function p(){return p=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,n.request)("/api/app/image/get-list",{method:"POST",data:o}));case 1:case"end":return e.stop()}},i)})),p.apply(this,arguments)}function P(i){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function i(o){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request("/api/app/log/image-build",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),f.apply(this,arguments)}function D(i){return c.apply(this,arguments)}function c(){return c=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,n.request)("/api/app/image/get-list-build",{method:"POST",data:o}));case 1:case"end":return e.stop()}},i)})),c.apply(this,arguments)}function T(i){return E.apply(this,arguments)}function E(){return E=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.request)("/api/app/image/get-build-task",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),E.apply(this,arguments)}function b(i){return v.apply(this,arguments)}function v(){return v=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.request)("/api/app/image/delete-build-task",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),v.apply(this,arguments)}function m(i){return r.apply(this,arguments)}function r(){return r=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.request)("/api/app/image/image-delete",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),r.apply(this,arguments)}function d(){return a.apply(this,arguments)}function a(){return a=s()(u()().mark(function i(){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,(0,n.request)("/api/app/image/image-prune",{method:"POST"});case 2:return _.abrupt("return",_.sent);case 3:case"end":return _.stop()}},i)})),a.apply(this,arguments)}function l(){return B.apply(this,arguments)}function B(){return B=s()(u()().mark(function i(){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,(0,n.request)("/api/app/image/build-prune",{method:"POST"});case 2:return _.abrupt("return",_.sent);case 3:case"end":return _.stop()}},i)})),B.apply(this,arguments)}function R(i){return I.apply(this,arguments)}function I(){return I=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.request)("/api/app/image/update-title",{method:"POST",data:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},i)})),I.apply(this,arguments)}function C(i){return j.apply(this,arguments)}function j(){return j=s()(u()().mark(function i(o){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,n.request)("/api/app/image/tag-sync",{method:"POST",data:o}));case 1:case"end":return e.stop()}},i)})),j.apply(this,arguments)}},5251:function(y,O,t){t.d(O,{FI:function(){return u},ZM:function(){return h}});function M(s){return s.trim()}function u(s){var n="";s<.1*1024?n=s.toFixed(2)+"B":s<.1*1024*1024?n=(s/1024).toFixed(2)+"KB":s<1*1024*1024*1024?n=(s/(1024*1024)).toFixed(2)+"MB":n=(s/(1024*1024*1024)).toFixed(2)+"GB";var g=n+"",p=g.indexOf("."),P=g.substring(p+1,p+3);return P=="00"?g.substring(0,p)+g.substr(p+3,2):n}function h(s){if(s){var n=new Date(s),g=n.getFullYear()+"-",p=(n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1)+"-",P=(n.getDate()<10?"0"+n.getDate():n.getDate())+" ",f=(n.getHours()<10?"0"+n.getHours():n.getHours())+":",D=(n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes())+":",c=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return g+p+P+f+D+c}}}}]); diff --git a/asset/static/7297.2fd0056f.async.js b/asset/static/7297.2fd0056f.async.js new file mode 100644 index 00000000..75ffdcaf --- /dev/null +++ b/asset/static/7297.2fd0056f.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7297],{7297:function(k,B,n){n.d(B,{Z:function(){return _e}});var F=n(64599),c=n.n(F),S=n(15009),o=n.n(S),E=n(99289),y=n.n(E),b=n(5574),T=n.n(b),R=n(10641),f=n(60922),A=n(42075),m=n(96074),I=n(83062),d=n(50136),h=n(54006),w=n(43425),W=n(86548),K=n(45742),L=n(89035),j=n(74842),O=n(87784),l=n(33160),u=n(30159),$=n(94359),i=n(78498),H=n(60335),V=n(80821),z=n(67294),q=n(62597),te=n(87662),re=n(16165),t=n(85893),de=function(){return(0,t.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18403",children:(0,t.jsx)("path",{d:"M224 192v64H96v576h128v64h64v-64h64v64h64v-64h64v64h64v-64h64v64h64v-64h64v64h64v-64h128V256h-128V192h-64v64h-64V192h-64v64h-64V192h-64v64h-64V192h-64v64H288V192z m-64 128h704v448H160z m96 64c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zM256 512c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m512 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zM256 640c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z","p-id":"18404"})})},he=function(){return(0,t.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18546",children:(0,t.jsx)("path",{d:"M64 224v576h416v-32c0-17.76 14.24-32 32-32 17.76 0 32 14.24 32 32v32h416V224z m64 64h768v288H128z m64 64v160h192v-160z m224 0v160h192v-160z m224 0v160h192v-160zM256 416h64v32H256z m224 0h64v32h-64z m224 0h64v32h-64zM128 640h768v96h-300.992c-14.144-35.52-42.752-64-83.008-64-40.256 0-68.864 28.48-83.008 64H128z","p-id":"18547"})})};function ve(g){var D,p,Z;return(0,t.jsx)(t.Fragment,{children:g.value&&g.value.memory&&g.value.memory.out>0?(0,t.jsxs)(A.Z,{children:[(0,t.jsxs)(I.Z,{title:"CPU\u5360\u7528\u7387",children:[(0,t.jsx)(re.Z,{component:de,style:{width:15,lineHeight:20}})," ","".concat((D=g.value)===null||D===void 0?void 0:D.cpu.toFixed(2),"%")]}),(0,t.jsxs)(I.Z,{title:"\u5185\u5B58\u5360\u7528\u7387",children:[(0,t.jsx)(re.Z,{component:he,style:{width:15,lineHeight:20}})," ","".concat((((p=g.value)===null||p===void 0?void 0:p.memory.in)/((Z=g.value)===null||Z===void 0?void 0:Z.memory.out)).toFixed(2),"%")]})]}):""})}var ae=n(67255),fe=n(19632),ue=n.n(fe),se=n(27496),me=n(35995),ge=n(99611),pe=n(29158),ee=n(38345),Ee=n(55241),X=n(66309);function je(g){return(0,t.jsx)(Ee.Z,{placement:"right",content:(0,t.jsxs)(ee.Z,{direction:"column",style:{width:500},ghost:!0,children:[(0,t.jsx)(ee.Z,{title:"\u7AEF\u53E3",children:[].concat(ue()(g.publicPort),ue()(g.privatePort)).map(function(D,p){var Z=g.serverIp;return Z!=""&&Z.indexOf(":")>-1&&(Z="[".concat(Z,"]")),Z==""&&D.IP=="::"&&(Z="[::1]"),Z==""&&D.IP=="0.0.0.0"&&(Z="127.0.0.1"),Z==""&&(Z=D.IP),(0,t.jsx)(A.Z,{size:"large",wrap:!0,children:(0,t.jsx)(X.Z,{color:D.PublicPort?"#2db7f5":"warning",icon:D.PublicPort?(0,t.jsx)(se.Z,{}):"",style:{marginBottom:5,width:210},children:D.PublicPort?(0,t.jsx)("a",{href:"http://".concat(Z,":").concat(D.PublicPort),target:"_blank",children:"".concat(D.PublicPort?D.IP+":"+D.PublicPort+" -> ":"").concat(D.PrivatePort,"/").concat(D.Type)},"link".concat(p)):"".concat(D.PrivatePort,"/").concat(D.Type)})},"space".concat(p))})}),g.domain.length>0&&(0,t.jsx)(ee.Z,{title:"\u57DF\u540D",children:(0,t.jsx)(A.Z,{direction:"vertical",style:{textAlign:"left"},children:g.domain.map(function(D,p){return(0,t.jsx)(X.Z,{color:"blue",icon:(0,t.jsx)(se.Z,{}),children:(0,t.jsx)("a",{href:D,target:"_blank",children:D})},"domain".concat(p))})})})]}),children:(0,t.jsxs)(A.Z,{direction:"vertical",children:[g.privatePort.length>0&&(0,t.jsxs)(X.Z,{color:"warning",icon:(0,t.jsx)(me.Z,{}),children:["\u5185\u90E8\u7AEF\u53E3: ",g.privatePort.length]}),g.publicPort.length>0&&(0,t.jsxs)(X.Z,{color:"#2db7f5",icon:(0,t.jsx)(ge.Z,{}),children:["\u5BF9\u5916\u7AEF\u53E3: ",g.publicPort.length]}),g.domain.length>0&&(0,t.jsxs)(X.Z,{color:"blue",icon:(0,t.jsx)(pe.Z,{}),children:["\u7ED1\u5B9A\u57DF\u540D: ",g.domain.length]})]})})}var Pe=n(24963),Oe=(0,z.forwardRef)(function(g,D){var p=(0,z.useRef)(),Z=(0,z.useState)(""),ie=T()(Z,2),De=ie[0],ye=ie[1],Ce=(0,z.useState)(),le=T()(Ce,2),N=le[0],Re=le[1],Ie=(0,z.useState)(1),ce=T()(Ie,2),Se=ce[0],be=ce[1],Ae=(0,z.useContext)(Pe.Z),Te=Ae.notice,Ze=(0,z.useState)([]),oe=T()(Ze,2),ne=oe[0],Me=oe[1];return(0,z.useImperativeHandle)(D,function(){return{reload:function(){var C,a;!((C=p.current)===null||C===void 0)&&C.reloadAndRest&&((a=p.current)===null||a===void 0||a.reloadAndRest())}}}),(0,z.useEffect)(function(){(0,te.pe)({groupName:"setting",name:"server"}).then(function(x){x.data.setting.value.serverIp&&ye(x.data.setting.value.serverIp)})},[]),(0,t.jsx)(R.Z,{actionRef:p,scroll:{x:"max-content"},columns:[{key:"title",title:"\u540D\u79F0",dataIndex:"siteTitle",width:200,render:function(C,a,_,r,s){var v="";return N!=null&&N.siteList&&N.siteList.map(function(P){P.containerInfo.ID==a.Id&&(v=P.siteTitle)}),(0,t.jsx)(f.Z.Text,{editable:{tooltip:"\u4FEE\u6539\u955C\u50CF\u5907\u6CE8\u540D\u79F0",onChange:function(){var P=y()(o()().mark(function e(U){var G,Y;return o()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(U!=""){J.next=2;break}return J.abrupt("return");case 2:return J.next=4,(0,q.lK)({md5:a.Id,title:U});case 4:Y=J.sent,v=U,Te.success("\u4FEE\u6539\u5BB9\u5668\u540D\u79F0\u6210\u529F"),!((G=p.current)===null||G===void 0)&&G.reload&&p.current.reload();case 8:case"end":return J.stop()}},e)}));function M(e){return P.apply(this,arguments)}return M}()},children:v==""?(0,t.jsx)(h.Link,{to:a.Id?"/app/detail/edit/".concat(a.Id):"#",children:a.Labels&&a.Labels["com.dpanel.container.title"]?a.Labels["com.dpanel.container.title"]:a.Names[0]}):(0,t.jsx)(h.Link,{to:a.Id?"/app/detail/edit/".concat(a.Id):"#",children:v})})}},{key:"ports",title:(0,t.jsx)(i.Z,{title:"\u5BF9\u5916\u8BBF\u95EE",help:"\u5BF9\u5916\u66B4\u9732\u7AEF\u53E3\u65F6\u53EF\u4EE5\u76F4\u63A5\u901A\u8FC7\u670D\u52A1\u5668ip(\u516C\u7F51,\u5185\u7F51,127.0.0.1)\u52A0\u7AEF\u53E3\u7684\u5F62\u5F0F\u8FDB\u884C\u8BBF\u95EE\u3002\u5982\u679C\u9700\u8981\u7ED1\u5B9A\u57DF\u540D,\u8BF7\u6DFB\u52A0\u7AD9\u70B9\u7ED1\u5B9A\u57DF\u540D\u8F6C\u53D1."}),dataIndex:"ports",width:200,search:!1,render:function(C,a,_,r){var s=[],v=[],P=[];return a!=null&&a.Ports&&a.Ports.map(function(M,e){M.PublicPort?s.push(M):v.push(M)}),N!=null&&N.domainList&&N.domainList.map(function(M,e){a.Names.indexOf(M.containerId)>-1&&P.push(M.setting.enableSSL?"https://"+M.serverName:"http://"+M.serverName)}),(0,t.jsx)(je,{publicPort:s,privatePort:v,domain:P,serverIp:De})}},{title:"\u5360\u7528\u7387",width:170,search:!1,key:"usage",render:function(C,a,_,r,s){if(!ne||ne.length<=0)return"";var v={};return ne.filter(function(P){a.Id.indexOf(P.container)==0&&(v=P)}),(0,t.jsx)(ve,{value:v})}},{title:"\u8FD0\u884C\u72B6\u6001",key:"status",dataIndex:["container","status"],search:!1,width:120,render:function(C,a,_,r){return[(0,t.jsx)("div",{children:(0,t.jsx)($.Z,{status:a.State,message:{content:a.Status,placement:"top"}})},"status")]}},{title:"\u6240\u5C5E\u955C\u50CF",key:"image",search:!1,width:150,render:function(C,a,_,r){return(0,t.jsx)("span",{style:{wordBreak:"break-word"},children:(0,t.jsx)(h.Link,{to:"/image/detail/".concat(a.ImageID),children:a.Image})})}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",width:150,render:function(C,a,_,r){return(0,t.jsxs)(A.Z,{split:(0,t.jsx)(m.Z,{type:"vertical"}),children:[(0,t.jsx)(h.Link,{to:"/app/detail/edit/"+a.Id,children:(0,t.jsx)(I.Z,{title:"\u7BA1\u7406\u5BB9\u5668",children:(0,t.jsx)(w.Z,{})})},"edit"),(0,t.jsx)(h.Link,{to:"/app/create/image?op=update&containerId="+a.Id,children:(0,t.jsx)(I.Z,{title:"\u7F16\u8F91",children:(0,t.jsx)(W.Z,{})})},"create"),(0,t.jsx)(h.Link,{to:"/app/detail/log/"+a.Id+"?tab=log",children:(0,t.jsx)(I.Z,{title:"\u8FD0\u884C\u65E5\u5FD7",children:(0,t.jsx)(K.Z,{})})},"log"),a.State=="running"&&(0,t.jsx)(h.Link,{target:"_blank",to:"/console/"+a.Id,children:(0,t.jsx)(I.Z,{title:"\u7EC8\u7AEF",children:(0,t.jsx)(L.Z,{})})},"console")]})}}],rowKey:"Id",request:function(){var x=y()(o()().mark(function C(a,_,r){var s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.IE)({tag:a.title,siteTitle:a.title,md5:a.Id});case 2:return v=e.sent,P=[],g.searchPrefix&&g.searchPrefix!=""?v.data.list.map(function(U){U.Names.map(function(G){G.startsWith("/"+g.searchPrefix)&&P.push(U)})}):g.searchNameList?v.data.list.map(function(U){U.Names.map(function(G){var Y,Q;g.searchNameList&&((Y=g.searchNameList)===null||Y===void 0?void 0:Y.length)>0&&((Q=g.searchNameList)===null||Q===void 0?void 0:Q.indexOf(G))>-1&&P.push(U)})}):P=v.data.list,Re(v.data),be(Se+1),(0,te.Cz)().then(function(U){Me(U.data.list)}),e.abrupt("return",{data:(s=P)!==null&&s!==void 0?s:[],success:!0,total:v.data.list.length});case 9:case"end":return e.stop()}},C)}));return function(C,a,_){return x.apply(this,arguments)}}(),rowSelection:{defaultSelectedRowKeys:[],alwaysShowAlert:!0},tableAlertOptionRender:function(C){var a=C.selectedRowKeys;return(0,t.jsxs)(A.Z,{size:16,children:[(0,t.jsx)(V.Z,{icon:(0,t.jsx)(j.Z,{}),action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"start"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u542F\u52A8\u6210\u529F",onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},children:"\u542F\u52A8"}),(0,t.jsx)(V.Z,{action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"stop"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u505C\u6B62\u6210\u529F",icon:(0,t.jsx)(O.Z,{}),onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},children:"\u505C\u6B62"}),(0,t.jsx)(V.Z,{action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"restart"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u91CD\u542F\u6210\u529F",onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},icon:(0,t.jsx)(l.Z,{}),children:"\u91CD\u542F"}),(0,t.jsx)(V.Z,{action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"pause"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u6682\u505C\u6210\u529F",onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},icon:(0,t.jsx)(u.Z,{}),children:"\u6682\u505C"}),(0,t.jsx)(V.Z,{action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"unpause"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u542F\u52A8\u6210\u529F",onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},icon:(0,t.jsx)(j.Z,{}),children:"\u6062\u590D"}),(0,t.jsx)(m.Z,{}),(0,t.jsx)(V.Z,{danger:!0,type:"primary",action:function(){if(a.length==0)return(0,q.Ct)({md5:"",deleteImage:!1,deleteVolume:!1});var r=a.map(function(){var s=y()(o()().mark(function v(P){return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,q.Ct)({md5:P,deleteImage:!1,deleteVolume:!1});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},v)}));return function(v){return s.apply(this,arguments)}}());return r[0]},onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},onError:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reset&&((s=p.current)===null||s===void 0||s.reset()),!0},messageSuccess:"\u5220\u9664\u6210\u529F",children:"\u6279\u91CF\u5220\u9664"})]})},pagination:g.showLite?!1:(0,ae.O)(),search:g.showLite?!1:{collapsed:!1},tableExtraRender:function(){return!g.showLite&&(0,t.jsx)(d.Z,{mode:"horizontal",selectedKeys:["list"],items:[{label:(0,t.jsx)(h.Link,{to:"/app/list",replace:!0,children:"\u5BB9\u5668\u5217\u8868"}),key:"list"},{label:(0,t.jsx)(h.Link,{to:"/app/list/recycle",replace:!0,children:"\u56DE\u6536\u7AD9"}),key:"recycle"}]})},toolBarRender:g.showLite?!1:function(){return[(0,t.jsx)(V.Z,{action:function(){return(0,H.KK)()},onSuccess:function(){var C,a;return!((C=p.current)===null||C===void 0)&&C.reloadAndRest&&((a=p.current)===null||a===void 0||a.reloadAndRest()),!0},onError:function(){var C,a;return!((C=p.current)===null||C===void 0)&&C.reset&&((a=p.current)===null||a===void 0||a.reset()),!0},messageSuccess:"\u6E05\u9664\u6210\u529F",confirm:"\u662F\u5426\u6E05\u7406\u5DF2\u505C\u6B62\u7684\u5BB9\u5668",children:"\u6E05\u7406\u5DF2\u505C\u6B62\u5BB9\u5668"})]},columnsState:(0,ae.j)("app-list")})}),_e=Oe},80821:function(k,B,n){n.d(B,{Z:function(){return R}});var F=n(5574),c=n.n(F),S=n(24963),o=n(86738),E=n(14726),y=n(83062),b=n(67294),T=n(85893);function R(f){var A=(0,b.useState)(!1),m=c()(A,2),I=m[0],d=m[1],h=(0,b.useContext)(S.Z),w=h.lang,W=h.notice,K=h.message,L=function(){d(!0),f.action().then(function(O){if(d(!1),typeof f.onSuccess=="function"&&f.onSuccess(O),f.messageSuccess){var l="";typeof f.messageSuccess=="function"?l=f.messageSuccess(O):l=f.messageSuccess,l.indexOf(".")>-1&&(l=w(l)),f.asynced?K.info(l):K.success(l)}}).catch(function(O){d(!1),typeof f.onError=="function"&&f.onError(O)})};return f.confirm?(0,T.jsx)(o.Z,{style:{width:500},title:f.confirmTitle?f.confirmTitle:w("notification.title.tip"),description:f.confirm,onConfirm:L,okText:"Yes",cancelText:"No",children:(0,T.jsx)(E.ZP,{disabled:f.disabled,icon:f.icon,loading:I,danger:f.danger,type:f.type,children:f.children})}):(0,T.jsx)(y.Z,{title:f.tips,children:(0,T.jsx)(E.ZP,{disabled:f.disabled,icon:f.icon,loading:I,onClick:L,danger:f.danger,type:f.type,children:f.children})})}},94359:function(k,B,n){n.d(B,{Z:function(){return I}});var F=n(67294),c=n(3089),S=n(98165),o=n(18429),E=n(8751),y=n(14313),b=n(30159),T=n(87740),R=n(66309),f=n(83062),A=n(54006),m=n(85893);function I(d){var h=(0,m.jsx)(m.Fragment,{});if(d.status=="0"&&(h=(0,m.jsx)(R.Z,{icon:(0,m.jsx)(c.Z,{}),color:"default",children:"waiting"})),d.status=="10"&&(h=(0,m.jsx)(R.Z,{icon:(0,m.jsx)(S.Z,{spin:!0}),color:"processing",children:"processing"})),d.status=="20"&&(h=(0,m.jsx)(R.Z,{icon:(0,m.jsx)(o.Z,{}),color:"error",children:"error"})),d.status=="30"&&(h=(0,m.jsx)(R.Z,{icon:(0,m.jsx)(E.Z,{}),color:"success",children:"success"})),d.status=="running"){var w,W;h=(0,m.jsx)(R.Z,{icon:(0,m.jsx)(y.Z,{}),color:"success",children:(w=d.message)!==null&&w!==void 0&&w.showInTag?(W=d.message)===null||W===void 0?void 0:W.content:d.status})}if(d.status=="paused"){var K,L;h=(0,m.jsx)(R.Z,{icon:(0,m.jsx)(b.Z,{}),children:(K=d.message)!==null&&K!==void 0&&K.showInTag?(L=d.message)===null||L===void 0?void 0:L.content:d.status})}if(d.status=="waiting"){var j,O;h=(0,m.jsx)(R.Z,{icon:(0,m.jsx)(T.Z,{}),children:(j=d.message)!==null&&j!==void 0&&j.showInTag?(O=d.message)===null||O===void 0?void 0:O.content:d.status})}if(d.status=="exited"||d.status=="dead"||d.status=="removing"||d.status=="restarting"||d.status=="created"){var l,u;h=(0,m.jsx)(R.Z,{icon:(0,m.jsx)(o.Z,{}),color:"warning",children:(l=d.message)!==null&&l!==void 0&&l.showInTag?(u=d.message)===null||u===void 0?void 0:u.content:d.status})}return d.link&&(h=(0,m.jsx)(A.Link,{to:d.link,children:h})),d.message&&(h=(0,m.jsx)(f.Z,{placement:d.message.placement,title:d.message.content,children:h})),(0,m.jsx)(m.Fragment,{children:h})}},78498:function(k,B,n){n.d(B,{Z:function(){return y}});var F=n(25035),c=n(42075),S=n(83062),o=n(67294),E=n(85893);function y(b){return(0,E.jsxs)(c.Z,{children:[b.title,(0,E.jsx)(S.Z,{title:b.help,children:(0,E.jsx)(F.Z,{})})]})}},24963:function(k,B,n){var F=n(67294),c=(0,F.createContext)({});B.Z=c},62597:function(k,B,n){n.d(B,{$G:function(){return y},Ct:function(){return w},Tb:function(){return f},XH:function(){return m},cl:function(){return T},iE:function(){return d},lK:function(){return j},xb:function(){return K}});var F=n(15009),c=n.n(F),S=n(99289),o=n.n(S),E=n(54006);function y(l){return b.apply(this,arguments)}function b(){return b=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,E.request)("/api/app/site/create-by-image",{method:"POST",data:u}));case 1:case"end":return i.stop()}},l)})),b.apply(this,arguments)}function T(l){return R.apply(this,arguments)}function R(){return R=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,E.request)("/api/app/site/get-list",{method:"POST",data:u}));case 1:case"end":return i.stop()}},l)})),R.apply(this,arguments)}function f(l){return A.apply(this,arguments)}function A(){return A=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return u.download=!1,i.next=3,(0,E.request)("/api/app/log/run",{method:"POST",data:u});case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}},l)})),A.apply(this,arguments)}function m(l){return I.apply(this,arguments)}function I(){return I=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return u.download=!0,i.next=3,(0,E.request)("/api/app/log/run",{method:"POST",data:u,responseType:"blob"});case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}},l)})),I.apply(this,arguments)}function d(l){return h.apply(this,arguments)}function h(){return h=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,E.request)("/api/app/site/get-detail",{data:u,method:"POST"});case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}},l)})),h.apply(this,arguments)}function w(l){return W.apply(this,arguments)}function W(){return W=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,E.request)("/api/app/container/delete",{method:"POST",data:u}));case 1:case"end":return i.stop()}},l)})),W.apply(this,arguments)}function K(l){return L.apply(this,arguments)}function L(){return L=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,E.request)("/api/app/site/delete",{method:"POST",data:u}));case 1:case"end":return i.stop()}},l)})),L.apply(this,arguments)}function j(l){return O.apply(this,arguments)}function O(){return O=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,E.request)("/api/app/site/update-title",{method:"POST",data:u});case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}},l)})),O.apply(this,arguments)}},60335:function(k,B,n){n.d(B,{IE:function(){return T},IW:function(){return y},KK:function(){return d},LJ:function(){return w},Re:function(){return K},eE:function(){return m},jV:function(){return f}});var F=n(15009),c=n.n(F),S=n(99289),o=n.n(S),E=n(54006);function y(j){return b.apply(this,arguments)}function b(){return b=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/status",{method:"POST",data:O}));case 1:case"end":return u.stop()}},j)})),b.apply(this,arguments)}function T(j){return R.apply(this,arguments)}function R(){return R=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/get-list",{data:O,method:"POST"}));case 1:case"end":return u.stop()}},j)})),R.apply(this,arguments)}function f(j){return A.apply(this,arguments)}function A(){return A=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/get-detail",{data:O,method:"POST"}));case 1:case"end":return u.stop()}},j)})),A.apply(this,arguments)}function m(j){return I.apply(this,arguments)}function I(){return I=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/update",{data:O,method:"POST"}));case 1:case"end":return u.stop()}},j)})),I.apply(this,arguments)}function d(){return h.apply(this,arguments)}function h(){return h=o()(c()().mark(function j(){return c()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,E.request)("/api/app/container/prune",{method:"POST"}));case 1:case"end":return l.stop()}},j)})),h.apply(this,arguments)}function w(j){return W.apply(this,arguments)}function W(){return W=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/export",{method:"POST",data:O,responseType:"blob"}));case 1:case"end":return u.stop()}},j)})),W.apply(this,arguments)}function K(j){return L.apply(this,arguments)}function L(){return L=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/commit",{method:"POST",data:O}));case 1:case"end":return u.stop()}},j)})),L.apply(this,arguments)}},67255:function(k,B,n){n.d(B,{O:function(){return F},j:function(){return c}});function F(){var S,o=parseInt((S=localStorage.getItem("dpanel-pagesize"))!==null&&S!==void 0?S:"0");return{showSizeChanger:!0,defaultPageSize:o!=null?o:20}}function c(S){var o="dpanel-table-column-".concat(S),E={};if(localStorage.getItem(o)){var y;E=JSON.parse((y=localStorage.getItem(o))!==null&&y!==void 0?y:"{}")}return{defaultValue:E,onChange:function(T){localStorage.setItem("dpanel-table-column-".concat(S),JSON.stringify(T))}}}}}]); diff --git a/asset/static/7297.72864936.async.js b/asset/static/7297.72864936.async.js deleted file mode 100644 index b7047fc1..00000000 --- a/asset/static/7297.72864936.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7297],{7297:function(k,B,n){n.d(B,{Z:function(){return _e}});var F=n(64599),c=n.n(F),S=n(15009),o=n.n(S),E=n(99289),y=n.n(E),b=n(5574),T=n.n(b),R=n(10641),f=n(60922),A=n(42075),g=n(96074),I=n(83062),d=n(50136),h=n(54006),w=n(43425),W=n(86548),K=n(45742),L=n(89035),j=n(74842),O=n(87784),l=n(33160),u=n(30159),$=n(94359),i=n(78498),H=n(60335),V=n(80821),z=n(67294),q=n(62597),te=n(87662),re=n(16165),t=n(85893),de=function(){return(0,t.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18403",children:(0,t.jsx)("path",{d:"M224 192v64H96v576h128v64h64v-64h64v64h64v-64h64v64h64v-64h64v64h64v-64h64v64h64v-64h128V256h-128V192h-64v64h-64V192h-64v64h-64V192h-64v64h-64V192h-64v64H288V192z m-64 128h704v448H160z m96 64c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zM256 512c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m512 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zM256 640c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z m128 0c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32z","p-id":"18404"})})},he=function(){return(0,t.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18546",children:(0,t.jsx)("path",{d:"M64 224v576h416v-32c0-17.76 14.24-32 32-32 17.76 0 32 14.24 32 32v32h416V224z m64 64h768v288H128z m64 64v160h192v-160z m224 0v160h192v-160z m224 0v160h192v-160zM256 416h64v32H256z m224 0h64v32h-64z m224 0h64v32h-64zM128 640h768v96h-300.992c-14.144-35.52-42.752-64-83.008-64-40.256 0-68.864 28.48-83.008 64H128z","p-id":"18547"})})};function ve(m){var D,p,Z;return console.log(m.value),(0,t.jsx)(t.Fragment,{children:m.value&&m.value.memory&&m.value.memory.out>0?(0,t.jsxs)(A.Z,{children:[(0,t.jsxs)(I.Z,{title:"CPU\u5360\u7528\u7387",children:[(0,t.jsx)(re.Z,{component:de,style:{width:15,lineHeight:20}})," ","".concat((D=m.value)===null||D===void 0?void 0:D.cpu.toFixed(2),"%")]}),(0,t.jsxs)(I.Z,{title:"\u5185\u5B58\u5360\u7528\u7387",children:[(0,t.jsx)(re.Z,{component:he,style:{width:15,lineHeight:20}})," ","".concat((((p=m.value)===null||p===void 0?void 0:p.memory.in)/((Z=m.value)===null||Z===void 0?void 0:Z.memory.out)).toFixed(2),"%")]})]}):""})}var ae=n(67255),fe=n(19632),ue=n.n(fe),se=n(27496),me=n(35995),ge=n(99611),pe=n(29158),ee=n(38345),Ee=n(55241),X=n(66309);function je(m){return(0,t.jsx)(Ee.Z,{placement:"right",content:(0,t.jsxs)(ee.Z,{direction:"column",style:{width:500},ghost:!0,children:[(0,t.jsx)(ee.Z,{title:"\u7AEF\u53E3",children:[].concat(ue()(m.publicPort),ue()(m.privatePort)).map(function(D,p){var Z=m.serverIp;return Z!=""&&Z.indexOf(":")>-1&&(Z="[".concat(Z,"]")),Z==""&&D.IP=="::"&&(Z="[::1]"),Z==""&&D.IP=="0.0.0.0"&&(Z="127.0.0.1"),Z==""&&(Z=D.IP),(0,t.jsx)(A.Z,{size:"large",wrap:!0,children:(0,t.jsx)(X.Z,{color:D.PublicPort?"#2db7f5":"warning",icon:D.PublicPort?(0,t.jsx)(se.Z,{}):"",style:{marginBottom:5,width:210},children:D.PublicPort?(0,t.jsx)("a",{href:"http://".concat(Z,":").concat(D.PublicPort),target:"_blank",children:"".concat(D.PublicPort?D.IP+":"+D.PublicPort+" -> ":"").concat(D.PrivatePort,"/").concat(D.Type)},"link".concat(p)):"".concat(D.PrivatePort,"/").concat(D.Type)})},"space".concat(p))})}),m.domain.length>0&&(0,t.jsx)(ee.Z,{title:"\u57DF\u540D",children:(0,t.jsx)(A.Z,{direction:"vertical",style:{textAlign:"left"},children:m.domain.map(function(D,p){return(0,t.jsx)(X.Z,{color:"blue",icon:(0,t.jsx)(se.Z,{}),children:(0,t.jsx)("a",{href:D,target:"_blank",children:D})},"domain".concat(p))})})})]}),children:(0,t.jsxs)(A.Z,{direction:"vertical",children:[m.privatePort.length>0&&(0,t.jsxs)(X.Z,{color:"warning",icon:(0,t.jsx)(me.Z,{}),children:["\u5185\u90E8\u7AEF\u53E3: ",m.privatePort.length]}),m.publicPort.length>0&&(0,t.jsxs)(X.Z,{color:"#2db7f5",icon:(0,t.jsx)(ge.Z,{}),children:["\u5BF9\u5916\u7AEF\u53E3: ",m.publicPort.length]}),m.domain.length>0&&(0,t.jsxs)(X.Z,{color:"blue",icon:(0,t.jsx)(pe.Z,{}),children:["\u7ED1\u5B9A\u57DF\u540D: ",m.domain.length]})]})})}var Pe=n(24963),Oe=(0,z.forwardRef)(function(m,D){var p=(0,z.useRef)(),Z=(0,z.useState)(""),ie=T()(Z,2),De=ie[0],ye=ie[1],Ce=(0,z.useState)(),le=T()(Ce,2),N=le[0],Re=le[1],Ie=(0,z.useState)(1),ce=T()(Ie,2),Se=ce[0],be=ce[1],Ae=(0,z.useContext)(Pe.Z),Te=Ae.notice,Ze=(0,z.useState)([]),oe=T()(Ze,2),ne=oe[0],Me=oe[1];return(0,z.useImperativeHandle)(D,function(){return{reload:function(){var C,a;!((C=p.current)===null||C===void 0)&&C.reloadAndRest&&((a=p.current)===null||a===void 0||a.reloadAndRest())}}}),(0,z.useEffect)(function(){(0,te.pe)({groupName:"setting",name:"server"}).then(function(x){x.data.setting.value.serverIp&&ye(x.data.setting.value.serverIp)})},[]),(0,t.jsx)(R.Z,{actionRef:p,scroll:{x:"max-content"},columns:[{key:"title",title:"\u540D\u79F0",dataIndex:"siteTitle",width:200,render:function(C,a,_,r,s){var v="";return N!=null&&N.siteList&&N.siteList.map(function(P){P.containerInfo.ID==a.Id&&(v=P.siteTitle)}),(0,t.jsx)(f.Z.Text,{editable:{tooltip:"\u4FEE\u6539\u955C\u50CF\u5907\u6CE8\u540D\u79F0",onChange:function(){var P=y()(o()().mark(function e(U){var G,Y;return o()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(U!=""){J.next=2;break}return J.abrupt("return");case 2:return J.next=4,(0,q.lK)({md5:a.Id,title:U});case 4:Y=J.sent,v=U,Te.success("\u4FEE\u6539\u5BB9\u5668\u540D\u79F0\u6210\u529F"),!((G=p.current)===null||G===void 0)&&G.reload&&p.current.reload();case 8:case"end":return J.stop()}},e)}));function M(e){return P.apply(this,arguments)}return M}()},children:v==""?(0,t.jsx)(h.Link,{to:a.Id?"/app/detail/edit/".concat(a.Id):"#",children:a.Labels&&a.Labels["com.dpanel.container.title"]?a.Labels["com.dpanel.container.title"]:a.Names[0]}):(0,t.jsx)(h.Link,{to:a.Id?"/app/detail/edit/".concat(a.Id):"#",children:v})})}},{key:"ports",title:(0,t.jsx)(i.Z,{title:"\u5BF9\u5916\u8BBF\u95EE",help:"\u5BF9\u5916\u66B4\u9732\u7AEF\u53E3\u65F6\u53EF\u4EE5\u76F4\u63A5\u901A\u8FC7\u670D\u52A1\u5668ip(\u516C\u7F51,\u5185\u7F51,127.0.0.1)\u52A0\u7AEF\u53E3\u7684\u5F62\u5F0F\u8FDB\u884C\u8BBF\u95EE\u3002\u5982\u679C\u9700\u8981\u7ED1\u5B9A\u57DF\u540D,\u8BF7\u6DFB\u52A0\u7AD9\u70B9\u7ED1\u5B9A\u57DF\u540D\u8F6C\u53D1."}),dataIndex:"ports",width:200,search:!1,render:function(C,a,_,r){var s=[],v=[],P=[];return a!=null&&a.Ports&&a.Ports.map(function(M,e){M.PublicPort?s.push(M):v.push(M)}),N!=null&&N.domainList&&N.domainList.map(function(M,e){a.Names.indexOf(M.containerId)>-1&&P.push(M.setting.enableSSL?"https://"+M.serverName:"http://"+M.serverName)}),(0,t.jsx)(je,{publicPort:s,privatePort:v,domain:P,serverIp:De})}},{title:"\u5360\u7528\u7387",width:170,search:!1,key:"usage",render:function(C,a,_,r,s){if(!ne||ne.length<=0)return"";var v={};return ne.filter(function(P){a.Id.indexOf(P.container)==0&&(v=P)}),(0,t.jsx)(ve,{value:v})}},{title:"\u8FD0\u884C\u72B6\u6001",key:"status",dataIndex:["container","status"],search:!1,width:120,render:function(C,a,_,r){return[(0,t.jsx)("div",{children:(0,t.jsx)($.Z,{status:a.State,message:{content:a.Status,placement:"top"}})},"status")]}},{title:"\u6240\u5C5E\u955C\u50CF",key:"image",search:!1,width:150,render:function(C,a,_,r){return(0,t.jsx)("span",{style:{wordBreak:"break-word"},children:(0,t.jsx)(h.Link,{to:"/image/detail/".concat(a.ImageID),children:a.Image})})}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",width:150,render:function(C,a,_,r){return(0,t.jsxs)(A.Z,{split:(0,t.jsx)(g.Z,{type:"vertical"}),children:[(0,t.jsx)(h.Link,{to:"/app/detail/edit/"+a.Id,children:(0,t.jsx)(I.Z,{title:"\u7BA1\u7406\u5BB9\u5668",children:(0,t.jsx)(w.Z,{})})},"edit"),(0,t.jsx)(h.Link,{to:"/app/create/image?op=update&containerId="+a.Id,children:(0,t.jsx)(I.Z,{title:"\u7F16\u8F91",children:(0,t.jsx)(W.Z,{})})},"create"),(0,t.jsx)(h.Link,{to:"/app/detail/log/"+a.Id+"?tab=log",children:(0,t.jsx)(I.Z,{title:"\u8FD0\u884C\u65E5\u5FD7",children:(0,t.jsx)(K.Z,{})})},"log"),a.State=="running"&&(0,t.jsx)(h.Link,{target:"_blank",to:"/console/"+a.Id,children:(0,t.jsx)(I.Z,{title:"\u7EC8\u7AEF",children:(0,t.jsx)(L.Z,{})})},"console")]})}}],rowKey:"Id",request:function(){var x=y()(o()().mark(function C(a,_,r){var s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,H.IE)({tag:a.title,siteTitle:a.title,md5:a.Id});case 2:return v=e.sent,P=[],m.searchPrefix&&m.searchPrefix!=""?v.data.list.map(function(U){U.Names.map(function(G){G.startsWith("/"+m.searchPrefix)&&P.push(U)})}):m.searchNameList?v.data.list.map(function(U){U.Names.map(function(G){var Y,Q;m.searchNameList&&((Y=m.searchNameList)===null||Y===void 0?void 0:Y.length)>0&&((Q=m.searchNameList)===null||Q===void 0?void 0:Q.indexOf(G))>-1&&P.push(U)})}):P=v.data.list,Re(v.data),be(Se+1),(0,te.Cz)().then(function(U){Me(U.data.list)}),e.abrupt("return",{data:(s=P)!==null&&s!==void 0?s:[],success:!0,total:v.data.list.length});case 9:case"end":return e.stop()}},C)}));return function(C,a,_){return x.apply(this,arguments)}}(),rowSelection:{defaultSelectedRowKeys:[],alwaysShowAlert:!0},tableAlertOptionRender:function(C){var a=C.selectedRowKeys;return(0,t.jsxs)(A.Z,{size:16,children:[(0,t.jsx)(V.Z,{icon:(0,t.jsx)(j.Z,{}),action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"start"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u542F\u52A8\u6210\u529F",onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},children:"\u542F\u52A8"}),(0,t.jsx)(V.Z,{action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"stop"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u505C\u6B62\u6210\u529F",icon:(0,t.jsx)(O.Z,{}),onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},children:"\u505C\u6B62"}),(0,t.jsx)(V.Z,{action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"restart"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u91CD\u542F\u6210\u529F",onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},icon:(0,t.jsx)(l.Z,{}),children:"\u91CD\u542F"}),(0,t.jsx)(V.Z,{action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"pause"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u6682\u505C\u6210\u529F",onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},icon:(0,t.jsx)(u.Z,{}),children:"\u6682\u505C"}),(0,t.jsx)(V.Z,{action:y()(o()().mark(function _(){var r,s,v,P;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=c()(a),e.prev=1,r.s();case 3:if((s=r.n()).done){e.next=10;break}return v=s.value,e.next=7,(0,H.IW)({md5:v,operate:"unpause"});case 7:P=e.sent;case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}},_,null,[[1,12,15,18]])})),messageSuccess:"\u542F\u52A8\u6210\u529F",onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},icon:(0,t.jsx)(j.Z,{}),children:"\u6062\u590D"}),(0,t.jsx)(g.Z,{}),(0,t.jsx)(V.Z,{danger:!0,type:"primary",action:function(){if(a.length==0)return(0,q.Ct)({md5:"",deleteImage:!1,deleteVolume:!1});var r=a.map(function(){var s=y()(o()().mark(function v(P){return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,q.Ct)({md5:P,deleteImage:!1,deleteVolume:!1});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},v)}));return function(v){return s.apply(this,arguments)}}());return r[0]},onSuccess:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reloadAndRest&&((s=p.current)===null||s===void 0||s.reloadAndRest()),!0},onError:function(){var r,s;return!((r=p.current)===null||r===void 0)&&r.reset&&((s=p.current)===null||s===void 0||s.reset()),!0},messageSuccess:"\u5220\u9664\u6210\u529F",children:"\u6279\u91CF\u5220\u9664"})]})},pagination:m.showLite?!1:(0,ae.O)(),search:m.showLite?!1:{collapsed:!1},tableExtraRender:function(){return!m.showLite&&(0,t.jsx)(d.Z,{mode:"horizontal",selectedKeys:["list"],items:[{label:(0,t.jsx)(h.Link,{to:"/app/list",replace:!0,children:"\u5BB9\u5668\u5217\u8868"}),key:"list"},{label:(0,t.jsx)(h.Link,{to:"/app/list/recycle",replace:!0,children:"\u56DE\u6536\u7AD9"}),key:"recycle"}]})},toolBarRender:m.showLite?!1:function(){return[(0,t.jsx)(V.Z,{action:function(){return(0,H.KK)()},onSuccess:function(){var C,a;return!((C=p.current)===null||C===void 0)&&C.reloadAndRest&&((a=p.current)===null||a===void 0||a.reloadAndRest()),!0},onError:function(){var C,a;return!((C=p.current)===null||C===void 0)&&C.reset&&((a=p.current)===null||a===void 0||a.reset()),!0},messageSuccess:"\u6E05\u9664\u6210\u529F",confirm:"\u662F\u5426\u6E05\u7406\u5DF2\u505C\u6B62\u7684\u5BB9\u5668",children:"\u6E05\u7406\u5DF2\u505C\u6B62\u5BB9\u5668"})]},columnsState:(0,ae.j)("app-list")})}),_e=Oe},80821:function(k,B,n){n.d(B,{Z:function(){return R}});var F=n(5574),c=n.n(F),S=n(24963),o=n(86738),E=n(14726),y=n(83062),b=n(67294),T=n(85893);function R(f){var A=(0,b.useState)(!1),g=c()(A,2),I=g[0],d=g[1],h=(0,b.useContext)(S.Z),w=h.lang,W=h.notice,K=h.message,L=function(){d(!0),f.action().then(function(O){if(d(!1),typeof f.onSuccess=="function"&&f.onSuccess(O),f.messageSuccess){var l="";typeof f.messageSuccess=="function"?l=f.messageSuccess(O):l=f.messageSuccess,l.indexOf(".")>-1&&(l=w(l)),f.asynced?K.info(l):K.success(l)}}).catch(function(O){d(!1),typeof f.onError=="function"&&f.onError(O)})};return f.confirm?(0,T.jsx)(o.Z,{style:{width:500},title:f.confirmTitle?f.confirmTitle:w("notification.title.tip"),description:f.confirm,onConfirm:L,okText:"Yes",cancelText:"No",children:(0,T.jsx)(E.ZP,{disabled:f.disabled,icon:f.icon,loading:I,danger:f.danger,type:f.type,children:f.children})}):(0,T.jsx)(y.Z,{title:f.tips,children:(0,T.jsx)(E.ZP,{disabled:f.disabled,icon:f.icon,loading:I,onClick:L,danger:f.danger,type:f.type,children:f.children})})}},94359:function(k,B,n){n.d(B,{Z:function(){return I}});var F=n(67294),c=n(3089),S=n(98165),o=n(18429),E=n(8751),y=n(14313),b=n(30159),T=n(87740),R=n(66309),f=n(83062),A=n(54006),g=n(85893);function I(d){var h=(0,g.jsx)(g.Fragment,{});if(d.status=="0"&&(h=(0,g.jsx)(R.Z,{icon:(0,g.jsx)(c.Z,{}),color:"default",children:"waiting"})),d.status=="10"&&(h=(0,g.jsx)(R.Z,{icon:(0,g.jsx)(S.Z,{spin:!0}),color:"processing",children:"processing"})),d.status=="20"&&(h=(0,g.jsx)(R.Z,{icon:(0,g.jsx)(o.Z,{}),color:"error",children:"error"})),d.status=="30"&&(h=(0,g.jsx)(R.Z,{icon:(0,g.jsx)(E.Z,{}),color:"success",children:"success"})),d.status=="running"){var w,W;h=(0,g.jsx)(R.Z,{icon:(0,g.jsx)(y.Z,{}),color:"success",children:(w=d.message)!==null&&w!==void 0&&w.showInTag?(W=d.message)===null||W===void 0?void 0:W.content:d.status})}if(d.status=="paused"){var K,L;h=(0,g.jsx)(R.Z,{icon:(0,g.jsx)(b.Z,{}),children:(K=d.message)!==null&&K!==void 0&&K.showInTag?(L=d.message)===null||L===void 0?void 0:L.content:d.status})}if(d.status=="waiting"){var j,O;h=(0,g.jsx)(R.Z,{icon:(0,g.jsx)(T.Z,{}),children:(j=d.message)!==null&&j!==void 0&&j.showInTag?(O=d.message)===null||O===void 0?void 0:O.content:d.status})}if(d.status=="exited"||d.status=="dead"||d.status=="removing"||d.status=="restarting"||d.status=="created"){var l,u;h=(0,g.jsx)(R.Z,{icon:(0,g.jsx)(o.Z,{}),color:"warning",children:(l=d.message)!==null&&l!==void 0&&l.showInTag?(u=d.message)===null||u===void 0?void 0:u.content:d.status})}return d.link&&(h=(0,g.jsx)(A.Link,{to:d.link,children:h})),d.message&&(h=(0,g.jsx)(f.Z,{placement:d.message.placement,title:d.message.content,children:h})),(0,g.jsx)(g.Fragment,{children:h})}},78498:function(k,B,n){n.d(B,{Z:function(){return y}});var F=n(25035),c=n(42075),S=n(83062),o=n(67294),E=n(85893);function y(b){return(0,E.jsxs)(c.Z,{children:[b.title,(0,E.jsx)(S.Z,{title:b.help,children:(0,E.jsx)(F.Z,{})})]})}},24963:function(k,B,n){var F=n(67294),c=(0,F.createContext)({});B.Z=c},62597:function(k,B,n){n.d(B,{$G:function(){return y},Ct:function(){return w},Tb:function(){return f},XH:function(){return g},cl:function(){return T},iE:function(){return d},lK:function(){return j},xb:function(){return K}});var F=n(15009),c=n.n(F),S=n(99289),o=n.n(S),E=n(54006);function y(l){return b.apply(this,arguments)}function b(){return b=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,E.request)("/api/app/site/create-by-image",{method:"POST",data:u}));case 1:case"end":return i.stop()}},l)})),b.apply(this,arguments)}function T(l){return R.apply(this,arguments)}function R(){return R=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,E.request)("/api/app/site/get-list",{method:"POST",data:u}));case 1:case"end":return i.stop()}},l)})),R.apply(this,arguments)}function f(l){return A.apply(this,arguments)}function A(){return A=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return u.download=!1,i.next=3,(0,E.request)("/api/app/log/run",{method:"POST",data:u});case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}},l)})),A.apply(this,arguments)}function g(l){return I.apply(this,arguments)}function I(){return I=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return u.download=!0,i.next=3,(0,E.request)("/api/app/log/run",{method:"POST",data:u,responseType:"blob"});case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}},l)})),I.apply(this,arguments)}function d(l){return h.apply(this,arguments)}function h(){return h=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,E.request)("/api/app/site/get-detail",{data:u,method:"POST"});case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}},l)})),h.apply(this,arguments)}function w(l){return W.apply(this,arguments)}function W(){return W=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,E.request)("/api/app/container/delete",{method:"POST",data:u}));case 1:case"end":return i.stop()}},l)})),W.apply(this,arguments)}function K(l){return L.apply(this,arguments)}function L(){return L=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,E.request)("/api/app/site/delete",{method:"POST",data:u}));case 1:case"end":return i.stop()}},l)})),L.apply(this,arguments)}function j(l){return O.apply(this,arguments)}function O(){return O=o()(c()().mark(function l(u){return c()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,E.request)("/api/app/site/update-title",{method:"POST",data:u});case 2:return i.abrupt("return",i.sent);case 3:case"end":return i.stop()}},l)})),O.apply(this,arguments)}},60335:function(k,B,n){n.d(B,{IE:function(){return T},IW:function(){return y},KK:function(){return d},LJ:function(){return w},Re:function(){return K},eE:function(){return g},jV:function(){return f}});var F=n(15009),c=n.n(F),S=n(99289),o=n.n(S),E=n(54006);function y(j){return b.apply(this,arguments)}function b(){return b=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/status",{method:"POST",data:O}));case 1:case"end":return u.stop()}},j)})),b.apply(this,arguments)}function T(j){return R.apply(this,arguments)}function R(){return R=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/get-list",{data:O,method:"POST"}));case 1:case"end":return u.stop()}},j)})),R.apply(this,arguments)}function f(j){return A.apply(this,arguments)}function A(){return A=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/get-detail",{data:O,method:"POST"}));case 1:case"end":return u.stop()}},j)})),A.apply(this,arguments)}function g(j){return I.apply(this,arguments)}function I(){return I=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/update",{data:O,method:"POST"}));case 1:case"end":return u.stop()}},j)})),I.apply(this,arguments)}function d(){return h.apply(this,arguments)}function h(){return h=o()(c()().mark(function j(){return c()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,E.request)("/api/app/container/prune",{method:"POST"}));case 1:case"end":return l.stop()}},j)})),h.apply(this,arguments)}function w(j){return W.apply(this,arguments)}function W(){return W=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/export",{method:"POST",data:O,responseType:"blob"}));case 1:case"end":return u.stop()}},j)})),W.apply(this,arguments)}function K(j){return L.apply(this,arguments)}function L(){return L=o()(c()().mark(function j(O){return c()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.request)("/api/app/container/commit",{method:"POST",data:O}));case 1:case"end":return u.stop()}},j)})),L.apply(this,arguments)}},67255:function(k,B,n){n.d(B,{O:function(){return F},j:function(){return c}});function F(){var S,o=parseInt((S=localStorage.getItem("dpanel-pagesize"))!==null&&S!==void 0?S:"0");return{showSizeChanger:!0,defaultPageSize:o!=null?o:20}}function c(S){var o="dpanel-table-column-".concat(S),E={};if(localStorage.getItem(o)){var y;E=JSON.parse((y=localStorage.getItem(o))!==null&&y!==void 0?y:"{}")}return{defaultValue:E,onChange:function(T){localStorage.setItem("dpanel-table-column-".concat(S),JSON.stringify(T))}}}}}]); diff --git a/asset/static/index.html b/asset/static/index.html index 23d810da..918d410a 100644 --- a/asset/static/index.html +++ b/asset/static/index.html @@ -18,6 +18,6 @@
- + \ No newline at end of file diff --git a/asset/static/p__app__create__image.4dab1cad.async.js b/asset/static/p__app__create__image.4dab1cad.async.js deleted file mode 100644 index 106e648d..00000000 --- a/asset/static/p__app__create__image.4dab1cad.async.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3985],{99861:function(Oe,me,u){var Fe=u(15009),R=u.n(Fe),Ce=u(64599),K=u.n(Ce),je=u(99289),W=u.n(je),ge=u(5574),b=u.n(ge),xe=u(83062),Be=u(14726),v=u(42119),V=u(67294),De=u(92754),Ae=u(3393),Ie=u(184),s=u(38345),U=u(85893),Ze=(0,V.forwardRef)(function($,ce){(0,V.useImperativeHandle)(ce,function(){return{}});var G=(0,V.useState)(0),ve=b()(G,2),ae=ve[0],re=ve[1],le=(0,V.useRef)();return(0,U.jsxs)(Ie.a,{trigger:(0,U.jsx)(xe.Z,{title:"\u5F53\u90E8\u7F72\u65F6\u65E0\u6CD5\u6B63\u5E38\u62C9\u53D6\u955C\u50CF\u65F6\uFF0C\u53EF\u4EE5\u624B\u52A8\u4F7F\u7528\u9762\u677F\u7684\u4ED3\u5E93\u52A0\u901F\u529F\u80FD\u62C9\u53D6\u6240\u6709\u955C\u50CF",children:(0,U.jsx)(Be.ZP,{children:$.title?$.title:"\u4E00\u952E\u62C9\u53D6\u955C\u50CF"})}),width:800,submitter:!1,title:"\u4E00\u952E\u62C9\u53D6\u955C\u50CF",onOpenChange:function(){var _=W()(R()().mark(function q(fe){var ie,ee,Y,he,oe,se,ye;return R()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!fe){j.next=25;break}ee=0,Y=K()($.image),j.prev=3,Y.s();case 5:if((he=Y.n()).done){j.next=15;break}return se=he.value,re(ee),(oe=le.current)===null||oe===void 0||oe.setStart(),j.next=11,(0,Ae.Gb)({tag:se,type:"pull"});case 11:ye=j.sent,ee++;case 13:j.next=5;break;case 15:j.next=20;break;case 17:j.prev=17,j.t0=j.catch(3),Y.e(j.t0);case 20:return j.prev=20,Y.f(),j.finish(20);case 23:(ie=le.current)===null||ie===void 0||ie.setFinish(),re(ee);case 25:case"end":return j.stop()}},q,null,[[3,17,20,23]])}));return function(q){return _.apply(this,arguments)}}(),children:[(0,U.jsx)(s.Z,{children:(0,U.jsx)(v.Z,{current:ae,items:$.image.map(function(_,q){return{title:_,key:q}})})}),(0,U.jsx)(s.Z,{children:(0,U.jsx)(De.Z,{ref:le})})]})});me.Z=Ze},73748:function(Oe,me,u){u.r(me),u.d(me,{default:function(){return ou}});var Fe=u(15009),R=u.n(Fe),Ce=u(99289),K=u.n(Ce),je=u(5574),W=u.n(je),ge=u(90078),b=u(38345),xe=u(97269),Be=u(2236),v=u(5966),V=u(97462),De=u(64218),Ae=u(92398),Ie=u(40056),s=u(67294),U=u(35880),Ze=u(10641),$=u(62370),ce=u(85576),G=u(42075),ve=u(96074),ae=u(60922),re=u(83062),le=u(71230),_=u(15746),q=u(14726),fe=u(3393),ie=u(18148),ee=u(5251),Y=u(64789),he=u(75162),oe=u(28307),se=u(78451),ye=u(99861),e=u(85893);function j(r){var D=(0,s.useState)(!1),g=W()(D,2),A=g[0],l=g[1],f=(0,s.useRef)(),i=(0,s.useContext)(U.Z),h=i.createFormRef,w=i.volumeListRef,x=i.createEnvRef,p=i.domainRef,F=(0,s.useRef)(),S=function(){var d=K()(R()().mark(function m(a){var C,I,Z,T,o,O,y,ne,k,L,J,N;return R()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l(!1),t.next=3,(0,fe.YU)({md5:a});case 3:o=t.sent,r.redeploy||(k=(O=h.current)===null||O===void 0?void 0:O.getFieldsValue(),(y=h.current)===null||y===void 0||y.resetFields(),(ne=h.current)===null||ne===void 0||ne.setFieldsValue({siteName:k.siteName,siteTitle:k.siteTitle})),o.data.info.Config.Env&&o.data.info.Config.Env.map(function(n){var P,M=n.split("=");(P=x.current)===null||P===void 0||P.addEnvItem(M[0],M.slice(1).join("="))}),(C=h.current)===null||C===void 0||C.setFieldValue("imageName",a),(I=h.current)===null||I===void 0||I.setFieldValue("workDir",o.data.info.Config.WorkingDir),(Z=p.current)===null||Z===void 0||Z.setExposePort(o.data.info.Config.ExposedPorts),o.data.info.Config.Volumes?(J=[],Object.keys(o.data.info.Config.Volumes).map(function(n,P){J.push(n)}),(L=w.current)===null||L===void 0||L.setDefaultDestPath(J)):(N=w.current)===null||N===void 0||N.setDefaultDestPath([]),(T=h.current)===null||T===void 0||T.setFieldsValue({workDir:{value:"",useDefault:!0,default:o.data.info.Config.WorkingDir},user:{value:"",useDefault:!0,default:o.data.info.Config.User},command:{value:"",useDefault:!0,default:o.data.info.Config.Cmd&&o.data.info.Config.Cmd.join(" ")},entrypoint:{value:"",useDefault:!0,default:o.data.info.Config.Entrypoint&&o.data.info.Config.Entrypoint.join(" ")}});case 11:case"end":return t.stop()}},m)}));return function(a){return d.apply(this,arguments)}}();return(0,s.useEffect)(function(){r.fromImageId&&S(r.fromImageId)},[r.fromImageId]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ce.Z,{open:A,width:1024,title:"\u9009\u62E9\u955C\u50CF",footer:!1,onCancel:function(){return l(!1)},children:(0,e.jsx)(Ze.Z,{scroll:{x:"max-content"},columns:[{title:"Id",dataIndex:"Id",search:!1,width:200,render:function(m,a,C,I,Z){return(0,e.jsx)(se.Z,{content:a.Id})}},{title:"\u955C\u50CF\u540D\u79F0",dataIndex:"tag",width:200,render:function(m,a,C,I){return(0,e.jsx)(se.Z,{content:a.RepoTags[0]})}},{title:"\u521B\u5EFA\u65E5\u671F",dataIndex:"Created",ellipsis:!0,search:!1,width:"180px",render:function(m,a,C,I){return(0,e.jsx)("div",{children:(0,ee.ZM)(a.Created*1e3)},a.Id)},sorter:function(m,a){return m.Created-a.Created}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",width:80,render:function(m,a,C,I){return(0,e.jsxs)(G.Z,{split:(0,e.jsx)(ve.Z,{type:"vertical"}),children:[(0,e.jsx)(ae.Z.Link,{onClick:K()(R()().mark(function Z(){return R()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",S(a.RepoTags[0]));case 1:case"end":return o.stop()}},Z)})),children:(0,e.jsx)(re.Z,{title:"\u4F7F\u7528\u955C\u50CF",children:(0,e.jsx)(Y.Z,{})})},"addImage"),(0,e.jsx)(ae.Z.Link,{onClick:K()(R()().mark(function Z(){var T;return R()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:a.RepoTags[0]&&((T=F.current)===null||T===void 0||T.setImageName(a.RepoTags[0]));case 1:case"end":return O.stop()}},Z)})),children:(0,e.jsx)(re.Z,{title:"\u66F4\u65B0\u955C\u50CF",children:(0,e.jsx)(he.Z,{})})},"updateImage")]})}}],request:function(){var d=K()(R()().mark(function m(a,C,I){var Z,T,o,O,y;return R()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return r.redeploy&&(T=(Z=h.current)===null||Z===void 0?void 0:Z.getFieldValue("imageName"),a.tag=T?T.split(":")[0]:a.tag),k.next=3,(0,ie.KG)({tag:a.tag});case 3:return o=k.sent,O=0,y=[],o.data.list&&(y=o.data.list.flatMap(function(L){return L.RepoTags.map(function(J){return{Key:O++,Id:L.Id,Created:L.Created,RepoTags:[J]}})})),k.abrupt("return",{data:y,success:!0,total:y.length});case 8:case"end":return k.stop()}},m)}));return function(m,a,C){return d.apply(this,arguments)}}(),toolBarRender:function(){return[(0,e.jsx)(oe.Z,{onClick:function(){l(!1)},buttonType:"primary",ref:F,onFinish:function(a){S(a)}},"remote")]},formRef:f,rowKey:"Key",pagination:{pageSize:5}})},"imageTableList"),(0,e.jsxs)(le.Z,{children:[(0,e.jsx)(_.Z,{span:14,children:(0,e.jsx)(v.Z,{label:"\u955C\u50CF",tooltip:r.redeploy?"\u66F4\u65B0\u5BB9\u5668\u65F6,\u53EA\u53EF\u4EE5\u9009\u62E9\u8BE5\u955C\u50CF\u4E0B\u7684\u4E0D\u540Ctag.\u4E5F\u53EF\u4EE5\u5F3A\u5236\u66F4\u65B0\u5DF2\u90E8\u7F72tag,\u66F4\u6B21\u90E8\u7F72":"\u65B0\u5EFA\u5BB9\u5668\u65F6,\u53EF\u4EE5\u4F7F\u7528\u672C\u5730\u955C\u50CF,\u4E5F\u53EF\u4EE5\u4E0B\u8F7D\u5168\u65B0\u7684\u955C\u50CF\u6216\u662F\u66F4\u65B0\u672C\u5730\u955C\u50CF\u7684tag",name:"imageName",disabled:!0,placeholder:"\u8BF7\u9009\u62E9\u955C\u50CF\uFF0C\u5982\u679C\u662F\u8FDC\u7A0B\u955C\u50CF\u8BF7\u5148\u4E0B\u8F7D",rules:[{required:!0}],required:!0})}),(0,e.jsx)(_.Z,{children:(0,e.jsx)($.Z,{label:" ",children:(0,e.jsxs)(G.Z,{children:[(0,e.jsx)(q.ZP,{type:"primary",onClick:function(){return l(!0)},children:r.redeploy?"\u66F4\u65B0\u955C\u50CF":"\u9009\u62E9\u955C\u50CF"},"showBtn"),(0,e.jsx)(V.Z,{name:["imageName"],children:function(m){var a=m.imageName;if(r.redeploy)return(0,e.jsx)(ye.Z,{image:[a],title:"\u66F4\u65B0\u5F53\u524D\u955C\u50CF"})}})]})})})]})]})}var ke=u(60335),Le=u(24969),z=u(24739),Me=u(63434),Re=u(17186),Ue=u(92067),We=(0,s.forwardRef)(function(r,D){var g=(0,s.useState)(!1),A=W()(g,2),l=A[0],f=A[1],i=(0,s.useRef)(),h=function(p){var F=(0,s.useState)([]),S=W()(F,2),d=S[0],m=S[1];return(0,s.useEffect)(function(){(0,ke.jV)({md5:p.name}).then(function(a){var C;return m((C=a.data.info.Config.Env)!==null&&C!==void 0?C:[]),!0})},[]),(0,e.jsxs)(b.Z,{bordered:!0,extra:p.action,style:{marginBottom:10},children:[(0,e.jsx)(b.Z,{title:"\u5173\u8054\u4FE1\u606F",children:(0,e.jsxs)(z.UW,{children:[(0,e.jsx)(v.Z,{label:"\u5BB9\u5668\u540D\u79F0",name:"name",width:"md",readonly:!0}),(0,e.jsx)(v.Z,{label:"\u8BBF\u95EEHostName",name:"alise",width:"md",tooltip:"\u901A\u8FC7\u914D\u7F6E\u6B64\u540D\u79F0\uFF0C\u5728\u5BB9\u5668\u5185\u90E8\u8FDB\u884C\u8BF7\u6C42\u8BBF\u95EE"}),(0,e.jsx)(Me.Z,{label:"\u5173\u8054\u5B58\u50A8",name:"volume"})]})}),(0,e.jsx)(b.Z,{title:"\u73AF\u5883\u53D8\u91CF",children:(0,e.jsx)(G.Z,{direction:"vertical",children:d&&d.map(function(a,C){return(0,e.jsx)(ae.Z.Text,{copyable:{icon:(0,e.jsx)(Le.Z,{}),onCopy:function(){var Z=a.split("=");r.onAddEnv(Z[0],Z[1])},tooltips:["add env","success"]},code:!0,ellipsis:{tooltip:a},style:{width:300},children:a},C)})},"linkEnv")})]})},w=function(p){var F,S,d=!1,m=(F=(S=i.current)===null||S===void 0?void 0:S.getList())!==null&&F!==void 0?F:[];if(m.map(function(C){C.name==p.name&&(d=!0)}),!d){var a;(a=i.current)===null||a===void 0||a.add(p)}};return(0,s.useImperativeHandle)(D,function(){return{setDefaultLink:function(p){p&&p.map(function(F){F.name!=""&&w(F)})}}}),(0,e.jsxs)(b.Z,{title:"\u5173\u8054\u5BB9\u5668",headerBordered:!0,children:[(0,e.jsx)(Re.u,{name:"links",actionRef:i,creatorButtonProps:{creatorButtonText:"\u6DFB\u52A0\u5173\u8054"},actionGuard:{beforeAddRow:function(p,F){return f(!0),!1}},copyIconProps:!1,min:0,itemRender:function(p,F){return(0,e.jsx)(h,{action:p.action,name:F.record.name})}}),(0,e.jsx)(ce.Z,{title:"\u9009\u62E9\u5BB9\u5668",width:1024,footer:!1,open:l,onCancel:function(){return f(!1)},children:(0,e.jsx)(Ue.Z,{onSelect:function(p){w({name:p.Name,alise:p.Config.Hostname,volume:!1}),f(!1)}})})]})}),$e=We,He=u(91058),Ke=u(10523),Ge=u(2831),Ye=u(64317),Ne=u(86125);function ze(r){var D,g=(0,s.useState)(),A=W()(g,2),l=A[0],f=A[1];return(0,s.useEffect)(function(){(0,Ge.aF)().then(function(i){return f(i.data.info)})},[]),(0,e.jsxs)(b.Z,{children:[(0,e.jsx)(v.Z,{label:"\u5171\u4EAB\u5185\u5B58\u5927\u5C0F - /dev/shm",name:"shmsize",initialValue:"64M",tooltip:"0 \u4E3A\u4F7F\u7528\u9ED8\u8BA464M"}),(0,e.jsx)($.Z,{label:"\u6700\u5927Cpu\u914D\u989D",name:"cpus",tooltip:"0 \u4E3A\u4E0D\u9650\u5236",children:(0,e.jsx)(Ne.Z,{step:.1,max:l==null?void 0:l.NCPU,marks:{0:"0",.5:"0.5\u6838",1:"1\u6838",1.5:"1.5\u6838",2:"2\u6838",4:"4\u6838",6:"6\u6838",8:"8\u6838"}})}),(0,e.jsx)($.Z,{label:"\u6700\u5927\u5185\u5B58\u914D\u989D",name:"memory",tooltip:"0 \u4E3A\u4E0D\u9650\u5236",children:(0,e.jsx)(Ne.Z,{step:256,max:Math.round(((D=l==null?void 0:l.MemTotal)!==null&&D!==void 0?D:0)/1024/1024),marks:{0:"0",1024:"1G",2048:"2G",3072:"3G",4096:"4G"}})}),(0,e.jsx)(Ye.Z,{label:"\u65E5\u5FD7\u7C7B\u578B",name:["log","driver"],tooltip:"\u9ED8\u8BA4\u4F7F\u7528 json-file \u9A71\u52A8\u7531 docker \u7EDF\u4E00\u7BA1\u7406\u3002\u91C7\u7528 journal \u65F6\u65E5\u5FD7\u5C06\u6765\u5BBF\u4E3B\u673A\u7BA1\u7406",initialValue:"json-file",valueEnum:{"json-file":"json-file",journald:"journal (\u5BBF\u4E3B\u9700\u8981\u5B89\u88C5journal\u670D\u52A1)"}}),(0,e.jsx)(V.Z,{name:["log"],children:function(h){var w=h.log;if(w.driver=="json-file")return(0,e.jsxs)(z.UW,{children:[(0,e.jsx)(v.Z,{label:"\u65E5\u5FD7\u5207\u5272\u5C3A\u5BF8",name:["log","maxSize"],placeholder:"\u4F8B\u5982\uFF1A10k,5M",tooltip:"\u9ED8\u8BA4 Docker \u5E76\u4E0D\u4F1A\u81EA\u52A8\u5207\u5272\u65E5\u5FD7"}),(0,e.jsx)(v.Z,{tooltip:"\u9ED8\u8BA4 Docker \u5E76\u4E0D\u4F1A\u81EA\u52A8\u6E05\u7406\u65E5\u5FD7\u6587\u4EF6",label:"\u4FDD\u7559\u65E5\u5FD7\u6587\u4EF6\u6570",name:["log","maxFile"],placeholder:"\u4F8B\u5982\uFF1A10"})]})}})]})}function Je(){return(0,e.jsx)(b.Z,{children:(0,e.jsx)(Re.u,{name:"label",label:"\u5BB9\u5668\u6807\u7B7E",creatorButtonProps:{creatorButtonText:"\u6DFB\u52A0\u5BB9\u5668\u6807\u7B7E"},copyIconProps:!1,min:0,children:(0,e.jsxs)(z.UW,{children:[(0,e.jsx)(v.Z,{width:"md",name:"name",label:"\u540D\u79F0",placeholder:""}),(0,e.jsx)(v.Z,{width:"md",name:"value",label:"\u503C",placeholder:""})]})})})}var pe=u(52688),Qe=u(44771),Xe=u(86615),su="default",du="user";function _e(r){return(0,e.jsx)($.Z,{label:r.label,tooltip:r.tooltip,children:(0,e.jsxs)(G.Z.Compact,{block:!0,children:[(0,e.jsx)(Xe.Z.Group,{radioType:"button",name:[r.name,"useDefault"],options:[{label:"\u4F7F\u7528\u9ED8\u8BA4",value:!0},{label:"\u81EA\u5B9A\u4E49",value:!1}]}),(0,e.jsx)(V.Z,{name:[r.name],children:function(g){return g[r.name]&&g[r.name].useDefault?(0,e.jsx)(v.Z,{name:[r.name,"default"],disabled:!0,placeholder:"\u672A\u8BBE\u7F6E"}):(0,e.jsx)(v.Z,{name:[r.name,"value"]})}})]})})}var Ee=_e;function qe(){return(0,e.jsxs)(b.Z,{children:[(0,e.jsx)(Qe.Z,{label:"\u91CD\u542F\u7B56\u7565"}),(0,e.jsxs)(z.UW,{children:[(0,e.jsx)(pe.Z,{name:"privileged",label:"\u8D4B\u4E88\u5BB9\u5668Root\u6743\u9650",initialValue:!1}),(0,e.jsx)(pe.Z,{name:"autoRemove",label:"\u505C\u6B62\u540E\u81EA\u52A8\u5220\u9664",initialValue:!1})]}),(0,e.jsx)(Ee,{label:"\u5DE5\u4F5C\u76EE\u5F55",tooltip:"\u9ED8\u8BA4\u4F7F\u7528\u955C\u50CF\u4E2D\u6307\u5B9A\u7684\u5DE5\u4F5C\u76EE\u5F55",name:"workDir"}),(0,e.jsx)(Ee,{label:"User",tooltip:"\u5728\u5BB9\u5668\u4E2D\u8FD0\u884C\u547D\u4EE4\u7684\u7528\u6237",name:"user"}),(0,e.jsx)(Ee,{label:"Command",tooltip:"\u542F\u52A8\u5BB9\u5668\u65F6\u8FD0\u884C\u7684\u547D\u4EE4\uFF0C\u4EE5\u7A7A\u683C\u5206\u9694",name:"command"}),(0,e.jsx)(Ee,{label:"Entrypoint",tooltip:"\u65E0\u6CD5\u8986\u76D6\u955C\u50CF\u4E2D\u5DF2\u7ECF\u6307\u5B9A\u7684 Entrypoint \u547D\u4EE4",name:"entrypoint"})]})}var eu=u(91845),Ve=u(62597),we=u(54006),uu=u(4798),nu=u(82034);function ue(r){return(0,e.jsx)("div",{style:{display:r.show?"block":"none"},children:r.children})}function tu(){var r=(0,s.useRef)(),D=function(l){var f,i,h=!1,w=(f=(i=r.current)===null||i===void 0?void 0:i.getList())!==null&&f!==void 0?f:[];if(w.map(function(p){p.name==l.name&&(h=!0)}),!h){var x;(x=r.current)===null||x===void 0||x.add(l)}},g=function(l){var f,i,h=!1,w=(f=(i=r.current)===null||i===void 0?void 0:i.getList())!==null&&f!==void 0?f:[];w.map(function(x,p){if(x.name==l){var F;(F=r.current)===null||F===void 0||F.remove(p)}})};return(0,e.jsx)(b.Z,{title:"\u5173\u8054\u5BBF\u4E3B\u7F51\u7EDC\u4E3B\u673A",tooltip:"\u5BB9\u5668\u5185\u5982\u679C\u9700\u8981\u8BF7\u6C42\u5BBF\u4E3B\u673A\u6240\u5728\u7684\u7F51\u7EDC\u4E2D\u7684\u4E3B\u673A\uFF0C\u53EF\u4EE5\u901A\u8FC7\u6B64\u914D\u7F6E\u5C06Ip\u6CE8\u5165\u5230\u5BB9\u5668\u4E2D",extra:(0,e.jsx)(G.Z,{children:(0,e.jsx)(pe.Z,{name:"enableBindHost",fieldProps:{checkedChildren:"\u7ED1\u5B9A\u5BBF\u4E3B\u673AIp",unCheckedChildren:"\u7ED1\u5B9A\u5BBF\u4E3B\u673AIp",onChange:function(l){l?D({name:"host.dpanel.local",value:"host-gateway"}):g("host.dpanel.local")}}})}),children:(0,e.jsx)(Re.u,{name:"extraHosts",creatorButtonProps:{creatorButtonText:"\u6DFB\u52A0\u5BBF\u4E3B\u673A\u7F51\u7EDC\u5173\u8054"},actionRef:r,copyIconProps:!1,min:0,children:(0,e.jsxs)(z.UW,{children:[(0,e.jsx)(v.Z,{width:"md",name:"name",label:"Hostname",placeholder:""}),(0,e.jsx)(v.Z,{width:"md",name:"value",label:"ip",placeholder:""})]})})})}var au=u(90672),ru=(0,s.forwardRef)(function(r,D){return(0,s.useImperativeHandle)(D,function(){return{}}),(0,e.jsxs)(b.Z,{title:"\u7F51\u7EDC\u914D\u7F6E",children:[(0,e.jsxs)(z.UW,{children:[(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV4 \u5730\u5740",name:["ipV4","address"],width:"md",tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipv4\u5730\u5740\uFF0C\u4F8B\u5982 192.168.1.5",placeholder:"192.168.1.5"}),(0,e.jsx)(V.Z,{name:["ipV4"],children:function(A){var l=A.ipV4;return(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV4 \u5B50\u7F51",name:["ipV4","subnet"],width:"md",required:l&&l.address,tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipv4\u6240\u5728\u7684\u5B50\u7F51\uFF0C\u4F8B\u5982 192.168.1.0/24",placeholder:"192.168.1.0/24",rules:[{required:l&&l.address}]})}}),(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV4 \u7F51\u5173",name:["ipV4","gateway"],width:"md",tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipv4\u7684\u7F51\u5173\uFF0C\u4F8B\u5982 192.168.1.1",placeholder:"192.168.1.1"}),(0,e.jsx)(pe.Z,{label:"\u81EA\u5B9A\u4E49ipV6",name:"enableIpV6Address"})]}),(0,e.jsx)(V.Z,{name:["enableIpV6Address"],children:function(A){var l=A.enableIpV6Address;if(l)return(0,e.jsxs)(z.UW,{children:[(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV6 \u5730\u5740",name:["ipV6","address"],width:"md",tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipV6\u5730\u5740\uFF0C\u4F8B\u5982 2001:db8::5",placeholder:"2001:db8::5"}),(0,e.jsx)(V.Z,{name:["ipV6"],children:function(i){var h=i.ipV6;return(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV6 \u5B50\u7F51",name:["ipV6","subnet"],width:"md",required:h&&h.address,tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipv4\u6240\u5728\u7684\u5B50\u7F51\uFF0C\u4F8B\u5982 2001:db8::/48",placeholder:"2001:db8::/48",rules:[{required:h&&h.address}]})}}),(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV6 \u7F51\u5173",name:["ipV6","gateway"],width:"md",tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipV6\u7684\u7F51\u5173\uFF0C\u4F8B\u5982 2001:db8::1",placeholder:"2001:db8::1"})]})}}),(0,e.jsx)(au.Z,{label:"DNS\u914D\u7F6E",name:"dns",placeholder:"\u8BF7\u6307\u5B9Adns\u5730\u5740\uFF0C\u4F8B\u5982\uFF1A8.8.8.8\uFF0C\u4E00\u884C\u6DFB\u4E00\u6761dns\u5730\u5740"})]})}),lu=ru,iu=u(24963),de="update",Se="copy",Pe="new";function ou(){var r,D,g,A=(0,s.useContext)(iu.Z),l=A.loading,f=(0,s.useContext)(U.Z),i=f.createFormRef,h=f.volumeListRef,w=f.domainRef,x=f.createEnvRef,p=f.createLinkRef,F=(0,s.useState)(Pe),S=W()(F,2),d=S[0],m=S[1],a=(0,we.useSearchParams)(),C=W()(a,2),I=C[0],Z=C[1],T=(0,we.useNavigate)(),o=(0,s.useState)("basic"),O=W()(o,2),y=O[0],ne=O[1],k=parseInt((r=I.get("id"))!==null&&r!==void 0?r:""),L=(D=I.get("containerId"))!==null&&D!==void 0?D:"",J=(g=I.get("imageId"))!==null&&g!==void 0?g:"";return(0,s.useEffect)(function(){if(L||k)l.show(),(0,Ve.iE)({md5:L,id:k}).then(function(){var B=K()(R()().mark(function t(n){var P,M,c,Q,H,be,Te;return R()().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(c={info:{},layer:[]},!n.data.env.imageName){te.next=6;break}return te.next=4,(0,fe.YU)({md5:n.data.env.imageName});case 4:Q=te.sent,c=Q.data;case 6:I.get("op")==Se?m(Se):m(de),n.data.env.network&&n.data.env.network.map(function(E){return!E.alise&&E.name!="bridge"&&(E.alise=[n.data.siteName+".pod.dpanel.local"]),E}),n.data.env.ports&&n.data.env.ports.map(function(E){return E.host=="0"&&(E.host=""),E}),H=n.data.env.bindIpV6,n.data.containerInfo.Info&&n.data.containerInfo.Info.NetworkSettings.Networks&&Object.keys(n.data.containerInfo.Info.NetworkSettings.Networks).map(function(E){n.data.env.network&&(n.data.env.network=n.data.env.network.map(function(X){return E==X.name&&(X.subnet=n.data.containerInfo.Info.NetworkSettings.Networks[E].IPAddress+"/"+n.data.containerInfo.Info.NetworkSettings.Networks[E].IPPrefixLen),X})),n.data.containerInfo.Info.NetworkSettings.Networks[E].IPv6Gateway!=""&&(H=!0)}),n.data.env.extraHosts&&n.data.env.extraHosts.map(function(E){if(E.value=="host-gateway"){var X;(X=i.current)===null||X===void 0||X.setFieldValue("enableBindHost",!0)}}),be=n.data.env.ports,n.data.env.ports&&(be=n.data.env.ports.map(function(E){return E.host=(E.hostIp?E.hostIp+":":"")+E.host,E})),(P=i.current)===null||P===void 0||P.setFieldsValue({imageName:n.data.env.imageName,privileged:n.data.env.privileged,bindIpV6:n.data.env.useHostNetwork?!1:H,useHostNetwork:n.data.env.useHostNetwork,publishAllPorts:n.data.env.useHostNetwork?!1:n.data.env.publishAllPorts,workDir:{value:n.data.env.workDir,useDefault:!n.data.env.workDir,default:c&&c.info.Config&&c.info.Config.WorkingDir},user:{value:n.data.env.user,useDefault:!n.data.env.user,default:c&&c.info.Config&&c.info.Config.User},command:{value:n.data.env.command,useDefault:!n.data.env.command,default:c&&c.info.Config&&c.info.Config.Cmd&&c.info.Config.Cmd.join(" ")},entrypoint:{value:n.data.env.entrypoint,useDefault:!n.data.env.entrypoint,default:c&&c.info.Config&&c.info.Config.Entrypoint&&c.info.Config.Entrypoint.join(" ")},shmsize:(M=n.data.env.shmsize)!==null&&M!==void 0?M:"64M",cpus:n.data.env.cpus,memory:n.data.env.memory,environment:n.data.env.environment,label:n.data.env.label,volumesDefault:n.data.env.volumesDefault,volumes:n.data.env.volumes,ports:be,links:n.data.env.links,network:n.data.env.network,restart:n.data.env.restart,extraHosts:n.data.env.extraHosts,autoRemove:n.data.env.autoRemove,log:n.data.env.log,dns:n.data.env.dns&&n.data.env.dns.join(` -`),ipV4:n.data.env.ipV4,ipV6:n.data.env.ipV6}),I.get("op")==de&&((Te=i.current)===null||Te===void 0||Te.setFieldsValue({siteTitle:n.data.siteTitle,siteName:n.data.siteName})),l.destroy();case 17:case"end":return te.stop()}},t)}));return function(t){return B.apply(this,arguments)}}());else{var N;m(Pe),(N=i.current)===null||N===void 0||N.resetFields()}},[I]),(0,e.jsx)(ge._z,{children:(0,e.jsx)(b.Z,{direction:"column",gutter:[0,10],children:(0,e.jsxs)(xe.A,{submitter:{render:function(B,t){return(0,e.jsx)(Be.S,{children:t})}},formRef:i,onFinish:function(){var N=K()(R()().mark(function B(t){var n,P,M,c;return R()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return c={siteTitle:t.siteTitle,siteName:t.siteName,imageName:t.imageName,environment:t.environment,links:t.links,ports:t.ports,volumes:t.volumes,volumesDefault:t.volumesDefault,network:t.network,privileged:(n=t.privileged)!==null&&n!==void 0?n:!1,autoRemove:(P=t.autoRemove)!==null&&P!==void 0?P:!1,restart:t.restart,cpus:t.cpus,memory:t.memory,shmsize:(M=t.shmsize)!==null&&M!==void 0?M:0,workDir:t.workDir&&!t.workDir.useDefault?t.workDir.value:"",user:t.user&&!t.user.useDefault?t.user.value:"",command:t.command&&!t.command.useDefault?t.command.value:"",entrypoint:t.entrypoint&&!t.entrypoint.useDefault?t.entrypoint.value:"",useHostNetwork:t.useHostNetwork,bindIpV6:t.bindIpV6,log:t.log,dns:t.dns&&t.dns!=""?t.dns.split(` -`):[],label:t.label,publishAllPorts:t.publishAllPorts,extraHosts:t.extraHosts,ipV4:t.ipV4,ipV6:t.ipV6},L&&d==de&&(c.containerId=L),console.log(c),H.next=5,(0,Ve.$G)(c);case 5:return T("/app/list"),H.abrupt("return",!0);case 7:case"end":return H.stop()}},B)}));return function(B){return N.apply(this,arguments)}}(),children:[(0,e.jsxs)(b.Z,{title:"\u57FA\u7840\u4FE1\u606F",headerBordered:!0,children:[(0,e.jsx)(v.Z,{name:"siteTitle",label:"\u7AD9\u70B9\u540D\u79F0",required:!0,rules:[{required:!0}],fieldProps:{onChange:function(B){var t="";if(B.target.value&&d!=de){var n,P=(0,eu.N9)(B.target.value.trim(),{toneType:"none",type:"array"});t=P.join(""),(n=i.current)===null||n===void 0||n.setFieldValue("siteName",t)}}},placeholder:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u540D\u79F0"}),(0,e.jsx)(v.Z,{name:"siteName",label:"\u7AD9\u70B9\u6807\u8BC6",tooltip:"\u7AD9\u70B9\u552F\u4E00\u6807\u8BC6\uFF0C\u7528\u4E8E\u6807\u8BC6\u7AD9\u70B9\u548C\u5185\u90E8\u8BBF\u95EE",required:!0,disabled:d==de,rules:[{required:!0}],placeholder:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u540D\u79F0"}),(0,e.jsx)(j,{redeploy:d!=Pe,fromImageId:J})]}),(0,e.jsx)(De.Z,{offsetTop:50,children:(0,e.jsx)(b.Z,{style:{marginBottom:-20},children:(0,e.jsx)(Ae.Z,{activeKey:y,onChange:function(B){ne(B),window.scrollTo(0,450)},items:[{label:"\u57FA\u672C\u914D\u7F6E",key:"basic"},{label:"\u5173\u8054\u914D\u7F6E",key:"link"},{label:"\u5B58\u50A8\u914D\u7F6E",key:"storage"},{label:"\u542F\u52A8\u914D\u7F6E",key:"run-command"},{label:"\u8D44\u6E90\u914D\u7F6E",key:"resource"},{label:"\u5176\u5B83",key:"other"}]})})}),(0,e.jsxs)(ue,{show:y=="basic",children:[(0,e.jsx)(nu.Z,{ref:w,showBindHost:!0,showBindIpV6:!0}),(0,e.jsx)(He.Z,{showAddButton:!0,showImportButton:!0,ref:x}),(0,e.jsx)(V.Z,{name:["siteName","useHostNetwork"],children:function(B){var t=B.siteName,n=B.useHostNetwork;if(!n)return(0,e.jsx)(lu,{})}})]}),(0,e.jsx)(ue,{show:y=="link",children:(0,e.jsx)(V.Z,{name:["siteName","useHostNetwork"],children:function(B){var t=B.siteName,n=B.useHostNetwork;return n?(0,e.jsx)(Ie.Z,{showIcon:!0,description:"\u7ED1\u5B9A\u5230\u5BBF\u4E3B\u673A\u7F51\u7EDC\u65F6\uFF0C\u65E0\u6CD5\u901A\u8FC7 Docker \u5173\u8054\u5176\u5B83\u5BB9\u5668\u3002\u8BF7\u4F7F\u7528\u5BBF\u4E3B\u673A\u5185\u7F51IP\u6216\u662F127.0.0.1\u4E92\u8054\u5BB9\u5668\u66B4\u9732\u7AEF\u53E3\u3002"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)($e,{onAddEnv:function(M,c){var Q;(Q=x.current)===null||Q===void 0||Q.addEnvItem(M,c)},ref:p}),(0,e.jsx)(uu.Z,{siteName:t}),(0,e.jsx)(tu,{})]})}})}),(0,e.jsx)(ue,{show:y=="storage",children:(0,e.jsx)(Ke.Z,{showDefault:!0,ref:h})}),(0,e.jsx)(ue,{show:y=="run-command",children:(0,e.jsx)(qe,{})}),(0,e.jsx)(ue,{show:y=="resource",children:(0,e.jsx)(ze,{})}),(0,e.jsx)(ue,{show:y=="other",children:(0,e.jsx)(Je,{})})]},"form")})})}}}]); diff --git a/asset/static/p__app__create__image.9a5b2dd0.async.js b/asset/static/p__app__create__image.9a5b2dd0.async.js new file mode 100644 index 00000000..997698a2 --- /dev/null +++ b/asset/static/p__app__create__image.9a5b2dd0.async.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3985],{99861:function(Oe,me,u){var Fe=u(15009),R=u.n(Fe),Ce=u(64599),K=u.n(Ce),je=u(99289),W=u.n(je),ge=u(5574),b=u.n(ge),xe=u(83062),Be=u(14726),v=u(42119),V=u(67294),De=u(92754),Ae=u(3393),Ie=u(184),s=u(38345),U=u(85893),Ze=(0,V.forwardRef)(function($,ce){(0,V.useImperativeHandle)(ce,function(){return{}});var Y=(0,V.useState)(0),ve=b()(Y,2),re=ve[0],le=ve[1],ie=(0,V.useRef)();return(0,U.jsxs)(Ie.a,{trigger:(0,U.jsx)(xe.Z,{title:"\u5F53\u90E8\u7F72\u65F6\u65E0\u6CD5\u6B63\u5E38\u62C9\u53D6\u955C\u50CF\u65F6\uFF0C\u53EF\u4EE5\u624B\u52A8\u4F7F\u7528\u9762\u677F\u7684\u4ED3\u5E93\u52A0\u901F\u529F\u80FD\u62C9\u53D6\u6240\u6709\u955C\u50CF",children:(0,U.jsx)(Be.ZP,{children:$.title?$.title:"\u4E00\u952E\u62C9\u53D6\u955C\u50CF"})}),width:800,submitter:!1,title:"\u4E00\u952E\u62C9\u53D6\u955C\u50CF",onOpenChange:function(){var _=W()(R()().mark(function q(fe){var oe,ee,z,he,se,ue,ye;return R()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!fe){j.next=25;break}ee=0,z=K()($.image),j.prev=3,z.s();case 5:if((he=z.n()).done){j.next=15;break}return ue=he.value,le(ee),(se=ie.current)===null||se===void 0||se.setStart(ue),j.next=11,(0,Ae.Gb)({tag:ue,type:"pull"});case 11:ye=j.sent,ee++;case 13:j.next=5;break;case 15:j.next=20;break;case 17:j.prev=17,j.t0=j.catch(3),z.e(j.t0);case 20:return j.prev=20,z.f(),j.finish(20);case 23:(oe=ie.current)===null||oe===void 0||oe.setFinish(),le(ee);case 25:case"end":return j.stop()}},q,null,[[3,17,20,23]])}));return function(q){return _.apply(this,arguments)}}(),children:[(0,U.jsx)(s.Z,{children:(0,U.jsx)(v.Z,{current:re,items:$.image.map(function(_,q){return{title:_,key:q}})})}),(0,U.jsx)(s.Z,{children:(0,U.jsx)(De.Z,{ref:ie})})]})});me.Z=Ze},73748:function(Oe,me,u){u.r(me),u.d(me,{default:function(){return ou}});var Fe=u(15009),R=u.n(Fe),Ce=u(99289),K=u.n(Ce),je=u(5574),W=u.n(je),ge=u(90078),b=u(38345),xe=u(97269),Be=u(2236),v=u(5966),V=u(97462),De=u(64218),Ae=u(92398),Ie=u(40056),s=u(67294),U=u(35880),Ze=u(10641),$=u(62370),ce=u(85576),Y=u(42075),ve=u(96074),re=u(60922),le=u(83062),ie=u(71230),_=u(15746),q=u(14726),fe=u(3393),oe=u(18148),ee=u(5251),z=u(64789),he=u(75162),se=u(28307),ue=u(78451),ye=u(99861),e=u(85893);function j(r){var D=(0,s.useState)(!1),g=W()(D,2),A=g[0],l=g[1],f=(0,s.useRef)(),i=(0,s.useContext)(U.Z),h=i.createFormRef,w=i.volumeListRef,x=i.createEnvRef,p=i.domainRef,F=(0,s.useRef)(),S=function(){var d=K()(R()().mark(function m(a){var C,I,Z,T,o,O,y,te,k,L,Q,N;return R()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l(!1),t.next=3,(0,fe.YU)({md5:a});case 3:o=t.sent,r.redeploy||(k=(O=h.current)===null||O===void 0?void 0:O.getFieldsValue(),(y=h.current)===null||y===void 0||y.resetFields(),(te=h.current)===null||te===void 0||te.setFieldsValue({siteName:k.siteName,siteTitle:k.siteTitle})),o.data.info.Config.Env&&o.data.info.Config.Env.map(function(n){var P,M=n.split("=");(P=x.current)===null||P===void 0||P.addEnvItem(M[0],M.slice(1).join("="))}),(C=h.current)===null||C===void 0||C.setFieldValue("imageName",a),(I=h.current)===null||I===void 0||I.setFieldValue("workDir",o.data.info.Config.WorkingDir),(Z=p.current)===null||Z===void 0||Z.setExposePort(o.data.info.Config.ExposedPorts),o.data.info.Config.Volumes?(Q=[],Object.keys(o.data.info.Config.Volumes).map(function(n,P){Q.push(n)}),(L=w.current)===null||L===void 0||L.setDefaultDestPath(Q)):(N=w.current)===null||N===void 0||N.setDefaultDestPath([]),(T=h.current)===null||T===void 0||T.setFieldsValue({workDir:{value:"",useDefault:!0,default:o.data.info.Config.WorkingDir},user:{value:"",useDefault:!0,default:o.data.info.Config.User},command:{value:"",useDefault:!0,default:o.data.info.Config.Cmd&&o.data.info.Config.Cmd.join(" ")},entrypoint:{value:"",useDefault:!0,default:o.data.info.Config.Entrypoint&&o.data.info.Config.Entrypoint.join(" ")}});case 11:case"end":return t.stop()}},m)}));return function(a){return d.apply(this,arguments)}}();return(0,s.useEffect)(function(){r.fromImageId&&S(r.fromImageId)},[r.fromImageId]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ce.Z,{open:A,width:1024,title:"\u9009\u62E9\u955C\u50CF",footer:!1,onCancel:function(){return l(!1)},children:(0,e.jsx)(Ze.Z,{scroll:{x:"max-content"},columns:[{title:"Id",dataIndex:"Id",search:!1,width:200,render:function(m,a,C,I,Z){return(0,e.jsx)(ue.Z,{content:a.Id})}},{title:"\u955C\u50CF\u540D\u79F0",dataIndex:"tag",width:200,render:function(m,a,C,I){return(0,e.jsx)(ue.Z,{content:a.RepoTags[0]})}},{title:"\u521B\u5EFA\u65E5\u671F",dataIndex:"Created",ellipsis:!0,search:!1,width:"180px",render:function(m,a,C,I){return(0,e.jsx)("div",{children:(0,ee.ZM)(a.Created*1e3)},a.Id)},sorter:function(m,a){return m.Created-a.Created}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",width:80,render:function(m,a,C,I){return(0,e.jsxs)(Y.Z,{split:(0,e.jsx)(ve.Z,{type:"vertical"}),children:[(0,e.jsx)(re.Z.Link,{onClick:K()(R()().mark(function Z(){return R()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",S(a.RepoTags[0]));case 1:case"end":return o.stop()}},Z)})),children:(0,e.jsx)(le.Z,{title:"\u4F7F\u7528\u955C\u50CF",children:(0,e.jsx)(z.Z,{})})},"addImage"),(0,e.jsx)(re.Z.Link,{onClick:K()(R()().mark(function Z(){var T;return R()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:a.RepoTags[0]&&((T=F.current)===null||T===void 0||T.setImageName(a.RepoTags[0]));case 1:case"end":return O.stop()}},Z)})),children:(0,e.jsx)(le.Z,{title:"\u66F4\u65B0\u955C\u50CF",children:(0,e.jsx)(he.Z,{})})},"updateImage")]})}}],request:function(){var d=K()(R()().mark(function m(a,C,I){var Z,T,o,O,y;return R()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return r.redeploy&&(T=(Z=h.current)===null||Z===void 0?void 0:Z.getFieldValue("imageName"),a.tag=T?T.split(":")[0]:a.tag),k.next=3,(0,oe.KG)({tag:a.tag});case 3:return o=k.sent,O=0,y=[],o.data.list&&(y=o.data.list.flatMap(function(L){return L.RepoTags.map(function(Q){return{Key:O++,Id:L.Id,Created:L.Created,RepoTags:[Q]}})})),k.abrupt("return",{data:y,success:!0,total:y.length});case 8:case"end":return k.stop()}},m)}));return function(m,a,C){return d.apply(this,arguments)}}(),toolBarRender:function(){return[(0,e.jsx)(se.Z,{onClick:function(){l(!1)},buttonType:"primary",ref:F,onFinish:function(a){S(a)}},"remote")]},formRef:f,rowKey:"Key",pagination:{pageSize:5}})},"imageTableList"),(0,e.jsxs)(ie.Z,{children:[(0,e.jsx)(_.Z,{span:14,children:(0,e.jsx)(v.Z,{label:"\u955C\u50CF",tooltip:r.redeploy?"\u66F4\u65B0\u5BB9\u5668\u65F6,\u53EA\u53EF\u4EE5\u9009\u62E9\u8BE5\u955C\u50CF\u4E0B\u7684\u4E0D\u540Ctag.\u4E5F\u53EF\u4EE5\u5F3A\u5236\u66F4\u65B0\u5DF2\u90E8\u7F72tag,\u66F4\u6B21\u90E8\u7F72":"\u65B0\u5EFA\u5BB9\u5668\u65F6,\u53EF\u4EE5\u4F7F\u7528\u672C\u5730\u955C\u50CF,\u4E5F\u53EF\u4EE5\u4E0B\u8F7D\u5168\u65B0\u7684\u955C\u50CF\u6216\u662F\u66F4\u65B0\u672C\u5730\u955C\u50CF\u7684tag",name:"imageName",disabled:!0,placeholder:"\u8BF7\u9009\u62E9\u955C\u50CF\uFF0C\u5982\u679C\u662F\u8FDC\u7A0B\u955C\u50CF\u8BF7\u5148\u4E0B\u8F7D",rules:[{required:!0}],required:!0})}),(0,e.jsx)(_.Z,{children:(0,e.jsx)($.Z,{label:" ",children:(0,e.jsxs)(Y.Z,{children:[(0,e.jsx)(q.ZP,{type:"primary",onClick:function(){return l(!0)},children:r.redeploy?"\u66F4\u65B0\u955C\u50CF":"\u9009\u62E9\u955C\u50CF"},"showBtn"),(0,e.jsx)(V.Z,{name:["imageName"],children:function(m){var a=m.imageName;if(r.redeploy)return(0,e.jsx)(ye.Z,{image:[a],title:"\u66F4\u65B0\u6216\u662F\u62C9\u53D6\u5F53\u524D\u955C\u50CF"})}})]})})})]})]})}var ke=u(60335),Le=u(24969),J=u(24739),Me=u(63434),Re=u(17186),Ue=u(92067),We=(0,s.forwardRef)(function(r,D){var g=(0,s.useState)(!1),A=W()(g,2),l=A[0],f=A[1],i=(0,s.useRef)(),h=function(p){var F=(0,s.useState)([]),S=W()(F,2),d=S[0],m=S[1];return(0,s.useEffect)(function(){(0,ke.jV)({md5:p.name}).then(function(a){var C;return m((C=a.data.info.Config.Env)!==null&&C!==void 0?C:[]),!0})},[]),(0,e.jsxs)(b.Z,{bordered:!0,extra:p.action,style:{marginBottom:10},children:[(0,e.jsx)(b.Z,{title:"\u5173\u8054\u4FE1\u606F",children:(0,e.jsxs)(J.UW,{children:[(0,e.jsx)(v.Z,{label:"\u5BB9\u5668\u540D\u79F0",name:"name",width:"md",readonly:!0}),(0,e.jsx)(v.Z,{label:"\u8BBF\u95EEHostName",name:"alise",width:"md",tooltip:"\u901A\u8FC7\u914D\u7F6E\u6B64\u540D\u79F0\uFF0C\u5728\u5BB9\u5668\u5185\u90E8\u8FDB\u884C\u8BF7\u6C42\u8BBF\u95EE"}),(0,e.jsx)(Me.Z,{label:"\u5173\u8054\u5B58\u50A8",name:"volume"})]})}),(0,e.jsx)(b.Z,{title:"\u73AF\u5883\u53D8\u91CF",children:(0,e.jsx)(Y.Z,{direction:"vertical",children:d&&d.map(function(a,C){return(0,e.jsx)(re.Z.Text,{copyable:{icon:(0,e.jsx)(Le.Z,{}),onCopy:function(){var Z=a.split("=");r.onAddEnv(Z[0],Z[1])},tooltips:["add env","success"]},code:!0,ellipsis:{tooltip:a},style:{width:300},children:a},C)})},"linkEnv")})]})},w=function(p){var F,S,d=!1,m=(F=(S=i.current)===null||S===void 0?void 0:S.getList())!==null&&F!==void 0?F:[];if(m.map(function(C){C.name==p.name&&(d=!0)}),!d){var a;(a=i.current)===null||a===void 0||a.add(p)}};return(0,s.useImperativeHandle)(D,function(){return{setDefaultLink:function(p){p&&p.map(function(F){F.name!=""&&w(F)})}}}),(0,e.jsxs)(b.Z,{title:"\u5173\u8054\u5BB9\u5668",headerBordered:!0,children:[(0,e.jsx)(Re.u,{name:"links",actionRef:i,creatorButtonProps:{creatorButtonText:"\u6DFB\u52A0\u5173\u8054"},actionGuard:{beforeAddRow:function(p,F){return f(!0),!1}},copyIconProps:!1,min:0,itemRender:function(p,F){return(0,e.jsx)(h,{action:p.action,name:F.record.name})}}),(0,e.jsx)(ce.Z,{title:"\u9009\u62E9\u5BB9\u5668",width:1024,footer:!1,open:l,onCancel:function(){return f(!1)},children:(0,e.jsx)(Ue.Z,{onSelect:function(p){w({name:p.Name,alise:p.Config.Hostname,volume:!1}),f(!1)}})})]})}),$e=We,He=u(91058),Ke=u(10523),Ge=u(2831),Ye=u(64317),Te=u(86125);function ze(r){var D,g=(0,s.useState)(),A=W()(g,2),l=A[0],f=A[1];return(0,s.useEffect)(function(){(0,Ge.aF)().then(function(i){return f(i.data.info)})},[]),(0,e.jsxs)(b.Z,{children:[(0,e.jsx)(v.Z,{label:"\u5171\u4EAB\u5185\u5B58\u5927\u5C0F - /dev/shm",name:"shmsize",initialValue:"64M",tooltip:"0 \u4E3A\u4F7F\u7528\u9ED8\u8BA464M"}),(0,e.jsx)($.Z,{label:"\u6700\u5927Cpu\u914D\u989D",name:"cpus",tooltip:"0 \u4E3A\u4E0D\u9650\u5236",children:(0,e.jsx)(Te.Z,{step:.1,max:l==null?void 0:l.NCPU,marks:{0:"0",.5:"0.5\u6838",1:"1\u6838",1.5:"1.5\u6838",2:"2\u6838",4:"4\u6838",6:"6\u6838",8:"8\u6838"}})}),(0,e.jsx)($.Z,{label:"\u6700\u5927\u5185\u5B58\u914D\u989D",name:"memory",tooltip:"0 \u4E3A\u4E0D\u9650\u5236",children:(0,e.jsx)(Te.Z,{step:256,max:Math.round(((D=l==null?void 0:l.MemTotal)!==null&&D!==void 0?D:0)/1024/1024),marks:{0:"0",1024:"1G",2048:"2G",3072:"3G",4096:"4G"}})}),(0,e.jsx)(Ye.Z,{label:"\u65E5\u5FD7\u7C7B\u578B",name:["log","driver"],tooltip:"\u9ED8\u8BA4\u4F7F\u7528 json-file \u9A71\u52A8\u7531 docker \u7EDF\u4E00\u7BA1\u7406\u3002\u91C7\u7528 journal \u65F6\u65E5\u5FD7\u5C06\u6765\u5BBF\u4E3B\u673A\u7BA1\u7406",initialValue:"json-file",valueEnum:{"json-file":"json-file",journald:"journal (\u5BBF\u4E3B\u9700\u8981\u5B89\u88C5journal\u670D\u52A1)"}}),(0,e.jsx)(V.Z,{name:["log"],children:function(h){var w=h.log;if(w.driver=="json-file")return(0,e.jsxs)(J.UW,{children:[(0,e.jsx)(v.Z,{label:"\u65E5\u5FD7\u5207\u5272\u5C3A\u5BF8",name:["log","maxSize"],placeholder:"\u4F8B\u5982\uFF1A10k,5M",tooltip:"\u9ED8\u8BA4 Docker \u5E76\u4E0D\u4F1A\u81EA\u52A8\u5207\u5272\u65E5\u5FD7"}),(0,e.jsx)(v.Z,{tooltip:"\u9ED8\u8BA4 Docker \u5E76\u4E0D\u4F1A\u81EA\u52A8\u6E05\u7406\u65E5\u5FD7\u6587\u4EF6",label:"\u4FDD\u7559\u65E5\u5FD7\u6587\u4EF6\u6570",name:["log","maxFile"],placeholder:"\u4F8B\u5982\uFF1A10"})]})}})]})}function Je(){return(0,e.jsx)(b.Z,{children:(0,e.jsx)(Re.u,{name:"label",label:"\u5BB9\u5668\u6807\u7B7E",creatorButtonProps:{creatorButtonText:"\u6DFB\u52A0\u5BB9\u5668\u6807\u7B7E"},copyIconProps:!1,min:0,children:(0,e.jsxs)(J.UW,{children:[(0,e.jsx)(v.Z,{width:"md",name:"name",label:"\u540D\u79F0",placeholder:""}),(0,e.jsx)(v.Z,{width:"md",name:"value",label:"\u503C",placeholder:""})]})})})}var pe=u(52688),Qe=u(44771),Xe=u(86615),su="default",du="user";function _e(r){return(0,e.jsx)($.Z,{label:r.label,tooltip:r.tooltip,children:(0,e.jsxs)(Y.Z.Compact,{block:!0,children:[(0,e.jsx)(Xe.Z.Group,{radioType:"button",name:[r.name,"useDefault"],options:[{label:"\u4F7F\u7528\u9ED8\u8BA4",value:!0},{label:"\u81EA\u5B9A\u4E49",value:!1}]}),(0,e.jsx)(V.Z,{name:[r.name],children:function(g){return g[r.name]&&g[r.name].useDefault?(0,e.jsx)(v.Z,{name:[r.name,"default"],disabled:!0,placeholder:"\u672A\u8BBE\u7F6E"}):(0,e.jsx)(v.Z,{name:[r.name,"value"]})}})]})})}var Ee=_e;function qe(){return(0,e.jsxs)(b.Z,{children:[(0,e.jsx)(Qe.Z,{label:"\u91CD\u542F\u7B56\u7565"}),(0,e.jsxs)(J.UW,{children:[(0,e.jsx)(pe.Z,{name:"privileged",label:"\u8D4B\u4E88\u5BB9\u5668Root\u6743\u9650",initialValue:!1}),(0,e.jsx)(pe.Z,{name:"autoRemove",label:"\u505C\u6B62\u540E\u81EA\u52A8\u5220\u9664",initialValue:!1})]}),(0,e.jsx)(Ee,{label:"\u5DE5\u4F5C\u76EE\u5F55",tooltip:"\u9ED8\u8BA4\u4F7F\u7528\u955C\u50CF\u4E2D\u6307\u5B9A\u7684\u5DE5\u4F5C\u76EE\u5F55",name:"workDir"}),(0,e.jsx)(Ee,{label:"User",tooltip:"\u5728\u5BB9\u5668\u4E2D\u8FD0\u884C\u547D\u4EE4\u7684\u7528\u6237",name:"user"}),(0,e.jsx)(Ee,{label:"Command",tooltip:"\u542F\u52A8\u5BB9\u5668\u65F6\u8FD0\u884C\u7684\u547D\u4EE4\uFF0C\u4EE5\u7A7A\u683C\u5206\u9694",name:"command"}),(0,e.jsx)(Ee,{label:"Entrypoint",tooltip:"\u65E0\u6CD5\u8986\u76D6\u955C\u50CF\u4E2D\u5DF2\u7ECF\u6307\u5B9A\u7684 Entrypoint \u547D\u4EE4",name:"entrypoint"})]})}var eu=u(91845),Ne=u(62597),Ve=u(54006),uu=u(4798),nu=u(82034);function ne(r){return(0,e.jsx)("div",{style:{display:r.show?"block":"none"},children:r.children})}function tu(){var r=(0,s.useRef)(),D=function(l){var f,i,h=!1,w=(f=(i=r.current)===null||i===void 0?void 0:i.getList())!==null&&f!==void 0?f:[];if(w.map(function(p){p.name==l.name&&(h=!0)}),!h){var x;(x=r.current)===null||x===void 0||x.add(l)}},g=function(l){var f,i,h=!1,w=(f=(i=r.current)===null||i===void 0?void 0:i.getList())!==null&&f!==void 0?f:[];w.map(function(x,p){if(x.name==l){var F;(F=r.current)===null||F===void 0||F.remove(p)}})};return(0,e.jsx)(b.Z,{title:"\u5173\u8054\u5BBF\u4E3B\u7F51\u7EDC\u4E3B\u673A",tooltip:"\u5BB9\u5668\u5185\u5982\u679C\u9700\u8981\u8BF7\u6C42\u5BBF\u4E3B\u673A\u6240\u5728\u7684\u7F51\u7EDC\u4E2D\u7684\u4E3B\u673A\uFF0C\u53EF\u4EE5\u901A\u8FC7\u6B64\u914D\u7F6E\u5C06Ip\u6CE8\u5165\u5230\u5BB9\u5668\u4E2D",extra:(0,e.jsx)(Y.Z,{children:(0,e.jsx)(pe.Z,{name:"enableBindHost",fieldProps:{checkedChildren:"\u7ED1\u5B9A\u5BBF\u4E3B\u673AIp",unCheckedChildren:"\u7ED1\u5B9A\u5BBF\u4E3B\u673AIp",onChange:function(l){l?D({name:"host.dpanel.local",value:"host-gateway"}):g("host.dpanel.local")}}})}),children:(0,e.jsx)(Re.u,{name:"extraHosts",creatorButtonProps:{creatorButtonText:"\u6DFB\u52A0\u5BBF\u4E3B\u673A\u7F51\u7EDC\u5173\u8054"},actionRef:r,copyIconProps:!1,min:0,children:(0,e.jsxs)(J.UW,{children:[(0,e.jsx)(v.Z,{width:"md",name:"name",label:"Hostname",placeholder:""}),(0,e.jsx)(v.Z,{width:"md",name:"value",label:"ip",placeholder:""})]})})})}var au=u(90672),ru=(0,s.forwardRef)(function(r,D){return(0,s.useImperativeHandle)(D,function(){return{}}),(0,e.jsxs)(b.Z,{title:"\u7F51\u7EDC\u914D\u7F6E",children:[(0,e.jsxs)(J.UW,{children:[(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV4 \u5730\u5740",name:["ipV4","address"],width:"md",tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipv4\u5730\u5740\uFF0C\u4F8B\u5982 192.168.1.5",placeholder:"192.168.1.5"}),(0,e.jsx)(V.Z,{name:["ipV4"],children:function(A){var l=A.ipV4;return(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV4 \u5B50\u7F51",name:["ipV4","subnet"],width:"md",required:l&&l.address,tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipv4\u6240\u5728\u7684\u5B50\u7F51\uFF0C\u4F8B\u5982 192.168.1.0/24",placeholder:"192.168.1.0/24",rules:[{required:l&&l.address}]})}}),(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV4 \u7F51\u5173",name:["ipV4","gateway"],width:"md",tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipv4\u7684\u7F51\u5173\uFF0C\u4F8B\u5982 192.168.1.1",placeholder:"192.168.1.1"}),(0,e.jsx)(pe.Z,{label:"\u81EA\u5B9A\u4E49ipV6",name:"enableIpV6Address"})]}),(0,e.jsx)(V.Z,{name:["enableIpV6Address"],children:function(A){var l=A.enableIpV6Address;if(l)return(0,e.jsxs)(J.UW,{children:[(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV6 \u5730\u5740",name:["ipV6","address"],width:"md",tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipV6\u5730\u5740\uFF0C\u4F8B\u5982 2001:db8::5",placeholder:"2001:db8::5"}),(0,e.jsx)(V.Z,{name:["ipV6"],children:function(i){var h=i.ipV6;return(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV6 \u5B50\u7F51",name:["ipV6","subnet"],width:"md",required:h&&h.address,tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipv4\u6240\u5728\u7684\u5B50\u7F51\uFF0C\u4F8B\u5982 2001:db8::/48",placeholder:"2001:db8::/48",rules:[{required:h&&h.address}]})}}),(0,e.jsx)(v.Z,{label:"\u914D\u7F6E ipV6 \u7F51\u5173",name:["ipV6","gateway"],width:"md",tooltip:"\u6307\u5B9A\u5BB9\u5668\u7684ipV6\u7684\u7F51\u5173\uFF0C\u4F8B\u5982 2001:db8::1",placeholder:"2001:db8::1"})]})}}),(0,e.jsx)(au.Z,{label:"DNS\u914D\u7F6E",name:"dns",placeholder:"\u8BF7\u6307\u5B9Adns\u5730\u5740\uFF0C\u4F8B\u5982\uFF1A8.8.8.8\uFF0C\u4E00\u884C\u6DFB\u4E00\u6761dns\u5730\u5740"})]})}),lu=ru,iu=u(24963),de="update",we="copy",Pe="new";function ou(){var r,D,g,A=(0,s.useContext)(iu.Z),l=A.loading,f=(0,s.useContext)(U.Z),i=f.createFormRef,h=f.volumeListRef,w=f.domainRef,x=f.createEnvRef,p=f.createLinkRef,F=(0,s.useState)(Pe),S=W()(F,2),d=S[0],m=S[1],a=(0,Ve.useSearchParams)(),C=W()(a,2),I=C[0],Z=C[1],T=(0,Ve.useNavigate)(),o=(0,s.useState)("basic"),O=W()(o,2),y=O[0],te=O[1],k=parseInt((r=I.get("id"))!==null&&r!==void 0?r:""),L=(D=I.get("containerId"))!==null&&D!==void 0?D:"",Q=(g=I.get("imageId"))!==null&&g!==void 0?g:"";return(0,s.useEffect)(function(){if(L||k)l.show(),(0,Ne.iE)({md5:L,id:k}).then(function(){var B=K()(R()().mark(function t(n){var P,M,c,G,H,be,Se;return R()().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(c={info:{},layer:[]},I.get("op")==we?m(we):m(de),n.data.env.network&&n.data.env.network.map(function(E){return!E.alise&&E.name!="bridge"&&(E.alise=[n.data.siteName+".pod.dpanel.local"]),E}),n.data.env.ports&&n.data.env.ports.map(function(E){return E.host=="0"&&(E.host=""),E}),G=n.data.env.bindIpV6,n.data.containerInfo.Info&&n.data.containerInfo.Info.NetworkSettings.Networks&&Object.keys(n.data.containerInfo.Info.NetworkSettings.Networks).map(function(E){n.data.env.network&&(n.data.env.network=n.data.env.network.map(function(X){return E==X.name&&(X.subnet=n.data.containerInfo.Info.NetworkSettings.Networks[E].IPAddress+"/"+n.data.containerInfo.Info.NetworkSettings.Networks[E].IPPrefixLen),X})),n.data.containerInfo.Info.NetworkSettings.Networks[E].IPv6Gateway!=""&&(G=!0)}),n.data.env.extraHosts&&n.data.env.extraHosts.map(function(E){if(E.value=="host-gateway"){var X;(X=i.current)===null||X===void 0||X.setFieldValue("enableBindHost",!0)}}),H=n.data.env.ports,n.data.env.ports&&(H=n.data.env.ports.map(function(E){return E.host=(E.hostIp?E.hostIp+":":"")+E.host,E})),(P=i.current)===null||P===void 0||P.setFieldsValue({imageName:n.data.env.imageName,privileged:n.data.env.privileged,bindIpV6:n.data.env.useHostNetwork?!1:G,useHostNetwork:n.data.env.useHostNetwork,publishAllPorts:n.data.env.useHostNetwork?!1:n.data.env.publishAllPorts,workDir:{value:n.data.env.workDir,useDefault:!n.data.env.workDir,default:c&&c.info.Config&&c.info.Config.WorkingDir},user:{value:n.data.env.user,useDefault:!n.data.env.user,default:c&&c.info.Config&&c.info.Config.User},command:{value:n.data.env.command,useDefault:!n.data.env.command,default:c&&c.info.Config&&c.info.Config.Cmd&&c.info.Config.Cmd.join(" ")},entrypoint:{value:n.data.env.entrypoint,useDefault:!n.data.env.entrypoint,default:c&&c.info.Config&&c.info.Config.Entrypoint&&c.info.Config.Entrypoint.join(" ")},shmsize:(M=n.data.env.shmsize)!==null&&M!==void 0?M:"64M",cpus:n.data.env.cpus,memory:n.data.env.memory,environment:n.data.env.environment,label:n.data.env.label,volumesDefault:n.data.env.volumesDefault,volumes:n.data.env.volumes,ports:H,links:n.data.env.links,network:n.data.env.network,restart:n.data.env.restart,extraHosts:n.data.env.extraHosts,autoRemove:n.data.env.autoRemove,log:n.data.env.log,dns:n.data.env.dns&&n.data.env.dns.join(` +`),ipV4:n.data.env.ipV4,ipV6:n.data.env.ipV6}),I.get("op")==de&&((be=i.current)===null||be===void 0||be.setFieldsValue({siteTitle:n.data.siteTitle,siteName:n.data.siteName})),!n.data.env.imageName){ae.next=16;break}return ae.next=14,(0,fe.YU)({md5:n.data.env.imageName});case 14:Se=ae.sent,c=Se.data;case 16:case"end":return ae.stop()}},t)}));return function(t){return B.apply(this,arguments)}}()).finally(function(){l.destroy()});else{var N;m(Pe),(N=i.current)===null||N===void 0||N.resetFields()}},[I]),(0,e.jsx)(ge._z,{children:(0,e.jsx)(b.Z,{direction:"column",gutter:[0,10],children:(0,e.jsxs)(xe.A,{submitter:{render:function(B,t){return(0,e.jsx)(Be.S,{children:t})}},formRef:i,onFinish:function(){var N=K()(R()().mark(function B(t){var n,P,M,c;return R()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return c={siteTitle:t.siteTitle,siteName:t.siteName,imageName:t.imageName,environment:t.environment,links:t.links,ports:t.ports,volumes:t.volumes,volumesDefault:t.volumesDefault,network:t.network,privileged:(n=t.privileged)!==null&&n!==void 0?n:!1,autoRemove:(P=t.autoRemove)!==null&&P!==void 0?P:!1,restart:t.restart,cpus:t.cpus,memory:t.memory,shmsize:(M=t.shmsize)!==null&&M!==void 0?M:0,workDir:t.workDir&&!t.workDir.useDefault?t.workDir.value:"",user:t.user&&!t.user.useDefault?t.user.value:"",command:t.command&&!t.command.useDefault?t.command.value:"",entrypoint:t.entrypoint&&!t.entrypoint.useDefault?t.entrypoint.value:"",useHostNetwork:t.useHostNetwork,bindIpV6:t.bindIpV6,log:t.log,dns:t.dns&&t.dns!=""?t.dns.split(` +`):[],label:t.label,publishAllPorts:t.publishAllPorts,extraHosts:t.extraHosts,ipV4:t.ipV4,ipV6:t.ipV6},L&&d==de&&(c.containerId=L),console.log(c),H.next=5,(0,Ne.$G)(c);case 5:return T("/app/list"),H.abrupt("return",!0);case 7:case"end":return H.stop()}},B)}));return function(B){return N.apply(this,arguments)}}(),children:[(0,e.jsxs)(b.Z,{title:"\u57FA\u7840\u4FE1\u606F",headerBordered:!0,children:[(0,e.jsx)(v.Z,{name:"siteTitle",label:"\u7AD9\u70B9\u540D\u79F0",required:!0,rules:[{required:!0}],fieldProps:{onChange:function(B){var t="";if(B.target.value&&d!=de){var n,P=(0,eu.N9)(B.target.value.trim(),{toneType:"none",type:"array"});t=P.join(""),(n=i.current)===null||n===void 0||n.setFieldValue("siteName",t)}}},placeholder:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u540D\u79F0"}),(0,e.jsx)(v.Z,{name:"siteName",label:"\u7AD9\u70B9\u6807\u8BC6",tooltip:"\u7AD9\u70B9\u552F\u4E00\u6807\u8BC6\uFF0C\u7528\u4E8E\u6807\u8BC6\u7AD9\u70B9\u548C\u5185\u90E8\u8BBF\u95EE",required:!0,disabled:d==de,rules:[{required:!0}],placeholder:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u540D\u79F0"}),(0,e.jsx)(j,{redeploy:d!=Pe,fromImageId:Q})]}),(0,e.jsx)(De.Z,{offsetTop:50,children:(0,e.jsx)(b.Z,{style:{marginBottom:-20},children:(0,e.jsx)(Ae.Z,{activeKey:y,onChange:function(B){te(B),window.scrollTo(0,450)},items:[{label:"\u57FA\u672C\u914D\u7F6E",key:"basic"},{label:"\u5173\u8054\u914D\u7F6E",key:"link"},{label:"\u5B58\u50A8\u914D\u7F6E",key:"storage"},{label:"\u542F\u52A8\u914D\u7F6E",key:"run-command"},{label:"\u8D44\u6E90\u914D\u7F6E",key:"resource"},{label:"\u5176\u5B83",key:"other"}]})})}),(0,e.jsxs)(ne,{show:y=="basic",children:[(0,e.jsx)(nu.Z,{ref:w,showBindHost:!0,showBindIpV6:!0}),(0,e.jsx)(He.Z,{showAddButton:!0,showImportButton:!0,ref:x}),(0,e.jsx)(V.Z,{name:["siteName","useHostNetwork"],children:function(B){var t=B.siteName,n=B.useHostNetwork;if(!n)return(0,e.jsx)(lu,{})}})]}),(0,e.jsx)(ne,{show:y=="link",children:(0,e.jsx)(V.Z,{name:["siteName","useHostNetwork"],children:function(B){var t=B.siteName,n=B.useHostNetwork;return n?(0,e.jsx)(Ie.Z,{showIcon:!0,description:"\u7ED1\u5B9A\u5230\u5BBF\u4E3B\u673A\u7F51\u7EDC\u65F6\uFF0C\u65E0\u6CD5\u901A\u8FC7 Docker \u5173\u8054\u5176\u5B83\u5BB9\u5668\u3002\u8BF7\u4F7F\u7528\u5BBF\u4E3B\u673A\u5185\u7F51IP\u6216\u662F127.0.0.1\u4E92\u8054\u5BB9\u5668\u66B4\u9732\u7AEF\u53E3\u3002"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)($e,{onAddEnv:function(M,c){var G;(G=x.current)===null||G===void 0||G.addEnvItem(M,c)},ref:p}),(0,e.jsx)(uu.Z,{siteName:t}),(0,e.jsx)(tu,{})]})}})}),(0,e.jsx)(ne,{show:y=="storage",children:(0,e.jsx)(Ke.Z,{showDefault:!0,ref:h})}),(0,e.jsx)(ne,{show:y=="run-command",children:(0,e.jsx)(qe,{})}),(0,e.jsx)(ne,{show:y=="resource",children:(0,e.jsx)(ze,{})}),(0,e.jsx)(ne,{show:y=="other",children:(0,e.jsx)(Je,{})})]},"form")})})}}}]); diff --git a/asset/static/p__app__detail__log.ca8fec9e.async.js b/asset/static/p__app__detail__log.ca8fec9e.async.js deleted file mode 100644 index 333326f0..00000000 --- a/asset/static/p__app__detail__log.ca8fec9e.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[8615],{23430:function(F,L,e){"use strict";e.d(L,{Z:function(){return D}});var _=e(87462),r=e(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},O=x,p=e(84089),W=function(n,l){return r.createElement(p.Z,(0,_.Z)({},n,{ref:l,icon:O}))},y=r.forwardRef(W),D=y},5966:function(F,L,e){"use strict";var _=e(97685),r=e(1413),x=e(45987),O=e(21770),p=e(72723),W=e(55241),y=e(97435),D=e(67294),j=e(73552),n=e(85893),l=["fieldProps","proFieldProps"],u=["fieldProps","proFieldProps"],h="text",i=function(m){var t=m.fieldProps,f=m.proFieldProps,o=(0,x.Z)(m,l);return(0,n.jsx)(j.Z,(0,r.Z)({valueType:h,fieldProps:t,filedConfig:{valueType:h},proFieldProps:f},o))},P=function(m){var t=(0,O.Z)(m.open||!1,{value:m.open,onChange:m.onOpenChange}),f=(0,_.Z)(t,2),o=f[0],a=f[1];return(0,n.jsx)(p.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var v,G=s.getFieldValue(m.name||[]);return(0,n.jsx)(W.Z,(0,r.Z)((0,r.Z)({getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},onOpenChange:function(d){return a(d)},content:(0,n.jsxs)("div",{style:{padding:"4px 0"},children:[(v=m.statusRender)===null||v===void 0?void 0:v.call(m,G),m.strengthText?(0,n.jsx)("div",{style:{marginTop:10},children:(0,n.jsx)("span",{children:m.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},m.popoverProps),{},{open:o,children:m.children}))}})},M=function(m){var t=m.fieldProps,f=m.proFieldProps,o=(0,x.Z)(m,u),a=(0,D.useState)(!1),S=(0,_.Z)(a,2),s=S[0],v=S[1];return t!=null&&t.statusRender&&o.name?(0,n.jsx)(P,{name:o.name,statusRender:t==null?void 0:t.statusRender,popoverProps:t==null?void 0:t.popoverProps,strengthText:t==null?void 0:t.strengthText,open:s,onOpenChange:v,children:(0,n.jsx)("div",{children:(0,n.jsx)(j.Z,(0,r.Z)({valueType:"password",fieldProps:(0,r.Z)((0,r.Z)({},(0,y.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(c){var d;t==null||(d=t.onBlur)===null||d===void 0||d.call(t,c),v(!1)},onClick:function(c){var d;t==null||(d=t.onClick)===null||d===void 0||d.call(t,c),v(!0)}}),proFieldProps:f,filedConfig:{valueType:h}},o))})}):(0,n.jsx)(j.Z,(0,r.Z)({valueType:"password",fieldProps:t,proFieldProps:f,filedConfig:{valueType:h}},o))},g=i;g.Password=M,g.displayName="ProFormComponent",L.Z=g},80821:function(F,L,e){"use strict";e.d(L,{Z:function(){return j}});var _=e(5574),r=e.n(_),x=e(24963),O=e(86738),p=e(14726),W=e(83062),y=e(67294),D=e(85893);function j(n){var l=(0,y.useState)(!1),u=r()(l,2),h=u[0],i=u[1],P=(0,y.useContext)(x.Z),M=P.lang,g=P.notice,U=P.message,m=function(){i(!0),n.action().then(function(f){if(i(!1),typeof n.onSuccess=="function"&&n.onSuccess(f),n.messageSuccess){var o="";typeof n.messageSuccess=="function"?o=n.messageSuccess(f):o=n.messageSuccess,o.indexOf(".")>-1&&(o=M(o)),n.asynced?U.info(o):U.success(o)}}).catch(function(f){i(!1),typeof n.onError=="function"&&n.onError(f)})};return n.confirm?(0,D.jsx)(O.Z,{style:{width:500},title:n.confirmTitle?n.confirmTitle:M("notification.title.tip"),description:n.confirm,onConfirm:m,okText:"Yes",cancelText:"No",children:(0,D.jsx)(p.ZP,{disabled:n.disabled,icon:n.icon,loading:h,danger:n.danger,type:n.type,children:n.children})}):(0,D.jsx)(W.Z,{title:n.tips,children:(0,D.jsx)(p.ZP,{disabled:n.disabled,icon:n.icon,loading:h,onClick:m,danger:n.danger,type:n.type,children:n.children})})}},54964:function(F,L,e){"use strict";var _=e(78267),r=e.n(_),x=e(75458),O=e.n(x),p=e(67294),W=e(12320),y=e.n(W),D=e(89629),j=e(85893),n=new W.Terminal({convertEol:!0,fontFamily:'Menlo, Monaco, "Courier New", monospace',fontWeight:400,fontSize:16,cursorStyle:"block",cursorBlink:!0,theme:{foreground:"#bfbfbf",cursor:"gray",selectionForeground:"#ffffff"}}),l=new x.SearchAddon,u=new _.FitAddon,h=(0,p.forwardRef)(function(i,P){return(0,p.useEffect)(function(){window.addEventListener("resize",function(){i.showInModal||u.fit()}),n.loadAddon(u),n.loadAddon(l),n.open(document.getElementById("terminal-container")),u.fit()},[]),(0,p.useImperativeHandle)(P,function(){return{write:function(g){n.write(g)},clear:function(){n.clear()},getTerminal:function(){return n},findNext:function(g){l.findNext(g)},findPrev:function(g){l.findPrevious(g)},fit:function(){u.fit()},onData:function(g){n.onData(g)}}}),(0,j.jsx)("div",{id:"terminal-container",style:{width:i.width?i.width:"100%",height:i.height?i.height:"500px"}})});L.Z=h},24963:function(F,L,e){"use strict";var _=e(67294),r=(0,_.createContext)({});L.Z=r},2742:function(F,L,e){"use strict";e.r(L),e.d(L,{default:function(){return c}});var _=e(15009),r=e.n(_),x=e(99289),O=e.n(x),p=e(5574),W=e.n(p),y=e(62597),D=e(38345),j=e(97269),n=e(62370),l=e(5966),u=e(97462),h=e(54006),i=e(67294),P=e(71230),M=e(15746),g=e(34041),U=e(14726),m=e(42075),t=e(54964),f=e(80821),o=e(23430),a=e(93162),S=e.n(a),s=e(60335),v=e(85893),G;function c(){var d=(0,i.useState)("500"),B=W()(d,2),E=B[0],R=B[1],K=(0,h.useParams)(),I=(0,i.useRef)(),$=(0,h.useModel)("subscriber");$.addDataHandler("container:log:"+K.id,function(A){var C,T;console.log(A.data),(C=I.current)===null||C===void 0||C.fit(),(T=I.current)===null||T===void 0||T.write(A.data)});var N=function(){var A=O()(r()().mark(function C(){var T,Z,b;return r()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(!K.id){z.next=5;break}return z.next=3,(0,y.Tb)({md5:(T=K.id)!==null&&T!==void 0?T:"",lineTotal:parseInt(E)});case 3:b=z.sent,(Z=I.current)===null||Z===void 0||Z.fit();case 5:case"end":return z.stop()}},C)}));return function(){return A.apply(this,arguments)}}();return(0,i.useEffect)(function(){var A,C;(A=I.current)===null||A===void 0||A.fit(),(C=I.current)===null||C===void 0||C.clear(),N()},[E]),(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(D.Z,{direction:"column",gutter:[0,10],children:[(0,v.jsx)(j.A,{submitter:!1,layout:"horizontal",onValuesChange:function(C,T){R(T.lineTotal)},children:(0,v.jsxs)(P.Z,{gutter:[20,0],children:[(0,v.jsx)(M.Z,{span:8,children:(0,v.jsx)(n.Z,{name:"lineTotal",initialValue:"500",label:"\u83B7\u53D6\u65E5\u5FD7\u6761\u6570",children:(0,v.jsxs)(g.Z,{defaultValue:"500",children:[(0,v.jsx)(g.Z.Option,{value:"100",children:"100\u6761\u65E5\u5FD7\u6570\u636E"}),(0,v.jsx)(g.Z.Option,{value:"200",children:"200\u6761\u65E5\u5FD7\u6570\u636E"}),(0,v.jsx)(g.Z.Option,{value:"500",children:"500\u6761\u65E5\u5FD7\u6570\u636E"}),(0,v.jsx)(g.Z.Option,{value:"1000",children:"1000\u6761\u65E5\u5FD7\u6570\u636E"}),(0,v.jsx)(g.Z.Option,{value:"-1",children:"\u5168\u90E8\uFF08\u4E0B\u8F7D\u53EF\u89C1\uFF09"})]})})}),(0,v.jsx)(M.Z,{children:(0,v.jsx)(U.ZP,{onClick:function(){var C;(C=I.current)===null||C===void 0||C.clear()},children:"\u6E05\u5C4F"})}),(0,v.jsx)(M.Z,{children:(0,v.jsx)(l.Z,{label:"\u67E5\u627E",name:"keywork"})}),(0,v.jsx)(M.Z,{children:(0,v.jsx)(u.Z,{name:["keywork"],children:function(C){var T=C.keywork;return(0,v.jsxs)(m.Z,{size:10,children:[(0,v.jsx)(U.ZP,{onClick:function(){var b;(b=I.current)===null||b===void 0||b.findNext(T)},children:"\u4E0B\u4E00\u4E2A"},"next"),(0,v.jsx)(U.ZP,{onClick:function(){var b;(b=I.current)===null||b===void 0||b.findPrev(T)},children:"\u4E0A\u4E00\u4E2A"},"prev")]})}})}),(0,v.jsx)(M.Z,{children:(0,v.jsx)(f.Z,{icon:(0,v.jsx)(o.Z,{}),action:function(){var C;return(0,y.XH)({md5:(C=K.id)!==null&&C!==void 0?C:"",lineTotal:parseInt(E)})},onSuccess:function(C){var T;(0,s.jV)({md5:(T=K.id)!==null&&T!==void 0?T:""}).then(function(Z){var b=new Blob([C],{type:"text/plain"});(0,a.saveAs)(b,Z.data.info.Name.replaceAll("/","")+"_"+new Date().toLocaleDateString()+".log")})},messageSuccess:"\u5BFC\u51FA\u6210\u529F",children:"\u4E0B\u8F7D\u65E5\u5FD7"})})]})}),(0,v.jsx)(t.Z,{ref:I,height:"580px"})]})})}},62597:function(F,L,e){"use strict";e.d(L,{$G:function(){return W},Ct:function(){return M},Tb:function(){return n},XH:function(){return u},cl:function(){return D},iE:function(){return i},lK:function(){return t},xb:function(){return U}});var _=e(15009),r=e.n(_),x=e(99289),O=e.n(x),p=e(54006);function W(o){return y.apply(this,arguments)}function y(){return y=O()(r()().mark(function o(a){return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,p.request)("/api/app/site/create-by-image",{method:"POST",data:a}));case 1:case"end":return s.stop()}},o)})),y.apply(this,arguments)}function D(o){return j.apply(this,arguments)}function j(){return j=O()(r()().mark(function o(a){return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,p.request)("/api/app/site/get-list",{method:"POST",data:a}));case 1:case"end":return s.stop()}},o)})),j.apply(this,arguments)}function n(o){return l.apply(this,arguments)}function l(){return l=O()(r()().mark(function o(a){return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return a.download=!1,s.next=3,(0,p.request)("/api/app/log/run",{method:"POST",data:a});case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},o)})),l.apply(this,arguments)}function u(o){return h.apply(this,arguments)}function h(){return h=O()(r()().mark(function o(a){return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return a.download=!0,s.next=3,(0,p.request)("/api/app/log/run",{method:"POST",data:a,responseType:"blob"});case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},o)})),h.apply(this,arguments)}function i(o){return P.apply(this,arguments)}function P(){return P=O()(r()().mark(function o(a){return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,p.request)("/api/app/site/get-detail",{data:a,method:"POST"});case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},o)})),P.apply(this,arguments)}function M(o){return g.apply(this,arguments)}function g(){return g=O()(r()().mark(function o(a){return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,p.request)("/api/app/container/delete",{method:"POST",data:a}));case 1:case"end":return s.stop()}},o)})),g.apply(this,arguments)}function U(o){return m.apply(this,arguments)}function m(){return m=O()(r()().mark(function o(a){return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,p.request)("/api/app/site/delete",{method:"POST",data:a}));case 1:case"end":return s.stop()}},o)})),m.apply(this,arguments)}function t(o){return f.apply(this,arguments)}function f(){return f=O()(r()().mark(function o(a){return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,p.request)("/api/app/site/update-title",{method:"POST",data:a});case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},o)})),f.apply(this,arguments)}},60335:function(F,L,e){"use strict";e.d(L,{IE:function(){return D},IW:function(){return W},KK:function(){return i},LJ:function(){return M},Re:function(){return U},eE:function(){return u},jV:function(){return n}});var _=e(15009),r=e.n(_),x=e(99289),O=e.n(x),p=e(54006);function W(t){return y.apply(this,arguments)}function y(){return y=O()(r()().mark(function t(f){return r()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/status",{method:"POST",data:f}));case 1:case"end":return a.stop()}},t)})),y.apply(this,arguments)}function D(t){return j.apply(this,arguments)}function j(){return j=O()(r()().mark(function t(f){return r()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/get-list",{data:f,method:"POST"}));case 1:case"end":return a.stop()}},t)})),j.apply(this,arguments)}function n(t){return l.apply(this,arguments)}function l(){return l=O()(r()().mark(function t(f){return r()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/get-detail",{data:f,method:"POST"}));case 1:case"end":return a.stop()}},t)})),l.apply(this,arguments)}function u(t){return h.apply(this,arguments)}function h(){return h=O()(r()().mark(function t(f){return r()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/update",{data:f,method:"POST"}));case 1:case"end":return a.stop()}},t)})),h.apply(this,arguments)}function i(){return P.apply(this,arguments)}function P(){return P=O()(r()().mark(function t(){return r()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,p.request)("/api/app/container/prune",{method:"POST"}));case 1:case"end":return o.stop()}},t)})),P.apply(this,arguments)}function M(t){return g.apply(this,arguments)}function g(){return g=O()(r()().mark(function t(f){return r()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/export",{method:"POST",data:f,responseType:"blob"}));case 1:case"end":return a.stop()}},t)})),g.apply(this,arguments)}function U(t){return m.apply(this,arguments)}function m(){return m=O()(r()().mark(function t(f){return r()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/commit",{method:"POST",data:f}));case 1:case"end":return a.stop()}},t)})),m.apply(this,arguments)}},86738:function(F,L,e){"use strict";e.d(L,{Z:function(){return G}});var _=e(67294),r=e(21640),x=e(93967),O=e.n(x),p=e(21770),W=e(98423),y=e(53124),D=e(55241),j=e(86743),n=e(81643),l=e(14726),u=e(33671),h=e(10110),i=e(24457),P=e(66330),M=e(83559);const g=c=>{const{componentCls:d,iconCls:B,antCls:E,zIndexPopup:R,colorText:K,colorWarning:I,marginXXS:$,marginXS:N,fontSize:A,fontWeightStrong:C,colorTextHeading:T}=c;return{[d]:{zIndex:R,[`&${E}-popover`]:{fontSize:A},[`${d}-message`]:{marginBottom:N,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${d}-message-icon ${B}`]:{color:I,fontSize:A,lineHeight:1,marginInlineEnd:N},[`${d}-title`]:{fontWeight:C,color:T,"&:only-child":{fontWeight:"normal"}},[`${d}-description`]:{marginTop:$,color:K}},[`${d}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:N}}}}},U=c=>{const{zIndexPopupBase:d}=c;return{zIndexPopup:d+60}};var m=(0,M.I$)("Popconfirm",c=>g(c),U,{resetStyle:!1}),t=function(c,d){var B={};for(var E in c)Object.prototype.hasOwnProperty.call(c,E)&&d.indexOf(E)<0&&(B[E]=c[E]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,E=Object.getOwnPropertySymbols(c);R{const{prefixCls:d,okButtonProps:B,cancelButtonProps:E,title:R,description:K,cancelText:I,okText:$,okType:N="primary",icon:A=_.createElement(r.Z,null),showCancel:C=!0,close:T,onConfirm:Z,onCancel:b,onPopupClick:k}=c,{getPrefixCls:z}=_.useContext(y.E_),[H]=(0,h.Z)("Popconfirm",i.Z.Popconfirm),X=(0,n.Z)(R),Y=(0,n.Z)(K);return _.createElement("div",{className:`${d}-inner-content`,onClick:k},_.createElement("div",{className:`${d}-message`},A&&_.createElement("span",{className:`${d}-message-icon`},A),_.createElement("div",{className:`${d}-message-text`},X&&_.createElement("div",{className:`${d}-title`},X),Y&&_.createElement("div",{className:`${d}-description`},Y))),_.createElement("div",{className:`${d}-buttons`},C&&_.createElement(l.ZP,Object.assign({onClick:b,size:"small"},E),I||(H==null?void 0:H.cancelText)),_.createElement(j.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,u.nx)(N)),B),actionFn:Z,close:T,prefixCls:z("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},$||(H==null?void 0:H.okText))))};var a=c=>{const{prefixCls:d,placement:B,className:E,style:R}=c,K=t(c,["prefixCls","placement","className","style"]),{getPrefixCls:I}=_.useContext(y.E_),$=I("popconfirm",d),[N]=m($);return N(_.createElement(P.ZP,{placement:B,className:O()($,E),style:R,content:_.createElement(f,Object.assign({prefixCls:$},K))}))},S=function(c,d){var B={};for(var E in c)Object.prototype.hasOwnProperty.call(c,E)&&d.indexOf(E)<0&&(B[E]=c[E]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,E=Object.getOwnPropertySymbols(c);R{var B,E;const{prefixCls:R,placement:K="top",trigger:I="click",okType:$="primary",icon:N=_.createElement(r.Z,null),children:A,overlayClassName:C,onOpenChange:T,onVisibleChange:Z}=c,b=S(c,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:k}=_.useContext(y.E_),[z,H]=(0,p.Z)(!1,{value:(B=c.open)!==null&&B!==void 0?B:c.visible,defaultValue:(E=c.defaultOpen)!==null&&E!==void 0?E:c.defaultVisible}),X=(w,V)=>{H(w,!0),Z==null||Z(w),T==null||T(w,V)},Y=w=>{X(!1,w)},Q=w=>{var V;return(V=c.onConfirm)===null||V===void 0?void 0:V.call(void 0,w)},q=w=>{var V;X(!1,w),(V=c.onCancel)===null||V===void 0||V.call(void 0,w)},ee=(w,V)=>{const{disabled:re=!1}=c;re||X(w,V)},J=k("popconfirm",R),ne=O()(J,C),[te]=m(J);return te(_.createElement(D.Z,Object.assign({},(0,W.Z)(b,["title"]),{trigger:I,placement:K,onOpenChange:ee,open:z,ref:d,overlayClassName:ne,content:_.createElement(f,Object.assign({okType:$,icon:N},c,{prefixCls:J,close:Y,onConfirm:Q,onCancel:q})),"data-popover-inject":!0}),A))});v._InternalPanelDoNotUseOrYouWillBeFired=a;var G=v},93162:function(F,L,e){var _,r,x;(function(O,p){r=[],_=p,x=typeof _=="function"?_.apply(L,r):_,x!==void 0&&(F.exports=x)})(this,function(){"use strict";function O(l,u){return typeof u=="undefined"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function p(l,u,h){var i=new XMLHttpRequest;i.open("GET",l),i.responseType="blob",i.onload=function(){n(i.response,u,h)},i.onerror=function(){console.error("could not download file")},i.send()}function W(l){var u=new XMLHttpRequest;u.open("HEAD",l,!1);try{u.send()}catch(h){}return 200<=u.status&&299>=u.status}function y(l){try{l.dispatchEvent(new MouseEvent("click"))}catch(h){var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(u)}}var D=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof e.g=="object"&&e.g.global===e.g?e.g:void 0,j=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),n=D.saveAs||(typeof window!="object"||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!j?function(l,u,h){var i=D.URL||D.webkitURL,P=document.createElement("a");u=u||l.name||"download",P.download=u,P.rel="noopener",typeof l=="string"?(P.href=l,P.origin===location.origin?y(P):W(P.href)?p(l,u,h):y(P,P.target="_blank")):(P.href=i.createObjectURL(l),setTimeout(function(){i.revokeObjectURL(P.href)},4e4),setTimeout(function(){y(P)},0))}:"msSaveOrOpenBlob"in navigator?function(l,u,h){if(u=u||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(O(l,h),u);else if(W(l))p(l,u,h);else{var i=document.createElement("a");i.href=l,i.target="_blank",setTimeout(function(){y(i)})}}:function(l,u,h,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),typeof l=="string")return p(l,u,h);var P=l.type==="application/octet-stream",M=/constructor/i.test(D.HTMLElement)||D.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||P&&M||j)&&typeof FileReader!="undefined"){var U=new FileReader;U.onloadend=function(){var f=U.result;f=g?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=f:location=f,i=null},U.readAsDataURL(l)}else{var m=D.URL||D.webkitURL,t=m.createObjectURL(l);i?i.location=t:location.href=t,i=null,setTimeout(function(){m.revokeObjectURL(t)},4e4)}});D.saveAs=n.saveAs=n,F.exports=n})}}]); diff --git a/asset/static/p__app__detail__log.d20eb132.async.js b/asset/static/p__app__detail__log.d20eb132.async.js new file mode 100644 index 00000000..492e3908 --- /dev/null +++ b/asset/static/p__app__detail__log.d20eb132.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[8615],{23430:function($,A,e){"use strict";e.d(A,{Z:function(){return D}});var _=e(87462),t=e(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},g=x,p=e(84089),U=function(o,r){return t.createElement(p.Z,(0,_.Z)({},o,{ref:r,icon:g}))},y=t.forwardRef(U),D=y},5966:function($,A,e){"use strict";var _=e(97685),t=e(1413),x=e(45987),g=e(21770),p=e(72723),U=e(55241),y=e(97435),D=e(67294),j=e(73552),o=e(85893),r=["fieldProps","proFieldProps"],i=["fieldProps","proFieldProps"],h="text",c=function(v){var n=v.fieldProps,f=v.proFieldProps,s=(0,x.Z)(v,r);return(0,o.jsx)(j.Z,(0,t.Z)({valueType:h,fieldProps:n,filedConfig:{valueType:h},proFieldProps:f},s))},m=function(v){var n=(0,g.Z)(v.open||!1,{value:v.open,onChange:v.onOpenChange}),f=(0,_.Z)(n,2),s=f[0],a=f[1];return(0,o.jsx)(p.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(l){var E,G=l.getFieldValue(v.name||[]);return(0,o.jsx)(U.Z,(0,t.Z)((0,t.Z)({getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},onOpenChange:function(d){return a(d)},content:(0,o.jsxs)("div",{style:{padding:"4px 0"},children:[(E=v.statusRender)===null||E===void 0?void 0:E.call(v,G),v.strengthText?(0,o.jsx)("div",{style:{marginTop:10},children:(0,o.jsx)("span",{children:v.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},v.popoverProps),{},{open:s,children:v.children}))}})},L=function(v){var n=v.fieldProps,f=v.proFieldProps,s=(0,x.Z)(v,i),a=(0,D.useState)(!1),S=(0,_.Z)(a,2),l=S[0],E=S[1];return n!=null&&n.statusRender&&s.name?(0,o.jsx)(m,{name:s.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:l,onOpenChange:E,children:(0,o.jsx)("div",{children:(0,o.jsx)(j.Z,(0,t.Z)({valueType:"password",fieldProps:(0,t.Z)((0,t.Z)({},(0,y.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var d;n==null||(d=n.onBlur)===null||d===void 0||d.call(n,u),E(!1)},onClick:function(u){var d;n==null||(d=n.onClick)===null||d===void 0||d.call(n,u),E(!0)}}),proFieldProps:f,filedConfig:{valueType:h}},s))})}):(0,o.jsx)(j.Z,(0,t.Z)({valueType:"password",fieldProps:n,proFieldProps:f,filedConfig:{valueType:h}},s))},O=c;O.Password=L,O.displayName="ProFormComponent",A.Z=O},80821:function($,A,e){"use strict";e.d(A,{Z:function(){return j}});var _=e(5574),t=e.n(_),x=e(24963),g=e(86738),p=e(14726),U=e(83062),y=e(67294),D=e(85893);function j(o){var r=(0,y.useState)(!1),i=t()(r,2),h=i[0],c=i[1],m=(0,y.useContext)(x.Z),L=m.lang,O=m.notice,M=m.message,v=function(){c(!0),o.action().then(function(f){if(c(!1),typeof o.onSuccess=="function"&&o.onSuccess(f),o.messageSuccess){var s="";typeof o.messageSuccess=="function"?s=o.messageSuccess(f):s=o.messageSuccess,s.indexOf(".")>-1&&(s=L(s)),o.asynced?M.info(s):M.success(s)}}).catch(function(f){c(!1),typeof o.onError=="function"&&o.onError(f)})};return o.confirm?(0,D.jsx)(g.Z,{style:{width:500},title:o.confirmTitle?o.confirmTitle:L("notification.title.tip"),description:o.confirm,onConfirm:v,okText:"Yes",cancelText:"No",children:(0,D.jsx)(p.ZP,{disabled:o.disabled,icon:o.icon,loading:h,danger:o.danger,type:o.type,children:o.children})}):(0,D.jsx)(U.Z,{title:o.tips,children:(0,D.jsx)(p.ZP,{disabled:o.disabled,icon:o.icon,loading:h,onClick:v,danger:o.danger,type:o.type,children:o.children})})}},54964:function($,A,e){"use strict";var _=e(78267),t=e.n(_),x=e(75458),g=e.n(x),p=e(67294),U=e(12320),y=e.n(U),D=e(89629),j=e(85893),o={convertEol:!0,fontFamily:'Menlo, Monaco, "Courier New", monospace',fontWeight:400,fontSize:16,cursorStyle:"block",cursorBlink:!0,theme:{foreground:"#bfbfbf",cursor:"gray",selectionForeground:"#ffffff"}},r=new U.Terminal(o),i=new x.SearchAddon,h=new _.FitAddon,c=(0,p.forwardRef)(function(m,L){return(0,p.useEffect)(function(){window.addEventListener("resize",function(){m.showInModal||h.fit()}),r.loadAddon(h),r.loadAddon(i),r.open(document.getElementById("terminal-container")),h.fit()},[]),(0,p.useImperativeHandle)(L,function(){return{write:function(M){r.write(M)},clear:function(){r.clear()},getTerminal:function(){return r},findNext:function(M){i.findNext(M)},findPrev:function(M){i.findPrevious(M)},fit:function(){h.fit()},onData:function(M){r.onData(M)}}}),(0,j.jsx)("div",{id:"terminal-container",style:{width:m.width?m.width:"100%",height:m.height?m.height:"500px"}})});A.Z=c},24963:function($,A,e){"use strict";var _=e(67294),t=(0,_.createContext)({});A.Z=t},2742:function($,A,e){"use strict";e.r(A),e.d(A,{default:function(){return u}});var _=e(15009),t=e.n(_),x=e(99289),g=e.n(x),p=e(5574),U=e.n(p),y=e(62597),D=e(38345),j=e(97269),o=e(62370),r=e(5966),i=e(97462),h=e(54006),c=e(67294),m=e(71230),L=e(15746),O=e(34041),M=e(14726),v=e(42075),n=e(54964),f=e(80821),s=e(23430),a=e(93162),S=e.n(a),l=e(60335),E=e(85893),G;function u(){var d=(0,c.useState)("500"),B=U()(d,2),P=B[0],R=B[1],K=(0,h.useParams)(),I=(0,c.useRef)(),w=(0,h.useModel)("subscriber");w.addDataHandler("container:log:"+K.id,function(W){var C,T;(C=I.current)===null||C===void 0||C.fit(),(T=I.current)===null||T===void 0||T.write(W.data)});var N=function(){var W=g()(t()().mark(function C(){var T,Z,b;return t()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(!K.id){z.next=5;break}return z.next=3,(0,y.Tb)({md5:(T=K.id)!==null&&T!==void 0?T:"",lineTotal:parseInt(P)});case 3:b=z.sent,(Z=I.current)===null||Z===void 0||Z.fit();case 5:case"end":return z.stop()}},C)}));return function(){return W.apply(this,arguments)}}();return(0,c.useEffect)(function(){var W,C;return(W=I.current)===null||W===void 0||W.fit(),(C=I.current)===null||C===void 0||C.clear(),N(),function(){w.progress.close("container:log:"+K.id)}},[P]),(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)(D.Z,{direction:"column",gutter:[0,10],children:[(0,E.jsx)(j.A,{submitter:!1,layout:"horizontal",onValuesChange:function(C,T){R(T.lineTotal)},children:(0,E.jsxs)(m.Z,{gutter:[20,0],children:[(0,E.jsx)(L.Z,{span:8,children:(0,E.jsx)(o.Z,{name:"lineTotal",initialValue:"500",label:"\u83B7\u53D6\u65E5\u5FD7\u6761\u6570",children:(0,E.jsxs)(O.Z,{defaultValue:"500",children:[(0,E.jsx)(O.Z.Option,{value:"100",children:"100\u6761\u65E5\u5FD7\u6570\u636E"}),(0,E.jsx)(O.Z.Option,{value:"200",children:"200\u6761\u65E5\u5FD7\u6570\u636E"}),(0,E.jsx)(O.Z.Option,{value:"500",children:"500\u6761\u65E5\u5FD7\u6570\u636E"}),(0,E.jsx)(O.Z.Option,{value:"1000",children:"1000\u6761\u65E5\u5FD7\u6570\u636E"}),(0,E.jsx)(O.Z.Option,{value:"-1",children:"\u5168\u90E8\uFF08\u4E0B\u8F7D\u53EF\u89C1\uFF09"})]})})}),(0,E.jsx)(L.Z,{children:(0,E.jsx)(M.ZP,{onClick:function(){var C;(C=I.current)===null||C===void 0||C.clear()},children:"\u6E05\u5C4F"})}),(0,E.jsx)(L.Z,{children:(0,E.jsx)(r.Z,{label:"\u67E5\u627E",name:"keywork"})}),(0,E.jsx)(L.Z,{children:(0,E.jsx)(i.Z,{name:["keywork"],children:function(C){var T=C.keywork;return(0,E.jsxs)(v.Z,{size:10,children:[(0,E.jsx)(M.ZP,{onClick:function(){var b;(b=I.current)===null||b===void 0||b.findNext(T)},children:"\u4E0B\u4E00\u4E2A"},"next"),(0,E.jsx)(M.ZP,{onClick:function(){var b;(b=I.current)===null||b===void 0||b.findPrev(T)},children:"\u4E0A\u4E00\u4E2A"},"prev")]})}})}),(0,E.jsx)(L.Z,{children:(0,E.jsx)(f.Z,{icon:(0,E.jsx)(s.Z,{}),action:function(){var C;return(0,y.XH)({md5:(C=K.id)!==null&&C!==void 0?C:"",lineTotal:parseInt(P)})},onSuccess:function(C){var T;(0,l.jV)({md5:(T=K.id)!==null&&T!==void 0?T:""}).then(function(Z){var b=new Blob([C],{type:"text/plain"});(0,a.saveAs)(b,Z.data.info.Name.replaceAll("/","")+"_"+new Date().toLocaleDateString()+".log")})},messageSuccess:"\u5BFC\u51FA\u6210\u529F",children:"\u4E0B\u8F7D\u65E5\u5FD7"})})]})}),(0,E.jsx)(n.Z,{ref:I,height:"580px"})]})})}},62597:function($,A,e){"use strict";e.d(A,{$G:function(){return U},Ct:function(){return L},Tb:function(){return o},XH:function(){return i},cl:function(){return D},iE:function(){return c},lK:function(){return n},xb:function(){return M}});var _=e(15009),t=e.n(_),x=e(99289),g=e.n(x),p=e(54006);function U(s){return y.apply(this,arguments)}function y(){return y=g()(t()().mark(function s(a){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,p.request)("/api/app/site/create-by-image",{method:"POST",data:a}));case 1:case"end":return l.stop()}},s)})),y.apply(this,arguments)}function D(s){return j.apply(this,arguments)}function j(){return j=g()(t()().mark(function s(a){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,p.request)("/api/app/site/get-list",{method:"POST",data:a}));case 1:case"end":return l.stop()}},s)})),j.apply(this,arguments)}function o(s){return r.apply(this,arguments)}function r(){return r=g()(t()().mark(function s(a){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a.download=!1,l.next=3,(0,p.request)("/api/app/log/run",{method:"POST",data:a});case 3:return l.abrupt("return",l.sent);case 4:case"end":return l.stop()}},s)})),r.apply(this,arguments)}function i(s){return h.apply(this,arguments)}function h(){return h=g()(t()().mark(function s(a){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a.download=!0,l.next=3,(0,p.request)("/api/app/log/run",{method:"POST",data:a,responseType:"blob"});case 3:return l.abrupt("return",l.sent);case 4:case"end":return l.stop()}},s)})),h.apply(this,arguments)}function c(s){return m.apply(this,arguments)}function m(){return m=g()(t()().mark(function s(a){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,p.request)("/api/app/site/get-detail",{data:a,method:"POST"});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},s)})),m.apply(this,arguments)}function L(s){return O.apply(this,arguments)}function O(){return O=g()(t()().mark(function s(a){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,p.request)("/api/app/container/delete",{method:"POST",data:a}));case 1:case"end":return l.stop()}},s)})),O.apply(this,arguments)}function M(s){return v.apply(this,arguments)}function v(){return v=g()(t()().mark(function s(a){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,p.request)("/api/app/site/delete",{method:"POST",data:a}));case 1:case"end":return l.stop()}},s)})),v.apply(this,arguments)}function n(s){return f.apply(this,arguments)}function f(){return f=g()(t()().mark(function s(a){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,p.request)("/api/app/site/update-title",{method:"POST",data:a});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},s)})),f.apply(this,arguments)}},60335:function($,A,e){"use strict";e.d(A,{IE:function(){return D},IW:function(){return U},KK:function(){return c},LJ:function(){return L},Re:function(){return M},eE:function(){return i},jV:function(){return o}});var _=e(15009),t=e.n(_),x=e(99289),g=e.n(x),p=e(54006);function U(n){return y.apply(this,arguments)}function y(){return y=g()(t()().mark(function n(f){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/status",{method:"POST",data:f}));case 1:case"end":return a.stop()}},n)})),y.apply(this,arguments)}function D(n){return j.apply(this,arguments)}function j(){return j=g()(t()().mark(function n(f){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/get-list",{data:f,method:"POST"}));case 1:case"end":return a.stop()}},n)})),j.apply(this,arguments)}function o(n){return r.apply(this,arguments)}function r(){return r=g()(t()().mark(function n(f){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/get-detail",{data:f,method:"POST"}));case 1:case"end":return a.stop()}},n)})),r.apply(this,arguments)}function i(n){return h.apply(this,arguments)}function h(){return h=g()(t()().mark(function n(f){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/update",{data:f,method:"POST"}));case 1:case"end":return a.stop()}},n)})),h.apply(this,arguments)}function c(){return m.apply(this,arguments)}function m(){return m=g()(t()().mark(function n(){return t()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,p.request)("/api/app/container/prune",{method:"POST"}));case 1:case"end":return s.stop()}},n)})),m.apply(this,arguments)}function L(n){return O.apply(this,arguments)}function O(){return O=g()(t()().mark(function n(f){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/export",{method:"POST",data:f,responseType:"blob"}));case 1:case"end":return a.stop()}},n)})),O.apply(this,arguments)}function M(n){return v.apply(this,arguments)}function v(){return v=g()(t()().mark(function n(f){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,p.request)("/api/app/container/commit",{method:"POST",data:f}));case 1:case"end":return a.stop()}},n)})),v.apply(this,arguments)}},86738:function($,A,e){"use strict";e.d(A,{Z:function(){return G}});var _=e(67294),t=e(21640),x=e(93967),g=e.n(x),p=e(21770),U=e(98423),y=e(53124),D=e(55241),j=e(86743),o=e(81643),r=e(14726),i=e(33671),h=e(10110),c=e(24457),m=e(66330),L=e(83559);const O=u=>{const{componentCls:d,iconCls:B,antCls:P,zIndexPopup:R,colorText:K,colorWarning:I,marginXXS:w,marginXS:N,fontSize:W,fontWeightStrong:C,colorTextHeading:T}=u;return{[d]:{zIndex:R,[`&${P}-popover`]:{fontSize:W},[`${d}-message`]:{marginBottom:N,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${d}-message-icon ${B}`]:{color:I,fontSize:W,lineHeight:1,marginInlineEnd:N},[`${d}-title`]:{fontWeight:C,color:T,"&:only-child":{fontWeight:"normal"}},[`${d}-description`]:{marginTop:w,color:K}},[`${d}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:N}}}}},M=u=>{const{zIndexPopupBase:d}=u;return{zIndexPopup:d+60}};var v=(0,L.I$)("Popconfirm",u=>O(u),M,{resetStyle:!1}),n=function(u,d){var B={};for(var P in u)Object.prototype.hasOwnProperty.call(u,P)&&d.indexOf(P)<0&&(B[P]=u[P]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,P=Object.getOwnPropertySymbols(u);R{const{prefixCls:d,okButtonProps:B,cancelButtonProps:P,title:R,description:K,cancelText:I,okText:w,okType:N="primary",icon:W=_.createElement(t.Z,null),showCancel:C=!0,close:T,onConfirm:Z,onCancel:b,onPopupClick:k}=u,{getPrefixCls:z}=_.useContext(y.E_),[H]=(0,h.Z)("Popconfirm",c.Z.Popconfirm),X=(0,o.Z)(R),Y=(0,o.Z)(K);return _.createElement("div",{className:`${d}-inner-content`,onClick:k},_.createElement("div",{className:`${d}-message`},W&&_.createElement("span",{className:`${d}-message-icon`},W),_.createElement("div",{className:`${d}-message-text`},X&&_.createElement("div",{className:`${d}-title`},X),Y&&_.createElement("div",{className:`${d}-description`},Y))),_.createElement("div",{className:`${d}-buttons`},C&&_.createElement(r.ZP,Object.assign({onClick:b,size:"small"},P),I||(H==null?void 0:H.cancelText)),_.createElement(j.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,i.nx)(N)),B),actionFn:Z,close:T,prefixCls:z("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},w||(H==null?void 0:H.okText))))};var a=u=>{const{prefixCls:d,placement:B,className:P,style:R}=u,K=n(u,["prefixCls","placement","className","style"]),{getPrefixCls:I}=_.useContext(y.E_),w=I("popconfirm",d),[N]=v(w);return N(_.createElement(m.ZP,{placement:B,className:g()(w,P),style:R,content:_.createElement(f,Object.assign({prefixCls:w},K))}))},S=function(u,d){var B={};for(var P in u)Object.prototype.hasOwnProperty.call(u,P)&&d.indexOf(P)<0&&(B[P]=u[P]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,P=Object.getOwnPropertySymbols(u);R{var B,P;const{prefixCls:R,placement:K="top",trigger:I="click",okType:w="primary",icon:N=_.createElement(t.Z,null),children:W,overlayClassName:C,onOpenChange:T,onVisibleChange:Z}=u,b=S(u,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:k}=_.useContext(y.E_),[z,H]=(0,p.Z)(!1,{value:(B=u.open)!==null&&B!==void 0?B:u.visible,defaultValue:(P=u.defaultOpen)!==null&&P!==void 0?P:u.defaultVisible}),X=(F,V)=>{H(F,!0),Z==null||Z(F),T==null||T(F,V)},Y=F=>{X(!1,F)},Q=F=>{var V;return(V=u.onConfirm)===null||V===void 0?void 0:V.call(void 0,F)},q=F=>{var V;X(!1,F),(V=u.onCancel)===null||V===void 0||V.call(void 0,F)},ee=(F,V)=>{const{disabled:re=!1}=u;re||X(F,V)},J=k("popconfirm",R),ne=g()(J,C),[te]=v(J);return te(_.createElement(D.Z,Object.assign({},(0,U.Z)(b,["title"]),{trigger:I,placement:K,onOpenChange:ee,open:z,ref:d,overlayClassName:ne,content:_.createElement(f,Object.assign({okType:w,icon:N},u,{prefixCls:J,close:Y,onConfirm:Q,onCancel:q})),"data-popover-inject":!0}),W))});E._InternalPanelDoNotUseOrYouWillBeFired=a;var G=E},93162:function($,A,e){var _,t,x;(function(g,p){t=[],_=p,x=typeof _=="function"?_.apply(A,t):_,x!==void 0&&($.exports=x)})(this,function(){"use strict";function g(r,i){return typeof i=="undefined"?i={autoBom:!1}:typeof i!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}function p(r,i,h){var c=new XMLHttpRequest;c.open("GET",r),c.responseType="blob",c.onload=function(){o(c.response,i,h)},c.onerror=function(){console.error("could not download file")},c.send()}function U(r){var i=new XMLHttpRequest;i.open("HEAD",r,!1);try{i.send()}catch(h){}return 200<=i.status&&299>=i.status}function y(r){try{r.dispatchEvent(new MouseEvent("click"))}catch(h){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(i)}}var D=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof e.g=="object"&&e.g.global===e.g?e.g:void 0,j=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=D.saveAs||(typeof window!="object"||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!j?function(r,i,h){var c=D.URL||D.webkitURL,m=document.createElement("a");i=i||r.name||"download",m.download=i,m.rel="noopener",typeof r=="string"?(m.href=r,m.origin===location.origin?y(m):U(m.href)?p(r,i,h):y(m,m.target="_blank")):(m.href=c.createObjectURL(r),setTimeout(function(){c.revokeObjectURL(m.href)},4e4),setTimeout(function(){y(m)},0))}:"msSaveOrOpenBlob"in navigator?function(r,i,h){if(i=i||r.name||"download",typeof r!="string")navigator.msSaveOrOpenBlob(g(r,h),i);else if(U(r))p(r,i,h);else{var c=document.createElement("a");c.href=r,c.target="_blank",setTimeout(function(){y(c)})}}:function(r,i,h,c){if(c=c||open("","_blank"),c&&(c.document.title=c.document.body.innerText="downloading..."),typeof r=="string")return p(r,i,h);var m=r.type==="application/octet-stream",L=/constructor/i.test(D.HTMLElement)||D.safari,O=/CriOS\/[\d]+/.test(navigator.userAgent);if((O||m&&L||j)&&typeof FileReader!="undefined"){var M=new FileReader;M.onloadend=function(){var f=M.result;f=O?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=f:location=f,c=null},M.readAsDataURL(r)}else{var v=D.URL||D.webkitURL,n=v.createObjectURL(r);c?c.location=n:location.href=n,c=null,setTimeout(function(){v.revokeObjectURL(n)},4e4)}});D.saveAs=o.saveAs=o,$.exports=o})}}]); diff --git a/asset/static/p__app__recycle.b16eff13.async.js b/asset/static/p__app__recycle.b16eff13.async.js deleted file mode 100644 index f6bb60a3..00000000 --- a/asset/static/p__app__recycle.b16eff13.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1610],{80821:function(B,d,t){t.d(d,{Z:function(){return j}});var _=t(5574),a=t.n(_),i=t(24963),u=t(86738),s=t(14726),E=t(83062),h=t(67294),p=t(85893);function j(r){var D=(0,h.useState)(!1),y=a()(D,2),P=y[0],g=y[1],O=(0,h.useContext)(i.Z),C=O.lang,M=O.notice,L=O.message,R=function(){g(!0),r.action().then(function(v){if(g(!1),typeof r.onSuccess=="function"&&r.onSuccess(v),r.messageSuccess){var n="";typeof r.messageSuccess=="function"?n=r.messageSuccess(v):n=r.messageSuccess,n.indexOf(".")>-1&&(n=C(n)),r.asynced?L.info(n):L.success(n)}}).catch(function(v){g(!1),typeof r.onError=="function"&&r.onError(v)})};return r.confirm?(0,p.jsx)(u.Z,{style:{width:500},title:r.confirmTitle?r.confirmTitle:C("notification.title.tip"),description:r.confirm,onConfirm:R,okText:"Yes",cancelText:"No",children:(0,p.jsx)(s.ZP,{disabled:r.disabled,icon:r.icon,loading:P,danger:r.danger,type:r.type,children:r.children})}):(0,p.jsx)(E.Z,{title:r.tips,children:(0,p.jsx)(s.ZP,{disabled:r.disabled,icon:r.icon,loading:P,onClick:R,danger:r.danger,type:r.type,children:r.children})})}},78451:function(B,d,t){t.d(d,{Z:function(){return i}});var _=t(67294),a=t(85893);function i(u){return(0,a.jsx)("span",{style:{wordBreak:"break-word"},children:u.content})}},24963:function(B,d,t){var _=t(67294),a=(0,_.createContext)({});d.Z=a},99343:function(B,d,t){t.r(d),t.d(d,{default:function(){return w}});var _=t(15009),a=t.n(_),i=t(99289),u=t.n(i),s=t(90078),E=t(10641),h=t(62597),p=t(14726),j=t(83062),r=t(42075),D=t(50136),y=t(54006),P=t(87462),g=t(67294),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},C=O,M=t(84089),L=function(S,f){return g.createElement(M.Z,(0,P.Z)({},S,{ref:f,icon:C}))},R=g.forwardRef(L),I=R,v=t(96974),n=t(80821),l=t(67255),T=t(78451),e=t(85893);function w(){var W=(0,v.UO)(),S=(0,g.useRef)();return(0,g.useEffect)(function(){var f;(f=S.current)===null||f===void 0||f.reload()},[W]),(0,e.jsx)(s._z,{header:{extra:[(0,e.jsx)(p.ZP,{type:"primary",children:(0,e.jsx)(y.Link,{to:"/app/create/image",children:"\u521B\u5EFA\u5BB9\u5668"})},"create")]},children:(0,e.jsx)(E.Z,{scroll:{x:"max-content"},actionRef:S,columns:[{title:"\u540D\u79F0",dataIndex:"siteTitle"},{title:"\u6807\u8BC6",dataIndex:"siteName"},{title:"\u6700\u540E\u9519\u8BEF",dataIndex:"message",width:250,render:function(b,o,x,m,c){return(0,e.jsx)(T.Z,{content:o.message})}},{title:"\u5220\u9664\u65E5\u671F",ellipsis:!0,dataIndex:"deletedAt",search:!1,width:180,render:function(b,o,x,m,c){return new Date(o.deletedAt).toLocaleString()}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",width:100,render:function(b,o,x,m){return[(0,e.jsx)(y.Link,{to:"/app/create/image?id="+o.id,type:"link",children:(0,e.jsx)(j.Z,{title:"\u518D\u6B21\u6784\u5EFA",children:(0,e.jsx)(I,{})})},"rebuild")]}}],rowKey:"id",request:function(){var f=u()(a()().mark(function b(o,x,m){var c,K,U;return a()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,(0,h.cl)({pageSize:(c=o.pageSize)!==null&&c!==void 0?c:10,page:(K=o.current)!==null&&K!==void 0?K:1,isDelete:!0,siteTitle:o.siteTitle,siteName:o.siteName});case 2:return U=A.sent,A.abrupt("return",{data:U.data.list,success:!0,total:U.data.total});case 4:case"end":return A.stop()}},b)}));return function(b,o,x){return f.apply(this,arguments)}}(),rowSelection:{defaultSelectedRowKeys:[],alwaysShowAlert:!0},tableAlertOptionRender:function(b){var o=b.selectedRowKeys;return(0,e.jsx)(r.Z,{size:16,children:(0,e.jsx)(n.Z,{danger:!0,type:"primary",action:function(){return(0,h.xb)({id:o})},onSuccess:function(){var m,c;return!((m=S.current)===null||m===void 0)&&m.reloadAndRest&&((c=S.current)===null||c===void 0||c.reloadAndRest()),!0},onError:function(){var m,c;return!((m=S.current)===null||m===void 0)&&m.reset&&((c=S.current)===null||c===void 0||c.reset()),!0},messageSuccess:"\u5220\u9664\u6210\u529F",children:"\u6279\u91CF\u5220\u9664"})})},pagination:(0,l.O)(),search:{collapsed:!1},tableExtraRender:function(){return(0,e.jsx)(D.Z,{mode:"horizontal",selectedKeys:["recycle"],items:[{label:(0,e.jsx)(y.Link,{to:"/app/list",replace:!0,children:"\u5BB9\u5668\u5217\u8868"}),key:"all"},{label:(0,e.jsx)(y.Link,{to:"/app/recycle",replace:!0,children:"\u56DE\u6536\u7AD9"}),key:"recycle"}]})}})})}},62597:function(B,d,t){t.d(d,{$G:function(){return E},Ct:function(){return C},Tb:function(){return r},XH:function(){return y},cl:function(){return p},iE:function(){return g},lK:function(){return I},xb:function(){return L}});var _=t(15009),a=t.n(_),i=t(99289),u=t.n(i),s=t(54006);function E(n){return h.apply(this,arguments)}function h(){return h=u()(a()().mark(function n(l){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/app/site/create-by-image",{method:"POST",data:l}));case 1:case"end":return e.stop()}},n)})),h.apply(this,arguments)}function p(n){return j.apply(this,arguments)}function j(){return j=u()(a()().mark(function n(l){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/app/site/get-list",{method:"POST",data:l}));case 1:case"end":return e.stop()}},n)})),j.apply(this,arguments)}function r(n){return D.apply(this,arguments)}function D(){return D=u()(a()().mark(function n(l){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l.download=!1,e.next=3,(0,s.request)("/api/app/log/run",{method:"POST",data:l});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},n)})),D.apply(this,arguments)}function y(n){return P.apply(this,arguments)}function P(){return P=u()(a()().mark(function n(l){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l.download=!0,e.next=3,(0,s.request)("/api/app/log/run",{method:"POST",data:l,responseType:"blob"});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},n)})),P.apply(this,arguments)}function g(n){return O.apply(this,arguments)}function O(){return O=u()(a()().mark(function n(l){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.request)("/api/app/site/get-detail",{data:l,method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},n)})),O.apply(this,arguments)}function C(n){return M.apply(this,arguments)}function M(){return M=u()(a()().mark(function n(l){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/app/container/delete",{method:"POST",data:l}));case 1:case"end":return e.stop()}},n)})),M.apply(this,arguments)}function L(n){return R.apply(this,arguments)}function R(){return R=u()(a()().mark(function n(l){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.request)("/api/app/site/delete",{method:"POST",data:l}));case 1:case"end":return e.stop()}},n)})),R.apply(this,arguments)}function I(n){return v.apply(this,arguments)}function v(){return v=u()(a()().mark(function n(l){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.request)("/api/app/site/update-title",{method:"POST",data:l});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},n)})),v.apply(this,arguments)}},67255:function(B,d,t){t.d(d,{O:function(){return _},j:function(){return a}});function _(){var i,u=parseInt((i=localStorage.getItem("dpanel-pagesize"))!==null&&i!==void 0?i:"0");return{showSizeChanger:!0,defaultPageSize:u!=null?u:20}}function a(i){var u="dpanel-table-column-".concat(i),s={};if(localStorage.getItem(u)){var E;s=JSON.parse((E=localStorage.getItem(u))!==null&&E!==void 0?E:"{}")}return{defaultValue:s,onChange:function(p){localStorage.setItem("dpanel-table-column-".concat(i),JSON.stringify(p))}}}}}]); diff --git a/asset/static/p__app__recycle.da316054.async.js b/asset/static/p__app__recycle.da316054.async.js new file mode 100644 index 00000000..fb860108 --- /dev/null +++ b/asset/static/p__app__recycle.da316054.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1610],{80821:function(A,c,n){n.d(c,{Z:function(){return M}});var f=n(5574),u=n.n(f),o=n(24963),s=n(86738),l=n(14726),O=n(83062),E=n(67294),p=n(85893);function M(r){var T=(0,E.useState)(!1),g=u()(T,2),v=g[0],D=g[1],P=(0,E.useContext)(o.Z),y=P.lang,j=P.notice,C=P.message,_=function(){D(!0),r.action().then(function(h){if(D(!1),typeof r.onSuccess=="function"&&r.onSuccess(h),r.messageSuccess){var t="";typeof r.messageSuccess=="function"?t=r.messageSuccess(h):t=r.messageSuccess,t.indexOf(".")>-1&&(t=y(t)),r.asynced?C.info(t):C.success(t)}}).catch(function(h){D(!1),typeof r.onError=="function"&&r.onError(h)})};return r.confirm?(0,p.jsx)(s.Z,{style:{width:500},title:r.confirmTitle?r.confirmTitle:y("notification.title.tip"),description:r.confirm,onConfirm:_,okText:"Yes",cancelText:"No",children:(0,p.jsx)(l.ZP,{disabled:r.disabled,icon:r.icon,loading:v,danger:r.danger,type:r.type,children:r.children})}):(0,p.jsx)(O.Z,{title:r.tips,children:(0,p.jsx)(l.ZP,{disabled:r.disabled,icon:r.icon,loading:v,onClick:_,danger:r.danger,type:r.type,children:r.children})})}},78451:function(A,c,n){n.d(c,{Z:function(){return o}});var f=n(67294),u=n(85893);function o(s){return(0,u.jsx)("span",{style:{wordBreak:"break-word"},children:s.content})}},24963:function(A,c,n){var f=n(67294),u=(0,f.createContext)({});c.Z=u},67108:function(A,c,n){n.r(c),n.d(c,{default:function(){return L}});var f=n(15009),u=n.n(f),o=n(99289),s=n.n(o),l=n(90078),O=n(10641),E=n(62597),p=n(14726),M=n(83062),r=n(42075),T=n(50136),g=n(54006),v=n(43425),D=n(67294),P=n(96974),y=n(80821),j=n(67255),C=n(78451),_=n(85893);function L(){var h=(0,P.UO)(),t=(0,D.useRef)();return(0,D.useEffect)(function(){var a;(a=t.current)===null||a===void 0||a.reload()},[h]),(0,_.jsx)(l._z,{header:{extra:[(0,_.jsx)(p.ZP,{type:"primary",children:(0,_.jsx)(g.Link,{to:"/app/create/image",children:"\u521B\u5EFA\u5BB9\u5668"})},"create")]},children:(0,_.jsx)(O.Z,{scroll:{x:"max-content"},actionRef:t,columns:[{title:"\u540D\u79F0",dataIndex:"siteTitle"},{title:"\u6807\u8BC6",dataIndex:"siteName"},{title:"\u6700\u540E\u9519\u8BEF",dataIndex:"message",width:250,render:function(i,e,R,m,d){return(0,_.jsx)(C.Z,{content:e.message})}},{title:"\u5220\u9664\u65E5\u671F",ellipsis:!0,dataIndex:"deletedAt",search:!1,width:180,render:function(i,e,R,m,d){return new Date(e.deletedAt).toLocaleString()}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",width:100,render:function(i,e,R,m){return[(0,_.jsx)(g.Link,{to:"/app/create/image?op=update&id="+e.id,type:"link",children:(0,_.jsx)(M.Z,{title:"\u518D\u6B21\u6784\u5EFA",children:(0,_.jsx)(v.Z,{})})},"rebuild")]}}],rowKey:"id",request:function(){var a=s()(u()().mark(function i(e,R,m){var d,B,U;return u()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,E.cl)({pageSize:(d=e.pageSize)!==null&&d!==void 0?d:10,page:(B=e.current)!==null&&B!==void 0?B:1,isDelete:!0,siteTitle:e.siteTitle,siteName:e.siteName});case 2:return U=b.sent,b.abrupt("return",{data:U.data.list,success:!0,total:U.data.total});case 4:case"end":return b.stop()}},i)}));return function(i,e,R){return a.apply(this,arguments)}}(),rowSelection:{defaultSelectedRowKeys:[],alwaysShowAlert:!0},tableAlertOptionRender:function(i){var e=i.selectedRowKeys;return(0,_.jsx)(r.Z,{size:16,children:(0,_.jsx)(y.Z,{danger:!0,type:"primary",action:function(){return(0,E.xb)({id:e})},onSuccess:function(){var m,d;return!((m=t.current)===null||m===void 0)&&m.reloadAndRest&&((d=t.current)===null||d===void 0||d.reloadAndRest()),!0},onError:function(){var m,d;return!((m=t.current)===null||m===void 0)&&m.reset&&((d=t.current)===null||d===void 0||d.reset()),!0},messageSuccess:"\u5220\u9664\u6210\u529F",children:"\u6279\u91CF\u5220\u9664"})})},pagination:(0,j.O)(),search:{collapsed:!1},tableExtraRender:function(){return(0,_.jsx)(T.Z,{mode:"horizontal",selectedKeys:["recycle"],items:[{label:(0,_.jsx)(g.Link,{to:"/app/list",replace:!0,children:"\u5BB9\u5668\u5217\u8868"}),key:"all"},{label:(0,_.jsx)(g.Link,{to:"/app/recycle",replace:!0,children:"\u56DE\u6536\u7AD9"}),key:"recycle"}]})}})})}},62597:function(A,c,n){n.d(c,{$G:function(){return O},Ct:function(){return y},Tb:function(){return r},XH:function(){return g},cl:function(){return p},iE:function(){return D},lK:function(){return L},xb:function(){return C}});var f=n(15009),u=n.n(f),o=n(99289),s=n.n(o),l=n(54006);function O(t){return E.apply(this,arguments)}function E(){return E=s()(u()().mark(function t(a){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/app/site/create-by-image",{method:"POST",data:a}));case 1:case"end":return e.stop()}},t)})),E.apply(this,arguments)}function p(t){return M.apply(this,arguments)}function M(){return M=s()(u()().mark(function t(a){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/app/site/get-list",{method:"POST",data:a}));case 1:case"end":return e.stop()}},t)})),M.apply(this,arguments)}function r(t){return T.apply(this,arguments)}function T(){return T=s()(u()().mark(function t(a){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.download=!1,e.next=3,(0,l.request)("/api/app/log/run",{method:"POST",data:a});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},t)})),T.apply(this,arguments)}function g(t){return v.apply(this,arguments)}function v(){return v=s()(u()().mark(function t(a){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.download=!0,e.next=3,(0,l.request)("/api/app/log/run",{method:"POST",data:a,responseType:"blob"});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},t)})),v.apply(this,arguments)}function D(t){return P.apply(this,arguments)}function P(){return P=s()(u()().mark(function t(a){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.request)("/api/app/site/get-detail",{data:a,method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},t)})),P.apply(this,arguments)}function y(t){return j.apply(this,arguments)}function j(){return j=s()(u()().mark(function t(a){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/app/container/delete",{method:"POST",data:a}));case 1:case"end":return e.stop()}},t)})),j.apply(this,arguments)}function C(t){return _.apply(this,arguments)}function _(){return _=s()(u()().mark(function t(a){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/app/site/delete",{method:"POST",data:a}));case 1:case"end":return e.stop()}},t)})),_.apply(this,arguments)}function L(t){return h.apply(this,arguments)}function h(){return h=s()(u()().mark(function t(a){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.request)("/api/app/site/update-title",{method:"POST",data:a});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},t)})),h.apply(this,arguments)}},67255:function(A,c,n){n.d(c,{O:function(){return f},j:function(){return u}});function f(){var o,s=parseInt((o=localStorage.getItem("dpanel-pagesize"))!==null&&o!==void 0?o:"0");return{showSizeChanger:!0,defaultPageSize:s!=null?s:20}}function u(o){var s="dpanel-table-column-".concat(o),l={};if(localStorage.getItem(s)){var O;l=JSON.parse((O=localStorage.getItem(s))!==null&&O!==void 0?O:"{}")}return{defaultValue:l,onChange:function(p){localStorage.setItem("dpanel-table-column-".concat(o),JSON.stringify(p))}}}}}]); diff --git a/asset/static/p__compose__create.7362ecb6.async.js b/asset/static/p__compose__create.7362ecb6.async.js deleted file mode 100644 index 93894fe4..00000000 --- a/asset/static/p__compose__create.7362ecb6.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1102],{64317:function(re,W,e){var f=e(1413),a=e(45987),H=e(22270),P=e(67294),y=e(66758),T=e(73552),w=e(85893),M=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],A=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],F=function(I,b){var $=I.fieldProps,Y=I.children,v=I.params,l=I.proFieldProps,x=I.mode,s=I.valueEnum,t=I.request,J=I.showSearch,m=I.options,j=(0,a.Z)(I,M),V=(0,P.useContext)(y.Z);return(0,w.jsx)(T.Z,(0,f.Z)((0,f.Z)({valueEnum:(0,H.h)(s),request:t,params:v,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,f.Z)({options:m,mode:x,showSearch:J,getPopupContainer:V.getPopupContainer},$),ref:b,proFieldProps:l},j),{},{children:Y}))},_=P.forwardRef(function(D,I){var b=D.fieldProps,$=D.children,Y=D.params,v=D.proFieldProps,l=D.mode,x=D.valueEnum,s=D.request,t=D.options,J=(0,a.Z)(D,A),m=(0,f.Z)({options:t,mode:l||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},b),j=(0,P.useContext)(y.Z);return(0,w.jsx)(T.Z,(0,f.Z)((0,f.Z)({valueEnum:(0,H.h)(x),request:s,params:Y,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,f.Z)({getPopupContainer:j.getPopupContainer},m),ref:I,proFieldProps:v},J),{},{children:$}))}),L=P.forwardRef(F),E=_,g=L;g.SearchSelect=E,g.displayName="ProFormComponent",W.Z=g},52688:function(re,W,e){var f=e(1413),a=e(45987),H=e(67294),P=e(73552),y=e(85893),T=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],w=H.forwardRef(function(M,A){var F=M.fieldProps,_=M.unCheckedChildren,L=M.checkedChildren,E=M.proFieldProps,g=(0,a.Z)(M,T);return(0,y.jsx)(P.Z,(0,f.Z)({valueType:"switch",fieldProps:(0,f.Z)({unCheckedChildren:_,checkedChildren:L},F),ref:A,valuePropName:"checked",proFieldProps:E,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},g))});W.Z=w},90672:function(re,W,e){var f=e(1413),a=e(45987),H=e(67294),P=e(73552),y=e(85893),T=["fieldProps","proFieldProps"],w=function(A,F){var _=A.fieldProps,L=A.proFieldProps,E=(0,a.Z)(A,T);return(0,y.jsx)(P.Z,(0,f.Z)({ref:F,valueType:"textarea",fieldProps:_,proFieldProps:L},E))};W.Z=H.forwardRef(w)},2236:function(re,W,e){e.d(W,{S:function(){return Y}});var f=e(1413),a=e(4942),H=e(71002),P=e(45987),y=e(12044),T=e(28459),w=e(93967),M=e.n(w),A=e(97435),F=e(67294),_=e(73935),L=e(76509),E=e(98082),g=function(l){return(0,a.Z)({},l.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:(0,E.uK)(l.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(l.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:l.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:l.colorText},"&-right":{color:l.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function D(v){return(0,E.Xj)("ProLayoutFooterToolbar",function(l){var x=(0,f.Z)((0,f.Z)({},l),{},{componentCls:".".concat(v)});return[g(x)]})}function I(v,l){var x=l.stylish;return(0,E.Xj)("ProLayoutFooterToolbarStylish",function(s){var t=(0,f.Z)((0,f.Z)({},s),{},{componentCls:".".concat(v)});return x?[(0,a.Z)({},"".concat(t.componentCls),x==null?void 0:x(t))]:[]})}var b=e(85893),$=["children","className","extra","portalDom","style","renderContent"],Y=function(l){var x=l.children,s=l.className,t=l.extra,J=l.portalDom,m=J===void 0?!0:J,j=l.style,V=l.renderContent,r=(0,P.Z)(l,$),ye=(0,F.useContext)(T.ZP.ConfigContext),Ze=ye.getPrefixCls,me=ye.getTargetContainer,De=l.prefixCls||Ze("pro"),Q="".concat(De,"-footer-bar"),Ee=D(Q),ae=Ee.wrapSSR,oe=Ee.hashId,B=(0,F.useContext)(L.X),xe=(0,F.useMemo)(function(){var ue=B.hasSiderMenu,Me=B.isMobile,Se=B.siderWidth;if(ue)return Se?Me?"100%":"calc(100% - ".concat(Se,"px)"):"100%"},[B.collapsed,B.hasSiderMenu,B.isMobile,B.siderWidth]),je=(0,F.useMemo)(function(){return(typeof window=="undefined"?"undefined":(0,H.Z)(window))===void 0||(typeof document=="undefined"?"undefined":(0,H.Z)(document))===void 0?null:(me==null?void 0:me())||document.body},[]),be=I("".concat(Q,".").concat(Q,"-stylish"),{stylish:l.stylish}),Fe=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"".concat(Q,"-left ").concat(oe).trim(),children:t}),(0,b.jsx)("div",{className:"".concat(Q,"-right ").concat(oe).trim(),children:x})]});(0,F.useEffect)(function(){return!B||!(B!=null&&B.setHasFooterToolbar)?function(){}:(B==null||B.setHasFooterToolbar(!0),function(){var ue;B==null||(ue=B.setHasFooterToolbar)===null||ue===void 0||ue.call(B,!1)})},[]);var Oe=(0,b.jsx)("div",(0,f.Z)((0,f.Z)({className:M()(s,oe,Q,(0,a.Z)({},"".concat(Q,"-stylish"),!!l.stylish)),style:(0,f.Z)({width:xe},j)},(0,A.Z)(r,["prefixCls"])),{},{children:V?V((0,f.Z)((0,f.Z)((0,f.Z)({},l),B),{},{leftWidth:xe}),Fe):Fe})),Be=!(0,y.j)()||!m||!je?Oe:(0,_.createPortal)(Oe,je,Q);return be.wrapSSR(ae((0,b.jsx)(F.Fragment,{children:Be},Q)))}},76509:function(re,W,e){e.d(W,{X:function(){return a}});var f=e(67294),a=(0,f.createContext)({})},24963:function(re,W,e){var f=e(67294),a=(0,f.createContext)({});W.Z=a},68548:function(re,W,e){e.r(W),e.d(W,{default:function(){return _e}});var f=e(19632),a=e.n(f),H=e(64599),P=e.n(H),y=e(15009),T=e.n(y),w=e(99289),M=e.n(w),A=e(5574),F=e.n(A),_=e(184),L=e(38345),E=e(5966),g=e(67294),D=e(91058),I=e(85576),b=e(83062),$=e(14726),Y=e(94668),v=e(97857),l=e.n(v),x=e(17186),s=e(24739),t=e(85893),J=(0,g.forwardRef)(function(N,ee){var k=(0,g.useRef)();(0,g.useImperativeHandle)(ee,function(){return{addItem:function(Z,O){var G,o=(G=k.current)===null||G===void 0?void 0:G.getList(),i=!1;if(o==null||o.map(function(R){if(R.name==Z){i=!0;return}}),!i){var X;(X=k.current)===null||X===void 0||X.add({name:Z,value:O})}},clear:function(){var Z;(Z=k.current)===null||Z===void 0||(Z=Z.getList())===null||Z===void 0||Z.map(function(O,G){var o;(o=k.current)===null||o===void 0||o.remove(G)})}}});var q={};return N.hideCopyButton===!0&&(q.copyIconProps=!1),N.hideDeleteButton===!0&&(q.deleteIconProps=!1),(0,t.jsx)(x.u,l()(l()({name:N.name,actionRef:k,creatorButtonProps:N.showAddButton?{creatorButtonText:"\u6DFB\u52A0"+(N.label?N.label:N.name)}:!1,min:0},q),{},{children:function(Z,O,G){return(0,t.jsx)(s.UW,{children:N.items.map(function(o){return o.render?(0,t.jsx)("div",{children:o.render&&o.render(Z,O,G)},"".concat(N.name,"-").concat(o.name,"-").concat(Z.key)):(0,t.jsx)(E.Z,{width:o.width,name:o.name,label:o.label,required:o.required,rules:[{required:o.required}],disabled:o.disabled,placeholder:o.placeholder},"".concat(N.name,"-").concat(o.name,"-").concat(Z.key))})})}}))}),m=J,j=e(92067),V=(0,g.forwardRef)(function(N,ee){var k=(0,g.useState)(!1),q=F()(k,2),te=q[0],Z=q[1],O=(0,g.useState)(),G=F()(O,2),o=G[0],i=G[1];return(0,g.useImperativeHandle)(ee,function(){return{}}),(0,t.jsxs)(L.Z,{title:"\u670D\u52A1\u4F9D\u8D56\u66FF\u6362",subTitle:"\u66FF\u6362\u540ECompose\u4E2D\u7684\u670D\u52A1\u5C06\u4E0D\u4F1A\u521B\u5EFA",headerBordered:!0,children:[(0,t.jsx)(I.Z,{title:"\u9009\u62E9\u5BB9\u5668",width:1024,footer:!1,open:te,onCancel:function(){return Z(!1)},children:(0,t.jsx)(j.Z,{onSelect:function(R){o==null||o.setCurrentRowData({target:R.Name}),Z(!1)}})}),(0,t.jsx)(m,{name:"replace",hideCopyButton:!0,hideDeleteButton:!0,items:[{label:"\u4F9D\u8D56\u670D\u52A1",name:"depend",disabled:!0},{label:"\u66FF\u6362\u670D\u52A1",name:"target",render:function(R,le,se){return(0,t.jsx)(E.Z,{label:"\u66FF\u6362\u5DF2\u6709\u5BB9\u5668",name:"target",placeholder:"\u8BF7\u9009\u62E9\u5DF2\u6709\u5BB9\u5668",addonAfter:(0,t.jsx)(b.Z,{title:"\u9009\u62E9\u66FF\u6362\u7684\u5BB9\u5668",children:(0,t.jsx)($.ZP,{type:"primary",icon:(0,t.jsx)(Y.Z,{}),onClick:function(){i(se),Z(!0)}})},R.key)},R.key)}}]})]})}),r=V,ye=e(10523),Ze=e(82034),me=(0,g.forwardRef)(function(N,ee){var k=(0,g.useState)(!1),q=F()(k,2),te=q[0],Z=q[1],O=(0,g.useRef)();return(0,g.useImperativeHandle)(ee,function(){return{edit:function(o,i){var X,R,le;if(!((X=O.current)===null||X===void 0)&&X.resetFields&&((R=O.current)===null||R===void 0||R.resetFields()),(le=O.current)===null||le===void 0||le.setFieldsValue({name:o.name}),i!=null&&i.containerName){var se;(se=O.current)===null||se===void 0||se.setFieldsValue({containerName:i.containerName})}else{var ie;(ie=O.current)===null||ie===void 0||ie.setFieldsValue({containerName:o.container_name})}if(i!=null&&i.environment){var de;(de=O.current)===null||de===void 0||de.setFieldsValue({environment:i.environment})}else{var U;(U=O.current)===null||U===void 0||U.setFieldsValue({environment:o.environment&&Object.keys(o.environment).map(function(z){return{name:z,value:o.environment&&o.environment[z]?o.environment[z]:""}})})}if(i!=null&&i.ports){var he;(he=O.current)===null||he===void 0||he.setFieldsValue({ports:i.ports})}else{var fe;(fe=O.current)===null||fe===void 0||fe.setFieldsValue({ports:o.ports&&o.ports.map(function(z){return{host:z.published,dest:String(z.target)}})})}if(i!=null&&i.volumes){var pe;(pe=O.current)===null||pe===void 0||pe.setFieldsValue({volumes:i.volumes})}else{var ve;(ve=O.current)===null||ve===void 0||ve.setFieldsValue({volumes:o.volumes&&o.volumes.map(function(z){return{host:z.source,dest:z.target,permission:z.read_only?"read":"write"}})})}if(i!=null&&i.replace){var ge;(ge=O.current)===null||ge===void 0||ge.setFieldsValue({replace:i.replace})}else{var Pe;(Pe=O.current)===null||Pe===void 0||Pe.setFieldsValue({replace:o.depends_on&&Object.keys(o.depends_on).map(function(z){return{depend:z,target:""}})})}Z(!0)}}}),(0,t.jsxs)(_.a,{open:te,onOpenChange:function(o){Z(o)},drawerProps:{forceRender:!0},formRef:O,title:"\u7F16\u8F91\u5BB9\u5668\u670D\u52A1",onFinish:function(){var G=M()(T()().mark(function o(i){return T()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return N.onFinish&&N.onFinish(i),R.abrupt("return",!0);case 2:case"end":return R.stop()}},o)}));return function(o){return G.apply(this,arguments)}}(),children:[(0,t.jsxs)(L.Z,{children:[(0,t.jsx)(E.Z,{label:"\u670D\u52A1\u540D\u79F0",name:"name",disabled:!0}),(0,t.jsx)(E.Z,{label:"\u5BB9\u5668\u540D\u79F0",name:"containerName",tooltip:"\u6307\u5B9A\u5BB9\u5668\u540D\u79F0\u540E\uFF0C\u65E0\u6CD5\u591A\u6B21\u90E8\u7F72\u3002\u4E3A\u7A7A\u65F6\u7531 compose \u81EA\u52A8\u751F\u6210"})]}),(0,t.jsx)(Ze.Z,{showInDrawer:!0}),(0,t.jsx)(D.Z,{showAddButton:!0,showInDrawer:!0,showImportButton:!0}),(0,t.jsx)(ye.Z,{showInDrawer:!0}),(0,t.jsx)(r,{})]},"create")}),De=me,Q=e(89063),Ee=e(24963),ae=e(90098),oe=e(45742),B=e(91806),xe=e(27496),je=e(43425),be=e(97269),Fe=e(2236),Oe=e(62370),Be=e(86615),ue=e(97462),Me=e(90672),Se=e(95213),Le=e(95089),Ae=e(54006),Ue=e(63490),Ie=e(42075),We=e(66309),we=e(96074),Re=e(91845);function _e(){var N=(0,g.useContext)(Ee.Z),ee=N.loading,k=(0,Ae.useNavigate)(),q=(0,g.useState)([]),te=F()(q,2),Z=te[0],O=te[1],G=(0,g.useRef)(),o=(0,g.useRef)(),i=(0,g.useRef)(),X=(0,Ae.useSearchParams)(),R=F()(X,2),le=R[0],se=R[1],ie=(0,g.useState)(),de=F()(ie,2),U=de[0],he=de[1],fe=(0,g.useState)("text"),pe=F()(fe,2),ve=pe[0],ge=pe[1],Pe=(0,g.useState)(""),z=F()(Pe,2),Ke=z[0],Ve=z[1],Ce=function(){var K=M()(T()().mark(function u(n){var p,d;return T()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(n.yaml){c.next=2;break}return c.abrupt("return");case 2:return c.next=4,(0,ae.xC)({yaml:n.yaml});case 4:if(d=c.sent,!(!d||!d.data||!d.data.project)){c.next=7;break}return c.abrupt("return");case 7:(p=i.current)===null||p===void 0||p.setFieldValue("yaml",n.yaml),n.disableSetYaml||Ve(n.yaml),d.data.project&&O(Object.keys(d.data.project.services).map(function(C,ce){var S=d.data.project.services[C];if(n.override&&n.override[C]){var Te=n.override[C];Te.ports&&(S.ports=Te.ports.map(function(ne){return{target:parseInt(ne.dest),published:ne.host}})),Te.replace&&Te.replace.map(function(ne){S.depends_on&&S.depends_on[ne.depend]&&ne.target&&(S.depends_on["".concat(ne.target,":").concat(ne.depend)]=S.depends_on[ne.depend],delete S.depends_on[ne.depend])})}return S.name=C,S}));case 10:case"end":return c.stop()}},u)}));return function(n){return K.apply(this,arguments)}}(),Ne=function(u){var n=u.matchAll(/\$\{(\w+)[:-]?(.*)\}/g),p=P()(n),d;try{for(p.s();!(d=p.n()).done;){var h,c=d.value;(h=G.current)===null||h===void 0||h.addEnvItem(c[1],c[2]?c[2].indexOf("-")==0?c[2].substring(1):c[2]:"")}}catch(C){p.e(C)}finally{p.f()}};return(0,g.useEffect)(function(){var K=le.get("id");K&&(ee.show(),(0,ae.YZ)({id:parseInt(K)}).then(function(u){var n;if(he(u.data.detail),ge(u.data.detail.setting.type),u.data.detail.setting.type==""&&(u.data.detail.setting.type="text"),(n=i.current)===null||n===void 0||n.setFieldsValue({name:u.data.detail.name,title:u.data.detail.title,type:u.data.detail.setting.type,yaml:u.data.detail.yaml,override:u.data.detail.setting.override}),u.data.detail.setting.type=="remoteUrl"){var p;(p=i.current)===null||p===void 0||p.setFieldValue("remoteUrl",u.data.detail.setting.uri[0])}else if(u.data.detail.setting.type=="serverPath"){var d;(d=i.current)===null||d===void 0||d.setFieldValue("serverPath",u.data.detail.setting.uri[0])}else if(u.data.detail.setting.type=="storagePath"){var h;(h=i.current)===null||h===void 0||h.setFieldValue("storagePath","/dpanel/compose/"+u.data.detail.setting.uri[0])}Ce({yaml:u.data.detail.yaml,override:u.data.detail.setting.override})}).finally(function(){ee.destroy()}))},[]),(0,t.jsx)(be.A,{submitter:{render:function(u,n){return(0,t.jsx)(Fe.S,{children:n})}},formRef:i,onFinish:function(){var K=M()(T()().mark(function u(n){var p,d,h;return T()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return p={type:n.type,name:n.name,title:n.title,override:n.override},U!=null&&U.id&&(p.id=U.id),n.type=="text"?p.yaml=n.yaml:n.type=="remoteUrl"?p.remoteUrl=n.remoteUrl:n.type=="serverPath"&&(p.serverPath=n.serverPath),C.next=5,(0,ae.im)(p);case 5:if(d=C.sent,!d.data.id){C.next=10;break}return(h=i.current)===null||h===void 0||h.resetFields(),k("/compose/deploy/"+d.data.id),C.abrupt("return",!0);case 10:return C.abrupt("return",!1);case 11:case"end":return C.stop()}},u)}));return function(u){return K.apply(this,arguments)}}(),children:(0,t.jsxs)(L.Z,{split:"vertical",children:[(0,t.jsxs)(L.Z,{split:"horizontal",colSpan:"55%",children:[(0,t.jsxs)(L.Z,{title:(0,t.jsx)(oe.Z,{}),subTitle:"\u57FA\u7840\u4FE1\u606F",children:[(0,t.jsx)(E.Z,{label:"\u7AD9\u70B9\u540D\u79F0",name:"title",fieldProps:{onChange:function(u){var n="";if(u.target.value&&!U){var p,d=(0,Re.N9)(u.target.value.trim(),{toneType:"none",type:"array"});n=d.join(""),(p=i.current)===null||p===void 0||p.setFieldValue("name",n)}}}}),(0,t.jsx)(E.Z,{label:"\u7AD9\u70B9\u6807\u8BC6",name:"name",required:!0,rules:[{required:!0}],disabled:!!U,placeholder:"\u6807\u8BC6Compose\u521B\u5EFA\u7684\u5BB9\u5668\u7EC4\uFF0C\u53EA\u5141\u8BB8\u4E3A\u82F1\u6587\u6216\u662F\u6570\u5B57"}),(0,t.jsx)(Oe.Z,{name:"override"}),(0,t.jsx)(Be.Z.Group,{label:"Yaml \u6765\u6E90",name:"type",initialValue:"text",fieldProps:{defaultValue:"text",onChange:function(){}},options:[{label:"yaml",value:"text",disabled:(U==null?void 0:U.setting.type)=="storagePath"},{label:"\u8FDC\u7A0B\u5730\u5740",value:"remoteUrl",disabled:(U==null?void 0:U.setting.type)=="storagePath"},{label:"\u9762\u677F\u5BB9\u5668\u5185\u8DEF\u5F84",value:"serverPath",disabled:(U==null?void 0:U.setting.type)=="storagePath"},{label:"\u81EA\u52A8\u53D1\u73B0",value:"storagePath"}]}),(0,t.jsx)(ue.Z,{name:["type"],children:function(u){var n=u.type;if(n=="text")return(0,t.jsx)(Q.Z,{title:"\u5BFC\u5165\u672C\u5730 compose \u6587\u4EF6",onImport:function(d){return Ce({yaml:d}),!0},onLoad:function(d){if(d.indexOf("services:")<0)throw new Error("\u5BFC\u5165\u7684compose\u6587\u4EF6\u9519\u8BEF");return!0}});if(n=="remoteUrl")return(0,t.jsx)(E.Z,{label:"",required:!0,rules:[{required:!0}],name:"remoteUrl",placeholder:"\u8BF7\u8F93\u5165\u8FDC\u7A0B docker-compose.yaml \u94FE\u63A5",fieldProps:{onBlur:function(){var p=M()(T()().mark(function h(c){var C;return T()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(c.target.value){S.next=2;break}return S.abrupt("return");case 2:return ee.show(),S.next=5,(0,ae.MG)({uri:c.target.value});case 5:C=S.sent,ee.destroy(),C&&C.data&&C.data.content&&Ce({yaml:C.data.content});case 8:case"end":return S.stop()}},h)}));function d(h){return p.apply(this,arguments)}return d}()}});if(n=="serverPath")return(0,t.jsx)(E.Z,{label:"",required:!0,rules:[{required:!0}],name:"serverPath",placeholder:"\u8BF7\u6307\u5B9A\u9762\u677F\u5BB9\u5668\u5185\u7684\u76EE\u5F55\uFF0C\u5BBF\u4E3B\u673A\u76EE\u5F55\u9700\u8981\u5148\u6302\u8F7D\u5230\u9762\u677F\u5BB9\u5668\u4E2D",initialValue:"",fieldProps:{onBlur:function(){var p=M()(T()().mark(function h(c){var C;return T()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(c.target.value){S.next=2;break}return S.abrupt("return");case 2:return S.next=4,(0,ae.MG)({uri:c.target.value});case 4:C=S.sent,C&&C.data&&C.data.content&&Ce({yaml:C.data.content});case 6:case"end":return S.stop()}},h)}));function d(h){return p.apply(this,arguments)}return d}()}});if(n=="storagePath")return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(E.Z,{name:"storagePath",required:!0,disabled:!0,placeholder:"\u6302\u8F7D /dpanel/compose \u76EE\u5F55\u540E\uFF0C\u81EA\u52A8\u53D1\u73B0\u3002",rules:[{required:!0,message:"\u6302\u8F7D /dpanel/compose \u76EE\u5F55\u540E\uFF0C\u81EA\u52A8\u53D1\u73B0\u3002"}]})})}})]}),(0,t.jsx)(De,{ref:o,onFinish:function(u){var n,p,d=(n=i.current)===null||n===void 0?void 0:n.getFieldValue("override");d||(d={}),d[u.name]=u,O(a()(Z.map(function(h){return h.name==u.name&&(u.ports&&(h.ports=u.ports.map(function(c){return{target:parseInt(c.dest),published:c.host}})),u.replace&&u.replace.map(function(c){h.depends_on&&h.depends_on[c.depend]&&c.target&&(h.depends_on["".concat(c.target,":").concat(c.depend)]=h.depends_on[c.depend],delete h.depends_on[c.depend])})),h}))),(p=i.current)===null||p===void 0||p.setFieldValue("override",d)}}),(0,t.jsx)(L.Z,{title:(0,t.jsx)(B.Z,{}),subTitle:"\u670D\u52A1\u5217\u8868",children:(0,t.jsx)(Ue.Z,{dataSource:Z,rowKey:"name",pagination:!1,columns:[{title:"\u540D\u79F0",dataIndex:"name"},{title:"\u955C\u50CF",dataIndex:"image"},{title:"\u7AEF\u53E3",dataIndex:"ports",render:function(u,n,p){return n.ports&&n.ports.map(function(d,h){return(0,t.jsx)(Ie.Z,{size:"large",wrap:!0,children:(0,t.jsxs)(We.Z,{color:"#2db7f5",icon:d.published?(0,t.jsx)(xe.Z,{}):"",style:{marginBottom:5},children:[d.published," : ",d.target]})},"space".concat(h))})}},{title:"\u4F9D\u8D56",dataIndex:"dependsOn",width:150,render:function(u,n,p){if(n.depends_on)return(0,t.jsx)(Ie.Z,{wrap:!0,children:Object.keys(n.depends_on).map(function(d){var h=d;return n.external_links&&n.external_links.map(function(c){c.indexOf(":"+d)>-1&&(h=c)}),h})})}},{title:"\u64CD\u4F5C",width:80,render:function(u,n,p){return(0,t.jsx)(Ie.Z,{split:(0,t.jsx)(we.Z,{type:"vertical"}),children:(0,t.jsx)($.ZP,{type:"link",onClick:function(){var h,c=(h=i.current)===null||h===void 0?void 0:h.getFieldValue("override");if(c&&c[n.name]){var C;(C=o.current)===null||C===void 0||C.edit(n,c[n.name])}else{var ce;(ce=o.current)===null||ce===void 0||ce.edit(n)}return!1},children:(0,t.jsx)(b.Z,{title:"\u7F16\u8F91\u670D\u52A1",children:(0,t.jsx)(je.Z,{})})},"manage")})}}]})})]}),(0,t.jsxs)(L.Z,{title:(0,t.jsx)(oe.Z,{}),subTitle:"compose.yaml",children:[(0,t.jsx)(Me.Z,{name:"yaml",hidden:!0}),(0,t.jsx)(Le.ZP,{theme:"dark",minHeight:"550px",onChange:function(u,n){var p;(p=i.current)===null||p===void 0||p.setFieldValue("yaml",u)},onBlur:function(){var u;Ce({yaml:(u=i.current)===null||u===void 0?void 0:u.getFieldValue("yaml"),disableSetYaml:!0})},readOnly:ve!="text",value:Ke,extensions:[Se.RI.yaml()]})]})]})},"create")}},90098:function(re,W,e){e.d(W,{GG:function(){return $},MG:function(){return x},Oh:function(){return g},U_:function(){return v},YZ:function(){return F},ik:function(){return L},im:function(){return T},mg:function(){return I},pm:function(){return M},xC:function(){return t}});var f=e(15009),a=e.n(f),H=e(99289),P=e.n(H),y=e(54006);function T(m){return w.apply(this,arguments)}function w(){return w=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/create",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),w.apply(this,arguments)}function M(m){return A.apply(this,arguments)}function A(){return A=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/get-list",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),A.apply(this,arguments)}function F(m){return _.apply(this,arguments)}function _(){return _=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/get-detail",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),_.apply(this,arguments)}function L(m){return E.apply(this,arguments)}function E(){return E=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/delete",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),E.apply(this,arguments)}function g(m){return D.apply(this,arguments)}function D(){return D=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/container-deploy",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),D.apply(this,arguments)}function I(m){return b.apply(this,arguments)}function b(){return b=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/container-destroy",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),b.apply(this,arguments)}function $(m){return Y.apply(this,arguments)}function Y(){return Y=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/container-ctrl",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),Y.apply(this,arguments)}function v(m){return l.apply(this,arguments)}function l(){return l=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/container-process-kill",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),l.apply(this,arguments)}function x(m){return s.apply(this,arguments)}function s(){return s=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/get-from-uri",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),s.apply(this,arguments)}function t(m){return J.apply(this,arguments)}function J(){return J=P()(a()().mark(function m(j){return a()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,y.request)("/api/app/compose/parse",{method:"POST",data:j}));case 1:case"end":return r.stop()}},m)})),J.apply(this,arguments)}},60335:function(re,W,e){e.d(W,{IE:function(){return M},IW:function(){return T},KK:function(){return g},LJ:function(){return I},Re:function(){return $},eE:function(){return L},jV:function(){return F}});var f=e(15009),a=e.n(f),H=e(99289),P=e.n(H),y=e(54006);function T(v){return w.apply(this,arguments)}function w(){return w=P()(a()().mark(function v(l){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,y.request)("/api/app/container/status",{method:"POST",data:l}));case 1:case"end":return s.stop()}},v)})),w.apply(this,arguments)}function M(v){return A.apply(this,arguments)}function A(){return A=P()(a()().mark(function v(l){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,y.request)("/api/app/container/get-list",{data:l,method:"POST"}));case 1:case"end":return s.stop()}},v)})),A.apply(this,arguments)}function F(v){return _.apply(this,arguments)}function _(){return _=P()(a()().mark(function v(l){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,y.request)("/api/app/container/get-detail",{data:l,method:"POST"}));case 1:case"end":return s.stop()}},v)})),_.apply(this,arguments)}function L(v){return E.apply(this,arguments)}function E(){return E=P()(a()().mark(function v(l){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,y.request)("/api/app/container/update",{data:l,method:"POST"}));case 1:case"end":return s.stop()}},v)})),E.apply(this,arguments)}function g(){return D.apply(this,arguments)}function D(){return D=P()(a()().mark(function v(){return a()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",(0,y.request)("/api/app/container/prune",{method:"POST"}));case 1:case"end":return x.stop()}},v)})),D.apply(this,arguments)}function I(v){return b.apply(this,arguments)}function b(){return b=P()(a()().mark(function v(l){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,y.request)("/api/app/container/export",{method:"POST",data:l,responseType:"blob"}));case 1:case"end":return s.stop()}},v)})),b.apply(this,arguments)}function $(v){return Y.apply(this,arguments)}function Y(){return Y=P()(a()().mark(function v(l){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,y.request)("/api/app/container/commit",{method:"POST",data:l}));case 1:case"end":return s.stop()}},v)})),Y.apply(this,arguments)}}}]); diff --git a/asset/static/p__compose__create.c029c4dd.async.js b/asset/static/p__compose__create.c029c4dd.async.js new file mode 100644 index 00000000..9e056d35 --- /dev/null +++ b/asset/static/p__compose__create.c029c4dd.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1102],{64317:function(ue,U,e){var f=e(1413),a=e(45987),G=e(22270),C=e(67294),y=e(66758),S=e(73552),W=e(85893),M=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],A=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],j=function(I,b){var $=I.fieldProps,H=I.children,g=I.params,s=I.proFieldProps,x=I.mode,l=I.valueEnum,t=I.request,J=I.showSearch,ne=I.options,Q=(0,a.Z)(I,M),c=(0,C.useContext)(y.Z);return(0,W.jsx)(S.Z,(0,f.Z)((0,f.Z)({valueEnum:(0,G.h)(l),request:t,params:g,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,f.Z)({options:ne,mode:x,showSearch:J,getPopupContainer:c.getPopupContainer},$),ref:b,proFieldProps:s},Q),{},{children:H}))},_=C.forwardRef(function(D,I){var b=D.fieldProps,$=D.children,H=D.params,g=D.proFieldProps,s=D.mode,x=D.valueEnum,l=D.request,t=D.options,J=(0,a.Z)(D,A),ne=(0,f.Z)({options:t,mode:s||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},b),Q=(0,C.useContext)(y.Z);return(0,W.jsx)(S.Z,(0,f.Z)((0,f.Z)({valueEnum:(0,G.h)(x),request:l,params:H,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,f.Z)({getPopupContainer:Q.getPopupContainer},ne),ref:I,proFieldProps:g},J),{},{children:$}))}),L=C.forwardRef(j),E=_,v=L;v.SearchSelect=E,v.displayName="ProFormComponent",U.Z=v},52688:function(ue,U,e){var f=e(1413),a=e(45987),G=e(67294),C=e(73552),y=e(85893),S=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],W=G.forwardRef(function(M,A){var j=M.fieldProps,_=M.unCheckedChildren,L=M.checkedChildren,E=M.proFieldProps,v=(0,a.Z)(M,S);return(0,y.jsx)(C.Z,(0,f.Z)({valueType:"switch",fieldProps:(0,f.Z)({unCheckedChildren:_,checkedChildren:L},j),ref:A,valuePropName:"checked",proFieldProps:E,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},v))});U.Z=W},90672:function(ue,U,e){var f=e(1413),a=e(45987),G=e(67294),C=e(73552),y=e(85893),S=["fieldProps","proFieldProps"],W=function(A,j){var _=A.fieldProps,L=A.proFieldProps,E=(0,a.Z)(A,S);return(0,y.jsx)(C.Z,(0,f.Z)({ref:j,valueType:"textarea",fieldProps:_,proFieldProps:L},E))};U.Z=G.forwardRef(W)},2236:function(ue,U,e){e.d(U,{S:function(){return H}});var f=e(1413),a=e(4942),G=e(71002),C=e(45987),y=e(12044),S=e(28459),W=e(93967),M=e.n(W),A=e(97435),j=e(67294),_=e(73935),L=e(76509),E=e(98082),v=function(s){return(0,a.Z)({},s.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:(0,E.uK)(s.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(s.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:s.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:s.colorText},"&-right":{color:s.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function D(g){return(0,E.Xj)("ProLayoutFooterToolbar",function(s){var x=(0,f.Z)((0,f.Z)({},s),{},{componentCls:".".concat(g)});return[v(x)]})}function I(g,s){var x=s.stylish;return(0,E.Xj)("ProLayoutFooterToolbarStylish",function(l){var t=(0,f.Z)((0,f.Z)({},l),{},{componentCls:".".concat(g)});return x?[(0,a.Z)({},"".concat(t.componentCls),x==null?void 0:x(t))]:[]})}var b=e(85893),$=["children","className","extra","portalDom","style","renderContent"],H=function(s){var x=s.children,l=s.className,t=s.extra,J=s.portalDom,ne=J===void 0?!0:J,Q=s.style,c=s.renderContent,F=(0,C.Z)(s,$),Y=(0,j.useContext)(S.ZP.ConfigContext),n=Y.getPrefixCls,fe=Y.getTargetContainer,De=s.prefixCls||n("pro"),k="".concat(De,"-footer-bar"),xe=D(k),oe=xe.wrapSSR,le=xe.hashId,B=(0,j.useContext)(L.X),je=(0,j.useMemo)(function(){var se=B.hasSiderMenu,Me=B.isMobile,Se=B.siderWidth;if(se)return Se?Me?"100%":"calc(100% - ".concat(Se,"px)"):"100%"},[B.collapsed,B.hasSiderMenu,B.isMobile,B.siderWidth]),Fe=(0,j.useMemo)(function(){return(typeof window=="undefined"?"undefined":(0,G.Z)(window))===void 0||(typeof document=="undefined"?"undefined":(0,G.Z)(document))===void 0?null:(fe==null?void 0:fe())||document.body},[]),be=I("".concat(k,".").concat(k,"-stylish"),{stylish:s.stylish}),Oe=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"".concat(k,"-left ").concat(le).trim(),children:t}),(0,b.jsx)("div",{className:"".concat(k,"-right ").concat(le).trim(),children:x})]});(0,j.useEffect)(function(){return!B||!(B!=null&&B.setHasFooterToolbar)?function(){}:(B==null||B.setHasFooterToolbar(!0),function(){var se;B==null||(se=B.setHasFooterToolbar)===null||se===void 0||se.call(B,!1)})},[]);var Te=(0,b.jsx)("div",(0,f.Z)((0,f.Z)({className:M()(l,le,k,(0,a.Z)({},"".concat(k,"-stylish"),!!s.stylish)),style:(0,f.Z)({width:je},Q)},(0,A.Z)(F,["prefixCls"])),{},{children:c?c((0,f.Z)((0,f.Z)((0,f.Z)({},s),B),{},{leftWidth:je}),Oe):Oe})),Be=!(0,y.j)()||!ne||!Fe?Te:(0,_.createPortal)(Te,Fe,k);return be.wrapSSR(oe((0,b.jsx)(j.Fragment,{children:Be},k)))}},76509:function(ue,U,e){e.d(U,{X:function(){return a}});var f=e(67294),a=(0,f.createContext)({})},24963:function(ue,U,e){var f=e(67294),a=(0,f.createContext)({});U.Z=a},68548:function(ue,U,e){e.r(U),e.d(U,{default:function(){return _e}});var f=e(19632),a=e.n(f),G=e(64599),C=e.n(G),y=e(15009),S=e.n(y),W=e(99289),M=e.n(W),A=e(5574),j=e.n(A),_=e(184),L=e(38345),E=e(5966),v=e(67294),D=e(91058),I=e(85576),b=e(83062),$=e(14726),H=e(94668),g=e(97857),s=e.n(g),x=e(17186),l=e(24739),t=e(85893),J=(0,v.forwardRef)(function(V,te){var q=(0,v.useRef)();(0,v.useImperativeHandle)(te,function(){return{addItem:function(Z,O){var N,o=(N=q.current)===null||N===void 0?void 0:N.getList(),i=!1;if(o==null||o.map(function(R){if(R.name==Z){i=!0;return}}),!i){var X;(X=q.current)===null||X===void 0||X.add({name:Z,value:O})}},clear:function(){var Z;(Z=q.current)===null||Z===void 0||(Z=Z.getList())===null||Z===void 0||Z.map(function(O,N){var o;(o=q.current)===null||o===void 0||o.remove(N)})}}});var ee={};return V.hideCopyButton===!0&&(ee.copyIconProps=!1),V.hideDeleteButton===!0&&(ee.deleteIconProps=!1),(0,t.jsx)(x.u,s()(s()({name:V.name,actionRef:q,creatorButtonProps:V.showAddButton?{creatorButtonText:"\u6DFB\u52A0"+(V.label?V.label:V.name)}:!1,min:0},ee),{},{children:function(Z,O,N){return(0,t.jsx)(l.UW,{children:V.items.map(function(o){return o.render?(0,t.jsx)("div",{children:o.render&&o.render(Z,O,N)},"".concat(V.name,"-").concat(o.name,"-").concat(Z.key)):(0,t.jsx)(E.Z,{width:o.width,name:o.name,label:o.label,required:o.required,rules:[{required:o.required}],disabled:o.disabled,placeholder:o.placeholder},"".concat(V.name,"-").concat(o.name,"-").concat(Z.key))})})}}))}),ne=J,Q=e(92067),c=(0,v.forwardRef)(function(V,te){var q=(0,v.useState)(!1),ee=j()(q,2),re=ee[0],Z=ee[1],O=(0,v.useState)(),N=j()(O,2),o=N[0],i=N[1];return(0,v.useImperativeHandle)(te,function(){return{}}),(0,t.jsxs)(L.Z,{title:"\u670D\u52A1\u4F9D\u8D56\u66FF\u6362",subTitle:"\u66FF\u6362\u540ECompose\u4E2D\u7684\u670D\u52A1\u5C06\u4E0D\u4F1A\u521B\u5EFA",headerBordered:!0,children:[(0,t.jsx)(I.Z,{title:"\u9009\u62E9\u5BB9\u5668",width:1024,footer:!1,open:re,onCancel:function(){return Z(!1)},children:(0,t.jsx)(Q.Z,{onSelect:function(R){o==null||o.setCurrentRowData({target:R.Name}),Z(!1)}})}),(0,t.jsx)(ne,{name:"replace",hideCopyButton:!0,hideDeleteButton:!0,items:[{label:"\u4F9D\u8D56\u670D\u52A1",name:"depend",disabled:!0},{label:"\u66FF\u6362\u670D\u52A1",name:"target",render:function(R,ie,de){return(0,t.jsx)(E.Z,{label:"\u66FF\u6362\u5DF2\u6709\u5BB9\u5668",name:"target",placeholder:"\u8BF7\u9009\u62E9\u5DF2\u6709\u5BB9\u5668",addonAfter:(0,t.jsx)(b.Z,{title:"\u9009\u62E9\u66FF\u6362\u7684\u5BB9\u5668",children:(0,t.jsx)($.ZP,{type:"primary",icon:(0,t.jsx)(H.Z,{}),onClick:function(){i(de),Z(!0)}})},R.key)},R.key)}}]})]})}),F=c,Y=e(10523),n=e(82034),fe=(0,v.forwardRef)(function(V,te){var q=(0,v.useState)(!1),ee=j()(q,2),re=ee[0],Z=ee[1],O=(0,v.useRef)();return(0,v.useImperativeHandle)(te,function(){return{edit:function(o,i){var X,R,ie;if(!((X=O.current)===null||X===void 0)&&X.resetFields&&((R=O.current)===null||R===void 0||R.resetFields()),(ie=O.current)===null||ie===void 0||ie.setFieldsValue({name:o.name}),i!=null&&i.containerName){var de;(de=O.current)===null||de===void 0||de.setFieldsValue({containerName:i.containerName})}else{var pe;(pe=O.current)===null||pe===void 0||pe.setFieldsValue({containerName:o.container_name})}if(i!=null&&i.environment){var ce;(ce=O.current)===null||ce===void 0||ce.setFieldsValue({environment:i.environment})}else{var w;(w=O.current)===null||w===void 0||w.setFieldsValue({environment:o.environment&&Object.keys(o.environment).map(function(z){return{name:z,value:o.environment&&o.environment[z]?o.environment[z]:""}})})}if(i!=null&&i.ports){var ve;(ve=O.current)===null||ve===void 0||ve.setFieldsValue({ports:i.ports})}else{var ge;(ge=O.current)===null||ge===void 0||ge.setFieldsValue({ports:o.ports&&o.ports.map(function(z){return{host:z.published,dest:String(z.target)}})})}if(i!=null&&i.volumes){var me;(me=O.current)===null||me===void 0||me.setFieldsValue({volumes:i.volumes})}else{var Ce;(Ce=O.current)===null||Ce===void 0||Ce.setFieldsValue({volumes:o.volumes&&o.volumes.map(function(z){return{host:z.source,dest:z.target,permission:z.read_only?"read":"write"}})})}if(i!=null&&i.replace){var Pe;(Pe=O.current)===null||Pe===void 0||Pe.setFieldsValue({replace:i.replace})}else{var ye;(ye=O.current)===null||ye===void 0||ye.setFieldsValue({replace:o.depends_on&&Object.keys(o.depends_on).map(function(z){return{depend:z,target:""}})})}Z(!0)}}}),(0,t.jsxs)(_.a,{open:re,onOpenChange:function(o){Z(o)},drawerProps:{forceRender:!0},formRef:O,title:"\u7F16\u8F91\u5BB9\u5668\u670D\u52A1",onFinish:function(){var N=M()(S()().mark(function o(i){return S()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return V.onFinish&&V.onFinish(i),R.abrupt("return",!0);case 2:case"end":return R.stop()}},o)}));return function(o){return N.apply(this,arguments)}}(),children:[(0,t.jsxs)(L.Z,{children:[(0,t.jsx)(E.Z,{label:"\u670D\u52A1\u540D\u79F0",name:"name",disabled:!0}),(0,t.jsx)(E.Z,{label:"\u5BB9\u5668\u540D\u79F0",name:"containerName",tooltip:"\u6307\u5B9A\u5BB9\u5668\u540D\u79F0\u540E\uFF0C\u65E0\u6CD5\u591A\u6B21\u90E8\u7F72\u3002\u4E3A\u7A7A\u65F6\u7531 compose \u81EA\u52A8\u751F\u6210"})]}),(0,t.jsx)(n.Z,{showInDrawer:!0}),(0,t.jsx)(D.Z,{showAddButton:!0,showInDrawer:!0,showImportButton:!0}),(0,t.jsx)(Y.Z,{showInDrawer:!0}),(0,t.jsx)(F,{})]},"create")}),De=fe,k=e(89063),xe=e(24963),oe=e(90098),le=e(45742),B=e(91806),je=e(27496),Fe=e(43425),be=e(97269),Oe=e(2236),Te=e(62370),Be=e(86615),se=e(97462),Me=e(90672),Se=e(95213),Le=e(95089),Ae=e(54006),we=e(63490),Ie=e(42075),Ue=e(66309),We=e(96074),Re=e(91845);function _e(){var V=(0,v.useContext)(xe.Z),te=V.loading,q=(0,Ae.useNavigate)(),ee=(0,v.useState)([]),re=j()(ee,2),Z=re[0],O=re[1],N=(0,v.useRef)(),o=(0,v.useRef)(),i=(0,v.useRef)(),X=(0,Ae.useSearchParams)(),R=j()(X,2),ie=R[0],de=R[1],pe=(0,v.useState)(),ce=j()(pe,2),w=ce[0],ve=ce[1],ge=(0,v.useState)("text"),me=j()(ge,2),Ce=me[0],Pe=me[1],ye=(0,v.useState)(""),z=j()(ye,2),Ke=z[0],Ve=z[1],Ee=function(){var K=M()(S()().mark(function u(r){var p,d;return S()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(r.yaml){m.next=2;break}return m.abrupt("return");case 2:return m.next=4,(0,oe.xC)({yaml:r.yaml});case 4:if(d=m.sent,!(!d||!d.data||!d.data.project)){m.next=7;break}return m.abrupt("return");case 7:(p=i.current)===null||p===void 0||p.setFieldValue("yaml",r.yaml),r.disableSetYaml||Ve(r.yaml),d.data.project&&O(Object.keys(d.data.project.services).map(function(P,he){var T=d.data.project.services[P];if(r.override&&r.override[P]){var Ze=r.override[P];Ze.ports&&(T.ports=Ze.ports.map(function(ae){return{target:parseInt(ae.dest),published:ae.host}})),Ze.replace&&Ze.replace.map(function(ae){T.depends_on&&T.depends_on[ae.depend]&&ae.target&&(T.depends_on["".concat(ae.target,":").concat(ae.depend)]=T.depends_on[ae.depend],delete T.depends_on[ae.depend])})}return T.name=P,T}));case 10:case"end":return m.stop()}},u)}));return function(r){return K.apply(this,arguments)}}(),Ne=function(u){var r=u.matchAll(/\$\{(\w+)[:-]?(.*)\}/g),p=C()(r),d;try{for(p.s();!(d=p.n()).done;){var h,m=d.value;(h=N.current)===null||h===void 0||h.addEnvItem(m[1],m[2]?m[2].indexOf("-")==0?m[2].substring(1):m[2]:"")}}catch(P){p.e(P)}finally{p.f()}};return(0,v.useEffect)(function(){var K=ie.get("id");K&&(te.show(),(0,oe.YZ)({id:parseInt(K)}).then(function(u){var r;if(ve(u.data.detail),Pe(u.data.detail.setting.type),u.data.detail.setting.type==""&&(u.data.detail.setting.type="text"),(r=i.current)===null||r===void 0||r.setFieldsValue({name:u.data.detail.name,title:u.data.detail.title,type:u.data.detail.setting.type,yaml:u.data.detail.yaml,override:u.data.detail.setting.override}),u.data.detail.setting.type=="remoteUrl"){var p;(p=i.current)===null||p===void 0||p.setFieldValue("remoteUrl",u.data.detail.setting.uri[0])}else if(u.data.detail.setting.type=="serverPath"){var d;(d=i.current)===null||d===void 0||d.setFieldValue("serverPath",u.data.detail.setting.uri[0])}else if(u.data.detail.setting.type=="storagePath"){var h;(h=i.current)===null||h===void 0||h.setFieldValue("storagePath","/dpanel/compose/"+u.data.detail.setting.uri[0])}Ee({yaml:u.data.detail.yaml,override:u.data.detail.setting.override})}).finally(function(){te.destroy()}))},[]),(0,t.jsx)(be.A,{submitter:{render:function(u,r){return(0,t.jsx)(Oe.S,{children:r})}},formRef:i,onFinish:function(){var K=M()(S()().mark(function u(r){var p,d,h;return S()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return p={type:r.type,name:r.name,title:r.title,override:r.override},w!=null&&w.id&&(p.id=w.id),r.type=="text"?p.yaml=r.yaml:r.type=="remoteUrl"?p.remoteUrl=r.remoteUrl:r.type=="serverPath"&&(p.serverPath=r.serverPath),P.next=5,(0,oe.im)(p);case 5:if(d=P.sent,!d.data.id){P.next=10;break}return(h=i.current)===null||h===void 0||h.resetFields(),q("/compose/deploy/"+d.data.id),P.abrupt("return",!0);case 10:return P.abrupt("return",!1);case 11:case"end":return P.stop()}},u)}));return function(u){return K.apply(this,arguments)}}(),children:(0,t.jsxs)(L.Z,{split:"vertical",children:[(0,t.jsxs)(L.Z,{split:"horizontal",colSpan:"55%",children:[(0,t.jsxs)(L.Z,{title:(0,t.jsx)(le.Z,{}),subTitle:"\u57FA\u7840\u4FE1\u606F",children:[(0,t.jsx)(E.Z,{label:"\u7AD9\u70B9\u540D\u79F0",name:"title",fieldProps:{onChange:function(u){var r="";if(u.target.value&&!w){var p,d=(0,Re.N9)(u.target.value.trim(),{toneType:"none",type:"array"});r=d.join(""),(p=i.current)===null||p===void 0||p.setFieldValue("name",r)}}}}),(0,t.jsx)(E.Z,{label:"\u7AD9\u70B9\u6807\u8BC6",name:"name",required:!0,rules:[{required:!0}],disabled:!!w,placeholder:"\u6807\u8BC6Compose\u521B\u5EFA\u7684\u5BB9\u5668\u7EC4\uFF0C\u53EA\u5141\u8BB8\u4E3A\u82F1\u6587\u6216\u662F\u6570\u5B57"}),(0,t.jsx)(Te.Z,{name:"override"}),(0,t.jsx)(Be.Z.Group,{label:"Yaml \u6765\u6E90",name:"type",initialValue:"text",fieldProps:{defaultValue:"text",onChange:function(){}},options:[{label:"yaml",value:"text",disabled:(w==null?void 0:w.setting.type)=="storagePath"},{label:"\u8FDC\u7A0B\u5730\u5740",value:"remoteUrl",disabled:(w==null?void 0:w.setting.type)=="storagePath"},{label:"\u9762\u677F\u5BB9\u5668\u5185\u8DEF\u5F84",value:"serverPath",disabled:(w==null?void 0:w.setting.type)=="storagePath"},{label:"\u81EA\u52A8\u53D1\u73B0",value:"storagePath"}]}),(0,t.jsx)(se.Z,{name:["type"],children:function(u){var r=u.type;if(r=="text")return(0,t.jsx)(k.Z,{title:"\u5BFC\u5165\u672C\u5730 compose \u6587\u4EF6",onImport:function(d){return Ee({yaml:d}),!0},onLoad:function(d){if(d.indexOf("services:")<0)throw new Error("\u5BFC\u5165\u7684compose\u6587\u4EF6\u9519\u8BEF");return!0}});if(r=="remoteUrl")return(0,t.jsx)(E.Z,{label:"",required:!0,rules:[{required:!0}],name:"remoteUrl",placeholder:"\u8BF7\u8F93\u5165\u8FDC\u7A0B docker-compose.yaml \u94FE\u63A5",fieldProps:{onBlur:function(){var p=M()(S()().mark(function h(m){var P;return S()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(m.target.value){T.next=2;break}return T.abrupt("return");case 2:return te.show(),T.next=5,(0,oe.MG)({uri:m.target.value});case 5:P=T.sent,te.destroy(),P&&P.data&&P.data.content&&Ee({yaml:P.data.content});case 8:case"end":return T.stop()}},h)}));function d(h){return p.apply(this,arguments)}return d}()}});if(r=="serverPath")return(0,t.jsx)(E.Z,{label:"",required:!0,rules:[{required:!0}],name:"serverPath",placeholder:"\u8BF7\u6307\u5B9A\u9762\u677F\u5BB9\u5668\u5185\u7684\u76EE\u5F55\uFF0C\u5BBF\u4E3B\u673A\u76EE\u5F55\u9700\u8981\u5148\u6302\u8F7D\u5230\u9762\u677F\u5BB9\u5668\u4E2D",initialValue:"",fieldProps:{onBlur:function(){var p=M()(S()().mark(function h(m){var P;return S()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(m.target.value){T.next=2;break}return T.abrupt("return");case 2:return T.next=4,(0,oe.MG)({uri:m.target.value});case 4:P=T.sent,P&&P.data&&P.data.content&&Ee({yaml:P.data.content});case 6:case"end":return T.stop()}},h)}));function d(h){return p.apply(this,arguments)}return d}()}});if(r=="storagePath")return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(E.Z,{name:"storagePath",required:!0,disabled:!0,placeholder:"\u6302\u8F7D /dpanel/compose \u76EE\u5F55\u540E\uFF0C\u81EA\u52A8\u53D1\u73B0\u3002",rules:[{required:!0,message:"\u6302\u8F7D /dpanel/compose \u76EE\u5F55\u540E\uFF0C\u81EA\u52A8\u53D1\u73B0\u3002"}]})})}})]}),(0,t.jsx)(De,{ref:o,onFinish:function(u){var r,p,d=(r=i.current)===null||r===void 0?void 0:r.getFieldValue("override");d||(d={}),d[u.name]=u,O(a()(Z.map(function(h){return h.name==u.name&&(u.ports&&(h.ports=u.ports.map(function(m){return{target:parseInt(m.dest),published:m.host}})),u.replace&&u.replace.map(function(m){h.depends_on&&h.depends_on[m.depend]&&m.target&&(h.depends_on["".concat(m.target,":").concat(m.depend)]=h.depends_on[m.depend],delete h.depends_on[m.depend])})),h}))),(p=i.current)===null||p===void 0||p.setFieldValue("override",d)}}),(0,t.jsx)(L.Z,{title:(0,t.jsx)(B.Z,{}),subTitle:"\u670D\u52A1\u5217\u8868",children:(0,t.jsx)(we.Z,{dataSource:Z,rowKey:"name",pagination:!1,columns:[{title:"\u540D\u79F0",dataIndex:"name"},{title:"\u955C\u50CF",dataIndex:"image"},{title:"\u7AEF\u53E3",dataIndex:"ports",render:function(u,r,p){return r.ports&&r.ports.map(function(d,h){return(0,t.jsx)(Ie.Z,{size:"large",wrap:!0,children:(0,t.jsxs)(Ue.Z,{color:"#2db7f5",icon:d.published?(0,t.jsx)(je.Z,{}):"",style:{marginBottom:5},children:[d.published," : ",d.target]})},"space".concat(h))})}},{title:"\u4F9D\u8D56",dataIndex:"dependsOn",width:150,render:function(u,r,p){if(r.depends_on)return(0,t.jsx)(Ie.Z,{wrap:!0,children:Object.keys(r.depends_on).map(function(d){var h=d;return r.external_links&&r.external_links.map(function(m){m.indexOf(":"+d)>-1&&(h=m)}),h})})}},{title:"\u64CD\u4F5C",width:80,render:function(u,r,p){return(0,t.jsx)(Ie.Z,{split:(0,t.jsx)(We.Z,{type:"vertical"}),children:(0,t.jsx)($.ZP,{type:"link",onClick:function(){var h,m=(h=i.current)===null||h===void 0?void 0:h.getFieldValue("override");if(m&&m[r.name]){var P;(P=o.current)===null||P===void 0||P.edit(r,m[r.name])}else{var he;(he=o.current)===null||he===void 0||he.edit(r)}return!1},children:(0,t.jsx)(b.Z,{title:"\u7F16\u8F91\u670D\u52A1",children:(0,t.jsx)(Fe.Z,{})})},"manage")})}}]})})]}),(0,t.jsxs)(L.Z,{title:(0,t.jsx)(le.Z,{}),subTitle:"compose.yaml",children:[(0,t.jsx)(Me.Z,{name:"yaml",hidden:!0}),(0,t.jsx)(Le.ZP,{theme:"dark",minHeight:"550px",onChange:function(u,r){var p;(p=i.current)===null||p===void 0||p.setFieldValue("yaml",u)},onBlur:function(){var u;Ee({yaml:(u=i.current)===null||u===void 0?void 0:u.getFieldValue("yaml"),disableSetYaml:!0})},readOnly:Ce!="text",value:Ke,extensions:[Se.RI.yaml()]})]})]})},"create")}},90098:function(ue,U,e){e.d(U,{GG:function(){return $},MG:function(){return t},Oh:function(){return v},U_:function(){return x},YZ:function(){return j},ik:function(){return L},im:function(){return S},mg:function(){return I},pm:function(){return M},xC:function(){return ne}});var f=e(15009),a=e.n(f),G=e(99289),C=e.n(G),y=e(54006);function S(c){return W.apply(this,arguments)}function W(){return W=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/create",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),W.apply(this,arguments)}function M(c){return A.apply(this,arguments)}function A(){return A=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/get-list",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),A.apply(this,arguments)}function j(c){return _.apply(this,arguments)}function _(){return _=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/get-detail",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),_.apply(this,arguments)}function L(c){return E.apply(this,arguments)}function E(){return E=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/delete",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),E.apply(this,arguments)}function v(c){return D.apply(this,arguments)}function D(){return D=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/container-deploy",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),D.apply(this,arguments)}function I(c){return b.apply(this,arguments)}function b(){return b=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/container-destroy",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),b.apply(this,arguments)}function $(c){return H.apply(this,arguments)}function H(){return H=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/container-ctrl",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),H.apply(this,arguments)}function g(c){return s.apply(this,arguments)}function s(){return s=_asyncToGenerator(_regeneratorRuntime().mark(function c(F){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/app/compose/container-log",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),s.apply(this,arguments)}function x(c){return l.apply(this,arguments)}function l(){return l=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/container-process-kill",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),l.apply(this,arguments)}function t(c){return J.apply(this,arguments)}function J(){return J=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/get-from-uri",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),J.apply(this,arguments)}function ne(c){return Q.apply(this,arguments)}function Q(){return Q=C()(a()().mark(function c(F){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/app/compose/parse",{method:"POST",data:F}));case 1:case"end":return n.stop()}},c)})),Q.apply(this,arguments)}},60335:function(ue,U,e){e.d(U,{IE:function(){return M},IW:function(){return S},KK:function(){return v},LJ:function(){return I},Re:function(){return $},eE:function(){return L},jV:function(){return j}});var f=e(15009),a=e.n(f),G=e(99289),C=e.n(G),y=e(54006);function S(g){return W.apply(this,arguments)}function W(){return W=C()(a()().mark(function g(s){return a()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,y.request)("/api/app/container/status",{method:"POST",data:s}));case 1:case"end":return l.stop()}},g)})),W.apply(this,arguments)}function M(g){return A.apply(this,arguments)}function A(){return A=C()(a()().mark(function g(s){return a()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,y.request)("/api/app/container/get-list",{data:s,method:"POST"}));case 1:case"end":return l.stop()}},g)})),A.apply(this,arguments)}function j(g){return _.apply(this,arguments)}function _(){return _=C()(a()().mark(function g(s){return a()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,y.request)("/api/app/container/get-detail",{data:s,method:"POST"}));case 1:case"end":return l.stop()}},g)})),_.apply(this,arguments)}function L(g){return E.apply(this,arguments)}function E(){return E=C()(a()().mark(function g(s){return a()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,y.request)("/api/app/container/update",{data:s,method:"POST"}));case 1:case"end":return l.stop()}},g)})),E.apply(this,arguments)}function v(){return D.apply(this,arguments)}function D(){return D=C()(a()().mark(function g(){return a()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",(0,y.request)("/api/app/container/prune",{method:"POST"}));case 1:case"end":return x.stop()}},g)})),D.apply(this,arguments)}function I(g){return b.apply(this,arguments)}function b(){return b=C()(a()().mark(function g(s){return a()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,y.request)("/api/app/container/export",{method:"POST",data:s,responseType:"blob"}));case 1:case"end":return l.stop()}},g)})),b.apply(this,arguments)}function $(g){return H.apply(this,arguments)}function H(){return H=C()(a()().mark(function g(s){return a()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,y.request)("/api/app/container/commit",{method:"POST",data:s}));case 1:case"end":return l.stop()}},g)})),H.apply(this,arguments)}}}]); diff --git a/asset/static/p__compose__deploy.36d51823.async.js b/asset/static/p__compose__deploy.36d51823.async.js new file mode 100644 index 00000000..c043a94e --- /dev/null +++ b/asset/static/p__compose__deploy.36d51823.async.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7667],{99861:function(k,x,e){var K=e(15009),u=e.n(K),L=e(64599),D=e.n(L),E=e(99289),C=e.n(E),d=e(5574),G=e.n(d),l=e(83062),W=e(14726),v=e(42119),I=e(67294),R=e(92754),m=e(3393),j=e(184),f=e(38345),o=e(85893),c=(0,I.forwardRef)(function(_,V){(0,I.useImperativeHandle)(V,function(){return{}});var b=(0,I.useState)(0),A=G()(b,2),g=A[0],N=A[1],F=(0,I.useRef)();return(0,o.jsxs)(j.a,{trigger:(0,o.jsx)(l.Z,{title:"\u5F53\u90E8\u7F72\u65F6\u65E0\u6CD5\u6B63\u5E38\u62C9\u53D6\u955C\u50CF\u65F6\uFF0C\u53EF\u4EE5\u624B\u52A8\u4F7F\u7528\u9762\u677F\u7684\u4ED3\u5E93\u52A0\u901F\u529F\u80FD\u62C9\u53D6\u6240\u6709\u955C\u50CF",children:(0,o.jsx)(W.ZP,{children:_.title?_.title:"\u4E00\u952E\u62C9\u53D6\u955C\u50CF"})}),width:800,submitter:!1,title:"\u4E00\u952E\u62C9\u53D6\u955C\u50CF",onOpenChange:function(){var J=C()(u()().mark(function $(i){var p,B,n,P,h,Z,S;return u()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!i){M.next=25;break}B=0,n=D()(_.image),M.prev=3,n.s();case 5:if((P=n.n()).done){M.next=15;break}return Z=P.value,N(B),(h=F.current)===null||h===void 0||h.setStart(Z),M.next=11,(0,m.Gb)({tag:Z,type:"pull"});case 11:S=M.sent,B++;case 13:M.next=5;break;case 15:M.next=20;break;case 17:M.prev=17,M.t0=M.catch(3),n.e(M.t0);case 20:return M.prev=20,n.f(),M.finish(20);case 23:(p=F.current)===null||p===void 0||p.setFinish(),N(B);case 25:case"end":return M.stop()}},$,null,[[3,17,20,23]])}));return function($){return J.apply(this,arguments)}}(),children:[(0,o.jsx)(f.Z,{children:(0,o.jsx)(v.Z,{current:g,items:_.image.map(function(J,$){return{title:J,key:$}})})}),(0,o.jsx)(f.Z,{children:(0,o.jsx)(R.Z,{ref:F})})]})});x.Z=c},91058:function(k,x,e){var K=e(5574),u=e.n(K),L=e(89035),D=e(38345),E=e(17186),C=e(24739),d=e(5966),G=e(42075),l=e(14726),W=e(85576),v=e(67294),I=e(95089),R=e(89063),m=e(85893),j="docker-image",f=(0,v.forwardRef)(function(o,c){var _=(0,v.useState)(j),V=u()(_,2),b=V[0],A=V[1],g=(0,v.useRef)(),N=(0,v.useState)(""),F=u()(N,2),J=F[0],$=F[1],i=function(){b!="code"?A("code"):A(j)};(0,v.useImperativeHandle)(c,function(){return{addEnvItem:function(P,h){var Z,S=(Z=g.current)===null||Z===void 0?void 0:Z.getList(),Q=!1;if(S==null||S.map(function(ee){if(ee.name==P){Q=!0;return}}),!Q){var M;(M=g.current)===null||M===void 0||M.add({name:P,value:h})}},clear:function(){var P;(P=g.current)===null||P===void 0||(P=P.getList())===null||P===void 0||P.map(function(h,Z){var S;(S=g.current)===null||S===void 0||S.remove(Z)})}}});function p(n){try{var P,h;n==""&&(n=B());for(var Z=(P=(h=g.current)===null||h===void 0||(h=h.getList())===null||h===void 0?void 0:h.length)!==null&&P!==void 0?P:0,S=Z;S>=0;S--){var Q;(Q=g.current)===null||Q===void 0||Q.remove(S)}var M=n.split(` +`),ee=0;M.map(function(ne){var te,r=ne.split("=");r.length<2||((te=g.current)===null||te===void 0||te.add({name:r[0],value:r.slice(1).join("=")},ee),ee++)})}catch(ne){console.log(ne)}}function B(){if(g&&g.current&&g.current.getList){var n,P=(n=g.current)===null||n===void 0?void 0:n.getList();if(P){var h=[];return P.map(function(Z){h.push("".concat(Z.name,"=").concat(Z.value))}),h.join(` +`)}else return""}else return""}return(0,m.jsxs)(D.Z,{ghost:o.showCardGhost,title:"\u73AF\u5883\u53D8\u91CF",headerBordered:!0,extra:(0,m.jsxs)(G.Z,{children:[o.showImportButton&&(0,m.jsx)("div",{style:{marginBottom:"-25px"},children:(0,m.jsx)(R.Z,{title:"\u5BFC\u5165 env \u6587\u4EF6",onImport:function(P){return p(P),!0},onLoad:function(P){if(P.indexOf("=")<0)throw new Error("\u5BFC\u5165env\u6587\u4EF6\u9519\u8BEF");return!0}})}),(0,m.jsx)(l.ZP,{icon:(0,m.jsx)(L.Z,{}),type:b=="code"?"primary":"default",onClick:i,children:"\u4EE3\u7801\u6A21\u5F0F"},"code")]}),children:[(0,m.jsx)(E.u,{name:o.name?o.name:"environment",actionRef:g,creatorButtonProps:o.showAddButton?{creatorButtonText:"\u6DFB\u52A0\u5BB9\u5668\u73AF\u5883\u53D8\u91CF"}:!1,copyIconProps:!1,min:0,children:(0,m.jsxs)(C.UW,{children:[(0,m.jsx)(d.Z,{width:o.showInDrawer?"sm":"md",name:"name",label:"\u53D8\u91CF\u540D",required:!0,rules:[{required:!0}],disabled:o.showDisableName,placeholder:"\u8F93\u5165\u53D8\u91CF\u540D\u79F0"}),(0,m.jsx)(d.Z,{width:"md",name:"value",label:"\u53D8\u91CF\u503C",rules:[{required:!!o.requireValue}],placeholder:"\u8F93\u5165\u53D8\u91CF\u503C\uFF0C\u53EF\u4EE5\u4E3A\u7A7A"})]})}),(0,m.jsx)(W.Z,{width:"800px",open:b=="code",onCancel:function(){return A("docker-image")},onOk:function(){p(J),A("docker-image")},children:(0,m.jsx)(I.ZP,{onChange:function(P){return $(P)},value:B(),height:"680px",theme:"light"})})]})});x.Z=f},89063:function(k,x,e){e.d(x,{Z:function(){return G}});var K=e(24963),u=e(88484),L=e(31418),D=e(72723),E=e(14726),C=e(67294),d=e(85893);function G(l){var W=(0,C.useContext)(K.Z),v=W.message,I=W.notice,R=W.lang,m=(0,C.useRef)(null),j=L.Z.useApp(),f=function(){m.current&&(m.current.click(),m.current.onchange=function(c){if(!c||!c.target)return"";var _=new FileReader;_.onload=function(b){var A,g,N=(A=b.target)===null||A===void 0?void 0:A.result;if(l.onLoad)try{l.onLoad&&l.onLoad(N)}catch(F){I.error(F);return}typeof l.onImport=="function"&&l.onImport(N),(g=m.current)!==null&&g!==void 0&&g.value&&(m.current.value="")};var V=c.target;if(V.files)try{_.readAsText(V.files[0])}catch(b){I.error("\u5BFC\u5165\u6587\u4EF6\u5FC5\u987B\u662F\u6587\u672C\u7C7B\u578B")}})};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(D.Z.Item,{name:"importFile",label:l.label,children:(0,d.jsx)(E.ZP,{icon:(0,d.jsx)(u.Z,{}),block:!0,onClick:f,children:l.title})}),(0,d.jsx)("input",{style:{display:"none"},type:"file",ref:m,name:"importFileInput"})]})}},92754:function(k,x,e){var K=e(5574),u=e.n(K),L=e(67294),D=e(54006),E=e(38703),C=e(85893),d=(0,L.forwardRef)(function(G,l){var W=(0,L.useState)(""),v=u()(W,2),I=v[0],R=v[1];(0,L.useImperativeHandle)(l,function(){return{setFinish:function(){c({finish:{downloading:100,extracting:100}})},setStart:function(V){V&&R(V),c({start:{downloading:0,extracting:0}})}}});var m=(0,D.useModel)("subscriber");m.addDataHandler("image:pull:"+I,function(_){c(_.data)});var j=(0,L.useState)(),f=u()(j,2),o=f[0],c=f[1];return(0,L.useEffect)(function(){c({start:{downloading:0,extracting:0}})},[]),(0,C.jsx)(C.Fragment,{children:o&&Object.keys(o).map(function(_){return(0,C.jsx)(E.Z,{percent:o[_].downloading,success:{percent:o[_].extracting}},_)})})});x.Z=d},54964:function(k,x,e){var K=e(78267),u=e.n(K),L=e(75458),D=e.n(L),E=e(67294),C=e(12320),d=e.n(C),G=e(89629),l=e(85893),W={convertEol:!0,fontFamily:'Menlo, Monaco, "Courier New", monospace',fontWeight:400,fontSize:16,cursorStyle:"block",cursorBlink:!0,theme:{foreground:"#bfbfbf",cursor:"gray",selectionForeground:"#ffffff"}},v=new C.Terminal(W),I=new L.SearchAddon,R=new K.FitAddon,m=(0,E.forwardRef)(function(j,f){return(0,E.useEffect)(function(){window.addEventListener("resize",function(){j.showInModal||R.fit()}),v.loadAddon(R),v.loadAddon(I),v.open(document.getElementById("terminal-container")),R.fit()},[]),(0,E.useImperativeHandle)(f,function(){return{write:function(c){v.write(c)},clear:function(){v.clear()},getTerminal:function(){return v},findNext:function(c){I.findNext(c)},findPrev:function(c){I.findPrevious(c)},fit:function(){R.fit()},onData:function(c){v.onData(c)}}}),(0,l.jsx)("div",{id:"terminal-container",style:{width:j.width?j.width:"100%",height:j.height?j.height:"500px"}})});x.Z=m},97964:function(k,x,e){e.r(x),e.d(x,{default:function(){return Pe}});var K=e(15009),u=e.n(K),L=e(99289),D=e.n(L),E=e(5574),C=e.n(E),d=e(80821),G=e(54964),l=e(90098),W=e(43425),v=e(74842),I=e(87784),R=e(33160),m=e(30159),j=e(45742),f=e(86548),o=e(91806),c=e(38345),_=e(184),V=e(97269),b=e(97462),A=e(54006),g=e(42075),N=e(96074),F=e(14726),J=e(60922),$=e(84567),i=e(40056),p=e(32983),B=e(85265),n=e(72269),P=e(92398),h=e(67294),Z=e(7297),S=e(99861),Q=e(1272),M=e(95089),ee=e(95213),ne=e(24963),te=e(91058),r=e(85893);function Pe(){var se=(0,h.useContext)(ne.Z),ie=se.loading,Ze=se.message,Se=se.notice,le=(0,A.useParams)(),Oe=(0,A.useNavigate)(),Ce=(0,h.useState)(),de=C()(Ce,2),a=de[0],Me=de[1],je=(0,h.useState)([]),ce=C()(je,2),Te=ce[0],Ie=ce[1],Re=(0,h.useState)(""),me=C()(Re,2),Le=me[0],Be=me[1],ye=(0,h.useState)({deleteVolume:!1,deleteImage:!1,deleteData:!1}),pe=C()(ye,2),X=pe[0],ue=pe[1],Ae=(0,h.useState)([]),Ee=C()(Ae,2),ve=Ee[0],Ue=Ee[1],w=(0,h.useRef)(),be=(0,h.useRef)(),We=(0,h.useState)(0),fe=C()(We,2),he=fe[0],Fe=fe[1],xe=(0,h.useState)("default"),De=C()(xe,2),ae=De[0],z=De[1],_e=(0,h.useRef)(),re=(0,h.useRef)(),Ke=(0,A.useModel)("subscriber");return Ke.addDataHandler("compose:"+le.id,function(O){var t;(t=w.current)===null||t===void 0||t.write(O.data)}),(0,h.useEffect)(function(){var O,t;ie.show(),(O=w.current)===null||O===void 0||O.clear(),(0,l.YZ)({id:parseInt((t=le.id)!==null&&t!==void 0?t:"")}).then(function(s){var U,T=s.data.detail;if(T.setting.status&&T.setting.status.indexOf("running")>-1&&(T.isRunning=!0),T.setting.status&&T.setting.status.indexOf("paused")>-1&&(T.isPaused=!0),T.setting.status&&T.setting.status=="waiting"?T.isDeploy=!1:T.isDeploy=!0,T.yaml){var H=Q.ZP.load(T.yaml);T.imageList=Object.keys(H.services).map(function(y){var q;return(q=H.services[y].image)!==null&&q!==void 0?q:""}),s.data.containerList&&Ie(s.data.containerList.map(function(y){return"/"+y.name}))}s.data.containerPrefix&&Be(s.data.containerPrefix);var Y=s.data.project,oe=[];Y!=null&&Y.services&&Object.keys(Y.services).map(function(y){var q={name:y,env:[]};Y.services&&Y.services[y]&&(Y.services[y].environment&&Object.keys(Y.services[y].environment).map(function(ge){Y.services[y].environment&&q.env.push({name:ge,value:Y.services[y].environment[ge]})}),q.env.length!=0&&oe.push(q))}),Ue(oe),Me(T),(U=_e.current)===null||U===void 0||U.reload()}).catch(function(){Oe("/compose/list")}).finally(function(){ie.destroy()})},[he]),(0,r.jsxs)(c.Z,{direction:"column",gutter:[10,10],children:[(0,r.jsx)(c.Z,{title:(0,r.jsx)(W.Z,{}),subTitle:"\u64CD\u4F5C - "+(a==null?void 0:a.name),ghost:!0,children:a!=null&&a.yaml?(0,r.jsxs)(g.Z,{wrap:!0,children:[a.isDeploy&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{icon:(0,r.jsx)(v.Z,{}),action:function(){var t,s;return(t=w.current)===null||t===void 0||t.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"start"})},disabled:(a==null?void 0:a.isRunning)||a.isPaused,messageSuccess:"\u542F\u52A8\u6210\u529F",children:"\u542F\u52A8"}),(0,r.jsx)(d.Z,{action:function(){var t,s;return(t=w.current)===null||t===void 0||t.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"stop"})},messageSuccess:"\u505C\u6B62\u6210\u529F",icon:(0,r.jsx)(I.Z,{}),disabled:!a.isRunning,children:"\u505C\u6B62"}),(0,r.jsx)(d.Z,{action:function(){var t,s;return(t=w.current)===null||t===void 0||t.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"restart"})},messageSuccess:"\u91CD\u542F\u6210\u529F",icon:(0,r.jsx)(R.Z,{}),children:"\u91CD\u542F"}),(0,r.jsx)(d.Z,{action:function(){var t,s;return(t=w.current)===null||t===void 0||t.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"pause"})},messageSuccess:"\u6682\u505C\u6210\u529F",icon:(0,r.jsx)(m.Z,{}),disabled:!a.isRunning,children:"\u6682\u505C"}),(0,r.jsx)(d.Z,{action:function(){var t,s;return(t=w.current)===null||t===void 0||t.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"unpause"})},messageSuccess:"\u6062\u590D\u6210\u529F",icon:(0,r.jsx)(v.Z,{}),disabled:!(a!=null&&a.isPaused),children:"\u6062\u590D"}),(0,r.jsx)(d.Z,{action:function(){var t,s;return(t=w.current)===null||t===void 0||t.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"logs"})},messageSuccess:"\u83B7\u53D6\u6210\u529F",icon:(0,r.jsx)(j.Z,{}),children:"\u65E5\u5FD7"}),(0,r.jsx)(N.Z,{type:"vertical"})]}),(0,r.jsx)(S.Z,{title:a.isDeploy?"\u4E00\u952E\u66F4\u65B0\u955C\u50CF":"\u4E00\u952E\u62C9\u53D6\u955C\u50CF",image:a.imageList}),(0,r.jsx)(F.ZP,{type:"primary",onClick:D()(u()().mark(function O(){var t,s;return u()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:(t=w.current)===null||t===void 0||t.clear(),z("deploy"),(s=re.current)===null||s===void 0||s.setFieldValue("environment",a.setting.environment);case 3:case"end":return T.stop()}},O)})),children:a.isDeploy?"\u91CD\u65B0\u90E8\u7F72":"\u90E8\u7F72\u5BB9\u5668"}),a.isDeploy&&(0,r.jsx)(d.Z,{type:"primary",action:D()(u()().mark(function O(){var t,s,U;return u()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return(t=w.current)===null||t===void 0||t.clear(),z("destory"),H.next=4,(0,l.mg)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,deleteImage:X.deleteImage,deleteData:X.deleteData,deleteVolume:X.deleteVolume});case 4:U=H.sent;case 5:case"end":return H.stop()}},O)})),danger:!0,confirm:(0,r.jsxs)(g.Z,{style:{width:280},direction:"vertical",children:[(0,r.jsx)(J.Z.Text,{children:"\u5220\u9664\u5BB9\u5668\u540E\u65E0\u6CD5\u6062\u590D,\u786E\u8BA4\u5417\uFF1F"}),(0,r.jsx)($.Z,{name:"deleteData",onChange:function(t){return ue({deleteData:t.target.checked,deleteImage:X.deleteImage,deleteVolume:X.deleteVolume})},children:"\u5220\u9664\u4EFB\u52A1\uFF1F"}),(0,r.jsx)($.Z,{name:"deleteImage",onChange:function(t){return ue({deleteImage:t.target.checked,deleteData:X.deleteData,deleteVolume:X.deleteVolume})},children:"\u5220\u9664\u955C\u50CF\uFF1F"}),(0,r.jsx)($.Z,{name:"deleteVolume",onChange:function(t){return ue({deleteData:X.deleteImage,deleteImage:X.deleteImage,deleteVolume:t.target.checked})},children:"\u5220\u9664\u5B58\u50A8\u5377\uFF1F"})]}),children:"\u9500\u6BC1\u5BB9\u5668"}),(0,r.jsx)(N.Z,{type:"vertical"}),(0,r.jsx)(F.ZP,{onClick:function(){z("console")},children:"\u63A7\u5236\u53F0"}),(0,r.jsx)(_.a,{drawerProps:{forceRender:!0},submitter:!1,trigger:(0,r.jsx)(F.ZP,{children:"Yaml"}),title:(0,r.jsxs)(g.Z,{children:[(0,r.jsx)("span",{children:"Compose Yaml"}),(0,r.jsx)("div",{})]}),children:(0,r.jsx)(M.ZP,{theme:"dark",minHeight:"550px",value:a.yaml,extensions:[ee.RI.yaml()]})}),a.id>0&&(0,r.jsx)(A.Link,{to:"/compose/create?id="+a.id,children:(0,r.jsx)(F.ZP,{icon:(0,r.jsx)(f.Z,{}),children:"\u7F16\u8F91"})})]}):(0,r.jsx)(i.Z,{showIcon:!0,type:"info",message:(0,r.jsxs)(r.Fragment,{children:["\u65E0\u6CD5\u83B7\u53D6\u8BE5\u4EFB\u52A1\u7684 compose.yaml \u6587\u4EF6\uFF0C\u65E0\u7BA1\u7406\u6743\u9650\u3002",(0,r.jsx)("a",{target:"_blank",href:"https://dpanel.cc/#/zh-cn/manual/compose/external",children:"\u5982\u4F55\u7BA1\u7406\u5916\u90E8\u4EFB\u52A1\uFF1F"})]})})},"operator"),(0,r.jsx)(c.Z,{ghost:!0,title:(0,r.jsx)(o.Z,{}),subTitle:"\u5BB9\u5668\u7EC4",children:a!=null&&a.isDeploy?(0,r.jsx)(Z.Z,{showLite:!0,searchNameList:Te,searchPrefix:Le,ref:_e}):(0,r.jsx)(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE})}),(0,r.jsxs)(B.Z,{open:ae!="default",afterOpenChange:function(){var t;(t=w.current)===null||t===void 0||t.fit(),ve.map(function(s){var U;(U=re.current)===null||U===void 0||U.setFieldValue(["environment",s.name],s.env)})},width:850,title:"\u63A7\u5236\u53F0\u65E5\u5FD7",forceRender:!0,onClose:function(){var t;z("default"),Fe(he+1),(t=_e.current)===null||t===void 0||t.reload()},extra:(0,r.jsxs)(g.Z,{children:[ae=="deploy"&&(0,r.jsx)(n.Z,{checkedChildren:"\u91CD\u8BBE\u7F6E\u73AF\u5883\u53D8\u91CF",unCheckedChildren:"\u91CD\u8BBE\u7F6E\u73AF\u5883\u53D8\u91CF",onChange:function(t){var s;(s=re.current)===null||s===void 0||s.setFieldValue("resetEnv",t)}}),ae=="deploy"&&(0,r.jsx)(d.Z,{type:"primary",action:D()(u()().mark(function O(){var t,s,U,T,H,Y;return u()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if((t=w.current)===null||t===void 0||t.clear(),T={id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0},T.environment=(U=re.current)===null||U===void 0?void 0:U.getFieldValue("environment"),!(a!=null&&a.isDeploy)){y.next=7;break}return y.next=6,(0,l.mg)({id:(H=a==null?void 0:a.id)!==null&&H!==void 0?H:0,deleteImage:!1,deleteData:!1,deleteVolume:!1});case 6:Y=y.sent;case 7:return y.next=9,(0,l.Oh)(T);case 9:return y.abrupt("return",y.sent);case 10:case"end":return y.stop()}},O)})),children:"\u6267\u884C\u90E8\u7F72"},"create"),(0,r.jsx)(d.Z,{type:"primary",action:function(){var t;return(t=w.current)===null||t===void 0||t.clear(),(0,l.U_)({})},danger:!0,children:"\u4E2D\u6B62\u6267\u884C"},"kill")]}),footer:!1,children:[(0,r.jsx)(i.Z,{showIcon:!0,style:{marginBottom:"20px"},message:"\u5982\u679C\u62C9\u53D6\u955C\u50CF\u5931\u8D25\uFF0C\u8BF7\u914D\u7F6E\u4ED3\u5E93\u52A0\u901F\u5730\u5740\uFF0C\u4F7F\u7528\u3010\u4E00\u952E\u62C9\u53D6\u955C\u50CF\u3011\u529F\u80FD\u540E\u518D\u5C1D\u8BD5\u90E8\u7F72\u3002"}),ae=="deploy"&&(0,r.jsx)(V.A,{submitter:!1,formRef:re,children:(0,r.jsx)(c.Z,{ghost:!0,children:(0,r.jsx)(b.Z,{name:["resetEnv"],children:function(t){var s=t.resetEnv;if(s)return(0,r.jsx)(P.Z,{indicator:{align:"center"},items:ve.map(function(U){return{label:U.name,key:U.name,children:(0,r.jsx)(te.Z,{showCardGhost:!0,name:["environment",U.name],showDisableName:!0,showInDrawer:!0,requireValue:!0})}})})}})})}),(0,r.jsx)(G.Z,{width:"100%",height:"500px",showInModal:!0,ref:w})]})]})}},90098:function(k,x,e){e.d(x,{GG:function(){return c},MG:function(){return N},Oh:function(){return m},U_:function(){return A},YZ:function(){return W},ik:function(){return I},im:function(){return C},mg:function(){return f},pm:function(){return G},xC:function(){return J}});var K=e(15009),u=e.n(K),L=e(99289),D=e.n(L),E=e(54006);function C(i){return d.apply(this,arguments)}function d(){return d=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/create",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),d.apply(this,arguments)}function G(i){return l.apply(this,arguments)}function l(){return l=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/get-list",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),l.apply(this,arguments)}function W(i){return v.apply(this,arguments)}function v(){return v=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/get-detail",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),v.apply(this,arguments)}function I(i){return R.apply(this,arguments)}function R(){return R=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/delete",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),R.apply(this,arguments)}function m(i){return j.apply(this,arguments)}function j(){return j=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/container-deploy",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),j.apply(this,arguments)}function f(i){return o.apply(this,arguments)}function o(){return o=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/container-destroy",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),o.apply(this,arguments)}function c(i){return _.apply(this,arguments)}function _(){return _=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/container-ctrl",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),_.apply(this,arguments)}function V(i){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function i(p){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/app/compose/container-log",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),b.apply(this,arguments)}function A(i){return g.apply(this,arguments)}function g(){return g=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/container-process-kill",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),g.apply(this,arguments)}function N(i){return F.apply(this,arguments)}function F(){return F=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/get-from-uri",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),F.apply(this,arguments)}function J(i){return $.apply(this,arguments)}function $(){return $=D()(u()().mark(function i(p){return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,E.request)("/api/app/compose/parse",{method:"POST",data:p}));case 1:case"end":return n.stop()}},i)})),$.apply(this,arguments)}},3393:function(k,x,e){e.d(x,{Gb:function(){return G},Pn:function(){return I},Rb:function(){return m},YU:function(){return C},_U:function(){return W}});var K=e(15009),u=e.n(K),L=e(99289),D=e.n(L),E=e(54006);function C(f){return d.apply(this,arguments)}function d(){return d=D()(u()().mark(function f(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,E.request)("/api/app/image/get-detail",{method:"POST",data:o}));case 1:case"end":return _.stop()}},f)})),d.apply(this,arguments)}function G(f){return l.apply(this,arguments)}function l(){return l=D()(u()().mark(function f(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,E.request)("/api/app/image/tag-remote",{method:"POST",data:o}));case 1:case"end":return _.stop()}},f)})),l.apply(this,arguments)}function W(f){return v.apply(this,arguments)}function v(){return v=D()(u()().mark(function f(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,E.request)("/api/app/image/tag-add",{method:"POST",data:o}));case 1:case"end":return _.stop()}},f)})),v.apply(this,arguments)}function I(f){return R.apply(this,arguments)}function R(){return R=D()(u()().mark(function f(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,E.request)("/api/app/image/tag-delete",{method:"POST",data:o}));case 1:case"end":return _.stop()}},f)})),R.apply(this,arguments)}function m(f){return j.apply(this,arguments)}function j(){return j=D()(u()().mark(function f(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,E.request)("/api/app/image/export",{method:"POST",data:o,responseType:"blob"}));case 1:case"end":return _.stop()}},f)})),j.apply(this,arguments)}}}]); diff --git a/asset/static/p__compose__deploy.cf89dacd.async.js b/asset/static/p__compose__deploy.cf89dacd.async.js deleted file mode 100644 index b2a2a9c2..00000000 --- a/asset/static/p__compose__deploy.cf89dacd.async.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7667],{99861:function(k,x,e){var K=e(15009),u=e.n(K),B=e(64599),v=e.n(B),p=e(99289),O=e.n(p),m=e(5574),V=e.n(m),l=e(83062),j=e(14726),P=e(42119),R=e(67294),y=e(92754),d=e(3393),A=e(184),c=e(38345),o=e(85893),C=(0,R.forwardRef)(function(_,$){(0,R.useImperativeHandle)($,function(){return{}});var G=(0,R.useState)(0),U=V()(G,2),h=U[0],N=U[1],F=(0,R.useRef)();return(0,o.jsxs)(A.a,{trigger:(0,o.jsx)(l.Z,{title:"\u5F53\u90E8\u7F72\u65F6\u65E0\u6CD5\u6B63\u5E38\u62C9\u53D6\u955C\u50CF\u65F6\uFF0C\u53EF\u4EE5\u624B\u52A8\u4F7F\u7528\u9762\u677F\u7684\u4ED3\u5E93\u52A0\u901F\u529F\u80FD\u62C9\u53D6\u6240\u6709\u955C\u50CF",children:(0,o.jsx)(j.ZP,{children:_.title?_.title:"\u4E00\u952E\u62C9\u53D6\u955C\u50CF"})}),width:800,submitter:!1,title:"\u4E00\u952E\u62C9\u53D6\u955C\u50CF",onOpenChange:function(){var i=O()(u()().mark(function E(Z){var r,J,T,D,f,S,b;return u()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!Z){M.next=25;break}J=0,T=v()(_.image),M.prev=3,T.s();case 5:if((D=T.n()).done){M.next=15;break}return S=D.value,N(J),(f=F.current)===null||f===void 0||f.setStart(),M.next=11,(0,d.Gb)({tag:S,type:"pull"});case 11:b=M.sent,J++;case 13:M.next=5;break;case 15:M.next=20;break;case 17:M.prev=17,M.t0=M.catch(3),T.e(M.t0);case 20:return M.prev=20,T.f(),M.finish(20);case 23:(r=F.current)===null||r===void 0||r.setFinish(),N(J);case 25:case"end":return M.stop()}},E,null,[[3,17,20,23]])}));return function(E){return i.apply(this,arguments)}}(),children:[(0,o.jsx)(c.Z,{children:(0,o.jsx)(P.Z,{current:h,items:_.image.map(function(i,E){return{title:i,key:E}})})}),(0,o.jsx)(c.Z,{children:(0,o.jsx)(y.Z,{ref:F})})]})});x.Z=C},91058:function(k,x,e){var K=e(5574),u=e.n(K),B=e(89035),v=e(38345),p=e(17186),O=e(24739),m=e(5966),V=e(42075),l=e(14726),j=e(85576),P=e(67294),R=e(95089),y=e(89063),d=e(85893),A="docker-image",c=(0,P.forwardRef)(function(o,C){var _=(0,P.useState)(A),$=u()(_,2),G=$[0],U=$[1],h=(0,P.useRef)(),N=(0,P.useState)(""),F=u()(N,2),i=F[0],E=F[1],Z=function(){G!="code"?U("code"):U(A)};(0,P.useImperativeHandle)(C,function(){return{addEnvItem:function(D,f){var S,b=(S=h.current)===null||S===void 0?void 0:S.getList(),Q=!1;if(b==null||b.map(function(ee){if(ee.name==D){Q=!0;return}}),!Q){var M;(M=h.current)===null||M===void 0||M.add({name:D,value:f})}},clear:function(){var D;(D=h.current)===null||D===void 0||(D=D.getList())===null||D===void 0||D.map(function(f,S){var b;(b=h.current)===null||b===void 0||b.remove(S)})}}});function r(T){try{var D,f;T==""&&(T=J());for(var S=(D=(f=h.current)===null||f===void 0||(f=f.getList())===null||f===void 0?void 0:f.length)!==null&&D!==void 0?D:0,b=S;b>=0;b--){var Q;(Q=h.current)===null||Q===void 0||Q.remove(b)}var M=T.split(` -`),ee=0;M.map(function(ne){var te,t=ne.split("=");t.length<2||((te=h.current)===null||te===void 0||te.add({name:t[0],value:t.slice(1).join("=")},ee),ee++)})}catch(ne){console.log(ne)}}function J(){if(h&&h.current&&h.current.getList){var T,D=(T=h.current)===null||T===void 0?void 0:T.getList();if(D){var f=[];return D.map(function(S){f.push("".concat(S.name,"=").concat(S.value))}),f.join(` -`)}else return""}else return""}return(0,d.jsxs)(v.Z,{ghost:o.showCardGhost,title:"\u73AF\u5883\u53D8\u91CF",headerBordered:!0,extra:(0,d.jsxs)(V.Z,{children:[o.showImportButton&&(0,d.jsx)("div",{style:{marginBottom:"-25px"},children:(0,d.jsx)(y.Z,{title:"\u5BFC\u5165 env \u6587\u4EF6",onImport:function(D){return r(D),!0},onLoad:function(D){if(D.indexOf("=")<0)throw new Error("\u5BFC\u5165env\u6587\u4EF6\u9519\u8BEF");return!0}})}),(0,d.jsx)(l.ZP,{icon:(0,d.jsx)(B.Z,{}),type:G=="code"?"primary":"default",onClick:Z,children:"\u4EE3\u7801\u6A21\u5F0F"},"code")]}),children:[(0,d.jsx)(p.u,{name:o.name?o.name:"environment",actionRef:h,creatorButtonProps:o.showAddButton?{creatorButtonText:"\u6DFB\u52A0\u5BB9\u5668\u73AF\u5883\u53D8\u91CF"}:!1,copyIconProps:!1,min:0,children:(0,d.jsxs)(O.UW,{children:[(0,d.jsx)(m.Z,{width:o.showInDrawer?"sm":"md",name:"name",label:"\u53D8\u91CF\u540D",required:!0,rules:[{required:!0}],disabled:o.showDisableName,placeholder:"\u8F93\u5165\u53D8\u91CF\u540D\u79F0"}),(0,d.jsx)(m.Z,{width:"md",name:"value",label:"\u53D8\u91CF\u503C",rules:[{required:!!o.requireValue}],placeholder:"\u8F93\u5165\u53D8\u91CF\u503C\uFF0C\u53EF\u4EE5\u4E3A\u7A7A"})]})}),(0,d.jsx)(j.Z,{width:"800px",open:G=="code",onCancel:function(){return U("docker-image")},onOk:function(){r(i),U("docker-image")},children:(0,d.jsx)(R.ZP,{onChange:function(D){return E(D)},value:J(),height:"680px",theme:"light"})})]})});x.Z=c},89063:function(k,x,e){e.d(x,{Z:function(){return V}});var K=e(24963),u=e(88484),B=e(31418),v=e(72723),p=e(14726),O=e(67294),m=e(85893);function V(l){var j=(0,O.useContext)(K.Z),P=j.message,R=j.notice,y=j.lang,d=(0,O.useRef)(null),A=B.Z.useApp(),c=function(){d.current&&(d.current.click(),d.current.onchange=function(C){if(!C||!C.target)return"";var _=new FileReader;_.onload=function(G){var U,h,N=(U=G.target)===null||U===void 0?void 0:U.result;if(l.onLoad)try{l.onLoad&&l.onLoad(N)}catch(F){R.error(F);return}typeof l.onImport=="function"&&l.onImport(N),(h=d.current)!==null&&h!==void 0&&h.value&&(d.current.value="")};var $=C.target;if($.files)try{_.readAsText($.files[0])}catch(G){R.error("\u5BFC\u5165\u6587\u4EF6\u5FC5\u987B\u662F\u6587\u672C\u7C7B\u578B")}})};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(v.Z.Item,{name:"importFile",label:l.label,children:(0,m.jsx)(p.ZP,{icon:(0,m.jsx)(u.Z,{}),block:!0,onClick:c,children:l.title})}),(0,m.jsx)("input",{style:{display:"none"},type:"file",ref:d,name:"importFileInput"})]})}},92754:function(k,x,e){var K=e(5574),u=e.n(K),B=e(67294),v=e(54006),p=e(38703),O=e(85893),m=(0,B.forwardRef)(function(V,l){var j=(0,B.useState)(""),P=u()(j,2),R=P[0],y=P[1];(0,B.useImperativeHandle)(l,function(){return{setFinish:function(){C({finish:{downloading:100,extracting:100}})},setStart:function($){$&&y($),C({start:{downloading:0,extracting:0}})}}});var d=(0,v.useModel)("subscriber");d.addDataHandler("image:pull:"+R,function(_){C(_.data)});var A=(0,B.useState)(),c=u()(A,2),o=c[0],C=c[1];return(0,B.useEffect)(function(){C({start:{downloading:0,extracting:0}})},[]),(0,O.jsx)(O.Fragment,{children:o&&Object.keys(o).map(function(_){return(0,O.jsx)(p.Z,{percent:o[_].downloading,success:{percent:o[_].extracting}},_)})})});x.Z=m},54964:function(k,x,e){var K=e(78267),u=e.n(K),B=e(75458),v=e.n(B),p=e(67294),O=e(12320),m=e.n(O),V=e(89629),l=e(85893),j=new O.Terminal({convertEol:!0,fontFamily:'Menlo, Monaco, "Courier New", monospace',fontWeight:400,fontSize:16,cursorStyle:"block",cursorBlink:!0,theme:{foreground:"#bfbfbf",cursor:"gray",selectionForeground:"#ffffff"}}),P=new B.SearchAddon,R=new K.FitAddon,y=(0,p.forwardRef)(function(d,A){return(0,p.useEffect)(function(){window.addEventListener("resize",function(){d.showInModal||R.fit()}),j.loadAddon(R),j.loadAddon(P),j.open(document.getElementById("terminal-container")),R.fit()},[]),(0,p.useImperativeHandle)(A,function(){return{write:function(o){j.write(o)},clear:function(){j.clear()},getTerminal:function(){return j},findNext:function(o){P.findNext(o)},findPrev:function(o){P.findPrevious(o)},fit:function(){R.fit()},onData:function(o){j.onData(o)}}}),(0,l.jsx)("div",{id:"terminal-container",style:{width:d.width?d.width:"100%",height:d.height?d.height:"500px"}})});x.Z=y},97964:function(k,x,e){e.r(x),e.d(x,{default:function(){return ge}});var K=e(15009),u=e.n(K),B=e(99289),v=e.n(B),p=e(5574),O=e.n(p),m=e(80821),V=e(54964),l=e(90098),j=e(43425),P=e(74842),R=e(87784),y=e(33160),d=e(30159),A=e(45742),c=e(86548),o=e(91806),C=e(38345),_=e(184),$=e(97269),G=e(97462),U=e(54006),h=e(42075),N=e(96074),F=e(14726),i=e(60922),E=e(84567),Z=e(40056),r=e(32983),J=e(85265),T=e(72269),D=e(92398),f=e(67294),S=e(7297),b=e(99861),Q=e(1272),M=e(95089),ee=e(95213),ne=e(24963),te=e(91058),t=e(85893);function ge(){var se=(0,f.useContext)(ne.Z),ie=se.loading,Ze=se.message,Se=se.notice,le=(0,U.useParams)(),Oe=(0,U.useNavigate)(),Ce=(0,f.useState)(),de=O()(Ce,2),a=de[0],Me=de[1],je=(0,f.useState)([]),ce=O()(je,2),Te=ce[0],Ie=ce[1],Re=(0,f.useState)(""),me=O()(Re,2),Be=me[0],Le=me[1],Ae=(0,f.useState)({deleteVolume:!1,deleteImage:!1,deleteData:!1}),pe=O()(Ae,2),X=pe[0],ue=pe[1],ye=(0,f.useState)([]),Ee=O()(ye,2),ve=Ee[0],Ue=Ee[1],w=(0,f.useRef)(),We=(0,f.useState)(0),fe=O()(We,2),he=fe[0],Fe=fe[1],xe=(0,f.useState)("default"),De=O()(xe,2),ae=De[0],z=De[1],_e=(0,f.useRef)(),re=(0,f.useRef)(),Ke=(0,U.useModel)("subscriber");return Ke.addDataHandler("compose:"+le.id,function(g){var n;(n=w.current)===null||n===void 0||n.write(g.data)}),(0,f.useEffect)(function(){var g,n;ie.show(),(g=w.current)===null||g===void 0||g.clear(),(0,l.YZ)({id:parseInt((n=le.id)!==null&&n!==void 0?n:"")}).then(function(s){var W,I=s.data.detail;if(I.setting.status&&I.setting.status.indexOf("running")>-1&&(I.isRunning=!0),I.setting.status&&I.setting.status.indexOf("paused")>-1&&(I.isPaused=!0),I.setting.status&&I.setting.status=="waiting"?I.isDeploy=!1:I.isDeploy=!0,I.yaml){var H=Q.ZP.load(I.yaml);I.imageList=Object.keys(H.services).map(function(L){var q;return(q=H.services[L].image)!==null&&q!==void 0?q:""}),s.data.containerList&&Ie(s.data.containerList.map(function(L){return"/"+L.name}))}s.data.containerPrefix&&Le(s.data.containerPrefix);var Y=s.data.project,oe=[];Y!=null&&Y.services&&Object.keys(Y.services).map(function(L){var q={name:L,env:[]};Y.services&&Y.services[L]&&(Y.services[L].environment&&Object.keys(Y.services[L].environment).map(function(Pe){Y.services[L].environment&&q.env.push({name:Pe,value:Y.services[L].environment[Pe]})}),q.env.length!=0&&oe.push(q))}),Ue(oe),Me(I),(W=_e.current)===null||W===void 0||W.reload()}).catch(function(){Oe("/compose/list")}).finally(function(){ie.destroy()})},[he]),(0,t.jsxs)(C.Z,{direction:"column",gutter:[10,10],children:[(0,t.jsx)(C.Z,{title:(0,t.jsx)(j.Z,{}),subTitle:"\u64CD\u4F5C - "+(a==null?void 0:a.name),ghost:!0,children:a!=null&&a.yaml?(0,t.jsxs)(h.Z,{wrap:!0,children:[a.isDeploy&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{icon:(0,t.jsx)(P.Z,{}),action:function(){var n,s;return(n=w.current)===null||n===void 0||n.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"start"})},disabled:(a==null?void 0:a.isRunning)||a.isPaused,messageSuccess:"\u542F\u52A8\u6210\u529F",children:"\u542F\u52A8"}),(0,t.jsx)(m.Z,{action:function(){var n,s;return(n=w.current)===null||n===void 0||n.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"stop"})},messageSuccess:"\u505C\u6B62\u6210\u529F",icon:(0,t.jsx)(R.Z,{}),disabled:!a.isRunning,children:"\u505C\u6B62"}),(0,t.jsx)(m.Z,{action:function(){var n,s;return(n=w.current)===null||n===void 0||n.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"restart"})},messageSuccess:"\u91CD\u542F\u6210\u529F",icon:(0,t.jsx)(y.Z,{}),children:"\u91CD\u542F"}),(0,t.jsx)(m.Z,{action:function(){var n,s;return(n=w.current)===null||n===void 0||n.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"pause"})},messageSuccess:"\u6682\u505C\u6210\u529F",icon:(0,t.jsx)(d.Z,{}),disabled:!a.isRunning,children:"\u6682\u505C"}),(0,t.jsx)(m.Z,{action:function(){var n,s;return(n=w.current)===null||n===void 0||n.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"unpause"})},messageSuccess:"\u6062\u590D\u6210\u529F",icon:(0,t.jsx)(P.Z,{}),disabled:!(a!=null&&a.isPaused),children:"\u6062\u590D"}),(0,t.jsx)(m.Z,{action:function(){var n,s;return(n=w.current)===null||n===void 0||n.clear(),z("crtl"),(0,l.GG)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,op:"logs"})},messageSuccess:"\u83B7\u53D6\u6210\u529F",icon:(0,t.jsx)(A.Z,{}),children:"\u65E5\u5FD7"}),(0,t.jsx)(N.Z,{type:"vertical"})]}),(0,t.jsx)(b.Z,{title:a.isDeploy?"\u4E00\u952E\u66F4\u65B0\u955C\u50CF":"\u4E00\u952E\u62C9\u53D6\u955C\u50CF",image:a.imageList}),(0,t.jsx)(F.ZP,{type:"primary",onClick:v()(u()().mark(function g(){var n,s;return u()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:(n=w.current)===null||n===void 0||n.clear(),z("deploy"),(s=re.current)===null||s===void 0||s.setFieldValue("environment",a.setting.environment);case 3:case"end":return I.stop()}},g)})),children:a.isDeploy?"\u91CD\u65B0\u90E8\u7F72":"\u90E8\u7F72\u5BB9\u5668"}),a.isDeploy&&(0,t.jsx)(m.Z,{type:"primary",action:v()(u()().mark(function g(){var n,s,W;return u()().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return(n=w.current)===null||n===void 0||n.clear(),z("destory"),H.next=4,(0,l.mg)({id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0,deleteImage:X.deleteImage,deleteData:X.deleteData,deleteVolume:X.deleteVolume});case 4:W=H.sent;case 5:case"end":return H.stop()}},g)})),danger:!0,confirm:(0,t.jsxs)(h.Z,{style:{width:280},direction:"vertical",children:[(0,t.jsx)(i.Z.Text,{children:"\u5220\u9664\u5BB9\u5668\u540E\u65E0\u6CD5\u6062\u590D,\u786E\u8BA4\u5417\uFF1F"}),(0,t.jsx)(E.Z,{name:"deleteData",onChange:function(n){return ue({deleteData:n.target.checked,deleteImage:X.deleteImage,deleteVolume:X.deleteVolume})},children:"\u5220\u9664\u4EFB\u52A1\uFF1F"}),(0,t.jsx)(E.Z,{name:"deleteImage",onChange:function(n){return ue({deleteImage:n.target.checked,deleteData:X.deleteData,deleteVolume:X.deleteVolume})},children:"\u5220\u9664\u955C\u50CF\uFF1F"}),(0,t.jsx)(E.Z,{name:"deleteVolume",onChange:function(n){return ue({deleteData:X.deleteImage,deleteImage:X.deleteImage,deleteVolume:n.target.checked})},children:"\u5220\u9664\u5B58\u50A8\u5377\uFF1F"})]}),children:"\u9500\u6BC1\u5BB9\u5668"}),(0,t.jsx)(N.Z,{type:"vertical"}),(0,t.jsx)(F.ZP,{onClick:function(){z("console")},children:"\u63A7\u5236\u53F0"}),(0,t.jsx)(_.a,{drawerProps:{forceRender:!0},submitter:!1,trigger:(0,t.jsx)(F.ZP,{children:"Yaml"}),title:(0,t.jsxs)(h.Z,{children:[(0,t.jsx)("span",{children:"Compose Yaml"}),(0,t.jsx)("div",{})]}),children:(0,t.jsx)(M.ZP,{theme:"dark",minHeight:"550px",value:a.yaml,extensions:[ee.RI.yaml()]})}),a.id>0&&(0,t.jsx)(U.Link,{to:"/compose/create?id="+a.id,children:(0,t.jsx)(F.ZP,{icon:(0,t.jsx)(c.Z,{}),children:"\u7F16\u8F91"})})]}):(0,t.jsx)(Z.Z,{showIcon:!0,type:"info",message:(0,t.jsxs)(t.Fragment,{children:["\u65E0\u6CD5\u83B7\u53D6\u8BE5\u4EFB\u52A1\u7684 compose.yaml \u6587\u4EF6\uFF0C\u65E0\u7BA1\u7406\u6743\u9650\u3002",(0,t.jsx)("a",{target:"_blank",href:"https://dpanel.cc/#/zh-cn/manual/compose/external",children:"\u5982\u4F55\u7BA1\u7406\u5916\u90E8\u4EFB\u52A1\uFF1F"})]})})},"operator"),(0,t.jsx)(C.Z,{ghost:!0,title:(0,t.jsx)(o.Z,{}),subTitle:"\u5BB9\u5668\u7EC4",children:a!=null&&a.isDeploy?(0,t.jsx)(S.Z,{showLite:!0,searchNameList:Te,searchPrefix:Be,ref:_e}):(0,t.jsx)(r.Z,{image:r.Z.PRESENTED_IMAGE_SIMPLE})}),(0,t.jsxs)(J.Z,{open:ae!="default",afterOpenChange:function(){var n;(n=w.current)===null||n===void 0||n.fit(),ve.map(function(s){var W;(W=re.current)===null||W===void 0||W.setFieldValue(["environment",s.name],s.env)})},width:850,title:"\u63A7\u5236\u53F0\u65E5\u5FD7",forceRender:!0,onClose:function(){var n;z("default"),Fe(he+1),(n=_e.current)===null||n===void 0||n.reload()},extra:(0,t.jsxs)(h.Z,{children:[ae=="deploy"&&(0,t.jsx)(T.Z,{checkedChildren:"\u91CD\u8BBE\u7F6E\u73AF\u5883\u53D8\u91CF",unCheckedChildren:"\u91CD\u8BBE\u7F6E\u73AF\u5883\u53D8\u91CF",onChange:function(n){var s;(s=re.current)===null||s===void 0||s.setFieldValue("resetEnv",n)}}),ae=="deploy"&&(0,t.jsx)(m.Z,{type:"primary",action:v()(u()().mark(function g(){var n,s,W,I,H,Y;return u()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if((n=w.current)===null||n===void 0||n.clear(),I={id:(s=a==null?void 0:a.id)!==null&&s!==void 0?s:0},I.environment=(W=re.current)===null||W===void 0?void 0:W.getFieldValue("environment"),!(a!=null&&a.isDeploy)){L.next=7;break}return L.next=6,(0,l.mg)({id:(H=a==null?void 0:a.id)!==null&&H!==void 0?H:0,deleteImage:!1,deleteData:!1,deleteVolume:!1});case 6:Y=L.sent;case 7:return L.next=9,(0,l.Oh)(I);case 9:return L.abrupt("return",L.sent);case 10:case"end":return L.stop()}},g)})),children:"\u6267\u884C\u90E8\u7F72"},"create"),(0,t.jsx)(m.Z,{type:"primary",action:function(){var n;return(n=w.current)===null||n===void 0||n.clear(),(0,l.U_)({})},danger:!0,children:"\u4E2D\u6B62\u6267\u884C"},"kill")]}),footer:!1,children:[(0,t.jsx)(Z.Z,{showIcon:!0,style:{marginBottom:"20px"},message:"\u5982\u679C\u62C9\u53D6\u955C\u50CF\u5931\u8D25\uFF0C\u8BF7\u914D\u7F6E\u4ED3\u5E93\u52A0\u901F\u5730\u5740\uFF0C\u4F7F\u7528\u3010\u4E00\u952E\u62C9\u53D6\u955C\u50CF\u3011\u529F\u80FD\u540E\u518D\u5C1D\u8BD5\u90E8\u7F72\u3002"}),ae=="deploy"&&(0,t.jsx)($.A,{submitter:!1,formRef:re,children:(0,t.jsx)(C.Z,{ghost:!0,children:(0,t.jsx)(G.Z,{name:["resetEnv"],children:function(n){var s=n.resetEnv;if(s)return(0,t.jsx)(D.Z,{indicator:{align:"center"},items:ve.map(function(W){return{label:W.name,key:W.name,children:(0,t.jsx)(te.Z,{showCardGhost:!0,name:["environment",W.name],showDisableName:!0,showInDrawer:!0,requireValue:!0})}})})}})})}),(0,t.jsx)(V.Z,{ref:w})]})]})}},90098:function(k,x,e){e.d(x,{GG:function(){return C},MG:function(){return U},Oh:function(){return d},U_:function(){return $},YZ:function(){return j},ik:function(){return R},im:function(){return O},mg:function(){return c},pm:function(){return V},xC:function(){return N}});var K=e(15009),u=e.n(K),B=e(99289),v=e.n(B),p=e(54006);function O(i){return m.apply(this,arguments)}function m(){return m=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/create",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),m.apply(this,arguments)}function V(i){return l.apply(this,arguments)}function l(){return l=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/get-list",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),l.apply(this,arguments)}function j(i){return P.apply(this,arguments)}function P(){return P=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/get-detail",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),P.apply(this,arguments)}function R(i){return y.apply(this,arguments)}function y(){return y=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/delete",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),y.apply(this,arguments)}function d(i){return A.apply(this,arguments)}function A(){return A=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/container-deploy",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),A.apply(this,arguments)}function c(i){return o.apply(this,arguments)}function o(){return o=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/container-destroy",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),o.apply(this,arguments)}function C(i){return _.apply(this,arguments)}function _(){return _=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/container-ctrl",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),_.apply(this,arguments)}function $(i){return G.apply(this,arguments)}function G(){return G=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/container-process-kill",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),G.apply(this,arguments)}function U(i){return h.apply(this,arguments)}function h(){return h=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/get-from-uri",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),h.apply(this,arguments)}function N(i){return F.apply(this,arguments)}function F(){return F=v()(u()().mark(function i(E){return u()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.request)("/api/app/compose/parse",{method:"POST",data:E}));case 1:case"end":return r.stop()}},i)})),F.apply(this,arguments)}},3393:function(k,x,e){e.d(x,{Gb:function(){return V},Pn:function(){return R},Rb:function(){return d},YU:function(){return O},_U:function(){return j}});var K=e(15009),u=e.n(K),B=e(99289),v=e.n(B),p=e(54006);function O(c){return m.apply(this,arguments)}function m(){return m=v()(u()().mark(function c(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,p.request)("/api/app/image/get-detail",{method:"POST",data:o}));case 1:case"end":return _.stop()}},c)})),m.apply(this,arguments)}function V(c){return l.apply(this,arguments)}function l(){return l=v()(u()().mark(function c(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,p.request)("/api/app/image/tag-remote",{method:"POST",data:o}));case 1:case"end":return _.stop()}},c)})),l.apply(this,arguments)}function j(c){return P.apply(this,arguments)}function P(){return P=v()(u()().mark(function c(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,p.request)("/api/app/image/tag-add",{method:"POST",data:o}));case 1:case"end":return _.stop()}},c)})),P.apply(this,arguments)}function R(c){return y.apply(this,arguments)}function y(){return y=v()(u()().mark(function c(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,p.request)("/api/app/image/tag-delete",{method:"POST",data:o}));case 1:case"end":return _.stop()}},c)})),y.apply(this,arguments)}function d(c){return A.apply(this,arguments)}function A(){return A=v()(u()().mark(function c(o){return u()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",(0,p.request)("/api/app/image/export",{method:"POST",data:o,responseType:"blob"}));case 1:case"end":return _.stop()}},c)})),A.apply(this,arguments)}}}]); diff --git a/asset/static/p__compose__list.5d59c280.async.js b/asset/static/p__compose__list.5d59c280.async.js deleted file mode 100644 index b4b2dc87..00000000 --- a/asset/static/p__compose__list.5d59c280.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[8022],{23430:function(U,O,e){"use strict";e.d(O,{Z:function(){return m}});var C=e(87462),o=e(67294),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},c=g,d=e(84089),y=function(i,r){return o.createElement(d.Z,(0,C.Z)({},i,{ref:r,icon:c}))},j=o.forwardRef(y),m=j},80821:function(U,O,e){"use strict";e.d(O,{Z:function(){return E}});var C=e(5574),o=e.n(C),g=e(24963),c=e(86738),d=e(14726),y=e(83062),j=e(67294),m=e(85893);function E(i){var r=(0,j.useState)(!1),n=o()(r,2),v=n[0],t=n[1],u=(0,j.useContext)(g.Z),M=u.lang,Z=u.notice,R=u.message,D=function(){t(!0),i.action().then(function(_){if(t(!1),typeof i.onSuccess=="function"&&i.onSuccess(_),i.messageSuccess){var p="";typeof i.messageSuccess=="function"?p=i.messageSuccess(_):p=i.messageSuccess,p.indexOf(".")>-1&&(p=M(p)),i.asynced?R.info(p):R.success(p)}}).catch(function(_){t(!1),typeof i.onError=="function"&&i.onError(_)})};return i.confirm?(0,m.jsx)(c.Z,{style:{width:500},title:i.confirmTitle?i.confirmTitle:M("notification.title.tip"),description:i.confirm,onConfirm:D,okText:"Yes",cancelText:"No",children:(0,m.jsx)(d.ZP,{disabled:i.disabled,icon:i.icon,loading:v,danger:i.danger,type:i.type,children:i.children})}):(0,m.jsx)(y.Z,{title:i.tips,children:(0,m.jsx)(d.ZP,{disabled:i.disabled,icon:i.icon,loading:v,onClick:D,danger:i.danger,type:i.type,children:i.children})})}},94359:function(U,O,e){"use strict";e.d(O,{Z:function(){return v}});var C=e(67294),o=e(3089),g=e(98165),c=e(18429),d=e(8751),y=e(14313),j=e(30159),m=e(87740),E=e(66309),i=e(83062),r=e(54006),n=e(85893);function v(t){var u=(0,n.jsx)(n.Fragment,{});if(t.status=="0"&&(u=(0,n.jsx)(E.Z,{icon:(0,n.jsx)(o.Z,{}),color:"default",children:"waiting"})),t.status=="10"&&(u=(0,n.jsx)(E.Z,{icon:(0,n.jsx)(g.Z,{spin:!0}),color:"processing",children:"processing"})),t.status=="20"&&(u=(0,n.jsx)(E.Z,{icon:(0,n.jsx)(c.Z,{}),color:"error",children:"error"})),t.status=="30"&&(u=(0,n.jsx)(E.Z,{icon:(0,n.jsx)(d.Z,{}),color:"success",children:"success"})),t.status=="running"){var M,Z;u=(0,n.jsx)(E.Z,{icon:(0,n.jsx)(y.Z,{}),color:"success",children:(M=t.message)!==null&&M!==void 0&&M.showInTag?(Z=t.message)===null||Z===void 0?void 0:Z.content:t.status})}if(t.status=="paused"){var R,D;u=(0,n.jsx)(E.Z,{icon:(0,n.jsx)(j.Z,{}),children:(R=t.message)!==null&&R!==void 0&&R.showInTag?(D=t.message)===null||D===void 0?void 0:D.content:t.status})}if(t.status=="waiting"){var w,_;u=(0,n.jsx)(E.Z,{icon:(0,n.jsx)(m.Z,{}),children:(w=t.message)!==null&&w!==void 0&&w.showInTag?(_=t.message)===null||_===void 0?void 0:_.content:t.status})}if(t.status=="exited"||t.status=="dead"||t.status=="removing"||t.status=="restarting"||t.status=="created"){var p,l;u=(0,n.jsx)(E.Z,{icon:(0,n.jsx)(c.Z,{}),color:"warning",children:(p=t.message)!==null&&p!==void 0&&p.showInTag?(l=t.message)===null||l===void 0?void 0:l.content:t.status})}return t.link&&(u=(0,n.jsx)(r.Link,{to:t.link,children:u})),t.message&&(u=(0,n.jsx)(i.Z,{placement:t.message.placement,title:t.message.content,children:u})),(0,n.jsx)(n.Fragment,{children:u})}},24963:function(U,O,e){"use strict";var C=e(67294),o=(0,C.createContext)({});O.Z=o},96781:function(U,O,e){"use strict";var C=e(67294),o=(0,C.createContext)({});O.Z=o},83536:function(U,O,e){"use strict";e.r(O),e.d(O,{default:function(){return b}});var C=e(15009),o=e.n(C),g=e(99289),c=e.n(g),d=e(80821),y=e(90098),j=e(43425),m=e(86548),E=e(23430),i=e(10641),r=e(54006),n=e(42075),v=e(96074),t=e(83062),u=e(60922),M=e(67294),Z=e(96781),R=e(94359),D=e(67255),w=e(93162),_=e(24963),p=e(66309),l=e(85893);function z(s){var f=(0,r.useIntl)(),A=(0,M.useContext)(_.Z),a=A.lang,B;if(!s.type)B=(0,l.jsx)(p.Z,{children:a("compose.default")});else switch(s.type){case"remoteUrl":B=(0,l.jsx)(p.Z,{color:"cyan",children:a("compose.".concat(s.type))});break;case"serverPath":B=(0,l.jsx)(p.Z,{color:"blue",children:a("compose.".concat(s.type))});break;case"storagePath":B=(0,l.jsx)(p.Z,{color:"blue-inverse",children:a("compose.".concat(s.type))});break;case"outPath":B=(0,l.jsx)(p.Z,{color:"yellow",children:a("compose.".concat(s.type))});break;default:B=(0,l.jsx)(p.Z,{children:a("compose.".concat(s.type))})}return(0,l.jsx)(t.Z,{title:s.tootip,children:B})}function b(){var s=(0,M.useContext)(Z.Z),f=s.listTableRef,A=(0,M.useContext)(_.Z),a=A.lang,B=A.notice;return(0,l.jsx)(i.Z,{scroll:{x:"max-content"},request:function(){var W=c()(o()().mark(function L(h){var I,x,T;return o()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,(0,y.pm)({title:h.title,name:h.name,pageSize:(I=h.pageSize)!==null&&I!==void 0?I:10,page:(x=h.current)!==null&&x!==void 0?x:1});case 2:return T=P.sent,P.abrupt("return",{data:T.data.list,success:!0,total:T.data.list.length});case 4:case"end":return P.stop()}},L)}));return function(L){return W.apply(this,arguments)}}(),rowKey:"name",columns:[{title:"\u6807\u8BC6",dataIndex:"name",width:200,render:function(L,h,I,x,T){return(0,l.jsx)(r.Link,{to:"/compose/deploy/"+h.id,children:h.name},I)}},{title:"\u9879\u76EE\u540D\u79F0",dataIndex:"title",width:200},{title:"\u7C7B\u578B",width:150,search:!1,render:function(L,h,I,x,T){var S;return(0,l.jsx)(z,{tootip:(S=h.setting.uri)!==null&&S!==void 0?S:"",type:h.setting&&h.setting.type?h.setting.type:""})}},{title:"\u5BB9\u5668\u72B6\u6001",dataIndex:"status",search:!1,width:300,render:function(L,h,I,x,T){return(0,l.jsx)(n.Z,{children:h.setting.status.split(", ").map(function(S){var P="running",K=S.indexOf("(");return K>-1?P=S.slice(0,K):P=S,(0,l.jsx)(R.Z,{status:P,message:{content:a("compose.".concat(P),{count:S.slice(K+1,S.length-1)}),placement:"top",showInTag:!0}},h.id)})})}},{title:"\u64CD\u4F5C",width:80,valueType:"option",key:"option",render:function(L,h,I,x,T){return(0,l.jsxs)(n.Z,{split:(0,l.jsx)(v.Z,{type:"vertical"}),children:[(0,l.jsx)(r.Link,{to:"/compose/deploy/"+h.id,children:(0,l.jsx)(t.Z,{title:"\u7BA1\u7406",children:(0,l.jsx)(j.Z,{})})},"3"),h.setting.type!="outPath"&&(0,l.jsx)(r.Link,{to:"/compose/create?id="+h.id,children:(0,l.jsx)(t.Z,{title:"\u7F16\u8F91",children:(0,l.jsx)(m.Z,{})})},"4"),(0,l.jsx)(u.Z.Link,{onClick:c()(o()().mark(function S(){var P,K;return o()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,(0,y.YZ)({id:h.id});case 2:P=F.sent,P&&P.data&&P.data.detail&&(K=new Blob([P.data.detail.yaml],{type:"text/plain"}),(0,w.saveAs)(K,h.name+"-compose.yaml"));case 4:case"end":return F.stop()}},S)})),children:(0,l.jsx)(t.Z,{title:"\u4E0B\u8F7D",children:(0,l.jsx)(E.Z,{})})},"2")]})}}],rowSelection:{defaultSelectedRowKeys:[],alwaysShowAlert:!0,getCheckboxProps:function(L){return{disabled:L.setting.type=="storagePath"||L.setting.type=="serverPath"||L.setting.type=="outPath"}}},tableAlertOptionRender:function(L){var h=L.selectedRows;return(0,l.jsx)(n.Z,{size:16,children:(0,l.jsx)(d.Z,{danger:!0,type:"primary",action:function(){return(0,y.ik)({id:h.map(function(x){return x.id})})},onSuccess:function(){var x,T;return!((x=f.current)===null||x===void 0)&&x.reloadAndRest&&((T=f.current)===null||T===void 0||T.reloadAndRest()),!0},onError:function(){var x,T;return!((x=f.current)===null||x===void 0)&&x.reset&&((T=f.current)===null||T===void 0||T.reset()),!0},messageSuccess:"\u5220\u9664\u6210\u529F",confirm:(0,l.jsx)(n.Z,{style:{width:280},direction:"vertical",children:(0,l.jsx)(u.Z.Text,{children:"\u5220\u9664\u524D\u8BF7\u5148\u9500\u6BC1\u76F8\u5173\u5BB9\u5668\uFF0C\u786E\u8BA4\u5417\uFF1F"})}),children:"\u6279\u91CF\u5220\u9664"})})},pagination:(0,D.O)(),search:{collapsed:!1},actionRef:f,columnsState:(0,D.j)("compose-list")})}},90098:function(U,O,e){"use strict";e.d(O,{GG:function(){return R},MG:function(){return p},Oh:function(){return t},U_:function(){return w},YZ:function(){return i},ik:function(){return n},im:function(){return y},mg:function(){return M},pm:function(){return m},xC:function(){return z}});var C=e(15009),o=e.n(C),g=e(99289),c=e.n(g),d=e(54006);function y(s){return j.apply(this,arguments)}function j(){return j=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/create",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),j.apply(this,arguments)}function m(s){return E.apply(this,arguments)}function E(){return E=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/get-list",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),E.apply(this,arguments)}function i(s){return r.apply(this,arguments)}function r(){return r=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/get-detail",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),r.apply(this,arguments)}function n(s){return v.apply(this,arguments)}function v(){return v=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/delete",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),v.apply(this,arguments)}function t(s){return u.apply(this,arguments)}function u(){return u=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/container-deploy",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),u.apply(this,arguments)}function M(s){return Z.apply(this,arguments)}function Z(){return Z=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/container-destroy",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),Z.apply(this,arguments)}function R(s){return D.apply(this,arguments)}function D(){return D=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/container-ctrl",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),D.apply(this,arguments)}function w(s){return _.apply(this,arguments)}function _(){return _=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/container-process-kill",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),_.apply(this,arguments)}function p(s){return l.apply(this,arguments)}function l(){return l=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/get-from-uri",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),l.apply(this,arguments)}function z(s){return b.apply(this,arguments)}function b(){return b=c()(o()().mark(function s(f){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,d.request)("/api/app/compose/parse",{method:"POST",data:f}));case 1:case"end":return a.stop()}},s)})),b.apply(this,arguments)}},67255:function(U,O,e){"use strict";e.d(O,{O:function(){return C},j:function(){return o}});function C(){var g,c=parseInt((g=localStorage.getItem("dpanel-pagesize"))!==null&&g!==void 0?g:"0");return{showSizeChanger:!0,defaultPageSize:c!=null?c:20}}function o(g){var c="dpanel-table-column-".concat(g),d={};if(localStorage.getItem(c)){var y;d=JSON.parse((y=localStorage.getItem(c))!==null&&y!==void 0?y:"{}")}return{defaultValue:d,onChange:function(m){localStorage.setItem("dpanel-table-column-".concat(g),JSON.stringify(m))}}}},93162:function(U,O,e){var C,o,g;(function(c,d){o=[],C=d,g=typeof C=="function"?C.apply(O,o):C,g!==void 0&&(U.exports=g)})(this,function(){"use strict";function c(r,n){return typeof n=="undefined"?n={autoBom:!1}:typeof n!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),n={autoBom:!n}),n.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}function d(r,n,v){var t=new XMLHttpRequest;t.open("GET",r),t.responseType="blob",t.onload=function(){i(t.response,n,v)},t.onerror=function(){console.error("could not download file")},t.send()}function y(r){var n=new XMLHttpRequest;n.open("HEAD",r,!1);try{n.send()}catch(v){}return 200<=n.status&&299>=n.status}function j(r){try{r.dispatchEvent(new MouseEvent("click"))}catch(v){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(n)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof e.g=="object"&&e.g.global===e.g?e.g:void 0,E=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!E?function(r,n,v){var t=m.URL||m.webkitURL,u=document.createElement("a");n=n||r.name||"download",u.download=n,u.rel="noopener",typeof r=="string"?(u.href=r,u.origin===location.origin?j(u):y(u.href)?d(r,n,v):j(u,u.target="_blank")):(u.href=t.createObjectURL(r),setTimeout(function(){t.revokeObjectURL(u.href)},4e4),setTimeout(function(){j(u)},0))}:"msSaveOrOpenBlob"in navigator?function(r,n,v){if(n=n||r.name||"download",typeof r!="string")navigator.msSaveOrOpenBlob(c(r,v),n);else if(y(r))d(r,n,v);else{var t=document.createElement("a");t.href=r,t.target="_blank",setTimeout(function(){j(t)})}}:function(r,n,v,t){if(t=t||open("","_blank"),t&&(t.document.title=t.document.body.innerText="downloading..."),typeof r=="string")return d(r,n,v);var u=r.type==="application/octet-stream",M=/constructor/i.test(m.HTMLElement)||m.safari,Z=/CriOS\/[\d]+/.test(navigator.userAgent);if((Z||u&&M||E)&&typeof FileReader!="undefined"){var R=new FileReader;R.onloadend=function(){var _=R.result;_=Z?_:_.replace(/^data:[^;]*;/,"data:attachment/file;"),t?t.location.href=_:location=_,t=null},R.readAsDataURL(r)}else{var D=m.URL||m.webkitURL,w=D.createObjectURL(r);t?t.location=w:location.href=w,t=null,setTimeout(function(){D.revokeObjectURL(w)},4e4)}});m.saveAs=i.saveAs=i,U.exports=i})}}]); diff --git a/asset/static/p__compose__list.b92859ed.async.js b/asset/static/p__compose__list.b92859ed.async.js new file mode 100644 index 00000000..f140b662 --- /dev/null +++ b/asset/static/p__compose__list.b92859ed.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[8022],{23430:function(B,O,e){"use strict";e.d(O,{Z:function(){return f}});var C=e(87462),o=e(67294),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},c=_,m=e(84089),j=function(s,r){return o.createElement(m.Z,(0,C.Z)({},s,{ref:r,icon:c}))},x=o.forwardRef(j),f=x},80821:function(B,O,e){"use strict";e.d(O,{Z:function(){return p}});var C=e(5574),o=e.n(C),_=e(24963),c=e(86738),m=e(14726),j=e(83062),x=e(67294),f=e(85893);function p(s){var r=(0,x.useState)(!1),a=o()(r,2),v=a[0],t=a[1],i=(0,x.useContext)(_.Z),R=i.lang,w=i.notice,A=i.message,D=function(){t(!0),s.action().then(function(g){if(t(!1),typeof s.onSuccess=="function"&&s.onSuccess(g),s.messageSuccess){var E="";typeof s.messageSuccess=="function"?E=s.messageSuccess(g):E=s.messageSuccess,E.indexOf(".")>-1&&(E=R(E)),s.asynced?A.info(E):A.success(E)}}).catch(function(g){t(!1),typeof s.onError=="function"&&s.onError(g)})};return s.confirm?(0,f.jsx)(c.Z,{style:{width:500},title:s.confirmTitle?s.confirmTitle:R("notification.title.tip"),description:s.confirm,onConfirm:D,okText:"Yes",cancelText:"No",children:(0,f.jsx)(m.ZP,{disabled:s.disabled,icon:s.icon,loading:v,danger:s.danger,type:s.type,children:s.children})}):(0,f.jsx)(j.Z,{title:s.tips,children:(0,f.jsx)(m.ZP,{disabled:s.disabled,icon:s.icon,loading:v,onClick:D,danger:s.danger,type:s.type,children:s.children})})}},94359:function(B,O,e){"use strict";e.d(O,{Z:function(){return v}});var C=e(67294),o=e(3089),_=e(98165),c=e(18429),m=e(8751),j=e(14313),x=e(30159),f=e(87740),p=e(66309),s=e(83062),r=e(54006),a=e(85893);function v(t){var i=(0,a.jsx)(a.Fragment,{});if(t.status=="0"&&(i=(0,a.jsx)(p.Z,{icon:(0,a.jsx)(o.Z,{}),color:"default",children:"waiting"})),t.status=="10"&&(i=(0,a.jsx)(p.Z,{icon:(0,a.jsx)(_.Z,{spin:!0}),color:"processing",children:"processing"})),t.status=="20"&&(i=(0,a.jsx)(p.Z,{icon:(0,a.jsx)(c.Z,{}),color:"error",children:"error"})),t.status=="30"&&(i=(0,a.jsx)(p.Z,{icon:(0,a.jsx)(m.Z,{}),color:"success",children:"success"})),t.status=="running"){var R,w;i=(0,a.jsx)(p.Z,{icon:(0,a.jsx)(j.Z,{}),color:"success",children:(R=t.message)!==null&&R!==void 0&&R.showInTag?(w=t.message)===null||w===void 0?void 0:w.content:t.status})}if(t.status=="paused"){var A,D;i=(0,a.jsx)(p.Z,{icon:(0,a.jsx)(x.Z,{}),children:(A=t.message)!==null&&A!==void 0&&A.showInTag?(D=t.message)===null||D===void 0?void 0:D.content:t.status})}if(t.status=="waiting"){var I,g;i=(0,a.jsx)(p.Z,{icon:(0,a.jsx)(f.Z,{}),children:(I=t.message)!==null&&I!==void 0&&I.showInTag?(g=t.message)===null||g===void 0?void 0:g.content:t.status})}if(t.status=="exited"||t.status=="dead"||t.status=="removing"||t.status=="restarting"||t.status=="created"){var E,l;i=(0,a.jsx)(p.Z,{icon:(0,a.jsx)(c.Z,{}),color:"warning",children:(E=t.message)!==null&&E!==void 0&&E.showInTag?(l=t.message)===null||l===void 0?void 0:l.content:t.status})}return t.link&&(i=(0,a.jsx)(r.Link,{to:t.link,children:i})),t.message&&(i=(0,a.jsx)(s.Z,{placement:t.message.placement,title:t.message.content,children:i})),(0,a.jsx)(a.Fragment,{children:i})}},24963:function(B,O,e){"use strict";var C=e(67294),o=(0,C.createContext)({});O.Z=o},96781:function(B,O,e){"use strict";var C=e(67294),o=(0,C.createContext)({});O.Z=o},83536:function(B,O,e){"use strict";e.r(O),e.d(O,{default:function(){return b}});var C=e(15009),o=e.n(C),_=e(99289),c=e.n(_),m=e(80821),j=e(90098),x=e(43425),f=e(86548),p=e(23430),s=e(10641),r=e(54006),a=e(42075),v=e(96074),t=e(83062),i=e(60922),R=e(67294),w=e(96781),A=e(94359),D=e(67255),I=e(93162),g=e(24963),E=e(66309),l=e(85893);function z(Z){var W=(0,r.useIntl)(),u=(0,R.useContext)(g.Z),d=u.lang,y;if(!Z.type)y=(0,l.jsx)(E.Z,{children:d("compose.default")});else switch(Z.type){case"remoteUrl":y=(0,l.jsx)(E.Z,{color:"cyan",children:d("compose.".concat(Z.type))});break;case"serverPath":y=(0,l.jsx)(E.Z,{color:"blue",children:d("compose.".concat(Z.type))});break;case"storagePath":y=(0,l.jsx)(E.Z,{color:"blue-inverse",children:d("compose.".concat(Z.type))});break;case"outPath":y=(0,l.jsx)(E.Z,{color:"yellow",children:d("compose.".concat(Z.type))});break;default:y=(0,l.jsx)(E.Z,{children:d("compose.".concat(Z.type))})}return(0,l.jsx)(t.Z,{title:Z.tootip,children:y})}function b(){var Z=(0,R.useContext)(w.Z),W=Z.listTableRef,u=(0,R.useContext)(g.Z),d=u.lang,y=u.notice;return(0,l.jsx)(s.Z,{scroll:{x:"max-content"},request:function(){var n=c()(o()().mark(function L(h){var U,P,M;return o()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,(0,j.pm)({title:h.title,name:h.name,pageSize:(U=h.pageSize)!==null&&U!==void 0?U:10,page:(P=h.current)!==null&&P!==void 0?P:1});case 2:return M=T.sent,T.abrupt("return",{data:M.data.list,success:!0,total:M.data.list.length});case 4:case"end":return T.stop()}},L)}));return function(L){return n.apply(this,arguments)}}(),rowKey:"name",columns:[{title:"\u6807\u8BC6",dataIndex:"name",width:200,render:function(L,h,U,P,M){return(0,l.jsx)(r.Link,{to:"/compose/deploy/"+h.id,children:h.name},U)}},{title:"\u9879\u76EE\u540D\u79F0",dataIndex:"title",width:200},{title:"\u7C7B\u578B",width:150,search:!1,render:function(L,h,U,P,M){var S;return(0,l.jsx)(z,{tootip:(S=h.setting.uri)!==null&&S!==void 0?S:"",type:h.setting&&h.setting.type?h.setting.type:""})}},{title:"\u5BB9\u5668\u72B6\u6001",dataIndex:"status",search:!1,width:300,render:function(L,h,U,P,M){return(0,l.jsx)(a.Z,{children:h.setting.status.split(", ").map(function(S){var T="running",K=S.indexOf("(");return K>-1?T=S.slice(0,K):T=S,(0,l.jsx)(A.Z,{status:T,message:{content:d("compose.".concat(T),{count:S.slice(K+1,S.length-1)}),placement:"top",showInTag:!0}},h.id)})})}},{title:"\u64CD\u4F5C",width:80,valueType:"option",key:"option",render:function(L,h,U,P,M){return(0,l.jsxs)(a.Z,{split:(0,l.jsx)(v.Z,{type:"vertical"}),children:[(0,l.jsx)(r.Link,{to:"/compose/deploy/"+h.id,children:(0,l.jsx)(t.Z,{title:"\u7BA1\u7406",children:(0,l.jsx)(x.Z,{})})},"3"),h.setting.type!="outPath"&&(0,l.jsx)(r.Link,{to:"/compose/create?id="+h.id,children:(0,l.jsx)(t.Z,{title:"\u7F16\u8F91",children:(0,l.jsx)(f.Z,{})})},"4"),(0,l.jsx)(i.Z.Link,{onClick:c()(o()().mark(function S(){var T,K;return o()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,(0,j.YZ)({id:h.id});case 2:T=F.sent,T&&T.data&&T.data.detail&&(K=new Blob([T.data.detail.yaml],{type:"text/plain"}),(0,I.saveAs)(K,h.name+"-compose.yaml"));case 4:case"end":return F.stop()}},S)})),children:(0,l.jsx)(t.Z,{title:"\u4E0B\u8F7D",children:(0,l.jsx)(p.Z,{})})},"2")]})}}],rowSelection:{defaultSelectedRowKeys:[],alwaysShowAlert:!0,getCheckboxProps:function(L){return{disabled:L.setting.type=="storagePath"||L.setting.type=="serverPath"||L.setting.type=="outPath"}}},tableAlertOptionRender:function(L){var h=L.selectedRows;return(0,l.jsx)(a.Z,{size:16,children:(0,l.jsx)(m.Z,{danger:!0,type:"primary",action:function(){return(0,j.ik)({id:h.map(function(P){return P.id})})},onSuccess:function(){var P,M;return!((P=W.current)===null||P===void 0)&&P.reloadAndRest&&((M=W.current)===null||M===void 0||M.reloadAndRest()),!0},onError:function(){var P,M;return!((P=W.current)===null||P===void 0)&&P.reset&&((M=W.current)===null||M===void 0||M.reset()),!0},messageSuccess:"\u5220\u9664\u6210\u529F",confirm:(0,l.jsx)(a.Z,{style:{width:280},direction:"vertical",children:(0,l.jsx)(i.Z.Text,{children:"\u5220\u9664\u524D\u8BF7\u5148\u9500\u6BC1\u76F8\u5173\u5BB9\u5668\uFF0C\u786E\u8BA4\u5417\uFF1F"})}),children:"\u6279\u91CF\u5220\u9664"})})},pagination:(0,D.O)(),search:{collapsed:!1},actionRef:W,columnsState:(0,D.j)("compose-list")})}},90098:function(B,O,e){"use strict";e.d(O,{GG:function(){return A},MG:function(){return z},Oh:function(){return t},U_:function(){return E},YZ:function(){return s},ik:function(){return a},im:function(){return j},mg:function(){return R},pm:function(){return f},xC:function(){return Z}});var C=e(15009),o=e.n(C),_=e(99289),c=e.n(_),m=e(54006);function j(u){return x.apply(this,arguments)}function x(){return x=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/create",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),x.apply(this,arguments)}function f(u){return p.apply(this,arguments)}function p(){return p=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/get-list",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),p.apply(this,arguments)}function s(u){return r.apply(this,arguments)}function r(){return r=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/get-detail",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),r.apply(this,arguments)}function a(u){return v.apply(this,arguments)}function v(){return v=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/delete",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),v.apply(this,arguments)}function t(u){return i.apply(this,arguments)}function i(){return i=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/container-deploy",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),i.apply(this,arguments)}function R(u){return w.apply(this,arguments)}function w(){return w=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/container-destroy",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),w.apply(this,arguments)}function A(u){return D.apply(this,arguments)}function D(){return D=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/container-ctrl",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),D.apply(this,arguments)}function I(u){return g.apply(this,arguments)}function g(){return g=_asyncToGenerator(_regeneratorRuntime().mark(function u(d){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",request("/api/app/compose/container-log",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),g.apply(this,arguments)}function E(u){return l.apply(this,arguments)}function l(){return l=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/container-process-kill",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),l.apply(this,arguments)}function z(u){return b.apply(this,arguments)}function b(){return b=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/get-from-uri",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),b.apply(this,arguments)}function Z(u){return W.apply(this,arguments)}function W(){return W=c()(o()().mark(function u(d){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,m.request)("/api/app/compose/parse",{method:"POST",data:d}));case 1:case"end":return n.stop()}},u)})),W.apply(this,arguments)}},67255:function(B,O,e){"use strict";e.d(O,{O:function(){return C},j:function(){return o}});function C(){var _,c=parseInt((_=localStorage.getItem("dpanel-pagesize"))!==null&&_!==void 0?_:"0");return{showSizeChanger:!0,defaultPageSize:c!=null?c:20}}function o(_){var c="dpanel-table-column-".concat(_),m={};if(localStorage.getItem(c)){var j;m=JSON.parse((j=localStorage.getItem(c))!==null&&j!==void 0?j:"{}")}return{defaultValue:m,onChange:function(f){localStorage.setItem("dpanel-table-column-".concat(_),JSON.stringify(f))}}}},93162:function(B,O,e){var C,o,_;(function(c,m){o=[],C=m,_=typeof C=="function"?C.apply(O,o):C,_!==void 0&&(B.exports=_)})(this,function(){"use strict";function c(r,a){return typeof a=="undefined"?a={autoBom:!1}:typeof a!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}function m(r,a,v){var t=new XMLHttpRequest;t.open("GET",r),t.responseType="blob",t.onload=function(){s(t.response,a,v)},t.onerror=function(){console.error("could not download file")},t.send()}function j(r){var a=new XMLHttpRequest;a.open("HEAD",r,!1);try{a.send()}catch(v){}return 200<=a.status&&299>=a.status}function x(r){try{r.dispatchEvent(new MouseEvent("click"))}catch(v){var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(a)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof e.g=="object"&&e.g.global===e.g?e.g:void 0,p=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!p?function(r,a,v){var t=f.URL||f.webkitURL,i=document.createElement("a");a=a||r.name||"download",i.download=a,i.rel="noopener",typeof r=="string"?(i.href=r,i.origin===location.origin?x(i):j(i.href)?m(r,a,v):x(i,i.target="_blank")):(i.href=t.createObjectURL(r),setTimeout(function(){t.revokeObjectURL(i.href)},4e4),setTimeout(function(){x(i)},0))}:"msSaveOrOpenBlob"in navigator?function(r,a,v){if(a=a||r.name||"download",typeof r!="string")navigator.msSaveOrOpenBlob(c(r,v),a);else if(j(r))m(r,a,v);else{var t=document.createElement("a");t.href=r,t.target="_blank",setTimeout(function(){x(t)})}}:function(r,a,v,t){if(t=t||open("","_blank"),t&&(t.document.title=t.document.body.innerText="downloading..."),typeof r=="string")return m(r,a,v);var i=r.type==="application/octet-stream",R=/constructor/i.test(f.HTMLElement)||f.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||i&&R||p)&&typeof FileReader!="undefined"){var A=new FileReader;A.onloadend=function(){var g=A.result;g=w?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),t?t.location.href=g:location=g,t=null},A.readAsDataURL(r)}else{var D=f.URL||f.webkitURL,I=D.createObjectURL(r);t?t.location=I:location.href=I,t=null,setTimeout(function(){D.revokeObjectURL(I)},4e4)}});f.saveAs=s.saveAs=s,B.exports=s})}}]); diff --git a/asset/static/p__console__index.123365a9.async.js b/asset/static/p__console__index.123365a9.async.js new file mode 100644 index 00000000..9bc10cbe --- /dev/null +++ b/asset/static/p__console__index.123365a9.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3805],{54964:function(h,u,n){var l=n(78267),P=n.n(l),E=n(75458),v=n.n(E),o=n(67294),i=n(12320),D=n.n(i),M=n(89629),_=n(85893),c={convertEol:!0,fontFamily:'Menlo, Monaco, "Courier New", monospace',fontWeight:400,fontSize:16,cursorStyle:"block",cursorBlink:!0,theme:{foreground:"#bfbfbf",cursor:"gray",selectionForeground:"#ffffff"}},t=new i.Terminal(c),s=new E.SearchAddon,d=new l.FitAddon,O=(0,o.forwardRef)(function(r,f){return(0,o.useEffect)(function(){window.addEventListener("resize",function(){r.showInModal||d.fit()}),t.loadAddon(d),t.loadAddon(s),t.open(document.getElementById("terminal-container")),d.fit()},[]),(0,o.useImperativeHandle)(f,function(){return{write:function(a){t.write(a)},clear:function(){t.clear()},getTerminal:function(){return t},findNext:function(a){s.findNext(a)},findPrev:function(a){s.findPrevious(a)},fit:function(){d.fit()},onData:function(a){t.onData(a)}}}),(0,_.jsx)("div",{id:"terminal-container",style:{width:r.width?r.width:"100%",height:r.height?r.height:"500px"}})});u.Z=O},33345:function(h,u,n){n.r(u),n.d(u,{default:function(){return M}});var l=n(5574),P=n.n(l),E=n(54964),v=n(52626),o=n(54006),i=n(67294),D=n(85893);function M(){var _=(0,i.useRef)(),c=(0,o.useParams)(),t=(0,o.useSearchParams)(),s=P()(t,2),d=s[0],O=s[1],r=new WebSocket((0,v.R)("/console/"+c.id+"?"+d.toString()));return(0,i.useEffect)(function(){r.addEventListener("message",function(f){var e=JSON.parse(f.data),a=e.type;if(a=="console:"+c.id){var m;(m=_.current)===null||m===void 0||m.write(e.data)}}),_!=null&&_.current&&_.current.onData(function(f){var e={content:{command:f},type:"console"};r.send(JSON.stringify(e))})},[]),(0,D.jsx)(E.Z,{ref:_,height:"100vh"})}}}]); diff --git a/asset/static/p__console__index.b161cbea.async.js b/asset/static/p__console__index.b161cbea.async.js deleted file mode 100644 index 6593db81..00000000 --- a/asset/static/p__console__index.b161cbea.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3805],{54964:function(O,f,n){var u=n(78267),P=n.n(u),l=n(75458),v=n.n(l),o=n(67294),d=n(12320),D=n.n(d),M=n(89629),_=n(85893),t=new d.Terminal({convertEol:!0,fontFamily:'Menlo, Monaco, "Courier New", monospace',fontWeight:400,fontSize:16,cursorStyle:"block",cursorBlink:!0,theme:{foreground:"#bfbfbf",cursor:"gray",selectionForeground:"#ffffff"}}),i=new l.SearchAddon,r=new u.FitAddon,c=(0,o.forwardRef)(function(s,E){return(0,o.useEffect)(function(){window.addEventListener("resize",function(){s.showInModal||r.fit()}),t.loadAddon(r),t.loadAddon(i),t.open(document.getElementById("terminal-container")),r.fit()},[]),(0,o.useImperativeHandle)(E,function(){return{write:function(e){t.write(e)},clear:function(){t.clear()},getTerminal:function(){return t},findNext:function(e){i.findNext(e)},findPrev:function(e){i.findPrevious(e)},fit:function(){r.fit()},onData:function(e){t.onData(e)}}}),(0,_.jsx)("div",{id:"terminal-container",style:{width:s.width?s.width:"100%",height:s.height?s.height:"500px"}})});f.Z=c},33345:function(O,f,n){n.r(f),n.d(f,{default:function(){return M}});var u=n(5574),P=n.n(u),l=n(54964),v=n(52626),o=n(54006),d=n(67294),D=n(85893);function M(){var _=(0,d.useRef)(),t=(0,o.useParams)(),i=(0,o.useSearchParams)(),r=P()(i,2),c=r[0],s=r[1],E=new WebSocket((0,v.R)("/console/"+t.id+"?"+c.toString()));return(0,d.useEffect)(function(){E.addEventListener("message",function(a){var e=JSON.parse(a.data),h=e.type;if(h=="console:"+t.id){var m;(m=_.current)===null||m===void 0||m.write(e.data)}}),_!=null&&_.current&&_.current.onData(function(a){var e={content:{command:a},type:"console"};E.send(JSON.stringify(e))})},[]),(0,D.jsx)(l.Z,{ref:_,height:"100vh"})}}}]); diff --git a/asset/static/p__image__create.aca854ff.async.js b/asset/static/p__image__create.aca854ff.async.js new file mode 100644 index 00000000..9e05f9cc --- /dev/null +++ b/asset/static/p__image__create.aca854ff.async.js @@ -0,0 +1,25 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7523],{86615:function(X,L,e){var D=e(1413),t=e(45987),S=e(22270),o=e(78045),s=e(67294),h=e(90789),m=e(73552),r=e(85893),g=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],P=s.forwardRef(function(i,d){var c=i.fieldProps,u=i.options,_=i.radioType,A=i.layout,l=i.proFieldProps,R=i.valueEnum,x=(0,t.Z)(i,g);return(0,r.jsx)(m.Z,(0,D.Z)((0,D.Z)({valueType:_==="button"?"radioButton":"radio",ref:d,valueEnum:(0,S.h)(R,void 0)},x),{},{fieldProps:(0,D.Z)({options:u,layout:A},c),proFieldProps:l,filedConfig:{customLightMode:!0}}))}),f=s.forwardRef(function(i,d){var c=i.fieldProps,u=i.children;return(0,r.jsx)(o.ZP,(0,D.Z)((0,D.Z)({},c),{},{ref:d,children:u}))}),y=(0,h.G)(f,{valuePropName:"checked",ignoreWidth:!0}),v=y;v.Group=P,v.Button=o.ZP.Button,v.displayName="ProFormComponent",L.Z=v},74344:function(X,L,e){var D=e(5574),t=e.n(D),S=e(37476),o=e(38345),s=e(54006),h=e(67294),m=e(54964),r=e(85893),g=(0,h.forwardRef)(function(P,f){(0,h.useImperativeHandle)(f,function(){return{start:function(){for(var E=arguments.length,Z=new Array(E),O=0;O0&&(pe.buildZip=(me=a.buildZip[0].response.data.path)!==null&&me!==void 0?me:""),(oe=z.current)===null||oe===void 0||oe.start("build",ce),G.next=27,(0,P.fN)(pe);case 27:return je=G.sent,(de=z.current)===null||de===void 0||de.reset(),Q("/image/list/recycle"),G.abrupt("return",!0);case 31:case"end":return G.stop()}},b)}));return function(b){return U.apply(this,arguments)}}(),formRef:I,children:[(0,r.jsx)(m.Z,{label:"\u955C\u50CF\u540D\u79F0",name:"title",fieldProps:{onChange:function(b){var a="";if(b.target.value){var M,H=(0,Ae.N9)(b.target.value.trim(),{toneType:"none",type:"array"});a=H.join(""),(M=I.current)===null||M===void 0||M.setFieldValue("imageTag",a)}}}}),(0,r.jsx)(Be.Z,{label:"\u955C\u50CF\u4ED3\u5E93",tooltip:(0,r.jsxs)(r.Fragment,{children:["\u63A8\u9001\u524D\u8BF7\u4FDD\u8BC1\u4ED3\u5E93\u4E2D\u6709\u6307\u5B9A\u7684\u547D\u540D\u7A7A\u95F4, \u5982\u6CA1\u6709\u8BF7\u5148 ",(0,r.jsx)("a",{href:"",target:"_blank",children:"\u6DFB\u52A0\u4ED3\u5E93"})]}),name:"imageRegistry",request:o()(t()().mark(function U(){var b;return t()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,(0,Ce.Ot)();case 2:return b=M.sent,M.abrupt("return",b.data.list.map(function(H){return{value:H.serverAddress,label:H.title+"("+H.serverAddress+")"}}));case 4:case"end":return M.stop()}},U)}))}),(0,r.jsx)(ie.Z,{name:["imageRegistry"],children:function(b){var a=b.imageRegistry;return(0,r.jsx)(m.Z,{fieldProps:{min:2,max:255,addonBefore:"".concat(a||"","/")},rules:[{required:!0}],required:!0,tooltip:"\u4F8B\u5982: name:tag\u3001namespace/name:tag\u3001registry/namespace/name:tag",placeholder:"\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u82F1\u6587\u5B57\u7B26\u3001\u6570\u5B57\u3001_\u3001-\u3001",label:"\u955C\u50CFTag",name:"imageTag"})}}),(0,r.jsx)(n.Z.Group,{name:"uploadType",label:"\u6784\u5EFA\u65B9\u5F0F",initialValue:$,options:[{label:"Dockerfile",value:"dockerfile"},{label:"Zip\u6E90\u7801\u5305",value:"zip"},{label:"Git\u6E90\u7801\u4ED3\u5E93",value:"git"},{label:"\u5BFC\u5165\u5BB9\u5668Tar\u5305",value:"containerTar"},{label:"\u5BFC\u5165\u955C\u50CFTar\u5305",value:"imageTar"}],fieldProps:{onChange:function(b){ue(b.target.value)}}}),(0,r.jsx)(ie.Z,{name:["uploadType"],children:function(b){var a=b.uploadType;if(a=="containerTar")return[(0,r.jsx)(m.Z,{tooltip:"\u6307\u5B9A\u5BFC\u5165\u540E\u7684\u955C\u50CF\u5DE5\u4F5C\u76EE\u5F55\uFF0C\u4E00\u822C\u6307\u5411\u4EE3\u7801\u7684\u6240\u5728\u76EE\u5F55",label:"\u5DE5\u4F5C\u76EE\u5F55",name:"workDir",placeholder:"\u9ED8\u8BA4\u4E3A / \u76EE\u5F55"},"workDir"),(0,r.jsx)(m.Z,{required:!0,tooltip:"\u901A\u8FC7\u5BB9\u5668\u5BFC\u5165\u955C\u50CF\u65F6\uFF0C\u5FC5\u987B\u6307\u5B9A\u542F\u52A8\u547D\u4EE4\uFF0C\u5426\u5219\u518D\u521B\u5EFA\u65F6\u65E0\u6CD5\u542F\u52A8",rules:[{required:!0}],label:"CMD",name:"cmd"},"cmd"),(0,r.jsx)(se.Z,{tooltip:"\u6307\u5B9A\u5BFC\u5165\u540E\u7684\u955C\u50CF\u5BF9\u5916\u66B4\u9732\u7684\u7AEF\u53E3\uFF0C\u4E00\u884C\u6307\u5B9A\u4E00\u4E2A\u7AEF\u53E3",label:"\u66B4\u9732\u7AEF\u53E3",name:"expose",placeholder:`80 +9000`},"expose"),(0,r.jsx)(se.Z,{tooltip:"\u6307\u5B9A\u5BFC\u5165\u540E\u7684\u955C\u50CF\u9700\u8981\u914D\u7F6E\u7684\u73AF\u5883\u53D8\u91CF\uFF0C\u4E00\u884C\u6307\u5B9A\u4E00\u4E2A\u73AF\u5883\u53D8\u91CF",label:"\u73AF\u5883\u53D8\u91CF",name:"env",placeholder:`TEST_VALUE=123 +TEST_NO_VALUE=`},"env"),(0,r.jsx)(se.Z,{tooltip:"\u6307\u5B9A\u5BFC\u5165\u540E\u7684\u955C\u50CF\u9700\u8981\u6301\u4E45\u5316\u7684\u76EE\u5F55\uFF0C\u4E00\u884C\u6307\u5B9A\u4E00\u4E2A\u76EE\u5F55",label:"\u5B58\u50A8\u5377\u76EE\u5F55",name:"volume",placeholder:`/app +/home`},"volume")];if(a!="imageTar"){if(a=="zip"||a=="git")return(0,r.jsx)(m.Z,{name:"buildRoot",label:"Dockerfile\u6587\u4EF6\u4F4D\u7F6E",tooltip:"\u6307\u5B9ADockerfile\u6240\u5728\u7684\u76EE\u5F55",fieldProps:{addonBefore:"\u9ED8\u8BA4\u4EE5\u5305\u6216\u662F\u4ED3\u5E93\u76EE\u5F55\u5F00\u59CB\uFF08/\uFF09"},placeholder:"/Dockerfile"})}}}),$=="zip"&&(0,r.jsx)(E,{label:"\u4E0A\u4F20\u6784\u5EFA\u5305 (\u53EA\u5141\u8BB8\u4E0A\u4F20 .zip \u6587\u4EF6\uFF0C\u4E14\u4E0E\u5305\u4E2D\u7684 Dockerfile \u6307\u5B9A\u7684\u76EE\u5F55\u4FDD\u6301\u4E00\u81F4)",name:"buildZip",accept:".zip"}),$=="containerTar"&&(0,r.jsx)(E,{label:"\u5BFC\u5165\u5BB9\u5668\u5305\uFF08\u53EA\u5141\u8BB8\u4E0A\u4F20 .tar \u6587\u4EF6\uFF0C\u901A\u8FC7\u5BFC\u51FA\u5BB9\u5668\u751F\u6210\uFF09",name:"containerTar",accept:".tar"}),$=="imageTar"&&(0,r.jsx)(E,{label:"\u5BFC\u5165\u955C\u50CF\u5305\uFF08\u53EA\u5141\u8BB8\u4E0A\u4F20 .tar \u6587\u4EF6\uFF0C\u901A\u8FC7\u5BFC\u51FA\u955C\u50CF\u751F\u6210\uFF09",name:"imageTar",accept:".tar"}),$=="git"&&(0,r.jsx)(g,{}),$=="dockerfile"&&(0,r.jsx)(ve,{createFormRef:I})]})}),(0,r.jsx)(Z.Z,{ref:z})]})}},97961:function(X,L,e){e.d(L,{MF:function(){return d},_2:function(){return v},fN:function(){return m},hG:function(){return f},ii:function(){return h},vC:function(){return g}});var D=e(15009),t=e.n(D),S=e(99289),o=e.n(S),s=e(54006),h=[{name:"amd64",arch:"amd64"},{name:"arm64",arch:"arm64"},{name:"i386",arch:"386"},{name:"arm/v6",arch:"arm"},{name:"arm/v7",arch:"arm"},{name:"arm/v8",arch:"arm64"},{name:"ppc64le",arch:"ppc64le"},{name:"riscv64",arch:"riscv64"}];function m(u){return r.apply(this,arguments)}function r(){return r=o()(t()().mark(function u(_){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,s.request)("/api/app/image/create-by-dockerfile",{method:"POST",data:_}));case 1:case"end":return l.stop()}},u)})),r.apply(this,arguments)}function g(u){return P.apply(this,arguments)}function P(){return P=o()(t()().mark(function u(_){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,s.request)("/api/app/image/import-by-container-tar",{method:"POST",data:_}));case 1:case"end":return l.stop()}},u)})),P.apply(this,arguments)}function f(u){return y.apply(this,arguments)}function y(){return y=o()(t()().mark(function u(_){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,s.request)("/api/app/image/import-by-image-tar",{method:"POST",data:_}));case 1:case"end":return l.stop()}},u)})),y.apply(this,arguments)}function v(u){return i.apply(this,arguments)}function i(){return i=o()(t()().mark(function u(_){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,s.request)("/api/common/attach/delete",{method:"POST",data:_});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},u)})),i.apply(this,arguments)}function d(){return c.apply(this,arguments)}function c(){return c=o()(t()().mark(function u(){return t()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",(0,s.request)("/api/app/image/get-template-list",{method:"POST"}));case 1:case"end":return A.stop()}},u)})),c.apply(this,arguments)}},18148:function(X,L,e){e.d(L,{$q:function(){return i},Fj:function(){return x},KG:function(){return h},KX:function(){return Z},T8:function(){return y},Xn:function(){return P},ao:function(){return c},c5:function(){return l},c7:function(){return _}});var D=e(15009),t=e.n(D),S=e(99289),o=e.n(S),s=e(54006);function h(p){return m.apply(this,arguments)}function m(){return m=o()(t()().mark(function p(C){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,s.request)("/api/app/image/get-list",{method:"POST",data:C}));case 1:case"end":return n.stop()}},p)})),m.apply(this,arguments)}function r(p){return g.apply(this,arguments)}function g(){return g=_asyncToGenerator(_regeneratorRuntime().mark(function p(C){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,request("/api/app/log/image-build",{method:"POST",data:C});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),g.apply(this,arguments)}function P(p){return f.apply(this,arguments)}function f(){return f=o()(t()().mark(function p(C){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,s.request)("/api/app/image/get-list-build",{method:"POST",data:C}));case 1:case"end":return n.stop()}},p)})),f.apply(this,arguments)}function y(p){return v.apply(this,arguments)}function v(){return v=o()(t()().mark(function p(C){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,s.request)("/api/app/image/get-build-task",{method:"POST",data:C});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),v.apply(this,arguments)}function i(p){return d.apply(this,arguments)}function d(){return d=o()(t()().mark(function p(C){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,s.request)("/api/app/image/delete-build-task",{method:"POST",data:C});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),d.apply(this,arguments)}function c(p){return u.apply(this,arguments)}function u(){return u=o()(t()().mark(function p(C){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,s.request)("/api/app/image/image-delete",{method:"POST",data:C});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),u.apply(this,arguments)}function _(){return A.apply(this,arguments)}function A(){return A=o()(t()().mark(function p(){return t()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,(0,s.request)("/api/app/image/image-prune",{method:"POST"});case 2:return T.abrupt("return",T.sent);case 3:case"end":return T.stop()}},p)})),A.apply(this,arguments)}function l(){return R.apply(this,arguments)}function R(){return R=o()(t()().mark(function p(){return t()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,(0,s.request)("/api/app/image/build-prune",{method:"POST"});case 2:return T.abrupt("return",T.sent);case 3:case"end":return T.stop()}},p)})),R.apply(this,arguments)}function x(p){return E.apply(this,arguments)}function E(){return E=o()(t()().mark(function p(C){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,s.request)("/api/app/image/update-title",{method:"POST",data:C});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),E.apply(this,arguments)}function Z(p){return O.apply(this,arguments)}function O(){return O=o()(t()().mark(function p(C){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,s.request)("/api/app/image/tag-sync",{method:"POST",data:C}));case 1:case"end":return n.stop()}},p)})),O.apply(this,arguments)}},75870:function(X,L,e){e.d(L,{Ot:function(){return h},ZH:function(){return r},ix:function(){return P},t1:function(){return y}});var D=e(15009),t=e.n(D),S=e(99289),o=e.n(S),s=e(54006);function h(i){return m.apply(this,arguments)}function m(){return m=o()(t()().mark(function i(d){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,s.request)("/api/common/registry/get-list",{method:"POST",data:d}));case 1:case"end":return u.stop()}},i)})),m.apply(this,arguments)}function r(i){return g.apply(this,arguments)}function g(){return g=o()(t()().mark(function i(d){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,s.request)("/api/common/registry/create",{method:"POST",data:d}));case 1:case"end":return u.stop()}},i)})),g.apply(this,arguments)}function P(i){return f.apply(this,arguments)}function f(){return f=o()(t()().mark(function i(d){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,s.request)("/api/common/registry/delete",{method:"POST",data:d}));case 1:case"end":return u.stop()}},i)})),f.apply(this,arguments)}function y(i){return v.apply(this,arguments)}function v(){return v=o()(t()().mark(function i(d){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,s.request)("/api/common/registry/get-detail",{method:"POST",data:d}));case 1:case"end":return u.stop()}},i)})),v.apply(this,arguments)}}}]); diff --git a/asset/static/p__image__create.d244852a.async.js b/asset/static/p__image__create.d244852a.async.js deleted file mode 100644 index 56f3c229..00000000 --- a/asset/static/p__image__create.d244852a.async.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7523],{86615:function(X,L,e){var T=e(1413),t=e(45987),S=e(22270),d=e(78045),l=e(67294),E=e(90789),m=e(73552),r=e(85893),h=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],c=l.forwardRef(function(i,_){var s=i.fieldProps,u=i.options,y=i.radioType,A=i.layout,o=i.proFieldProps,R=i.valueEnum,x=(0,t.Z)(i,h);return(0,r.jsx)(m.Z,(0,T.Z)((0,T.Z)({valueType:y==="button"?"radioButton":"radio",ref:_,valueEnum:(0,S.h)(R,void 0)},x),{},{fieldProps:(0,T.Z)({options:u,layout:A},s),proFieldProps:o,filedConfig:{customLightMode:!0}}))}),v=l.forwardRef(function(i,_){var s=i.fieldProps,u=i.children;return(0,r.jsx)(d.ZP,(0,T.Z)((0,T.Z)({},s),{},{ref:_,children:u}))}),D=(0,E.G)(v,{valuePropName:"checked",ignoreWidth:!0}),B=D;B.Group=c,B.Button=d.ZP.Button,B.displayName="ProFormComponent",L.Z=B},74344:function(X,L,e){var T=e(5574),t=e.n(T),S=e(37476),d=e(38345),l=e(54006),E=e(67294),m=e(54964),r=e(85893),h=(0,E.forwardRef)(function(c,v){(0,E.useImperativeHandle)(v,function(){return{start:function(){for(var f=arguments.length,Z=new Array(f),O=0;O0&&(pe.buildZip=(me=a.buildZip[0].response.data.path)!==null&&me!==void 0?me:""),(oe=z.current)===null||oe===void 0||oe.start("build",ce),G.next=27,(0,c.fN)(pe);case 27:return je=G.sent,(de=z.current)===null||de===void 0||de.reset(),Q("/image/list/recycle"),G.abrupt("return",!0);case 31:case"end":return G.stop()}},b)}));return function(b){return U.apply(this,arguments)}}(),formRef:I,children:[(0,r.jsx)(m.Z,{label:"\u955C\u50CF\u540D\u79F0",name:"title",fieldProps:{onChange:function(b){var a="";if(b.target.value){var M,H=(0,Ae.N9)(b.target.value.trim(),{toneType:"none",type:"array"});a=H.join(""),(M=I.current)===null||M===void 0||M.setFieldValue("imageTag",a)}}}}),(0,r.jsx)(Be.Z,{label:"\u955C\u50CF\u4ED3\u5E93",tooltip:(0,r.jsxs)(r.Fragment,{children:["\u63A8\u9001\u524D\u8BF7\u4FDD\u8BC1\u4ED3\u5E93\u4E2D\u6709\u6307\u5B9A\u7684\u547D\u540D\u7A7A\u95F4, \u5982\u6CA1\u6709\u8BF7\u5148 ",(0,r.jsx)("a",{href:"",target:"_blank",children:"\u6DFB\u52A0\u4ED3\u5E93"})]}),name:"imageRegistry",request:d()(t()().mark(function U(){var b;return t()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,(0,Ce.Ot)();case 2:return b=M.sent,M.abrupt("return",b.data.list.map(function(H){return{value:H.serverAddress,label:H.title+"("+H.serverAddress+")"}}));case 4:case"end":return M.stop()}},U)}))}),(0,r.jsx)(ie.Z,{name:["imageRegistry"],children:function(b){var a=b.imageRegistry;return(0,r.jsx)(m.Z,{fieldProps:{min:2,max:255,addonBefore:"".concat(a||"","/")},rules:[{required:!0}],required:!0,tooltip:"\u4F8B\u5982: name:tag\u3001namespace/name:tag\u3001registry/namespace/name:tag",placeholder:"\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u82F1\u6587\u5B57\u7B26\u3001\u6570\u5B57\u3001_\u3001-\u3001",label:"\u955C\u50CFTag",name:"imageTag"})}}),(0,r.jsx)(n.Z.Group,{name:"uploadType",label:"\u6784\u5EFA\u65B9\u5F0F",initialValue:$,options:[{label:"Dockerfile",value:"dockerfile"},{label:"Zip\u6E90\u7801\u5305",value:"zip"},{label:"Git\u6E90\u7801\u4ED3\u5E93",value:"git"},{label:"\u5BFC\u5165\u5BB9\u5668Tar\u5305",value:"containerTar"},{label:"\u5BFC\u5165\u955C\u50CFTar\u5305",value:"imageTar"}],fieldProps:{onChange:function(b){ue(b.target.value)}}}),(0,r.jsx)(ie.Z,{name:["uploadType"],children:function(b){var a=b.uploadType;if(a=="containerTar")return[(0,r.jsx)(m.Z,{tooltip:"\u6307\u5B9A\u5BFC\u5165\u540E\u7684\u955C\u50CF\u5DE5\u4F5C\u76EE\u5F55\uFF0C\u4E00\u822C\u6307\u5411\u4EE3\u7801\u7684\u6240\u5728\u76EE\u5F55",label:"\u5DE5\u4F5C\u76EE\u5F55",name:"workDir",placeholder:"\u9ED8\u8BA4\u4E3A / \u76EE\u5F55"},"workDir"),(0,r.jsx)(m.Z,{required:!0,tooltip:"\u901A\u8FC7\u5BB9\u5668\u5BFC\u5165\u955C\u50CF\u65F6\uFF0C\u5FC5\u987B\u6307\u5B9A\u542F\u52A8\u547D\u4EE4\uFF0C\u5426\u5219\u518D\u521B\u5EFA\u65F6\u65E0\u6CD5\u542F\u52A8",rules:[{required:!0}],label:"CMD",name:"cmd"},"cmd"),(0,r.jsx)(se.Z,{tooltip:"\u6307\u5B9A\u5BFC\u5165\u540E\u7684\u955C\u50CF\u5BF9\u5916\u66B4\u9732\u7684\u7AEF\u53E3\uFF0C\u4E00\u884C\u6307\u5B9A\u4E00\u4E2A\u7AEF\u53E3",label:"\u66B4\u9732\u7AEF\u53E3",name:"expose",placeholder:`80 -9000`},"expose"),(0,r.jsx)(se.Z,{tooltip:"\u6307\u5B9A\u5BFC\u5165\u540E\u7684\u955C\u50CF\u9700\u8981\u914D\u7F6E\u7684\u73AF\u5883\u53D8\u91CF\uFF0C\u4E00\u884C\u6307\u5B9A\u4E00\u4E2A\u73AF\u5883\u53D8\u91CF",label:"\u73AF\u5883\u53D8\u91CF",name:"env",placeholder:`TEST_VALUE=123 -TEST_NO_VALUE=`},"env"),(0,r.jsx)(se.Z,{tooltip:"\u6307\u5B9A\u5BFC\u5165\u540E\u7684\u955C\u50CF\u9700\u8981\u6301\u4E45\u5316\u7684\u76EE\u5F55\uFF0C\u4E00\u884C\u6307\u5B9A\u4E00\u4E2A\u76EE\u5F55",label:"\u5B58\u50A8\u5377\u76EE\u5F55",name:"volume",placeholder:`/app -/home`},"volume")];if(a!="imageTar"){if(a=="zip"||a=="git")return(0,r.jsx)(m.Z,{name:"buildRoot",label:"Dockerfile\u6587\u4EF6\u4F4D\u7F6E",tooltip:"\u6307\u5B9ADockerfile\u6240\u5728\u7684\u76EE\u5F55",fieldProps:{addonBefore:"\u9ED8\u8BA4\u4EE5\u5305\u6216\u662F\u4ED3\u5E93\u76EE\u5F55\u5F00\u59CB\uFF08/\uFF09"},placeholder:"/Dockerfile"})}}}),$=="zip"&&(0,r.jsx)(f,{label:"\u4E0A\u4F20\u6784\u5EFA\u5305 (\u53EA\u5141\u8BB8\u4E0A\u4F20 .zip \u6587\u4EF6\uFF0C\u4E14\u4E0E\u5305\u4E2D\u7684 Dockerfile \u6307\u5B9A\u7684\u76EE\u5F55\u4FDD\u6301\u4E00\u81F4)",name:"buildZip",accept:".zip"}),$=="containerTar"&&(0,r.jsx)(f,{label:"\u5BFC\u5165\u5BB9\u5668\u5305\uFF08\u53EA\u5141\u8BB8\u4E0A\u4F20 .tar \u6587\u4EF6\uFF0C\u901A\u8FC7\u5BFC\u51FA\u5BB9\u5668\u751F\u6210\uFF09",name:"containerTar",accept:".tar"}),$=="imageTar"&&(0,r.jsx)(f,{label:"\u5BFC\u5165\u955C\u50CF\u5305\uFF08\u53EA\u5141\u8BB8\u4E0A\u4F20 .tar \u6587\u4EF6\uFF0C\u901A\u8FC7\u5BFC\u51FA\u955C\u50CF\u751F\u6210\uFF09",name:"imageTar",accept:".tar"}),$=="git"&&(0,r.jsx)(h,{}),$=="dockerfile"&&(0,r.jsx)(ve,{createFormRef:I})]})}),(0,r.jsx)(Z.Z,{ref:z})]})}},97961:function(X,L,e){e.d(L,{MF:function(){return _},_2:function(){return B},fN:function(){return m},hG:function(){return v},ii:function(){return E},vC:function(){return h}});var T=e(15009),t=e.n(T),S=e(99289),d=e.n(S),l=e(54006),E=[{name:"amd64",arch:"amd64"},{name:"arm64",arch:"arm64"},{name:"i386",arch:"386"},{name:"arm/v6",arch:"arm"},{name:"arm/v7",arch:"arm"},{name:"arm/v8",arch:"arm64"},{name:"ppc64le",arch:"ppc64le"},{name:"riscv64",arch:"riscv64"}];function m(u){return r.apply(this,arguments)}function r(){return r=d()(t()().mark(function u(y){return t()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,l.request)("/api/app/image/create-by-dockerfile",{method:"POST",data:y}));case 1:case"end":return o.stop()}},u)})),r.apply(this,arguments)}function h(u){return c.apply(this,arguments)}function c(){return c=d()(t()().mark(function u(y){return t()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,l.request)("/api/app/image/import-by-container-tar",{method:"POST",data:y}));case 1:case"end":return o.stop()}},u)})),c.apply(this,arguments)}function v(u){return D.apply(this,arguments)}function D(){return D=d()(t()().mark(function u(y){return t()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,l.request)("/api/app/image/import-by-image-tar",{method:"POST",data:y}));case 1:case"end":return o.stop()}},u)})),D.apply(this,arguments)}function B(u){return i.apply(this,arguments)}function i(){return i=d()(t()().mark(function u(y){return t()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,l.request)("/api/common/attach/delete",{method:"POST",data:y});case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},u)})),i.apply(this,arguments)}function _(){return s.apply(this,arguments)}function s(){return s=d()(t()().mark(function u(){return t()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",(0,l.request)("/api/app/image/get-template-list",{method:"POST"}));case 1:case"end":return A.stop()}},u)})),s.apply(this,arguments)}},18148:function(X,L,e){e.d(L,{$q:function(){return i},Fj:function(){return x},KG:function(){return E},KX:function(){return Z},T8:function(){return D},Xn:function(){return c},ao:function(){return s},c5:function(){return o},c7:function(){return y}});var T=e(15009),t=e.n(T),S=e(99289),d=e.n(S),l=e(54006);function E(p){return m.apply(this,arguments)}function m(){return m=d()(t()().mark(function p(F){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,l.request)("/api/app/image/get-list",{method:"POST",data:F}));case 1:case"end":return n.stop()}},p)})),m.apply(this,arguments)}function r(p){return h.apply(this,arguments)}function h(){return h=_asyncToGenerator(_regeneratorRuntime().mark(function p(F){return _regeneratorRuntime().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,request("/api/app/log/image-build",{method:"POST",data:F});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),h.apply(this,arguments)}function c(p){return v.apply(this,arguments)}function v(){return v=d()(t()().mark(function p(F){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,l.request)("/api/app/image/get-list-build",{method:"POST",data:F}));case 1:case"end":return n.stop()}},p)})),v.apply(this,arguments)}function D(p){return B.apply(this,arguments)}function B(){return B=d()(t()().mark(function p(F){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.request)("/api/app/image/get-build-task",{method:"POST",data:F});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),B.apply(this,arguments)}function i(p){return _.apply(this,arguments)}function _(){return _=d()(t()().mark(function p(F){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.request)("/api/app/image/delete-build-task",{method:"POST",data:F});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),_.apply(this,arguments)}function s(p){return u.apply(this,arguments)}function u(){return u=d()(t()().mark(function p(F){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.request)("/api/app/image/image-delete",{method:"POST",data:F});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),u.apply(this,arguments)}function y(){return A.apply(this,arguments)}function A(){return A=d()(t()().mark(function p(){return t()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,(0,l.request)("/api/app/image/image-prune",{method:"POST"});case 2:return P.abrupt("return",P.sent);case 3:case"end":return P.stop()}},p)})),A.apply(this,arguments)}function o(){return R.apply(this,arguments)}function R(){return R=d()(t()().mark(function p(){return t()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,(0,l.request)("/api/app/image/build-prune",{method:"POST"});case 2:return P.abrupt("return",P.sent);case 3:case"end":return P.stop()}},p)})),R.apply(this,arguments)}function x(p){return f.apply(this,arguments)}function f(){return f=d()(t()().mark(function p(F){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.request)("/api/app/image/update-title",{method:"POST",data:F});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},p)})),f.apply(this,arguments)}function Z(p){return O.apply(this,arguments)}function O(){return O=d()(t()().mark(function p(F){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,l.request)("/api/app/image/tag-sync",{method:"POST",data:F}));case 1:case"end":return n.stop()}},p)})),O.apply(this,arguments)}},75870:function(X,L,e){e.d(L,{Ot:function(){return E},ZH:function(){return r},ix:function(){return c},t1:function(){return D}});var T=e(15009),t=e.n(T),S=e(99289),d=e.n(S),l=e(54006);function E(i){return m.apply(this,arguments)}function m(){return m=d()(t()().mark(function i(_){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,l.request)("/api/common/registry/get-list",{method:"POST",data:_}));case 1:case"end":return u.stop()}},i)})),m.apply(this,arguments)}function r(i){return h.apply(this,arguments)}function h(){return h=d()(t()().mark(function i(_){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,l.request)("/api/common/registry/create",{method:"POST",data:_}));case 1:case"end":return u.stop()}},i)})),h.apply(this,arguments)}function c(i){return v.apply(this,arguments)}function v(){return v=d()(t()().mark(function i(_){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,l.request)("/api/common/registry/delete",{method:"POST",data:_}));case 1:case"end":return u.stop()}},i)})),v.apply(this,arguments)}function D(i){return B.apply(this,arguments)}function B(){return B=d()(t()().mark(function i(_){return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,l.request)("/api/common/registry/get-detail",{method:"POST",data:_}));case 1:case"end":return u.stop()}},i)})),B.apply(this,arguments)}}}]); diff --git a/asset/static/p__image__recycle.2b9e5ef8.async.js b/asset/static/p__image__recycle.2b9e5ef8.async.js deleted file mode 100644 index 219fa66b..00000000 --- a/asset/static/p__image__recycle.2b9e5ef8.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4202],{45742:function(K,D,e){e.d(D,{Z:function(){return P}});var I=e(87462),i=e(67294),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"},_=E,c=e(84089),v=function(a,C){return i.createElement(c.Z,(0,I.Z)({},a,{ref:C,icon:_}))},R=i.forwardRef(v),P=R},80821:function(K,D,e){e.d(D,{Z:function(){return h}});var I=e(5574),i=e.n(I),E=e(24963),_=e(86738),c=e(14726),v=e(83062),R=e(67294),P=e(85893);function h(a){var C=(0,R.useState)(!1),u=i()(C,2),A=u[0],t=u[1],l=(0,R.useContext)(E.Z),T=l.lang,O=l.notice,W=l.message,x=function(){t(!0),a.action().then(function(g){if(t(!1),typeof a.onSuccess=="function"&&a.onSuccess(g),a.messageSuccess){var f="";typeof a.messageSuccess=="function"?f=a.messageSuccess(g):f=a.messageSuccess,f.indexOf(".")>-1&&(f=T(f)),a.asynced?W.info(f):W.success(f)}}).catch(function(g){t(!1),typeof a.onError=="function"&&a.onError(g)})};return a.confirm?(0,P.jsx)(_.Z,{style:{width:500},title:a.confirmTitle?a.confirmTitle:T("notification.title.tip"),description:a.confirm,onConfirm:x,okText:"Yes",cancelText:"No",children:(0,P.jsx)(c.ZP,{disabled:a.disabled,icon:a.icon,loading:A,danger:a.danger,type:a.type,children:a.children})}):(0,P.jsx)(v.Z,{title:a.tips,children:(0,P.jsx)(c.ZP,{disabled:a.disabled,icon:a.icon,loading:A,onClick:x,danger:a.danger,type:a.type,children:a.children})})}},94359:function(K,D,e){e.d(D,{Z:function(){return A}});var I=e(67294),i=e(3089),E=e(98165),_=e(18429),c=e(8751),v=e(14313),R=e(30159),P=e(87740),h=e(66309),a=e(83062),C=e(54006),u=e(85893);function A(t){var l=(0,u.jsx)(u.Fragment,{});if(t.status=="0"&&(l=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(i.Z,{}),color:"default",children:"waiting"})),t.status=="10"&&(l=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(E.Z,{spin:!0}),color:"processing",children:"processing"})),t.status=="20"&&(l=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(_.Z,{}),color:"error",children:"error"})),t.status=="30"&&(l=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(c.Z,{}),color:"success",children:"success"})),t.status=="running"){var T,O;l=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(v.Z,{}),color:"success",children:(T=t.message)!==null&&T!==void 0&&T.showInTag?(O=t.message)===null||O===void 0?void 0:O.content:t.status})}if(t.status=="paused"){var W,x;l=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(R.Z,{}),children:(W=t.message)!==null&&W!==void 0&&W.showInTag?(x=t.message)===null||x===void 0?void 0:x.content:t.status})}if(t.status=="waiting"){var U,g;l=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(P.Z,{}),children:(U=t.message)!==null&&U!==void 0&&U.showInTag?(g=t.message)===null||g===void 0?void 0:g.content:t.status})}if(t.status=="exited"||t.status=="dead"||t.status=="removing"||t.status=="restarting"||t.status=="created"){var f,m;l=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(_.Z,{}),color:"warning",children:(f=t.message)!==null&&f!==void 0&&f.showInTag?(m=t.message)===null||m===void 0?void 0:m.content:t.status})}return t.link&&(l=(0,u.jsx)(C.Link,{to:t.link,children:l})),t.message&&(l=(0,u.jsx)(a.Z,{placement:t.message.placement,title:t.message.content,children:l})),(0,u.jsx)(u.Fragment,{children:l})}},74344:function(K,D,e){var I=e(5574),i=e.n(I),E=e(37476),_=e(38345),c=e(54006),v=e(67294),R=e(54964),P=e(85893),h=(0,v.forwardRef)(function(a,C){(0,v.useImperativeHandle)(C,function(){return{start:function(){for(var m=arguments.length,r=new Array(m),j=0;j-1&&(f=x(f)),i.asynced?T.info(f):T.success(f)}}).catch(function(g){t(!1),typeof i.onError=="function"&&i.onError(g)})};return i.confirm?(0,P.jsx)(l.Z,{style:{width:500},title:i.confirmTitle?i.confirmTitle:x("notification.title.tip"),description:i.confirm,onConfirm:B,okText:"Yes",cancelText:"No",children:(0,P.jsx)(c.ZP,{disabled:i.disabled,icon:i.icon,loading:R,danger:i.danger,type:i.type,children:i.children})}):(0,P.jsx)(v.Z,{title:i.tips,children:(0,P.jsx)(c.ZP,{disabled:i.disabled,icon:i.icon,loading:R,onClick:B,danger:i.danger,type:i.type,children:i.children})})}},94359:function(K,D,e){e.d(D,{Z:function(){return R}});var j=e(67294),r=e(3089),E=e(98165),l=e(18429),c=e(8751),v=e(14313),A=e(30159),P=e(87740),h=e(66309),i=e(83062),O=e(54006),u=e(85893);function R(t){var s=(0,u.jsx)(u.Fragment,{});if(t.status=="0"&&(s=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(r.Z,{}),color:"default",children:"waiting"})),t.status=="10"&&(s=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(E.Z,{spin:!0}),color:"processing",children:"processing"})),t.status=="20"&&(s=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(l.Z,{}),color:"error",children:"error"})),t.status=="30"&&(s=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(c.Z,{}),color:"success",children:"success"})),t.status=="running"){var x,M;s=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(v.Z,{}),color:"success",children:(x=t.message)!==null&&x!==void 0&&x.showInTag?(M=t.message)===null||M===void 0?void 0:M.content:t.status})}if(t.status=="paused"){var T,B;s=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(A.Z,{}),children:(T=t.message)!==null&&T!==void 0&&T.showInTag?(B=t.message)===null||B===void 0?void 0:B.content:t.status})}if(t.status=="waiting"){var U,g;s=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(P.Z,{}),children:(U=t.message)!==null&&U!==void 0&&U.showInTag?(g=t.message)===null||g===void 0?void 0:g.content:t.status})}if(t.status=="exited"||t.status=="dead"||t.status=="removing"||t.status=="restarting"||t.status=="created"){var f,m;s=(0,u.jsx)(h.Z,{icon:(0,u.jsx)(l.Z,{}),color:"warning",children:(f=t.message)!==null&&f!==void 0&&f.showInTag?(m=t.message)===null||m===void 0?void 0:m.content:t.status})}return t.link&&(s=(0,u.jsx)(O.Link,{to:t.link,children:s})),t.message&&(s=(0,u.jsx)(i.Z,{placement:t.message.placement,title:t.message.content,children:s})),(0,u.jsx)(u.Fragment,{children:s})}},74344:function(K,D,e){var j=e(5574),r=e.n(j),E=e(37476),l=e(38345),c=e(54006),v=e(67294),A=e(54964),P=e(85893),h=(0,v.forwardRef)(function(i,O){(0,v.useImperativeHandle)(O,function(){return{start:function(){for(var m=arguments.length,a=new Array(m),C=0;C-1&&(M=O(M)),u.asynced?$.info(M):$.success(M)}}).catch(function(c){s(!1),typeof u.onError=="function"&&u.onError(c)})};return u.confirm?(0,x.jsx)(o.Z,{style:{width:500},title:u.confirmTitle?u.confirmTitle:O("notification.title.tip"),description:u.confirm,onConfirm:F,okText:"Yes",cancelText:"No",children:(0,x.jsx)(r.ZP,{disabled:u.disabled,icon:u.icon,loading:d,danger:u.danger,type:u.type,children:u.children})}):(0,x.jsx)(y.Z,{title:u.tips,children:(0,x.jsx)(r.ZP,{disabled:u.disabled,icon:u.icon,loading:d,onClick:F,danger:u.danger,type:u.type,children:u.children})})}},27619:function(V,I,n){n.d(I,{Z:function(){return T}});var A=n(97857),i=n.n(A),R=n(19632),o=n.n(R),r=n(5574),y=n.n(r),_=n(64183),x=n(54006),b=n(9361),u=n(67294),P=n(85893);function T(d){var s,e=(0,u.useState)("academy"),O=y()(e,2),w=O[0],$=O[1],F=Math.max.apply(Math,o()(d.data.map(function(M){var z;return(z=M[d.yField])!==null&&z!==void 0?z:0}))),N=(0,x.useAntdConfig)(),c={xField:d.xField,yField:d.yField,height:200,axis:{y:{line:!0},x:{line:!0,grid:{visable:!0},labelAutoRotate:!0}},style:{opacity:.4},tooltip:{channel:"y",valueFormatter:d.yLabelFormatter},scale:{y:{domainMin:(s=d.yDomainMin)!==null&&s!==void 0?s:0,domainMax:d.yDomainMax?d.yDomainMax:d.yDomainMaxCallback?d.yDomainMaxCallback(F):F}},data:d.data};return d.yLabelFormatter&&(c.axis.y.labelFormatter=d.yLabelFormatter),d.colorField&&(c.colorField=d.colorField),(0,u.useEffect)(function(){var M=N.theme.algorithm;M.includes(b.Z.darkAlgorithm)?$("classicDark"):$("academy")},[N]),(0,P.jsx)(_.Z,i()({theme:w},c))}},71890:function(V,I,n){var A=n(15009),i=n.n(A),R=n(99289),o=n.n(R),r=n(67294);function y(_){var x=_.reqFunction,b=_.interval,u=_.maxPolling,P=_.pollingStatus,T=_.inPath,d=(0,r.useRef)(null),s=0,e=function w(){d.current=window.setTimeout(o()(i()().mark(function $(){var F;return i()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!(s++>=u)){c.next=3;break}return O(),c.abrupt("return");case 3:if(c.prev=3,!(T&&window.location.href.indexOf(T)==-1)){c.next=7;break}return O(),c.abrupt("return");case 7:return c.next=9,x();case 9:F=c.sent,w(),c.next=17;break;case 13:c.prev=13,c.t0=c.catch(3),O(),console.error("\u8F6E\u8BE2\u53D1\u751F\u9519\u8BEF\uFF1A",c.t0);case 17:case"end":return c.stop()}},$,null,[[3,13]])})),b)},O=function(){console.log("end polling"),d.current&&window.clearTimeout(d.current)};return(0,r.useEffect)(function(){return console.log((P?"start":"waiting")+" polling, max "+u),P&&e(),function(){O()}},[b,u,P]),{endPolling:O}}I.Z=y},24963:function(V,I,n){var A=n(67294),i=(0,A.createContext)({});I.Z=i},76214:function(V,I,n){n.r(I),n.d(I,{default:function(){return Le}});var A=n(15009),i=n.n(A),R=n(99289),o=n.n(R),r=n(5574),y=n.n(r),_=n(19632),x=n.n(_),b=n(80821),u=n(27619),P=n(97857),T=n.n(P),d=n(28413),s=n(67294),e=n(85893);function O(K){var Y=(0,s.useState)(),X=y()(Y,2),J=X[0],ee=X[1],ne={colorField:"value",valueField:"value",scale:{color:{range:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"]}},legend:!1};return K.data?(0,e.jsx)(d.Z,T()(T()({},ne),{},{height:500,data:{name:"root",children:K.data}})):(0,e.jsx)(e.Fragment,{})}var w=n(55241),$=n(71230),F=n(15746),N=n(38703),c=(0,s.forwardRef)(function(K,Y){return(0,s.useImperativeHandle)(Y,function(){return{}}),(0,e.jsxs)(w.Z,{placement:"left",children:[(0,e.jsx)($.Z,{justify:"center",children:(0,e.jsx)(F.Z,{children:(0,e.jsx)(N.Z,{percent:K.showPercent,type:"dashboard",format:function(J,ee){return"".concat(J,"%")},size:150,status:K.showPercent>=100?"exception":"normal"})})}),(0,e.jsx)($.Z,{justify:"center",children:(0,e.jsxs)(F.Z,{style:{marginTop:"10px"},children:[K.showLabel,": ",K.showUse," / ",K.showTotal]})})]})}),M=c,z=n(71890),se=n(24963),Q=n(87662),m=n(2831),D=n(18148),l=n(5251),a=n(45605),Ce=n(1210),Oe=n(38123),te=n(12122),S=n(38345),Se=n(184),Z=n(74273),H=n(54006),W=n(26412),ae=n(42075),Ze=n(83062),Ue=n(60922),Be=n(63490),Ae=n(86250);function Le(){var K,Y,X,J,ee,ne,ie,ue,le,oe,de,ce,me,_e,ve,fe,he,ge,pe,je,ye,Ee,Pe,Re=function(j,v){switch(v.type){case"update":var B=new Date().toLocaleTimeString(),E=0,f=0,q=0,re=0,k=0,p=0;v.payload.map(function(L){E+=L.cpu,f+=L.memory.in,q+=L.networkIO.in,re+=L.networkIO.out,k+=L.blockIO.in,p+=L.blockIO.out});var G={list:v.payload,cpu:E,memory:f,network:[].concat(x()(j.network),[{date:B,usage:re,type:"\u4E0A\u884C",source:{usage:re}},{date:B,type:"\u4E0B\u884C",usage:q,source:{usage:q}}]),io:[].concat(x()(j.io),[{date:B,usage:p,type:"\u8BFB\u53D6",source:{usage:p}},{date:B,type:"\u5199\u5165",usage:k,source:{usage:k}}])};return G}},$e=(0,s.useState)(),De=y()($e,2),t=De[0],We=De[1],ke=(0,s.useState)(),xe=y()(ke,2),h=xe[0],Ke=xe[1],we=(0,s.useState)(),be=y()(we,2),g=be[0],ze=be[1],Ge=(0,s.useReducer)(Re,{cpu:0,memory:0,network:[],io:[],list:[]}),Te=y()(Ge,2),U=Te[0],Fe=Te[1],Ne=(0,s.useContext)(se.Z),Ie=Ne.loading,Ve=(0,z.Z)({reqFunction:function(){var C=o()(i()().mark(function v(){var B;return i()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,(0,Q.Cz)();case 2:B=f.sent,Fe({type:"update",payload:B.data.list});case 4:case"end":return f.stop()}},v)}));function j(){return C.apply(this,arguments)}return j}(),interval:1e3,maxPolling:999,pollingStatus:!!t,inPath:"/home"}),Me=function(){var C=o()(i()().mark(function j(){var v,B,E,f,q;return i()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return Ie.show(),k.next=3,(0,m.aF)();case 3:return v=k.sent,We(v.data),k.next=7,(0,m.Ll)();case 7:return B=k.sent,ze(B.data),E={total:0,container:0,volume:0,image:0,cache:0,item:[],updatedAt:""},f=B.data.diskUsage,f.usage.Containers&&f.usage.Containers.map(function(p){var G,L;E.container+=p.SizeRootFs+((G=p.SizeRw)!==null&&G!==void 0?G:0),E.item.push({name:p.Names[0],value:parseFloat(((p.SizeRootFs+((L=p.SizeRw)!==null&&L!==void 0?L:0))/1024/1024).toFixed(2))})}),f.usage.Volumes&&f.usage.Volumes.map(function(p){E.volume+=p.UsageData.Size,E.item.push({name:p.Name,value:parseFloat((p.UsageData.Size/1024/1024).toFixed(2))})}),f.usage.Images&&f.usage.Images.map(function(p){var G,L;E.image+=p.Size-((G=p.Sharedsize)!==null&&G!==void 0?G:0),E.item.push({name:p.RepoTags&&p.RepoTags.length>0?p.RepoTags[0]:p.Id,value:parseFloat(((p.Size-((L=p.Sharedsize)!==null&&L!==void 0?L:0))/1024/1024).toFixed(2))})}),f.usage.BuildCache&&f.usage.BuildCache.map(function(p){E.cache+=p.Size}),!f.usage.Containers&&!f.usage.Images&&!f.usage.Volumes?E.item.push({name:"\u6B63\u5728\u83B7\u53D6\u8BA1\u7B97,\u4E2A\u522B\u7CFB\u7EDF\u4F1A\u6BD4\u8F83\u8017\u65F6.",value:100}):E.updatedAt=new Date(f.updatedAt).toLocaleString(),E.total=f.usage.LayersSize,Ke(E),k.next=20,(0,Q.Cz)();case 20:q=k.sent,Fe({type:"update",payload:q.data.list}),Ie.destroy();case 23:case"end":return k.stop()}},j)}));return function(){return C.apply(this,arguments)}}();return(0,s.useEffect)(function(){Me()},[]),(0,e.jsxs)(S.Z,{direction:"column",gutter:[0,10],ghost:!0,children:[(0,e.jsxs)(S.Z,{bordered:!0,split:"vertical",children:[(0,e.jsx)(S.Z,{colSpan:"40%",headerBordered:!0,title:(0,e.jsx)(a.Z,{}),subTitle:"\u57FA\u7840\u4FE1\u606F",children:(0,e.jsxs)(W.Z,{column:1,labelStyle:{width:100,justifyContent:"flex-end"},children:[(0,e.jsx)(W.Z.Item,{label:"\u9762\u677F\u4FE1\u606F",children:(0,e.jsxs)(ae.Z,{direction:"horizontal",children:[(0,e.jsxs)("span",{children:["DPanel - ",t==null?void 0:t.dpanel.version," - ",t==null?void 0:t.dpanel.family]}),(0,e.jsx)("a",{target:"_blank",href:"https://github.com/donknap/dpanel",children:(0,e.jsx)(Ce.Z,{})}),(0,e.jsx)(Ze.Z,{title:"\u5B98\u65B9\u4EA4\u6D41\u7FA4\uFF1A837583876",children:(0,e.jsx)("a",{target:"_blank",href:"https://qm.qq.com/q/NC0z7keAiy",children:(0,e.jsx)(Oe.Z,{})})})]})}),(0,e.jsx)(W.Z.Item,{label:"Docker Host",children:t==null?void 0:t.info.Name}),(0,e.jsx)(W.Z.Item,{label:"Docker \u7248\u672C",children:"".concat(t==null?void 0:t.info.OperatingSystem," - ").concat(t==null?void 0:t.info.ServerVersion," - ").concat(t==null?void 0:t.sdkVersion)}),(0,e.jsx)(W.Z.Item,{label:"\u6587\u4EF6\u5B58\u50A8\u9A71\u52A8",children:"".concat(t==null?void 0:t.info.Driver)}),(0,e.jsx)(W.Z.Item,{label:"\u65E5\u5FD7\u9A71\u52A8",children:"".concat(t==null?void 0:t.info.LoggingDriver)}),(0,e.jsx)(W.Z.Item,{label:"\u7CFB\u7EDF\u67B6\u6784",children:"".concat(t==null?void 0:t.info.KernelVersion," - ").concat(t==null?void 0:t.info.Architecture)}),(0,e.jsxs)(W.Z.Item,{label:"Cpu",children:[t==null?void 0:t.info.NCPU," \u6838"]}),(0,e.jsx)(W.Z.Item,{label:"Memory",children:(0,l.FI)((K=t==null?void 0:t.info.MemTotal)!==null&&K!==void 0?K:0)}),(0,e.jsx)(W.Z.Item,{label:"\u6839\u76EE\u5F55",children:t==null?void 0:t.info.DockerRootDir}),(0,e.jsx)(W.Z.Item,{label:"\u5B58\u50A8\u5377\u63D2\u4EF6",children:(0,e.jsx)(ae.Z,{children:t==null?void 0:t.info.Plugins.Volume})}),(0,e.jsx)(W.Z.Item,{label:"\u7F51\u7EDC\u63D2\u4EF6",children:(0,e.jsx)(ae.Z,{children:t==null?void 0:t.info.Plugins.Network})}),(0,e.jsx)(W.Z.Item,{label:"\u7CFB\u7EDF\u65F6\u95F4",children:new Date((Y=t==null?void 0:t.info.SystemTime)!==null&&Y!==void 0?Y:"").toLocaleString()})]})}),(0,e.jsxs)(S.Z,{headerBordered:!0,title:(0,e.jsx)(te.Z,{}),subTitle:"\u5BB9\u5668\u8FD0\u884C\u7EDF\u8BA1",split:"horizontal",extra:(0,e.jsx)(Se.a,{title:"\u5BB9\u5668\u72B6\u6001\u6570\u636E",submitter:!1,trigger:(0,e.jsx)(Ue.Z.Link,{children:"\u8BE6\u60C5\u6570\u636E"}),children:(0,e.jsx)(Be.Z,{pagination:!1,dataSource:U.list,rowKey:"name",columns:[{title:"\u5BB9\u5668\u540D\u79F0",dataIndex:"name"},{title:"Cpu",dataIndex:"cpu",sorter:function(j,v){return j.cpu-v.cpu},render:function(j,v,B){return"".concat(v.cpu.toFixed(2),"%")}},{title:"\u5185\u5B58",dataIndex:"memory",sorter:function(j,v){return j.memory.in-v.memory.in},render:function(j,v,B){var E,f;return"".concat((0,l.FI)((E=v==null?void 0:v.memory.in)!==null&&E!==void 0?E:0)," / ").concat((0,l.FI)((f=v==null?void 0:v.memory.out)!==null&&f!==void 0?f:0))}},{title:"\u7F51\u7EDC I/O",dataIndex:"networkIO",render:function(j,v,B){return"".concat((0,l.FI)(v.networkIO.in)," / ").concat((0,l.FI)(v.networkIO.out))}},{title:"\u78C1\u76D8 I/O",dataIndex:"blockIO",render:function(j,v,B){return"".concat((0,l.FI)(v.blockIO.in)," / ").concat((0,l.FI)(v.blockIO.out))}}]})}),children:[(0,e.jsx)(S.Z,{children:(0,e.jsxs)(Ae.Z,{gap:200,align:"center",justify:"center",children:[(0,e.jsx)(M,{showPercent:parseFloat(((X=U==null?void 0:U.cpu)!==null&&X!==void 0?X:0).toFixed(2)),showLabel:"Cpu",showUse:"".concat((((J=U==null?void 0:U.cpu)!==null&&J!==void 0?J:0)/100*((ee=t==null?void 0:t.info.NCPU)!==null&&ee!==void 0?ee:0)).toFixed(2)),showTotal:"".concat((ne=t==null?void 0:t.info.NCPU)!==null&&ne!==void 0?ne:0," \u6838")}),(0,e.jsx)(M,{showPercent:parseFloat((((ie=U==null?void 0:U.memory)!==null&&ie!==void 0?ie:0)/((ue=t==null?void 0:t.info.MemTotal)!==null&&ue!==void 0?ue:0)*100).toFixed(2)),showLabel:"\u5185\u5B58",showUse:(0,l.FI)((le=U==null?void 0:U.memory)!==null&&le!==void 0?le:0),showTotal:"".concat((0,l.FI)((oe=t==null?void 0:t.info.MemTotal)!==null&&oe!==void 0?oe:0))})]})}),(0,e.jsxs)(S.Z,{split:"vertical",wrap:!0,children:[(0,e.jsx)(S.Z,{colSpan:12,title:(0,e.jsx)(te.Z,{}),subTitle:"\u7F51\u7EDC",headerBordered:!0,children:(0,e.jsx)(u.Z,{yField:"usage",xField:"date",colorField:"type",data:U.network,yLabelFormatter:function(j){return(0,l.FI)(parseFloat(j))},yDomainMaxCallback:function(j){return j*1.5}})}),(0,e.jsx)(S.Z,{colSpan:12,title:(0,e.jsx)(te.Z,{}),subTitle:"\u78C1\u76D8",headerBordered:!0,children:(0,e.jsx)(u.Z,{yField:"usage",xField:"date",colorField:"type",data:U.io,yLabelFormatter:function(j){return(0,l.FI)(parseFloat(j))},yDomainMaxCallback:function(j){return j*1.5}})})]})]})]}),(0,e.jsx)(S.Z,{bordered:!0,headerBordered:!0,title:(0,e.jsx)(te.Z,{}),subTitle:"\u7528\u91CF\u7EDF\u8BA1",extra:"".concat(h&&h.updatedAt?"\u6570\u636E\u91CF\u540E\u66F4\u65B0: ".concat(h.updatedAt):""),children:(0,e.jsxs)($.Z,{children:[(0,e.jsx)(F.Z,{span:"11",children:(h==null?void 0:h.item)&&(h==null?void 0:h.item.length)>0&&(0,e.jsx)(O,{data:(de=h==null?void 0:h.item)!==null&&de!==void 0?de:[]})}),(0,e.jsx)(F.Z,{span:"5",children:(0,e.jsxs)(S.Z,{split:"horizontal",children:[(0,e.jsx)(Z.Z,{statistic:{title:"\u5BB9\u5668",value:(0,l.FI)((ce=h==null?void 0:h.container)!==null&&ce!==void 0?ce:0),description:"\u5305\u542B\u7CFB\u7EDF\u5360\u7528\u53CA\u5BB9\u5668\u8FD0\u884C\u5199\u5165\u6570\u636E"}}),(0,e.jsx)(Z.Z,{statistic:{title:"\u955C\u50CF",value:(0,l.FI)((me=h==null?void 0:h.image)!==null&&me!==void 0?me:0),description:"\u5305\u542B\u4E2D\u95F4\u955C\u50CF"}}),(0,e.jsx)(Z.Z,{statistic:{title:"\u5B58\u50A8",value:(0,l.FI)((_e=h==null?void 0:h.volume)!==null&&_e!==void 0?_e:0),description:"\u53EA\u5305\u542B\u5B58\u50A8\u5377,\u4E0D\u5305\u542B\u6302\u8F7D\u76EE\u5F55"}}),(0,e.jsx)(Z.Z,{statistic:{title:(0,e.jsxs)(ae.Z,{children:[(0,e.jsx)("span",{children:"\u6784\u5EFA\u7F13\u5B58"}),(0,e.jsx)(b.Z,{action:function(){return(0,D.c5)()},type:"link",messageSuccess:"\u6E05\u9664\u6210\u529F",onSuccess:function(){Me()},children:"\u6E05\u9664"})]}),value:(0,l.FI)((ve=h==null?void 0:h.cache)!==null&&ve!==void 0?ve:0)}})]})}),(0,e.jsx)(F.Z,{span:"8",children:(0,e.jsxs)(S.Z,{split:"horizontal",children:[(0,e.jsx)(S.Z,{ghost:!0,children:(0,e.jsxs)(Z.Z.Group,{children:[(0,e.jsx)(Z.Z,{statistic:{title:"\u5BB9\u5668",value:(fe=t==null?void 0:t.info.Containers)!==null&&fe!==void 0?fe:0,description:(0,e.jsx)(H.Link,{to:"/app/list",children:"\u67E5\u770B"})}}),(0,e.jsx)(Z.Z.Divider,{}),(0,e.jsx)(Z.Z,{statistic:{title:"\u8FD0\u884C\u4E2D",value:(he=t==null?void 0:t.info.ContainersRunning)!==null&&he!==void 0?he:0,status:"success"}}),(0,e.jsx)(Z.Z,{statistic:{title:"\u505C\u6B62",value:((ge=t==null?void 0:t.info.ContainersPaused)!==null&&ge!==void 0?ge:0)+((pe=t==null?void 0:t.info.ContainersStopped)!==null&&pe!==void 0?pe:0),status:"error"}}),(0,e.jsx)(Z.Z,{statistic:{title:"\u56DE\u6536\u7AD9",value:(je=g==null?void 0:g.total.containerTask)!==null&&je!==void 0?je:0,status:"default",description:(0,e.jsx)(H.Link,{to:"/app/list/recycle",children:"\u67E5\u770B"})}})]})}),(0,e.jsxs)(S.Z,{ghost:!0,children:[(0,e.jsx)(Z.Z,{statistic:{title:"\u955C\u50CF",value:"".concat((ye=(g==null?void 0:g.diskUsage.usage.Images)&&(g==null?void 0:g.diskUsage.usage.Images.length))!==null&&ye!==void 0?ye:0),status:"default",description:(0,e.jsx)(H.Link,{to:"/image/list",children:"\u67E5\u770B"})},chartPlacement:"left"}),(0,e.jsx)(Z.Z,{statistic:{title:"\u4EFB\u52A1",value:(Ee=g==null?void 0:g.total.imageTask)!==null&&Ee!==void 0?Ee:0,status:"default",description:(0,e.jsx)(H.Link,{to:"/image/list/build",children:"\u67E5\u770B"})},chartPlacement:"left"})]}),(0,e.jsx)(S.Z,{ghost:!0,children:(0,e.jsx)(Z.Z,{statistic:{title:"\u7F51\u7EDC",value:g==null?void 0:g.total.network,status:"default",description:(0,e.jsx)(H.Link,{to:"/docker/network",children:"\u67E5\u770B"})},chartPlacement:"left"})}),(0,e.jsxs)(S.Z,{ghost:!0,children:[(0,e.jsx)(Z.Z,{statistic:{title:"\u5B58\u50A8\u5377",value:(Pe=(g==null?void 0:g.diskUsage.usage.Volumes)&&(g==null?void 0:g.diskUsage.usage.Volumes.length))!==null&&Pe!==void 0?Pe:0,status:"default",description:(0,e.jsx)(H.Link,{to:"/docker/volume",children:"\u67E5\u770B"})},chartPlacement:"left"}),(0,e.jsx)(Z.Z,{statistic:{title:"\u5907\u4EFD",value:g==null?void 0:g.total.backup,status:"default",description:(0,e.jsx)(H.Link,{to:"/app/backup",children:"\u67E5\u770B"})},chartPlacement:"left"})]})]})})]})})]})}},2831:function(V,I,n){n.d(I,{Ll:function(){return x},aF:function(){return y},d6:function(){return u}});var A=n(15009),i=n.n(A),R=n(99289),o=n.n(R),r=n(54006);function y(){return _.apply(this,arguments)}function _(){return _=o()(i()().mark(function T(){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,r.request)("/api/common/home/info",{method:"POST"});case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},T)})),_.apply(this,arguments)}function x(){return b.apply(this,arguments)}function b(){return b=o()(i()().mark(function T(){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,r.request)("/api/common/home/usage",{method:"POST"});case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},T)})),b.apply(this,arguments)}function u(){return P.apply(this,arguments)}function P(){return P=o()(i()().mark(function T(){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,r.request)("/api/common/home/upgrade-script",{method:"POST"});case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},T)})),P.apply(this,arguments)}},18148:function(V,I,n){n.d(I,{$q:function(){return s},Fj:function(){return M},KG:function(){return y},KX:function(){return se},T8:function(){return T},Xn:function(){return u},ao:function(){return O},c5:function(){return N},c7:function(){return $}});var A=n(15009),i=n.n(A),R=n(99289),o=n.n(R),r=n(54006);function y(m){return _.apply(this,arguments)}function _(){return _=o()(i()().mark(function m(D){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,r.request)("/api/app/image/get-list",{method:"POST",data:D}));case 1:case"end":return a.stop()}},m)})),_.apply(this,arguments)}function x(m){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function m(D){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,request("/api/app/log/image-build",{method:"POST",data:D});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},m)})),b.apply(this,arguments)}function u(m){return P.apply(this,arguments)}function P(){return P=o()(i()().mark(function m(D){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,r.request)("/api/app/image/get-list-build",{method:"POST",data:D}));case 1:case"end":return a.stop()}},m)})),P.apply(this,arguments)}function T(m){return d.apply(this,arguments)}function d(){return d=o()(i()().mark(function m(D){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.request)("/api/app/image/get-build-task",{method:"POST",data:D});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},m)})),d.apply(this,arguments)}function s(m){return e.apply(this,arguments)}function e(){return e=o()(i()().mark(function m(D){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.request)("/api/app/image/delete-build-task",{method:"POST",data:D});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},m)})),e.apply(this,arguments)}function O(m){return w.apply(this,arguments)}function w(){return w=o()(i()().mark(function m(D){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.request)("/api/app/image/image-delete",{method:"POST",data:D});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},m)})),w.apply(this,arguments)}function $(){return F.apply(this,arguments)}function F(){return F=o()(i()().mark(function m(){return i()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,r.request)("/api/app/image/image-prune",{method:"POST"});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},m)})),F.apply(this,arguments)}function N(){return c.apply(this,arguments)}function c(){return c=o()(i()().mark(function m(){return i()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,r.request)("/api/app/image/build-prune",{method:"POST"});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},m)})),c.apply(this,arguments)}function M(m){return z.apply(this,arguments)}function z(){return z=o()(i()().mark(function m(D){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.request)("/api/app/image/update-title",{method:"POST",data:D});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},m)})),z.apply(this,arguments)}function se(m){return Q.apply(this,arguments)}function Q(){return Q=o()(i()().mark(function m(D){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,r.request)("/api/app/image/tag-sync",{method:"POST",data:D}));case 1:case"end":return a.stop()}},m)})),Q.apply(this,arguments)}},5251:function(V,I,n){n.d(I,{FI:function(){return i},ZM:function(){return R}});function A(o){return o.trim()}function i(o){var r="";o<.1*1024?r=o.toFixed(2)+"B":o<.1*1024*1024?r=(o/1024).toFixed(2)+"KB":o<1*1024*1024*1024?r=(o/(1024*1024)).toFixed(2)+"MB":r=(o/(1024*1024*1024)).toFixed(2)+"GB";var y=r+"",_=y.indexOf("."),x=y.substring(_+1,_+3);return x=="00"?y.substring(0,_)+y.substr(_+3,2):r}function R(o){if(o){var r=new Date(o),y=r.getFullYear()+"-",_=(r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1)+"-",x=(r.getDate()<10?"0"+r.getDate():r.getDate())+" ",b=(r.getHours()<10?"0"+r.getHours():r.getHours())+":",u=(r.getMinutes()<10?"0"+r.getMinutes():r.getMinutes())+":",P=r.getSeconds()<10?"0"+r.getSeconds():r.getSeconds();return y+_+x+b+u+P}}}}]); diff --git a/asset/static/p__system__home.f3bb31fe.async.js b/asset/static/p__system__home.f3bb31fe.async.js new file mode 100644 index 00000000..9a9ccdc6 --- /dev/null +++ b/asset/static/p__system__home.f3bb31fe.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2548],{80821:function(V,C,t){t.d(C,{Z:function(){return b}});var A=t(5574),i=t.n(A),R=t(24963),o=t(86738),r=t(14726),E=t(83062),f=t(67294),D=t(85893);function b(u){var x=(0,f.useState)(!1),T=i()(x,2),c=T[0],s=T[1],e=(0,f.useContext)(R.Z),Z=e.lang,w=e.notice,$=e.message,F=function(){s(!0),u.action().then(function(m){if(s(!1),typeof u.onSuccess=="function"&&u.onSuccess(m),u.messageSuccess){var M="";typeof u.messageSuccess=="function"?M=u.messageSuccess(m):M=u.messageSuccess,M.indexOf(".")>-1&&(M=Z(M)),u.asynced?$.info(M):$.success(M)}}).catch(function(m){s(!1),typeof u.onError=="function"&&u.onError(m)})};return u.confirm?(0,D.jsx)(o.Z,{style:{width:500},title:u.confirmTitle?u.confirmTitle:Z("notification.title.tip"),description:u.confirm,onConfirm:F,okText:"Yes",cancelText:"No",children:(0,D.jsx)(r.ZP,{disabled:u.disabled,icon:u.icon,loading:c,danger:u.danger,type:u.type,children:u.children})}):(0,D.jsx)(E.Z,{title:u.tips,children:(0,D.jsx)(r.ZP,{disabled:u.disabled,icon:u.icon,loading:c,onClick:F,danger:u.danger,type:u.type,children:u.children})})}},27619:function(V,C,t){t.d(C,{Z:function(){return T}});var A=t(97857),i=t.n(A),R=t(19632),o=t.n(R),r=t(5574),E=t.n(r),f=t(64183),D=t(54006),b=t(9361),u=t(67294),x=t(85893);function T(c){var s,e=(0,u.useState)("academy"),Z=E()(e,2),w=Z[0],$=Z[1],F=Math.max.apply(Math,o()(c.data.map(function(M){var z;return(z=M[c.yField])!==null&&z!==void 0?z:0}))),N=(0,D.useAntdConfig)(),m={xField:c.xField,yField:c.yField,height:200,axis:{y:{line:!0},x:{line:!0,grid:{visable:!0},labelAutoRotate:!0}},style:{opacity:.4},tooltip:{channel:"y",valueFormatter:c.yLabelFormatter},scale:{y:{domainMin:(s=c.yDomainMin)!==null&&s!==void 0?s:0,domainMax:c.yDomainMax?c.yDomainMax:c.yDomainMaxCallback?c.yDomainMaxCallback(F):F}},data:c.data};return c.yLabelFormatter&&(m.axis.y.labelFormatter=c.yLabelFormatter),c.colorField&&(m.colorField=c.colorField),(0,u.useEffect)(function(){var M=N.theme.algorithm;M.includes(b.Z.darkAlgorithm)?$("classicDark"):$("academy")},[N]),(0,x.jsx)(f.Z,i()({theme:w},m))}},71890:function(V,C,t){var A=t(15009),i=t.n(A),R=t(99289),o=t.n(R),r=t(67294);function E(f){var D=f.reqFunction,b=f.interval,u=f.maxPolling,x=f.pollingStatus,T=f.inPath,c=(0,r.useRef)(null),s=0,e=function w(){c.current=window.setTimeout(o()(i()().mark(function $(){var F;return i()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(s++>=u)){m.next=3;break}return Z(),m.abrupt("return");case 3:if(m.prev=3,!(T&&window.location.href.indexOf(T)==-1)){m.next=7;break}return Z(),m.abrupt("return");case 7:return m.next=9,D();case 9:F=m.sent,w(),m.next=17;break;case 13:m.prev=13,m.t0=m.catch(3),Z(),console.error("\u8F6E\u8BE2\u53D1\u751F\u9519\u8BEF\uFF1A",m.t0);case 17:case"end":return m.stop()}},$,null,[[3,13]])})),b)},Z=function(){console.log("end polling"),c.current&&window.clearTimeout(c.current)};return(0,r.useEffect)(function(){return console.log((x?"start":"waiting")+" polling, max "+u),x&&e(),function(){Z()}},[b,u,x]),{endPolling:Z}}C.Z=E},24963:function(V,C,t){var A=t(67294),i=(0,A.createContext)({});C.Z=i},76214:function(V,C,t){t.r(C),t.d(C,{default:function(){return Le}});var A=t(15009),i=t.n(A),R=t(99289),o=t.n(R),r=t(5574),E=t.n(r),f=t(19632),D=t.n(f),b=t(80821),u=t(27619),x=t(97857),T=t.n(x),c=t(28413),s=t(67294),e=t(85893);function Z(K){var Y=(0,s.useState)(),X=E()(Y,2),J=X[0],ee=X[1],te={colorField:"value",valueField:"value",scale:{color:{range:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"]}},legend:!1};return K.data?(0,e.jsx)(c.Z,T()(T()({},te),{},{height:500,data:{name:"root",children:K.data}})):(0,e.jsx)(e.Fragment,{})}var w=t(55241),$=t(71230),F=t(15746),N=t(38703),m=(0,s.forwardRef)(function(K,Y){return(0,s.useImperativeHandle)(Y,function(){return{}}),(0,e.jsxs)(w.Z,{placement:"left",children:[(0,e.jsx)($.Z,{justify:"center",children:(0,e.jsx)(F.Z,{children:(0,e.jsx)(N.Z,{percent:K.showPercent,type:"dashboard",format:function(J,ee){return"".concat(J,"%")},size:150,status:K.showPercent>=100?"exception":"normal"})})}),(0,e.jsx)($.Z,{justify:"center",children:(0,e.jsxs)(F.Z,{style:{marginTop:"10px"},children:[K.showLabel,": ",K.showUse," / ",K.showTotal]})})]})}),M=m,z=t(71890),se=t(24963),Q=t(87662),_=t(2831),P=t(18148),l=t(5251),a=t(45605),Ze=t(1210),Be=t(38123),ne=t(12122),B=t(38345),Pe=t(184),O=t(74273),H=t(54006),W=t(26412),ae=t(42075),Ue=t(83062),De=t(60922),be=t(63490),Ae=t(86250);function Le(){var K,Y,X,J,ee,te,ie,ue,le,oe,de,ce,me,_e,ve,fe,he,ge,pe,je,Ee,ye,xe,Re=function(g,d){switch(d.type){case"update":var S=new Date().toLocaleTimeString(),y=0,h=0,q=0,re=0,k=0,j=0;d.payload.map(function(L){y+=L.cpu,h+=L.memory.in,q+=L.networkIO.in,re+=L.networkIO.out,k+=L.blockIO.in,j+=L.blockIO.out});var G={list:d.payload,cpu:y,memory:h,network:[].concat(D()(g.network),[{date:S,usage:re,type:"\u4E0A\u884C",source:{usage:re}},{date:S,type:"\u4E0B\u884C",usage:q,source:{usage:q}}]),io:[].concat(D()(g.io),[{date:S,usage:j,type:"\u8BFB\u53D6",source:{usage:j}},{date:S,type:"\u5199\u5165",usage:k,source:{usage:k}}])};return G}},$e=(0,s.useState)(),Te=E()($e,2),n=Te[0],We=Te[1],ke=(0,s.useState)(),Ie=E()(ke,2),p=Ie[0],Ke=Ie[1],we=(0,s.useState)(),Fe=E()(we,2),v=Fe[0],ze=Fe[1],Ge=(0,s.useReducer)(Re,{cpu:0,memory:0,network:[],io:[],list:[]}),Ce=E()(Ge,2),U=Ce[0],Me=Ce[1],Ne=(0,s.useContext)(se.Z),Oe=Ne.loading,Ve=(0,z.Z)({reqFunction:function(){var I=o()(i()().mark(function d(){var S;return i()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,(0,Q.Cz)();case 2:S=h.sent,Me({type:"update",payload:S.data.list});case 4:case"end":return h.stop()}},d)}));function g(){return I.apply(this,arguments)}return g}(),interval:1e3,maxPolling:999,pollingStatus:!!n,inPath:"/home"}),Se=function(){var I=o()(i()().mark(function g(){var d,S,y,h,q;return i()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return Oe.show(),k.next=3,(0,_.aF)();case 3:return d=k.sent,We(d.data),k.next=7,(0,_.Ll)();case 7:return S=k.sent,ze(S.data),y={total:0,container:0,volume:0,image:0,cache:0,item:[],updatedAt:""},h=S.data.diskUsage,h.usage.Containers&&h.usage.Containers.map(function(j){var G,L;y.container+=j.SizeRootFs+((G=j.SizeRw)!==null&&G!==void 0?G:0),y.item.push({name:j.Names[0],value:parseFloat(((j.SizeRootFs+((L=j.SizeRw)!==null&&L!==void 0?L:0))/1024/1024).toFixed(2))})}),h.usage.Volumes&&h.usage.Volumes.map(function(j){y.volume+=j.UsageData.Size,y.item.push({name:j.Name,value:parseFloat((j.UsageData.Size/1024/1024).toFixed(2))})}),h.usage.Images&&h.usage.Images.map(function(j){var G,L;y.image+=j.Size-((G=j.Sharedsize)!==null&&G!==void 0?G:0),y.item.push({name:j.RepoTags&&j.RepoTags.length>0?j.RepoTags[0]:j.Id,value:parseFloat(((j.Size-((L=j.Sharedsize)!==null&&L!==void 0?L:0))/1024/1024).toFixed(2))})}),h.usage.BuildCache&&h.usage.BuildCache.map(function(j){y.cache+=j.Size}),!h.usage.Containers&&!h.usage.Images&&!h.usage.Volumes?y.item.push({name:"\u6B63\u5728\u83B7\u53D6\u8BA1\u7B97,\u4E2A\u522B\u7CFB\u7EDF\u4F1A\u6BD4\u8F83\u8017\u65F6.",value:100}):y.updatedAt=new Date(h.updatedAt).toLocaleString(),y.total=h.usage.LayersSize,Ke(y),k.next=20,(0,Q.Cz)();case 20:q=k.sent,Me({type:"update",payload:q.data.list}),Oe.destroy();case 23:case"end":return k.stop()}},g)}));return function(){return I.apply(this,arguments)}}();return(0,s.useEffect)(function(){Se()},[]),(0,e.jsxs)(B.Z,{direction:"column",gutter:[0,10],ghost:!0,children:[(0,e.jsxs)(B.Z,{bordered:!0,split:"vertical",children:[(0,e.jsx)(B.Z,{colSpan:"40%",headerBordered:!0,title:(0,e.jsx)(a.Z,{}),subTitle:"\u57FA\u7840\u4FE1\u606F",children:(0,e.jsxs)(W.Z,{column:1,labelStyle:{width:100,justifyContent:"flex-end"},children:[(0,e.jsx)(W.Z.Item,{label:"\u9762\u677F\u4FE1\u606F",children:(0,e.jsxs)(ae.Z,{direction:"horizontal",children:[(0,e.jsxs)("span",{children:["DPanel - ",n==null?void 0:n.dpanel.version," - ",n==null?void 0:n.dpanel.family]}),(0,e.jsx)("a",{target:"_blank",href:"https://github.com/donknap/dpanel",children:(0,e.jsx)(Ze.Z,{})}),(0,e.jsx)(Ue.Z,{title:"\u5B98\u65B9\u4EA4\u6D41\u7FA4\uFF1A837583876",children:(0,e.jsx)("a",{target:"_blank",href:"https://qm.qq.com/q/NC0z7keAiy",children:(0,e.jsx)(Be.Z,{})})})]})}),(0,e.jsx)(W.Z.Item,{label:"Docker Host",children:n==null?void 0:n.info.Name}),(0,e.jsx)(W.Z.Item,{label:"Docker \u7248\u672C",children:"".concat(n==null?void 0:n.info.OperatingSystem," - ").concat(n==null?void 0:n.info.ServerVersion," - ").concat(n==null?void 0:n.sdkVersion)}),(0,e.jsx)(W.Z.Item,{label:"\u6587\u4EF6\u5B58\u50A8\u9A71\u52A8",children:"".concat(n==null?void 0:n.info.Driver)}),(0,e.jsx)(W.Z.Item,{label:"\u65E5\u5FD7\u9A71\u52A8",children:"".concat(n==null?void 0:n.info.LoggingDriver)}),(0,e.jsx)(W.Z.Item,{label:"\u7CFB\u7EDF\u67B6\u6784",children:"".concat(n==null?void 0:n.info.KernelVersion," - ").concat(n==null?void 0:n.info.Architecture)}),(0,e.jsxs)(W.Z.Item,{label:"Cpu",children:[n==null?void 0:n.info.NCPU," \u6838"]}),(0,e.jsx)(W.Z.Item,{label:"Memory",children:(0,l.FI)((K=n==null?void 0:n.info.MemTotal)!==null&&K!==void 0?K:0)}),(0,e.jsx)(W.Z.Item,{label:"\u6839\u76EE\u5F55",children:n==null?void 0:n.info.DockerRootDir}),(0,e.jsx)(W.Z.Item,{label:"\u5B58\u50A8\u5377\u63D2\u4EF6",children:(0,e.jsx)(ae.Z,{children:n==null?void 0:n.info.Plugins.Volume})}),(0,e.jsx)(W.Z.Item,{label:"\u7F51\u7EDC\u63D2\u4EF6",children:(0,e.jsx)(ae.Z,{children:n==null?void 0:n.info.Plugins.Network})}),(0,e.jsx)(W.Z.Item,{label:"\u7CFB\u7EDF\u65F6\u95F4",children:new Date((Y=n==null?void 0:n.info.SystemTime)!==null&&Y!==void 0?Y:"").toLocaleString()})]})}),(0,e.jsxs)(B.Z,{headerBordered:!0,title:(0,e.jsx)(ne.Z,{}),subTitle:"\u5BB9\u5668\u8FD0\u884C\u7EDF\u8BA1",split:"horizontal",extra:(0,e.jsx)(Pe.a,{title:"\u5BB9\u5668\u72B6\u6001\u6570\u636E",submitter:!1,trigger:(0,e.jsx)(De.Z.Link,{children:"\u8BE6\u60C5\u6570\u636E"}),children:(0,e.jsx)(be.Z,{pagination:!1,dataSource:U.list,rowKey:"name",columns:[{title:"\u5BB9\u5668\u540D\u79F0",dataIndex:"name"},{title:"Cpu",dataIndex:"cpu",sorter:function(g,d){return g.cpu-d.cpu},render:function(g,d,S){return"".concat(d.cpu.toFixed(2),"%")}},{title:"\u5185\u5B58",dataIndex:"memory",sorter:function(g,d){return g.memory.in-d.memory.in},render:function(g,d,S){var y,h;return"".concat((0,l.FI)((y=d==null?void 0:d.memory.in)!==null&&y!==void 0?y:0)," / ").concat((0,l.FI)((h=d==null?void 0:d.memory.out)!==null&&h!==void 0?h:0))}},{title:"\u7F51\u7EDC I/O",dataIndex:"networkIO",render:function(g,d,S){return"".concat((0,l.FI)(d.networkIO.in)," / ").concat((0,l.FI)(d.networkIO.out))}},{title:"\u78C1\u76D8 I/O",dataIndex:"blockIO",render:function(g,d,S){return"".concat((0,l.FI)(d.blockIO.in)," / ").concat((0,l.FI)(d.blockIO.out))}}]})}),children:[(0,e.jsx)(B.Z,{children:(0,e.jsxs)(Ae.Z,{gap:200,align:"center",justify:"center",children:[(0,e.jsx)(M,{showPercent:parseFloat(((X=U==null?void 0:U.cpu)!==null&&X!==void 0?X:0).toFixed(2)),showLabel:"Cpu",showUse:"".concat((((J=U==null?void 0:U.cpu)!==null&&J!==void 0?J:0)/100*((ee=n==null?void 0:n.info.NCPU)!==null&&ee!==void 0?ee:0)).toFixed(2)),showTotal:"".concat((te=n==null?void 0:n.info.NCPU)!==null&&te!==void 0?te:0," \u6838")}),(0,e.jsx)(M,{showPercent:parseFloat((((ie=U==null?void 0:U.memory)!==null&&ie!==void 0?ie:0)/((ue=n==null?void 0:n.info.MemTotal)!==null&&ue!==void 0?ue:0)*100).toFixed(2)),showLabel:"\u5185\u5B58",showUse:(0,l.FI)((le=U==null?void 0:U.memory)!==null&&le!==void 0?le:0),showTotal:"".concat((0,l.FI)((oe=n==null?void 0:n.info.MemTotal)!==null&&oe!==void 0?oe:0))})]})}),(0,e.jsxs)(B.Z,{split:"vertical",wrap:!0,children:[(0,e.jsx)(B.Z,{colSpan:12,title:(0,e.jsx)(ne.Z,{}),subTitle:"\u7F51\u7EDC",headerBordered:!0,children:(0,e.jsx)(u.Z,{yField:"usage",xField:"date",colorField:"type",data:U.network,yLabelFormatter:function(g){return(0,l.FI)(parseFloat(g))},yDomainMaxCallback:function(g){return g*1.5}})}),(0,e.jsx)(B.Z,{colSpan:12,title:(0,e.jsx)(ne.Z,{}),subTitle:"\u78C1\u76D8",headerBordered:!0,children:(0,e.jsx)(u.Z,{yField:"usage",xField:"date",colorField:"type",data:U.io,yLabelFormatter:function(g){return(0,l.FI)(parseFloat(g))},yDomainMaxCallback:function(g){return g*1.5}})})]})]})]}),(0,e.jsx)(B.Z,{bordered:!0,headerBordered:!0,title:(0,e.jsx)(ne.Z,{}),subTitle:"\u7528\u91CF\u7EDF\u8BA1",extra:"".concat(p&&p.updatedAt?"\u6570\u636E\u91CF\u540E\u66F4\u65B0: ".concat(p.updatedAt):""),children:(0,e.jsxs)($.Z,{children:[(0,e.jsx)(F.Z,{span:"11",children:(p==null?void 0:p.item)&&(p==null?void 0:p.item.length)>0&&(0,e.jsx)(Z,{data:(de=p==null?void 0:p.item)!==null&&de!==void 0?de:[]})}),(0,e.jsx)(F.Z,{span:"5",children:(0,e.jsxs)(B.Z,{split:"horizontal",children:[(0,e.jsx)(O.Z,{statistic:{title:"\u5BB9\u5668",value:(0,l.FI)((ce=p==null?void 0:p.container)!==null&&ce!==void 0?ce:0),description:"\u5305\u542B\u7CFB\u7EDF\u5360\u7528\u53CA\u5BB9\u5668\u8FD0\u884C\u5199\u5165\u6570\u636E"}}),(0,e.jsx)(O.Z,{statistic:{title:"\u955C\u50CF",value:(0,l.FI)((me=p==null?void 0:p.image)!==null&&me!==void 0?me:0),description:"\u5305\u542B\u4E2D\u95F4\u955C\u50CF"}}),(0,e.jsx)(O.Z,{statistic:{title:"\u5B58\u50A8",value:(0,l.FI)((_e=p==null?void 0:p.volume)!==null&&_e!==void 0?_e:0),description:"\u53EA\u5305\u542B\u5B58\u50A8\u5377,\u4E0D\u5305\u542B\u6302\u8F7D\u76EE\u5F55"}}),(0,e.jsx)(O.Z,{statistic:{title:(0,e.jsxs)(ae.Z,{children:[(0,e.jsx)("span",{children:"\u6784\u5EFA\u7F13\u5B58"}),(0,e.jsx)(b.Z,{action:function(){return(0,P.c5)()},type:"link",messageSuccess:"\u6E05\u9664\u6210\u529F",onSuccess:function(){Se()},children:"\u6E05\u9664"})]}),value:(0,l.FI)((ve=p==null?void 0:p.cache)!==null&&ve!==void 0?ve:0)}})]})}),(0,e.jsx)(F.Z,{span:"8",children:(0,e.jsxs)(B.Z,{split:"horizontal",children:[(0,e.jsx)(B.Z,{ghost:!0,children:(0,e.jsxs)(O.Z.Group,{children:[(0,e.jsx)(O.Z,{statistic:{title:"\u5BB9\u5668",value:(fe=n==null?void 0:n.info.Containers)!==null&&fe!==void 0?fe:0,description:(0,e.jsx)(H.Link,{to:"/app/list",children:"\u67E5\u770B"})}}),(0,e.jsx)(O.Z.Divider,{}),(0,e.jsx)(O.Z,{statistic:{title:"\u8FD0\u884C\u4E2D",value:(he=n==null?void 0:n.info.ContainersRunning)!==null&&he!==void 0?he:0,status:"success"}}),(0,e.jsx)(O.Z,{statistic:{title:"\u505C\u6B62",value:((ge=n==null?void 0:n.info.ContainersPaused)!==null&&ge!==void 0?ge:0)+((pe=n==null?void 0:n.info.ContainersStopped)!==null&&pe!==void 0?pe:0),status:"error"}}),(0,e.jsx)(O.Z,{statistic:{title:"\u56DE\u6536\u7AD9",value:(je=v==null?void 0:v.total.containerTask)!==null&&je!==void 0?je:0,status:"default",description:(0,e.jsx)(H.Link,{to:"/app/list/recycle",children:"\u67E5\u770B"})}})]})}),(0,e.jsxs)(B.Z,{ghost:!0,children:[(0,e.jsx)(O.Z,{statistic:{title:"\u955C\u50CF",value:"".concat((Ee=(v==null?void 0:v.diskUsage.usage.Images)&&(v==null?void 0:v.diskUsage.usage.Images.length))!==null&&Ee!==void 0?Ee:0),status:"default",description:(0,e.jsx)(H.Link,{to:"/image/list",children:"\u67E5\u770B"})},chartPlacement:"left"}),(0,e.jsx)(O.Z,{statistic:{title:"\u4EFB\u52A1",value:(ye=v==null?void 0:v.total.imageTask)!==null&&ye!==void 0?ye:0,status:"default",description:(0,e.jsx)(H.Link,{to:"/image/list/build",children:"\u67E5\u770B"})},chartPlacement:"left"})]}),(0,e.jsxs)(B.Z,{ghost:!0,children:[(0,e.jsx)(O.Z,{statistic:{title:"\u7F51\u7EDC",value:v==null?void 0:v.total.network,status:"default",description:(0,e.jsx)(H.Link,{to:"/docker/network",children:"\u67E5\u770B"})},chartPlacement:"left"}),(0,e.jsx)(O.Z,{statistic:{title:"\u6620\u5C04\u4E3B\u673A\u7AEF\u53E3",value:v==null?void 0:v.total.port,status:"default",description:(0,e.jsx)(Pe.a,{submitter:!1,title:"\u67E5\u770B\u6620\u5C04\u7AEF\u53E3",trigger:(0,e.jsx)(De.Z.Link,{children:"\u67E5\u770B"}),children:(0,e.jsx)(be.Z,{pagination:!1,dataSource:v==null?void 0:v.port,rowKey:"name",columns:[{title:"\u4E3B\u673A\u7AEF\u53E3",dataIndex:["port","host"],sorter:function(g,d){return parseInt(g.port.host)-parseInt(d.port.host)},render:function(g,d,S){return"".concat(d.port.hostIp,":").concat(d.port.host)}},{title:"\u5BB9\u5668\u7AEF\u53E3",dataIndex:["port","dest"]},{title:"\u5BB9\u5668\u540D\u79F0",dataIndex:"name"}]})})},chartPlacement:"left"})]}),(0,e.jsxs)(B.Z,{ghost:!0,children:[(0,e.jsx)(O.Z,{statistic:{title:"\u5B58\u50A8\u5377",value:(xe=(v==null?void 0:v.diskUsage.usage.Volumes)&&(v==null?void 0:v.diskUsage.usage.Volumes.length))!==null&&xe!==void 0?xe:0,status:"default",description:(0,e.jsx)(H.Link,{to:"/docker/volume",children:"\u67E5\u770B"})},chartPlacement:"left"}),(0,e.jsx)(O.Z,{statistic:{title:"\u5907\u4EFD",value:v==null?void 0:v.total.backup,status:"default",description:(0,e.jsx)(H.Link,{to:"/app/backup",children:"\u67E5\u770B"})},chartPlacement:"left"})]})]})})]})})]})}},2831:function(V,C,t){t.d(C,{Ll:function(){return D},aF:function(){return E},d6:function(){return u}});var A=t(15009),i=t.n(A),R=t(99289),o=t.n(R),r=t(54006);function E(){return f.apply(this,arguments)}function f(){return f=o()(i()().mark(function T(){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,r.request)("/api/common/home/info",{method:"POST"});case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},T)})),f.apply(this,arguments)}function D(){return b.apply(this,arguments)}function b(){return b=o()(i()().mark(function T(){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,r.request)("/api/common/home/usage",{method:"POST"});case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},T)})),b.apply(this,arguments)}function u(){return x.apply(this,arguments)}function x(){return x=o()(i()().mark(function T(){return i()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,r.request)("/api/common/home/upgrade-script",{method:"POST"});case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},T)})),x.apply(this,arguments)}},18148:function(V,C,t){t.d(C,{$q:function(){return s},Fj:function(){return M},KG:function(){return E},KX:function(){return se},T8:function(){return T},Xn:function(){return u},ao:function(){return Z},c5:function(){return N},c7:function(){return $}});var A=t(15009),i=t.n(A),R=t(99289),o=t.n(R),r=t(54006);function E(_){return f.apply(this,arguments)}function f(){return f=o()(i()().mark(function _(P){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,r.request)("/api/app/image/get-list",{method:"POST",data:P}));case 1:case"end":return a.stop()}},_)})),f.apply(this,arguments)}function D(_){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function _(P){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,request("/api/app/log/image-build",{method:"POST",data:P});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},_)})),b.apply(this,arguments)}function u(_){return x.apply(this,arguments)}function x(){return x=o()(i()().mark(function _(P){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,r.request)("/api/app/image/get-list-build",{method:"POST",data:P}));case 1:case"end":return a.stop()}},_)})),x.apply(this,arguments)}function T(_){return c.apply(this,arguments)}function c(){return c=o()(i()().mark(function _(P){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.request)("/api/app/image/get-build-task",{method:"POST",data:P});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},_)})),c.apply(this,arguments)}function s(_){return e.apply(this,arguments)}function e(){return e=o()(i()().mark(function _(P){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.request)("/api/app/image/delete-build-task",{method:"POST",data:P});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},_)})),e.apply(this,arguments)}function Z(_){return w.apply(this,arguments)}function w(){return w=o()(i()().mark(function _(P){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.request)("/api/app/image/image-delete",{method:"POST",data:P});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},_)})),w.apply(this,arguments)}function $(){return F.apply(this,arguments)}function F(){return F=o()(i()().mark(function _(){return i()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,r.request)("/api/app/image/image-prune",{method:"POST"});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},_)})),F.apply(this,arguments)}function N(){return m.apply(this,arguments)}function m(){return m=o()(i()().mark(function _(){return i()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,r.request)("/api/app/image/build-prune",{method:"POST"});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},_)})),m.apply(this,arguments)}function M(_){return z.apply(this,arguments)}function z(){return z=o()(i()().mark(function _(P){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.request)("/api/app/image/update-title",{method:"POST",data:P});case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},_)})),z.apply(this,arguments)}function se(_){return Q.apply(this,arguments)}function Q(){return Q=o()(i()().mark(function _(P){return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,r.request)("/api/app/image/tag-sync",{method:"POST",data:P}));case 1:case"end":return a.stop()}},_)})),Q.apply(this,arguments)}},5251:function(V,C,t){t.d(C,{FI:function(){return i},ZM:function(){return R}});function A(o){return o.trim()}function i(o){var r="";o<.1*1024?r=o.toFixed(2)+"B":o<.1*1024*1024?r=(o/1024).toFixed(2)+"KB":o<1*1024*1024*1024?r=(o/(1024*1024)).toFixed(2)+"MB":r=(o/(1024*1024*1024)).toFixed(2)+"GB";var E=r+"",f=E.indexOf("."),D=E.substring(f+1,f+3);return D=="00"?E.substring(0,f)+E.substr(f+3,2):r}function R(o){if(o){var r=new Date(o),E=r.getFullYear()+"-",f=(r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1)+"-",D=(r.getDate()<10?"0"+r.getDate():r.getDate())+" ",b=(r.getHours()<10?"0"+r.getHours():r.getHours())+":",u=(r.getMinutes()<10?"0"+r.getMinutes():r.getMinutes())+":",x=r.getSeconds()<10?"0"+r.getSeconds():r.getSeconds();return E+f+D+b+u+x}}}}]); diff --git a/asset/static/umi.265fce25.js b/asset/static/umi.9a20dfd7.js similarity index 99% rename from asset/static/umi.265fce25.js rename to asset/static/umi.9a20dfd7.js index 35e13b2c..4eedc6f6 100644 --- a/asset/static/umi.265fce25.js +++ b/asset/static/umi.9a20dfd7.js @@ -79,7 +79,7 @@ Try polyfilling it using "@formatjs/intl-displaynames" \u4F7F\u7528\u6B64 api \u4F1A\u9020\u6210\u5207\u6362\u8BED\u8A00\u7684\u65F6\u5019\u65E0\u6CD5\u81EA\u52A8\u5237\u65B0\uFF0C\u8BF7\u4F7F\u7528 useIntl \u6216 injectIntl\u3002 http://j.mp/37Fkd5Q - `),Je=!1),wr||se(te()),wr.formatMessage(be,j)},xt=function(){return Object.keys(tn)}},44886:function(m,h,e){"use strict";e.d(h,{t:function(){return R},z:function(){return P}});var t=e(5574),r=e.n(t),a=e(72004),o=e.n(a),l=e(12444),c=e.n(l),u=e(9783),s=e.n(u),d=e(64063),v=e.n(d),y=e(67294),p=e(85893),f=y.createContext(null),x=o()(function w(){var A=this;c()(this,w),s()(this,"callbacks",{}),s()(this,"data",{}),s()(this,"update",function(C){A.callbacks[C]&&A.callbacks[C].forEach(function(M){try{var D=A.data[C];M(D)}catch(k){M(void 0)}})})});function E(w){var A=w.hook,C=w.onUpdate,M=w.namespace,D=(0,y.useRef)(C),k=(0,y.useRef)(!1),Z;try{Z=A()}catch(Y){console.error("plugin-model: Invoking '".concat(M||"unknown","' model failed:"),Y)}return(0,y.useMemo)(function(){D.current(Z)},[]),(0,y.useEffect)(function(){k.current?D.current(Z):k.current=!0}),null}var S=new x;function P(w){return(0,p.jsxs)(f.Provider,{value:{dispatcher:S},children:[Object.keys(w.models).map(function(A){return(0,p.jsx)(E,{hook:w.models[A],namespace:A,onUpdate:function(M){S.data[A]=M,S.update(A)}},A)}),w.children]})}function R(w,A){var C=(0,y.useContext)(f),M=C.dispatcher,D=(0,y.useRef)(A);D.current=A;var k=(0,y.useState)(function(){return D.current?D.current(M.data[w]):M.data[w]}),Z=r()(k,2),Y=Z[0],ee=Z[1],ue=(0,y.useRef)(Y);ue.current=Y;var H=(0,y.useRef)(!1);return(0,y.useEffect)(function(){return H.current=!0,function(){H.current=!1}},[]),(0,y.useEffect)(function(){var pe,ve=function(X){if(!H.current)setTimeout(function(){M.data[w]=X,M.update(w)});else{var J=D.current?D.current(X):X,U=ue.current;v()(J,U)||(ue.current=J,ee(J))}};return(pe=M.callbacks)[w]||(pe[w]=new Set),M.callbacks[w].add(ve),M.update(w),function(){M.callbacks[w].delete(ve)}},[w]),Y}},52626:function(m,h,e){"use strict";e.d(h,{R:function(){return o}});var t={},r={},a,o=function(u){var s=localStorage.getItem("token");if(!s)return"";var d=document.location.protocol=="http:"?"ws:":"wss:",v=document.location.port?document.location.hostname+":"+document.location.port:document.location.hostname,y=d+"//"+v+"/ws/common"+u+(u.indexOf("?")>-1?"&":"?")+"token="+localStorage.getItem("token");return y},l=function(){var u=o("/notice"),s=function p(){a=new WebSocket(u),a.addEventListener("open",function(){console.log("connect ws notice server"),setInterval(function(){a.send("ping")},500)}),a.addEventListener("message",function(f){if(f.data){var x=JSON.parse(f.data),E=x.type;if(E.indexOf("event")==0){E=="event:fd"&&sessionStorage.setItem("fd",x.data);return}t[E]&&t[E](x)}}),a.addEventListener("close",function(){console.log("disconnect ws notice server"),setTimeout(function(){p()},2e3)})},d=function(f,x){t[f]=x},v={abort:function(f){var x={type:"signal:abort",data:f};a.send(JSON.stringify(x))}},y=function(f){var x,E=(x=r[f])!==null&&x!==void 0?x:[];return r[f]=[],E};return u&&s(),{websocketConn:a,getDataByType:y,addDataHandler:d,signal:v}};h.Z=l},87662:function(m,h,e){"use strict";e.d(h,{Cz:function(){return M},Jn:function(){return p},KU:function(){return c},Kg:function(){return x},_g:function(){return R},ad:function(){return A},bG:function(){return v},pe:function(){return s},vC:function(){return S}});var t=e(15009),r=e.n(t),a=e(99289),o=e.n(a),l=e(54006);function c(k){return u.apply(this,arguments)}function u(){return u=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/setting/save",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),u.apply(this,arguments)}function s(k){return d.apply(this,arguments)}function d(){return d=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/setting/get-setting",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),d.apply(this,arguments)}function v(k){return y.apply(this,arguments)}function y(){return y=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/user/get-user-info",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),y.apply(this,arguments)}function p(k){return f.apply(this,arguments)}function f(){return f=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/setting/founder",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),f.apply(this,arguments)}function x(){return E.apply(this,arguments)}function E(){return E=o()(r()().mark(function k(){return r()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",(0,l.request)("/api/common/env/get-list",{method:"POST"}));case 1:case"end":return Y.stop()}},k)})),E.apply(this,arguments)}function S(k){return P.apply(this,arguments)}function P(){return P=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/env/switch",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),P.apply(this,arguments)}function R(k){return w.apply(this,arguments)}function w(){return w=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,(0,l.request)("/api/common/env/delete",{method:"POST",data:Z});case 2:return ee.abrupt("return",ee.sent);case 3:case"end":return ee.stop()}},k)})),w.apply(this,arguments)}function A(k){return C.apply(this,arguments)}function C(){return C=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,(0,l.request)("/api/common/env/create",{method:"POST",data:Z});case 2:return ee.abrupt("return",ee.sent);case 3:case"end":return ee.stop()}},k)})),C.apply(this,arguments)}function M(){return D.apply(this,arguments)}function D(){return D=o()(r()().mark(function k(){return r()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,(0,l.request)("/api/common/home/get-stat-list",{method:"POST"});case 2:return Y.abrupt("return",Y.sent);case 3:case"end":return Y.stop()}},k)})),D.apply(this,arguments)}},34185:function(m,h,e){"use strict";e.d(h,{Zt:function(){return v},bJ:function(){return c},vo:function(){return s}});var t=e(15009),r=e.n(t),a=e(99289),o=e.n(a),l=e(54006);function c(p){return u.apply(this,arguments)}function u(){return u=o()(r()().mark(function p(f){return r()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,l.request)("/api/common/notice/unread",{method:"POST",data:f}));case 1:case"end":return E.stop()}},p)})),u.apply(this,arguments)}function s(p){return d.apply(this,arguments)}function d(){return d=o()(r()().mark(function p(f){return r()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,l.request)("/api/common/notice/get-list",{method:"POST",data:f}));case 1:case"end":return E.stop()}},p)})),d.apply(this,arguments)}function v(p){return y.apply(this,arguments)}function y(){return y=o()(r()().mark(function p(f){return r()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,l.request)("/api/common/notice/delete",{method:"POST",data:f}));case 1:case"end":return E.stop()}},p)})),y.apply(this,arguments)}},276:function(m,h,e){"use strict";e.d(h,{Z:function(){return Me}});var t=e(1413),r=e(97685),a=e(4942),o=e(45987),l=e(67294),c=e(93967),u=e.n(c),s=(0,l.createContext)({}),d=s,v=e(71002),y=e(86500),p=e(1350),f=2,x=.16,E=.05,S=.05,P=.15,R=5,w=4,A=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function C(we){var Ve=we.r,me=we.g,Se=we.b,it=(0,y.py)(Ve,me,Se);return{h:it.h*360,s:it.s,v:it.v}}function M(we){var Ve=we.r,me=we.g,Se=we.b;return"#".concat((0,y.vq)(Ve,me,Se,!1))}function D(we,Ve,me){var Se=me/100,it={r:(Ve.r-we.r)*Se+we.r,g:(Ve.g-we.g)*Se+we.g,b:(Ve.b-we.b)*Se+we.b};return it}function k(we,Ve,me){var Se;return Math.round(we.h)>=60&&Math.round(we.h)<=240?Se=me?Math.round(we.h)-f*Ve:Math.round(we.h)+f*Ve:Se=me?Math.round(we.h)+f*Ve:Math.round(we.h)-f*Ve,Se<0?Se+=360:Se>=360&&(Se-=360),Se}function Z(we,Ve,me){if(we.h===0&&we.s===0)return we.s;var Se;return me?Se=we.s-x*Ve:Ve===w?Se=we.s+x:Se=we.s+E*Ve,Se>1&&(Se=1),me&&Ve===R&&Se>.1&&(Se=.1),Se<.06&&(Se=.06),Number(Se.toFixed(2))}function Y(we,Ve,me){var Se;return me?Se=we.v+S*Ve:Se=we.v-P*Ve,Se>1&&(Se=1),Number(Se.toFixed(2))}function ee(we){for(var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=[],Se=(0,p.uA)(we),it=R;it>0;it-=1){var ft=C(Se),lt=M((0,p.uA)({h:k(ft,it,!0),s:Z(ft,it,!0),v:Y(ft,it,!0)}));me.push(lt)}me.push(M(Se));for(var Ct=1;Ct<=w;Ct+=1){var le=C(Se),ke=M((0,p.uA)({h:k(le,Ct),s:Z(le,Ct),v:Y(le,Ct)}));me.push(ke)}return Ve.theme==="dark"?A.map(function(tt){var ut=tt.index,nt=tt.opacity,mt=M(D((0,p.uA)(Ve.backgroundColor||"#141414"),(0,p.uA)(me[ut]),nt*100));return mt}):me}var ue={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},H={},pe={};Object.keys(ue).forEach(function(we){H[we]=ee(ue[we]),H[we].primary=H[we][5],pe[we]=ee(ue[we],{theme:"dark",backgroundColor:"#141414"}),pe[we].primary=pe[we][5]});var ve=H.red,ge=H.volcano,X=H.gold,J=H.orange,U=H.yellow,G=H.lime,$=H.green,F=H.cyan,ne=H.blue,V=H.geekblue,q=H.purple,ie=H.magenta,De=H.grey,Ue=e(80334),He=e(44958),Ge=e(68929),Fe=e.n(Ge);function _e(we,Ve){(0,Ue.ZP)(we,"[@ant-design/icons] ".concat(Ve))}function $e(we){return(0,v.Z)(we)==="object"&&typeof we.name=="string"&&typeof we.theme=="string"&&((0,v.Z)(we.icon)==="object"||typeof we.icon=="function")}function Ce(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(we).reduce(function(Ve,me){var Se=we[me];switch(me){case"class":Ve.className=Se,delete Ve.class;break;default:delete Ve[me],Ve[Fe()(me)]=Se}return Ve},{})}function Re(we,Ve,me){return me?l.createElement(we.tag,(0,t.Z)((0,t.Z)({key:Ve},Ce(we.attrs)),me),(we.children||[]).map(function(Se,it){return Re(Se,"".concat(Ve,"-").concat(we.tag,"-").concat(it))})):l.createElement(we.tag,(0,t.Z)({key:Ve},Ce(we.attrs)),(we.children||[]).map(function(Se,it){return Re(Se,"".concat(Ve,"-").concat(we.tag,"-").concat(it))}))}function de(we){return ee(we)[0]}function je(we){return we?Array.isArray(we)?we:[we]:[]}var Ee={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},N=` + `),Je=!1),wr||se(te()),wr.formatMessage(be,j)},xt=function(){return Object.keys(tn)}},44886:function(m,h,e){"use strict";e.d(h,{t:function(){return R},z:function(){return P}});var t=e(5574),r=e.n(t),a=e(72004),o=e.n(a),l=e(12444),c=e.n(l),u=e(9783),s=e.n(u),d=e(64063),v=e.n(d),y=e(67294),p=e(85893),f=y.createContext(null),x=o()(function w(){var A=this;c()(this,w),s()(this,"callbacks",{}),s()(this,"data",{}),s()(this,"update",function(C){A.callbacks[C]&&A.callbacks[C].forEach(function(M){try{var D=A.data[C];M(D)}catch(k){M(void 0)}})})});function E(w){var A=w.hook,C=w.onUpdate,M=w.namespace,D=(0,y.useRef)(C),k=(0,y.useRef)(!1),Z;try{Z=A()}catch(Y){console.error("plugin-model: Invoking '".concat(M||"unknown","' model failed:"),Y)}return(0,y.useMemo)(function(){D.current(Z)},[]),(0,y.useEffect)(function(){k.current?D.current(Z):k.current=!0}),null}var S=new x;function P(w){return(0,p.jsxs)(f.Provider,{value:{dispatcher:S},children:[Object.keys(w.models).map(function(A){return(0,p.jsx)(E,{hook:w.models[A],namespace:A,onUpdate:function(M){S.data[A]=M,S.update(A)}},A)}),w.children]})}function R(w,A){var C=(0,y.useContext)(f),M=C.dispatcher,D=(0,y.useRef)(A);D.current=A;var k=(0,y.useState)(function(){return D.current?D.current(M.data[w]):M.data[w]}),Z=r()(k,2),Y=Z[0],ee=Z[1],ue=(0,y.useRef)(Y);ue.current=Y;var H=(0,y.useRef)(!1);return(0,y.useEffect)(function(){return H.current=!0,function(){H.current=!1}},[]),(0,y.useEffect)(function(){var pe,ve=function(X){if(!H.current)setTimeout(function(){M.data[w]=X,M.update(w)});else{var J=D.current?D.current(X):X,U=ue.current;v()(J,U)||(ue.current=J,ee(J))}};return(pe=M.callbacks)[w]||(pe[w]=new Set),M.callbacks[w].add(ve),M.update(w),function(){M.callbacks[w].delete(ve)}},[w]),Y}},52626:function(m,h,e){"use strict";e.d(h,{R:function(){return o}});var t={},r={},a,o=function(u){var s=localStorage.getItem("token");if(!s)return"";var d=document.location.protocol=="http:"?"ws:":"wss:",v=document.location.port?document.location.hostname+":"+document.location.port:document.location.hostname,y=d+"//"+v+"/ws/common"+u+(u.indexOf("?")>-1?"&":"?")+"token="+localStorage.getItem("token");return y},l=function(){var u=o("/notice"),s=function p(){a=new WebSocket(u),a.addEventListener("open",function(){console.log("connect ws notice server"),setInterval(function(){a.send("ping")},1e4)}),a.addEventListener("message",function(f){if(f.data){var x=JSON.parse(f.data),E=x.type;if(E.indexOf("event")==0){E=="event:fd"&&sessionStorage.setItem("fd",x.data);return}t[E]&&t[E](x)}}),a.addEventListener("close",function(){console.log("disconnect ws notice server"),setTimeout(function(){p()},2e3)})},d=function(f,x){t[f]=x},v={close:function(f){var x={type:"progress:close",data:f};a.send(JSON.stringify(x))}},y=function(f){var x,E=(x=r[f])!==null&&x!==void 0?x:[];return r[f]=[],E};return u&&s(),{websocketConn:a,getDataByType:y,addDataHandler:d,progress:v}};h.Z=l},87662:function(m,h,e){"use strict";e.d(h,{Cz:function(){return M},Jn:function(){return p},KU:function(){return c},Kg:function(){return x},_g:function(){return R},ad:function(){return A},bG:function(){return v},pe:function(){return s},vC:function(){return S}});var t=e(15009),r=e.n(t),a=e(99289),o=e.n(a),l=e(54006);function c(k){return u.apply(this,arguments)}function u(){return u=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/setting/save",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),u.apply(this,arguments)}function s(k){return d.apply(this,arguments)}function d(){return d=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/setting/get-setting",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),d.apply(this,arguments)}function v(k){return y.apply(this,arguments)}function y(){return y=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/user/get-user-info",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),y.apply(this,arguments)}function p(k){return f.apply(this,arguments)}function f(){return f=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/setting/founder",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),f.apply(this,arguments)}function x(){return E.apply(this,arguments)}function E(){return E=o()(r()().mark(function k(){return r()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",(0,l.request)("/api/common/env/get-list",{method:"POST"}));case 1:case"end":return Y.stop()}},k)})),E.apply(this,arguments)}function S(k){return P.apply(this,arguments)}function P(){return P=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",(0,l.request)("/api/common/env/switch",{method:"POST",data:Z}));case 1:case"end":return ee.stop()}},k)})),P.apply(this,arguments)}function R(k){return w.apply(this,arguments)}function w(){return w=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,(0,l.request)("/api/common/env/delete",{method:"POST",data:Z});case 2:return ee.abrupt("return",ee.sent);case 3:case"end":return ee.stop()}},k)})),w.apply(this,arguments)}function A(k){return C.apply(this,arguments)}function C(){return C=o()(r()().mark(function k(Z){return r()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,(0,l.request)("/api/common/env/create",{method:"POST",data:Z});case 2:return ee.abrupt("return",ee.sent);case 3:case"end":return ee.stop()}},k)})),C.apply(this,arguments)}function M(){return D.apply(this,arguments)}function D(){return D=o()(r()().mark(function k(){return r()().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,(0,l.request)("/api/common/home/get-stat-list",{method:"POST"});case 2:return Y.abrupt("return",Y.sent);case 3:case"end":return Y.stop()}},k)})),D.apply(this,arguments)}},34185:function(m,h,e){"use strict";e.d(h,{Zt:function(){return v},bJ:function(){return c},vo:function(){return s}});var t=e(15009),r=e.n(t),a=e(99289),o=e.n(a),l=e(54006);function c(p){return u.apply(this,arguments)}function u(){return u=o()(r()().mark(function p(f){return r()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,l.request)("/api/common/notice/unread",{method:"POST",data:f}));case 1:case"end":return E.stop()}},p)})),u.apply(this,arguments)}function s(p){return d.apply(this,arguments)}function d(){return d=o()(r()().mark(function p(f){return r()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,l.request)("/api/common/notice/get-list",{method:"POST",data:f}));case 1:case"end":return E.stop()}},p)})),d.apply(this,arguments)}function v(p){return y.apply(this,arguments)}function y(){return y=o()(r()().mark(function p(f){return r()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,l.request)("/api/common/notice/delete",{method:"POST",data:f}));case 1:case"end":return E.stop()}},p)})),y.apply(this,arguments)}},276:function(m,h,e){"use strict";e.d(h,{Z:function(){return Me}});var t=e(1413),r=e(97685),a=e(4942),o=e(45987),l=e(67294),c=e(93967),u=e.n(c),s=(0,l.createContext)({}),d=s,v=e(71002),y=e(86500),p=e(1350),f=2,x=.16,E=.05,S=.05,P=.15,R=5,w=4,A=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function C(we){var Ve=we.r,me=we.g,Se=we.b,it=(0,y.py)(Ve,me,Se);return{h:it.h*360,s:it.s,v:it.v}}function M(we){var Ve=we.r,me=we.g,Se=we.b;return"#".concat((0,y.vq)(Ve,me,Se,!1))}function D(we,Ve,me){var Se=me/100,it={r:(Ve.r-we.r)*Se+we.r,g:(Ve.g-we.g)*Se+we.g,b:(Ve.b-we.b)*Se+we.b};return it}function k(we,Ve,me){var Se;return Math.round(we.h)>=60&&Math.round(we.h)<=240?Se=me?Math.round(we.h)-f*Ve:Math.round(we.h)+f*Ve:Se=me?Math.round(we.h)+f*Ve:Math.round(we.h)-f*Ve,Se<0?Se+=360:Se>=360&&(Se-=360),Se}function Z(we,Ve,me){if(we.h===0&&we.s===0)return we.s;var Se;return me?Se=we.s-x*Ve:Ve===w?Se=we.s+x:Se=we.s+E*Ve,Se>1&&(Se=1),me&&Ve===R&&Se>.1&&(Se=.1),Se<.06&&(Se=.06),Number(Se.toFixed(2))}function Y(we,Ve,me){var Se;return me?Se=we.v+S*Ve:Se=we.v-P*Ve,Se>1&&(Se=1),Number(Se.toFixed(2))}function ee(we){for(var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=[],Se=(0,p.uA)(we),it=R;it>0;it-=1){var ft=C(Se),lt=M((0,p.uA)({h:k(ft,it,!0),s:Z(ft,it,!0),v:Y(ft,it,!0)}));me.push(lt)}me.push(M(Se));for(var Ct=1;Ct<=w;Ct+=1){var le=C(Se),ke=M((0,p.uA)({h:k(le,Ct),s:Z(le,Ct),v:Y(le,Ct)}));me.push(ke)}return Ve.theme==="dark"?A.map(function(tt){var ut=tt.index,nt=tt.opacity,mt=M(D((0,p.uA)(Ve.backgroundColor||"#141414"),(0,p.uA)(me[ut]),nt*100));return mt}):me}var ue={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},H={},pe={};Object.keys(ue).forEach(function(we){H[we]=ee(ue[we]),H[we].primary=H[we][5],pe[we]=ee(ue[we],{theme:"dark",backgroundColor:"#141414"}),pe[we].primary=pe[we][5]});var ve=H.red,ge=H.volcano,X=H.gold,J=H.orange,U=H.yellow,G=H.lime,$=H.green,F=H.cyan,ne=H.blue,V=H.geekblue,q=H.purple,ie=H.magenta,De=H.grey,Ue=e(80334),He=e(44958),Ge=e(68929),Fe=e.n(Ge);function _e(we,Ve){(0,Ue.ZP)(we,"[@ant-design/icons] ".concat(Ve))}function $e(we){return(0,v.Z)(we)==="object"&&typeof we.name=="string"&&typeof we.theme=="string"&&((0,v.Z)(we.icon)==="object"||typeof we.icon=="function")}function Ce(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(we).reduce(function(Ve,me){var Se=we[me];switch(me){case"class":Ve.className=Se,delete Ve.class;break;default:delete Ve[me],Ve[Fe()(me)]=Se}return Ve},{})}function Re(we,Ve,me){return me?l.createElement(we.tag,(0,t.Z)((0,t.Z)({key:Ve},Ce(we.attrs)),me),(we.children||[]).map(function(Se,it){return Re(Se,"".concat(Ve,"-").concat(we.tag,"-").concat(it))})):l.createElement(we.tag,(0,t.Z)({key:Ve},Ce(we.attrs)),(we.children||[]).map(function(Se,it){return Re(Se,"".concat(Ve,"-").concat(we.tag,"-").concat(it))}))}function de(we){return ee(we)[0]}function je(we){return we?Array.isArray(we)?we:[we]:[]}var Ee={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},N=` .anticon { display: inline-flex; alignItems: center; @@ -367,7 +367,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `:case"\u2028":case"\u2029":break;case"0":if(E(R,C))return;w+="\0";break;case"x":if(M=S(R,C,C+2),M===-1)return;C+=2,w+=a(M);break;case"u":if(C1114111)return;w+=o(M);break;default:if(E(D,0))return;w+=D}A=C}return w+s(R,A)}},63514:function(m,h,e){"use strict";var t=e(19037),r=e(3689),a=e(3615),o=e(72532),l=e(88563),c=e(50806),u=t.structuredClone;m.exports=!!u&&!r(function(){if(l&&a>92||c&&a>94||o&&a>97)return!1;var s=new ArrayBuffer(8),d=u(s,{transfer:[s]});return s.byteLength!==0||d.byteLength!==8})},50146:function(m,h,e){"use strict";var t=e(3615),r=e(3689),a=e(19037),o=a.String;m.exports=!!Object.getOwnPropertySymbols&&!r(function(){var l=Symbol("symbol detection");return!o(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&t&&t<41})},18992:function(m,h,e){"use strict";var t=e(76058),r=e(68844),a=t("Symbol"),o=a.keyFor,l=r(a.prototype.valueOf);m.exports=a.isRegisteredSymbol||function(u){try{return o(l(u))!==void 0}catch(s){return!1}}},8957:function(m,h,e){"use strict";for(var t=e(83430),r=e(76058),a=e(68844),o=e(30734),l=e(44201),c=r("Symbol"),u=c.isWellKnownSymbol,s=r("Object","getOwnPropertyNames"),d=a(c.prototype.valueOf),v=t("wks"),y=0,p=s(c),f=p.length;y0?r(t(a),9007199254740991):0}},90690:function(m,h,e){"use strict";var t=e(74684),r=Object;m.exports=function(a){return r(t(a))}},83250:function(m,h,e){"use strict";var t=e(15904),r=RangeError;m.exports=function(a,o){var l=t(a);if(l%o)throw new r("Wrong offset");return l}},15904:function(m,h,e){"use strict";var t=e(68700),r=RangeError;m.exports=function(a){var o=t(a);if(o<0)throw new r("The argument can't be less than 0");return o}},88732:function(m,h,e){"use strict";var t=e(22615),r=e(48999),a=e(30734),o=e(54849),l=e(35899),c=e(44201),u=TypeError,s=c("toPrimitive");m.exports=function(d,v){if(!r(d)||a(d))return d;var y=o(d,s),p;if(y){if(v===void 0&&(v="default"),p=t(y,d,v),!r(p)||a(p))return p;throw new u("Can't convert object to primitive value")}return v===void 0&&(v="number"),l(d,v)}},18360:function(m,h,e){"use strict";var t=e(88732),r=e(30734);m.exports=function(a){var o=t(a,"string");return r(o)?o:o+""}},2939:function(m,h,e){"use strict";var t=e(76058),r=e(69985),a=e(9603),o=e(48999),l=t("Set"),c=function(u){return o(u)&&typeof u.size=="number"&&r(u.has)&&r(u.keys)};m.exports=function(u){return c(u)?u:a(u)?new l(u):u}},23043:function(m,h,e){"use strict";var t=e(44201),r=t("toStringTag"),a={};a[r]="z",m.exports=String(a)==="[object z]"},34327:function(m,h,e){"use strict";var t=e(50926),r=String;m.exports=function(a){if(t(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(a)}},87191:function(m){"use strict";var h=Math.round;m.exports=function(e){var t=h(e);return t<0?0:t>255?255:t&255}},21905:function(m,h,e){"use strict";var t=e(50806);m.exports=function(r){try{if(t)return Function('return require("'+r+'")')()}catch(a){}}},23691:function(m){"use strict";var h=String;m.exports=function(e){try{return h(e)}catch(t){return"Object"}}},20716:function(m,h,e){"use strict";var t=e(59976),r=e(47338);m.exports=function(a,o){return t(r(a),o)}},47338:function(m,h,e){"use strict";var t=e(54872),r=e(76373),a=t.aTypedArrayConstructor,o=t.getTypedArrayConstructor;m.exports=function(l){return a(r(l,o(l)))}},14630:function(m,h,e){"use strict";var t=e(68844),r=0,a=Math.random(),o=t(1 .toString);m.exports=function(l){return"Symbol("+(l===void 0?"":l)+")_"+o(++r+a,36)}},76837:function(m,h,e){"use strict";var t=e(3689),r=e(44201),a=e(67697),o=e(53931),l=r("iterator");m.exports=!t(function(){var c=new URL("b?a=1&b=2&c=3","http://a"),u=c.searchParams,s=new URLSearchParams("a=1&a=2&b=3"),d="";return c.pathname="c%20d",u.forEach(function(v,y){u.delete("b"),d+=y+v}),s.delete("a",2),s.delete("b",void 0),o&&(!c.toJSON||!s.has("a",1)||s.has("a",2)||!s.has("a",void 0)||s.has("b"))||!u.size&&(o||!a)||!u.sort||c.href!=="http://a/c%20d?a=1&c=3"||u.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!u[l]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||d!=="a1c3"||new URL("http://x",void 0).host!=="x"})},39525:function(m,h,e){"use strict";var t=e(50146);m.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},15648:function(m,h,e){"use strict";var t=e(67697),r=e(3689);m.exports=t&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},21500:function(m){"use strict";var h=TypeError;m.exports=function(e,t){if(ew&&v(H,arguments[w]),H});if(Z.prototype=D,C!=="Error"?l?l(Z,k):c(Z,k,{name:!0}):p&&R in M&&(u(Z,M,R),u(Z,M,"prepareStackTrace")),c(Z,M),!f)try{D.name!==C&&a(D,"name",C),D.constructor=Z}catch(Y){}return Z}}},54927:function(m,h,e){"use strict";var t=e(79989),r=e(76058),a=e(61735),o=e(3689),l=e(51064),c="AggregateError",u=r(c),s=!o(function(){return u([1]).errors[0]!==1})&&o(function(){return u([1],c,{cause:7}).cause!==7});t({global:!0,constructor:!0,arity:2,forced:s},{AggregateError:l(c,function(d){return function(y,p){return a(d,this,arguments)}},s,!0)})},39382:function(m,h,e){"use strict";var t=e(79989),r=e(23622),a=e(61868),o=e(49385),l=e(8758),c=e(25391),u=e(75773),s=e(75684),d=e(62570),v=e(65411),y=e(18734),p=e(13841),f=e(44201),x=f("toStringTag"),E=Error,S=[].push,P=function(A,C){var M=r(R,this),D;o?D=o(new E,M?a(this):R):(D=M?this:c(R),u(D,x,"Error")),C!==void 0&&u(D,"message",p(C)),v(D,P,D.stack,1),arguments.length>2&&d(D,arguments[2]);var k=[];return y(A,S,{that:k}),u(D,"errors",k),D};o?o(P,E):l(P,E,{name:!0});var R=P.prototype=c(E.prototype,{constructor:s(1,P),message:s(1,""),name:s(1,"AggregateError")});t({global:!0,constructor:!0,arity:2},{AggregateError:P})},95879:function(m,h,e){"use strict";e(39382)},92176:function(m,h,e){"use strict";var t=e(79989),r=e(90690),a=e(6310),o=e(68700),l=e(87370);t({target:"Array",proto:!0},{at:function(u){var s=r(this),d=a(s),v=o(u),y=v>=0?v:d+v;return y<0||y>=d?void 0:s[y]}}),l("at")},93383:function(m,h,e){"use strict";var t=e(79989),r=e(61969).findLastIndex,a=e(87370);t({target:"Array",proto:!0},{findLastIndex:function(l){return r(this,l,arguments.length>1?arguments[1]:void 0)}}),a("findLastIndex")},59867:function(m,h,e){"use strict";var t=e(79989),r=e(61969).findLast,a=e(87370);t({target:"Array",proto:!0},{findLast:function(l){return r(this,l,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},70560:function(m,h,e){"use strict";var t=e(79989),r=e(90690),a=e(6310),o=e(5649),l=e(55565),c=e(3689),u=c(function(){return[].push.call({length:4294967296},1)!==4294967297}),s=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(v){return v instanceof TypeError}},d=u||!s();t({target:"Array",proto:!0,arity:1,forced:d},{push:function(y){var p=r(this),f=a(p),x=arguments.length;l(f+x);for(var E=0;E79&&o<83,u=c||!a("reduceRight");t({target:"Array",proto:!0,forced:u},{reduceRight:function(d){return r(this,d,arguments.length,arguments.length>1?arguments[1]:void 0)}})},278:function(m,h,e){"use strict";var t=e(79989),r=e(88820).left,a=e(16834),o=e(3615),l=e(50806),c=!l&&o>79&&o<83,u=c||!a("reduce");t({target:"Array",proto:!0,forced:u},{reduce:function(d){var v=arguments.length;return r(this,d,v,v>1?arguments[1]:void 0)}})},29830:function(m,h,e){"use strict";var t=e(79989),r=e(26166),a=e(65290),o=e(87370),l=Array;t({target:"Array",proto:!0},{toReversed:function(){return r(a(this),l)}}),o("toReversed")},12894:function(m,h,e){"use strict";var t=e(79989),r=e(68844),a=e(10509),o=e(65290),l=e(59976),c=e(88277),u=e(87370),s=Array,d=r(c("Array","sort"));t({target:"Array",proto:!0},{toSorted:function(y){y!==void 0&&a(y);var p=o(this),f=l(s,p);return d(f,y)}}),u("toSorted")},93530:function(m,h,e){"use strict";var t=e(79989),r=e(87370),a=e(55565),o=e(6310),l=e(27578),c=e(65290),u=e(68700),s=Array,d=Math.max,v=Math.min;t({target:"Array",proto:!0},{toSpliced:function(p,f){var x=c(this),E=o(x),S=l(p,E),P=arguments.length,R=0,w,A,C,M;for(P===0?w=A=0:P===1?(w=0,A=E-S):(w=P-2,A=v(d(u(f),0),E-S)),C=a(E+w-A),M=s(C);R=0?f:p+f;return x<0||x>=p?void 0:u(y,x)}})},12281:function(m,h,e){"use strict";var t=e(79989),r=e(68844),a=e(74684),o=e(34327),l=r("".charCodeAt);t({target:"String",proto:!0},{isWellFormed:function(){for(var u=o(a(this)),s=u.length,d=0;d=56320||++d>=s||(l(u,d)&64512)!==56320))return!1}return!0}})},56532:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(68844),o=e(74684),l=e(69985),c=e(981),u=e(91245),s=e(34327),d=e(54849),v=e(63477),y=e(27017),p=e(44201),f=e(53931),x=p("replace"),E=TypeError,S=a("".indexOf),P=a("".replace),R=a("".slice),w=Math.max,A=function(C,M,D){return D>C.length?-1:M===""?D:S(C,M,D)};t({target:"String",proto:!0},{replaceAll:function(M,D){var k=o(this),Z,Y,ee,ue,H,pe,ve,ge,X,J=0,U=0,G="";if(!c(M)){if(Z=u(M),Z&&(Y=s(o(v(M))),!~S(Y,"g")))throw new E("`.replaceAll` does not allow non-global regexes");if(ee=d(M,x),ee)return r(ee,M,k,D);if(f&&Z)return P(s(k),M,D)}for(ue=s(k),H=s(M),pe=l(D),pe||(D=s(D)),ve=H.length,ge=w(1,ve),J=A(ue,H,0);J!==-1;)X=pe?s(D(H,J,ue)):y(H,ue,J,[],void 0,D),G+=R(ue,U,J)+X,U=J+ve,J=A(ue,H,J+ge);return U=56320||R+1>=S||(d(E,R+1)&64512)!==56320?P[R]=p:(P[R]=s(E,R),P[++R]=s(E,R))}return v(P,"")}})},95194:function(m,h,e){"use strict";var t=e(54872),r=e(6310),a=e(68700),o=t.aTypedArray,l=t.exportTypedArrayMethod;l("at",function(u){var s=o(this),d=r(s),v=a(u),y=v>=0?v:d+v;return y<0||y>=d?void 0:s[y]})},82:function(m,h,e){"use strict";var t=e(54872),r=e(61969).findLastIndex,a=t.aTypedArray,o=t.exportTypedArrayMethod;o("findLastIndex",function(c){return r(a(this),c,arguments.length>1?arguments[1]:void 0)})},20522:function(m,h,e){"use strict";var t=e(54872),r=e(61969).findLast,a=t.aTypedArray,o=t.exportTypedArrayMethod;o("findLast",function(c){return r(a(this),c,arguments.length>1?arguments[1]:void 0)})},79976:function(m,h,e){"use strict";var t=e(19037),r=e(22615),a=e(54872),o=e(6310),l=e(83250),c=e(90690),u=e(3689),s=t.RangeError,d=t.Int8Array,v=d&&d.prototype,y=v&&v.set,p=a.aTypedArray,f=a.exportTypedArrayMethod,x=!u(function(){var S=new Uint8ClampedArray(2);return r(y,S,{length:1,0:3},1),S[1]!==3}),E=x&&a.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var S=new d(2);return S.set(1),S.set("2",1),S[0]!==0||S[1]!==2});f("set",function(P){p(this);var R=l(arguments.length>1?arguments[1]:void 0,1),w=c(P);if(x)return r(y,this,w,R);var A=this.length,C=o(w),M=0;if(C+R>A)throw new s("Wrong length");for(;M1?arguments[1]:void 0)}}),a("filterOut")},54883:function(m,h,e){"use strict";var t=e(79989),r=e(2960).filterReject,a=e(87370);t({target:"Array",proto:!0,forced:!0},{filterReject:function(l){return r(this,l,arguments.length>1?arguments[1]:void 0)}}),a("filterReject")},18073:function(m,h,e){"use strict";var t=e(79989),r=e(2231);t({target:"Array",stat:!0},{fromAsync:r})},96882:function(m,h,e){"use strict";var t=e(79989),r=e(16834),a=e(87370),o=e(44416),l=e(53931);t({target:"Array",proto:!0,name:"groupToMap",forced:l||!r("groupByToMap")},{groupByToMap:o}),a("groupByToMap")},22525:function(m,h,e){"use strict";var t=e(79989),r=e(64976),a=e(16834),o=e(87370);t({target:"Array",proto:!0,forced:!a("groupBy")},{groupBy:function(c){var u=arguments.length>1?arguments[1]:void 0;return r(this,c,u)}}),o("groupBy")},32539:function(m,h,e){"use strict";var t=e(79989),r=e(87370),a=e(44416),o=e(53931);t({target:"Array",proto:!0,forced:o},{groupToMap:a}),r("groupToMap")},36208:function(m,h,e){"use strict";var t=e(79989),r=e(64976),a=e(87370);t({target:"Array",proto:!0},{group:function(l){var c=arguments.length>1?arguments[1]:void 0;return r(this,l,c)}}),a("group")},5082:function(m,h,e){"use strict";var t=e(79989),r=e(92297),a=Object.isFrozen,o=function(l,c){if(!a||!r(l)||!a(l))return!1;for(var u=0,s=l.length,d;u1?arguments[1]:!1);return a([u&255,u>>8&255],10)}})},89246:function(m,h,e){"use strict";var t=e(79989),r=e(68844),a=r(DataView.prototype.getUint8);t({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(l){return a(this,l)}})},31186:function(m,h,e){"use strict";var t=e(79989),r=e(68844),a=e(50926),o=e(19842),l=e(15477).pack,c=e(76043),u=TypeError,s=r(DataView.prototype.setUint16);t({target:"DataView",proto:!0},{setFloat16:function(v,y){if(a(this)!=="DataView")throw new u("Incorrect receiver");var p=o(v),f=l(c(y),10,2);return s(this,p,f[1]<<8|f[0],arguments.length>2?arguments[2]:!1)}})},9279:function(m,h,e){"use strict";var t=e(79989),r=e(68844),a=e(50926),o=e(19842),l=e(87191),c=TypeError,u=r(DataView.prototype.setUint8);t({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(d,v){if(a(this)!=="DataView")throw new c("Incorrect receiver");var y=o(d);return u(this,y,l(v))}})},26725:function(m,h,e){"use strict";var t=e(79989),r=e(67697),a=e(76058),o=e(10509),l=e(767),c=e(11880),u=e(6045),s=e(62148),d=e(44201),v=e(618),y=e(29199),p=a("SuppressedError"),f=ReferenceError,x=d("dispose"),E=d("toStringTag"),S="DisposableStack",P=v.set,R=v.getterFor(S),w="sync-dispose",A="disposed",C="pending",M=function(Z){var Y=R(Z);if(Y.state===A)throw new f(S+" already disposed");return Y},D=function(){P(l(this,k),{type:S,state:C,stack:[]}),r||(this.disposed=!1)},k=D.prototype;u(k,{dispose:function(){var Y=R(this);if(Y.state!==A){Y.state=A,r||(this.disposed=!0);for(var ee=Y.stack,ue=ee.length,H=!1,pe;ue;){var ve=ee[--ue];ee[ue]=null;try{ve()}catch(ge){H?pe=new p(ge,pe):(H=!0,pe=ge)}}if(Y.stack=null,H)throw pe}},use:function(Y){return y(M(this),Y,w),Y},adopt:function(Y,ee){var ue=M(this);return o(ee),y(ue,void 0,w,function(){ee(Y)}),Y},defer:function(Y){var ee=M(this);o(Y),y(ee,void 0,w,Y)},move:function(){var Y=M(this),ee=new D;return R(ee).stack=Y.stack,Y.stack=[],Y.state=A,r||(this.disposed=!0),ee}}),r&&s(k,"disposed",{configurable:!0,get:function(){return R(this).state===A}}),c(k,x,k.dispose,{name:"dispose"}),c(k,E,S,{nonWritable:!0}),t({global:!0,constructor:!0},{DisposableStack:D})},26125:function(m,h,e){"use strict";var t=e(79989),r=e(33505);t({target:"Function",proto:!0,forced:!0},{demethodize:r})},2820:function(m,h,e){"use strict";var t=e(79989),r=e(68844),a=e(69985),o=e(6738),l=e(36812),c=e(67697),u=Object.getOwnPropertyDescriptor,s=/^\s*class\b/,d=r(s.exec),v=function(y){try{if(!c||!d(s,o(y)))return!1}catch(f){}var p=u(y,"prototype");return!!p&&l(p,"writable")&&!p.writable};t({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(p){return a(p)&&!v(p)}})},62517:function(m,h,e){"use strict";var t=e(79989),r=e(19429);t({target:"Function",stat:!0,forced:!0},{isConstructor:r})},54947:function(m,h,e){"use strict";var t=e(44201),r=e(72560).f,a=t("metadata"),o=Function.prototype;o[a]===void 0&&r(o,a,{value:null})},74993:function(m,h,e){"use strict";var t=e(79989),r=e(33505);t({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:r})},50647:function(m,h,e){"use strict";var t=e(79989),r=e(47082);t({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:r})},67602:function(m,h,e){"use strict";var t=e(79989),r=e(19037),a=e(767),o=e(85027),l=e(69985),c=e(61868),u=e(62148),s=e(76522),d=e(3689),v=e(36812),y=e(44201),p=e(12013).IteratorPrototype,f=e(67697),x=e(53931),E="constructor",S="Iterator",P=y("toStringTag"),R=TypeError,w=r[S],A=x||!l(w)||w.prototype!==p||!d(function(){w({})}),C=function(){if(a(this,p),c(this)===p)throw new R("Abstract class Iterator not directly constructable")},M=function(D,k){f?u(p,D,{configurable:!0,get:function(){return k},set:function(Z){if(o(this),this===p)throw new R("You can't redefine this property");v(this,D)?this[D]=Z:s(this,D,Z)}}):p[D]=k};v(p,P)||M(P,S),(A||!v(p,E)||p[E]===Object)&&M(E,C),C.prototype=p,t({global:!0,constructor:!0,forced:A},{Iterator:C})},82639:function(m,h,e){"use strict";var t=e(22615),r=e(11880),a=e(54849),o=e(36812),l=e(44201),c=e(12013).IteratorPrototype,u=l("dispose");o(c,u)||r(c,u,function(){var s=a(this,"return");s&&t(s,this)})},63986:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(85027),o=e(22302),l=e(4654),c=e(15904),u=e(65419),s=e(53931),d=u(function(){for(var v=this.iterator,y=this.next,p,f;this.remaining;)if(this.remaining--,p=a(r(y,v)),f=this.done=!!p.done,f)return;if(p=a(r(y,v)),f=this.done=!!p.done,!f)return p.value});t({target:"Iterator",proto:!0,real:!0,forced:s},{drop:function(y){a(this);var p=c(l(+y));return new d(o(this),{remaining:p})}})},16054:function(m,h,e){"use strict";var t=e(79989),r=e(18734),a=e(10509),o=e(85027),l=e(22302);t({target:"Iterator",proto:!0,real:!0},{every:function(u){o(this),a(u);var s=l(this),d=0;return!r(s,function(v,y){if(!u(v,d++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},53476:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(10509),o=e(85027),l=e(22302),c=e(65419),u=e(71228),s=e(53931),d=c(function(){for(var v=this.iterator,y=this.predicate,p=this.next,f,x,E;;){if(f=o(r(p,v)),x=this.done=!!f.done,x)return;if(E=f.value,u(v,y,[E,this.counter++],!0))return E}});t({target:"Iterator",proto:!0,real:!0,forced:s},{filter:function(y){return o(this),a(y),new d(l(this),{predicate:y})}})},70928:function(m,h,e){"use strict";var t=e(79989),r=e(18734),a=e(10509),o=e(85027),l=e(22302);t({target:"Iterator",proto:!0,real:!0},{find:function(u){o(this),a(u);var s=l(this),d=0;return r(s,function(v,y){if(u(v,d++))return y(v)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},49411:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(10509),o=e(85027),l=e(22302),c=e(36752),u=e(65419),s=e(72125),d=e(53931),v=u(function(){for(var y=this.iterator,p=this.mapper,f,x;;){if(x=this.inner)try{if(f=o(r(x.next,x.iterator)),!f.done)return f.value;this.inner=null}catch(E){s(y,"throw",E)}if(f=o(r(this.next,y)),this.done=!!f.done)return;try{this.inner=c(p(f.value,this.counter++),!1)}catch(E){s(y,"throw",E)}}});t({target:"Iterator",proto:!0,real:!0,forced:d},{flatMap:function(p){return o(this),a(p),new v(l(this),{mapper:p,inner:null})}})},30005:function(m,h,e){"use strict";var t=e(79989),r=e(18734),a=e(10509),o=e(85027),l=e(22302);t({target:"Iterator",proto:!0,real:!0},{forEach:function(u){o(this),a(u);var s=l(this),d=0;r(s,function(v){u(v,d++)},{IS_RECORD:!0})}})},73494:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(90690),o=e(23622),l=e(12013).IteratorPrototype,c=e(65419),u=e(36752),s=e(53931),d=c(function(){return r(this.next,this.iterator)},!0);t({target:"Iterator",stat:!0,forced:s},{from:function(y){var p=u(typeof y=="string"?a(y):y,!0);return o(l,p.iterator)?p.iterator:new d(p)}})},94564:function(m,h,e){"use strict";var t=e(79989),r=e(47082);t({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:r})},41792:function(m,h,e){"use strict";var t=e(79989),r=e(88983),a=e(53931);t({target:"Iterator",proto:!0,real:!0,forced:a},{map:r})},5985:function(m,h,e){"use strict";var t=e(79989),r=e(98554),a=TypeError;t({target:"Iterator",stat:!0,forced:!0},{range:function(l,c,u){if(typeof l=="number")return new r(l,c,u,"number",0,1);if(typeof l=="bigint")return new r(l,c,u,"bigint",BigInt(0),BigInt(1));throw new a("Incorrect Iterator.range arguments")}})},31107:function(m,h,e){"use strict";var t=e(79989),r=e(18734),a=e(10509),o=e(85027),l=e(22302),c=TypeError;t({target:"Iterator",proto:!0,real:!0},{reduce:function(s){o(this),a(s);var d=l(this),v=arguments.length<2,y=v?void 0:arguments[1],p=0;if(r(d,function(f){v?(v=!1,y=f):y=s(y,f,p),p++},{IS_RECORD:!0}),v)throw new c("Reduce of empty iterator with no initial value");return y}})},28244:function(m,h,e){"use strict";var t=e(79989),r=e(18734),a=e(10509),o=e(85027),l=e(22302);t({target:"Iterator",proto:!0,real:!0},{some:function(u){o(this),a(u);var s=l(this),d=0;return r(s,function(v,y){if(u(v,d++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3645:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(85027),o=e(22302),l=e(4654),c=e(15904),u=e(65419),s=e(72125),d=e(53931),v=u(function(){var y=this.iterator;if(!this.remaining--)return this.done=!0,s(y,"normal",void 0);var p=a(r(this.next,y)),f=this.done=!!p.done;if(!f)return p.value});t({target:"Iterator",proto:!0,real:!0,forced:d},{take:function(p){a(this);var f=c(l(+p));return new v(o(this),{remaining:f})}})},58429:function(m,h,e){"use strict";var t=e(79989),r=e(85027),a=e(18734),o=e(22302),l=[].push;t({target:"Iterator",proto:!0,real:!0},{toArray:function(){var u=[];return a(o(r(this)),l,{that:u,IS_RECORD:!0}),u}})},39569:function(m,h,e){"use strict";var t=e(79989),r=e(85027),a=e(29019),o=e(40219),l=e(22302),c=e(53931);t({target:"Iterator",proto:!0,real:!0,forced:c},{toAsync:function(){return new o(l(new a(l(r(this)))))}})},74320:function(m,h,e){"use strict";var t=e(79989),r=e(22818),a=e(55670);t({target:"JSON",stat:!0,forced:!r},{isRawJSON:a})},20691:function(m,h,e){"use strict";var t=e(79989),r=e(67697),a=e(19037),o=e(76058),l=e(68844),c=e(22615),u=e(69985),s=e(48999),d=e(92297),v=e(36812),y=e(34327),p=e(6310),f=e(76522),x=e(3689),E=e(46675),S=e(50146),P=a.JSON,R=a.Number,w=a.SyntaxError,A=P&&P.parse,C=o("Object","keys"),M=Object.getOwnPropertyDescriptor,D=l("".charAt),k=l("".slice),Z=l(/./.exec),Y=l([].push),ee=/^\d$/,ue=/^[1-9]$/,H=/^(?:-|\d)$/,pe=/^[\t\n\r ]$/,ve=0,ge=1,X=function(V,q){V=y(V);var ie=new $(V,0,""),De=ie.parse(),Ue=De.value,He=ie.skip(pe,De.end);if(He1?arguments[1]:void 0);return o(u,function(d,v){if(!s(d,v,u))return!1},!0)!==!1}})},41099:function(m,h,e){"use strict";var t=e(79989),r=e(54071),a=e(9945),o=e(83914),l=e(10613),c=o.Map,u=o.set;t({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(d){var v=a(this),y=r(d,arguments.length>1?arguments[1]:void 0),p=new c;return l(v,function(f,x){y(f,x,v)&&u(p,x,f)}),p}})},20876:function(m,h,e){"use strict";var t=e(79989),r=e(54071),a=e(9945),o=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(c){var u=a(this),s=r(c,arguments.length>1?arguments[1]:void 0),d=o(u,function(v,y){if(s(v,y,u))return{key:y}},!0);return d&&d.key}})},26320:function(m,h,e){"use strict";var t=e(79989),r=e(54071),a=e(9945),o=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{find:function(c){var u=a(this),s=r(c,arguments.length>1?arguments[1]:void 0),d=o(u,function(v,y){if(s(v,y,u))return{value:v}},!0);return d&&d.value}})},6052:function(m,h,e){"use strict";var t=e(79989),r=e(28737);t({target:"Map",stat:!0,forced:!0},{from:r})},76791:function(m,h,e){"use strict";var t=e(79989),r=e(68600),a=e(9945),o=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(c){return o(a(this),function(u){if(r(u,c))return!0},!0)===!0}})},75341:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(18734),o=e(69985),l=e(10509),c=e(83914).Map;t({target:"Map",stat:!0,forced:!0},{keyBy:function(s,d){var v=o(this)?this:c,y=new v;l(d);var p=l(y.set);return a(s,function(f){r(p,y,d(f),f)}),y}})},40019:function(m,h,e){"use strict";var t=e(79989),r=e(9945),a=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(l){var c=a(r(this),function(u,s){if(u===l)return{key:s}},!0);return c&&c.key}})},92343:function(m,h,e){"use strict";var t=e(79989),r=e(54071),a=e(9945),o=e(83914),l=e(10613),c=o.Map,u=o.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(d){var v=a(this),y=r(d,arguments.length>1?arguments[1]:void 0),p=new c;return l(v,function(f,x){u(p,y(f,x,v),f)}),p}})},51096:function(m,h,e){"use strict";var t=e(79989),r=e(54071),a=e(9945),o=e(83914),l=e(10613),c=o.Map,u=o.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(d){var v=a(this),y=r(d,arguments.length>1?arguments[1]:void 0),p=new c;return l(v,function(f,x){u(p,x,y(f,x,v))}),p}})},4314:function(m,h,e){"use strict";var t=e(79989),r=e(9945),a=e(18734),o=e(83914).set;t({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(c){for(var u=r(this),s=arguments.length,d=0;d1?arguments[1]:void 0);return o(u,function(d,v){if(s(d,v,u))return!0},!0)===!0}})},24453:function(m,h,e){"use strict";var t=e(79989),r=e(41432);t({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:r})},64078:function(m,h,e){"use strict";var t=e(79989),r=e(10509),a=e(9945),o=e(83914),l=TypeError,c=o.get,u=o.has,s=o.set;t({target:"Map",proto:!0,real:!0,forced:!0},{update:function(v,y){var p=a(this),f=arguments.length;r(y);var x=u(p,v);if(!x&&f<3)throw new l("Updating absent value");var E=x?c(p,v):r(f>2?arguments[2]:void 0)(v,p);return s(p,v,y(E,v,p)),p}})},66190:function(m,h,e){"use strict";var t=e(79989),r=e(41432);t({target:"Map",proto:!0,real:!0,forced:!0},{upsert:r})},25684:function(m,h,e){"use strict";var t=e(79989),r=Math.min,a=Math.max;t({target:"Math",stat:!0,forced:!0},{clamp:function(l,c,u){return r(u,a(c,l))}})},31789:function(m,h,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},8677:function(m,h,e){"use strict";var t=e(79989),r=180/Math.PI;t({target:"Math",stat:!0,forced:!0},{degrees:function(o){return o*r}})},59151:function(m,h,e){"use strict";var t=e(79989),r=e(76043);t({target:"Math",stat:!0},{f16round:r})},346:function(m,h,e){"use strict";var t=e(79989),r=e(84463),a=e(37788);t({target:"Math",stat:!0,forced:!0},{fscale:function(l,c,u,s,d){return a(r(l,c,u,s,d))}})},91069:function(m,h,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{iaddh:function(a,o,l,c){var u=a>>>0,s=o>>>0,d=l>>>0;return s+(c>>>0)+((u&d|(u|d)&~(u+d>>>0))>>>31)|0}})},18886:function(m,h,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{imulh:function(a,o){var l=65535,c=+a,u=+o,s=c&l,d=u&l,v=c>>16,y=u>>16,p=(v*d>>>0)+(s*d>>>16);return v*y+(p>>16)+((s*y>>>0)+(p&l)>>16)}})},88065:function(m,h,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{isubh:function(a,o,l,c){var u=a>>>0,s=o>>>0,d=l>>>0;return s-(c>>>0)-((~u&d|~(u^d)&u-d>>>0)>>>31)|0}})},68172:function(m,h,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},60445:function(m,h,e){"use strict";var t=e(79989),r=Math.PI/180;t({target:"Math",stat:!0,forced:!0},{radians:function(o){return o*r}})},99457:function(m,h,e){"use strict";var t=e(79989),r=e(84463);t({target:"Math",stat:!0,forced:!0},{scale:r})},613:function(m,h,e){"use strict";var t=e(79989),r=e(85027),a=e(70046),o=e(30974),l=e(27807),c=e(618),u="Seeded Random",s=u+" Generator",d='Math.seededPRNG() argument should have a "seed" field with a finite value.',v=c.set,y=c.getterFor(s),p=TypeError,f=o(function(E){v(this,{type:s,seed:E%2147483647})},u,function(){var E=y(this),S=E.seed=(E.seed*1103515245+12345)%2147483647;return l((S&1073741823)/1073741823,!1)});t({target:"Math",stat:!0,forced:!0},{seededPRNG:function(E){var S=r(E).seed;if(!a(S))throw new p(d);return new f(S)}})},835:function(m,h,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{signbit:function(a){var o=+a;return o===o&&o===0?1/o===-1/0:o<0}})},926:function(m,h,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{umulh:function(a,o){var l=65535,c=+a,u=+o,s=c&l,d=u&l,v=c>>>16,y=u>>>16,p=(v*d>>>0)+(s*d>>>16);return v*y+(p>>>16)+((s*y>>>0)+(p&l)>>>16)}})},82899:function(m,h,e){"use strict";var t=e(79989),r=e(68844),a=e(68700),o="Invalid number representation",l="Invalid radix",c=RangeError,u=SyntaxError,s=TypeError,d=parseInt,v=Math.pow,y=/^[\d.a-z]+$/,p=r("".charAt),f=r(y.exec),x=r(1 .toString),E=r("".slice),S=r("".split);t({target:"Number",stat:!0,forced:!0},{fromString:function(R,w){var A=1;if(typeof R!="string")throw new s(o);if(!R.length)throw new u(o);if(p(R,0)==="-"&&(A=-1,R=E(R,1),!R.length))throw new u(o);var C=w===void 0?10:a(w);if(C<2||C>36)throw new c(l);if(!f(y,R))throw new u(o);var M=S(R,"."),D=d(M[0],C);if(M.length>1&&(D+=d(M[1],C)/v(C,M[1].length)),C===10&&x(D,C)!==R)throw new u(o);return A*D}})},29977:function(m,h,e){"use strict";var t=e(79989),r=e(98554);t({target:"Number",stat:!0,forced:!0},{range:function(o,l,c){return new r(o,l,c,"number",0,1)}})},31927:function(m,h,e){"use strict";var t=e(79989),r=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateEntries:function(o){return new r(o,"entries")}})},77131:function(m,h,e){"use strict";var t=e(79989),r=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateKeys:function(o){return new r(o,"keys")}})},55174:function(m,h,e){"use strict";var t=e(79989),r=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateValues:function(o){return new r(o,"values")}})},63503:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(67697),o=e(14241),l=e(10509),c=e(85027),u=e(767),s=e(69985),d=e(981),v=e(48999),y=e(54849),p=e(11880),f=e(6045),x=e(62148),E=e(20920),S=e(44201),P=e(618),R=S("observable"),w="Observable",A="Subscription",C="SubscriptionObserver",M=P.getterFor,D=P.set,k=M(w),Z=M(A),Y=M(C),ee=function(ge){this.observer=c(ge),this.cleanup=void 0,this.subscriptionObserver=void 0};ee.prototype={type:A,clean:function(){var ge=this.cleanup;if(ge){this.cleanup=void 0;try{ge()}catch(X){E(X)}}},close:function(){if(!a){var ge=this.facade,X=this.subscriptionObserver;ge.closed=!0,X&&(X.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var ue=function(ge,X){var J=D(this,new ee(ge)),U;a||(this.closed=!1);try{(U=y(ge,"start"))&&r(U,ge,this)}catch(ne){E(ne)}if(!J.isClosed()){var G=J.subscriptionObserver=new H(J);try{var $=X(G),F=$;d($)||(J.cleanup=s($.unsubscribe)?function(){F.unsubscribe()}:l($))}catch(ne){G.error(ne);return}J.isClosed()&&J.clean()}};ue.prototype=f({},{unsubscribe:function(){var X=Z(this);X.isClosed()||(X.close(),X.clean())}}),a&&x(ue.prototype,"closed",{configurable:!0,get:function(){return Z(this).isClosed()}});var H=function(ge){D(this,{type:C,subscriptionState:ge}),a||(this.closed=!1)};H.prototype=f({},{next:function(X){var J=Y(this).subscriptionState;if(!J.isClosed()){var U=J.observer;try{var G=y(U,"next");G&&r(G,U,X)}catch($){E($)}}},error:function(X){var J=Y(this).subscriptionState;if(!J.isClosed()){var U=J.observer;J.close();try{var G=y(U,"error");G?r(G,U,X):E(X)}catch($){E($)}J.clean()}},complete:function(){var X=Y(this).subscriptionState;if(!X.isClosed()){var J=X.observer;X.close();try{var U=y(J,"complete");U&&r(U,J)}catch(G){E(G)}X.clean()}}}),a&&x(H.prototype,"closed",{configurable:!0,get:function(){return Y(this).subscriptionState.isClosed()}});var pe=function(X){u(this,ve),D(this,{type:w,subscriber:l(X)})},ve=pe.prototype;f(ve,{subscribe:function(X){var J=arguments.length;return new ue(s(X)?{next:X,error:J>1?arguments[1]:void 0,complete:J>2?arguments[2]:void 0}:v(X)?X:{},k(this).subscriber)}}),p(ve,R,function(){return this}),t({global:!0,constructor:!0,forced:!0},{Observable:pe}),o(w)},9818:function(m,h,e){"use strict";var t=e(79989),r=e(76058),a=e(22615),o=e(85027),l=e(19429),c=e(5185),u=e(54849),s=e(18734),d=e(44201),v=d("observable");t({target:"Observable",stat:!0,forced:!0},{from:function(p){var f=l(this)?this:r("Observable"),x=u(o(p),v);if(x){var E=o(a(x,p));return E.constructor===f?E:new f(function(P){return E.subscribe(P)})}var S=c(p);return new f(function(P){s(S,function(R,w){if(P.next(R),P.closed)return w()},{IS_ITERATOR:!0,INTERRUPTED:!0}),P.complete()})}})},76314:function(m,h,e){"use strict";e(63503),e(9818),e(38771)},38771:function(m,h,e){"use strict";var t=e(79989),r=e(76058),a=e(19429),o=r("Array");t({target:"Observable",stat:!0,forced:!0},{of:function(){for(var c=a(this)?this:r("Observable"),u=arguments.length,s=o(u),d=0;d?@[\\\\\\]^`{|}~"+o+"]","g");t({target:"RegExp",stat:!0,forced:!0},{escape:function(d){var v=a(d),y=l(v,0);return(y>47&&y<58?"\\x3":"")+c(v,u,"\\$&")}})},57282:function(m,h,e){"use strict";var t=e(79989),r=e(10029),a=e(61034).add;t({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var l=r(this),c=0,u=arguments.length;c1?arguments[1]:void 0);return o(u,function(d){if(!s(d,d,u))return!1},!0)!==!1}})},96986:function(m,h,e){"use strict";var t=e(79989),r=e(54071),a=e(10029),o=e(61034),l=e(48774),c=o.Set,u=o.add;t({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(d){var v=a(this),y=r(d,arguments.length>1?arguments[1]:void 0),p=new c;return l(v,function(f){y(f,f,v)&&u(p,f)}),p}})},95681:function(m,h,e){"use strict";var t=e(79989),r=e(54071),a=e(10029),o=e(48774);t({target:"Set",proto:!0,real:!0,forced:!0},{find:function(c){var u=a(this),s=r(c,arguments.length>1?arguments[1]:void 0),d=o(u,function(v){if(s(v,v,u))return{value:v}},!0);return d&&d.value}})},13781:function(m,h,e){"use strict";var t=e(79989),r=e(28737);t({target:"Set",stat:!0,forced:!0},{from:r})},98873:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(2939),o=e(72948);t({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(c){return r(o,this,a(c))}})},33442:function(m,h,e){"use strict";var t=e(79989),r=e(3689),a=e(72948),o=e(53234),l=!o("intersection")||r(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});t({target:"Set",proto:!0,real:!0,forced:l},{intersection:a})},50308:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(2939),o=e(97795);t({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(c){return r(o,this,a(c))}})},61964:function(m,h,e){"use strict";var t=e(79989),r=e(97795),a=e(53234);t({target:"Set",proto:!0,real:!0,forced:!a("isDisjointFrom")},{isDisjointFrom:r})},18955:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(2939),o=e(26951);t({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(c){return r(o,this,a(c))}})},69878:function(m,h,e){"use strict";var t=e(79989),r=e(26951),a=e(53234);t({target:"Set",proto:!0,real:!0,forced:!a("isSubsetOf")},{isSubsetOf:r})},65115:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(2939),o=e(3894);t({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(c){return r(o,this,a(c))}})},52915:function(m,h,e){"use strict";var t=e(79989),r=e(3894),a=e(53234);t({target:"Set",proto:!0,real:!0,forced:!a("isSupersetOf")},{isSupersetOf:r})},19490:function(m,h,e){"use strict";var t=e(79989),r=e(68844),a=e(10029),o=e(48774),l=e(34327),c=r([].join),u=r([].push);t({target:"Set",proto:!0,real:!0,forced:!0},{join:function(d){var v=a(this),y=d===void 0?",":l(d),p=[];return o(v,function(f){u(p,f)}),c(p,y)}})},95752:function(m,h,e){"use strict";var t=e(79989),r=e(54071),a=e(10029),o=e(61034),l=e(48774),c=o.Set,u=o.add;t({target:"Set",proto:!0,real:!0,forced:!0},{map:function(d){var v=a(this),y=r(d,arguments.length>1?arguments[1]:void 0),p=new c;return l(v,function(f){u(p,y(f,f,v))}),p}})},32789:function(m,h,e){"use strict";var t=e(79989),r=e(1114);t({target:"Set",stat:!0,forced:!0},{of:r})},27913:function(m,h,e){"use strict";var t=e(79989),r=e(10509),a=e(10029),o=e(48774),l=TypeError;t({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(u){var s=a(this),d=arguments.length<2,v=d?void 0:arguments[1];if(r(u),o(s,function(y){d?(d=!1,v=y):v=u(v,y,y,s)}),d)throw new l("Reduce of empty set with no initial value");return v}})},6831:function(m,h,e){"use strict";var t=e(79989),r=e(54071),a=e(10029),o=e(48774);t({target:"Set",proto:!0,real:!0,forced:!0},{some:function(c){var u=a(this),s=r(c,arguments.length>1?arguments[1]:void 0);return o(u,function(d){if(s(d,d,u))return!0},!0)===!0}})},90243:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(2939),o=e(62289);t({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(c){return r(o,this,a(c))}})},97895:function(m,h,e){"use strict";var t=e(79989),r=e(62289),a=e(53234);t({target:"Set",proto:!0,real:!0,forced:!a("symmetricDifference")},{symmetricDifference:r})},98030:function(m,h,e){"use strict";var t=e(79989),r=e(22615),a=e(2939),o=e(75674);t({target:"Set",proto:!0,real:!0,forced:!0},{union:function(c){return r(o,this,a(c))}})},22275:function(m,h,e){"use strict";var t=e(79989),r=e(75674),a=e(53234);t({target:"Set",proto:!0,real:!0,forced:!a("union")},{union:r})},86220:function(m,h,e){"use strict";var t=e(79989),r=e(10730).charAt,a=e(74684),o=e(68700),l=e(34327);t({target:"String",proto:!0,forced:!0},{at:function(u){var s=l(a(this)),d=s.length,v=o(u),y=v>=0?v:d+v;return y<0||y>=d?void 0:r(s,y)}})},95853:function(m,h,e){"use strict";var t=e(79989),r=e(30974),a=e(27807),o=e(74684),l=e(34327),c=e(618),u=e(10730),s=u.codeAt,d=u.charAt,v="String Iterator",y=c.set,p=c.getterFor(v),f=r(function(E){y(this,{type:v,string:E,index:0})},"String",function(){var E=p(this),S=E.string,P=E.index,R;return P>=S.length?a(void 0,!0):(R=d(S,P),E.index+=R.length,a({codePoint:s(R,0),position:P},!1))});t({target:"String",proto:!0,forced:!0},{codePoints:function(){return new f(l(o(this)))}})},21917:function(m,h,e){"use strict";var t=e(79989),r=e(8195);t({target:"String",stat:!0,forced:!0},{cooked:r})},66084:function(m,h,e){"use strict";var t=e(71594),r=e(79989),a=e(98702),o=e(68844),l=e(61735),c=e(85027),u=e(90690),s=e(69985),d=e(6310),v=e(72560).f,y=e(9015),p=e(16803),f=e(8195),x=e(98985),E=e(86350),S=new p.WeakMap,P=p.get,R=p.has,w=p.set,A=Array,C=TypeError,M=Object.freeze||Object,D=Object.isFrozen,k=Math.min,Z=o("".charAt),Y=o("".slice),ee=o("".split),ue=o(/./.exec),H=/([\n\u2028\u2029]|\r\n?)/g,pe=RegExp("^["+E+"]*"),ve=RegExp("[^"+E+"]"),ge="Invalid tag",X="Invalid opening line",J="Invalid closing line",U=function(q){var ie=q.raw;if(t&&!D(ie))throw new C("Raw template should be frozen");if(R(S,ie))return P(S,ie);var De=G(ie),Ue=F(De);return v(Ue,"raw",{value:M(De)}),M(Ue),w(S,ie,Ue),Ue},G=function(q){var ie=u(q),De=d(ie),Ue=A(De),He=A(De),Ge=0,Fe,_e,$e,Ce;if(!De)throw new C(ge);for(;Ge0)throw new C(X);Fe[1]=""}if(de){if(Fe.length===1||ue(ve,Fe[Fe.length-1]))throw new C(J);Fe[Fe.length-2]="",Fe[Fe.length-1]=""}for(var je=2;je1?arguments[1]:void 0);return a(this,s)},!0)},59359:function(m,h,e){"use strict";var t=e(54872),r=e(2960).filterReject,a=e(20716),o=t.aTypedArray,l=t.exportTypedArrayMethod;l("filterReject",function(u){var s=r(o(this),u,arguments.length>1?arguments[1]:void 0);return a(this,s)},!0)},76677:function(m,h,e){"use strict";var t=e(76058),r=e(52655),a=e(2231),o=e(54872),l=e(59976),c=o.aTypedArrayConstructor,u=o.exportTypedArrayStaticMethod;u("fromAsync",function(d){var v=this,y=arguments.length,p=y>1?arguments[1]:void 0,f=y>2?arguments[2]:void 0;return new(t("Promise"))(function(x){r(v),x(a(d,p,f))}).then(function(x){return l(c(v),x)})},!0)},30548:function(m,h,e){"use strict";var t=e(54872),r=e(64976),a=e(47338),o=t.aTypedArray,l=t.exportTypedArrayMethod;l("groupBy",function(u){var s=arguments.length>1?arguments[1]:void 0;return r(o(this),u,s,a)},!0)},915:function(m,h,e){"use strict";var t=e(54872),r=e(6310),a=e(9401),o=e(27578),l=e(71530),c=e(68700),u=e(3689),s=t.aTypedArray,d=t.getTypedArrayConstructor,v=t.exportTypedArrayMethod,y=Math.max,p=Math.min,f=!u(function(){var x=new Int8Array([1]),E=x.toSpliced(1,0,{valueOf:function(){return x[0]=2,3}});return E[0]!==2||E[1]!==3});v("toSpliced",function(E,S){var P=s(this),R=d(P),w=r(P),A=o(E,w),C=arguments.length,M=0,D,k,Z,Y,ee,ue,H;if(C===0)D=k=0;else if(C===1)D=0,k=w-A;else if(k=p(y(c(S),0),w-A),D=C-2,D){Y=new R(D),Z=a(Y);for(var pe=2;pe1?o(arguments[1]):void 0,D=d(M)==="base64"?v:y,k=M?!!M.strict:!1,Z=k?C:E(C,R,"");if(Z.length%4===0)S(Z,-2)==="=="?Z=S(Z,0,-2):S(Z,-1)==="="&&(Z=S(Z,0,-1));else if(k)throw new f("Input is not correctly padded");var Y=Z.length%4;switch(Y){case 1:throw new f("Bad input length");case 2:Z+="AA";break;case 3:Z+="A"}for(var ee=[],ue=0,H=Z.length,pe=function(X){var J=x(Z,ue+X);if(!c(D,J))throw new f('Bad char in input: "'+J+'"');return D[J]<<18-6*X};ue>16&255,ve>>8&255,ve&255)}var ge=ee.length;if(Y===2){if(k&&ee[ge-2]!==0)throw new f(w);ge-=2}else if(Y===3){if(k&&ee[ge-1]!==0)throw new f(w);ge--}return u(p,ee,ge)}})},91117:function(m,h,e){"use strict";var t=e(79989),r=e(19037),a=e(68844),o=e(51082),l=r.Uint8Array,c=r.SyntaxError,u=r.parseInt,s=/[^\da-f]/i,d=a(s.exec),v=a("".slice);l&&t({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(p){o(p);var f=p.length;if(f%2)throw new c("String should have an even number of characters");if(d(s,p))throw new c("String should only contain hex characters");for(var x=new l(f/2),E=0;E>6*C&63)};P+21&&!v(arguments[1])?x(arguments[1]):void 0,me=Ve?Ve.transfer:void 0,Se,it;me!==void 0&&(Se=new U,it=Ae(me,Se));var ft=Te(we,Se);return it&&We(it),ft}})},98858:function(m,h,e){"use strict";var t=e(11880),r=e(68844),a=e(34327),o=e(21500),l=URLSearchParams,c=l.prototype,u=r(c.append),s=r(c.delete),d=r(c.forEach),v=r([].push),y=new l("a=1&a=2&b=3");y.delete("a",1),y.delete("b",void 0),y+""!="a=2"&&t(c,"delete",function(p){var f=arguments.length,x=f<2?void 0:arguments[1];if(f&&x===void 0)return s(this,p);var E=[];d(this,function(D,k){v(E,{key:k,value:D})}),o(f,1);for(var S=a(p),P=a(x),R=0,w=0,A=!1,C=E.length,M;Rr.length)&&(a=r.length);for(var o=0,l=Array(a);o=0;--ne){var V=this.tryEntries[ne],q=V.completion;if(V.tryLoc==="root")return F("end");if(V.tryLoc<=this.prev){var ie=c.call(V,"catchLoc"),De=c.call(V,"finallyLoc");if(ie&&De){if(this.prev=0;--F){var ne=this.tryEntries[F];if(ne.tryLoc<=this.prev&&c.call(ne,"finallyLoc")&&this.prev=0;--$){var F=this.tryEntries[$];if(F.finallyLoc===G)return this.complete(F.completion,F.afterLoc),ge(F),w}},catch:function(G){for(var $=this.tryEntries.length-1;$>=0;--$){var F=this.tryEntries[$];if(F.tryLoc===G){var ne=F.completion;if(ne.type==="throw"){var V=ne.arg;ge(F)}return V}}throw Error("illegal catch attempt")},delegateYield:function(G,$,F){return this.delegate={iterator:J(G),resultName:$,nextLoc:F},this.method==="next"&&(this.arg=a),w}},o}},89611:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(r,a){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o},t(r,a)}},97685:function(m,h,e){"use strict";e.d(h,{Z:function(){return l}});var t=e(83878);function r(c,u){var s=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(s!=null){var d,v,y,p,f=[],x=!0,E=!1;try{if(y=(s=s.call(c)).next,u===0){if(Object(s)!==s)return;x=!1}else for(;!(x=(d=y.call(s)).done)&&(f.push(d.value),f.length!==u);x=!0);}catch(S){E=!0,v=S}finally{try{if(!x&&s.return!=null&&(p=s.return(),Object(p)!==p))return}finally{if(E)throw v}}return f}}var a=e(40181),o=e(25267);function l(c,u){return(0,t.Z)(c)||r(c,u)||(0,a.Z)(c,u)||(0,o.Z)()}},84506:function(m,h,e){"use strict";e.d(h,{Z:function(){return l}});var t=e(83878),r=e(59199),a=e(40181),o=e(25267);function l(c){return(0,t.Z)(c)||(0,r.Z)(c)||(0,a.Z)(c)||(0,o.Z)()}},74902:function(m,h,e){"use strict";e.d(h,{Z:function(){return c}});var t=e(30907);function r(u){if(Array.isArray(u))return(0,t.Z)(u)}var a=e(59199),o=e(40181);function l(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(u){return r(u)||(0,a.Z)(u)||(0,o.Z)(u)||l()}},83997:function(m,h,e){"use strict";e.d(h,{Z:function(){return a}});var t=e(71002);function r(o,l){if((0,t.Z)(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,l||"default");if((0,t.Z)(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(o)}function a(o){var l=r(o,"string");return(0,t.Z)(l)=="symbol"?l:l+""}},71002:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(r){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(r)}},40181:function(m,h,e){"use strict";e.d(h,{Z:function(){return r}});var t=e(30907);function r(a,o){if(a){if(typeof a=="string")return(0,t.Z)(a,o);var l={}.toString.call(a).slice(8,-1);return l==="Object"&&a.constructor&&(l=a.constructor.name),l==="Map"||l==="Set"?Array.from(a):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?(0,t.Z)(a,o):void 0}}},58096:function(m,h,e){"use strict";e.d(h,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(r){for(var a=1;a=0)&&(l[u]=a[u]);return l}function r(a,o){if(a==null)return{};var l=t(a,o),c,u;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(l[c]=a[c])}return l}}},Su={};function z(m){var h=Su[m];if(h!==void 0)return h.exports;var e=Su[m]={id:m,loaded:!1,exports:{}};return yu[m].call(e.exports,e,e.exports,z),e.loaded=!0,e.exports}z.m=yu,function(){z.n=function(m){var h=m&&m.__esModule?function(){return m.default}:function(){return m};return z.d(h,{a:h}),h}}(),function(){var m=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h;z.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);z.r(r);var a={};h=h||[null,m({}),m([]),m(m)];for(var o=t&2&&e;typeof o=="object"&&!~h.indexOf(o);o=m(o))Object.getOwnPropertyNames(o).forEach(function(l){a[l]=function(){return e[l]}});return a.default=function(){return e},z.d(r,a),r}}(),function(){z.d=function(m,h){for(var e in h)z.o(h,e)&&!z.o(m,e)&&Object.defineProperty(m,e,{enumerable:!0,get:h[e]})}}(),function(){z.f={},z.e=function(m){return Promise.all(Object.keys(z.f).reduce(function(h,e){return z.f[e](m,h),h},[]))}}(),function(){z.u=function(m){return""+({236:"p__docker__network",337:"p__system__notice",550:"p__app__backup",992:"p__system__upgrade",1050:"p__system__basic",1102:"p__compose__create",1180:"p__system__env",1610:"p__app__recycle",1717:"layouts__index",1764:"p__image__index",2548:"p__system__home",3146:"p__app__detail__domain",3357:"p__image__detail",3805:"p__console__index",3985:"p__app__create__image",4037:"p__user__login__index",4202:"p__image__recycle",4214:"p__image__list",4316:"p__app__list",5071:"p__system__index",5738:"p__app__detail__file",5897:"p__docker__event",5947:"p__app__detail__index",6301:"t__plugin-layout__Layout",6889:"p__compose__index",7523:"p__image__create",7667:"p__compose__deploy",7745:"p__app__detail__stat",8022:"p__compose__list",8115:"p__app__index",8615:"p__app__detail__log",8878:"p__app__detail__edit",9002:"p__docker__volume",9013:"p__image__registry",9290:"p__docker__index"}[m]||m)+"."+{78:"084ad6d4",236:"a518e9e5",337:"c1586ed5",550:"367a9a30",641:"8fe8658e",682:"d7f315be",684:"de3afe04",783:"dd6c26f4",787:"a827d700",809:"36b978da",992:"c2001cd4",1043:"38c4e2d9",1050:"e50309ca",1078:"5c1833ba",1102:"7362ecb6",1180:"7d1fce12",1610:"b16eff13",1693:"a4bb72c8",1717:"a15fda3a",1764:"561eec1a",2119:"1196548a",2136:"0a6722b9",2320:"8a88b52d",2391:"bb57871c",2398:"fd20ce02",2406:"eed6584f",2538:"63f50eb0",2548:"111b686e",3146:"70d9f402",3203:"36b9d233",3355:"619fb336",3357:"5620f0de",3490:"f29cd502",3718:"c35f3a9b",3805:"b161cbea",3985:"4dab1cad",4037:"fbe9fc3b",4175:"6ca2ba00",4202:"2b9e5ef8",4214:"55db7158",4262:"1600f41e",4316:"92436444",4323:"e1b6579d",4626:"0e2af840",4774:"4fb587d3",4997:"8576b40a",5071:"730bfae3",5738:"7ad19a6a",5897:"ab503434",5947:"c9c9638b",6121:"48085b3f",6301:"bb5f846e",6390:"f7f181ce",6792:"bee8b2dd",6889:"dad6c3b0",7050:"52ca9bcd",7100:"afece656",7109:"d71950f5",7297:"72864936",7438:"f76687da",7523:"d244852a",7667:"cf89dacd",7745:"2b007549",7753:"cea7b3ec",7787:"a2857fc1",7844:"202033c3",7854:"94a4a290",8022:"5d59c280",8115:"5695a268",8164:"fd4ababd",8171:"f0ace9c2",8345:"e1d48c7c",8615:"ca8fec9e",8778:"315af393",8820:"c786cac7",8878:"11a6ee89",8980:"982d88fc",9002:"8f03714c",9013:"5a78e009",9181:"95c48c95",9290:"43321e07",9296:"fbb1e23d",9607:"7968ff15",9831:"f360be3b",9994:"bdf72f43"}[m]+".async.js"}}(),function(){z.miniCssF=function(m){return""+{3805:"p__console__index",4202:"p__image__recycle",6301:"t__plugin-layout__Layout",7523:"p__image__create",7667:"p__compose__deploy",8615:"p__app__detail__log"}[m]+"."+{3805:"cc528b81",4202:"cc528b81",6301:"5012e1ab",7523:"cc528b81",7667:"cc528b81",8615:"cc528b81"}[m]+".chunk.css"}}(),function(){z.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(m){if(typeof window=="object")return window}}()}(),function(){z.o=function(m,h){return Object.prototype.hasOwnProperty.call(m,h)}}(),function(){var m={};z.l=function(h,e,t,r){if(m[h]){m[h].push(e);return}var a,o;if(t!==void 0)for(var l=document.getElementsByTagName("script"),c=0;c=0)&&(l[u]=a[u]);return l}function r(a,o){if(a==null)return{};var l=t(a,o),c,u;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(l[c]=a[c])}return l}}},Su={};function z(m){var h=Su[m];if(h!==void 0)return h.exports;var e=Su[m]={id:m,loaded:!1,exports:{}};return yu[m].call(e.exports,e,e.exports,z),e.loaded=!0,e.exports}z.m=yu,function(){z.n=function(m){var h=m&&m.__esModule?function(){return m.default}:function(){return m};return z.d(h,{a:h}),h}}(),function(){var m=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h;z.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);z.r(r);var a={};h=h||[null,m({}),m([]),m(m)];for(var o=t&2&&e;typeof o=="object"&&!~h.indexOf(o);o=m(o))Object.getOwnPropertyNames(o).forEach(function(l){a[l]=function(){return e[l]}});return a.default=function(){return e},z.d(r,a),r}}(),function(){z.d=function(m,h){for(var e in h)z.o(h,e)&&!z.o(m,e)&&Object.defineProperty(m,e,{enumerable:!0,get:h[e]})}}(),function(){z.f={},z.e=function(m){return Promise.all(Object.keys(z.f).reduce(function(h,e){return z.f[e](m,h),h},[]))}}(),function(){z.u=function(m){return""+({236:"p__docker__network",337:"p__system__notice",550:"p__app__backup",992:"p__system__upgrade",1050:"p__system__basic",1102:"p__compose__create",1180:"p__system__env",1610:"p__app__recycle",1717:"layouts__index",1764:"p__image__index",2548:"p__system__home",3146:"p__app__detail__domain",3357:"p__image__detail",3805:"p__console__index",3985:"p__app__create__image",4037:"p__user__login__index",4202:"p__image__recycle",4214:"p__image__list",4316:"p__app__list",5071:"p__system__index",5738:"p__app__detail__file",5897:"p__docker__event",5947:"p__app__detail__index",6301:"t__plugin-layout__Layout",6889:"p__compose__index",7523:"p__image__create",7667:"p__compose__deploy",7745:"p__app__detail__stat",8022:"p__compose__list",8115:"p__app__index",8615:"p__app__detail__log",8878:"p__app__detail__edit",9002:"p__docker__volume",9013:"p__image__registry",9290:"p__docker__index"}[m]||m)+"."+{78:"084ad6d4",236:"a518e9e5",337:"c1586ed5",550:"367a9a30",641:"8fe8658e",682:"d7f315be",684:"de3afe04",783:"dd6c26f4",787:"a827d700",809:"36b978da",992:"c2001cd4",1043:"38c4e2d9",1050:"e50309ca",1078:"5c1833ba",1102:"c029c4dd",1180:"7d1fce12",1610:"da316054",1693:"a4bb72c8",1717:"a15fda3a",1764:"561eec1a",2119:"1196548a",2136:"0a6722b9",2320:"8a88b52d",2391:"bb57871c",2398:"fd20ce02",2406:"eed6584f",2538:"63f50eb0",2548:"f3bb31fe",3146:"70d9f402",3203:"36b9d233",3355:"42439e95",3357:"5620f0de",3490:"f29cd502",3718:"c35f3a9b",3805:"123365a9",3985:"9a5b2dd0",4037:"fbe9fc3b",4175:"6ca2ba00",4202:"c7bd6716",4214:"55db7158",4262:"1600f41e",4316:"92436444",4323:"e1b6579d",4626:"0e2af840",4774:"4fb587d3",4997:"8576b40a",5071:"730bfae3",5738:"7ad19a6a",5897:"ab503434",5947:"c9c9638b",6121:"48085b3f",6301:"bb5f846e",6390:"f7f181ce",6792:"bee8b2dd",6889:"dad6c3b0",7050:"52ca9bcd",7100:"afece656",7109:"d71950f5",7297:"2fd0056f",7438:"f76687da",7523:"aca854ff",7667:"36d51823",7745:"2b007549",7753:"cea7b3ec",7787:"a2857fc1",7844:"202033c3",7854:"94a4a290",8022:"b92859ed",8115:"5695a268",8164:"fd4ababd",8171:"f0ace9c2",8345:"e1d48c7c",8615:"d20eb132",8778:"315af393",8820:"c786cac7",8878:"11a6ee89",8980:"982d88fc",9002:"8f03714c",9013:"5a78e009",9181:"95c48c95",9290:"43321e07",9296:"fbb1e23d",9607:"7968ff15",9831:"f360be3b",9994:"bdf72f43"}[m]+".async.js"}}(),function(){z.miniCssF=function(m){return""+{3805:"p__console__index",4202:"p__image__recycle",6301:"t__plugin-layout__Layout",7523:"p__image__create",7667:"p__compose__deploy",8615:"p__app__detail__log"}[m]+"."+{3805:"cc528b81",4202:"cc528b81",6301:"5012e1ab",7523:"cc528b81",7667:"cc528b81",8615:"cc528b81"}[m]+".chunk.css"}}(),function(){z.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(m){if(typeof window=="object")return window}}()}(),function(){z.o=function(m,h){return Object.prototype.hasOwnProperty.call(m,h)}}(),function(){var m={};z.l=function(h,e,t,r){if(m[h]){m[h].push(e);return}var a,o;if(t!==void 0)for(var l=document.getElementsByTagName("script"),c=0;cMt.length)&&(nn=Mt.length);for(var Hn=0,er=new Array(nn);Hn0&&arguments[0]!==void 0?arguments[0]:"";return Mt.endsWith("/")?Mt:"".concat(Mt,"/")}var Vr=z(49647),oa=z(58096),Gr=["content"],sa=["content"],pa=/^(http:|https:)?\/\//;function Fr(Mt){return pa.test(Mt)||Mt.startsWith("/")&&!Mt.startsWith("/*")||Mt.startsWith("./")||Mt.startsWith("../")}var fa=function(){return At.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},to=function(nn){var Hn,er=nn.loaderData,yr=nn.htmlPageOpts,gn=nn.manifest,Br=(gn==null||(Hn=gn.assets)===null||Hn===void 0?void 0:Hn["umi.css"])||"";return At.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(er||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(yr||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(Br,"'")}})};function Aa(Mt){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Mt=="string")return Fr(Mt)?zn({src:Mt},nn):{content:Mt};if(at(Mt)==="object")return zn(zn({},Mt),nn);throw new Error("Invalid script type: ".concat(at(Mt)))}function Fa(Mt){return Fr(Mt)?{type:"link",href:Mt}:{type:"style",content:Mt}}var Ia=function(nn){var Hn,er,yr,gn,Br,Yr,Xr=nn.htmlPageOpts;return At.createElement(At.Fragment,null,(Xr==null?void 0:Xr.title)&&At.createElement("title",null,Xr.title),Xr==null||(Hn=Xr.favicons)===null||Hn===void 0?void 0:Hn.map(function(za,Wa){return At.createElement("link",{key:Wa,rel:"shortcut icon",href:za})}),(Xr==null?void 0:Xr.description)&&At.createElement("meta",{name:"description",content:Xr.description}),(Xr==null||(er=Xr.keywords)===null||er===void 0?void 0:er.length)&&At.createElement("meta",{name:"keywords",content:Xr.keywords.join(",")}),Xr==null||(yr=Xr.metas)===null||yr===void 0?void 0:yr.map(function(za){return At.createElement("meta",{key:za.name,name:za.name,content:za.content})}),Xr==null||(gn=Xr.links)===null||gn===void 0?void 0:gn.map(function(za,Wa){return At.createElement("link",(0,oa.Z)({key:Wa},za))}),Xr==null||(Br=Xr.styles)===null||Br===void 0?void 0:Br.map(function(za,Wa){var oo=Fa(za),Xa=oo.type,wo=oo.href,Pi=oo.content;if(Xa==="link")return At.createElement("link",{key:Wa,rel:"stylesheet",href:wo});if(Xa==="style")return At.createElement("style",{key:Wa},Pi)}),Xr==null||(Yr=Xr.headScripts)===null||Yr===void 0?void 0:Yr.map(function(za,Wa){var oo=Aa(za),Xa=oo.content,wo=(0,Vr.Z)(oo,Gr);return At.createElement("script",(0,oa.Z)({dangerouslySetInnerHTML:{__html:Xa},key:Wa,crossOrigin:"anonymous"},wo))}))};function ma(Mt){var nn,Hn=Mt.children,er=Mt.loaderData,yr=Mt.manifest,gn=Mt.htmlPageOpts,Br=Mt.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yr=Mt.mountElementId;if(Br!=null&&Br.pureHtml)return At.createElement("html",null,At.createElement("head",null),At.createElement("body",null,At.createElement(fa,null),At.createElement("div",{id:Yr},Hn),At.createElement(to,{manifest:yr,loaderData:er,htmlPageOpts:gn})));if(Br!=null&&Br.pureApp)return At.createElement(At.Fragment,null,Hn);var Xr=typeof window=="undefined"?yr==null?void 0:yr.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return At.createElement("html",{suppressHydrationWarning:!0,lang:(gn==null?void 0:gn.lang)||"en"},At.createElement("head",null,At.createElement("meta",{charSet:"utf-8"}),At.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),Xr&&At.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:Xr}),At.createElement(Ia,{htmlPageOpts:gn})),At.createElement("body",null,At.createElement(fa,null),At.createElement("div",{id:Yr},Hn),At.createElement(to,{manifest:yr,loaderData:er,htmlPageOpts:gn}),gn==null||(nn=gn.scripts)===null||nn===void 0?void 0:nn.map(function(za,Wa){var oo=Aa(za),Xa=oo.content,wo=(0,Vr.Z)(oo,sa);return At.createElement("script",(0,oa.Z)({dangerouslySetInnerHTML:{__html:Xa},key:Wa,crossOrigin:"anonymous"},wo))})))}var Ta=At.createContext(void 0);function Za(){return At.useContext(Ta)}var ro=["redirect"];function fo(Mt){var nn=Mt.routesById,Hn=Mt.parentId,er=Mt.routeComponents;return Object.keys(nn).filter(function(yr){return nn[yr].parentId===Hn}).map(function(yr){var gn=Ya(zn({route:nn[yr],routeComponent:er[yr],loadingComponent:Mt.loadingComponent,reactRouter5Compat:Mt.reactRouter5Compat},Mt.reactRouter5Compat&&{hasChildren:Object.keys(nn).filter(function(Yr){return nn[Yr].parentId===yr}).length>0})),Br=fo({routesById:nn,routeComponents:er,parentId:gn.id,loadingComponent:Mt.loadingComponent,reactRouter5Compat:Mt.reactRouter5Compat});return Br.length>0&&(gn.children=Br,gn.routes=Br),gn})}function vo(Mt){var nn=(0,kr.UO)(),Hn=(0,kr.Gn)(Mt.to,nn),er=(0,zr.T$)(),yr=(0,kr.TH)();if(er!=null&&er.keepQuery){var gn=yr.search+yr.hash;Hn+=gn}var Br=zn(zn({},Mt),{},{to:Hn});return At.createElement(kr.Fg,(0,oa.Z)({replace:!0},Br))}function Ya(Mt){var nn=Mt.route,Hn=nn.redirect,er=(0,Vr.Z)(nn,ro),yr=Mt.reactRouter5Compat?lo:Ja;return zn({element:Hn?At.createElement(vo,{to:Hn}):At.createElement(Ta.Provider,{value:{route:Mt.route}},At.createElement(yr,{loader:At.memo(Mt.routeComponent),loadingComponent:Mt.loadingComponent||no,hasChildren:Mt.hasChildren}))},er)}function no(){return At.createElement("div",null)}function lo(Mt){var nn=Za(),Hn=nn.route,er=(0,zr.Ov)(),yr=er.history,gn=er.clientRoutes,Br=(0,kr.UO)(),Yr={params:Br,isExact:!0,path:Hn.path,url:yr.location.pathname},Xr=Mt.loader;return At.createElement(At.Suspense,{fallback:At.createElement(Mt.loadingComponent,null)},At.createElement(Xr,{location:yr.location,match:Yr,history:yr,params:Br,route:Hn,routes:gn},Mt.hasChildren&&At.createElement(kr.j3,null)))}function Ja(Mt){var nn=Mt.loader;return At.createElement(At.Suspense,{fallback:At.createElement(Mt.loadingComponent,null)},At.createElement(nn,null))}var mo=null;function Eo(){return mo}function Bi(Mt){var nn=Mt.history,Hn=At.useState({action:nn.action,location:nn.location}),er=hr(Hn,2),yr=er[0],gn=er[1];return(0,At.useLayoutEffect)(function(){return nn.listen(gn)},[nn]),(0,At.useLayoutEffect)(function(){function Br(Yr){Mt.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Mt.routes,clientRoutes:Mt.clientRoutes,location:Yr.location,action:Yr.action,basename:Mt.basename,isFirst:!!Yr.isFirst}})}return Br({location:yr.location,action:yr.action,isFirst:!0}),nn.listen(Br)},[nn,Mt.routes,Mt.clientRoutes]),At.createElement(kr.F0,{navigator:nn,location:yr.location,basename:Mt.basename},Mt.children)}function Xe(){var Mt=(0,zr.Ov)(),nn=Mt.clientRoutes;return(0,kr.V$)(nn)}var xa=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],di=function(nn,Hn){var er=nn.basename||"/",yr=fo({routesById:nn.routes,routeComponents:nn.routeComponents,loadingComponent:nn.loadingComponent,reactRouter5Compat:nn.reactRouter5Compat});nn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:yr}});for(var gn=At.createElement(Bi,{basename:er,pluginManager:nn.pluginManager,routes:nn.routes,clientRoutes:yr,history:nn.history},Hn),Br=0,Yr=xa;Br0&&arguments[0]!==void 0?arguments[0]:"";return Mt.endsWith("/")?Mt:"".concat(Mt,"/")}var Vr=z(49647),oa=z(58096),Gr=["content"],sa=["content"],pa=/^(http:|https:)?\/\//;function Fr(Mt){return pa.test(Mt)||Mt.startsWith("/")&&!Mt.startsWith("/*")||Mt.startsWith("./")||Mt.startsWith("../")}var fa=function(){return At.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},to=function(nn){var Hn,er=nn.loaderData,yr=nn.htmlPageOpts,gn=nn.manifest,Br=(gn==null||(Hn=gn.assets)===null||Hn===void 0?void 0:Hn["umi.css"])||"";return At.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(er||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(yr||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(Br,"'")}})};function Aa(Mt){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Mt=="string")return Fr(Mt)?zn({src:Mt},nn):{content:Mt};if(at(Mt)==="object")return zn(zn({},Mt),nn);throw new Error("Invalid script type: ".concat(at(Mt)))}function Fa(Mt){return Fr(Mt)?{type:"link",href:Mt}:{type:"style",content:Mt}}var Ia=function(nn){var Hn,er,yr,gn,Br,Yr,Xr=nn.htmlPageOpts;return At.createElement(At.Fragment,null,(Xr==null?void 0:Xr.title)&&At.createElement("title",null,Xr.title),Xr==null||(Hn=Xr.favicons)===null||Hn===void 0?void 0:Hn.map(function(za,Wa){return At.createElement("link",{key:Wa,rel:"shortcut icon",href:za})}),(Xr==null?void 0:Xr.description)&&At.createElement("meta",{name:"description",content:Xr.description}),(Xr==null||(er=Xr.keywords)===null||er===void 0?void 0:er.length)&&At.createElement("meta",{name:"keywords",content:Xr.keywords.join(",")}),Xr==null||(yr=Xr.metas)===null||yr===void 0?void 0:yr.map(function(za){return At.createElement("meta",{key:za.name,name:za.name,content:za.content})}),Xr==null||(gn=Xr.links)===null||gn===void 0?void 0:gn.map(function(za,Wa){return At.createElement("link",(0,oa.Z)({key:Wa},za))}),Xr==null||(Br=Xr.styles)===null||Br===void 0?void 0:Br.map(function(za,Wa){var oo=Fa(za),Xa=oo.type,wo=oo.href,Pi=oo.content;if(Xa==="link")return At.createElement("link",{key:Wa,rel:"stylesheet",href:wo});if(Xa==="style")return At.createElement("style",{key:Wa},Pi)}),Xr==null||(Yr=Xr.headScripts)===null||Yr===void 0?void 0:Yr.map(function(za,Wa){var oo=Aa(za),Xa=oo.content,wo=(0,Vr.Z)(oo,Gr);return At.createElement("script",(0,oa.Z)({dangerouslySetInnerHTML:{__html:Xa},key:Wa,crossOrigin:"anonymous"},wo))}))};function ma(Mt){var nn,Hn=Mt.children,er=Mt.loaderData,yr=Mt.manifest,gn=Mt.htmlPageOpts,Br=Mt.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yr=Mt.mountElementId;if(Br!=null&&Br.pureHtml)return At.createElement("html",null,At.createElement("head",null),At.createElement("body",null,At.createElement(fa,null),At.createElement("div",{id:Yr},Hn),At.createElement(to,{manifest:yr,loaderData:er,htmlPageOpts:gn})));if(Br!=null&&Br.pureApp)return At.createElement(At.Fragment,null,Hn);var Xr=typeof window=="undefined"?yr==null?void 0:yr.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return At.createElement("html",{suppressHydrationWarning:!0,lang:(gn==null?void 0:gn.lang)||"en"},At.createElement("head",null,At.createElement("meta",{charSet:"utf-8"}),At.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),Xr&&At.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:Xr}),At.createElement(Ia,{htmlPageOpts:gn})),At.createElement("body",null,At.createElement(fa,null),At.createElement("div",{id:Yr},Hn),At.createElement(to,{manifest:yr,loaderData:er,htmlPageOpts:gn}),gn==null||(nn=gn.scripts)===null||nn===void 0?void 0:nn.map(function(za,Wa){var oo=Aa(za),Xa=oo.content,wo=(0,Vr.Z)(oo,sa);return At.createElement("script",(0,oa.Z)({dangerouslySetInnerHTML:{__html:Xa},key:Wa,crossOrigin:"anonymous"},wo))})))}var Ta=At.createContext(void 0);function Za(){return At.useContext(Ta)}var ro=["redirect"];function fo(Mt){var nn=Mt.routesById,Hn=Mt.parentId,er=Mt.routeComponents;return Object.keys(nn).filter(function(yr){return nn[yr].parentId===Hn}).map(function(yr){var gn=Ya(zn({route:nn[yr],routeComponent:er[yr],loadingComponent:Mt.loadingComponent,reactRouter5Compat:Mt.reactRouter5Compat},Mt.reactRouter5Compat&&{hasChildren:Object.keys(nn).filter(function(Yr){return nn[Yr].parentId===yr}).length>0})),Br=fo({routesById:nn,routeComponents:er,parentId:gn.id,loadingComponent:Mt.loadingComponent,reactRouter5Compat:Mt.reactRouter5Compat});return Br.length>0&&(gn.children=Br,gn.routes=Br),gn})}function vo(Mt){var nn=(0,kr.UO)(),Hn=(0,kr.Gn)(Mt.to,nn),er=(0,zr.T$)(),yr=(0,kr.TH)();if(er!=null&&er.keepQuery){var gn=yr.search+yr.hash;Hn+=gn}var Br=zn(zn({},Mt),{},{to:Hn});return At.createElement(kr.Fg,(0,oa.Z)({replace:!0},Br))}function Ya(Mt){var nn=Mt.route,Hn=nn.redirect,er=(0,Vr.Z)(nn,ro),yr=Mt.reactRouter5Compat?lo:Ja;return zn({element:Hn?At.createElement(vo,{to:Hn}):At.createElement(Ta.Provider,{value:{route:Mt.route}},At.createElement(yr,{loader:At.memo(Mt.routeComponent),loadingComponent:Mt.loadingComponent||no,hasChildren:Mt.hasChildren}))},er)}function no(){return At.createElement("div",null)}function lo(Mt){var nn=Za(),Hn=nn.route,er=(0,zr.Ov)(),yr=er.history,gn=er.clientRoutes,Br=(0,kr.UO)(),Yr={params:Br,isExact:!0,path:Hn.path,url:yr.location.pathname},Xr=Mt.loader;return At.createElement(At.Suspense,{fallback:At.createElement(Mt.loadingComponent,null)},At.createElement(Xr,{location:yr.location,match:Yr,history:yr,params:Br,route:Hn,routes:gn},Mt.hasChildren&&At.createElement(kr.j3,null)))}function Ja(Mt){var nn=Mt.loader;return At.createElement(At.Suspense,{fallback:At.createElement(Mt.loadingComponent,null)},At.createElement(nn,null))}var mo=null;function Eo(){return mo}function Bi(Mt){var nn=Mt.history,Hn=At.useState({action:nn.action,location:nn.location}),er=hr(Hn,2),yr=er[0],gn=er[1];return(0,At.useLayoutEffect)(function(){return nn.listen(gn)},[nn]),(0,At.useLayoutEffect)(function(){function Br(Yr){Mt.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Mt.routes,clientRoutes:Mt.clientRoutes,location:Yr.location,action:Yr.action,basename:Mt.basename,isFirst:!!Yr.isFirst}})}return Br({location:yr.location,action:yr.action,isFirst:!0}),nn.listen(Br)},[nn,Mt.routes,Mt.clientRoutes]),At.createElement(kr.F0,{navigator:nn,location:yr.location,basename:Mt.basename},Mt.children)}function Xe(){var Mt=(0,zr.Ov)(),nn=Mt.clientRoutes;return(0,kr.V$)(nn)}var xa=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],di=function(nn,Hn){var er=nn.basename||"/",yr=fo({routesById:nn.routes,routeComponents:nn.routeComponents,loadingComponent:nn.loadingComponent,reactRouter5Compat:nn.reactRouter5Compat});nn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:yr}});for(var gn=At.createElement(Bi,{basename:er,pluginManager:nn.pluginManager,routes:nn.routes,clientRoutes:yr,history:nn.history},Hn),Br=0,Yr=xa;Br