@next-core/brick-playground 1.0.4 → 1.0.6
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/dist/{915.abba1890.js → 915.2f363be8.js} +3 -3
- package/dist/{915.abba1890.js.map → 915.2f363be8.js.map} +1 -1
- package/dist/{core.dd089666.js → core.46e619ee.js} +62 -211
- package/dist/core.46e619ee.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/{main.ae39393d.js → main.d23fa8e8.js} +19 -17
- package/dist/{main.ae39393d.js.map → main.d23fa8e8.js.map} +1 -1
- package/dist/{main.8704db12.css → main.d38fca40.css} +1 -1
- package/dist/{preview.74fffdfa.js → preview.e7fb9c2f.js} +14 -12
- package/dist/preview.e7fb9c2f.js.map +1 -0
- package/dist/preview.html +1 -1
- package/dist/{vendors.1256d0b0.js → vendors.a283f6df.js} +299 -7
- package/package.json +5 -5
- package/serve/index.js +2 -0
- package/dist/core.dd089666.js.map +0 -1
- package/dist/preview.74fffdfa.js.map +0 -1
- /package/dist/{7064e66c.ttf → fonts/7064e66c.ttf} +0 -0
|
@@ -10,8 +10,8 @@ var map = {
|
|
|
10
10
|
"./en-ca.js": 6972,
|
|
11
11
|
"./en-gb": 3224,
|
|
12
12
|
"./en-gb.js": 3224,
|
|
13
|
-
"./en-ie":
|
|
14
|
-
"./en-ie.js":
|
|
13
|
+
"./en-ie": 3243,
|
|
14
|
+
"./en-ie.js": 3243,
|
|
15
15
|
"./en-il": 2732,
|
|
16
16
|
"./en-il.js": 2732,
|
|
17
17
|
"./en-in": 6579,
|
|
@@ -53,4 +53,4 @@ webpackContext.id = 7915;
|
|
|
53
53
|
/***/ })
|
|
54
54
|
|
|
55
55
|
}]);
|
|
56
|
-
//# sourceMappingURL=915.
|
|
56
|
+
//# sourceMappingURL=915.2f363be8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"915.
|
|
1
|
+
{"version":3,"file":"915.2f363be8.js","mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack:///../../node_modules/moment/locale/ sync zh%7Cen"],"sourcesContent":["var map = {\n\t\"./en-au\": 8428,\n\t\"./en-au.js\": 8428,\n\t\"./en-ca\": 6972,\n\t\"./en-ca.js\": 6972,\n\t\"./en-gb\": 3224,\n\t\"./en-gb.js\": 3224,\n\t\"./en-ie\": 3243,\n\t\"./en-ie.js\": 3243,\n\t\"./en-il\": 2732,\n\t\"./en-il.js\": 2732,\n\t\"./en-in\": 6579,\n\t\"./en-in.js\": 6579,\n\t\"./en-nz\": 9851,\n\t\"./en-nz.js\": 9851,\n\t\"./en-sg\": 442,\n\t\"./en-sg.js\": 442,\n\t\"./zh-cn\": 7414,\n\t\"./zh-cn.js\": 7414,\n\t\"./zh-hk\": 824,\n\t\"./zh-hk.js\": 824,\n\t\"./zh-mo\": 8589,\n\t\"./zh-mo.js\": 8589,\n\t\"./zh-tw\": 3285,\n\t\"./zh-tw.js\": 3285\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 7915;"],"names":[],"sourceRoot":""}
|
|
@@ -3832,7 +3832,7 @@ function getPkgIdByFilePath(filePath) {
|
|
|
3832
3832
|
|
|
3833
3833
|
/***/ }),
|
|
3834
3834
|
|
|
3835
|
-
/***/
|
|
3835
|
+
/***/ 7050:
|
|
3836
3836
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
3837
3837
|
|
|
3838
3838
|
// ESM COMPAT FLAG
|
|
@@ -3888,30 +3888,14 @@ var asyncToGenerator = __webpack_require__(4795);
|
|
|
3888
3888
|
var lodash_js_ = __webpack_require__(5178);
|
|
3889
3889
|
// EXTERNAL MODULE: consume shared module (default) @next-core/utils/storyboard@* (singleton) (fallback: ../utils/dist/esm/storyboard/index.js)
|
|
3890
3890
|
var index_js_ = __webpack_require__(3105);
|
|
3891
|
-
// EXTERNAL MODULE:
|
|
3892
|
-
var
|
|
3893
|
-
;// CONCATENATED MODULE: ../../sdk/micro-app-sdk/dist/esm/api/micro_app/permission/validatePermissions.js
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
/**
|
|
3897
|
-
* @description 校验系统权限
|
|
3898
|
-
* @endpoint POST /api/micro_app/v1/permission/validate
|
|
3899
|
-
*/
|
|
3900
|
-
var PermissionApi_validatePermissions = /*#__PURE__*/function () {
|
|
3901
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (data, options) {
|
|
3902
|
-
return (/**! @contract easyops.api.micro_app.permission.ValidatePermissions@1.0.0 */(yield esm_index_js_.http.post("api/gateway/micro_app.permission.ValidatePermissions/api/micro_app/v1/permission/validate", data, options)).data
|
|
3903
|
-
);
|
|
3904
|
-
});
|
|
3905
|
-
return function PermissionApi_validatePermissions(_x, _x2) {
|
|
3906
|
-
return _ref.apply(this, arguments);
|
|
3907
|
-
};
|
|
3908
|
-
}();
|
|
3891
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/micro-app-sdk/dist/esm/api/micro_app/permission/validatePermissions.js
|
|
3892
|
+
var validatePermissions = __webpack_require__(485);
|
|
3909
3893
|
// EXTERNAL MODULE: consume shared module (default) @next-core/cook@^2.0.2 (singleton) (fallback: ../cook/dist/esm/index.js)
|
|
3910
|
-
var
|
|
3894
|
+
var esm_index_js_ = __webpack_require__(8645);
|
|
3911
3895
|
// EXTERNAL MODULE: consume shared module (default) @next-core/utils/general@* (singleton) (fallback: ../utils/dist/esm/general/index.js)
|
|
3912
3896
|
var general_index_js_ = __webpack_require__(9686);
|
|
3913
3897
|
// EXTERNAL MODULE: consume shared module (default) @next-core/inject@^1.0.3 (singleton) (fallback: ../inject/dist/esm/index.js)
|
|
3914
|
-
var
|
|
3898
|
+
var dist_esm_index_js_ = __webpack_require__(9165);
|
|
3915
3899
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
|
3916
3900
|
var objectWithoutProperties = __webpack_require__(2159);
|
|
3917
3901
|
// EXTERNAL MODULE: consume shared module (default) @next-core/loader@^1.0.4 (singleton) (fallback: ../loader/dist/esm/index.js)
|
|
@@ -4268,13 +4252,13 @@ function StoryboardFunctionRegistryFactory() {
|
|
|
4268
4252
|
if (collectCoverage) {
|
|
4269
4253
|
collector = collectCoverage.createCollector(name);
|
|
4270
4254
|
}
|
|
4271
|
-
var precooked = (0,
|
|
4255
|
+
var precooked = (0,esm_index_js_.precookFunction)(fn.source, {
|
|
4272
4256
|
typescript: fn.typescript,
|
|
4273
4257
|
hooks: collector && {
|
|
4274
4258
|
beforeVisit: collector.beforeVisit
|
|
4275
4259
|
}
|
|
4276
4260
|
});
|
|
4277
|
-
fn.cooked = (0,
|
|
4261
|
+
fn.cooked = (0,esm_index_js_.cook)(precooked.function, fn.source, {
|
|
4278
4262
|
rules: {
|
|
4279
4263
|
noVar: true
|
|
4280
4264
|
},
|
|
@@ -4585,24 +4569,12 @@ var classPrivateMethodInitSpec = __webpack_require__(5866);
|
|
|
4585
4569
|
var classPrivateMethodGet = __webpack_require__(6171);
|
|
4586
4570
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js + 1 modules
|
|
4587
4571
|
var classPrivateFieldSet = __webpack_require__(381);
|
|
4572
|
+
// EXTERNAL MODULE: consume shared module (default) @next-core/http@^1.0.2 (singleton) (fallback: ../http/dist/esm/index.js)
|
|
4573
|
+
var http_1_0_singleton_fallback_http_dist_esm_index_js_ = __webpack_require__(9327);
|
|
4588
4574
|
// EXTERNAL MODULE: consume shared module (default) js-yaml@^3.14.1 (singleton) (fallback: ../../node_modules/js-yaml/index.js)
|
|
4589
4575
|
var js_yaml_index_js_ = __webpack_require__(9169);
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
/**
|
|
4594
|
-
* @description 通过defaultOrg查找单个契约信息
|
|
4595
|
-
* @endpoint POST /api/contract/single_search
|
|
4596
|
-
*/
|
|
4597
|
-
var ContractApi_searchSingleContract = /*#__PURE__*/function () {
|
|
4598
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (data, options) {
|
|
4599
|
-
return (/**! @contract easyops.api.api_gateway.contract.SearchSingleContract@1.0.0 */(yield esm_index_js_.http.post("api/contract/single_search", data, options)).data
|
|
4600
|
-
);
|
|
4601
|
-
});
|
|
4602
|
-
return function ContractApi_searchSingleContract(_x, _x2) {
|
|
4603
|
-
return _ref.apply(this, arguments);
|
|
4604
|
-
};
|
|
4605
|
-
}();
|
|
4576
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/api-gateway-sdk/dist/esm/api/api_gateway/contract/searchSingleContract.js
|
|
4577
|
+
var searchSingleContract = __webpack_require__(7301);
|
|
4606
4578
|
;// CONCATENATED MODULE: ../runtime/dist/esm/internal/data/CollectContracts.js
|
|
4607
4579
|
var contractsMap = new Map();
|
|
4608
4580
|
var widgetContractMap = new Map();
|
|
@@ -4755,7 +4727,7 @@ function _fetchFlowApiDefinition2() {
|
|
|
4755
4727
|
} else {
|
|
4756
4728
|
var {
|
|
4757
4729
|
contractData
|
|
4758
|
-
} = yield ContractApi_searchSingleContract({
|
|
4730
|
+
} = yield (0,searchSingleContract/* ContractApi_searchSingleContract */.e)({
|
|
4759
4731
|
contractName: "".concat(namespaceName, ".").concat(name),
|
|
4760
4732
|
version
|
|
4761
4733
|
});
|
|
@@ -4886,13 +4858,13 @@ function _callFlowApi() {
|
|
|
4886
4858
|
} else {
|
|
4887
4859
|
[params, options] = args;
|
|
4888
4860
|
}
|
|
4889
|
-
response = yield
|
|
4861
|
+
response = yield http_1_0_singleton_fallback_http_dist_esm_index_js_.http.simpleRequest(method, url, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
|
4890
4862
|
params
|
|
4891
4863
|
}, defaultOptions), options));
|
|
4892
4864
|
} else {
|
|
4893
4865
|
var isUploadType = hasFileType(request);
|
|
4894
4866
|
var result = processExtFields(ext_fields, ...args);
|
|
4895
|
-
response = yield
|
|
4867
|
+
response = yield http_1_0_singleton_fallback_http_dist_esm_index_js_.http.requestWithBody(method, url, isUploadType ? transformFormData(result.data) : result.data, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, defaultOptions), result.options));
|
|
4896
4868
|
}
|
|
4897
4869
|
return (isFileType ? false : responseWrapper) ? response.data : response;
|
|
4898
4870
|
});
|
|
@@ -5160,7 +5132,7 @@ function getTracks(value) {
|
|
|
5160
5132
|
var contextNames = false;
|
|
5161
5133
|
var stateNames = false;
|
|
5162
5134
|
var formStateNames = false;
|
|
5163
|
-
if (typeof value === "string" ? (0,
|
|
5135
|
+
if (typeof value === "string" ? (0,esm_index_js_.isEvaluable)(value) : isPreEvaluated(value)) {
|
|
5164
5136
|
var raw = typeof value === "string" ? value : getPreEvaluatedRaw(value);
|
|
5165
5137
|
contextNames = (0,index_js_.track)(raw, "track context", "CTX");
|
|
5166
5138
|
stateNames = (0,index_js_.track)(raw, "track state", "STATE");
|
|
@@ -5786,11 +5758,11 @@ function httpErrorToString(error) {
|
|
|
5786
5758
|
if (error instanceof Event && error.target instanceof HTMLScriptElement) {
|
|
5787
5759
|
return error.target.src;
|
|
5788
5760
|
}
|
|
5789
|
-
if (error instanceof
|
|
5761
|
+
if (error instanceof http_1_0_singleton_fallback_http_dist_esm_index_js_.HttpFetchError) {
|
|
5790
5762
|
// return i18next.t(`${NS_BRICK_KIT}:${K.NETWORK_ERROR}`);
|
|
5791
5763
|
return "网络错误,请检查您的网络连接。";
|
|
5792
5764
|
}
|
|
5793
|
-
if (error instanceof
|
|
5765
|
+
if (error instanceof http_1_0_singleton_fallback_http_dist_esm_index_js_.HttpResponseError) {
|
|
5794
5766
|
if (error.responseJson) {
|
|
5795
5767
|
if (typeof error.responseJson.error === "string") {
|
|
5796
5768
|
return error.responseJson.error;
|
|
@@ -5805,7 +5777,7 @@ function httpErrorToString(error) {
|
|
|
5805
5777
|
return error.toString();
|
|
5806
5778
|
}
|
|
5807
5779
|
function isUnauthenticatedError(error) {
|
|
5808
|
-
return error instanceof
|
|
5780
|
+
return error instanceof http_1_0_singleton_fallback_http_dist_esm_index_js_.HttpResponseError && error.response.status === 401 && !!error.responseJson && error.responseJson.code === 100003;
|
|
5809
5781
|
}
|
|
5810
5782
|
var unauthenticatedConfirming = false;
|
|
5811
5783
|
var lastErrorMessage;
|
|
@@ -5817,7 +5789,7 @@ var lastErrorMessage;
|
|
|
5817
5789
|
*/
|
|
5818
5790
|
function handleHttpError(error) {
|
|
5819
5791
|
// Do nothing if aborted http requests
|
|
5820
|
-
if (error instanceof
|
|
5792
|
+
if (error instanceof http_1_0_singleton_fallback_http_dist_esm_index_js_.HttpAbortError) {
|
|
5821
5793
|
return;
|
|
5822
5794
|
}
|
|
5823
5795
|
|
|
@@ -6062,7 +6034,7 @@ function handleCustomAction(event, handler, runtimeContext, runtimeBrick) {
|
|
|
6062
6034
|
var rawTargetRef = handler.targetRef;
|
|
6063
6035
|
var computedTarget = rawTarget;
|
|
6064
6036
|
// Allow `target` to be set as evaluable string.
|
|
6065
|
-
if (typeof rawTarget === "string" ? (0,
|
|
6037
|
+
if (typeof rawTarget === "string" ? (0,esm_index_js_.isEvaluable)(rawTarget) : isPreEvaluated(rawTarget)) {
|
|
6066
6038
|
computedTarget = computeRealValue(rawTarget, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, runtimeContext), {}, {
|
|
6067
6039
|
event
|
|
6068
6040
|
}));
|
|
@@ -6088,7 +6060,7 @@ function handleCustomAction(event, handler, runtimeContext, runtimeBrick) {
|
|
|
6088
6060
|
} else if (rawTargetRef) {
|
|
6089
6061
|
var computedTargetRef = rawTargetRef;
|
|
6090
6062
|
// Allow `targetRef` to be set as evaluable string.
|
|
6091
|
-
if (typeof rawTargetRef === "string" ? (0,
|
|
6063
|
+
if (typeof rawTargetRef === "string" ? (0,esm_index_js_.isEvaluable)(rawTargetRef) : isPreEvaluated(rawTargetRef)) {
|
|
6092
6064
|
computedTargetRef = computeRealValue(rawTargetRef, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, runtimeContext), {}, {
|
|
6093
6065
|
event
|
|
6094
6066
|
}));
|
|
@@ -7976,7 +7948,7 @@ function initAbortController() {
|
|
|
7976
7948
|
return;
|
|
7977
7949
|
}
|
|
7978
7950
|
nativeController = new AbortController();
|
|
7979
|
-
|
|
7951
|
+
http_1_0_singleton_fallback_http_dist_esm_index_js_.http.interceptors.request.use(config => {
|
|
7980
7952
|
var _config$options;
|
|
7981
7953
|
return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, config), {}, {
|
|
7982
7954
|
options: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, config.options), {}, {
|
|
@@ -8007,76 +7979,14 @@ function registerCustomTemplates(storyboard) {
|
|
|
8007
7979
|
}
|
|
8008
7980
|
}
|
|
8009
7981
|
}
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
var BootstrapV2Api_bootstrapV2 = /*#__PURE__*/function () {
|
|
8019
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (params, options) {
|
|
8020
|
-
return (/**! @contract easyops.api.api_gateway.bootstrap_v2.BootstrapV2@1.1.0 */(yield esm_index_js_.http.get("api/auth/v2/bootstrap", (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, options), {}, {
|
|
8021
|
-
params
|
|
8022
|
-
}))).data
|
|
8023
|
-
);
|
|
8024
|
-
});
|
|
8025
|
-
return function BootstrapV2Api_bootstrapV2(_x, _x2) {
|
|
8026
|
-
return _ref.apply(this, arguments);
|
|
8027
|
-
};
|
|
8028
|
-
}();
|
|
8029
|
-
;// CONCATENATED MODULE: ../../sdk/api-gateway-sdk/dist/esm/api/api_gateway/bootstrap_standalone/runtimeStandalone.js
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
/**
|
|
8033
|
-
* @description 独立小产品Runtime接口
|
|
8034
|
-
* @endpoint GET /api/v1/runtime_standalone
|
|
8035
|
-
*/
|
|
8036
|
-
var BootstrapStandaloneApi_runtimeStandalone = /*#__PURE__*/function () {
|
|
8037
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (options) {
|
|
8038
|
-
return (/**! @contract easyops.api.api_gateway.bootstrap_standalone.RuntimeStandalone@1.0.1 */(yield esm_index_js_.http.get("api/v1/runtime_standalone", options)).data
|
|
8039
|
-
);
|
|
8040
|
-
});
|
|
8041
|
-
return function BootstrapStandaloneApi_runtimeStandalone(_x) {
|
|
8042
|
-
return _ref.apply(this, arguments);
|
|
8043
|
-
};
|
|
8044
|
-
}();
|
|
8045
|
-
;// CONCATENATED MODULE: ../../sdk/api-gateway-sdk/dist/esm/api/api_gateway/bootstrap_v2/getAppStoryboardV2.js
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
/**
|
|
8050
|
-
* @description 获取app storyboard初始化信息
|
|
8051
|
-
* @endpoint GET /api/auth/v2/bootstrap/:appId
|
|
8052
|
-
*/
|
|
8053
|
-
var BootstrapV2Api_getAppStoryboardV2 = /*#__PURE__*/function () {
|
|
8054
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (appId, params, options) {
|
|
8055
|
-
return (/**! @contract easyops.api.api_gateway.bootstrap_v2.GetAppStoryboardV2@1.0.0 */(yield esm_index_js_.http.get("api/auth/v2/bootstrap/".concat(appId), (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, options), {}, {
|
|
8056
|
-
params
|
|
8057
|
-
}))).data
|
|
8058
|
-
);
|
|
8059
|
-
});
|
|
8060
|
-
return function BootstrapV2Api_getAppStoryboardV2(_x, _x2, _x3) {
|
|
8061
|
-
return _ref.apply(this, arguments);
|
|
8062
|
-
};
|
|
8063
|
-
}();
|
|
8064
|
-
;// CONCATENATED MODULE: ../../sdk/micro-app-standalone-sdk/dist/esm/api/micro_app_standalone/runtime/runtimeMicroAppStandalone.js
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
/**
|
|
8068
|
-
* @description 独立小产品Runtime接口
|
|
8069
|
-
* @endpoint GET /api/v1/micro_app_standalone/runtime/:appId
|
|
8070
|
-
*/
|
|
8071
|
-
var RuntimeApi_runtimeMicroAppStandalone = /*#__PURE__*/function () {
|
|
8072
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (appId, options) {
|
|
8073
|
-
return (/**! @contract easyops.api.micro_app_standalone.runtime.RuntimeMicroAppStandalone@1.0.1 */(yield esm_index_js_.http.get("api/gateway/micro_app_standalone.runtime.RuntimeMicroAppStandalone/api/v1/micro_app_standalone/runtime/".concat(appId), options)).data
|
|
8074
|
-
);
|
|
8075
|
-
});
|
|
8076
|
-
return function RuntimeApi_runtimeMicroAppStandalone(_x, _x2) {
|
|
8077
|
-
return _ref.apply(this, arguments);
|
|
8078
|
-
};
|
|
8079
|
-
}();
|
|
7982
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/api-gateway-sdk/dist/esm/api/api_gateway/bootstrap_v2/bootstrapV2.js
|
|
7983
|
+
var bootstrapV2 = __webpack_require__(9397);
|
|
7984
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/api-gateway-sdk/dist/esm/api/api_gateway/bootstrap_standalone/runtimeStandalone.js
|
|
7985
|
+
var runtimeStandalone = __webpack_require__(9505);
|
|
7986
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/api-gateway-sdk/dist/esm/api/api_gateway/bootstrap_v2/getAppStoryboardV2.js
|
|
7987
|
+
var getAppStoryboardV2 = __webpack_require__(8843);
|
|
7988
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/micro-app-standalone-sdk/dist/esm/api/micro_app_standalone/runtime/runtimeMicroAppStandalone.js
|
|
7989
|
+
var runtimeMicroAppStandalone = __webpack_require__(3934);
|
|
8080
7990
|
;// CONCATENATED MODULE: ../runtime/dist/esm/internal/loadBootstrapData.js
|
|
8081
7991
|
|
|
8082
7992
|
|
|
@@ -8096,7 +8006,7 @@ function loadBootstrapData() {
|
|
|
8096
8006
|
}
|
|
8097
8007
|
function _loadBootstrapData() {
|
|
8098
8008
|
_loadBootstrapData = (0,asyncToGenerator/* default */.Z)(function* () {
|
|
8099
|
-
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : BootstrapV2Api_bootstrapV2({
|
|
8009
|
+
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : (0,bootstrapV2/* BootstrapV2Api_bootstrapV2 */.S)({
|
|
8100
8010
|
appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status,icons,standaloneMode",
|
|
8101
8011
|
ignoreTemplateFields: "templates",
|
|
8102
8012
|
ignoreBrickFields: "bricks,processors,providers,editors"
|
|
@@ -8139,9 +8049,9 @@ function _standaloneBootstrap() {
|
|
|
8139
8049
|
_standaloneBootstrap = (0,asyncToGenerator/* default */.Z)(function* () {
|
|
8140
8050
|
var requests = [
|
|
8141
8051
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
8142
|
-
|
|
8052
|
+
http_1_0_singleton_fallback_http_dist_esm_index_js_.http.get(window.BOOTSTRAP_FILE), http_1_0_singleton_fallback_http_dist_esm_index_js_.http.get("".concat(window.APP_ROOT, "conf.yaml"), {
|
|
8143
8053
|
responseType: "text"
|
|
8144
|
-
}), BootstrapStandaloneApi_runtimeStandalone().catch(error => {
|
|
8054
|
+
}), (0,runtimeStandalone/* BootstrapStandaloneApi_runtimeStandalone */.I)().catch(error => {
|
|
8145
8055
|
// make it not crash when the backend service is not updated.
|
|
8146
8056
|
// eslint-disable-next-line no-console
|
|
8147
8057
|
console.warn("request runtime api from api-gateway failed: ", error, ", something might went wrong running standalone micro app");
|
|
@@ -8226,7 +8136,7 @@ function _safeGetRuntimeMicroAppStandalone() {
|
|
|
8226
8136
|
if (appRuntimeDataMap.has(appId)) {
|
|
8227
8137
|
return appRuntimeDataMap.get(appId);
|
|
8228
8138
|
}
|
|
8229
|
-
var promise = RuntimeApi_runtimeMicroAppStandalone(appId).catch(error => {
|
|
8139
|
+
var promise = (0,runtimeMicroAppStandalone/* RuntimeApi_runtimeMicroAppStandalone */.z)(appId).catch(error => {
|
|
8230
8140
|
// make it not crash when the backend service is not updated.
|
|
8231
8141
|
// eslint-disable-next-line no-console
|
|
8232
8142
|
console.warn("request standalone runtime api from micro-app-standalone failed: ", error, ", something might went wrong running standalone micro app");
|
|
@@ -8293,7 +8203,7 @@ function _doFulfilStoryboard() {
|
|
|
8293
8203
|
routes,
|
|
8294
8204
|
meta,
|
|
8295
8205
|
app
|
|
8296
|
-
} = yield BootstrapV2Api_getAppStoryboardV2(storyboard.app.id, {});
|
|
8206
|
+
} = yield (0,getAppStoryboardV2/* BootstrapV2Api_getAppStoryboardV2 */.i)(storyboard.app.id, {});
|
|
8297
8207
|
Object.assign(storyboard, {
|
|
8298
8208
|
routes,
|
|
8299
8209
|
meta,
|
|
@@ -8320,22 +8230,8 @@ function initializeInjectMenus(menus) {
|
|
|
8320
8230
|
}
|
|
8321
8231
|
}
|
|
8322
8232
|
}
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
/**
|
|
8327
|
-
* @description 查询独立部署小产品
|
|
8328
|
-
* @endpoint POST /api/v1/micro_app_standalone/search
|
|
8329
|
-
*/
|
|
8330
|
-
var RuntimeApi_searchMicroAppStandalone = /*#__PURE__*/function () {
|
|
8331
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (data, options) {
|
|
8332
|
-
return (/**! @contract easyops.api.micro_app_standalone.runtime.SearchMicroAppStandalone@1.0.1 */(yield esm_index_js_.http.post("api/gateway/micro_app_standalone.runtime.SearchMicroAppStandalone/api/v1/micro_app_standalone/search", data, options)).data
|
|
8333
|
-
);
|
|
8334
|
-
});
|
|
8335
|
-
return function RuntimeApi_searchMicroAppStandalone(_x, _x2) {
|
|
8336
|
-
return _ref.apply(this, arguments);
|
|
8337
|
-
};
|
|
8338
|
-
}();
|
|
8233
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/micro-app-standalone-sdk/dist/esm/api/micro_app_standalone/runtime/searchMicroAppStandalone.js
|
|
8234
|
+
var searchMicroAppStandalone = __webpack_require__(5049);
|
|
8339
8235
|
// EXTERNAL MODULE: ../../node_modules/compare-versions/lib/esm/index.js
|
|
8340
8236
|
var lib_esm = __webpack_require__(9480);
|
|
8341
8237
|
;// CONCATENATED MODULE: ../runtime/dist/esm/internal/compute/collectMemberCallUsage.js
|
|
@@ -8382,7 +8278,7 @@ function preCheckInstalledApps(storyboard) {
|
|
|
8382
8278
|
if (searchIds.length === 0) {
|
|
8383
8279
|
return;
|
|
8384
8280
|
}
|
|
8385
|
-
var promise = RuntimeApi_searchMicroAppStandalone({
|
|
8281
|
+
var promise = (0,searchMicroAppStandalone/* RuntimeApi_searchMicroAppStandalone */.$)({
|
|
8386
8282
|
query: {
|
|
8387
8283
|
appId: {
|
|
8388
8284
|
$in: searchIds
|
|
@@ -8819,7 +8715,7 @@ function _render3() {
|
|
|
8819
8715
|
if (isUnauthenticatedError(error) && !window.NO_AUTH_GUARD) {
|
|
8820
8716
|
redirectToLogin();
|
|
8821
8717
|
return;
|
|
8822
|
-
} else if (error instanceof
|
|
8718
|
+
} else if (error instanceof http_1_0_singleton_fallback_http_dist_esm_index_js_.HttpAbortError) {
|
|
8823
8719
|
(0,classPrivateFieldGet/* default */.Z)(this, _rendererContextTrashCan).add(prevRendererContext);
|
|
8824
8720
|
return;
|
|
8825
8721
|
} else {
|
|
@@ -8909,22 +8805,8 @@ function mergeMenuConfs(menuConfs) {
|
|
|
8909
8805
|
}
|
|
8910
8806
|
return navConfig;
|
|
8911
8807
|
}
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
/**
|
|
8916
|
-
* @description 判断用户是否登录
|
|
8917
|
-
* @endpoint GET /api/auth/login
|
|
8918
|
-
*/
|
|
8919
|
-
var AuthApi_checkLogin = /*#__PURE__*/function () {
|
|
8920
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (options) {
|
|
8921
|
-
return (/**! @contract easyops.api.api_gateway.auth.CheckLogin@1.1.4 */(yield esm_index_js_.http.get("api/auth/login", options)).data
|
|
8922
|
-
);
|
|
8923
|
-
});
|
|
8924
|
-
return function AuthApi_checkLogin(_x) {
|
|
8925
|
-
return _ref.apply(this, arguments);
|
|
8926
|
-
};
|
|
8927
|
-
}();
|
|
8808
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/api-gateway-sdk/dist/esm/api/api_gateway/auth/checkLogin.js
|
|
8809
|
+
var checkLogin = __webpack_require__(1989);
|
|
8928
8810
|
;// CONCATENATED MODULE: ../runtime/dist/esm/internal/loadCheckLogin.js
|
|
8929
8811
|
|
|
8930
8812
|
|
|
@@ -8935,7 +8817,7 @@ function loadCheckLogin() {
|
|
|
8935
8817
|
function _loadCheckLogin() {
|
|
8936
8818
|
_loadCheckLogin = (0,asyncToGenerator/* default */.Z)(function* () {
|
|
8937
8819
|
if (!window.NO_AUTH_GUARD) {
|
|
8938
|
-
var auth = yield AuthApi_checkLogin();
|
|
8820
|
+
var auth = yield (0,checkLogin/* AuthApi_checkLogin */.u)();
|
|
8939
8821
|
if (auth.loggedIn) {
|
|
8940
8822
|
authenticate(auth);
|
|
8941
8823
|
}
|
|
@@ -9079,22 +8961,8 @@ function registerWidgetFunctions(widgetId, functions, widgetVersion) {
|
|
|
9079
8961
|
widgetFunctionRegistry.set(widgetId, storyboardFunctions);
|
|
9080
8962
|
registerStoryboardFunctions(functions);
|
|
9081
8963
|
}
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
/**
|
|
9086
|
-
* @description 搜索实例
|
|
9087
|
-
* @endpoint POST /object/:objectId/instance/_search
|
|
9088
|
-
*/
|
|
9089
|
-
var InstanceApi_postSearch = /*#__PURE__*/function () {
|
|
9090
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (objectId, data, options) {
|
|
9091
|
-
return (/**! @contract easyops.api.cmdb.instance.PostSearch@1.1.0 */(yield esm_index_js_.http.post("api/gateway/cmdb.instance.PostSearch/object/".concat(objectId, "/instance/_search"), data, options)).data
|
|
9092
|
-
);
|
|
9093
|
-
});
|
|
9094
|
-
return function InstanceApi_postSearch(_x, _x2, _x3) {
|
|
9095
|
-
return _ref.apply(this, arguments);
|
|
9096
|
-
};
|
|
9097
|
-
}();
|
|
8964
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/cmdb-sdk/dist/esm/api/cmdb/instance/postSearch.js
|
|
8965
|
+
var postSearch = __webpack_require__(2021);
|
|
9098
8966
|
;// CONCATENATED MODULE: ../runtime/dist/esm/internal/menu/constants.js
|
|
9099
8967
|
var symbolAppId = Symbol("appId");
|
|
9100
8968
|
var symbolMenuI18nNamespace = Symbol("menuI18nNamespace");
|
|
@@ -9256,25 +9124,8 @@ function computeMenuItems(items, runtimeContext) {
|
|
|
9256
9124
|
};
|
|
9257
9125
|
}()));
|
|
9258
9126
|
}
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
/**
|
|
9264
|
-
* @description 获取实例详情
|
|
9265
|
-
* @endpoint GET /object/:objectId/instance/:instanceId
|
|
9266
|
-
*/
|
|
9267
|
-
var InstanceApi_getDetail = /*#__PURE__*/function () {
|
|
9268
|
-
var _ref = (0,asyncToGenerator/* default */.Z)(function* (objectId, instanceId, params, options) {
|
|
9269
|
-
return (/**! @contract easyops.api.cmdb.instance.GetDetail@1.0.0 */(yield esm_index_js_.http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(objectId, "/instance/").concat(instanceId), (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, options), {}, {
|
|
9270
|
-
params
|
|
9271
|
-
}))).data
|
|
9272
|
-
);
|
|
9273
|
-
});
|
|
9274
|
-
return function InstanceApi_getDetail(_x, _x2, _x3, _x4) {
|
|
9275
|
-
return _ref.apply(this, arguments);
|
|
9276
|
-
};
|
|
9277
|
-
}();
|
|
9127
|
+
// EXTERNAL MODULE: ../../node_modules/@next-api-sdk/cmdb-sdk/dist/esm/api/cmdb/instance/getDetail.js
|
|
9128
|
+
var getDetail = __webpack_require__(682);
|
|
9278
9129
|
;// CONCATENATED MODULE: ../runtime/dist/esm/internal/menu/fetchMenuTitle.js
|
|
9279
9130
|
|
|
9280
9131
|
|
|
@@ -9298,7 +9149,7 @@ function _fetchMenuTitle() {
|
|
|
9298
9149
|
attributeId
|
|
9299
9150
|
} = menuData.titleDataSource;
|
|
9300
9151
|
var attr = attributeId !== null && attributeId !== void 0 ? attributeId : "name";
|
|
9301
|
-
var instanceData = yield InstanceApi_getDetail(objectId, instanceId, {
|
|
9152
|
+
var instanceData = yield (0,getDetail/* InstanceApi_getDetail */.q)(objectId, instanceId, {
|
|
9302
9153
|
fields: attr
|
|
9303
9154
|
});
|
|
9304
9155
|
var title;
|
|
@@ -9363,7 +9214,7 @@ function _fetchMenuById(_x, _x2) {
|
|
|
9363
9214
|
}
|
|
9364
9215
|
function _fetchMenuById2() {
|
|
9365
9216
|
_fetchMenuById2 = (0,asyncToGenerator/* default */.Z)(function* (menuId, runtimeContext) {
|
|
9366
|
-
var menuList = window.STANDALONE_MICRO_APPS ? getMenusOfStandaloneApp(menuId, runtimeContext.app.id) : (yield InstanceApi_postSearch("EASYOPS_STORYBOARD_MENU", {
|
|
9217
|
+
var menuList = window.STANDALONE_MICRO_APPS ? getMenusOfStandaloneApp(menuId, runtimeContext.app.id) : (yield (0,postSearch/* InstanceApi_postSearch */.x)("EASYOPS_STORYBOARD_MENU", {
|
|
9367
9218
|
page: 1,
|
|
9368
9219
|
page_size: 200,
|
|
9369
9220
|
fields: {
|
|
@@ -9472,9 +9323,9 @@ function getPreEvaluatedRaw(pre) {
|
|
|
9472
9323
|
}
|
|
9473
9324
|
function shouldDismissMarkingComputed(raw) {
|
|
9474
9325
|
if (typeof raw === "string") {
|
|
9475
|
-
return (0,
|
|
9326
|
+
return (0,esm_index_js_.shouldAllowRecursiveEvaluations)(raw);
|
|
9476
9327
|
}
|
|
9477
|
-
return (0,
|
|
9328
|
+
return (0,esm_index_js_.shouldAllowRecursiveEvaluations)(raw[symbolForRaw]);
|
|
9478
9329
|
}
|
|
9479
9330
|
var possibleErrorConstructs = new WeakSet([SyntaxError, TypeError, ReferenceError]);
|
|
9480
9331
|
function getCookErrorConstructor(error) {
|
|
@@ -9534,7 +9385,7 @@ runtimeContext) {
|
|
|
9534
9385
|
// A `SyntaxError` maybe thrown.
|
|
9535
9386
|
var precooked;
|
|
9536
9387
|
try {
|
|
9537
|
-
precooked = (0,
|
|
9388
|
+
precooked = (0,esm_index_js_.preevaluate)(raw, {
|
|
9538
9389
|
withParent: true,
|
|
9539
9390
|
hooks: {
|
|
9540
9391
|
beforeVisitGlobal(node, parent) {
|
|
@@ -9794,7 +9645,7 @@ runtimeContext) {
|
|
|
9794
9645
|
appendI18nNamespace: runtimeContext.appendI18nNamespace
|
|
9795
9646
|
}));
|
|
9796
9647
|
try {
|
|
9797
|
-
var result = (0,
|
|
9648
|
+
var result = (0,esm_index_js_.cook)(precooked.expression, precooked.source, {
|
|
9798
9649
|
globalVariables: (0,supply_2_0_singleton_fallback_supply_dist_esm_index_js_.supply)(precooked.attemptToVisitGlobals, globalVariables)
|
|
9799
9650
|
});
|
|
9800
9651
|
// const detail = { raw, context: globalVariables, result };
|
|
@@ -9845,13 +9696,13 @@ function _asyncComputeRealValue() {
|
|
|
9845
9696
|
var lazy = internalOptions.$$lazyForUseBrick && isLazyContentInUseBrick(internalOptions.$$stateOfUseBrick);
|
|
9846
9697
|
var result;
|
|
9847
9698
|
var dismissMarkingComputed = lazy;
|
|
9848
|
-
if (preEvaluated || (0,
|
|
9699
|
+
if (preEvaluated || (0,esm_index_js_.isEvaluable)(value)) {
|
|
9849
9700
|
result = yield asyncEvaluate(value, runtimeContext, {
|
|
9850
9701
|
lazy
|
|
9851
9702
|
});
|
|
9852
9703
|
dismissMarkingComputed = shouldDismissMarkingComputed(value);
|
|
9853
9704
|
} else {
|
|
9854
|
-
result = lazy ? value : (0,
|
|
9705
|
+
result = lazy ? value : (0,dist_esm_index_js_.transformAndInject)(value, runtimeContext);
|
|
9855
9706
|
}
|
|
9856
9707
|
if (!dismissMarkingComputed) {
|
|
9857
9708
|
markAsComputed(result);
|
|
@@ -9881,11 +9732,11 @@ function computeRealValue(value, runtimeContext) {
|
|
|
9881
9732
|
var lazy = internalOptions.$$lazyForUseBrick && isLazyContentInUseBrick(internalOptions.$$stateOfUseBrick);
|
|
9882
9733
|
var result;
|
|
9883
9734
|
var dismissMarkingComputed = lazy;
|
|
9884
|
-
if (preEvaluated || (0,
|
|
9735
|
+
if (preEvaluated || (0,esm_index_js_.isEvaluable)(value)) {
|
|
9885
9736
|
result = evaluate(value, runtimeContext);
|
|
9886
9737
|
dismissMarkingComputed = shouldDismissMarkingComputed(value);
|
|
9887
9738
|
} else {
|
|
9888
|
-
result = lazy ? value : (0,
|
|
9739
|
+
result = lazy ? value : (0,dist_esm_index_js_.transformAndInject)(value, runtimeContext);
|
|
9889
9740
|
}
|
|
9890
9741
|
if (!dismissMarkingComputed) {
|
|
9891
9742
|
markAsComputed(result);
|
|
@@ -9921,7 +9772,7 @@ var permissionMap = new Map();
|
|
|
9921
9772
|
function preCheckPermissions(storyboard) {
|
|
9922
9773
|
if (isLoggedIn() && !getAuth().isAdmin) {
|
|
9923
9774
|
var usedActions = (0,index_js_.scanPermissionActionsInStoryboard)(storyboard);
|
|
9924
|
-
return
|
|
9775
|
+
return checkPermissions_validatePermissions(usedActions);
|
|
9925
9776
|
}
|
|
9926
9777
|
}
|
|
9927
9778
|
function preCheckPermissionsForBrickOrRoute(_x, _x2) {
|
|
@@ -9931,7 +9782,7 @@ function _preCheckPermissionsForBrickOrRoute() {
|
|
|
9931
9782
|
_preCheckPermissionsForBrickOrRoute = (0,asyncToGenerator/* default */.Z)(function* (container, runtimeContext) {
|
|
9932
9783
|
if (isLoggedIn() && !getAuth().isAdmin && Array.isArray(container.permissionsPreCheck)) {
|
|
9933
9784
|
var actions = yield asyncComputeRealValue(container.permissionsPreCheck, runtimeContext);
|
|
9934
|
-
return
|
|
9785
|
+
return checkPermissions_validatePermissions(actions);
|
|
9935
9786
|
}
|
|
9936
9787
|
});
|
|
9937
9788
|
return _preCheckPermissionsForBrickOrRoute.apply(this, arguments);
|
|
@@ -9939,10 +9790,10 @@ function _preCheckPermissionsForBrickOrRoute() {
|
|
|
9939
9790
|
function preCheckPermissionsForAny(data) {
|
|
9940
9791
|
if (isLoggedIn() && !getAuth().isAdmin) {
|
|
9941
9792
|
var usedActions = (0,index_js_.scanPermissionActionsInAny)(data);
|
|
9942
|
-
return
|
|
9793
|
+
return checkPermissions_validatePermissions(usedActions);
|
|
9943
9794
|
}
|
|
9944
9795
|
}
|
|
9945
|
-
function
|
|
9796
|
+
function checkPermissions_validatePermissions(_x3) {
|
|
9946
9797
|
return _validatePermissions.apply(this, arguments);
|
|
9947
9798
|
}
|
|
9948
9799
|
|
|
@@ -9961,7 +9812,7 @@ function _validatePermissions() {
|
|
|
9961
9812
|
}
|
|
9962
9813
|
checkedPermissions.push(...actions);
|
|
9963
9814
|
try {
|
|
9964
|
-
var result = yield PermissionApi_validatePermissions({
|
|
9815
|
+
var result = yield (0,validatePermissions/* PermissionApi_validatePermissions */.w)({
|
|
9965
9816
|
actions
|
|
9966
9817
|
});
|
|
9967
9818
|
for (var item of result.actions) {
|
|
@@ -10726,4 +10577,4 @@ function beforeVisitPermissionsFactory(collection) {
|
|
|
10726
10577
|
/***/ })
|
|
10727
10578
|
|
|
10728
10579
|
}]);
|
|
10729
|
-
//# sourceMappingURL=core.
|
|
10580
|
+
//# sourceMappingURL=core.46e619ee.js.map
|