@blueking/monitor-apm-log 2.3.32 → 2.3.33
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/css/main.css +1 -1
- package/main.js +162 -49
- package/package.json +1 -1
package/css/main.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.batch-operation-menu-content .operation-item[data-v-c9054592]{display:flex;align-items:center;justify-content:space-between;min-width:106px;height:32px;padding:0 12px;font-size:12px;color:#4d4f56;cursor:pointer}.batch-operation-menu-content .operation-item .icon-angle-right[data-v-c9054592]{font-size:20px}.batch-operation-menu-content .operation-item[data-v-c9054592]:hover{background:#f5f7fa}.tippy-popper.batch-move-to-group-menu .tippy-tooltip[data-v-c9054592]{padding:0;border:1px solid #dcdee5;box-shadow:0 2px 6px 0 rgba(0,0,0,.1019607843)}.batch-move-to-group-menu-content[data-v-c9054592]{width:240px;background-color:#fff}.batch-move-to-group-menu-content .group-list[data-v-c9054592]{max-height:180px;padding:4px 0;overflow-y:auto}.batch-move-to-group-menu-content .group-list .group-item[data-v-c9054592]{height:32px;padding:0 13px;font-size:12px;line-height:32px;color:#4d4f56;cursor:pointer}.batch-move-to-group-menu-content .group-list .group-item[data-v-c9054592]:hover{background:#f5f7fa}.batch-move-to-group-menu-content .add-group-item[data-v-c9054592]{height:40px;padding:0 12px;text-align:center;background:#fafbfd;border-top:1px solid #dcdee5;border-radius:0 0 2px 2px}.batch-move-to-group-menu-content .add-group-item .add-group-btn[data-v-c9054592]{font-size:12px;line-height:40px;color:#4d4f56;cursor:pointer}.batch-move-to-group-menu-content .add-group-item .add-group-btn .icon-monitor[data-v-c9054592]{margin-right:5px;font-size:14px;color:#979ba5}.batch-move-to-group-menu-content .add-group-item .add-group-input[data-v-c9054592]{display:flex;align-items:center;margin-top:4px}.batch-move-to-group-menu-content .add-group-item .add-group-input .bk-icon[data-v-c9054592]{cursor:pointer}.batch-move-to-group-menu-content .add-group-item .add-group-input .icon-check-line[data-v-c9054592]{margin:0 10px;font-size:16px;color:#299e56}.batch-move-to-group-menu-content .add-group-item .add-group-input .icon-close-line-2[data-v-c9054592]{font-size:16px;color:#e71818}
|
|
14
14
|
.batch-operation-menu .tippy-tooltip{padding:4px 0;border:1px solid #dcdee5;box-shadow:0 2px 6px 0 rgba(0,0,0,.1019607843)}.batch-move-to-group-menu .tippy-tooltip{padding:0;border:1px solid #dcdee5;box-shadow:0 2px 6px 0 rgba(0,0,0,.1019607843)}.bk-dialog-wrapper.batch-delete-dialog .dialog-content{padding:0 32px;text-align:left}.bk-dialog-wrapper.batch-delete-dialog .dialog-content .title{margin:18px 0 24px;font-size:20px;color:#313238;text-align:center}.bk-dialog-wrapper.batch-delete-dialog .dialog-content .tips{padding:0 16px;margin-bottom:16px;line-height:46px;background:#f5f7fa;border-radius:2px;color:#63656e;font-size:14px}.bk-dialog-wrapper.batch-delete-dialog .dialog-content .favorite-list{border:1px solid #eaebf0;border-radius:2px}.bk-dialog-wrapper.batch-delete-dialog .dialog-content .favorite-list .list-title{padding:0 16px;font-size:14px;line-height:32px;color:#313238;background:#f0f1f5}.bk-dialog-wrapper.batch-delete-dialog .dialog-content .favorite-list .list-title .count{font-weight:700}.bk-dialog-wrapper.batch-delete-dialog .dialog-content .favorite-list .list{max-height:160px;overflow-y:auto}.bk-dialog-wrapper.batch-delete-dialog .dialog-content .favorite-list .list .item{height:32px;padding:0 16px;overflow:hidden;font-size:12px;line-height:32px;color:#4d4f56;text-overflow:ellipsis;white-space:nowrap}.bk-dialog-wrapper.batch-delete-dialog .dialog-content .favorite-list .list .item:nth-child(n){background:#fff}.bk-dialog-wrapper.batch-delete-dialog .dialog-content .favorite-list .list .item:nth-child(2n){background:#fafbfd}.bk-dialog-wrapper.batch-delete-dialog .bk-dialog-footer{padding:16px 32px 24px;background-color:#fff;border:none}.bk-dialog-wrapper.batch-delete-dialog .bk-dialog-footer .footer-wrap{text-align:center}.bk-dialog-wrapper.batch-delete-dialog .bk-dialog-footer .bk-button{min-width:88px}.bk-dialog-wrapper.batch-delete-dialog .bk-dialog-footer .del-btn{margin-right:8px}
|
|
15
15
|
.favorite-manage___favorite-detail-component[data-v-410a06ca]{padding:14px 16px}.favorite-manage___favorite-detail-component .header-title[data-v-410a06ca]{display:flex;justify-content:space-between;margin-bottom:12px;font-size:16px;line-height:24px;color:#313238}.favorite-manage___favorite-detail-component .header-title .bklog-close[data-v-410a06ca]{cursor:pointer}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item[data-v-410a06ca]{display:flex;align-items:flex-start;font-size:12px}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-label[data-v-410a06ca]{width:60px;margin:6px 0;line-height:20px;color:#4d4f56;text-align:right}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content[data-v-410a06ca]{display:flex;align-items:center;line-height:20px}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .input-loading[data-v-410a06ca]{width:248px;height:20px;margin-top:6px}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .edit-name-wrap[data-v-410a06ca]{display:flex;align-items:flex-start;margin-top:6px}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .edit-name-wrap .edit-name[data-v-410a06ca]{line-height:20px}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .edit-name-wrap .bklog-edit[data-v-410a06ca]{display:inline-block;width:20px;height:20px;margin-left:4px;font-size:16px;line-height:20px;cursor:pointer}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .item-name[data-v-410a06ca]{margin-top:6px}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .edit-input-wrap[data-v-410a06ca]{width:248px;background:#fff}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .query-content-wrap[data-v-410a06ca]{position:relative;width:440px;padding:8px 12px;font-size:12px;line-height:18px;background:#f0f1f5;border-radius:2px}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .query-content-wrap .json-wrap[data-v-410a06ca]{width:auto;max-height:500px;overflow-y:auto}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .query-content-wrap .json-wrap .vjs-tree[data-v-410a06ca]{font-size:12px}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .query-content-wrap .json-wrap .vjs-tree .vjs-value-string[data-v-410a06ca]{tab-size:3;white-space:pre-wrap}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .query-content-wrap .json-wrap .vjs-tree .vjs-value__string[data-v-410a06ca]{color:#1f6d89}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .query-content-wrap .json-wrap .vjs-tree .vjs-key[data-v-410a06ca]{color:#9d694c}.favorite-manage___favorite-detail-component .detail-items-wrap .form-item .form-item-content .query-content-wrap .promql-val[data-v-410a06ca]{width:100%;word-wrap:break-word}
|
|
16
|
-
[data-v-
|
|
16
|
+
[data-v-0d82ad5f] .bk-dialog{height:calc(100% - 50px)}[data-v-0d82ad5f] .bk-dialog .bk-dialog-content{height:100%}[data-v-0d82ad5f] .bk-dialog .bk-dialog-content .bk-dialog-body{padding:0;overflow:hidden;background-color:#f5f6fa;height:100%}[data-v-0d82ad5f] .bk-dialog-tool{display:none}.favorite-group-dialog-header[data-v-0d82ad5f]{position:relative;width:100%;height:48px;font-size:16px;line-height:48px;color:#313238;text-align:center;background:#fff;box-shadow:0 1px 4px 0 rgba(0,0,0,.0784313725)}.favorite-group-dialog-header .close-icon[data-v-0d82ad5f]{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;overflow:hidden;font-size:32px;color:#63656e;cursor:pointer}.favorite-group-dialog-content[data-v-0d82ad5f]{position:relative;display:flex;width:100%;height:calc(100% - 48px);background-color:#fff;margin-top:1px}.favorite-group-dialog-content .favorite-group-filter[data-v-0d82ad5f]{display:flex;flex-direction:column;width:220px;padding:12px 0;background-color:#f5f7fa}.favorite-group-dialog-content .favorite-group-filter .group-type-container[data-v-0d82ad5f]{padding-bottom:4px;border-bottom:1px solid #dcdee5}.favorite-group-dialog-content .favorite-group-filter .search-input-container[data-v-0d82ad5f]{display:flex;padding:13px 16px 8px}.favorite-group-dialog-content .favorite-group-filter .search-input-container .add-group-btn[data-v-0d82ad5f]{width:32px;height:32px;font-size:16px;line-height:32px;color:#3a84ff;text-align:center;cursor:pointer;background:#cddffe;border-radius:2px}.favorite-group-dialog-content .favorite-group-filter .search-input-container .search-input[data-v-0d82ad5f]{flex:1;flex-shrink:0;margin-left:8px}.favorite-group-dialog-content .favorite-group-filter .group-list[data-v-0d82ad5f]{flex:1;overflow-y:auto}.favorite-group-dialog-content .favorite-group-filter .group-item[data-v-0d82ad5f]{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 20px;cursor:pointer}.favorite-group-dialog-content .favorite-group-filter .group-item .bklog-icon[data-v-0d82ad5f]{font-size:16px;color:#a3b1cc}.favorite-group-dialog-content .favorite-group-filter .group-item .group-name[data-v-0d82ad5f]{margin:0 auto 0 6px;font-size:13px;color:#4d4f56}.favorite-group-dialog-content .favorite-group-filter .group-item .favorite-count[data-v-0d82ad5f]{font-size:12px;font-weight:700;color:#a3b1cc}.favorite-group-dialog-content .favorite-group-filter .group-item[data-v-0d82ad5f]:hover{background:#f5f7fa}.favorite-group-dialog-content .favorite-group-filter .group-item+.group-item[data-v-0d82ad5f]{margin-top:4px}.favorite-group-dialog-content .favorite-group-filter .group-item.active[data-v-0d82ad5f]{background:#e1ecff}.favorite-group-dialog-content .favorite-group-filter .group-item.active .bklog-icon[data-v-0d82ad5f],.favorite-group-dialog-content .favorite-group-filter .group-item.active .group-name[data-v-0d82ad5f],.favorite-group-dialog-content .favorite-group-filter .group-item.active .favorite-count[data-v-0d82ad5f]{color:#3a84ff}.favorite-group-dialog-content .favorite-table-container[data-v-0d82ad5f]{flex:1;width:calc(100% - 760px);padding:12px}.favorite-group-dialog-content .favorite-table-container .table-header-operation[data-v-0d82ad5f]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.favorite-group-dialog-content .favorite-table-container .table-header-operation .favorite-search-input[data-v-0d82ad5f]{width:468px}.favorite-group-dialog-content .favorite-table-container .table-content[data-v-0d82ad5f]{height:calc(100% - 68px)}.favorite-group-dialog-content .favorite-table-container .table-content .bk-table-row.row-hover[data-v-0d82ad5f]{cursor:pointer;background:#f5f7fa}.favorite-group-dialog-content .favorite-table-container .table-content .bk-table-row.row-hover .bklog-edit[data-v-0d82ad5f]{display:block}.favorite-group-dialog-content .favorite-table-container .table-content .bk-table-row.row-click[data-v-0d82ad5f]{background:#f0f5ff}.favorite-group-dialog-content .favorite-table-container .table-content .bk-table-row .cell[data-v-0d82ad5f]{font-size:13px}.favorite-group-dialog-content .favorite-table-container .table-content .bk-table-row .edit-favorite-group[data-v-0d82ad5f]{background-color:#fff}.favorite-group-dialog-content .favorite-table-container .table-content .edit-cell[data-v-0d82ad5f]{display:flex;align-items:center;cursor:pointer}.favorite-group-dialog-content .favorite-table-container .table-content .edit-cell .text[data-v-0d82ad5f]{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.favorite-group-dialog-content .favorite-table-container .table-content .edit-cell .text.name[data-v-0d82ad5f]{color:#3a84ff}.favorite-group-dialog-content .favorite-table-container .table-content .edit-cell .bklog-edit[data-v-0d82ad5f]{display:none;font-size:16px;color:#979ba5}.favorite-group-dialog-content .favorite-table-container .table-content .del-btn[data-v-0d82ad5f]{color:#3a84ff;cursor:pointer}.favorite-group-dialog-content .favorite-detail-container[data-v-0d82ad5f]{width:540px;background:#f5f7fa}.new-add-group-popover[data-v-0d82ad5f]{width:272px}.new-add-group-popover .tippy-tooltip.light-theme[data-v-0d82ad5f]{padding:16px}.new-add-group-popover .operate-button[data-v-0d82ad5f]{display:flex;align-items:center;margin-top:16px;color:#979ba5}.new-add-group-popover .operate-button .bk-button[data-v-0d82ad5f]{min-width:52px}.new-add-group-popover .operate-button .bk-button[data-v-0d82ad5f]:first-child{margin-right:8px}
|
|
17
17
|
.collect-head-box{display:flex;width:100%;padding:14px 2px}.collect-head-box .collect-head-box-left{flex:1}.collect-head-box .collect-head-box-left .collect-head-box-left-title{font-size:14px;color:#313238}.collect-head-box .collect-head-box-left .collect-head-box-left-num{display:inline-flex;align-items:center;height:16px;padding:0 8px;margin:0 4px;font-family:RobotoMono-Medium;font-size:12px;font-weight:700;line-height:16px;color:#fff;text-align:center;letter-spacing:0;background:#a3b1cc;border-radius:8px}.collect-head-box .collect-head-box-right{color:#4d4f56}.collect-head-box .collect-head-box-right .box-icon{margin-left:12px;font-size:16px;cursor:pointer}.collect-head-box .collect-head-box-right .bklog-refresh-icon{font-size:14px}
|
|
18
18
|
.bklog-v3-popoover-wrapper{font-size:12px}[data-tippy-root] [data-theme=bklog-basic-light]{border:1px solid #dcdee5;border-radius:4px;box-shadow:0 2px 24px 0 rgba(0,0,0,.1607843137);color:#4d4f56;background-color:#fff}[data-tippy-root] [data-theme=bklog-basic-light] .tippy-content{padding:0}[data-tippy-root] [data-theme=bklog-basic-light] .tippy-arrow{color:#fff}[data-tippy-root] [data-theme=bklog-basic-light] .tippy-arrow::after{background-color:#fff;box-shadow:0 2px 24px 0 rgba(0,0,0,.1607843137)}[data-tippy-root] [data-theme=bklog-basic-dark]{border:1px solid #63656e;border-radius:4px;box-shadow:0 2px 24px 0 hsla(0,0%,100%,.1);color:#fff;background-color:#4d4f56}[data-tippy-root] [data-theme=bklog-basic-dark] .tippy-arrow{color:#4d4f56}[data-tippy-root] [data-theme=bklog-basic-dark] .tippy-arrow::after{background-color:#4d4f56;box-shadow:0 2px 24px 0 hsla(0,0%,100%,.1)}[data-tippy-root] [data-theme=bklog-light]{border:1px solid #dcdee5;border-radius:4px;box-shadow:0 2px 24px 0 rgba(0,0,0,.1607843137);color:#4d4f56;background-color:#fff}[data-tippy-root] [data-theme=bklog-light] .tippy-content{padding:0}[data-tippy-root] [data-theme=bklog-light] .tippy-arrow{color:#fff}[data-tippy-root] [data-theme=bklog-light] .tippy-arrow::after{background-color:#fff;box-shadow:0 2px 24px 0 rgba(0,0,0,.1607843137)}[data-tippy-root] [data-theme=bklog-light]{padding:8px 12px}[data-tippy-root] [data-theme=bklog-dark]{border:1px solid #63656e;border-radius:4px;box-shadow:0 2px 24px 0 hsla(0,0%,100%,.1);color:#fff;background-color:#4d4f56}[data-tippy-root] [data-theme=bklog-dark] .tippy-arrow{color:#4d4f56}[data-tippy-root] [data-theme=bklog-dark] .tippy-arrow::after{background-color:#4d4f56;box-shadow:0 2px 24px 0 hsla(0,0%,100%,.1)}[data-tippy-root] [data-theme=bklog-dark]{padding:8px 12px}
|
|
19
19
|
.add-new-page-input{position:relative;padding:6px 0}.add-new-page-input .select-add-new-group{cursor:pointer}.add-new-page-input .select-add-new-group .icon-plus-circle{margin-right:4px}.add-new-page-input .add-new-group-item{width:90%}.add-new-page-input .add-new-group-item .bk-form-input{width:100%}.add-new-page-input .operate-button{height:32px;line-height:32px;position:absolute;right:0;top:6px;font-size:16px}.add-new-page-input .operate-button .submit-icon{color:#299e56;font-weight:700;margin-right:10px;cursor:pointer}.add-new-page-input .operate-button .close-icon{color:#e71818;font-weight:700;cursor:pointer}.add-new-from-input .add-group-from-btns{margin-top:16px}.add-new-from-input .ml8{margin-left:8px}
|
package/main.js
CHANGED
|
@@ -77484,7 +77484,7 @@ function requestFavoriteListAction(_ref4, payload) {
|
|
|
77484
77484
|
order_type: favoriteSortType,
|
|
77485
77485
|
source_type: (0,helper.isSceneRetrieve)(state) ? 'scene' : 'index_set'
|
|
77486
77486
|
};
|
|
77487
|
-
if (window.
|
|
77487
|
+
if (window.__IS_MONITOR_APM__) {
|
|
77488
77488
|
Object.assign(query, {
|
|
77489
77489
|
scope: JSON.stringify({
|
|
77490
77490
|
app_name: window.MONITOR_APM_APP_NAME,
|
|
@@ -127923,8 +127923,8 @@ var retrieve_helper = __webpack_require__(9728);
|
|
|
127923
127923
|
var use_locale = __webpack_require__(3519);
|
|
127924
127924
|
// EXTERNAL MODULE: ./src/hooks/use-retrieve-event.ts
|
|
127925
127925
|
var use_retrieve_event = __webpack_require__(6884);
|
|
127926
|
-
;// ./node_modules/thread-loader/dist/cjs.js??clonedRuleSet-3.use[0]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[1]!./node_modules/ifdef-loader/ifdef-loader.js??clonedRuleSet-3.use[2]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/retrieve-v2/collect/favorite-manage-dialog.vue?vue&type=template&id=
|
|
127927
|
-
var
|
|
127926
|
+
;// ./node_modules/thread-loader/dist/cjs.js??clonedRuleSet-3.use[0]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[1]!./node_modules/ifdef-loader/ifdef-loader.js??clonedRuleSet-3.use[2]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/views/retrieve-v2/collect/favorite-manage-dialog.vue?vue&type=template&id=0d82ad5f&scoped=true
|
|
127927
|
+
var favorite_manage_dialogvue_type_template_id_0d82ad5f_scoped_true_render = function render() {
|
|
127928
127928
|
var _vm = this,
|
|
127929
127929
|
_c = _vm._self._c,
|
|
127930
127930
|
_setup = _vm._self._setupProxy;
|
|
@@ -128084,8 +128084,10 @@ var favorite_manage_dialogvue_type_template_id_71db4140_scoped_true_render = fun
|
|
|
128084
128084
|
}])
|
|
128085
128085
|
}, [_vm._v(" "), _c('div', {
|
|
128086
128086
|
staticClass: "add-group-btn"
|
|
128087
|
-
}, [_c('i', {
|
|
128087
|
+
}, [!_setup.isAPM ? _c('i', {
|
|
128088
128088
|
staticClass: "bk-icon icon-plus-line"
|
|
128089
|
+
}) : _c('i', {
|
|
128090
|
+
staticClass: "icon-monitor icon-plus-line"
|
|
128089
128091
|
})])]), _vm._v(" "), _c('bk-input', {
|
|
128090
128092
|
staticClass: "search-input",
|
|
128091
128093
|
attrs: {
|
|
@@ -128329,7 +128331,7 @@ var favorite_manage_dialogvue_type_template_id_71db4140_scoped_true_render = fun
|
|
|
128329
128331
|
}
|
|
128330
128332
|
})], 1) : _vm._e()])]);
|
|
128331
128333
|
};
|
|
128332
|
-
var
|
|
128334
|
+
var favorite_manage_dialogvue_type_template_id_0d82ad5f_scoped_true_staticRenderFns = [];
|
|
128333
128335
|
|
|
128334
128336
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
128335
128337
|
var asyncToGenerator = __webpack_require__(467);
|
|
@@ -129203,7 +129205,7 @@ var utils_time = __webpack_require__(4379);
|
|
|
129203
129205
|
* @returns 格式化后的时间字符串,格式:2025-11-04 21:44:38+0800
|
|
129204
129206
|
*/
|
|
129205
129207
|
const formatTimeZone = time => {
|
|
129206
|
-
return (0,utils_time.formatTimeZoneString)(time, timezone.value);
|
|
129208
|
+
return (0,utils_time.formatTimeZoneString)(time, timezone.value || 'Asia/Shanghai');
|
|
129207
129209
|
};
|
|
129208
129210
|
const defaultTimeFields = ['created_at', 'updated_at'];
|
|
129209
129211
|
/**
|
|
@@ -129343,6 +129345,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129343
129345
|
var favoriteTableRef = (0,external_vue_.ref)(null);
|
|
129344
129346
|
var editFavoriteNameInputRef = (0,external_vue_.ref)(null);
|
|
129345
129347
|
var editFavoriteNameSelectRef = (0,external_vue_.ref)(null);
|
|
129348
|
+
var isAPM = window.__IS_MONITOR_APM__ || false;
|
|
129346
129349
|
var rules = {
|
|
129347
129350
|
name: [{
|
|
129348
129351
|
validator: function validator() {
|
|
@@ -129380,11 +129383,13 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129380
129383
|
}
|
|
129381
129384
|
});
|
|
129382
129385
|
(0,external_vue_.watch)(allGroupList, function (newValue, oldValue) {
|
|
129386
|
+
console.log('newValue = ', newValue);
|
|
129383
129387
|
var groupMap = new Map(otherGroupList.value.map(function (group) {
|
|
129384
129388
|
return [group.id, favorite_manage_dialogvue_type_script_setup_true_lang_js_objectSpread(favorite_manage_dialogvue_type_script_setup_true_lang_js_objectSpread({}, group), {}, {
|
|
129385
129389
|
favorites: []
|
|
129386
129390
|
})];
|
|
129387
129391
|
}));
|
|
129392
|
+
console.log('groupMap = ', groupMap);
|
|
129388
129393
|
var initialOtherGroups = Array.from(groupMap.values());
|
|
129389
129394
|
var _newValue$reduce = newValue.reduce(function (acc, item) {
|
|
129390
129395
|
if (item.group_name === "未分组") {
|
|
@@ -129403,10 +129408,14 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129403
129408
|
noGroupItems = _newValue$reduce2[0],
|
|
129404
129409
|
privateItems = _newValue$reduce2[1],
|
|
129405
129410
|
otherGroupItems = _newValue$reduce2[2];
|
|
129411
|
+
console.log('noGroupItems = ', noGroupItems);
|
|
129412
|
+
console.log('privateItems = ', privateItems);
|
|
129413
|
+
console.log('otherGroupItems = ', otherGroupItems);
|
|
129406
129414
|
noGroupList.value = noGroupItems;
|
|
129407
129415
|
privateFavorite.value = privateItems;
|
|
129408
129416
|
otherGroupList.value = otherGroupItems;
|
|
129409
129417
|
}, {
|
|
129418
|
+
immediate: true,
|
|
129410
129419
|
deep: true
|
|
129411
129420
|
});
|
|
129412
129421
|
var initData = /*#__PURE__*/function () {
|
|
@@ -129453,10 +129462,10 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129453
129462
|
};
|
|
129454
129463
|
if (window.__IS_MONITOR_APM__) {
|
|
129455
129464
|
Object.assign(query, {
|
|
129456
|
-
scope: {
|
|
129465
|
+
scope: JSON.stringify({
|
|
129457
129466
|
app_name: window.MONITOR_APM_APP_NAME,
|
|
129458
129467
|
service_name: window.MONITOR_APM_SERVICE_NAME
|
|
129459
|
-
}
|
|
129468
|
+
})
|
|
129460
129469
|
});
|
|
129461
129470
|
}
|
|
129462
129471
|
_context2.next = 1;
|
|
@@ -129496,27 +129505,39 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129496
129505
|
/** 获取收藏请求 */
|
|
129497
129506
|
var getFavoriteList = /*#__PURE__*/function () {
|
|
129498
129507
|
var _ref4 = (0,asyncToGenerator["default"])(/*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
129499
|
-
var res, data, _t2;
|
|
129508
|
+
var query, res, data, _t2;
|
|
129500
129509
|
return regenerator_default().wrap(function (_context3) {
|
|
129501
129510
|
while (1) switch (_context3.prev = _context3.next) {
|
|
129502
129511
|
case 0:
|
|
129503
129512
|
_context3.prev = 0;
|
|
129513
|
+
// this.tableLoading = true;
|
|
129514
|
+
query = {
|
|
129515
|
+
space_uid: spaceUid.value,
|
|
129516
|
+
order_type: "NAME_ASC",
|
|
129517
|
+
source_type: store.getters.isSceneMode ? 'scene' : 'index_set'
|
|
129518
|
+
};
|
|
129519
|
+
if (window.__IS_MONITOR_APM__) {
|
|
129520
|
+
Object.assign(query, {
|
|
129521
|
+
scope: JSON.stringify({
|
|
129522
|
+
app_name: window.MONITOR_APM_APP_NAME,
|
|
129523
|
+
service_name: window.MONITOR_APM_SERVICE_NAME
|
|
129524
|
+
})
|
|
129525
|
+
});
|
|
129526
|
+
}
|
|
129504
129527
|
_context3.next = 1;
|
|
129505
129528
|
return api["default"].request("favorite/getFavoriteList", {
|
|
129506
|
-
query:
|
|
129507
|
-
space_uid: spaceUid.value,
|
|
129508
|
-
order_type: "NAME_ASC",
|
|
129509
|
-
source_type: store.getters.isSceneMode ? 'scene' : 'index_set'
|
|
129510
|
-
}
|
|
129529
|
+
query: query
|
|
129511
129530
|
});
|
|
129512
129531
|
case 1:
|
|
129513
129532
|
res = _context3.sent;
|
|
129533
|
+
console.log('res.data = ', res.data);
|
|
129514
129534
|
data = formatResponseListTimeZoneString(res.data, function () {
|
|
129515
129535
|
return {
|
|
129516
129536
|
editName: false,
|
|
129517
129537
|
editGroup: false
|
|
129518
129538
|
};
|
|
129519
129539
|
});
|
|
129540
|
+
console.log('data = ', data);
|
|
129520
129541
|
allGroupList.value = data;
|
|
129521
129542
|
searchResultFavorites.value = allGroupList.value;
|
|
129522
129543
|
_context3.next = 3;
|
|
@@ -129524,6 +129545,8 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129524
129545
|
case 2:
|
|
129525
129546
|
_context3.prev = 2;
|
|
129526
129547
|
_t2 = _context3["catch"](0);
|
|
129548
|
+
console.error('getFavoriteList error = ', _t2);
|
|
129549
|
+
// this.emptyType = "500";
|
|
129527
129550
|
case 3:
|
|
129528
129551
|
_context3.prev = 3;
|
|
129529
129552
|
return _context3.finish(3);
|
|
@@ -129646,6 +129669,14 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129646
129669
|
space_uid: spaceUid.value,
|
|
129647
129670
|
source_type: store.getters.isSceneMode ? 'scene' : 'index_set'
|
|
129648
129671
|
};
|
|
129672
|
+
if (window.__IS_MONITOR_APM__) {
|
|
129673
|
+
Object.assign(data, {
|
|
129674
|
+
scope: {
|
|
129675
|
+
app_name: window.MONITOR_APM_APP_NAME,
|
|
129676
|
+
service_name: window.MONITOR_APM_SERVICE_NAME
|
|
129677
|
+
}
|
|
129678
|
+
});
|
|
129679
|
+
}
|
|
129649
129680
|
_context5.next = 2;
|
|
129650
129681
|
return api["default"].request("favorite/createGroup", {
|
|
129651
129682
|
data: data
|
|
@@ -129768,6 +129799,14 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129768
129799
|
addition: row.params.addition,
|
|
129769
129800
|
search_mode: row.search_mode
|
|
129770
129801
|
}];
|
|
129802
|
+
if (window.__IS_MONITOR_APM__) {
|
|
129803
|
+
Object.assign(params, {
|
|
129804
|
+
scope: {
|
|
129805
|
+
app_name: window.MONITOR_APM_APP_NAME,
|
|
129806
|
+
service_name: window.MONITOR_APM_SERVICE_NAME
|
|
129807
|
+
}
|
|
129808
|
+
});
|
|
129809
|
+
}
|
|
129771
129810
|
return _context6.abrupt("return", api["default"].request("favorite/batchFavoriteUpdate", {
|
|
129772
129811
|
data: {
|
|
129773
129812
|
params: params
|
|
@@ -129889,6 +129928,7 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129889
129928
|
favoriteTableRef: favoriteTableRef,
|
|
129890
129929
|
editFavoriteNameInputRef: editFavoriteNameInputRef,
|
|
129891
129930
|
editFavoriteNameSelectRef: editFavoriteNameSelectRef,
|
|
129931
|
+
isAPM: isAPM,
|
|
129892
129932
|
rules: rules,
|
|
129893
129933
|
initData: initData,
|
|
129894
129934
|
handleShowChange: handleShowChange,
|
|
@@ -129933,11 +129973,11 @@ function favorite_manage_dialogvue_type_script_setup_true_lang_js_arrayLikeToArr
|
|
|
129933
129973
|
|
|
129934
129974
|
var favorite_manage_dialog_component = (0,componentNormalizer["default"])(
|
|
129935
129975
|
collect_favorite_manage_dialogvue_type_script_setup_true_lang_js,
|
|
129936
|
-
|
|
129937
|
-
|
|
129976
|
+
favorite_manage_dialogvue_type_template_id_0d82ad5f_scoped_true_render,
|
|
129977
|
+
favorite_manage_dialogvue_type_template_id_0d82ad5f_scoped_true_staticRenderFns,
|
|
129938
129978
|
false,
|
|
129939
129979
|
null,
|
|
129940
|
-
"
|
|
129980
|
+
"0d82ad5f",
|
|
129941
129981
|
null
|
|
129942
129982
|
|
|
129943
129983
|
)
|
|
@@ -130228,6 +130268,30 @@ var scene_filter_config = __webpack_require__(5340);
|
|
|
130228
130268
|
|
|
130229
130269
|
|
|
130230
130270
|
|
|
130271
|
+
/**
|
|
130272
|
+
* APM 页为 `/?bizId=#/apm/service?...&addition=`,仅替换 hash query 中的 addition
|
|
130273
|
+
*/
|
|
130274
|
+
const replaceApmHashAddition = (href, addition) => {
|
|
130275
|
+
const rawAddition = addition ?? [];
|
|
130276
|
+
const additionValue = encodeURIComponent(typeof rawAddition === 'string' ? rawAddition : JSON.stringify(rawAddition));
|
|
130277
|
+
const hashIndex = href.indexOf('#');
|
|
130278
|
+
if (hashIndex === -1) {
|
|
130279
|
+
if (/[?&]addition=/.test(href)) {
|
|
130280
|
+
return href.replace(/([?&])addition=[^&]*/, `$1addition=${additionValue}`);
|
|
130281
|
+
}
|
|
130282
|
+
return `${href}${href.includes('?') ? '&' : '?'}addition=${additionValue}`;
|
|
130283
|
+
}
|
|
130284
|
+
const beforeHash = href.slice(0, hashIndex);
|
|
130285
|
+
const hash = href.slice(hashIndex + 1);
|
|
130286
|
+
const hashQueryIndex = hash.indexOf('?');
|
|
130287
|
+
if (hashQueryIndex === -1) {
|
|
130288
|
+
return `${beforeHash}#${hash}?addition=${additionValue}`;
|
|
130289
|
+
}
|
|
130290
|
+
const hashPath = hash.slice(0, hashQueryIndex);
|
|
130291
|
+
const hashQuery = hash.slice(hashQueryIndex + 1);
|
|
130292
|
+
const nextQuery = /(?:^|&)addition=/.test(hashQuery) ? hashQuery.replace(/(^|&)addition=[^&]*/, `$1addition=${additionValue}`) : `${hashQuery}${hashQuery ? '&' : ''}addition=${additionValue}`;
|
|
130293
|
+
return `${beforeHash}#${hashPath}?${nextQuery}`;
|
|
130294
|
+
};
|
|
130231
130295
|
/**
|
|
130232
130296
|
* 收藏功能的自定义 Hook
|
|
130233
130297
|
*/
|
|
@@ -130573,6 +130637,14 @@ const useFavorite = () => {
|
|
|
130573
130637
|
space_uid: spaceUid,
|
|
130574
130638
|
source_type: sourceType
|
|
130575
130639
|
};
|
|
130640
|
+
if (window.__IS_MONITOR_APM__) {
|
|
130641
|
+
Object.assign(data, {
|
|
130642
|
+
scope: {
|
|
130643
|
+
app_name: window.MONITOR_APM_APP_NAME,
|
|
130644
|
+
service_name: window.MONITOR_APM_SERVICE_NAME
|
|
130645
|
+
}
|
|
130646
|
+
});
|
|
130647
|
+
}
|
|
130576
130648
|
const requestStr = isCreate ? 'createGroup' : 'updateGroupName';
|
|
130577
130649
|
await api["default"].request(`favorite/${requestStr}`, {
|
|
130578
130650
|
params,
|
|
@@ -130622,14 +130694,19 @@ const useFavorite = () => {
|
|
|
130622
130694
|
params: routePathParams,
|
|
130623
130695
|
query: resolver.resolveParamsToUrl()
|
|
130624
130696
|
};
|
|
130625
|
-
let shareUrl = window.SITE_URL;
|
|
130697
|
+
let shareUrl = window.SITE_URL || '';
|
|
130626
130698
|
if (!shareUrl.startsWith('/')) {
|
|
130627
130699
|
shareUrl = `/${shareUrl}`;
|
|
130628
130700
|
}
|
|
130629
130701
|
if (!shareUrl.endsWith('/')) {
|
|
130630
130702
|
shareUrl += '/';
|
|
130631
130703
|
}
|
|
130632
|
-
|
|
130704
|
+
if (window.__IS_MONITOR_APM__) {
|
|
130705
|
+
// 保留当前 APM 页路径和其余 hash 参数,只替换 addition
|
|
130706
|
+
shareUrl = replaceApmHashAddition(window.location.href, item.params?.addition);
|
|
130707
|
+
} else {
|
|
130708
|
+
shareUrl = `${window.location.origin + shareUrl}${router.resolve(routeData).href}`;
|
|
130709
|
+
}
|
|
130633
130710
|
if (type === 'new-link') {
|
|
130634
130711
|
window.open(shareUrl, '_blank', 'noopener,noreferrer');
|
|
130635
130712
|
} else {
|
|
@@ -130709,6 +130786,14 @@ const useFavorite = () => {
|
|
|
130709
130786
|
});
|
|
130710
130787
|
}
|
|
130711
130788
|
}
|
|
130789
|
+
if (window.__IS_MONITOR_APM__) {
|
|
130790
|
+
Object.assign(data, {
|
|
130791
|
+
scope: {
|
|
130792
|
+
app_name: window.MONITOR_APM_APP_NAME,
|
|
130793
|
+
service_name: window.MONITOR_APM_SERVICE_NAME
|
|
130794
|
+
}
|
|
130795
|
+
});
|
|
130796
|
+
}
|
|
130712
130797
|
api["default"].request('favorite/createFavorite', {
|
|
130713
130798
|
data
|
|
130714
130799
|
}).then(() => {
|
|
@@ -130738,11 +130823,20 @@ const useFavorite = () => {
|
|
|
130738
130823
|
const requestGroupList = async (spaceUid, callback) => {
|
|
130739
130824
|
try {
|
|
130740
130825
|
const sourceType = store.getters.isSceneMode ? 'scene' : 'index_set';
|
|
130826
|
+
const query = {
|
|
130827
|
+
space_uid: spaceUid,
|
|
130828
|
+
source_type: sourceType
|
|
130829
|
+
};
|
|
130830
|
+
if (window.__IS_MONITOR_APM__) {
|
|
130831
|
+
Object.assign(query, {
|
|
130832
|
+
scope: JSON.stringify({
|
|
130833
|
+
app_name: window.MONITOR_APM_APP_NAME,
|
|
130834
|
+
service_name: window.MONITOR_APM_SERVICE_NAME
|
|
130835
|
+
})
|
|
130836
|
+
});
|
|
130837
|
+
}
|
|
130741
130838
|
const res = await api["default"].request('favorite/getGroupList', {
|
|
130742
|
-
query
|
|
130743
|
-
space_uid: spaceUid,
|
|
130744
|
-
source_type: sourceType
|
|
130745
|
-
}
|
|
130839
|
+
query
|
|
130746
130840
|
});
|
|
130747
130841
|
callback?.(res || {});
|
|
130748
130842
|
} catch (error) {
|
|
@@ -130810,15 +130904,24 @@ const useFavorite = () => {
|
|
|
130810
130904
|
index_set_id
|
|
130811
130905
|
});
|
|
130812
130906
|
}
|
|
130907
|
+
const dataBody = isGroup ? {
|
|
130908
|
+
...data,
|
|
130909
|
+
...searchParams
|
|
130910
|
+
} : data;
|
|
130911
|
+
if (window.__IS_MONITOR_APM__) {
|
|
130912
|
+
Object.assign(dataBody, {
|
|
130913
|
+
scope: {
|
|
130914
|
+
app_name: window.MONITOR_APM_APP_NAME,
|
|
130915
|
+
service_name: window.MONITOR_APM_SERVICE_NAME
|
|
130916
|
+
}
|
|
130917
|
+
});
|
|
130918
|
+
}
|
|
130813
130919
|
try {
|
|
130814
130920
|
const res = await api["default"].request('favorite/updateFavorite', {
|
|
130815
130921
|
params: {
|
|
130816
130922
|
id
|
|
130817
130923
|
},
|
|
130818
|
-
data:
|
|
130819
|
-
...data,
|
|
130820
|
-
...searchParams
|
|
130821
|
-
} : data
|
|
130924
|
+
data: dataBody
|
|
130822
130925
|
});
|
|
130823
130926
|
if (res.result) {
|
|
130824
130927
|
showMessage(tips || window.$t('保存成功'));
|
|
@@ -131416,28 +131519,6 @@ const useFavorite = () => {
|
|
|
131416
131519
|
} = useFavorite();
|
|
131417
131520
|
/** 删除操作相关key list */
|
|
131418
131521
|
const deleteKey = ['dismiss-group', 'delete'];
|
|
131419
|
-
const childMenu = (0,external_vue_.ref)([{
|
|
131420
|
-
key: 'share',
|
|
131421
|
-
label: t('分享')
|
|
131422
|
-
}, {
|
|
131423
|
-
key: 'edit',
|
|
131424
|
-
label: t('编辑')
|
|
131425
|
-
}, {
|
|
131426
|
-
key: 'create-copy',
|
|
131427
|
-
label: t('克隆')
|
|
131428
|
-
}, {
|
|
131429
|
-
key: 'move-group',
|
|
131430
|
-
label: t('移动至分组')
|
|
131431
|
-
}, {
|
|
131432
|
-
key: 'remove-group',
|
|
131433
|
-
label: t('从该组移除')
|
|
131434
|
-
}, {
|
|
131435
|
-
key: 'new-link',
|
|
131436
|
-
label: t('新开标签页')
|
|
131437
|
-
}, {
|
|
131438
|
-
key: 'delete',
|
|
131439
|
-
label: t('删除')
|
|
131440
|
-
}]);
|
|
131441
131522
|
const groupMenu = (0,external_vue_.ref)([{
|
|
131442
131523
|
key: 'reset-group-name',
|
|
131443
131524
|
label: t('重命名')
|
|
@@ -131465,6 +131546,34 @@ const useFavorite = () => {
|
|
|
131465
131546
|
}
|
|
131466
131547
|
};
|
|
131467
131548
|
const isShowEdit = (0,external_vue_.ref)(false);
|
|
131549
|
+
const childMenu = (0,external_vue_.computed)(() => {
|
|
131550
|
+
const list = [{
|
|
131551
|
+
key: 'share',
|
|
131552
|
+
label: t('分享')
|
|
131553
|
+
}, {
|
|
131554
|
+
key: 'edit',
|
|
131555
|
+
label: t('编辑')
|
|
131556
|
+
}, {
|
|
131557
|
+
key: 'create-copy',
|
|
131558
|
+
label: t('克隆')
|
|
131559
|
+
}, {
|
|
131560
|
+
key: 'move-group',
|
|
131561
|
+
label: t('移动至分组')
|
|
131562
|
+
}, {
|
|
131563
|
+
key: 'remove-group',
|
|
131564
|
+
label: t('从该组移除')
|
|
131565
|
+
}, {
|
|
131566
|
+
key: 'new-link',
|
|
131567
|
+
label: t('新开标签页')
|
|
131568
|
+
}, {
|
|
131569
|
+
key: 'delete',
|
|
131570
|
+
label: t('删除')
|
|
131571
|
+
}];
|
|
131572
|
+
if (window.__IS_MONITOR_APM__) {
|
|
131573
|
+
return list.filter(item => item.key !== 'new-link');
|
|
131574
|
+
}
|
|
131575
|
+
return list;
|
|
131576
|
+
});
|
|
131468
131577
|
// 用户信息
|
|
131469
131578
|
const userMeta = (0,external_vue_.computed)(() => store.state.userMeta);
|
|
131470
131579
|
// 去掉个人收藏的组列表
|
|
@@ -171949,6 +172058,10 @@ var src_utils = __webpack_require__(6367);
|
|
|
171949
172058
|
}
|
|
171950
172059
|
});
|
|
171951
172060
|
};
|
|
172061
|
+
(0,external_vue_.onBeforeUnmount)(() => {
|
|
172062
|
+
window.MONITOR_APM_APP_NAME = '';
|
|
172063
|
+
window.MONITOR_APM_SERVICE_NAME = '';
|
|
172064
|
+
});
|
|
171952
172065
|
return () => (0,external_vue_.h)("div", {
|
|
171953
172066
|
"style": stickyStyle.value,
|
|
171954
172067
|
"class": ['v3-bklog-root', {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@blueking/monitor-apm-log","version":"2.3.
|
|
1
|
+
{"name":"@blueking/monitor-apm-log","version":"2.3.33","description":"","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"MIT"}
|