From 3f0695d7434110bb9eae67492d972e0f4fda2bb3 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 16 Aug 2024 15:26:26 -0700 Subject: [PATCH 01/72] Updated config monitor controller --- Server/controllers/monitorController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/controllers/monitorController.js b/Server/controllers/monitorController.js index ac4e92da7..37aff6c96 100644 --- a/Server/controllers/monitorController.js +++ b/Server/controllers/monitorController.js @@ -303,7 +303,8 @@ const editMonitor = async (req, res, next) => { } try { - const monitorBeforeEdit = await req.db.getMonitorById(req, res); + const { monitorId } = req.params; + const monitorBeforeEdit = await req.db.getMonitorById(monitorId); // Get notifications from the request body const notifications = req.body.notifications; From 58a4921f64a8515eb08bb94cca27dc02823b77a8 Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Fri, 16 Aug 2024 18:38:40 -0400 Subject: [PATCH 02/72] Updated color and font weights --- Client/src/Components/BasicTable/index.css | 2 +- Client/src/Components/Charts/Servers/serverStatus.css | 5 +++-- Client/src/Components/Sidebar/index.css | 4 ++++ Client/src/Components/Sidebar/index.jsx | 2 +- Client/src/Pages/Monitors/index.css | 2 +- Client/src/Pages/Monitors/index.jsx | 2 +- Client/src/index.css | 2 +- 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Client/src/Components/BasicTable/index.css b/Client/src/Components/BasicTable/index.css index 14adc440c..629c8dd7b 100644 --- a/Client/src/Components/BasicTable/index.css +++ b/Client/src/Components/BasicTable/index.css @@ -10,7 +10,7 @@ } .MuiTable-root .host div:nth-child(2) { width: fit-content; - font-weight: 700; + font-weight: 500; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; diff --git a/Client/src/Components/Charts/Servers/serverStatus.css b/Client/src/Components/Charts/Servers/serverStatus.css index dd15e3e9b..fcbf470aa 100644 --- a/Client/src/Components/Charts/Servers/serverStatus.css +++ b/Client/src/Components/Charts/Servers/serverStatus.css @@ -22,9 +22,10 @@ .server-status-tile-title { font-size: var(--font-size-0); - font-weight: bold; + font-weight: 500; margin-bottom: calc(var(--spacing-general-1) / 2); - color: var(--env-var-color-1); + color: var(--env-var-color-5); + opacity: 0.6; } .server-status-tile-value { diff --git a/Client/src/Components/Sidebar/index.css b/Client/src/Components/Sidebar/index.css index 63c365742..36415438c 100644 --- a/Client/src/Components/Sidebar/index.css +++ b/Client/src/Components/Sidebar/index.css @@ -65,6 +65,10 @@ aside > .MuiListItemButton-root:last-child::before { height: 50%; } +aside .MuiCollapse-wrapperInner .MuiList-root svg { + width: 18px; + height: 18px; +} aside .MuiCollapse-wrapperInner .MuiList-root > .MuiListItemButton-root::after { content: ""; diff --git a/Client/src/Components/Sidebar/index.jsx b/Client/src/Components/Sidebar/index.jsx index 1ab2171cb..159b01503 100644 --- a/Client/src/Components/Sidebar/index.jsx +++ b/Client/src/Components/Sidebar/index.jsx @@ -183,7 +183,7 @@ function Sidebar() { key={child.path} onClick={() => navigate(`/${child.path}`)} sx={{ - gap: theme.gap.medium, + gap: theme.gap.small, borderRadius: `${theme.shape.borderRadius}px`, pl: theme.gap.small, }} diff --git a/Client/src/Pages/Monitors/index.css b/Client/src/Pages/Monitors/index.css index 7b40f7464..9e34ddf52 100644 --- a/Client/src/Pages/Monitors/index.css +++ b/Client/src/Pages/Monitors/index.css @@ -1,7 +1,7 @@ .monitors h1.MuiTypography-root, .monitors h2.MuiTypography-root { color: var(--env-var-color-1); - font-weight: 600; + font-weight: 500; } .monitors h1.MuiTypography-root { font-size: var(--env-var-font-size-large-plus); diff --git a/Client/src/Pages/Monitors/index.jsx b/Client/src/Pages/Monitors/index.jsx index f8efd7fa3..b80e88f5a 100644 --- a/Client/src/Pages/Monitors/index.jsx +++ b/Client/src/Pages/Monitors/index.jsx @@ -52,7 +52,7 @@ const Host = ({ params }) => { "&:focus": { outline: "none", }, - mr: "3px", + mr: "5px", }} > Date: Fri, 16 Aug 2024 19:12:58 -0400 Subject: [PATCH 03/72] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d0db36fc..838b06a6c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

An open source server monitoring application

-![1](https://github.com/user-attachments/assets/207c74a0-a494-42c5-ab8d-3d7c1e7ead8a) +![Dashboard](https://github.com/user-attachments/assets/0f92d7a3-19cf-430c-8b0f-fe13ff46c51b) BlueWave Uptime is an open source server monitoring application used to track the operational status and performance of servers and websites. It regularly checks whether a server/website is accessible and performs optimally, providing real-time alerts and reports on the monitored services' availability, downtime, and response time. From c711b75cd7e687493bdaa483dbec62c35821b66b Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 16 Aug 2024 19:30:37 -0700 Subject: [PATCH 04/72] Moved title, changed default value --- Client/src/Pages/NotFound/index.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Client/src/Pages/NotFound/index.jsx b/Client/src/Pages/NotFound/index.jsx index 113f3fd34..68120b0a3 100644 --- a/Client/src/Pages/NotFound/index.jsx +++ b/Client/src/Pages/NotFound/index.jsx @@ -11,7 +11,7 @@ import NotFoundSvg from "../../../src/assets/Images/sushi_404.svg"; * So That why we're using JavaScript default parameters instead. */ const DefaultValue = { - title: "We cannot find this page", + title: "Oh no! You dropped your sushi!", desc: "Either the URL doesn’t exist, or you don’t have access to it.", }; @@ -27,7 +27,7 @@ const DefaultValue = { * /> * * @param {Object} props - The component props. - * @param {string} [props.title="We cannot find this page"] - The title of the error page. + * @param {string} [props.title="Oh no! You dropped your sushi!"] - The title of the error page. * @param {string} [props.desc="Either the URL doesn’t exist, or you don’t have access to it."] - The description of the error page. * @returns {JSX.Element} The rendered error page component. */ @@ -37,10 +37,9 @@ const NotFound = ({ title = DefaultValue.title, desc = DefaultValue.desc }) => { return ( + 404 {title} {desc} - 404 - Oh no! You dropped your sushi!