@abtnode/webapp 1.16.13-beta-286a5279 → 1.16.13-beta-714bec78
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 +56 -28
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/105.a96da900.chunk.js +1 -0
- package/build/static/js/1237.5c2ad6c1.chunk.js +1 -0
- package/build/static/js/1366.6358f647.chunk.js +2 -0
- package/build/static/js/1650.f1b92788.chunk.js +1 -0
- package/build/static/js/1685.88b7ab0b.chunk.js +2 -0
- package/build/static/js/{4913.46398ccd.chunk.js.LICENSE.txt → 1685.88b7ab0b.chunk.js.LICENSE.txt} +0 -39
- package/build/static/js/1817.9b50f5c0.chunk.js +1 -0
- package/build/static/js/193.40d0d05c.chunk.js +2 -0
- package/build/static/js/{5282.b64428ad.chunk.js.LICENSE.txt → 193.40d0d05c.chunk.js.LICENSE.txt} +0 -13
- package/build/static/js/2286.35b2e00c.chunk.js +1 -0
- package/build/static/js/{9199.9bcb0c34.chunk.js → 2359.5ade9de5.chunk.js} +1 -1
- package/build/static/js/2740.2c988d32.chunk.js +1 -0
- package/build/static/js/2807.0b1fa7b9.chunk.js +2 -0
- package/build/static/js/2807.0b1fa7b9.chunk.js.LICENSE.txt +26 -0
- package/build/static/js/3040.74219412.chunk.js +2 -0
- package/build/static/js/3040.74219412.chunk.js.LICENSE.txt +13 -0
- package/build/static/js/3216.5624c45f.chunk.js +1 -0
- package/build/static/js/3534.737c782c.chunk.js +1 -0
- package/build/static/js/3586.9d8f60b8.chunk.js +1 -0
- package/build/static/js/3925.ebfebb8f.chunk.js +1 -0
- package/build/static/js/3990.13e3b5f9.chunk.js +2 -0
- package/build/static/js/3990.13e3b5f9.chunk.js.LICENSE.txt +11 -0
- package/build/static/js/4445.d862281c.chunk.js +2 -0
- package/build/static/js/4445.d862281c.chunk.js.LICENSE.txt +5 -0
- package/build/static/js/5036.6e492cbb.chunk.js +1 -0
- package/build/static/js/5117.312ef209.chunk.js +1 -0
- package/build/static/js/5555.a8af14d1.chunk.js +1 -0
- package/build/static/js/5745.bf8c01cf.chunk.js +1 -0
- package/build/static/js/5873.e467bcef.chunk.js +2 -0
- package/build/static/js/5889.34412de7.chunk.js +1 -0
- package/build/static/js/6189.f885b683.chunk.js +1 -0
- package/build/static/js/6204.8c70a893.chunk.js +1 -0
- package/build/static/js/6240.d3d3246d.chunk.js +1 -0
- package/build/static/js/6415.af50f416.chunk.js +1 -0
- package/build/static/js/6547.c3f83d14.chunk.js +1 -0
- package/build/static/js/6988.f2688151.chunk.js +2 -0
- package/build/static/js/7022.b5177082.chunk.js +1 -0
- package/build/static/js/7298.553f685e.chunk.js +1 -0
- package/build/static/js/7300.ce890d4c.chunk.js +1 -0
- package/build/static/js/7327.b55dff43.chunk.js +1 -0
- package/build/static/js/7370.e4682e66.chunk.js +1 -0
- package/build/static/js/7490.0cf3656a.chunk.js +1 -0
- package/build/static/js/7538.848f1d83.chunk.js +1 -0
- package/build/static/js/7551.a959f4e4.chunk.js +1 -0
- package/build/static/js/758.91967051.chunk.js +1 -0
- package/build/static/js/7618.3065c088.chunk.js +1 -0
- package/build/static/js/7786.0359b928.chunk.js +1 -0
- package/build/static/js/781.e53e07f7.chunk.js +2 -0
- package/build/static/js/8205.9c96ce17.chunk.js +1 -0
- package/build/static/js/8776.7037b197.chunk.js +1 -0
- package/build/static/js/8886.5f53cd93.chunk.js +1 -0
- package/build/static/js/91.8c18ac5b.chunk.js +1 -0
- package/build/static/js/9327.97924337.chunk.js +1 -0
- package/build/static/js/9371.52b0ce66.chunk.js +1 -0
- package/build/static/js/9564.78c3e30e.chunk.js +1 -0
- package/build/static/js/9933.ec8a3bc7.chunk.js +1 -0
- package/build/static/js/main.6af9b5f7.js +2 -0
- package/package.json +1 -1
- package/build/static/js/1056.2ac4ea07.chunk.js +0 -1
- package/build/static/js/135.65788394.chunk.js +0 -2
- package/build/static/js/1366.7919e57e.chunk.js +0 -2
- package/build/static/js/2082.e3d2c279.chunk.js +0 -1
- package/build/static/js/2878.9b638eb1.chunk.js +0 -1
- package/build/static/js/4263.8ef0b31e.chunk.js +0 -1
- package/build/static/js/4762.06913089.chunk.js +0 -1
- package/build/static/js/4913.46398ccd.chunk.js +0 -2
- package/build/static/js/5282.b64428ad.chunk.js +0 -2
- package/build/static/js/5546.cfef7052.chunk.js +0 -1
- package/build/static/js/6014.5642d8dc.chunk.js +0 -1
- package/build/static/js/6189.7015cb96.chunk.js +0 -1
- package/build/static/js/6738.fc26b204.chunk.js +0 -1
- package/build/static/js/6935.a04f526e.chunk.js +0 -2
- package/build/static/js/7298.d1f27013.chunk.js +0 -1
- package/build/static/js/7618.9f8daf72.chunk.js +0 -1
- package/build/static/js/7786.4c5c13d4.chunk.js +0 -1
- package/build/static/js/8597.6238aebb.chunk.js +0 -1
- package/build/static/js/8699.6a3f3447.chunk.js +0 -1
- package/build/static/js/9327.e9305607.chunk.js +0 -2
- package/build/static/js/9520.91605cbc.chunk.js +0 -1
- package/build/static/js/main.cf26988c.js +0 -2
- /package/build/static/css/{6014.f696fdbf.chunk.css → 1817.f696fdbf.chunk.css} +0 -0
- /package/build/static/css/{5282.5ade355d.chunk.css → 193.5ade355d.chunk.css} +0 -0
- /package/build/static/css/{135.cc1ab277.chunk.css → 6988.cc1ab277.chunk.css} +0 -0
- /package/build/static/js/{1366.7919e57e.chunk.js.LICENSE.txt → 1366.6358f647.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9327.e9305607.chunk.js.LICENSE.txt → 5873.e467bcef.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{135.65788394.chunk.js.LICENSE.txt → 6988.f2688151.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6935.a04f526e.chunk.js.LICENSE.txt → 781.e53e07f7.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.cf26988c.js.LICENSE.txt → main.6af9b5f7.js.LICENSE.txt} +0 -0
package/build/static/js/{4913.46398ccd.chunk.js.LICENSE.txt → 1685.88b7ab0b.chunk.js.LICENSE.txt}
RENAMED
|
@@ -153,42 +153,3 @@
|
|
|
153
153
|
* This source code is licensed under the MIT license found in the
|
|
154
154
|
* LICENSE file in the root directory of this source tree.
|
|
155
155
|
*/
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* (c) Iconify
|
|
159
|
-
*
|
|
160
|
-
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
161
|
-
* files at https://github.com/iconify/iconify
|
|
162
|
-
*
|
|
163
|
-
* Licensed under MIT.
|
|
164
|
-
*
|
|
165
|
-
* @license MIT
|
|
166
|
-
* @version 3.1.0
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
|
-
/** @license React v0.19.1
|
|
170
|
-
* scheduler.production.min.js
|
|
171
|
-
*
|
|
172
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the MIT license found in the
|
|
175
|
-
* LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/
|
|
177
|
-
|
|
178
|
-
/** @license React v16.14.0
|
|
179
|
-
* react-dom.production.min.js
|
|
180
|
-
*
|
|
181
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the MIT license found in the
|
|
184
|
-
* LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/
|
|
186
|
-
|
|
187
|
-
/** @license React v16.14.0
|
|
188
|
-
* react.production.min.js
|
|
189
|
-
*
|
|
190
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
191
|
-
*
|
|
192
|
-
* This source code is licensed under the MIT license found in the
|
|
193
|
-
* LICENSE file in the root directory of this source tree.
|
|
194
|
-
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1817],{24460:function(e,t,n){var r=n(93845);e.exports=function(e){return r(e.replace(/^[@./-]/,"").replace(/[@./_]/g,"-"))}},19310:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var r=s(n(55898)),o=s(n(54935)),i=n(38242),a=n(19933),l=s(n(40696)),u=n(96266),c=["blocklet"];function s(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e){var t=e.blocklet,n=m(e,c);return(0,u.jsx)(o.default,f(f({height:{xs:"calc(100vh - 444px)",sm:"calc(100vh - 508px)",md:"calc(100vh - 445px)"}},n),{},{children:(0,u.jsx)(a.LogTerminalGroup,{name:(0,i.getDisplayName)(t),logId:"blocklet-".concat(t.meta.did),initialData:['Tip: this tab will only show runtime logs. Please go to "Blocklet Server" to view other lifecycle logs of the blocklet (install/start/stop...)',"\r\n\r\n"],postpend:(0,u.jsx)(l.default,{id:t.meta.did,name:t.meta.name})})}))}b.propTypes={blocklet:r.default.object.isRequired}},91895:function(e,t,n){"use strict";var r=n(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=n(5057),a=(o=n(12726))&&o.__esModule?o:{default:o},l=n(99875);var u=function(){var e=(0,i.useState)(+new Date),t=r(e,2),n=t[0],o=t[1];return(0,a.default)((function(){o(+new Date)}),1e3),(0,l.formatTime)(n,"MMMM Do YYYY, h:mm:ss a")};t.default=u},40696:function(e,t,n){"use strict";var r=n(27609).default,o=n(91461).default,i=n(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=P;var a=n(5057),l=w(n(55898)),u=w(n(1577)),c=w(n(54935)),s=w(n(63878)),d=w(n(11302)),f=w(n(90211)),p=w(n(51280)),m=w(n(75790)),b=w(n(13714)),g=n(52118),v=w(n(99593)),y=w(n(24460)),h=w(n(75e3)),j=n(22324),x=n(96266);function w(e){return e&&e.__esModule?e:{default:e}}var O=[1,7];function P(e){var t=e.id,n=e.name,l=(0,g.useLocaleContext)().t,w=(0,j.useNodeContext)(),P=w.restApi,k=w.inService,S=(0,a.useState)(!1),D=i(S,2),_=D[0],E=D[1],C=(0,a.useState)(!1),M=i(C,2),T=M[0],N=M[1],z=(0,a.useState)(1),R=i(z,2),L=R[0],Y=R[1],I=function(){var e=o(r().mark((function e(){var o,i,a,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!T){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,N(!0),o=k?"":"/".concat(t),e.next=7,P.get("/download/log".concat(o,"?days=").concat(L),{responseType:"blob"});case 7:i=e.sent,a=URL.createObjectURL(i.data),(l=document.createElement("a")).href=a,l.setAttribute("download","".concat((0,y.default)(n||t),".").concat((0,u.default)().format("YYYYMMDDHHmmss"),".log.zip")),document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(a),N(!1),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(2),N(!1),h.default.error(e.t0.message);case 23:case"end":return e.stop()}}),e,null,[[2,19]])})));return function(){return e.apply(this,arguments)}}();return[(0,x.jsx)(c.default,{display:"flex",alignItems:"center",style:{gap:16},children:(0,x.jsxs)(b.default,{"data-cy":"download-logs",variant:"outlined",onClick:function(){return E(!0)},disabled:T,children:[T?(0,x.jsx)(m.default,{size:16}):(0,x.jsx)(s.default,{fontSize:"small",style:{transform:"translateY(2px)"}}),(0,x.jsx)(c.default,{ml:.5,children:l("common.download")})]})}),_&&(0,x.jsx)(v.default,{open:!0,onClose:function(){E(!1)},disableEscapeKeyDown:!0,title:l("common.download"),PaperProps:{style:{minHeight:"auto"}},actions:(0,x.jsxs)(b.default,{"data-cy":"download-logs",variant:"outlined",onClick:function(){return I()},disabled:T,children:[T&&(0,x.jsx)(m.default,{size:16}),(0,x.jsx)(c.default,{ml:.5,children:l("common.confirm")})]}),children:(0,x.jsx)(c.default,{mb:2,display:"flex",justifyContent:"center",children:(0,x.jsx)(d.default,{size:"small",fullWidth:!0,children:(0,x.jsx)(f.default,{value:L,onChange:function(e){Y(e.target.value)},children:O.map((function(e){return(0,x.jsx)(p.default,{value:e,children:l("log.lastDays.".concat(e))},e)}))})})})})]}P.propTypes={id:l.default.string.isRequired,name:l.default.string},P.defaultProps={name:""}},19933:function(e,t,n){"use strict";var r=n(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.LogTerminal=void 0,t.LogTerminalGroup=P;var o,i,a=n(5057),l=y(n(33518)),u=y(n(55898)),c=y(n(66816)),s=y(n(29379)),d=y(n(37154)),f=y(n(9746)),p=y(n(91895)),m=n(22324),b=n(96266),g=["name","logId","types","initialData","prepend","postpend"],v=["logFile"];function y(e){return e&&e.__esModule?e:{default:e}}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function P(e){var t=e.name,n=e.logId,o=e.types,i=e.initialData,l=e.prepend,u=e.postpend,f=O(e,g),p=(0,m.useNodeContext)().ws.useSubscription,v={info:"Info",error:"Error",access:"Access",stdout:"stdout",stderr:"stderr"},y=(0,d.default)((function(e){return e.breakpoints.down("md")})),h=(0,a.useState)(o[0]),j=r(h,2),w=j[0],P=j[1],D=(0,a.useState)(),_=r(D,2),E=_[0],C=_[1],M=(0,a.useRef)({});return(0,a.useEffect)((function(){o.forEach((function(e){var n=M.current[e];n&&(n.write("Collecting ".concat(e," logs for ").concat(t,"...")),n.write("\r\n\r\n"),i.forEach((function(e){return n.write(e)})))}))}),[]),p("log.".concat(n),(function(e){E||C(e.logFiles||{});var t=M.current[e.level];t&&(t.write(e.data.replace(/.\n/g,(function(e){return"\r\n"===e?e:"".concat(e[0],"\r\n\r\n")}))),t.write("\r\n\r\n"))}),[]),(0,b.jsxs)(k,x(x({},f),{},{children:[(0,b.jsxs)("div",{className:"log-terminal-group-head",children:[(0,b.jsxs)("div",{className:"log-terminal-group-head-start",children:[l,(0,b.jsx)(s.default,{variant:"outlined",size:y?"small":"medium",children:o.map((function(e){var t=e===w?{variant:"contained"}:{};return(0,b.jsx)(c.default,x(x({},t),{},{onClick:function(){return P(e)},children:v[e]}),e)}))})]}),(0,b.jsx)("div",{className:"log-terminal-group-head-end",children:u})]}),(0,b.jsx)("div",{className:"log-terminal-group-terminals",children:o.map((function(e){return(0,b.jsx)(S,{ref:function(t){M.current[e]=t},logFile:null===E||void 0===E?void 0:E[e],style:{visibility:e===w?"visible":"hidden"}},e)}))})]}))}P.propTypes={name:u.default.string.isRequired,logId:u.default.string.isRequired,types:u.default.arrayOf(u.default.string),initialData:u.default.arrayOf(u.default.string),prepend:u.default.node,postpend:u.default.node},P.defaultProps={types:["error","info","access","stdout","stderr"],initialData:[],prepend:null,postpend:null};var k=l.default.div(o||(o=h(["\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")})),S=(0,a.forwardRef)((function(e,t){var n=e.logFile,r=O(e,v);return(0,b.jsxs)(D,x(x({},r),{},{children:[(0,b.jsxs)("div",{className:"log-terminal-top",children:[(0,b.jsx)(p.default,{}),n&&(0,b.jsx)("span",{children:n})]}),(0,b.jsx)("div",{className:"log-terminal-container",style:{position:"relative"},children:(0,b.jsx)(f.default,{ref:t,style:{width:"100%",boxSizing:"border-box",height:"100%"},options:{theme:{background:"#2C313C",foreground:"#EEEEEE"}}})})]}))}));t.LogTerminal=S,S.propTypes={logFile:u.default.string},S.defaultProps={logFile:""};var D=l.default.div(i||(i=h(["\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"])))}}]);
|