@egova/egova-api 1.0.32 → 1.0.36
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 +386 -47
- package/dist/index.css +1 -1
- package/dist/index.umd.js +386 -47
- package/dist/index.umd.min.js +2 -2
- package/dist/types/src/views/project-detail/after-execution-script/index.d.ts +1 -1
- package/dist/types/src/views/project-detail/pre-execution-setting/index.d.ts +5 -2
- package/dist/types/src/views/project-detail/response/index.d.ts +2 -0
- package/dist/types/src/views/project-detail/service.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -25824,7 +25824,7 @@ $({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
|
25824
25824
|
/***/ "2c48":
|
|
25825
25825
|
/***/ (function(module, exports) {
|
|
25826
25826
|
|
|
25827
|
-
module.exports = "<article class=\"response\">\r\n <header\r\n :class=\"{'status-success': response.code === 200, 'status-fail': response.code && response.code!==200}\"\r\n >\r\n <span class=\"title\">响应</span>\r\n <div class=\"items-div\">\r\n <span class=\"item-name\">响应码:</span\r\n ><span class=\"item-value\">{{response.code}}</span>\r\n <span class=\"item-name\">时间:</span\r\n ><span class=\"item-value\">{{response.time}}ms</span>\r\n <span class=\"item-name\">大小:</span\r\n ><span class=\"item-value\">{{response.size}}B</span>\r\n </div>\r\n </header>\r\n <main>\r\n <div class=\"response-bar\">\r\n <div\r\n class=\"tag\"\r\n @click=\"onClickResponseSettingTpye(item)\"\r\n :class=\"{'active': item.name === active.name}\"\r\n v-for=\"(item,index) in responseSettingTypeList\"\r\n :key=\"item.name\"\r\n >\r\n <span\r\n >{{item.title + (item.num > 0 ? '(' + item.num + ')':\r\n \"\")}}</span\r\n >\r\n </div>\r\n </div>\r\n <div class=\"response-content\">\r\n <template v-if=\"active.name === 'content'\">\r\n <header>\r\n <!-- <i-radio-group\r\n type=\"button\"\r\n class=\"diy-radio-group-button\"\r\n v-model=\"contentType\"\r\n >\r\n <i-radio label=\"Pretty\">Pretty(美化)</i-radio>\r\n <i-radio label=\"Raw\">Raw(原生)</i-radio>\r\n </i-radio-group> -->\r\n <i-radio-group\r\n type=\"button\"\r\n class=\"diy-radio-group-button\"\r\n v-model=\"contentType\"\r\n >\r\n <i-radio label=\"originalContent\">转换前</i-radio>\r\n <i-radio label=\"content\">转换后</i-radio>\r\n </i-radio-group>\r\n <i-dropdown class=\"diy-dropdown\" @on-click=\"onChangeLang\">\r\n <i-button ghost type=\"primary\" class=\"diy-btn-primary\">\r\n <span class=\"lang\">{{lang.toUpperCase()}}</span>\r\n <i class=\"api-icon icon-select\"></i>\r\n </i-button>\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item name=\"json\">JSON</i-dropdown-item>\r\n <i-dropdown-item name=\"xml\">XML</i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n </header>\r\n <u-editor\r\n :value=\"content\"\r\n :lang=\"lang\"\r\n @inited=\"onEditorInited\"\r\n ></u-editor>\r\n </template>\r\n <div v-if=\"active.name === 'responseHeaders'\">\r\n <i-table\r\n :columns=\"headerColumns\"\r\n :data=\"responseHeaders\"\r\n class=\"diy-table\"\r\n >\r\n </i-table>\r\n </div>\r\n <template v-if=\"active.name === 'requestHeaders'\">\r\n <i-table\r\n :columns=\"headerColumns\"\r\n :data=\"requestHeaders\"\r\n class=\"diy-table\"\r\n >\r\n </i-table>\r\n </template>\r\n <template v-if=\"active.name === 'cookies'\">\r\n <i-table\r\n :columns=\"headerColumns\"\r\n :data=\"cookies\"\r\n class=\"diy-table\"\r\n >\r\n </i-table>\r\n </template>\r\n </div>\r\n </main>\r\n</article>\r\n"
|
|
25827
|
+
module.exports = "<article class=\"response\">\r\n <header\r\n :class=\"{'status-success': response.code === 200, 'status-fail': response.code && response.code!==200}\"\r\n >\r\n <span class=\"title\">响应</span>\r\n <div class=\"items-div\">\r\n <span class=\"item-name\">响应码:</span\r\n ><span class=\"item-value\">{{response.code}}</span>\r\n <span class=\"item-name\">时间:</span\r\n ><span class=\"item-value\">{{response.time}}ms</span>\r\n <span class=\"item-name\">大小:</span\r\n ><span class=\"item-value\">{{response.size}}B</span>\r\n </div>\r\n </header>\r\n <main>\r\n <div class=\"response-bar\">\r\n <div\r\n class=\"tag\"\r\n @click=\"onClickResponseSettingTpye(item)\"\r\n :class=\"{'active': item.name === active.name}\"\r\n v-for=\"(item,index) in responseSettingTypeList\"\r\n :key=\"item.name\"\r\n >\r\n <span\r\n >{{item.title + (item.num > 0 ? '(' + item.num + ')':\r\n \"\")}}</span\r\n >\r\n </div>\r\n </div>\r\n <div class=\"response-content\">\r\n <template v-if=\"active.name === 'content'\">\r\n <header>\r\n <!-- <i-radio-group\r\n type=\"button\"\r\n class=\"diy-radio-group-button\"\r\n v-model=\"contentType\"\r\n >\r\n <i-radio label=\"Pretty\">Pretty(美化)</i-radio>\r\n <i-radio label=\"Raw\">Raw(原生)</i-radio>\r\n </i-radio-group> -->\r\n <i-radio-group\r\n type=\"button\"\r\n class=\"diy-radio-group-button\"\r\n v-model=\"contentType\"\r\n >\r\n <i-radio label=\"originalContent\">转换前</i-radio>\r\n <i-radio label=\"content\">转换后</i-radio>\r\n </i-radio-group>\r\n <i-dropdown class=\"diy-dropdown\" @on-click=\"onChangeLang\">\r\n <i-button ghost type=\"primary\" class=\"diy-btn-primary\">\r\n <span class=\"lang\">{{lang.toUpperCase()}}</span>\r\n <i class=\"api-icon icon-select\"></i>\r\n </i-button>\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item name=\"json\">JSON</i-dropdown-item>\r\n <i-dropdown-item name=\"xml\">XML</i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n </header>\r\n <u-editor\r\n :value=\"content\"\r\n :lang=\"lang\"\r\n @inited=\"onEditorInited\"\r\n ></u-editor>\r\n </template>\r\n <div v-if=\"active.name === 'responseHeaders'\">\r\n <i-table\r\n :columns=\"headerColumns\"\r\n :data=\"responseHeaders\"\r\n class=\"diy-table\"\r\n >\r\n </i-table>\r\n </div>\r\n <template v-if=\"active.name === 'requestHeaders'\">\r\n <i-table\r\n :columns=\"headerColumns\"\r\n :data=\"requestHeaders\"\r\n class=\"diy-table\"\r\n >\r\n </i-table>\r\n </template>\r\n <template v-if=\"active.name === 'cookies'\">\r\n <i-table\r\n :columns=\"headerColumns\"\r\n :data=\"cookies\"\r\n class=\"diy-table\"\r\n >\r\n </i-table>\r\n </template>\r\n <template v-if=\"active.name==='output'\">\r\n <span class=\"output\">{{output}}</span>\r\n </template>\r\n </div>\r\n </main>\r\n</article>\r\n"
|
|
25828
25828
|
|
|
25829
25829
|
/***/ }),
|
|
25830
25830
|
|
|
@@ -40435,7 +40435,7 @@ module.exports = function (S, index, unicode) {
|
|
|
40435
40435
|
/***/ "8ab8":
|
|
40436
40436
|
/***/ (function(module, exports) {
|
|
40437
40437
|
|
|
40438
|
-
module.exports = "<article class=\"pre-execution-setting\">\r\n <section class=\"script\">\r\n <u-editor\r\n @inited=\"onEditorInited\"\r\n :value.sync=\"script\"\r\n lang=\"groovy\"\r\n ></u-editor>\r\n </section>\r\n <section class=\"quick-input\">\r\n <div class=\"info\">\r\n <p>{{description}}</p>\r\n <!-- <ul>\r\n <li>request: 请求</li>\r\n </ul> -->\r\n </div>\r\n <div class=\"quick-list\">\r\n <div v-for=\"type in
|
|
40438
|
+
module.exports = "<article class=\"pre-execution-setting\">\r\n <section class=\"script\">\r\n <u-editor\r\n @inited=\"onEditorInited\"\r\n :value.sync=\"script\"\r\n lang=\"groovy\"\r\n ></u-editor>\r\n </section>\r\n <section class=\"quick-input\">\r\n <div class=\"info\">\r\n <p>{{scriptData.description}}</p>\r\n <!-- <ul>\r\n <li>request: 请求</li>\r\n </ul> -->\r\n </div>\r\n <div class=\"quick-list\">\r\n <div v-for=\"type in scriptData.group\" class=\"quick-type\">\r\n <p>{{type.name}}</p>\r\n <div\r\n v-for=\"item in type.list\"\r\n :key=\"item.name\"\r\n class=\"quick-item\"\r\n @click=\"onClickItem(item)\"\r\n >\r\n <i class=\"api-icon icon-item\"></i> {{item.name}}\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n</article>\r\n"
|
|
40439
40439
|
|
|
40440
40440
|
/***/ }),
|
|
40441
40441
|
|
|
@@ -47792,6 +47792,7 @@ function (_super) {
|
|
|
47792
47792
|
project_list_decorate([autowired(project_list_service), project_list_metadata("design:type", typeof (_a = typeof project_list_service !== "undefined" && project_list_service) === "function" ? _a : Object)], ProjectList.prototype, "service", void 0);
|
|
47793
47793
|
|
|
47794
47794
|
ProjectList = project_list_decorate([Object(flagwind_web_["component"])({
|
|
47795
|
+
name: "ApiProjectList",
|
|
47795
47796
|
template: __webpack_require__("cfb3"),
|
|
47796
47797
|
components: {
|
|
47797
47798
|
"u-card": project_list_card,
|
|
@@ -48058,6 +48059,14 @@ function (_super) {
|
|
|
48058
48059
|
});
|
|
48059
48060
|
};
|
|
48060
48061
|
|
|
48062
|
+
ApiService.prototype.preScript = function () {
|
|
48063
|
+
return this._get("/api-help/preScript.json");
|
|
48064
|
+
};
|
|
48065
|
+
|
|
48066
|
+
ApiService.prototype.postScript = function () {
|
|
48067
|
+
return this._get("/api-help/postScript.json");
|
|
48068
|
+
};
|
|
48069
|
+
|
|
48061
48070
|
var _a, _b;
|
|
48062
48071
|
|
|
48063
48072
|
project_detail_service_decorate([serviceHandler("query", {
|
|
@@ -48100,6 +48109,14 @@ function (_super) {
|
|
|
48100
48109
|
title: "提取json的节点数据"
|
|
48101
48110
|
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [String, String, Boolean]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "parseResponse2Fields", null);
|
|
48102
48111
|
|
|
48112
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
48113
|
+
title: "前置脚本"
|
|
48114
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", []), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "preScript", null);
|
|
48115
|
+
|
|
48116
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
48117
|
+
title: "后置脚本"
|
|
48118
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", []), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "postScript", null);
|
|
48119
|
+
|
|
48103
48120
|
return ApiService;
|
|
48104
48121
|
}(common_service);
|
|
48105
48122
|
|
|
@@ -48783,6 +48800,7 @@ function (_super) {
|
|
|
48783
48800
|
project_comment_decorate([autowired(project_comment_service), project_comment_metadata("design:type", typeof (_a = typeof project_comment_service !== "undefined" && project_comment_service) === "function" ? _a : Object)], ProjectComment.prototype, "service", void 0);
|
|
48784
48801
|
|
|
48785
48802
|
ProjectComment = project_comment_decorate([Object(flagwind_web_["component"])({
|
|
48803
|
+
name: "ApiProjectComment",
|
|
48786
48804
|
template: __webpack_require__("b769"),
|
|
48787
48805
|
components: {
|
|
48788
48806
|
VirtualList: dist_default.a
|
|
@@ -49244,6 +49262,12 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
49244
49262
|
|
|
49245
49263
|
|
|
49246
49264
|
|
|
49265
|
+
|
|
49266
|
+
|
|
49267
|
+
|
|
49268
|
+
|
|
49269
|
+
|
|
49270
|
+
|
|
49247
49271
|
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
49248
49272
|
var _extendStatics = function extendStatics(d, b) {
|
|
49249
49273
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -49286,6 +49310,151 @@ var pre_execution_setting_metadata = undefined && undefined.__metadata || functi
|
|
|
49286
49310
|
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
49287
49311
|
};
|
|
49288
49312
|
|
|
49313
|
+
var pre_execution_setting_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
49314
|
+
function adopt(value) {
|
|
49315
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
49316
|
+
resolve(value);
|
|
49317
|
+
});
|
|
49318
|
+
}
|
|
49319
|
+
|
|
49320
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
49321
|
+
function fulfilled(value) {
|
|
49322
|
+
try {
|
|
49323
|
+
step(generator.next(value));
|
|
49324
|
+
} catch (e) {
|
|
49325
|
+
reject(e);
|
|
49326
|
+
}
|
|
49327
|
+
}
|
|
49328
|
+
|
|
49329
|
+
function rejected(value) {
|
|
49330
|
+
try {
|
|
49331
|
+
step(generator["throw"](value));
|
|
49332
|
+
} catch (e) {
|
|
49333
|
+
reject(e);
|
|
49334
|
+
}
|
|
49335
|
+
}
|
|
49336
|
+
|
|
49337
|
+
function step(result) {
|
|
49338
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
49339
|
+
}
|
|
49340
|
+
|
|
49341
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
49342
|
+
});
|
|
49343
|
+
};
|
|
49344
|
+
|
|
49345
|
+
var pre_execution_setting_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
49346
|
+
var _ = {
|
|
49347
|
+
label: 0,
|
|
49348
|
+
sent: function sent() {
|
|
49349
|
+
if (t[0] & 1) throw t[1];
|
|
49350
|
+
return t[1];
|
|
49351
|
+
},
|
|
49352
|
+
trys: [],
|
|
49353
|
+
ops: []
|
|
49354
|
+
},
|
|
49355
|
+
f,
|
|
49356
|
+
y,
|
|
49357
|
+
t,
|
|
49358
|
+
g;
|
|
49359
|
+
return g = {
|
|
49360
|
+
next: verb(0),
|
|
49361
|
+
"throw": verb(1),
|
|
49362
|
+
"return": verb(2)
|
|
49363
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
49364
|
+
return this;
|
|
49365
|
+
}), g;
|
|
49366
|
+
|
|
49367
|
+
function verb(n) {
|
|
49368
|
+
return function (v) {
|
|
49369
|
+
return step([n, v]);
|
|
49370
|
+
};
|
|
49371
|
+
}
|
|
49372
|
+
|
|
49373
|
+
function step(op) {
|
|
49374
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
49375
|
+
|
|
49376
|
+
while (_) {
|
|
49377
|
+
try {
|
|
49378
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
49379
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
49380
|
+
|
|
49381
|
+
switch (op[0]) {
|
|
49382
|
+
case 0:
|
|
49383
|
+
case 1:
|
|
49384
|
+
t = op;
|
|
49385
|
+
break;
|
|
49386
|
+
|
|
49387
|
+
case 4:
|
|
49388
|
+
_.label++;
|
|
49389
|
+
return {
|
|
49390
|
+
value: op[1],
|
|
49391
|
+
done: false
|
|
49392
|
+
};
|
|
49393
|
+
|
|
49394
|
+
case 5:
|
|
49395
|
+
_.label++;
|
|
49396
|
+
y = op[1];
|
|
49397
|
+
op = [0];
|
|
49398
|
+
continue;
|
|
49399
|
+
|
|
49400
|
+
case 7:
|
|
49401
|
+
op = _.ops.pop();
|
|
49402
|
+
|
|
49403
|
+
_.trys.pop();
|
|
49404
|
+
|
|
49405
|
+
continue;
|
|
49406
|
+
|
|
49407
|
+
default:
|
|
49408
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
49409
|
+
_ = 0;
|
|
49410
|
+
continue;
|
|
49411
|
+
}
|
|
49412
|
+
|
|
49413
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
49414
|
+
_.label = op[1];
|
|
49415
|
+
break;
|
|
49416
|
+
}
|
|
49417
|
+
|
|
49418
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
49419
|
+
_.label = t[1];
|
|
49420
|
+
t = op;
|
|
49421
|
+
break;
|
|
49422
|
+
}
|
|
49423
|
+
|
|
49424
|
+
if (t && _.label < t[2]) {
|
|
49425
|
+
_.label = t[2];
|
|
49426
|
+
|
|
49427
|
+
_.ops.push(op);
|
|
49428
|
+
|
|
49429
|
+
break;
|
|
49430
|
+
}
|
|
49431
|
+
|
|
49432
|
+
if (t[2]) _.ops.pop();
|
|
49433
|
+
|
|
49434
|
+
_.trys.pop();
|
|
49435
|
+
|
|
49436
|
+
continue;
|
|
49437
|
+
}
|
|
49438
|
+
|
|
49439
|
+
op = body.call(thisArg, _);
|
|
49440
|
+
} catch (e) {
|
|
49441
|
+
op = [6, e];
|
|
49442
|
+
y = 0;
|
|
49443
|
+
} finally {
|
|
49444
|
+
f = t = 0;
|
|
49445
|
+
}
|
|
49446
|
+
}
|
|
49447
|
+
|
|
49448
|
+
if (op[0] & 5) throw op[1];
|
|
49449
|
+
return {
|
|
49450
|
+
value: op[0] ? op[1] : void 0,
|
|
49451
|
+
done: true
|
|
49452
|
+
};
|
|
49453
|
+
}
|
|
49454
|
+
};
|
|
49455
|
+
|
|
49456
|
+
|
|
49457
|
+
|
|
49289
49458
|
|
|
49290
49459
|
|
|
49291
49460
|
|
|
@@ -49300,54 +49469,39 @@ function (_super) {
|
|
|
49300
49469
|
function PreExecutionSetting() {
|
|
49301
49470
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
49302
49471
|
|
|
49472
|
+
_this.scriptData = {};
|
|
49303
49473
|
_this.model = new PreScript();
|
|
49304
|
-
_this.description = "前执脚本在发送请求前,对请求头、请求体进行转换。默认变量 request ,语法基于 groovy 语言(基于 JVM 的脚本语言)";
|
|
49305
49474
|
_this.key = "preScripts";
|
|
49306
|
-
_this.quickList = [{
|
|
49307
|
-
type: "响应参数",
|
|
49308
|
-
children: [{
|
|
49309
|
-
title: "响应内容是否为test",
|
|
49310
|
-
value: "test"
|
|
49311
|
-
}, {
|
|
49312
|
-
title: "响应码是否为200",
|
|
49313
|
-
value: "code==200"
|
|
49314
|
-
}, {
|
|
49315
|
-
title: "响应时间是否大于100ms",
|
|
49316
|
-
value: "time>100"
|
|
49317
|
-
}]
|
|
49318
|
-
}, {
|
|
49319
|
-
type: "响应数据",
|
|
49320
|
-
children: [{
|
|
49321
|
-
title: "测试响应Json对象的code是否为1",
|
|
49322
|
-
value: "code == 1"
|
|
49323
|
-
}, {
|
|
49324
|
-
title: "测试响应Json对象的code是否大于等于1",
|
|
49325
|
-
value: "code>=1"
|
|
49326
|
-
}, {
|
|
49327
|
-
title: "将响应Json对象数据设置为环境变量",
|
|
49328
|
-
value: "env.set"
|
|
49329
|
-
}, {
|
|
49330
|
-
title: "测试响应Json对象的code是否为1",
|
|
49331
|
-
value: "code "
|
|
49332
|
-
}, {
|
|
49333
|
-
title: "测试响应Json对象的code是否大于等于1",
|
|
49334
|
-
value: "code=1"
|
|
49335
|
-
}, {
|
|
49336
|
-
title: "将响应Json对象数据设置为环境变量",
|
|
49337
|
-
value: "env.get"
|
|
49338
|
-
}, {
|
|
49339
|
-
title: "测试响应Json对象的code是否大于等于1",
|
|
49340
|
-
value: "code=11"
|
|
49341
|
-
}, {
|
|
49342
|
-
title: "将响应Json对象数据设置为环境变量",
|
|
49343
|
-
value: "env.get1"
|
|
49344
|
-
}]
|
|
49345
|
-
}];
|
|
49346
49475
|
return _this;
|
|
49347
49476
|
}
|
|
49348
49477
|
|
|
49478
|
+
PreExecutionSetting.prototype.mounted = function () {
|
|
49479
|
+
this.getScript();
|
|
49480
|
+
};
|
|
49481
|
+
|
|
49482
|
+
PreExecutionSetting.prototype.getScript = function () {
|
|
49483
|
+
return pre_execution_setting_awaiter(this, void 0, void 0, function () {
|
|
49484
|
+
var result;
|
|
49485
|
+
return pre_execution_setting_generator(this, function (_a) {
|
|
49486
|
+
switch (_a.label) {
|
|
49487
|
+
case 0:
|
|
49488
|
+
return [4
|
|
49489
|
+
/*yield*/
|
|
49490
|
+
, this.service.preScript()];
|
|
49491
|
+
|
|
49492
|
+
case 1:
|
|
49493
|
+
result = _a.sent();
|
|
49494
|
+
this.scriptData = result || {};
|
|
49495
|
+
return [2
|
|
49496
|
+
/*return*/
|
|
49497
|
+
];
|
|
49498
|
+
}
|
|
49499
|
+
});
|
|
49500
|
+
});
|
|
49501
|
+
};
|
|
49502
|
+
|
|
49349
49503
|
PreExecutionSetting.prototype.onClickItem = function (item) {
|
|
49350
|
-
this.editor.insert(item.
|
|
49504
|
+
this.editor.insert(item.code);
|
|
49351
49505
|
this.editor.focus();
|
|
49352
49506
|
};
|
|
49353
49507
|
|
|
@@ -49366,7 +49520,7 @@ function (_super) {
|
|
|
49366
49520
|
configurable: true
|
|
49367
49521
|
});
|
|
49368
49522
|
|
|
49369
|
-
var _a;
|
|
49523
|
+
var _a, _b;
|
|
49370
49524
|
|
|
49371
49525
|
pre_execution_setting_decorate([Object(flagwind_web_["config"])({
|
|
49372
49526
|
default: function _default() {
|
|
@@ -49374,6 +49528,8 @@ function (_super) {
|
|
|
49374
49528
|
}
|
|
49375
49529
|
}), pre_execution_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], PreExecutionSetting.prototype, "interfaceModel", void 0);
|
|
49376
49530
|
|
|
49531
|
+
pre_execution_setting_decorate([autowired(project_detail_service), pre_execution_setting_metadata("design:type", typeof (_b = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _b : Object)], PreExecutionSetting.prototype, "service", void 0);
|
|
49532
|
+
|
|
49377
49533
|
PreExecutionSetting = pre_execution_setting_decorate([Object(flagwind_web_["component"])({
|
|
49378
49534
|
template: __webpack_require__("8ab8"),
|
|
49379
49535
|
components: {
|
|
@@ -49391,6 +49547,12 @@ function (_super) {
|
|
|
49391
49547
|
|
|
49392
49548
|
|
|
49393
49549
|
|
|
49550
|
+
|
|
49551
|
+
|
|
49552
|
+
|
|
49553
|
+
|
|
49554
|
+
|
|
49555
|
+
|
|
49394
49556
|
var after_execution_script_extends = undefined && undefined.__extends || function () {
|
|
49395
49557
|
var _extendStatics = function extendStatics(d, b) {
|
|
49396
49558
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -49429,6 +49591,149 @@ var after_execution_script_decorate = undefined && undefined.__decorate || funct
|
|
|
49429
49591
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
49430
49592
|
};
|
|
49431
49593
|
|
|
49594
|
+
var after_execution_script_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
49595
|
+
function adopt(value) {
|
|
49596
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
49597
|
+
resolve(value);
|
|
49598
|
+
});
|
|
49599
|
+
}
|
|
49600
|
+
|
|
49601
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
49602
|
+
function fulfilled(value) {
|
|
49603
|
+
try {
|
|
49604
|
+
step(generator.next(value));
|
|
49605
|
+
} catch (e) {
|
|
49606
|
+
reject(e);
|
|
49607
|
+
}
|
|
49608
|
+
}
|
|
49609
|
+
|
|
49610
|
+
function rejected(value) {
|
|
49611
|
+
try {
|
|
49612
|
+
step(generator["throw"](value));
|
|
49613
|
+
} catch (e) {
|
|
49614
|
+
reject(e);
|
|
49615
|
+
}
|
|
49616
|
+
}
|
|
49617
|
+
|
|
49618
|
+
function step(result) {
|
|
49619
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
49620
|
+
}
|
|
49621
|
+
|
|
49622
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
49623
|
+
});
|
|
49624
|
+
};
|
|
49625
|
+
|
|
49626
|
+
var after_execution_script_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
49627
|
+
var _ = {
|
|
49628
|
+
label: 0,
|
|
49629
|
+
sent: function sent() {
|
|
49630
|
+
if (t[0] & 1) throw t[1];
|
|
49631
|
+
return t[1];
|
|
49632
|
+
},
|
|
49633
|
+
trys: [],
|
|
49634
|
+
ops: []
|
|
49635
|
+
},
|
|
49636
|
+
f,
|
|
49637
|
+
y,
|
|
49638
|
+
t,
|
|
49639
|
+
g;
|
|
49640
|
+
return g = {
|
|
49641
|
+
next: verb(0),
|
|
49642
|
+
"throw": verb(1),
|
|
49643
|
+
"return": verb(2)
|
|
49644
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
49645
|
+
return this;
|
|
49646
|
+
}), g;
|
|
49647
|
+
|
|
49648
|
+
function verb(n) {
|
|
49649
|
+
return function (v) {
|
|
49650
|
+
return step([n, v]);
|
|
49651
|
+
};
|
|
49652
|
+
}
|
|
49653
|
+
|
|
49654
|
+
function step(op) {
|
|
49655
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
49656
|
+
|
|
49657
|
+
while (_) {
|
|
49658
|
+
try {
|
|
49659
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
49660
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
49661
|
+
|
|
49662
|
+
switch (op[0]) {
|
|
49663
|
+
case 0:
|
|
49664
|
+
case 1:
|
|
49665
|
+
t = op;
|
|
49666
|
+
break;
|
|
49667
|
+
|
|
49668
|
+
case 4:
|
|
49669
|
+
_.label++;
|
|
49670
|
+
return {
|
|
49671
|
+
value: op[1],
|
|
49672
|
+
done: false
|
|
49673
|
+
};
|
|
49674
|
+
|
|
49675
|
+
case 5:
|
|
49676
|
+
_.label++;
|
|
49677
|
+
y = op[1];
|
|
49678
|
+
op = [0];
|
|
49679
|
+
continue;
|
|
49680
|
+
|
|
49681
|
+
case 7:
|
|
49682
|
+
op = _.ops.pop();
|
|
49683
|
+
|
|
49684
|
+
_.trys.pop();
|
|
49685
|
+
|
|
49686
|
+
continue;
|
|
49687
|
+
|
|
49688
|
+
default:
|
|
49689
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
49690
|
+
_ = 0;
|
|
49691
|
+
continue;
|
|
49692
|
+
}
|
|
49693
|
+
|
|
49694
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
49695
|
+
_.label = op[1];
|
|
49696
|
+
break;
|
|
49697
|
+
}
|
|
49698
|
+
|
|
49699
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
49700
|
+
_.label = t[1];
|
|
49701
|
+
t = op;
|
|
49702
|
+
break;
|
|
49703
|
+
}
|
|
49704
|
+
|
|
49705
|
+
if (t && _.label < t[2]) {
|
|
49706
|
+
_.label = t[2];
|
|
49707
|
+
|
|
49708
|
+
_.ops.push(op);
|
|
49709
|
+
|
|
49710
|
+
break;
|
|
49711
|
+
}
|
|
49712
|
+
|
|
49713
|
+
if (t[2]) _.ops.pop();
|
|
49714
|
+
|
|
49715
|
+
_.trys.pop();
|
|
49716
|
+
|
|
49717
|
+
continue;
|
|
49718
|
+
}
|
|
49719
|
+
|
|
49720
|
+
op = body.call(thisArg, _);
|
|
49721
|
+
} catch (e) {
|
|
49722
|
+
op = [6, e];
|
|
49723
|
+
y = 0;
|
|
49724
|
+
} finally {
|
|
49725
|
+
f = t = 0;
|
|
49726
|
+
}
|
|
49727
|
+
}
|
|
49728
|
+
|
|
49729
|
+
if (op[0] & 5) throw op[1];
|
|
49730
|
+
return {
|
|
49731
|
+
value: op[0] ? op[1] : void 0,
|
|
49732
|
+
done: true
|
|
49733
|
+
};
|
|
49734
|
+
}
|
|
49735
|
+
};
|
|
49736
|
+
|
|
49432
49737
|
|
|
49433
49738
|
|
|
49434
49739
|
|
|
@@ -49443,10 +49748,30 @@ function (_super) {
|
|
|
49443
49748
|
|
|
49444
49749
|
_this.key = "postScripts";
|
|
49445
49750
|
_this.model = new PostScript();
|
|
49446
|
-
_this.description = "后执脚本在发送请求后,对请求结果进行转换。默认变量 data (结果字符串),语法基于 groovy 语言(基于 JVM 的脚本语言)";
|
|
49447
49751
|
return _this;
|
|
49448
49752
|
}
|
|
49449
49753
|
|
|
49754
|
+
AfterExecutionScript.prototype.getScript = function () {
|
|
49755
|
+
return after_execution_script_awaiter(this, void 0, void 0, function () {
|
|
49756
|
+
var result;
|
|
49757
|
+
return after_execution_script_generator(this, function (_a) {
|
|
49758
|
+
switch (_a.label) {
|
|
49759
|
+
case 0:
|
|
49760
|
+
return [4
|
|
49761
|
+
/*yield*/
|
|
49762
|
+
, this.service.postScript()];
|
|
49763
|
+
|
|
49764
|
+
case 1:
|
|
49765
|
+
result = _a.sent();
|
|
49766
|
+
this.scriptData = result || {};
|
|
49767
|
+
return [2
|
|
49768
|
+
/*return*/
|
|
49769
|
+
];
|
|
49770
|
+
}
|
|
49771
|
+
});
|
|
49772
|
+
});
|
|
49773
|
+
};
|
|
49774
|
+
|
|
49450
49775
|
AfterExecutionScript = after_execution_script_decorate([Object(flagwind_web_["component"])({})], AfterExecutionScript);
|
|
49451
49776
|
return AfterExecutionScript;
|
|
49452
49777
|
}(project_detail_pre_execution_setting);
|
|
@@ -49529,6 +49854,7 @@ function () {
|
|
|
49529
49854
|
this.responseHeaders = {};
|
|
49530
49855
|
this.cookies = {};
|
|
49531
49856
|
this.errorMessage = "";
|
|
49857
|
+
this.output = "";
|
|
49532
49858
|
}
|
|
49533
49859
|
|
|
49534
49860
|
return Response;
|
|
@@ -49559,6 +49885,10 @@ function (_super) {
|
|
|
49559
49885
|
name: "cookies",
|
|
49560
49886
|
title: "Cookies",
|
|
49561
49887
|
num: 0
|
|
49888
|
+
}, {
|
|
49889
|
+
name: "output",
|
|
49890
|
+
title: "输出",
|
|
49891
|
+
num: 0
|
|
49562
49892
|
}];
|
|
49563
49893
|
_this.lang = "json"; // public contentType: "Pretty" | "Raw" = "Pretty";
|
|
49564
49894
|
|
|
@@ -49599,6 +49929,13 @@ function (_super) {
|
|
|
49599
49929
|
enumerable: false,
|
|
49600
49930
|
configurable: true
|
|
49601
49931
|
});
|
|
49932
|
+
Object.defineProperty(ResponsePanel.prototype, "output", {
|
|
49933
|
+
get: function get() {
|
|
49934
|
+
return this.response.output || "";
|
|
49935
|
+
},
|
|
49936
|
+
enumerable: false,
|
|
49937
|
+
configurable: true
|
|
49938
|
+
});
|
|
49602
49939
|
Object.defineProperty(ResponsePanel.prototype, "responseHeaders", {
|
|
49603
49940
|
get: function get() {
|
|
49604
49941
|
var _this = this;
|
|
@@ -52614,7 +52951,8 @@ function (_super) {
|
|
|
52614
52951
|
|
|
52615
52952
|
ProjectDetail.prototype.onOpenCurrentModal = function () {
|
|
52616
52953
|
this.showCurrentModal = true;
|
|
52617
|
-
};
|
|
52954
|
+
}; // @watch("$route", { deep: true, immediate: true })
|
|
52955
|
+
|
|
52618
52956
|
|
|
52619
52957
|
ProjectDetail.prototype.mounted = function () {
|
|
52620
52958
|
var _a;
|
|
@@ -52643,6 +52981,7 @@ function (_super) {
|
|
|
52643
52981
|
project_detail_decorate([autowired(project_detail_service), project_detail_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], ProjectDetail.prototype, "service", void 0);
|
|
52644
52982
|
|
|
52645
52983
|
ProjectDetail = project_detail_decorate([Object(flagwind_web_["component"])({
|
|
52984
|
+
name: "ApiProjectDetail",
|
|
52646
52985
|
template: __webpack_require__("d63e"),
|
|
52647
52986
|
components: {
|
|
52648
52987
|
"u-tree": project_detail_tree,
|