@abtnode/webapp 1.16.18 → 1.16.19-beta-e6aac665
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +20 -20
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/{1005.3f7c0424.chunk.js → 1005.3959beea.chunk.js} +1 -1
- package/build/static/js/{1366.9080fc67.chunk.js → 1366.da5d2cf5.chunk.js} +2 -2
- package/build/static/js/1371.d1c1b823.chunk.js +1 -0
- package/build/static/js/{2334.f691dca3.chunk.js → 2334.66fda96c.chunk.js} +1 -1
- package/build/static/js/{2960.a86a7714.chunk.js → 2960.5edbdf92.chunk.js} +1 -1
- package/build/static/js/{3389.5c09050b.chunk.js → 3389.01128c14.chunk.js} +1 -1
- package/build/static/js/3826.3d90fb73.chunk.js +2 -0
- package/build/static/js/3883.8ebeea7c.chunk.js +1 -0
- package/build/static/js/{4448.347d2a50.chunk.js → 4448.240f547f.chunk.js} +1 -1
- package/build/static/js/{4471.bd184c41.chunk.js → 4471.7cf10167.chunk.js} +1 -1
- package/build/static/js/{5804.d39dd5d0.chunk.js → 5804.911e6040.chunk.js} +1 -1
- package/build/static/js/{6511.4138727a.chunk.js → 6511.63e6ee73.chunk.js} +1 -1
- package/build/static/js/6950.d8ef81ea.chunk.js +1 -0
- package/build/static/js/6960.f90b97b2.chunk.js +1 -0
- package/build/static/js/{7913.0cf3724f.chunk.js → 7913.fbdbed84.chunk.js} +1 -1
- package/build/static/js/{8382.4ef915cd.chunk.js → 8382.ab859900.chunk.js} +1 -1
- package/build/static/js/{9041.1ee0f39d.chunk.js → 9041.cfebb881.chunk.js} +1 -1
- package/build/static/js/{9249.38caee59.chunk.js → 9249.d1ca2237.chunk.js} +1 -1
- package/build/static/js/main.bd846fb6.js +2 -0
- package/package.json +1 -1
- package/build/static/js/1371.5b72f904.chunk.js +0 -1
- package/build/static/js/3826.1e61fa69.chunk.js +0 -2
- package/build/static/js/3883.2b7cf953.chunk.js +0 -1
- package/build/static/js/6950.71452861.chunk.js +0 -1
- package/build/static/js/6960.8b12dfb5.chunk.js +0 -1
- package/build/static/js/main.d4387066.js +0 -2
- /package/build/static/js/{1366.9080fc67.chunk.js.LICENSE.txt → 1366.da5d2cf5.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3826.1e61fa69.chunk.js.LICENSE.txt → 3826.3d90fb73.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.d4387066.js.LICENSE.txt → main.bd846fb6.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1371],{58854:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var o=t(85493),r=t(80576),a=t(51177),i=t(74490),l=t(43077),d=t(13644),c=t(75793),s=t(96266);function u(){var e=(0,o.useNavigate)(),n=(0,o.useParams)().name,t=void 0===n?"abtnode":n,u=(0,c.h6)().info,p=u.routing.provider,v=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["info","access","stdout","stderr"]}];if(p){var g="Service Gateway(".concat(p,")");v.push({id:"service-gateway-".concat(p),name:g,types:["error","access"]})}var f=(0,s.jsx)(r.Z,{sx:{minWidth:240},children:(0,s.jsx)(a.Z,{value:t,onChange:function(n){e("/logs/".concat(n.target.value))},size:"small",children:v.map((function(e){return(0,s.jsx)(i.Z,{value:e.id,children:e.name},e.id)}))})}),m=v.find((function(e){return e.id===t}))||v[0];return(0,s.jsx)(l.l,{name:m.name,logId:m.id,types:m.types,prepend:f,postpend:(0,s.jsx)(d.Z,{id:u.did,name:"blocklet-server"})},m.id)}},24460:function(e,n,t){var o=t(93845);e.exports=function(e){return o((e||"").replace(/^[@./-]/,"").replace(/[@./_]/g,"-"))}},13644:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var o=t(32723),r=t(34795),a=t(96234),i=t(5057),l=t(55898),d=t.n(l),c=t(1577),s=t.n(c),u=t(39948),p=t(63878),v=t(80576),g=t(51177),f=t(74490),m=t(44846),h=t(28726),b=t(68420),x=t(13128),Z=t(24460),y=t.n(Z),w=t(86229),j=t(58238),B=t(96266),R=[1,7];function C(e){var n=e.id,t=e.name,l=(0,b.PE)().t,d=(0,j.h6)(),c=d.restApi,Z=d.inService,C=(0,i.useState)(!1),k=(0,a.Z)(C,2),z=k[0],E=k[1],S=(0,i.useState)(!1),T=(0,a.Z)(S,2),P=T[0],W=T[1],D=(0,i.useState)(1),M=(0,a.Z)(D,2),F=M[0],N=M[1],I=function(){var e=(0,r.Z)((0,o.Z)().mark((function e(){var r,a,i,l;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!P){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,W(!0),r=Z?"":"/".concat(n),e.next=7,c.get("/download/log".concat(r,"?days=").concat(F),{responseType:"blob"});case 7:a=e.sent,i=URL.createObjectURL(a.data),(l=document.createElement("a")).href=i,l.setAttribute("download","".concat(y()(t||n),".").concat(s()().format("YYYYMMDDHHmmss"),".log.zip")),document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(i),W(!1),E(!1),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(2),W(!1),w.Z.error(e.t0.message);case 24:case"end":return e.stop()}}),e,null,[[2,20]])})));return function(){return e.apply(this,arguments)}}();return[(0,B.jsx)(u.Z,{display:"flex",alignItems:"center",style:{gap:16},children:(0,B.jsxs)(h.Z,{"data-cy":"download-logs",variant:"outlined",onClick:function(){return E(!0)},disabled:P,children:[P?(0,B.jsx)(m.Z,{size:16}):(0,B.jsx)(p.Z,{fontSize:"small",style:{transform:"translateY(2px)"}}),(0,B.jsx)(u.Z,{ml:.5,children:l("common.download")})]})}),z&&(0,B.jsx)(x.ZP,{open:!0,onClose:function(){E(!1)},disableEscapeKeyDown:!0,title:l("common.download"),PaperProps:{style:{minHeight:"auto"}},actions:(0,B.jsxs)(h.Z,{"data-cy":"download-logs",variant:"outlined",onClick:function(){return I()},disabled:P,children:[P&&(0,B.jsx)(m.Z,{size:16}),(0,B.jsx)(u.Z,{ml:.5,children:l("common.confirm")})]}),children:(0,B.jsx)(u.Z,{mb:2,display:"flex",justifyContent:"center",children:(0,B.jsx)(v.Z,{size:"small",fullWidth:!0,children:(0,B.jsx)(g.Z,{value:F,onChange:function(e){N(e.target.value)},children:R.map((function(e){return(0,B.jsx)(f.Z,{value:e,children:l("log.lastDays.".concat(e))},e)}))})})})})]}C.propTypes={id:d().string.isRequired,name:d().string},C.defaultProps={name:""}},43077:function(e,n,t){"use strict";t.d(n,{l:function(){return B}});var o=t(71171),r=t(33028),a=t(96234),i=t(59740),l=t(5057),d=t(33518),c=t(55898),s=t.n(c),u=t(56556),p=t(49127),v=t(72904),g=t(9746),f=t(12726),m=t(14491);var h,b,x=function(){var e=(0,l.useState)(+new Date),n=(0,a.Z)(e,2),t=n[0],o=n[1];return(0,f.Z)((function(){o(+new Date)}),1e3),(0,m.mr)(t,"MMMM Do YYYY, h:mm:ss a")},Z=t(58238),y=t(96266),w=["name","logId","types","defaultTypeIndex","initialData","prepend","postpend","onTypeChange"],j=["logFile"];function B(e){var n=e.name,t=e.logId,o=e.types,d=e.defaultTypeIndex,c=e.initialData,s=e.prepend,g=e.postpend,f=e.onTypeChange,m=(0,i.Z)(e,w),h=(0,Z.h6)().ws.useSubscription,b={info:"Info",error:"Error",access:"Access",stdout:"stdout",stderr:"stderr",pm2:"PM2"},x=(0,v.Z)((function(e){return e.breakpoints.down("md")})),j=(0,l.useState)(o[d||0]),B=(0,a.Z)(j,2),k=B[0],z=B[1],E=(0,l.useState)(),S=(0,a.Z)(E,2),T=S[0],P=S[1],W=(0,l.useRef)({});return(0,l.useEffect)((function(){o.forEach((function(e){var t=W.current[e];t&&(t.write("Collecting ".concat(e," logs for ").concat(n,"...")),t.write("\r\n\r\n"),c.forEach((function(e){return t.write(e)})))}))}),[]),h("log.".concat(t),(function(e){T||P(e.logFiles||{});var n=W.current[e.level];n&&(n.write(e.data.replace(/.\n/g,(function(e){return"\r\n"===e?e:"".concat(e[0],"\r\n\r\n")}))),n.write("\r\n\r\n"))}),[]),(0,y.jsxs)(R,(0,r.Z)((0,r.Z)({},m),{},{children:[(0,y.jsxs)("div",{className:"log-terminal-group-head",children:[(0,y.jsxs)("div",{className:"log-terminal-group-head-start",children:[s,(0,y.jsx)(p.Z,{variant:"outlined",size:x?"small":"medium",children:o.map((function(e){var n=e===k?{variant:"contained"}:{};return(0,y.jsx)(u.Z,(0,r.Z)((0,r.Z)({},n),{},{onClick:function(){z(e),f(e)},children:b[e]}),e)}))})]}),(0,y.jsx)("div",{className:"log-terminal-group-head-end",children:g})]}),(0,y.jsx)("div",{className:"log-terminal-group-terminals",children:o.map((function(e){return(0,y.jsx)(C,{ref:function(n){W.current[e]=n},logFile:null===T||void 0===T?void 0:T[e],style:{visibility:e===k?"visible":"hidden"}},e)}))})]}))}B.propTypes={name:s().string.isRequired,logId:s().string.isRequired,types:s().arrayOf(s().string),defaultTypeIndex:s().number,initialData:s().arrayOf(s().string),prepend:s().node,postpend:s().node,onTypeChange:s().func},B.defaultProps={types:["error","info","access","stdout","stderr"],defaultTypeIndex:0,initialData:[],prepend:null,postpend:null,onTypeChange:function(){}};var R=d.Z.div(h||(h=(0,o.Z)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n .log-terminal-group-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n }\n\n .log-terminal-group-head-start {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: 16px;\n "," {\n flex-direction: column;\n align-items: start;\n }\n }\n\n .log-terminal-group-head-end {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: 16px;\n "," {\n flex-direction: column;\n align-items: start;\n }\n }\n .log-terminal-group-terminals {\n flex: 1;\n position: relative;\n overflow: hidden;\n > * {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.down("md")})),C=(0,l.forwardRef)((function(e,n){var t=e.logFile,o=(0,i.Z)(e,j);return(0,y.jsxs)(k,(0,r.Z)((0,r.Z)({},o),{},{children:[(0,y.jsxs)("div",{className:"log-terminal-top",children:[(0,y.jsx)(x,{}),t&&(0,y.jsx)("span",{children:t})]}),(0,y.jsx)("div",{className:"log-terminal-container",style:{position:"relative"},children:(0,y.jsx)(g.Z,{ref:n,style:{width:"100%",boxSizing:"border-box",height:"100%"},options:{theme:{background:"#2C313C",foreground:"#EEEEEE"}}})})]}))}));C.propTypes={logFile:s().string},C.defaultProps={logFile:""};var k=d.Z.div(b||(b=(0,o.Z)(["\n height: 100%;\n display: flex;\n flex-direction: column;\n .log-terminal-top {\n flex: 0 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n padding: 8px;\n font-size: 14px;\n color: aquamarine;\n background: darkgray;\n word-break: break-word;\n }\n .log-terminal-container {\n flex: 1;\n height: 100%;\n padding: 8px;\n overflow: hidden;\n background: #2c313c;\n }\n\n .xterm-viewport::-webkit-scrollbar {\n width: 10px;\n }\n .xterm-viewport::-webkit-scrollbar-track {\n opacity: 0;\n }\n .xterm-viewport::-webkit-scrollbar-thumb {\n min-height: 20px;\n background-color: #ffffff20;\n }\n"])))},49127:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var o=t(56666),r=t(31461),a=t(7896),i=t(5057),l=t(9978),d=t(91213),c=t(66685);var s=t(6285),u=t(62773),p=t(42908),v=t(31821),g=t(18561);function f(e){return(0,g.Z)("MuiButtonGroup",e)}var m=(0,v.Z)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),h=t(17681),b=t(27258),x=t(96266),Z=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],y=(0,u.ZP)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[(0,o.Z)({},"& .".concat(m.grouped),n.grouped),(0,o.Z)({},"& .".concat(m.grouped),n["grouped".concat((0,s.Z)(t.orientation))]),(0,o.Z)({},"& .".concat(m.grouped),n["grouped".concat((0,s.Z)(t.variant))]),(0,o.Z)({},"& .".concat(m.grouped),n["grouped".concat((0,s.Z)(t.variant)).concat((0,s.Z)(t.orientation))]),(0,o.Z)({},"& .".concat(m.grouped),n["grouped".concat((0,s.Z)(t.variant)).concat((0,s.Z)(t.color))]),(0,o.Z)({},"& .".concat(m.firstButton),n.firstButton),(0,o.Z)({},"& .".concat(m.lastButton),n.lastButton),(0,o.Z)({},"& .".concat(m.middleButton),n.middleButton),n.root,n[t.variant],!0===t.disableElevation&&n.disableElevation,t.fullWidth&&n.fullWidth,"vertical"===t.orientation&&n.vertical]}})((function(e){var n,t=e.theme,r=e.ownerState;return(0,a.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[2]},r.disableElevation&&{boxShadow:"none"},r.fullWidth&&{width:"100%"},"vertical"===r.orientation&&{flexDirection:"column"},(n={},(0,o.Z)(n,"& .".concat(m.grouped),(0,a.Z)({minWidth:40,"&:hover":(0,a.Z)({},"contained"===r.variant&&{boxShadow:"none"})},"contained"===r.variant&&{boxShadow:"none"})),(0,o.Z)(n,"& .".concat(m.firstButton,",& .").concat(m.middleButton),(0,a.Z)({},"horizontal"===r.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===r.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===r.variant&&"horizontal"===r.orientation&&(0,o.Z)({borderRight:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"&.".concat(m.disabled),{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}),"text"===r.variant&&"vertical"===r.orientation&&(0,o.Z)({borderBottom:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"&.".concat(m.disabled),{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}),"text"===r.variant&&"inherit"!==r.color&&{borderColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,c.Fq)(t.palette[r.color].main,.5)},"outlined"===r.variant&&"horizontal"===r.orientation&&{borderRightColor:"transparent"},"outlined"===r.variant&&"vertical"===r.orientation&&{borderBottomColor:"transparent"},"contained"===r.variant&&"horizontal"===r.orientation&&(0,o.Z)({borderRight:"1px solid ".concat((t.vars||t).palette.grey[400])},"&.".concat(m.disabled),{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}),"contained"===r.variant&&"vertical"===r.orientation&&(0,o.Z)({borderBottom:"1px solid ".concat((t.vars||t).palette.grey[400])},"&.".concat(m.disabled),{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}),"contained"===r.variant&&"inherit"!==r.color&&{borderColor:(t.vars||t).palette[r.color].dark},{"&:hover":(0,a.Z)({},"outlined"===r.variant&&"horizontal"===r.orientation&&{borderRightColor:"currentColor"},"outlined"===r.variant&&"vertical"===r.orientation&&{borderBottomColor:"currentColor"})})),(0,o.Z)(n,"& .".concat(m.lastButton,",& .").concat(m.middleButton),(0,a.Z)({},"horizontal"===r.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===r.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===r.variant&&"horizontal"===r.orientation&&{marginLeft:-1},"outlined"===r.variant&&"vertical"===r.orientation&&{marginTop:-1})),n))})),w=i.forwardRef((function(e,n){var t=(0,p.Z)({props:e,name:"MuiButtonGroup"}),o=t.children,c=t.className,u=t.color,v=void 0===u?"primary":u,g=t.component,m=void 0===g?"div":g,w=t.disabled,j=void 0!==w&&w,B=t.disableElevation,R=void 0!==B&&B,C=t.disableFocusRipple,k=void 0!==C&&C,z=t.disableRipple,E=void 0!==z&&z,S=t.fullWidth,T=void 0!==S&&S,P=t.orientation,W=void 0===P?"horizontal":P,D=t.size,M=void 0===D?"medium":D,F=t.variant,N=void 0===F?"outlined":F,I=(0,r.Z)(t,Z),L=(0,a.Z)({},t,{color:v,component:m,disabled:j,disableElevation:R,disableFocusRipple:k,disableRipple:E,fullWidth:T,orientation:W,size:M,variant:N}),O=function(e){var n=e.classes,t=e.color,o=e.disabled,r=e.disableElevation,a=e.fullWidth,i=e.orientation,l=e.variant,c={root:["root",l,"vertical"===i&&"vertical",a&&"fullWidth",r&&"disableElevation"],grouped:["grouped","grouped".concat((0,s.Z)(i)),"grouped".concat((0,s.Z)(l)),"grouped".concat((0,s.Z)(l)).concat((0,s.Z)(i)),"grouped".concat((0,s.Z)(l)).concat((0,s.Z)(t)),o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,d.Z)(c,f,n)}(L),Y=i.useMemo((function(){return{className:O.grouped,color:v,disabled:j,disableElevation:R,disableFocusRipple:k,disableRipple:E,fullWidth:T,size:M,variant:N}}),[v,j,R,k,E,T,M,N,O.grouped]),H=function(e){return i.Children.toArray(e).filter((function(e){return i.isValidElement(e)}))}(o),q=H.length,G=function(e){var n=0===e,t=e===q-1;return n&&t?"":n?O.firstButton:t?O.lastButton:O.middleButton};return(0,x.jsx)(y,(0,a.Z)({as:m,role:"group",className:(0,l.Z)(O.root,c),ref:n,ownerState:L},I,{children:(0,x.jsx)(h.Z.Provider,{value:Y,children:H.map((function(e,n){return(0,x.jsx)(b.Z.Provider,{value:G(n),children:e},n)}))})}))}))}}]);
|