Name
Ping
Uptime
@@ -42,7 +20,6 @@ const MonitorTable = ({ layout, children }) => {
MonitorTable.displayName = 'MonitorTable';
MonitorTable.propTypes = {
- layout: PropTypes.oneOf(['compact', 'list']),
children: PropTypes.node,
};
diff --git a/app/components/icons/index.jsx b/app/components/icons/index.jsx
index 93f27d9..68ddae7 100644
--- a/app/components/icons/index.jsx
+++ b/app/components/icons/index.jsx
@@ -22,6 +22,7 @@ import {
FaCheck,
FaBars,
FaTrashCan,
+ FaFilter,
} from 'react-icons/fa6';
import { IoArrowBack, IoColorPalette, IoGrid, IoReload } from 'react-icons/io5';
import { RiStackFill } from 'react-icons/ri';
@@ -38,6 +39,7 @@ export {
FaCircleCheck,
FaCog,
FaEllipsisVertical,
+ FaFilter,
FaHome,
FaPlus,
FaSignOutAlt,
diff --git a/app/components/navigation/left.scss b/app/components/navigation/left.scss
index 281a32f..282b02c 100644
--- a/app/components/navigation/left.scss
+++ b/app/components/navigation/left.scss
@@ -72,17 +72,10 @@
}
.left-actions-bottom {
- display: flex;
- justify-content: center;
- align-items: flex-end;
- gap: 20px;
+ display: none;
}
.navigation-left-top-action {
flex: 1;
}
-
- .navigation-left-signout-button {
- display: none;
- }
}
diff --git a/app/components/notifications/menu/styles.scss b/app/components/notifications/menu/styles.scss
index cc932e4..76f5165 100644
--- a/app/components/notifications/menu/styles.scss
+++ b/app/components/notifications/menu/styles.scss
@@ -27,12 +27,6 @@
display: none;
}
-@include tablet {
- #home-menu-status {
- display: none;
- }
-}
-
@include mobile {
.home-menu-buttons {
display: none;
diff --git a/app/main.jsx b/app/main.jsx
index da9e8cc..8137b2b 100644
--- a/app/main.jsx
+++ b/app/main.jsx
@@ -68,6 +68,7 @@ ReactDOM.createRoot(document.getElementById('root')).render(
} />
} />
} />
+
} />
diff --git a/app/pages/home.jsx b/app/pages/home.jsx
index 3dae015..3b940e6 100644
--- a/app/pages/home.jsx
+++ b/app/pages/home.jsx
@@ -15,6 +15,7 @@ import useContextStore from '../context';
import HomeMenu from '../components/home/menu';
import MonitorTable from '../components/home/monitor/layout/table';
import useLocalStorageContext from '../hooks/useLocalstorage';
+import MonitorCompactItem from '../components/home/monitor/layout/compact/monitor';
const Home = () => {
const {
@@ -63,7 +64,10 @@ const Home = () => {
if (layout === 'compact') {
return (
-
+
);
}
@@ -84,6 +88,20 @@ const Home = () => {
);
}
+ if (layout === 'compact') {
+ return (
+
+ setSearch(e.target.value)}
+ />
+
+ {monitorsList}
+
+ );
+ }
+
return (
{
setSearch={(e) => setSearch(e.target.value)}
/>
- {monitorsList}
+ {monitorsList}
);
};
diff --git a/app/pages/monitor.jsx b/app/pages/monitor.jsx
index c712021..d5891b2 100644
--- a/app/pages/monitor.jsx
+++ b/app/pages/monitor.jsx
@@ -12,13 +12,13 @@ import useContextStore from '../context';
import MonitorMenu from '../components/monitor/menu';
import { useParams } from 'react-router-dom';
-const Monitor = () => {
+const Monitor = ({ monitor_id }) => {
const {
globalStore: { getMonitor },
} = useContextStore();
const query = useParams();
- const monitorId = query['monitor_id'];
+ const monitorId = query['monitor_id'] || monitor_id;
const monitor = getMonitor(monitorId);
diff --git a/server/utils/config.js b/server/utils/config.js
index aa0f132..330e44c 100644
--- a/server/utils/config.js
+++ b/server/utils/config.js
@@ -30,7 +30,7 @@ class Config {
message:
'Configuration file not found. Please run "npm run setup" (or "yarn setup" or "pnpm setup") to create it.',
});
- process.exit(1);
+ return;
}
const fileData = fs.readFileSync(this.configPath);