Skip to content

Commit

Permalink
feat: 更新APM日志组件 --Story=121710031 (#4858) (#4879)
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 29596

---------

Co-authored-by: xlc <[email protected]>
Co-authored-by: 闪烁 <[email protected]>
Co-authored-by: xlc <[email protected]>
  • Loading branch information
4 people authored Jan 21, 2025
1 parent 5f736a8 commit 7a8213c
Show file tree
Hide file tree
Showing 15 changed files with 434 additions and 231 deletions.
3 changes: 2 additions & 1 deletion bklog/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"build": "cross-env MONITOR_APP=log bkmonitor-cli build --log",
"build:apm": "cross-env MONITOR_APP=apm bkmonitor-cli build --log",
"build:trace": "cross-env MONITOR_APP=trace bkmonitor-cli build --log && node ./scripts/prefix-css.js",
"analyze:apm": "bkmonitor-cli build --log -a",
"analyze:apm": "cross-env MONITOR_APP=apm bkmonitor-cli build --log -a",
"analyze:trace": "cross-env MONITOR_APP=trace bkmonitor-cli build --log -a",
"clean": "rimraf ../static/dist/*",
"analyze": "npm run clean && bkmonitor-cli build -a",
"lint": "eslint \"**/*.{js,ts,tsx}\" --fix",
Expand Down
2 changes: 1 addition & 1 deletion bklog/web/scripts/apm-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueking/monitor-apm-log",
"version": "1.0.0",
"version": "1.0.1-beta.1",
"description": "",
"main": "main.js",
"scripts": {
Expand Down
11 changes: 0 additions & 11 deletions bklog/web/scripts/link-package.json

This file was deleted.

153 changes: 114 additions & 39 deletions bklog/web/src/views/retrieve-v2/monitor/monitor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,40 @@
padding: 0 16px;
background: #f5f7fa;

&.scroll-y {
height: 100%;
overflow-x: hidden;
overflow-y: auto;
}

&.is-sticky-top {
.search-bar-wrapper {
margin-left: 0;
}

.search-result-panel {
&.flex {
.field-list-sticky {
&.is-show {
height: calc(100% - var(--offset-search-bar) - 0);

.search-field-filter-new {
.field-filter-box {
.field-filter-container-new {
height: calc(100% - var(--offset-search-bar) - 128px);
}
}
}
}
}
}
}
}


.sub-head {
position: relative;
z-index: 5;
display: flex;
align-items: center;
height: 48px;
Expand Down Expand Up @@ -41,50 +74,92 @@
}
}

.retrieve-body {
width: 100%;
// .retrieve-body {
// width: 100%;

height: calc(100% - 48px);
padding: 0;
background: #f5f7fa;
// height: calc(100% - 48px);
// padding: 0;
// background: #f5f7fa;

.retrieve-context {
height: 100%;
// .retrieve-context {
// height: 100%;

.result-row {
width: 100%;
height: 100%;
min-height: 120px;
margin-top: 8px;
background: #ffffff;
border-radius: 2px;
box-shadow: 0 2px 4px 0 #1919290d;

.search-result-panel {
height: calc(100% - 4px);

.search-result-content {
.result-table-container {
height: 100%;
margin-top: 12px;
overflow: auto;
}
// .result-row {
// width: 100%;
// height: 100%;
// min-height: 120px;
// margin-top: 8px;
// background: #ffffff;
// border-radius: 2px;
// box-shadow: 0 2px 4px 0 #1919290d;

.finger-container {
height: calc(100vh - 310px);
margin-top: 12px;
overflow: auto;
}
// .search-result-panel {
// height: calc(100% - 4px);

&.is-trend-chart-show {
.result-table-container {
height: 100%;
overflow: auto;
}
}
}
}
}
// .search-result-content {
// .result-table-container {
// height: 100%;
// margin-top: 12px;
// overflow: auto;
// }

// .finger-container {
// height: calc(100vh - 310px);
// margin-top: 12px;
// overflow: auto;
// }

// &.is-trend-chart-show {
// .result-table-container {
// height: 100%;
// overflow: auto;
// }
// }
// }
// }
// }
// }
// }
.retrieve-v2-body {
display: flex;
background-color: #fafbfd;

.retrieve-collect-index {
position: relative;
position: sticky;
top: 8px;
z-index: 3;

align-self: start;
overflow: visible;
}


.search-result-panel.flex .field-list-sticky.is-show {
height: calc(100% - var(--offset-search-bar) - 48px);
}
}

.retrieve-v2-content {
position: relative;
width: calc(100% - var(--left-width));
// padding-left: 8px;
background-color: #f4f7fa;

&::after {
position: absolute;
top: 0;
bottom: 0;
left: 0;
z-index: 1;
width: 8px;
content: '';
background-color: #f4f7fa;
}

.retrieve-tab,
.search-result-panel {
padding-left: 8px;
}
}

Expand Down
Loading

0 comments on commit 7a8213c

Please sign in to comment.