Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add metric detail panel #113

Merged
merged 1 commit into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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