Skip to content

Commit a585343

Browse files
committed
port to 8081
1 parent 5ae7295 commit a585343

File tree

4 files changed

+5771
-10
lines changed

4 files changed

+5771
-10
lines changed

app/containers/HealthContainer.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const HealthContainer: React.FC<HealthContainerProps> = React.memo(props => {
2222
const [healthChartsArr, setHealthChartsArr] = useState<JSX.Element[]>([]);
2323
const { category } = props;
2424
const { service } = useParams<keyof Params>() as Params;
25+
2526
useEffect(() => {
2627
const temp: JSX.Element[] = [];
2728
let counter: number = 0;
@@ -74,7 +75,9 @@ const HealthContainer: React.FC<HealthContainerProps> = React.memo(props => {
7475
// return <div>{service !== 'kafkametrics' ? healthChartsArr : []}</div>;
7576
// JJ-ADDITION
7677
return (
77-
<div>{(service !== 'kafkametrics' && service !== 'kubernetesmetrics') ? healthChartsArr : []}</div>
78+
<div>
79+
{service !== 'kafkametrics' && service !== 'kubernetesmetrics' ? healthChartsArr : []}
80+
</div>
7881
);
7982
});
8083

electron/Main.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ const createWindow = () => {
2525

2626
if (process.env.NODE_ENV === 'development') {
2727
// Development: load the application window to the port in the webpack config
28-
win.loadURL('http://localhost:8080/');
28+
win.loadURL('http://localhost:8081/');
2929
} else {
3030
// Production
3131
win.loadFile(path.resolve(__dirname, '../index.html'));
3232
}
33-
33+
3434
ipcMain.on('max', () => {
3535
if (!win.isMaximized()) win.maximize();
3636
else win.unmaximize();
@@ -45,12 +45,10 @@ const createWindow = () => {
4545
});
4646

4747
win.on('close', () => {
48-
clearGuestSettings()
49-
})
48+
clearGuestSettings();
49+
});
5050
};
5151

52-
53-
5452
// Invoke the createWindow function when Electron application loads
5553
app.on('ready', createWindow);
5654

0 commit comments

Comments
 (0)