@egova/egova-api 1.0.162 → 1.0.165
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 +1592 -369
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1592 -369
- package/dist/index.umd.min.js +4 -4
- package/dist/static/fonts/iconfont.31da6b63.woff +0 -0
- package/dist/static/fonts/iconfont.920ac458.ttf +0 -0
- package/dist/static/fonts/iconfont.eada572b.eot +0 -0
- package/dist/static/img/authentication.da2b6203.svg +159 -0
- package/dist/static/img/iconfont.73d088e3.svg +247 -0
- package/dist/types/src/common/utils/tree-data.d.ts +1 -0
- package/dist/types/src/views/project-combine/index.d.ts +3 -1
- package/dist/types/src/views/project-combine/tree/index.d.ts +3 -1
- package/dist/types/src/views/project-detail/index.d.ts +2 -0
- package/dist/types/src/views/project-detail/interface-settings/index.d.ts +2 -0
- package/dist/types/src/views/project-detail/interface-settings/model.d.ts +1 -0
- package/dist/types/src/views/project-detail/security-modal/index.d.ts +30 -0
- package/dist/types/src/views/project-detail/security-setting-v2/index.d.ts +22 -0
- package/dist/types/src/views/project-detail/security-setting-v2/tips-form-label/index.d.ts +7 -0
- package/dist/types/src/views/project-detail/service.d.ts +4 -0
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -22654,6 +22654,13 @@ module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
|
22654
22654
|
};
|
|
22655
22655
|
|
|
22656
22656
|
|
|
22657
|
+
/***/ }),
|
|
22658
|
+
|
|
22659
|
+
/***/ "1a93":
|
|
22660
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
22661
|
+
|
|
22662
|
+
// extracted by mini-css-extract-plugin
|
|
22663
|
+
|
|
22657
22664
|
/***/ }),
|
|
22658
22665
|
|
|
22659
22666
|
/***/ "1aea":
|
|
@@ -26344,6 +26351,13 @@ module.exports = version;
|
|
|
26344
26351
|
|
|
26345
26352
|
/***/ }),
|
|
26346
26353
|
|
|
26354
|
+
/***/ "2f53":
|
|
26355
|
+
/***/ (function(module, exports) {
|
|
26356
|
+
|
|
26357
|
+
module.exports = "<span class=\"wrap\">\n <i-poptip trigger=\"hover\" :content=\"tips\">\n<!-- <div class=\"diy-info-icon\">i</div>-->\n <i-icon type=\"ios-information-circle-outline\"></i-icon>\n </i-poptip>\n <span class=\"title\">{{labelTitle}}</span>\n <span v-if=\"labelColon\">:</span>\n</span>\n"
|
|
26358
|
+
|
|
26359
|
+
/***/ }),
|
|
26360
|
+
|
|
26347
26361
|
/***/ "342f":
|
|
26348
26362
|
/***/ (function(module, exports, __webpack_require__) {
|
|
26349
26363
|
|
|
@@ -26459,6 +26473,13 @@ module.exports = function (argument) {
|
|
|
26459
26473
|
};
|
|
26460
26474
|
|
|
26461
26475
|
|
|
26476
|
+
/***/ }),
|
|
26477
|
+
|
|
26478
|
+
/***/ "3bf8":
|
|
26479
|
+
/***/ (function(module, exports) {
|
|
26480
|
+
|
|
26481
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-security-modal diy-modal\" transfer>\n <header slot=\"header\">授权认证</header>\n <main class=\"security-content\">\n <div class=\"left\">\n <div class=\"left-title\">\n <div class=\"left-title-text\">授权列表</div>\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\n </div>\n <div class=\"left-content\">\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\n <template #prefix>\n <i-icon type=\"ios-search\"/>\n </template>\n </i-input>\n <div class=\"security-list\">\n <div class=\"security-list-item\"\n :class=\"currentSecurityItem.id === item.id ? 'security-list-item-active' : ''\"\n v-for=\"(item,index) in securityList\"\n :key=\"item.id || index\"\n @click=\"onSelectSecurityItem(item)\"\n >\n <div class=\"security-list-item-name\">\n <i class=\"iconfont icon-shouquan1\"></i>\n <div class=\"security-list-item-text\">{{ item.name || \"新授权\" }}</div>\n </div>\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\n <i class=\"iconfont icon-delete\"></i>\n </i-poptip>\n<!-- <i class=\"iconfont icon-delete\" @click.stop=\"onDelete(item)\"></i>-->\n </div>\n </div>\n </div>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">授权内容</div>\n <div class=\"right-content\">\n <i-form class=\"security-content-form\"label-colon :label-width=\"170\" :model=\"currentSecurityItem\">\n <template v-if=\"currentSecurityItem.type\">\n <i-form-item class=\"security-content-form-item\" label=\"授权名称\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.name\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"授权类型\">\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.type\">\n <i-option v-for=\"(item,index) in securityTypeList\" :value=\"item.name\" :key=\"index\">{{ item.text }}</i-option>\n </i-select>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type && currentSecurityItem.type !== 'GROOVY_SCRIPT'\">\n <i-form-item class=\"security-content-form-item\" label=\"存储位置\">\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.location\">\n <i-option v-for=\"(item,index) in tokenLocationTypeList\" :value=\"item.name\" :key=\"item.name\">{{ item.text }}</i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"存储键值\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.locationKey\"></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'Api_Key'\">\n <i-form-item class=\"security-content-form-item\" label=\"key\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.key\"></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'Base_Auth'\">\n <i-form-item class=\"security-content-form-item\" label=\"username\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"password\">\n <i-input class=\"diy-password-input diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'OAuth2'\">\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.headerPrefix\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\n <i-select v-model=\"currentSecurityItem.content.grantType\" class=\"diy-select\">\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenUrl\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenPath\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"Client ID\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientId\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"Client Secret\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientSecret\"></i-input>\n </i-form-item>\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\n <i-form-item class=\"security-content-form-item\" label=\"username\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"password\">\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\n </i-form-item>\n </template>\n <i-form-item class=\"security-content-form-item\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.scope\"></i-input>\n </i-form-item>\n </template>\n <template v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\n <i-form-item class=\"security-content-form-item script-area-item\" label=\"授权脚本\">\n <i-input class=\"diy-input script-area\" type=\"textarea\" placeholder=\"请输入\" v-model=\"currentSecurityItem.scriptContent\"></i-input>\n </i-form-item>\n </template>\n </i-form>\n </div>\n </div>\n </main>\n\n <footer slot=\"footer\">\n <template>\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\n </template>\n </footer>\n</i-modal>\n"
|
|
26482
|
+
|
|
26462
26483
|
/***/ }),
|
|
26463
26484
|
|
|
26464
26485
|
/***/ "3ca3":
|
|
@@ -26497,6 +26518,13 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
26497
26518
|
});
|
|
26498
26519
|
|
|
26499
26520
|
|
|
26521
|
+
/***/ }),
|
|
26522
|
+
|
|
26523
|
+
/***/ "3de4":
|
|
26524
|
+
/***/ (function(module, exports) {
|
|
26525
|
+
|
|
26526
|
+
module.exports = "<article class=\"security-setting-v2\">\n <div class=\"left\">\n <i-form class=\"type-form diy-form\" label-colon>\n <i-form-item label=\"选择授权\">\n <!-- <i-select v-model=\"interfaceModel.authentication && interfaceModel.authentication.type\" class=\"diy-select\">-->\n <!-- <i-option v-for=\"item in securityTypeList\" :key=\"item.name\" :value=\"item.name\">{{item.text}} </i-option>-->\n <!-- </i-select>-->\n <i-select ref=\"addSecuritySelect\" class=\"diy-select add-security-select\" v-model=\"currentSecurityItemId\" @on-change=\"onChangeSecurityItem($event)\">\n <i-option v-for=\"item in securityList\" :key=\"item.id\" :value=\"item.id\">{{ item.name }}</i-option>\n <i-option class=\"add-security-item\" value=\"''\">\n <div class=\"add-security-item-content\" @click.stop=\"onAddSecurityItem\">\n <i class=\"api-icon icon-add\"></i>\n <span>新建授权</span>\n </div>\n<!-- <div class=\"add-security-item-content\">-->\n<!-- <i class=\"api-icon icon-add\"></i>-->\n<!-- <span>新建授权</span>-->\n<!-- </div>-->\n </i-option>\n </i-select>\n </i-form-item>\n <i-form-item label=\"授权类型\">\n <span class=\"security-type\">{{ currentSecurityItem._type?.text ? currentSecurityItem._type.text : \"暂无\" }}</span>\n </i-form-item>\n </i-form>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">授权详情</div>\n <div class=\"right-content\">\n <div class=\"no-data\" v-if=\"!currentSecurityItem.type\">\n <div class=\"no-data-bg\"></div>\n <div class=\"no-data-text\">请在左侧下拉框中选择已建立授权</div>\n </div>\n <div class=\"script\" v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\n <div class=\"script-content\">{{ currentSecurityItem.scriptContent }}</div>\n </div>\n <div class=\"api-key\" v-if=\"currentSecurityItem.type === 'Api_Key'\">\n <i-form class=\"oauth-2-form diy-form\" label-colon>\n <i-form-item label=\"存储位置\">\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\"}}</span>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\n </i-form-item>\n <i-form-item label=\"key\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.key }}</span>\n </i-form-item>\n </i-form>\n </div>\n <div class=\"base-auth\" v-if=\"currentSecurityItem.type === 'Base_Auth'\">\n <i-form class=\"oauth-2-form diy-form\" label-colon>\n <i-form-item label=\"存储位置\">\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\n </i-form-item>\n <i-form-item label=\"username\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\n </i-form-item>\n <i-form-item label=\"password\">\n <!-- <span class=\"form-item-text\">{{ \"·\" }}</span>-->\n <!-- <i-input class=\"diy-input\" v-model=\"model.password\" type=\"password\" password placeholder=\"请输入\"> </i-input>-->\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\n </i-form-item>\n </i-form>\n </div>\n <div class=\"oauth-2\" v-if=\"currentSecurityItem.type === 'OAuth2'\">\n <i-form class=\"oauth-2-form diy-form\" label-colon>\n <i-form-item label=\"存储位置\">\n <span class=\"form-item-text\">{{ currentSecurityItem._location?.text ? currentSecurityItem._location.text : \"\" }}</span>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <span class=\"form-item-text\">{{ currentSecurityItem.locationKey }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.headerPrefix }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ findGrantTypeText(currentSecurityItem.content.grantType) }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpUrl\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenUrl }}</span>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.tokenPath }}</span>\n </i-form-item>\n <i-form-item label=\"Client ID\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientId }}</span>\n </i-form-item>\n <i-form-item label=\"Client Secret\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.clientSecret }}</span>\n </i-form-item>\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\n <i-form-item class=\"security-content-form-item\" label=\"username\">\n <span class=\"form-item-text\">{{ currentSecurityItem.content.username }}</span>\n </i-form-item>\n <i-form-item class=\"security-content-form-item\" label=\"password\">\n <i-input class=\"diy-password-input diy-input\" :value=\"currentSecurityItem.content.password\" type=\"password\"></i-input>\n </i-form-item>\n </template>\n <i-form-item label=\"Scope\">\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\n <span class=\"form-item-text\">{{ currentSecurityItem.content.scope }}</span>\n </i-form-item>\n </i-form>\n </div>\n </div>\n </div>\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectID\" :isAdd=\"isAdd\" @on-fresh=\"getSecurityList\"></u-security-modal>\n</article>\n"
|
|
26527
|
+
|
|
26500
26528
|
/***/ }),
|
|
26501
26529
|
|
|
26502
26530
|
/***/ "3f8c":
|
|
@@ -26692,7 +26720,7 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
26692
26720
|
/***/ "46d3":
|
|
26693
26721
|
/***/ (function(module, exports) {
|
|
26694
26722
|
|
|
26695
|
-
module.exports = "<article class=\"u-common-tree u-type-tree\">\
|
|
26723
|
+
module.exports = "<article class=\"u-common-tree u-type-tree\">\n <slot name=\"header\">\n <header slot=\"header\" class=\"tree-header\">\n <span>合并模型列表</span>\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i title=\"导入\" class=\"iconfont icon-import\"></i>\n </i-upload>\n <i\n @click=\"onModelExport(null)\"\n :class=\"{'disabled': !data.length}\"\n class=\"iconfont icon-export\"\n title=\"导出\"\n ></i>\n <i @click.stop=\"onAddTreeNode\" title=\"新增合并模型\" class=\"iconfont icon-add-folder\"></i>\n </header>\n </slot>\n <section class=\"content\">\n <i-input class=\"search-input diy-input\" suffix=\"ios-search\" :placeholder=\"placeholder\" @on-change=\"onFilter\" v-model=\"keyword\" />\n <i-tree :data=\"renderData\" :render=\"renderContent\" @on-toggle-expand=\"onToggleExpand\"></i-tree>\n </section>\n <u-add-node :data=\"tempNode\" :categories=\"data\" v-model=\"showAddTreeNodeModal\" @on-refresh=\"queryTreeData\"></u-add-node>\n\n <i-modal draggable sticky reset-drag-position v-model=\"showImportModal\" class=\"diy-modal duplicate-import-modal\" width=\"800\" :mask-closable=\"false\" title=\"导入已合并接口\">\n <div class=\"import-title\">上传成功</div>\n <div class=\"import-label\">{{ `上传共${importResult.total}条合并接口数据,其中${importResult.total - importResult.duplicateNum}条可成功导入。` }}</div>\n <div class=\"import-label\">{{ `发现以下${importResult.duplicateNum}条接口数据存在编码重复(编码已存在),将不会被导入。` }}</div>\n <i-table class=\"diy-table import-modal-table\" :columns=\"columns\" :data=\"importResult.items\">\n </i-table>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onImportConfirm\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onImportCancel\">取消</i-button>\n </footer>\n </i-modal>\n</article>\n"
|
|
26696
26724
|
|
|
26697
26725
|
/***/ }),
|
|
26698
26726
|
|
|
@@ -38476,6 +38504,13 @@ module.exports = !$assign || fails(function () {
|
|
|
38476
38504
|
} : $assign;
|
|
38477
38505
|
|
|
38478
38506
|
|
|
38507
|
+
/***/ }),
|
|
38508
|
+
|
|
38509
|
+
/***/ "61ef":
|
|
38510
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
38511
|
+
|
|
38512
|
+
// extracted by mini-css-extract-plugin
|
|
38513
|
+
|
|
38479
38514
|
/***/ }),
|
|
38480
38515
|
|
|
38481
38516
|
/***/ "6255":
|
|
@@ -43508,6 +43543,13 @@ if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
|
|
|
43508
43543
|
}
|
|
43509
43544
|
|
|
43510
43545
|
|
|
43546
|
+
/***/ }),
|
|
43547
|
+
|
|
43548
|
+
/***/ "b156":
|
|
43549
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
43550
|
+
|
|
43551
|
+
// extracted by mini-css-extract-plugin
|
|
43552
|
+
|
|
43511
43553
|
/***/ }),
|
|
43512
43554
|
|
|
43513
43555
|
/***/ "b2d8":
|
|
@@ -46969,7 +47011,7 @@ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
|
46969
47011
|
/***/ "ccf6":
|
|
46970
47012
|
/***/ (function(module, exports) {
|
|
46971
47013
|
|
|
46972
|
-
module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\"> </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\" :class=\"currentNode.id === 'virtual_root_directory' ? 'icon-button-disabled' : ''\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\">\r\n
|
|
47014
|
+
module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :taskCategoryID=\"taskCategoryID\" :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\"> </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\" :class=\"currentNode.id === 'virtual_root_directory' ? 'icon-button-disabled' : ''\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\" @on-row-click=\"onRowClick\">\r\n <template slot=\"status\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\r\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未发布\"}}</span>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i @click.stop=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-detail\"></i>\r\n <i @click.stop=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi\"> </i>\r\n <template v-if=\"row.status!=='PUBLISHED'\">\r\n <i @click.stop=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-edit\"></i>\r\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </template>\r\n </div>\r\n </template>\r\n </i-table>\r\n <i-page\r\n class=\"diy-page\"\r\n show-total\r\n show-sizer\r\n show-elevator\r\n :total=\"paging.totalCount\"\r\n :current=\"paging.pageIndex\"\r\n :page-size=\"paging.pageSize\"\r\n @on-change=\"onPageIndexChange\"\r\n @on-page-size-change=\"onPageSizeChange\"\r\n ></i-page>\r\n </section>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
|
|
46973
47015
|
|
|
46974
47016
|
/***/ }),
|
|
46975
47017
|
|
|
@@ -47021,7 +47063,7 @@ module.exports = require("axios");
|
|
|
47021
47063
|
/***/ "cfb3":
|
|
47022
47064
|
/***/ (function(module, exports) {
|
|
47023
47065
|
|
|
47024
|
-
module.exports = "<article class=\"project-list\">\
|
|
47066
|
+
module.exports = "<article class=\"project-list\">\n <header>\n <i-input\n class=\"diy-input\"\n v-model=\"condition.name\"\n search\n @on-search=\"onQuery\"\n placeholder=\"输入关键字检索\"\n ></i-input>\n </header>\n <main>\n <header class=\"tool-bar\">\n <span>项目列表</span>\n <div class=\"right-tool\">\n <div class=\"action-btn\">\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i class=\"api-icon icon-import\"></i>\n <div>导入项目</div>\n </i-upload>\n </div>\n <div class=\"action-btn\" @click=\"onComment\">\n <i\n class=\"api-icon icon-star\"\n @click=\"onCheckType('list')\"\n ></i>\n <div>查看项目动态</div>\n </div>\n <i\n class=\"api-icon icon-list\"\n :class=\"{'active': type === 'list'}\"\n title=\"列表展示\"\n @click=\"onCheckType('list')\"\n ></i>\n <i\n class=\"api-icon icon-card\"\n :class=\"{'active': type === 'card'}\"\n title=\"卡片展示\"\n @click=\"onCheckType('card')\"\n ></i>\n </div>\n </header>\n <main>\n <section class=\"projects\" v-if=\"type==='card'\">\n <div class=\"project-card\" @click=\"onAdd\">\n <div class=\"add-card\">\n <i-icon type=\"md-add\" />\n <p>新建项目</p>\n </div>\n </div>\n <u-card\n v-for=\"item in dataList\"\n :data=\"item\"\n :key=\"item.id\"\n @on-delete=\"onDelete\"\n @on-detail=\"onDetail\"\n @on-edit=\"onEdit\"\n @on-export=\"onExport\"\n ></u-card>\n </section>\n <section class=\"projects\" v-else>\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <span @click=\"onExport(row)\" class=\"action-btn export\"\n ><i class=\"api-icon icon-export projects-icon-export\" title=\"导出此项目\"></i\n ></span>\n <span @click=\"onDetail(row)\" class=\"action-btn detail\"\n ><i class=\"api-icon icon-detail\" title=\"详情\"></i\n ></span>\n <span @click=\"onEdit(row)\" class=\"action-btn detail\"\n ><i class=\"api-icon icon-edit\" title=\"修改\"></i\n ></span>\n <u-confirm\n title=\"删除项目\"\n @on-ok=\"onDelete(row)\"\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\n >\n <span class=\"action-btn delete\"\n ><i\n class=\"api-icon icon-delete\"\n title=\"删除\"\n ></i\n ></span>\n </u-confirm>\n </template>\n </i-table>\n </section>\n </main>\n </main>\n <u-add-modal :visiable.sync=\"showAddModal\" :data=\"current\">\n <footer slot=\"footer\">\n <i-button @click=\"showAddModal = false\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary \" @click=\"onSave\"\n >确定</i-button\n >\n </footer>\n </u-add-modal>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n</article>\n"
|
|
47025
47067
|
|
|
47026
47068
|
/***/ }),
|
|
47027
47069
|
|
|
@@ -47195,7 +47237,7 @@ module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefi
|
|
|
47195
47237
|
/***/ "d63e":
|
|
47196
47238
|
/***/ (function(module, exports) {
|
|
47197
47239
|
|
|
47198
|
-
module.exports = "<article class=\"project-detail\">\r\n <header>\r\n <div class=\"environment\">\r\n <p>{{projectName}}</p>\r\n <!-- <span>环境变量:</span> -->\r\n <!-- <i-select class=\"diy-select\"></i-select> -->\r\n </div>\r\n <div class=\"btns\">\r\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\r\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\r\n <i-button type=\"primary\" class=\"diy-btn-primary button-back\" ghost icon=\"md-return-left\" @click=\"onBack\">返回列表</i-button>\r\n <i-button v-show=\"active.id\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onToggleLayout\"><i class=\"api-icon icon-switch\"></i>切换布局</i-button>\r\n </div>\r\n </header>\r\n <!-- <main> -->\r\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\r\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" @on-edit-interface-success=\"onEditInterfaceSuccess\" :project-id=\"projectId\"></u-tree>\r\n <section slot=\"right\" class=\"interface-box\">\r\n <header class=\"interface-bar\">\r\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\r\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\r\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\r\n ></swiper-slide>\r\n </swiper>\r\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\r\n <span>{{item.name}}</span>\r\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\r\n </div> -->\r\n </header>\r\n <u-settings :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\"></u-settings>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <!-- </main> -->\r\n <u-global-modal :visiable.sync=\"showGlobalModal\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\r\n </footer>\r\n </u-global-modal>\r\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\r\n</article>\r\n"
|
|
47240
|
+
module.exports = "<article class=\"project-detail\">\r\n <header>\r\n <div class=\"environment\">\r\n <p>{{projectName}}</p>\r\n <!-- <span>环境变量:</span> -->\r\n <!-- <i-select class=\"diy-select\"></i-select> -->\r\n </div>\r\n <div class=\"btns\">\r\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\r\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\r\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary security-btn\" ghost @click=\"onSecurity\"><i class=\"iconfont icon-xinzengzhibiao\"></i>授权认证</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary button-back\" ghost icon=\"md-return-left\" @click=\"onBack\">返回列表</i-button>\r\n <i-button v-show=\"active.id\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onToggleLayout\"><i class=\"api-icon icon-switch\"></i>切换布局</i-button>\r\n </div>\r\n </header>\r\n <!-- <main> -->\r\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\r\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" @on-edit-interface-success=\"onEditInterfaceSuccess\" :project-id=\"projectId\"></u-tree>\r\n <section slot=\"right\" class=\"interface-box\">\r\n <header class=\"interface-bar\">\r\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\r\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\r\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\r\n ></swiper-slide>\r\n </swiper>\r\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\r\n <span>{{item.name}}</span>\r\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\r\n </div> -->\r\n </header>\r\n <u-settings :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\"></u-settings>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <!-- </main> -->\r\n <u-global-modal :visiable.sync=\"showGlobalModal\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\r\n </footer>\r\n </u-global-modal>\r\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\r\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectId\"></u-security-modal>\r\n</article>\r\n"
|
|
47199
47241
|
|
|
47200
47242
|
/***/ }),
|
|
47201
47243
|
|
|
@@ -47331,7 +47373,7 @@ module.exports = "<div class=\"v-parameter-list-container\">\r\n <main>\r\n
|
|
|
47331
47373
|
/***/ "d8e7":
|
|
47332
47374
|
/***/ (function(module, exports) {
|
|
47333
47375
|
|
|
47334
|
-
module.exports = "<!DOCTYPE html>\
|
|
47376
|
+
module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-info-wrapper\">\n <header class=\"header\">\n {{title}}\n </header>\n <main>\n <i-form ref=\"form\" class=\"info-form\" :model=\"model\" :rules=\"rules\">\n <i-row>\n <section class=\"title-g\">基本信息</section>\n <i-form-item label=\"名称:\" prop=\"name\">\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"model.name\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n <i-form-item label=\"编码:\" prop=\"code\">\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"model.code\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n <i-form-item class=\"full-width\" label=\"描述:\">\n <i-input type=\"textarea\" class=\"diy-input-textarea\" :rows=\"1\" placeholder=\"请输入描述\" v-model=\"model.description\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n </i-row>\n <i-row>\n <section class=\"title-g\">待合并列表</section>\n <section class=\"to-combine-list\">\n <template v-if=\"isEdit\">\n <i-button class=\"diy-btn-default\" @click=\"onAddDataModel\">添加数据模型</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onAddApiProject\">添加 API</i-button>\n </template>\n <i-table class=\"diy-table\" :columns=\"relationColumns\" :data=\"model.relations\">\n <template #type=\"{row}\">\n <span>{{row.type==='MODEL'?'数据模型':row.type==='API'?'API':''}}</span>\n </template>\n <template #operates=\"{row,index}\">\n <div class=\"row-actions\">\n <i title=\"查看\" class=\"iconfont icon-detail\" @click=\"onDetail(row)\"></i>\n <i-poptip v-if=\"isEdit\" confirm transfer title=\"确认删除这条数据吗?\" @on-ok=\"onRelationDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </template>\n </i-table>\n </section>\n </i-row>\n <i-row>\n <section class=\"title-g\">参数详情</section>\n <section class=\"parameter-detail\">\n <section class=\"card-panel card-panel-no-right-border\">\n <i-tabs>\n <i-tab-pane label=\"请求参数\" name=\"request\">\n <u-request-parameter-list :data=\"model.reqParams\" :isEdit=\"isEdit\"></u-request-parameter-list>\n </i-tab-pane>\n <i-tab-pane label=\"响应参数\" name=\"response\">\n <u-response-parameter-list :data=\"model.respParams\" :isEdit=\"isEdit\"></u-response-parameter-list>\n </i-tab-pane>\n </i-tabs>\n </section>\n <section class=\"card-panel\">\n <div class=\"card-panel-header\">\n <div>\n <span>执行脚本</span>\n <i-icon class=\"help-icon\" type=\"md-alert\" @click=\"onOpenDoc\" title=\"帮助文档\"> </i-icon>\n </div>\n <span class=\"action-text\" @click.stop=\"onOpenTest\">\n <i class=\"iconfont icon-run\"></i>\n <span>试运行</span>\n </span>\n </div>\n <div class=\"card-panel-main\">\n <u-base-editor class=\"editor\" :data.sync=\"model.content\" :readOnly=\"!isEdit\"></u-base-editor>\n </div>\n </section>\n </section>\n </i-row>\n </i-form>\n </main>\n <footer>\n <template v-if=\"isEdit\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onSave\">确定</i-button>\n <i-button type=\"text\" class=\"diy-btn-text\" @click.stop=\"onBack\">取消</i-button>\n </template>\n <template v-else>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onBack\">关闭</i-button>\n </template>\n </footer>\n <u-data-model-modal v-model=\"dataModelShow\" :data=\"dataModelRelations\" @save=\"onRelationsSave\"></u-data-model-modal>\n <u-api-project-modal v-model=\"apiProjectShow\" :data=\"apiProjectRelations\" @save=\"onRelationsSave\"></u-api-project-modal>\n <u-data-model-doc-modal v-model=\"dataModelDocShow\" :doc=\"dataModelDoc\"></u-data-model-doc-modal>\n <u-api-project-detail-modal :visiable.sync=\"apiProjectDetailShow\" :model=\"apiProjectDetail\"></u-api-project-detail-modal>\n <u-test-run-modal :visible.sync=\"testShow\" :params=\"model.reqParams\" :data=\"testResult\" @on-run=\"onTestRun\"></u-test-run-modal>\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\n</article>\n"
|
|
47335
47377
|
|
|
47336
47378
|
/***/ }),
|
|
47337
47379
|
|
|
@@ -48424,7 +48466,7 @@ if ($stringify) {
|
|
|
48424
48466
|
/***/ "ef27":
|
|
48425
48467
|
/***/ (function(module, exports) {
|
|
48426
48468
|
|
|
48427
|
-
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\
|
|
48469
|
+
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\n <header>{{data.name}}</header>\n <i-dropdown transfer transfer-class-name=\"api-project-oprate\" class=\"project-card-i-dropdown\" @on-click=\"onClick\">\n <i-icon type=\"ios-more\" />\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item :name=\"'export'\">\n <i\n class=\"api-icon icon-export project-card-i-dropdown-item-icon\"\n title=\"导出此项目\"\n @click.stop=\"onExport\"\n ></i>\n 导出此项目\n </i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n <main></main>\n <footer>\n <div @click.stop=\"onEdit\">修改</div>\n <u-confirm\n class=\"delete\"\n title=\"删除项目\"\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\n @on-ok=\"onDelete\"\n >\n <span>删除</span>\n </u-confirm>\n </footer>\n</article>\n"
|
|
48428
48470
|
|
|
48429
48471
|
/***/ }),
|
|
48430
48472
|
|
|
@@ -48564,7 +48606,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48564
48606
|
/***/ "f40e":
|
|
48565
48607
|
/***/ (function(module, exports) {
|
|
48566
48608
|
|
|
48567
|
-
module.exports = "<article class=\"interface-settings\">\r\n <header>\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">\r\n <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">\r\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n </i-input>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onRun\">发送</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onVersion\" ghost>查看历史版本</i-button>\r\n <i-icon class=\"export\" title=\"导出\" type=\"md-download\" @click=\"onExport\" />\r\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i-icon class=\"import\" title=\"导入\" type=\"md-cloud-upload\" />\r\n </i-upload>\r\n </header>\r\n <main :class=\"{'transverse': !lengthwise}\">\r\n <section class=\"request\">\r\n <div class=\"request-bar\">\r\n <div\r\n class=\"tag\"\r\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\r\n v-for=\"(item,index) in requertSettingTypeList\"\r\n :key=\"item.name\"\r\n @click=\"onClickRequertSettingTpye(item)\"\r\n >\r\n <span>{{item.title}}</span>\r\n </div>\r\n </div>\r\n <div class=\"request-content\">\r\n <component\r\n :is=\"currentRequestSettingType.name\"\r\n :lengthwise=\"lengthwise\"\r\n :interface-model=\"interfaceModel\"\r\n :response=\"response\"\r\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\r\n ></component>\r\n </div>\r\n </section>\r\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\r\n </main>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n</article>\r\n"
|
|
48609
|
+
module.exports = "<article class=\"interface-settings\">\r\n <header>\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">\r\n <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">\r\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n </i-input>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onRun\">发送</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onVersion\" ghost>查看历史版本</i-button>\r\n <i-icon class=\"export\" title=\"导出\" type=\"md-download\" @click=\"onExport\" />\r\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i-icon class=\"import\" title=\"导入\" type=\"md-cloud-upload\" />\r\n </i-upload>\r\n </header>\r\n <main :class=\"{'transverse': !lengthwise}\">\r\n <section class=\"request\">\r\n <div class=\"request-bar\">\r\n <div\r\n class=\"tag\"\r\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\r\n v-for=\"(item,index) in requertSettingTypeList\"\r\n :key=\"item.name\"\r\n @click=\"onClickRequertSettingTpye(item)\"\r\n >\r\n <span>{{item.title}}</span>\r\n </div>\r\n </div>\r\n <div class=\"request-content\">\r\n <component\r\n :is=\"currentRequestSettingType.name\"\r\n :lengthwise=\"lengthwise\"\r\n :interface-model=\"interfaceModel\"\r\n :response=\"response\"\r\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\r\n :projectID=\"projectId\"\r\n :currentSecurityID=\"currentId\"\r\n @on-current-id=\"onCurrentId\"\r\n ></component>\r\n </div>\r\n </section>\r\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\r\n </main>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n</article>\r\n"
|
|
48568
48610
|
|
|
48569
48611
|
/***/ }),
|
|
48570
48612
|
|
|
@@ -49235,6 +49277,35 @@ function () {
|
|
|
49235
49277
|
}
|
|
49236
49278
|
|
|
49237
49279
|
return "";
|
|
49280
|
+
}; // 查找当前目录节点的所有父节点id数据
|
|
49281
|
+
|
|
49282
|
+
|
|
49283
|
+
TreeDataUtil.treeNodeFatherArray = function (treeList, id) {
|
|
49284
|
+
if (treeList === void 0) {
|
|
49285
|
+
treeList = [];
|
|
49286
|
+
}
|
|
49287
|
+
|
|
49288
|
+
var arr = [];
|
|
49289
|
+
|
|
49290
|
+
for (var _i = 0, treeList_2 = treeList; _i < treeList_2.length; _i++) {
|
|
49291
|
+
var node = treeList_2[_i];
|
|
49292
|
+
|
|
49293
|
+
if (node.id === id) {
|
|
49294
|
+
arr.push(node);
|
|
49295
|
+
return arr;
|
|
49296
|
+
}
|
|
49297
|
+
|
|
49298
|
+
if (node.children && node.children.length) {
|
|
49299
|
+
arr = TreeDataUtil.treeNodeFatherArray(node.children, id);
|
|
49300
|
+
|
|
49301
|
+
if (arr.length > 0) {
|
|
49302
|
+
arr.unshift(node);
|
|
49303
|
+
return arr;
|
|
49304
|
+
}
|
|
49305
|
+
}
|
|
49306
|
+
}
|
|
49307
|
+
|
|
49308
|
+
return [];
|
|
49238
49309
|
};
|
|
49239
49310
|
|
|
49240
49311
|
return TreeDataUtil;
|
|
@@ -51687,6 +51758,7 @@ var tree_generator = undefined && undefined.__generator || function (thisArg, bo
|
|
|
51687
51758
|
|
|
51688
51759
|
|
|
51689
51760
|
|
|
51761
|
+
|
|
51690
51762
|
var tree_Tree =
|
|
51691
51763
|
/** @class */
|
|
51692
51764
|
function (_super) {
|
|
@@ -51975,9 +52047,13 @@ function (_super) {
|
|
|
51975
52047
|
}
|
|
51976
52048
|
};
|
|
51977
52049
|
|
|
51978
|
-
Tree.prototype.onSelect = function (data) {
|
|
52050
|
+
Tree.prototype.onSelect = function (data, isQuery) {
|
|
52051
|
+
if (isQuery === void 0) {
|
|
52052
|
+
isQuery = true;
|
|
52053
|
+
}
|
|
52054
|
+
|
|
51979
52055
|
this.selectItem = data;
|
|
51980
|
-
this.$emit("on-select", this.selectItem);
|
|
52056
|
+
this.$emit("on-select", this.selectItem, isQuery);
|
|
51981
52057
|
};
|
|
51982
52058
|
|
|
51983
52059
|
Tree.prototype.initSelectItemChange = function () {
|
|
@@ -51988,6 +52064,37 @@ function (_super) {
|
|
|
51988
52064
|
}
|
|
51989
52065
|
};
|
|
51990
52066
|
|
|
52067
|
+
Tree.prototype.watchTaskID = function (nv) {
|
|
52068
|
+
if (nv) {
|
|
52069
|
+
var arr = TreeDataUtil.treeNodeFatherArray(this.data, nv);
|
|
52070
|
+
|
|
52071
|
+
if (arr.length > 0) {
|
|
52072
|
+
for (var i = 0; i < arr.length; i++) {
|
|
52073
|
+
if (i === arr.length - 1) {
|
|
52074
|
+
this.onSelect(arr[i], false);
|
|
52075
|
+
} else {
|
|
52076
|
+
arr[i].expand = true;
|
|
52077
|
+
this.onToggleExpand(arr[i]);
|
|
52078
|
+
}
|
|
52079
|
+
}
|
|
52080
|
+
}
|
|
52081
|
+
|
|
52082
|
+
this.$nextTick(function () {
|
|
52083
|
+
clearTimeout();
|
|
52084
|
+
var element = document.getElementsByClassName("ivu-tree-title-selected");
|
|
52085
|
+
|
|
52086
|
+
if (element.length) {
|
|
52087
|
+
setTimeout(function () {
|
|
52088
|
+
element[0].scrollIntoView({
|
|
52089
|
+
behavior: "smooth",
|
|
52090
|
+
block: "center"
|
|
52091
|
+
});
|
|
52092
|
+
}, 200);
|
|
52093
|
+
}
|
|
52094
|
+
});
|
|
52095
|
+
}
|
|
52096
|
+
};
|
|
52097
|
+
|
|
51991
52098
|
Tree.prototype.onAddTreeNode = function () {
|
|
51992
52099
|
this.tempNode = {
|
|
51993
52100
|
name: "",
|
|
@@ -52167,10 +52274,18 @@ function (_super) {
|
|
|
52167
52274
|
|
|
52168
52275
|
tree_decorate([autowired(tree_service), tree_metadata("design:type", typeof (_a = typeof tree_service !== "undefined" && tree_service) === "function" ? _a : Object)], Tree.prototype, "service", void 0);
|
|
52169
52276
|
|
|
52277
|
+
tree_decorate([Object(flagwind_web_["config"])({
|
|
52278
|
+
default: ""
|
|
52279
|
+
}), tree_metadata("design:type", String)], Tree.prototype, "taskCategoryID", void 0);
|
|
52280
|
+
|
|
52170
52281
|
tree_decorate([Object(flagwind_web_["watch"])("initSelectItem", {
|
|
52171
52282
|
immediate: true
|
|
52172
52283
|
}), tree_metadata("design:type", Function), tree_metadata("design:paramtypes", []), tree_metadata("design:returntype", void 0)], Tree.prototype, "initSelectItemChange", null);
|
|
52173
52284
|
|
|
52285
|
+
tree_decorate([Object(flagwind_web_["watch"])("taskCategoryID", {
|
|
52286
|
+
immediate: false
|
|
52287
|
+
}), tree_metadata("design:type", Function), tree_metadata("design:paramtypes", [String]), tree_metadata("design:returntype", void 0)], Tree.prototype, "watchTaskID", null);
|
|
52288
|
+
|
|
52174
52289
|
Tree = tree_decorate([Object(flagwind_web_["component"])({
|
|
52175
52290
|
template: __webpack_require__("46d3"),
|
|
52176
52291
|
components: {
|
|
@@ -52613,6 +52728,7 @@ function (_super) {
|
|
|
52613
52728
|
name: undefined,
|
|
52614
52729
|
code: undefined
|
|
52615
52730
|
};
|
|
52731
|
+
_this.taskCategoryID = "";
|
|
52616
52732
|
return _this;
|
|
52617
52733
|
}
|
|
52618
52734
|
|
|
@@ -52634,9 +52750,12 @@ function (_super) {
|
|
|
52634
52750
|
}
|
|
52635
52751
|
};
|
|
52636
52752
|
|
|
52637
|
-
ProjectCombineManage.prototype.onNodeSelect = function (node) {
|
|
52638
|
-
|
|
52639
|
-
|
|
52753
|
+
ProjectCombineManage.prototype.onNodeSelect = function (node, isQuery) {
|
|
52754
|
+
if (isQuery) {
|
|
52755
|
+
this.taskCategoryID = "";
|
|
52756
|
+
this.currentNode = node;
|
|
52757
|
+
this.onQuery();
|
|
52758
|
+
}
|
|
52640
52759
|
};
|
|
52641
52760
|
|
|
52642
52761
|
ProjectCombineManage.prototype.onReset = function () {
|
|
@@ -52985,6 +53104,12 @@ function (_super) {
|
|
|
52985
53104
|
}
|
|
52986
53105
|
};
|
|
52987
53106
|
|
|
53107
|
+
ProjectCombineManage.prototype.onRowClick = function (row, index) {
|
|
53108
|
+
if (this.currentNode.id === "virtual_root_directory") {
|
|
53109
|
+
this.taskCategoryID = row.categoryId;
|
|
53110
|
+
}
|
|
53111
|
+
};
|
|
53112
|
+
|
|
52988
53113
|
var _a;
|
|
52989
53114
|
|
|
52990
53115
|
project_combine_decorate([autowired(project_combine_service), project_combine_metadata("design:type", typeof (_a = typeof project_combine_service !== "undefined" && project_combine_service) === "function" ? _a : Object)], ProjectCombineManage.prototype, "service", void 0);
|
|
@@ -58139,6 +58264,7 @@ function () {
|
|
|
58139
58264
|
this.content = "";
|
|
58140
58265
|
this.location = "";
|
|
58141
58266
|
this.locationKey = "";
|
|
58267
|
+
this.id = "";
|
|
58142
58268
|
}
|
|
58143
58269
|
|
|
58144
58270
|
return Authentication;
|
|
@@ -58349,6 +58475,22 @@ function (_super) {
|
|
|
58349
58475
|
return this._get("/unity/api/project/".concat(id));
|
|
58350
58476
|
};
|
|
58351
58477
|
|
|
58478
|
+
ApiService.prototype.getSecurityList = function (data) {
|
|
58479
|
+
return this._post("/unity/api/authentication/list", data);
|
|
58480
|
+
};
|
|
58481
|
+
|
|
58482
|
+
ApiService.prototype.deleteSecurityItem = function (id) {
|
|
58483
|
+
return this._delete("/unity/api/authentication/".concat(id));
|
|
58484
|
+
};
|
|
58485
|
+
|
|
58486
|
+
ApiService.prototype.addSecurityItem = function (data) {
|
|
58487
|
+
return this._post("/unity/api/authentication", data);
|
|
58488
|
+
};
|
|
58489
|
+
|
|
58490
|
+
ApiService.prototype.updateSecurityItem = function (data) {
|
|
58491
|
+
return this._put("/unity/api/authentication", data);
|
|
58492
|
+
};
|
|
58493
|
+
|
|
58352
58494
|
var _a, _b;
|
|
58353
58495
|
|
|
58354
58496
|
project_detail_service_decorate([serviceHandler("query", {
|
|
@@ -58415,6 +58557,28 @@ function (_super) {
|
|
|
58415
58557
|
title: "项目详情"
|
|
58416
58558
|
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [String]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "projectInfo", null);
|
|
58417
58559
|
|
|
58560
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
58561
|
+
title: "授权认证列表查询"
|
|
58562
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "getSecurityList", null);
|
|
58563
|
+
|
|
58564
|
+
project_detail_service_decorate([serviceHandler("save", {
|
|
58565
|
+
title: "删除授权认证",
|
|
58566
|
+
showTip: true,
|
|
58567
|
+
showErrorMsg: true
|
|
58568
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [String]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "deleteSecurityItem", null);
|
|
58569
|
+
|
|
58570
|
+
project_detail_service_decorate([serviceHandler("save", {
|
|
58571
|
+
title: "新增授权认证",
|
|
58572
|
+
showTip: true,
|
|
58573
|
+
showErrorMsg: true
|
|
58574
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "addSecurityItem", null);
|
|
58575
|
+
|
|
58576
|
+
project_detail_service_decorate([serviceHandler("save", {
|
|
58577
|
+
title: "更新授权认证",
|
|
58578
|
+
showTip: true,
|
|
58579
|
+
showErrorMsg: true
|
|
58580
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "updateSecurityItem", null);
|
|
58581
|
+
|
|
58418
58582
|
return ApiService;
|
|
58419
58583
|
}(common_service);
|
|
58420
58584
|
|
|
@@ -61504,359 +61668,1401 @@ var security_setting_generator = undefined && undefined.__generator || function
|
|
|
61504
61668
|
|
|
61505
61669
|
|
|
61506
61670
|
|
|
61507
|
-
var security_setting_SecuritySetting =
|
|
61508
|
-
/** @class */
|
|
61509
|
-
function (_super) {
|
|
61510
|
-
security_setting_extends(SecuritySetting, _super);
|
|
61511
|
-
|
|
61512
|
-
function SecuritySetting() {
|
|
61513
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
61514
|
-
|
|
61515
|
-
_this.securityTypeList = [];
|
|
61516
|
-
_this.tokenLocationTypeList = [];
|
|
61517
|
-
_this.grantTypeList = [];
|
|
61518
|
-
_this.model = {};
|
|
61519
|
-
return _this;
|
|
61520
|
-
}
|
|
61521
|
-
|
|
61522
|
-
SecuritySetting.prototype.mounted = function () {
|
|
61523
|
-
var _a, _b;
|
|
61524
|
-
|
|
61525
|
-
this.getSecurityTypeList();
|
|
61526
|
-
this.getTokenLocationTypeList();
|
|
61527
|
-
this.getGrantTypeList();
|
|
61528
|
-
this.model = ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.content) ? JSON.parse((_b = this.interfaceModel.authentication) === null || _b === void 0 ? void 0 : _b.content) : {};
|
|
61529
|
-
};
|
|
61530
|
-
|
|
61531
|
-
SecuritySetting.prototype.getSecurityTypeList = function () {
|
|
61532
|
-
return security_setting_awaiter(this, void 0, void 0, function () {
|
|
61533
|
-
var result;
|
|
61534
|
-
return security_setting_generator(this, function (_a) {
|
|
61535
|
-
switch (_a.label) {
|
|
61536
|
-
case 0:
|
|
61537
|
-
return [4
|
|
61538
|
-
/*yield*/
|
|
61539
|
-
, this.service.getEnumByType("authenticationType")];
|
|
61540
|
-
|
|
61541
|
-
case 1:
|
|
61542
|
-
result = _a.sent();
|
|
61543
|
-
this.securityTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61544
|
-
return [2
|
|
61545
|
-
/*return*/
|
|
61546
|
-
];
|
|
61547
|
-
}
|
|
61548
|
-
});
|
|
61549
|
-
});
|
|
61550
|
-
};
|
|
61551
|
-
|
|
61552
|
-
SecuritySetting.prototype.getTokenLocationTypeList = function () {
|
|
61553
|
-
return security_setting_awaiter(this, void 0, void 0, function () {
|
|
61554
|
-
var result;
|
|
61555
|
-
return security_setting_generator(this, function (_a) {
|
|
61556
|
-
switch (_a.label) {
|
|
61557
|
-
case 0:
|
|
61558
|
-
return [4
|
|
61559
|
-
/*yield*/
|
|
61560
|
-
, this.service.getEnumByType("tokenLocationType")];
|
|
61561
|
-
|
|
61562
|
-
case 1:
|
|
61563
|
-
result = _a.sent();
|
|
61564
|
-
this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61565
|
-
return [2
|
|
61566
|
-
/*return*/
|
|
61567
|
-
];
|
|
61568
|
-
}
|
|
61569
|
-
});
|
|
61570
|
-
});
|
|
61571
|
-
};
|
|
61572
|
-
|
|
61573
|
-
SecuritySetting.prototype.getGrantTypeList = function () {
|
|
61574
|
-
return security_setting_awaiter(this, void 0, void 0, function () {
|
|
61575
|
-
var result;
|
|
61576
|
-
return security_setting_generator(this, function (_a) {
|
|
61577
|
-
switch (_a.label) {
|
|
61578
|
-
case 0:
|
|
61579
|
-
return [4
|
|
61580
|
-
/*yield*/
|
|
61581
|
-
, this.service.getEnumByType("grantType")];
|
|
61582
|
-
|
|
61583
|
-
case 1:
|
|
61584
|
-
result = _a.sent();
|
|
61585
|
-
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61586
|
-
return [2
|
|
61587
|
-
/*return*/
|
|
61588
|
-
];
|
|
61589
|
-
}
|
|
61590
|
-
});
|
|
61591
|
-
});
|
|
61592
|
-
};
|
|
61593
|
-
|
|
61594
|
-
SecuritySetting.prototype.modelChange = function () {
|
|
61595
|
-
this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
|
|
61596
|
-
this.interfaceModel.authentication.content = JSON.stringify(this.model);
|
|
61597
|
-
};
|
|
61598
|
-
|
|
61599
|
-
SecuritySetting.prototype.onClear = function () {
|
|
61600
|
-
this.model = {};
|
|
61601
|
-
};
|
|
61602
|
-
|
|
61603
|
-
var _a, _b;
|
|
61604
|
-
|
|
61605
|
-
security_setting_decorate([Object(flagwind_web_["config"])({
|
|
61606
|
-
default: function _default() {
|
|
61607
|
-
return new InterfaceModel();
|
|
61608
|
-
}
|
|
61609
|
-
}), security_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], SecuritySetting.prototype, "interfaceModel", void 0);
|
|
61610
|
-
|
|
61611
|
-
security_setting_decorate([autowired(project_detail_service), security_setting_metadata("design:type", typeof (_b = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _b : Object)], SecuritySetting.prototype, "service", void 0);
|
|
61612
|
-
|
|
61613
|
-
security_setting_decorate([Object(flagwind_web_["watch"])("model", {
|
|
61614
|
-
deep: true
|
|
61615
|
-
}), security_setting_metadata("design:type", Function), security_setting_metadata("design:paramtypes", []), security_setting_metadata("design:returntype", void 0)], SecuritySetting.prototype, "modelChange", null);
|
|
61616
|
-
|
|
61617
|
-
SecuritySetting = security_setting_decorate([Object(flagwind_web_["component"])({
|
|
61618
|
-
template: __webpack_require__("b676"),
|
|
61619
|
-
components: {
|
|
61620
|
-
"u-tips-form-label": tips_form_label
|
|
61621
|
-
}
|
|
61622
|
-
})], SecuritySetting);
|
|
61623
|
-
return SecuritySetting;
|
|
61624
|
-
}(flagwind_web_["Component"]);
|
|
61625
|
-
|
|
61626
|
-
/* harmony default export */ var project_detail_security_setting = (security_setting_SecuritySetting);
|
|
61627
|
-
// EXTERNAL MODULE: ./src/views/project-detail/interface-settings/index.scss
|
|
61628
|
-
var interface_settings = __webpack_require__("2a79");
|
|
61629
|
-
|
|
61630
|
-
//
|
|
61631
|
-
|
|
61632
|
-
|
|
61633
|
-
|
|
61634
|
-
|
|
61635
|
-
|
|
61636
|
-
|
|
61637
|
-
|
|
61638
|
-
|
|
61639
|
-
|
|
61640
|
-
|
|
61641
|
-
|
|
61642
|
-
|
|
61643
|
-
|
|
61644
|
-
|
|
61645
|
-
|
|
61646
|
-
|
|
61647
|
-
|
|
61648
|
-
|
|
61649
|
-
|
|
61650
|
-
|
|
61651
|
-
|
|
61652
|
-
|
|
61653
|
-
|
|
61654
|
-
|
|
61655
|
-
_extendStatics
|
|
61656
|
-
|
|
61657
|
-
|
|
61658
|
-
|
|
61659
|
-
|
|
61660
|
-
|
|
61661
|
-
|
|
61662
|
-
|
|
61663
|
-
|
|
61664
|
-
|
|
61665
|
-
|
|
61666
|
-
|
|
61667
|
-
|
|
61668
|
-
|
|
61669
|
-
|
|
61670
|
-
|
|
61671
|
-
|
|
61672
|
-
|
|
61673
|
-
|
|
61674
|
-
|
|
61675
|
-
|
|
61676
|
-
|
|
61677
|
-
|
|
61678
|
-
|
|
61679
|
-
}
|
|
61680
|
-
|
|
61681
|
-
var
|
|
61682
|
-
|
|
61683
|
-
|
|
61684
|
-
|
|
61685
|
-
|
|
61686
|
-
|
|
61687
|
-
|
|
61688
|
-
|
|
61689
|
-
|
|
61690
|
-
|
|
61691
|
-
|
|
61692
|
-
|
|
61693
|
-
|
|
61694
|
-
|
|
61695
|
-
}
|
|
61696
|
-
|
|
61697
|
-
|
|
61698
|
-
|
|
61699
|
-
|
|
61700
|
-
|
|
61701
|
-
|
|
61702
|
-
|
|
61703
|
-
}
|
|
61704
|
-
|
|
61705
|
-
|
|
61706
|
-
|
|
61707
|
-
|
|
61708
|
-
|
|
61709
|
-
|
|
61710
|
-
|
|
61711
|
-
|
|
61712
|
-
|
|
61713
|
-
|
|
61714
|
-
|
|
61715
|
-
|
|
61716
|
-
|
|
61717
|
-
|
|
61718
|
-
|
|
61719
|
-
|
|
61720
|
-
|
|
61721
|
-
|
|
61722
|
-
|
|
61723
|
-
|
|
61724
|
-
|
|
61725
|
-
|
|
61726
|
-
|
|
61727
|
-
|
|
61728
|
-
|
|
61729
|
-
|
|
61730
|
-
|
|
61731
|
-
|
|
61732
|
-
|
|
61733
|
-
|
|
61734
|
-
|
|
61735
|
-
|
|
61736
|
-
|
|
61737
|
-
|
|
61738
|
-
|
|
61739
|
-
|
|
61740
|
-
|
|
61741
|
-
|
|
61742
|
-
|
|
61743
|
-
|
|
61744
|
-
|
|
61745
|
-
|
|
61746
|
-
|
|
61747
|
-
|
|
61748
|
-
|
|
61749
|
-
|
|
61750
|
-
|
|
61751
|
-
|
|
61752
|
-
|
|
61753
|
-
|
|
61754
|
-
|
|
61755
|
-
|
|
61756
|
-
|
|
61757
|
-
|
|
61758
|
-
|
|
61759
|
-
|
|
61760
|
-
|
|
61761
|
-
|
|
61762
|
-
|
|
61763
|
-
|
|
61764
|
-
|
|
61765
|
-
|
|
61766
|
-
|
|
61767
|
-
|
|
61768
|
-
|
|
61769
|
-
|
|
61770
|
-
|
|
61771
|
-
|
|
61772
|
-
|
|
61773
|
-
|
|
61774
|
-
|
|
61775
|
-
|
|
61776
|
-
|
|
61777
|
-
|
|
61778
|
-
|
|
61779
|
-
|
|
61780
|
-
|
|
61781
|
-
|
|
61782
|
-
|
|
61783
|
-
|
|
61784
|
-
|
|
61785
|
-
|
|
61786
|
-
|
|
61787
|
-
|
|
61788
|
-
|
|
61789
|
-
|
|
61790
|
-
|
|
61791
|
-
|
|
61792
|
-
|
|
61793
|
-
|
|
61794
|
-
|
|
61795
|
-
|
|
61796
|
-
|
|
61797
|
-
|
|
61798
|
-
|
|
61799
|
-
|
|
61800
|
-
|
|
61801
|
-
|
|
61802
|
-
|
|
61803
|
-
|
|
61804
|
-
|
|
61805
|
-
|
|
61806
|
-
|
|
61807
|
-
|
|
61808
|
-
|
|
61809
|
-
|
|
61810
|
-
|
|
61811
|
-
|
|
61812
|
-
|
|
61813
|
-
|
|
61814
|
-
|
|
61815
|
-
|
|
61816
|
-
|
|
61817
|
-
|
|
61818
|
-
|
|
61819
|
-
|
|
61820
|
-
|
|
61821
|
-
|
|
61822
|
-
|
|
61823
|
-
|
|
61824
|
-
|
|
61825
|
-
|
|
61826
|
-
|
|
61827
|
-
|
|
61828
|
-
|
|
61829
|
-
|
|
61830
|
-
|
|
61831
|
-
|
|
61832
|
-
|
|
61833
|
-
|
|
61834
|
-
|
|
61835
|
-
|
|
61836
|
-
|
|
61837
|
-
|
|
61838
|
-
|
|
61839
|
-
|
|
61840
|
-
|
|
61841
|
-
|
|
61842
|
-
|
|
61843
|
-
|
|
61844
|
-
|
|
61845
|
-
|
|
61846
|
-
|
|
61847
|
-
return
|
|
61848
|
-
|
|
61849
|
-
|
|
61850
|
-
|
|
61851
|
-
|
|
61852
|
-
|
|
61853
|
-
|
|
61854
|
-
|
|
61855
|
-
|
|
61856
|
-
|
|
61857
|
-
|
|
61858
|
-
|
|
61859
|
-
|
|
61671
|
+
var security_setting_SecuritySetting =
|
|
61672
|
+
/** @class */
|
|
61673
|
+
function (_super) {
|
|
61674
|
+
security_setting_extends(SecuritySetting, _super);
|
|
61675
|
+
|
|
61676
|
+
function SecuritySetting() {
|
|
61677
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
61678
|
+
|
|
61679
|
+
_this.securityTypeList = [];
|
|
61680
|
+
_this.tokenLocationTypeList = [];
|
|
61681
|
+
_this.grantTypeList = [];
|
|
61682
|
+
_this.model = {};
|
|
61683
|
+
return _this;
|
|
61684
|
+
}
|
|
61685
|
+
|
|
61686
|
+
SecuritySetting.prototype.mounted = function () {
|
|
61687
|
+
var _a, _b;
|
|
61688
|
+
|
|
61689
|
+
this.getSecurityTypeList();
|
|
61690
|
+
this.getTokenLocationTypeList();
|
|
61691
|
+
this.getGrantTypeList();
|
|
61692
|
+
this.model = ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.content) ? JSON.parse((_b = this.interfaceModel.authentication) === null || _b === void 0 ? void 0 : _b.content) : {};
|
|
61693
|
+
};
|
|
61694
|
+
|
|
61695
|
+
SecuritySetting.prototype.getSecurityTypeList = function () {
|
|
61696
|
+
return security_setting_awaiter(this, void 0, void 0, function () {
|
|
61697
|
+
var result;
|
|
61698
|
+
return security_setting_generator(this, function (_a) {
|
|
61699
|
+
switch (_a.label) {
|
|
61700
|
+
case 0:
|
|
61701
|
+
return [4
|
|
61702
|
+
/*yield*/
|
|
61703
|
+
, this.service.getEnumByType("authenticationType")];
|
|
61704
|
+
|
|
61705
|
+
case 1:
|
|
61706
|
+
result = _a.sent();
|
|
61707
|
+
this.securityTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61708
|
+
return [2
|
|
61709
|
+
/*return*/
|
|
61710
|
+
];
|
|
61711
|
+
}
|
|
61712
|
+
});
|
|
61713
|
+
});
|
|
61714
|
+
};
|
|
61715
|
+
|
|
61716
|
+
SecuritySetting.prototype.getTokenLocationTypeList = function () {
|
|
61717
|
+
return security_setting_awaiter(this, void 0, void 0, function () {
|
|
61718
|
+
var result;
|
|
61719
|
+
return security_setting_generator(this, function (_a) {
|
|
61720
|
+
switch (_a.label) {
|
|
61721
|
+
case 0:
|
|
61722
|
+
return [4
|
|
61723
|
+
/*yield*/
|
|
61724
|
+
, this.service.getEnumByType("tokenLocationType")];
|
|
61725
|
+
|
|
61726
|
+
case 1:
|
|
61727
|
+
result = _a.sent();
|
|
61728
|
+
this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61729
|
+
return [2
|
|
61730
|
+
/*return*/
|
|
61731
|
+
];
|
|
61732
|
+
}
|
|
61733
|
+
});
|
|
61734
|
+
});
|
|
61735
|
+
};
|
|
61736
|
+
|
|
61737
|
+
SecuritySetting.prototype.getGrantTypeList = function () {
|
|
61738
|
+
return security_setting_awaiter(this, void 0, void 0, function () {
|
|
61739
|
+
var result;
|
|
61740
|
+
return security_setting_generator(this, function (_a) {
|
|
61741
|
+
switch (_a.label) {
|
|
61742
|
+
case 0:
|
|
61743
|
+
return [4
|
|
61744
|
+
/*yield*/
|
|
61745
|
+
, this.service.getEnumByType("grantType")];
|
|
61746
|
+
|
|
61747
|
+
case 1:
|
|
61748
|
+
result = _a.sent();
|
|
61749
|
+
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61750
|
+
return [2
|
|
61751
|
+
/*return*/
|
|
61752
|
+
];
|
|
61753
|
+
}
|
|
61754
|
+
});
|
|
61755
|
+
});
|
|
61756
|
+
};
|
|
61757
|
+
|
|
61758
|
+
SecuritySetting.prototype.modelChange = function () {
|
|
61759
|
+
this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
|
|
61760
|
+
this.interfaceModel.authentication.content = JSON.stringify(this.model);
|
|
61761
|
+
};
|
|
61762
|
+
|
|
61763
|
+
SecuritySetting.prototype.onClear = function () {
|
|
61764
|
+
this.model = {};
|
|
61765
|
+
};
|
|
61766
|
+
|
|
61767
|
+
var _a, _b;
|
|
61768
|
+
|
|
61769
|
+
security_setting_decorate([Object(flagwind_web_["config"])({
|
|
61770
|
+
default: function _default() {
|
|
61771
|
+
return new InterfaceModel();
|
|
61772
|
+
}
|
|
61773
|
+
}), security_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], SecuritySetting.prototype, "interfaceModel", void 0);
|
|
61774
|
+
|
|
61775
|
+
security_setting_decorate([autowired(project_detail_service), security_setting_metadata("design:type", typeof (_b = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _b : Object)], SecuritySetting.prototype, "service", void 0);
|
|
61776
|
+
|
|
61777
|
+
security_setting_decorate([Object(flagwind_web_["watch"])("model", {
|
|
61778
|
+
deep: true
|
|
61779
|
+
}), security_setting_metadata("design:type", Function), security_setting_metadata("design:paramtypes", []), security_setting_metadata("design:returntype", void 0)], SecuritySetting.prototype, "modelChange", null);
|
|
61780
|
+
|
|
61781
|
+
SecuritySetting = security_setting_decorate([Object(flagwind_web_["component"])({
|
|
61782
|
+
template: __webpack_require__("b676"),
|
|
61783
|
+
components: {
|
|
61784
|
+
"u-tips-form-label": tips_form_label
|
|
61785
|
+
}
|
|
61786
|
+
})], SecuritySetting);
|
|
61787
|
+
return SecuritySetting;
|
|
61788
|
+
}(flagwind_web_["Component"]);
|
|
61789
|
+
|
|
61790
|
+
/* harmony default export */ var project_detail_security_setting = (security_setting_SecuritySetting);
|
|
61791
|
+
// EXTERNAL MODULE: ./src/views/project-detail/interface-settings/index.scss
|
|
61792
|
+
var interface_settings = __webpack_require__("2a79");
|
|
61793
|
+
|
|
61794
|
+
// EXTERNAL MODULE: ./src/views/project-detail/security-setting-v2/index.scss
|
|
61795
|
+
var security_setting_v2 = __webpack_require__("b156");
|
|
61796
|
+
|
|
61797
|
+
// EXTERNAL MODULE: ./src/views/project-detail/security-setting-v2/tips-form-label/index.scss
|
|
61798
|
+
var security_setting_v2_tips_form_label = __webpack_require__("61ef");
|
|
61799
|
+
|
|
61800
|
+
// CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/tips-form-label/index.ts
|
|
61801
|
+
|
|
61802
|
+
|
|
61803
|
+
|
|
61804
|
+
|
|
61805
|
+
|
|
61806
|
+
|
|
61807
|
+
var security_setting_v2_tips_form_label_extends = undefined && undefined.__extends || function () {
|
|
61808
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
61809
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
61810
|
+
__proto__: []
|
|
61811
|
+
} instanceof Array && function (d, b) {
|
|
61812
|
+
d.__proto__ = b;
|
|
61813
|
+
} || function (d, b) {
|
|
61814
|
+
for (var p in b) {
|
|
61815
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
61816
|
+
}
|
|
61817
|
+
};
|
|
61818
|
+
|
|
61819
|
+
return _extendStatics(d, b);
|
|
61820
|
+
};
|
|
61821
|
+
|
|
61822
|
+
return function (d, b) {
|
|
61823
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
61824
|
+
|
|
61825
|
+
_extendStatics(d, b);
|
|
61826
|
+
|
|
61827
|
+
function __() {
|
|
61828
|
+
this.constructor = d;
|
|
61829
|
+
}
|
|
61830
|
+
|
|
61831
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
61832
|
+
};
|
|
61833
|
+
}();
|
|
61834
|
+
|
|
61835
|
+
var security_setting_v2_tips_form_label_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
61836
|
+
var c = arguments.length,
|
|
61837
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
61838
|
+
d;
|
|
61839
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
61840
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
61841
|
+
}
|
|
61842
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
61843
|
+
};
|
|
61844
|
+
|
|
61845
|
+
var security_setting_v2_tips_form_label_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
61846
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
61847
|
+
};
|
|
61848
|
+
|
|
61849
|
+
|
|
61850
|
+
|
|
61851
|
+
|
|
61852
|
+
var security_setting_v2_tips_form_label_TipsFormLabel =
|
|
61853
|
+
/** @class */
|
|
61854
|
+
function (_super) {
|
|
61855
|
+
security_setting_v2_tips_form_label_extends(TipsFormLabel, _super);
|
|
61856
|
+
|
|
61857
|
+
function TipsFormLabel() {
|
|
61858
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
61859
|
+
}
|
|
61860
|
+
|
|
61861
|
+
security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
|
|
61862
|
+
default: ""
|
|
61863
|
+
}), security_setting_v2_tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "tips", void 0);
|
|
61864
|
+
|
|
61865
|
+
security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
|
|
61866
|
+
default: ""
|
|
61867
|
+
}), security_setting_v2_tips_form_label_metadata("design:type", String)], TipsFormLabel.prototype, "labelTitle", void 0);
|
|
61868
|
+
|
|
61869
|
+
security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["config"])({
|
|
61870
|
+
type: Boolean,
|
|
61871
|
+
default: false
|
|
61872
|
+
}), security_setting_v2_tips_form_label_metadata("design:type", Boolean)], TipsFormLabel.prototype, "labelColon", void 0);
|
|
61873
|
+
|
|
61874
|
+
TipsFormLabel = security_setting_v2_tips_form_label_decorate([Object(flagwind_web_["component"])({
|
|
61875
|
+
template: __webpack_require__("2f53")
|
|
61876
|
+
})], TipsFormLabel);
|
|
61877
|
+
return TipsFormLabel;
|
|
61878
|
+
}(flagwind_web_["Component"]);
|
|
61879
|
+
|
|
61880
|
+
/* harmony default export */ var project_detail_security_setting_v2_tips_form_label = (security_setting_v2_tips_form_label_TipsFormLabel);
|
|
61881
|
+
// EXTERNAL MODULE: ./src/views/project-detail/security-modal/index.scss
|
|
61882
|
+
var security_modal = __webpack_require__("1a93");
|
|
61883
|
+
|
|
61884
|
+
// CONCATENATED MODULE: ./src/views/project-detail/security-modal/index.ts
|
|
61885
|
+
|
|
61886
|
+
|
|
61887
|
+
|
|
61888
|
+
|
|
61889
|
+
|
|
61890
|
+
|
|
61891
|
+
|
|
61892
|
+
|
|
61893
|
+
|
|
61894
|
+
|
|
61895
|
+
|
|
61896
|
+
|
|
61897
|
+
|
|
61898
|
+
|
|
61899
|
+
|
|
61900
|
+
|
|
61901
|
+
|
|
61902
|
+
|
|
61903
|
+
|
|
61904
|
+
var security_modal_extends = undefined && undefined.__extends || function () {
|
|
61905
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
61906
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
61907
|
+
__proto__: []
|
|
61908
|
+
} instanceof Array && function (d, b) {
|
|
61909
|
+
d.__proto__ = b;
|
|
61910
|
+
} || function (d, b) {
|
|
61911
|
+
for (var p in b) {
|
|
61912
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
61913
|
+
}
|
|
61914
|
+
};
|
|
61915
|
+
|
|
61916
|
+
return _extendStatics(d, b);
|
|
61917
|
+
};
|
|
61918
|
+
|
|
61919
|
+
return function (d, b) {
|
|
61920
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
61921
|
+
|
|
61922
|
+
_extendStatics(d, b);
|
|
61923
|
+
|
|
61924
|
+
function __() {
|
|
61925
|
+
this.constructor = d;
|
|
61926
|
+
}
|
|
61927
|
+
|
|
61928
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
61929
|
+
};
|
|
61930
|
+
}();
|
|
61931
|
+
|
|
61932
|
+
var security_modal_assign = undefined && undefined.__assign || function () {
|
|
61933
|
+
security_modal_assign = Object.assign || function (t) {
|
|
61934
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
61935
|
+
s = arguments[i];
|
|
61936
|
+
|
|
61937
|
+
for (var p in s) {
|
|
61938
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61939
|
+
}
|
|
61940
|
+
}
|
|
61941
|
+
|
|
61942
|
+
return t;
|
|
61943
|
+
};
|
|
61944
|
+
|
|
61945
|
+
return security_modal_assign.apply(this, arguments);
|
|
61946
|
+
};
|
|
61947
|
+
|
|
61948
|
+
var security_modal_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
61949
|
+
var c = arguments.length,
|
|
61950
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
61951
|
+
d;
|
|
61952
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
61953
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
61954
|
+
}
|
|
61955
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
61956
|
+
};
|
|
61957
|
+
|
|
61958
|
+
var security_modal_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
61959
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
61960
|
+
};
|
|
61961
|
+
|
|
61962
|
+
var security_modal_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
61963
|
+
function adopt(value) {
|
|
61964
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
61965
|
+
resolve(value);
|
|
61966
|
+
});
|
|
61967
|
+
}
|
|
61968
|
+
|
|
61969
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
61970
|
+
function fulfilled(value) {
|
|
61971
|
+
try {
|
|
61972
|
+
step(generator.next(value));
|
|
61973
|
+
} catch (e) {
|
|
61974
|
+
reject(e);
|
|
61975
|
+
}
|
|
61976
|
+
}
|
|
61977
|
+
|
|
61978
|
+
function rejected(value) {
|
|
61979
|
+
try {
|
|
61980
|
+
step(generator["throw"](value));
|
|
61981
|
+
} catch (e) {
|
|
61982
|
+
reject(e);
|
|
61983
|
+
}
|
|
61984
|
+
}
|
|
61985
|
+
|
|
61986
|
+
function step(result) {
|
|
61987
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
61988
|
+
}
|
|
61989
|
+
|
|
61990
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
61991
|
+
});
|
|
61992
|
+
};
|
|
61993
|
+
|
|
61994
|
+
var security_modal_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
61995
|
+
var _ = {
|
|
61996
|
+
label: 0,
|
|
61997
|
+
sent: function sent() {
|
|
61998
|
+
if (t[0] & 1) throw t[1];
|
|
61999
|
+
return t[1];
|
|
62000
|
+
},
|
|
62001
|
+
trys: [],
|
|
62002
|
+
ops: []
|
|
62003
|
+
},
|
|
62004
|
+
f,
|
|
62005
|
+
y,
|
|
62006
|
+
t,
|
|
62007
|
+
g;
|
|
62008
|
+
return g = {
|
|
62009
|
+
next: verb(0),
|
|
62010
|
+
"throw": verb(1),
|
|
62011
|
+
"return": verb(2)
|
|
62012
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
62013
|
+
return this;
|
|
62014
|
+
}), g;
|
|
62015
|
+
|
|
62016
|
+
function verb(n) {
|
|
62017
|
+
return function (v) {
|
|
62018
|
+
return step([n, v]);
|
|
62019
|
+
};
|
|
62020
|
+
}
|
|
62021
|
+
|
|
62022
|
+
function step(op) {
|
|
62023
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
62024
|
+
|
|
62025
|
+
while (_) {
|
|
62026
|
+
try {
|
|
62027
|
+
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;
|
|
62028
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
62029
|
+
|
|
62030
|
+
switch (op[0]) {
|
|
62031
|
+
case 0:
|
|
62032
|
+
case 1:
|
|
62033
|
+
t = op;
|
|
62034
|
+
break;
|
|
62035
|
+
|
|
62036
|
+
case 4:
|
|
62037
|
+
_.label++;
|
|
62038
|
+
return {
|
|
62039
|
+
value: op[1],
|
|
62040
|
+
done: false
|
|
62041
|
+
};
|
|
62042
|
+
|
|
62043
|
+
case 5:
|
|
62044
|
+
_.label++;
|
|
62045
|
+
y = op[1];
|
|
62046
|
+
op = [0];
|
|
62047
|
+
continue;
|
|
62048
|
+
|
|
62049
|
+
case 7:
|
|
62050
|
+
op = _.ops.pop();
|
|
62051
|
+
|
|
62052
|
+
_.trys.pop();
|
|
62053
|
+
|
|
62054
|
+
continue;
|
|
62055
|
+
|
|
62056
|
+
default:
|
|
62057
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
62058
|
+
_ = 0;
|
|
62059
|
+
continue;
|
|
62060
|
+
}
|
|
62061
|
+
|
|
62062
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
62063
|
+
_.label = op[1];
|
|
62064
|
+
break;
|
|
62065
|
+
}
|
|
62066
|
+
|
|
62067
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
62068
|
+
_.label = t[1];
|
|
62069
|
+
t = op;
|
|
62070
|
+
break;
|
|
62071
|
+
}
|
|
62072
|
+
|
|
62073
|
+
if (t && _.label < t[2]) {
|
|
62074
|
+
_.label = t[2];
|
|
62075
|
+
|
|
62076
|
+
_.ops.push(op);
|
|
62077
|
+
|
|
62078
|
+
break;
|
|
62079
|
+
}
|
|
62080
|
+
|
|
62081
|
+
if (t[2]) _.ops.pop();
|
|
62082
|
+
|
|
62083
|
+
_.trys.pop();
|
|
62084
|
+
|
|
62085
|
+
continue;
|
|
62086
|
+
}
|
|
62087
|
+
|
|
62088
|
+
op = body.call(thisArg, _);
|
|
62089
|
+
} catch (e) {
|
|
62090
|
+
op = [6, e];
|
|
62091
|
+
y = 0;
|
|
62092
|
+
} finally {
|
|
62093
|
+
f = t = 0;
|
|
62094
|
+
}
|
|
62095
|
+
}
|
|
62096
|
+
|
|
62097
|
+
if (op[0] & 5) throw op[1];
|
|
62098
|
+
return {
|
|
62099
|
+
value: op[0] ? op[1] : void 0,
|
|
62100
|
+
done: true
|
|
62101
|
+
};
|
|
62102
|
+
}
|
|
62103
|
+
};
|
|
62104
|
+
|
|
62105
|
+
|
|
62106
|
+
|
|
62107
|
+
|
|
62108
|
+
|
|
62109
|
+
|
|
62110
|
+
|
|
62111
|
+
|
|
62112
|
+
var security_modal_SecurityModalComponent =
|
|
62113
|
+
/** @class */
|
|
62114
|
+
function (_super) {
|
|
62115
|
+
security_modal_extends(SecurityModalComponent, _super);
|
|
62116
|
+
|
|
62117
|
+
function SecurityModalComponent() {
|
|
62118
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
62119
|
+
|
|
62120
|
+
_this.securityList = [];
|
|
62121
|
+
_this.keyword = "";
|
|
62122
|
+
_this.currentSecurityItem = {};
|
|
62123
|
+
_this.securityTypeList = [];
|
|
62124
|
+
_this.grantTypeList = [];
|
|
62125
|
+
_this.tokenLocationTypeList = [];
|
|
62126
|
+
_this.isAddOnce = false;
|
|
62127
|
+
_this.exitAddItem = false;
|
|
62128
|
+
_this.onFilter = lodash_debounce_default()(function () {
|
|
62129
|
+
_this.getSecurityList();
|
|
62130
|
+
}, 300);
|
|
62131
|
+
return _this;
|
|
62132
|
+
}
|
|
62133
|
+
|
|
62134
|
+
Object.defineProperty(SecurityModalComponent.prototype, "show", {
|
|
62135
|
+
get: function get() {
|
|
62136
|
+
return this.value;
|
|
62137
|
+
},
|
|
62138
|
+
set: function set(value) {
|
|
62139
|
+
this.$emit("input", value);
|
|
62140
|
+
},
|
|
62141
|
+
enumerable: false,
|
|
62142
|
+
configurable: true
|
|
62143
|
+
});
|
|
62144
|
+
|
|
62145
|
+
SecurityModalComponent.prototype.onShowChange = function (show) {
|
|
62146
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62147
|
+
return security_modal_generator(this, function (_a) {
|
|
62148
|
+
if (show) {
|
|
62149
|
+
this.isAddOnce = this.isAdd;
|
|
62150
|
+
this.getSecurityTypeList();
|
|
62151
|
+
this.getSecurityList();
|
|
62152
|
+
this.getTokenLocationTypeList();
|
|
62153
|
+
this.getGrantTypeList();
|
|
62154
|
+
} else {
|
|
62155
|
+
this.keyword = "";
|
|
62156
|
+
this.currentSecurityItem = {};
|
|
62157
|
+
}
|
|
62158
|
+
|
|
62159
|
+
return [2
|
|
62160
|
+
/*return*/
|
|
62161
|
+
];
|
|
62162
|
+
});
|
|
62163
|
+
});
|
|
62164
|
+
};
|
|
62165
|
+
|
|
62166
|
+
SecurityModalComponent.prototype.getSecurityTypeList = function () {
|
|
62167
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62168
|
+
var result, tempList;
|
|
62169
|
+
return security_modal_generator(this, function (_a) {
|
|
62170
|
+
switch (_a.label) {
|
|
62171
|
+
case 0:
|
|
62172
|
+
return [4
|
|
62173
|
+
/*yield*/
|
|
62174
|
+
, this.service.getEnumByType("authenticationType")];
|
|
62175
|
+
|
|
62176
|
+
case 1:
|
|
62177
|
+
result = _a.sent();
|
|
62178
|
+
tempList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62179
|
+
this.securityTypeList = tempList.filter(function (item) {
|
|
62180
|
+
return item.name !== "None";
|
|
62181
|
+
});
|
|
62182
|
+
return [2
|
|
62183
|
+
/*return*/
|
|
62184
|
+
];
|
|
62185
|
+
}
|
|
62186
|
+
});
|
|
62187
|
+
});
|
|
62188
|
+
};
|
|
62189
|
+
|
|
62190
|
+
SecurityModalComponent.prototype.getTokenLocationTypeList = function () {
|
|
62191
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62192
|
+
var result;
|
|
62193
|
+
return security_modal_generator(this, function (_a) {
|
|
62194
|
+
switch (_a.label) {
|
|
62195
|
+
case 0:
|
|
62196
|
+
return [4
|
|
62197
|
+
/*yield*/
|
|
62198
|
+
, this.service.getEnumByType("tokenLocationType")];
|
|
62199
|
+
|
|
62200
|
+
case 1:
|
|
62201
|
+
result = _a.sent();
|
|
62202
|
+
this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62203
|
+
return [2
|
|
62204
|
+
/*return*/
|
|
62205
|
+
];
|
|
62206
|
+
}
|
|
62207
|
+
});
|
|
62208
|
+
});
|
|
62209
|
+
};
|
|
62210
|
+
|
|
62211
|
+
SecurityModalComponent.prototype.getGrantTypeList = function () {
|
|
62212
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62213
|
+
var result;
|
|
62214
|
+
return security_modal_generator(this, function (_a) {
|
|
62215
|
+
switch (_a.label) {
|
|
62216
|
+
case 0:
|
|
62217
|
+
return [4
|
|
62218
|
+
/*yield*/
|
|
62219
|
+
, this.service.getEnumByType("grantType")];
|
|
62220
|
+
|
|
62221
|
+
case 1:
|
|
62222
|
+
result = _a.sent();
|
|
62223
|
+
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62224
|
+
return [2
|
|
62225
|
+
/*return*/
|
|
62226
|
+
];
|
|
62227
|
+
}
|
|
62228
|
+
});
|
|
62229
|
+
});
|
|
62230
|
+
};
|
|
62231
|
+
|
|
62232
|
+
SecurityModalComponent.prototype.getSecurityList = function () {
|
|
62233
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62234
|
+
var res, tempList;
|
|
62235
|
+
return security_modal_generator(this, function (_a) {
|
|
62236
|
+
switch (_a.label) {
|
|
62237
|
+
case 0:
|
|
62238
|
+
return [4
|
|
62239
|
+
/*yield*/
|
|
62240
|
+
, this.service.getSecurityList({
|
|
62241
|
+
name: this.keyword,
|
|
62242
|
+
projectId: this.projectID
|
|
62243
|
+
})];
|
|
62244
|
+
|
|
62245
|
+
case 1:
|
|
62246
|
+
res = _a.sent();
|
|
62247
|
+
|
|
62248
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
62249
|
+
tempList = res.result || [];
|
|
62250
|
+
this.securityList = tempList.map(function (item) {
|
|
62251
|
+
if (item.type !== "GROOVY_SCRIPT") {
|
|
62252
|
+
item.content = JSON.parse(item.content);
|
|
62253
|
+
} else {
|
|
62254
|
+
item.scriptContent = item.content;
|
|
62255
|
+
item.content = {};
|
|
62256
|
+
}
|
|
62257
|
+
|
|
62258
|
+
return item;
|
|
62259
|
+
});
|
|
62260
|
+
|
|
62261
|
+
if (this.isAddOnce || this.exitAddItem) {
|
|
62262
|
+
this.onAddItem();
|
|
62263
|
+
this.isAddOnce = false;
|
|
62264
|
+
this.exitAddItem = false;
|
|
62265
|
+
}
|
|
62266
|
+
}
|
|
62267
|
+
|
|
62268
|
+
return [2
|
|
62269
|
+
/*return*/
|
|
62270
|
+
];
|
|
62271
|
+
}
|
|
62272
|
+
});
|
|
62273
|
+
});
|
|
62274
|
+
};
|
|
62275
|
+
|
|
62276
|
+
SecurityModalComponent.prototype.onSelectSecurityItem = function (item) {
|
|
62277
|
+
this.currentSecurityItem = item.$clone();
|
|
62278
|
+
};
|
|
62279
|
+
|
|
62280
|
+
SecurityModalComponent.prototype.onDelete = function (item) {
|
|
62281
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62282
|
+
var res;
|
|
62283
|
+
return security_modal_generator(this, function (_a) {
|
|
62284
|
+
switch (_a.label) {
|
|
62285
|
+
case 0:
|
|
62286
|
+
if (!item.id) return [3
|
|
62287
|
+
/*break*/
|
|
62288
|
+
, 2];
|
|
62289
|
+
|
|
62290
|
+
if (this.securityList.find(function (item) {
|
|
62291
|
+
return !item.id;
|
|
62292
|
+
})) {
|
|
62293
|
+
this.exitAddItem = true;
|
|
62294
|
+
}
|
|
62295
|
+
|
|
62296
|
+
return [4
|
|
62297
|
+
/*yield*/
|
|
62298
|
+
, this.service.deleteSecurityItem(item.id)];
|
|
62299
|
+
|
|
62300
|
+
case 1:
|
|
62301
|
+
res = _a.sent();
|
|
62302
|
+
|
|
62303
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
62304
|
+
this.getSecurityList();
|
|
62305
|
+
}
|
|
62306
|
+
|
|
62307
|
+
return [3
|
|
62308
|
+
/*break*/
|
|
62309
|
+
, 3];
|
|
62310
|
+
|
|
62311
|
+
case 2:
|
|
62312
|
+
this.securityList.shift();
|
|
62313
|
+
_a.label = 3;
|
|
62314
|
+
|
|
62315
|
+
case 3:
|
|
62316
|
+
this.currentSecurityItem = {};
|
|
62317
|
+
return [2
|
|
62318
|
+
/*return*/
|
|
62319
|
+
];
|
|
62320
|
+
}
|
|
62321
|
+
});
|
|
62322
|
+
});
|
|
62323
|
+
};
|
|
62324
|
+
|
|
62325
|
+
SecurityModalComponent.prototype.onAddItem = function () {
|
|
62326
|
+
if (this.securityList.length > 0 && !this.securityList[0].id) {
|
|
62327
|
+
return;
|
|
62328
|
+
}
|
|
62329
|
+
|
|
62330
|
+
var item = {
|
|
62331
|
+
name: "",
|
|
62332
|
+
type: "GROOVY_SCRIPT",
|
|
62333
|
+
content: {},
|
|
62334
|
+
scriptContent: ""
|
|
62335
|
+
};
|
|
62336
|
+
this.securityList.unshift(item);
|
|
62337
|
+
this.currentSecurityItem = this.securityList[0].$clone();
|
|
62338
|
+
};
|
|
62339
|
+
|
|
62340
|
+
SecurityModalComponent.prototype.onCancel = function () {
|
|
62341
|
+
this.show = false;
|
|
62342
|
+
this.keyword = "";
|
|
62343
|
+
this.currentSecurityItem = {};
|
|
62344
|
+
};
|
|
62345
|
+
|
|
62346
|
+
SecurityModalComponent.prototype.onSave = function () {
|
|
62347
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62348
|
+
var data, res;
|
|
62349
|
+
return security_modal_generator(this, function (_a) {
|
|
62350
|
+
switch (_a.label) {
|
|
62351
|
+
case 0:
|
|
62352
|
+
data = {
|
|
62353
|
+
projectId: this.projectID,
|
|
62354
|
+
name: this.currentSecurityItem.name,
|
|
62355
|
+
type: this.currentSecurityItem.type
|
|
62356
|
+
};
|
|
62357
|
+
|
|
62358
|
+
if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
|
|
62359
|
+
data.location = null;
|
|
62360
|
+
data.locationKey = null;
|
|
62361
|
+
data.content = this.currentSecurityItem.scriptContent;
|
|
62362
|
+
} else {
|
|
62363
|
+
data.location = this.currentSecurityItem.location;
|
|
62364
|
+
data.locationKey = this.currentSecurityItem.locationKey;
|
|
62365
|
+
data.content = {};
|
|
62366
|
+
|
|
62367
|
+
if (this.currentSecurityItem.type === "Api_Key") {
|
|
62368
|
+
data.content.key = this.currentSecurityItem.content.key;
|
|
62369
|
+
} else if (this.currentSecurityItem.type === "Base_Auth") {
|
|
62370
|
+
data.content.username = this.currentSecurityItem.content.username;
|
|
62371
|
+
data.content.password = this.currentSecurityItem.content.password;
|
|
62372
|
+
} else if (this.currentSecurityItem.type === "OAuth2") {
|
|
62373
|
+
data = security_modal_assign(security_modal_assign({}, data), this.currentSecurityItem);
|
|
62374
|
+
|
|
62375
|
+
if (this.currentSecurityItem.content.grantType !== "password") {
|
|
62376
|
+
delete data.content.password;
|
|
62377
|
+
delete data.content.username;
|
|
62378
|
+
}
|
|
62379
|
+
}
|
|
62380
|
+
|
|
62381
|
+
data.content = JSON.stringify(data.content);
|
|
62382
|
+
}
|
|
62383
|
+
|
|
62384
|
+
res = null;
|
|
62385
|
+
if (!this.currentSecurityItem.id) return [3
|
|
62386
|
+
/*break*/
|
|
62387
|
+
, 2];
|
|
62388
|
+
data.id = this.currentSecurityItem.id;
|
|
62389
|
+
return [4
|
|
62390
|
+
/*yield*/
|
|
62391
|
+
, this.service.updateSecurityItem(data)];
|
|
62392
|
+
|
|
62393
|
+
case 1:
|
|
62394
|
+
res = _a.sent();
|
|
62395
|
+
return [3
|
|
62396
|
+
/*break*/
|
|
62397
|
+
, 4];
|
|
62398
|
+
|
|
62399
|
+
case 2:
|
|
62400
|
+
return [4
|
|
62401
|
+
/*yield*/
|
|
62402
|
+
, this.service.addSecurityItem(data)];
|
|
62403
|
+
|
|
62404
|
+
case 3:
|
|
62405
|
+
res = _a.sent();
|
|
62406
|
+
_a.label = 4;
|
|
62407
|
+
|
|
62408
|
+
case 4:
|
|
62409
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
62410
|
+
this.getSecurityList();
|
|
62411
|
+
this.$emit("on-fresh");
|
|
62412
|
+
}
|
|
62413
|
+
|
|
62414
|
+
return [2
|
|
62415
|
+
/*return*/
|
|
62416
|
+
];
|
|
62417
|
+
}
|
|
62418
|
+
});
|
|
62419
|
+
});
|
|
62420
|
+
};
|
|
62421
|
+
|
|
62422
|
+
var _a;
|
|
62423
|
+
|
|
62424
|
+
security_modal_decorate([autowired(project_detail_service), security_modal_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], SecurityModalComponent.prototype, "service", void 0);
|
|
62425
|
+
|
|
62426
|
+
security_modal_decorate([Object(flagwind_web_["config"])({
|
|
62427
|
+
type: Boolean,
|
|
62428
|
+
default: true
|
|
62429
|
+
}), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "value", void 0);
|
|
62430
|
+
|
|
62431
|
+
security_modal_decorate([Object(flagwind_web_["config"])({
|
|
62432
|
+
type: String,
|
|
62433
|
+
default: ""
|
|
62434
|
+
}), security_modal_metadata("design:type", String)], SecurityModalComponent.prototype, "projectID", void 0);
|
|
62435
|
+
|
|
62436
|
+
security_modal_decorate([Object(flagwind_web_["config"])({
|
|
62437
|
+
type: Boolean,
|
|
62438
|
+
default: false
|
|
62439
|
+
}), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "isAdd", void 0);
|
|
62440
|
+
|
|
62441
|
+
security_modal_decorate([Object(flagwind_web_["watch"])("show"), security_modal_metadata("design:type", Function), security_modal_metadata("design:paramtypes", [Boolean]), security_modal_metadata("design:returntype", Promise)], SecurityModalComponent.prototype, "onShowChange", null);
|
|
62442
|
+
|
|
62443
|
+
SecurityModalComponent = security_modal_decorate([Object(flagwind_web_["component"])({
|
|
62444
|
+
template: __webpack_require__("3bf8"),
|
|
62445
|
+
components: {
|
|
62446
|
+
"u-tips-form-label": project_detail_security_setting_v2_tips_form_label
|
|
62447
|
+
}
|
|
62448
|
+
})], SecurityModalComponent);
|
|
62449
|
+
return SecurityModalComponent;
|
|
62450
|
+
}(flagwind_web_["Component"]);
|
|
62451
|
+
|
|
62452
|
+
/* harmony default export */ var project_detail_security_modal = (security_modal_SecurityModalComponent);
|
|
62453
|
+
// CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/index.ts
|
|
62454
|
+
|
|
62455
|
+
|
|
62456
|
+
|
|
62457
|
+
|
|
62458
|
+
|
|
62459
|
+
|
|
62460
|
+
|
|
62461
|
+
|
|
62462
|
+
|
|
62463
|
+
|
|
62464
|
+
|
|
62465
|
+
|
|
62466
|
+
|
|
62467
|
+
|
|
62468
|
+
|
|
62469
|
+
|
|
62470
|
+
|
|
62471
|
+
var security_setting_v2_extends = undefined && undefined.__extends || function () {
|
|
62472
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
62473
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
62474
|
+
__proto__: []
|
|
62475
|
+
} instanceof Array && function (d, b) {
|
|
62476
|
+
d.__proto__ = b;
|
|
62477
|
+
} || function (d, b) {
|
|
62478
|
+
for (var p in b) {
|
|
62479
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
62480
|
+
}
|
|
62481
|
+
};
|
|
62482
|
+
|
|
62483
|
+
return _extendStatics(d, b);
|
|
62484
|
+
};
|
|
62485
|
+
|
|
62486
|
+
return function (d, b) {
|
|
62487
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
62488
|
+
|
|
62489
|
+
_extendStatics(d, b);
|
|
62490
|
+
|
|
62491
|
+
function __() {
|
|
62492
|
+
this.constructor = d;
|
|
62493
|
+
}
|
|
62494
|
+
|
|
62495
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62496
|
+
};
|
|
62497
|
+
}();
|
|
62498
|
+
|
|
62499
|
+
var security_setting_v2_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
62500
|
+
var c = arguments.length,
|
|
62501
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
62502
|
+
d;
|
|
62503
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
62504
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
62505
|
+
}
|
|
62506
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62507
|
+
};
|
|
62508
|
+
|
|
62509
|
+
var security_setting_v2_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
62510
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
62511
|
+
};
|
|
62512
|
+
|
|
62513
|
+
var security_setting_v2_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
62514
|
+
function adopt(value) {
|
|
62515
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
62516
|
+
resolve(value);
|
|
62517
|
+
});
|
|
62518
|
+
}
|
|
62519
|
+
|
|
62520
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
62521
|
+
function fulfilled(value) {
|
|
62522
|
+
try {
|
|
62523
|
+
step(generator.next(value));
|
|
62524
|
+
} catch (e) {
|
|
62525
|
+
reject(e);
|
|
62526
|
+
}
|
|
62527
|
+
}
|
|
62528
|
+
|
|
62529
|
+
function rejected(value) {
|
|
62530
|
+
try {
|
|
62531
|
+
step(generator["throw"](value));
|
|
62532
|
+
} catch (e) {
|
|
62533
|
+
reject(e);
|
|
62534
|
+
}
|
|
62535
|
+
}
|
|
62536
|
+
|
|
62537
|
+
function step(result) {
|
|
62538
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
62539
|
+
}
|
|
62540
|
+
|
|
62541
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
62542
|
+
});
|
|
62543
|
+
};
|
|
62544
|
+
|
|
62545
|
+
var security_setting_v2_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
62546
|
+
var _ = {
|
|
62547
|
+
label: 0,
|
|
62548
|
+
sent: function sent() {
|
|
62549
|
+
if (t[0] & 1) throw t[1];
|
|
62550
|
+
return t[1];
|
|
62551
|
+
},
|
|
62552
|
+
trys: [],
|
|
62553
|
+
ops: []
|
|
62554
|
+
},
|
|
62555
|
+
f,
|
|
62556
|
+
y,
|
|
62557
|
+
t,
|
|
62558
|
+
g;
|
|
62559
|
+
return g = {
|
|
62560
|
+
next: verb(0),
|
|
62561
|
+
"throw": verb(1),
|
|
62562
|
+
"return": verb(2)
|
|
62563
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
62564
|
+
return this;
|
|
62565
|
+
}), g;
|
|
62566
|
+
|
|
62567
|
+
function verb(n) {
|
|
62568
|
+
return function (v) {
|
|
62569
|
+
return step([n, v]);
|
|
62570
|
+
};
|
|
62571
|
+
}
|
|
62572
|
+
|
|
62573
|
+
function step(op) {
|
|
62574
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
62575
|
+
|
|
62576
|
+
while (_) {
|
|
62577
|
+
try {
|
|
62578
|
+
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;
|
|
62579
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
62580
|
+
|
|
62581
|
+
switch (op[0]) {
|
|
62582
|
+
case 0:
|
|
62583
|
+
case 1:
|
|
62584
|
+
t = op;
|
|
62585
|
+
break;
|
|
62586
|
+
|
|
62587
|
+
case 4:
|
|
62588
|
+
_.label++;
|
|
62589
|
+
return {
|
|
62590
|
+
value: op[1],
|
|
62591
|
+
done: false
|
|
62592
|
+
};
|
|
62593
|
+
|
|
62594
|
+
case 5:
|
|
62595
|
+
_.label++;
|
|
62596
|
+
y = op[1];
|
|
62597
|
+
op = [0];
|
|
62598
|
+
continue;
|
|
62599
|
+
|
|
62600
|
+
case 7:
|
|
62601
|
+
op = _.ops.pop();
|
|
62602
|
+
|
|
62603
|
+
_.trys.pop();
|
|
62604
|
+
|
|
62605
|
+
continue;
|
|
62606
|
+
|
|
62607
|
+
default:
|
|
62608
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
62609
|
+
_ = 0;
|
|
62610
|
+
continue;
|
|
62611
|
+
}
|
|
62612
|
+
|
|
62613
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
62614
|
+
_.label = op[1];
|
|
62615
|
+
break;
|
|
62616
|
+
}
|
|
62617
|
+
|
|
62618
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
62619
|
+
_.label = t[1];
|
|
62620
|
+
t = op;
|
|
62621
|
+
break;
|
|
62622
|
+
}
|
|
62623
|
+
|
|
62624
|
+
if (t && _.label < t[2]) {
|
|
62625
|
+
_.label = t[2];
|
|
62626
|
+
|
|
62627
|
+
_.ops.push(op);
|
|
62628
|
+
|
|
62629
|
+
break;
|
|
62630
|
+
}
|
|
62631
|
+
|
|
62632
|
+
if (t[2]) _.ops.pop();
|
|
62633
|
+
|
|
62634
|
+
_.trys.pop();
|
|
62635
|
+
|
|
62636
|
+
continue;
|
|
62637
|
+
}
|
|
62638
|
+
|
|
62639
|
+
op = body.call(thisArg, _);
|
|
62640
|
+
} catch (e) {
|
|
62641
|
+
op = [6, e];
|
|
62642
|
+
y = 0;
|
|
62643
|
+
} finally {
|
|
62644
|
+
f = t = 0;
|
|
62645
|
+
}
|
|
62646
|
+
}
|
|
62647
|
+
|
|
62648
|
+
if (op[0] & 5) throw op[1];
|
|
62649
|
+
return {
|
|
62650
|
+
value: op[0] ? op[1] : void 0,
|
|
62651
|
+
done: true
|
|
62652
|
+
};
|
|
62653
|
+
}
|
|
62654
|
+
};
|
|
62655
|
+
|
|
62656
|
+
|
|
62657
|
+
|
|
62658
|
+
|
|
62659
|
+
|
|
62660
|
+
|
|
62661
|
+
|
|
62662
|
+
|
|
62663
|
+
|
|
62664
|
+
var security_setting_v2_SecuritySettingV2 =
|
|
62665
|
+
/** @class */
|
|
62666
|
+
function (_super) {
|
|
62667
|
+
security_setting_v2_extends(SecuritySettingV2, _super);
|
|
62668
|
+
|
|
62669
|
+
function SecuritySettingV2() {
|
|
62670
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
62671
|
+
|
|
62672
|
+
_this.securityList = [];
|
|
62673
|
+
_this.currentSecurityItem = {};
|
|
62674
|
+
_this.currentSecurityItemId = "";
|
|
62675
|
+
_this.showSecurity = false;
|
|
62676
|
+
_this.isAdd = true;
|
|
62677
|
+
_this.grantTypeList = [];
|
|
62678
|
+
return _this;
|
|
62679
|
+
}
|
|
62680
|
+
|
|
62681
|
+
SecuritySettingV2.prototype.mounted = function () {
|
|
62682
|
+
var _a;
|
|
62683
|
+
|
|
62684
|
+
return security_setting_v2_awaiter(this, void 0, void 0, function () {
|
|
62685
|
+
var _this = this;
|
|
62686
|
+
|
|
62687
|
+
return security_setting_v2_generator(this, function (_b) {
|
|
62688
|
+
switch (_b.label) {
|
|
62689
|
+
case 0:
|
|
62690
|
+
this.getGrantTypeList();
|
|
62691
|
+
return [4
|
|
62692
|
+
/*yield*/
|
|
62693
|
+
, this.getSecurityList()];
|
|
62694
|
+
|
|
62695
|
+
case 1:
|
|
62696
|
+
_b.sent();
|
|
62697
|
+
|
|
62698
|
+
if (this.currentSecurityID) {
|
|
62699
|
+
this.currentSecurityItemId = this.currentSecurityID;
|
|
62700
|
+
} else if ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.id) {
|
|
62701
|
+
this.currentSecurityItemId = this.interfaceModel.authentication.id;
|
|
62702
|
+
}
|
|
62703
|
+
|
|
62704
|
+
this.currentSecurityItem = this.securityList.find(function (item) {
|
|
62705
|
+
return item.id === _this.currentSecurityItemId;
|
|
62706
|
+
}) || {};
|
|
62707
|
+
return [2
|
|
62708
|
+
/*return*/
|
|
62709
|
+
];
|
|
62710
|
+
}
|
|
62711
|
+
});
|
|
62712
|
+
});
|
|
62713
|
+
};
|
|
62714
|
+
|
|
62715
|
+
SecuritySettingV2.prototype.getGrantTypeList = function () {
|
|
62716
|
+
return security_setting_v2_awaiter(this, void 0, void 0, function () {
|
|
62717
|
+
var result;
|
|
62718
|
+
return security_setting_v2_generator(this, function (_a) {
|
|
62719
|
+
switch (_a.label) {
|
|
62720
|
+
case 0:
|
|
62721
|
+
return [4
|
|
62722
|
+
/*yield*/
|
|
62723
|
+
, this.service.getEnumByType("grantType")];
|
|
62724
|
+
|
|
62725
|
+
case 1:
|
|
62726
|
+
result = _a.sent();
|
|
62727
|
+
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62728
|
+
return [2
|
|
62729
|
+
/*return*/
|
|
62730
|
+
];
|
|
62731
|
+
}
|
|
62732
|
+
});
|
|
62733
|
+
});
|
|
62734
|
+
};
|
|
62735
|
+
|
|
62736
|
+
SecuritySettingV2.prototype.findGrantTypeText = function (name) {
|
|
62737
|
+
var res = this.grantTypeList.find(function (item) {
|
|
62738
|
+
return item.name === name;
|
|
62739
|
+
});
|
|
62740
|
+
return res ? res.text : "";
|
|
62741
|
+
};
|
|
62742
|
+
|
|
62743
|
+
SecuritySettingV2.prototype.getSecurityList = function () {
|
|
62744
|
+
return security_setting_v2_awaiter(this, void 0, void 0, function () {
|
|
62745
|
+
var res, tempList;
|
|
62746
|
+
return security_setting_v2_generator(this, function (_a) {
|
|
62747
|
+
switch (_a.label) {
|
|
62748
|
+
case 0:
|
|
62749
|
+
return [4
|
|
62750
|
+
/*yield*/
|
|
62751
|
+
, this.service.getSecurityList({
|
|
62752
|
+
projectId: this.projectID
|
|
62753
|
+
})];
|
|
62754
|
+
|
|
62755
|
+
case 1:
|
|
62756
|
+
res = _a.sent();
|
|
62757
|
+
|
|
62758
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
62759
|
+
tempList = res.result || [];
|
|
62760
|
+
this.securityList = tempList.map(function (item) {
|
|
62761
|
+
if (item.type !== "GROOVY_SCRIPT") {
|
|
62762
|
+
item.content = JSON.parse(item.content);
|
|
62763
|
+
} else {
|
|
62764
|
+
item.scriptContent = item.content;
|
|
62765
|
+
item.content = {};
|
|
62766
|
+
}
|
|
62767
|
+
|
|
62768
|
+
return item;
|
|
62769
|
+
});
|
|
62770
|
+
}
|
|
62771
|
+
|
|
62772
|
+
return [2
|
|
62773
|
+
/*return*/
|
|
62774
|
+
];
|
|
62775
|
+
}
|
|
62776
|
+
});
|
|
62777
|
+
});
|
|
62778
|
+
};
|
|
62779
|
+
|
|
62780
|
+
SecuritySettingV2.prototype.onChangeSecurityItem = function (id) {
|
|
62781
|
+
this.$emit("on-current-id", id);
|
|
62782
|
+
this.currentSecurityItem = this.securityList.find(function (item) {
|
|
62783
|
+
return item.id === id;
|
|
62784
|
+
});
|
|
62785
|
+
this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
|
|
62786
|
+
this.interfaceModel.authentication.type = this.currentSecurityItem.type;
|
|
62787
|
+
this.interfaceModel.authentication.location = this.currentSecurityItem.location;
|
|
62788
|
+
this.interfaceModel.authentication.locationKey = this.currentSecurityItem.locationKey;
|
|
62789
|
+
|
|
62790
|
+
if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
|
|
62791
|
+
this.interfaceModel.authentication.content = this.currentSecurityItem.scriptContent;
|
|
62792
|
+
} else {
|
|
62793
|
+
this.interfaceModel.authentication.content = JSON.stringify(this.currentSecurityItem.content);
|
|
62794
|
+
}
|
|
62795
|
+
|
|
62796
|
+
this.interfaceModel.info.authId = this.currentSecurityItem.id;
|
|
62797
|
+
};
|
|
62798
|
+
|
|
62799
|
+
SecuritySettingV2.prototype.onAddSecurityItem = function () {
|
|
62800
|
+
this.$refs.addSecuritySelect.visible = false;
|
|
62801
|
+
this.showSecurity = true;
|
|
62802
|
+
};
|
|
62803
|
+
|
|
62804
|
+
var _a, _b;
|
|
62805
|
+
|
|
62806
|
+
security_setting_v2_decorate([autowired(project_detail_service), security_setting_v2_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], SecuritySettingV2.prototype, "service", void 0);
|
|
62807
|
+
|
|
62808
|
+
security_setting_v2_decorate([Object(flagwind_web_["config"])({
|
|
62809
|
+
default: function _default() {
|
|
62810
|
+
return new InterfaceModel();
|
|
62811
|
+
}
|
|
62812
|
+
}), security_setting_v2_metadata("design:type", typeof (_b = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _b : Object)], SecuritySettingV2.prototype, "interfaceModel", void 0);
|
|
62813
|
+
|
|
62814
|
+
security_setting_v2_decorate([Object(flagwind_web_["config"])({
|
|
62815
|
+
type: String,
|
|
62816
|
+
default: ""
|
|
62817
|
+
}), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "projectID", void 0);
|
|
62818
|
+
|
|
62819
|
+
security_setting_v2_decorate([Object(flagwind_web_["config"])({
|
|
62820
|
+
type: String,
|
|
62821
|
+
default: ""
|
|
62822
|
+
}), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "currentSecurityID", void 0);
|
|
62823
|
+
|
|
62824
|
+
SecuritySettingV2 = security_setting_v2_decorate([Object(flagwind_web_["component"])({
|
|
62825
|
+
template: __webpack_require__("3de4"),
|
|
62826
|
+
components: {
|
|
62827
|
+
"u-tips-form-label": project_detail_security_setting_v2_tips_form_label,
|
|
62828
|
+
"u-security-modal": project_detail_security_modal
|
|
62829
|
+
}
|
|
62830
|
+
})], SecuritySettingV2);
|
|
62831
|
+
return SecuritySettingV2;
|
|
62832
|
+
}(flagwind_web_["Component"]);
|
|
62833
|
+
|
|
62834
|
+
/* harmony default export */ var project_detail_security_setting_v2 = (security_setting_v2_SecuritySettingV2);
|
|
62835
|
+
// CONCATENATED MODULE: ./src/views/project-detail/interface-settings/index.ts
|
|
62836
|
+
|
|
62837
|
+
|
|
62838
|
+
|
|
62839
|
+
|
|
62840
|
+
|
|
62841
|
+
|
|
62842
|
+
|
|
62843
|
+
|
|
62844
|
+
|
|
62845
|
+
|
|
62846
|
+
|
|
62847
|
+
|
|
62848
|
+
|
|
62849
|
+
|
|
62850
|
+
|
|
62851
|
+
|
|
62852
|
+
|
|
62853
|
+
|
|
62854
|
+
|
|
62855
|
+
|
|
62856
|
+
|
|
62857
|
+
|
|
62858
|
+
var interface_settings_extends = undefined && undefined.__extends || function () {
|
|
62859
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
62860
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
62861
|
+
__proto__: []
|
|
62862
|
+
} instanceof Array && function (d, b) {
|
|
62863
|
+
d.__proto__ = b;
|
|
62864
|
+
} || function (d, b) {
|
|
62865
|
+
for (var p in b) {
|
|
62866
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
62867
|
+
}
|
|
62868
|
+
};
|
|
62869
|
+
|
|
62870
|
+
return _extendStatics(d, b);
|
|
62871
|
+
};
|
|
62872
|
+
|
|
62873
|
+
return function (d, b) {
|
|
62874
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
62875
|
+
|
|
62876
|
+
_extendStatics(d, b);
|
|
62877
|
+
|
|
62878
|
+
function __() {
|
|
62879
|
+
this.constructor = d;
|
|
62880
|
+
}
|
|
62881
|
+
|
|
62882
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62883
|
+
};
|
|
62884
|
+
}();
|
|
62885
|
+
|
|
62886
|
+
var interface_settings_assign = undefined && undefined.__assign || function () {
|
|
62887
|
+
interface_settings_assign = Object.assign || function (t) {
|
|
62888
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
62889
|
+
s = arguments[i];
|
|
62890
|
+
|
|
62891
|
+
for (var p in s) {
|
|
62892
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
62893
|
+
}
|
|
62894
|
+
}
|
|
62895
|
+
|
|
62896
|
+
return t;
|
|
62897
|
+
};
|
|
62898
|
+
|
|
62899
|
+
return interface_settings_assign.apply(this, arguments);
|
|
62900
|
+
};
|
|
62901
|
+
|
|
62902
|
+
var interface_settings_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
62903
|
+
var c = arguments.length,
|
|
62904
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
62905
|
+
d;
|
|
62906
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
62907
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
62908
|
+
}
|
|
62909
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62910
|
+
};
|
|
62911
|
+
|
|
62912
|
+
var interface_settings_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
62913
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
62914
|
+
};
|
|
62915
|
+
|
|
62916
|
+
var interface_settings_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
62917
|
+
function adopt(value) {
|
|
62918
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
62919
|
+
resolve(value);
|
|
62920
|
+
});
|
|
62921
|
+
}
|
|
62922
|
+
|
|
62923
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
62924
|
+
function fulfilled(value) {
|
|
62925
|
+
try {
|
|
62926
|
+
step(generator.next(value));
|
|
62927
|
+
} catch (e) {
|
|
62928
|
+
reject(e);
|
|
62929
|
+
}
|
|
62930
|
+
}
|
|
62931
|
+
|
|
62932
|
+
function rejected(value) {
|
|
62933
|
+
try {
|
|
62934
|
+
step(generator["throw"](value));
|
|
62935
|
+
} catch (e) {
|
|
62936
|
+
reject(e);
|
|
62937
|
+
}
|
|
62938
|
+
}
|
|
62939
|
+
|
|
62940
|
+
function step(result) {
|
|
62941
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
62942
|
+
}
|
|
62943
|
+
|
|
62944
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
62945
|
+
});
|
|
62946
|
+
};
|
|
62947
|
+
|
|
62948
|
+
var interface_settings_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
62949
|
+
var _ = {
|
|
62950
|
+
label: 0,
|
|
62951
|
+
sent: function sent() {
|
|
62952
|
+
if (t[0] & 1) throw t[1];
|
|
62953
|
+
return t[1];
|
|
62954
|
+
},
|
|
62955
|
+
trys: [],
|
|
62956
|
+
ops: []
|
|
62957
|
+
},
|
|
62958
|
+
f,
|
|
62959
|
+
y,
|
|
62960
|
+
t,
|
|
62961
|
+
g;
|
|
62962
|
+
return g = {
|
|
62963
|
+
next: verb(0),
|
|
62964
|
+
"throw": verb(1),
|
|
62965
|
+
"return": verb(2)
|
|
62966
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
62967
|
+
return this;
|
|
62968
|
+
}), g;
|
|
62969
|
+
|
|
62970
|
+
function verb(n) {
|
|
62971
|
+
return function (v) {
|
|
62972
|
+
return step([n, v]);
|
|
62973
|
+
};
|
|
62974
|
+
}
|
|
62975
|
+
|
|
62976
|
+
function step(op) {
|
|
62977
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
62978
|
+
|
|
62979
|
+
while (_) {
|
|
62980
|
+
try {
|
|
62981
|
+
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;
|
|
62982
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
62983
|
+
|
|
62984
|
+
switch (op[0]) {
|
|
62985
|
+
case 0:
|
|
62986
|
+
case 1:
|
|
62987
|
+
t = op;
|
|
62988
|
+
break;
|
|
62989
|
+
|
|
62990
|
+
case 4:
|
|
62991
|
+
_.label++;
|
|
62992
|
+
return {
|
|
62993
|
+
value: op[1],
|
|
62994
|
+
done: false
|
|
62995
|
+
};
|
|
62996
|
+
|
|
62997
|
+
case 5:
|
|
62998
|
+
_.label++;
|
|
62999
|
+
y = op[1];
|
|
63000
|
+
op = [0];
|
|
63001
|
+
continue;
|
|
63002
|
+
|
|
63003
|
+
case 7:
|
|
63004
|
+
op = _.ops.pop();
|
|
63005
|
+
|
|
63006
|
+
_.trys.pop();
|
|
63007
|
+
|
|
63008
|
+
continue;
|
|
63009
|
+
|
|
63010
|
+
default:
|
|
63011
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
63012
|
+
_ = 0;
|
|
63013
|
+
continue;
|
|
63014
|
+
}
|
|
63015
|
+
|
|
63016
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
63017
|
+
_.label = op[1];
|
|
63018
|
+
break;
|
|
63019
|
+
}
|
|
63020
|
+
|
|
63021
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
63022
|
+
_.label = t[1];
|
|
63023
|
+
t = op;
|
|
63024
|
+
break;
|
|
63025
|
+
}
|
|
63026
|
+
|
|
63027
|
+
if (t && _.label < t[2]) {
|
|
63028
|
+
_.label = t[2];
|
|
63029
|
+
|
|
63030
|
+
_.ops.push(op);
|
|
63031
|
+
|
|
63032
|
+
break;
|
|
63033
|
+
}
|
|
63034
|
+
|
|
63035
|
+
if (t[2]) _.ops.pop();
|
|
63036
|
+
|
|
63037
|
+
_.trys.pop();
|
|
63038
|
+
|
|
63039
|
+
continue;
|
|
63040
|
+
}
|
|
63041
|
+
|
|
63042
|
+
op = body.call(thisArg, _);
|
|
63043
|
+
} catch (e) {
|
|
63044
|
+
op = [6, e];
|
|
63045
|
+
y = 0;
|
|
63046
|
+
} finally {
|
|
63047
|
+
f = t = 0;
|
|
63048
|
+
}
|
|
63049
|
+
}
|
|
63050
|
+
|
|
63051
|
+
if (op[0] & 5) throw op[1];
|
|
63052
|
+
return {
|
|
63053
|
+
value: op[0] ? op[1] : void 0,
|
|
63054
|
+
done: true
|
|
63055
|
+
};
|
|
63056
|
+
}
|
|
63057
|
+
};
|
|
63058
|
+
|
|
63059
|
+
|
|
63060
|
+
|
|
63061
|
+
|
|
63062
|
+
|
|
63063
|
+
|
|
63064
|
+
|
|
63065
|
+
|
|
61860
63066
|
|
|
61861
63067
|
|
|
61862
63068
|
|
|
@@ -61875,6 +63081,7 @@ function (_super) {
|
|
|
61875
63081
|
_this.response = new Response();
|
|
61876
63082
|
_this.responseCache = new Map();
|
|
61877
63083
|
_this.loading = false;
|
|
63084
|
+
_this.currentId = "";
|
|
61878
63085
|
_this.typeList = [{
|
|
61879
63086
|
value: "GET",
|
|
61880
63087
|
text: "GET"
|
|
@@ -61894,9 +63101,13 @@ function (_super) {
|
|
|
61894
63101
|
}, {
|
|
61895
63102
|
title: "Headers",
|
|
61896
63103
|
name: "headers"
|
|
61897
|
-
}, {
|
|
63104
|
+
}, // {
|
|
63105
|
+
// title: "授权管理",
|
|
63106
|
+
// name: "security"
|
|
63107
|
+
// },
|
|
63108
|
+
{
|
|
61898
63109
|
title: "授权管理",
|
|
61899
|
-
name: "
|
|
63110
|
+
name: "v2security"
|
|
61900
63111
|
}, {
|
|
61901
63112
|
title: "前置脚本",
|
|
61902
63113
|
name: "pre-execution"
|
|
@@ -62074,6 +63285,10 @@ function (_super) {
|
|
|
62074
63285
|
});
|
|
62075
63286
|
};
|
|
62076
63287
|
|
|
63288
|
+
InterfaceSettings.prototype.onCurrentId = function (id) {
|
|
63289
|
+
this.currentId = id;
|
|
63290
|
+
};
|
|
63291
|
+
|
|
62077
63292
|
var _a, _b;
|
|
62078
63293
|
|
|
62079
63294
|
interface_settings_decorate([autowired(project_detail_service), interface_settings_metadata("design:type", typeof (_a = typeof project_detail_service !== "undefined" && project_detail_service) === "function" ? _a : Object)], InterfaceSettings.prototype, "service", void 0);
|
|
@@ -62105,7 +63320,8 @@ function (_super) {
|
|
|
62105
63320
|
security: project_detail_security_setting,
|
|
62106
63321
|
"pre-execution": project_detail_pre_execution_setting,
|
|
62107
63322
|
"after-execution-transfer": project_detail_after_execution_transfer,
|
|
62108
|
-
"after-execution-script": after_execution_script
|
|
63323
|
+
"after-execution-script": after_execution_script,
|
|
63324
|
+
"v2security": project_detail_security_setting_v2
|
|
62109
63325
|
}
|
|
62110
63326
|
})], InterfaceSettings);
|
|
62111
63327
|
return InterfaceSettings;
|
|
@@ -63228,6 +64444,7 @@ var project_detail_generator = undefined && undefined.__generator || function (t
|
|
|
63228
64444
|
|
|
63229
64445
|
|
|
63230
64446
|
|
|
64447
|
+
|
|
63231
64448
|
var project_detail_ProjectDetail =
|
|
63232
64449
|
/** @class */
|
|
63233
64450
|
function (_super) {
|
|
@@ -63241,6 +64458,7 @@ function (_super) {
|
|
|
63241
64458
|
_this.lengthwise = true;
|
|
63242
64459
|
_this.showGlobalModal = false;
|
|
63243
64460
|
_this.showCurrentModal = false;
|
|
64461
|
+
_this.showSecurity = false;
|
|
63244
64462
|
_this.projectId = "";
|
|
63245
64463
|
_this.projectName = "";
|
|
63246
64464
|
_this.split = "340px";
|
|
@@ -63414,6 +64632,10 @@ function (_super) {
|
|
|
63414
64632
|
this.lengthwise = !this.lengthwise;
|
|
63415
64633
|
};
|
|
63416
64634
|
|
|
64635
|
+
ProjectDetail.prototype.onSecurity = function () {
|
|
64636
|
+
this.showSecurity = true;
|
|
64637
|
+
};
|
|
64638
|
+
|
|
63417
64639
|
ProjectDetail.prototype.onOpenGlobalModal = function () {
|
|
63418
64640
|
this.showGlobalModal = true;
|
|
63419
64641
|
};
|
|
@@ -63471,7 +64693,8 @@ function (_super) {
|
|
|
63471
64693
|
"u-global-modal": project_detail_global_variable_modal,
|
|
63472
64694
|
"u-current-modal": project_detail_current_variable_modal,
|
|
63473
64695
|
Swiper: vue_awesome_swiper["Swiper"],
|
|
63474
|
-
SwiperSlide: vue_awesome_swiper["SwiperSlide"]
|
|
64696
|
+
SwiperSlide: vue_awesome_swiper["SwiperSlide"],
|
|
64697
|
+
"u-security-modal": project_detail_security_modal
|
|
63475
64698
|
},
|
|
63476
64699
|
directives: {
|
|
63477
64700
|
swiper: vue_awesome_swiper["directive"]
|