From 2a832d9afe53acf9fb2b2ea3908279b6a496f647 Mon Sep 17 00:00:00 2001 From: zhaojing1987 Date: Tue, 23 May 2023 16:26:21 +0800 Subject: [PATCH] update --- src/apps/build/asset-manifest.json | 14 +++++++------- src/apps/build/index.html | 2 +- src/apps/build/static/js/613.043b2efc.chunk.js | 2 -- src/apps/build/static/js/613.043b2efc.chunk.js.map | 1 - src/apps/build/static/js/613.beab528f.chunk.js | 2 ++ src/apps/build/static/js/613.beab528f.chunk.js.map | 1 + src/apps/build/static/js/918.c6fb41f4.chunk.js | 2 -- src/apps/build/static/js/918.e10a86be.chunk.js | 2 ++ ...41f4.chunk.js.map => 918.e10a86be.chunk.js.map} | 2 +- .../js/{main.b6447da4.js => main.a4a0ad96.js} | 6 +++--- ...js.LICENSE.txt => main.a4a0ad96.js.LICENSE.txt} | 0 .../{main.b6447da4.js.map => main.a4a0ad96.js.map} | 2 +- src/apps/src/pages/appdetailtabs/appcontainer.js | 2 +- src/apps/src/pages/appdetailtabs/appoverview.js | 8 ++++---- src/apps/src/pages/appstore.js | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 src/apps/build/static/js/613.043b2efc.chunk.js delete mode 100644 src/apps/build/static/js/613.043b2efc.chunk.js.map create mode 100644 src/apps/build/static/js/613.beab528f.chunk.js create mode 100644 src/apps/build/static/js/613.beab528f.chunk.js.map delete mode 100644 src/apps/build/static/js/918.c6fb41f4.chunk.js create mode 100644 src/apps/build/static/js/918.e10a86be.chunk.js rename src/apps/build/static/js/{918.c6fb41f4.chunk.js.map => 918.e10a86be.chunk.js.map} (59%) rename src/apps/build/static/js/{main.b6447da4.js => main.a4a0ad96.js} (99%) rename src/apps/build/static/js/{main.b6447da4.js.LICENSE.txt => main.a4a0ad96.js.LICENSE.txt} (100%) rename src/apps/build/static/js/{main.b6447da4.js.map => main.a4a0ad96.js.map} (99%) diff --git a/src/apps/build/asset-manifest.json b/src/apps/build/asset-manifest.json index be1ac9a24..b6e273953 100644 --- a/src/apps/build/asset-manifest.json +++ b/src/apps/build/asset-manifest.json @@ -1,9 +1,9 @@ { "files": { "main.css": "./static/css/main.751babb1.css", - "main.js": "./static/js/main.b6447da4.js", - "static/js/918.c6fb41f4.chunk.js": "./static/js/918.c6fb41f4.chunk.js", - "static/js/613.043b2efc.chunk.js": "./static/js/613.043b2efc.chunk.js", + "main.js": "./static/js/main.a4a0ad96.js", + "static/js/918.e10a86be.chunk.js": "./static/js/918.e10a86be.chunk.js", + "static/js/613.beab528f.chunk.js": "./static/js/613.beab528f.chunk.js", "static/js/376.8d48e784.chunk.js": "./static/js/376.8d48e784.chunk.js", "static/js/426.9f5f69c7.chunk.js": "./static/js/426.9f5f69c7.chunk.js", "static/js/631.31672b05.chunk.js": "./static/js/631.31672b05.chunk.js", @@ -69,9 +69,9 @@ "static/media/logo-sm.svg": "./static/media/logo-sm.53b8ca70620b0b2968874a3660f195dd.svg", "index.html": "./index.html", "main.751babb1.css.map": "./static/css/main.751babb1.css.map", - "main.b6447da4.js.map": "./static/js/main.b6447da4.js.map", - "918.c6fb41f4.chunk.js.map": "./static/js/918.c6fb41f4.chunk.js.map", - "613.043b2efc.chunk.js.map": "./static/js/613.043b2efc.chunk.js.map", + "main.a4a0ad96.js.map": "./static/js/main.a4a0ad96.js.map", + "918.e10a86be.chunk.js.map": "./static/js/918.e10a86be.chunk.js.map", + "613.beab528f.chunk.js.map": "./static/js/613.beab528f.chunk.js.map", "376.8d48e784.chunk.js.map": "./static/js/376.8d48e784.chunk.js.map", "426.9f5f69c7.chunk.js.map": "./static/js/426.9f5f69c7.chunk.js.map", "631.31672b05.chunk.js.map": "./static/js/631.31672b05.chunk.js.map", @@ -88,6 +88,6 @@ }, "entrypoints": [ "static/css/main.751babb1.css", - "static/js/main.b6447da4.js" + "static/js/main.a4a0ad96.js" ] } \ No newline at end of file diff --git a/src/apps/build/index.html b/src/apps/build/index.html index 7466937cf..836ecf293 100644 --- a/src/apps/build/index.html +++ b/src/apps/build/index.html @@ -1 +1 @@ -App Store
\ No newline at end of file +App Store
\ No newline at end of file diff --git a/src/apps/build/static/js/613.043b2efc.chunk.js b/src/apps/build/static/js/613.043b2efc.chunk.js deleted file mode 100644 index d9f8b72c7..000000000 --- a/src/apps/build/static/js/613.043b2efc.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkapps=self.webpackChunkapps||[]).push([[613],{3131:function(e,n,a){var t=a(5987),r=a(1413),s=a(9439),i=a(1694),l=a.n(i),o=a(2791),c=a(9410),d=a(9795),u=a(184),p=["label","type","name","value","readOnly","placeholder","register","errors","className","labelClassName","containerClass","refCallback","children"],h=function(e){var n=e.name,a=e.placeholder,t=e.refCallback,i=e.errors,p=e.register,h=e.className,x=e.value,m=e.readOnly,f=(0,o.useState)(!1),j=(0,s.Z)(f,2),Z=j[0],g=j[1];return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(c.Z,{className:"mb-0",children:[(0,u.jsx)(d.Z.Control,(0,r.Z)((0,r.Z)({type:Z?"text":"password",placeholder:a,name:n,id:n,as:"input",ref:function(e){t&&t(e)},className:h,isInvalid:!(!i||!i[n])},p?p(n):{}),{},{autoComplete:n,defaultValue:x,readOnly:m})),(0,u.jsx)("div",{className:l()("input-group-text","input-group-password",{"show-password":Z}),"data-password":Z?"true":"false",children:(0,u.jsx)("span",{className:"password-eye",onClick:function(){g(!Z)}})})]})})};n.Z=function(e){var n=e.label,a=e.type,s=e.name,i=e.value,l=e.readOnly,o=e.placeholder,c=e.register,x=e.errors,m=e.className,f=e.labelClassName,j=e.containerClass,Z=e.refCallback,g=e.children,v=(0,t.Z)(e,p),b="textarea"===a?"textarea":"select"===a?"select":"input";return(0,u.jsx)(u.Fragment,{children:"hidden"===a?(0,u.jsx)("input",(0,r.Z)((0,r.Z)({type:a,name:s},c?c(s):{}),v)):(0,u.jsx)(u.Fragment,{children:"password"===a?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d.Z.Group,{className:j,children:[n?(0,u.jsxs)(u.Fragment,{children:[" ",(0,u.jsx)(d.Z.Label,{className:f,children:n})," ",g," "]}):null,(0,u.jsx)(h,{name:s,placeholder:o,refCallback:Z,errors:x,register:c,className:m,value:i,readOnly:l}),x&&x[s]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",className:"d-block",children:x[s].message}):null]})}):(0,u.jsx)(u.Fragment,{children:"select"===a?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d.Z.Group,{className:j,children:[n?(0,u.jsx)(d.Z.Label,{className:f,children:n}):null,(0,u.jsx)(d.Z.Select,(0,r.Z)((0,r.Z)((0,r.Z)({type:a,label:n,name:s,id:s,ref:function(e){Z&&Z(e)},comp:b,className:m,isInvalid:!(!x||!x[s])},c?c(s):{}),v),{},{children:g})),x&&x[s]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",children:x[s].message}):null]})}):(0,u.jsx)(u.Fragment,{children:"checkbox"===a||"radio"===a?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d.Z.Group,{className:j,children:[(0,u.jsx)(d.Z.Check,(0,r.Z)((0,r.Z)({type:a,label:n,name:s,id:s,ref:function(e){Z&&Z(e)},className:m,isInvalid:!(!x||!x[s])},c?c(s):{}),v)),x&&x[s]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",children:x[s].message}):null]})}):(0,u.jsxs)(d.Z.Group,{className:j,children:[n?(0,u.jsx)(d.Z.Label,{className:f,children:n}):null,(0,u.jsx)(d.Z.Control,(0,r.Z)((0,r.Z)((0,r.Z)({type:a,placeholder:o,value:i,name:s,id:s,as:b,ref:function(e){Z&&Z(e)},className:m,isInvalid:!(!x||!x[s])},c?c(s):{}),v),{},{autoComplete:s,children:g||null})),x&&x[s]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",children:x[s].message}):null]})})})})})}},2733:function(e,n,a){var t=a(4942),r=(a(2791),a(1694)),s=a.n(r),i=a(184),l=function(e){var n=e.children||null,a=e.tag||"div",r=e.color||"secondary",l=e.size||"";return(0,i.jsx)(a,{role:"status",className:s()({"spinner-border":"bordered"===e.type,"spinner-grow":"grow"===e.type},["text-".concat(r)],(0,t.Z)({},"avatar-".concat(l),l),e.className),children:n})};l.defaultProps={tag:"div",type:"bordered"},n.Z=l},165:function(e,n,a){a.d(n,{qL:function(){return j},pd:function(){return m},dy:function(){return x},qs:function(){return Z},_6:function(){return f},rl:function(){return o},u3:function(){return c},h1:function(){return h},P3:function(){return p},pO:function(){return u},mx:function(){return d}});var t=a(3144),r=a(5671),s=a(1243),i=a(7689);a(184);s.Z.defaults.headers.post["Content-Type"]="application/json",s.Z.defaults.headers.get["Content-Type"]="application/json",s.Z.defaults.headers={"Cache-Control":"no-cache",Pragma:"no-cache",Expires:"0"},s.Z.interceptors.response.use((function(e){return e}),(function(e){var n;if(e&&e.response&&404===e.response.status)i.Fg;else{if(!e||!e.response||500!==e.response.status)return n=e.response&&e.response.data?e.response.data.message:e.message||e,Promise.reject(n);i.Fg}}));var l=new((0,t.Z)((function e(){(0,r.Z)(this,e),this.get=function(e,n){var a;if(n){var t=n?Object.keys(n).map((function(e){return e+"="+n[e]})).join("&"):"";a=s.Z.get("".concat(e,"?").concat(t),n)}else a=s.Z.get("".concat(e),n);return a},this.create=function(e,n){return s.Z.post(e,n)}})));function o(e){return l.get("".concat("/AppManage/AppInstall"),e)}function c(e){return l.get("".concat("/AppManage/AppList"),e)}function d(e){return l.get("".concat("/AppManage/AppUninstall"),e)}function u(e){return l.get("".concat("/AppManage/AppStop"),e)}function p(e){return l.get("".concat("/AppManage/AppStart"),e)}function h(e){return l.get("".concat("/AppManage/AppRestart"),e)}function x(e){return l.get("".concat("/AppManage/AppDomainList"),e)}function m(e){return l.get("".concat("/AppManage/AppDomainDelete"),e)}function f(e){return l.get("".concat("/AppManage/AppDomainUpdate"),e)}function j(e){return l.get("".concat("/AppManage/AppDomainAdd"),e)}function Z(e){return l.get("".concat("/AppManage/AppDomainSet"),e)}},3422:function(e,n,a){a.r(n),a.d(n,{default:function(){return re}});var t=a(4165),r=a(5861),s=a(9439),i=a(1413),l=a(4358),o=a(3971),c=a(1694),d=a.n(c),u=a(7346),p=a.n(u),h=a(2791),x=a(2025),m=a(3360),f=a(2469),j=a(9743),Z=a(2677),g=a(42),v=a(7689),b=a(1087),y=a.p+"static/media/default.50b14dd03b88a6d9022a.png",N=a(3131),w=a(2733),k=a(165),C=a(5862),_=a(2576),S=a(1752),E=a(4533),D=a(3433),A=a(1131),F=a(1473),R=a(3721),I=a(5818),M=a(1123),P=a(9627),B=a(5736),H=a(9795),O=a(184),T=p().gettext,z=h.forwardRef((function(e,n){return(0,O.jsx)(l.Z,(0,i.Z)({elevation:6,ref:n,variant:"filled"},e))})),U=function(e){var n=(0,v.s0)(),a=(0,h.useState)(!1),i=(0,s.Z)(a,2),l=i[0],o=i[1],c=(0,h.useState)(!1),u=(0,s.Z)(c,2),p=u[0],j=u[1],Z=(0,h.useState)(""),g=(0,s.Z)(Z,2),b=g[0],y=g[1];return(0,O.jsxs)(x.Z,{show:e.showConform,onHide:e.onClose,size:"lg",scrollable:"true",backdrop:"static",style:{backgroundColor:"rgba(0,0,0,0.8)"},children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,className:d()("modal-colored-header","bg-warning"),children:(0,O.jsx)("h4",{children:T("Delete domain binding")})}),(0,O.jsxs)(x.Z.Body,{className:"row",children:[(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[T("Are you sure you want to delete the domain for:")," ",e.deleteRowData.domainValue," ? "]}),(0,O.jsx)("div",{children:p&&(0,O.jsx)(f.Z,{variant:"danger",className:"my-2",children:b})})]}),(0,O.jsxs)(x.Z.Footer,{children:[(0,O.jsx)(m.Z,{variant:"light",onClick:e.onClose,children:T("Close")})," ",(0,O.jsxs)(m.Z,{disabled:l,variant:"warning",onClick:(0,r.Z)((0,t.Z)().mark((function a(){var r;return(0,t.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,o(!0),a.next=4,(0,k.pd)({app_id:e.deleteRowData.app_id,domain:e.deleteRowData.domainValue});case 4:(r=a.sent).data.Error?(j(!0),y(r.data.Error.Message)):(o(!1),e.onClose(),e.onDataChange()),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),n("/error-500");case 11:return a.prev=11,o(!1),a.finish(11);case 14:case"end":return a.stop()}}),a,null,[[0,8,11,14]])}))),children:[l&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",T("Delete")]})]})]})},V=function(e){var n,a,i,l,c,d,u,p,x,f,g,b,y,w,C,_,S,E,V,L,W,G,q,$,J,K,Q,X,Y,ee=(0,v.s0)(),ne=(0,h.useState)([]),ae=(0,s.Z)(ne,2),te=ae[0],re=ae[1],se=(0,h.useState)(!1),ie=(0,s.Z)(se,2),le=ie[0],oe=ie[1],ce=(0,h.useState)(!1),de=(0,s.Z)(ce,2),ue=de[0],pe=de[1],he=(0,h.useState)(""),xe=(0,s.Z)(he,2),me=xe[0],fe=xe[1],je=(0,h.useState)(""),Ze=(0,s.Z)(je,2),ge=Ze[0],ve=Ze[1],be=(0,h.useState)(!1),ye=(0,s.Z)(be,2),Ne=ye[0],we=ye[1],ke=(0,h.useState)(null),Ce=(0,s.Z)(ke,2),_e=Ce[0],Se=Ce[1],Ee=(0,h.useState)(""),De=(0,s.Z)(Ee,2),Ae=(De[0],De[1],h.useState(!0)),Fe=(0,s.Z)(Ae,2),Re=Fe[0],Ie=Fe[1],Me=h.useState(!0),Pe=(0,s.Z)(Me,2),Be=Pe[0],He=Pe[1],Oe=h.useState(!1),Te=(0,s.Z)(Oe,2),ze=Te[0],Ue=Te[1],Ve=function(){var n=(0,r.Z)((0,t.Z)().mark((function n(){var a,r,s,i;return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,k.dy)({app_id:e.data.app_id});case 3:(a=n.sent).data.Error?(pe(!0),ve("error"),fe(a.data.Error.Message)):(r=a.data.ResponseData.Domain_set,s=r.default_domain,i=r.domains.map((function(n){return{app_id:e.data.app_id,domainValue:n,newDomainValue:n,isEditable:!1,isFromAPI:!0,isDefaultDomain:n===s}})),re(i)),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),ee("/error-500");case 10:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(){return n.apply(this,arguments)}}();(0,h.useEffect)((function(){Ve()}),[]);var Le=function(){var e=(0,r.Z)((0,t.Z)().mark((function e(n,a){var r;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.isFromAPI?(we(!0),Se(n)):((r=(0,D.Z)(te)).splice(a,1),re(r));case 1:case"end":return e.stop()}}),e)})));return function(n,a){return e.apply(this,arguments)}}(),We=function(){var n=(0,r.Z)((0,t.Z)().mark((function n(a){var r,s;return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=te[a].newDomainValue,oe(!0),n.prev=2,n.next=5,(0,k.qs)({app_id:e.data.app_id,domain:r});case 5:(s=n.sent).data.Error?(pe(!0),ve("error"),fe(s.data.Error.Message)):(pe(!0),ve("success"),fe("\u8bbe\u7f6e\u6210\u529f!"),Ve()),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),ee("/error-500");case 12:return n.prev=12,oe(!1),n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[2,9,12,15]])})));return function(e){return n.apply(this,arguments)}}(),Ge=function(){var n=(0,r.Z)((0,t.Z)().mark((function n(a,r){var s,i,l,o,c,d;return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=document.getElementsByName("domain-".concat(r))[0],i=s.value,l=/^(?!https?:\/\/)([\da-z\.-]+\.)*([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/,!i){n.next=49;break}if(!l.test(i)){n.next=44;break}if(!a.isFromAPI){n.next=28;break}if(a.domainValue==a.newDomainValue){n.next=23;break}return oe(!0),n.prev=8,n.next=11,(0,k._6)({app_id:e.data.app_id,domain_old:a.domainValue,domain_new:i});case 11:(o=n.sent).data.Error?(pe(!0),ve("error"),fe(o.data.Error.Message)):(pe(!0),ve("success"),fe("Success"),Ve()),n.next=18;break;case 15:n.prev=15,n.t0=n.catch(8),ee("/error-500");case 18:return n.prev=18,oe(!1),n.finish(18);case 21:n.next=26;break;case 23:(c=(0,D.Z)(te))[r].isEditable=!c[r].isEditable,re(c);case 26:n.next=42;break;case 28:return n.prev=28,oe(!0),n.next=32,(0,k.qL)({app_id:e.data.app_id,domains:i});case 32:(d=n.sent).data.Error?(pe(!0),ve("error"),fe(d.data.Error.Message)):(pe(!0),ve("success"),fe("Success"),Ve()),n.next=39;break;case 36:n.prev=36,n.t1=n.catch(28),ee("/error-500");case 39:return n.prev=39,oe(!1),n.finish(39);case 42:n.next=47;break;case 44:pe(!0),ve("error"),fe(T("Please enter the correct domain name and cannot start with http or https!"));case 47:n.next=52;break;case 49:pe(!0),ve("error"),fe(T("Domain name cannot be empty"));case 52:case"end":return n.stop()}}),n,null,[[8,15,18,21],[28,36,39,42]])})));return function(e,a){return n.apply(this,arguments)}}();var qe=function(e,n){"clickaway"!==n&&(pe(!1),fe(""))},$e=(0,h.useState)(!1),Je=(0,s.Z)($e,2);Je[0],Je[1];return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(P.Z,{children:[le&&(0,O.jsx)("div",{className:"card-disabled",style:{zIndex:999},children:(0,O.jsx)("div",{className:"card-portlets-loader"})}),(0,O.jsxs)(P.Z.Body,{children:[(0,O.jsxs)(F.Z,{defaultExpanded:!0,onChange:function(e,n){Ie(n)},className:"mb-2",children:[(0,O.jsx)(I.Z,{expandIcon:(0,O.jsx)(A.Z,{}),"aria-controls":"panel1a-content",id:"panel1a-header",children:(0,O.jsxs)(M.Z,{children:[(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:"\u57df\u540d\u8bbf\u95ee"}),(0,O.jsx)("span",{className:"me-2 fs-6",style:{display:Re?"inline":"none"},children:"\u5efa\u8bae\u7ed1\u5b9a\u57df\u540d\u8bbf\u95ee\u5e94\u7528\uff0c\u4ee5\u514d\u65e0\u57df\u540d\u9020\u6210\u5e94\u7528\u5f02\u5e38"})]})}),(0,O.jsx)(R.Z,{children:(0,O.jsx)(M.Z,{children:(0,O.jsxs)(P.Z,{children:[(0,O.jsx)(P.Z.Header,{children:(0,O.jsxs)(j.Z,{className:"mb-2 align-items-center",children:[(0,O.jsx)(Z.Z,{xs:12,md:9}),(0,O.jsxs)(Z.Z,{xs:12,md:3,className:"d-flex justify-content-end",children:[(0,O.jsx)(m.Z,{variant:"primary",size:"sm",className:"me-2",onClick:function(){te.length<10&&re([].concat((0,D.Z)(te),[{app_id:e.data.app_id,domainValue:"",newDomainValue:"",isEditable:!0,isFromAPI:!1,isDefaultDomain:!1}]))},children:"\u6dfb\u52a0\u57df\u540d"}),(null===(n=e.data)||void 0===n||null===(a=n.config)||void 0===a?void 0:a.admin_domain_url)&&(0,O.jsx)("a",{href:null===(i=e.data)||void 0===i||null===(l=i.config)||void 0===l?void 0:l.admin_domain_url,target:"_blank",className:"me-2",children:(0,O.jsx)(m.Z,{variant:"primary",size:"sm",children:"\u8bbf\u95ee\u540e\u53f0"})}),(0,O.jsxs)(m.Z,{size:"sm",className:"me-2",variant:"primary",onClick:(0,r.Z)((0,t.Z)().mark((function e(){return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe(!0),e.next=3,Ve();case 3:oe(!1);case 4:case"end":return e.stop()}}),e)}))),children:[" ",T("Refresh")]})]})]})}),(0,O.jsx)(P.Z.Body,{children:te.map((function(e,n){return(0,O.jsxs)(j.Z,{className:"mb-2",children:[(0,O.jsx)(Z.Z,{xs:12,md:9,children:(0,O.jsx)(Z.Z,{xs:"auto",children:(0,O.jsx)(N.Z,{className:"mb-2 mb-md-0",type:"text",name:"domain-".concat(n),value:e.newDomainValue,disabled:!e.isEditable,onChange:function(e){return function(e,n){var a=(0,D.Z)(te);a[e].newDomainValue=n.target.value,re(a)}(n,e)}})})}),(0,O.jsxs)(Z.Z,{xs:12,md:3,children:[(0,O.jsx)(m.Z,{variant:"link text-danger",style:{padding:"5px"},onClick:function(){return Le(e,n)},children:T("delete")}),e.isEditable&&e.isFromAPI&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(m.Z,{variant:"link text-success",style:{padding:"5px"},onClick:function(){return Ge(e,n)},children:T("save")}),(0,O.jsx)(m.Z,{variant:"link text-success",style:{padding:"5px"},onClick:function(){return function(e){var n=(0,D.Z)(te);n[e].newDomainValue=n[e].domainValue,n[e].isEditable=!n[e].isEditable,re(n)}(n)},children:T("cancel")})]}),e.isEditable&&!e.isFromAPI&&(0,O.jsx)(m.Z,{variant:"link text-success",style:{padding:"5px"},onClick:function(){return Ge(e,n)},children:T("save")}),!e.isEditable&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(m.Z,{variant:"link text-primary",style:{padding:"5px"},onClick:function(){return function(e){var n=(0,D.Z)(te);n[e].isEditable=!n[e].isEditable,re(n)}(n)},children:T("edit")}),(0,O.jsx)("a",{href:"http://"+e.domainValue,target:"_blank",children:(0,O.jsx)(m.Z,{variant:"link text-primary",style:{padding:"5px"},children:T("access")})}),e.isDefaultDomain?(0,O.jsxs)(B.Z,{className:"ms-2 bg-success",children:[" ",T("default")," "]}):(0,O.jsx)(m.Z,{variant:"link text-primary",onClick:function(){return We(n)},children:T("set as default")})]})]})]},n)}))}),(0,O.jsx)(P.Z.Footer,{children:(0,O.jsx)(j.Z,{className:"mb-2 mt-2",children:(0,O.jsxs)(Z.Z,{sm:12,children:[(0,O.jsx)("span",{children:"\u5982\u8981\u9700\u8981\u8fdb\u884cHttps\u8bbe\u7f6e,\u6216\u8005\u66f4\u591a\u81ea\u5b9a\u4e49\u914d\u7f6e\uff0c\u8bf7\u70b9\u51fb\u66f4\u591a"}),(0,O.jsx)("a",{href:"/nginx",target:"_parent",className:"me-2 float-end",children:(0,O.jsx)(m.Z,{variant:"primary",size:"sm",children:T("More")})})]})})})]})})})]}),(null===(c=e.data)||void 0===c||null===(d=c.config)||void 0===d?void 0:d.url)&&((null===(u=e.data)||void 0===u||null===(p=u.config)||void 0===p?void 0:p.default_domain)&&!(null!==(x=e.data)&&void 0!==x&&x.app_replace_url)||!(null!==(f=e.data)&&void 0!==f&&null!==(g=f.config)&&void 0!==g&&g.default_domain))&&(0,O.jsxs)(F.Z,{defaultExpanded:!0,onChange:function(e,n){He(n)},className:"mb-2",children:[(0,O.jsx)(I.Z,{expandIcon:(0,O.jsx)(A.Z,{}),"aria-controls":"panel2a-content",id:"panel2a-header",children:(0,O.jsxs)(M.Z,{children:[(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:"\u65e0\u57df\u540d\u8bbf\u95ee"}),(0,O.jsx)("span",{className:"me-2 fs-6",style:{display:Be?"inline":"none"},children:"\u6ca1\u6709\u57df\u540d\u53ef\u4ee5\u901a\u8fc7IP+\u7aef\u53e3\u7684\u65b9\u5f0f\u4e34\u65f6\u8bbf\u95ee\u5e94\u7528"})]})}),(0,O.jsx)(R.Z,{children:(0,O.jsx)(M.Z,{children:(0,O.jsx)(P.Z,{children:(0,O.jsxs)(P.Z.Body,{children:[(null===(b=e.data)||void 0===b||null===(y=b.config)||void 0===y?void 0:y.url)&&(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{className:"me-2 fs-5",children:"\u524d\u53f0:"}),(0,O.jsx)("a",{href:null===(w=e.data)||void 0===w||null===(C=w.config)||void 0===C?void 0:C.url,target:"_blank",className:"me-2",children:null===(_=e.data)||void 0===_||null===(S=_.config)||void 0===S?void 0:S.url})]}),(null===(E=e.data)||void 0===E||null===(V=E.config)||void 0===V?void 0:V.admin_url)&&(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{className:"me-2 fs-5",children:"\u540e\u53f0:"}),(0,O.jsx)("a",{href:null===(L=e.data)||void 0===L||null===(W=L.config)||void 0===W?void 0:W.admin_url,target:"_blank",className:"me-2",children:null===(G=e.data)||void 0===G||null===(q=G.config)||void 0===q?void 0:q.admin_url})]})]})})})})]}),(null===($=e.data)||void 0===$||null===(J=$.config)||void 0===J?void 0:J.admin_username)&&(0,O.jsxs)(F.Z,{className:"mb-2",onChange:function(e,n){Ue(n)},children:[(0,O.jsx)(I.Z,{expandIcon:(0,O.jsx)(A.Z,{}),"aria-controls":"panel3a-content",id:"panel3a-header",children:(0,O.jsxs)(M.Z,{children:[(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:"\u521d\u59cb\u8d26\u53f7"}),(0,O.jsx)("span",{className:"me-2 fs-6",style:{display:ze?"inline":"none"},children:"\u6b64\u5e94\u7528\u7a0b\u5e8f\u662f\u4f7f\u7528\u7ba1\u7406\u5458\u5e10\u6237\u9884\u5148\u8bbe\u7f6e\u7684\uff0c\u8bf7\u7acb\u5373\u66f4\u6539\u7ba1\u7406\u5458\u5bc6\u7801\u3002\u521d\u59cb\u51ed\u636e\u4e3a\uff1a"})]})}),(0,O.jsx)(R.Z,{children:(0,O.jsx)(M.Z,{children:(0,O.jsx)(P.Z,{children:(0,O.jsxs)(P.Z.Body,{children:[(0,O.jsxs)(H.Z.Group,{as:j.Z,className:"mb-3",children:[(0,O.jsx)(H.Z.Label,{htmlFor:"username",column:!0,md:2,className:"fs-5",children:"UserName"}),(0,O.jsx)(Z.Z,{md:4,children:(0,O.jsx)(H.Z.Control,{type:"text",name:"username",id:"username",defaultValue:null===(K=e.data)||void 0===K||null===(Q=K.config)||void 0===Q?void 0:Q.admin_username,readOnly:!0})})]}),(0,O.jsxs)(H.Z.Group,{as:j.Z,className:"mb-3",children:[(0,O.jsx)(H.Z.Label,{htmlFor:"password",column:!0,md:2,className:"fs-5",children:"Password"}),(0,O.jsx)(Z.Z,{md:4,children:(0,O.jsx)(N.Z,{type:"password",name:"password",containerClass:"mb-3",value:null===(X=e.data)||void 0===X||null===(Y=X.config)||void 0===Y?void 0:Y.admin_password,readOnly:!0})})]})]})})})})]})]})]}),Ne&&(0,O.jsx)(U,{showConform:Ne,onClose:function(){we(!1)},deleteRowData:_e,onDataChange:Ve}),ue&&(0,O.jsx)(o.Z,{open:ue,autoHideDuration:5e3,onClose:qe,anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,O.jsx)(z,{onClose:qe,severity:ge,sx:{width:"100%"},children:me})})]})},L=a(1243),W=a(2591),G=p().gettext,q=function(e){(0,v.s0)();var n=(0,h.useState)([]),a=(0,s.Z)(n,2),i=a[0],l=a[1],o=e.data.customer_name,c=(0,h.useState)(null),d=(0,s.Z)(c,2),u=d[0],p=d[1],x=function(){var e=(0,r.Z)((0,t.Z)().mark((function e(){var n,a,r,s,i,c,d,u,h,x;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,null!==(n=window.localStorage.getItem("portainer.JWT2"))){e.next=18;break}return e.next=5,L.Z.get("../container/config.json");case 5:if(200!==(a=e.sent).status){e.next=15;break}return r=a.data,s=r.PORTAINER_USERNAME,i=r.PORTAINER_PASSWORD,c=r.PORTAINER_AUTH_URL,r.PORTAINER_HOME_PAGE,e.next=11,L.Z.post(c,{username:s,password:i});case 11:200===(d=e.sent).status?(n=d.data.jwt,window.localStorage.setItem("portainer.JWT2",n)):console.error("Error:",d),e.next=16;break;case 15:console.error("Error:",a);case 16:e.next=19;break;case 18:n=n.replace(/"/g,"");case 19:return e.next=21,L.Z.get("/portainer/api/endpoints",{headers:{Authorization:"Bearer "+n}});case 21:if(200!==(u=e.sent).status){e.next=31;break}return h=u.data.find((function(e){return e.URL.includes("/var/run/docker.sock")})).Id,p(h),e.next=27,L.Z.get("/portainer/api/endpoints/".concat(h,"/docker/containers/json"),{headers:{Authorization:"Bearer "+n},params:{all:!0,filters:JSON.stringify({label:["com.docker.compose.project=".concat(o)]})}});case 27:200===(x=e.sent).status?l(x.data):console.error("Error:",x),e.next=32;break;case 31:console.error("Error:",u);case 32:e.next=37;break;case 34:e.prev=34,e.t0=e.catch(0),console.error("Error:",e.t0);case 37:case"end":return e.stop()}}),e,null,[[0,34]])})));return function(){return e.apply(this,arguments)}}();return(0,h.useEffect)((function(){x()}),[]),(0,O.jsx)(j.Z,{children:(0,O.jsx)(Z.Z,{xs:12,children:(0,O.jsxs)(P.Z,{children:[(0,O.jsx)(P.Z.Header,{children:(0,O.jsxs)(j.Z,{className:"align-items-center",children:[(0,O.jsxs)(Z.Z,{xs:12,md:10,children:[(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:G("Container")}),(0,O.jsxs)("span",{className:"me-2 fs-6",children:["\u672c\u5e94\u7528\u7531\u5982\u4e0b\u5bb9\u5668\u7ec4\u6210\uff0c\u540d\u79f0\u4e3a ",o," \u7684\u4e3a\u4e3b\u5bb9\u5668 "]})]}),(0,O.jsx)(Z.Z,{xs:12,md:2,children:(0,O.jsx)("a",{href:"/portainer/#!/".concat(u,"/docker/stacks/").concat(o,"?type=2®ular=false&external=true&orphaned=false"),target:"_blank",className:"me-2",children:(0,O.jsx)(m.Z,{variant:"primary",size:"sm",className:"float-end",children:G("More")})})})]})}),(0,O.jsx)(P.Z.Body,{children:(0,O.jsxs)(W.Z,{className:"mb-0",children:[(0,O.jsx)("thead",{children:(0,O.jsxs)("tr",{children:[(0,O.jsx)("th",{children:"Name"}),(0,O.jsx)("th",{children:"State"}),(0,O.jsx)("th",{style:{textAlign:"center"},children:"Actions"}),(0,O.jsx)("th",{children:"Image"}),(0,O.jsx)("th",{children:"Created"}),(0,O.jsx)("th",{children:"Ip Address"}),(0,O.jsx)("th",{children:"Published Ports"})]})}),(0,O.jsx)("tbody",{children:i.map((function(e,n){var a,t,r,s,i,l;return(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:null===(a=e.Names)||void 0===a||null===(t=a[0])||void 0===t?void 0:t.replace(/^\/|\/$/g,"")}),(0,O.jsx)("td",{children:(0,O.jsx)(B.Z,{className:"".concat("running"===e.State?"bg-success":"exited"===e.State?"bg-danger":"info"),children:e.State})}),(0,O.jsxs)("td",{style:{textAlign:"center"},children:[(0,O.jsxs)("a",{href:"/portainer/#!/".concat(u,"/docker/containers/").concat(e.Id,"/logs"),target:"_blank",title:"Logs",children:[(0,O.jsx)("i",{className:"dripicons-document-remove noti-icon"})," "]}),"running"===e.State&&(0,O.jsxs)("a",{href:"/portainer/#!/".concat(u,"/docker/containers/").concat(e.Id,"/stats"),target:"_blank",title:"Stats",children:[(0,O.jsx)("i",{className:"dripicons-pulse noti-icon"})," "]})]}),(0,O.jsx)("td",{children:e.Image}),(0,O.jsx)("td",{children:new Date(1e3*e.Created).toLocaleString()}),(0,O.jsx)("td",{children:e.NetworkSettings.Networks[e.HostConfig.NetworkMode].IPAddress}),(0,O.jsxs)("td",{children:[null===(r=e.Ports)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.PublicPort,":",null===(i=e.Ports)||void 0===i||null===(l=i[0])||void 0===l?void 0:l.PrivatePort]})]},n)}))})]})})]})})})},$=(p().gettext,function(e){var n,a,t,r,s,i,l;(0,v.s0)();return(0,O.jsx)(j.Z,{children:(0,O.jsx)(Z.Z,{xs:12,children:(0,O.jsxs)(P.Z,{children:[(0,O.jsx)(P.Z.Header,{children:(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:"\u5e94\u7528\u6982\u89c8"})}),(0,O.jsx)(P.Z.Body,{children:(0,O.jsx)(W.Z,{responsive:!0,className:"mb-0",bordered:!1,children:(0,O.jsxs)("tbody",{children:[(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u5e94\u7528\u540d\u79f0\uff1a"}),(0,O.jsx)("td",{children:null===(n=e.data)||void 0===n?void 0:n.app_name}),(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u5e94\u7528\u7248\u672c\uff1a"}),(0,O.jsx)("td",{children:null===(a=e.data)||void 0===a?void 0:a.app_version})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u5e94\u7528\u7aef\u53e3\uff1a"}),(0,O.jsx)("td",{children:null===(t=e.data)||void 0===t||null===(r=t.config)||void 0===r?void 0:r.port}),(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u521b\u5efa\u65f6\u95f4\uff1a"}),(0,O.jsx)("td",{children:null===(s=e.data)||void 0===s?void 0:s.create_time})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u914d\u7f6e\u76ee\u5f55\uff1a "}),(0,O.jsx)("td",{children:null===(i=e.data)||void 0===i?void 0:i.config_path}),(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u6570\u636e\u76ee\u5f55\uff1a"}),(0,O.jsx)("td",{children:null===(l=e.data)||void 0===l?void 0:l.volume_data})]})]})})})]})})})}),J=p().gettext,K=function(e){var n=(0,v.s0)(),a=(0,h.useState)(!1),i=(0,s.Z)(a,2),l=i[0],o=i[1],c=(0,h.useState)(!1),u=(0,s.Z)(c,2),p=u[0],j=u[1],Z=(0,h.useState)(""),g=(0,s.Z)(Z,2),b=g[0],y=g[1];return(0,O.jsxs)(x.Z,{show:e.showConform,onHide:e.onClose,size:"lg",scrollable:"true",backdrop:"static",style:{backgroundColor:"rgba(0,0,0,0.8)"},children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,closeButton:!0,className:d()("modal-colored-header","bg-warning"),children:(0,O.jsxs)("h4",{children:[J("Uninstall")," ",e.app.customer_name]})}),(0,O.jsxs)(x.Z.Body,{className:"row",children:[(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[J("This will immediately uninstall")," ",e.app.customer_name," ",J("and remove all its data.")]}),(0,O.jsx)("div",{children:p&&(0,O.jsx)(f.Z,{variant:"danger",className:"my-2",children:b})})]}),(0,O.jsxs)(x.Z.Footer,{children:[(0,O.jsx)(m.Z,{variant:"light",onClick:e.onClose,children:J("Close")})," ",(0,O.jsxs)(m.Z,{disabled:l,variant:"warning",onClick:(0,r.Z)((0,t.Z)().mark((function a(){var r;return(0,t.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,o(!0),a.next=4,(0,k.mx)({app_id:e.app.app_id});case 4:(r=a.sent).data.Error?(j(!0),y(r.data.Error.Message)):(e.onClose(),e.onCloseFatherModal(),e.onDataChange()),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),n("/error-500");case 11:case"end":return a.stop()}}),a,null,[[0,8]])}))),children:[l&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",J("Uninstall")]})]})]})},Q=(0,h.forwardRef)((function(e,n){var a=(0,h.useState)(!1),i=(0,s.Z)(a,2),l=i[0],o=i[1],c=(0,h.useState)(!1),d=(0,s.Z)(c,2),u=d[0],p=d[1],x=(0,v.s0)(),f=function(){p(!0)},g=function(){p(!1)};return(0,h.useImperativeHandle)(n,(function(){return{setButtonDisable:f,setButtonEnable:g}})),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(j.Z,{className:"mb-2",children:(0,O.jsxs)(Z.Z,{sm:12,children:[(0,O.jsx)("label",{className:"me-1",style:{fontWeight:"bolder",marginBottom:"5px"},children:J("Start / Stop")}),(0,O.jsx)("p",{children:J("Apps can be stopped to conserve server resources instead of uninstalling.")}),"running"===e.data.status?(0,O.jsxs)(m.Z,{variant:"secondary",className:"float-end",disabled:u,onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.disabledButton(),p(!0),n.next=5,(0,k.pO)({app_id:e.data.app_id});case 5:n.sent.data.Error?x("/error"):e.onDataChange(e.data.app_id),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),x("/error-500");case 12:return n.prev=12,p(!1),e.enableButton(),n.finish(12);case 16:case"end":return n.stop()}}),n,null,[[0,9,12,16]])}))),children:[u&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",J("Stop")]}):(0,O.jsxs)(m.Z,{variant:"primary",className:"float-end",disabled:u,onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.disabledButton(),p(!0),n.prev=2,n.next=5,(0,k.P3)({app_id:e.data.app_id});case 5:n.sent.data.Error?x("/error"):e.onDataChange(e.data.app_id),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),x("/error-500");case 12:return n.prev=12,e.enableButton(),p(!1),n.finish(12);case 16:case"end":return n.stop()}}),n,null,[[2,9,12,16]])}))),children:[u&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",J("Start")]})]})}),(0,O.jsx)("hr",{}),(0,O.jsx)(j.Z,{className:"mb-2",children:(0,O.jsxs)(Z.Z,{sm:12,children:[(0,O.jsx)("label",{className:"me-1",style:{fontWeight:"bolder",marginBottom:"5px"},children:J("Uninstall")}),(0,O.jsx)("p",{children:J("This will uninstall the app immediately and remove all its data.The app will be inaccessible.")}),(0,O.jsx)(m.Z,{variant:"warning",className:"float-end",onClick:function(){o(!0)},children:J("Uninstall")})]})}),l&&(0,O.jsx)(K,{showConform:l,onClose:function(){o(!1)},app:e.data,onDataChange:e.onDataChange,onCloseFatherModal:e.onCloseFatherModal})]})})),X=p().gettext,Y=function(e){var n=(0,h.useState)(!1),a=(0,s.Z)(n,2),i=a[0],l=a[1],o=(0,h.useState)(!1),c=(0,s.Z)(o,2),u=c[0],p=c[1],f=(0,h.useState)(e.current_app),g=(0,s.Z)(f,2),N=g[0],D=g[1],A=(0,h.useState)(!1),F=(0,s.Z)(A,2),R=F[0],I=F[1],M=(0,h.useState)(!1),P=(0,s.Z)(M,2),B=P[0],H=P[1],T=(0,h.useState)(!1),z=(0,s.Z)(T,2),U=z[0],L=z[1],W=(0,v.s0)(),G=(0,h.useRef)(),J=function(){G.current.setButtonDisable()},K=function(){G.current.setButtonEnable()};(0,h.useEffect)((function(){D(e.current_app)}),[e.current_app]);var Y=[{id:"1",title:X("Overview"),icon:"mdi mdi-account-circle",text:(0,O.jsx)($,{data:N})},{id:"2",title:X("Access"),icon:"mdi mdi-account-circle",text:(0,O.jsx)(V,{data:N})},{id:"3",title:X("Container"),icon:"mdi mdi-account-circle",text:(0,O.jsx)(q,{data:N})},{id:"4",title:X("Uninstall"),icon:"mdi mdi-cog-outline",text:(0,O.jsx)(Q,{data:N,ref:G,disabledButton:function(){p(!0),l(!0)},enableButton:function(){p(!1),l(!1)},onDataChange:e.onDataChange,onCloseFatherModal:e.onClose})}];return N&&(0,O.jsxs)(x.Z,{show:e.showFlag,backdrop:"static",onHide:e.onClose,size:"lg",scrollable:"true",dialogClassName:"modal-full-width",children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,closeButton:!0,children:(0,O.jsxs)("div",{style:{padding:"10px",display:"flex",width:"100%",alignItems:"center"},children:[(0,O.jsx)("div",{className:"appstore-item-content-icon col-same-height",children:(0,O.jsx)("img",{src:N.image_url,alt:"",className:"app-icon",onError:function(e){return e.target.src=y}})}),(0,O.jsxs)("div",{className:"col-same-height",children:[(0,O.jsx)("h4",{className:"appstore-item-content-title",style:{marginTop:"5px"},children:N.customer_name}),(0,O.jsx)("h5",{className:"appstore-item-content-title",style:{marginTop:"5px"},children:N.status})]}),(0,O.jsxs)("div",{className:"col-same-height",style:{flexGrow:1,display:"flex",justifyContent:"flex-end",alignItems:"center"},children:["exited"===N.status&&(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Start App")}),children:(0,O.jsx)(m.Z,{variant:"primary",disabled:u,style:{padding:"5px 10px",borderRadius:"3px",marginRight:"10px"},onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return J(),I(!0),l(!0),n.prev=3,n.next=6,(0,k.P3)({app_id:N.app_id});case 6:n.sent.data.Error?W("/error"):e.onDataChange(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),W("/error-500");case 13:return n.prev=13,K(),I(!1),l(!1),n.finish(13);case 18:case"end":return n.stop()}}),n,null,[[3,10,13,18]])}))),children:R?(0,O.jsx)(w.Z,{className:"spinner-border-sm noti-icon",color:"light"}):(0,O.jsx)("i",{className:"dripicons-media-play noti-icon"})})},"bottom1"),"running"===N.status&&(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Stop App")}),children:(0,O.jsx)(m.Z,{variant:"primary",disabled:u,style:{padding:"5px 10px",borderRadius:"3px",marginRight:"10px"},onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return J(),H(!0),l(!0),n.prev=3,n.next=6,(0,k.pO)({app_id:N.app_id});case 6:n.sent.data.Error?W("/error"):e.onDataChange(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),W("/error-500");case 13:return n.prev=13,K(),H(!1),l(!1),n.finish(13);case 18:case"end":return n.stop()}}),n,null,[[3,10,13,18]])}))),children:B?(0,O.jsx)(w.Z,{className:"spinner-border-sm noti-icon",color:"light"}):(0,O.jsx)("i",{className:"dripicons-power noti-icon"})})},"bottom2"),(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Restart App")}),children:(0,O.jsx)(m.Z,{disabled:i,style:{padding:"5px 10px",borderRadius:"3px",marginRight:"10px"},onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,J(),L(!0),p(!0),n.next=6,(0,k.h1)({app_id:N.app_id});case 6:n.sent.data.Error?W("/error"):e.onDataChange(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(0),W("/error-500");case 13:return n.prev=13,K(),L(!1),p(!1),n.finish(13);case 18:case"end":return n.stop()}}),n,null,[[0,10,13,18]])}))),children:U?(0,O.jsx)(w.Z,{className:"spinner-border-sm noti-icon",color:"light"}):(0,O.jsx)("i",{className:"dripicons-clockwise noti-icon"})})},"bottom3"),"running"===N.status&&(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Terminal")}),children:(0,O.jsxs)(b.rU,{to:{pathname:"/terminal",search:"?id=".concat(N.customer_name)},style:{color:"#fff",backgroundColor:"#727cf5",padding:"5px 10px",borderRadius:"3px",borderColor:"#727cf5",marginRight:"10px"},target:"_blank",children:[(0,O.jsx)("i",{className:"dripicons-code noti-icon"})," "]})},"bottom4"),(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Documentation")}),children:(0,O.jsxs)("a",{href:"https://support.websoft9.com/docs/"+N.app_name,style:{color:"#fff",backgroundColor:"#727cf5",padding:"5px 10px",borderRadius:"3px",borderColor:"#727cf5",marginRight:"10px"},target:"_blank",children:[(0,O.jsx)("i",{className:"dripicons-document noti-icon"})," "]})},"bottom5")]})]})}),(0,O.jsx)(x.Z.Body,{className:"row",children:(0,O.jsxs)(S.Z.Container,{defaultActiveKey:X("Overview"),children:[(0,O.jsx)(Z.Z,{sm:2,className:"mb-2 mb-sm-0",children:(0,O.jsx)(E.Z,{variant:"pills",className:"flex-column",children:Y.map((function(e,n){var a=function(){return(0,O.jsx)(E.Z.Item,{children:(0,O.jsxs)(E.Z.Link,{as:b.rU,to:"#",eventKey:e.title,children:[(0,O.jsx)("i",{className:d()(e.icon,"d-md-none","d-block","me-1")}),(0,O.jsx)("span",{className:"d-none d-md-block",children:e.title})]})},n)};return"Terminal"!==e.title||"running"===N.status?a():void 0}))})}),(0,O.jsx)(Z.Z,{sm:10,children:(0,O.jsx)(S.Z.Content,{style:{height:"100%"},children:Y.map((function(e,n){return(0,O.jsx)(S.Z.Pane,{eventKey:e.title,id:e.id,style:{height:"100%"},children:(0,O.jsx)(j.Z,{style:{height:"100%"},children:(0,O.jsx)(Z.Z,{sm:"12",style:{height:"Terminal"===e.title?"600px":""},children:e.text})})},n)}))})})]})})]})},ee=p().gettext,ne=h.forwardRef((function(e,n){return(0,O.jsx)(l.Z,(0,i.Z)({elevation:6,ref:n,variant:"filled"},e))})),ae=function(e){return(0,O.jsxs)(x.Z,{show:e.showConform,onHide:e.onClose,size:"lg",scrollable:"true",backdrop:"static",children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,closeButton:!0,className:d()("modal-colored-header","bg-danger"),children:(0,O.jsxs)("h4",{children:[ee("This is the error message for")," ",e.app.customer_name]})}),(0,O.jsx)(x.Z.Body,{className:"row",children:e.app.status_reason&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[" ",(0,O.jsx)("b",{children:ee("Code: ")}),e.app.status_reason.Code," "]}),(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[" ",(0,O.jsx)("b",{children:ee("Message: ")}),e.app.status_reason.Message," "]}),(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[" ",(0,O.jsx)("b",{children:ee("Detail: ")}),e.app.status_reason.Detail," "]})]})}),(0,O.jsxs)(x.Z.Footer,{children:[(0,O.jsx)(m.Z,{variant:"light",onClick:e.onClose,children:ee("Close")}),(0,O.jsx)(m.Z,{variant:"light",onClick:function(){return window.open("https://www.websoft9.com/ticket","_blank")},children:ee("Support")})]})]})},te=function(e){var n=(0,v.s0)(),a=(0,h.useState)(!1),i=(0,s.Z)(a,2),l=i[0],o=i[1],c=(0,h.useState)(!1),u=(0,s.Z)(c,2),p=u[0],j=u[1],Z=(0,h.useState)(""),g=(0,s.Z)(Z,2),b=g[0],y=g[1];return(0,O.jsxs)(x.Z,{show:e.showConform,onHide:e.onClose,size:"lg",scrollable:"true",backdrop:"static",children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,className:d()("modal-colored-header","bg-warning"),children:(0,O.jsxs)("h4",{children:[ee("Remove")," ",e.app.customer_name]})}),(0,O.jsxs)(x.Z.Body,{className:"row",children:[(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[ee("This will immediately remove")," ",e.app.customer_name," ",ee("and remove all its data.")]}),(0,O.jsx)("div",{children:p&&(0,O.jsx)(f.Z,{variant:"danger",className:"my-2",children:b})})]}),(0,O.jsxs)(x.Z.Footer,{children:[(0,O.jsx)(m.Z,{variant:"light",onClick:e.onClose,children:ee("Close")})," ",(0,O.jsxs)(m.Z,{disabled:l,variant:"warning",onClick:(0,r.Z)((0,t.Z)().mark((function a(){var r;return(0,t.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,o(!0),a.next=4,(0,k.mx)({app_id:e.app.app_id});case 4:(r=a.sent).data.Error?(j(!0),y(r.data.Error.Message)):(e.onClose(),e.onDataChange()),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),n("/error-500");case 11:case"end":return a.stop()}}),a,null,[[0,8]])}))),children:[l&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",ee("Remove")]})]})]})},re=function(){var e,n=(0,h.useState)(!1),a=(0,s.Z)(n,2),i=a[0],l=a[1],c=(0,h.useState)(!1),u=(0,s.Z)(c,2),p=u[0],x=u[1],f=(0,h.useState)(!1),C=(0,s.Z)(f,2),_=C[0],S=C[1],E=(0,h.useState)(!1),D=(0,s.Z)(E,2),A=(D[0],D[1],(0,h.useState)(!1)),F=(0,s.Z)(A,2),R=F[0],I=F[1],M=(0,h.useState)(!1),P=(0,s.Z)(M,2),B=P[0],H=P[1],T=(0,h.useState)(""),z=(0,s.Z)(T,2),U=z[0],V=z[1],L=(0,h.useState)(""),W=(0,s.Z)(L,2),G=W[0],q=W[1],$=(0,h.useState)(null),J=(0,s.Z)($,2),K=J[0],Q=J[1],X=(0,h.useState)([]),re=(0,s.Z)(X,2),se=re[0],ie=re[1],le=(0,h.useState)([]),oe=(0,s.Z)(le,2),ce=(oe[0],oe[1],(0,h.useState)("")),de=(0,s.Z)(ce,2),ue=de[0],pe=de[1],he=(0,h.useState)("all"),xe=(0,s.Z)(he,2),me=xe[0],fe=xe[1],je=(0,h.useState)([]),Ze=(0,s.Z)(je,2),ge=(Ze[0],Ze[1],(0,h.useRef)(K)),ve=(0,v.s0)(),be=(0,h.useState)(0),ye=(0,s.Z)(be,2),Ne=ye[0],we=ye[1],ke=(0,h.useState)(null),Ce=(0,s.Z)(ke,2),_e=Ce[0],Se=Ce[1],Ee=(0,h.useState)(null),De=(0,s.Z)(Ee,2),Ae=(De[0],De[1]),Fe=(0,h.useState)(!1),Re=(0,s.Z)(Fe,2),Ie=Re[0],Me=Re[1],Pe=function(){(0,k.u3)().then((function(e){if(e.data.Error)we(e.data.Error.Code),Se(e.data.Error.Message),Ae(e.data.Error.Details);else{var n=e.data.ResponseData;if(ie(n),ge.current){var a=n.find((function(e){return e.app_id===ge.current.app_id}));Q(a)}}Me(!1)})).catch((function(e){v.Fg}))};if((0,h.useEffect)((function(){Pe()}),[]),(0,h.useEffect)((function(){Me(!0),e=setInterval((function(){(0,k.u3)().then((function(e){if(e.data.Error)we(e.data.Error.Code),Se(e.data.Error.Message),Ae(e.data.Error.Details);else{var n=e.data.ResponseData;if(ie(n),ge.current){var a=n.find((function(e){return e.app_id===ge.current.app_id}));Q(a)}}Me(!1)})).catch((function(e){v.Fg}))}),5e3)}),[]),(0,h.useEffect)((function(){ge.current=K}),[K]),(0,h.useEffect)((function(){return function(){return clearInterval(e)}}),[]),Ie)return(0,O.jsx)(w.Z,{className:"dis_mid"});if(Ne)return(0,O.jsxs)("p",{children:["Code : $",Ne," "]});if(_e)return(0,O.jsxs)("p",{children:["Error : $",_e," "]});var Be=function(e,n){"clickaway"!==n&&(H(!1),V(""))},He=function(){Pe()},Oe={Stop:{api:k.pO},Start:{api:k.P3},Restart:{api:k.h1},Uninstall:{api:k.mx}},Te=function(){var e=(0,r.Z)((0,t.Z)().mark((function e(n,a){var r;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Uninstall"!==n){e.next=4;break}return Q(a),x(!0),e.abrupt("return");case 4:return I(!0),e.prev=5,e.next=8,Oe[n].api({app_id:a.app_id});case 8:(r=e.sent).data.Error?(H(!0),q("error"),V(r.data.Error.Message)):(H(!0),q("success"),V("\u6267\u884c\u6210\u529f"),He()),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),ve("/error-500");case 15:return e.prev=15,I(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[5,12,15,18]])})));return function(n,a){return e.apply(this,arguments)}}();return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(j.Z,{className:"mb-2 align-items-center",children:[(0,O.jsx)(Z.Z,{sm:2,children:(0,O.jsx)("span",{style:{fontSize:"36px"},children:ee("My Apps")})}),(0,O.jsx)(Z.Z,{sm:3,children:(0,O.jsxs)(N.Z,{value:me,name:"select",type:"select",className:"form-select",onChange:function(e){return function(e){fe(e)}(e.target.value)},children:[(0,O.jsx)("option",{value:"all",children:ee("All States")}),(0,O.jsx)("option",{value:"installing",children:"installing"}),(0,O.jsx)("option",{value:"running",children:"running"}),(0,O.jsx)("option",{value:"exited",children:"exited"}),(0,O.jsx)("option",{value:"restarting",children:"restarting"}),(0,O.jsx)("option",{value:"failed",children:"failed"})]},"select")}),(0,O.jsx)(Z.Z,{sm:6,children:(0,O.jsx)(Z.Z,{xs:"auto",children:(0,O.jsx)(N.Z,{type:"text",name:"search",placeholder:"Search for apps like WordPress, Dropbox, Slack, Trello, \u2026",onChange:function(e){return function(e){pe(e)}(e.target.value)}})})}),(0,O.jsx)(Z.Z,{sm:1,children:(0,O.jsx)(m.Z,{variant:"primary",className:"float-end",onClick:function(){window.location.reload(!1)},children:ee("Refresh")})})]}),[!0,!1].map((function(e){var n=se.filter((function(e){return"all"===me||e.status===me})).filter((function(n){return n.official_app===e})).filter((function(e){return e.customer_name.includes(ue)}));return n.length>0?(0,O.jsxs)(j.Z,{children:[(0,O.jsx)("h4",{style:e?{}:{paddingTop:"10px"},children:ee(e?"Websoft9's Apps":"Other Apps")}),n.map((function(n,a){return(0,O.jsx)(Z.Z,{xxl:2,md:6,className:"appstore-item",children:(0,O.jsxs)("div",{className:"appstore-item-content highlight text-align-center",children:[!e&&("running"===n.status||"exited"===n.status)&&(0,O.jsxs)(g.Z,{className:"float-end",children:[(0,O.jsx)(g.Z.Toggle,{as:b.rU,to:"#",className:"arrow-none card-drop",children:R?(0,O.jsx)(w.Z,{className:"spinner-border-sm noti-icon"}):(0,O.jsx)("i",{className:"dripicons-gear noti-icon"})}),(0,O.jsx)(g.Z.Menu,{align:"end",children:(t=n.status,[{label:"Stop",icon:"dripicons-power noti-icon",condition:"running"===t},{label:"Start",icon:"dripicons-media-play noti-icon",condition:"exited"===t},{label:"Restart",icon:"dripicons-clockwise noti-icon",condition:"running"===t||"exited"===t},{label:"Uninstall",icon:"dripicons-trash noti-icon",variant:"text-danger",hasDivider:!0,condition:!0}]||[]).map((function(e,a){return(0,O.jsxs)(h.Fragment,{children:[e.condition&&e.hasDivider&&(0,O.jsx)(g.Z.Divider,{as:"div"}),e.condition&&(0,O.jsxs)(g.Z.Item,{className:d()(e.variant?e.variant:""),onClick:function(){return Te(e.label,n)},children:[e.icon&&(0,O.jsx)("i",{className:d()(e.icon,"me-1")}),e.label]})]},a)}))})]}),e&&("running"===n.status||"exited"===n.status)&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"float-end arrow-none card-drop p-0",onClick:function(){!function(e){Q(e),l(!0)}(n)},children:(0,O.jsx)("i",{className:"dripicons-gear noti-icon"})}),(0,O.jsx)("div",{className:"clearfix"})]}),e&&"installing"===n.status&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"float-end arrow-none card-drop p-0",children:(0,O.jsx)("i",{className:"dripicons-empty noti-icon"})}),(0,O.jsx)("div",{className:"clearfix"})]}),"failed"===n.status&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"float-end arrow-none card-drop p-0",children:[(0,O.jsx)("i",{className:"dripicons-information noti-icon",style:{paddingRight:"10px"},onClick:function(){!function(e){Q(e),S(!0)}(n)}}),(0,O.jsx)("i",{className:"dripicons-trash noti-icon",onClick:function(){!function(e){Q(e),x(!0)}(n)}})]}),(0,O.jsx)("div",{className:"clearfix"})]}),(0,O.jsx)("div",{children:(0,O.jsx)("img",{src:n.image_url,alt:n.app_name,className:"app-icon",style:{margin:"20px 10px 20px 10px"},onError:function(e){return e.target.src=y}})}),(0,O.jsxs)("div",{children:[(0,O.jsx)("h3",{className:"appstore-item-content-title",style:{color:"#2196f3"},children:n.customer_name}),(0,O.jsxs)("div",{style:{color:"failed"===n.status?"red":"inherit",display:"flex",alignItems:"center",justifyContent:"center"},children:[n.status&&"installing"===n.status&&(0,O.jsx)(w.Z,{className:"spinner-border-sm m-2"})," ",(0,O.jsx)("div",{className:"m-2",children:n.status})]})]})]})},n.app_id+a);var t}))]}):null})),i&&(0,O.jsx)(Y,{current_app:K,showFlag:i,onClose:function(){l(!1),Q(null)},onDataChange:He}),p&&(0,O.jsx)(te,{showConform:p,onClose:function(){x(!1)},app:K,onDataChange:He}),_&&(0,O.jsx)(ae,{showConform:_,onClose:function(){S(!1)},app:K}),B&&(0,O.jsx)(o.Z,{open:B,autoHideDuration:5e3,onClose:Be,anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,O.jsx)(ne,{onClose:Be,severity:G,sx:{width:"100%"},children:U})})]})}}}]); -//# sourceMappingURL=613.043b2efc.chunk.js.map \ No newline at end of file diff --git a/src/apps/build/static/js/613.043b2efc.chunk.js.map b/src/apps/build/static/js/613.043b2efc.chunk.js.map deleted file mode 100644 index ccd566edd..000000000 --- a/src/apps/build/static/js/613.043b2efc.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/613.043b2efc.chunk.js","mappings":"mVAMMA,EAAgB,SAAHC,GAA0F,IAApFC,EAAID,EAAJC,KAAMC,EAAWF,EAAXE,YAAaC,EAAWH,EAAXG,YAAaC,EAAM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,QA7MzC,WACpBuQ,GAAwB,EAC5B,EA2M2FJ,IAAK4E,EAAavT,aAAc8V,KAG/G3C,IACAxa,EAAAA,EAAAA,KAACia,GAAc,CAACtU,YAAa6U,EAAe3U,QAtNhC,WACpB4U,GAAiB,EACrB,EAoNkFzE,IAAK4E,IAG3EzV,IACAnF,EAAAA,EAAAA,KAACqR,EAAAA,EAAQ,CAACC,KAAMnM,EAAWoM,iBAAkB,IAAM1L,QAAS8I,GAAkB6C,aAAc,CAAEC,SAAU,MAAOC,WAAY,UAAWxR,UAClIF,EAAAA,EAAAA,KAACuE,GAAU,CAACsB,QAAS8I,GAAkBgD,SAAUvH,EAAWwH,GAAI,CAAEC,MAAO,QAAS3R,SAC7EqF,QAMzB,C","sources":["components/FormInput.js","components/Spinner.js","helpers/api/apiCore.js","helpers/api/appManager.js","pages/appdetailtabs/appaccess.js","pages/appdetailtabs/appcontainer.js","pages/appdetailtabs/appoverview.js","pages/appdetailtabs/appuninstall.js","pages/appdetail.js","pages/myapps.js"],"sourcesContent":["// @flow\nimport classNames from 'classnames';\nimport React, { useState } from 'react';\nimport { Form, InputGroup } from 'react-bootstrap';\n\n/* Password Input */\nconst PasswordInput = ({ name, placeholder, refCallback, errors, register, className, value, readOnly }) => {\n const [showPassword, setShowPassword] = useState(false);\n\n return (\n <>\n \n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n autoComplete={name}\n defaultValue={value}\n readOnly={readOnly}\n />\n \n {\n setShowPassword(!showPassword);\n }}>\n \n \n \n );\n};\n\ntype FormInputProps = {\n label?: string,\n type?: string,\n name?: string,\n value?: string,\n placeholder?: string,\n register?: any,\n errors?: any,\n className?: string,\n labelClassName?: string,\n containerClass?: string,\n refCallback?: any,\n children?: any,\n};\n\nconst FormInput = ({\n label,\n type,\n name,\n value,\n readOnly,\n placeholder,\n register,\n errors,\n className,\n labelClassName,\n containerClass,\n refCallback,\n children,\n ...otherProps\n}: FormInputProps): React$Element => {\n // handle input type\n const comp = type === 'textarea' ? 'textarea' : type === 'select' ? 'select' : 'input';\n\n return (\n <>\n {type === 'hidden' ? (\n \n ) : (\n <>\n {type === 'password' ? (\n <>\n \n {label ? (\n <>\n {' '}\n {label} {children}{' '}\n \n ) : null}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n <>\n {type === 'select' ? (\n <>\n \n {label ? {label} : null}\n\n {\n if (refCallback) refCallback(r);\n }}\n comp={comp}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}>\n {children}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n <>\n {type === 'checkbox' || type === 'radio' ? (\n <>\n \n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}\n />\n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n \n {label ? {label} : null}\n\n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}\n autoComplete={name}>\n {children ? children : null}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n )}\n \n )}\n \n )}\n \n )}\n \n );\n};\n\nexport default FormInput;\n","// @flow\nimport React from 'react';\nimport classNames from 'classnames';\n\ntype SpinnerProps = {\n tag?: string,\n className?: string,\n size?: 'lg' | 'md' | 'sm',\n type?: 'bordered' | 'grow',\n color?: string,\n children?: any,\n};\n\n/**\n * Spinner\n */\nconst Spinner = (props: SpinnerProps): React$Element => {\n const children = props.children || null;\n const Tag = props.tag || 'div';\n const color = props.color || 'secondary';\n const size = props.size || '';\n\n return (\n \n {children}\n \n );\n};\n\nSpinner.defaultProps = {\n tag: 'div',\n type: 'bordered',\n};\n\nexport default Spinner;\n","import axios from 'axios';\nimport { Navigate } from \"react-router-dom\";\n//import config from '../../config';\n\n// content type\naxios.defaults.headers.post['Content-Type'] = 'application/json';\naxios.defaults.headers.get['Content-Type'] = 'application/json';\naxios.defaults.headers = {\n 'Cache-Control': 'no-cache',\n 'Pragma': 'no-cache',\n 'Expires': '0',\n};\n//axios.defaults.baseURL = config.API_URL;\n\n// intercepting to capture errors\naxios.interceptors.response.use(\n (response) => {\n return response;\n },\n (error) => {\n // Any status codes that falls outside the range of 2xx cause this function to trigger\n let message;\n\n if (error && error.response && error.response.status === 404) {\n \n } else if (error && error.response && error.response.status === 500) {\n \n } else {\n message = error.response && error.response.data ? error.response.data['message'] : error.message || error;\n return Promise.reject(message);\n }\n }\n);\n\nclass APICore {\n /**\n * Fetches data from given url\n */\n get = (url, params) => {\n let response;\n if (params) {\n var queryString = params\n ? Object.keys(params)\n .map((key) => key + '=' + params[key])\n .join('&')\n : '';\n response = axios.get(`${url}?${queryString}`, params);\n } else {\n response = axios.get(`${url}`, params);\n }\n return response;\n };\n\n /**\n * post given data to url\n */\n create = (url, data) => {\n return axios.post(url, data);\n };\n}\n\nexport { APICore };\n","import { APICore } from './apiCore';\n\nconst api = new APICore();\n\n//App 安装\nfunction AppInstall(params: any): Promise {\n const baseUrl = '/AppManage/AppInstall';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 列表查询\nfunction AppList(params: any): Promise {\n const baseUrl = '/AppManage/AppList';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 卸载\nfunction AppUninstall(params: any): Promise {\n const baseUrl = '/AppManage/AppUninstall';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 停止\nfunction AppStop(params: any): Promise {\n const baseUrl = '/AppManage/AppStop';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 启动\nfunction AppStart(params: any): Promise {\n const baseUrl = '/AppManage/AppStart';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 重启\nfunction AppRestart(params: any): Promise {\n const baseUrl = '/AppManage/AppRestart';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 状态查询\nfunction AppStatus(params: any): Promise {\n const baseUrl = '/AppManage/AppStatus';\n return api.get(`${baseUrl}`, params);\n}\n\n//查询APP对应的域名\nfunction AppDomainList(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainList';\n return api.get(`${baseUrl}`, params);\n}\n\n//删除APP绑定的域名\nfunction AppDomainDelete(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainDelete';\n return api.get(`${baseUrl}`, params);\n}\n\n//修改APP绑定的域名\nfunction AppDomainUpdate(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainUpdate';\n return api.get(`${baseUrl}`, params);\n}\n\n//APP绑定域名\nfunction AppDomainAdd(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainAdd';\n return api.get(`${baseUrl}`, params);\n}\n\n//设定默认域名\nfunction AppDomainSet(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainSet';\n return api.get(`${baseUrl}`, params);\n}\n\nexport { AppInstall, AppList, AppUninstall, AppStop, AppStart, AppRestart, AppStatus, AppDomainList, AppDomainDelete, AppDomainUpdate, AppDomainAdd, AppDomainSet };\n\n","import ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport Accordion from '@mui/material/Accordion';\nimport AccordionDetails from '@mui/material/AccordionDetails';\nimport AccordionSummary from '@mui/material/AccordionSummary';\nimport MuiAlert from '@mui/material/Alert';\nimport Snackbar from '@mui/material/Snackbar';\nimport Typography from '@mui/material/Typography';\nimport classNames from 'classnames';\nimport cockpit from 'cockpit';\nimport { default as React, useEffect, useState } from 'react';\nimport { Alert, Badge, Button, Card, Col, Form, Modal, Row } from 'react-bootstrap';\nimport { useNavigate } from 'react-router-dom';\nimport FormInput from '../../components/FormInput';\nimport Spinner from '../../components/Spinner';\nimport { AppDomainAdd, AppDomainDelete, AppDomainList, AppDomainSet, AppDomainUpdate } from '../../helpers';\n\nconst _ = cockpit.gettext;\n\nconst MyMuiAlert = React.forwardRef(function Alert(props, ref) {\n return ;\n});\n\n//删除绑定的域名\nconst RemoveDomain = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n const [disable, setDisable] = useState(false);//用于按钮禁用\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n\n function closeAllModals() {\n //关闭所有弹窗\n props.onClose();\n props.onDataChange();\n }\n\n return (\n \n \n

{_(\"Delete domain binding\")}

\n
\n \n {_(\"Are you sure you want to delete the domain for:\")} {props.deleteRowData.domainValue} ? \n
\n {showAlert && \n {alertMessage}\n }\n
\n
\n \n {\" \"}\n \n \n
\n );\n}\n\nconst AppAccess = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n const [domains, setDomains] = useState([]); // 定义域名数组\n const [loading, setLoading] = useState(false); // 定义执行操作时的加载转态\n\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\"); //用于显示错误提示消息\n const [alertType, setAlertType] = useState(\"\"); //用于确定弹窗的类型:error\\success\n const [showRemoveDomain, setShowRemoveDomain] = useState(false); //用于显示状态为failed时显示确定删除的弹窗\n const [deleteRowData, setDeleteRowData] = useState(null); //用于保存将要删除的行数据\n const [inputDomainValue, setInputDomainValue] = useState(\"\");//用户保存用户输入的域名\n\n const [isExpandedForDomain, setIsExpandedForDomain] = React.useState(true); //用于保存“域名绑定”的折叠状态\n const [isExpandedForNoDomain, setIsExpandedForNoDomain] = React.useState(true);//用于保存“无域名访问”的折叠状态\n const [isExpandedForAccount, setIsExpandedForAccount] = React.useState(false);//用于保存“无域名访问”的折叠状态\n\n const getDomains = async () => {\n try {\n const response = await AppDomainList({ app_id: props.data.app_id });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n let responseData = response.data.ResponseData.Domain_set;\n let defaultdomain = responseData.default_domain; //获取返回的默认域名数据\n\n let resturnDomains = responseData.domains.map(domain => {\n return {\n app_id: props.data.app_id,\n domainValue: domain,\n newDomainValue: domain,\n isEditable: false,\n isFromAPI: true,\n isDefaultDomain: domain === defaultdomain ? true : false\n };\n });\n //排序:将默认域名放前面\n // resturnDomains.sort((a, b) => {\n // return b.isDefaultDomain - a.isDefaultDomain;\n // });\n setDomains(resturnDomains);\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n }\n\n useEffect(() => {\n getDomains();\n }, []);\n\n //添加域名\n const addRow = () => {\n if (domains.length < 10) {\n // 限制最多只能有10个domain\n setDomains([\n ...domains,\n {\n app_id: props.data.app_id,\n domainValue: \"\",\n newDomainValue: \"\",\n isEditable: true,\n isFromAPI: false,\n isDefaultDomain: false\n },\n ]);\n }\n }\n\n //删除域名\n const deleteRow = async (row, index) => {\n if (!row.isFromAPI) { //如果是点“添加”产生的记录行,则直接删除,不需要调用接口\n const newRows = [...domains]; // 复制状态数组\n newRows.splice(index, 1); // 删除指定索引的对象\n setDomains(newRows); // 更新状态数组\n }\n else { //表示记录是从接口获取的,删除时需要调用接口删除\n setShowRemoveDomain(true);\n setDeleteRowData(row);\n }\n }\n\n //编辑\n const editRow = (index) => {\n const newRows = [...domains]; // 复制状态数组\n newRows[index].isEditable = !newRows[index].isEditable; // 切换isEditable属性\n setDomains(newRows); // 更新状态数组\n }\n\n //取消编辑\n const cancelEditRow = (index) => {\n const newRows = [...domains]; // 复制状态数组\n newRows[index].newDomainValue = newRows[index].domainValue; // 用户有修改但是取消编辑,需要将数据还原\n newRows[index].isEditable = !newRows[index].isEditable; // 切换isEditable属性\n setDomains(newRows); // 更新状态数组\n }\n\n //设为默认域名\n const setDefaultDomain = async (index) => {\n const defaultDomain = domains[index].newDomainValue; //获取域名\n setLoading(true);\n try { //调用设定默认域名接口\n const response = await AppDomainSet({ app_id: props.data.app_id, domain: defaultDomain });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n setShowAlert(true);\n setAlertType(\"success\")\n setAlertMessage(\"设置成功!\");\n getDomains();\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n finally {\n setLoading(false);\n }\n }\n\n //保存\n const saveRow = async (row, index) => {\n const input = document.getElementsByName(`domain-${index}`)[0]; // 获取搜索框元素\n const value = input.value; // 获取搜索框的值\n const regex = /^(?!https?:\\/\\/)([\\da-z\\.-]+\\.)*([\\da-z\\.-]+)\\.([a-z\\.]{2,6})([\\/\\w \\.-]*)*\\/?$/; // 定义一个正则表达式,用来验证域名的格式\n if (value) {\n if (regex.test(value)) {\n if (row.isFromAPI) { //如果取到isFromAPI为true,表示要修改数据\n if (row.domainValue != row.newDomainValue) { //如果修改前的数据不等于修改后的数据,则调用修改接口\n setLoading(true);\n try {\n const response = await AppDomainUpdate({ app_id: props.data.app_id, domain_old: row.domainValue, domain_new: value });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n setShowAlert(true);\n setAlertType(\"success\")\n setAlertMessage(\"Success\");\n getDomains();\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n finally {\n setLoading(false);\n }\n }\n else {\n const newRows = [...domains]; // 复制状态数组\n newRows[index].isEditable = !newRows[index].isEditable; // 切换isEditable属性\n setDomains(newRows); // 更新状态数组\n }\n }\n else { //如果取到isFromAPI为false,表示是绑定数据 \n try {\n setLoading(true);\n const response = await AppDomainAdd({ app_id: props.data.app_id, domains: value });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n setShowAlert(true);\n setAlertType(\"success\")\n setAlertMessage(\"Success\");\n getDomains();\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n finally {\n setLoading(false);\n }\n }\n } else {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(_(\"Please enter the correct domain name and cannot start with http or https!\"));\n }\n }\n else {\n // 如果搜索框的值为空\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(_(\"Domain name cannot be empty\"));\n }\n }\n\n //处理输入\n function handleChange(index, e) {\n const newRows = [...domains]; // 复制状态数组\n newRows[index].newDomainValue = e.target.value; // 修改inputValue属性\n setDomains(newRows); // 更新状态数组\n }\n\n const handleAlertClose = (event, reason) => {\n if (reason === 'clickaway') {\n return;\n }\n setShowAlert(false);\n setAlertMessage(\"\");\n };\n\n //用于取消删除域名弹窗\n const cancelRemoveDomain = () => {\n setShowRemoveDomain(false);\n };\n\n const [isOpen, setIsOpen] = useState(false);\n const toggle = () => setIsOpen(!isOpen);\n\n const handleChangefordomin = (event, newExpanded) => {\n setIsExpandedForDomain(newExpanded);\n };\n\n const handleChangefornodomin = (event, newExpanded) => {\n setIsExpandedForNoDomain(newExpanded);\n };\n\n const handleChangeforaccount = (event, newExpanded) => {\n setIsExpandedForAccount(newExpanded);\n };\n\n return (\n <>\n \n {loading && (\n
\n
\n
\n )}\n \n \n }\n aria-controls=\"panel1a-content\"\n id=\"panel1a-header\"\n >\n \n \n \n 建议绑定域名访问应用,以免无域名造成应用异常\n \n \n \n \n \n \n \n \n \n \n \n {\n props.data?.config?.admin_domain_url && (\n \n \n \n )\n }\n \n \n \n \n \n {domains.map((row, index) => (\n \n \n \n handleChange(index, e)} />\n \n \n \n \n {row.isEditable && row.isFromAPI && (\n <>\n \n \n \n )}\n {row.isEditable && !row.isFromAPI && (\n\n \n )}\n {!row.isEditable && (\n <>\n \n \n \n \n {\n row.isDefaultDomain ? (\n {_(\"default\")} \n ) : (\n \n )\n }\n \n )}\n \n \n ))}\n \n \n \n \n \n 如要需要进行Https设置,或者更多自定义配置,请点击更多\n \n \n \n \n \n \n \n \n \n \n \n {\n (props.data?.config?.url && ((props.data?.config?.default_domain && !props.data?.app_replace_url) || (!props.data?.config?.default_domain))) &&\n \n }\n aria-controls=\"panel2a-content\"\n id=\"panel2a-header\"\n >\n \n \n 没有域名可以通过IP+端口的方式临时访问应用\n \n \n \n \n \n \n {\n props.data?.config?.url &&\n (\n \n )\n }\n {\n props.data?.config?.admin_url &&\n (\n \n )\n }\n \n \n \n \n \n }\n {\n props.data?.config?.admin_username &&\n \n }\n aria-controls=\"panel3a-content\"\n id=\"panel3a-header\"\n >\n \n \n \n 此应用程序是使用管理员帐户预先设置的,请立即更改管理员密码。初始凭据为:\n \n \n \n \n \n \n \n {/*

\n This app is pre-setup with an admin account,Please change the admin password immediately. The initial credentials are:\n

*/}\n \n \n UserName\n \n \n \n \n \n\n \n \n Password\n \n \n \n \n \n
\n
\n
\n
\n
\n }\n
\n
\n {\n showRemoveDomain &&\n \n }\n {\n showAlert &&\n \n \n {alertMessage}\n \n \n }\n \n );\n}\n\nexport default AppAccess;","import axios from 'axios';\nimport cockpit from \"cockpit\";\nimport React, { useEffect, useState } from 'react';\nimport { Badge, Button, Card, Col, Row, Table } from 'react-bootstrap';\nimport { useNavigate } from 'react-router-dom';\n\nconst _ = cockpit.gettext;\n\nconst AppContainer = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n const [containersInfo, setContainersInfo] = useState([]);\n const customer_name = props.data.customer_name;\n const [endpointsId, setEndpointsId] = useState(null);\n\n //通过Portainer的接口获取容器数据\n const getContainersData = async () => {\n try {\n let jwt = window.localStorage.getItem(\"portainer.JWT2\"); //获取存储在本地的JWT数据 \n\n //如果获取不到jwt,则模拟登录并写入新的jwt\n if (jwt === null) {\n const response = await axios.get('../container/config.json'); //从项目下读取配置文件\n if (response.status === 200) {\n let config = response.data;\n const { PORTAINER_USERNAME, PORTAINER_PASSWORD, PORTAINER_AUTH_URL, PORTAINER_HOME_PAGE } = config;\n\n //调用portainer的登录API,模拟登录\n const authResponse = await axios.post(PORTAINER_AUTH_URL, {\n username: PORTAINER_USERNAME,\n password: PORTAINER_PASSWORD\n });\n if (authResponse.status === 200) {\n //jwt = \"\\\"\" + authResponse.data.jwt + \"\\\"\";\n jwt = authResponse.data.jwt\n //let jwt_localStorage = \"\\\"\" + authResponse.data.jwt + \"\\\"\";\n window.localStorage.setItem('portainer\\.JWT2', jwt); //关键是将通过API登录后获取的jwt,存储到本地localStorage\n } else {\n console.error('Error:', authResponse);\n }\n }\n else {\n console.error('Error:', response);\n }\n }\n else {\n jwt = jwt.replace(/\"/g, '')\n }\n\n //从portainer接口获取endpoints\n const endpointsData = await axios.get('/portainer/api/endpoints', {\n headers: {\n 'Authorization': 'Bearer ' + jwt\n }\n });\n if (endpointsData.status === 200) {\n //应该可能会返回“远程”的endpoint,这里只获取“本地”endpoint,条件为URL包含'/var/run/docker.sock'\n const id = endpointsData.data.find(({ URL }) => URL.includes('/var/run/docker.sock')).Id;\n setEndpointsId(id)\n //调用接口获取\n const containersData = await axios.get(`/portainer/api/endpoints/${id}/docker/containers/json`, {\n headers: {\n 'Authorization': 'Bearer ' + jwt\n },\n params: {\n all: true,\n filters: JSON.stringify({ \"label\": [`com.docker.compose.project=${customer_name}`] })\n }\n })\n if (containersData.status === 200) {\n setContainersInfo(containersData.data);\n }\n else {\n console.error('Error:', containersData);\n }\n }\n else {\n console.error('Error:', endpointsData);\n }\n }\n catch (error) {\n console.error('Error:', error);\n //navigate(\"/error-500\");\n }\n }\n\n useEffect(() => {\n getContainersData();\n }, []);\n\n return (\n \n \n \n \n \n \n \n 本应用由如下容器组成,名称为 {customer_name} 的为主容器 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {containersInfo.map((container, index) => {\n return (\n \n \n \n \n \n \n \n \n \n );\n })}\n \n
NameStateActionsImageCreatedIp AddressPublished Ports
{container.Names?.[0]?.replace(/^\\/|\\/$/g, '')}\n \n {container.State}\n \n \n \n {' '}\n \n {\n container.State === \"running\" && (\n \n {' '}\n \n )\n }\n\n {container.Image}{new Date(container.Created * 1000).toLocaleString()}{container.NetworkSettings.Networks[container.HostConfig.NetworkMode].IPAddress}{container.Ports?.[0]?.PublicPort}:{container.Ports?.[0]?.PrivatePort}
\n
\n
\n \n
\n );\n}\n\nexport default AppContainer;","import cockpit from \"cockpit\";\nimport React from 'react';\nimport { Card, Col, Row, Table } from 'react-bootstrap';\nimport { useNavigate } from 'react-router-dom';\n\nconst _ = cockpit.gettext;\n\nconst AppOverview = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n\n return (\n \n \n \n \n \n \n \n {/* \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
应用名称:{props.data?.app_name}
应用版本:{props.data?.app_version}
应用端口:{props.data?.config?.port}
创建时间:{props.data?.create_time}
配置目录: {props.data?.config_path}
数据目录:{props.data?.volume_data}
*/}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
应用名称:{props.data?.app_name}应用版本:{props.data?.app_version}
应用端口:{props.data?.config?.port}创建时间:{props.data?.create_time}
配置目录: {props.data?.config_path}数据目录:{props.data?.volume_data}
\n
\n
\n \n
\n );\n}\n\nexport default AppOverview;","import classNames from 'classnames';\nimport cockpit from 'cockpit';\nimport React, { forwardRef, useImperativeHandle, useState } from 'react';\nimport { Alert, Button, Col, Modal, Row } from 'react-bootstrap';\nimport { useNavigate } from 'react-router-dom';\nimport Spinner from '../../components/Spinner';\nimport { AppStart, AppStop, AppUninstall } from '../../helpers';\n\nconst _ = cockpit.gettext;\n\n//卸载应用时的确定/取消弹窗\nconst UninstallConform = (props) => {\n const navigate = useNavigate(); //用于页面跳转\n const [disable, setDisable] = useState(false);//用于按钮禁用\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n\n function closeAllModals() {\n //关闭弹窗\n props.onClose();\n props.onCloseFatherModal();\n\n //更新主页APP的数据\n props.onDataChange();\n }\n\n return (\n \n \n

