@blueking/monitor-trace-log 2.0.23 → 2.0.25
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 -50
- package/package.json +1 -1
package/css/main.css
CHANGED
|
@@ -73,7 +73,7 @@ ul.search-items{display:inline-flex;flex-wrap:wrap;width:100%;max-height:135px;p
|
|
|
73
73
|
.kv-list-wrapper[data-v-0e8a994f]{max-height:50vh;overflow-y:auto;font-family:var(--table-fount-family);font-size:var(--table-fount-size)}.kv-list-wrapper .log-item[data-v-0e8a994f]:nth-child(even){background-color:#f5f7fa}.kv-list-wrapper .log-item[data-v-0e8a994f]:nth-child(odd){background-color:#fff}.kv-list-wrapper .log-item[data-v-0e8a994f]{display:flex;align-items:center;justify-content:center;min-height:24px;padding-left:8px}.kv-list-wrapper .log-item .field-value[data-v-0e8a994f]{display:flex;align-items:flex-start;color:#16171a;word-break:break-all}.kv-list-wrapper .log-item .field-value[data-v-0e8a994f] .valid-text:hover{text-decoration:underline;text-decoration-color:#498eff}.kv-list-wrapper .log-item .field-label[data-v-0e8a994f]{display:flex;flex-shrink:0;flex-wrap:nowrap;align-items:stretch;height:100%;margin:5px 0;margin-right:18px;align-self:flex-start;width:300px}.kv-list-wrapper .log-item .field-label .field-eye-icon[data-v-0e8a994f]{display:inline-flex;align-items:center;justify-content:center;width:12px;margin-right:8px;font-size:12px;color:#4d4f56;border-radius:2px}.kv-list-wrapper .log-item .field-label .field-eye-icon[data-v-0e8a994f]:hover{color:#3a84ff}.kv-list-wrapper .log-item .field-label .field-type-icon[data-v-0e8a994f]{display:inline-flex;align-items:center;justify-content:center;width:16px;min-width:16px;margin:0 5px 0 0;font-size:14px;color:#63656e;background:#dcdee5;border-radius:2px}.kv-list-wrapper .log-item .field-label .field-text[data-v-0e8a994f]{display:block;width:auto;overflow:hidden;font-family:Roboto-Regular;color:#313238;word-break:normal;word-wrap:break-word}.kv-list-wrapper .log-item .field-label[data-v-0e8a994f] .bklog-ext{min-width:22px;height:22px;transform:translateX(-3px) scale(0.7)}.kv-list-wrapper .relation-monitor-btn[data-v-0e8a994f]{display:flex;column-gap:2px;align-items:center;min-width:fit-content;padding-top:1px;padding-right:6px;font-size:12px;line-height:22px;color:#3a84ff;cursor:pointer}.kv-list-wrapper .relation-monitor-btn .bklog-jump[data-v-0e8a994f]{font-size:14px}.kv-list-wrapper .load-more-btn[data-v-0e8a994f]{display:flex;align-items:center;color:#3a84ff;margin-top:8px;margin-left:4px;cursor:pointer;font-size:12px}.kv-list-wrapper .load-more-btn span[data-v-0e8a994f]{font-size:12px}.kv-list-wrapper .load-more-btn .bklog-more[data-v-0e8a994f],.kv-list-wrapper .load-more-btn .bklog-log-loading[data-v-0e8a994f]{margin-right:4px;font-size:12px;color:#3a84ff}.kv-list-wrapper .load-more-btn .bklog-more[data-v-0e8a994f]{font-size:18px;transform:rotate(90deg)}.kv-list-wrapper .skeleton-list-wrapper[data-v-0e8a994f]{padding:2px 15px 14px 15px}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item[data-v-0e8a994f]{display:flex;align-items:center;justify-content:center;min-height:24px;padding-left:8px;margin:0}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item[data-v-0e8a994f]:nth-child(even){background-color:#f5f7fa}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item[data-v-0e8a994f]:nth-child(odd){background-color:#fff}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item .skeleton-field-label[data-v-0e8a994f]{display:flex;flex-shrink:0;flex-wrap:nowrap;align-items:center;height:100%;margin:5px 0;margin-right:18px;align-self:flex-start;width:300px}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item .skeleton-field-label .skeleton-icon[data-v-0e8a994f]{width:12px;min-width:12px;height:12px;margin-right:8px;border-radius:2px}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item .skeleton-field-label[data-v-0e8a994f]::before{content:"";display:inline-block;width:16px;min-width:16px;height:16px;margin-right:5px;border-radius:2px;background:linear-gradient(90deg, #f0f2f5 25%, #e6e9ed 50%, #f0f2f5 70%);background-size:400% 100%;animation:shimmer-0e8a994f 1.8s infinite linear}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item .skeleton-field-label .skeleton-text[data-v-0e8a994f]{flex:1;height:14px;min-width:80px;max-width:200px;border-radius:2px}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item .skeleton-field-value[data-v-0e8a994f]{display:flex;align-items:flex-start;flex:1;min-width:0;color:#16171a;word-break:break-all}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item .skeleton-field-value .skeleton-value[data-v-0e8a994f]{height:14px;width:100%;min-width:100px;max-width:500px;border-radius:2px}.kv-list-wrapper .skeleton-list-wrapper .skeleton-list-item .skeleton[data-v-0e8a994f]{background:linear-gradient(90deg, #f0f2f5 25%, #e6e9ed 50%, #f0f2f5 70%);background-size:400% 100%;animation:shimmer-0e8a994f 1.8s infinite linear}@keyframes shimmer-0e8a994f{0%{background-position:200% 0}100%{background-position:-200% 0}}
|
|
74
74
|
.expand-view-wrapper[data-v-d72c98f0]{width:100%;color:#313238;background-color:#f5f7fa}.expand-view-wrapper .view-tab[data-v-d72c98f0]{display:flex;justify-content:space-between;padding-right:15px;font-size:0;background-color:#f5f7fa}.expand-view-wrapper .view-tab .tab-left span[data-v-d72c98f0]{display:inline-block;width:46px;height:23px;font-size:12px;line-height:23px;color:#313238;text-align:center;cursor:pointer;border-top:0}.expand-view-wrapper .view-tab .tab-left span[data-v-d72c98f0]:first-child{border-left:0}.expand-view-wrapper .view-tab .tab-left span.activeKv[data-v-d72c98f0],.expand-view-wrapper .view-tab .tab-left span.activeJson[data-v-d72c98f0]{position:relative;font-size:12px;font-weight:700}.expand-view-wrapper .view-tab .tab-left span.activeKv[data-v-d72c98f0]::after{position:absolute;top:-2px;left:14px;width:17px;height:2px;content:"";background-color:#313238}.expand-view-wrapper .view-tab .tab-left span.activeJson[data-v-d72c98f0]::after{position:absolute;top:-2px;left:10px;width:30px;height:2px;content:"";background-color:#313238}.expand-view-wrapper .view-tab .tab-right[data-v-d72c98f0]{position:sticky;right:20px;display:flex;align-items:center}.expand-view-wrapper .view-tab .tab-right .search-input[data-v-d72c98f0]{margin-right:10px}.expand-view-wrapper .view-tab .tab-right .search-input[data-v-d72c98f0] .bk-form-input{width:200px;height:22px;background:#f5f7fa;padding:0;border:none;border-bottom:1px solid #c4c6cc}.expand-view-wrapper .view-tab .tab-right .search-input[data-v-d72c98f0] .bk-form-input:focus{background:#f5f7fa !important}.expand-view-wrapper .view-tab .tab-right .search-input[data-v-d72c98f0] .right-icon{right:0px !important}.expand-view-wrapper .view-tab .tab-right .bklog-icon[data-v-d72c98f0]{font-size:16px;color:#63656e;cursor:pointer}.expand-view-wrapper .view-tab .tab-right .bklog-icon[data-v-d72c98f0]:hover{color:#3a84ff}.expand-view-wrapper .view-content[data-v-d72c98f0]{padding:2px 15px 14px 15px;background-color:#f5f7fa}.expand-view-wrapper .view-content[data-v-d72c98f0] .vjs-tree{font-size:var(--table-fount-size) !important}.expand-view-wrapper .view-content[data-v-d72c98f0] .vjs-tree .vjs-tree-node{line-height:22px}.expand-view-wrapper .view-content[data-v-d72c98f0] .vjs-tree .vjs-tree-node .vjs-value.vjs-value-string{white-space:pre-wrap}.expand-view-wrapper .view-content[data-v-d72c98f0] .kv-content .bklog-text-segment.bklog-root-field{max-height:fit-content}
|
|
75
75
|
.json-view-content .vjs-tree-brackets,.json-view-content .vjs-key{color:#9d694c !important}.json-view-content .vjs-value-string{color:#357a94}.json-view-content .vjs-value-number{color:#2caf5e}.json-view-content .vjs-indent-unit.has-line{border-left:1px solid #bfcbd9}
|
|
76
|
-
.handle-content[data-v-
|
|
76
|
+
.handle-content[data-v-e9e5db3e]{position:absolute;right:0;display:flex;align-items:flex-start;justify-content:center;width:84px;overflow:hidden}.handle-content .handle-card[data-v-e9e5db3e]{display:flex;align-items:center;justify-content:center;width:18px;height:20px;margin-left:10px;font-size:18px;color:#8b92a5}.handle-content .handle-card .bklog-icon[data-v-e9e5db3e]{cursor:pointer}.handle-content .handle-card.ai-assistant[data-v-e9e5db3e]{position:relative}.handle-content .handle-card.ai-assistant img[data-v-e9e5db3e]{position:absolute;top:0;left:0;width:20px;height:20px;cursor:pointer;background-color:#fff;opacity:0}.fix-content[data-v-e9e5db3e]{width:auto;background-color:#f5f7fa}.icon-exclamation-circle-shape[data-v-e9e5db3e]{color:#d7473f}.icon-more[data-v-e9e5db3e]{transform:translateY(2px) translateX(4px)}.is-disable[data-v-e9e5db3e]{color:#eceef2 !important;cursor:no-drop !important}.clean-str[data-v-e9e5db3e]{color:#3a84ff;cursor:pointer}.union-icon[data-v-e9e5db3e]{margin-right:8px}.bklog-handle[data-v-e9e5db3e]{font-size:14px;color:#979ba5;cursor:pointer}.bklog-handle[data-v-e9e5db3e]:hover{color:#3a84ff}
|
|
77
77
|
.bklog-v3-btn-scroll-top{position:fixed;right:30px;bottom:50px;z-index:3;display:none;align-items:center;justify-content:center;width:48px;height:48px;cursor:pointer;background:#fff;border:1px solid #e9ecf1;border-radius:50%;box-shadow:0 3px 10px 0 rgba(0,0,0,.1215686275);transition:.3s}.bklog-v3-btn-scroll-top.show-box{display:flex}.bklog-v3-btn-scroll-top i{font-size:24px;color:#3a84ff}
|
|
78
78
|
.bklog-row-observe{position:relative;height:fit-content}
|
|
79
79
|
.bklog-scroll-x{position:fixed;right:var(--right);bottom:0;z-index:4;height:14px;overflow-x:auto;background-color:rgba(0,0,0,0)}.bklog-scroll-x>div{height:1px;background-color:rgba(0,0,0,0)}
|
package/main.js
CHANGED
|
@@ -128325,19 +128325,48 @@ function cloneDeep(value) {
|
|
|
128325
128325
|
let firstLogEl = null;
|
|
128326
128326
|
let throttleTimer;
|
|
128327
128327
|
let timer;
|
|
128328
|
+
let scrollBindTimer;
|
|
128329
|
+
let highlightTimer;
|
|
128330
|
+
let initLogResultTimer;
|
|
128331
|
+
let filterCheckTimer;
|
|
128332
|
+
let handleScroll = () => {};
|
|
128328
128333
|
let displayFieldNames = [];
|
|
128334
|
+
let contextLogRequestSeq = 0;
|
|
128335
|
+
const contentLogRequestId = 'retrieve_getContentLog_contextLog';
|
|
128336
|
+
const isContextLogVisible = () => isShow.value && props.isShow;
|
|
128337
|
+
const isCurrentContextLogRequest = requestSeq => isContextLogVisible() && requestSeq === contextLogRequestSeq;
|
|
128338
|
+
const clearContextLogTimers = () => {
|
|
128339
|
+
clearTimeout(timer);
|
|
128340
|
+
clearTimeout(throttleTimer);
|
|
128341
|
+
clearTimeout(scrollBindTimer);
|
|
128342
|
+
clearTimeout(highlightTimer);
|
|
128343
|
+
clearTimeout(initLogResultTimer);
|
|
128344
|
+
clearTimeout(filterCheckTimer);
|
|
128345
|
+
};
|
|
128346
|
+
const cleanupContextLogEffects = () => {
|
|
128347
|
+
contextLogRequestSeq += 1;
|
|
128348
|
+
clearContextLogTimers();
|
|
128349
|
+
contextLog.value?.removeEventListener('scroll', handleScroll);
|
|
128350
|
+
logLoading.value = false;
|
|
128351
|
+
src_api.cancel(contentLogRequestId);
|
|
128352
|
+
};
|
|
128329
128353
|
(0,vue_esm.watch)(() => props.isShow, () => {
|
|
128330
128354
|
isShow.value = props.isShow;
|
|
128331
128355
|
if (isShow.value) {
|
|
128332
|
-
|
|
128333
|
-
|
|
128356
|
+
contextLogRequestSeq += 1;
|
|
128357
|
+
initLogResultTimer = setTimeout(() => {
|
|
128358
|
+
if (isContextLogVisible()) {
|
|
128359
|
+
logResultRef.value?.init();
|
|
128360
|
+
}
|
|
128334
128361
|
});
|
|
128362
|
+
return;
|
|
128335
128363
|
}
|
|
128364
|
+
cleanupContextLogEffects();
|
|
128336
128365
|
}, {
|
|
128337
128366
|
immediate: true
|
|
128338
128367
|
});
|
|
128339
128368
|
(0,vue_esm.watch)(() => [props.indexSetId, props.logParams], async () => {
|
|
128340
|
-
if (props.indexSetId && props.logParams) {
|
|
128369
|
+
if (isContextLogVisible() && props.indexSetId && props.logParams && Object.keys(props.logParams).length) {
|
|
128341
128370
|
localParams.value = {};
|
|
128342
128371
|
deepClone(props.logParams);
|
|
128343
128372
|
await requestContentLog();
|
|
@@ -128346,7 +128375,11 @@ function cloneDeep(value) {
|
|
|
128346
128375
|
immediate: true
|
|
128347
128376
|
});
|
|
128348
128377
|
(0,vue_esm.watch)(activeFilterKey, () => {
|
|
128349
|
-
|
|
128378
|
+
clearTimeout(filterCheckTimer);
|
|
128379
|
+
filterCheckTimer = setTimeout(() => {
|
|
128380
|
+
if (!isContextLogVisible()) {
|
|
128381
|
+
return;
|
|
128382
|
+
}
|
|
128350
128383
|
const lineDomList = Array.from(logViewRef.value?.$el.querySelectorAll('.line') || []);
|
|
128351
128384
|
if (lineDomList.length && lineDomList.every(item => item.style.display === 'none')) {
|
|
128352
128385
|
isFilterEmpty.value = true;
|
|
@@ -128367,6 +128400,7 @@ function cloneDeep(value) {
|
|
|
128367
128400
|
localParams.value = {};
|
|
128368
128401
|
};
|
|
128369
128402
|
const handleAfterLeave = () => {
|
|
128403
|
+
cleanupContextLogEffects();
|
|
128370
128404
|
dataFilterRef.value?.reset();
|
|
128371
128405
|
logResultRef.value?.reset();
|
|
128372
128406
|
highlightList.value = [];
|
|
@@ -128392,8 +128426,8 @@ function cloneDeep(value) {
|
|
|
128392
128426
|
});
|
|
128393
128427
|
};
|
|
128394
128428
|
const handleKeyup = event => {
|
|
128395
|
-
if (event.keyCode === 27) {
|
|
128396
|
-
|
|
128429
|
+
if (event.keyCode === 27 && isContextLogVisible()) {
|
|
128430
|
+
cleanupContextLogEffects();
|
|
128397
128431
|
handleAfterLeave();
|
|
128398
128432
|
}
|
|
128399
128433
|
};
|
|
@@ -128444,11 +128478,22 @@ function cloneDeep(value) {
|
|
|
128444
128478
|
return ['log'];
|
|
128445
128479
|
};
|
|
128446
128480
|
const requestContentLog = async direction => {
|
|
128481
|
+
if (!isContextLogVisible()) {
|
|
128482
|
+
return;
|
|
128483
|
+
}
|
|
128484
|
+
const requestSeq = contextLogRequestSeq;
|
|
128485
|
+
const paramsSnapshot = {
|
|
128486
|
+
...localParams.value
|
|
128487
|
+
};
|
|
128488
|
+
const dtEventTimeStamp = paramsSnapshot.dtEventTimeStamp ?? props.logParams?.dtEventTimeStamp;
|
|
128489
|
+
if (!props.indexSetId || dtEventTimeStamp === undefined || dtEventTimeStamp === null || dtEventTimeStamp === 'None') {
|
|
128490
|
+
return;
|
|
128491
|
+
}
|
|
128447
128492
|
const data = Object.assign({
|
|
128448
128493
|
size: 50,
|
|
128449
128494
|
zero: zero.value,
|
|
128450
|
-
dtEventTimeStamp
|
|
128451
|
-
},
|
|
128495
|
+
dtEventTimeStamp
|
|
128496
|
+
}, paramsSnapshot);
|
|
128452
128497
|
if (direction === 'down') {
|
|
128453
128498
|
data.begin = nextBegin.value;
|
|
128454
128499
|
} else if (direction === 'top') {
|
|
@@ -128463,7 +128508,13 @@ function cloneDeep(value) {
|
|
|
128463
128508
|
index_set_id: props.indexSetId
|
|
128464
128509
|
},
|
|
128465
128510
|
data
|
|
128511
|
+
}, {
|
|
128512
|
+
catchIsShowMessage: false,
|
|
128513
|
+
requestId: contentLogRequestId
|
|
128466
128514
|
});
|
|
128515
|
+
if (!isCurrentContextLogRequest(requestSeq)) {
|
|
128516
|
+
return;
|
|
128517
|
+
}
|
|
128467
128518
|
const {
|
|
128468
128519
|
list
|
|
128469
128520
|
} = res.data;
|
|
@@ -128497,18 +128548,26 @@ function cloneDeep(value) {
|
|
|
128497
128548
|
}
|
|
128498
128549
|
}
|
|
128499
128550
|
} catch (e) {
|
|
128500
|
-
|
|
128501
|
-
|
|
128502
|
-
logLoading.value = false;
|
|
128503
|
-
if (highlightList.value.length) {
|
|
128504
|
-
setTimeout(() => {
|
|
128505
|
-
dataFilterRef.value.getHighlightControl()?.initLightItemList(direction);
|
|
128506
|
-
});
|
|
128551
|
+
if (isCurrentContextLogRequest(requestSeq)) {
|
|
128552
|
+
console.warn(e);
|
|
128507
128553
|
}
|
|
128508
|
-
|
|
128509
|
-
|
|
128510
|
-
|
|
128511
|
-
|
|
128554
|
+
} finally {
|
|
128555
|
+
if (isCurrentContextLogRequest(requestSeq)) {
|
|
128556
|
+
logLoading.value = false;
|
|
128557
|
+
if (highlightList.value.length) {
|
|
128558
|
+
highlightTimer = setTimeout(() => {
|
|
128559
|
+
if (isCurrentContextLogRequest(requestSeq)) {
|
|
128560
|
+
dataFilterRef.value?.getHighlightControl()?.initLightItemList(direction);
|
|
128561
|
+
}
|
|
128562
|
+
});
|
|
128563
|
+
}
|
|
128564
|
+
if (zero.value) {
|
|
128565
|
+
(0,vue_esm.nextTick)(() => {
|
|
128566
|
+
if (isCurrentContextLogRequest(requestSeq)) {
|
|
128567
|
+
initLogScrollPosition();
|
|
128568
|
+
}
|
|
128569
|
+
});
|
|
128570
|
+
}
|
|
128512
128571
|
}
|
|
128513
128572
|
}
|
|
128514
128573
|
};
|
|
@@ -128543,8 +128602,11 @@ function cloneDeep(value) {
|
|
|
128543
128602
|
reverseLogList.value = handleFormatList(reverseRawList, list);
|
|
128544
128603
|
};
|
|
128545
128604
|
const initLogScrollPosition = () => {
|
|
128605
|
+
if (!isContextLogVisible() || !contextLog.value) {
|
|
128606
|
+
return;
|
|
128607
|
+
}
|
|
128546
128608
|
// 确定第0条的位置
|
|
128547
|
-
firstLogEl =
|
|
128609
|
+
firstLogEl = contextLog.value.querySelector('.log-init');
|
|
128548
128610
|
// 没有数据
|
|
128549
128611
|
if (!firstLogEl) return;
|
|
128550
128612
|
contextLog.value.removeEventListener('scroll', handleScroll);
|
|
@@ -128558,16 +128620,23 @@ function cloneDeep(value) {
|
|
|
128558
128620
|
}
|
|
128559
128621
|
zero.value = false;
|
|
128560
128622
|
// 避免重复请求
|
|
128561
|
-
|
|
128562
|
-
|
|
128563
|
-
|
|
128564
|
-
|
|
128623
|
+
clearTimeout(scrollBindTimer);
|
|
128624
|
+
scrollBindTimer = setTimeout(() => {
|
|
128625
|
+
if (isContextLogVisible() && contextLog.value) {
|
|
128626
|
+
contextLog.value.addEventListener('scroll', handleScroll, {
|
|
128627
|
+
passive: true
|
|
128628
|
+
});
|
|
128629
|
+
}
|
|
128565
128630
|
});
|
|
128566
128631
|
};
|
|
128567
|
-
|
|
128632
|
+
handleScroll = () => {
|
|
128633
|
+
if (!isContextLogVisible()) {
|
|
128634
|
+
return;
|
|
128635
|
+
}
|
|
128568
128636
|
clearTimeout(timer);
|
|
128637
|
+
const requestSeq = contextLogRequestSeq;
|
|
128569
128638
|
timer = setTimeout(() => {
|
|
128570
|
-
if (logLoading.value) {
|
|
128639
|
+
if (!isCurrentContextLogRequest(requestSeq) || logLoading.value || !contextLog.value) {
|
|
128571
128640
|
return;
|
|
128572
128641
|
}
|
|
128573
128642
|
const {
|
|
@@ -128579,6 +128648,9 @@ function cloneDeep(value) {
|
|
|
128579
128648
|
// 滚动到顶部
|
|
128580
128649
|
requestContentLog('top').then(() => {
|
|
128581
128650
|
(0,vue_esm.nextTick)(() => {
|
|
128651
|
+
if (!isCurrentContextLogRequest(requestSeq) || !contextLog.value) {
|
|
128652
|
+
return;
|
|
128653
|
+
}
|
|
128582
128654
|
// 记录刷新前滚动位置
|
|
128583
128655
|
const newScrollHeight = contextLog.value.scrollHeight;
|
|
128584
128656
|
contextLog.value.scrollTo({
|
|
@@ -128625,6 +128697,8 @@ function cloneDeep(value) {
|
|
|
128625
128697
|
}, 300);
|
|
128626
128698
|
};
|
|
128627
128699
|
const handleChooseRow = data => {
|
|
128700
|
+
cleanupContextLogEffects();
|
|
128701
|
+
contextLogRequestSeq += 1;
|
|
128628
128702
|
initLogValues();
|
|
128629
128703
|
deepClone(data);
|
|
128630
128704
|
requestContentLog();
|
|
@@ -128640,6 +128714,7 @@ function cloneDeep(value) {
|
|
|
128640
128714
|
});
|
|
128641
128715
|
});
|
|
128642
128716
|
(0,vue_esm.onBeforeUnmount)(() => {
|
|
128717
|
+
cleanupContextLogEffects();
|
|
128643
128718
|
document.removeEventListener('keyup', handleKeyup);
|
|
128644
128719
|
});
|
|
128645
128720
|
return () => (0,vue_esm.h)("bk-dialog", {
|
|
@@ -130750,8 +130825,8 @@ var expand_view_component = normalizeComponent(
|
|
|
130750
130825
|
)
|
|
130751
130826
|
|
|
130752
130827
|
/* harmony default export */ const expand_view = (expand_view_component.exports);
|
|
130753
|
-
;// ./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/components/result-cell-element/operator-tools.vue?vue&type=template&id=
|
|
130754
|
-
var
|
|
130828
|
+
;// ./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/components/result-cell-element/operator-tools.vue?vue&type=template&id=e9e5db3e&scoped=true
|
|
130829
|
+
var operator_toolsvue_type_template_id_e9e5db3e_scoped_true_render = function render() {
|
|
130755
130830
|
var _vm = this,
|
|
130756
130831
|
_c = _vm._self._c;
|
|
130757
130832
|
return _c('div', {
|
|
@@ -130939,7 +131014,7 @@ var operator_toolsvue_type_template_id_2caca865_scoped_true_render = function re
|
|
|
130939
131014
|
}
|
|
130940
131015
|
})])] : _vm._e()], 2);
|
|
130941
131016
|
};
|
|
130942
|
-
var
|
|
131017
|
+
var operator_toolsvue_type_template_id_e9e5db3e_scoped_true_staticRenderFns = [];
|
|
130943
131018
|
|
|
130944
131019
|
;// ./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/index.js??vue-loader-options!./src/views/retrieve-v2/components/result-cell-element/operator-tools.vue?vue&type=script&lang=js
|
|
130945
131020
|
|
|
@@ -131042,27 +131117,49 @@ function operator_toolsvue_type_script_lang_js_objectSpread(e) { for (var r = 1;
|
|
|
131042
131117
|
}
|
|
131043
131118
|
}),
|
|
131044
131119
|
methods: {
|
|
131120
|
+
normalizeTraceSearchText: function normalizeTraceSearchText(value) {
|
|
131121
|
+
return String(value).replace(/<[^>]*>/g, '');
|
|
131122
|
+
},
|
|
131123
|
+
getTraceIdFromText: function getTraceIdFromText(value) {
|
|
131124
|
+
var _strictTraceIdMatch$;
|
|
131125
|
+
var text = this.normalizeTraceSearchText(value);
|
|
131126
|
+
var traceIdPattern = /\btrace_?id\b\s*[=:]\s*([a-f0-9]{32})(?![a-z0-9])/i;
|
|
131127
|
+
var traceIdMatch = text.match(traceIdPattern);
|
|
131128
|
+
if (traceIdMatch) {
|
|
131129
|
+
return traceIdMatch[1];
|
|
131130
|
+
}
|
|
131131
|
+
var strictTraceIdPattern = /(^|[^a-z0-9])([a-f0-9]{32})(?![a-z0-9])/i;
|
|
131132
|
+
var strictTraceIdMatch = text.match(strictTraceIdPattern);
|
|
131133
|
+
return (_strictTraceIdMatch$ = strictTraceIdMatch === null || strictTraceIdMatch === void 0 ? void 0 : strictTraceIdMatch[2]) !== null && _strictTraceIdMatch$ !== void 0 ? _strictTraceIdMatch$ : null;
|
|
131134
|
+
},
|
|
131045
131135
|
getTraceIdFromRowData: function getTraceIdFromRowData() {
|
|
131046
|
-
var
|
|
131136
|
+
var _this$rowData$trace_i;
|
|
131137
|
+
var traceId = (_this$rowData$trace_i = this.rowData.trace_id) !== null && _this$rowData$trace_i !== void 0 ? _this$rowData$trace_i : this.rowData.traceid;
|
|
131047
131138
|
if (traceId) {
|
|
131048
|
-
|
|
131139
|
+
var matchedTraceId = this.getTraceIdFromText(traceId);
|
|
131140
|
+
if (matchedTraceId) {
|
|
131141
|
+
return matchedTraceId;
|
|
131142
|
+
}
|
|
131049
131143
|
}
|
|
131050
|
-
|
|
131051
|
-
|
|
131052
|
-
|
|
131053
|
-
|
|
131054
|
-
|
|
131055
|
-
if (match) {
|
|
131056
|
-
return match[0];
|
|
131057
|
-
}
|
|
131144
|
+
var rowValues = Object.values(this.rowData);
|
|
131145
|
+
for (var _i = 0, _rowValues = rowValues; _i < _rowValues.length; _i++) {
|
|
131146
|
+
var value = _rowValues[_i];
|
|
131147
|
+
if (typeof value !== 'string') {
|
|
131148
|
+
continue;
|
|
131058
131149
|
}
|
|
131059
|
-
|
|
131060
|
-
|
|
131061
|
-
|
|
131062
|
-
|
|
131063
|
-
|
|
131064
|
-
|
|
131065
|
-
|
|
131150
|
+
var traceIdFromText = this.getTraceIdFromText(value);
|
|
131151
|
+
if (traceIdFromText) {
|
|
131152
|
+
return traceIdFromText;
|
|
131153
|
+
}
|
|
131154
|
+
}
|
|
131155
|
+
for (var _i2 = 0, _rowValues2 = rowValues; _i2 < _rowValues2.length; _i2++) {
|
|
131156
|
+
var _value = _rowValues2[_i2];
|
|
131157
|
+
if (!_value || typeof_typeof(_value) !== 'object') {
|
|
131158
|
+
continue;
|
|
131159
|
+
}
|
|
131160
|
+
var _traceIdFromText = this.getTraceIdFromText(JSON.stringify(_value));
|
|
131161
|
+
if (_traceIdFromText) {
|
|
131162
|
+
return _traceIdFromText;
|
|
131066
131163
|
}
|
|
131067
131164
|
}
|
|
131068
131165
|
return null;
|
|
@@ -131110,11 +131207,11 @@ function operator_toolsvue_type_script_lang_js_objectSpread(e) { for (var r = 1;
|
|
|
131110
131207
|
|
|
131111
131208
|
var operator_tools_component = normalizeComponent(
|
|
131112
131209
|
result_cell_element_operator_toolsvue_type_script_lang_js,
|
|
131113
|
-
|
|
131114
|
-
|
|
131210
|
+
operator_toolsvue_type_template_id_e9e5db3e_scoped_true_render,
|
|
131211
|
+
operator_toolsvue_type_template_id_e9e5db3e_scoped_true_staticRenderFns,
|
|
131115
131212
|
false,
|
|
131116
131213
|
null,
|
|
131117
|
-
"
|
|
131214
|
+
"e9e5db3e",
|
|
131118
131215
|
null
|
|
131119
131216
|
|
|
131120
131217
|
)
|
|
@@ -132552,9 +132649,24 @@ function use_lazy_render_deepQueryShadowSelector(selector) {
|
|
|
132552
132649
|
resetPageState();
|
|
132553
132650
|
}
|
|
132554
132651
|
});
|
|
132555
|
-
addEvent([retrieve_events.SEARCH_VALUE_CHANGE, retrieve_events.SEARCH_TIME_CHANGE, retrieve_events.TREND_GRAPH_SEARCH
|
|
132652
|
+
addEvent([retrieve_events.SEARCH_VALUE_CHANGE, retrieve_events.SEARCH_TIME_CHANGE, retrieve_events.TREND_GRAPH_SEARCH], () => {
|
|
132556
132653
|
resetPageState();
|
|
132557
132654
|
});
|
|
132655
|
+
addEvent(retrieve_events.SORT_LIST_CHANGED, () => {
|
|
132656
|
+
/**
|
|
132657
|
+
* SORT_LIST_CHANGED may be fired after the sort query has finished.
|
|
132658
|
+
* In that case tableDataSize has already changed and first-page reveal has already been scheduled/finished.
|
|
132659
|
+
* Resetting first-page layout again here would leave the skeleton pending forever because no new data-size
|
|
132660
|
+
* change will arrive to call scheduleFirstPageTableReveal().
|
|
132661
|
+
*
|
|
132662
|
+
* New sort queries already clear list and set loading in requestIndexSetQuery(), which drives the skeleton
|
|
132663
|
+
* through tableDataSize/isLoading watchers. Therefore this event only needs to force reset while the request
|
|
132664
|
+
* is still in-flight or before any result rows are available.
|
|
132665
|
+
*/
|
|
132666
|
+
if (isLoading.value || isPageLoading.value || isRequesting.value || tableDataSize.value === 0) {
|
|
132667
|
+
resetPageState();
|
|
132668
|
+
}
|
|
132669
|
+
});
|
|
132558
132670
|
addEvent(retrieve_events.AUTO_REFRESH, () => {
|
|
132559
132671
|
resetPageState();
|
|
132560
132672
|
store.dispatch('requestIndexSetQuery', {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@blueking/monitor-trace-log","version":"2.0.
|
|
1
|
+
{"name":"@blueking/monitor-trace-log","version":"2.0.25","description":"","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"MIT"}
|