Skip to content

Commit d31528e

Browse files
dvaldiviabexsoft
andauthored
Uptime Icon (#1088)
Signed-off-by: Daniel Valdivia <[email protected]> Co-authored-by: Alex <[email protected]>
1 parent 8fd1e0d commit d31528e

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

portal-ui/src/icons/UptimeIcon.tsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// This file is part of MinIO Console Server
2+
// Copyright (c) 2021 MinIO, Inc.
3+
//
4+
// This program is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU Affero General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// This program is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU Affero General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU Affero General Public License
15+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
17+
import * as React from "react";
18+
import { SvgIcon, SvgIconProps } from "@material-ui/core";
19+
20+
const UptimeIcon = (props: SvgIconProps) => {
21+
return (
22+
<SvgIcon {...props}>
23+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 206.043 254.417">
24+
<path
25+
data-name="Sustracci\xF3n 3"
26+
d="M194.711 153.049H184.19c.012-.6.016-1.138.016-1.653a81.643 81.643 0 00-1.061-13.146h-64.129V60.127l25.357 11.174 44.693 33.842 4.191 33.167a52.729 52.729 0 015.316 4.4 22 22 0 013.371 3.923c.928 1.466 1.24 2.7.932 3.672-.575 1.822-3.321 2.744-8.165 2.744z"
27+
fill="#e3e3e3"
28+
/>
29+
<path
30+
data-name="Uni\xF3n 9"
31+
d="M0 151.401a102.413 102.413 0 016.553-36.173 102.779 102.779 0 0118.063-30.583 103.552 103.552 0 0112.6-12.447 103.819 103.819 0 0114.568-10.149 102.151 102.151 0 0133.875-12.207l.58-.1v22.724l-.393.088a80.116 80.116 0 00-25.221 10.222 81.119 81.119 0 00-20.129 17.684 80.667 80.667 0 00-13.328 23.446 80.291 80.291 0 00-4.822 27.494 80.772 80.772 0 0080.682 80.678 80.772 80.772 0 0080.684-80.678 80.257 80.257 0 00-4.957-27.862 80.6 80.6 0 00-13.686-23.672 81.1 81.1 0 00-20.631-17.694 79.844 79.844 0 00-25.793-9.942l-.4-.083v-22.65l.576.088a101.976 101.976 0 0134.443 11.887 104.181 104.181 0 0114.84 10.109 105.131 105.131 0 0112.836 12.477 102.82 102.82 0 0118.416 30.8 102.374 102.374 0 016.7 36.542 103.136 103.136 0 01-103.02 103.018A103.137 103.137 0 010 151.401zm103.584 9.849a9.94 9.94 0 01-1.012-.054c-4.676-.093-9.285-3.011-9.285-8.749V30.28L82.496 40.331c-8.852 8.248-22.311-4.3-13.459-12.541L96.014 2.649a10.033 10.033 0 0113.582 0l26.982 25.141c8.854 8.243-4.611 20.789-13.469 12.541L112.328 30.28v112.971h41a9 9 0 019 9 9 9 0 01-9 8.994z"
32+
/>
33+
</svg>
34+
</SvgIcon>
35+
);
36+
};
37+
38+
export default UptimeIcon;

portal-ui/src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,4 @@ export { default as FileVideoIcon } from "./FileVideoIcon";
9898

9999
export { default as ArrowRightIcon } from "./ArrowRightIcon";
100100
export { default as CalendarIcon } from "./CalendarIcon";
101+
export { default as UptimeIcon } from "./UptimeIcon";

portal-ui/src/screens/Console/Dashboard/Prometheus/utils.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
import HealIcon from "../../../../icons/HealIcon";
2828
import DiagnosticsIcon from "../../../../icons/DiagnosticsIcon";
2929
import HistoryIcon from "../../../../icons/HistoryIcon";
30+
import { UptimeIcon } from "../../../../icons";
3031

3132
const colorsMain = [
3233
"#C4D4E9",
@@ -54,7 +55,7 @@ export const panelsConfiguration: IDashboardPanel[] = [
5455
title: "Uptime",
5556
data: "N/A",
5657
type: widgetType.simpleWidget,
57-
widgetIcon: <HistoryIcon />,
58+
widgetIcon: <UptimeIcon />,
5859
labelDisplayFunction: niceDays,
5960
},
6061
{

0 commit comments

Comments
 (0)