Skip to content

Commit

Permalink
feat: add metric detail panel (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
xigongdaEricyang authored Aug 19, 2022
1 parent 2c3b436 commit 4cc0e62
Show file tree
Hide file tree
Showing 16 changed files with 607 additions and 276 deletions.
82 changes: 0 additions & 82 deletions src/components/MachineDetail/index.less

This file was deleted.

139 changes: 0 additions & 139 deletions src/components/MachineDetail/index.tsx

This file was deleted.

1 change: 1 addition & 0 deletions src/components/MetricsFilterPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const MetricsFilterPanel = (props: IProps, ref) => {
allowClear
className={styles.metricSelect}
mode="multiple"
placeholder={intl.get('base.searchMetric')}
onChange={handleMetricsSelectChange}
style={{ minWidth: '250px', maxWidth: '500px' }}>
{
Expand Down
5 changes: 4 additions & 1 deletion src/config/locale/en-US/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"spaceChartInstance": "instance",
"spaceChartDiskname": "Disk Name",
"spaceChartMountpoint": "Mount Point",
"spaceChartDiskused": "Disk Used"
"spaceChartDiskused": "Disk Used",
"metricDetail": "Metric Detail",
"metricMonitor": "Metric Monitor",
"searchMetric": "Please Search Metric"
}
5 changes: 4 additions & 1 deletion src/config/locale/zh-CN/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"spaceChartInstance": "实例",
"spaceChartDiskname": "磁盘名称",
"spaceChartMountpoint": "挂载点",
"spaceChartDiskused": "已使用"
"spaceChartDiskused": "已使用",
"metricDetail": "指标详情",
"metricMonitor": "指标监控",
"searchMetric": "请搜索指标"
}
19 changes: 12 additions & 7 deletions src/pages/MachineDashboard/Detail/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@
justify-content: center;
}
}

>.base-line {
position: absolute;
top: 15px;
right: 24px;
}
}

@media screen and (max-width: 1960px) and (min-width: 1200px) {
Expand All @@ -111,4 +105,15 @@
height: 16px;
margin-left: 6px;
width: 16px;
}
}

.action-icons {
position: absolute;
top: 15px;
right: 24px;
display: flex;
align-items: center;
min-width: 80px;
justify-content: space-between;
}

Loading

0 comments on commit 4cc0e62

Please sign in to comment.