Skip to content

Commit 814a3ae

Browse files
committed
styling changes, graphs, remove button
1 parent c9be132 commit 814a3ae

18 files changed

+88
-52
lines changed

app/charts/LatencyChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const LatencyChart = React.memo(() => {
1616
type: 'scattergl',
1717
y: yAxis,
1818
mode: 'lines',
19-
marker: { color: '#f7215b' },
19+
marker: { color: '#fc4039' },
2020
},
2121
]}
2222
layout={{

app/charts/MemoryChart.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const MemoryChart = React.memo(() => {
1515
{
1616
type: 'scattergl',
1717
fill: 'tonexty',
18-
fillcolor: '#24d3f0',
18+
fillcolor: '#fc4039',
1919
mode: 'none',
2020
y: free,
2121
name: 'Free Memory',
@@ -31,7 +31,7 @@ const MemoryChart = React.memo(() => {
3131
{
3232
type: 'scatter',
3333
fill: 'tonexty',
34-
fillcolor: '#5e84fb',
34+
fillcolor: '#3788fc',
3535
mode: 'none',
3636
y: active,
3737
name: 'Active Memory',
@@ -52,11 +52,16 @@ const MemoryChart = React.memo(() => {
5252
orientation: 'h',
5353
xanchor: 'center',
5454
x: 0.5,
55+
y: -1.0,
56+
font: {
57+
size: 9
58+
}
5559
},
5660
xaxis: {
5761
tickmode: 'linear',
5862
tick0: 0,
5963
dtick: 10,
64+
title: 'Time Elapsed (min)',
6065
},
6166
yaxis: {
6267
title: 'Bytes'

app/charts/ProcessesChart.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ProcessesChart = React.memo(() => {
1818
mode: 'markers',
1919
name: 'Running Processes',
2020
marker: {
21-
color: '#24d3f0',
21+
color: '#3788fc',
2222
size: 3,
2323
},
2424
},
@@ -28,7 +28,7 @@ const ProcessesChart = React.memo(() => {
2828
mode: 'markers',
2929
name: 'Blocked Processes',
3030
marker: {
31-
color: '#f7215b',
31+
color: '#fc4039',
3232
size: 3,
3333
},
3434
},
@@ -58,9 +58,14 @@ const ProcessesChart = React.memo(() => {
5858
orientation: 'h',
5959
xanchor: 'center',
6060
x: 0.5,
61+
y: -1.0,
62+
font: {
63+
size: 9
64+
}
6165
},
6266
xaxis: {
6367
dtick: 10,
68+
title: 'Time Elapsed (min)',
6469
},
6570
yaxis: {
6671
title: 'Number of Processes'

app/charts/RequestTypesChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const RequestTypesChart: React.FC = React.memo(() => {
4545
type: 'pie',
4646
textposition: 'inside',
4747
marker: {
48-
colors: ['#fa1a58', '#4a4eee', '#00eda0', '#00d3f2', '#9c27b0', '#ff9800'],
48+
colors: ['#fc4039', '#4b54ea', '#32b44f', '#3788fc', '#9c27b0', '#febc2c'],
4949
},
5050

5151
},

app/charts/ResponseCodesChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const ResponseCodesChart: React.FC = React.memo(() => {
6161
textposition: 'inside',
6262
domain: { y: [0, 2] },
6363
marker: {
64-
colors: ['#f7215b', '#4b54ea', '#24d3f0', '#27eba2', '#9c27b0'],
64+
colors: ['#fc4039', '#4b54ea', '#3788fc', '#32b44f', '#9c27b0'],
6565
},
6666
},
6767
]}

app/charts/RouteChart.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,17 @@ const RouteLocations = React.memo(() => {
158158
nodes: {
159159
borderWidth: 0,
160160
color: {
161-
background: '#24d3f0',
161+
background: '#3788fc',
162162
hover: {
163-
background: '#4b54ea',
163+
background: '#febc2c',
164164
},
165165
highlight: {
166-
background: '#f7215b',
166+
background: '#fc4039',
167167
}
168168
},
169169
shape: 'circle',
170170
font: {
171-
color: '#444d56',
171+
color: '#ffffff',
172172
size: 10,
173173
face: 'roboto'
174174
},

app/charts/SpeedChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const SpeedChart = React.memo(() => {
2323
type: 'scatter',
2424
mode: 'lines+markers',
2525
marker: {
26-
color: '#4b54ea'
26+
color: '#3788fc'
2727
},
2828
},
2929
]}

app/charts/TrafficChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const TrafficChart = React.memo(() => {
3232
x: [...xAxis],
3333
y: [...serverPings, 0, yAxisHeadRoom],
3434
fill: 'tozeroy',
35-
marker: { color: '#fa1a58' },
35+
marker: { color: '#fc4039' },
3636
mode: 'none',
3737
name: 'Times Server Pinged',
3838
showlegend: false,

app/components/Applications.tsx

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,14 @@ const Applications: React.FC = React.memo((props) => {
5151
height: 280,
5252
width: 280,
5353
textAlign: 'center',
54-
color: 'rgba(33, 34, 41, 1.2)',
54+
color: '#3788fc',
5555
whiteSpace: 'nowrap',
5656
backgroundColor: '#ffffff',
57-
borderRadius: 8,
57+
borderRadius: 3,
5858
border: '0',
5959
boxShadow: '0 6px 6px 0 rgba(153, 153, 153, 0.14), 0 6px 6px -2px rgba(153, 153, 153, 0.2), 0 6px 8px 0 rgba(153, 153, 153, 0.12)',
6060
'&:hover, &.Mui-focusVisible': {
61-
backgroundColor: `#ccd8e1`,
62-
color: '#ffffff',
61+
backgroundColor: `#3788fc`,
6362
},
6463
},
6564
hover: {
@@ -70,18 +69,6 @@ const Applications: React.FC = React.memo((props) => {
7069
'&:hover, &.Mui-focusVisible': { color: '#ffffff' },
7170
backgroundColor: 'transparent',
7271
},
73-
btnStyle: {
74-
position: 'relative',
75-
top: 50,
76-
margin: '0 auto',
77-
color: '#eeeeee',
78-
backgroundColor: '#ccd8e1',
79-
opacity: 1,
80-
'&:hover': {
81-
color: '#ffffff',
82-
backgroundColor: 'transparent'
83-
}
84-
},
8572
fontStyles: {
8673
fontSize: '16px',
8774
[theme.breakpoints.up('lg')]: {

app/components/Occupied.tsx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,24 +75,30 @@ const Occupied = React.memo(() => {
7575
};
7676

7777
const useStyles = makeStyles<Theme, StyleProps>(theme => ({
78+
// "+" Card Only
7879
paper: {
7980
height: 280,
8081
width: 280,
8182
textAlign: 'center',
82-
color: '#888888',
83+
color: '#3788fc',
8384
whiteSpace: 'nowrap',
8485
backgroundColor: '#ffffff',
85-
borderRadius: 8,
86+
borderRadius: 3,
8687
border: '0',
8788
boxShadow: '0 6px 6px 0 rgba(153, 153, 153, 0.14), 0 6px 6px -2px rgba(153, 153, 153, 0.2), 0 6px 8px 0 rgba(153, 153, 153, 0.12)',
8889
'&:hover, &.Mui-focusVisible': {
89-
backgroundColor: `#b5d3e9`,
90-
color: '#ffffff',
90+
backgroundColor: `#3788fc`,
91+
color: '#fff',
92+
fontWeight: 300,
9193
},
9294
},
93-
hover: {
95+
iconbutton: {
9496
boxShadow: 'none',
95-
color: 'transparent'
97+
color: 'none',
98+
'&:hover, &.Mui-focusVisible': {
99+
backgroundColor: `#3788fc`,
100+
color: '#fff',
101+
}
96102
},
97103
btnStyle: {
98104
position: 'absolute',
@@ -101,7 +107,7 @@ const Occupied = React.memo(() => {
101107
margin: '0',
102108
color: '#eeeeee',
103109
borderRadius: '0',
104-
backgroundColor: 'transparent',
110+
backgroundColor: 'none',
105111
'&:hover' : {
106112
backgroundColor: 'none'
107113
}
@@ -164,7 +170,7 @@ const Occupied = React.memo(() => {
164170
avatar={
165171
<IconButton
166172
ref={element => (delRef.current[i] = element)}
167-
className={classes.hover}
173+
className={classes.iconbutton}
168174
aria-label="Delete"
169175
onClick={event => confirmDelete(event, app[0], i)}
170176
>

0 commit comments

Comments
 (0)