{_(\"Uninstall\")} {props.app.customer_name}

\n
\n \n {_(\"This will immediately uninstall\")} {props.app.customer_name} {_(\"and remove all its data.\")}\n
\n {showAlert && \n {alertMessage}\n }\n
\n
\n \n {\" \"}\n \n \n
\n );\n}\n\n//卸载应用选项卡\nconst Uninstall = forwardRef((props, ref): React$Element => {\n const [showUninstallConform, setShowUninstallConform] = useState(false);//用于确认卸载弹窗的标识\n const [disable, setDisable] = useState(false);//用于按钮禁用\n const navigate = useNavigate(); //用于页面跳转\n\n //用于显示确定/取消卸载应用的弹窗\n const handleClick = () => {\n setShowUninstallConform(true);\n };\n //用于关闭确定/取消卸载应用的弹窗\n const handleClose = () => {\n setShowUninstallConform(false);\n };\n\n //设置按钮禁用\n const setButtonDisable = () => {\n setDisable(true);\n };\n\n //设置按钮启用\n const setButtonEnable = () => {\n setDisable(false);\n };\n\n //提供给父组件调用的方法,用于在父组件中调用子组件的方法\n useImperativeHandle(ref, () => ({\n setButtonDisable,\n setButtonEnable,\n }));\n\n return (\n <>\n \n \n \n

\n {_(\"Apps can be stopped to conserve server resources instead of uninstalling.\")}\n

\n {props.data.status === \"running\" ?\n \n :\n \n }\n \n
\n
\n \n \n \n

\n {_(\"This will uninstall the app immediately and remove all its data.The app will be inaccessible.\")}\n

\n \n \n
\n {showUninstallConform && }\n \n );\n});\n\nexport default Uninstall;","import classnames from \"classnames\";\nimport cockpit from 'cockpit';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { Button, Col, Modal, Nav, OverlayTrigger, Row, Tab, Tooltip } from 'react-bootstrap';\nimport { Link, useNavigate } from 'react-router-dom';\nimport DefaultImg from '../assets/images/default.png';\nimport Spinner from '../components/Spinner';\nimport { AppRestart, AppStart, AppStop } from '../helpers';\nimport AppAccess from './appdetailtabs/appaccess';\nimport AppContainer from './appdetailtabs/appcontainer';\nimport AppOverview from './appdetailtabs/appoverview';\nimport Uninstall from './appdetailtabs/appuninstall';\n\nconst _ = cockpit.gettext;\n\nconst AppDetailModal = (props): React$Element => {\n const [restartDisable, setRestartDisable] = useState(false);//用于重启按钮的按钮禁用\n const [buttonDisable, setButtonDisable] = useState(false); //用于启动/停止按钮禁用\n const [currentApp, setCurrentApp] = useState(props.current_app);\n const [startAppLoading, setStartAppLoading] = useState(false); //用户显示启动应用的加载状态\n const [stopAppLoading, setStopAppLoading] = useState(false); //用户显示停止时应用的加载状态\n const [restartAppLoading, setRestartAppLoading] = useState(false); //用户显示重启时应用的加载状态\n const navigate = useNavigate(); //用于页面跳转\n const childRef = useRef();\n\n //设置卸载页面的按钮禁用\n const setUninstallButtonDisable = () => {\n // 通过ref调用子组件的方法\n childRef.current.setButtonDisable();\n };\n\n //设置卸载页面的按钮启用\n const setUninstallButtonEnable = () => {\n // 通过ref调用子组件的方法\n childRef.current.setButtonEnable();\n };\n\n //设置启动/停止按钮禁用,用于传递给卸载页面\n const setAppdetailButtonDisable = () => {\n setButtonDisable(true);\n setRestartDisable(true);\n };\n //设置启动/停止按钮启用,用于传递给卸载页面\n const setAppdetailButtonEnable = () => {\n setButtonDisable(false);\n setRestartDisable(false);\n };\n\n useEffect(() => {\n setCurrentApp(props.current_app);\n }, [props.current_app]);\n\n const tabContents = [\n {\n id: '1',\n title: _(\"Overview\"),\n icon: 'mdi mdi-account-circle',\n text: ,\n },\n {\n id: '2',\n title: _(\"Access\"),\n icon: 'mdi mdi-account-circle',\n text: ,\n },\n {\n id: '3',\n title: _(\"Container\"),\n icon: 'mdi mdi-account-circle',\n text: ,\n },\n {\n id: '4',\n title: _(\"Uninstall\"),\n icon: 'mdi mdi-cog-outline',\n text: ,\n },\n ];\n\n return (\n currentApp && \n \n
\n
\n (e.target.src = DefaultImg)}\n />\n
\n
\n

\n {currentApp.customer_name}\n

\n
\n {currentApp.status}\n
\n
\n
\n {\n currentApp.status === \"exited\" &&\n \n {_(\"Start App\")}\n \n }>\n \n \n }\n {\n currentApp.status === \"running\" &&\n \n {_(\"Stop App\")}\n \n }>\n \n \n }\n \n {_(\"Restart App\")}\n \n }>\n \n \n {\n currentApp.status === \"running\" &&\n \n {_(\"Terminal\")}\n \n }>\n \n {' '}\n \n \n }\n {\n \n {_(\"Documentation\")}\n \n }>\n \n {' '}\n \n \n }\n
\n
\n
\n \n \n \n \n \n \n \n {tabContents.map((tab, index) => {\n return (\n \n \n \n {tab.text}\n \n \n \n );\n })}\n \n \n \n \n
\n );\n}\n\nexport default AppDetailModal;","import MuiAlert from '@mui/material/Alert';\nimport Snackbar from '@mui/material/Snackbar';\nimport classNames from 'classnames';\nimport cockpit from 'cockpit';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { Alert, Button, Col, Dropdown, Modal, Row } from 'react-bootstrap';\nimport { Link, Navigate, useNavigate } from 'react-router-dom';\nimport DefaultImg from '../assets/images/default.png';\nimport FormInput from '../components/FormInput';\nimport Spinner from '../components/Spinner';\nimport { AppList, AppRestart, AppStart, AppStop, AppUninstall } from '../helpers';\nimport AppDetailModal from './appdetail';\n\nconst _ = cockpit.gettext;\n\nconst MyMuiAlert = React.forwardRef(function Alert(props, ref) {\n return ;\n});\n\n//应用状态为failed时,显示错误消息\nconst ErrorInfoModal = (props): React$Element => {\n return (\n \n \n

{_(\"This is the error message for\")} {props.app.customer_name}

\n
\n \n {\n props.app.status_reason &&\n <>\n {_(\"Code: \")}{props.app.status_reason.Code} \n {_(\"Message: \")}{props.app.status_reason.Message} \n {_(\"Detail: \")}{props.app.status_reason.Detail} \n \n }\n \n \n \n \n \n
\n );\n}\n\n//删除应用弹窗\nconst UninstallConform = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n const [disable, setDisable] = useState(false);//用于按钮禁用\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n\n function closeAllModals() {\n //关闭所有弹窗\n props.onClose();\n props.onDataChange();\n }\n\n return (\n \n \n

{_(\"Remove\")} {props.app.customer_name}

\n
\n \n {_(\"This will immediately remove\")} {props.app.customer_name} {_(\"and remove all its data.\")}\n
\n {showAlert && \n {alertMessage}\n }\n
\n
\n \n {\" \"}\n \n \n
\n );\n}\n\nconst MyApps = (): React$Element => {\n const [showModal, setShowModal] = useState(false); //用于显示状态为running或exited弹窗的标识\n const [showUninstallConform, setShowUninstallConform] = useState(false); //用于显示状态为failed时显示确定删除的弹窗\n const [showErrorInfo, setShowErrorInfo] = useState(false); //用于显示状态为failed时显示错误消息的弹窗\n const [showOtherAppModal, setShowOtherAppModal] = useState(false); //用于显示非websoft9应用的的弹窗的标识\n const [isLoading, setIsLoading] = useState(false); //用于非官方应用启动 停止 重启 卸载时,显示加载中\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n const [alertType, setAlertType] = useState(\"\");//用于确定弹窗的类型:error\\success\n\n const [selectedApp, setSelectedApp] = useState(null); //用于存储被选中的产品(点击应用详情时使用)\n const [apps, setApps] = useState([]); //所有“我的应用”\n const [statusApps, setStatusApps] = useState([]);//根据状态筛选的应用\n const [searchString, setSearchString] = useState(\"\");//用户输入的筛选字符串\n const [selectedStatus, setSelectedStatus] = useState(\"all\"); //用于存储用户筛选应用状态的标识\n const [progressId, setProgressId] = useState([]); //用于存储当前正在安装的应用ID,用于做进度查询的参数\n\n const selectedAppRef = useRef(selectedApp);\n const navigate = useNavigate(); //用于页面跳转\n\n const [code, setCode] = useState(0);\n const [error, setError] = useState(null);\n const [errorDetails, setErrorDetails] = useState(null)\n const [loading, setLoading] = useState(false);\n\n const menuItems = (appStatus) => {\n return [\n { label: 'Stop', icon: 'dripicons-power noti-icon', condition: appStatus === \"running\" },\n { label: 'Start', icon: 'dripicons-media-play noti-icon', condition: appStatus === \"exited\" },\n { label: 'Restart', icon: 'dripicons-clockwise noti-icon', condition: appStatus === \"running\" || appStatus === \"exited\" },\n {\n label: 'Uninstall',\n icon: 'dripicons-trash noti-icon',\n variant: 'text-danger',\n hasDivider: true,\n condition: true\n }\n ]\n };\n\n let timer;\n\n //获取所有已安装的App(只执行一次)\n const getAllAppsOnce = () => {\n AppList().then((response) => {\n if (response.data.Error) {\n setCode(response.data.Error.Code);\n setError(response.data.Error.Message);\n setErrorDetails(response.data.Error.Details);\n }\n else {\n const newApps = response.data.ResponseData;\n setApps(newApps);\n if (selectedAppRef.current) {\n const updatedApp = newApps.find(\n (app) => app.app_id === selectedAppRef.current.app_id\n );\n setSelectedApp(updatedApp);\n }\n }\n setLoading(false);\n }).catch((error) => {\n \n });\n }\n\n //获取所有已安装的App(每隔5秒执行一次)\n const getAllApps = () => {\n setLoading(true);\n //调用接口获取已经安装应用\n timer = setInterval(() => {\n AppList().then((response) => {\n if (response.data.Error) {\n setCode(response.data.Error.Code);\n setError(response.data.Error.Message);\n setErrorDetails(response.data.Error.Details);\n }\n else {\n const newApps = response.data.ResponseData;\n setApps(newApps);\n if (selectedAppRef.current) {\n const updatedApp = newApps.find(\n (app) => app.app_id === selectedAppRef.current.app_id\n );\n setSelectedApp(updatedApp);\n }\n }\n setLoading(false);\n }).catch((error) => {\n \n });\n }, 5000);\n return () => clearInterval(timer);\n }\n\n useEffect(() => {\n getAllAppsOnce();\n }, []);\n\n useEffect(() => {\n getAllApps();\n }, []);\n\n useEffect(() => {\n selectedAppRef.current = selectedApp;\n }, [selectedApp]);\n\n useEffect(() => {\n return () => clearInterval(timer); //用于清除定时器\n }, []);\n\n if (loading) return ;\n if (code) return

Code : ${code}

;\n if (error) return

Error : ${error}

;\n\n //用于根据应用“状态”过滤应用\n const changeStatus = (selectedStatus) => {\n setSelectedStatus(selectedStatus);\n };\n\n //用于根据用户输入搜索应用\n const handleInputChange = (searchString) => {\n setSearchString(searchString);\n }\n\n //用于用户点击应用详情\n const handleClick = (app) => {\n setSelectedApp(app);\n setShowModal(true);\n };\n\n //用于应用为failed时删除应用\n const deleteApp = (app) => {\n setSelectedApp(app);\n setShowUninstallConform(true);\n };\n\n //用于应用为failed时显示错误信息弹窗\n const showError = (app) => {\n setSelectedApp(app);\n setShowErrorInfo(true);\n };\n\n //用于关闭显示错误消息弹窗\n const cancelShowError = () => {\n setShowErrorInfo(false);\n };\n\n //用于取消删除应用\n const canceldeleteApp = () => {\n setShowUninstallConform(false);\n };\n\n //用于关闭应用详情的弹窗\n const handleClose = () => {\n setShowModal(false);\n setSelectedApp(null);\n };\n\n const handleAlertClose = (event, reason) => {\n if (reason === 'clickaway') {\n return;\n }\n setShowAlert(false);\n setAlertMessage(\"\");\n };\n\n //用于立即刷新数据\n const handleDataChange = () => {\n getAllAppsOnce();\n };\n\n //非官方应用的操作\n const appActions = {\n \"Stop\": {\n api: AppStop,\n },\n \"Start\": {\n api: AppStart,\n },\n \"Restart\": {\n api: AppRestart,\n },\n \"Uninstall\": {\n api: AppUninstall,\n }\n }\n\n //处理非官方应用的操作\n const NoOfficialAppClick = async (label, app) => {\n if (label === \"Uninstall\") {\n setSelectedApp(app);\n setShowUninstallConform(true);\n return;\n }\n\n setIsLoading(true);\n try {\n const response = await appActions[label].api({ app_id: app.app_id });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n setShowAlert(true);\n setAlertType(\"success\")\n setAlertMessage(\"执行成功\");\n handleDataChange();\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n finally {\n setIsLoading(false);\n }\n }\n\n return (\n <>\n \n \n {_(\"My Apps\")}\n \n \n changeStatus(e.target.value)} >\n \n \n \n \n \n \n \n \n \n \n handleInputChange(e.target.value)}\n />\n \n \n \n \n \n \n {\n [true, false].map((official_app) => {\n // 过滤出符合条件的apps\n const filteredApps = apps.filter((app) => selectedStatus === 'all' || app.status === selectedStatus)\n .filter((app) => app.official_app === official_app)\n .filter((app) => app.customer_name.includes(searchString));\n // 如果有数据,返回一个Row组件,否则返回null\n return filteredApps.length > 0 ? (\n \n {/* 根据official_app的值显示不同的标题 */}\n

{official_app ? _(\"Websoft9's Apps\") : _(\"Other Apps\")}

\n {filteredApps.map((app, i) => (\n \n
\n {\n (!official_app && (app.status === \"running\" || app.status === \"exited\")) &&\n \n \n {isLoading ? : }\n \n \n {(menuItems(app.status) || []).map((item, index) => {\n return (\n \n {item.condition && item.hasDivider && }\n {\n item.condition && NoOfficialAppClick(item.label, app)}\n >\n {item.icon && }\n {/* {isLoading ? : item.icon && } */}\n {item.label}\n \n }\n \n );\n })}\n \n \n }\n {\n (official_app && (app.status === \"running\" || app.status === \"exited\")) &&\n <>\n
{ handleClick(app) }}>\n \n
\n
\n \n }\n {\n (official_app && app.status === \"installing\") &&\n <>\n
\n \n
\n
\n \n }\n {\n app.status === 'failed' &&\n <>\n
\n { showError(app) }}>\n { deleteApp(app) }}>\n
\n
\n \n }\n
\n (e.target.src = DefaultImg)}\n />\n
\n
\n

\n {app.customer_name}\n

\n
\n {app.status && app.status === \"installing\" && }\n {\" \"}\n
{app.status}
\n
\n
\n
\n \n ))}\n
\n ) : null;\n })\n }\n {\n showModal && \n }\n {\n showUninstallConform &&\n \n }\n {\n showErrorInfo &&\n \n }\n {\n showAlert &&\n \n \n {alertMessage}\n \n \n }\n \n );\n};\n\nexport default MyApps;\n"],"names":["PasswordInput","_ref","name","placeholder","refCallback","errors","register","className","value","readOnly","_useState","useState","_useState2","_slicedToArray","showPassword","setShowPassword","_jsx","_Fragment","children","_jsxs","InputGroup","Form","_objectSpread","type","id","as","ref","r","isInvalid","autoComplete","defaultValue","classNames","onClick","_ref2","label","labelClassName","containerClass","otherProps","_objectWithoutProperties","_excluded","comp","Spinner","props","Tag","tag","color","size","role","concat","_defineProperty","defaultProps","axios","response","error","message","status","Navigate","data","Promise","reject","api","_createClass","APICore","_classCallCheck","get","url","params","queryString","Object","keys","map","key","join","create","AppInstall","AppList","AppUninstall","AppStop","AppStart","AppRestart","AppDomainList","AppDomainDelete","AppDomainUpdate","AppDomainAdd","AppDomainSet","_","cockpit","MyMuiAlert","React","MuiAlert","elevation","variant","RemoveDomain","navigate","useNavigate","disable","setDisable","_useState3","_useState4","showAlert","setShowAlert","_useState5","_useState6","alertMessage","setAlertMessage","Modal","show","showConform","onHide","onClose","scrollable","backdrop","style","backgroundColor","margin","deleteRowData","domainValue","Alert","Button","disabled","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","app_id","domain","sent","Error","Message","onDataChange","t0","finish","stop","_props$data","_props$data$config","_props$data2","_props$data2$config","_props$data3","_props$data3$config","_props$data4","_props$data4$config","_props$data5","_props$data6","_props$data6$config","_props$data7","_props$data7$config","_props$data8","_props$data8$config","_props$data9","_props$data9$config","_props$data10","_props$data10$config","_props$data11","_props$data11$config","_props$data12","_props$data12$config","_props$data13","_props$data13$config","_props$data14","_props$data14$config","_props$data15","_props$data15$config","_useState7","_useState8","domains","setDomains","_useState9","_useState10","loading","setLoading","_useState11","_useState12","_useState13","_useState14","_useState15","_useState16","alertType","setAlertType","_useState17","_useState18","showRemoveDomain","setShowRemoveDomain","_useState19","_useState20","setDeleteRowData","_useState21","_useState22","_React$useState","_React$useState2","isExpandedForDomain","setIsExpandedForDomain","_React$useState3","_React$useState4","isExpandedForNoDomain","setIsExpandedForNoDomain","_React$useState5","_React$useState6","isExpandedForAccount","setIsExpandedForAccount","getDomains","_callee2","responseData","defaultdomain","resturnDomains","_context2","ResponseData","Domain_set","default_domain","newDomainValue","isEditable","isFromAPI","isDefaultDomain","apply","arguments","useEffect","deleteRow","_ref3","_callee3","row","index","newRows","_context3","_toConsumableArray","splice","_x","_x2","setDefaultDomain","_ref4","_callee4","defaultDomain","_context4","_x3","saveRow","_ref5","_callee5","input","regex","_response","_context5","document","getElementsByName","test","domain_old","domain_new","t1","_x4","_x5","handleAlertClose","event","reason","_useState23","_useState24","Card","zIndex","Accordion","defaultExpanded","onChange","newExpanded","AccordionSummary","expandIcon","ExpandMoreIcon","Typography","display","AccordionDetails","Row","Col","xs","md","length","config","admin_domain_url","href","target","_callee6","_context6","FormInput","e","handleChange","padding","cancelEditRow","editRow","Badge","sm","app_replace_url","admin_url","admin_username","htmlFor","column","admin_password","Snackbar","open","autoHideDuration","anchorOrigin","vertical","horizontal","severity","sx","width","containersInfo","setContainersInfo","customer_name","endpointsId","setEndpointsId","getContainersData","jwt","PORTAINER_USERNAME","PORTAINER_PASSWORD","PORTAINER_AUTH_URL","authResponse","endpointsData","containersData","window","localStorage","getItem","PORTAINER_HOME_PAGE","username","password","setItem","console","replace","headers","find","URL","includes","Id","all","filters","JSON","stringify","Table","textAlign","container","_container$Names","_container$Names$","_container$Ports","_container$Ports$","_container$Ports2","_container$Ports2$","Names","State","title","Image","Date","Created","toLocaleString","NetworkSettings","Networks","HostConfig","NetworkMode","IPAddress","Ports","PublicPort","PrivatePort","responsive","bordered","fontWeight","app_name","app_version","port","create_time","config_path","volume_data","UninstallConform","closeButton","app","onCloseFatherModal","forwardRef","showUninstallConform","setShowUninstallConform","setButtonDisable","setButtonEnable","useImperativeHandle","marginBottom","disabledButton","enableButton","restartDisable","setRestartDisable","buttonDisable","current_app","currentApp","setCurrentApp","startAppLoading","setStartAppLoading","stopAppLoading","setStopAppLoading","restartAppLoading","setRestartAppLoading","childRef","useRef","setUninstallButtonDisable","current","setUninstallButtonEnable","tabContents","icon","text","AppOverview","AppAccess","AppContainer","Uninstall","showFlag","dialogClassName","alignItems","src","image_url","alt","onError","DefaultImg","marginTop","flexGrow","justifyContent","OverlayTrigger","placement","overlay","Tooltip","borderRadius","marginRight","Link","to","pathname","search","borderColor","Tab","defaultActiveKey","Nav","tab","renderElement","eventKey","classnames","height","ErrorInfoModal","status_reason","Code","Detail","timer","showModal","setShowModal","showErrorInfo","setShowErrorInfo","isLoading","setIsLoading","selectedApp","setSelectedApp","_useState25","_useState26","apps","setApps","_useState27","_useState28","_useState29","_useState30","searchString","setSearchString","_useState31","_useState32","selectedStatus","setSelectedStatus","_useState33","_useState34","selectedAppRef","_useState35","_useState36","code","setCode","_useState37","_useState38","setError","_useState39","_useState40","setErrorDetails","_useState41","_useState42","getAllAppsOnce","then","Details","newApps","updatedApp","catch","setInterval","clearInterval","handleDataChange","appActions","NoOfficialAppClick","abrupt","fontSize","changeStatus","handleInputChange","location","reload","official_app","filteredApps","filter","paddingTop","i","xxl","Dropdown","align","appStatus","condition","hasDivider","item","handleClick","paddingRight","showError","deleteApp","AppDetailModal"],"sourceRoot":""} \ No newline at end of file diff --git a/src/apps/build/static/js/613.beab528f.chunk.js b/src/apps/build/static/js/613.beab528f.chunk.js new file mode 100644 index 000000000..8518f4472 --- /dev/null +++ b/src/apps/build/static/js/613.beab528f.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkapps=self.webpackChunkapps||[]).push([[613],{3131:function(e,n,a){var t=a(5987),r=a(1413),s=a(9439),i=a(1694),l=a.n(i),o=a(2791),c=a(9410),d=a(9795),u=a(184),p=["label","type","name","value","readOnly","placeholder","register","errors","className","labelClassName","containerClass","refCallback","children"],h=function(e){var n=e.name,a=e.placeholder,t=e.refCallback,i=e.errors,p=e.register,h=e.className,x=e.value,m=e.readOnly,f=(0,o.useState)(!1),j=(0,s.Z)(f,2),Z=j[0],g=j[1];return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(c.Z,{className:"mb-0",children:[(0,u.jsx)(d.Z.Control,(0,r.Z)((0,r.Z)({type:Z?"text":"password",placeholder:a,name:n,id:n,as:"input",ref:function(e){t&&t(e)},className:h,isInvalid:!(!i||!i[n])},p?p(n):{}),{},{autoComplete:n,defaultValue:x,readOnly:m})),(0,u.jsx)("div",{className:l()("input-group-text","input-group-password",{"show-password":Z}),"data-password":Z?"true":"false",children:(0,u.jsx)("span",{className:"password-eye",onClick:function(){g(!Z)}})})]})})};n.Z=function(e){var n=e.label,a=e.type,s=e.name,i=e.value,l=e.readOnly,o=e.placeholder,c=e.register,x=e.errors,m=e.className,f=e.labelClassName,j=e.containerClass,Z=e.refCallback,g=e.children,v=(0,t.Z)(e,p),b="textarea"===a?"textarea":"select"===a?"select":"input";return(0,u.jsx)(u.Fragment,{children:"hidden"===a?(0,u.jsx)("input",(0,r.Z)((0,r.Z)({type:a,name:s},c?c(s):{}),v)):(0,u.jsx)(u.Fragment,{children:"password"===a?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d.Z.Group,{className:j,children:[n?(0,u.jsxs)(u.Fragment,{children:[" ",(0,u.jsx)(d.Z.Label,{className:f,children:n})," ",g," "]}):null,(0,u.jsx)(h,{name:s,placeholder:o,refCallback:Z,errors:x,register:c,className:m,value:i,readOnly:l}),x&&x[s]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",className:"d-block",children:x[s].message}):null]})}):(0,u.jsx)(u.Fragment,{children:"select"===a?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d.Z.Group,{className:j,children:[n?(0,u.jsx)(d.Z.Label,{className:f,children:n}):null,(0,u.jsx)(d.Z.Select,(0,r.Z)((0,r.Z)((0,r.Z)({type:a,label:n,name:s,id:s,ref:function(e){Z&&Z(e)},comp:b,className:m,isInvalid:!(!x||!x[s])},c?c(s):{}),v),{},{children:g})),x&&x[s]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",children:x[s].message}):null]})}):(0,u.jsx)(u.Fragment,{children:"checkbox"===a||"radio"===a?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d.Z.Group,{className:j,children:[(0,u.jsx)(d.Z.Check,(0,r.Z)((0,r.Z)({type:a,label:n,name:s,id:s,ref:function(e){Z&&Z(e)},className:m,isInvalid:!(!x||!x[s])},c?c(s):{}),v)),x&&x[s]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",children:x[s].message}):null]})}):(0,u.jsxs)(d.Z.Group,{className:j,children:[n?(0,u.jsx)(d.Z.Label,{className:f,children:n}):null,(0,u.jsx)(d.Z.Control,(0,r.Z)((0,r.Z)((0,r.Z)({type:a,placeholder:o,value:i,name:s,id:s,as:b,ref:function(e){Z&&Z(e)},className:m,isInvalid:!(!x||!x[s])},c?c(s):{}),v),{},{autoComplete:s,children:g||null})),x&&x[s]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",children:x[s].message}):null]})})})})})}},2733:function(e,n,a){var t=a(4942),r=(a(2791),a(1694)),s=a.n(r),i=a(184),l=function(e){var n=e.children||null,a=e.tag||"div",r=e.color||"secondary",l=e.size||"";return(0,i.jsx)(a,{role:"status",className:s()({"spinner-border":"bordered"===e.type,"spinner-grow":"grow"===e.type},["text-".concat(r)],(0,t.Z)({},"avatar-".concat(l),l),e.className),children:n})};l.defaultProps={tag:"div",type:"bordered"},n.Z=l},165:function(e,n,a){a.d(n,{qL:function(){return j},pd:function(){return m},dy:function(){return x},qs:function(){return Z},_6:function(){return f},rl:function(){return o},u3:function(){return c},h1:function(){return h},P3:function(){return p},pO:function(){return u},mx:function(){return d}});var t=a(3144),r=a(5671),s=a(1243),i=a(7689);a(184);s.Z.defaults.headers.post["Content-Type"]="application/json",s.Z.defaults.headers.get["Content-Type"]="application/json",s.Z.defaults.headers={"Cache-Control":"no-cache",Pragma:"no-cache",Expires:"0"},s.Z.interceptors.response.use((function(e){return e}),(function(e){var n;if(e&&e.response&&404===e.response.status)i.Fg;else{if(!e||!e.response||500!==e.response.status)return n=e.response&&e.response.data?e.response.data.message:e.message||e,Promise.reject(n);i.Fg}}));var l=new((0,t.Z)((function e(){(0,r.Z)(this,e),this.get=function(e,n){var a;if(n){var t=n?Object.keys(n).map((function(e){return e+"="+n[e]})).join("&"):"";a=s.Z.get("".concat(e,"?").concat(t),n)}else a=s.Z.get("".concat(e),n);return a},this.create=function(e,n){return s.Z.post(e,n)}})));function o(e){return l.get("".concat("/AppManage/AppInstall"),e)}function c(e){return l.get("".concat("/AppManage/AppList"),e)}function d(e){return l.get("".concat("/AppManage/AppUninstall"),e)}function u(e){return l.get("".concat("/AppManage/AppStop"),e)}function p(e){return l.get("".concat("/AppManage/AppStart"),e)}function h(e){return l.get("".concat("/AppManage/AppRestart"),e)}function x(e){return l.get("".concat("/AppManage/AppDomainList"),e)}function m(e){return l.get("".concat("/AppManage/AppDomainDelete"),e)}function f(e){return l.get("".concat("/AppManage/AppDomainUpdate"),e)}function j(e){return l.get("".concat("/AppManage/AppDomainAdd"),e)}function Z(e){return l.get("".concat("/AppManage/AppDomainSet"),e)}},3422:function(e,n,a){a.r(n),a.d(n,{default:function(){return re}});var t=a(4165),r=a(5861),s=a(9439),i=a(1413),l=a(4358),o=a(3971),c=a(1694),d=a.n(c),u=a(7346),p=a.n(u),h=a(2791),x=a(2025),m=a(3360),f=a(2469),j=a(9743),Z=a(2677),g=a(42),v=a(7689),b=a(1087),y=a.p+"static/media/default.50b14dd03b88a6d9022a.png",N=a(3131),w=a(2733),k=a(165),C=a(5862),_=a(2576),S=a(1752),E=a(4533),D=a(3433),A=a(1131),F=a(1473),R=a(3721),I=a(5818),P=a(1123),M=a(9627),B=a(5736),H=a(9795),O=a(184),T=p().gettext,z=h.forwardRef((function(e,n){return(0,O.jsx)(l.Z,(0,i.Z)({elevation:6,ref:n,variant:"filled"},e))})),U=function(e){var n=(0,v.s0)(),a=(0,h.useState)(!1),i=(0,s.Z)(a,2),l=i[0],o=i[1],c=(0,h.useState)(!1),u=(0,s.Z)(c,2),p=u[0],j=u[1],Z=(0,h.useState)(""),g=(0,s.Z)(Z,2),b=g[0],y=g[1];return(0,O.jsxs)(x.Z,{show:e.showConform,onHide:e.onClose,size:"lg",scrollable:"true",backdrop:"static",style:{backgroundColor:"rgba(0,0,0,0.8)"},children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,className:d()("modal-colored-header","bg-warning"),children:(0,O.jsx)("h4",{children:T("Delete domain binding")})}),(0,O.jsxs)(x.Z.Body,{className:"row",children:[(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[T("Are you sure you want to delete the domain for:")," ",e.deleteRowData.domainValue," ? "]}),(0,O.jsx)("div",{children:p&&(0,O.jsx)(f.Z,{variant:"danger",className:"my-2",children:b})})]}),(0,O.jsxs)(x.Z.Footer,{children:[(0,O.jsx)(m.Z,{variant:"light",onClick:e.onClose,children:T("Close")})," ",(0,O.jsxs)(m.Z,{disabled:l,variant:"warning",onClick:(0,r.Z)((0,t.Z)().mark((function a(){var r;return(0,t.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,o(!0),a.next=4,(0,k.pd)({app_id:e.deleteRowData.app_id,domain:e.deleteRowData.domainValue});case 4:(r=a.sent).data.Error?(j(!0),y(r.data.Error.Message)):(o(!1),e.onClose(),e.onDataChange()),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),n("/error-500");case 11:return a.prev=11,o(!1),a.finish(11);case 14:case"end":return a.stop()}}),a,null,[[0,8,11,14]])}))),children:[l&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",T("Delete")]})]})]})},V=function(e){var n,a,i,l,c,d,u,p,x,f,g,b,y,w,C,_,S,E,V,L,W,G,$,q,J,K,Q,X,Y,ee=(0,v.s0)(),ne=(0,h.useState)([]),ae=(0,s.Z)(ne,2),te=ae[0],re=ae[1],se=(0,h.useState)(!1),ie=(0,s.Z)(se,2),le=ie[0],oe=ie[1],ce=(0,h.useState)(!1),de=(0,s.Z)(ce,2),ue=de[0],pe=de[1],he=(0,h.useState)(""),xe=(0,s.Z)(he,2),me=xe[0],fe=xe[1],je=(0,h.useState)(""),Ze=(0,s.Z)(je,2),ge=Ze[0],ve=Ze[1],be=(0,h.useState)(!1),ye=(0,s.Z)(be,2),Ne=ye[0],we=ye[1],ke=(0,h.useState)(null),Ce=(0,s.Z)(ke,2),_e=Ce[0],Se=Ce[1],Ee=(0,h.useState)(""),De=(0,s.Z)(Ee,2),Ae=(De[0],De[1],h.useState(!0)),Fe=(0,s.Z)(Ae,2),Re=Fe[0],Ie=Fe[1],Pe=h.useState(!0),Me=(0,s.Z)(Pe,2),Be=Me[0],He=Me[1],Oe=h.useState(!1),Te=(0,s.Z)(Oe,2),ze=Te[0],Ue=Te[1],Ve=function(){var n=(0,r.Z)((0,t.Z)().mark((function n(){var a,r,s,i;return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,k.dy)({app_id:e.data.app_id});case 3:(a=n.sent).data.Error?(pe(!0),ve("error"),fe(a.data.Error.Message)):(r=a.data.ResponseData.Domain_set,s=r.default_domain,i=r.domains.map((function(n){return{app_id:e.data.app_id,domainValue:n,newDomainValue:n,isEditable:!1,isFromAPI:!0,isDefaultDomain:n===s}})),re(i)),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),ee("/error-500");case 10:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(){return n.apply(this,arguments)}}();(0,h.useEffect)((function(){Ve()}),[]);var Le=function(){var e=(0,r.Z)((0,t.Z)().mark((function e(n,a){var r;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.isFromAPI?(we(!0),Se(n)):((r=(0,D.Z)(te)).splice(a,1),re(r));case 1:case"end":return e.stop()}}),e)})));return function(n,a){return e.apply(this,arguments)}}(),We=function(){var n=(0,r.Z)((0,t.Z)().mark((function n(a){var r,s;return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=te[a].newDomainValue,oe(!0),n.prev=2,n.next=5,(0,k.qs)({app_id:e.data.app_id,domain:r});case 5:(s=n.sent).data.Error?(pe(!0),ve("error"),fe(s.data.Error.Message)):(pe(!0),ve("success"),fe("\u8bbe\u7f6e\u6210\u529f!"),Ve()),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),ee("/error-500");case 12:return n.prev=12,oe(!1),n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[2,9,12,15]])})));return function(e){return n.apply(this,arguments)}}(),Ge=function(){var n=(0,r.Z)((0,t.Z)().mark((function n(a,r){var s,i,l,o,c,d;return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=document.getElementsByName("domain-".concat(r))[0],i=s.value,l=/^(?!https?:\/\/)([\da-z\.-]+\.)*([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/,!i){n.next=49;break}if(!l.test(i)){n.next=44;break}if(!a.isFromAPI){n.next=28;break}if(a.domainValue==a.newDomainValue){n.next=23;break}return oe(!0),n.prev=8,n.next=11,(0,k._6)({app_id:e.data.app_id,domain_old:a.domainValue,domain_new:i});case 11:(o=n.sent).data.Error?(pe(!0),ve("error"),fe(o.data.Error.Message)):(pe(!0),ve("success"),fe("Success"),Ve()),n.next=18;break;case 15:n.prev=15,n.t0=n.catch(8),ee("/error-500");case 18:return n.prev=18,oe(!1),n.finish(18);case 21:n.next=26;break;case 23:(c=(0,D.Z)(te))[r].isEditable=!c[r].isEditable,re(c);case 26:n.next=42;break;case 28:return n.prev=28,oe(!0),n.next=32,(0,k.qL)({app_id:e.data.app_id,domains:i});case 32:(d=n.sent).data.Error?(pe(!0),ve("error"),fe(d.data.Error.Message)):(pe(!0),ve("success"),fe("Success"),Ve()),n.next=39;break;case 36:n.prev=36,n.t1=n.catch(28),ee("/error-500");case 39:return n.prev=39,oe(!1),n.finish(39);case 42:n.next=47;break;case 44:pe(!0),ve("error"),fe(T("Please enter the correct domain name and cannot start with http or https!"));case 47:n.next=52;break;case 49:pe(!0),ve("error"),fe(T("Domain name cannot be empty"));case 52:case"end":return n.stop()}}),n,null,[[8,15,18,21],[28,36,39,42]])})));return function(e,a){return n.apply(this,arguments)}}();var $e=function(e,n){"clickaway"!==n&&(pe(!1),fe(""))},qe=(0,h.useState)(!1),Je=(0,s.Z)(qe,2);Je[0],Je[1];return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(M.Z,{children:[le&&(0,O.jsx)("div",{className:"card-disabled",style:{zIndex:999},children:(0,O.jsx)("div",{className:"card-portlets-loader"})}),(0,O.jsxs)(M.Z.Body,{children:[(0,O.jsxs)(F.Z,{defaultExpanded:!0,onChange:function(e,n){Ie(n)},className:"mb-2",children:[(0,O.jsx)(I.Z,{expandIcon:(0,O.jsx)(A.Z,{}),"aria-controls":"panel1a-content",id:"panel1a-header",children:(0,O.jsxs)(P.Z,{children:[(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:"\u57df\u540d\u8bbf\u95ee"}),(0,O.jsx)("span",{className:"me-2 fs-6",style:{display:Re?"inline":"none"},children:"\u5efa\u8bae\u7ed1\u5b9a\u57df\u540d\u8bbf\u95ee\u5e94\u7528\uff0c\u4ee5\u514d\u65e0\u57df\u540d\u9020\u6210\u5e94\u7528\u5f02\u5e38"})]})}),(0,O.jsx)(R.Z,{children:(0,O.jsx)(P.Z,{children:(0,O.jsxs)(M.Z,{children:[(0,O.jsx)(M.Z.Header,{children:(0,O.jsxs)(j.Z,{className:"mb-2 align-items-center",children:[(0,O.jsx)(Z.Z,{xs:12,md:9}),(0,O.jsxs)(Z.Z,{xs:12,md:3,className:"d-flex justify-content-end",children:[(0,O.jsx)(m.Z,{variant:"primary",size:"sm",className:"me-2",onClick:function(){te.length<10&&re([].concat((0,D.Z)(te),[{app_id:e.data.app_id,domainValue:"",newDomainValue:"",isEditable:!0,isFromAPI:!1,isDefaultDomain:!1}]))},children:"\u6dfb\u52a0\u57df\u540d"}),(null===(n=e.data)||void 0===n||null===(a=n.config)||void 0===a?void 0:a.admin_domain_url)&&(0,O.jsx)("a",{href:null===(i=e.data)||void 0===i||null===(l=i.config)||void 0===l?void 0:l.admin_domain_url,target:"_blank",className:"me-2",children:(0,O.jsx)(m.Z,{variant:"primary",size:"sm",children:"\u8bbf\u95ee\u540e\u53f0"})}),(0,O.jsxs)(m.Z,{size:"sm",className:"me-2",variant:"primary",onClick:(0,r.Z)((0,t.Z)().mark((function e(){return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe(!0),e.next=3,Ve();case 3:oe(!1);case 4:case"end":return e.stop()}}),e)}))),children:[" ",T("Refresh")]})]})]})}),(0,O.jsx)(M.Z.Body,{children:te.map((function(e,n){return(0,O.jsxs)(j.Z,{className:"mb-2",children:[(0,O.jsx)(Z.Z,{xs:12,md:9,children:(0,O.jsx)(Z.Z,{xs:"auto",children:(0,O.jsx)(N.Z,{className:"mb-2 mb-md-0",type:"text",name:"domain-".concat(n),value:e.newDomainValue,disabled:!e.isEditable,onChange:function(e){return function(e,n){var a=(0,D.Z)(te);a[e].newDomainValue=n.target.value,re(a)}(n,e)}})})}),(0,O.jsxs)(Z.Z,{xs:12,md:3,children:[(0,O.jsx)(m.Z,{variant:"link text-danger",style:{padding:"5px"},onClick:function(){return Le(e,n)},children:T("delete")}),e.isEditable&&e.isFromAPI&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(m.Z,{variant:"link text-success",style:{padding:"5px"},onClick:function(){return Ge(e,n)},children:T("save")}),(0,O.jsx)(m.Z,{variant:"link text-success",style:{padding:"5px"},onClick:function(){return function(e){var n=(0,D.Z)(te);n[e].newDomainValue=n[e].domainValue,n[e].isEditable=!n[e].isEditable,re(n)}(n)},children:T("cancel")})]}),e.isEditable&&!e.isFromAPI&&(0,O.jsx)(m.Z,{variant:"link text-success",style:{padding:"5px"},onClick:function(){return Ge(e,n)},children:T("save")}),!e.isEditable&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(m.Z,{variant:"link text-primary",style:{padding:"5px"},onClick:function(){return function(e){var n=(0,D.Z)(te);n[e].isEditable=!n[e].isEditable,re(n)}(n)},children:T("edit")}),(0,O.jsx)("a",{href:"http://"+e.domainValue,target:"_blank",children:(0,O.jsx)(m.Z,{variant:"link text-primary",style:{padding:"5px"},children:T("access")})}),e.isDefaultDomain?(0,O.jsxs)(B.Z,{className:"ms-2 bg-success",children:[" ",T("default")," "]}):(0,O.jsx)(m.Z,{variant:"link text-primary",onClick:function(){return We(n)},children:T("set as default")})]})]})]},n)}))}),(0,O.jsx)(M.Z.Footer,{children:(0,O.jsx)(j.Z,{className:"mb-2 mt-2",children:(0,O.jsxs)(Z.Z,{sm:12,children:[(0,O.jsx)("span",{children:"\u5982\u8981\u9700\u8981\u8fdb\u884cHttps\u8bbe\u7f6e,\u6216\u8005\u66f4\u591a\u81ea\u5b9a\u4e49\u914d\u7f6e\uff0c\u8bf7\u70b9\u51fb\u66f4\u591a"}),(0,O.jsx)("a",{href:"/nginx",target:"_parent",className:"me-2 float-end",children:(0,O.jsx)(m.Z,{variant:"primary",size:"sm",children:T("More")})})]})})})]})})})]}),(null===(c=e.data)||void 0===c||null===(d=c.config)||void 0===d?void 0:d.url)&&((null===(u=e.data)||void 0===u||null===(p=u.config)||void 0===p?void 0:p.default_domain)&&!(null!==(x=e.data)&&void 0!==x&&x.app_replace_url)||!(null!==(f=e.data)&&void 0!==f&&null!==(g=f.config)&&void 0!==g&&g.default_domain))&&(0,O.jsxs)(F.Z,{defaultExpanded:!0,onChange:function(e,n){He(n)},className:"mb-2",children:[(0,O.jsx)(I.Z,{expandIcon:(0,O.jsx)(A.Z,{}),"aria-controls":"panel2a-content",id:"panel2a-header",children:(0,O.jsxs)(P.Z,{children:[(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:"\u65e0\u57df\u540d\u8bbf\u95ee"}),(0,O.jsx)("span",{className:"me-2 fs-6",style:{display:Be?"inline":"none"},children:"\u6ca1\u6709\u57df\u540d\u53ef\u4ee5\u901a\u8fc7IP+\u7aef\u53e3\u7684\u65b9\u5f0f\u4e34\u65f6\u8bbf\u95ee\u5e94\u7528"})]})}),(0,O.jsx)(R.Z,{children:(0,O.jsx)(P.Z,{children:(0,O.jsx)(M.Z,{children:(0,O.jsxs)(M.Z.Body,{children:[(null===(b=e.data)||void 0===b||null===(y=b.config)||void 0===y?void 0:y.url)&&(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{className:"me-2 fs-5",children:"\u524d\u53f0:"}),(0,O.jsx)("a",{href:null===(w=e.data)||void 0===w||null===(C=w.config)||void 0===C?void 0:C.url,target:"_blank",className:"me-2",children:null===(_=e.data)||void 0===_||null===(S=_.config)||void 0===S?void 0:S.url})]}),(null===(E=e.data)||void 0===E||null===(V=E.config)||void 0===V?void 0:V.admin_url)&&(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{className:"me-2 fs-5",children:"\u540e\u53f0:"}),(0,O.jsx)("a",{href:null===(L=e.data)||void 0===L||null===(W=L.config)||void 0===W?void 0:W.admin_url,target:"_blank",className:"me-2",children:null===(G=e.data)||void 0===G||null===($=G.config)||void 0===$?void 0:$.admin_url})]})]})})})})]}),(null===(q=e.data)||void 0===q||null===(J=q.config)||void 0===J?void 0:J.admin_username)&&(0,O.jsxs)(F.Z,{className:"mb-2",onChange:function(e,n){Ue(n)},children:[(0,O.jsx)(I.Z,{expandIcon:(0,O.jsx)(A.Z,{}),"aria-controls":"panel3a-content",id:"panel3a-header",children:(0,O.jsxs)(P.Z,{children:[(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:"\u521d\u59cb\u8d26\u53f7"}),(0,O.jsx)("span",{className:"me-2 fs-6",style:{display:ze?"inline":"none"},children:"\u6b64\u5e94\u7528\u7a0b\u5e8f\u662f\u4f7f\u7528\u7ba1\u7406\u5458\u5e10\u6237\u9884\u5148\u8bbe\u7f6e\u7684\uff0c\u8bf7\u7acb\u5373\u66f4\u6539\u7ba1\u7406\u5458\u5bc6\u7801\u3002\u521d\u59cb\u51ed\u636e\u4e3a\uff1a"})]})}),(0,O.jsx)(R.Z,{children:(0,O.jsx)(P.Z,{children:(0,O.jsx)(M.Z,{children:(0,O.jsxs)(M.Z.Body,{children:[(0,O.jsxs)(H.Z.Group,{as:j.Z,className:"mb-3",children:[(0,O.jsx)(H.Z.Label,{htmlFor:"username",column:!0,md:2,className:"fs-5",children:"UserName"}),(0,O.jsx)(Z.Z,{md:4,children:(0,O.jsx)(H.Z.Control,{type:"text",name:"username",id:"username",defaultValue:null===(K=e.data)||void 0===K||null===(Q=K.config)||void 0===Q?void 0:Q.admin_username,readOnly:!0})})]}),(0,O.jsxs)(H.Z.Group,{as:j.Z,className:"mb-3",children:[(0,O.jsx)(H.Z.Label,{htmlFor:"password",column:!0,md:2,className:"fs-5",children:"Password"}),(0,O.jsx)(Z.Z,{md:4,children:(0,O.jsx)(N.Z,{type:"password",name:"password",containerClass:"mb-3",value:null===(X=e.data)||void 0===X||null===(Y=X.config)||void 0===Y?void 0:Y.admin_password,readOnly:!0})})]})]})})})})]})]})]}),Ne&&(0,O.jsx)(U,{showConform:Ne,onClose:function(){we(!1)},deleteRowData:_e,onDataChange:Ve}),ue&&(0,O.jsx)(o.Z,{open:ue,autoHideDuration:5e3,onClose:$e,anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,O.jsx)(z,{onClose:$e,severity:ge,sx:{width:"100%"},children:me})})]})},L=a(1243),W=a(2591),G=p().gettext,$=function(e){(0,v.s0)();var n=(0,h.useState)([]),a=(0,s.Z)(n,2),i=a[0],l=a[1],o=e.data.customer_name,c=(0,h.useState)(null),d=(0,s.Z)(c,2),u=d[0],p=d[1],x=function(){var e=(0,r.Z)((0,t.Z)().mark((function e(){var n,a,r,s,i,c,d,u,h,x;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,null!==(n=window.localStorage.getItem("portainer.JWT2"))){e.next=18;break}return e.next=5,L.Z.get("../container/config.json");case 5:if(200!==(a=e.sent).status){e.next=15;break}return r=a.data,s=r.PORTAINER_USERNAME,i=r.PORTAINER_PASSWORD,c=r.PORTAINER_AUTH_URL,r.PORTAINER_HOME_PAGE,e.next=11,L.Z.post(c,{username:s,password:i});case 11:200===(d=e.sent).status?(n=d.data.jwt,window.localStorage.setItem("portainer.JWT2",n)):console.error("Error:",d),e.next=16;break;case 15:console.error("Error:",a);case 16:e.next=19;break;case 18:n=n.replace(/"/g,"");case 19:return e.next=21,L.Z.get("/portainer/api/endpoints",{headers:{Authorization:"Bearer "+n}});case 21:if(200!==(u=e.sent).status){e.next=31;break}return h=u.data.find((function(e){return e.URL.includes("/var/run/docker.sock")})).Id,p(h),e.next=27,L.Z.get("/portainer/api/endpoints/".concat(h,"/docker/containers/json"),{headers:{Authorization:"Bearer "+n},params:{all:!0,filters:JSON.stringify({label:["com.docker.compose.project=".concat(o)]})}});case 27:200===(x=e.sent).status?l(x.data):console.error("Error:",x),e.next=32;break;case 31:console.error("Error:",u);case 32:e.next=37;break;case 34:e.prev=34,e.t0=e.catch(0),console.error("Error:",e.t0);case 37:case"end":return e.stop()}}),e,null,[[0,34]])})));return function(){return e.apply(this,arguments)}}();return(0,h.useEffect)((function(){x()}),[]),(0,O.jsx)(j.Z,{children:(0,O.jsx)(Z.Z,{xs:12,children:(0,O.jsxs)(M.Z,{children:[(0,O.jsx)(M.Z.Header,{children:(0,O.jsxs)(j.Z,{className:"align-items-center",children:[(0,O.jsxs)(Z.Z,{xs:12,md:10,children:[(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:G("Container")}),(0,O.jsxs)("span",{className:"me-2 fs-6",children:["\u672c\u5e94\u7528\u7531\u5982\u4e0b\u5bb9\u5668\u7ec4\u6210\uff0c\u540d\u79f0\u4e3a ",o," \u7684\u4e3a\u4e3b\u5bb9\u5668 "]})]}),(0,O.jsx)(Z.Z,{xs:12,md:2,children:(0,O.jsx)("a",{href:"/portainer/#!/".concat(u,"/docker/stacks/").concat(o,"?type=2®ular=false&external=true&orphaned=false"),target:"_blank",className:"me-2",children:(0,O.jsx)(m.Z,{variant:"primary",size:"sm",className:"float-end",children:G("More")})})})]})}),(0,O.jsx)(M.Z.Body,{children:(0,O.jsxs)(W.Z,{className:"mb-0",children:[(0,O.jsx)("thead",{children:(0,O.jsxs)("tr",{children:[(0,O.jsx)("th",{children:"Name"}),(0,O.jsx)("th",{children:"State"}),(0,O.jsx)("th",{style:{textAlign:"center"},children:"Actions"}),(0,O.jsx)("th",{children:"Image"}),(0,O.jsx)("th",{children:"Created"}),(0,O.jsx)("th",{children:"Ip Address"}),(0,O.jsx)("th",{children:"Published Ports"})]})}),(0,O.jsx)("tbody",{children:i.map((function(e,n){var a,t,r,s;return(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:null===(a=e.Names)||void 0===a||null===(t=a[0])||void 0===t?void 0:t.replace(/^\/|\/$/g,"")}),(0,O.jsx)("td",{children:(0,O.jsx)(B.Z,{className:"".concat("running"===e.State?"bg-success":"exited"===e.State?"bg-danger":"info"),children:e.State})}),(0,O.jsxs)("td",{style:{textAlign:"center"},children:[(0,O.jsxs)("a",{href:"/portainer/#!/".concat(u,"/docker/containers/").concat(e.Id,"/logs"),target:"_blank",title:"Logs",children:[(0,O.jsx)("i",{className:"dripicons-document-remove noti-icon"})," "]}),"running"===e.State&&(0,O.jsxs)("a",{href:"/portainer/#!/".concat(u,"/docker/containers/").concat(e.Id,"/stats"),target:"_blank",title:"Stats",children:[(0,O.jsx)("i",{className:"dripicons-pulse noti-icon"})," "]})]}),(0,O.jsx)("td",{children:e.Image}),(0,O.jsx)("td",{children:new Date(1e3*e.Created).toLocaleString()}),(0,O.jsx)("td",{children:e.NetworkSettings.Networks[e.HostConfig.NetworkMode].IPAddress}),(0,O.jsxs)("td",{children:[null===(r=e.Ports.find((function(e){return e.IP&&/^(\d{1,3}\.){3}\d{1,3}$/.test(e.IP)})))||void 0===r?void 0:r.PublicPort,":",null===(s=e.Ports.find((function(e){return e.IP&&/^(\d{1,3}\.){3}\d{1,3}$/.test(e.IP)})))||void 0===s?void 0:s.PrivatePort]})]},n)}))})]})})]})})})},q=(p().gettext,function(e){var n,a,t,r,s,i,l;(0,v.s0)();return(0,O.jsx)(j.Z,{children:(0,O.jsx)(Z.Z,{xs:12,children:(0,O.jsxs)(M.Z,{children:[(0,O.jsx)(M.Z.Header,{children:(0,O.jsx)("label",{className:"me-2 fs-5 d-block",children:"\u5e94\u7528\u6982\u89c8"})}),(0,O.jsx)(M.Z.Body,{children:(0,O.jsx)(W.Z,{responsive:!0,className:"mb-0",bordered:!1,children:(0,O.jsxs)("tbody",{children:[(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u5e94\u7528\u540d\u79f0\uff1a"}),(0,O.jsx)("td",{children:null===(n=e.data)||void 0===n?void 0:n.app_name})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u5e94\u7528\u7248\u672c\uff1a"}),(0,O.jsx)("td",{children:null===(a=e.data)||void 0===a?void 0:a.app_version})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u5e94\u7528\u7aef\u53e3\uff1a"}),(0,O.jsx)("td",{children:null===(t=e.data)||void 0===t||null===(r=t.config)||void 0===r?void 0:r.port})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u521b\u5efa\u65f6\u95f4\uff1a"}),(0,O.jsx)("td",{children:null===(s=e.data)||void 0===s?void 0:s.create_time})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u914d\u7f6e\u76ee\u5f55\uff1a "}),(0,O.jsx)("td",{children:null===(i=e.data)||void 0===i?void 0:i.config_path})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{style:{width:"10%",fontWeight:"bold"},children:"\u6570\u636e\u76ee\u5f55\uff1a"}),(0,O.jsx)("td",{children:null===(l=e.data)||void 0===l?void 0:l.volume_data})]})]})})})]})})})}),J=p().gettext,K=function(e){var n=(0,v.s0)(),a=(0,h.useState)(!1),i=(0,s.Z)(a,2),l=i[0],o=i[1],c=(0,h.useState)(!1),u=(0,s.Z)(c,2),p=u[0],j=u[1],Z=(0,h.useState)(""),g=(0,s.Z)(Z,2),b=g[0],y=g[1];return(0,O.jsxs)(x.Z,{show:e.showConform,onHide:e.onClose,size:"lg",scrollable:"true",backdrop:"static",style:{backgroundColor:"rgba(0,0,0,0.8)"},children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,closeButton:!0,className:d()("modal-colored-header","bg-warning"),children:(0,O.jsxs)("h4",{children:[J("Uninstall")," ",e.app.customer_name]})}),(0,O.jsxs)(x.Z.Body,{className:"row",children:[(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[J("This will immediately uninstall")," ",e.app.customer_name," ",J("and remove all its data.")]}),(0,O.jsx)("div",{children:p&&(0,O.jsx)(f.Z,{variant:"danger",className:"my-2",children:b})})]}),(0,O.jsxs)(x.Z.Footer,{children:[(0,O.jsx)(m.Z,{variant:"light",onClick:e.onClose,children:J("Close")})," ",(0,O.jsxs)(m.Z,{disabled:l,variant:"warning",onClick:(0,r.Z)((0,t.Z)().mark((function a(){var r;return(0,t.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,o(!0),a.next=4,(0,k.mx)({app_id:e.app.app_id});case 4:(r=a.sent).data.Error?(j(!0),y(r.data.Error.Message)):(e.onClose(),e.onCloseFatherModal(),e.onDataChange()),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),n("/error-500");case 11:case"end":return a.stop()}}),a,null,[[0,8]])}))),children:[l&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",J("Uninstall")]})]})]})},Q=(0,h.forwardRef)((function(e,n){var a=(0,h.useState)(!1),i=(0,s.Z)(a,2),l=i[0],o=i[1],c=(0,h.useState)(!1),d=(0,s.Z)(c,2),u=d[0],p=d[1],x=(0,v.s0)(),f=function(){p(!0)},g=function(){p(!1)};return(0,h.useImperativeHandle)(n,(function(){return{setButtonDisable:f,setButtonEnable:g}})),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(j.Z,{className:"mb-2",children:(0,O.jsxs)(Z.Z,{sm:12,children:[(0,O.jsx)("label",{className:"me-1",style:{fontWeight:"bolder",marginBottom:"5px"},children:J("Start / Stop")}),(0,O.jsx)("p",{children:J("Apps can be stopped to conserve server resources instead of uninstalling.")}),"running"===e.data.status?(0,O.jsxs)(m.Z,{variant:"secondary",className:"float-end",disabled:u,onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.disabledButton(),p(!0),n.next=5,(0,k.pO)({app_id:e.data.app_id});case 5:n.sent.data.Error?x("/error"):e.onDataChange(e.data.app_id),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),x("/error-500");case 12:return n.prev=12,p(!1),e.enableButton(),n.finish(12);case 16:case"end":return n.stop()}}),n,null,[[0,9,12,16]])}))),children:[u&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",J("Stop")]}):(0,O.jsxs)(m.Z,{variant:"primary",className:"float-end",disabled:u,onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.disabledButton(),p(!0),n.prev=2,n.next=5,(0,k.P3)({app_id:e.data.app_id});case 5:n.sent.data.Error?x("/error"):e.onDataChange(e.data.app_id),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),x("/error-500");case 12:return n.prev=12,e.enableButton(),p(!1),n.finish(12);case 16:case"end":return n.stop()}}),n,null,[[2,9,12,16]])}))),children:[u&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",J("Start")]})]})}),(0,O.jsx)("hr",{}),(0,O.jsx)(j.Z,{className:"mb-2",children:(0,O.jsxs)(Z.Z,{sm:12,children:[(0,O.jsx)("label",{className:"me-1",style:{fontWeight:"bolder",marginBottom:"5px"},children:J("Uninstall")}),(0,O.jsx)("p",{children:J("This will uninstall the app immediately and remove all its data.The app will be inaccessible.")}),(0,O.jsx)(m.Z,{variant:"warning",className:"float-end",onClick:function(){o(!0)},children:J("Uninstall")})]})}),l&&(0,O.jsx)(K,{showConform:l,onClose:function(){o(!1)},app:e.data,onDataChange:e.onDataChange,onCloseFatherModal:e.onCloseFatherModal})]})})),X=p().gettext,Y=function(e){var n=(0,h.useState)(!1),a=(0,s.Z)(n,2),i=a[0],l=a[1],o=(0,h.useState)(!1),c=(0,s.Z)(o,2),u=c[0],p=c[1],f=(0,h.useState)(e.current_app),g=(0,s.Z)(f,2),N=g[0],D=g[1],A=(0,h.useState)(!1),F=(0,s.Z)(A,2),R=F[0],I=F[1],P=(0,h.useState)(!1),M=(0,s.Z)(P,2),B=M[0],H=M[1],T=(0,h.useState)(!1),z=(0,s.Z)(T,2),U=z[0],L=z[1],W=(0,v.s0)(),G=(0,h.useRef)(),J=function(){G.current.setButtonDisable()},K=function(){G.current.setButtonEnable()};(0,h.useEffect)((function(){D(e.current_app)}),[e.current_app]);var Y=[{id:"1",title:X("Overview"),icon:"mdi mdi-account-circle",text:(0,O.jsx)(q,{data:N})},{id:"2",title:X("Access"),icon:"mdi mdi-account-circle",text:(0,O.jsx)(V,{data:N})},{id:"3",title:X("Container"),icon:"mdi mdi-account-circle",text:(0,O.jsx)($,{data:N})},{id:"4",title:X("Uninstall"),icon:"mdi mdi-cog-outline",text:(0,O.jsx)(Q,{data:N,ref:G,disabledButton:function(){p(!0),l(!0)},enableButton:function(){p(!1),l(!1)},onDataChange:e.onDataChange,onCloseFatherModal:e.onClose})}];return N&&(0,O.jsxs)(x.Z,{show:e.showFlag,backdrop:"static",onHide:e.onClose,size:"lg",scrollable:"true",dialogClassName:"modal-full-width",children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,closeButton:!0,children:(0,O.jsxs)("div",{style:{padding:"10px",display:"flex",width:"100%",alignItems:"center"},children:[(0,O.jsx)("div",{className:"appstore-item-content-icon col-same-height",children:(0,O.jsx)("img",{src:N.image_url,alt:"",className:"app-icon",onError:function(e){return e.target.src=y}})}),(0,O.jsxs)("div",{className:"col-same-height",children:[(0,O.jsx)("h4",{className:"appstore-item-content-title",style:{marginTop:"5px"},children:N.customer_name}),(0,O.jsx)("h5",{className:"appstore-item-content-title",style:{marginTop:"5px"},children:N.status})]}),(0,O.jsxs)("div",{className:"col-same-height",style:{flexGrow:1,display:"flex",justifyContent:"flex-end",alignItems:"center"},children:["exited"===N.status&&(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Start App")}),children:(0,O.jsx)(m.Z,{variant:"primary",disabled:u,style:{padding:"5px 10px",borderRadius:"3px",marginRight:"10px"},onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return J(),I(!0),l(!0),n.prev=3,n.next=6,(0,k.P3)({app_id:N.app_id});case 6:n.sent.data.Error?W("/error"):e.onDataChange(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),W("/error-500");case 13:return n.prev=13,K(),I(!1),l(!1),n.finish(13);case 18:case"end":return n.stop()}}),n,null,[[3,10,13,18]])}))),children:R?(0,O.jsx)(w.Z,{className:"spinner-border-sm noti-icon",color:"light"}):(0,O.jsx)("i",{className:"dripicons-media-play noti-icon"})})},"bottom1"),"running"===N.status&&(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Stop App")}),children:(0,O.jsx)(m.Z,{variant:"primary",disabled:u,style:{padding:"5px 10px",borderRadius:"3px",marginRight:"10px"},onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return J(),H(!0),l(!0),n.prev=3,n.next=6,(0,k.pO)({app_id:N.app_id});case 6:n.sent.data.Error?W("/error"):e.onDataChange(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),W("/error-500");case 13:return n.prev=13,K(),H(!1),l(!1),n.finish(13);case 18:case"end":return n.stop()}}),n,null,[[3,10,13,18]])}))),children:B?(0,O.jsx)(w.Z,{className:"spinner-border-sm noti-icon",color:"light"}):(0,O.jsx)("i",{className:"dripicons-power noti-icon"})})},"bottom2"),(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Restart App")}),children:(0,O.jsx)(m.Z,{disabled:i,style:{padding:"5px 10px",borderRadius:"3px",marginRight:"10px"},onClick:(0,r.Z)((0,t.Z)().mark((function n(){return(0,t.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,J(),L(!0),p(!0),n.next=6,(0,k.h1)({app_id:N.app_id});case 6:n.sent.data.Error?W("/error"):e.onDataChange(),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(0),W("/error-500");case 13:return n.prev=13,K(),L(!1),p(!1),n.finish(13);case 18:case"end":return n.stop()}}),n,null,[[0,10,13,18]])}))),children:U?(0,O.jsx)(w.Z,{className:"spinner-border-sm noti-icon",color:"light"}):(0,O.jsx)("i",{className:"dripicons-clockwise noti-icon"})})},"bottom3"),"running"===N.status&&(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Terminal")}),children:(0,O.jsxs)(b.rU,{to:{pathname:"/terminal",search:"?id=".concat(N.customer_name)},style:{color:"#fff",backgroundColor:"#727cf5",padding:"5px 10px",borderRadius:"3px",borderColor:"#727cf5",marginRight:"10px"},target:"_blank",children:[(0,O.jsx)("i",{className:"dripicons-code noti-icon"})," "]})},"bottom4"),(0,O.jsx)(C.Z,{placement:"bottom",overlay:(0,O.jsx)(_.Z,{id:"tooltip-bottom",children:X("Documentation")}),children:(0,O.jsxs)("a",{href:"https://support.websoft9.com/docs/"+N.app_name,style:{color:"#fff",backgroundColor:"#727cf5",padding:"5px 10px",borderRadius:"3px",borderColor:"#727cf5",marginRight:"10px"},target:"_blank",children:[(0,O.jsx)("i",{className:"dripicons-document noti-icon"})," "]})},"bottom5")]})]})}),(0,O.jsx)(x.Z.Body,{className:"row",children:(0,O.jsxs)(S.Z.Container,{defaultActiveKey:X("Overview"),children:[(0,O.jsx)(Z.Z,{sm:2,className:"mb-2 mb-sm-0",children:(0,O.jsx)(E.Z,{variant:"pills",className:"flex-column",children:Y.map((function(e,n){var a=function(){return(0,O.jsx)(E.Z.Item,{children:(0,O.jsxs)(E.Z.Link,{as:b.rU,to:"#",eventKey:e.title,children:[(0,O.jsx)("i",{className:d()(e.icon,"d-md-none","d-block","me-1")}),(0,O.jsx)("span",{className:"d-none d-md-block",children:e.title})]})},n)};return"Terminal"!==e.title||"running"===N.status?a():void 0}))})}),(0,O.jsx)(Z.Z,{sm:10,children:(0,O.jsx)(S.Z.Content,{style:{height:"100%"},children:Y.map((function(e,n){return(0,O.jsx)(S.Z.Pane,{eventKey:e.title,id:e.id,style:{height:"100%"},children:(0,O.jsx)(j.Z,{style:{height:"100%"},children:(0,O.jsx)(Z.Z,{sm:"12",style:{height:"Terminal"===e.title?"600px":""},children:e.text})})},n)}))})})]})})]})},ee=p().gettext,ne=h.forwardRef((function(e,n){return(0,O.jsx)(l.Z,(0,i.Z)({elevation:6,ref:n,variant:"filled"},e))})),ae=function(e){return(0,O.jsxs)(x.Z,{show:e.showConform,onHide:e.onClose,size:"lg",scrollable:"true",backdrop:"static",children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,closeButton:!0,className:d()("modal-colored-header","bg-danger"),children:(0,O.jsxs)("h4",{children:[ee("This is the error message for")," ",e.app.customer_name]})}),(0,O.jsx)(x.Z.Body,{className:"row",children:e.app.status_reason&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[" ",(0,O.jsx)("b",{children:ee("Code: ")}),e.app.status_reason.Code," "]}),(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[" ",(0,O.jsx)("b",{children:ee("Message: ")}),e.app.status_reason.Message," "]}),(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[" ",(0,O.jsx)("b",{children:ee("Detail: ")}),e.app.status_reason.Detail," "]})]})}),(0,O.jsxs)(x.Z.Footer,{children:[(0,O.jsx)(m.Z,{variant:"light",onClick:e.onClose,children:ee("Close")}),(0,O.jsx)(m.Z,{variant:"light",onClick:function(){return window.open("https://www.websoft9.com/ticket","_blank")},children:ee("Support")})]})]})},te=function(e){var n=(0,v.s0)(),a=(0,h.useState)(!1),i=(0,s.Z)(a,2),l=i[0],o=i[1],c=(0,h.useState)(!1),u=(0,s.Z)(c,2),p=u[0],j=u[1],Z=(0,h.useState)(""),g=(0,s.Z)(Z,2),b=g[0],y=g[1];return(0,O.jsxs)(x.Z,{show:e.showConform,onHide:e.onClose,size:"lg",scrollable:"true",backdrop:"static",children:[(0,O.jsx)(x.Z.Header,{onHide:e.onClose,className:d()("modal-colored-header","bg-warning"),children:(0,O.jsxs)("h4",{children:[ee("Remove")," ",e.app.customer_name]})}),(0,O.jsxs)(x.Z.Body,{className:"row",children:[(0,O.jsxs)("span",{style:{margin:"10px 0px"},children:[ee("This will immediately remove")," ",e.app.customer_name," ",ee("and remove all its data.")]}),(0,O.jsx)("div",{children:p&&(0,O.jsx)(f.Z,{variant:"danger",className:"my-2",children:b})})]}),(0,O.jsxs)(x.Z.Footer,{children:[(0,O.jsx)(m.Z,{variant:"light",onClick:e.onClose,children:ee("Close")})," ",(0,O.jsxs)(m.Z,{disabled:l,variant:"warning",onClick:(0,r.Z)((0,t.Z)().mark((function a(){var r;return(0,t.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,o(!0),a.next=4,(0,k.mx)({app_id:e.app.app_id});case 4:(r=a.sent).data.Error?(j(!0),y(r.data.Error.Message)):(e.onClose(),e.onDataChange()),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),n("/error-500");case 11:case"end":return a.stop()}}),a,null,[[0,8]])}))),children:[l&&(0,O.jsx)(w.Z,{className:"spinner-border-sm me-1",tag:"span",color:"white"})," ",ee("Remove")]})]})]})},re=function(){var e,n=(0,h.useState)(!1),a=(0,s.Z)(n,2),i=a[0],l=a[1],c=(0,h.useState)(!1),u=(0,s.Z)(c,2),p=u[0],x=u[1],f=(0,h.useState)(!1),C=(0,s.Z)(f,2),_=C[0],S=C[1],E=(0,h.useState)(!1),D=(0,s.Z)(E,2),A=(D[0],D[1],(0,h.useState)(!1)),F=(0,s.Z)(A,2),R=F[0],I=F[1],P=(0,h.useState)(!1),M=(0,s.Z)(P,2),B=M[0],H=M[1],T=(0,h.useState)(""),z=(0,s.Z)(T,2),U=z[0],V=z[1],L=(0,h.useState)(""),W=(0,s.Z)(L,2),G=W[0],$=W[1],q=(0,h.useState)(null),J=(0,s.Z)(q,2),K=J[0],Q=J[1],X=(0,h.useState)([]),re=(0,s.Z)(X,2),se=re[0],ie=re[1],le=(0,h.useState)([]),oe=(0,s.Z)(le,2),ce=(oe[0],oe[1],(0,h.useState)("")),de=(0,s.Z)(ce,2),ue=de[0],pe=de[1],he=(0,h.useState)("all"),xe=(0,s.Z)(he,2),me=xe[0],fe=xe[1],je=(0,h.useState)([]),Ze=(0,s.Z)(je,2),ge=(Ze[0],Ze[1],(0,h.useRef)(K)),ve=(0,v.s0)(),be=(0,h.useState)(0),ye=(0,s.Z)(be,2),Ne=ye[0],we=ye[1],ke=(0,h.useState)(null),Ce=(0,s.Z)(ke,2),_e=Ce[0],Se=Ce[1],Ee=(0,h.useState)(null),De=(0,s.Z)(Ee,2),Ae=(De[0],De[1]),Fe=(0,h.useState)(!1),Re=(0,s.Z)(Fe,2),Ie=Re[0],Pe=Re[1],Me=function(){(0,k.u3)().then((function(e){if(e.data.Error)we(e.data.Error.Code),Se(e.data.Error.Message),Ae(e.data.Error.Details);else{var n=e.data.ResponseData;if(ie(n),ge.current){var a=n.find((function(e){return e.app_id===ge.current.app_id}));Q(a)}}Pe(!1)})).catch((function(e){v.Fg}))};if((0,h.useEffect)((function(){Me()}),[]),(0,h.useEffect)((function(){Pe(!0),e=setInterval((function(){(0,k.u3)().then((function(e){if(e.data.Error)we(e.data.Error.Code),Se(e.data.Error.Message),Ae(e.data.Error.Details);else{var n=e.data.ResponseData;if(ie(n),ge.current){var a=n.find((function(e){return e.app_id===ge.current.app_id}));Q(a)}}Pe(!1)})).catch((function(e){v.Fg}))}),5e3)}),[]),(0,h.useEffect)((function(){ge.current=K}),[K]),(0,h.useEffect)((function(){return function(){return clearInterval(e)}}),[]),Ie)return(0,O.jsx)(w.Z,{className:"dis_mid"});if(Ne)return(0,O.jsxs)("p",{children:["Code : $",Ne," "]});if(_e)return(0,O.jsxs)("p",{children:["Error : $",_e," "]});var Be=function(e,n){"clickaway"!==n&&(H(!1),V(""))},He=function(){Me()},Oe={Stop:{api:k.pO},Start:{api:k.P3},Restart:{api:k.h1},Uninstall:{api:k.mx}},Te=function(){var e=(0,r.Z)((0,t.Z)().mark((function e(n,a){var r;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Uninstall"!==n){e.next=4;break}return Q(a),x(!0),e.abrupt("return");case 4:return I(!0),e.prev=5,e.next=8,Oe[n].api({app_id:a.app_id});case 8:(r=e.sent).data.Error?(H(!0),$("error"),V(r.data.Error.Message)):(H(!0),$("success"),V("\u6267\u884c\u6210\u529f"),He()),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),ve("/error-500");case 15:return e.prev=15,I(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[5,12,15,18]])})));return function(n,a){return e.apply(this,arguments)}}();return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(j.Z,{className:"mb-2 align-items-center",children:[(0,O.jsx)(Z.Z,{sm:2,children:(0,O.jsx)("span",{style:{fontSize:"36px"},children:ee("My Apps")})}),(0,O.jsx)(Z.Z,{sm:3,children:(0,O.jsxs)(N.Z,{value:me,name:"select",type:"select",className:"form-select",onChange:function(e){return function(e){fe(e)}(e.target.value)},children:[(0,O.jsx)("option",{value:"all",children:ee("All States")}),(0,O.jsx)("option",{value:"installing",children:"installing"}),(0,O.jsx)("option",{value:"running",children:"running"}),(0,O.jsx)("option",{value:"exited",children:"exited"}),(0,O.jsx)("option",{value:"restarting",children:"restarting"}),(0,O.jsx)("option",{value:"failed",children:"failed"})]},"select")}),(0,O.jsx)(Z.Z,{sm:6,children:(0,O.jsx)(Z.Z,{xs:"auto",children:(0,O.jsx)(N.Z,{type:"text",name:"search",placeholder:"Search for apps like WordPress, Dropbox, Slack, Trello, \u2026",onChange:function(e){return function(e){pe(e)}(e.target.value)}})})}),(0,O.jsx)(Z.Z,{sm:1,children:(0,O.jsx)(m.Z,{variant:"primary",className:"float-end",onClick:function(){window.location.reload(!1)},children:ee("Refresh")})})]}),[!0,!1].map((function(e){var n=se.filter((function(e){return"all"===me||e.status===me})).filter((function(n){return n.official_app===e})).filter((function(e){return e.customer_name.includes(ue)}));return n.length>0?(0,O.jsxs)(j.Z,{children:[(0,O.jsx)("h4",{style:e?{}:{paddingTop:"10px"},children:ee(e?"Websoft9's Apps":"Other Apps")}),n.map((function(n,a){return(0,O.jsx)(Z.Z,{xxl:2,md:6,className:"appstore-item",children:(0,O.jsxs)("div",{className:"appstore-item-content highlight text-align-center",children:[!e&&("running"===n.status||"exited"===n.status)&&(0,O.jsxs)(g.Z,{className:"float-end",children:[(0,O.jsx)(g.Z.Toggle,{as:b.rU,to:"#",className:"arrow-none card-drop",children:R?(0,O.jsx)(w.Z,{className:"spinner-border-sm noti-icon"}):(0,O.jsx)("i",{className:"dripicons-gear noti-icon"})}),(0,O.jsx)(g.Z.Menu,{align:"end",children:(t=n.status,[{label:"Stop",icon:"dripicons-power noti-icon",condition:"running"===t},{label:"Start",icon:"dripicons-media-play noti-icon",condition:"exited"===t},{label:"Restart",icon:"dripicons-clockwise noti-icon",condition:"running"===t||"exited"===t},{label:"Uninstall",icon:"dripicons-trash noti-icon",variant:"text-danger",hasDivider:!0,condition:!0}]||[]).map((function(e,a){return(0,O.jsxs)(h.Fragment,{children:[e.condition&&e.hasDivider&&(0,O.jsx)(g.Z.Divider,{as:"div"}),e.condition&&(0,O.jsxs)(g.Z.Item,{className:d()(e.variant?e.variant:""),onClick:function(){return Te(e.label,n)},children:[e.icon&&(0,O.jsx)("i",{className:d()(e.icon,"me-1")}),e.label]})]},a)}))})]}),e&&("running"===n.status||"exited"===n.status)&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"float-end arrow-none card-drop p-0",onClick:function(){!function(e){Q(e),l(!0)}(n)},children:(0,O.jsx)("i",{className:"dripicons-gear noti-icon"})}),(0,O.jsx)("div",{className:"clearfix"})]}),e&&"installing"===n.status&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"float-end arrow-none card-drop p-0",children:(0,O.jsx)("i",{className:"dripicons-empty noti-icon"})}),(0,O.jsx)("div",{className:"clearfix"})]}),"failed"===n.status&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"float-end arrow-none card-drop p-0",children:[(0,O.jsx)("i",{className:"dripicons-information noti-icon",style:{paddingRight:"10px"},onClick:function(){!function(e){Q(e),S(!0)}(n)}}),(0,O.jsx)("i",{className:"dripicons-trash noti-icon",onClick:function(){!function(e){Q(e),x(!0)}(n)}})]}),(0,O.jsx)("div",{className:"clearfix"})]}),(0,O.jsx)("div",{children:(0,O.jsx)("img",{src:n.image_url,alt:n.app_name,className:"app-icon",style:{margin:"20px 10px 20px 10px"},onError:function(e){return e.target.src=y}})}),(0,O.jsxs)("div",{children:[(0,O.jsx)("h3",{className:"appstore-item-content-title",style:{color:"#2196f3"},children:n.customer_name}),(0,O.jsxs)("div",{style:{color:"failed"===n.status?"red":"inherit",display:"flex",alignItems:"center",justifyContent:"center"},children:[n.status&&"installing"===n.status&&(0,O.jsx)(w.Z,{className:"spinner-border-sm m-2"})," ",(0,O.jsx)("div",{className:"m-2",children:n.status})]})]})]})},n.app_id+a);var t}))]}):null})),i&&(0,O.jsx)(Y,{current_app:K,showFlag:i,onClose:function(){l(!1),Q(null)},onDataChange:He}),p&&(0,O.jsx)(te,{showConform:p,onClose:function(){x(!1)},app:K,onDataChange:He}),_&&(0,O.jsx)(ae,{showConform:_,onClose:function(){S(!1)},app:K}),B&&(0,O.jsx)(o.Z,{open:B,autoHideDuration:5e3,onClose:Be,anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,O.jsx)(ne,{onClose:Be,severity:G,sx:{width:"100%"},children:U})})]})}}}]); +//# sourceMappingURL=613.beab528f.chunk.js.map \ No newline at end of file diff --git a/src/apps/build/static/js/613.beab528f.chunk.js.map b/src/apps/build/static/js/613.beab528f.chunk.js.map new file mode 100644 index 000000000..c31ce8301 --- /dev/null +++ b/src/apps/build/static/js/613.beab528f.chunk.js.map @@ -0,0 +1 @@ +{"version":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,EAAAA,KAAA,OAAKT,UAAU,MAAKW,SAAE6V,EAAIxT,mBAxEjBwT,EAAI/O,OAAS+W,GAlPhD,IAACI,CA8Te,OAGd,IACR,IAGA9D,IAAara,EAAAA,EAAAA,KAAC2e,EAAc,CAAC9H,YAAa8D,EAAazC,SAAUmC,EAAWxU,QApMpE,WAChByU,GAAa,GACbM,EAAe,KACnB,EAiM8GvT,aAAc6V,KAGhHhH,IACAlW,EAAAA,EAAAA,KAAC6V,GAAgB,CAAClQ,YAAauQ,EAAsBrQ,QA7MzC,WACpBsQ,GAAwB,EAC5B,EA2M2FJ,IAAK4E,EAAatT,aAAc6V,KAG/G3C,IACAva,EAAAA,EAAAA,KAACga,GAAc,CAACrU,YAAa4U,EAAe1U,QAtNhC,WACpB2U,GAAiB,EACrB,EAoNkFzE,IAAK4E,IAG3ExV,IACAnF,EAAAA,EAAAA,KAACqR,EAAAA,EAAQ,CAACC,KAAMnM,EAAWoM,iBAAkB,IAAM1L,QAAS8I,GAAkB6C,aAAc,CAAEC,SAAU,MAAOC,WAAY,UAAWxR,UAClIF,EAAAA,EAAAA,KAACuE,GAAU,CAACsB,QAAS8I,GAAkBgD,SAAUvH,EAAWwH,GAAI,CAAEC,MAAO,QAAS3R,SAC7EqF,QAMzB,C","sources":["components/FormInput.js","components/Spinner.js","helpers/api/apiCore.js","helpers/api/appManager.js","pages/appdetailtabs/appaccess.js","pages/appdetailtabs/appcontainer.js","pages/appdetailtabs/appoverview.js","pages/appdetailtabs/appuninstall.js","pages/appdetail.js","pages/myapps.js"],"sourcesContent":["// @flow\nimport classNames from 'classnames';\nimport React, { useState } from 'react';\nimport { Form, InputGroup } from 'react-bootstrap';\n\n/* Password Input */\nconst PasswordInput = ({ name, placeholder, refCallback, errors, register, className, value, readOnly }) => {\n const [showPassword, setShowPassword] = useState(false);\n\n return (\n <>\n \n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n autoComplete={name}\n defaultValue={value}\n readOnly={readOnly}\n />\n \n {\n setShowPassword(!showPassword);\n }}>\n \n \n \n );\n};\n\ntype FormInputProps = {\n label?: string,\n type?: string,\n name?: string,\n value?: string,\n placeholder?: string,\n register?: any,\n errors?: any,\n className?: string,\n labelClassName?: string,\n containerClass?: string,\n refCallback?: any,\n children?: any,\n};\n\nconst FormInput = ({\n label,\n type,\n name,\n value,\n readOnly,\n placeholder,\n register,\n errors,\n className,\n labelClassName,\n containerClass,\n refCallback,\n children,\n ...otherProps\n}: FormInputProps): React$Element => {\n // handle input type\n const comp = type === 'textarea' ? 'textarea' : type === 'select' ? 'select' : 'input';\n\n return (\n <>\n {type === 'hidden' ? (\n \n ) : (\n <>\n {type === 'password' ? (\n <>\n \n {label ? (\n <>\n {' '}\n {label} {children}{' '}\n \n ) : null}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n <>\n {type === 'select' ? (\n <>\n \n {label ? {label} : null}\n\n {\n if (refCallback) refCallback(r);\n }}\n comp={comp}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}>\n {children}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n <>\n {type === 'checkbox' || type === 'radio' ? (\n <>\n \n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}\n />\n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n \n {label ? {label} : null}\n\n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}\n autoComplete={name}>\n {children ? children : null}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n )}\n \n )}\n \n )}\n \n )}\n \n );\n};\n\nexport default FormInput;\n","// @flow\nimport React from 'react';\nimport classNames from 'classnames';\n\ntype SpinnerProps = {\n tag?: string,\n className?: string,\n size?: 'lg' | 'md' | 'sm',\n type?: 'bordered' | 'grow',\n color?: string,\n children?: any,\n};\n\n/**\n * Spinner\n */\nconst Spinner = (props: SpinnerProps): React$Element => {\n const children = props.children || null;\n const Tag = props.tag || 'div';\n const color = props.color || 'secondary';\n const size = props.size || '';\n\n return (\n \n {children}\n \n );\n};\n\nSpinner.defaultProps = {\n tag: 'div',\n type: 'bordered',\n};\n\nexport default Spinner;\n","import axios from 'axios';\nimport { Navigate } from \"react-router-dom\";\n//import config from '../../config';\n\n// content type\naxios.defaults.headers.post['Content-Type'] = 'application/json';\naxios.defaults.headers.get['Content-Type'] = 'application/json';\naxios.defaults.headers = {\n 'Cache-Control': 'no-cache',\n 'Pragma': 'no-cache',\n 'Expires': '0',\n};\n//axios.defaults.baseURL = config.API_URL;\n\n// intercepting to capture errors\naxios.interceptors.response.use(\n (response) => {\n return response;\n },\n (error) => {\n // Any status codes that falls outside the range of 2xx cause this function to trigger\n let message;\n\n if (error && error.response && error.response.status === 404) {\n \n } else if (error && error.response && error.response.status === 500) {\n \n } else {\n message = error.response && error.response.data ? error.response.data['message'] : error.message || error;\n return Promise.reject(message);\n }\n }\n);\n\nclass APICore {\n /**\n * Fetches data from given url\n */\n get = (url, params) => {\n let response;\n if (params) {\n var queryString = params\n ? Object.keys(params)\n .map((key) => key + '=' + params[key])\n .join('&')\n : '';\n response = axios.get(`${url}?${queryString}`, params);\n } else {\n response = axios.get(`${url}`, params);\n }\n return response;\n };\n\n /**\n * post given data to url\n */\n create = (url, data) => {\n return axios.post(url, data);\n };\n}\n\nexport { APICore };\n","import { APICore } from './apiCore';\n\nconst api = new APICore();\n\n//App 安装\nfunction AppInstall(params: any): Promise {\n const baseUrl = '/AppManage/AppInstall';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 列表查询\nfunction AppList(params: any): Promise {\n const baseUrl = '/AppManage/AppList';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 卸载\nfunction AppUninstall(params: any): Promise {\n const baseUrl = '/AppManage/AppUninstall';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 停止\nfunction AppStop(params: any): Promise {\n const baseUrl = '/AppManage/AppStop';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 启动\nfunction AppStart(params: any): Promise {\n const baseUrl = '/AppManage/AppStart';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 重启\nfunction AppRestart(params: any): Promise {\n const baseUrl = '/AppManage/AppRestart';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 状态查询\nfunction AppStatus(params: any): Promise {\n const baseUrl = '/AppManage/AppStatus';\n return api.get(`${baseUrl}`, params);\n}\n\n//查询APP对应的域名\nfunction AppDomainList(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainList';\n return api.get(`${baseUrl}`, params);\n}\n\n//删除APP绑定的域名\nfunction AppDomainDelete(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainDelete';\n return api.get(`${baseUrl}`, params);\n}\n\n//修改APP绑定的域名\nfunction AppDomainUpdate(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainUpdate';\n return api.get(`${baseUrl}`, params);\n}\n\n//APP绑定域名\nfunction AppDomainAdd(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainAdd';\n return api.get(`${baseUrl}`, params);\n}\n\n//设定默认域名\nfunction AppDomainSet(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainSet';\n return api.get(`${baseUrl}`, params);\n}\n\nexport { AppInstall, AppList, AppUninstall, AppStop, AppStart, AppRestart, AppStatus, AppDomainList, AppDomainDelete, AppDomainUpdate, AppDomainAdd, AppDomainSet };\n\n","import ExpandMoreIcon from '@mui/icons-material/ExpandMore';\nimport Accordion from '@mui/material/Accordion';\nimport AccordionDetails from '@mui/material/AccordionDetails';\nimport AccordionSummary from '@mui/material/AccordionSummary';\nimport MuiAlert from '@mui/material/Alert';\nimport Snackbar from '@mui/material/Snackbar';\nimport Typography from '@mui/material/Typography';\nimport classNames from 'classnames';\nimport cockpit from 'cockpit';\nimport { default as React, useEffect, useState } from 'react';\nimport { Alert, Badge, Button, Card, Col, Form, Modal, Row } from 'react-bootstrap';\nimport { useNavigate } from 'react-router-dom';\nimport FormInput from '../../components/FormInput';\nimport Spinner from '../../components/Spinner';\nimport { AppDomainAdd, AppDomainDelete, AppDomainList, AppDomainSet, AppDomainUpdate } from '../../helpers';\n\nconst _ = cockpit.gettext;\n\nconst MyMuiAlert = React.forwardRef(function Alert(props, ref) {\n return ;\n});\n\n//删除绑定的域名\nconst RemoveDomain = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n const [disable, setDisable] = useState(false);//用于按钮禁用\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n\n function closeAllModals() {\n //关闭所有弹窗\n props.onClose();\n props.onDataChange();\n }\n\n return (\n \n \n

{_(\"Delete domain binding\")}

\n
\n \n {_(\"Are you sure you want to delete the domain for:\")} {props.deleteRowData.domainValue} ? \n
\n {showAlert && \n {alertMessage}\n }\n
\n
\n \n {\" \"}\n \n \n
\n );\n}\n\nconst AppAccess = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n const [domains, setDomains] = useState([]); // 定义域名数组\n const [loading, setLoading] = useState(false); // 定义执行操作时的加载转态\n\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\"); //用于显示错误提示消息\n const [alertType, setAlertType] = useState(\"\"); //用于确定弹窗的类型:error\\success\n const [showRemoveDomain, setShowRemoveDomain] = useState(false); //用于显示状态为failed时显示确定删除的弹窗\n const [deleteRowData, setDeleteRowData] = useState(null); //用于保存将要删除的行数据\n const [inputDomainValue, setInputDomainValue] = useState(\"\");//用户保存用户输入的域名\n\n const [isExpandedForDomain, setIsExpandedForDomain] = React.useState(true); //用于保存“域名绑定”的折叠状态\n const [isExpandedForNoDomain, setIsExpandedForNoDomain] = React.useState(true);//用于保存“无域名访问”的折叠状态\n const [isExpandedForAccount, setIsExpandedForAccount] = React.useState(false);//用于保存“无域名访问”的折叠状态\n\n const getDomains = async () => {\n try {\n const response = await AppDomainList({ app_id: props.data.app_id });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n let responseData = response.data.ResponseData.Domain_set;\n let defaultdomain = responseData.default_domain; //获取返回的默认域名数据\n\n let resturnDomains = responseData.domains.map(domain => {\n return {\n app_id: props.data.app_id,\n domainValue: domain,\n newDomainValue: domain,\n isEditable: false,\n isFromAPI: true,\n isDefaultDomain: domain === defaultdomain ? true : false\n };\n });\n //排序:将默认域名放前面\n // resturnDomains.sort((a, b) => {\n // return b.isDefaultDomain - a.isDefaultDomain;\n // });\n setDomains(resturnDomains);\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n }\n\n useEffect(() => {\n getDomains();\n }, []);\n\n //添加域名\n const addRow = () => {\n if (domains.length < 10) {\n // 限制最多只能有10个domain\n setDomains([\n ...domains,\n {\n app_id: props.data.app_id,\n domainValue: \"\",\n newDomainValue: \"\",\n isEditable: true,\n isFromAPI: false,\n isDefaultDomain: false\n },\n ]);\n }\n }\n\n //删除域名\n const deleteRow = async (row, index) => {\n if (!row.isFromAPI) { //如果是点“添加”产生的记录行,则直接删除,不需要调用接口\n const newRows = [...domains]; // 复制状态数组\n newRows.splice(index, 1); // 删除指定索引的对象\n setDomains(newRows); // 更新状态数组\n }\n else { //表示记录是从接口获取的,删除时需要调用接口删除\n setShowRemoveDomain(true);\n setDeleteRowData(row);\n }\n }\n\n //编辑\n const editRow = (index) => {\n const newRows = [...domains]; // 复制状态数组\n newRows[index].isEditable = !newRows[index].isEditable; // 切换isEditable属性\n setDomains(newRows); // 更新状态数组\n }\n\n //取消编辑\n const cancelEditRow = (index) => {\n const newRows = [...domains]; // 复制状态数组\n newRows[index].newDomainValue = newRows[index].domainValue; // 用户有修改但是取消编辑,需要将数据还原\n newRows[index].isEditable = !newRows[index].isEditable; // 切换isEditable属性\n setDomains(newRows); // 更新状态数组\n }\n\n //设为默认域名\n const setDefaultDomain = async (index) => {\n const defaultDomain = domains[index].newDomainValue; //获取域名\n setLoading(true);\n try { //调用设定默认域名接口\n const response = await AppDomainSet({ app_id: props.data.app_id, domain: defaultDomain });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n setShowAlert(true);\n setAlertType(\"success\")\n setAlertMessage(\"设置成功!\");\n getDomains();\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n finally {\n setLoading(false);\n }\n }\n\n //保存\n const saveRow = async (row, index) => {\n const input = document.getElementsByName(`domain-${index}`)[0]; // 获取搜索框元素\n const value = input.value; // 获取搜索框的值\n const regex = /^(?!https?:\\/\\/)([\\da-z\\.-]+\\.)*([\\da-z\\.-]+)\\.([a-z\\.]{2,6})([\\/\\w \\.-]*)*\\/?$/; // 定义一个正则表达式,用来验证域名的格式\n if (value) {\n if (regex.test(value)) {\n if (row.isFromAPI) { //如果取到isFromAPI为true,表示要修改数据\n if (row.domainValue != row.newDomainValue) { //如果修改前的数据不等于修改后的数据,则调用修改接口\n setLoading(true);\n try {\n const response = await AppDomainUpdate({ app_id: props.data.app_id, domain_old: row.domainValue, domain_new: value });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n setShowAlert(true);\n setAlertType(\"success\")\n setAlertMessage(\"Success\");\n getDomains();\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n finally {\n setLoading(false);\n }\n }\n else {\n const newRows = [...domains]; // 复制状态数组\n newRows[index].isEditable = !newRows[index].isEditable; // 切换isEditable属性\n setDomains(newRows); // 更新状态数组\n }\n }\n else { //如果取到isFromAPI为false,表示是绑定数据 \n try {\n setLoading(true);\n const response = await AppDomainAdd({ app_id: props.data.app_id, domains: value });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n setShowAlert(true);\n setAlertType(\"success\")\n setAlertMessage(\"Success\");\n getDomains();\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n finally {\n setLoading(false);\n }\n }\n } else {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(_(\"Please enter the correct domain name and cannot start with http or https!\"));\n }\n }\n else {\n // 如果搜索框的值为空\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(_(\"Domain name cannot be empty\"));\n }\n }\n\n //处理输入\n function handleChange(index, e) {\n const newRows = [...domains]; // 复制状态数组\n newRows[index].newDomainValue = e.target.value; // 修改inputValue属性\n setDomains(newRows); // 更新状态数组\n }\n\n const handleAlertClose = (event, reason) => {\n if (reason === 'clickaway') {\n return;\n }\n setShowAlert(false);\n setAlertMessage(\"\");\n };\n\n //用于取消删除域名弹窗\n const cancelRemoveDomain = () => {\n setShowRemoveDomain(false);\n };\n\n const [isOpen, setIsOpen] = useState(false);\n const toggle = () => setIsOpen(!isOpen);\n\n const handleChangefordomin = (event, newExpanded) => {\n setIsExpandedForDomain(newExpanded);\n };\n\n const handleChangefornodomin = (event, newExpanded) => {\n setIsExpandedForNoDomain(newExpanded);\n };\n\n const handleChangeforaccount = (event, newExpanded) => {\n setIsExpandedForAccount(newExpanded);\n };\n\n return (\n <>\n \n {loading && (\n
\n
\n
\n )}\n \n \n }\n aria-controls=\"panel1a-content\"\n id=\"panel1a-header\"\n >\n \n \n \n 建议绑定域名访问应用,以免无域名造成应用异常\n \n \n \n \n \n \n \n \n \n \n \n {\n props.data?.config?.admin_domain_url && (\n \n \n \n )\n }\n \n \n \n \n \n {domains.map((row, index) => (\n \n \n \n handleChange(index, e)} />\n \n \n \n \n {row.isEditable && row.isFromAPI && (\n <>\n \n \n \n )}\n {row.isEditable && !row.isFromAPI && (\n\n \n )}\n {!row.isEditable && (\n <>\n \n \n \n \n {\n row.isDefaultDomain ? (\n {_(\"default\")} \n ) : (\n \n )\n }\n \n )}\n \n \n ))}\n \n \n \n \n \n 如要需要进行Https设置,或者更多自定义配置,请点击更多\n \n \n \n \n \n \n \n \n \n \n \n {\n (props.data?.config?.url && ((props.data?.config?.default_domain && !props.data?.app_replace_url) || (!props.data?.config?.default_domain))) &&\n \n }\n aria-controls=\"panel2a-content\"\n id=\"panel2a-header\"\n >\n \n \n 没有域名可以通过IP+端口的方式临时访问应用\n \n \n \n \n \n \n {\n props.data?.config?.url &&\n (\n \n )\n }\n {\n props.data?.config?.admin_url &&\n (\n \n )\n }\n \n \n \n \n \n }\n {\n props.data?.config?.admin_username &&\n \n }\n aria-controls=\"panel3a-content\"\n id=\"panel3a-header\"\n >\n \n \n \n 此应用程序是使用管理员帐户预先设置的,请立即更改管理员密码。初始凭据为:\n \n \n \n \n \n \n \n {/*

\n This app is pre-setup with an admin account,Please change the admin password immediately. The initial credentials are:\n

*/}\n \n \n UserName\n \n \n \n \n \n\n \n \n Password\n \n \n \n \n \n
\n
\n
\n
\n
\n }\n
\n
\n {\n showRemoveDomain &&\n \n }\n {\n showAlert &&\n \n \n {alertMessage}\n \n \n }\n \n );\n}\n\nexport default AppAccess;","import axios from 'axios';\nimport cockpit from \"cockpit\";\nimport React, { useEffect, useState } from 'react';\nimport { Badge, Button, Card, Col, Row, Table } from 'react-bootstrap';\nimport { useNavigate } from 'react-router-dom';\n\nconst _ = cockpit.gettext;\n\nconst AppContainer = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n const [containersInfo, setContainersInfo] = useState([]);\n const customer_name = props.data.customer_name;\n const [endpointsId, setEndpointsId] = useState(null);\n\n //通过Portainer的接口获取容器数据\n const getContainersData = async () => {\n try {\n let jwt = window.localStorage.getItem(\"portainer.JWT2\"); //获取存储在本地的JWT数据 \n\n //如果获取不到jwt,则模拟登录并写入新的jwt\n if (jwt === null) {\n const response = await axios.get('../container/config.json'); //从项目下读取配置文件\n if (response.status === 200) {\n let config = response.data;\n const { PORTAINER_USERNAME, PORTAINER_PASSWORD, PORTAINER_AUTH_URL, PORTAINER_HOME_PAGE } = config;\n\n //调用portainer的登录API,模拟登录\n const authResponse = await axios.post(PORTAINER_AUTH_URL, {\n username: PORTAINER_USERNAME,\n password: PORTAINER_PASSWORD\n });\n if (authResponse.status === 200) {\n //jwt = \"\\\"\" + authResponse.data.jwt + \"\\\"\";\n jwt = authResponse.data.jwt\n //let jwt_localStorage = \"\\\"\" + authResponse.data.jwt + \"\\\"\";\n window.localStorage.setItem('portainer\\.JWT2', jwt); //关键是将通过API登录后获取的jwt,存储到本地localStorage\n } else {\n console.error('Error:', authResponse);\n }\n }\n else {\n console.error('Error:', response);\n }\n }\n else {\n jwt = jwt.replace(/\"/g, '')\n }\n\n //从portainer接口获取endpoints\n const endpointsData = await axios.get('/portainer/api/endpoints', {\n headers: {\n 'Authorization': 'Bearer ' + jwt\n }\n });\n if (endpointsData.status === 200) {\n //应该可能会返回“远程”的endpoint,这里只获取“本地”endpoint,条件为URL包含'/var/run/docker.sock'\n const id = endpointsData.data.find(({ URL }) => URL.includes('/var/run/docker.sock')).Id;\n setEndpointsId(id)\n //调用接口获取\n const containersData = await axios.get(`/portainer/api/endpoints/${id}/docker/containers/json`, {\n headers: {\n 'Authorization': 'Bearer ' + jwt\n },\n params: {\n all: true,\n filters: JSON.stringify({ \"label\": [`com.docker.compose.project=${customer_name}`] })\n }\n })\n if (containersData.status === 200) {\n setContainersInfo(containersData.data);\n }\n else {\n console.error('Error:', containersData);\n }\n }\n else {\n console.error('Error:', endpointsData);\n }\n }\n catch (error) {\n console.error('Error:', error);\n //navigate(\"/error-500\");\n }\n }\n\n useEffect(() => {\n getContainersData();\n }, []);\n\n return (\n \n \n \n \n \n \n \n 本应用由如下容器组成,名称为 {customer_name} 的为主容器 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {containersInfo.map((container, index) => {\n return (\n \n \n \n \n \n \n \n \n \n );\n })}\n \n
NameStateActionsImageCreatedIp AddressPublished Ports
{container.Names?.[0]?.replace(/^\\/|\\/$/g, '')}\n \n {container.State}\n \n \n \n {' '}\n \n {\n container.State === \"running\" && (\n \n {' '}\n \n )\n }\n\n {container.Image}{new Date(container.Created * 1000).toLocaleString()}{container.NetworkSettings.Networks[container.HostConfig.NetworkMode].IPAddress}{container.Ports.find(port => port.IP && /^(\\d{1,3}\\.){3}\\d{1,3}$/.test(port.IP))?.PublicPort}:{container.Ports.find(port => port.IP && /^(\\d{1,3}\\.){3}\\d{1,3}$/.test(port.IP))?.PrivatePort}
\n
\n
\n \n
\n );\n}\n\nexport default AppContainer;","import cockpit from \"cockpit\";\nimport React from 'react';\nimport { Card, Col, Row, Table } from 'react-bootstrap';\nimport { useNavigate } from 'react-router-dom';\n\nconst _ = cockpit.gettext;\n\nconst AppOverview = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
应用名称:{props.data?.app_name}
应用版本:{props.data?.app_version}
应用端口:{props.data?.config?.port}
创建时间:{props.data?.create_time}
配置目录: {props.data?.config_path}
数据目录:{props.data?.volume_data}
\n {/* \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
应用名称:{props.data?.app_name}应用版本:{props.data?.app_version}
应用端口:{props.data?.config?.port}创建时间:{props.data?.create_time}
配置目录: {props.data?.config_path}数据目录:{props.data?.volume_data}
*/}\n
\n
\n \n
\n );\n}\n\nexport default AppOverview;","import classNames from 'classnames';\nimport cockpit from 'cockpit';\nimport React, { forwardRef, useImperativeHandle, useState } from 'react';\nimport { Alert, Button, Col, Modal, Row } from 'react-bootstrap';\nimport { useNavigate } from 'react-router-dom';\nimport Spinner from '../../components/Spinner';\nimport { AppStart, AppStop, AppUninstall } from '../../helpers';\n\nconst _ = cockpit.gettext;\n\n//卸载应用时的确定/取消弹窗\nconst UninstallConform = (props) => {\n const navigate = useNavigate(); //用于页面跳转\n const [disable, setDisable] = useState(false);//用于按钮禁用\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n\n function closeAllModals() {\n //关闭弹窗\n props.onClose();\n props.onCloseFatherModal();\n\n //更新主页APP的数据\n props.onDataChange();\n }\n\n return (\n \n \n

