@next-core/brick-container 2.66.4 → 2.66.7
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/CHANGELOG.md +27 -0
- package/dist/{dll.5a38c4e5.js → dll.485899c2.js} +2 -2
- package/dist/{dll.5a38c4e5.js.map → dll.485899c2.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.b604d7b6bfc7f081423a.js → main.1461f5d5a08f7d620746.js} +2 -2
- package/dist/{main.b604d7b6bfc7f081423a.js.map → main.1461f5d5a08f7d620746.js.map} +1 -1
- package/package.json +6 -6
- package/serve/getEnv.js +36 -24
- package/serve/getProxies.js +17 -1
- package/serve/serve.js +14 -2
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"><title>DevOps 管理专家</title><base href="<!--# echo var='base_href' default='/' -->"><link rel="shortcut icon" type="image/png" href="<!--# echo var='core_root' default='' -->assets/favicon.png"/><script>(!("documentMode" in document)&&CSS.supports("display","grid")&&window.customElements)||(location.href="<!--# echo var='base_href' default='/' -->browse-happy.html")</script><link href="<!--# echo var='core_root' default='' -->main.c5f148b707ad03655f8d.css" rel="stylesheet"></head><body><div id="root-layout"><nav id="menu-bar-mount-point" class="print-hide"></nav><div id="root-content"><header id="app-bar-mount-point" class="print-hide"></header><div id="main-mount-point"></div><div id="legacy-iframe-mount-point"></div></div><div id="loading-bar-mount-point"><div class="global-loading-bar initial-loading-bar"><div></div></div></div></div><div id="bg-mount-point"></div><div id="portal-mount-point"></div><script src="<!--# echo var='core_root' default='' -->dll.
|
|
1
|
+
<!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"><title>DevOps 管理专家</title><base href="<!--# echo var='base_href' default='/' -->"><link rel="shortcut icon" type="image/png" href="<!--# echo var='core_root' default='' -->assets/favicon.png"/><script>(!("documentMode" in document)&&CSS.supports("display","grid")&&window.customElements)||(location.href="<!--# echo var='base_href' default='/' -->browse-happy.html")</script><link href="<!--# echo var='core_root' default='' -->main.c5f148b707ad03655f8d.css" rel="stylesheet"></head><body><div id="root-layout"><nav id="menu-bar-mount-point" class="print-hide"></nav><div id="root-content"><header id="app-bar-mount-point" class="print-hide"></header><div id="main-mount-point"></div><div id="legacy-iframe-mount-point"></div></div><div id="loading-bar-mount-point"><div class="global-loading-bar initial-loading-bar"><div></div></div></div></div><div id="bg-mount-point"></div><div id="portal-mount-point"></div><script src="<!--# echo var='core_root' default='' -->dll.485899c2.js"></script><script src="<!--# echo var='core_root' default='' -->polyfill.b13b72c14b9fa94bbb38.js"></script><script src="<!--# echo var='core_root' default='' -->main.1461f5d5a08f7d620746.js"></script></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="GR0M")}({"1OyB":function(e,t,o){e.exports=o("XuQu")("1OyB")},"3tO9":function(e,t,o){e.exports=o("XuQu")("3tO9")},"9RIe":function(e,t,o){e.exports=o("XuQu")("9RIe")},"9kay":function(e,t,o){e.exports=o("XuQu")("9kay")},GR0M:function(e,t,o){"use strict";o.r(t);var n=o("yXPU"),r=o.n(n),i=o("3tO9"),a=o.n(i),u=o("wd/R"),s=o.n(u),c=(o("XDpg"),o("q1tI")),l=o.n(c),p=o("i8i4"),d=o.n(p),f=o("gdfu"),g=o("tYg3"),h=o("JxWY"),v=o("9RIe"),m=o("vA6H");f.message.config({top:40});var w=o("XzT5"),y=o("9kay"),S=o("1OyB"),k=o("vuIU"),b=[],x=b.forEach,O=b.slice;function I(e){return x.call(O.call(arguments,1),(function(t){if(t)for(var o in t)void 0===e[o]&&(e[o]=t[o])})),e}var R=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,E=function(e,t,o){var n=o||{};n.path=n.path||"/";var r=e+"="+encodeURIComponent(t);if(n.maxAge>0){var i=n.maxAge-0;if(isNaN(i))throw new Error("maxAge should be a Number");r+="; Max-Age="+Math.floor(i)}if(n.domain){if(!R.test(n.domain))throw new TypeError("option domain is invalid");r+="; Domain="+n.domain}if(n.path){if(!R.test(n.path))throw new TypeError("option path is invalid");r+="; Path="+n.path}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");r+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r},T=function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};o&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+60*o*1e3)),n&&(r.domain=n),document.cookie=E(e,encodeURIComponent(t),r)},L=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},A={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var o=L(e.lookupCookie);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&T(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},X={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var o=window.location.search.substring(1).split("&"),n=0;n<o.length;n++){var r=o[n].indexOf("=");if(r>0)o[n].substring(0,r)===e.lookupQuerystring&&(t=o[n].substring(r+1))}return t}},P=null,C=function(){if(null!==P)return P;try{P="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){P=!1}return P},D={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&C()){var o=window.localStorage.getItem(e.lookupLocalStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&C()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},j=null,_=function(){if(null!==j)return j;try{j="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){j=!1}return j},B={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&_()){var o=window.sessionStorage.getItem(e.lookupSessionStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&_()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},U={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var o=0;o<navigator.languages.length;o++)t.push(navigator.languages[o]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Q={name:"htmlTag",lookup:function(e){var t,o=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return o&&"function"==typeof o.getAttribute&&(t=o.getAttribute("lang")),t}},q={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(o instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof o[e.lookupFromPathIndex])return;t=o[e.lookupFromPathIndex].replace("/","")}else t=o[0].replace("/","")}return t}},F={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);o instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?o[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):o[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var M=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(S.default)(this,e),this.type="languageDetector",this.detectors={},this.init(t,o)}return Object(k.default)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=I(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(A),this.addDetector(X),this.addDetector(D),this.addDetector(B),this.addDetector(U),this.addDetector(Q),this.addDetector(q),this.addDetector(F)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var o=[];return e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(o=o.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var o=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){o.detectors[t]&&o.detectors[t].cacheUserLanguage(e,o.options)})))}}]),e}();M.type="languageDetector";var N;!function(e){e.BOOTSTRAP_ERROR="BOOTSTRAP_ERROR"}(N||(N={}));var z={[N.BOOTSTRAP_ERROR]:"Bootstrap Error"},H={[N.BOOTSTRAP_ERROR]:"启动错误"};w.default.on("languageChanged",(function(e){s.a.locale(e)})),w.default.use(M).use(y.initReactI18next).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{en:{"brick-container":z},zh:{"brick-container":H}}}),Object(g.initI18n)();var Y=w.default;Object(v.initializeLibrary)(),window.DLL_PATH={ace:"dll-of-ace.1d453681.js",d3:"dll-of-d3.1991969b.js",echarts:"dll-of-echarts.d885e687.js","editor-bricks-helper":"dll-of-editor-bricks-helper.2bb0f1ca.js","react-dnd":"dll-of-react-dnd.0ca00465.js"},window.BRICK_NEXT_VERSIONS={"brick-container":"2.66.4","brick-dll":"2.31.16","brick-kit":"2.117.2","brick-utils":"2.37.6"},window.BRICK_NEXT_FEATURES=["edit-evaluations-and-transformations-in-devtools"];var J,W=document.body,G=Object(g.createRuntime)(),K={menuBar:W.querySelector("#menu-bar-mount-point"),appBar:W.querySelector("#app-bar-mount-point"),loadingBar:W.querySelector("#loading-bar-mount-point"),main:W.querySelector("#main-mount-point"),bg:W.querySelector("#bg-mount-point"),portal:W.querySelector("#portal-mount-point")};if(!window.STANDALONE_MICRO_APPS){var V="".concat(G.getBasePath(),"api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat");J=m.apiAnalyzer.create({api:V})}h.http.interceptors.request.use((function(e){var t,o=new Headers((null===(t=e.options)||void 0===t?void 0:t.headers)||{});o.set("lang",Y.resolvedLanguage);var n=Object(g.getMockInfo)(e.url);return n&&(e.url=n.url,o.set("easyops-mock-id",n.mockId)),a()(a()({},e),{},{options:a()(a()({},e.options),{},{headers:o})})})),h.http.interceptors.request.use((function(e){var t,o;if(J){var{userInstanceId:n,username:r}=Object(g.getAuth)(),i=Date.now();e.meta={st:i,time:Math.round(i/1e3),uid:n,username:r}}return null!==(t=e.options)&&void 0!==t&&null!==(o=t.interceptorParams)&&void 0!==o&&o.ignoreLoadingBar||window.dispatchEvent(new CustomEvent("request.start")),e})),h.http.interceptors.response.use((function(e){var t,o;return window.dispatchEvent(new CustomEvent("request.end")),null===(t=J)||void 0===t||t.analyses(e),"response"===(null===(o=e.config.options)||void 0===o?void 0:o.observe)?e:e.data}),(function(e){var t;return null===(t=J)||void 0===t||t.analyses(e),window.dispatchEvent(new CustomEvent("request.end")),Promise.reject(e.error)}));var $,Z,ee="loading",te=!1;function oe(){return ne.apply(this,arguments)}function ne(){return(ne=r()((function*(){if(!te&&"ok"===ee&&$){te=!0;var e=$===location.origin||/^https?:\/\/localhost(?:$|:)/.test($);if(!e){var{allowedPreviewFromOrigins:t}=G.getMiscSettings();Array.isArray(t)&&(e=t.some(e=>e===$)),e||console.error("Preview is disallowed, from origin: ".concat($,", while allowing: ").concat(JSON.stringify(t)))}if(e){if(yield g.developHelper.loadDynamicBricksInBrickConf({brick:"next-previewer.preview-helper"}),customElements.get("next-previewer.preview-helper"))document.createElement("next-previewer.preview-helper").start($,Z)}}}))).apply(this,arguments)}if(window.parent){var re=function(){var e=r()((function*(e){var{data:t,origin:o}=e;t&&"preview-container"===t.sender&&"start-preview"===t.type&&(window.removeEventListener("message",re),$=o,Z=t.options,oe())}));return function(t){return e.apply(this,arguments)}}();window.addEventListener("message",re)}function ie(){return(ie=r()((function*(){try{yield G.bootstrap(K),ee="ok"}catch(e){ee="failed",console.error(e),document.body.classList.add("bootstrap-error","bars-hidden"),d.a.render(l.a.createElement(f.Result,{status:"error",title:Y.t("".concat("brick-container",":").concat(N.BOOTSTRAP_ERROR)),subTitle:Object(g.httpErrorToString)(e)}),K.main)}oe()}))).apply(this,arguments)}!function(){ie.apply(this,arguments)}()},JxWY:function(e,t,o){e.exports=o("XuQu")("JxWY")},XDpg:function(e,t,o){e.exports=o("XuQu")("XDpg")},XuQu:function(e,t){e.exports=dll},XzT5:function(e,t,o){e.exports=o("XuQu")("XzT5")},gdfu:function(e,t,o){e.exports=o("XuQu")("gdfu")},i8i4:function(e,t,o){e.exports=o("XuQu")("i8i4")},q1tI:function(e,t,o){e.exports=o("XuQu")("q1tI")},tYg3:function(e,t,o){e.exports=o("XuQu")("tYg3")},vA6H:function(e,t,o){e.exports=o("XuQu")("vA6H")},vuIU:function(e,t,o){e.exports=o("XuQu")("vuIU")},"wd/R":function(e,t,o){e.exports=o("XuQu")("wd/R")},yXPU:function(e,t,o){e.exports=o("XuQu")("yXPU")}});
|
|
2
|
-
//# sourceMappingURL=main.
|
|
1
|
+
!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="GR0M")}({"1OyB":function(e,t,o){e.exports=o("XuQu")("1OyB")},"3tO9":function(e,t,o){e.exports=o("XuQu")("3tO9")},"9RIe":function(e,t,o){e.exports=o("XuQu")("9RIe")},"9kay":function(e,t,o){e.exports=o("XuQu")("9kay")},GR0M:function(e,t,o){"use strict";o.r(t);var n=o("yXPU"),r=o.n(n),i=o("3tO9"),a=o.n(i),u=o("wd/R"),s=o.n(u),c=(o("XDpg"),o("q1tI")),l=o.n(c),p=o("i8i4"),d=o.n(p),f=o("gdfu"),g=o("tYg3"),h=o("JxWY"),v=o("9RIe"),m=o("vA6H");f.message.config({top:40});var w=o("XzT5"),y=o("9kay"),S=o("1OyB"),k=o("vuIU"),b=[],x=b.forEach,O=b.slice;function I(e){return x.call(O.call(arguments,1),(function(t){if(t)for(var o in t)void 0===e[o]&&(e[o]=t[o])})),e}var R=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,E=function(e,t,o){var n=o||{};n.path=n.path||"/";var r=e+"="+encodeURIComponent(t);if(n.maxAge>0){var i=n.maxAge-0;if(isNaN(i))throw new Error("maxAge should be a Number");r+="; Max-Age="+Math.floor(i)}if(n.domain){if(!R.test(n.domain))throw new TypeError("option domain is invalid");r+="; Domain="+n.domain}if(n.path){if(!R.test(n.path))throw new TypeError("option path is invalid");r+="; Path="+n.path}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");r+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r},T=function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};o&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+60*o*1e3)),n&&(r.domain=n),document.cookie=E(e,encodeURIComponent(t),r)},L=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},A={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var o=L(e.lookupCookie);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&T(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},X={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var o=window.location.search.substring(1).split("&"),n=0;n<o.length;n++){var r=o[n].indexOf("=");if(r>0)o[n].substring(0,r)===e.lookupQuerystring&&(t=o[n].substring(r+1))}return t}},P=null,C=function(){if(null!==P)return P;try{P="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){P=!1}return P},D={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&C()){var o=window.localStorage.getItem(e.lookupLocalStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&C()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},j=null,_=function(){if(null!==j)return j;try{j="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){j=!1}return j},B={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&_()){var o=window.sessionStorage.getItem(e.lookupSessionStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&_()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},U={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var o=0;o<navigator.languages.length;o++)t.push(navigator.languages[o]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Q={name:"htmlTag",lookup:function(e){var t,o=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return o&&"function"==typeof o.getAttribute&&(t=o.getAttribute("lang")),t}},q={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(o instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof o[e.lookupFromPathIndex])return;t=o[e.lookupFromPathIndex].replace("/","")}else t=o[0].replace("/","")}return t}},F={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);o instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?o[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):o[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var M=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(S.default)(this,e),this.type="languageDetector",this.detectors={},this.init(t,o)}return Object(k.default)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=I(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(A),this.addDetector(X),this.addDetector(D),this.addDetector(B),this.addDetector(U),this.addDetector(Q),this.addDetector(q),this.addDetector(F)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var o=[];return e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(o=o.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var o=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){o.detectors[t]&&o.detectors[t].cacheUserLanguage(e,o.options)})))}}]),e}();M.type="languageDetector";var N;!function(e){e.BOOTSTRAP_ERROR="BOOTSTRAP_ERROR"}(N||(N={}));var z={[N.BOOTSTRAP_ERROR]:"Bootstrap Error"},H={[N.BOOTSTRAP_ERROR]:"启动错误"};w.default.on("languageChanged",(function(e){s.a.locale(e)})),w.default.use(M).use(y.initReactI18next).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{en:{"brick-container":z},zh:{"brick-container":H}}}),Object(g.initI18n)();var Y=w.default;Object(v.initializeLibrary)(),window.DLL_PATH={ace:"dll-of-ace.1d453681.js",d3:"dll-of-d3.1991969b.js",echarts:"dll-of-echarts.d885e687.js","editor-bricks-helper":"dll-of-editor-bricks-helper.2bb0f1ca.js","react-dnd":"dll-of-react-dnd.0ca00465.js"},window.BRICK_NEXT_VERSIONS={"brick-container":"2.66.7","brick-dll":"2.31.19","brick-kit":"2.117.5","brick-utils":"2.37.6"},window.BRICK_NEXT_FEATURES=["edit-evaluations-and-transformations-in-devtools"];var J,W=document.body,G=Object(g.createRuntime)(),K={menuBar:W.querySelector("#menu-bar-mount-point"),appBar:W.querySelector("#app-bar-mount-point"),loadingBar:W.querySelector("#loading-bar-mount-point"),main:W.querySelector("#main-mount-point"),bg:W.querySelector("#bg-mount-point"),portal:W.querySelector("#portal-mount-point")};if(!window.STANDALONE_MICRO_APPS){var V="".concat(G.getBasePath(),"api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat");J=m.apiAnalyzer.create({api:V})}h.http.interceptors.request.use((function(e){var t,o=new Headers((null===(t=e.options)||void 0===t?void 0:t.headers)||{});o.set("lang",Y.resolvedLanguage);var n=Object(g.getMockInfo)(e.url);return n&&(e.url=n.url,o.set("easyops-mock-id",n.mockId)),a()(a()({},e),{},{options:a()(a()({},e.options),{},{headers:o})})})),h.http.interceptors.request.use((function(e){var t,o;if(J){var{userInstanceId:n,username:r}=Object(g.getAuth)(),i=Date.now();e.meta={st:i,time:Math.round(i/1e3),uid:n,username:r}}return null!==(t=e.options)&&void 0!==t&&null!==(o=t.interceptorParams)&&void 0!==o&&o.ignoreLoadingBar||window.dispatchEvent(new CustomEvent("request.start")),e})),h.http.interceptors.response.use((function(e){var t,o;return window.dispatchEvent(new CustomEvent("request.end")),null===(t=J)||void 0===t||t.analyses(e),"response"===(null===(o=e.config.options)||void 0===o?void 0:o.observe)?e:e.data}),(function(e){var t;return null===(t=J)||void 0===t||t.analyses(e),window.dispatchEvent(new CustomEvent("request.end")),Promise.reject(e.error)}));var $,Z,ee="loading",te=!1;function oe(){return ne.apply(this,arguments)}function ne(){return(ne=r()((function*(){if(!te&&"ok"===ee&&$){te=!0;var e=$===location.origin||/^https?:\/\/localhost(?:$|:)/.test($);if(!e){var{allowedPreviewFromOrigins:t}=G.getMiscSettings();Array.isArray(t)&&(e=t.some(e=>e===$)),e||console.error("Preview is disallowed, from origin: ".concat($,", while allowing: ").concat(JSON.stringify(t)))}if(e){if(yield g.developHelper.loadDynamicBricksInBrickConf({brick:"next-previewer.preview-helper"}),customElements.get("next-previewer.preview-helper"))document.createElement("next-previewer.preview-helper").start($,Z)}}}))).apply(this,arguments)}if(window.parent){var re=function(){var e=r()((function*(e){var{data:t,origin:o}=e;t&&"preview-container"===t.sender&&"start-preview"===t.type&&(window.removeEventListener("message",re),$=o,Z=t.options,oe())}));return function(t){return e.apply(this,arguments)}}();window.addEventListener("message",re)}function ie(){return(ie=r()((function*(){try{yield G.bootstrap(K),ee="ok"}catch(e){ee="failed",console.error(e),document.body.classList.add("bootstrap-error","bars-hidden"),d.a.render(l.a.createElement(f.Result,{status:"error",title:Y.t("".concat("brick-container",":").concat(N.BOOTSTRAP_ERROR)),subTitle:Object(g.httpErrorToString)(e)}),K.main)}oe()}))).apply(this,arguments)}!function(){ie.apply(this,arguments)}()},JxWY:function(e,t,o){e.exports=o("XuQu")("JxWY")},XDpg:function(e,t,o){e.exports=o("XuQu")("XDpg")},XuQu:function(e,t){e.exports=dll},XzT5:function(e,t,o){e.exports=o("XuQu")("XzT5")},gdfu:function(e,t,o){e.exports=o("XuQu")("gdfu")},i8i4:function(e,t,o){e.exports=o("XuQu")("i8i4")},q1tI:function(e,t,o){e.exports=o("XuQu")("q1tI")},tYg3:function(e,t,o){e.exports=o("XuQu")("tYg3")},vA6H:function(e,t,o){e.exports=o("XuQu")("vA6H")},vuIU:function(e,t,o){e.exports=o("XuQu")("vuIU")},"wd/R":function(e,t,o){e.exports=o("XuQu")("wd/R")},yXPU:function(e,t,o){e.exports=o("XuQu")("yXPU")}});
|
|
2
|
+
//# sourceMappingURL=main.1461f5d5a08f7d620746.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/objectSpread2.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/fontawesome-library/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/react-i18next/dist/es/index.js from dll-reference dll","webpack:///./packages/brick-container/src/antd.ts","webpack:///./node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js","webpack:///./packages/brick-container/src/i18n/constants.ts","webpack:///./packages/brick-container/src/i18n/locales/en.ts","webpack:///./packages/brick-container/src/i18n/locales/zh.ts","webpack:///./packages/brick-container/src/i18n/index.ts","webpack:///./packages/brick-container/src/index.tsx","webpack:///delegated ./node_modules/@next-core/brick-http/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/moment/locale/zh-cn.js from dll-reference dll","webpack:///external \"dll\"","webpack:///delegated ./node_modules/i18next/dist/esm/i18next.js from dll-reference dll","webpack:///delegated ./node_modules/antd/es/index.js from dll-reference dll","webpack:///delegated ./node_modules/react-dom/index.js from dll-reference dll","webpack:///delegated ./node_modules/react/index.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/brick-kit/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/easyops-analytics/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/createClass.js from dll-reference dll","webpack:///delegated ./node_modules/moment/moment.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/asyncToGenerator.js from dll-reference dll"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","message","config","top","arr","each","forEach","slice","defaults","obj","arguments","source","prop","undefined","fieldContentRegExp","serializeCookie","val","options","opt","path","str","encodeURIComponent","maxAge","isNaN","Error","Math","floor","domain","test","TypeError","expires","toUTCString","httpOnly","secure","sameSite","toLowerCase","cookie","minutes","cookieOptions","length","Date","setTime","getTime","document","nameEQ","ca","split","charAt","substring","indexOf","cookie$1","lookup","found","lookupCookie","cacheUserLanguage","lng","cookieMinutes","cookieDomain","querystring","window","params","location","search","pos","lookupQuerystring","hasLocalStorageSupport","localStorageAvailable","localStorage","setItem","removeItem","e","lookupLocalStorage","getItem","hasSessionStorageSupport","sessionStorageAvailable","sessionStorage","lookupSessionStorage","navigator$1","navigator","languages","push","userLanguage","language","htmlTag","documentElement","getAttribute","pathname","match","Array","lookupFromPathIndex","replace","subdomain","href","lookupFromSubdomainIndex","Browser","services","this","type","detectors","init","i18nOptions","order","caches","excludeCacheFor","lookupFromUrlIndex","addDetector","detector","detectionOrder","_this","detected","detectorName","concat","languageUtils","getBestMatchFromCodes","_this2","cacheName","K","locale","BOOTSTRAP_ERROR","i18n","on","moment","use","LanguageDetector","initReactI18next","fallbackLng","debug","process","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","en","zh","initI18n","initializeLibrary","DLL_PATH","BRICK_NEXT_VERSIONS","BRICK_NEXT_FEATURES","analyzer","root","body","runtime","createRuntime","mountPoints","menuBar","querySelector","appBar","loadingBar","main","bg","portal","STANDALONE_MICRO_APPS","api","getBasePath","apiAnalyzer","http","interceptors","request","headers","Headers","set","resolvedLanguage","mockInfo","getMockInfo","url","mockId","userInstanceId","uid","username","getAuth","date","now","meta","st","time","round","interceptorParams","ignoreLoadingBar","dispatchEvent","CustomEvent","response","analyses","observe","data","error","Promise","reject","previewFromOrigin","previewOptions","bootstrapStatus","previewStarted","startPreview","previewAllowed","origin","allowedPreviewFromOrigins","getMiscSettings","isArray","some","console","JSON","stringify","developHelper","loadDynamicBricksInBrickConf","brick","customElements","createElement","start","parent","listener","sender","removeEventListener","addEventListener","bootstrap","classList","add","ReactDOM","render","status","title","subTitle","httpErrorToString","dll"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,O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E9B8E,EAAYK,MAIhB2C,S,2DAGFqB,I,qBChNAzP,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,mBCA/CG,EAAOD,QAAUmQ,K,qBCAjBlQ,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,uBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B","file":"main.b604d7b6bfc7f081423a.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"GR0M\");\n","module.exports = (__webpack_require__(\"XuQu\"))(\"1OyB\");","module.exports = (__webpack_require__(\"XuQu\"))(\"3tO9\");","module.exports = (__webpack_require__(\"XuQu\"))(\"9RIe\");","module.exports = (__webpack_require__(\"XuQu\"))(\"9kay\");","// antd component global configuration\nimport { message } from \"antd\";\n\nmessage.config({\n top: 40\n});\n","import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\n\nvar arr = [];\nvar each = arr.forEach;\nvar slice = arr.slice;\nfunction defaults(obj) {\n each.call(slice.call(arguments, 1), function (source) {\n if (source) {\n for (var prop in source) {\n if (obj[prop] === undefined) obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\n\n// eslint-disable-next-line no-control-regex\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\nvar serializeCookie = function serializeCookie(name, val, options) {\n var opt = options || {};\n opt.path = opt.path || '/';\n var value = encodeURIComponent(val);\n var str = name + '=' + value;\n\n if (opt.maxAge > 0) {\n var maxAge = opt.maxAge - 0;\n if (isNaN(maxAge)) throw new Error('maxAge should be a Number');\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) str += '; HttpOnly';\n if (opt.secure) str += '; Secure';\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n\n case 'lax':\n str += '; SameSite=Lax';\n break;\n\n case 'strict':\n str += '; SameSite=Strict';\n break;\n\n case 'none':\n str += '; SameSite=None';\n break;\n\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n};\n\nvar cookie = {\n create: function create(name, value, minutes, domain) {\n var cookieOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n path: '/',\n sameSite: 'strict'\n };\n\n if (minutes) {\n cookieOptions.expires = new Date();\n cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1000);\n }\n\n if (domain) cookieOptions.domain = domain;\n document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);\n },\n read: function read(name) {\n var nameEQ = name + '=';\n var ca = document.cookie.split(';');\n\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n\n while (c.charAt(0) === ' ') {\n c = c.substring(1, c.length);\n }\n\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n\n return null;\n },\n remove: function remove(name) {\n this.create(name, '', -1);\n }\n};\nvar cookie$1 = {\n name: 'cookie',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupCookie && typeof document !== 'undefined') {\n var c = cookie.read(options.lookupCookie);\n if (c) found = c;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupCookie && typeof document !== 'undefined') {\n cookie.create(options.lookupCookie, lng, options.cookieMinutes, options.cookieDomain, options.cookieOptions);\n }\n }\n};\n\nvar querystring = {\n name: 'querystring',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var query = window.location.search.substring(1);\n var params = query.split('&');\n\n for (var i = 0; i < params.length; i++) {\n var pos = params[i].indexOf('=');\n\n if (pos > 0) {\n var key = params[i].substring(0, pos);\n\n if (key === options.lookupQuerystring) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n\n return found;\n }\n};\n\nvar hasLocalStorageSupport = null;\n\nvar localStorageAvailable = function localStorageAvailable() {\n if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;\n\n try {\n hasLocalStorageSupport = window !== 'undefined' && window.localStorage !== null;\n var testKey = 'i18next.translate.boo';\n window.localStorage.setItem(testKey, 'foo');\n window.localStorage.removeItem(testKey);\n } catch (e) {\n hasLocalStorageSupport = false;\n }\n\n return hasLocalStorageSupport;\n};\n\nvar localStorage = {\n name: 'localStorage',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupLocalStorage && localStorageAvailable()) {\n var lng = window.localStorage.getItem(options.lookupLocalStorage);\n if (lng) found = lng;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupLocalStorage && localStorageAvailable()) {\n window.localStorage.setItem(options.lookupLocalStorage, lng);\n }\n }\n};\n\nvar hasSessionStorageSupport = null;\n\nvar sessionStorageAvailable = function sessionStorageAvailable() {\n if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;\n\n try {\n hasSessionStorageSupport = window !== 'undefined' && window.sessionStorage !== null;\n var testKey = 'i18next.translate.boo';\n window.sessionStorage.setItem(testKey, 'foo');\n window.sessionStorage.removeItem(testKey);\n } catch (e) {\n hasSessionStorageSupport = false;\n }\n\n return hasSessionStorageSupport;\n};\n\nvar sessionStorage = {\n name: 'sessionStorage',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupSessionStorage && sessionStorageAvailable()) {\n var lng = window.sessionStorage.getItem(options.lookupSessionStorage);\n if (lng) found = lng;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupSessionStorage && sessionStorageAvailable()) {\n window.sessionStorage.setItem(options.lookupSessionStorage, lng);\n }\n }\n};\n\nvar navigator$1 = {\n name: 'navigator',\n lookup: function lookup(options) {\n var found = [];\n\n if (typeof navigator !== 'undefined') {\n if (navigator.languages) {\n // chrome only; not an array, so can't use .push.apply instead of iterating\n for (var i = 0; i < navigator.languages.length; i++) {\n found.push(navigator.languages[i]);\n }\n }\n\n if (navigator.userLanguage) {\n found.push(navigator.userLanguage);\n }\n\n if (navigator.language) {\n found.push(navigator.language);\n }\n }\n\n return found.length > 0 ? found : undefined;\n }\n};\n\nvar htmlTag = {\n name: 'htmlTag',\n lookup: function lookup(options) {\n var found;\n var htmlTag = options.htmlTag || (typeof document !== 'undefined' ? document.documentElement : null);\n\n if (htmlTag && typeof htmlTag.getAttribute === 'function') {\n found = htmlTag.getAttribute('lang');\n }\n\n return found;\n }\n};\n\nvar path = {\n name: 'path',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var language = window.location.pathname.match(/\\/([a-zA-Z-]*)/g);\n\n if (language instanceof Array) {\n if (typeof options.lookupFromPathIndex === 'number') {\n if (typeof language[options.lookupFromPathIndex] !== 'string') {\n return undefined;\n }\n\n found = language[options.lookupFromPathIndex].replace('/', '');\n } else {\n found = language[0].replace('/', '');\n }\n }\n }\n\n return found;\n }\n};\n\nvar subdomain = {\n name: 'subdomain',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var language = window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);\n\n if (language instanceof Array) {\n if (typeof options.lookupFromSubdomainIndex === 'number') {\n found = language[options.lookupFromSubdomainIndex].replace('http://', '').replace('https://', '').replace('.', '');\n } else {\n found = language[0].replace('http://', '').replace('https://', '').replace('.', '');\n }\n }\n }\n\n return found;\n }\n};\n\nfunction getDefaults() {\n return {\n order: ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'],\n lookupQuerystring: 'lng',\n lookupCookie: 'i18next',\n lookupLocalStorage: 'i18nextLng',\n lookupSessionStorage: 'i18nextLng',\n // cache user language\n caches: ['localStorage'],\n excludeCacheFor: ['cimode'] //cookieMinutes: 10,\n //cookieDomain: 'myDomain'\n\n };\n}\n\nvar Browser = /*#__PURE__*/function () {\n function Browser(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, Browser);\n\n this.type = 'languageDetector';\n this.detectors = {};\n this.init(services, options);\n }\n\n _createClass(Browser, [{\n key: \"init\",\n value: function init(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var i18nOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.services = services;\n this.options = defaults(options, this.options || {}, getDefaults()); // backwards compatibility\n\n if (this.options.lookupFromUrlIndex) this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;\n this.i18nOptions = i18nOptions;\n this.addDetector(cookie$1);\n this.addDetector(querystring);\n this.addDetector(localStorage);\n this.addDetector(sessionStorage);\n this.addDetector(navigator$1);\n this.addDetector(htmlTag);\n this.addDetector(path);\n this.addDetector(subdomain);\n }\n }, {\n key: \"addDetector\",\n value: function addDetector(detector) {\n this.detectors[detector.name] = detector;\n }\n }, {\n key: \"detect\",\n value: function detect(detectionOrder) {\n var _this = this;\n\n if (!detectionOrder) detectionOrder = this.options.order;\n var detected = [];\n detectionOrder.forEach(function (detectorName) {\n if (_this.detectors[detectorName]) {\n var lookup = _this.detectors[detectorName].lookup(_this.options);\n\n if (lookup && typeof lookup === 'string') lookup = [lookup];\n if (lookup) detected = detected.concat(lookup);\n }\n });\n if (this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0\n\n return detected.length > 0 ? detected[0] : null; // a little backward compatibility\n }\n }, {\n key: \"cacheUserLanguage\",\n value: function cacheUserLanguage(lng, caches) {\n var _this2 = this;\n\n if (!caches) caches = this.options.caches;\n if (!caches) return;\n if (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(lng) > -1) return;\n caches.forEach(function (cacheName) {\n if (_this2.detectors[cacheName]) _this2.detectors[cacheName].cacheUserLanguage(lng, _this2.options);\n });\n }\n }]);\n\n return Browser;\n}();\n\nBrowser.type = 'languageDetector';\n\nexport { Browser as default };\n","export const NS_BRICK_CONTAINER = \"brick-container\";\n\nexport enum K {\n BOOTSTRAP_ERROR = \"BOOTSTRAP_ERROR\",\n}\n\nexport type Locale = { [key in K]: string };\n","import { Locale, K } from \"../constants\";\n\nconst locale: Locale = {\n [K.BOOTSTRAP_ERROR]: \"Bootstrap Error\",\n};\n\nexport default locale;\n","import { Locale, K } from \"../constants\";\n\nconst locale: Locale = {\n [K.BOOTSTRAP_ERROR]: \"启动错误\",\n};\n\nexport default locale;\n","import i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport moment from \"moment\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nimport { initI18n } from \"@next-core/brick-kit\";\n\nimport { NS_BRICK_CONTAINER } from \"./constants\";\nimport en from \"./locales/en\";\nimport zh from \"./locales/zh\";\n\n// I18next is synchronously initialized now,\n// so we listen on language change before initialization.\ni18n.on(\"languageChanged\", function (lng) {\n moment.locale(lng);\n});\n\ni18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(LanguageDetector)\n .use(initReactI18next)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n /*global process*/\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false, // not needed for react as it escapes by default\n },\n react: {\n useSuspense: false,\n },\n compatibilityJSON: \"v3\",\n resources: {\n en: {\n [NS_BRICK_CONTAINER]: en,\n },\n zh: {\n [NS_BRICK_CONTAINER]: zh,\n },\n },\n });\n\ninitI18n();\n\nexport default i18n;\n","import \"moment\";\nimport \"moment/locale/zh-cn\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Result } from \"antd\";\nimport {\n createRuntime,\n getAuth,\n httpErrorToString,\n getMockInfo,\n developHelper,\n} from \"@next-core/brick-kit\";\nimport {\n http,\n HttpRequestConfig,\n HttpResponse,\n HttpError,\n} from \"@next-core/brick-http\";\nimport { initializeLibrary } from \"@next-core/fontawesome-library\";\nimport { apiAnalyzer } from \"@next-core/easyops-analytics\";\nimport \"./antd\";\nimport \"./styles/theme/index.css\";\nimport \"./styles/variables.css\";\nimport \"./styles/business-variables.css\";\nimport \"./styles/editor-bricks-variables.css\";\nimport \"./styles/antd.less\";\nimport \"./styles/antd-compatible.less\";\nimport \"./styles/default.css\";\nimport \"@next-core/brick-icons/dist/styles/index.css\";\nimport i18n from \"./i18n\";\nimport { K, NS_BRICK_CONTAINER } from \"./i18n/constants\";\n\ninitializeLibrary();\n\n// These constants bellow are defined by `webpack.DefinePlugin`.\n// eslint-disable-next-line\n// @ts-ignore\nwindow.DLL_PATH = DLL_PATH;\n// eslint-disable-next-line\n// @ts-ignore\nwindow.BRICK_NEXT_VERSIONS = BRICK_NEXT_VERSIONS;\n// eslint-disable-next-line\n// @ts-ignore\nwindow.BRICK_NEXT_FEATURES = BRICK_NEXT_FEATURES;\n\nconst root = document.body;\n\nconst runtime = createRuntime();\n\nconst mountPoints = {\n menuBar: root.querySelector<HTMLElement>(\"#menu-bar-mount-point\"),\n appBar: root.querySelector<HTMLElement>(\"#app-bar-mount-point\"),\n loadingBar: root.querySelector<HTMLElement>(\"#loading-bar-mount-point\"),\n main: root.querySelector<HTMLElement>(\"#main-mount-point\"),\n bg: root.querySelector<HTMLElement>(\"#bg-mount-point\"),\n portal: root.querySelector<HTMLElement>(\"#portal-mount-point\"),\n};\n\nlet analyzer: ReturnType<typeof apiAnalyzer.create>;\n\n// Disable API stats for standalone micro-apps.\nif (!window.STANDALONE_MICRO_APPS) {\n const api = `${runtime.getBasePath()}api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat`;\n analyzer = apiAnalyzer.create({\n api,\n });\n}\n\nhttp.interceptors.request.use(function (config: HttpRequestConfig) {\n const headers = new Headers(config.options?.headers || {});\n headers.set(\"lang\", i18n.resolvedLanguage);\n const mockInfo = getMockInfo(config.url);\n if (mockInfo) {\n config.url = mockInfo.url;\n headers.set(\"easyops-mock-id\", mockInfo.mockId);\n }\n return {\n ...config,\n options: {\n ...config.options,\n headers,\n },\n };\n});\n\nhttp.interceptors.request.use(function (config: HttpRequestConfig) {\n if (analyzer) {\n const { userInstanceId: uid, username } = getAuth();\n const date = Date.now();\n config.meta = {\n st: date,\n time: Math.round(date / 1000),\n uid,\n username,\n };\n }\n if (!config.options?.interceptorParams?.ignoreLoadingBar) {\n window.dispatchEvent(new CustomEvent(\"request.start\"));\n }\n return config;\n});\n\nhttp.interceptors.response.use(\n function (response: HttpResponse) {\n window.dispatchEvent(new CustomEvent(\"request.end\"));\n analyzer?.analyses(response);\n return response.config.options?.observe === \"response\"\n ? response\n : response.data;\n },\n function (error: HttpError) {\n analyzer?.analyses(error);\n window.dispatchEvent(new CustomEvent(\"request.end\"));\n return Promise.reject(error.error);\n }\n);\n\nlet bootstrapStatus: \"loading\" | \"ok\" | \"failed\" = \"loading\";\nlet previewStarted = false;\nlet previewFromOrigin: string;\nlet previewOptions: PreviewStartOptions;\n\nasync function startPreview(): Promise<void> {\n // Start preview once bootstrap is ok and preview message has also been arrived.\n if (previewStarted || bootstrapStatus !== \"ok\" || !previewFromOrigin) {\n return;\n }\n previewStarted = true;\n // Make sure preview from the expected origins.\n let previewAllowed =\n previewFromOrigin === location.origin ||\n /^https?:\\/\\/localhost(?:$|:)/.test(previewFromOrigin);\n if (!previewAllowed) {\n const { allowedPreviewFromOrigins } = runtime.getMiscSettings() as {\n allowedPreviewFromOrigins?: string[];\n };\n if (Array.isArray(allowedPreviewFromOrigins)) {\n previewAllowed = allowedPreviewFromOrigins.some(\n (origin) => origin === previewFromOrigin\n );\n }\n if (!previewAllowed) {\n // eslint-disable-next-line\n console.error(\n `Preview is disallowed, from origin: ${previewFromOrigin}, while allowing: ${JSON.stringify(\n allowedPreviewFromOrigins\n )}`\n );\n }\n }\n if (previewAllowed) {\n const helperBrickName = \"next-previewer.preview-helper\";\n await developHelper.loadDynamicBricksInBrickConf({\n brick: helperBrickName,\n });\n if (customElements.get(helperBrickName)) {\n const helper = document.createElement(\n helperBrickName\n ) as unknown as PreviewHelperBrick;\n helper.start(previewFromOrigin, previewOptions);\n }\n }\n}\n\nif (window.parent) {\n const listener = async ({\n data,\n origin,\n }: MessageEvent<PreviewMessageContainerStartPreview>): Promise<void> => {\n if (\n data &&\n data.sender === \"preview-container\" &&\n data.type === \"start-preview\"\n ) {\n window.removeEventListener(\"message\", listener);\n previewFromOrigin = origin;\n previewOptions = data.options;\n startPreview();\n }\n };\n window.addEventListener(\"message\", listener);\n}\n\nasync function bootstrap(): Promise<void> {\n try {\n await runtime.bootstrap(mountPoints);\n bootstrapStatus = \"ok\";\n } catch (e) {\n bootstrapStatus = \"failed\";\n // eslint-disable-next-line no-console\n console.error(e);\n\n // `.bootstrap-error` makes loading-bar invisible.\n document.body.classList.add(\"bootstrap-error\", \"bars-hidden\");\n\n ReactDOM.render(\n <Result\n status=\"error\"\n title={i18n.t(`${NS_BRICK_CONTAINER}:${K.BOOTSTRAP_ERROR}`)}\n subTitle={httpErrorToString(e)}\n />,\n mountPoints.main\n );\n }\n\n startPreview();\n}\n\nbootstrap();\n\nexport interface PreviewHelperBrick {\n start(previewFromOrigin: string, options?: PreviewStartOptions): void;\n}\n\nexport interface PreviewMessageContainerStartPreview {\n sender: \"preview-container\";\n type: \"start-preview\";\n options?: PreviewStartOptions;\n}\n\nexport interface PreviewStartOptions {\n appId: string;\n templateId: string;\n settings?: {\n properties?: Record<string, unknown>;\n };\n}\n","module.exports = (__webpack_require__(\"XuQu\"))(\"JxWY\");","module.exports = (__webpack_require__(\"XuQu\"))(\"XDpg\");","module.exports = dll;","module.exports = (__webpack_require__(\"XuQu\"))(\"XzT5\");","module.exports = (__webpack_require__(\"XuQu\"))(\"gdfu\");","module.exports = (__webpack_require__(\"XuQu\"))(\"i8i4\");","module.exports = (__webpack_require__(\"XuQu\"))(\"q1tI\");","module.exports = (__webpack_require__(\"XuQu\"))(\"tYg3\");","module.exports = (__webpack_require__(\"XuQu\"))(\"vA6H\");","module.exports = (__webpack_require__(\"XuQu\"))(\"vuIU\");","module.exports = (__webpack_require__(\"XuQu\"))(\"wd/R\");","module.exports = (__webpack_require__(\"XuQu\"))(\"yXPU\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/objectSpread2.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/fontawesome-library/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/react-i18next/dist/es/index.js from dll-reference dll","webpack:///./packages/brick-container/src/antd.ts","webpack:///./node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js","webpack:///./packages/brick-container/src/i18n/constants.ts","webpack:///./packages/brick-container/src/i18n/locales/en.ts","webpack:///./packages/brick-container/src/i18n/locales/zh.ts","webpack:///./packages/brick-container/src/i18n/index.ts","webpack:///./packages/brick-container/src/index.tsx","webpack:///delegated ./node_modules/@next-core/brick-http/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/moment/locale/zh-cn.js from dll-reference dll","webpack:///external \"dll\"","webpack:///delegated ./node_modules/i18next/dist/esm/i18next.js from dll-reference dll","webpack:///delegated ./node_modules/antd/es/index.js from dll-reference dll","webpack:///delegated ./node_modules/react-dom/index.js from dll-reference dll","webpack:///delegated ./node_modules/react/index.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/brick-kit/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/easyops-analytics/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/createClass.js from dll-reference dll","webpack:///delegated ./node_modules/moment/moment.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/asyncToGenerator.js from dll-reference dll"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","message","config","top","arr","each","forEach","slice","defaults","obj","arguments","source","prop","undefined","fieldContentRegExp","serializeCookie","val","options","opt","path","str","encodeURIComponent","maxAge","isNaN","Error","Math","floor","domain","test","TypeError","expires","toUTCString","httpOnly","secure","sameSite","toLowerCase","cookie","minutes","cookieOptions","length","Date","setTime","getTime","document","nameEQ","ca","split","charAt","substring","indexOf","cookie$1","lookup","found","lookupCookie","cacheUserLanguage","lng","cookieMinutes","cookieDomain","querystring","window","params","location","search","pos","lookupQuerystring","hasLocalStorageSupport","localStorageAvailable","localStorage","setItem","removeItem","e","lookupLocalStorage","getItem","hasSessionStorageSupport","sessionStorageAvailable","sessionStorage","lookupSessionStorage","navigator$1","navigator","languages","push","userLanguage","language","htmlTag","documentElement","getAttribute","pathname","match","Array","lookupFromPathIndex","replace","subdomain","href","lookupFromSubdomainIndex","Browser","services","this","type","detectors","init","i18nOptions","order","caches","excludeCacheFor","lookupFromUrlIndex","addDetector","detector","detectionOrder","_this","detected","detectorName","concat","languageUtils","getBestMatchFromCodes","_this2","cacheName","K","locale","BOOTSTRAP_ERROR","i18n","on","moment","use","LanguageDetector","initReactI18next","fallbackLng","debug","process","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","en","zh","initI18n","initializeLibrary","DLL_PATH","BRICK_NEXT_VERSIONS","BRICK_NEXT_FEATURES","analyzer","root","body","runtime","createRuntime","mountPoints","menuBar","querySelector","appBar","loadingBar","main","bg","portal","STANDALONE_MICRO_APPS","api","getBasePath","apiAnalyzer","http","interceptors","request","headers","Headers","set","resolvedLanguage","mockInfo","getMockInfo","url","mockId","userInstanceId","uid","username","getAuth","date","now","meta","st","time","round","interceptorParams","ignoreLoadingBar","dispatchEvent","CustomEvent","response","analyses","observe","data","error","Promise","reject","previewFromOrigin","previewOptions","bootstrapStatus","previewStarted","startPreview","previewAllowed","origin","allowedPreviewFromOrigins","getMiscSettings","isArray","some","console","JSON","stringify","developHelper","loadDynamicBricksInBrickConf","brick","customElements","createElement","start","parent","listener","sender","removeEventListener","addEventListener","bootstrap","classList","add","ReactDOM","render","status","title","subTitle","httpErrorToString","dll"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAA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zB,EADsB,OAEtBU,GACsE,EAEpEV,GACgB,sBAAhBA,EAAK0B,QACS,kBAAd1B,EAAK3F,OAELtC,OAAO4J,oBAAoB,UAAWF,IACtCrB,EAAoBM,EACpBL,EAAiBL,EAAK3K,QACtBmL,SAZU,sDAedzI,OAAO6J,iBAAiB,UAAWH,I,6BAGrC,YACE,UACQnE,EAAQuE,UAAUrE,GACxB8C,GAAkB,KAClB,MAAO5H,GACP4H,GAAkB,SAElBS,QAAQd,MAAMvH,GAGd3B,SAASsG,KAAKyE,UAAUC,IAAI,kBAAmB,eAE/CC,IAASC,OACP,kBAAC,SAAD,CACEC,OAAO,QACPC,MAAOxG,EAAKpI,EAAL,UJtMmB,kBIsMnB,YAAgCiI,EAAEE,kBACzC0G,SAAUC,4BAAkB3J,KAE9B8E,EAAYK,MAIhB2C,S,2DAGFqB,I,qBChNAzP,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,mBCA/CG,EAAOD,QAAUmQ,K,qBCAjBlQ,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,uBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B","file":"main.1461f5d5a08f7d620746.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"GR0M\");\n","module.exports = (__webpack_require__(\"XuQu\"))(\"1OyB\");","module.exports = (__webpack_require__(\"XuQu\"))(\"3tO9\");","module.exports = (__webpack_require__(\"XuQu\"))(\"9RIe\");","module.exports = (__webpack_require__(\"XuQu\"))(\"9kay\");","// antd component global configuration\nimport { message } from \"antd\";\n\nmessage.config({\n top: 40\n});\n","import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\n\nvar arr = [];\nvar each = arr.forEach;\nvar slice = arr.slice;\nfunction defaults(obj) {\n each.call(slice.call(arguments, 1), function (source) {\n if (source) {\n for (var prop in source) {\n if (obj[prop] === undefined) obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\n\n// eslint-disable-next-line no-control-regex\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\nvar serializeCookie = function serializeCookie(name, val, options) {\n var opt = options || {};\n opt.path = opt.path || '/';\n var value = encodeURIComponent(val);\n var str = name + '=' + value;\n\n if (opt.maxAge > 0) {\n var maxAge = opt.maxAge - 0;\n if (isNaN(maxAge)) throw new Error('maxAge should be a Number');\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) str += '; HttpOnly';\n if (opt.secure) str += '; Secure';\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n\n case 'lax':\n str += '; SameSite=Lax';\n break;\n\n case 'strict':\n str += '; SameSite=Strict';\n break;\n\n case 'none':\n str += '; SameSite=None';\n break;\n\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n};\n\nvar cookie = {\n create: function create(name, value, minutes, domain) {\n var cookieOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n path: '/',\n sameSite: 'strict'\n };\n\n if (minutes) {\n cookieOptions.expires = new Date();\n cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1000);\n }\n\n if (domain) cookieOptions.domain = domain;\n document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);\n },\n read: function read(name) {\n var nameEQ = name + '=';\n var ca = document.cookie.split(';');\n\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n\n while (c.charAt(0) === ' ') {\n c = c.substring(1, c.length);\n }\n\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n\n return null;\n },\n remove: function remove(name) {\n this.create(name, '', -1);\n }\n};\nvar cookie$1 = {\n name: 'cookie',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupCookie && typeof document !== 'undefined') {\n var c = cookie.read(options.lookupCookie);\n if (c) found = c;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupCookie && typeof document !== 'undefined') {\n cookie.create(options.lookupCookie, lng, options.cookieMinutes, options.cookieDomain, options.cookieOptions);\n }\n }\n};\n\nvar querystring = {\n name: 'querystring',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var query = window.location.search.substring(1);\n var params = query.split('&');\n\n for (var i = 0; i < params.length; i++) {\n var pos = params[i].indexOf('=');\n\n if (pos > 0) {\n var key = params[i].substring(0, pos);\n\n if (key === options.lookupQuerystring) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n\n return found;\n }\n};\n\nvar hasLocalStorageSupport = null;\n\nvar localStorageAvailable = function localStorageAvailable() {\n if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;\n\n try {\n hasLocalStorageSupport = window !== 'undefined' && window.localStorage !== null;\n var testKey = 'i18next.translate.boo';\n window.localStorage.setItem(testKey, 'foo');\n window.localStorage.removeItem(testKey);\n } catch (e) {\n hasLocalStorageSupport = false;\n }\n\n return hasLocalStorageSupport;\n};\n\nvar localStorage = {\n name: 'localStorage',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupLocalStorage && localStorageAvailable()) {\n var lng = window.localStorage.getItem(options.lookupLocalStorage);\n if (lng) found = lng;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupLocalStorage && localStorageAvailable()) {\n window.localStorage.setItem(options.lookupLocalStorage, lng);\n }\n }\n};\n\nvar hasSessionStorageSupport = null;\n\nvar sessionStorageAvailable = function sessionStorageAvailable() {\n if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;\n\n try {\n hasSessionStorageSupport = window !== 'undefined' && window.sessionStorage !== null;\n var testKey = 'i18next.translate.boo';\n window.sessionStorage.setItem(testKey, 'foo');\n window.sessionStorage.removeItem(testKey);\n } catch (e) {\n hasSessionStorageSupport = false;\n }\n\n return hasSessionStorageSupport;\n};\n\nvar sessionStorage = {\n name: 'sessionStorage',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupSessionStorage && sessionStorageAvailable()) {\n var lng = window.sessionStorage.getItem(options.lookupSessionStorage);\n if (lng) found = lng;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupSessionStorage && sessionStorageAvailable()) {\n window.sessionStorage.setItem(options.lookupSessionStorage, lng);\n }\n }\n};\n\nvar navigator$1 = {\n name: 'navigator',\n lookup: function lookup(options) {\n var found = [];\n\n if (typeof navigator !== 'undefined') {\n if (navigator.languages) {\n // chrome only; not an array, so can't use .push.apply instead of iterating\n for (var i = 0; i < navigator.languages.length; i++) {\n found.push(navigator.languages[i]);\n }\n }\n\n if (navigator.userLanguage) {\n found.push(navigator.userLanguage);\n }\n\n if (navigator.language) {\n found.push(navigator.language);\n }\n }\n\n return found.length > 0 ? found : undefined;\n }\n};\n\nvar htmlTag = {\n name: 'htmlTag',\n lookup: function lookup(options) {\n var found;\n var htmlTag = options.htmlTag || (typeof document !== 'undefined' ? document.documentElement : null);\n\n if (htmlTag && typeof htmlTag.getAttribute === 'function') {\n found = htmlTag.getAttribute('lang');\n }\n\n return found;\n }\n};\n\nvar path = {\n name: 'path',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var language = window.location.pathname.match(/\\/([a-zA-Z-]*)/g);\n\n if (language instanceof Array) {\n if (typeof options.lookupFromPathIndex === 'number') {\n if (typeof language[options.lookupFromPathIndex] !== 'string') {\n return undefined;\n }\n\n found = language[options.lookupFromPathIndex].replace('/', '');\n } else {\n found = language[0].replace('/', '');\n }\n }\n }\n\n return found;\n }\n};\n\nvar subdomain = {\n name: 'subdomain',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var language = window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);\n\n if (language instanceof Array) {\n if (typeof options.lookupFromSubdomainIndex === 'number') {\n found = language[options.lookupFromSubdomainIndex].replace('http://', '').replace('https://', '').replace('.', '');\n } else {\n found = language[0].replace('http://', '').replace('https://', '').replace('.', '');\n }\n }\n }\n\n return found;\n }\n};\n\nfunction getDefaults() {\n return {\n order: ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'],\n lookupQuerystring: 'lng',\n lookupCookie: 'i18next',\n lookupLocalStorage: 'i18nextLng',\n lookupSessionStorage: 'i18nextLng',\n // cache user language\n caches: ['localStorage'],\n excludeCacheFor: ['cimode'] //cookieMinutes: 10,\n //cookieDomain: 'myDomain'\n\n };\n}\n\nvar Browser = /*#__PURE__*/function () {\n function Browser(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, Browser);\n\n this.type = 'languageDetector';\n this.detectors = {};\n this.init(services, options);\n }\n\n _createClass(Browser, [{\n key: \"init\",\n value: function init(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var i18nOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.services = services;\n this.options = defaults(options, this.options || {}, getDefaults()); // backwards compatibility\n\n if (this.options.lookupFromUrlIndex) this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;\n this.i18nOptions = i18nOptions;\n this.addDetector(cookie$1);\n this.addDetector(querystring);\n this.addDetector(localStorage);\n this.addDetector(sessionStorage);\n this.addDetector(navigator$1);\n this.addDetector(htmlTag);\n this.addDetector(path);\n this.addDetector(subdomain);\n }\n }, {\n key: \"addDetector\",\n value: function addDetector(detector) {\n this.detectors[detector.name] = detector;\n }\n }, {\n key: \"detect\",\n value: function detect(detectionOrder) {\n var _this = this;\n\n if (!detectionOrder) detectionOrder = this.options.order;\n var detected = [];\n detectionOrder.forEach(function (detectorName) {\n if (_this.detectors[detectorName]) {\n var lookup = _this.detectors[detectorName].lookup(_this.options);\n\n if (lookup && typeof lookup === 'string') lookup = [lookup];\n if (lookup) detected = detected.concat(lookup);\n }\n });\n if (this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0\n\n return detected.length > 0 ? detected[0] : null; // a little backward compatibility\n }\n }, {\n key: \"cacheUserLanguage\",\n value: function cacheUserLanguage(lng, caches) {\n var _this2 = this;\n\n if (!caches) caches = this.options.caches;\n if (!caches) return;\n if (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(lng) > -1) return;\n caches.forEach(function (cacheName) {\n if (_this2.detectors[cacheName]) _this2.detectors[cacheName].cacheUserLanguage(lng, _this2.options);\n });\n }\n }]);\n\n return Browser;\n}();\n\nBrowser.type = 'languageDetector';\n\nexport { Browser as default };\n","export const NS_BRICK_CONTAINER = \"brick-container\";\n\nexport enum K {\n BOOTSTRAP_ERROR = \"BOOTSTRAP_ERROR\",\n}\n\nexport type Locale = { [key in K]: string };\n","import { Locale, K } from \"../constants\";\n\nconst locale: Locale = {\n [K.BOOTSTRAP_ERROR]: \"Bootstrap Error\",\n};\n\nexport default locale;\n","import { Locale, K } from \"../constants\";\n\nconst locale: Locale = {\n [K.BOOTSTRAP_ERROR]: \"启动错误\",\n};\n\nexport default locale;\n","import i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport moment from \"moment\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nimport { initI18n } from \"@next-core/brick-kit\";\n\nimport { NS_BRICK_CONTAINER } from \"./constants\";\nimport en from \"./locales/en\";\nimport zh from \"./locales/zh\";\n\n// I18next is synchronously initialized now,\n// so we listen on language change before initialization.\ni18n.on(\"languageChanged\", function (lng) {\n moment.locale(lng);\n});\n\ni18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(LanguageDetector)\n .use(initReactI18next)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n /*global process*/\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false, // not needed for react as it escapes by default\n },\n react: {\n useSuspense: false,\n },\n compatibilityJSON: \"v3\",\n resources: {\n en: {\n [NS_BRICK_CONTAINER]: en,\n },\n zh: {\n [NS_BRICK_CONTAINER]: zh,\n },\n },\n });\n\ninitI18n();\n\nexport default i18n;\n","import \"moment\";\nimport \"moment/locale/zh-cn\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Result } from \"antd\";\nimport {\n createRuntime,\n getAuth,\n httpErrorToString,\n getMockInfo,\n developHelper,\n} from \"@next-core/brick-kit\";\nimport {\n http,\n HttpRequestConfig,\n HttpResponse,\n HttpError,\n} from \"@next-core/brick-http\";\nimport { initializeLibrary } from \"@next-core/fontawesome-library\";\nimport { apiAnalyzer } from \"@next-core/easyops-analytics\";\nimport \"./antd\";\nimport \"./styles/theme/index.css\";\nimport \"./styles/variables.css\";\nimport \"./styles/business-variables.css\";\nimport \"./styles/editor-bricks-variables.css\";\nimport \"./styles/antd.less\";\nimport \"./styles/antd-compatible.less\";\nimport \"./styles/default.css\";\nimport \"@next-core/brick-icons/dist/styles/index.css\";\nimport i18n from \"./i18n\";\nimport { K, NS_BRICK_CONTAINER } from \"./i18n/constants\";\n\ninitializeLibrary();\n\n// These constants bellow are defined by `webpack.DefinePlugin`.\n// eslint-disable-next-line\n// @ts-ignore\nwindow.DLL_PATH = DLL_PATH;\n// eslint-disable-next-line\n// @ts-ignore\nwindow.BRICK_NEXT_VERSIONS = BRICK_NEXT_VERSIONS;\n// eslint-disable-next-line\n// @ts-ignore\nwindow.BRICK_NEXT_FEATURES = BRICK_NEXT_FEATURES;\n\nconst root = document.body;\n\nconst runtime = createRuntime();\n\nconst mountPoints = {\n menuBar: root.querySelector<HTMLElement>(\"#menu-bar-mount-point\"),\n appBar: root.querySelector<HTMLElement>(\"#app-bar-mount-point\"),\n loadingBar: root.querySelector<HTMLElement>(\"#loading-bar-mount-point\"),\n main: root.querySelector<HTMLElement>(\"#main-mount-point\"),\n bg: root.querySelector<HTMLElement>(\"#bg-mount-point\"),\n portal: root.querySelector<HTMLElement>(\"#portal-mount-point\"),\n};\n\nlet analyzer: ReturnType<typeof apiAnalyzer.create>;\n\n// Disable API stats for standalone micro-apps.\nif (!window.STANDALONE_MICRO_APPS) {\n const api = `${runtime.getBasePath()}api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat`;\n analyzer = apiAnalyzer.create({\n api,\n });\n}\n\nhttp.interceptors.request.use(function (config: HttpRequestConfig) {\n const headers = new Headers(config.options?.headers || {});\n headers.set(\"lang\", i18n.resolvedLanguage);\n const mockInfo = getMockInfo(config.url);\n if (mockInfo) {\n config.url = mockInfo.url;\n headers.set(\"easyops-mock-id\", mockInfo.mockId);\n }\n return {\n ...config,\n options: {\n ...config.options,\n headers,\n },\n };\n});\n\nhttp.interceptors.request.use(function (config: HttpRequestConfig) {\n if (analyzer) {\n const { userInstanceId: uid, username } = getAuth();\n const date = Date.now();\n config.meta = {\n st: date,\n time: Math.round(date / 1000),\n uid,\n username,\n };\n }\n if (!config.options?.interceptorParams?.ignoreLoadingBar) {\n window.dispatchEvent(new CustomEvent(\"request.start\"));\n }\n return config;\n});\n\nhttp.interceptors.response.use(\n function (response: HttpResponse) {\n window.dispatchEvent(new CustomEvent(\"request.end\"));\n analyzer?.analyses(response);\n return response.config.options?.observe === \"response\"\n ? response\n : response.data;\n },\n function (error: HttpError) {\n analyzer?.analyses(error);\n window.dispatchEvent(new CustomEvent(\"request.end\"));\n return Promise.reject(error.error);\n }\n);\n\nlet bootstrapStatus: \"loading\" | \"ok\" | \"failed\" = \"loading\";\nlet previewStarted = false;\nlet previewFromOrigin: string;\nlet previewOptions: PreviewStartOptions;\n\nasync function startPreview(): Promise<void> {\n // Start preview once bootstrap is ok and preview message has also been arrived.\n if (previewStarted || bootstrapStatus !== \"ok\" || !previewFromOrigin) {\n return;\n }\n previewStarted = true;\n // Make sure preview from the expected origins.\n let previewAllowed =\n previewFromOrigin === location.origin ||\n /^https?:\\/\\/localhost(?:$|:)/.test(previewFromOrigin);\n if (!previewAllowed) {\n const { allowedPreviewFromOrigins } = runtime.getMiscSettings() as {\n allowedPreviewFromOrigins?: string[];\n };\n if (Array.isArray(allowedPreviewFromOrigins)) {\n previewAllowed = allowedPreviewFromOrigins.some(\n (origin) => origin === previewFromOrigin\n );\n }\n if (!previewAllowed) {\n // eslint-disable-next-line\n console.error(\n `Preview is disallowed, from origin: ${previewFromOrigin}, while allowing: ${JSON.stringify(\n allowedPreviewFromOrigins\n )}`\n );\n }\n }\n if (previewAllowed) {\n const helperBrickName = \"next-previewer.preview-helper\";\n await developHelper.loadDynamicBricksInBrickConf({\n brick: helperBrickName,\n });\n if (customElements.get(helperBrickName)) {\n const helper = document.createElement(\n helperBrickName\n ) as unknown as PreviewHelperBrick;\n helper.start(previewFromOrigin, previewOptions);\n }\n }\n}\n\nif (window.parent) {\n const listener = async ({\n data,\n origin,\n }: MessageEvent<PreviewMessageContainerStartPreview>): Promise<void> => {\n if (\n data &&\n data.sender === \"preview-container\" &&\n data.type === \"start-preview\"\n ) {\n window.removeEventListener(\"message\", listener);\n previewFromOrigin = origin;\n previewOptions = data.options;\n startPreview();\n }\n };\n window.addEventListener(\"message\", listener);\n}\n\nasync function bootstrap(): Promise<void> {\n try {\n await runtime.bootstrap(mountPoints);\n bootstrapStatus = \"ok\";\n } catch (e) {\n bootstrapStatus = \"failed\";\n // eslint-disable-next-line no-console\n console.error(e);\n\n // `.bootstrap-error` makes loading-bar invisible.\n document.body.classList.add(\"bootstrap-error\", \"bars-hidden\");\n\n ReactDOM.render(\n <Result\n status=\"error\"\n title={i18n.t(`${NS_BRICK_CONTAINER}:${K.BOOTSTRAP_ERROR}`)}\n subTitle={httpErrorToString(e)}\n />,\n mountPoints.main\n );\n }\n\n startPreview();\n}\n\nbootstrap();\n\nexport interface PreviewHelperBrick {\n start(previewFromOrigin: string, options?: PreviewStartOptions): void;\n}\n\nexport interface PreviewMessageContainerStartPreview {\n sender: \"preview-container\";\n type: \"start-preview\";\n options?: PreviewStartOptions;\n}\n\nexport interface PreviewStartOptions {\n appId: string;\n templateId: string;\n settings?: {\n properties?: Record<string, unknown>;\n };\n}\n","module.exports = (__webpack_require__(\"XuQu\"))(\"JxWY\");","module.exports = (__webpack_require__(\"XuQu\"))(\"XDpg\");","module.exports = dll;","module.exports = (__webpack_require__(\"XuQu\"))(\"XzT5\");","module.exports = (__webpack_require__(\"XuQu\"))(\"gdfu\");","module.exports = (__webpack_require__(\"XuQu\"))(\"i8i4\");","module.exports = (__webpack_require__(\"XuQu\"))(\"q1tI\");","module.exports = (__webpack_require__(\"XuQu\"))(\"tYg3\");","module.exports = (__webpack_require__(\"XuQu\"))(\"vA6H\");","module.exports = (__webpack_require__(\"XuQu\"))(\"vuIU\");","module.exports = (__webpack_require__(\"XuQu\"))(\"wd/R\");","module.exports = (__webpack_require__(\"XuQu\"))(\"yXPU\");"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/brick-container",
|
|
3
|
-
"version": "2.66.
|
|
3
|
+
"version": "2.66.7",
|
|
4
4
|
"description": "Brick Container Server",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/brick-container",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"ws": "^8.5.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@next-core/brick-dll": "^2.31.
|
|
44
|
+
"@next-core/brick-dll": "^2.31.19",
|
|
45
45
|
"@next-core/brick-icons": "^2.26.26",
|
|
46
46
|
"@next-core/color-theme": "^0.4.3",
|
|
47
47
|
"@next-core/custom-antd-styles": "^1.24.3",
|
|
48
48
|
"@next-core/illustrations": "^0.5.14",
|
|
49
49
|
"@next-core/less-plugin-css-variables": "^0.2.4",
|
|
50
50
|
"@next-core/webpack-config-factory": "^2.16.0",
|
|
51
|
-
"@next-dll/ace": "^2.0.
|
|
51
|
+
"@next-dll/ace": "^2.0.371",
|
|
52
52
|
"@next-dll/d3": "^2.0.58",
|
|
53
53
|
"@next-dll/echarts": "^2.0.59",
|
|
54
|
-
"@next-dll/editor-bricks-helper": "^0.28.
|
|
55
|
-
"@next-dll/react-dnd": "^0.1.
|
|
54
|
+
"@next-dll/editor-bricks-helper": "^0.28.21",
|
|
55
|
+
"@next-dll/react-dnd": "^0.1.309",
|
|
56
56
|
"babel-loader": "^8.2.3",
|
|
57
57
|
"clean-webpack-plugin": "^4.0.0",
|
|
58
58
|
"copy-webpack-plugin": "^6.4.1",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"webpack-dev-server": "^4.7.4",
|
|
73
73
|
"webpack-merge": "^5.8.0"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "c21961eab0394ceabf0a2798e659cdc356113a1b"
|
|
76
76
|
}
|
package/serve/getEnv.js
CHANGED
|
@@ -85,6 +85,14 @@ module.exports = (runtimeFlags) => {
|
|
|
85
85
|
type: "string",
|
|
86
86
|
default: "8090",
|
|
87
87
|
},
|
|
88
|
+
https: {
|
|
89
|
+
type: "boolean",
|
|
90
|
+
default: false,
|
|
91
|
+
},
|
|
92
|
+
cookieSameSiteNone: {
|
|
93
|
+
type: "boolean",
|
|
94
|
+
default: false,
|
|
95
|
+
},
|
|
88
96
|
server: {
|
|
89
97
|
type: "string",
|
|
90
98
|
},
|
|
@@ -129,30 +137,32 @@ module.exports = (runtimeFlags) => {
|
|
|
129
137
|
$ yarn serve [options]
|
|
130
138
|
|
|
131
139
|
Options
|
|
132
|
-
--auto-remote
|
|
133
|
-
--no-remote
|
|
134
|
-
--server
|
|
135
|
-
--console-server
|
|
136
|
-
--subdir
|
|
137
|
-
--local-bricks
|
|
138
|
-
--legacy-bootstrap
|
|
139
|
-
--local-editors
|
|
140
|
-
--local-snippets
|
|
141
|
-
--local-micro-apps
|
|
142
|
-
--local-templates
|
|
143
|
-
--local-container
|
|
144
|
-
--local-settings
|
|
145
|
-
--no-merge-settings
|
|
146
|
-
--port
|
|
147
|
-
--ws-port
|
|
148
|
-
--host
|
|
149
|
-
--offline
|
|
150
|
-
--verbose
|
|
151
|
-
--no-mock
|
|
152
|
-
--dark-theme-apps
|
|
153
|
-
--no-live-reload
|
|
154
|
-
--
|
|
155
|
-
--
|
|
140
|
+
--auto-remote Use auto remote mode (use all local existed packages, combined with remote packages)
|
|
141
|
+
--no-remote Disable remote mode (Defaults to remote enabled)
|
|
142
|
+
--server Set remote server address, defaults to "192.168.100.162"
|
|
143
|
+
--console-server Set remote console server address, defaults to remote server address
|
|
144
|
+
--subdir Set base href to "/next/" instead of "/"
|
|
145
|
+
--local-bricks Specify local brick packages to be used in remote mode
|
|
146
|
+
--legacy-bootstrap use legacy bootstrap provider
|
|
147
|
+
--local-editors Specify local editor packages to be used in remote mode
|
|
148
|
+
--local-snippets Specify local snippet packages to be used in remote mode
|
|
149
|
+
--local-micro-apps Specify local micro apps to be used in remote mode
|
|
150
|
+
--local-templates Specify local template packages to be used in remote mode
|
|
151
|
+
--local-container Use local brick-container instead of remote in remote mode
|
|
152
|
+
--local-settings Use local settings instead of remote settings in remote mode
|
|
153
|
+
--no-merge-settings Disable merge remote settings by local settings in remote mode
|
|
154
|
+
--port Set local server listening port, defaults to "8081"
|
|
155
|
+
--ws-port Set local WebSocket server listening port, defaults to "8090"
|
|
156
|
+
--host Set local server listening host, defaults to "localhost"
|
|
157
|
+
--offline Use offline mode
|
|
158
|
+
--verbose Print verbose logs
|
|
159
|
+
--no-mock Disable mock-micro-apps
|
|
160
|
+
--dark-theme-apps Specify local micro apps to be used in dark theme
|
|
161
|
+
--no-live-reload Disable live reload through WebSocket (for E2E tests in CI)
|
|
162
|
+
--https Enable serving by https
|
|
163
|
+
--cookie-same-site-none Enable serving by https
|
|
164
|
+
--help Show help message
|
|
165
|
+
--version Show brick container version
|
|
156
166
|
`,
|
|
157
167
|
{
|
|
158
168
|
flags: flagOptions,
|
|
@@ -310,6 +320,8 @@ module.exports = (runtimeFlags) => {
|
|
|
310
320
|
host: flags.host,
|
|
311
321
|
port: Number(flags.port),
|
|
312
322
|
wsPort: Number(flags.wsPort),
|
|
323
|
+
https: flags.https,
|
|
324
|
+
cookieSameSiteNone: flags.cookieSameSiteNone,
|
|
313
325
|
server,
|
|
314
326
|
consoleServer,
|
|
315
327
|
appConfig,
|
package/serve/getProxies.js
CHANGED
|
@@ -48,7 +48,9 @@ module.exports = (env) => {
|
|
|
48
48
|
const proxyPaths = ["api"];
|
|
49
49
|
const apiProxyOptions = {
|
|
50
50
|
headers: {
|
|
51
|
-
"dev-only-login-page": `http
|
|
51
|
+
"dev-only-login-page": `http${env.https ? "s" : ""}://${env.host}:${
|
|
52
|
+
env.port
|
|
53
|
+
}${baseHref}auth/login`,
|
|
52
54
|
},
|
|
53
55
|
};
|
|
54
56
|
if (useRemote) {
|
|
@@ -254,6 +256,20 @@ module.exports = (env) => {
|
|
|
254
256
|
data.total = data.list.length;
|
|
255
257
|
return JSON.stringify(result);
|
|
256
258
|
});
|
|
259
|
+
} else if (
|
|
260
|
+
env.https &&
|
|
261
|
+
env.cookieSameSiteNone &&
|
|
262
|
+
(req.path === "/next/api/auth/login/v2" ||
|
|
263
|
+
req.path === "/api/auth/login/v2")
|
|
264
|
+
) {
|
|
265
|
+
if (
|
|
266
|
+
res.statusCode === 200 &&
|
|
267
|
+
Array.isArray(proxyRes.headers["set-cookie"])
|
|
268
|
+
) {
|
|
269
|
+
proxyRes.headers["set-cookie"] = proxyRes.headers["set-cookie"].map(
|
|
270
|
+
(cookie) => cookie + "; SameSite=None; Secure"
|
|
271
|
+
);
|
|
272
|
+
}
|
|
257
273
|
}
|
|
258
274
|
};
|
|
259
275
|
}
|
package/serve/serve.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const path = require("path");
|
|
2
2
|
const fs = require("fs");
|
|
3
|
+
const https = require("https");
|
|
3
4
|
const express = require("express");
|
|
4
5
|
const { createProxyMiddleware } = require("http-proxy-middleware");
|
|
5
6
|
const { throttle, escapeRegExp } = require("lodash");
|
|
@@ -174,11 +175,22 @@ module.exports = function serve(runtimeFlags) {
|
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
|
|
178
|
+
if (env.https) {
|
|
179
|
+
const server = https.createServer(
|
|
180
|
+
{
|
|
181
|
+
key: fs.readFileSync(path.join(env.rootDir, "dev-https.key"), "utf8"),
|
|
182
|
+
cert: fs.readFileSync(path.join(env.rootDir, "dev-https.cert"), "utf8"),
|
|
183
|
+
},
|
|
184
|
+
app
|
|
185
|
+
);
|
|
186
|
+
server.listen(env.port, env.host);
|
|
187
|
+
} else {
|
|
188
|
+
app.listen(env.port, env.host);
|
|
189
|
+
}
|
|
178
190
|
|
|
179
191
|
console.log(
|
|
180
192
|
chalk.bold.green("Started serving at:"),
|
|
181
|
-
`http://${env.host}:${env.port}${env.baseHref}`
|
|
193
|
+
`http${env.https ? "s" : ""}://${env.host}:${env.port}${env.baseHref}`
|
|
182
194
|
);
|
|
183
195
|
|
|
184
196
|
// 建立 websocket 连接支持自动刷新
|