@egova/egova-api 1.0.208 → 1.0.209
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/index.common.js
CHANGED
|
@@ -60601,6 +60601,7 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
60601
60601
|
|
|
60602
60602
|
|
|
60603
60603
|
|
|
60604
|
+
|
|
60604
60605
|
|
|
60605
60606
|
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
60606
60607
|
var _extendStatics = function extendStatics(d, b) {
|
|
@@ -60828,6 +60829,7 @@ function (_super) {
|
|
|
60828
60829
|
_this.diyKeywordList = [];
|
|
60829
60830
|
_this.refreshEditor = true;
|
|
60830
60831
|
_this.keyword = "";
|
|
60832
|
+
_this.errorMap = new Map();
|
|
60831
60833
|
_this.onFilter = lodash_debounce_default()(function () {
|
|
60832
60834
|
_this.filterTypeList();
|
|
60833
60835
|
}, 300);
|
|
@@ -60854,23 +60856,7 @@ function (_super) {
|
|
|
60854
60856
|
var scrollWrap = document.getElementsByClassName("ace_scrollbar")[0]; // 监听代码编辑器内容区滚动事件
|
|
60855
60857
|
|
|
60856
60858
|
scrollWrap.addEventListener("scroll", function () {
|
|
60857
|
-
|
|
60858
|
-
lineAll.forEach(function (h) {
|
|
60859
|
-
// 如果滚动的时候错误行代码在可视区,则实时将错误图标添加到该行号前
|
|
60860
|
-
if (_this.errorLine && (h === null || h === void 0 ? void 0 : h.innerHTML.includes(_this.errorLine))) {
|
|
60861
|
-
// 添加之前首先清除上一次的图标
|
|
60862
|
-
var lastText = document.getElementsByClassName("icon-a-cuowutishi1");
|
|
60863
|
-
|
|
60864
|
-
if (lastText === null || lastText === void 0 ? void 0 : lastText.length) {
|
|
60865
|
-
var parent = lastText[0].parentNode;
|
|
60866
|
-
parent.removeChild(lastText[0]);
|
|
60867
|
-
}
|
|
60868
|
-
|
|
60869
|
-
var errIcon = document.createElement("i");
|
|
60870
|
-
errIcon.className = "iconfont icon-a-cuowutishi1";
|
|
60871
|
-
h.insertBefore(errIcon, h.firstChild);
|
|
60872
|
-
}
|
|
60873
|
-
});
|
|
60859
|
+
_this.displayError(_this.errorLine);
|
|
60874
60860
|
});
|
|
60875
60861
|
};
|
|
60876
60862
|
|
|
@@ -60891,36 +60877,34 @@ function (_super) {
|
|
|
60891
60877
|
|
|
60892
60878
|
|
|
60893
60879
|
PreExecutionSetting.prototype.displayError = function (value) {
|
|
60894
|
-
var _this = this;
|
|
60895
|
-
|
|
60896
|
-
|
|
60897
|
-
var lastText = document.getElementsByClassName("icon-a-cuowutishi1");
|
|
60898
|
-
|
|
60899
|
-
if (lastText === null || lastText === void 0 ? void 0 : lastText.length) {
|
|
60900
|
-
var parent = lastText[0].parentNode;
|
|
60901
|
-
parent.removeChild(lastText[0]);
|
|
60902
|
-
}
|
|
60880
|
+
var _this = this;
|
|
60903
60881
|
|
|
60904
|
-
if (value) {
|
|
60882
|
+
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60905
60883
|
// 检查错误行是否在当前代码编辑器可视区
|
|
60906
|
-
var
|
|
60907
|
-
var isView_1 = false;
|
|
60908
|
-
textAll === null || textAll === void 0 ? void 0 : textAll.forEach(function (h) {
|
|
60909
|
-
if (h === null || h === void 0 ? void 0 : h.innerHTML.includes(_this.errorLine)) {
|
|
60910
|
-
isView_1 = true;
|
|
60911
|
-
}
|
|
60912
|
-
}); // 如果当前错误行不在可视区则交由监听滚动去处理
|
|
60884
|
+
var textAll_1 = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60913
60885
|
|
|
60914
|
-
|
|
60915
|
-
|
|
60916
|
-
} // 给语法错误行新增提示图标
|
|
60886
|
+
this.errorMap.forEach(function (value, key) {
|
|
60887
|
+
var _a;
|
|
60917
60888
|
|
|
60889
|
+
var son = (_a = textAll_1[value]) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
60890
|
+
son && textAll_1[value].removeChild(son);
|
|
60891
|
+
}); // 清楚保存错误信息的容器
|
|
60918
60892
|
|
|
60919
|
-
|
|
60920
|
-
|
|
60921
|
-
|
|
60893
|
+
this.errorMap.clear();
|
|
60894
|
+
value.forEach(function (h) {
|
|
60895
|
+
textAll_1 === null || textAll_1 === void 0 ? void 0 : textAll_1.forEach(function (v, index) {
|
|
60896
|
+
// 如果当前错误行在可视区内
|
|
60897
|
+
if (v === null || v === void 0 ? void 0 : v.innerHTML.includes(h)) {
|
|
60898
|
+
var text = v;
|
|
60899
|
+
var errIcon = document.createElement("i");
|
|
60900
|
+
errIcon.className = "iconfont icon-a-cuowutishi1"; // 将节点插入到子节点的首位
|
|
60922
60901
|
|
|
60923
|
-
|
|
60902
|
+
text.insertBefore(errIcon, text.firstChild); // 将错误行的行号作为键名,固定的代码编辑器行作为键值,因为代码编辑器的行数不变,实时更新的行的节点内容
|
|
60903
|
+
|
|
60904
|
+
_this.errorMap.set(h, index);
|
|
60905
|
+
}
|
|
60906
|
+
});
|
|
60907
|
+
});
|
|
60924
60908
|
}
|
|
60925
60909
|
};
|
|
60926
60910
|
|
|
@@ -61048,7 +61032,8 @@ function (_super) {
|
|
|
61048
61032
|
}), pre_execution_setting_metadata("design:type", Object)], PreExecutionSetting.prototype, "errorLine", void 0);
|
|
61049
61033
|
|
|
61050
61034
|
pre_execution_setting_decorate([Object(flagwind_web_["watch"])("errorLine", {
|
|
61051
|
-
immediate: true
|
|
61035
|
+
immediate: true,
|
|
61036
|
+
deep: true
|
|
61052
61037
|
}), pre_execution_setting_metadata("design:type", Function), pre_execution_setting_metadata("design:paramtypes", [Object]), pre_execution_setting_metadata("design:returntype", void 0)], PreExecutionSetting.prototype, "handleError", null);
|
|
61053
61038
|
|
|
61054
61039
|
PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
|
|
@@ -63904,8 +63889,6 @@ function (_super) {
|
|
|
63904
63889
|
|
|
63905
63890
|
|
|
63906
63891
|
|
|
63907
|
-
|
|
63908
|
-
|
|
63909
63892
|
|
|
63910
63893
|
|
|
63911
63894
|
|
|
@@ -64196,15 +64179,15 @@ function (_super) {
|
|
|
64196
64179
|
};
|
|
64197
64180
|
|
|
64198
64181
|
InterfaceSettings.prototype.onRun = function () {
|
|
64199
|
-
var _a, _b, _c;
|
|
64182
|
+
var _a, _b, _c, _d;
|
|
64200
64183
|
|
|
64201
64184
|
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
64202
|
-
var formParams, requestHeaders, index, result
|
|
64185
|
+
var formParams, requestHeaders, index, result;
|
|
64203
64186
|
|
|
64204
64187
|
var _this = this;
|
|
64205
64188
|
|
|
64206
|
-
return interface_settings_generator(this, function (
|
|
64207
|
-
switch (
|
|
64189
|
+
return interface_settings_generator(this, function (_e) {
|
|
64190
|
+
switch (_e.label) {
|
|
64208
64191
|
case 0:
|
|
64209
64192
|
this.loading = true;
|
|
64210
64193
|
formParams = [];
|
|
@@ -64237,7 +64220,7 @@ function (_super) {
|
|
|
64237
64220
|
}))];
|
|
64238
64221
|
|
|
64239
64222
|
case 1:
|
|
64240
|
-
result =
|
|
64223
|
+
result = _e.sent();
|
|
64241
64224
|
this.loading = false;
|
|
64242
64225
|
this.response = (result === null || result === void 0 ? void 0 : result.result) || new Response();
|
|
64243
64226
|
|
|
@@ -64247,16 +64230,7 @@ function (_super) {
|
|
|
64247
64230
|
}
|
|
64248
64231
|
|
|
64249
64232
|
this.responseCache.set(this.interfaceModel.info.id, this.response);
|
|
64250
|
-
|
|
64251
|
-
isError = this.response.output.match(reg);
|
|
64252
|
-
|
|
64253
|
-
if (isError) {
|
|
64254
|
-
line = isError[0].match(/([0-9]+)/g);
|
|
64255
|
-
line.length && (this.errorLine = line[0]);
|
|
64256
|
-
} else {
|
|
64257
|
-
this.errorLine = null;
|
|
64258
|
-
}
|
|
64259
|
-
|
|
64233
|
+
((_d = this.response.errorLineNumbers) === null || _d === void 0 ? void 0 : _d.length) && (this.errorLine = this.response.errorLineNumbers);
|
|
64260
64234
|
return [2
|
|
64261
64235
|
/*return*/
|
|
64262
64236
|
];
|
package/dist/index.umd.js
CHANGED
|
@@ -60610,6 +60610,7 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
60610
60610
|
|
|
60611
60611
|
|
|
60612
60612
|
|
|
60613
|
+
|
|
60613
60614
|
|
|
60614
60615
|
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
60615
60616
|
var _extendStatics = function extendStatics(d, b) {
|
|
@@ -60837,6 +60838,7 @@ function (_super) {
|
|
|
60837
60838
|
_this.diyKeywordList = [];
|
|
60838
60839
|
_this.refreshEditor = true;
|
|
60839
60840
|
_this.keyword = "";
|
|
60841
|
+
_this.errorMap = new Map();
|
|
60840
60842
|
_this.onFilter = lodash_debounce_default()(function () {
|
|
60841
60843
|
_this.filterTypeList();
|
|
60842
60844
|
}, 300);
|
|
@@ -60863,23 +60865,7 @@ function (_super) {
|
|
|
60863
60865
|
var scrollWrap = document.getElementsByClassName("ace_scrollbar")[0]; // 监听代码编辑器内容区滚动事件
|
|
60864
60866
|
|
|
60865
60867
|
scrollWrap.addEventListener("scroll", function () {
|
|
60866
|
-
|
|
60867
|
-
lineAll.forEach(function (h) {
|
|
60868
|
-
// 如果滚动的时候错误行代码在可视区,则实时将错误图标添加到该行号前
|
|
60869
|
-
if (_this.errorLine && (h === null || h === void 0 ? void 0 : h.innerHTML.includes(_this.errorLine))) {
|
|
60870
|
-
// 添加之前首先清除上一次的图标
|
|
60871
|
-
var lastText = document.getElementsByClassName("icon-a-cuowutishi1");
|
|
60872
|
-
|
|
60873
|
-
if (lastText === null || lastText === void 0 ? void 0 : lastText.length) {
|
|
60874
|
-
var parent = lastText[0].parentNode;
|
|
60875
|
-
parent.removeChild(lastText[0]);
|
|
60876
|
-
}
|
|
60877
|
-
|
|
60878
|
-
var errIcon = document.createElement("i");
|
|
60879
|
-
errIcon.className = "iconfont icon-a-cuowutishi1";
|
|
60880
|
-
h.insertBefore(errIcon, h.firstChild);
|
|
60881
|
-
}
|
|
60882
|
-
});
|
|
60868
|
+
_this.displayError(_this.errorLine);
|
|
60883
60869
|
});
|
|
60884
60870
|
};
|
|
60885
60871
|
|
|
@@ -60900,36 +60886,34 @@ function (_super) {
|
|
|
60900
60886
|
|
|
60901
60887
|
|
|
60902
60888
|
PreExecutionSetting.prototype.displayError = function (value) {
|
|
60903
|
-
var _this = this;
|
|
60904
|
-
|
|
60905
|
-
|
|
60906
|
-
var lastText = document.getElementsByClassName("icon-a-cuowutishi1");
|
|
60907
|
-
|
|
60908
|
-
if (lastText === null || lastText === void 0 ? void 0 : lastText.length) {
|
|
60909
|
-
var parent = lastText[0].parentNode;
|
|
60910
|
-
parent.removeChild(lastText[0]);
|
|
60911
|
-
}
|
|
60889
|
+
var _this = this;
|
|
60912
60890
|
|
|
60913
|
-
if (value) {
|
|
60891
|
+
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
60914
60892
|
// 检查错误行是否在当前代码编辑器可视区
|
|
60915
|
-
var
|
|
60916
|
-
var isView_1 = false;
|
|
60917
|
-
textAll === null || textAll === void 0 ? void 0 : textAll.forEach(function (h) {
|
|
60918
|
-
if (h === null || h === void 0 ? void 0 : h.innerHTML.includes(_this.errorLine)) {
|
|
60919
|
-
isView_1 = true;
|
|
60920
|
-
}
|
|
60921
|
-
}); // 如果当前错误行不在可视区则交由监听滚动去处理
|
|
60893
|
+
var textAll_1 = document.getElementsByClassName("ace_gutter-cell"); // 清楚上一次所有的错误图标
|
|
60922
60894
|
|
|
60923
|
-
|
|
60924
|
-
|
|
60925
|
-
} // 给语法错误行新增提示图标
|
|
60895
|
+
this.errorMap.forEach(function (value, key) {
|
|
60896
|
+
var _a;
|
|
60926
60897
|
|
|
60898
|
+
var son = (_a = textAll_1[value]) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
60899
|
+
son && textAll_1[value].removeChild(son);
|
|
60900
|
+
}); // 清楚保存错误信息的容器
|
|
60927
60901
|
|
|
60928
|
-
|
|
60929
|
-
|
|
60930
|
-
|
|
60902
|
+
this.errorMap.clear();
|
|
60903
|
+
value.forEach(function (h) {
|
|
60904
|
+
textAll_1 === null || textAll_1 === void 0 ? void 0 : textAll_1.forEach(function (v, index) {
|
|
60905
|
+
// 如果当前错误行在可视区内
|
|
60906
|
+
if (v === null || v === void 0 ? void 0 : v.innerHTML.includes(h)) {
|
|
60907
|
+
var text = v;
|
|
60908
|
+
var errIcon = document.createElement("i");
|
|
60909
|
+
errIcon.className = "iconfont icon-a-cuowutishi1"; // 将节点插入到子节点的首位
|
|
60931
60910
|
|
|
60932
|
-
|
|
60911
|
+
text.insertBefore(errIcon, text.firstChild); // 将错误行的行号作为键名,固定的代码编辑器行作为键值,因为代码编辑器的行数不变,实时更新的行的节点内容
|
|
60912
|
+
|
|
60913
|
+
_this.errorMap.set(h, index);
|
|
60914
|
+
}
|
|
60915
|
+
});
|
|
60916
|
+
});
|
|
60933
60917
|
}
|
|
60934
60918
|
};
|
|
60935
60919
|
|
|
@@ -61057,7 +61041,8 @@ function (_super) {
|
|
|
61057
61041
|
}), pre_execution_setting_metadata("design:type", Object)], PreExecutionSetting.prototype, "errorLine", void 0);
|
|
61058
61042
|
|
|
61059
61043
|
pre_execution_setting_decorate([Object(flagwind_web_["watch"])("errorLine", {
|
|
61060
|
-
immediate: true
|
|
61044
|
+
immediate: true,
|
|
61045
|
+
deep: true
|
|
61061
61046
|
}), pre_execution_setting_metadata("design:type", Function), pre_execution_setting_metadata("design:paramtypes", [Object]), pre_execution_setting_metadata("design:returntype", void 0)], PreExecutionSetting.prototype, "handleError", null);
|
|
61062
61047
|
|
|
61063
61048
|
PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
|
|
@@ -63913,8 +63898,6 @@ function (_super) {
|
|
|
63913
63898
|
|
|
63914
63899
|
|
|
63915
63900
|
|
|
63916
|
-
|
|
63917
|
-
|
|
63918
63901
|
|
|
63919
63902
|
|
|
63920
63903
|
|
|
@@ -64205,15 +64188,15 @@ function (_super) {
|
|
|
64205
64188
|
};
|
|
64206
64189
|
|
|
64207
64190
|
InterfaceSettings.prototype.onRun = function () {
|
|
64208
|
-
var _a, _b, _c;
|
|
64191
|
+
var _a, _b, _c, _d;
|
|
64209
64192
|
|
|
64210
64193
|
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
64211
|
-
var formParams, requestHeaders, index, result
|
|
64194
|
+
var formParams, requestHeaders, index, result;
|
|
64212
64195
|
|
|
64213
64196
|
var _this = this;
|
|
64214
64197
|
|
|
64215
|
-
return interface_settings_generator(this, function (
|
|
64216
|
-
switch (
|
|
64198
|
+
return interface_settings_generator(this, function (_e) {
|
|
64199
|
+
switch (_e.label) {
|
|
64217
64200
|
case 0:
|
|
64218
64201
|
this.loading = true;
|
|
64219
64202
|
formParams = [];
|
|
@@ -64246,7 +64229,7 @@ function (_super) {
|
|
|
64246
64229
|
}))];
|
|
64247
64230
|
|
|
64248
64231
|
case 1:
|
|
64249
|
-
result =
|
|
64232
|
+
result = _e.sent();
|
|
64250
64233
|
this.loading = false;
|
|
64251
64234
|
this.response = (result === null || result === void 0 ? void 0 : result.result) || new Response();
|
|
64252
64235
|
|
|
@@ -64256,16 +64239,7 @@ function (_super) {
|
|
|
64256
64239
|
}
|
|
64257
64240
|
|
|
64258
64241
|
this.responseCache.set(this.interfaceModel.info.id, this.response);
|
|
64259
|
-
|
|
64260
|
-
isError = this.response.output.match(reg);
|
|
64261
|
-
|
|
64262
|
-
if (isError) {
|
|
64263
|
-
line = isError[0].match(/([0-9]+)/g);
|
|
64264
|
-
line.length && (this.errorLine = line[0]);
|
|
64265
|
-
} else {
|
|
64266
|
-
this.errorLine = null;
|
|
64267
|
-
}
|
|
64268
|
-
|
|
64242
|
+
((_d = this.response.errorLineNumbers) === null || _d === void 0 ? void 0 : _d.length) && (this.errorLine = this.response.errorLineNumbers);
|
|
64269
64243
|
return [2
|
|
64270
64244
|
/*return*/
|
|
64271
64245
|
];
|