{_(\"Uninstall\")} {props.app.customer_name}

\n
\n \n {_(\"This will immediately uninstall\")} {props.app.customer_name} {_(\"and remove all its data.\")}\n
\n {showAlert && \n {alertMessage}\n }\n
\n
\n \n {\" \"}\n \n \n
\n );\n}\n\n//卸载应用选项卡\nconst Uninstall = forwardRef((props, ref): React$Element => {\n const [showUninstallConform, setShowUninstallConform] = useState(false);//用于确认卸载弹窗的标识\n const [disable, setDisable] = useState(false);//用于按钮禁用\n const navigate = useNavigate(); //用于页面跳转\n\n //用于显示确定/取消卸载应用的弹窗\n const handleClick = () => {\n setShowUninstallConform(true);\n };\n //用于关闭确定/取消卸载应用的弹窗\n const handleClose = () => {\n setShowUninstallConform(false);\n };\n\n //设置按钮禁用\n const setButtonDisable = () => {\n setDisable(true);\n };\n\n //设置按钮启用\n const setButtonEnable = () => {\n setDisable(false);\n };\n\n //提供给父组件调用的方法,用于在父组件中调用子组件的方法\n useImperativeHandle(ref, () => ({\n setButtonDisable,\n setButtonEnable,\n }));\n\n return (\n <>\n \n \n \n

\n {_(\"Apps can be stopped to conserve server resources instead of uninstalling.\")}\n

\n {props.data.status === \"running\" ?\n \n :\n \n }\n \n
\n
\n \n \n \n

\n {_(\"This will uninstall the app immediately and remove all its data.The app will be inaccessible.\")}\n

\n \n \n
\n {showUninstallConform && }\n \n );\n});\n\nexport default Uninstall;","import classnames from \"classnames\";\nimport cockpit from 'cockpit';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { Button, Col, Modal, Nav, OverlayTrigger, Row, Tab, Tooltip } from 'react-bootstrap';\nimport { Link, useNavigate } from 'react-router-dom';\nimport DefaultImg from '../assets/images/default.png';\nimport Spinner from '../components/Spinner';\nimport { AppRestart, AppStart, AppStop } from '../helpers';\nimport AppAccess from './appdetailtabs/appaccess';\nimport AppContainer from './appdetailtabs/appcontainer';\nimport AppOverview from './appdetailtabs/appoverview';\nimport Uninstall from './appdetailtabs/appuninstall';\n\nconst _ = cockpit.gettext;\n\nconst AppDetailModal = (props): React$Element => {\n const [restartDisable, setRestartDisable] = useState(false);//用于重启按钮的按钮禁用\n const [buttonDisable, setButtonDisable] = useState(false); //用于启动/停止按钮禁用\n const [currentApp, setCurrentApp] = useState(props.current_app);\n const [startAppLoading, setStartAppLoading] = useState(false); //用户显示启动应用的加载状态\n const [stopAppLoading, setStopAppLoading] = useState(false); //用户显示停止时应用的加载状态\n const [restartAppLoading, setRestartAppLoading] = useState(false); //用户显示重启时应用的加载状态\n const navigate = useNavigate(); //用于页面跳转\n const childRef = useRef();\n\n //设置卸载页面的按钮禁用\n const setUninstallButtonDisable = () => {\n // 通过ref调用子组件的方法\n childRef.current.setButtonDisable();\n };\n\n //设置卸载页面的按钮启用\n const setUninstallButtonEnable = () => {\n // 通过ref调用子组件的方法\n childRef.current.setButtonEnable();\n };\n\n //设置启动/停止按钮禁用,用于传递给卸载页面\n const setAppdetailButtonDisable = () => {\n setButtonDisable(true);\n setRestartDisable(true);\n };\n //设置启动/停止按钮启用,用于传递给卸载页面\n const setAppdetailButtonEnable = () => {\n setButtonDisable(false);\n setRestartDisable(false);\n };\n\n useEffect(() => {\n setCurrentApp(props.current_app);\n }, [props.current_app]);\n\n const tabContents = [\n {\n id: '1',\n title: _(\"Overview\"),\n icon: 'mdi mdi-account-circle',\n text: ,\n },\n {\n id: '2',\n title: _(\"Access\"),\n icon: 'mdi mdi-account-circle',\n text: ,\n },\n {\n id: '3',\n title: _(\"Container\"),\n icon: 'mdi mdi-account-circle',\n text: ,\n },\n {\n id: '4',\n title: _(\"Uninstall\"),\n icon: 'mdi mdi-cog-outline',\n text: ,\n },\n ];\n\n return (\n currentApp && \n \n
\n
\n (e.target.src = DefaultImg)}\n />\n
\n
\n

\n {currentApp.customer_name}\n

\n
\n {currentApp.status}\n
\n
\n
\n {\n currentApp.status === \"exited\" &&\n \n {_(\"Start App\")}\n \n }>\n \n \n }\n {\n currentApp.status === \"running\" &&\n \n {_(\"Stop App\")}\n \n }>\n \n \n }\n \n {_(\"Restart App\")}\n \n }>\n \n \n {\n currentApp.status === \"running\" &&\n \n {_(\"Terminal\")}\n \n }>\n \n {' '}\n \n \n }\n {\n \n {_(\"Documentation\")}\n \n }>\n \n {' '}\n \n \n }\n
\n
\n
\n \n \n \n
\n \n \n \n {tabContents.map((tab, index) => {\n return (\n \n \n \n {tab.text}\n \n \n \n );\n })}\n \n \n \n \n \n );\n}\n\nexport default AppDetailModal;","import MuiAlert from '@mui/material/Alert';\nimport Snackbar from '@mui/material/Snackbar';\nimport classNames from 'classnames';\nimport cockpit from 'cockpit';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { Alert, Button, Col, Dropdown, Modal, Row } from 'react-bootstrap';\nimport { Link, Navigate, useNavigate } from 'react-router-dom';\nimport DefaultImg from '../assets/images/default.png';\nimport FormInput from '../components/FormInput';\nimport Spinner from '../components/Spinner';\nimport { AppList, AppRestart, AppStart, AppStop, AppUninstall } from '../helpers';\nimport AppDetailModal from './appdetail';\n\nconst _ = cockpit.gettext;\n\nconst MyMuiAlert = React.forwardRef(function Alert(props, ref) {\n return ;\n});\n\n//应用状态为failed时,显示错误消息\nconst ErrorInfoModal = (props): React$Element => {\n return (\n \n \n

{_(\"This is the error message for\")} {props.app.customer_name}

\n
\n \n {\n props.app.status_reason &&\n <>\n {_(\"Code: \")}{props.app.status_reason.Code} \n {_(\"Message: \")}{props.app.status_reason.Message} \n {_(\"Detail: \")}{props.app.status_reason.Detail} \n \n }\n \n \n \n \n \n
\n );\n}\n\n//删除应用弹窗\nconst UninstallConform = (props): React$Element => {\n const navigate = useNavigate(); //用于页面跳转\n const [disable, setDisable] = useState(false);//用于按钮禁用\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n\n function closeAllModals() {\n //关闭所有弹窗\n props.onClose();\n props.onDataChange();\n }\n\n return (\n \n \n

{_(\"Remove\")} {props.app.customer_name}

\n
\n \n {_(\"This will immediately remove\")} {props.app.customer_name} {_(\"and remove all its data.\")}\n
\n {showAlert && \n {alertMessage}\n }\n
\n
\n \n {\" \"}\n \n \n
\n );\n}\n\nconst MyApps = (): React$Element => {\n const [showModal, setShowModal] = useState(false); //用于显示状态为running或exited弹窗的标识\n const [showUninstallConform, setShowUninstallConform] = useState(false); //用于显示状态为failed时显示确定删除的弹窗\n const [showErrorInfo, setShowErrorInfo] = useState(false); //用于显示状态为failed时显示错误消息的弹窗\n const [showOtherAppModal, setShowOtherAppModal] = useState(false); //用于显示非websoft9应用的的弹窗的标识\n const [isLoading, setIsLoading] = useState(false); //用于非官方应用启动 停止 重启 卸载时,显示加载中\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n const [alertType, setAlertType] = useState(\"\");//用于确定弹窗的类型:error\\success\n\n const [selectedApp, setSelectedApp] = useState(null); //用于存储被选中的产品(点击应用详情时使用)\n const [apps, setApps] = useState([]); //所有“我的应用”\n const [statusApps, setStatusApps] = useState([]);//根据状态筛选的应用\n const [searchString, setSearchString] = useState(\"\");//用户输入的筛选字符串\n const [selectedStatus, setSelectedStatus] = useState(\"all\"); //用于存储用户筛选应用状态的标识\n const [progressId, setProgressId] = useState([]); //用于存储当前正在安装的应用ID,用于做进度查询的参数\n\n const selectedAppRef = useRef(selectedApp);\n const navigate = useNavigate(); //用于页面跳转\n\n const [code, setCode] = useState(0);\n const [error, setError] = useState(null);\n const [errorDetails, setErrorDetails] = useState(null)\n const [loading, setLoading] = useState(false);\n\n const menuItems = (appStatus) => {\n return [\n { label: 'Stop', icon: 'dripicons-power noti-icon', condition: appStatus === \"running\" },\n { label: 'Start', icon: 'dripicons-media-play noti-icon', condition: appStatus === \"exited\" },\n { label: 'Restart', icon: 'dripicons-clockwise noti-icon', condition: appStatus === \"running\" || appStatus === \"exited\" },\n {\n label: 'Uninstall',\n icon: 'dripicons-trash noti-icon',\n variant: 'text-danger',\n hasDivider: true,\n condition: true\n }\n ]\n };\n\n let timer;\n\n //获取所有已安装的App(只执行一次)\n const getAllAppsOnce = () => {\n AppList().then((response) => {\n if (response.data.Error) {\n setCode(response.data.Error.Code);\n setError(response.data.Error.Message);\n setErrorDetails(response.data.Error.Details);\n }\n else {\n const newApps = response.data.ResponseData;\n setApps(newApps);\n if (selectedAppRef.current) {\n const updatedApp = newApps.find(\n (app) => app.app_id === selectedAppRef.current.app_id\n );\n setSelectedApp(updatedApp);\n }\n }\n setLoading(false);\n }).catch((error) => {\n \n });\n }\n\n //获取所有已安装的App(每隔5秒执行一次)\n const getAllApps = () => {\n setLoading(true);\n //调用接口获取已经安装应用\n timer = setInterval(() => {\n AppList().then((response) => {\n if (response.data.Error) {\n setCode(response.data.Error.Code);\n setError(response.data.Error.Message);\n setErrorDetails(response.data.Error.Details);\n }\n else {\n const newApps = response.data.ResponseData;\n setApps(newApps);\n if (selectedAppRef.current) {\n const updatedApp = newApps.find(\n (app) => app.app_id === selectedAppRef.current.app_id\n );\n setSelectedApp(updatedApp);\n }\n }\n setLoading(false);\n }).catch((error) => {\n \n });\n }, 5000);\n return () => clearInterval(timer);\n }\n\n useEffect(() => {\n getAllAppsOnce();\n }, []);\n\n useEffect(() => {\n getAllApps();\n }, []);\n\n useEffect(() => {\n selectedAppRef.current = selectedApp;\n }, [selectedApp]);\n\n useEffect(() => {\n return () => clearInterval(timer); //用于清除定时器\n }, []);\n\n if (loading) return ;\n if (code) return

Code : ${code}

;\n if (error) return

Error : ${error}

;\n\n //用于根据应用“状态”过滤应用\n const changeStatus = (selectedStatus) => {\n setSelectedStatus(selectedStatus);\n };\n\n //用于根据用户输入搜索应用\n const handleInputChange = (searchString) => {\n setSearchString(searchString);\n }\n\n //用于用户点击应用详情\n const handleClick = (app) => {\n setSelectedApp(app);\n setShowModal(true);\n };\n\n //用于应用为failed时删除应用\n const deleteApp = (app) => {\n setSelectedApp(app);\n setShowUninstallConform(true);\n };\n\n //用于应用为failed时显示错误信息弹窗\n const showError = (app) => {\n setSelectedApp(app);\n setShowErrorInfo(true);\n };\n\n //用于关闭显示错误消息弹窗\n const cancelShowError = () => {\n setShowErrorInfo(false);\n };\n\n //用于取消删除应用\n const canceldeleteApp = () => {\n setShowUninstallConform(false);\n };\n\n //用于关闭应用详情的弹窗\n const handleClose = () => {\n setShowModal(false);\n setSelectedApp(null);\n };\n\n const handleAlertClose = (event, reason) => {\n if (reason === 'clickaway') {\n return;\n }\n setShowAlert(false);\n setAlertMessage(\"\");\n };\n\n //用于立即刷新数据\n const handleDataChange = () => {\n getAllAppsOnce();\n };\n\n //非官方应用的操作\n const appActions = {\n \"Stop\": {\n api: AppStop,\n },\n \"Start\": {\n api: AppStart,\n },\n \"Restart\": {\n api: AppRestart,\n },\n \"Uninstall\": {\n api: AppUninstall,\n }\n }\n\n //处理非官方应用的操作\n const NoOfficialAppClick = async (label, app) => {\n if (label === \"Uninstall\") {\n setSelectedApp(app);\n setShowUninstallConform(true);\n return;\n }\n\n setIsLoading(true);\n try {\n const response = await appActions[label].api({ app_id: app.app_id });\n if (response.data.Error) {\n setShowAlert(true);\n setAlertType(\"error\")\n setAlertMessage(response.data.Error.Message);\n }\n else {\n setShowAlert(true);\n setAlertType(\"success\")\n setAlertMessage(\"执行成功\");\n handleDataChange();\n }\n }\n catch (error) {\n navigate(\"/error-500\");\n }\n finally {\n setIsLoading(false);\n }\n }\n\n return (\n <>\n \n \n {_(\"My Apps\")}\n \n \n changeStatus(e.target.value)} >\n \n \n \n \n \n \n \n \n \n \n handleInputChange(e.target.value)}\n />\n \n \n \n \n \n \n {\n [true, false].map((official_app) => {\n // 过滤出符合条件的apps\n const filteredApps = apps.filter((app) => selectedStatus === 'all' || app.status === selectedStatus)\n .filter((app) => app.official_app === official_app)\n .filter((app) => app.customer_name.includes(searchString));\n // 如果有数据,返回一个Row组件,否则返回null\n return filteredApps.length > 0 ? (\n \n {/* 根据official_app的值显示不同的标题 */}\n

{official_app ? _(\"Websoft9's Apps\") : _(\"Other Apps\")}

\n {filteredApps.map((app, i) => (\n \n
\n {\n (!official_app && (app.status === \"running\" || app.status === \"exited\")) &&\n \n \n {isLoading ? : }\n \n \n {(menuItems(app.status) || []).map((item, index) => {\n return (\n \n {item.condition && item.hasDivider && }\n {\n item.condition && NoOfficialAppClick(item.label, app)}\n >\n {item.icon && }\n {/* {isLoading ? : item.icon && } */}\n {item.label}\n \n }\n \n );\n })}\n \n \n }\n {\n (official_app && (app.status === \"running\" || app.status === \"exited\")) &&\n <>\n
{ handleClick(app) }}>\n \n
\n
\n \n }\n {\n (official_app && app.status === \"installing\") &&\n <>\n
\n \n
\n
\n \n }\n {\n app.status === 'failed' &&\n <>\n
\n { showError(app) }}>\n { deleteApp(app) }}>\n
\n
\n \n }\n
\n (e.target.src = DefaultImg)}\n />\n
\n
\n

\n {app.customer_name}\n

\n
\n {app.status && app.status === \"installing\" && }\n {\" \"}\n
{app.status}
\n
\n
\n
\n \n ))}\n
\n ) : null;\n })\n }\n {\n showModal && \n }\n {\n showUninstallConform &&\n \n }\n {\n showErrorInfo &&\n \n }\n {\n showAlert &&\n \n \n {alertMessage}\n \n \n }\n \n );\n};\n\nexport default MyApps;\n"],"names":["PasswordInput","_ref","name","placeholder","refCallback","errors","register","className","value","readOnly","_useState","useState","_useState2","_slicedToArray","showPassword","setShowPassword","_jsx","_Fragment","children","_jsxs","InputGroup","Form","_objectSpread","type","id","as","ref","r","isInvalid","autoComplete","defaultValue","classNames","onClick","_ref2","label","labelClassName","containerClass","otherProps","_objectWithoutProperties","_excluded","comp","Spinner","props","Tag","tag","color","size","role","concat","_defineProperty","defaultProps","axios","response","error","message","status","Navigate","data","Promise","reject","api","_createClass","APICore","_classCallCheck","get","url","params","queryString","Object","keys","map","key","join","create","AppInstall","AppList","AppUninstall","AppStop","AppStart","AppRestart","AppDomainList","AppDomainDelete","AppDomainUpdate","AppDomainAdd","AppDomainSet","_","cockpit","MyMuiAlert","React","MuiAlert","elevation","variant","RemoveDomain","navigate","useNavigate","disable","setDisable","_useState3","_useState4","showAlert","setShowAlert","_useState5","_useState6","alertMessage","setAlertMessage","Modal","show","showConform","onHide","onClose","scrollable","backdrop","style","backgroundColor","margin","deleteRowData","domainValue","Alert","Button","disabled","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","app_id","domain","sent","Error","Message","onDataChange","t0","finish","stop","_props$data","_props$data$config","_props$data2","_props$data2$config","_props$data3","_props$data3$config","_props$data4","_props$data4$config","_props$data5","_props$data6","_props$data6$config","_props$data7","_props$data7$config","_props$data8","_props$data8$config","_props$data9","_props$data9$config","_props$data10","_props$data10$config","_props$data11","_props$data11$config","_props$data12","_props$data12$config","_props$data13","_props$data13$config","_props$data14","_props$data14$config","_props$data15","_props$data15$config","_useState7","_useState8","domains","setDomains","_useState9","_useState10","loading","setLoading","_useState11","_useState12","_useState13","_useState14","_useState15","_useState16","alertType","setAlertType","_useState17","_useState18","showRemoveDomain","setShowRemoveDomain","_useState19","_useState20","setDeleteRowData","_useState21","_useState22","_React$useState","_React$useState2","isExpandedForDomain","setIsExpandedForDomain","_React$useState3","_React$useState4","isExpandedForNoDomain","setIsExpandedForNoDomain","_React$useState5","_React$useState6","isExpandedForAccount","setIsExpandedForAccount","getDomains","_callee2","responseData","defaultdomain","resturnDomains","_context2","ResponseData","Domain_set","default_domain","newDomainValue","isEditable","isFromAPI","isDefaultDomain","apply","arguments","useEffect","deleteRow","_ref3","_callee3","row","index","newRows","_context3","_toConsumableArray","splice","_x","_x2","setDefaultDomain","_ref4","_callee4","defaultDomain","_context4","_x3","saveRow","_ref5","_callee5","input","regex","_response","_context5","document","getElementsByName","test","domain_old","domain_new","t1","_x4","_x5","handleAlertClose","event","reason","_useState23","_useState24","Card","zIndex","Accordion","defaultExpanded","onChange","newExpanded","AccordionSummary","expandIcon","ExpandMoreIcon","Typography","display","AccordionDetails","Row","Col","xs","md","length","config","admin_domain_url","href","target","_callee6","_context6","FormInput","e","handleChange","padding","cancelEditRow","editRow","Badge","sm","app_replace_url","admin_url","admin_username","htmlFor","column","admin_password","Snackbar","open","autoHideDuration","anchorOrigin","vertical","horizontal","severity","sx","width","containersInfo","setContainersInfo","customer_name","endpointsId","setEndpointsId","getContainersData","jwt","PORTAINER_USERNAME","PORTAINER_PASSWORD","PORTAINER_AUTH_URL","authResponse","endpointsData","containersData","window","localStorage","getItem","PORTAINER_HOME_PAGE","username","password","setItem","console","replace","headers","find","URL","includes","Id","all","filters","JSON","stringify","Table","textAlign","container","_container$Names","_container$Names$","_container$Ports$find","_container$Ports$find2","Names","State","title","Image","Date","Created","toLocaleString","NetworkSettings","Networks","HostConfig","NetworkMode","IPAddress","Ports","port","IP","PublicPort","PrivatePort","responsive","bordered","fontWeight","app_name","app_version","create_time","config_path","volume_data","UninstallConform","closeButton","app","onCloseFatherModal","forwardRef","showUninstallConform","setShowUninstallConform","setButtonDisable","setButtonEnable","useImperativeHandle","marginBottom","disabledButton","enableButton","restartDisable","setRestartDisable","buttonDisable","current_app","currentApp","setCurrentApp","startAppLoading","setStartAppLoading","stopAppLoading","setStopAppLoading","restartAppLoading","setRestartAppLoading","childRef","useRef","setUninstallButtonDisable","current","setUninstallButtonEnable","tabContents","icon","text","AppOverview","AppAccess","AppContainer","Uninstall","showFlag","dialogClassName","alignItems","src","image_url","alt","onError","DefaultImg","marginTop","flexGrow","justifyContent","OverlayTrigger","placement","overlay","Tooltip","borderRadius","marginRight","Link","to","pathname","search","borderColor","Tab","defaultActiveKey","Nav","tab","renderElement","eventKey","classnames","height","ErrorInfoModal","status_reason","Code","Detail","timer","showModal","setShowModal","showErrorInfo","setShowErrorInfo","isLoading","setIsLoading","selectedApp","setSelectedApp","_useState25","_useState26","apps","setApps","_useState27","_useState28","_useState29","_useState30","searchString","setSearchString","_useState31","_useState32","selectedStatus","setSelectedStatus","_useState33","_useState34","selectedAppRef","_useState35","_useState36","code","setCode","_useState37","_useState38","setError","_useState39","_useState40","setErrorDetails","_useState41","_useState42","getAllAppsOnce","then","Details","newApps","updatedApp","catch","setInterval","clearInterval","handleDataChange","appActions","NoOfficialAppClick","abrupt","fontSize","changeStatus","handleInputChange","location","reload","official_app","filteredApps","filter","paddingTop","i","xxl","Dropdown","align","appStatus","condition","hasDivider","item","handleClick","paddingRight","showError","deleteApp","AppDetailModal"],"sourceRoot":""} \ No newline at end of file diff --git a/src/apps/build/static/js/918.c6fb41f4.chunk.js b/src/apps/build/static/js/918.c6fb41f4.chunk.js deleted file mode 100644 index 879904d95..000000000 --- a/src/apps/build/static/js/918.c6fb41f4.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkapps=self.webpackChunkapps||[]).push([[918],{3131:function(e,n,t){var a=t(5987),l=t(1413),r=t(9439),s=t(1694),i=t.n(s),o=t(2791),c=t(9410),d=t(9795),u=t(184),p=["label","type","name","value","readOnly","placeholder","register","errors","className","labelClassName","containerClass","refCallback","children"],m=function(e){var n=e.name,t=e.placeholder,a=e.refCallback,s=e.errors,p=e.register,m=e.className,h=e.value,v=e.readOnly,g=(0,o.useState)(!1),x=(0,r.Z)(g,2),f=x[0],j=x[1];return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(c.Z,{className:"mb-0",children:[(0,u.jsx)(d.Z.Control,(0,l.Z)((0,l.Z)({type:f?"text":"password",placeholder:t,name:n,id:n,as:"input",ref:function(e){a&&a(e)},className:m,isInvalid:!(!s||!s[n])},p?p(n):{}),{},{autoComplete:n,defaultValue:h,readOnly:v})),(0,u.jsx)("div",{className:i()("input-group-text","input-group-password",{"show-password":f}),"data-password":f?"true":"false",children:(0,u.jsx)("span",{className:"password-eye",onClick:function(){j(!f)}})})]})})};n.Z=function(e){var n=e.label,t=e.type,r=e.name,s=e.value,i=e.readOnly,o=e.placeholder,c=e.register,h=e.errors,v=e.className,g=e.labelClassName,x=e.containerClass,f=e.refCallback,j=e.children,Z=(0,a.Z)(e,p),y="textarea"===t?"textarea":"select"===t?"select":"input";return(0,u.jsx)(u.Fragment,{children:"hidden"===t?(0,u.jsx)("input",(0,l.Z)((0,l.Z)({type:t,name:r},c?c(r):{}),Z)):(0,u.jsx)(u.Fragment,{children:"password"===t?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d.Z.Group,{className:x,children:[n?(0,u.jsxs)(u.Fragment,{children:[" ",(0,u.jsx)(d.Z.Label,{className:g,children:n})," ",j," "]}):null,(0,u.jsx)(m,{name:r,placeholder:o,refCallback:f,errors:h,register:c,className:v,value:s,readOnly:i}),h&&h[r]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",className:"d-block",children:h[r].message}):null]})}):(0,u.jsx)(u.Fragment,{children:"select"===t?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d.Z.Group,{className:x,children:[n?(0,u.jsx)(d.Z.Label,{className:g,children:n}):null,(0,u.jsx)(d.Z.Select,(0,l.Z)((0,l.Z)((0,l.Z)({type:t,label:n,name:r,id:r,ref:function(e){f&&f(e)},comp:y,className:v,isInvalid:!(!h||!h[r])},c?c(r):{}),Z),{},{children:j})),h&&h[r]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",children:h[r].message}):null]})}):(0,u.jsx)(u.Fragment,{children:"checkbox"===t||"radio"===t?(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d.Z.Group,{className:x,children:[(0,u.jsx)(d.Z.Check,(0,l.Z)((0,l.Z)({type:t,label:n,name:r,id:r,ref:function(e){f&&f(e)},className:v,isInvalid:!(!h||!h[r])},c?c(r):{}),Z)),h&&h[r]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",children:h[r].message}):null]})}):(0,u.jsxs)(d.Z.Group,{className:x,children:[n?(0,u.jsx)(d.Z.Label,{className:g,children:n}):null,(0,u.jsx)(d.Z.Control,(0,l.Z)((0,l.Z)((0,l.Z)({type:t,placeholder:o,value:s,name:r,id:r,as:y,ref:function(e){f&&f(e)},className:v,isInvalid:!(!h||!h[r])},c?c(r):{}),Z),{},{autoComplete:r,children:j||null})),h&&h[r]?(0,u.jsx)(d.Z.Control.Feedback,{type:"invalid",children:h[r].message}):null]})})})})})}},2733:function(e,n,t){var a=t(4942),l=(t(2791),t(1694)),r=t.n(l),s=t(184),i=function(e){var n=e.children||null,t=e.tag||"div",l=e.color||"secondary",i=e.size||"";return(0,s.jsx)(t,{role:"status",className:r()({"spinner-border":"bordered"===e.type,"spinner-grow":"grow"===e.type},["text-".concat(l)],(0,a.Z)({},"avatar-".concat(i),i),e.className),children:n})};i.defaultProps={tag:"div",type:"bordered"},n.Z=i},165:function(e,n,t){t.d(n,{qL:function(){return x},pd:function(){return v},dy:function(){return h},qs:function(){return f},_6:function(){return g},rl:function(){return o},u3:function(){return c},h1:function(){return m},P3:function(){return p},pO:function(){return u},mx:function(){return d}});var a=t(3144),l=t(5671),r=t(1243),s=t(7689);t(184);r.Z.defaults.headers.post["Content-Type"]="application/json",r.Z.defaults.headers.get["Content-Type"]="application/json",r.Z.defaults.headers={"Cache-Control":"no-cache",Pragma:"no-cache",Expires:"0"},r.Z.interceptors.response.use((function(e){return e}),(function(e){var n;if(e&&e.response&&404===e.response.status)s.Fg;else{if(!e||!e.response||500!==e.response.status)return n=e.response&&e.response.data?e.response.data.message:e.message||e,Promise.reject(n);s.Fg}}));var i=new((0,a.Z)((function e(){(0,l.Z)(this,e),this.get=function(e,n){var t;if(n){var a=n?Object.keys(n).map((function(e){return e+"="+n[e]})).join("&"):"";t=r.Z.get("".concat(e,"?").concat(a),n)}else t=r.Z.get("".concat(e),n);return t},this.create=function(e,n){return r.Z.post(e,n)}})));function o(e){return i.get("".concat("/AppManage/AppInstall"),e)}function c(e){return i.get("".concat("/AppManage/AppList"),e)}function d(e){return i.get("".concat("/AppManage/AppUninstall"),e)}function u(e){return i.get("".concat("/AppManage/AppStop"),e)}function p(e){return i.get("".concat("/AppManage/AppStart"),e)}function m(e){return i.get("".concat("/AppManage/AppRestart"),e)}function h(e){return i.get("".concat("/AppManage/AppDomainList"),e)}function v(e){return i.get("".concat("/AppManage/AppDomainDelete"),e)}function g(e){return i.get("".concat("/AppManage/AppDomainUpdate"),e)}function x(e){return i.get("".concat("/AppManage/AppDomainAdd"),e)}function f(e){return i.get("".concat("/AppManage/AppDomainSet"),e)}},918:function(e,n,t){t.r(n);var a,l=t(4165),r=t(5861),s=t(9439),i=t(168),o=t(1413),c=t(3306),d=t(3173),u=t(4358),p=t(3971),m=t(7346),h=t.n(m),v=t(2791),g=t(2025),x=t(9920),f=t(3360),j=t(9743),Z=t(2677),y=t(9795),k=t(7689),C=t(3131),b=t(2733),N=t(165),w=t(184),A=h().gettext,S=h().language,F=v.forwardRef((function(e,n){return(0,w.jsx)(u.Z,(0,o.Z)({elevation:6,ref:n,variant:"filled"},e))})),L=(0,c.Ps)(a||(a=(0,i.Z)(['\n query($locale: String!){\n productCollection(locale:$locale) {\n items {\n sys {\n id\n }\n key\n trademark\n summary\n overview\n websiteurl\n description\n screenshots\n distribution\n highlights\n vcpu\n memory\n storage\n logo {\n imageurl\n }\n catalogCollection(limit:20) {\n items {\n key\n title\n catalogCollection(limit:1){\n items{\n key\n title\n }\n }\n }\n }\n }\n }\n catalog(id: "2Yp0TY3kBHgG6VDjsHZNpK",locale:$locale) {\n linkedFrom(allowedLocales:["en-US"]) {\n catalogCollection(limit:20) {\n items {\n key\n title\n linkedFrom(allowedLocales:["en-US"]) {\n catalogCollection(limit:20) {\n items {\n key\n title\n }\n }\n }\n }\n }\n }\n }\n }\n']))),M=function(e){var n,t=e.product,a=e.showFlag,i=e.onClose,o=(0,v.useState)(0),c=(0,s.Z)(o,2),d=c[0],u=c[1],m=(0,k.s0)(),h=(0,v.useState)(!0),j=(0,s.Z)(h,2),Z=j[0],y=j[1],b=(0,v.useState)(""),S=(0,s.Z)(b,2),L=S[0],M=S[1],D=(0,v.useState)(!1),I=(0,s.Z)(D,2),O=I[0],P=I[1],G=(0,v.useState)(""),_=(0,s.Z)(G,2),R=_[0],z=_[1],H=(0,v.useState)(!1),U=(0,s.Z)(H,2),B=U[0],E=U[1];function T(){return(T=(0,r.Z)((0,l.Z)().mark((function e(){var n;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z){e.next=20;break}if(L){e.next=6;break}P(!0),z(A("Please enter a custom application name")),e.next=19;break;case 6:return e.prev=6,E(!0),e.next=10,(0,N.rl)({app_name:t.key,app_version:K,customer_app_name:L});case 10:(n=e.sent).data.Error?(P(!0),z(n.data.Error.Message),E(!1)):(P(!1),z(""),m("/myapps")),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(6),P(!1),z(""),m("/error-500");case 19:return e.abrupt("return");case 20:y(!Z);case 21:case"end":return e.stop()}}),e,null,[[6,14]])})))).apply(this,arguments)}var q=((null===(n=t.distribution)||void 0===n?void 0:n.filter((function(e){return"Community"===e.key})))||[]).map((function(e){return e.value})),V=q&&1===q.length?q.toString().split(","):q,$=(0,v.useState)(V[0]),Y=(0,s.Z)($,2),K=Y[0],Q=Y[1],W=function(e,n){"clickaway"!==n&&(P(!1),z(""))};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(g.Z,{show:a,onHide:i,size:"lg",scrollable:"true",backdrop:"static",children:[(0,w.jsx)(g.Z.Header,{onHide:i,closeButton:!0,children:(0,w.jsxs)("div",{style:{padding:"10px"},children:[(0,w.jsx)("div",{className:"appstore-item-content-icon col-same-height",children:(0,w.jsx)("img",{src:t.logo.imageurl,alt:"",className:"app-icon"})}),(0,w.jsxs)("div",{className:"col-same-height",children:[(0,w.jsx)("h4",{className:"appstore-item-content-title",style:{marginTop:"5px"},children:t.trademark}),(0,w.jsx)("div",{children:(0,w.jsxs)("a",{rel:"noreferrer",href:"https://support.websoft9.com/docs/"+t.key,target:"_blank",style:{color:"#2196f3"},children:[t.trademark," ",A("developers")]})}),(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,w.jsxs)("span",{style:{marginRight:"5px"},children:[A("Version")," : "]})," ",q]}),(0,w.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,w.jsxs)("span",{style:{marginRight:"5px"},children:[A("Requires at least")," : ",t.vcpu," vCPU, ",t.memory," GB memory, ",t.storage," GB storage"]})})]})]})}),(0,w.jsxs)(g.Z.Body,{children:[(0,w.jsxs)("div",{style:{display:Z?"block":"none"},children:[(0,w.jsx)(x.Z,{activeIndex:d,onSelect:function(e,n){u(e)},style:{width:"80%",margin:"0 auto"},children:(t.screenshots||[]).map((function(e){return(0,w.jsx)(x.Z.Item,{children:(0,w.jsx)("img",{className:"d-block",src:null===e||void 0===e?void 0:e.value,alt:null===e||void 0===e?void 0:e.key,width:"100%",height:"300px"})},null===e||void 0===e?void 0:e.id)}))}),(0,w.jsxs)("div",{style:{padding:"10px"},children:[(0,w.jsx)("h4",{children:A("Overview")}),t.overview]}),(0,w.jsxs)("div",{style:{padding:"10px"},children:[(0,w.jsx)("h4",{children:A("Description")}),t.description]})]}),(0,w.jsx)("div",{style:{display:Z?"none":"block"},children:(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,w.jsxs)("div",{children:[(0,w.jsxs)("span",{style:{marginRight:"5px"},children:[A("Version")," :"]}),V&&(0,w.jsx)(C.Z,{name:"select",type:"select",className:"form-select",onChange:function(e){return n=e.target.value,void Q(n);var n},children:(V||[]).map((function(e,n){return(0,w.jsx)("option",{value:e,children:e},e+n)}))},"select")]}),(0,w.jsxs)("div",{style:{marginTop:"5px"},children:[(0,w.jsxs)("span",{style:{marginRight:"5px"},children:[A("Name")," :"]}),(0,w.jsx)(C.Z,{type:"text",value:L,name:"app_Name",placeholder:A("Only letters and numbers are allowed. No special characters."),onChange:function(e){!function(e){if(M(e),e){var n=e.replace(/[^a-z0-9]/gi,"").toLowerCase();M(n),P(!1),z("")}else P(!0),z(A("Please enter a custom application name"))}(e.target.value)}})]})]})})]}),(0,w.jsxs)(g.Z.Footer,{children:[(0,w.jsx)(f.Z,{variant:"light",onClick:i,children:A("Close")})," ",(0,w.jsx)(f.Z,{disabled:B,variant:"primary",onClick:function(){return T.apply(this,arguments)},children:A("Install")})]})]}),O&&(0,w.jsx)(p.Z,{open:O,autoHideDuration:5e3,onClose:W,anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,w.jsx)(F,{onClose:W,severity:"error",sx:{width:"100%"},children:R})})]})};n.default=function(){var e,n=(0,v.useState)(!1),t=(0,s.Z)(n,2),a=t[0],l=t[1],r=(0,v.useState)(null),i=(0,s.Z)(r,2),o=i[0],c=i[1],u=(0,v.useState)(null),p=(0,s.Z)(u,2),m=p[0],h=p[1],g=(0,v.useState)(null),x=(0,s.Z)(g,2),f=x[0],k=x[1],N=(0,v.useState)(!0),F=(0,s.Z)(N,2),D=F[0],I=F[1],O=(0,v.useState)(""),P=(0,s.Z)(O,2),G=P[0],_=P[1],R=(0,d.a)(L,{variables:{locale:"zh_CN"===S?"zh-CN":"en-US"}}),z=R.loading,H=R.error,U=R.data,B=null===U||void 0===U?void 0:U.catalog.linkedFrom.catalogCollection.items,E=null===U||void 0===U||null===(e=U.productCollection)||void 0===e?void 0:e.items,T=(0,v.useState)(E),q=(0,s.Z)(T,2),V=q[0],$=q[1];if((0,v.useEffect)((function(){$(E)}),[E]),z)return(0,w.jsx)(b.Z,{className:"dis_mid"});if(H)return(0,w.jsxs)("p",{children:["Error : $",H.message," "]});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(j.Z,{className:"mb-2",children:[(0,w.jsx)(Z.Z,{sm:6,children:(0,w.jsxs)(y.Z.Group,{as:j.Z,children:[(0,w.jsx)(Z.Z,{sm:6,children:(0,w.jsxs)(C.Z,{name:"select1",type:"select",className:"form-select",onChange:function(e){return function(e){var n,t,a,l,r,s;r="All"===e?[]:null===(n=B.filter((function(n){return n.key===e})))||void 0===n||null===(t=n[0])||void 0===t||null===(a=t.linkedFrom)||void 0===a||null===(l=a.catalogCollection)||void 0===l?void 0:l.items,h(r),s=E.filter((function(n){var t;return null===n||void 0===n||null===(t=n.catalogCollection)||void 0===t?void 0:t.items.some((function(n){var t;return null===n||void 0===n||null===(t=n.catalogCollection)||void 0===t?void 0:t.items.some((function(n){return n.key===e}))}))})),$("All"===e?E:s),k(s),I(!1),_("")}(e.target.value)},children:[(0,w.jsx)("option",{value:"All",selected:D,children:A("All")}),(B||[]).map((function(e,n){return(0,w.jsx)("option",{value:null===e||void 0===e?void 0:e.key,children:null===e||void 0===e?void 0:e.title},(null===e||void 0===e?void 0:e.key)+n)}))]},"select1")}),(0,w.jsx)(Z.Z,{sm:6,children:(0,w.jsxs)(C.Z,{name:"select2",type:"select",className:"form-select",onChange:function(e){return function(e){var n;n="All"===e?f:E.filter((function(n){var t;return null===n||void 0===n||null===(t=n.catalogCollection)||void 0===t?void 0:t.items.some((function(n){return n.key===e}))})),$(n),_("")}(e.target.value)},children:[(0,w.jsx)("option",{value:"All",children:A("All")}),(m||[]).map((function(e,n){return(0,w.jsx)("option",{value:null===e||void 0===e?void 0:e.key,children:null===e||void 0===e?void 0:e.title},(null===e||void 0===e?void 0:e.key)+n)}))]},"select2")})]})}),(0,w.jsx)(Z.Z,{sm:6,children:(0,w.jsx)(Z.Z,{xs:"auto",children:(0,w.jsx)(C.Z,{type:"text",name:"search",placeholder:"Search for apps like WordPress, MySQL, aaPanel, GitLab, \u2026",value:G,onChange:function(e){return function(e){var n;_(e),n=""===e?E:E.filter((function(n){return n.trademark.toLowerCase().includes(e)||n.key.toLowerCase().includes(e)})),$(n),I(!0),h(null)}(e.target.value)}})})})]}),(0,w.jsx)(j.Z,{children:(V||[]).map((function(e,n){return(0,w.jsx)(Z.Z,{xxl:3,md:6,className:"appstore-item",children:(0,w.jsxs)("div",{className:"appstore-item-content highlight",onClick:function(){c(e),l(!0)},children:[(0,w.jsx)("div",{className:"appstore-item-content-icon col-same-height",children:(0,w.jsx)("img",{src:e.logo.imageurl,alt:"",className:"app-icon"})}),(0,w.jsxs)("div",{className:"col-same-height",children:[(0,w.jsx)("h4",{className:"appstore-item-content-title",children:e.trademark}),(0,w.jsx)("div",{className:"appstore-item-content-tagline text-muted",children:e.summary})]})]})},e.sys.id)}))}),a&&(0,w.jsx)(M,{product:o,showFlag:a,onClose:function(){l(!1),c(null)}})]})}}}]); -//# sourceMappingURL=918.c6fb41f4.chunk.js.map \ No newline at end of file diff --git a/src/apps/build/static/js/918.e10a86be.chunk.js b/src/apps/build/static/js/918.e10a86be.chunk.js new file mode 100644 index 000000000..edff64556 --- /dev/null +++ b/src/apps/build/static/js/918.e10a86be.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkapps=self.webpackChunkapps||[]).push([[918],{3131:function(e,n,t){var a=t(5987),l=t(1413),r=t(9439),s=t(1694),i=t.n(s),o=t(2791),c=t(9410),u=t(9795),d=t(184),p=["label","type","name","value","readOnly","placeholder","register","errors","className","labelClassName","containerClass","refCallback","children"],m=function(e){var n=e.name,t=e.placeholder,a=e.refCallback,s=e.errors,p=e.register,m=e.className,h=e.value,v=e.readOnly,g=(0,o.useState)(!1),x=(0,r.Z)(g,2),f=x[0],j=x[1];return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(c.Z,{className:"mb-0",children:[(0,d.jsx)(u.Z.Control,(0,l.Z)((0,l.Z)({type:f?"text":"password",placeholder:t,name:n,id:n,as:"input",ref:function(e){a&&a(e)},className:m,isInvalid:!(!s||!s[n])},p?p(n):{}),{},{autoComplete:n,defaultValue:h,readOnly:v})),(0,d.jsx)("div",{className:i()("input-group-text","input-group-password",{"show-password":f}),"data-password":f?"true":"false",children:(0,d.jsx)("span",{className:"password-eye",onClick:function(){j(!f)}})})]})})};n.Z=function(e){var n=e.label,t=e.type,r=e.name,s=e.value,i=e.readOnly,o=e.placeholder,c=e.register,h=e.errors,v=e.className,g=e.labelClassName,x=e.containerClass,f=e.refCallback,j=e.children,Z=(0,a.Z)(e,p),y="textarea"===t?"textarea":"select"===t?"select":"input";return(0,d.jsx)(d.Fragment,{children:"hidden"===t?(0,d.jsx)("input",(0,l.Z)((0,l.Z)({type:t,name:r},c?c(r):{}),Z)):(0,d.jsx)(d.Fragment,{children:"password"===t?(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(u.Z.Group,{className:x,children:[n?(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsx)(u.Z.Label,{className:g,children:n})," ",j," "]}):null,(0,d.jsx)(m,{name:r,placeholder:o,refCallback:f,errors:h,register:c,className:v,value:s,readOnly:i}),h&&h[r]?(0,d.jsx)(u.Z.Control.Feedback,{type:"invalid",className:"d-block",children:h[r].message}):null]})}):(0,d.jsx)(d.Fragment,{children:"select"===t?(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(u.Z.Group,{className:x,children:[n?(0,d.jsx)(u.Z.Label,{className:g,children:n}):null,(0,d.jsx)(u.Z.Select,(0,l.Z)((0,l.Z)((0,l.Z)({type:t,label:n,name:r,id:r,ref:function(e){f&&f(e)},comp:y,className:v,isInvalid:!(!h||!h[r])},c?c(r):{}),Z),{},{children:j})),h&&h[r]?(0,d.jsx)(u.Z.Control.Feedback,{type:"invalid",children:h[r].message}):null]})}):(0,d.jsx)(d.Fragment,{children:"checkbox"===t||"radio"===t?(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(u.Z.Group,{className:x,children:[(0,d.jsx)(u.Z.Check,(0,l.Z)((0,l.Z)({type:t,label:n,name:r,id:r,ref:function(e){f&&f(e)},className:v,isInvalid:!(!h||!h[r])},c?c(r):{}),Z)),h&&h[r]?(0,d.jsx)(u.Z.Control.Feedback,{type:"invalid",children:h[r].message}):null]})}):(0,d.jsxs)(u.Z.Group,{className:x,children:[n?(0,d.jsx)(u.Z.Label,{className:g,children:n}):null,(0,d.jsx)(u.Z.Control,(0,l.Z)((0,l.Z)((0,l.Z)({type:t,placeholder:o,value:s,name:r,id:r,as:y,ref:function(e){f&&f(e)},className:v,isInvalid:!(!h||!h[r])},c?c(r):{}),Z),{},{autoComplete:r,children:j||null})),h&&h[r]?(0,d.jsx)(u.Z.Control.Feedback,{type:"invalid",children:h[r].message}):null]})})})})})}},2733:function(e,n,t){var a=t(4942),l=(t(2791),t(1694)),r=t.n(l),s=t(184),i=function(e){var n=e.children||null,t=e.tag||"div",l=e.color||"secondary",i=e.size||"";return(0,s.jsx)(t,{role:"status",className:r()({"spinner-border":"bordered"===e.type,"spinner-grow":"grow"===e.type},["text-".concat(l)],(0,a.Z)({},"avatar-".concat(i),i),e.className),children:n})};i.defaultProps={tag:"div",type:"bordered"},n.Z=i},165:function(e,n,t){t.d(n,{qL:function(){return x},pd:function(){return v},dy:function(){return h},qs:function(){return f},_6:function(){return g},rl:function(){return o},u3:function(){return c},h1:function(){return m},P3:function(){return p},pO:function(){return d},mx:function(){return u}});var a=t(3144),l=t(5671),r=t(1243),s=t(7689);t(184);r.Z.defaults.headers.post["Content-Type"]="application/json",r.Z.defaults.headers.get["Content-Type"]="application/json",r.Z.defaults.headers={"Cache-Control":"no-cache",Pragma:"no-cache",Expires:"0"},r.Z.interceptors.response.use((function(e){return e}),(function(e){var n;if(e&&e.response&&404===e.response.status)s.Fg;else{if(!e||!e.response||500!==e.response.status)return n=e.response&&e.response.data?e.response.data.message:e.message||e,Promise.reject(n);s.Fg}}));var i=new((0,a.Z)((function e(){(0,l.Z)(this,e),this.get=function(e,n){var t;if(n){var a=n?Object.keys(n).map((function(e){return e+"="+n[e]})).join("&"):"";t=r.Z.get("".concat(e,"?").concat(a),n)}else t=r.Z.get("".concat(e),n);return t},this.create=function(e,n){return r.Z.post(e,n)}})));function o(e){return i.get("".concat("/AppManage/AppInstall"),e)}function c(e){return i.get("".concat("/AppManage/AppList"),e)}function u(e){return i.get("".concat("/AppManage/AppUninstall"),e)}function d(e){return i.get("".concat("/AppManage/AppStop"),e)}function p(e){return i.get("".concat("/AppManage/AppStart"),e)}function m(e){return i.get("".concat("/AppManage/AppRestart"),e)}function h(e){return i.get("".concat("/AppManage/AppDomainList"),e)}function v(e){return i.get("".concat("/AppManage/AppDomainDelete"),e)}function g(e){return i.get("".concat("/AppManage/AppDomainUpdate"),e)}function x(e){return i.get("".concat("/AppManage/AppDomainAdd"),e)}function f(e){return i.get("".concat("/AppManage/AppDomainSet"),e)}},918:function(e,n,t){t.r(n);var a,l=t(4165),r=t(5861),s=t(9439),i=t(168),o=t(1413),c=t(3306),u=t(3173),d=t(4358),p=t(3971),m=t(7346),h=t.n(m),v=t(2791),g=t(2025),x=t(9920),f=t(3360),j=t(9743),Z=t(2677),y=t(9795),k=t(7689),C=t(3131),b=t(2733),N=t(165),w=t(184),A=h().gettext,S=h().language,F=v.forwardRef((function(e,n){return(0,w.jsx)(d.Z,(0,o.Z)({elevation:6,ref:n,variant:"filled"},e))})),L=(0,c.Ps)(a||(a=(0,i.Z)(['\n query($locale: String!){\n productCollection(locale:$locale,where:{appStore:true}) {\n items {\n sys {\n id\n }\n key\n trademark\n summary\n overview\n websiteurl\n description\n screenshots\n distribution\n highlights\n vcpu\n memory\n storage\n logo {\n imageurl\n }\n catalogCollection(limit:20) {\n items {\n key\n title\n catalogCollection(limit:1){\n items{\n key\n title\n }\n }\n }\n }\n }\n }\n catalog(id: "2Yp0TY3kBHgG6VDjsHZNpK",locale:$locale) {\n linkedFrom(allowedLocales:["en-US"]) {\n catalogCollection(limit:20) {\n items {\n key\n title\n linkedFrom(allowedLocales:["en-US"]) {\n catalogCollection(limit:20) {\n items {\n key\n title\n }\n }\n }\n }\n }\n }\n }\n }\n']))),M=function(e){var n,t=e.product,a=e.showFlag,i=e.onClose,o=(0,v.useState)(0),c=(0,s.Z)(o,2),u=c[0],d=c[1],m=(0,k.s0)(),h=(0,v.useState)(!0),j=(0,s.Z)(h,2),Z=j[0],y=j[1],b=(0,v.useState)(""),S=(0,s.Z)(b,2),L=S[0],M=S[1],D=(0,v.useState)(!1),I=(0,s.Z)(D,2),O=I[0],P=I[1],G=(0,v.useState)(""),_=(0,s.Z)(G,2),R=_[0],z=_[1],H=(0,v.useState)(!1),U=(0,s.Z)(H,2),B=U[0],E=U[1];function T(){return(T=(0,r.Z)((0,l.Z)().mark((function e(){var n;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z){e.next=20;break}if(L){e.next=6;break}P(!0),z(A("Please enter a custom application name")),e.next=19;break;case 6:return e.prev=6,E(!0),e.next=10,(0,N.rl)({app_name:t.key,app_version:K,customer_app_name:L});case 10:(n=e.sent).data.Error?(P(!0),z(n.data.Error.Message),E(!1)):(P(!1),z(""),m("/myapps")),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(6),P(!1),z(""),m("/error-500");case 19:return e.abrupt("return");case 20:y(!Z);case 21:case"end":return e.stop()}}),e,null,[[6,14]])})))).apply(this,arguments)}var q=((null===(n=t.distribution)||void 0===n?void 0:n.filter((function(e){return"Community"===e.key})))||[]).map((function(e){return e.value})),V=q&&1===q.length?q.toString().split(","):q,$=(0,v.useState)(V[0]),Y=(0,s.Z)($,2),K=Y[0],Q=Y[1],W=function(e,n){"clickaway"!==n&&(P(!1),z(""))};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(g.Z,{show:a,onHide:i,size:"lg",scrollable:"true",backdrop:"static",children:[(0,w.jsx)(g.Z.Header,{onHide:i,closeButton:!0,children:(0,w.jsxs)("div",{style:{padding:"10px"},children:[(0,w.jsx)("div",{className:"appstore-item-content-icon col-same-height",children:(0,w.jsx)("img",{src:t.logo.imageurl,alt:"",className:"app-icon"})}),(0,w.jsxs)("div",{className:"col-same-height",children:[(0,w.jsx)("h4",{className:"appstore-item-content-title",style:{marginTop:"5px"},children:t.trademark}),(0,w.jsx)("div",{children:(0,w.jsxs)("a",{rel:"noreferrer",href:"https://support.websoft9.com/docs/"+t.key,target:"_blank",style:{color:"#2196f3"},children:[t.trademark," ",A("developers")]})}),(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,w.jsxs)("span",{style:{marginRight:"5px"},children:[A("Version")," : "]})," ",q]}),(0,w.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,w.jsxs)("span",{style:{marginRight:"5px"},children:[A("Requires at least")," : ",t.vcpu," vCPU, ",t.memory," GB memory, ",t.storage," GB storage"]})})]})]})}),(0,w.jsxs)(g.Z.Body,{children:[(0,w.jsxs)("div",{style:{display:Z?"block":"none"},children:[(0,w.jsx)(x.Z,{activeIndex:u,onSelect:function(e,n){d(e)},style:{width:"80%",margin:"0 auto"},children:(t.screenshots||[]).map((function(e){return(0,w.jsx)(x.Z.Item,{children:(0,w.jsx)("img",{className:"d-block",src:null===e||void 0===e?void 0:e.value,alt:null===e||void 0===e?void 0:e.key,width:"100%",height:"300px"})},null===e||void 0===e?void 0:e.id)}))}),(0,w.jsxs)("div",{style:{padding:"10px"},children:[(0,w.jsx)("h4",{children:A("Overview")}),t.overview]}),(0,w.jsxs)("div",{style:{padding:"10px"},children:[(0,w.jsx)("h4",{children:A("Description")}),t.description]})]}),(0,w.jsx)("div",{style:{display:Z?"none":"block"},children:(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,w.jsxs)("div",{children:[(0,w.jsxs)("span",{style:{marginRight:"5px"},children:[A("Version")," :"]}),V&&(0,w.jsx)(C.Z,{name:"select",type:"select",className:"form-select",onChange:function(e){return n=e.target.value,void Q(n);var n},children:(V||[]).map((function(e,n){return(0,w.jsx)("option",{value:e,children:e},e+n)}))},"select")]}),(0,w.jsxs)("div",{style:{marginTop:"5px"},children:[(0,w.jsxs)("span",{style:{marginRight:"5px"},children:[A("Name")," :"]}),(0,w.jsx)(C.Z,{type:"text",value:L,name:"app_Name",placeholder:A("Only letters and numbers are allowed. No special characters."),onChange:function(e){!function(e){if(M(e),e){var n=e.replace(/[^a-z0-9]/gi,"").toLowerCase();M(n),P(!1),z("")}else P(!0),z(A("Please enter a custom application name"))}(e.target.value)}})]})]})})]}),(0,w.jsxs)(g.Z.Footer,{children:[(0,w.jsx)(f.Z,{variant:"light",onClick:i,children:A("Close")})," ",(0,w.jsx)(f.Z,{disabled:B,variant:"primary",onClick:function(){return T.apply(this,arguments)},children:A("Install")})]})]}),O&&(0,w.jsx)(p.Z,{open:O,autoHideDuration:5e3,onClose:W,anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,w.jsx)(F,{onClose:W,severity:"error",sx:{width:"100%"},children:R})})]})};n.default=function(){var e,n=(0,v.useState)(!1),t=(0,s.Z)(n,2),a=t[0],l=t[1],r=(0,v.useState)(null),i=(0,s.Z)(r,2),o=i[0],c=i[1],d=(0,v.useState)(null),p=(0,s.Z)(d,2),m=p[0],h=p[1],g=(0,v.useState)(null),x=(0,s.Z)(g,2),f=x[0],k=x[1],N=(0,v.useState)(!0),F=(0,s.Z)(N,2),D=F[0],I=F[1],O=(0,v.useState)(""),P=(0,s.Z)(O,2),G=P[0],_=P[1],R=(0,u.a)(L,{variables:{locale:"zh_CN"===S?"zh-CN":"en-US"}}),z=R.loading,H=R.error,U=R.data,B=null===U||void 0===U?void 0:U.catalog.linkedFrom.catalogCollection.items,E=null===U||void 0===U||null===(e=U.productCollection)||void 0===e?void 0:e.items,T=(0,v.useState)(E),q=(0,s.Z)(T,2),V=q[0],$=q[1];if((0,v.useEffect)((function(){$(E)}),[E]),z)return(0,w.jsx)(b.Z,{className:"dis_mid"});if(H)return(0,w.jsxs)("p",{children:["Error : $",H.message," "]});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(j.Z,{className:"mb-2",children:[(0,w.jsx)(Z.Z,{sm:6,children:(0,w.jsxs)(y.Z.Group,{as:j.Z,children:[(0,w.jsx)(Z.Z,{sm:6,children:(0,w.jsxs)(C.Z,{name:"select1",type:"select",className:"form-select",onChange:function(e){return function(e){var n,t,a,l,r,s;r="All"===e?[]:null===(n=B.filter((function(n){return n.key===e})))||void 0===n||null===(t=n[0])||void 0===t||null===(a=t.linkedFrom)||void 0===a||null===(l=a.catalogCollection)||void 0===l?void 0:l.items,h(r),s=E.filter((function(n){var t;return null===n||void 0===n||null===(t=n.catalogCollection)||void 0===t?void 0:t.items.some((function(n){var t;return null===n||void 0===n||null===(t=n.catalogCollection)||void 0===t?void 0:t.items.some((function(n){return n.key===e}))}))})),$("All"===e?E:s),k(s),I(!1),_("")}(e.target.value)},children:[(0,w.jsx)("option",{value:"All",selected:D,children:A("All")}),(B||[]).map((function(e,n){return(0,w.jsx)("option",{value:null===e||void 0===e?void 0:e.key,children:null===e||void 0===e?void 0:e.title},(null===e||void 0===e?void 0:e.key)+n)}))]},"select1")}),(0,w.jsx)(Z.Z,{sm:6,children:(0,w.jsxs)(C.Z,{name:"select2",type:"select",className:"form-select",onChange:function(e){return function(e){var n;n="All"===e?f:E.filter((function(n){var t;return null===n||void 0===n||null===(t=n.catalogCollection)||void 0===t?void 0:t.items.some((function(n){return n.key===e}))})),$(n),_("")}(e.target.value)},children:[(0,w.jsx)("option",{value:"All",children:A("All")}),(m||[]).map((function(e,n){return(0,w.jsx)("option",{value:null===e||void 0===e?void 0:e.key,children:null===e||void 0===e?void 0:e.title},(null===e||void 0===e?void 0:e.key)+n)}))]},"select2")})]})}),(0,w.jsx)(Z.Z,{sm:6,children:(0,w.jsx)(Z.Z,{xs:"auto",children:(0,w.jsx)(C.Z,{type:"text",name:"search",placeholder:"Search for apps like WordPress, MySQL, aaPanel, GitLab, \u2026",value:G,onChange:function(e){return function(e){var n;_(e),n=""===e?E:E.filter((function(n){return n.trademark.toLowerCase().includes(e)||n.key.toLowerCase().includes(e)})),$(n),I(!0),h(null)}(e.target.value)}})})})]}),(0,w.jsx)(j.Z,{children:(V||[]).map((function(e,n){return(0,w.jsx)(Z.Z,{xxl:3,md:6,className:"appstore-item",children:(0,w.jsxs)("div",{className:"appstore-item-content highlight",onClick:function(){c(e),l(!0)},children:[(0,w.jsx)("div",{className:"appstore-item-content-icon col-same-height",children:(0,w.jsx)("img",{src:e.logo.imageurl,alt:"",className:"app-icon"})}),(0,w.jsxs)("div",{className:"col-same-height",children:[(0,w.jsx)("h4",{className:"appstore-item-content-title",children:e.trademark}),(0,w.jsx)("div",{className:"appstore-item-content-tagline text-muted",children:e.summary})]})]})},e.sys.id)}))}),a&&(0,w.jsx)(M,{product:o,showFlag:a,onClose:function(){l(!1),c(null)}})]})}}}]); +//# sourceMappingURL=918.e10a86be.chunk.js.map \ No newline at end of file diff --git a/src/apps/build/static/js/918.c6fb41f4.chunk.js.map b/src/apps/build/static/js/918.e10a86be.chunk.js.map similarity index 59% rename from src/apps/build/static/js/918.c6fb41f4.chunk.js.map rename to src/apps/build/static/js/918.e10a86be.chunk.js.map index e91763bf9..e8cd9d1e4 100644 --- a/src/apps/build/static/js/918.c6fb41f4.chunk.js.map +++ b/src/apps/build/static/js/918.e10a86be.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/918.c6fb41f4.chunk.js","mappings":"mVAMMA,EAAgB,SAAHC,GAA0F,IAApFC,EAAID,EAAJC,KAAMC,EAAWF,EAAXE,YAAaC,EAAWH,EAAXG,YAAaC,EAAMJ,EAANI,OAAQC,EAAQL,EAARK,SAAUC,EAASN,EAATM,UAAWC,EAAKP,EAALO,MAAOC,EAAQR,EAARQ,SACzFC,GAAwCC,EAAAA,EAAAA,WAAS,GAAMC,GAAAC,EAAAA,EAAAA,GAAAH,EAAA,GAAhDI,EAAYF,EAAA,GAAEG,EAAeH,EAAA,GAEpC,OACII,EAAAA,EAAAA,KAAAC,EAAAA,SAAA,CAAAC,UACIC,EAAAA,EAAAA,MAACC,EAAAA,EAAU,CAACb,UAAU,OAAMW,SAAA,EACxBF,EAAAA,EAAAA,KAACK,EAAAA,EAAAA,SAAYC,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,CACTC,KAAMT,EAAe,OAAS,WAC9BX,YAAaA,EACbD,KA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EAAOK,EAAI,IACpCC,KAAK,KACR,GACNpB,EAAWD,EAAAA,EAAAA,IAAU,GAADH,OAAIiB,EAAG,KAAAjB,OAAImB,GAAeD,EAClD,MACId,EAAWD,EAAAA,EAAAA,IAAU,GAADH,OAAIiB,GAAOC,GAEnC,OAAOd,CACX,EAEA,KAGAqB,OAAS,SAACR,EAAKR,GACX,OAAON,EAAAA,EAAAA,KAAWc,EAAKR,EAC3B,CAAE,KCrDN,SAASiB,EAAWR,GAEhB,OAAON,EAAII,IAAI,GAADhB,OADE,yBACakB,EACjC,CAGA,SAASS,EAAQT,GAEb,OAAON,EAAII,IAAI,GAADhB,OADE,sBACakB,EACjC,CAGA,SAASU,EAAaV,GAElB,OAAON,EAAII,IAAI,GAADhB,OADE,2BACakB,EACjC,CAGA,SAASW,EAAQX,GAEb,OAAON,EAAII,IAAI,GAADhB,OADE,sBACakB,EACjC,CAGA,SAASY,EAASZ,GAEd,OAAON,EAAII,IAAI,GAADhB,OADE,uBACakB,EACjC,CAGA,SAASa,EAAWb,GAEhB,OAAON,EAAII,IAAI,GAADhB,OADE,yBACakB,EACjC,CASA,SAASc,EAAcd,GAEnB,OAAON,EAAII,IAAI,GAADhB,OADE,4BACakB,EACjC,CAGA,SAASe,EAAgBf,GAErB,OAAON,EAAII,IAAI,GAADhB,OADE,8BACakB,EACjC,CAGA,SAASgB,EAAgBhB,GAErB,OAAON,EAAII,IAAI,GAADhB,OADE,8BACakB,EACjC,CAGA,SAASiB,EAAajB,GAElB,OAAON,EAAII,IAAI,GAADhB,OADE,2BACakB,EACjC,CAGA,SAASkB,EAAalB,GAElB,OAAON,EAAII,IAAI,GAADhB,OADE,2BACakB,EACjC,C,qQC9DMmB,EAAIC,IAAAA,QACJC,EAAWD,IAAAA,SAEXE,EAAQC,EAAAA,YAAiB,SAAe/C,EAAOhB,GACjD,OAAOV,EAAAA,EAAAA,KAAC0E,EAAAA,GAAQpE,EAAAA,EAAAA,GAAA,CAACqE,UAAW,EAAGjE,IA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DC,EAAAA,EAAAA,MAAA,OAAKZ,UAAU,kCAAkCyB,QAAS,WAlH9E+L,EAkHkGgD,GAjHlGpD,GAAa,EAiH0F,EAAEzM,SAAA,EACjFF,EAAAA,EAAAA,KAAA,OAAKT,UAAU,6CAA4CW,UACvDF,EAAAA,EAAAA,KAAA,OACI0J,IAAKqG,EAAIpG,KAAKC,SACdC,IAAI,GACJtK,UAAU,gBAGlBY,EAAAA,EAAAA,MAAA,OAAKZ,UAAU,kBAAiBW,SAAA,EAC5BF,EAAAA,EAAAA,KAAA,MAAIT,UAAU,8BAA6BW,SACtC6P,EAAIhG,aAET/J,EAAAA,EAAAA,KAAA,OAAKT,UAAU,2CAA0CW,SACpD6P,EAAIiB,iBAdIjB,EAAIkB,IAAIzQ,GAoBzC,MAEHkM,IAAa1M,EAAAA,EAAAA,KAACiF,EAAc,CAACE,QAAS2H,EAAiB1H,SAAUsH,EAAWrH,QAlIjE,WAChBsH,GAAa,GACbI,EAAmB,KACvB,MAkIJ,C","sources":["components/FormInput.js","components/Spinner.js","helpers/api/apiCore.js","helpers/api/appManager.js","pages/appstore.js"],"sourcesContent":["// @flow\nimport classNames from 'classnames';\nimport React, { useState } from 'react';\nimport { Form, InputGroup } from 'react-bootstrap';\n\n/* Password Input */\nconst PasswordInput = ({ name, placeholder, refCallback, errors, register, className, value, readOnly }) => {\n const [showPassword, setShowPassword] = useState(false);\n\n return (\n <>\n \n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n autoComplete={name}\n defaultValue={value}\n readOnly={readOnly}\n />\n \n {\n setShowPassword(!showPassword);\n }}>\n \n \n \n );\n};\n\ntype FormInputProps = {\n label?: string,\n type?: string,\n name?: string,\n value?: string,\n placeholder?: string,\n register?: any,\n errors?: any,\n className?: string,\n labelClassName?: string,\n containerClass?: string,\n refCallback?: any,\n children?: any,\n};\n\nconst FormInput = ({\n label,\n type,\n name,\n value,\n readOnly,\n placeholder,\n register,\n errors,\n className,\n labelClassName,\n containerClass,\n refCallback,\n children,\n ...otherProps\n}: FormInputProps): React$Element => {\n // handle input type\n const comp = type === 'textarea' ? 'textarea' : type === 'select' ? 'select' : 'input';\n\n return (\n <>\n {type === 'hidden' ? (\n \n ) : (\n <>\n {type === 'password' ? (\n <>\n \n {label ? (\n <>\n {' '}\n {label} {children}{' '}\n \n ) : null}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n <>\n {type === 'select' ? (\n <>\n \n {label ? {label} : null}\n\n {\n if (refCallback) refCallback(r);\n }}\n comp={comp}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}>\n {children}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n <>\n {type === 'checkbox' || type === 'radio' ? (\n <>\n \n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}\n />\n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n \n {label ? {label} : null}\n\n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}\n autoComplete={name}>\n {children ? children : null}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n )}\n \n )}\n \n )}\n \n )}\n \n );\n};\n\nexport default FormInput;\n","// @flow\nimport React from 'react';\nimport classNames from 'classnames';\n\ntype SpinnerProps = {\n tag?: string,\n className?: string,\n size?: 'lg' | 'md' | 'sm',\n type?: 'bordered' | 'grow',\n color?: string,\n children?: any,\n};\n\n/**\n * Spinner\n */\nconst Spinner = (props: SpinnerProps): React$Element => {\n const children = props.children || null;\n const Tag = props.tag || 'div';\n const color = props.color || 'secondary';\n const size = props.size || '';\n\n return (\n \n {children}\n \n );\n};\n\nSpinner.defaultProps = {\n tag: 'div',\n type: 'bordered',\n};\n\nexport default Spinner;\n","import axios from 'axios';\nimport { Navigate } from \"react-router-dom\";\n//import config from '../../config';\n\n// content type\naxios.defaults.headers.post['Content-Type'] = 'application/json';\naxios.defaults.headers.get['Content-Type'] = 'application/json';\naxios.defaults.headers = {\n 'Cache-Control': 'no-cache',\n 'Pragma': 'no-cache',\n 'Expires': '0',\n};\n//axios.defaults.baseURL = config.API_URL;\n\n// intercepting to capture errors\naxios.interceptors.response.use(\n (response) => {\n return response;\n },\n (error) => {\n // Any status codes that falls outside the range of 2xx cause this function to trigger\n let message;\n\n if (error && error.response && error.response.status === 404) {\n \n } else if (error && error.response && error.response.status === 500) {\n \n } else {\n message = error.response && error.response.data ? error.response.data['message'] : error.message || error;\n return Promise.reject(message);\n }\n }\n);\n\nclass APICore {\n /**\n * Fetches data from given url\n */\n get = (url, params) => {\n let response;\n if (params) {\n var queryString = params\n ? Object.keys(params)\n .map((key) => key + '=' + params[key])\n .join('&')\n : '';\n response = axios.get(`${url}?${queryString}`, params);\n } else {\n response = axios.get(`${url}`, params);\n }\n return response;\n };\n\n /**\n * post given data to url\n */\n create = (url, data) => {\n return axios.post(url, data);\n };\n}\n\nexport { APICore };\n","import { APICore } from './apiCore';\n\nconst api = new APICore();\n\n//App 安装\nfunction AppInstall(params: any): Promise {\n const baseUrl = '/AppManage/AppInstall';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 列表查询\nfunction AppList(params: any): Promise {\n const baseUrl = '/AppManage/AppList';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 卸载\nfunction AppUninstall(params: any): Promise {\n const baseUrl = '/AppManage/AppUninstall';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 停止\nfunction AppStop(params: any): Promise {\n const baseUrl = '/AppManage/AppStop';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 启动\nfunction AppStart(params: any): Promise {\n const baseUrl = '/AppManage/AppStart';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 重启\nfunction AppRestart(params: any): Promise {\n const baseUrl = '/AppManage/AppRestart';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 状态查询\nfunction AppStatus(params: any): Promise {\n const baseUrl = '/AppManage/AppStatus';\n return api.get(`${baseUrl}`, params);\n}\n\n//查询APP对应的域名\nfunction AppDomainList(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainList';\n return api.get(`${baseUrl}`, params);\n}\n\n//删除APP绑定的域名\nfunction AppDomainDelete(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainDelete';\n return api.get(`${baseUrl}`, params);\n}\n\n//修改APP绑定的域名\nfunction AppDomainUpdate(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainUpdate';\n return api.get(`${baseUrl}`, params);\n}\n\n//APP绑定域名\nfunction AppDomainAdd(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainAdd';\n return api.get(`${baseUrl}`, params);\n}\n\n//设定默认域名\nfunction AppDomainSet(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainSet';\n return api.get(`${baseUrl}`, params);\n}\n\nexport { AppInstall, AppList, AppUninstall, AppStop, AppStart, AppRestart, AppStatus, AppDomainList, AppDomainDelete, AppDomainUpdate, AppDomainAdd, AppDomainSet };\n\n","// @flow\nimport { gql, useQuery } from '@apollo/client';\nimport MuiAlert from '@mui/material/Alert';\nimport Snackbar from '@mui/material/Snackbar';\nimport cockpit from 'cockpit';\nimport React, { useEffect, useState } from 'react';\nimport { Button, Carousel, Col, Form, Modal, Row } from 'react-bootstrap';\nimport { useNavigate } from \"react-router-dom\";\nimport FormInput from '../components/FormInput';\nimport Spinner from '../components/Spinner';\nimport { AppInstall } from '../helpers';\n\nconst _ = cockpit.gettext;\nconst language = cockpit.language;//获取cockpit的当前语言环境\n\nconst Alert = React.forwardRef(function Alert(props, ref) {\n return ;\n});\n\nconst getContentfulData = gql`\n query($locale: String!){\n productCollection(locale:$locale) {\n items {\n sys {\n id\n }\n key\n trademark\n summary\n overview\n websiteurl\n description\n screenshots\n distribution\n highlights\n vcpu\n memory\n storage\n logo {\n imageurl\n }\n catalogCollection(limit:20) {\n items {\n key\n title\n catalogCollection(limit:1){\n items{\n key\n title\n }\n }\n }\n }\n }\n }\n catalog(id: \"2Yp0TY3kBHgG6VDjsHZNpK\",locale:$locale) {\n linkedFrom(allowedLocales:[\"en-US\"]) {\n catalogCollection(limit:20) {\n items {\n key\n title\n linkedFrom(allowedLocales:[\"en-US\"]) {\n catalogCollection(limit:20) {\n items {\n key\n title\n }\n }\n }\n }\n }\n }\n }\n }\n`;\n\n//应用详情弹窗\nconst AppDetailModal = ({ product, showFlag, onClose }) => {\n const [index, setIndex] = useState(0); //用户图片浏览\n const navigate = useNavigate(); //用于页面跳转\n const [visible, setVisible] = useState(true); //用于显示安装选项:版本和应用名称\n const [customName, setCustomName] = useState(\"\"); //用户存储用户输入的应用名称\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n const [disable, setDisable] = useState(false);//用于按钮禁用\n\n //用户单击“安装”按钮\n async function handleInstallClick() {\n if (!visible) {\n if (!customName) { //判断用户是否输入应用名称\n setShowAlert(true);\n setAlertMessage(_(\"Please enter a custom application name\"))\n }\n else {\n //调用应用安装接口\n try {\n setDisable(true);\n const response = await AppInstall({ app_name: product.key, app_version: selectedVersion, customer_app_name: customName })\n if (response.data.Error) {\n setShowAlert(true);\n setAlertMessage(response.data.Error.Message);\n setDisable(false);\n }\n else {\n setShowAlert(false);\n setAlertMessage(\"\");\n navigate(\"/myapps\");\n }\n }\n catch (error) {\n setShowAlert(false);\n setAlertMessage(\"\");\n navigate(\"/error-500\");\n }\n }\n return;\n }\n setVisible(!visible);\n }\n\n const handleSelect = (selectedIndex, e) => {\n setIndex(selectedIndex);\n };\n\n let versions = (product.distribution?.filter(item => item.key === \"Community\") || []).map(version => { return version.value });//获取应用的版本\n\n let versionList = (versions && versions.length === 1) ? versions.toString().split(\",\") : versions;\n\n const [selectedVersion, setselectedVersion] = useState(versionList[0]); //存储用户选择的安装版本\n\n const changeVersion = (version) => {\n setselectedVersion(version);\n };\n\n const handleInputChange = (inputValue) => {\n setCustomName(inputValue);\n if (!inputValue) { //当用户没有输入应用名称\n setShowAlert(true);\n setAlertMessage(_(\"Please enter a custom application name\"))\n }\n else {\n const newValue = inputValue.replace(/[^a-z0-9]/gi, '').toLowerCase(); //先替换输入值\n setCustomName(newValue);\n setShowAlert(false);\n setAlertMessage(\"\");\n }\n }\n\n const handleClose = (event, reason) => {\n if (reason === 'clickaway') {\n return;\n }\n setShowAlert(false);\n setAlertMessage(\"\");\n };\n\n return (\n <>\n \n \n
\n
\n \n
\n
\n

