Skip to content

Commit 5c8ad76

Browse files
committed
Updated from merge.
1 parent e772a2a commit 5c8ad76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1462
-41
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run test

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"editor.formatOnPaste": true,
3+
"editor.formatOnSave": true,
4+
"editor.formatOnType": true,
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll.eslint": true
7+
}
8+
}

__tests__/MetricsTab.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* These tests do not work as enzyme is highly depricated and does not communicate with React 18
33
*/
44

5+
56
// import React from 'react';
67
// import { configure, shallow } from 'enzyme';
78
// import Adapter from 'enzyme-adapter-react-16';
@@ -12,12 +13,14 @@
1213

1314
// function shallowSetup() {
1415

16+
1517
// const props = {
1618
// runningList: [{ BlockIO: "1B/2B", ID: "6f49565a501c", CPUPerc: "20.00%", MemPerc: "0.00%", MemUsage: "5B/6B", Name: "checkpoint_nginx_1", NetIO: "3B/4B", PIDs: "0" }, { BlockIO: "3B/4B", ID: "6f49565a501c", CPUPerc: "30.00%", MemPerc: "20.00%", MemUsage: "5B/6B", Name: "checkpoint_nginx_2", NetIO: "5B/6B", PIDs: "0" }]
1719
// }
1820

1921
// const enzymeWrapper = shallow(<Metrics {...props} />);
2022

23+
2124
// return {
2225
// props,
2326
// enzymeWrapper
@@ -84,4 +87,5 @@ describe('dummy test', () => {
8487
test('dummy test', () => {
8588
expect(2 + 2).toBe(4);
8689
});
90+
8791
});

babel.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": ["@babel/plugin-transform-runtime"]
4+
}

server/controllers/userController.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ userController.checkSysAdmin = (req, res, next) => {
114114

115115
// switches role of user upon designation by system admin
116116
userController.switchUserRole = (req, res, next) => {
117-
118117
const roleMap = {
119118
'system admin': 1,
120119
admin: 2,
@@ -214,4 +213,4 @@ userController.updateEmail = (req, res, next) => {
214213
});
215214
};
216215

217-
module.exports = userController;
216+
module.exports = userController;
File renamed without changes.
File renamed without changes.

src/assets/css/running.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.chart {
2+
margin-top: 10px;
3+
}
4+
.chart-info {
5+
width: 200px;
6+
height: 110px;
7+
margin-top: 10px;
8+
margin-left: 15px;
9+
}
10+
.chart-label {
11+
display: flex;
12+
justify-content: space-evenly;
13+
flex-direction: row;
14+
}
15+
.chart-label-container {
16+
display: flex;
17+
justify-content: space-between;
18+
align-content: center;
19+
}
20+
.chart-label-text {
21+
font-size: 11px;
22+
font-weight: bold;
23+
}
24+
.cpuBox {
25+
width: 15px;
26+
height: 15px;
27+
margin-right: 2px;
28+
background-color: rgba(44, 130, 201, 1);
29+
}
30+
.memoryBox {
31+
width: 15px;
32+
height: 15px;
33+
margin-right: 2px;
34+
background-color: rgba(19, 221, 29, 1);
35+
}

src/assets/css/static.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
.fa-box-open {
2+
content: url(../svg/running.svg);
3+
width: 22px;
4+
color: black;
5+
}
6+
7+
.fa-archive {
8+
content: url(../svg/stopped.svg);
9+
width: 22px;
10+
}
11+
12+
.fa-database {
13+
content: url(../svg/images.svg);
14+
width: 22px;
15+
}
16+
17+
.fa-chart-pie {
18+
content: url(../svg/metrics.svg);
19+
width: 22px;
20+
}
21+
22+
.fa-file-upload {
23+
content: url(../svg/docker-compose.svg);
24+
width: 22px;
25+
}
26+
27+
.fa-settings {
28+
content: url(../svg/settings.svg);
29+
width: 22px;
30+
}
31+
32+
.fa-volume-history {
33+
content: url(../svg/volumehistory.svg);
34+
width: 22px;
35+
}
36+
37+
.fa-users {
38+
content: url(../svg/users.svg);
39+
width: 22px;
40+
}
41+
42+
.fa-file {
43+
content: url(../svg/document.svg);
44+
width: 70px;
45+
}
46+
47+
.fa-log {
48+
content: url(../svg/docketeer-logs.svg);
49+
width: 22px;
50+
}

0 commit comments

Comments
 (0)