@egova/egova-api 1.0.163 → 1.0.164
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 +1496 -359
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1496 -359
- 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/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":
|
|
@@ -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":
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -58222,6 +58264,7 @@ function () {
|
|
|
58222
58264
|
this.content = "";
|
|
58223
58265
|
this.location = "";
|
|
58224
58266
|
this.locationKey = "";
|
|
58267
|
+
this.id = "";
|
|
58225
58268
|
}
|
|
58226
58269
|
|
|
58227
58270
|
return Authentication;
|
|
@@ -58432,6 +58475,22 @@ function (_super) {
|
|
|
58432
58475
|
return this._get("/unity/api/project/".concat(id));
|
|
58433
58476
|
};
|
|
58434
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
|
+
|
|
58435
58494
|
var _a, _b;
|
|
58436
58495
|
|
|
58437
58496
|
project_detail_service_decorate([serviceHandler("query", {
|
|
@@ -58498,6 +58557,28 @@ function (_super) {
|
|
|
58498
58557
|
title: "项目详情"
|
|
58499
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);
|
|
58500
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
|
+
|
|
58501
58582
|
return ApiService;
|
|
58502
58583
|
}(common_service);
|
|
58503
58584
|
|
|
@@ -61587,359 +61668,1398 @@ var security_setting_generator = undefined && undefined.__generator || function
|
|
|
61587
61668
|
|
|
61588
61669
|
|
|
61589
61670
|
|
|
61590
|
-
var security_setting_SecuritySetting =
|
|
61591
|
-
/** @class */
|
|
61592
|
-
function (_super) {
|
|
61593
|
-
security_setting_extends(SecuritySetting, _super);
|
|
61594
|
-
|
|
61595
|
-
function SecuritySetting() {
|
|
61596
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
61597
|
-
|
|
61598
|
-
_this.securityTypeList = [];
|
|
61599
|
-
_this.tokenLocationTypeList = [];
|
|
61600
|
-
_this.grantTypeList = [];
|
|
61601
|
-
_this.model = {};
|
|
61602
|
-
return _this;
|
|
61603
|
-
}
|
|
61604
|
-
|
|
61605
|
-
SecuritySetting.prototype.mounted = function () {
|
|
61606
|
-
var _a, _b;
|
|
61607
|
-
|
|
61608
|
-
this.getSecurityTypeList();
|
|
61609
|
-
this.getTokenLocationTypeList();
|
|
61610
|
-
this.getGrantTypeList();
|
|
61611
|
-
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) : {};
|
|
61612
|
-
};
|
|
61613
|
-
|
|
61614
|
-
SecuritySetting.prototype.getSecurityTypeList = function () {
|
|
61615
|
-
return security_setting_awaiter(this, void 0, void 0, function () {
|
|
61616
|
-
var result;
|
|
61617
|
-
return security_setting_generator(this, function (_a) {
|
|
61618
|
-
switch (_a.label) {
|
|
61619
|
-
case 0:
|
|
61620
|
-
return [4
|
|
61621
|
-
/*yield*/
|
|
61622
|
-
, this.service.getEnumByType("authenticationType")];
|
|
61623
|
-
|
|
61624
|
-
case 1:
|
|
61625
|
-
result = _a.sent();
|
|
61626
|
-
this.securityTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61627
|
-
return [2
|
|
61628
|
-
/*return*/
|
|
61629
|
-
];
|
|
61630
|
-
}
|
|
61631
|
-
});
|
|
61632
|
-
});
|
|
61633
|
-
};
|
|
61634
|
-
|
|
61635
|
-
SecuritySetting.prototype.getTokenLocationTypeList = function () {
|
|
61636
|
-
return security_setting_awaiter(this, void 0, void 0, function () {
|
|
61637
|
-
var result;
|
|
61638
|
-
return security_setting_generator(this, function (_a) {
|
|
61639
|
-
switch (_a.label) {
|
|
61640
|
-
case 0:
|
|
61641
|
-
return [4
|
|
61642
|
-
/*yield*/
|
|
61643
|
-
, this.service.getEnumByType("tokenLocationType")];
|
|
61644
|
-
|
|
61645
|
-
case 1:
|
|
61646
|
-
result = _a.sent();
|
|
61647
|
-
this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61648
|
-
return [2
|
|
61649
|
-
/*return*/
|
|
61650
|
-
];
|
|
61651
|
-
}
|
|
61652
|
-
});
|
|
61653
|
-
});
|
|
61654
|
-
};
|
|
61655
|
-
|
|
61656
|
-
SecuritySetting.prototype.getGrantTypeList = function () {
|
|
61657
|
-
return security_setting_awaiter(this, void 0, void 0, function () {
|
|
61658
|
-
var result;
|
|
61659
|
-
return security_setting_generator(this, function (_a) {
|
|
61660
|
-
switch (_a.label) {
|
|
61661
|
-
case 0:
|
|
61662
|
-
return [4
|
|
61663
|
-
/*yield*/
|
|
61664
|
-
, this.service.getEnumByType("grantType")];
|
|
61665
|
-
|
|
61666
|
-
case 1:
|
|
61667
|
-
result = _a.sent();
|
|
61668
|
-
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
61669
|
-
return [2
|
|
61670
|
-
/*return*/
|
|
61671
|
-
];
|
|
61672
|
-
}
|
|
61673
|
-
});
|
|
61674
|
-
});
|
|
61675
|
-
};
|
|
61676
|
-
|
|
61677
|
-
SecuritySetting.prototype.modelChange = function () {
|
|
61678
|
-
this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
|
|
61679
|
-
this.interfaceModel.authentication.content = JSON.stringify(this.model);
|
|
61680
|
-
};
|
|
61681
|
-
|
|
61682
|
-
SecuritySetting.prototype.onClear = function () {
|
|
61683
|
-
this.model = {};
|
|
61684
|
-
};
|
|
61685
|
-
|
|
61686
|
-
var _a, _b;
|
|
61687
|
-
|
|
61688
|
-
security_setting_decorate([Object(flagwind_web_["config"])({
|
|
61689
|
-
default: function _default() {
|
|
61690
|
-
return new InterfaceModel();
|
|
61691
|
-
}
|
|
61692
|
-
}), security_setting_metadata("design:type", typeof (_a = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _a : Object)], SecuritySetting.prototype, "interfaceModel", void 0);
|
|
61693
|
-
|
|
61694
|
-
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);
|
|
61695
|
-
|
|
61696
|
-
security_setting_decorate([Object(flagwind_web_["watch"])("model", {
|
|
61697
|
-
deep: true
|
|
61698
|
-
}), security_setting_metadata("design:type", Function), security_setting_metadata("design:paramtypes", []), security_setting_metadata("design:returntype", void 0)], SecuritySetting.prototype, "modelChange", null);
|
|
61699
|
-
|
|
61700
|
-
SecuritySetting = security_setting_decorate([Object(flagwind_web_["component"])({
|
|
61701
|
-
template: __webpack_require__("b676"),
|
|
61702
|
-
components: {
|
|
61703
|
-
"u-tips-form-label": tips_form_label
|
|
61704
|
-
}
|
|
61705
|
-
})], SecuritySetting);
|
|
61706
|
-
return SecuritySetting;
|
|
61707
|
-
}(flagwind_web_["Component"]);
|
|
61708
|
-
|
|
61709
|
-
/* harmony default export */ var project_detail_security_setting = (security_setting_SecuritySetting);
|
|
61710
|
-
// EXTERNAL MODULE: ./src/views/project-detail/interface-settings/index.scss
|
|
61711
|
-
var interface_settings = __webpack_require__("2a79");
|
|
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
|
-
_extendStatics
|
|
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
|
-
var
|
|
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
|
-
|
|
61848
|
-
|
|
61849
|
-
|
|
61850
|
-
|
|
61851
|
-
|
|
61852
|
-
|
|
61853
|
-
|
|
61854
|
-
|
|
61855
|
-
|
|
61856
|
-
|
|
61857
|
-
|
|
61858
|
-
|
|
61859
|
-
|
|
61860
|
-
|
|
61861
|
-
|
|
61862
|
-
|
|
61863
|
-
|
|
61864
|
-
|
|
61865
|
-
|
|
61866
|
-
|
|
61867
|
-
|
|
61868
|
-
|
|
61869
|
-
|
|
61870
|
-
|
|
61871
|
-
|
|
61872
|
-
|
|
61873
|
-
|
|
61874
|
-
|
|
61875
|
-
|
|
61876
|
-
|
|
61877
|
-
|
|
61878
|
-
|
|
61879
|
-
|
|
61880
|
-
|
|
61881
|
-
|
|
61882
|
-
|
|
61883
|
-
|
|
61884
|
-
|
|
61885
|
-
|
|
61886
|
-
|
|
61887
|
-
|
|
61888
|
-
|
|
61889
|
-
|
|
61890
|
-
|
|
61891
|
-
|
|
61892
|
-
|
|
61893
|
-
|
|
61894
|
-
|
|
61895
|
-
|
|
61896
|
-
|
|
61897
|
-
|
|
61898
|
-
|
|
61899
|
-
|
|
61900
|
-
|
|
61901
|
-
|
|
61902
|
-
|
|
61903
|
-
|
|
61904
|
-
|
|
61905
|
-
|
|
61906
|
-
|
|
61907
|
-
|
|
61908
|
-
|
|
61909
|
-
|
|
61910
|
-
|
|
61911
|
-
|
|
61912
|
-
|
|
61913
|
-
|
|
61914
|
-
|
|
61915
|
-
|
|
61916
|
-
|
|
61917
|
-
|
|
61918
|
-
|
|
61919
|
-
|
|
61920
|
-
|
|
61921
|
-
|
|
61922
|
-
|
|
61923
|
-
|
|
61924
|
-
|
|
61925
|
-
|
|
61926
|
-
|
|
61927
|
-
|
|
61928
|
-
|
|
61929
|
-
|
|
61930
|
-
return
|
|
61931
|
-
|
|
61932
|
-
|
|
61933
|
-
|
|
61934
|
-
|
|
61935
|
-
|
|
61936
|
-
|
|
61937
|
-
|
|
61938
|
-
|
|
61939
|
-
|
|
61940
|
-
|
|
61941
|
-
|
|
61942
|
-
|
|
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(); // this.debounceSearch = debounce(this.getSecurityList(this.keyword), 200);
|
|
62154
|
+
}
|
|
62155
|
+
|
|
62156
|
+
return [2
|
|
62157
|
+
/*return*/
|
|
62158
|
+
];
|
|
62159
|
+
});
|
|
62160
|
+
});
|
|
62161
|
+
};
|
|
62162
|
+
|
|
62163
|
+
SecurityModalComponent.prototype.getSecurityTypeList = function () {
|
|
62164
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62165
|
+
var result, tempList;
|
|
62166
|
+
return security_modal_generator(this, function (_a) {
|
|
62167
|
+
switch (_a.label) {
|
|
62168
|
+
case 0:
|
|
62169
|
+
return [4
|
|
62170
|
+
/*yield*/
|
|
62171
|
+
, this.service.getEnumByType("authenticationType")];
|
|
62172
|
+
|
|
62173
|
+
case 1:
|
|
62174
|
+
result = _a.sent();
|
|
62175
|
+
tempList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62176
|
+
this.securityTypeList = tempList.filter(function (item) {
|
|
62177
|
+
return item.name !== "None";
|
|
62178
|
+
});
|
|
62179
|
+
return [2
|
|
62180
|
+
/*return*/
|
|
62181
|
+
];
|
|
62182
|
+
}
|
|
62183
|
+
});
|
|
62184
|
+
});
|
|
62185
|
+
};
|
|
62186
|
+
|
|
62187
|
+
SecurityModalComponent.prototype.getTokenLocationTypeList = function () {
|
|
62188
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62189
|
+
var result;
|
|
62190
|
+
return security_modal_generator(this, function (_a) {
|
|
62191
|
+
switch (_a.label) {
|
|
62192
|
+
case 0:
|
|
62193
|
+
return [4
|
|
62194
|
+
/*yield*/
|
|
62195
|
+
, this.service.getEnumByType("tokenLocationType")];
|
|
62196
|
+
|
|
62197
|
+
case 1:
|
|
62198
|
+
result = _a.sent();
|
|
62199
|
+
this.tokenLocationTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62200
|
+
return [2
|
|
62201
|
+
/*return*/
|
|
62202
|
+
];
|
|
62203
|
+
}
|
|
62204
|
+
});
|
|
62205
|
+
});
|
|
62206
|
+
};
|
|
62207
|
+
|
|
62208
|
+
SecurityModalComponent.prototype.getGrantTypeList = function () {
|
|
62209
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62210
|
+
var result;
|
|
62211
|
+
return security_modal_generator(this, function (_a) {
|
|
62212
|
+
switch (_a.label) {
|
|
62213
|
+
case 0:
|
|
62214
|
+
return [4
|
|
62215
|
+
/*yield*/
|
|
62216
|
+
, this.service.getEnumByType("grantType")];
|
|
62217
|
+
|
|
62218
|
+
case 1:
|
|
62219
|
+
result = _a.sent();
|
|
62220
|
+
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62221
|
+
return [2
|
|
62222
|
+
/*return*/
|
|
62223
|
+
];
|
|
62224
|
+
}
|
|
62225
|
+
});
|
|
62226
|
+
});
|
|
62227
|
+
};
|
|
62228
|
+
|
|
62229
|
+
SecurityModalComponent.prototype.getSecurityList = function () {
|
|
62230
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62231
|
+
var res, tempList;
|
|
62232
|
+
return security_modal_generator(this, function (_a) {
|
|
62233
|
+
switch (_a.label) {
|
|
62234
|
+
case 0:
|
|
62235
|
+
return [4
|
|
62236
|
+
/*yield*/
|
|
62237
|
+
, this.service.getSecurityList({
|
|
62238
|
+
name: this.keyword,
|
|
62239
|
+
projectId: this.projectID
|
|
62240
|
+
})];
|
|
62241
|
+
|
|
62242
|
+
case 1:
|
|
62243
|
+
res = _a.sent();
|
|
62244
|
+
|
|
62245
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
62246
|
+
tempList = res.result || [];
|
|
62247
|
+
this.securityList = tempList.map(function (item) {
|
|
62248
|
+
if (item.type !== "GROOVY_SCRIPT") {
|
|
62249
|
+
item.content = JSON.parse(item.content);
|
|
62250
|
+
} else {
|
|
62251
|
+
item.scriptContent = item.content;
|
|
62252
|
+
item.content = {};
|
|
62253
|
+
}
|
|
62254
|
+
|
|
62255
|
+
return item;
|
|
62256
|
+
});
|
|
62257
|
+
|
|
62258
|
+
if (this.isAddOnce || this.exitAddItem) {
|
|
62259
|
+
this.onAddItem();
|
|
62260
|
+
this.isAddOnce = false;
|
|
62261
|
+
this.exitAddItem = false;
|
|
62262
|
+
}
|
|
62263
|
+
}
|
|
62264
|
+
|
|
62265
|
+
return [2
|
|
62266
|
+
/*return*/
|
|
62267
|
+
];
|
|
62268
|
+
}
|
|
62269
|
+
});
|
|
62270
|
+
});
|
|
62271
|
+
};
|
|
62272
|
+
|
|
62273
|
+
SecurityModalComponent.prototype.onSelectSecurityItem = function (item) {
|
|
62274
|
+
this.currentSecurityItem = item.$clone();
|
|
62275
|
+
};
|
|
62276
|
+
|
|
62277
|
+
SecurityModalComponent.prototype.onDelete = function (item) {
|
|
62278
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62279
|
+
var res;
|
|
62280
|
+
return security_modal_generator(this, function (_a) {
|
|
62281
|
+
switch (_a.label) {
|
|
62282
|
+
case 0:
|
|
62283
|
+
if (!item.id) return [3
|
|
62284
|
+
/*break*/
|
|
62285
|
+
, 2];
|
|
62286
|
+
|
|
62287
|
+
if (this.securityList.find(function (item) {
|
|
62288
|
+
return !item.id;
|
|
62289
|
+
})) {
|
|
62290
|
+
this.exitAddItem = true;
|
|
62291
|
+
}
|
|
62292
|
+
|
|
62293
|
+
return [4
|
|
62294
|
+
/*yield*/
|
|
62295
|
+
, this.service.deleteSecurityItem(item.id)];
|
|
62296
|
+
|
|
62297
|
+
case 1:
|
|
62298
|
+
res = _a.sent();
|
|
62299
|
+
|
|
62300
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
62301
|
+
this.getSecurityList();
|
|
62302
|
+
}
|
|
62303
|
+
|
|
62304
|
+
return [3
|
|
62305
|
+
/*break*/
|
|
62306
|
+
, 3];
|
|
62307
|
+
|
|
62308
|
+
case 2:
|
|
62309
|
+
this.securityList.shift();
|
|
62310
|
+
_a.label = 3;
|
|
62311
|
+
|
|
62312
|
+
case 3:
|
|
62313
|
+
this.currentSecurityItem = {};
|
|
62314
|
+
return [2
|
|
62315
|
+
/*return*/
|
|
62316
|
+
];
|
|
62317
|
+
}
|
|
62318
|
+
});
|
|
62319
|
+
});
|
|
62320
|
+
};
|
|
62321
|
+
|
|
62322
|
+
SecurityModalComponent.prototype.onAddItem = function () {
|
|
62323
|
+
if (this.securityList.length > 0 && !this.securityList[0].id) {
|
|
62324
|
+
return;
|
|
62325
|
+
}
|
|
62326
|
+
|
|
62327
|
+
var item = {
|
|
62328
|
+
name: "",
|
|
62329
|
+
type: "GROOVY_SCRIPT",
|
|
62330
|
+
content: {},
|
|
62331
|
+
scriptContent: ""
|
|
62332
|
+
};
|
|
62333
|
+
this.securityList.unshift(item);
|
|
62334
|
+
this.currentSecurityItem = this.securityList[0].$clone();
|
|
62335
|
+
};
|
|
62336
|
+
|
|
62337
|
+
SecurityModalComponent.prototype.onCancel = function () {
|
|
62338
|
+
this.show = false;
|
|
62339
|
+
this.keyword = "";
|
|
62340
|
+
this.currentSecurityItem = {};
|
|
62341
|
+
};
|
|
62342
|
+
|
|
62343
|
+
SecurityModalComponent.prototype.onSave = function () {
|
|
62344
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
62345
|
+
var data, res;
|
|
62346
|
+
return security_modal_generator(this, function (_a) {
|
|
62347
|
+
switch (_a.label) {
|
|
62348
|
+
case 0:
|
|
62349
|
+
data = {
|
|
62350
|
+
projectId: this.projectID,
|
|
62351
|
+
name: this.currentSecurityItem.name,
|
|
62352
|
+
type: this.currentSecurityItem.type
|
|
62353
|
+
};
|
|
62354
|
+
|
|
62355
|
+
if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
|
|
62356
|
+
data.location = null;
|
|
62357
|
+
data.locationKey = null;
|
|
62358
|
+
data.content = this.currentSecurityItem.scriptContent;
|
|
62359
|
+
} else {
|
|
62360
|
+
data.location = this.currentSecurityItem.location;
|
|
62361
|
+
data.locationKey = this.currentSecurityItem.locationKey;
|
|
62362
|
+
data.content = {};
|
|
62363
|
+
|
|
62364
|
+
if (this.currentSecurityItem.type === "Api_Key") {
|
|
62365
|
+
data.content.key = this.currentSecurityItem.content.key;
|
|
62366
|
+
} else if (this.currentSecurityItem.type === "Base_Auth") {
|
|
62367
|
+
data.content.username = this.currentSecurityItem.content.username;
|
|
62368
|
+
data.content.password = this.currentSecurityItem.content.password;
|
|
62369
|
+
} else if (this.currentSecurityItem.type === "OAuth2") {
|
|
62370
|
+
data = security_modal_assign(security_modal_assign({}, data), this.currentSecurityItem);
|
|
62371
|
+
|
|
62372
|
+
if (this.currentSecurityItem.content.grantType !== "password") {
|
|
62373
|
+
delete data.content.password;
|
|
62374
|
+
delete data.content.username;
|
|
62375
|
+
}
|
|
62376
|
+
}
|
|
62377
|
+
|
|
62378
|
+
data.content = JSON.stringify(data.content);
|
|
62379
|
+
}
|
|
62380
|
+
|
|
62381
|
+
res = null;
|
|
62382
|
+
if (!this.currentSecurityItem.id) return [3
|
|
62383
|
+
/*break*/
|
|
62384
|
+
, 2];
|
|
62385
|
+
data.id = this.currentSecurityItem.id;
|
|
62386
|
+
return [4
|
|
62387
|
+
/*yield*/
|
|
62388
|
+
, this.service.updateSecurityItem(data)];
|
|
62389
|
+
|
|
62390
|
+
case 1:
|
|
62391
|
+
res = _a.sent();
|
|
62392
|
+
return [3
|
|
62393
|
+
/*break*/
|
|
62394
|
+
, 4];
|
|
62395
|
+
|
|
62396
|
+
case 2:
|
|
62397
|
+
return [4
|
|
62398
|
+
/*yield*/
|
|
62399
|
+
, this.service.addSecurityItem(data)];
|
|
62400
|
+
|
|
62401
|
+
case 3:
|
|
62402
|
+
res = _a.sent();
|
|
62403
|
+
_a.label = 4;
|
|
62404
|
+
|
|
62405
|
+
case 4:
|
|
62406
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
62407
|
+
this.getSecurityList();
|
|
62408
|
+
this.$emit("on-fresh");
|
|
62409
|
+
}
|
|
62410
|
+
|
|
62411
|
+
return [2
|
|
62412
|
+
/*return*/
|
|
62413
|
+
];
|
|
62414
|
+
}
|
|
62415
|
+
});
|
|
62416
|
+
});
|
|
62417
|
+
};
|
|
62418
|
+
|
|
62419
|
+
var _a;
|
|
62420
|
+
|
|
62421
|
+
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);
|
|
62422
|
+
|
|
62423
|
+
security_modal_decorate([Object(flagwind_web_["config"])({
|
|
62424
|
+
type: Boolean,
|
|
62425
|
+
default: true
|
|
62426
|
+
}), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "value", void 0);
|
|
62427
|
+
|
|
62428
|
+
security_modal_decorate([Object(flagwind_web_["config"])({
|
|
62429
|
+
type: String,
|
|
62430
|
+
default: ""
|
|
62431
|
+
}), security_modal_metadata("design:type", String)], SecurityModalComponent.prototype, "projectID", void 0);
|
|
62432
|
+
|
|
62433
|
+
security_modal_decorate([Object(flagwind_web_["config"])({
|
|
62434
|
+
type: Boolean,
|
|
62435
|
+
default: false
|
|
62436
|
+
}), security_modal_metadata("design:type", Boolean)], SecurityModalComponent.prototype, "isAdd", void 0);
|
|
62437
|
+
|
|
62438
|
+
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);
|
|
62439
|
+
|
|
62440
|
+
SecurityModalComponent = security_modal_decorate([Object(flagwind_web_["component"])({
|
|
62441
|
+
template: __webpack_require__("3bf8"),
|
|
62442
|
+
components: {
|
|
62443
|
+
"u-tips-form-label": project_detail_security_setting_v2_tips_form_label
|
|
62444
|
+
}
|
|
62445
|
+
})], SecurityModalComponent);
|
|
62446
|
+
return SecurityModalComponent;
|
|
62447
|
+
}(flagwind_web_["Component"]);
|
|
62448
|
+
|
|
62449
|
+
/* harmony default export */ var project_detail_security_modal = (security_modal_SecurityModalComponent);
|
|
62450
|
+
// CONCATENATED MODULE: ./src/views/project-detail/security-setting-v2/index.ts
|
|
62451
|
+
|
|
62452
|
+
|
|
62453
|
+
|
|
62454
|
+
|
|
62455
|
+
|
|
62456
|
+
|
|
62457
|
+
|
|
62458
|
+
|
|
62459
|
+
|
|
62460
|
+
|
|
62461
|
+
|
|
62462
|
+
|
|
62463
|
+
|
|
62464
|
+
|
|
62465
|
+
|
|
62466
|
+
|
|
62467
|
+
|
|
62468
|
+
var security_setting_v2_extends = undefined && undefined.__extends || function () {
|
|
62469
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
62470
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
62471
|
+
__proto__: []
|
|
62472
|
+
} instanceof Array && function (d, b) {
|
|
62473
|
+
d.__proto__ = b;
|
|
62474
|
+
} || function (d, b) {
|
|
62475
|
+
for (var p in b) {
|
|
62476
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
62477
|
+
}
|
|
62478
|
+
};
|
|
62479
|
+
|
|
62480
|
+
return _extendStatics(d, b);
|
|
62481
|
+
};
|
|
62482
|
+
|
|
62483
|
+
return function (d, b) {
|
|
62484
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
62485
|
+
|
|
62486
|
+
_extendStatics(d, b);
|
|
62487
|
+
|
|
62488
|
+
function __() {
|
|
62489
|
+
this.constructor = d;
|
|
62490
|
+
}
|
|
62491
|
+
|
|
62492
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62493
|
+
};
|
|
62494
|
+
}();
|
|
62495
|
+
|
|
62496
|
+
var security_setting_v2_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
62497
|
+
var c = arguments.length,
|
|
62498
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
62499
|
+
d;
|
|
62500
|
+
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--) {
|
|
62501
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
62502
|
+
}
|
|
62503
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62504
|
+
};
|
|
62505
|
+
|
|
62506
|
+
var security_setting_v2_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
62507
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
62508
|
+
};
|
|
62509
|
+
|
|
62510
|
+
var security_setting_v2_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
62511
|
+
function adopt(value) {
|
|
62512
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
62513
|
+
resolve(value);
|
|
62514
|
+
});
|
|
62515
|
+
}
|
|
62516
|
+
|
|
62517
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
62518
|
+
function fulfilled(value) {
|
|
62519
|
+
try {
|
|
62520
|
+
step(generator.next(value));
|
|
62521
|
+
} catch (e) {
|
|
62522
|
+
reject(e);
|
|
62523
|
+
}
|
|
62524
|
+
}
|
|
62525
|
+
|
|
62526
|
+
function rejected(value) {
|
|
62527
|
+
try {
|
|
62528
|
+
step(generator["throw"](value));
|
|
62529
|
+
} catch (e) {
|
|
62530
|
+
reject(e);
|
|
62531
|
+
}
|
|
62532
|
+
}
|
|
62533
|
+
|
|
62534
|
+
function step(result) {
|
|
62535
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
62536
|
+
}
|
|
62537
|
+
|
|
62538
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
62539
|
+
});
|
|
62540
|
+
};
|
|
62541
|
+
|
|
62542
|
+
var security_setting_v2_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
62543
|
+
var _ = {
|
|
62544
|
+
label: 0,
|
|
62545
|
+
sent: function sent() {
|
|
62546
|
+
if (t[0] & 1) throw t[1];
|
|
62547
|
+
return t[1];
|
|
62548
|
+
},
|
|
62549
|
+
trys: [],
|
|
62550
|
+
ops: []
|
|
62551
|
+
},
|
|
62552
|
+
f,
|
|
62553
|
+
y,
|
|
62554
|
+
t,
|
|
62555
|
+
g;
|
|
62556
|
+
return g = {
|
|
62557
|
+
next: verb(0),
|
|
62558
|
+
"throw": verb(1),
|
|
62559
|
+
"return": verb(2)
|
|
62560
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
62561
|
+
return this;
|
|
62562
|
+
}), g;
|
|
62563
|
+
|
|
62564
|
+
function verb(n) {
|
|
62565
|
+
return function (v) {
|
|
62566
|
+
return step([n, v]);
|
|
62567
|
+
};
|
|
62568
|
+
}
|
|
62569
|
+
|
|
62570
|
+
function step(op) {
|
|
62571
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
62572
|
+
|
|
62573
|
+
while (_) {
|
|
62574
|
+
try {
|
|
62575
|
+
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;
|
|
62576
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
62577
|
+
|
|
62578
|
+
switch (op[0]) {
|
|
62579
|
+
case 0:
|
|
62580
|
+
case 1:
|
|
62581
|
+
t = op;
|
|
62582
|
+
break;
|
|
62583
|
+
|
|
62584
|
+
case 4:
|
|
62585
|
+
_.label++;
|
|
62586
|
+
return {
|
|
62587
|
+
value: op[1],
|
|
62588
|
+
done: false
|
|
62589
|
+
};
|
|
62590
|
+
|
|
62591
|
+
case 5:
|
|
62592
|
+
_.label++;
|
|
62593
|
+
y = op[1];
|
|
62594
|
+
op = [0];
|
|
62595
|
+
continue;
|
|
62596
|
+
|
|
62597
|
+
case 7:
|
|
62598
|
+
op = _.ops.pop();
|
|
62599
|
+
|
|
62600
|
+
_.trys.pop();
|
|
62601
|
+
|
|
62602
|
+
continue;
|
|
62603
|
+
|
|
62604
|
+
default:
|
|
62605
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
62606
|
+
_ = 0;
|
|
62607
|
+
continue;
|
|
62608
|
+
}
|
|
62609
|
+
|
|
62610
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
62611
|
+
_.label = op[1];
|
|
62612
|
+
break;
|
|
62613
|
+
}
|
|
62614
|
+
|
|
62615
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
62616
|
+
_.label = t[1];
|
|
62617
|
+
t = op;
|
|
62618
|
+
break;
|
|
62619
|
+
}
|
|
62620
|
+
|
|
62621
|
+
if (t && _.label < t[2]) {
|
|
62622
|
+
_.label = t[2];
|
|
62623
|
+
|
|
62624
|
+
_.ops.push(op);
|
|
62625
|
+
|
|
62626
|
+
break;
|
|
62627
|
+
}
|
|
62628
|
+
|
|
62629
|
+
if (t[2]) _.ops.pop();
|
|
62630
|
+
|
|
62631
|
+
_.trys.pop();
|
|
62632
|
+
|
|
62633
|
+
continue;
|
|
62634
|
+
}
|
|
62635
|
+
|
|
62636
|
+
op = body.call(thisArg, _);
|
|
62637
|
+
} catch (e) {
|
|
62638
|
+
op = [6, e];
|
|
62639
|
+
y = 0;
|
|
62640
|
+
} finally {
|
|
62641
|
+
f = t = 0;
|
|
62642
|
+
}
|
|
62643
|
+
}
|
|
62644
|
+
|
|
62645
|
+
if (op[0] & 5) throw op[1];
|
|
62646
|
+
return {
|
|
62647
|
+
value: op[0] ? op[1] : void 0,
|
|
62648
|
+
done: true
|
|
62649
|
+
};
|
|
62650
|
+
}
|
|
62651
|
+
};
|
|
62652
|
+
|
|
62653
|
+
|
|
62654
|
+
|
|
62655
|
+
|
|
62656
|
+
|
|
62657
|
+
|
|
62658
|
+
|
|
62659
|
+
|
|
62660
|
+
|
|
62661
|
+
var security_setting_v2_SecuritySettingV2 =
|
|
62662
|
+
/** @class */
|
|
62663
|
+
function (_super) {
|
|
62664
|
+
security_setting_v2_extends(SecuritySettingV2, _super);
|
|
62665
|
+
|
|
62666
|
+
function SecuritySettingV2() {
|
|
62667
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
62668
|
+
|
|
62669
|
+
_this.securityList = [];
|
|
62670
|
+
_this.currentSecurityItem = {};
|
|
62671
|
+
_this.currentSecurityItemId = "";
|
|
62672
|
+
_this.showSecurity = false;
|
|
62673
|
+
_this.isAdd = true;
|
|
62674
|
+
_this.grantTypeList = [];
|
|
62675
|
+
return _this;
|
|
62676
|
+
}
|
|
62677
|
+
|
|
62678
|
+
SecuritySettingV2.prototype.mounted = function () {
|
|
62679
|
+
var _a;
|
|
62680
|
+
|
|
62681
|
+
return security_setting_v2_awaiter(this, void 0, void 0, function () {
|
|
62682
|
+
var _this = this;
|
|
62683
|
+
|
|
62684
|
+
return security_setting_v2_generator(this, function (_b) {
|
|
62685
|
+
switch (_b.label) {
|
|
62686
|
+
case 0:
|
|
62687
|
+
this.getGrantTypeList();
|
|
62688
|
+
return [4
|
|
62689
|
+
/*yield*/
|
|
62690
|
+
, this.getSecurityList()];
|
|
62691
|
+
|
|
62692
|
+
case 1:
|
|
62693
|
+
_b.sent();
|
|
62694
|
+
|
|
62695
|
+
if (this.currentSecurityID) {
|
|
62696
|
+
this.currentSecurityItemId = this.currentSecurityID;
|
|
62697
|
+
} else if ((_a = this.interfaceModel.authentication) === null || _a === void 0 ? void 0 : _a.id) {
|
|
62698
|
+
this.currentSecurityItemId = this.interfaceModel.authentication.id;
|
|
62699
|
+
}
|
|
62700
|
+
|
|
62701
|
+
this.currentSecurityItem = this.securityList.find(function (item) {
|
|
62702
|
+
return item.id === _this.currentSecurityItemId;
|
|
62703
|
+
}) || {};
|
|
62704
|
+
return [2
|
|
62705
|
+
/*return*/
|
|
62706
|
+
];
|
|
62707
|
+
}
|
|
62708
|
+
});
|
|
62709
|
+
});
|
|
62710
|
+
};
|
|
62711
|
+
|
|
62712
|
+
SecuritySettingV2.prototype.getGrantTypeList = function () {
|
|
62713
|
+
return security_setting_v2_awaiter(this, void 0, void 0, function () {
|
|
62714
|
+
var result;
|
|
62715
|
+
return security_setting_v2_generator(this, function (_a) {
|
|
62716
|
+
switch (_a.label) {
|
|
62717
|
+
case 0:
|
|
62718
|
+
return [4
|
|
62719
|
+
/*yield*/
|
|
62720
|
+
, this.service.getEnumByType("grantType")];
|
|
62721
|
+
|
|
62722
|
+
case 1:
|
|
62723
|
+
result = _a.sent();
|
|
62724
|
+
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
62725
|
+
return [2
|
|
62726
|
+
/*return*/
|
|
62727
|
+
];
|
|
62728
|
+
}
|
|
62729
|
+
});
|
|
62730
|
+
});
|
|
62731
|
+
};
|
|
62732
|
+
|
|
62733
|
+
SecuritySettingV2.prototype.findGrantTypeText = function (name) {
|
|
62734
|
+
var res = this.grantTypeList.find(function (item) {
|
|
62735
|
+
return item.name === name;
|
|
62736
|
+
});
|
|
62737
|
+
return res ? res.text : "";
|
|
62738
|
+
};
|
|
62739
|
+
|
|
62740
|
+
SecuritySettingV2.prototype.getSecurityList = function () {
|
|
62741
|
+
return security_setting_v2_awaiter(this, void 0, void 0, function () {
|
|
62742
|
+
var res, tempList;
|
|
62743
|
+
return security_setting_v2_generator(this, function (_a) {
|
|
62744
|
+
switch (_a.label) {
|
|
62745
|
+
case 0:
|
|
62746
|
+
return [4
|
|
62747
|
+
/*yield*/
|
|
62748
|
+
, this.service.getSecurityList({
|
|
62749
|
+
projectId: this.projectID
|
|
62750
|
+
})];
|
|
62751
|
+
|
|
62752
|
+
case 1:
|
|
62753
|
+
res = _a.sent();
|
|
62754
|
+
|
|
62755
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
62756
|
+
tempList = res.result || [];
|
|
62757
|
+
this.securityList = tempList.map(function (item) {
|
|
62758
|
+
if (item.type !== "GROOVY_SCRIPT") {
|
|
62759
|
+
item.content = JSON.parse(item.content);
|
|
62760
|
+
} else {
|
|
62761
|
+
item.scriptContent = item.content;
|
|
62762
|
+
item.content = {};
|
|
62763
|
+
}
|
|
62764
|
+
|
|
62765
|
+
return item;
|
|
62766
|
+
});
|
|
62767
|
+
}
|
|
62768
|
+
|
|
62769
|
+
return [2
|
|
62770
|
+
/*return*/
|
|
62771
|
+
];
|
|
62772
|
+
}
|
|
62773
|
+
});
|
|
62774
|
+
});
|
|
62775
|
+
};
|
|
62776
|
+
|
|
62777
|
+
SecuritySettingV2.prototype.onChangeSecurityItem = function (id) {
|
|
62778
|
+
this.$emit("on-current-id", id);
|
|
62779
|
+
this.currentSecurityItem = this.securityList.find(function (item) {
|
|
62780
|
+
return item.id === id;
|
|
62781
|
+
});
|
|
62782
|
+
this.interfaceModel.authentication = this.interfaceModel.authentication || new Authentication();
|
|
62783
|
+
this.interfaceModel.authentication.type = this.currentSecurityItem.type;
|
|
62784
|
+
this.interfaceModel.authentication.location = this.currentSecurityItem.location;
|
|
62785
|
+
this.interfaceModel.authentication.locationKey = this.currentSecurityItem.locationKey;
|
|
62786
|
+
|
|
62787
|
+
if (this.currentSecurityItem.type === "GROOVY_SCRIPT") {
|
|
62788
|
+
this.interfaceModel.authentication.content = this.currentSecurityItem.scriptContent;
|
|
62789
|
+
} else {
|
|
62790
|
+
this.interfaceModel.authentication.content = JSON.stringify(this.currentSecurityItem.content);
|
|
62791
|
+
}
|
|
62792
|
+
|
|
62793
|
+
this.interfaceModel.info.authId = this.currentSecurityItem.id;
|
|
62794
|
+
};
|
|
62795
|
+
|
|
62796
|
+
SecuritySettingV2.prototype.onAddSecurityItem = function () {
|
|
62797
|
+
this.$refs.addSecuritySelect.visible = false;
|
|
62798
|
+
this.showSecurity = true;
|
|
62799
|
+
};
|
|
62800
|
+
|
|
62801
|
+
var _a, _b;
|
|
62802
|
+
|
|
62803
|
+
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);
|
|
62804
|
+
|
|
62805
|
+
security_setting_v2_decorate([Object(flagwind_web_["config"])({
|
|
62806
|
+
default: function _default() {
|
|
62807
|
+
return new InterfaceModel();
|
|
62808
|
+
}
|
|
62809
|
+
}), security_setting_v2_metadata("design:type", typeof (_b = typeof InterfaceModel !== "undefined" && InterfaceModel) === "function" ? _b : Object)], SecuritySettingV2.prototype, "interfaceModel", void 0);
|
|
62810
|
+
|
|
62811
|
+
security_setting_v2_decorate([Object(flagwind_web_["config"])({
|
|
62812
|
+
type: String,
|
|
62813
|
+
default: ""
|
|
62814
|
+
}), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "projectID", void 0);
|
|
62815
|
+
|
|
62816
|
+
security_setting_v2_decorate([Object(flagwind_web_["config"])({
|
|
62817
|
+
type: String,
|
|
62818
|
+
default: ""
|
|
62819
|
+
}), security_setting_v2_metadata("design:type", String)], SecuritySettingV2.prototype, "currentSecurityID", void 0);
|
|
62820
|
+
|
|
62821
|
+
SecuritySettingV2 = security_setting_v2_decorate([Object(flagwind_web_["component"])({
|
|
62822
|
+
template: __webpack_require__("3de4"),
|
|
62823
|
+
components: {
|
|
62824
|
+
"u-tips-form-label": project_detail_security_setting_v2_tips_form_label,
|
|
62825
|
+
"u-security-modal": project_detail_security_modal
|
|
62826
|
+
}
|
|
62827
|
+
})], SecuritySettingV2);
|
|
62828
|
+
return SecuritySettingV2;
|
|
62829
|
+
}(flagwind_web_["Component"]);
|
|
62830
|
+
|
|
62831
|
+
/* harmony default export */ var project_detail_security_setting_v2 = (security_setting_v2_SecuritySettingV2);
|
|
62832
|
+
// CONCATENATED MODULE: ./src/views/project-detail/interface-settings/index.ts
|
|
62833
|
+
|
|
62834
|
+
|
|
62835
|
+
|
|
62836
|
+
|
|
62837
|
+
|
|
62838
|
+
|
|
62839
|
+
|
|
62840
|
+
|
|
62841
|
+
|
|
62842
|
+
|
|
62843
|
+
|
|
62844
|
+
|
|
62845
|
+
|
|
62846
|
+
|
|
62847
|
+
|
|
62848
|
+
|
|
62849
|
+
|
|
62850
|
+
|
|
62851
|
+
|
|
62852
|
+
|
|
62853
|
+
|
|
62854
|
+
|
|
62855
|
+
var interface_settings_extends = undefined && undefined.__extends || function () {
|
|
62856
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
62857
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
62858
|
+
__proto__: []
|
|
62859
|
+
} instanceof Array && function (d, b) {
|
|
62860
|
+
d.__proto__ = b;
|
|
62861
|
+
} || function (d, b) {
|
|
62862
|
+
for (var p in b) {
|
|
62863
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
62864
|
+
}
|
|
62865
|
+
};
|
|
62866
|
+
|
|
62867
|
+
return _extendStatics(d, b);
|
|
62868
|
+
};
|
|
62869
|
+
|
|
62870
|
+
return function (d, b) {
|
|
62871
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
62872
|
+
|
|
62873
|
+
_extendStatics(d, b);
|
|
62874
|
+
|
|
62875
|
+
function __() {
|
|
62876
|
+
this.constructor = d;
|
|
62877
|
+
}
|
|
62878
|
+
|
|
62879
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62880
|
+
};
|
|
62881
|
+
}();
|
|
62882
|
+
|
|
62883
|
+
var interface_settings_assign = undefined && undefined.__assign || function () {
|
|
62884
|
+
interface_settings_assign = Object.assign || function (t) {
|
|
62885
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
62886
|
+
s = arguments[i];
|
|
62887
|
+
|
|
62888
|
+
for (var p in s) {
|
|
62889
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
62890
|
+
}
|
|
62891
|
+
}
|
|
62892
|
+
|
|
62893
|
+
return t;
|
|
62894
|
+
};
|
|
62895
|
+
|
|
62896
|
+
return interface_settings_assign.apply(this, arguments);
|
|
62897
|
+
};
|
|
62898
|
+
|
|
62899
|
+
var interface_settings_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
62900
|
+
var c = arguments.length,
|
|
62901
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
62902
|
+
d;
|
|
62903
|
+
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--) {
|
|
62904
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
62905
|
+
}
|
|
62906
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62907
|
+
};
|
|
62908
|
+
|
|
62909
|
+
var interface_settings_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
62910
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
62911
|
+
};
|
|
62912
|
+
|
|
62913
|
+
var interface_settings_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
62914
|
+
function adopt(value) {
|
|
62915
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
62916
|
+
resolve(value);
|
|
62917
|
+
});
|
|
62918
|
+
}
|
|
62919
|
+
|
|
62920
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
62921
|
+
function fulfilled(value) {
|
|
62922
|
+
try {
|
|
62923
|
+
step(generator.next(value));
|
|
62924
|
+
} catch (e) {
|
|
62925
|
+
reject(e);
|
|
62926
|
+
}
|
|
62927
|
+
}
|
|
62928
|
+
|
|
62929
|
+
function rejected(value) {
|
|
62930
|
+
try {
|
|
62931
|
+
step(generator["throw"](value));
|
|
62932
|
+
} catch (e) {
|
|
62933
|
+
reject(e);
|
|
62934
|
+
}
|
|
62935
|
+
}
|
|
62936
|
+
|
|
62937
|
+
function step(result) {
|
|
62938
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
62939
|
+
}
|
|
62940
|
+
|
|
62941
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
62942
|
+
});
|
|
62943
|
+
};
|
|
62944
|
+
|
|
62945
|
+
var interface_settings_generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
62946
|
+
var _ = {
|
|
62947
|
+
label: 0,
|
|
62948
|
+
sent: function sent() {
|
|
62949
|
+
if (t[0] & 1) throw t[1];
|
|
62950
|
+
return t[1];
|
|
62951
|
+
},
|
|
62952
|
+
trys: [],
|
|
62953
|
+
ops: []
|
|
62954
|
+
},
|
|
62955
|
+
f,
|
|
62956
|
+
y,
|
|
62957
|
+
t,
|
|
62958
|
+
g;
|
|
62959
|
+
return g = {
|
|
62960
|
+
next: verb(0),
|
|
62961
|
+
"throw": verb(1),
|
|
62962
|
+
"return": verb(2)
|
|
62963
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
62964
|
+
return this;
|
|
62965
|
+
}), g;
|
|
62966
|
+
|
|
62967
|
+
function verb(n) {
|
|
62968
|
+
return function (v) {
|
|
62969
|
+
return step([n, v]);
|
|
62970
|
+
};
|
|
62971
|
+
}
|
|
62972
|
+
|
|
62973
|
+
function step(op) {
|
|
62974
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
62975
|
+
|
|
62976
|
+
while (_) {
|
|
62977
|
+
try {
|
|
62978
|
+
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;
|
|
62979
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
62980
|
+
|
|
62981
|
+
switch (op[0]) {
|
|
62982
|
+
case 0:
|
|
62983
|
+
case 1:
|
|
62984
|
+
t = op;
|
|
62985
|
+
break;
|
|
62986
|
+
|
|
62987
|
+
case 4:
|
|
62988
|
+
_.label++;
|
|
62989
|
+
return {
|
|
62990
|
+
value: op[1],
|
|
62991
|
+
done: false
|
|
62992
|
+
};
|
|
62993
|
+
|
|
62994
|
+
case 5:
|
|
62995
|
+
_.label++;
|
|
62996
|
+
y = op[1];
|
|
62997
|
+
op = [0];
|
|
62998
|
+
continue;
|
|
62999
|
+
|
|
63000
|
+
case 7:
|
|
63001
|
+
op = _.ops.pop();
|
|
63002
|
+
|
|
63003
|
+
_.trys.pop();
|
|
63004
|
+
|
|
63005
|
+
continue;
|
|
63006
|
+
|
|
63007
|
+
default:
|
|
63008
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
63009
|
+
_ = 0;
|
|
63010
|
+
continue;
|
|
63011
|
+
}
|
|
63012
|
+
|
|
63013
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
63014
|
+
_.label = op[1];
|
|
63015
|
+
break;
|
|
63016
|
+
}
|
|
63017
|
+
|
|
63018
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
63019
|
+
_.label = t[1];
|
|
63020
|
+
t = op;
|
|
63021
|
+
break;
|
|
63022
|
+
}
|
|
63023
|
+
|
|
63024
|
+
if (t && _.label < t[2]) {
|
|
63025
|
+
_.label = t[2];
|
|
63026
|
+
|
|
63027
|
+
_.ops.push(op);
|
|
63028
|
+
|
|
63029
|
+
break;
|
|
63030
|
+
}
|
|
63031
|
+
|
|
63032
|
+
if (t[2]) _.ops.pop();
|
|
63033
|
+
|
|
63034
|
+
_.trys.pop();
|
|
63035
|
+
|
|
63036
|
+
continue;
|
|
63037
|
+
}
|
|
63038
|
+
|
|
63039
|
+
op = body.call(thisArg, _);
|
|
63040
|
+
} catch (e) {
|
|
63041
|
+
op = [6, e];
|
|
63042
|
+
y = 0;
|
|
63043
|
+
} finally {
|
|
63044
|
+
f = t = 0;
|
|
63045
|
+
}
|
|
63046
|
+
}
|
|
63047
|
+
|
|
63048
|
+
if (op[0] & 5) throw op[1];
|
|
63049
|
+
return {
|
|
63050
|
+
value: op[0] ? op[1] : void 0,
|
|
63051
|
+
done: true
|
|
63052
|
+
};
|
|
63053
|
+
}
|
|
63054
|
+
};
|
|
63055
|
+
|
|
63056
|
+
|
|
63057
|
+
|
|
63058
|
+
|
|
63059
|
+
|
|
63060
|
+
|
|
63061
|
+
|
|
63062
|
+
|
|
61943
63063
|
|
|
61944
63064
|
|
|
61945
63065
|
|
|
@@ -61958,6 +63078,7 @@ function (_super) {
|
|
|
61958
63078
|
_this.response = new Response();
|
|
61959
63079
|
_this.responseCache = new Map();
|
|
61960
63080
|
_this.loading = false;
|
|
63081
|
+
_this.currentId = "";
|
|
61961
63082
|
_this.typeList = [{
|
|
61962
63083
|
value: "GET",
|
|
61963
63084
|
text: "GET"
|
|
@@ -61977,9 +63098,13 @@ function (_super) {
|
|
|
61977
63098
|
}, {
|
|
61978
63099
|
title: "Headers",
|
|
61979
63100
|
name: "headers"
|
|
61980
|
-
}, {
|
|
63101
|
+
}, // {
|
|
63102
|
+
// title: "授权管理",
|
|
63103
|
+
// name: "security"
|
|
63104
|
+
// },
|
|
63105
|
+
{
|
|
61981
63106
|
title: "授权管理",
|
|
61982
|
-
name: "
|
|
63107
|
+
name: "v2security"
|
|
61983
63108
|
}, {
|
|
61984
63109
|
title: "前置脚本",
|
|
61985
63110
|
name: "pre-execution"
|
|
@@ -62157,6 +63282,10 @@ function (_super) {
|
|
|
62157
63282
|
});
|
|
62158
63283
|
};
|
|
62159
63284
|
|
|
63285
|
+
InterfaceSettings.prototype.onCurrentId = function (id) {
|
|
63286
|
+
this.currentId = id;
|
|
63287
|
+
};
|
|
63288
|
+
|
|
62160
63289
|
var _a, _b;
|
|
62161
63290
|
|
|
62162
63291
|
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);
|
|
@@ -62188,7 +63317,8 @@ function (_super) {
|
|
|
62188
63317
|
security: project_detail_security_setting,
|
|
62189
63318
|
"pre-execution": project_detail_pre_execution_setting,
|
|
62190
63319
|
"after-execution-transfer": project_detail_after_execution_transfer,
|
|
62191
|
-
"after-execution-script": after_execution_script
|
|
63320
|
+
"after-execution-script": after_execution_script,
|
|
63321
|
+
"v2security": project_detail_security_setting_v2
|
|
62192
63322
|
}
|
|
62193
63323
|
})], InterfaceSettings);
|
|
62194
63324
|
return InterfaceSettings;
|
|
@@ -63311,6 +64441,7 @@ var project_detail_generator = undefined && undefined.__generator || function (t
|
|
|
63311
64441
|
|
|
63312
64442
|
|
|
63313
64443
|
|
|
64444
|
+
|
|
63314
64445
|
var project_detail_ProjectDetail =
|
|
63315
64446
|
/** @class */
|
|
63316
64447
|
function (_super) {
|
|
@@ -63324,6 +64455,7 @@ function (_super) {
|
|
|
63324
64455
|
_this.lengthwise = true;
|
|
63325
64456
|
_this.showGlobalModal = false;
|
|
63326
64457
|
_this.showCurrentModal = false;
|
|
64458
|
+
_this.showSecurity = false;
|
|
63327
64459
|
_this.projectId = "";
|
|
63328
64460
|
_this.projectName = "";
|
|
63329
64461
|
_this.split = "340px";
|
|
@@ -63497,6 +64629,10 @@ function (_super) {
|
|
|
63497
64629
|
this.lengthwise = !this.lengthwise;
|
|
63498
64630
|
};
|
|
63499
64631
|
|
|
64632
|
+
ProjectDetail.prototype.onSecurity = function () {
|
|
64633
|
+
this.showSecurity = true;
|
|
64634
|
+
};
|
|
64635
|
+
|
|
63500
64636
|
ProjectDetail.prototype.onOpenGlobalModal = function () {
|
|
63501
64637
|
this.showGlobalModal = true;
|
|
63502
64638
|
};
|
|
@@ -63554,7 +64690,8 @@ function (_super) {
|
|
|
63554
64690
|
"u-global-modal": project_detail_global_variable_modal,
|
|
63555
64691
|
"u-current-modal": project_detail_current_variable_modal,
|
|
63556
64692
|
Swiper: vue_awesome_swiper["Swiper"],
|
|
63557
|
-
SwiperSlide: vue_awesome_swiper["SwiperSlide"]
|
|
64693
|
+
SwiperSlide: vue_awesome_swiper["SwiperSlide"],
|
|
64694
|
+
"u-security-modal": project_detail_security_modal
|
|
63558
64695
|
},
|
|
63559
64696
|
directives: {
|
|
63560
64697
|
swiper: vue_awesome_swiper["directive"]
|