\n {product.trademark}\n

\n \n
\n {_(\"Version\")} : {versions}\n
\n
\n {_(\"Requires at least\")} : {product.vcpu} vCPU, {product.memory} GB memory, {product.storage} GB storage\n
\n
\n
\n
\n \n
\n \n {\n (product.screenshots || []).map((item) => {\n return (\n \n \n \n );\n })\n }\n \n
\n

{_(\"Overview\")}

\n {product.overview}\n
\n
\n

{_(\"Description\")}

\n {product.description}\n
\n
\n
\n
\n
\n {_(\"Version\")} :\n {\n versionList && changeVersion(e.target.value)}\n key=\"select\">\n {\n (versionList || []).map((version, i) => {\n return \n })\n }\n \n }\n
\n
\n {_(\"Name\")} :\n { handleInputChange(e.target.value) }} />\n
\n
\n
\n
\n \n {' '}\n \n \n
\n {\n showAlert &&\n \n \n {alertMessage}\n \n \n }\n \n );\n}\n\nconst AppStore = (): React$Element => {\n const [showModal, setShowModal] = useState(false); //用于显示弹窗的标识\n const [selectedProduct, setSelectedProduct] = useState(null); //用于存储被选中的产品(点击应用详情时使用)\n const [subCatalogs, setSubCatalogs] = useState(null); //用于存储二级目录\n const [allMainCatalogApps, setAllMainCatalogApps] = useState(null); //用于存储某个一级子目录下的所有应用\n const [isAllSelected, setIsAllSelected] = useState(true);\n const [searchValue, setSearchValue] = useState(\"\");\n\n const { loading: dataLoading, error: dataError, data: allData } = useQuery(getContentfulData, { variables: { locale: language === \"zh_CN\" ? \"zh-CN\" : \"en-US\" } });\n\n const mainCatalogs = allData?.catalog.linkedFrom.catalogCollection.items; //主目录数据\n const apps = allData?.productCollection?.items;//所有应用数据\n\n const [appList, setAppList] = useState(apps); //用于存储通过目录筛选出来的数据\n\n useEffect(() => {\n setAppList(apps);\n }, [apps])\n\n // if (dataLoading) return

Loading...

;\n\n if (dataLoading) return /**/;\n if (dataError) return

Error : ${dataError.message}

;\n\n //用于显示应用详情的弹窗\n const handleClick = (product) => {\n setSelectedProduct(product);\n setShowModal(true);\n };\n\n //用于关闭应用详情的弹窗\n const handleClose = () => {\n setShowModal(false);\n setSelectedProduct(null);\n };\n\n //当主目录改变时\n const changeMainCatalog = (selectedMainCatalog) => {\n // 查询主目录下的二级目录\n let updatedData = null;\n // filter\n updatedData =\n selectedMainCatalog === 'All'\n ? []\n : mainCatalogs.filter(c => c.key === selectedMainCatalog)?.[0]?.linkedFrom?.catalogCollection?.items;\n setSubCatalogs(updatedData);\n\n //根据主目录过滤app数据\n let subCatalogApps = null;\n let mainCatalogAllApps = null;\n mainCatalogAllApps = apps.filter(app => app?.catalogCollection?.items.some(sub => sub?.catalogCollection?.items.some(subsub => subsub.key === selectedMainCatalog)));\n subCatalogApps =\n selectedMainCatalog === \"All\"\n ? apps\n : mainCatalogAllApps;\n setAppList(subCatalogApps);\n setAllMainCatalogApps(mainCatalogAllApps);\n setIsAllSelected(false);\n setSearchValue(\"\");\n };\n\n //当子目录改变时,过滤应用数据\n const changeSubCatalog = (selectedSubCatalog) => {\n let updatedData = null;\n updatedData =\n selectedSubCatalog === \"All\"\n ? allMainCatalogApps\n : apps.filter(app => app?.catalogCollection?.items.some(c => c.key === selectedSubCatalog));\n setAppList(updatedData);\n setSearchValue(\"\");\n };\n\n //当搜索框的内容发生改变时,进行app的过滤搜索\n const handleInputChange = (searchString) => {\n setSearchValue(searchString);\n let updatedData = null;\n updatedData =\n searchString === \"\"\n ? apps\n : apps.filter(app => { return app.trademark.toLowerCase().includes(searchString) || app.key.toLowerCase().includes(searchString) });\n\n setAppList(updatedData);\n setIsAllSelected(true);\n setSubCatalogs(null);\n }\n\n return (\n <>\n \n \n \n \n changeMainCatalog(e.target.value)}>\n \n {\n (mainCatalogs || []).map((item, i) => {\n return (\n \n );\n })\n }\n \n \n \n changeSubCatalog(e.target.value)}>\n \n {\n (subCatalogs || []).map((item, i) => {\n return (\n \n );\n })\n }\n \n \n \n \n \n \n handleInputChange(e.target.value)} />\n \n \n \n \n {(appList || []).map((app, i) => {\n return (\n \n
{ handleClick(app) }}>\n
\n \n
\n
\n

\n {app.trademark}\n

\n
\n {app.summary}\n
\n
\n
\n \n );\n })}\n
\n {showModal && }\n \n );\n};\n\nexport default AppStore;\n"],"names":["PasswordInput","_ref","name","placeholder","refCallback","errors","register","className","value","readOnly","_useState","useState","_useState2","_slicedToArray","showPassword","setShowPassword","_jsx","_Fragment","children","_jsxs","InputGroup","Form","_objectSpread","type","id","as","ref","r","isInvalid","autoComplete","defaultValue","classNames","onClick","_ref2","label","labelClassName","containerClass","otherProps","_objectWithoutProperties","_excluded","comp","Spinner","props","Tag","tag","color","size","role","concat","_defineProperty","defaultProps","axios","response","error","message","status","Navigate","data","Promise","reject","api","_createClass","APICore","_classCallCheck","get","url","params","queryString","Object","keys","map","key","join","create","AppInstall","AppList","AppUninstall","AppStop","AppStart","AppRestart","AppDomainList","AppDomainDelete","AppDomainUpdate","AppDomainAdd","AppDomainSet","_","cockpit","language","Alert","React","MuiAlert","elevation","variant","getContentfulData","gql","_templateObject","_taggedTemplateLiteral","AppDetailModal","_product$distribution","product","showFlag","onClose","index","setIndex","navigate","useNavigate","_useState3","_useState4","visible","setVisible","_useState5","_useState6","customName","setCustomName","_useState7","_useState8","showAlert","setShowAlert","_useState9","_useState10","alertMessage","setAlertMessage","_useState11","_useState12","disable","setDisable","_handleInstallClick","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","app_name","app_version","selectedVersion","customer_app_name","sent","Error","Message","t0","abrupt","stop","apply","arguments","versions","distribution","filter","item","version","versionList","length","toString","split","_useState13","_useState14","setselectedVersion","handleClose","event","reason","Modal","show","onHide","scrollable","backdrop","closeButton","style","padding","src","logo","imageurl","alt","marginTop","trademark","rel","href","target","display","alignItems","marginRight","vcpu","memory","storage","Carousel","activeIndex","onSelect","selectedIndex","e","width","margin","screenshots","height","overview","description","flexDirection","FormInput","onChange","i","inputValue","newValue","replace","toLowerCase","handleInputChange","Button","disabled","Snackbar","open","autoHideDuration","anchorOrigin","vertical","horizontal","severity","sx","_allData$productColle","_useState15","_useState16","showModal","setShowModal","_useState17","_useState18","selectedProduct","setSelectedProduct","_useState19","_useState20","subCatalogs","setSubCatalogs","_useState21","_useState22","allMainCatalogApps","setAllMainCatalogApps","_useState23","_useState24","isAllSelected","setIsAllSelected","_useState25","_useState26","searchValue","setSearchValue","_useQuery","useQuery","variables","locale","dataLoading","loading","dataError","allData","mainCatalogs","catalog","linkedFrom","catalogCollection","items","apps","productCollection","_useState27","_useState28","appList","setAppList","useEffect","Row","Col","sm","selectedMainCatalog","_mainCatalogs$filter","_mainCatalogs$filter$","_mainCatalogs$filter$2","_mainCatalogs$filter$3","updatedData","mainCatalogAllApps","c","app","_app$catalogCollectio","some","sub","_sub$catalogCollectio","subsub","changeMainCatalog","selected","title","selectedSubCatalog","_app$catalogCollectio2","changeSubCatalog","xs","searchString","includes","xxl","md","summary","sys"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/918.e10a86be.chunk.js","mappings":"mVAMMA,EAAgB,SAAHC,GAA0F,IAApFC,EAAID,EAAJC,KAAMC,EAAWF,EAAXE,YAAaC,EAAWH,EAAXG,YAAaC,EAAMJ,EAANI,OAAQC,EAAQL,EAARK,SAAUC,EAASN,EAATM,UAAWC,EAAKP,EAALO,MAAOC,EAAQR,EAARQ,SACzFC,GAAwCC,EAAAA,EAAAA,WAAS,GAAMC,GAAAC,EA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EAAIxM,IAAIoI,cAAckF,SAASD,EAAc,IAEzI1B,EAAWU,GACXjC,GAAiB,GACjBR,EAAe,KACnB,CAgDyCvB,CAAkBf,EAAEX,OAAO1K,MAAM,YAIlEQ,EAAAA,EAAAA,KAACoP,EAAAA,EAAG,CAAAlP,UACE+O,GAAW,IAAI3L,KAAI,SAACyM,EAAKxE,GACvB,OACIvL,EAAAA,EAAAA,KAACqP,EAAAA,EAAG,CAACyB,IAAK,EAAGC,GAAI,EAAoBxR,UAAU,gBAAeW,UAC1DC,EAAAA,EAAAA,MAAA,OAAKZ,UAAU,kCAAkCyB,QAAS,WAlH9E+L,EAkHkGgD,GAjHlGpD,GAAa,EAiH0F,EAAEzM,SAAA,EACjFF,EAAAA,EAAAA,KAAA,OAAKT,UAAU,6CAA4CW,UACvDF,EAAAA,EAAAA,KAAA,OACI0J,IAAKqG,EAAIpG,KAAKC,SACdC,IAAI,GACJtK,UAAU,gBAGlBY,EAAAA,EAAAA,MAAA,OAAKZ,UAAU,kBAAiBW,SAAA,EAC5BF,EAAAA,EAAAA,KAAA,MAAIT,UAAU,8BAA6BW,SACtC6P,EAAIhG,aAET/J,EAAAA,EAAAA,KAAA,OAAKT,UAAU,2CAA0CW,SACpD6P,EAAIiB,iBAdIjB,EAAIkB,IAAIzQ,GAoBzC,MAEHkM,IAAa1M,EAAAA,EAAAA,KAACiF,EAAc,CAACE,QAAS2H,EAAiB1H,SAAUsH,EAAWrH,QAlIjE,WAChBsH,GAAa,GACbI,EAAmB,KACvB,MAkIJ,C","sources":["components/FormInput.js","components/Spinner.js","helpers/api/apiCore.js","helpers/api/appManager.js","pages/appstore.js"],"sourcesContent":["// @flow\nimport classNames from 'classnames';\nimport React, { useState } from 'react';\nimport { Form, InputGroup } from 'react-bootstrap';\n\n/* Password Input */\nconst PasswordInput = ({ name, placeholder, refCallback, errors, register, className, value, readOnly }) => {\n const [showPassword, setShowPassword] = useState(false);\n\n return (\n <>\n \n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n autoComplete={name}\n defaultValue={value}\n readOnly={readOnly}\n />\n \n {\n setShowPassword(!showPassword);\n }}>\n \n \n \n );\n};\n\ntype FormInputProps = {\n label?: string,\n type?: string,\n name?: string,\n value?: string,\n placeholder?: string,\n register?: any,\n errors?: any,\n className?: string,\n labelClassName?: string,\n containerClass?: string,\n refCallback?: any,\n children?: any,\n};\n\nconst FormInput = ({\n label,\n type,\n name,\n value,\n readOnly,\n placeholder,\n register,\n errors,\n className,\n labelClassName,\n containerClass,\n refCallback,\n children,\n ...otherProps\n}: FormInputProps): React$Element => {\n // handle input type\n const comp = type === 'textarea' ? 'textarea' : type === 'select' ? 'select' : 'input';\n\n return (\n <>\n {type === 'hidden' ? (\n \n ) : (\n <>\n {type === 'password' ? (\n <>\n \n {label ? (\n <>\n {' '}\n {label} {children}{' '}\n \n ) : null}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n <>\n {type === 'select' ? (\n <>\n \n {label ? {label} : null}\n\n {\n if (refCallback) refCallback(r);\n }}\n comp={comp}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}>\n {children}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n <>\n {type === 'checkbox' || type === 'radio' ? (\n <>\n \n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}\n />\n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n \n ) : (\n \n {label ? {label} : null}\n\n {\n if (refCallback) refCallback(r);\n }}\n className={className}\n isInvalid={errors && errors[name] ? true : false}\n {...(register ? register(name) : {})}\n {...otherProps}\n autoComplete={name}>\n {children ? children : null}\n \n\n {errors && errors[name] ? (\n \n {errors[name]['message']}\n \n ) : null}\n \n )}\n \n )}\n \n )}\n \n )}\n \n );\n};\n\nexport default FormInput;\n","// @flow\nimport React from 'react';\nimport classNames from 'classnames';\n\ntype SpinnerProps = {\n tag?: string,\n className?: string,\n size?: 'lg' | 'md' | 'sm',\n type?: 'bordered' | 'grow',\n color?: string,\n children?: any,\n};\n\n/**\n * Spinner\n */\nconst Spinner = (props: SpinnerProps): React$Element => {\n const children = props.children || null;\n const Tag = props.tag || 'div';\n const color = props.color || 'secondary';\n const size = props.size || '';\n\n return (\n \n {children}\n \n );\n};\n\nSpinner.defaultProps = {\n tag: 'div',\n type: 'bordered',\n};\n\nexport default Spinner;\n","import axios from 'axios';\nimport { Navigate } from \"react-router-dom\";\n//import config from '../../config';\n\n// content type\naxios.defaults.headers.post['Content-Type'] = 'application/json';\naxios.defaults.headers.get['Content-Type'] = 'application/json';\naxios.defaults.headers = {\n 'Cache-Control': 'no-cache',\n 'Pragma': 'no-cache',\n 'Expires': '0',\n};\n//axios.defaults.baseURL = config.API_URL;\n\n// intercepting to capture errors\naxios.interceptors.response.use(\n (response) => {\n return response;\n },\n (error) => {\n // Any status codes that falls outside the range of 2xx cause this function to trigger\n let message;\n\n if (error && error.response && error.response.status === 404) {\n \n } else if (error && error.response && error.response.status === 500) {\n \n } else {\n message = error.response && error.response.data ? error.response.data['message'] : error.message || error;\n return Promise.reject(message);\n }\n }\n);\n\nclass APICore {\n /**\n * Fetches data from given url\n */\n get = (url, params) => {\n let response;\n if (params) {\n var queryString = params\n ? Object.keys(params)\n .map((key) => key + '=' + params[key])\n .join('&')\n : '';\n response = axios.get(`${url}?${queryString}`, params);\n } else {\n response = axios.get(`${url}`, params);\n }\n return response;\n };\n\n /**\n * post given data to url\n */\n create = (url, data) => {\n return axios.post(url, data);\n };\n}\n\nexport { APICore };\n","import { APICore } from './apiCore';\n\nconst api = new APICore();\n\n//App 安装\nfunction AppInstall(params: any): Promise {\n const baseUrl = '/AppManage/AppInstall';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 列表查询\nfunction AppList(params: any): Promise {\n const baseUrl = '/AppManage/AppList';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 卸载\nfunction AppUninstall(params: any): Promise {\n const baseUrl = '/AppManage/AppUninstall';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 停止\nfunction AppStop(params: any): Promise {\n const baseUrl = '/AppManage/AppStop';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 启动\nfunction AppStart(params: any): Promise {\n const baseUrl = '/AppManage/AppStart';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 重启\nfunction AppRestart(params: any): Promise {\n const baseUrl = '/AppManage/AppRestart';\n return api.get(`${baseUrl}`, params);\n}\n\n//App 状态查询\nfunction AppStatus(params: any): Promise {\n const baseUrl = '/AppManage/AppStatus';\n return api.get(`${baseUrl}`, params);\n}\n\n//查询APP对应的域名\nfunction AppDomainList(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainList';\n return api.get(`${baseUrl}`, params);\n}\n\n//删除APP绑定的域名\nfunction AppDomainDelete(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainDelete';\n return api.get(`${baseUrl}`, params);\n}\n\n//修改APP绑定的域名\nfunction AppDomainUpdate(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainUpdate';\n return api.get(`${baseUrl}`, params);\n}\n\n//APP绑定域名\nfunction AppDomainAdd(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainAdd';\n return api.get(`${baseUrl}`, params);\n}\n\n//设定默认域名\nfunction AppDomainSet(params: any): Promise {\n const baseUrl = '/AppManage/AppDomainSet';\n return api.get(`${baseUrl}`, params);\n}\n\nexport { AppInstall, AppList, AppUninstall, AppStop, AppStart, AppRestart, AppStatus, AppDomainList, AppDomainDelete, AppDomainUpdate, AppDomainAdd, AppDomainSet };\n\n","// @flow\nimport { gql, useQuery } from '@apollo/client';\nimport MuiAlert from '@mui/material/Alert';\nimport Snackbar from '@mui/material/Snackbar';\nimport cockpit from 'cockpit';\nimport React, { useEffect, useState } from 'react';\nimport { Button, Carousel, Col, Form, Modal, Row } from 'react-bootstrap';\nimport { useNavigate } from \"react-router-dom\";\nimport FormInput from '../components/FormInput';\nimport Spinner from '../components/Spinner';\nimport { AppInstall } from '../helpers';\n\nconst _ = cockpit.gettext;\nconst language = cockpit.language;//获取cockpit的当前语言环境\n\nconst Alert = React.forwardRef(function Alert(props, ref) {\n return ;\n});\n\nconst getContentfulData = gql`\n query($locale: String!){\n productCollection(locale:$locale,where:{appStore:true}) {\n items {\n sys {\n id\n }\n key\n trademark\n summary\n overview\n websiteurl\n description\n screenshots\n distribution\n highlights\n vcpu\n memory\n storage\n logo {\n imageurl\n }\n catalogCollection(limit:20) {\n items {\n key\n title\n catalogCollection(limit:1){\n items{\n key\n title\n }\n }\n }\n }\n }\n }\n catalog(id: \"2Yp0TY3kBHgG6VDjsHZNpK\",locale:$locale) {\n linkedFrom(allowedLocales:[\"en-US\"]) {\n catalogCollection(limit:20) {\n items {\n key\n title\n linkedFrom(allowedLocales:[\"en-US\"]) {\n catalogCollection(limit:20) {\n items {\n key\n title\n }\n }\n }\n }\n }\n }\n }\n }\n`;\n\n//应用详情弹窗\nconst AppDetailModal = ({ product, showFlag, onClose }) => {\n const [index, setIndex] = useState(0); //用户图片浏览\n const navigate = useNavigate(); //用于页面跳转\n const [visible, setVisible] = useState(true); //用于显示安装选项:版本和应用名称\n const [customName, setCustomName] = useState(\"\"); //用户存储用户输入的应用名称\n const [showAlert, setShowAlert] = useState(false); //用于是否显示错误提示\n const [alertMessage, setAlertMessage] = useState(\"\");//用于显示错误提示消息\n const [disable, setDisable] = useState(false);//用于按钮禁用\n\n //用户单击“安装”按钮\n async function handleInstallClick() {\n if (!visible) {\n if (!customName) { //判断用户是否输入应用名称\n setShowAlert(true);\n setAlertMessage(_(\"Please enter a custom application name\"))\n }\n else {\n //调用应用安装接口\n try {\n setDisable(true);\n const response = await AppInstall({ app_name: product.key, app_version: selectedVersion, customer_app_name: customName })\n if (response.data.Error) {\n setShowAlert(true);\n setAlertMessage(response.data.Error.Message);\n setDisable(false);\n }\n else {\n setShowAlert(false);\n setAlertMessage(\"\");\n navigate(\"/myapps\");\n }\n }\n catch (error) {\n setShowAlert(false);\n setAlertMessage(\"\");\n navigate(\"/error-500\");\n }\n }\n return;\n }\n setVisible(!visible);\n }\n\n const handleSelect = (selectedIndex, e) => {\n setIndex(selectedIndex);\n };\n\n let versions = (product.distribution?.filter(item => item.key === \"Community\") || []).map(version => { return version.value });//获取应用的版本\n\n let versionList = (versions && versions.length === 1) ? versions.toString().split(\",\") : versions;\n\n const [selectedVersion, setselectedVersion] = useState(versionList[0]); //存储用户选择的安装版本\n\n const changeVersion = (version) => {\n setselectedVersion(version);\n };\n\n const handleInputChange = (inputValue) => {\n setCustomName(inputValue);\n if (!inputValue) { //当用户没有输入应用名称\n setShowAlert(true);\n setAlertMessage(_(\"Please enter a custom application name\"))\n }\n else {\n const newValue = inputValue.replace(/[^a-z0-9]/gi, '').toLowerCase(); //先替换输入值\n setCustomName(newValue);\n setShowAlert(false);\n setAlertMessage(\"\");\n }\n }\n\n const handleClose = (event, reason) => {\n if (reason === 'clickaway') {\n return;\n }\n setShowAlert(false);\n setAlertMessage(\"\");\n };\n\n return (\n <>\n \n \n
\n
\n \n
\n
\n

\n {product.trademark}\n

\n \n
\n {_(\"Version\")} : {versions}\n
\n
\n {_(\"Requires at least\")} : {product.vcpu} vCPU, {product.memory} GB memory, {product.storage} GB storage\n
\n
\n
\n
\n \n
\n \n {\n (product.screenshots || []).map((item) => {\n return (\n \n \n \n );\n })\n }\n \n
\n

{_(\"Overview\")}

\n {product.overview}\n
\n
\n

{_(\"Description\")}

\n {product.description}\n
\n
\n
\n
\n
\n {_(\"Version\")} :\n {\n versionList && changeVersion(e.target.value)}\n key=\"select\">\n {\n (versionList || []).map((version, i) => {\n return \n })\n }\n \n }\n
\n
\n {_(\"Name\")} :\n { handleInputChange(e.target.value) }} />\n
\n
\n
\n
\n \n {' '}\n \n \n
\n {\n showAlert &&\n \n \n {alertMessage}\n \n \n }\n \n );\n}\n\nconst AppStore = (): React$Element => {\n const [showModal, setShowModal] = useState(false); //用于显示弹窗的标识\n const [selectedProduct, setSelectedProduct] = useState(null); //用于存储被选中的产品(点击应用详情时使用)\n const [subCatalogs, setSubCatalogs] = useState(null); //用于存储二级目录\n const [allMainCatalogApps, setAllMainCatalogApps] = useState(null); //用于存储某个一级子目录下的所有应用\n const [isAllSelected, setIsAllSelected] = useState(true);\n const [searchValue, setSearchValue] = useState(\"\");\n\n const { loading: dataLoading, error: dataError, data: allData } = useQuery(getContentfulData, { variables: { locale: language === \"zh_CN\" ? \"zh-CN\" : \"en-US\" } });\n\n const mainCatalogs = allData?.catalog.linkedFrom.catalogCollection.items; //主目录数据\n const apps = allData?.productCollection?.items;//所有应用数据\n\n const [appList, setAppList] = useState(apps); //用于存储通过目录筛选出来的数据\n\n useEffect(() => {\n setAppList(apps);\n }, [apps])\n\n // if (dataLoading) return

Loading...

;\n\n if (dataLoading) return /**/;\n if (dataError) return

Error : ${dataError.message}

;\n\n //用于显示应用详情的弹窗\n const handleClick = (product) => {\n setSelectedProduct(product);\n setShowModal(true);\n };\n\n //用于关闭应用详情的弹窗\n const handleClose = () => {\n setShowModal(false);\n setSelectedProduct(null);\n };\n\n //当主目录改变时\n const changeMainCatalog = (selectedMainCatalog) => {\n // 查询主目录下的二级目录\n let updatedData = null;\n // filter\n updatedData =\n selectedMainCatalog === 'All'\n ? []\n : mainCatalogs.filter(c => c.key === selectedMainCatalog)?.[0]?.linkedFrom?.catalogCollection?.items;\n setSubCatalogs(updatedData);\n\n //根据主目录过滤app数据\n let subCatalogApps = null;\n let mainCatalogAllApps = null;\n mainCatalogAllApps = apps.filter(app => app?.catalogCollection?.items.some(sub => sub?.catalogCollection?.items.some(subsub => subsub.key === selectedMainCatalog)));\n subCatalogApps =\n selectedMainCatalog === \"All\"\n ? apps\n : mainCatalogAllApps;\n setAppList(subCatalogApps);\n setAllMainCatalogApps(mainCatalogAllApps);\n setIsAllSelected(false);\n setSearchValue(\"\");\n };\n\n //当子目录改变时,过滤应用数据\n const changeSubCatalog = (selectedSubCatalog) => {\n let updatedData = null;\n updatedData =\n selectedSubCatalog === \"All\"\n ? allMainCatalogApps\n : apps.filter(app => app?.catalogCollection?.items.some(c => c.key === selectedSubCatalog));\n setAppList(updatedData);\n setSearchValue(\"\");\n };\n\n //当搜索框的内容发生改变时,进行app的过滤搜索\n const handleInputChange = (searchString) => {\n setSearchValue(searchString);\n let updatedData = null;\n updatedData =\n searchString === \"\"\n ? apps\n : apps.filter(app => { return app.trademark.toLowerCase().includes(searchString) || app.key.toLowerCase().includes(searchString) });\n\n setAppList(updatedData);\n setIsAllSelected(true);\n setSubCatalogs(null);\n }\n\n return (\n <>\n \n \n \n \n changeMainCatalog(e.target.value)}>\n \n {\n (mainCatalogs || []).map((item, i) => {\n return (\n \n );\n })\n }\n \n \n \n changeSubCatalog(e.target.value)}>\n \n {\n (subCatalogs || []).map((item, i) => {\n return (\n \n );\n })\n }\n \n \n \n \n \n \n handleInputChange(e.target.value)} />\n \n \n \n \n {(appList || []).map((app, i) => {\n return (\n \n
{ handleClick(app) }}>\n
\n \n
\n
\n

\n {app.trademark}\n

\n
\n {app.summary}\n
\n
\n
\n \n );\n })}\n
\n {showModal && }\n \n );\n};\n\nexport default AppStore;\n"],"names":["PasswordInput","_ref","name","placeholder","refCallback","errors","register","className","value","readOnly","_useState","useState","_useState2","_slicedToArray","showPassword","setShowPassword","_jsx","_Fragment","children","_jsxs","InputGroup","Form","_objectSpread","type","id","as","ref","r","isInvalid","autoComplete","defaultValue","classNames","onClick","_ref2","label","labelClassName","containerClass","otherProps","_objectWithoutProperties","_excluded","comp","Spinner","props","Tag","tag","color","size","role","concat","_defineProperty","defaultProps","axios","response","error","message","status","Navigate","data","Promise","reject","api","_createClass","APICore","_classCallCheck","get","url","params","queryString","Object","keys","map","key","join","create","AppInstall","AppList","AppUninstall","AppStop","AppStart","AppRestart","AppDomainList","AppDomainDelete","AppDomainUpdate","AppDomainAdd","AppDomainSet","_","cockpit","language","Alert","React","MuiAlert","elevation","variant","getContentfulData","gql","_templateObject","_taggedTemplateLiteral","AppDetailModal","_product$distribution","product","showFlag","onClose","index","setIndex","navigate","useNavigate","_useState3","_useState4","visible","setVisible","_useState5","_useState6","customName","setCustomName","_useState7","_useState8","showAlert","setShowAlert","_useState9","_useState10","alertMessage","setAlertMessage","_useState11","_useState12","disable","setDisable","_handleInstallClick","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","app_name","app_version","selectedVersion","customer_app_name","sent","Error","Message","t0","abrupt","stop","apply","arguments","versions","distribution","filter","item","version","versionList","length","toString","split","_useState13","_useState14","setselectedVersion","handleClose","event","reason","Modal","show","onHide","scrollable","backdrop","closeButton","style","padding","src","logo","imageurl","alt","marginTop","trademark","rel","href","target","display","alignItems","marginRight","vcpu","memory","storage","Carousel","activeIndex","onSelect","selectedIndex","e","width","margin","screenshots","height","overview","description","flexDirection","FormInput","onChange","i","inputValue","newValue","replace","toLowerCase","handleInputChange","Button","disabled","Snackbar","open","autoHideDuration","anchorOrigin","vertical","horizontal","severity","sx","_allData$productColle","_useState15","_useState16","showModal","setShowModal","_useState17","_useState18","selectedProduct","setSelectedProduct","_useState19","_useState20","subCatalogs","setSubCatalogs","_useState21","_useState22","allMainCatalogApps","setAllMainCatalogApps","_useState23","_useState24","isAllSelected","setIsAllSelected","_useState25","_useState26","searchValue","setSearchValue","_useQuery","useQuery","variables","locale","dataLoading","loading","dataError","allData","mainCatalogs","catalog","linkedFrom","catalogCollection","items","apps","productCollection","_useState27","_useState28","appList","setAppList","useEffect","Row","Col","sm","selectedMainCatalog","_mainCatalogs$filter","_mainCatalogs$filter$","_mainCatalogs$filter$2","_mainCatalogs$filter$3","updatedData","mainCatalogAllApps","c","app","_app$catalogCollectio","some","sub","_sub$catalogCollectio","subsub","changeMainCatalog","selected","title","selectedSubCatalog","_app$catalogCollectio2","changeSubCatalog","xs","searchString","includes","xxl","md","summary","sys"],"sourceRoot":""} \ No newline at end of file diff --git a/src/apps/build/static/js/main.b6447da4.js b/src/apps/build/static/js/main.a4a0ad96.js similarity index 99% rename from src/apps/build/static/js/main.b6447da4.js rename to src/apps/build/static/js/main.a4a0ad96.js index 944d24755..5f0c7b133 100644 --- a/src/apps/build/static/js/main.b6447da4.js +++ b/src/apps/build/static/js/main.a4a0ad96.js @@ -1,3 +1,3 @@ -/*! For license information please see main.b6447da4.js.LICENSE.txt */ -!function(){var e={9470:function(e,t,n){"use strict";n.d(t,{X3:function(){return J},aU:function(){return d},Zq:function(){return B},J0:function(){return k},q_:function(){return w},Ep:function(){return x},WK:function(){return Y},RQ:function(){return G},fp:function(){return T},cP:function(){return O},pC:function(){return W},Zn:function(){return Q}});var r=n(3144),o=n(5671),i=n(136),a=n(7277),u=n(1120),l=n(9611);var c=n(8814);function s(e,t,n){return s=(0,c.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,l.Z)(o,n.prototype),o},s.apply(null,arguments)}function f(e){var t="function"===typeof Map?new Map:void 0;return f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s(e,arguments,(0,u.Z)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,l.Z)(r,e)},f(e)}var d,p=n(9439),h=n(4506),v=n(7762),y=n(3433);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function C(e,t,n,r){void 0===r&&(r={});var o=r,i=o.window,a=void 0===i?document.defaultView:i,u=o.v5Compat,l=void 0!==u&&u,c=a.history,s=d.Pop,f=null,p=h();function h(){return(c.state||{idx:null}).idx}function v(){s=d.Pop;var e=h(),t=null==e?null:e-p;p=e,f&&f({action:s,location:g.location,delta:t})}function y(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:x(e);return k(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==p&&(p=0,c.replaceState(m({},c.state,{idx:p}),""));var g={get action(){return s},get location(){return e(a,c)},listen:function(e){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(b,v),f=e,function(){a.removeEventListener(b,v),f=null}},createHref:function(e){return t(a,e)},createURL:y,encodeLocation:function(e){var t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=d.Push;var r=_(g.location,e,t);n&&n(r,e);var o=E(r,p=h()+1),i=g.createHref(r);try{c.pushState(o,"",i)}catch(u){a.location.assign(i)}l&&f&&f({action:s,location:g.location,delta:1})},replace:function(e,t){s=d.Replace;var r=_(g.location,e,t);n&&n(r,e);var o=E(r,p=h()),i=g.createHref(r);c.replaceState(o,"",i),l&&f&&f({action:s,location:g.location,delta:0})},go:function(e){return c.go(e)}};return g}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function T(e,t,n){void 0===n&&(n="/");var r=Q(("string"===typeof t?O(t):t).pathname||"/",n);if(null==r)return null;var o=P(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(o);for(var i=null,a=0;null==i&&a0&&(k(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),P(e.children,t,l,u)),(null!=e.path||e.index)&&t.push({path:u,score:M(u,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,i=(0,v.Z)(N(e.path));try{for(i.s();!(r=i.n()).done;){var a=r.value;o(e,t,a)}}catch(u){i.e(u)}finally{i.f()}}else o(e,t)})),t}function N(e){var t=e.split("/");if(0===t.length)return[];var n=(0,h.Z)(t),r=n[0],o=n.slice(1),i=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===o.length)return i?[a,""]:[a];var u=N(o.join("/")),l=[];return l.push.apply(l,(0,y.Z)(u.map((function(e){return""===e?a:[a,e].join("/")})))),i&&l.push.apply(l,(0,y.Z)(u)),l.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var D=/^:\w+$/,I=3,j=2,R=1,L=10,F=-2,A=function(e){return"*"===e};function M(e,t){var n=e.split("/"),r=n.length;return n.some(A)&&(r+=F),t&&(r+=j),n.filter((function(e){return!A(e)})).reduce((function(e,t){return e+(D.test(t)?I:""===t?R:L)}),r)}function z(e,t){for(var n=e.routesMeta,r={},o="/",i=[],a=0;a and the router will parse it for you.'}function B(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function W(e,t,n,r){var o;void 0===r&&(r=!1),"string"===typeof e?o=O(e):(k(!(o=m({},e)).pathname||!o.pathname.includes("?"),U("?","pathname","search",o)),k(!o.pathname||!o.pathname.includes("#"),U("#","pathname","hash",o)),k(!o.search||!o.search.includes("#"),U("#","search","hash",o)));var i,a=""===e||""===o.pathname,u=a?"/":o.pathname;if(r||null==u)i=n;else{var l=t.length-1;if(u.startsWith("..")){for(var c=u.split("/");".."===c[0];)c.shift(),l-=1;o.pathname=c.join("/")}i=l>=0?t[l]:"/"}var s=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?O(e):e,r=n.pathname,o=n.search,i=void 0===o?"":o,a=n.hash,u=void 0===a?"":a,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:Z(i),hash:$(u)}}(o,i),f=u&&"/"!==u&&u.endsWith("/"),d=(a||"."===u)&&n.endsWith("/");return s.pathname.endsWith("/")||!f&&!d||(s.pathname+="/"),s}var G=function(e){return e.join("/").replace(/\/\/+/g,"/")},H=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},Z=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},$=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},J=function(e){(0,i.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(f(Error));function Y(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var K=["post","put","patch","delete"],X=(new Set(K),["get"].concat(K));new Set(X),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;Symbol("deferred")},5970:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var r=Object.prototype,o=r.toString,i=r.hasOwnProperty,a=Function.prototype.toString,u=new Map;function l(e,t){try{return c(e,t)}finally{u.clear()}}function c(e,t){if(e===t)return!0;var n=o.call(e);if(n!==o.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(p(e,t))return!0;var r=s(e),u=s(t),l=r.length;if(l!==u.length)return!1;for(var f=0;f=0&&e.indexOf(t,n)===n}(S,d)}return!1}function s(e){return Object.keys(e).filter(f,e)}function f(e){return void 0!==this[e]}var d="{ [native code] }";function p(e,t){var n=u.get(e);if(n){if(n.has(t))return!0}else u.set(e,n=new Set);return n.add(t),!1}},1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t