@blueking/monitor-trace-log 2.0.3 → 2.0.4
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 +4 -3
- package/main.js +224 -91
- package/package.json +1 -1
package/css/main.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
.ui-query-options[data-v-c8ac423e]{background:#fff}.ui-query-options .ui-query-option-content[data-v-c8ac423e]{display:flex;width:720px}.ui-query-options .ui-query-option-content .field-list[data-v-c8ac423e]{width:359px;border-right:solid 1px #dcdee5}.ui-query-options .ui-query-option-content .field-list .ui-search-input[data-v-c8ac423e]{width:100%;padding-top:4px;padding-bottom:4px}.ui-query-options .ui-query-option-content .field-list .ui-search-input[data-v-c8ac423e] .left-icon{font-size:18px;color:#979ba5}.ui-query-options .ui-query-option-content .field-list .ui-search-input[data-v-c8ac423e] .bk-form-control{padding:0 8px}.ui-query-options .ui-query-option-content .field-list .ui-search-input[data-v-c8ac423e] .bk-form-control .left-icon{font-size:18px;color:#979ba5}.ui-query-options .ui-query-option-content .field-list .ui-search-input[data-v-c8ac423e] .bk-form-control .bk-input-text .bk-form-input{padding-left:38px;border-bottom-color:#eaebf0}.ui-query-options .ui-query-option-content .field-list .ui-search-result[data-v-c8ac423e]{height:315px;overflow:auto;overflow-x:hidden}.ui-query-options .ui-query-option-content .field-list .ui-search-result[data-v-c8ac423e]::-webkit-scrollbar{width:6px;background-color:hsla(0,0%,80%,0)}.ui-query-options .ui-query-option-content .field-list .ui-search-result[data-v-c8ac423e]::-webkit-scrollbar-thumb{height:6px;background-color:#dcdee5;border-radius:3px}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row[data-v-c8ac423e]{display:flex;align-items:center;width:100%;min-width:300px;max-width:358px;height:32px;padding:0 8px;font-family:Roboto-Regular;cursor:pointer}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row[data-v-c8ac423e]:hover,.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row.active[data-v-c8ac423e]{background-color:#f5f7fa}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row:hover .field-alias[data-v-c8ac423e],.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row.active .field-alias[data-v-c8ac423e]{color:#3a84ff}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row:hover .field-name[data-v-c8ac423e],.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row.active .field-name[data-v-c8ac423e]{color:#699df4}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row.location[data-v-c8ac423e]{background-color:#f5f7fa}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row.location .field-alias[data-v-c8ac423e]{color:#313238}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row.location .field-name[data-v-c8ac423e]{color:#757880}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row[data-v-c8ac423e]:hover:not(.active){background-color:#f0f5ff}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row:hover .field-alias[data-v-c8ac423e]{color:#3a84ff}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row:hover .field-name[data-v-c8ac423e]{color:#699df4}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row .field-type-icon[data-v-c8ac423e]{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;background:#e8eaf0;border-radius:2px;opacity:.9}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row .field-type-icon.full-text[data-v-c8ac423e]{position:relative}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row .field-type-icon.full-text[data-v-c8ac423e]::after{position:relative;width:100%;height:100%;text-align:center;content:"*"}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row .field-type-icon.bklog-ext[data-v-c8ac423e]{font-size:8px}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row .display-container[data-v-c8ac423e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row .display-container .field-alias[data-v-c8ac423e]{padding:0 4px;font-size:12px;line-height:20px;color:#313238;letter-spacing:0}.ui-query-options .ui-query-option-content .field-list .ui-search-result .ui-search-result-row .display-container .field-name[data-v-c8ac423e]{font-size:12px;font-weight:400;line-height:20px;color:#757880;letter-spacing:0}.ui-query-options .ui-query-option-content .value-list[data-v-c8ac423e]{width:calc(100% - 360px);padding-right:24px;padding-left:22px;margin-top:16px;border-bottom:solid 1px #dcdee5}.ui-query-options .ui-query-option-content .value-list[data-v-c8ac423e]:not(.is-full-text){background:#fff}.ui-query-options .ui-query-option-content .value-list .full-text-title[data-v-c8ac423e]{width:100%;height:22px;font-size:14px;line-height:22px;color:#313238;letter-spacing:0}.ui-query-options .ui-query-option-content .value-list .full-text-sub-title[data-v-c8ac423e]{display:flex;align-items:center;width:100%;height:26px;margin-top:16px;font-size:12px;font-weight:700;line-height:20px;color:#63656e;letter-spacing:0}.ui-query-options .ui-query-option-content .value-list .full-text-sub-title img[data-v-c8ac423e]{width:24px;height:24px;margin-right:8px}.ui-query-options .ui-query-option-content .value-list .full-text-content[data-v-c8ac423e]{width:100%;margin-top:10px;font-size:12px;line-height:20px;color:#63656e;letter-spacing:0}.ui-query-options .ui-query-option-content .value-list .ui-value-row[data-v-c8ac423e]{margin-bottom:20px}.ui-query-options .ui-query-option-content .value-list .ui-value-row .ui-value-label[data-v-c8ac423e]{display:flex;justify-content:space-between;height:20px;margin-bottom:8px;font-size:12px;line-height:20px;color:#4d4f56}.ui-query-options .ui-query-option-content .value-list .ui-value-row .ui-value-component[data-v-c8ac423e]{width:100%}.ui-query-options .ui-query-option-content .value-list .ui-value-row .ui-value-component .ui-value-operator[data-v-c8ac423e]{display:flex;align-items:center;justify-content:space-between;width:100%;height:32px;padding:0 8px;font-size:12px;color:#63656e;cursor:pointer;background:#fff;border:1px solid #c4c6cc;border-radius:2px}.ui-query-options .ui-query-option-content .value-list .ui-value-row .ui-value-component .ui-value-operator .operator-content[data-v-c8ac423e]{max-width:300px;overflow:hidden;color:#f59500;text-overflow:ellipsis;white-space:nowrap}.ui-query-options .ui-query-option-content .value-list .ui-value-row .ui-value-component .ui-value-operator .bk-icon[data-v-c8ac423e]{font-size:18px !important}.ui-query-options .ui-query-option-content .value-list .ui-value-row[data-v-c8ac423e] .ui-value-search-textarea{height:291px}.ui-query-options .ui-query-option-content .value-list .ui-value-row[data-v-c8ac423e] .ui-value-search-textarea .bk-textarea-wrapper{height:100%}.ui-query-options .ui-query-option-footer[data-v-c8ac423e]{display:flex;align-items:center;justify-content:space-between;height:48px;padding-right:24px;padding-left:8px;background:#fafbfd;box-shadow:0 -1px 0 0 #dcdee5}.ui-query-options .ui-query-option-footer .ui-shortcut-key[data-v-c8ac423e]{display:flex;align-items:center}.ui-query-options .ui-query-option-footer .ui-shortcut-key .ui-shortcut-item[data-v-c8ac423e]{display:inline-flex;align-items:center;margin-right:24px;font-size:12px;line-height:16px}.ui-query-options .ui-query-option-footer .ui-shortcut-key .ui-shortcut-item .label[data-v-c8ac423e]{display:inline-flex;align-items:center;justify-content:center;height:16px;padding:0 4px;font-size:11px;font-weight:700;color:#a3b1cc;background-color:rgba(163,177,204,.1607843137);border:1px solid rgba(163,177,204,.3019607843);border-radius:2px}.ui-query-options .ui-query-option-footer .ui-shortcut-key .ui-shortcut-item .label.bklog-arrow-down-filled[data-v-c8ac423e]{padding:0;font-size:14px}.ui-query-options .ui-query-option-footer .ui-shortcut-key .ui-shortcut-item .label.up[data-v-c8ac423e]{margin-right:2px;transform:rotate(-180deg)}.ui-query-options .ui-query-option-footer .ui-shortcut-key .ui-shortcut-item .value[data-v-c8ac423e]{margin-left:4px;color:#7a8599}.ui-query-options .ui-query-option-footer .ui-btn-opts[data-v-c8ac423e]{font-size:0}.ui-query-options .ui-query-option-footer .ui-btn-opts .bk-button[data-v-c8ac423e]{min-width:64px;font-size:14px}.ui-query-options .ui-query-option-footer .ui-btn-opts .bk-button.save-btn[data-v-c8ac423e]{min-width:142px;margin-right:8px}.condition-value-container[data-v-c8ac423e]{display:flex;align-items:center;width:100%;min-height:32px;background:#fff;border:1px solid #c4c6cc;border-radius:2px}.condition-value-container.is-focus[data-v-c8ac423e]{border-color:#2c77f4}.condition-value-container ul.condition-value-input[data-v-c8ac423e]{display:inline-flex;flex-wrap:wrap;align-items:center;width:100%;max-height:110px;padding:0 5px;margin:0;overflow:auto}.condition-value-container ul.condition-value-input>li[data-v-c8ac423e]{display:inline-flex;align-items:center;margin:4px;margin-left:0;overflow:hidden;font-size:12px;line-height:20px;border:solid 1px rgba(0,0,0,0);border-radius:2px}.condition-value-container ul.condition-value-input>li.tag-item[data-v-c8ac423e]{color:#63656e;cursor:pointer;background:#f0f1f5;border-color:#f0f1f5}.condition-value-container ul.condition-value-input>li.tag-item .tag-item-text[data-v-c8ac423e]{display:box;max-width:100%;padding:0 8px;overflow:hidden;text-overflow:ellipsis;line-clamp:3;word-break:break-all;user-select:none;box-orient:vertical}.condition-value-container ul.condition-value-input>li.tag-item .tag-item-del[data-v-c8ac423e]{font-size:16px;color:#979ba5;cursor:pointer}.condition-value-container ul.condition-value-input>li.no-selected-tag-item[data-v-c8ac423e]{height:100%;background-color:rgba(0,0,0,0);border:none}.condition-value-container ul.condition-value-input>li.tag-validate-error[data-v-c8ac423e]{border-color:red;border-style:dashed}.condition-value-container ul.condition-value-input>li input.tag-option-focus-input[data-v-c8ac423e]{height:auto;font-size:12px;color:#63656e;border:none}.condition-value-container ul.condition-value-input>li .tag-item-input[data-v-c8ac423e]{position:absolute;top:0;width:100%;max-width:100%;height:100%;padding:0 8px;resize:none;background-color:#e1ecff;border:none}.condition-value-container ul.condition-value-input>li .tag-item-input[data-v-c8ac423e]::-webkit-scrollbar{width:12px}.tag-error-text[data-v-c8ac423e]{margin:-20px 0 6px 0px;font-size:12px;color:red}
|
|
33
33
|
ul.search-items{display:inline-flex;flex-wrap:wrap;width:100%;max-height:135px;padding:4px;padding-bottom:0;margin:0;overflow:auto}@keyframes changeBackgroundColor{0%{background-color:#f0f1f5}20%{background-color:#fdf4e8}60%{background-color:#f0f1f5}90%{background-color:#fdf4e8}100%{background-color:#f0f1f5}}ul.search-items li.search-item{display:inline-flex;flex-direction:column;align-content:center;justify-content:center;height:40px;margin-right:4px;margin-bottom:4px;cursor:pointer;border-radius:2px}ul.search-items li.search-item:not(.is-focus-input){padding:4px 8px;padding-right:48px;outline:none}ul.search-items li.search-item.is-common-fixed{transition:background-color 1s ease-in-out;animation:changeBackgroundColor 1.5s forwards}ul.search-items li.search-item.is-focus-input{position:relative}ul.search-items li.search-item.is-focus-input::after{position:absolute;right:0;font-size:12px;line-height:20px;color:#c4c6cc;white-space:nowrap;pointer-events:none;content:attr(data-attr-txt);transform:translateX(100%)}ul.search-items li.search-item.is-focus-input .tag-option-focus-input:hover{cursor:pointer}ul.search-items li .tag-option-focus-input{height:38px;font-size:12px;color:#63656e;border:none}ul.search-items li .tag-option-focus-input::placeholder{color:#c4c6cc}ul.search-items li.btn-add{font-size:12px;color:#3a84ff;letter-spacing:0;background:#f0f5ff}ul.search-items li.btn-add:not(.is-focus-input){padding-right:8px}ul.search-items li.btn-add:hover{background:#e1ecff}ul.search-items li.btn-add .tag-add{display:flex;align-items:flex-start;justify-content:center;font-size:18px;line-height:18px}ul.search-items li.btn-add .tag-text{display:flex;align-items:flex-start;justify-content:center;height:20px;margin-bottom:2px;line-height:20px}ul.search-items li.tag-item{position:relative;background:#eaebf0}ul.search-items li.tag-item:hover .tag-options{display:inline-flex}ul.search-items li.tag-item .tag-options{position:absolute;top:2px;right:0;bottom:0;display:none;width:40px;height:18px;font-size:16px}ul.search-items li.tag-item .tag-options .bklog-icon,ul.search-items li.tag-item .tag-options .tag-options-close{display:flex;align-items:center;justify-content:center;padding:2px;color:#4d4f56;background-color:#fff}ul.search-items li.tag-item .tag-options .bklog-icon{width:18px;height:18px;font-size:12px;background:#fff;border-radius:2px;box-shadow:0 1px 2px 0 rgba(0,0,0,.0784313725)}ul.search-items li.tag-item .tag-options .bklog-icon:hover{color:#3a84ff}ul.search-items li.tag-item .tag-options .tag-options-close{margin-right:0px;margin-left:2px;font-size:14px}ul.search-items li.tag-item .tag-options .tag-options-close:hover{color:#ea3636}ul.search-items li.tag-item .tag-row{display:flex;align-items:center;justify-content:flex-start;width:100%;font-size:12px}ul.search-items li.tag-item .tag-row.match-name .match-name-label{font-family:var(--bklog-v3-row-lbl-font);color:#757880}ul.search-items li.tag-item .tag-row.match-name .symbol{padding:0 4px;color:#3a84ff}ul.search-items li.tag-item .tag-row.match-name .symbol[data-operator^="not contains"],ul.search-items li.tag-item .tag-row.match-name .symbol[data-operator^="does not exists"],ul.search-items li.tag-item .tag-row.match-name .symbol[data-operator^="is false"],ul.search-items li.tag-item .tag-row.match-name .symbol[data-operator^="!="]{color:#ea3636}ul.search-items li.tag-item .tag-row.match-value{display:inline-flex;max-width:600px;overflow:hidden;color:#313238;text-overflow:ellipsis;white-space:nowrap}ul.search-items li.tag-item .tag-row.match-value .match-value-more:hover{text-decoration:underline}ul.search-items li.tag-item .tag-row.match-value>span{display:flex;align-items:center}ul.search-items li.tag-item .tag-row.match-value>span .match-value-text{display:inline-block;max-width:140px;overflow:hidden;font-family:var(--bklog-v3-row-ctx-font);line-height:16px;text-overflow:ellipsis;white-space:nowrap}ul.search-items li.tag-item .tag-row.match-value>span .match-value-text:hover{text-decoration:underline}ul.search-items li.tag-item .tag-row.match-value>span .match-value-text.has-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ul.search-items li.tag-item .tag-row.match-value>span .delete-line{text-decoration:line-through;color:#979ba5}ul.search-items li.tag-item .tag-row.match-value>span .match-value-relation{margin:0 4px;font-family:"Roboto Mono";font-size:12px;font-weight:500;color:#f59500;border-radius:2px}ul.search-items li.tag-item.disabled .tag-row.match-value{color:#979ba5}ul.search-items li.tag-item.disabled .tag-row.match-value .match-value-text{position:relative;text-decoration:line-through}ul.search-items li.tag-item.disabled .tag-options .bklog-icon,ul.search-items li.tag-item.disabled .tag-options .tag-options-close{color:#4d4f56}ul.search-items li.search-item-focus.hidden-pointer{min-width:1px}ul.search-items li div{width:100%;text-align:left}ul.search-items li div.tag-add{font-size:18px;text-align:center}
|
|
34
34
|
[data-tippy-root] .tippy-box[data-theme=log-light]{color:#4d4f56;background-color:#fff;border-radius:2px;box-shadow:0 2px 15px 0 rgba(0,0,0,.16);transform:translateY(-2px)}[data-tippy-root] .tippy-box[data-theme=log-light] .tippy-content{padding:0}[data-tippy-root] .tippy-box[data-theme=log-light] .tippy-arrow{color:#fff}[data-tippy-root] .tippy-box[data-theme=log-light] .tippy-arrow::after{background-color:#fff;box-shadow:0 2px 6px 0 rgba(0,0,0,.1019607843)}[data-tippy-root] .tippy-box[data-theme=log-light] .tippy-arrow::before{top:-9px}[data-tippy-root] .tippy-box[data-theme=log-light] .ui-query-options{border-radius:2px}[data-tippy-root] .tippy-box[data-theme=log-light] .ui-query-options .ui-query-option-footer{border-radius:0 0 2px 2px}[data-tippy-root] .tippy-box[data-theme=log-dark]{color:#fff;background-color:#4d4f56;border-radius:2px;box-shadow:0 2px 6px 0 #fff;transform:translateY(-2px)}[data-tippy-root] .tippy-box[data-theme=log-dark] .tippy-content{padding:4px 8px}[data-tippy-root] .tippy-box[data-theme=log-dark] .tippy-arrow{color:#4d4f56}[data-tippy-root] .tippy-box[data-theme=log-dark] .tippy-arrow::after{background-color:#4d4f56;box-shadow:0 2px 6px 0 #fff}[data-tippy-root] .tippy-box[data-theme=log-dark] .tippy-arrow::before{top:-9px}.bk-tooltip-content .match-value-select{display:flex;align-items:center;font-size:12px;line-height:32px;cursor:pointer;background-color:#fff}.bk-tooltip-content .delete-line{color:#979ba5;text-decoration:line-through}.match-value-content{display:flex;flex-direction:column}.match-value-content .bk-tooltip-ref{width:100%;cursor:pointer}.match-value-content .match-value-child{font-size:12px;line-height:32px}.match-value-popover{left:15px !important}
|
|
35
|
-
.search-bar-wrapper[data-v-
|
|
35
|
+
.search-bar-wrapper[data-v-9a10bb56]{position:sticky;top:0px;z-index:4}.search-bar-wrapper .search-bar-container[data-v-9a10bb56]{display:flex;background-color:#fff;border-radius:2px;box-shadow:0 2px 4px 0 rgba(25,25,41,.0784313725)}.search-bar-wrapper .search-bar-container .search-options[data-v-9a10bb56]{display:flex;align-items:center;justify-content:center;width:100%;max-width:82px;min-height:48px;cursor:pointer;border-right:solid 1px #dcdee5}.search-bar-wrapper .search-bar-container .search-options .mode-text[data-v-9a10bb56]{display:inline-flex;font-size:12px;color:#313238}.search-bar-wrapper .search-bar-container .search-options .bklog-qiehuan-2[data-v-9a10bb56]{margin-left:4px;color:#4d4f56}.search-bar-wrapper .search-bar-container .search-options:hover .mode-text[data-v-9a10bb56]{color:#3a84ff}.search-bar-wrapper .search-bar-container .search-options:hover .bklog-qiehuan-2[data-v-9a10bb56]{color:#3a84ff}.search-bar-wrapper .search-bar-container .search-input[data-v-9a10bb56]{position:relative;display:flex;width:100%;min-height:48px;background:#fff;border-radius:2px}.search-bar-wrapper .search-bar-container .search-input.disabled[data-v-9a10bb56]::after{position:absolute;top:0;right:0;bottom:0;left:0;cursor:not-allowed;content:"";background-color:rgba(0,0,0,0)}.search-bar-wrapper .search-bar-container .search-input .search-tool .bk-tooltip[data-v-9a10bb56]{display:inline-flex}.search-bar-wrapper .search-bar-container .search-input .search-tool.items .disabled[data-v-9a10bb56]{color:#dcdee5;cursor:not-allowed}.search-bar-wrapper .search-bar-container .search-input .search-tool.items[data-v-9a10bb56]{display:flex;align-items:center;justify-content:space-around;padding-right:4px;color:#4d4f56}.search-bar-wrapper .search-bar-container .search-input .search-tool.items .bklog-keyword-inspect[data-v-9a10bb56]{width:280px;padding:12px;cursor:default;background:#fff;border:1px solid #dcdee5;box-shadow:0 2px 6px 0 rgba(0,0,0,.1019607843)}.search-bar-wrapper .search-bar-container .search-input .search-tool.items .bklog-keyword-inspect .inspect-row[data-v-9a10bb56]{width:100%;text-align:left}.search-bar-wrapper .search-bar-container .search-input .search-tool.items .bklog-keyword-inspect .inspect-row .inspect-title[data-v-9a10bb56]{display:flex;align-items:center;justify-content:space-between;width:100%;height:20px;font-size:12px;line-height:20px;color:#313238}.search-bar-wrapper .search-bar-container .search-input .search-tool.items .bklog-keyword-inspect .inspect-row .inspect-title .inspect-keyword-replace[data-v-9a10bb56]{font-size:12px;color:#3a84ff;cursor:pointer}.search-bar-wrapper .search-bar-container .search-input .search-tool.items .bklog-keyword-inspect .inspect-row .inspect-message[data-v-9a10bb56]{position:relative;display:flex;align-items:flex-start;justify-content:space-between;width:100%;padding:6px 8px;font-size:12px;line-height:20px;color:#e71818;background:#f5f7fa;border-radius:2px;word-break:break-all;white-space:break-word}.search-bar-wrapper .search-bar-container .search-input .search-tool.items .bklog-keyword-inspect .inspect-row[data-v-9a10bb56]:last-child{margin-top:16px}.search-bar-wrapper .search-bar-container .search-input .search-tool.items>div[data-v-9a10bb56]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:2px;font-size:18px;color:#4d4f56;cursor:pointer;border-radius:2px}.search-bar-wrapper .search-bar-container .search-input .search-tool.items>div[data-v-9a10bb56]:hover{background:#eaebf0}.search-bar-wrapper .search-bar-container .search-input .search-tool.items>div.is-focused[data-v-9a10bb56]{color:#3a84ff;background:#e1ecff}.search-bar-wrapper .search-bar-container .search-input .search-tool.items>div.bklog-keyword-validate[data-v-9a10bb56]{position:relative;overflow:visible}.search-bar-wrapper .search-bar-container .search-input .search-tool.items>div .bklog-star-line[data-v-9a10bb56]{font-size:20px}.search-bar-wrapper .search-bar-container .search-input .search-tool.search-btn[data-v-9a10bb56]{display:flex;align-items:center;justify-content:center;width:48px;font-size:14px;color:#fff;cursor:pointer;background-color:#3a84ff;border-radius:0 2px 2px 0}.search-bar-wrapper .search-bar-container .search-input .search-tool.search-btn[data-v-9a10bb56] .bk-button{width:100%;height:100%;border-radius:0 2px 2px 0}.search-bar-wrapper .search-bar-container .search-input .search-tool.search-btn[data-v-9a10bb56] .bk-button .icon-search{font-size:16px}.search-bar-wrapper .search-bar-container .search-refresh[data-v-9a10bb56]{position:relative;display:flex;align-items:center;height:52px;padding:0px 18px 0px 13px;cursor:pointer}.search-bar-wrapper .search-bar-container .search-refresh[data-v-9a10bb56]::before{position:absolute;top:20px;left:0;width:1px;height:14px;content:"";background-color:#dcdee5}.search-bar-wrapper .search-bar-container .auto-refresh-trigger[data-v-9a10bb56]{display:flex;align-items:center;min-width:103px;height:52px;font-size:12px;line-height:22px;white-space:nowrap;cursor:pointer}.search-bar-wrapper .search-bar-container .auto-refresh-trigger .bklog-icon[data-v-9a10bb56]{padding:0 5px 0 17px;font-size:14px;color:#63656e}.search-bar-wrapper .search-bar-container .auto-refresh-trigger .active-text[data-v-9a10bb56]{color:#3a84ff}.search-bar-wrapper .search-bar-container .auto-refresh-trigger .icon-angle-down[data-v-9a10bb56]{margin:0 10px;font-size:22px;color:#63656e;transition:transform .3s}.search-bar-wrapper .search-bar-container .auto-refresh-trigger .icon-angle-down.active[data-v-9a10bb56]{transition:transform .3s;transform:rotate(-180deg)}.search-bar-wrapper .search-bar-container .auto-refresh-trigger:hover>span[data-v-9a10bb56]{color:#3a84ff}.search-bar-wrapper .search-bar-container .auto-refresh-trigger[data-v-9a10bb56]::before{position:absolute;top:20px;left:0;width:1px;height:14px;content:"";background-color:#dcdee5}.search-bar-wrapper .search-bar-container .query-params-wrap[data-v-9a10bb56]{display:flex;flex:1;align-items:center;justify-content:end}.search-bar-wrapper .search-bar-container[data-v-9a10bb56]::before{position:absolute;top:0;right:0;left:0;height:50px;content:"";background-color:#f4f7fa;transform:translateY(-100%)}.search-bar-wrapper .search-bar-container.readonly[data-v-9a10bb56]::after{position:absolute;top:0;right:0;bottom:0;left:0;cursor:not-allowed;content:"";background-color:hsla(0,0%,100%,.2)}.search-bar-wrapper .search-bar-container.set-border[data-v-9a10bb56]{border-bottom:1px solid #dcdee5}.search-bar-wrapper .search-bar-container.inspect-error .search-input[data-v-9a10bb56]{background:#fff0f0}.search-bar-wrapper.no-margin[data-v-9a10bb56]{margin-left:0}
|
|
36
36
|
.bklog-sql-input-loading .bk-loading-wrapper{left:30px}[data-tippy-root] .tippy-box[data-theme*=transparent]{background-color:rgba(0,0,0,0);border:none}.bklog-search-input-poptool{display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0)}.bklog-search-input-poptool .bklog-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin-right:4px;color:#4d4f56;cursor:pointer;background:#fafbfd;border:1px solid #dcdee5;border-radius:2px;box-shadow:0 1px 3px 1px rgba(0,0,0,.1215686275)}.bklog-search-input-poptool .bklog-icon:hover{color:#3a84ff}
|
|
37
37
|
.v3-search-bar-root{width:100%;padding:0 8px}.v3-search-bar-root.is-sticky-top{padding:0;transition:all .3s ease}
|
|
38
38
|
.no-index-set-container[data-v-8c9135ae]{width:100%;height:calc(100% - 142px);margin-top:142px;text-align:center}.no-index-set-container .icon-index-set[data-v-8c9135ae]{margin-bottom:25px;font-size:52px;color:#d4d6dd}.no-index-set-container .main-tip[data-v-8c9135ae]{margin-bottom:30px;font-size:18px;color:#313238}.no-index-set-container .index-manage-container[data-v-8c9135ae]{display:flex;align-items:center;justify-content:space-between;width:732px;margin:80px auto 0}.no-index-set-container .index-manage-container .index-manage[data-v-8c9135ae]{display:flex;flex-flow:column;align-items:center;width:346px;height:200px;background:#fff;border-radius:2px}.no-index-set-container .index-manage-container .index-manage .index-manage-tips[data-v-8c9135ae]{height:88px;margin:40px 0 0;font-size:14px;font-weight:600;line-height:24px;color:#63656e}.no-index-set-container .index-manage-container .index-manage .index-manage-tips p[data-v-8c9135ae]:last-child{font-weight:normal;color:#979ba5}.no-index-set-container .index-manage-container .index-manage .king-button[data-v-8c9135ae]{border-radius:16px}.no-index-set-container .side-tip[data-v-8c9135ae]{margin-bottom:30px;font-size:14px;color:#979ba5}
|
|
@@ -68,11 +68,12 @@ ul.search-items{display:inline-flex;flex-wrap:wrap;width:100%;max-height:135px;p
|
|
|
68
68
|
.bklog-result-container{position:relative;display:inline-flex;flex-direction:column;justify-content:flex-start;width:100%;min-width:100%;min-height:400px;margin-top:6px;overflow:hidden;border-top:solid 1px #dfe0e5}.bklog-result-container .bklog-requsting-loading{text-align:center;pointer-events:none}.bklog-result-container .bklog-requsting-loading>div{height:40px;font-size:12px;line-height:40px;color:#979ba5;color:#979ba5;font-size:12px}.bklog-result-container .bklog-scroll-x{position:fixed;right:0;bottom:0;z-index:4;height:14px;overflow-x:auto;background-color:rgba(0,0,0,0)}.bklog-result-container .bklog-scroll-x>div{height:1px;background-color:rgba(0,0,0,0)}.bklog-result-container .bklog-row-box{z-index:1;display:flex;flex-direction:column;width:100%;min-width:100%;overflow:hidden}.bklog-result-container .bklog-row-container{position:relative;z-index:2;box-sizing:border-box;display:inline-flex;align-items:stretch;width:fit-content;min-width:100%;min-height:32px;background-color:#fff;border-bottom:1px solid #dfe0e5}.bklog-result-container .bklog-row-container .bklog-row-observe{display:inline-flex;flex-direction:column;width:fit-content;min-width:100%;height:100%}.bklog-result-container .bklog-row-container .bklog-row-observe.is-pending{position:relative}.bklog-result-container .bklog-row-container .bklog-list-row{position:relative;box-sizing:border-box;display:inline-flex;align-items:stretch;min-width:fit-content;font-family:var(--table-fount-family);font-size:var(--table-fount-size);line-height:32px;color:var(--table-fount-color)}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell{align-self:flex-start;padding:4px 12px;line-height:22px}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.left,.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.right{align-self:stretch}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell .bklog-expand-icon{position:relative;display:flex;align-items:center;justify-content:center;height:20px;font-size:12px;color:#c4c6cc;cursor:pointer}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell .bklog-expand-icon>i{position:absolute}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell .bklog-expand-icon.is-expaned>i{transition:transform .2s ease-in-out;transform:rotate(90deg)}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.right{position:sticky;right:0;z-index:2;display:flex;align-items:stretch;padding:0px 12px;background-color:#fff}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.right .handle-content{position:relative;display:flex;justify-content:space-around;padding:4px 0}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.right .handle-content .handle-card{margin-left:0}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.right::before{position:absolute;top:0;right:100%;bottom:0px;left:-8px;z-index:2;min-width:8px;pointer-events:none;content:"";background-image:linear-gradient(270deg, rgba(0, 0, 0, 0.0588235294) 0%, rgba(0, 0, 0, 0) 100%)}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell{position:relative;display:inline-flex;align-items:center;height:32px;font-family:var(--table-fount-family);font-size:var(--table-fount-size);line-height:32px;color:var(--table-fount-color);text-align:left;text-overflow:ellipsis;vertical-align:middle;cursor:pointer;background-color:#fafbfd}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell.right{position:sticky;right:0;display:flex;align-items:center;justify-content:center;padding:12px}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .bklog-header-cell{display:flex;align-items:center;height:auto;font-family:Roboto-Regular;font-weight:bold;line-height:1;color:#313238}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .bklog-header-cell .bk-table-caret-wrapper{position:relative;display:inline-flex;flex:20px 0 0;flex-direction:column;align-items:center;height:20px}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .bklog-header-cell .bk-table-caret-wrapper .bk-table-sort-caret{position:absolute;width:0;height:0;border:5px solid rgba(0,0,0,0)}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .bklog-header-cell .bk-table-caret-wrapper .bk-table-sort-caret.ascending{top:-1px;border-bottom-color:#c0c4cc}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .bklog-header-cell .bk-table-caret-wrapper .bk-table-sort-caret.ascending.active{border-bottom-color:#3a84ff}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .bklog-header-cell .bk-table-caret-wrapper .bk-table-sort-caret.descending{bottom:-1px;border-top-color:#c0c4cc}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .bklog-header-cell .bk-table-caret-wrapper .bk-table-sort-caret.descending.active{border-top-color:#3a84ff}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .field-type-icon{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;margin:0 5px 0 0;font-size:14px;color:#63656e;background:#dcdee5;border-radius:2px}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .bklog-ext{min-width:22px;height:22px;transform:translateX(-3px) scale(0.7)}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .toggle-display{position:absolute;top:12px;right:12px;display:none;color:#c4c6cc;cursor:pointer}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .toggle-display:hover{color:#ea3636}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .toggle-display.is-hidden{visibility:hidden}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell .lack-index-filed{line-height:20px;border-bottom:1px dashed #63656e}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell.is-hidden{display:none}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell:hover{background-color:#f0f1f5}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.header-cell:hover .toggle-display{display:inline-block}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.is-hidden{display:none}.bklog-result-container .bklog-row-container .bklog-list-row .bklog-row-cell.hidden-field{visibility:hidden}.bklog-result-container .bklog-row-container .expand-view-wrapper{position:sticky;left:0;width:calc(100vw - var(--left-collection-width) - var(--left-field-setting-width) - 22px);border-top:1px solid #dfe0e5}.bklog-result-container .bklog-row-container .expand-view-wrapper .view-content.kv-view-content .kv-list-wrapper .kv-content{width:100%}.bklog-result-container .bklog-row-container .expand-view-wrapper .view-content.kv-view-content .kv-list-wrapper .kv-content .log-item .field-value{width:100%}.bklog-result-container .bklog-row-container .expand-view-wrapper .view-content.kv-view-content .kv-list-wrapper .kv-content .log-item .field-value .bklog-text-segment.is-text-show{width:fit-content}.bklog-result-container .bklog-row-container.is-intersecting{visibility:visible}.bklog-result-container .bklog-row-container.row-header{position:sticky;top:0;z-index:2;box-sizing:content-box;display:none;width:fit-content;width:100%;min-width:100%;height:32px;overflow:visible;line-height:32px;visibility:visible;background-color:#fafbfd}.bklog-result-container .bklog-row-container.row-header .bklog-list-row{z-index:1;padding:0;width:100%}.bklog-result-container .bklog-row-container.row-header::before{content:"";min-width:3.09px;height:100%;background-color:#fafbfd;position:sticky;left:0}.bklog-result-container .bklog-row-container:not(.row-header){position:relative}.bklog-result-container .bklog-row-container:not(.row-header):hover,.bklog-result-container .bklog-row-container:not(.row-header).ai-active{background-color:#fafbfd}.bklog-result-container .bklog-row-container:not(.row-header):hover .bklog-row-ai img,.bklog-result-container .bklog-row-container:not(.row-header).ai-active .bklog-row-ai img{opacity:1;transition:opacity .3s}.bklog-result-container .bklog-row-container:not(.row-header)::before{position:sticky;left:0;z-index:1;min-width:3.09px;margin:1px 0;content:"";background:rgba(0,0,0,0);border-radius:0 1px 1px 0}.bklog-result-container .bklog-row-container:not(.row-header).normal::before{background:#dcdee5}.bklog-result-container .bklog-row-container:not(.row-header).others::before,.bklog-result-container .bklog-row-container:not(.row-header).level_7::before{background:#dcdee5}.bklog-result-container .bklog-row-container:not(.row-header).TRACE::before,.bklog-result-container .bklog-row-container:not(.row-header).level_6::before{background:#a3b1cc}.bklog-result-container .bklog-row-container:not(.row-header).FATAL::before,.bklog-result-container .bklog-row-container:not(.row-header).level_1::before{background:#d46d5d}.bklog-result-container .bklog-row-container:not(.row-header).DEBUG::before,.bklog-result-container .bklog-row-container:not(.row-header).level_5::before{background:#92d4f1}.bklog-result-container .bklog-row-container:not(.row-header).INFO::before,.bklog-result-container .bklog-row-container:not(.row-header).level_4::before{background:#6fc5bf}.bklog-result-container .bklog-row-container:not(.row-header).WARN::before,.bklog-result-container .bklog-row-container:not(.row-header).WARNING::before,.bklog-result-container .bklog-row-container:not(.row-header).level_3::before{background:#f5c78e}.bklog-result-container .bklog-row-container:not(.row-header).ERROR::before,.bklog-result-container .bklog-row-container:not(.row-header).level_2::before{background:#f59789}.bklog-result-container .resize-guide-line{position:absolute;top:0;bottom:0;z-index:10;display:none;width:1px;height:100%;background-color:#3a84ff}.bklog-result-container .bklog-empty-data{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%}.bklog-result-container .bklog-empty-data h1{height:28px;font-family:MicrosoftYaHei-Bold;font-size:20px;font-weight:700;line-height:28px;color:#313238;letter-spacing:0}.bklog-result-container .bklog-empty-data .sub-title{height:22px;margin:8px 0 24px 0;font-family:MicrosoftYaHei;font-size:14px;line-height:22px;color:#313238;letter-spacing:0}.bklog-result-container .bklog-empty-data .empty-validate-steps{display:flex;justify-content:center;width:100%}.bklog-result-container .bklog-empty-data .empty-validate-steps>div{width:30%;height:240px;padding:12px 16px;font-size:12px;color:#4d4f56;background:#f5f7fa}.bklog-result-container .bklog-empty-data .empty-validate-steps>div h3{height:22px;margin:0;margin-bottom:8px;font-family:MicrosoftYaHei-Bold;font-size:14px;font-weight:700;line-height:22px;color:#313238;letter-spacing:0}.bklog-result-container .bklog-empty-data .empty-validate-steps>div.validate-step1 .step1-content{display:flex;width:100%;padding:6px 24px 32px 6px;font-family:MicrosoftYaHei;line-height:20px;letter-spacing:0}.bklog-result-container .bklog-empty-data .empty-validate-steps>div.validate-step2{margin:0 16px;font-size:12px;line-height:20px;color:#4d4f56}.bklog-result-container .bklog-empty-data .empty-validate-steps>div .segment-span-tag{color:#3a84ff;cursor:pointer}.bklog-result-container.show-header .bklog-row-container.row-header{display:block}.bklog-result-container.has-scroll-x .bklog-row-box{will-change:transform}.bklog-result-container.has-scroll-x .bklog-row-box .bklog-row-container{content-visibility:auto}.bklog-result-container.has-scroll-x .bklog-row-box .bklog-row-container .bklog-list-row .bklog-row-cell.hidden-field{display:none}
|
|
69
69
|
.bklog-result-box{position:relative}.bklog-result-box .bklog-skeleton-loading{position:absolute;top:0;z-index:10}
|
|
70
70
|
.bklog-v3-storage{display:flex;align-items:center}.bklog-v3-storage .bklog-option-item{font-size:12px;line-height:20px;color:#63656e}
|
|
71
|
+
.bklog-v3-popoover-wrapper{font-size:12px}
|
|
71
72
|
.original-log-panel .original-log-panel-tools[data-v-2cf30c8f]{display:flex;justify-content:space-between;padding:0 6px 0 6px}.original-log-panel .tools-more[data-v-2cf30c8f]{display:flex;align-items:center;justify-content:center}.original-log-panel .tools-more .switch-label[data-v-2cf30c8f]{margin-right:2px;font-size:12px;color:#63656e}.original-log-panel .operation-icons[data-v-2cf30c8f]{display:flex;align-items:center;justify-content:space-between;margin-left:16px}.original-log-panel .operation-icons .operation-icon[data-v-2cf30c8f]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-left:10px;cursor:pointer;background-color:#f0f1f5;border-radius:2px;outline:none;transition:boder-color .2s}.original-log-panel .operation-icons .operation-icon[data-v-2cf30c8f]:hover{border-color:#4d4f56;transition:boder-color .2s}.original-log-panel .operation-icons .operation-icon[data-v-2cf30c8f]:active{border-color:#3a84ff;transition:boder-color .2s}.original-log-panel .operation-icons .operation-icon .bklog-icon[data-v-2cf30c8f]{width:16px;font-size:16px;color:#4d4f56}.original-log-panel .operation-icons .light-search[data-v-2cf30c8f]{display:flex;align-items:center;background:#fff;font-size:12px;color:#4d4f56}.original-log-panel .operation-icons .light-search label[data-v-2cf30c8f]{border-left:1px solid #c4c6cc;border-top:1px solid #c4c6cc;border-bottom:1px solid #c4c6cc;border-top-left-radius:2px;border-bottom-left-radius:2px;border-right:none;width:40px;padding:0px 0px;color:#4d4f56;text-align:center;background:#fafbfd;height:32px;display:flex;align-items:center;justify-content:center}.original-log-panel .operation-icons .disabled-icon[data-v-2cf30c8f]{cursor:not-allowed;background-color:#fff;border-color:#dcdee5}.original-log-panel .operation-icons .disabled-icon[data-v-2cf30c8f]:hover,.original-log-panel .operation-icons .disabled-icon .bklog-icon[data-v-2cf30c8f]{color:#c4c6cc;border-color:#dcdee5}.original-log-panel .left-operate[data-v-2cf30c8f]{flex-wrap:nowrap;align-items:center;display:flex;justify-content:space-between}.original-log-panel .left-operate>div[data-v-2cf30c8f]{flex-shrink:0}.original-log-panel .left-operate .bk-button-group[data-v-2cf30c8f]{display:flex;align-items:center;justify-content:center;width:104px;height:32px;padding:4px 4px;font-size:12px;background-color:#f0f1f5;border-radius:2px}.original-log-panel .left-operate .option[data-v-2cf30c8f]{display:flex;flex:1;align-items:center;justify-content:center;width:100%;height:100%;color:#4d4f56;cursor:pointer;transition:background-color .3s}.original-log-panel .left-operate .option.option-selected[data-v-2cf30c8f]{color:#3a84ff;background-color:#fff}.original-log-panel .left-operate .bklog-option-item[data-v-2cf30c8f]{font-size:12px;line-height:20px;color:#63656e}.original-log-panel .field-select[data-v-2cf30c8f]{position:relative;width:120px;margin-left:16px}.original-log-panel .field-select .icon-field-config[data-v-2cf30c8f]{position:absolute;top:4px;left:4px;width:18px}.original-log-panel .field-select[data-v-2cf30c8f] .bk-select .bk-select-name{padding:0px 36px 0 30px}.extension-add-new-config[data-v-2cf30c8f]{cursor:pointer;display:flex;align-items:center;justify-content:center}.extension-add-new-config[data-v-2cf30c8f] :last-child{margin-left:4px;color:#63656e}.extension-add-new-config .icon-close-circle[data-v-2cf30c8f]{margin-left:4px;font-size:14px;color:#979ba5;transform:rotateZ(45deg)}
|
|
72
73
|
.json-depth-num.json-depth-num-input.bk-form-control{width:96px}.json-depth-num.json-depth-num-input.bk-form-control .bk-input-number input.bk-form-input{height:26px}body.no-user-select{user-select:none}
|
|
73
|
-
.search-result-panel{background-color:#fff}.search-result-panel.flex{position:relative;display:flex;height:fit-content;overflow:visible}.search-result-panel.flex .field-list-sticky.is-show{position:sticky;top:var(--offset-search-bar);z-index:3;align-self:start;height:calc(100vh - var(--offset-search-bar) -
|
|
74
|
+
.search-result-panel{background-color:#fff}.search-result-panel.flex{position:relative;display:flex;height:fit-content;overflow:visible}.search-result-panel.flex .field-list-sticky.is-show{position:sticky;top:var(--offset-search-bar);z-index:3;align-self:start;height:calc(100vh - var(--offset-search-bar) - var(--header-height) - 100px)}.search-result-panel.flex .split-line{width:100%;margin:0 0 6px;border-bottom:solid 1px #dcdee5}.search-result-panel.flex .search-result-content{position:relative}.search-result-panel.flex .search-result-content .monitor-echarts-container{padding-left:16px}.search-result-panel.flex .search-result-content .monitor-echarts-container .title-wrapper-new{z-index:3;width:calc(100% - 110px)}.search-result-panel.flex .search-result-content.field-list-show .monitor-echarts-container .title-wrapper-new{width:100%;margin-left:0}
|
|
74
75
|
.grep-cli-codemirror-editor{width:100%;height:34px;border:none;border-radius:2px;overflow:hidden;transition:height .2s ease}.grep-cli-codemirror-editor.auto-height{min-height:34px;max-height:200px;height:auto !important}.grep-cli-codemirror-editor.auto-height .cm-editor{height:auto !important;min-height:34px}.grep-cli-codemirror-editor.auto-height .cm-content{min-height:24px;height:auto}.grep-cli-codemirror-editor.auto-height .cm-scroller{overflow-y:auto;max-height:inherit}.grep-cli-codemirror-editor .cm-editor{height:100%;border:none;background-color:rgba(0,0,0,0)}.grep-cli-codemirror-editor .cm-editor.cm-focused{outline:none}.grep-cli-codemirror-editor .cm-content{padding:6px 8px;line-height:1.4;font-size:14px;font-family:"Monaco","Menlo","Ubuntu Mono","Consolas","source-code-pro",monospace;min-height:24px}.grep-cli-codemirror-editor .cm-scroller{overflow:auto}.grep-cli-codemirror-editor .cm-placeholder,.grep-cli-codemirror-editor .grep-cli-placeholder{position:absolute;top:6px;left:8px;color:#999;font-style:italic;pointer-events:none;z-index:1;font-family:"Monaco","Menlo","Ubuntu Mono","Consolas","source-code-pro",monospace;font-size:14px;line-height:1.4;user-select:none;opacity:.8;transition:opacity .2s ease}.grep-cli-codemirror-editor .cm-placeholder:not(:focus-within),.grep-cli-codemirror-editor .grep-cli-placeholder:not(:focus-within){opacity:.8}.grep-cli-codemirror-editor .cm-placeholder:focus-within,.grep-cli-codemirror-editor .grep-cli-placeholder:focus-within{opacity:.6}.grep-cli-codemirror-editor .cm-placeholder{position:static;color:#999 !important;font-style:italic !important;opacity:.8 !important;display:inline-block;pointer-events:none}.grep-cli-codemirror-editor .cm-searchMatch{background-color:#ffeb3b;color:#000}.grep-cli-codemirror-editor .cm-searchMatch-selected{background-color:#ff9800;color:#fff}.grep-cli-codemirror-editor .cm-selectionBackground{background-color:rgba(58,132,255,.1333333333)}.grep-cli-codemirror-editor .cm-cursor{border-left-color:#3a84ff}.grep-cli-codemirror-editor .cm-gutters{display:none !important;width:0 !important}.grep-cli-codemirror-editor .cm-lineNumbers{display:none !important}.grep-cli-codemirror-editor .cm-foldGutter{display:none !important}.grep-cli-codemirror-editor.dark-theme .cm-content{background-color:#1e1e1e;color:#d4d4d4}.grep-cli-codemirror-editor.dark-theme .cm-cursor{border-left-color:#fff}.grep-cli-codemirror-editor.dark-theme .cm-selectionBackground{background-color:#264f78}
|
|
75
|
-
.grep-cli-container{width:100%;box-shadow:0 2px 4px 0 rgba(25,25,41,.0784313725);border-radius:2px;display:flex;align-items:stretch;justify-content:space-between;min-height:40px;background:#fff;box-shadow:0 2px 4px 0 rgba(25,25,41,.0784313725);position:sticky;top:var(--top-searchbar-height);left:0;right:0;z-index:1;background:#fff}.grep-cli-left{display:flex;align-items:start;width:calc(100% - 370px);border-radius:2px;min-height:40px;height:100%;
|
|
76
|
+
.grep-cli-container{width:100%;box-shadow:0 2px 4px 0 rgba(25,25,41,.0784313725);border-radius:2px;display:flex;align-items:stretch;justify-content:space-between;min-height:40px;background:#fff;box-shadow:0 2px 4px 0 rgba(25,25,41,.0784313725);position:sticky;top:var(--top-searchbar-height);left:0;right:0;z-index:1;background:#fff}.grep-cli-left{display:flex;align-items:start;width:calc(100% - 370px);border-radius:2px;min-height:40px;height:100%;position:relative;background-color:rgba(255,232,195,.4)}.grep-cli-left::after{position:absolute;content:"";width:4px;top:0;right:0;bottom:0;background:#f5f7fa;transform:translateX(100%)}.grep-cli-left .grep-cli-label{min-width:42px;font-size:12px;color:#979ba5;padding-top:12px;padding-left:6px}.grep-cli-left .grep-cli-editor{padding-top:6px;border-left:solid 1px #eaebf0;max-width:calc(100% - 128px);width:100%;min-height:40px;height:100%;background-color:#fff}.grep-cli-center,.grep-cli-right{display:flex;align-items:center;padding:0 6px;min-height:40px;height:100%}.grep-cli-right{width:366px;border-radius:2px;padding:4px 8px;flex-direction:row;align-items:center;margin-left:4px;justify-content:space-between;gap:12px;height:100%;align-self:stretch}.grep-cli-select{margin-right:4px;margin-top:8px}.grep-cli-select .bk-select-name{padding-left:0}.grep-cli-select.is-focus{box-shadow:none}.grep-cli-textarea{flex-grow:1;margin:0 16px}.grep-cli-search-section{display:flex;align-items:center;gap:8px;width:100%;height:28px;background:#f0f1f5;border-radius:2px}.grep-cli-search-section .grep-cli-search-input{flex:1}.grep-cli-search-section .grep-cli-search-input .bk-input-text input{background-color:rgba(0,0,0,0);border-color:#f0f1f5;border-radius:2px;font-size:12px;height:26px;line-height:26px}.grep-cli-search-section .grep-cli-tools{display:flex;align-items:center;gap:4px;padding-right:4px}.grep-cli-search-section .grep-cli-tool-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;background:#fafbfd;border:1px solid #dcdee5;border-radius:2px;cursor:pointer;transition:all .2s ease;font-size:14px;color:#4d4f56}.grep-cli-search-section .grep-cli-tool-icon:hover{border-color:#a3c5fd;color:#3a84ff}.grep-cli-search-section .grep-cli-tool-icon.active{width:22px;height:22px;background:#f0f5ff;border:1px solid #a3c5fd;border-radius:2px;color:#3a84ff}.grep-cli-result-section{display:flex;align-items:center;gap:8px}.grep-cli-result-section .grep-cli-result-text{font-size:12px;min-width:60px;text-align:center}.grep-cli-result-section .grep-cli-result-text.success{color:#313238;font-weight:500}.grep-cli-result-section .grep-cli-result-text.no-result{color:#c4c6cc}.grep-cli-result-section .grep-cli-result-text.placeholder{color:#c4c6cc}.grep-cli-result-section .grep-cli-navigation{display:flex;align-items:center;gap:2px}.grep-cli-result-section .grep-cli-nav-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #dcdee5;border-radius:2px;cursor:pointer;transition:all .2s ease;font-size:12px;color:#4d4f56;background:#fff;user-select:none}.grep-cli-result-section .grep-cli-nav-icon:hover:not(.disabled){border-color:#3a84ff;color:#3a84ff}.grep-cli-result-section .grep-cli-nav-icon:active:not(.disabled){background:#f0f5ff}.grep-cli-result-section .grep-cli-nav-icon.disabled{color:#c4c6cc;cursor:not-allowed;border-color:#dcdee5}.grep-cli-result-section .grep-cli-nav-icon.disabled:hover{color:#c4c6cc;border-color:#dcdee5}.grep-cli-search-area{display:flex;align-items:center;gap:8px;background:#f5f7fa;border-radius:4px;padding:6px}.grep-cli-search-area .grep-cli-search-input{flex:1}.grep-cli-search-area .grep-cli-search-input .bk-input-text input{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0);font-size:12px}.grep-cli-search-area .grep-cli-search-input .bk-input-text input:focus{border-color:#3a84ff;background-color:#fff}.grep-cli-search-area .grep-cli-tools{display:flex;align-items:center;gap:4px}.grep-cli-search-area .grep-cli-tool-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:3px;cursor:pointer;transition:all .2s ease;font-size:14px;color:#63656e;background:rgba(0,0,0,0)}.grep-cli-search-area .grep-cli-tool-icon:hover{background-color:#e1ecff;color:#3a84ff}.grep-cli-search-area .grep-cli-tool-icon.active{background-color:#3a84ff;color:#fff}.grep-cli-result-status{display:flex;align-items:center;justify-content:center;min-height:24px}.grep-cli-result-status .grep-cli-result-text{font-size:12px}.grep-cli-result-status .grep-cli-result-text.success{color:#2dcb56}.grep-cli-result-status .grep-cli-result-text.no-result{color:#ea3636}.grep-cli-result-status .grep-cli-result-text.placeholder{color:#c4c6cc}.grep-cli-ui-tools{display:flex;align-items:center;gap:8px;background:#f0f1f5}.grep-cli-ui-tools .bk-input-text input{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.grep-cli-ui-tools .grep-cli-tool-btn{padding:4px 8px;border:none;background:#f0f0f0;border-radius:2px;cursor:pointer}.grep-cli-no-result{margin-left:16px;color:#999}:deep(.mark){background-color:#ffe58f;padding:0 2px;border-radius:2px;color:#000;font-weight:500}:deep(.mark.current){background-color:#ffd666;box-shadow:0 0 0 2px #ffd666}.grep-view{display:flex;flex-direction:column;gap:8px;width:100%;height:100%;border-radius:2px;box-shadow:0 2px 4px 0 rgba(25,25,41,.0784313725)}.cli-result-line{display:flex;align-items:flex-start;gap:8px;padding:4px 0;font-family:monospace;font-size:12px;line-height:1.5;color:#313238}.cli-result-line-number{flex-shrink:0;width:42px;text-align:right;color:#979ba5;user-select:none}.cli-result-line-content-wrapper{flex:1;min-width:0;overflow:hidden}.cli-result-line-content{display:inline;white-space:pre-wrap;word-break:break-word;overflow-x:auto;overflow-y:auto;max-height:200px;padding:4px 8px;background:#fafbfd;border-radius:2px;scroll-behavior:smooth}.log-line-item{display:inline;white-space:pre-wrap;word-break:break-word}.loading-more{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;color:#979ba5;font-size:12px;background:#f0f1f5;border-radius:2px;margin-left:8px}.loading-spinner{width:12px;height:12px;border:2px solid #dcdee5;border-top-color:#3a84ff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
|
|
76
77
|
.cli-result-container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff;border-radius:4px;overflow:hidden;font-size:12px;padding-right:10px;min-height:500px}.cli-result-container .cli-result-line-number{flex:0 0 40px;padding:0 10px;color:#c78500;font-size:12px;text-align:right;user-select:none;line-height:20px}.cli-result-container [data-filter-item].current{background:orange}
|
|
77
78
|
.v3-bklog-body{width:calc(100vw - var(--left-collection-width) - 20px);margin-right:14px;margin-left:8px;overflow:visible;box-shadow:0 2px 4px 0 rgba(25,25,41,.1215686275)}
|
|
78
79
|
.bklgo-v3-ellipsis-tag-list{overflow:hidden}.bklgo-v3-ellipsis-tag-list div{display:inline-flex;align-items:center}.bklgo-v3-ellipsis-tag-list div .bklog-v3-ellipsis-hidden{display:none !important}.bklgo-v3-ellipsis-tag-list .bklog-v3-ellipsis-num{background:#f0f1f5;border-radius:2px;padding:2px 4px}.bklog-v3-ellipsis-more-tip{padding:8px}
|
package/main.js
CHANGED
|
@@ -21967,7 +21967,11 @@ const updateTimezone = tz => {
|
|
|
21967
21967
|
仅查看当前索引集: 'View only current index set',
|
|
21968
21968
|
我的: 'My',
|
|
21969
21969
|
设置筛选: 'Set filter',
|
|
21970
|
-
未编组: 'Unorganized'
|
|
21970
|
+
未编组: 'Unorganized',
|
|
21971
|
+
大小写匹配: 'Case sensitive matching',
|
|
21972
|
+
精确匹配: 'Exact match',
|
|
21973
|
+
Grep模式: 'Grep Mode',
|
|
21974
|
+
我的收藏: 'My favorites'
|
|
21971
21975
|
});
|
|
21972
21976
|
;// ./src/language/lang/en/route.ts
|
|
21973
21977
|
/*
|
|
@@ -22156,6 +22160,7 @@ const i18n = new vue_i18n_esm({
|
|
|
22156
22160
|
}
|
|
22157
22161
|
});
|
|
22158
22162
|
bk_magic_vue_min.locale.i18n((key, value) => i18n.t(key, value));
|
|
22163
|
+
window.$t = i18n.t.bind(i18n);
|
|
22159
22164
|
/* harmony default export */ const language_i18n = (i18n);
|
|
22160
22165
|
;// ./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/global/json-format-wrapper.vue?vue&type=template&id=7c213b72
|
|
22161
22166
|
var render = function render() {
|
|
@@ -32762,6 +32767,7 @@ var BK_LOG_STORAGE;
|
|
|
32762
32767
|
BK_LOG_STORAGE["LAST_INDEX_SET_ID"] = "_15";
|
|
32763
32768
|
})(BK_LOG_STORAGE || (BK_LOG_STORAGE = {}));
|
|
32764
32769
|
|
|
32770
|
+
const SEARCH_MODE_DIC = ['ui', 'sql'];
|
|
32765
32771
|
;// ./src/store/url-resolver.ts
|
|
32766
32772
|
/*
|
|
32767
32773
|
* Tencent is pleased to support the open source community by making
|
|
@@ -33217,7 +33223,7 @@ const IndexsetItemParams = {
|
|
|
33217
33223
|
...DEFAULT_RETRIEVE_PARAMS
|
|
33218
33224
|
};
|
|
33219
33225
|
const IndexItem = {
|
|
33220
|
-
ids: URL_ARGS.unionList?.length ? [...URL_ARGS.unionList] : [URL_ARGS.index_id],
|
|
33226
|
+
ids: (URL_ARGS.unionList?.length ? [...URL_ARGS.unionList] : [URL_ARGS.index_id]).filter(t => t !== '' && t !== undefined && t !== null),
|
|
33221
33227
|
isUnionIndex: URL_ARGS.unionList?.length ?? false,
|
|
33222
33228
|
items: [],
|
|
33223
33229
|
catchUnionBeginList: [],
|
|
@@ -38138,7 +38144,6 @@ function store_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeo
|
|
|
38138
38144
|
function store_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
38139
38145
|
function store_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
38140
38146
|
function store_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? store_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : store_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
38141
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
38142
38147
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
38143
38148
|
/* eslint-disable @typescript-eslint/no-misused-promises */
|
|
38144
38149
|
/*
|
|
@@ -38412,6 +38417,7 @@ var store_store = new vuex_esm.Store({
|
|
|
38412
38417
|
},
|
|
38413
38418
|
// @ts-ignore
|
|
38414
38419
|
retrieveParams: function retrieveParams(state) {
|
|
38420
|
+
var _SEARCH_MODE_DIC$stat;
|
|
38415
38421
|
var _state$indexItem = state.indexItem,
|
|
38416
38422
|
start_time = _state$indexItem.start_time,
|
|
38417
38423
|
end_time = _state$indexItem.end_time,
|
|
@@ -38423,9 +38429,9 @@ var store_store = new vuex_esm.Store({
|
|
|
38423
38429
|
ip_chooser = _state$indexItem.ip_chooser,
|
|
38424
38430
|
host_scopes = _state$indexItem.host_scopes,
|
|
38425
38431
|
interval = _state$indexItem.interval,
|
|
38426
|
-
search_mode = _state$indexItem.search_mode,
|
|
38427
38432
|
sort_list = _state$indexItem.sort_list,
|
|
38428
38433
|
format = _state$indexItem.format;
|
|
38434
|
+
var search_mode = (_SEARCH_MODE_DIC$stat = SEARCH_MODE_DIC[state.storage[BK_LOG_STORAGE.SEARCH_TYPE]]) !== null && _SEARCH_MODE_DIC$stat !== void 0 ? _SEARCH_MODE_DIC$stat : 'ui';
|
|
38429
38435
|
var filterAddition = addition.filter(function (item) {
|
|
38430
38436
|
return !item.disabled && item.field !== '_ip-select_';
|
|
38431
38437
|
}).map(function (_ref2) {
|
|
@@ -38552,7 +38558,7 @@ var store_store = new vuex_esm.Store({
|
|
|
38552
38558
|
if (Array.isArray(state.indexItem[key]) && Array.isArray((_payload$key = payload === null || payload === void 0 ? void 0 : payload[key]) !== null && _payload$key !== void 0 ? _payload$key : false)) {
|
|
38553
38559
|
var _state$indexItem$key, _payload$key2;
|
|
38554
38560
|
(_state$indexItem$key = state.indexItem[key]).splice.apply(_state$indexItem$key, [0, state.indexItem[key].length].concat(toConsumableArray_toConsumableArray(((_payload$key2 = payload === null || payload === void 0 ? void 0 : payload[key]) !== null && _payload$key2 !== void 0 ? _payload$key2 : []).filter(function (v) {
|
|
38555
|
-
return v !== null && v !== undefined;
|
|
38561
|
+
return v !== '' && v !== null && v !== undefined;
|
|
38556
38562
|
}))));
|
|
38557
38563
|
} else {
|
|
38558
38564
|
if (Object.prototype.hasOwnProperty.call(state.indexItem, key)) {
|
|
@@ -38628,7 +38634,23 @@ var store_store = new vuex_esm.Store({
|
|
|
38628
38634
|
Object.assign(state.indexSetQueryResult, IndexSetQueryResult, payload !== null && payload !== void 0 ? payload : {});
|
|
38629
38635
|
},
|
|
38630
38636
|
updateIndexSetQueryResult: function updateIndexSetQueryResult(state, payload) {
|
|
38631
|
-
Object.
|
|
38637
|
+
Object.keys(payload !== null && payload !== void 0 ? payload : {}).forEach(function (key) {
|
|
38638
|
+
if (Array.isArray(payload[key]) && Array.isArray(state.indexSetQueryResult[key])) {
|
|
38639
|
+
var _state$indexSetQueryR, _payload$key4;
|
|
38640
|
+
if (Object.isFrozen(state.indexSetQueryResult[key])) {
|
|
38641
|
+
state.indexSetQueryResult[key] = undefined;
|
|
38642
|
+
(0,vue_esm.set)(state.indexSetQueryResult, key, []);
|
|
38643
|
+
} else {
|
|
38644
|
+
state.indexSetQueryResult[key].length = 0;
|
|
38645
|
+
state.indexSetQueryResult[key] = [];
|
|
38646
|
+
}
|
|
38647
|
+
(_state$indexSetQueryR = state.indexSetQueryResult[key]).push.apply(_state$indexSetQueryR, toConsumableArray_toConsumableArray(((_payload$key4 = payload[key]) !== null && _payload$key4 !== void 0 ? _payload$key4 : []).filter(function (v) {
|
|
38648
|
+
return v !== null && v !== undefined;
|
|
38649
|
+
})));
|
|
38650
|
+
} else {
|
|
38651
|
+
(0,vue_esm.set)(state.indexSetQueryResult, key, payload[key]);
|
|
38652
|
+
}
|
|
38653
|
+
});
|
|
38632
38654
|
},
|
|
38633
38655
|
updateIndexItemParams: function updateIndexItemParams(state, payload) {
|
|
38634
38656
|
var _payload$addition2;
|
|
@@ -39829,12 +39851,12 @@ var store_store = new vuex_esm.Store({
|
|
|
39829
39851
|
* @returns
|
|
39830
39852
|
*/
|
|
39831
39853
|
setQueryCondition: function setQueryCondition(_ref25, payload) {
|
|
39832
|
-
var _newQueryList$, _payload$depth, _payload$isNestedFiel;
|
|
39854
|
+
var _newQueryList$, _SEARCH_MODE_DIC$stat2, _payload$depth, _payload$isNestedFiel;
|
|
39833
39855
|
var state = _ref25.state,
|
|
39834
39856
|
dispatch = _ref25.dispatch;
|
|
39835
39857
|
var newQueryList = Array.isArray(payload) ? payload : [payload];
|
|
39836
39858
|
var isLink = (_newQueryList$ = newQueryList[0]) === null || _newQueryList$ === void 0 ? void 0 : _newQueryList$.isLink;
|
|
39837
|
-
var searchMode = state.
|
|
39859
|
+
var searchMode = (_SEARCH_MODE_DIC$stat2 = SEARCH_MODE_DIC[state.storage[BK_LOG_STORAGE.SEARCH_TYPE]]) !== null && _SEARCH_MODE_DIC$stat2 !== void 0 ? _SEARCH_MODE_DIC$stat2 : 'ui';
|
|
39838
39860
|
var depth = Number((_payload$depth = payload.depth) !== null && _payload$depth !== void 0 ? _payload$depth : '0');
|
|
39839
39861
|
var isNestedField = (_payload$isNestedFiel = payload === null || payload === void 0 ? void 0 : payload.isNestedField) !== null && _payload$isNestedFiel !== void 0 ? _payload$isNestedFiel : 'false';
|
|
39840
39862
|
var isNewSearchPage = newQueryList[0].operator === 'new-search-page-is';
|
|
@@ -40584,6 +40606,39 @@ const setPointerCellClickTargetHandler = (e, _ref) => {
|
|
|
40584
40606
|
virtualTarget.style.setProperty('top', `${y + offsetY}px`);
|
|
40585
40607
|
return virtualTarget;
|
|
40586
40608
|
};
|
|
40609
|
+
;// ./src/views/retrieve-core/static.util.ts
|
|
40610
|
+
class StaticUtil {
|
|
40611
|
+
static getRegExp(reg) {
|
|
40612
|
+
let defaultFlags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
40613
|
+
// 如果已经是 RegExp 对象,直接返回
|
|
40614
|
+
if (reg instanceof RegExp) return reg;
|
|
40615
|
+
const regString = String(reg).trim();
|
|
40616
|
+
// 判定是否为标准正则表达式字符串 /pattern/flags
|
|
40617
|
+
if (regString.startsWith('/') && regString.lastIndexOf('/') > 0) {
|
|
40618
|
+
const lastSlashIndex = regString.lastIndexOf('/');
|
|
40619
|
+
const pattern = regString.slice(1, lastSlashIndex); // 提取正则表达式的主体部分
|
|
40620
|
+
let flags = regString.slice(lastSlashIndex + 1); // 提取正则表达式的 flags(可能为空)
|
|
40621
|
+
flags = Array.from(new Set(...flags.split(''), ...(defaultFlags ?? '').split(''))).join('');
|
|
40622
|
+
// 如果 flags 中包含非法字符,直接将整个字符串作为普通字符串处理
|
|
40623
|
+
if (!/^[gimsuy]*$/.test(flags)) {
|
|
40624
|
+
return new RegExp(regString.replace(/([.*+?^${}()|[\]\\])/g, '\\$1'), defaultFlags); // 转义特殊字符
|
|
40625
|
+
}
|
|
40626
|
+
try {
|
|
40627
|
+
return new RegExp(pattern, flags); // 创建 RegExp 对象
|
|
40628
|
+
} catch (error) {
|
|
40629
|
+
console.error(`Invalid regular expression: ${regString}`, error);
|
|
40630
|
+
throw error; // 如果正则表达式无效,抛出错误
|
|
40631
|
+
}
|
|
40632
|
+
}
|
|
40633
|
+
// 如果不是标准正则表达式字符串,将字符串作为整体处理
|
|
40634
|
+
try {
|
|
40635
|
+
return new RegExp(regString.replace(/([.*+?^${}()|[\]\\])/g, '\\$1'), defaultFlags); // 转义特殊字符
|
|
40636
|
+
} catch (error) {
|
|
40637
|
+
console.error(`Invalid regular expression: ${regString}`, error);
|
|
40638
|
+
throw error; // 如果正则表达式无效,抛出错误
|
|
40639
|
+
}
|
|
40640
|
+
}
|
|
40641
|
+
}
|
|
40587
40642
|
;// ./src/views/retrieve-core/optimized-highlighter.ts
|
|
40588
40643
|
/*
|
|
40589
40644
|
* Tencent is pleased to support the open source community by making
|
|
@@ -40612,6 +40667,7 @@ const setPointerCellClickTargetHandler = (e, _ref) => {
|
|
|
40612
40667
|
*/
|
|
40613
40668
|
|
|
40614
40669
|
|
|
40670
|
+
|
|
40615
40671
|
const DEFAULT_CONFIG = {
|
|
40616
40672
|
target: document.body,
|
|
40617
40673
|
chunkStrategy: 'auto',
|
|
@@ -40646,6 +40702,12 @@ class OptimizedHighlighter {
|
|
|
40646
40702
|
currentKeywords = [];
|
|
40647
40703
|
markKeywords = [];
|
|
40648
40704
|
rootElement;
|
|
40705
|
+
// 是否区分大小写
|
|
40706
|
+
caseSensitive = false;
|
|
40707
|
+
afterMarkFn;
|
|
40708
|
+
// 正则表达式标记
|
|
40709
|
+
regExpMark = false;
|
|
40710
|
+
accuracy = 'partially';
|
|
40649
40711
|
constructor() {
|
|
40650
40712
|
let userConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
40651
40713
|
target: document.body
|
|
@@ -40654,6 +40716,44 @@ class OptimizedHighlighter {
|
|
|
40654
40716
|
this.rootElement = getTargetElement(this.config.target);
|
|
40655
40717
|
this.observer = this.createObserver();
|
|
40656
40718
|
}
|
|
40719
|
+
/**
|
|
40720
|
+
* 获取当前标记选项
|
|
40721
|
+
* @description 获取当前标记选项,包括大小写敏感、正则表达式标记和精确度
|
|
40722
|
+
* @returns
|
|
40723
|
+
*/
|
|
40724
|
+
getMarkOptions() {
|
|
40725
|
+
return {
|
|
40726
|
+
caseSensitive: this.caseSensitive,
|
|
40727
|
+
regExpMark: this.regExpMark,
|
|
40728
|
+
accuracy: this.accuracy
|
|
40729
|
+
};
|
|
40730
|
+
}
|
|
40731
|
+
/**
|
|
40732
|
+
* 设置是否区分大小写
|
|
40733
|
+
* @param caseSensitive - 是否区分大小写
|
|
40734
|
+
* @param caseSensitive
|
|
40735
|
+
*/
|
|
40736
|
+
setCaseSensitive(caseSensitive) {
|
|
40737
|
+
if (this.caseSensitive !== caseSensitive) {
|
|
40738
|
+
// 如果大小写敏感状态发生变化,重置当前关键词
|
|
40739
|
+
this.caseSensitive = caseSensitive;
|
|
40740
|
+
this.highlight(this.currentKeywords, true, this.afterMarkFn);
|
|
40741
|
+
}
|
|
40742
|
+
}
|
|
40743
|
+
setRegExpMode(regExpMark) {
|
|
40744
|
+
if (this.regExpMark !== regExpMark) {
|
|
40745
|
+
// 如果正则表达式标记状态没有变化,则不需要重新标记
|
|
40746
|
+
this.regExpMark = regExpMark;
|
|
40747
|
+
this.highlight(this.currentKeywords, true, this.afterMarkFn);
|
|
40748
|
+
}
|
|
40749
|
+
}
|
|
40750
|
+
setAccuracy(accuracy) {
|
|
40751
|
+
if (this.accuracy !== accuracy) {
|
|
40752
|
+
// 如果精确度状态没有变化,则不需要重新标记
|
|
40753
|
+
this.accuracy = accuracy;
|
|
40754
|
+
this.highlight(this.currentKeywords, true, this.afterMarkFn);
|
|
40755
|
+
}
|
|
40756
|
+
}
|
|
40657
40757
|
setObserverConfig(observerConfig) {
|
|
40658
40758
|
Object.assign(this.config.observer, observerConfig);
|
|
40659
40759
|
}
|
|
@@ -40686,6 +40786,7 @@ class OptimizedHighlighter {
|
|
|
40686
40786
|
async highlight(keywords) {
|
|
40687
40787
|
let reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
40688
40788
|
let afterMarkFn = arguments.length > 2 ? arguments[2] : undefined;
|
|
40789
|
+
this.afterMarkFn = afterMarkFn;
|
|
40689
40790
|
if (reset) {
|
|
40690
40791
|
this.resetState();
|
|
40691
40792
|
if (keywords.length === 0) {
|
|
@@ -40703,7 +40804,7 @@ class OptimizedHighlighter {
|
|
|
40703
40804
|
const chunk = this.chunkMap.get(element);
|
|
40704
40805
|
if (chunk && !chunk.highlighted && chunk.isIntersecting) {
|
|
40705
40806
|
this.instanceExecMark(chunk.instance);
|
|
40706
|
-
afterMarkFn?.();
|
|
40807
|
+
this.afterMarkFn?.();
|
|
40707
40808
|
}
|
|
40708
40809
|
});
|
|
40709
40810
|
}
|
|
@@ -40718,6 +40819,9 @@ class OptimizedHighlighter {
|
|
|
40718
40819
|
this.observer.disconnect();
|
|
40719
40820
|
this.unmarkChunks();
|
|
40720
40821
|
this.resetState();
|
|
40822
|
+
this.caseSensitive = false;
|
|
40823
|
+
this.regExpMark = false;
|
|
40824
|
+
this.accuracy = 'partially';
|
|
40721
40825
|
}
|
|
40722
40826
|
unmark() {
|
|
40723
40827
|
// 完整清理
|
|
@@ -40810,14 +40914,31 @@ class OptimizedHighlighter {
|
|
|
40810
40914
|
this.isProcessing = false;
|
|
40811
40915
|
}
|
|
40812
40916
|
instanceExecMark(instance, resolve) {
|
|
40917
|
+
if (this.regExpMark) {
|
|
40918
|
+
const regList = this.markKeywords.map(keyword => StaticUtil.getRegExp(keyword, this.caseSensitive ? 'g' : 'gi'));
|
|
40919
|
+
instance.markRegExp(regList[0], {
|
|
40920
|
+
element: 'mark',
|
|
40921
|
+
exclude: ['mark'],
|
|
40922
|
+
done: resolve ?? (() => {}),
|
|
40923
|
+
each: element => {
|
|
40924
|
+
if (element.parentElement?.classList.contains('valid-text')) {
|
|
40925
|
+
element.classList.add('valid-text');
|
|
40926
|
+
}
|
|
40927
|
+
const backgroundColor = this.getBackgroundColor(element.textContent);
|
|
40928
|
+
if (backgroundColor) {
|
|
40929
|
+
element.style.backgroundColor = backgroundColor;
|
|
40930
|
+
}
|
|
40931
|
+
}
|
|
40932
|
+
});
|
|
40933
|
+
return;
|
|
40934
|
+
}
|
|
40813
40935
|
instance.mark(this.markKeywords, {
|
|
40814
40936
|
element: 'mark',
|
|
40815
40937
|
exclude: ['mark'],
|
|
40938
|
+
caseSensitive: this.caseSensitive ?? false,
|
|
40939
|
+
accuracy: this.accuracy ?? 'partially',
|
|
40816
40940
|
done: resolve ?? (() => {}),
|
|
40817
40941
|
each: element => {
|
|
40818
|
-
if (!element.hasAttribute('data-filter-item')) {
|
|
40819
|
-
element.classList.add('data-filter-item');
|
|
40820
|
-
}
|
|
40821
40942
|
if (element.parentElement?.classList.contains('valid-text')) {
|
|
40822
40943
|
element.classList.add('valid-text');
|
|
40823
40944
|
}
|
|
@@ -41024,6 +41145,7 @@ const getRGBAColors = opacity => ['rgba(255, 235, 204, 1)', 'rgba(206, 235, 222,
|
|
|
41024
41145
|
;// ./src/views/retrieve-core/base.ts
|
|
41025
41146
|
|
|
41026
41147
|
|
|
41148
|
+
|
|
41027
41149
|
/* harmony default export */ const base = (class {
|
|
41028
41150
|
// 滚动条查询条件
|
|
41029
41151
|
globalScrollSelector;
|
|
@@ -41121,32 +41243,7 @@ const getRGBAColors = opacity => ['rgba(255, 235, 204, 1)', 'rgba(206, 235, 222,
|
|
|
41121
41243
|
});
|
|
41122
41244
|
}
|
|
41123
41245
|
getRegExp(reg) {
|
|
41124
|
-
|
|
41125
|
-
if (reg instanceof RegExp) return reg;
|
|
41126
|
-
const regString = String(reg).trim();
|
|
41127
|
-
// 判定是否为标准正则表达式字符串 /pattern/flags
|
|
41128
|
-
if (regString.startsWith('/') && regString.lastIndexOf('/') > 0) {
|
|
41129
|
-
const lastSlashIndex = regString.lastIndexOf('/');
|
|
41130
|
-
const pattern = regString.slice(1, lastSlashIndex); // 提取正则表达式的主体部分
|
|
41131
|
-
const flags = regString.slice(lastSlashIndex + 1); // 提取正则表达式的 flags(可能为空)
|
|
41132
|
-
// 如果 flags 中包含非法字符,直接将整个字符串作为普通字符串处理
|
|
41133
|
-
if (!/^[gimsuy]*$/.test(flags)) {
|
|
41134
|
-
return new RegExp(regString.replace(/([.*+?^${}()|[\]\\])/g, '\\$1')); // 转义特殊字符
|
|
41135
|
-
}
|
|
41136
|
-
try {
|
|
41137
|
-
return new RegExp(pattern, flags); // 创建 RegExp 对象
|
|
41138
|
-
} catch (error) {
|
|
41139
|
-
console.error(`Invalid regular expression: ${regString}`, error);
|
|
41140
|
-
throw error; // 如果正则表达式无效,抛出错误
|
|
41141
|
-
}
|
|
41142
|
-
}
|
|
41143
|
-
// 如果不是标准正则表达式字符串,将字符串作为整体处理
|
|
41144
|
-
try {
|
|
41145
|
-
return new RegExp(regString.replace(/([.*+?^${}()|[\]\\])/g, '\\$1')); // 转义特殊字符
|
|
41146
|
-
} catch (error) {
|
|
41147
|
-
console.error(`Invalid regular expression: ${regString}`, error);
|
|
41148
|
-
throw error; // 如果正则表达式无效,抛出错误
|
|
41149
|
-
}
|
|
41246
|
+
return StaticUtil.getRegExp(reg);
|
|
41150
41247
|
}
|
|
41151
41248
|
});
|
|
41152
41249
|
;// ./src/views/retrieve-v3/index.type.tsx
|
|
@@ -41283,6 +41380,9 @@ class RetrieveHelper extends base {
|
|
|
41283
41380
|
if (!this.markInstance) {
|
|
41284
41381
|
return;
|
|
41285
41382
|
}
|
|
41383
|
+
const {
|
|
41384
|
+
caseSensitive
|
|
41385
|
+
} = this.markInstance.getMarkOptions();
|
|
41286
41386
|
this.markInstance.setObserverConfig({
|
|
41287
41387
|
root: document.getElementById(this.logRowsContainerId)
|
|
41288
41388
|
});
|
|
@@ -41292,7 +41392,7 @@ class RetrieveHelper extends base {
|
|
|
41292
41392
|
text: keyword,
|
|
41293
41393
|
className: `highlight-${index}`,
|
|
41294
41394
|
backgroundColor: this.RGBA_LIST[index % this.RGBA_LIST.length],
|
|
41295
|
-
textReg: new RegExp(`^${keyword}
|
|
41395
|
+
textReg: new RegExp(`^${keyword}$`, caseSensitive ? '' : 'i')
|
|
41296
41396
|
};
|
|
41297
41397
|
}), reset);
|
|
41298
41398
|
}
|
|
@@ -51504,9 +51604,9 @@ let CollectIndex = class CollectIndex extends api_Component {
|
|
|
51504
51604
|
const getRouteQueryParams = () => {
|
|
51505
51605
|
const {
|
|
51506
51606
|
ids,
|
|
51507
|
-
isUnionIndex
|
|
51508
|
-
search_mode
|
|
51607
|
+
isUnionIndex
|
|
51509
51608
|
} = this.$store.state.indexItem;
|
|
51609
|
+
const search_mode = SEARCH_MODE_DIC[this.$store.state.storage[BK_LOG_STORAGE.SEARCH_TYPE]] ?? 'ui';
|
|
51510
51610
|
const unionList = this.$store.state.unionIndexList;
|
|
51511
51611
|
const clusterParams = this.$store.state.clusterParams;
|
|
51512
51612
|
const {
|
|
@@ -52432,8 +52532,8 @@ CollectIndex = __decorate([vue_class_component_esm], CollectIndex);
|
|
|
52432
52532
|
};
|
|
52433
52533
|
}
|
|
52434
52534
|
}));
|
|
52435
|
-
;// ./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/search-bar/index.vue?vue&type=template&id=
|
|
52436
|
-
var
|
|
52535
|
+
;// ./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/search-bar/index.vue?vue&type=template&id=9a10bb56&scoped=true
|
|
52536
|
+
var search_barvue_type_template_id_9a10bb56_scoped_true_render = function render() {
|
|
52437
52537
|
var _setup$activeFavorite;
|
|
52438
52538
|
var _vm = this,
|
|
52439
52539
|
_c = _vm._self._c,
|
|
@@ -52611,7 +52711,7 @@ var search_barvue_type_template_id_fbc6dcba_scoped_true_render = function render
|
|
|
52611
52711
|
}
|
|
52612
52712
|
})], 1)], 1)]), _vm._v(" "), _setup.isFilterSecFocused ? [_c(_setup.CommonFilterSelect)] : _vm._e()], 2);
|
|
52613
52713
|
};
|
|
52614
|
-
var
|
|
52714
|
+
var search_barvue_type_template_id_9a10bb56_scoped_true_staticRenderFns = [];
|
|
52615
52715
|
|
|
52616
52716
|
;// ./node_modules/vue-router/composables.mjs
|
|
52617
52717
|
/*!
|
|
@@ -87016,7 +87116,8 @@ var BookmarkPop = function BookmarkPop() {
|
|
|
87016
87116
|
return indexItem.value.addition;
|
|
87017
87117
|
});
|
|
87018
87118
|
var searchMode = (0,vue_esm.computed)(function () {
|
|
87019
|
-
|
|
87119
|
+
var _SEARCH_MODE_DIC$stor;
|
|
87120
|
+
return (_SEARCH_MODE_DIC$stor = SEARCH_MODE_DIC[store.state.storage[BK_LOG_STORAGE.SEARCH_TYPE]]) !== null && _SEARCH_MODE_DIC$stor !== void 0 ? _SEARCH_MODE_DIC$stor : 'ui';
|
|
87020
87121
|
});
|
|
87021
87122
|
var clearSearchValueNum = (0,vue_esm.computed)(function () {
|
|
87022
87123
|
return store.state.clearSearchValueNum;
|
|
@@ -87518,11 +87619,11 @@ var BookmarkPop = function BookmarkPop() {
|
|
|
87518
87619
|
|
|
87519
87620
|
var search_bar_component = normalizeComponent(
|
|
87520
87621
|
retrieve_v2_search_barvue_type_script_setup_true_lang_js,
|
|
87521
|
-
|
|
87522
|
-
|
|
87622
|
+
search_barvue_type_template_id_9a10bb56_scoped_true_render,
|
|
87623
|
+
search_barvue_type_template_id_9a10bb56_scoped_true_staticRenderFns,
|
|
87523
87624
|
false,
|
|
87524
87625
|
null,
|
|
87525
|
-
"
|
|
87626
|
+
"9a10bb56",
|
|
87526
87627
|
null
|
|
87527
87628
|
|
|
87528
87629
|
)
|
|
@@ -99321,6 +99422,7 @@ var log_result_component = normalizeComponent(
|
|
|
99321
99422
|
*/
|
|
99322
99423
|
|
|
99323
99424
|
|
|
99425
|
+
|
|
99324
99426
|
/* harmony default export */ const bklog_popover = ((0,vue_esm.defineComponent)({
|
|
99325
99427
|
props: {
|
|
99326
99428
|
options: {
|
|
@@ -99342,6 +99444,10 @@ var log_result_component = normalizeComponent(
|
|
|
99342
99444
|
beforeHide: {
|
|
99343
99445
|
type: Function,
|
|
99344
99446
|
default: () => true
|
|
99447
|
+
},
|
|
99448
|
+
content: {
|
|
99449
|
+
type: String,
|
|
99450
|
+
default: undefined
|
|
99345
99451
|
}
|
|
99346
99452
|
},
|
|
99347
99453
|
setup(props, _ref) {
|
|
@@ -99380,7 +99486,7 @@ var log_result_component = normalizeComponent(
|
|
|
99380
99486
|
args[_key] = arguments[_key];
|
|
99381
99487
|
}
|
|
99382
99488
|
props.options.onShown?.(...args);
|
|
99383
|
-
if (props.options.hideOnClick === false && !isDocumentClickBinded) {
|
|
99489
|
+
if (props.options.hideOnClick === false && props.trigger === 'click' && !isDocumentClickBinded) {
|
|
99384
99490
|
document.addEventListener('click', hanldeDocumentClick);
|
|
99385
99491
|
isDocumentClickBinded = true;
|
|
99386
99492
|
}
|
|
@@ -99390,7 +99496,7 @@ var log_result_component = normalizeComponent(
|
|
|
99390
99496
|
args[_key2] = arguments[_key2];
|
|
99391
99497
|
}
|
|
99392
99498
|
props.options.onHidden?.(...args);
|
|
99393
|
-
if (props.options.hideOnClick === false && isDocumentClickBinded) {
|
|
99499
|
+
if (props.options.hideOnClick === false && props.trigger === 'click' && isDocumentClickBinded) {
|
|
99394
99500
|
document.removeEventListener('click', hanldeDocumentClick);
|
|
99395
99501
|
isDocumentClickBinded = false;
|
|
99396
99502
|
}
|
|
@@ -99414,9 +99520,7 @@ var log_result_component = normalizeComponent(
|
|
|
99414
99520
|
instance.show(props.delegateTarget ?? refTargetElement.value);
|
|
99415
99521
|
};
|
|
99416
99522
|
const handleRootElementMouseleave = () => {
|
|
99417
|
-
|
|
99418
|
-
instance.hide(300);
|
|
99419
|
-
}
|
|
99523
|
+
instance?.hide(120);
|
|
99420
99524
|
};
|
|
99421
99525
|
const handleContentElementMouseenter = () => {
|
|
99422
99526
|
instance.cancelHide();
|
|
@@ -99475,7 +99579,7 @@ var log_result_component = normalizeComponent(
|
|
|
99475
99579
|
}, [(0,vue_esm.h)("div", {
|
|
99476
99580
|
"ref": refContentElement,
|
|
99477
99581
|
"class": props.contentClass
|
|
99478
|
-
}, [slots.content?.()])])]);
|
|
99582
|
+
}, [slots.content?.() ?? props.content])])]);
|
|
99479
99583
|
}
|
|
99480
99584
|
}));
|
|
99481
99585
|
;// ./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/search-result-panel/log-result/index.vue?vue&type=script&lang=js
|
|
@@ -101451,7 +101555,7 @@ function grepSyntaxHighlighting() {
|
|
|
101451
101555
|
// 主题样式
|
|
101452
101556
|
EditorView.theme({
|
|
101453
101557
|
'&': {
|
|
101454
|
-
fontSize: '
|
|
101558
|
+
fontSize: '12px',
|
|
101455
101559
|
height: initialHeight,
|
|
101456
101560
|
maxHeight: maxHeightForLines
|
|
101457
101561
|
},
|
|
@@ -101484,7 +101588,7 @@ function grepSyntaxHighlighting() {
|
|
|
101484
101588
|
color: '#999',
|
|
101485
101589
|
fontStyle: 'italic',
|
|
101486
101590
|
fontFamily: 'Monaco, Menlo, Ubuntu Mono, Consolas, source-code-pro, monospace',
|
|
101487
|
-
fontSize: '
|
|
101591
|
+
fontSize: '12px'
|
|
101488
101592
|
},
|
|
101489
101593
|
// 自定义滚动条样式
|
|
101490
101594
|
'.cm-scroller::-webkit-scrollbar': {
|
|
@@ -101623,10 +101727,13 @@ function grepSyntaxHighlighting() {
|
|
|
101623
101727
|
|
|
101624
101728
|
|
|
101625
101729
|
|
|
101730
|
+
|
|
101731
|
+
|
|
101626
101732
|
/* harmony default export */ const grep_cli = ((0,vue_esm.defineComponent)({
|
|
101627
101733
|
name: 'GrepCli',
|
|
101628
101734
|
components: {
|
|
101629
|
-
GrepCliEditor: grep_cli_editor
|
|
101735
|
+
GrepCliEditor: grep_cli_editor,
|
|
101736
|
+
BklogPopover: bklog_popover
|
|
101630
101737
|
},
|
|
101631
101738
|
props: {
|
|
101632
101739
|
searchCount: {
|
|
@@ -101648,6 +101755,9 @@ function grepSyntaxHighlighting() {
|
|
|
101648
101755
|
emit
|
|
101649
101756
|
} = _ref;
|
|
101650
101757
|
const route = useRoute();
|
|
101758
|
+
const {
|
|
101759
|
+
t
|
|
101760
|
+
} = use_locale();
|
|
101651
101761
|
const grepValue = (0,vue_esm.ref)(route.query.grep_query ?? '');
|
|
101652
101762
|
const isCaseSensitive = (0,vue_esm.ref)(false);
|
|
101653
101763
|
const isRegexMode = (0,vue_esm.ref)(false);
|
|
@@ -101728,7 +101838,6 @@ function grepSyntaxHighlighting() {
|
|
|
101728
101838
|
// 上一个匹配
|
|
101729
101839
|
const gotoPrevMatch = () => {
|
|
101730
101840
|
if (hasResults.value) {
|
|
101731
|
-
currentMatchIndex.value = currentMatchIndex.value > 1 ? currentMatchIndex.value - 1 : props.searchCount;
|
|
101732
101841
|
emit('search-change', {
|
|
101733
101842
|
content: grepValue.value,
|
|
101734
101843
|
searchValue: props.searchValue,
|
|
@@ -101736,15 +101845,13 @@ function grepSyntaxHighlighting() {
|
|
|
101736
101845
|
caseSensitive: isCaseSensitive.value,
|
|
101737
101846
|
regexMode: isRegexMode.value,
|
|
101738
101847
|
wordMatch: isWordMatch.value
|
|
101739
|
-
}
|
|
101740
|
-
currentIndex: currentMatchIndex.value
|
|
101848
|
+
}
|
|
101741
101849
|
});
|
|
101742
101850
|
}
|
|
101743
101851
|
};
|
|
101744
101852
|
// 下一个匹配
|
|
101745
101853
|
const gotoNextMatch = () => {
|
|
101746
101854
|
if (hasResults.value) {
|
|
101747
|
-
currentMatchIndex.value = currentMatchIndex.value < props.searchCount ? currentMatchIndex.value + 1 : 1;
|
|
101748
101855
|
emit('search-change', {
|
|
101749
101856
|
content: grepValue.value,
|
|
101750
101857
|
searchValue: props.searchValue,
|
|
@@ -101752,8 +101859,7 @@ function grepSyntaxHighlighting() {
|
|
|
101752
101859
|
caseSensitive: isCaseSensitive.value,
|
|
101753
101860
|
regexMode: isRegexMode.value,
|
|
101754
101861
|
wordMatch: isWordMatch.value
|
|
101755
|
-
}
|
|
101756
|
-
currentIndex: currentMatchIndex.value
|
|
101862
|
+
}
|
|
101757
101863
|
});
|
|
101758
101864
|
}
|
|
101759
101865
|
};
|
|
@@ -101775,9 +101881,14 @@ function grepSyntaxHighlighting() {
|
|
|
101775
101881
|
"class": 'grep-cli-container grep-cli-flex'
|
|
101776
101882
|
}, [(0,vue_esm.h)("div", {
|
|
101777
101883
|
"class": 'grep-cli-left'
|
|
101884
|
+
}, [(0,vue_esm.h)("div", {
|
|
101885
|
+
"style": {
|
|
101886
|
+
display: 'flex',
|
|
101887
|
+
width: '128px'
|
|
101888
|
+
}
|
|
101778
101889
|
}, [(0,vue_esm.h)("span", {
|
|
101779
101890
|
"class": 'grep-cli-label'
|
|
101780
|
-
}, ["
|
|
101891
|
+
}, [t('字段'), ":"]), (0,vue_esm.h)("bk-select", {
|
|
101781
101892
|
"class": 'grep-cli-select',
|
|
101782
101893
|
"attrs": {
|
|
101783
101894
|
"value": props.fieldValue,
|
|
@@ -101794,12 +101905,12 @@ function grepSyntaxHighlighting() {
|
|
|
101794
101905
|
"id": option.field_name,
|
|
101795
101906
|
"name": option.field_name
|
|
101796
101907
|
}
|
|
101797
|
-
}))]), (0,vue_esm.h)("div", {
|
|
101908
|
+
}))])]), (0,vue_esm.h)("div", {
|
|
101798
101909
|
"class": 'grep-cli-editor'
|
|
101799
101910
|
}, [(0,vue_esm.h)(grep_cli_editor, {
|
|
101800
101911
|
"attrs": {
|
|
101801
101912
|
"value": grepValue.value,
|
|
101802
|
-
"placeholder": '-- INSERT, Ctrl + Enter提交查询 --'
|
|
101913
|
+
"placeholder": `'-- INSERT, Ctrl + Enter ${t('提交查询')} --'`,
|
|
101803
101914
|
"autoHeight": true,
|
|
101804
101915
|
"minHeight": '34px',
|
|
101805
101916
|
"maxHeight": '160px'
|
|
@@ -101815,7 +101926,7 @@ function grepSyntaxHighlighting() {
|
|
|
101815
101926
|
}, [(0,vue_esm.h)("bk-input", {
|
|
101816
101927
|
"class": 'grep-cli-search-input',
|
|
101817
101928
|
"attrs": {
|
|
101818
|
-
"placeholder": '搜索',
|
|
101929
|
+
"placeholder": t('搜索'),
|
|
101819
101930
|
"value": props.searchValue,
|
|
101820
101931
|
"size": 'small'
|
|
101821
101932
|
},
|
|
@@ -101824,37 +101935,55 @@ function grepSyntaxHighlighting() {
|
|
|
101824
101935
|
}
|
|
101825
101936
|
}), (0,vue_esm.h)("div", {
|
|
101826
101937
|
"class": 'grep-cli-tools'
|
|
101938
|
+
}, [(0,vue_esm.h)(bklog_popover, {
|
|
101939
|
+
"attrs": {
|
|
101940
|
+
"trigger": 'hover',
|
|
101941
|
+
"content": t('大小写匹配'),
|
|
101942
|
+
"options": {
|
|
101943
|
+
placement: 'top',
|
|
101944
|
+
theme: 'dark'
|
|
101945
|
+
}
|
|
101946
|
+
}
|
|
101827
101947
|
}, [(0,vue_esm.h)("span", {
|
|
101828
101948
|
"class": ['grep-cli-tool-icon', 'bklog-icon', 'bklog-daxiaoxie', {
|
|
101829
101949
|
active: isCaseSensitive.value
|
|
101830
101950
|
}],
|
|
101831
|
-
"attrs": {
|
|
101832
|
-
"title": '大小写匹配'
|
|
101833
|
-
},
|
|
101834
101951
|
"on": {
|
|
101835
101952
|
"click": toggleCaseSensitive
|
|
101836
101953
|
}
|
|
101837
|
-
}), (0,vue_esm.h)(
|
|
101954
|
+
})]), (0,vue_esm.h)(bklog_popover, {
|
|
101955
|
+
"attrs": {
|
|
101956
|
+
"trigger": 'hover',
|
|
101957
|
+
"content": t('精确匹配'),
|
|
101958
|
+
"options": {
|
|
101959
|
+
placement: 'top',
|
|
101960
|
+
theme: 'dark'
|
|
101961
|
+
}
|
|
101962
|
+
}
|
|
101963
|
+
}, [(0,vue_esm.h)("span", {
|
|
101838
101964
|
"class": ['grep-cli-tool-icon', 'bklog-icon', 'bklog-ab', {
|
|
101839
|
-
active:
|
|
101965
|
+
active: isWordMatch.value
|
|
101840
101966
|
}],
|
|
101841
|
-
"attrs": {
|
|
101842
|
-
"title": '精准匹配'
|
|
101843
|
-
},
|
|
101844
101967
|
"on": {
|
|
101845
|
-
"click":
|
|
101968
|
+
"click": toggleWordMatch
|
|
101846
101969
|
}
|
|
101847
|
-
}), (0,vue_esm.h)(
|
|
101970
|
+
})]), (0,vue_esm.h)(bklog_popover, {
|
|
101971
|
+
"attrs": {
|
|
101972
|
+
"trigger": 'hover',
|
|
101973
|
+
"content": t('正则匹配'),
|
|
101974
|
+
"options": {
|
|
101975
|
+
placement: 'top',
|
|
101976
|
+
theme: 'dark'
|
|
101977
|
+
}
|
|
101978
|
+
}
|
|
101979
|
+
}, [(0,vue_esm.h)("span", {
|
|
101848
101980
|
"class": ['grep-cli-tool-icon', 'bklog-icon', 'bklog-tongpeifu', {
|
|
101849
|
-
active:
|
|
101981
|
+
active: isRegexMode.value
|
|
101850
101982
|
}],
|
|
101851
|
-
"attrs": {
|
|
101852
|
-
"title": '通配符'
|
|
101853
|
-
},
|
|
101854
101983
|
"on": {
|
|
101855
|
-
"click":
|
|
101984
|
+
"click": toggleRegexMode
|
|
101856
101985
|
}
|
|
101857
|
-
})])])])]);
|
|
101986
|
+
})])])])])]);
|
|
101858
101987
|
}
|
|
101859
101988
|
}));
|
|
101860
101989
|
;// ./src/views/retrieve-v3/grep/grep-cli-result.tsx
|
|
@@ -101938,7 +102067,7 @@ function grepSyntaxHighlighting() {
|
|
|
101938
102067
|
"class": 'cli-result-line-number'
|
|
101939
102068
|
}, [index + 1]), (0,vue_esm.h)("div", {
|
|
101940
102069
|
"class": 'cli-result-line-content-wrapper'
|
|
101941
|
-
}, [(0,vue_esm.h)(
|
|
102070
|
+
}, [(0,vue_esm.h)(text_segmentation, {
|
|
101942
102071
|
"attrs": {
|
|
101943
102072
|
"field": {
|
|
101944
102073
|
field_name: props.fieldName,
|
|
@@ -102131,12 +102260,15 @@ function grepSyntaxHighlighting() {
|
|
|
102131
102260
|
// 处理搜索更新
|
|
102132
102261
|
const handleSearchUpdate = data => {
|
|
102133
102262
|
searchValue.value = data.searchValue;
|
|
102134
|
-
matchMode.value = data.matchMode;
|
|
102263
|
+
// matchMode.value = data.matchMode;
|
|
102135
102264
|
retrieve_helper.highLightKeywords([searchValue.value], true);
|
|
102136
102265
|
};
|
|
102137
102266
|
// 处理匹配模式更新
|
|
102138
102267
|
const handleMatchModeUpdate = mode => {
|
|
102139
|
-
matchMode.value
|
|
102268
|
+
Object.assign(matchMode.value, mode);
|
|
102269
|
+
retrieve_helper.markInstance?.setCaseSensitive(matchMode.value.caseSensitive);
|
|
102270
|
+
retrieve_helper.markInstance?.setRegExpMode(matchMode.value.regexMode);
|
|
102271
|
+
retrieve_helper.markInstance?.setAccuracy(matchMode.value.wordMatch ? 'exactly' : 'partially');
|
|
102140
102272
|
retrieve_helper.highLightKeywords([searchValue.value], true);
|
|
102141
102273
|
};
|
|
102142
102274
|
const handleFieldChange = v => {
|
|
@@ -104508,16 +104640,16 @@ var sub_bar_component = normalizeComponent(
|
|
|
104508
104640
|
};
|
|
104509
104641
|
});
|
|
104510
104642
|
/**
|
|
104511
|
-
|
|
104512
|
-
|
|
104513
|
-
|
|
104514
|
-
|
|
104643
|
+
* 解析地址栏参数
|
|
104644
|
+
* 在其他模块跳转过来时,这里需要解析路由参数
|
|
104645
|
+
* 更新相关参数到store
|
|
104646
|
+
*/
|
|
104515
104647
|
const reoverRouteParams = () => {
|
|
104516
104648
|
update_URL_ARGS(route);
|
|
104517
104649
|
const routeParams = getDefaultRetrieveParams({
|
|
104518
104650
|
spaceUid: store.state.storage[BK_LOG_STORAGE.BK_SPACE_UID],
|
|
104519
104651
|
bkBizId: store.state.storage[BK_LOG_STORAGE.BK_BIZ_ID],
|
|
104520
|
-
search_mode: store.state.storage[BK_LOG_STORAGE.SEARCH_TYPE]
|
|
104652
|
+
search_mode: SEARCH_MODE_DIC[store.state.storage[BK_LOG_STORAGE.SEARCH_TYPE]] ?? 'ui'
|
|
104521
104653
|
});
|
|
104522
104654
|
let activeTab = 'single';
|
|
104523
104655
|
Object.assign(routeParams, {
|
|
@@ -104903,6 +105035,7 @@ if (!window.mainComponent?.$t) {
|
|
|
104903
105035
|
$t: language_i18n.t.bind(language_i18n),
|
|
104904
105036
|
$i18n: language_i18n
|
|
104905
105037
|
};
|
|
105038
|
+
window.$t = language_i18n.t.bind(language_i18n);
|
|
104906
105039
|
}
|
|
104907
105040
|
|
|
104908
105041
|
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@blueking/monitor-trace-log","version":"2.0.
|
|
1
|
+
{"name":"@blueking/monitor-trace-log","version":"2.0.4","description":"","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"MIT"}
|