Skip to content

Commit 0c41f92

Browse files
authored
Merge pull request #22 from hodesza/Health
2 parents ebcda7c + 29446cb commit 0c41f92

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Chronos is a comprehensive developer tool that monitors the health and web traff
7878
## Installation
7979
This is for the latest Chronos version **5.1 release and later**.
8080

81-
- Stable release: 5.1.0
82-
- LTS release: 5.0.1
81+
- Stable release: 6.1.0
82+
- LTS release: 6.1.0
8383

8484
### Pre-Installation
8585
Make sure you're running version 12.18.3 of <a href="#"><img src="./app/assets/node-logo-color.png" alt="Node" title="Node" align="center" height="20" /></a></a>, which is the most recent LTS (long-term support) version.

app/charts/SpeedChart.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ const SpeedChart = React.memo(() => {
77
const { healthData } = useContext(HealthContext);
88
const { time, cpuspeed } = healthData;
99
const yAxis = cpuspeed;
10-
console.log(time);
11-
console.log(cpuspeed);
1210
const createChart = () => {
1311
let timeArr;
1412
if (time !== undefined) {

app/components/Header.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const Header: React.FC<HeaderProps> = React.memo(function Header({ app, service,
1818
const { servicesData } = useContext(ApplicationContext);
1919
const { mode } = useContext(DashboardContext);
2020

21-
let currentMode = (mode === 'light mode')? lightAndDark.lightModeHeader : lightAndDark.darkModeHeader;
21+
let currentModeCSS = (mode === 'light mode')? lightAndDark.lightModeHeader : lightAndDark.darkModeHeader;
2222
return (
23-
<div className="microservice-header" style={currentMode}>
23+
<div className="microservice-header" style={currentModeCSS}>
2424
<h1 className="microserviceTitle">{app}</h1>
2525
<select name="microservice" value={service} onChange={e => history.replace(e.target.value)}>
2626
{servicesData.map(({ _id, microservice }: any) => (

app/containers/MainContainer.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import ApplicationContextProvider from '../context/ApplicationContext';
1818
import { DashboardContext } from '../context/DashboardContext';
1919

2020
const MainContainer = React.memo(() => {
21-
const { mode, getMode } = useContext(DashboardContext);
22-
let currentMode = (mode === 'light mode')? lightAndDark.lightModeMain : lightAndDark.darkModeMain;
21+
const { mode } = useContext(DashboardContext);
22+
let currentModeCSS = (mode === 'light mode')? lightAndDark.lightModeMain : lightAndDark.darkModeMain;
2323
return (
24-
<div className="main-container" style ={currentMode}>
24+
<div className="main-container" style ={currentModeCSS}>
2525
<div className="main-routes">
2626
<Switch>
2727
<Route exact path="/" component={Home} />

app/context/HealthContext.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const HealthContextProvider: React.FC = React.memo(({ children }) => {
4040
// if (result !== undefined) {
4141
// if (result.length !== undefined) console.log('Number of data points (health):', result.length);
4242
// }
43-
console.log(result);
4443
// Update context local state
4544
if (result && result.length) setHealthData(parseHealthData(result));
4645
});

electron/routes/data.ts

-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ ipcMain.on('healthRequest', async (message: Electron.IpcMainEvent, service: stri
126126
if (currentDatabaseType === 'MongoDB') {
127127
// Get document count
128128
let num = await HealthModelFunc(service).countDocuments({});
129-
console.log(num);
130129
// Get last 50 documents. If less than 50 documents, get all
131130
num = Math.max(num, 10);
132131
result = await HealthModelFunc(service)

0 commit comments

Comments
 (0)