Merge branch 'develop' into feat/fe/statuspage-3
This commit is contained in:
commit
3a00742d06
29 files changed
+815
-398
No files matched your search
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
Client/node_modules/
|
Client/node_modules/
|
||||||
Server/node_modules/
|
Server/node_modules/
|
||||||
*.env
|
Server/*.env
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
**(when sending your PR, only remove this line. Do not remove any lines below. Check all the items before sending your PR)**
|
||||||
|
|
||||||
## Describe your changes
|
## Describe your changes
|
||||||
|
|
||||||
Briefly describe the changes you made and their purpose.
|
Briefly describe the changes you made and their purpose.
|
||||||
@@ -8,7 +10,8 @@ Mention the issue number(s) this PR addresses (e.g., #123).
|
|||||||
|
|
||||||
## Please ensure all items are checked off before requesting a review:
|
## Please ensure all items are checked off before requesting a review:
|
||||||
|
|
||||||
- [ ] I have performed a self-review of my code.
|
- [ ] I deployed the application locally.
|
||||||
|
- [ ] I have performed a self-review and testing of my code.
|
||||||
- [ ] I have included the issue # in the PR.
|
- [ ] I have included the issue # in the PR.
|
||||||
- [ ] I have labelled the PR correctly.
|
- [ ] I have labelled the PR correctly.
|
||||||
- [ ] The issue I am working on is assigned to me.
|
- [ ] The issue I am working on is assigned to me.
|
||||||
@@ -17,5 +20,3 @@ Mention the issue number(s) this PR addresses (e.g., #123).
|
|||||||
- [ ] My PR is granular and targeted to one specific feature.
|
- [ ] My PR is granular and targeted to one specific feature.
|
||||||
- [ ] I took a screenshot or a video and attached to this PR if there is a UI change.
|
- [ ] I took a screenshot or a video and attached to this PR if there is a UI change.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Generated
+61
-61
@@ -11,9 +11,9 @@
|
|||||||
"@emotion/react": "^11.13.3",
|
"@emotion/react": "^11.13.3",
|
||||||
"@emotion/styled": "^11.13.0",
|
"@emotion/styled": "^11.13.0",
|
||||||
"@fontsource/roboto": "^5.0.13",
|
"@fontsource/roboto": "^5.0.13",
|
||||||
"@mui/icons-material": "6.2.0",
|
"@mui/icons-material": "6.2.1",
|
||||||
"@mui/lab": "6.0.0-beta.19",
|
"@mui/lab": "6.0.0-beta.20",
|
||||||
"@mui/material": "6.2.0",
|
"@mui/material": "6.2.1",
|
||||||
"@mui/x-charts": "^7.5.1",
|
"@mui/x-charts": "^7.5.1",
|
||||||
"@mui/x-data-grid": "7.23.2",
|
"@mui/x-data-grid": "7.23.2",
|
||||||
"@mui/x-date-pickers": "7.23.2",
|
"@mui/x-date-pickers": "7.23.2",
|
||||||
@@ -1074,15 +1074,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/base": {
|
"node_modules/@mui/base": {
|
||||||
"version": "5.0.0-beta.66",
|
"version": "5.0.0-beta.67",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.66.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.67.tgz",
|
||||||
"integrity": "sha512-1SzcNbtIms0o/Dx+599B6QbvR5qUMBUjwc2Gs47h1HsF7RcEFXxqaq7zrWkIWbvGctIIPx0j330oGx/SkF+UmA==",
|
"integrity": "sha512-pwjibXqBrSw1Z1fZEIhWJnMJHSvh3BLz0pZcrX/x01B/BVf6QUbFlGVV/k8KCsZ9sPzln1l8bBJ+ynIIE9LtjA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.26.0",
|
"@babel/runtime": "^7.26.0",
|
||||||
"@floating-ui/react-dom": "^2.1.1",
|
"@floating-ui/react-dom": "^2.1.1",
|
||||||
"@mui/types": "^7.2.19",
|
"@mui/types": "^7.2.20",
|
||||||
"@mui/utils": "^6.2.0",
|
"@mui/utils": "^6.2.1",
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"prop-types": "^15.8.1"
|
"prop-types": "^15.8.1"
|
||||||
@@ -1106,9 +1106,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/core-downloads-tracker": {
|
"node_modules/@mui/core-downloads-tracker": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-6.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-6.2.1.tgz",
|
||||||
"integrity": "sha512-Nn5PSkUqbDrvezpiiiYZiAbX4SFEiy3CbikUL6pWOXEUsq+L1j50OOyyUIHpaX2Hr+5V5UxTh+fPeC4nsGNhdw==",
|
"integrity": "sha512-U/8vS1+1XiHBnnRRESSG1gvr6JDHdPjrpnW6KEebkAQWBn6wrpbSF/XSZ8/vJIRXH5NyDmMHi4Ro5Q70//JKhA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
@@ -1116,9 +1116,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/icons-material": {
|
"node_modules/@mui/icons-material": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-6.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-6.2.1.tgz",
|
||||||
"integrity": "sha512-WR1EEhGOSvxAsoTSzWZBlrWFjul8wziDrII4rC3PvMBHhBYBqEc2n/0aamfFbwkH5EiYb96aqc6kYY6tB310Sw==",
|
"integrity": "sha512-bP0XtW+t5KFL+wjfQp2UctN/8CuWqF1qaxbYuCAsJhL+AzproM8gGOh2n8sNBcrjbVckzDNqaXqxdpn+OmoWug==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.26.0"
|
"@babel/runtime": "^7.26.0"
|
||||||
@@ -1131,7 +1131,7 @@
|
|||||||
"url": "https://opencollective.com/mui-org"
|
"url": "https://opencollective.com/mui-org"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@mui/material": "^6.2.0",
|
"@mui/material": "^6.2.1",
|
||||||
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||||
},
|
},
|
||||||
@@ -1142,16 +1142,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/lab": {
|
"node_modules/@mui/lab": {
|
||||||
"version": "6.0.0-beta.19",
|
"version": "6.0.0-beta.20",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/lab/-/lab-6.0.0-beta.19.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/lab/-/lab-6.0.0-beta.20.tgz",
|
||||||
"integrity": "sha512-t7iub8kjpLdA5uDGwGnNRjtGc1vYEUnDwSROjKrnYqjOlCQhBajFa8uoQtaST6jE/VEk6cxpDMnN5MalC6YpCg==",
|
"integrity": "sha512-Sg3aTrSSsfXcSHwKhnZbXmz7kUZzvXww3vO4p8U/DbMVSGJxll1GRpKNQkFLpZy2y7ZBTgKaZTbPYw4Q6UKrsA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.26.0",
|
"@babel/runtime": "^7.26.0",
|
||||||
"@mui/base": "5.0.0-beta.66",
|
"@mui/base": "5.0.0-beta.67",
|
||||||
"@mui/system": "^6.2.0",
|
"@mui/system": "^6.2.1",
|
||||||
"@mui/types": "^7.2.19",
|
"@mui/types": "^7.2.20",
|
||||||
"@mui/utils": "^6.2.0",
|
"@mui/utils": "^6.2.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"prop-types": "^15.8.1"
|
"prop-types": "^15.8.1"
|
||||||
},
|
},
|
||||||
@@ -1165,8 +1165,8 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@emotion/react": "^11.5.0",
|
"@emotion/react": "^11.5.0",
|
||||||
"@emotion/styled": "^11.3.0",
|
"@emotion/styled": "^11.3.0",
|
||||||
"@mui/material": "^6.2.0",
|
"@mui/material": "^6.2.1",
|
||||||
"@mui/material-pigment-css": "^6.2.0",
|
"@mui/material-pigment-css": "^6.2.1",
|
||||||
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||||
@@ -1187,18 +1187,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/material": {
|
"node_modules/@mui/material": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/material/-/material-6.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/material/-/material-6.2.1.tgz",
|
||||||
"integrity": "sha512-7FXXUPIyYzP02a7GvqwJ7ocmdP+FkvLvmy/uxG1TDmTlsr8nEClQp75uxiVznJqAY/jJy4d+Rj/fNWNxwidrYQ==",
|
"integrity": "sha512-7VlKGsRKsy1bOSOPaSNgpkzaL+0C7iWAVKd2KYyAvhR9fTLJtiAMpq+KuzgEh1so2mtvQERN0tZVIceWMiIesw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.26.0",
|
"@babel/runtime": "^7.26.0",
|
||||||
"@mui/core-downloads-tracker": "^6.2.0",
|
"@mui/core-downloads-tracker": "^6.2.1",
|
||||||
"@mui/system": "^6.2.0",
|
"@mui/system": "^6.2.1",
|
||||||
"@mui/types": "^7.2.19",
|
"@mui/types": "^7.2.20",
|
||||||
"@mui/utils": "^6.2.0",
|
"@mui/utils": "^6.2.1",
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
"@types/react-transition-group": "^4.4.11",
|
"@types/react-transition-group": "^4.4.12",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"csstype": "^3.1.3",
|
"csstype": "^3.1.3",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
@@ -1215,7 +1215,7 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@emotion/react": "^11.5.0",
|
"@emotion/react": "^11.5.0",
|
||||||
"@emotion/styled": "^11.3.0",
|
"@emotion/styled": "^11.3.0",
|
||||||
"@mui/material-pigment-css": "^6.2.0",
|
"@mui/material-pigment-css": "^6.2.1",
|
||||||
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
||||||
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||||
@@ -1242,13 +1242,13 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@mui/private-theming": {
|
"node_modules/@mui/private-theming": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-6.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-6.2.1.tgz",
|
||||||
"integrity": "sha512-lYd2MrVddhentF1d/cMXKnwlDjr/shbO3A2eGq22PCYUoZaqtAGZMc0U86KnJ/Sh5YzNYePqTOaaowAN8Qea8A==",
|
"integrity": "sha512-u1y0gpcfrRRxCcIdVeU5eIvkinA82Q8ft178WUNYuoFQrsOrXdlBdZlRVi+eYuUFp1iXI55Cud7sMZZtETix5Q==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.26.0",
|
"@babel/runtime": "^7.26.0",
|
||||||
"@mui/utils": "^6.2.0",
|
"@mui/utils": "^6.2.1",
|
||||||
"prop-types": "^15.8.1"
|
"prop-types": "^15.8.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -1269,9 +1269,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/styled-engine": {
|
"node_modules/@mui/styled-engine": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-6.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-6.2.1.tgz",
|
||||||
"integrity": "sha512-rV4YCu6kcCjMnHFXU/tQcL6XfYVfFVR8n3ZVNGnk2rpXnt/ctOPJsF+eUQuhkHciueLVKpI06+umr1FxWWhVmQ==",
|
"integrity": "sha512-6R3OgYw6zgCZWFYYMfxDqpGfJA78mUTOIlUDmmJlr60ogVNCrM87X0pqx5TbZ2OwUyxlJxN9qFgRr+J9H6cOBg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.26.0",
|
"@babel/runtime": "^7.26.0",
|
||||||
@@ -1303,16 +1303,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/system": {
|
"node_modules/@mui/system": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/system/-/system-6.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/system/-/system-6.2.1.tgz",
|
||||||
"integrity": "sha512-DCeqev9Cd4f4pm3O1lqSGW/DIHHBG6ZpqMX9iIAvN4asYv+pPWv2/lKov9kWk5XThhxFnGSv93SRNE1kNRRg5Q==",
|
"integrity": "sha512-0lc8CbBP4WAAF+SmGMFJI9bpIyQvW3zvwIDzLsb26FIB/4Z0pO7qGe8mkAl0RM63Vb37899qxnThhHKgAAdy6w==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.26.0",
|
"@babel/runtime": "^7.26.0",
|
||||||
"@mui/private-theming": "^6.2.0",
|
"@mui/private-theming": "^6.2.1",
|
||||||
"@mui/styled-engine": "^6.2.0",
|
"@mui/styled-engine": "^6.2.1",
|
||||||
"@mui/types": "^7.2.19",
|
"@mui/types": "^7.2.20",
|
||||||
"@mui/utils": "^6.2.0",
|
"@mui/utils": "^6.2.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"csstype": "^3.1.3",
|
"csstype": "^3.1.3",
|
||||||
"prop-types": "^15.8.1"
|
"prop-types": "^15.8.1"
|
||||||
@@ -1343,9 +1343,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/types": {
|
"node_modules/@mui/types": {
|
||||||
"version": "7.2.19",
|
"version": "7.2.20",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.19.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.20.tgz",
|
||||||
"integrity": "sha512-6XpZEM/Q3epK9RN8ENoXuygnqUQxE+siN/6rGRi2iwJPgBUR25mphYQ9ZI87plGh58YoZ5pp40bFvKYOCDJ3tA==",
|
"integrity": "sha512-straFHD7L8v05l/N5vcWk+y7eL9JF0C2mtph/y4BPm3gn2Eh61dDwDB65pa8DLss3WJfDXYC7Kx5yjP0EmXpgw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||||
@@ -1357,13 +1357,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mui/utils": {
|
"node_modules/@mui/utils": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@mui/utils/-/utils-6.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@mui/utils/-/utils-6.2.1.tgz",
|
||||||
"integrity": "sha512-77CaFJi+OIi2SjbPwCis8z5DXvE0dfx9hBz5FguZHt1VYFlWEPCWTHcMsQCahSErnfik5ebLsYK8+D+nsjGVfw==",
|
"integrity": "sha512-ubLqGIMhKUH2TF/Um+wRzYXgAooQw35th+DPemGrTpgrZHpOgcnUDIDbwsk1e8iQiuJ3mV/ErTtcQrecmlj5cg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.26.0",
|
"@babel/runtime": "^7.26.0",
|
||||||
"@mui/types": "^7.2.19",
|
"@mui/types": "^7.2.20",
|
||||||
"@types/prop-types": "^15.7.14",
|
"@types/prop-types": "^15.7.14",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
@@ -2390,9 +2390,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/react": {
|
"node_modules/@types/react": {
|
||||||
"version": "18.3.16",
|
"version": "18.3.17",
|
||||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.16.tgz",
|
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.17.tgz",
|
||||||
"integrity": "sha512-oh8AMIC4Y2ciKufU8hnKgs+ufgbA/dhPTACaZPM86AbwX9QwnFtSoPWEeRUj8fge+v6kFt78BXcDhAU1SrrAsw==",
|
"integrity": "sha512-opAQ5no6LqJNo9TqnxBKsgnkIYHozW9KSTlFVoSUJYh1Fl/sswkEoqIugRSm7tbh6pABtYjGAjW+GOS23j8qbw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/prop-types": "*",
|
"@types/prop-types": "*",
|
||||||
@@ -2410,11 +2410,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/react-transition-group": {
|
"node_modules/@types/react-transition-group": {
|
||||||
"version": "4.4.11",
|
"version": "4.4.12",
|
||||||
"resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.11.tgz",
|
"resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.12.tgz",
|
||||||
"integrity": "sha512-RM05tAniPZ5DZPzzNFP+DmrcOdD0efDUxMy3145oljWSl3x9ZV5vhme98gTxFrj2lhXvmGNnUiuDyJgY9IKkNA==",
|
"integrity": "sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "*"
|
"@types/react": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+3
-3
@@ -14,9 +14,9 @@
|
|||||||
"@emotion/react": "^11.13.3",
|
"@emotion/react": "^11.13.3",
|
||||||
"@emotion/styled": "^11.13.0",
|
"@emotion/styled": "^11.13.0",
|
||||||
"@fontsource/roboto": "^5.0.13",
|
"@fontsource/roboto": "^5.0.13",
|
||||||
"@mui/icons-material": "6.2.0",
|
"@mui/icons-material": "6.2.1",
|
||||||
"@mui/lab": "6.0.0-beta.19",
|
"@mui/lab": "6.0.0-beta.20",
|
||||||
"@mui/material": "6.2.0",
|
"@mui/material": "6.2.1",
|
||||||
"@mui/x-charts": "^7.5.1",
|
"@mui/x-charts": "^7.5.1",
|
||||||
"@mui/x-data-grid": "7.23.2",
|
"@mui/x-data-grid": "7.23.2",
|
||||||
"@mui/x-date-pickers": "7.23.2",
|
"@mui/x-date-pickers": "7.23.2",
|
||||||
|
|||||||
+3
-205
@@ -1,37 +1,8 @@
|
|||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { Routes, Route, Navigate } from "react-router-dom";
|
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { useDispatch } from "react-redux";
|
import { useDispatch } from "react-redux";
|
||||||
import "react-toastify/dist/ReactToastify.css";
|
import "react-toastify/dist/ReactToastify.css";
|
||||||
import { ToastContainer } from "react-toastify";
|
import { ToastContainer } from "react-toastify";
|
||||||
import NotFound from "./Pages/NotFound";
|
|
||||||
import Login from "./Pages/Auth/Login";
|
|
||||||
import Register from "./Pages/Auth/Register/Register";
|
|
||||||
import Account from "./Pages/Account";
|
|
||||||
import Uptime from "./Pages/Uptime/Home";
|
|
||||||
import CreateMonitor from "./Pages/Uptime/CreateUptime";
|
|
||||||
import CreateInfrastructureMonitor from "./Pages/Infrastructure/CreateMonitor";
|
|
||||||
import Incidents from "./Pages/Incidents";
|
|
||||||
import Status from "./Pages/Status";
|
|
||||||
import Integrations from "./Pages/Integrations";
|
|
||||||
import Settings from "./Pages/Settings";
|
|
||||||
import ForgotPassword from "./Pages/Auth/ForgotPassword";
|
|
||||||
import CheckEmail from "./Pages/Auth/CheckEmail";
|
|
||||||
import SetNewPassword from "./Pages/Auth/SetNewPassword";
|
|
||||||
import NewPasswordConfirmed from "./Pages/Auth/NewPasswordConfirmed";
|
|
||||||
import ProtectedRoute from "./Components/ProtectedRoute";
|
|
||||||
import UptimeDetails from "./Pages/Uptime/Details";
|
|
||||||
import AdvancedSettings from "./Pages/AdvancedSettings";
|
|
||||||
import Maintenance from "./Pages/Maintenance";
|
|
||||||
import Configure from "./Pages/Uptime/Configure";
|
|
||||||
import PageSpeed from "./Pages/PageSpeed";
|
|
||||||
import CreatePageSpeed from "./Pages/PageSpeed/CreatePageSpeed";
|
|
||||||
import CreateNewMaintenanceWindow from "./Pages/Maintenance/CreateMaintenance";
|
|
||||||
import PageSpeedDetails from "./Pages/PageSpeed/Details";
|
|
||||||
import PageSpeedConfigure from "./Pages/PageSpeed/Configure";
|
|
||||||
import HomeLayout from "./Components/Layouts/HomeLayout";
|
|
||||||
import withAdminCheck from "./Components/HOC/withAdminCheck";
|
|
||||||
import withAdminProp from "./Components/HOC/withAdminProp";
|
|
||||||
import { ThemeProvider } from "@emotion/react";
|
import { ThemeProvider } from "@emotion/react";
|
||||||
import lightTheme from "./Utils/Theme/lightTheme";
|
import lightTheme from "./Utils/Theme/lightTheme";
|
||||||
import darkTheme from "./Utils/Theme/darkTheme";
|
import darkTheme from "./Utils/Theme/darkTheme";
|
||||||
@@ -39,19 +10,10 @@ import { CssBaseline, GlobalStyles } from "@mui/material";
|
|||||||
import { getAppSettings } from "./Features/Settings/settingsSlice";
|
import { getAppSettings } from "./Features/Settings/settingsSlice";
|
||||||
import { logger } from "./Utils/Logger"; // Import the logger
|
import { logger } from "./Utils/Logger"; // Import the logger
|
||||||
import { networkService } from "./main";
|
import { networkService } from "./main";
|
||||||
import { Infrastructure } from "./Pages/Infrastructure";
|
import { Routes } from "./Routes";
|
||||||
import InfrastructureDetails from "./Pages/Infrastructure/Details";
|
|
||||||
import CreateStatus from "./Pages/Status/CreateStatus";
|
import CreateStatus from "./Pages/Status/CreateStatus";
|
||||||
function App() {
|
function App() {
|
||||||
const AdminCheckedRegister = withAdminCheck(Register);
|
|
||||||
const UptimeWithAdminProp = withAdminProp(Uptime);
|
|
||||||
const UptimeDetailsWithAdminProp = withAdminProp(UptimeDetails);
|
|
||||||
const PageSpeedWithAdminProp = withAdminProp(PageSpeed);
|
|
||||||
const PageSpeedDetailsWithAdminProp = withAdminProp(PageSpeedDetails);
|
|
||||||
const MaintenanceWithAdminProp = withAdminProp(Maintenance);
|
|
||||||
const SettingsWithAdminProp = withAdminProp(Settings);
|
|
||||||
const AdvancedSettingsWithAdminProp = withAdminProp(AdvancedSettings);
|
|
||||||
const InfrastructureDetailsWithAdminProp = withAdminProp(InfrastructureDetails);
|
|
||||||
const mode = useSelector((state) => state.ui.mode);
|
const mode = useSelector((state) => state.ui.mode);
|
||||||
const { authToken } = useSelector((state) => state.auth);
|
const { authToken } = useSelector((state) => state.auth);
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
@@ -83,171 +45,7 @@ function App() {
|
|||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/* Extract Routes to Routes */}
|
<Routes />
|
||||||
<Routes>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/"
|
|
||||||
element={<HomeLayout />}
|
|
||||||
>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/"
|
|
||||||
element={<Navigate to="/uptime" />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/uptime"
|
|
||||||
element={<ProtectedRoute Component={UptimeWithAdminProp} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/uptime/create/:monitorId?"
|
|
||||||
element={<ProtectedRoute Component={CreateMonitor} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/uptime/:monitorId/"
|
|
||||||
element={<ProtectedRoute Component={UptimeDetailsWithAdminProp} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/uptime/configure/:monitorId/"
|
|
||||||
element={<ProtectedRoute Component={Configure} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="pagespeed"
|
|
||||||
element={<ProtectedRoute Component={PageSpeedWithAdminProp} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="pagespeed/create"
|
|
||||||
element={<ProtectedRoute Component={CreatePageSpeed} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="pagespeed/:monitorId"
|
|
||||||
element={<ProtectedRoute Component={PageSpeedDetailsWithAdminProp} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="pagespeed/configure/:monitorId"
|
|
||||||
element={<ProtectedRoute Component={PageSpeedConfigure} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="infrastructure"
|
|
||||||
element={<ProtectedRoute Component={Infrastructure} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="infrastructure/create"
|
|
||||||
element={<ProtectedRoute Component={CreateInfrastructureMonitor} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="infrastructure/:monitorId"
|
|
||||||
element={<ProtectedRoute Component={InfrastructureDetailsWithAdminProp} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="incidents/:monitorId?"
|
|
||||||
element={<ProtectedRoute Component={Incidents} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="status"
|
|
||||||
element={
|
|
||||||
<ProtectedRoute
|
|
||||||
Component={Status}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="status/create"
|
|
||||||
element={
|
|
||||||
<ProtectedRoute
|
|
||||||
Component={CreateStatus}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="integrations"
|
|
||||||
element={<ProtectedRoute Component={Integrations} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="maintenance"
|
|
||||||
element={<ProtectedRoute Component={MaintenanceWithAdminProp} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/maintenance/create/:maintenanceWindowId?"
|
|
||||||
element={<CreateNewMaintenanceWindow />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="settings"
|
|
||||||
element={<ProtectedRoute Component={SettingsWithAdminProp} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="advanced-settings"
|
|
||||||
element={<ProtectedRoute Component={AdvancedSettingsWithAdminProp} />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="account/profile"
|
|
||||||
element={
|
|
||||||
<ProtectedRoute
|
|
||||||
Component={Account}
|
|
||||||
open="profile"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="account/password"
|
|
||||||
element={
|
|
||||||
<ProtectedRoute
|
|
||||||
Component={Account}
|
|
||||||
open="password"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="account/team"
|
|
||||||
element={
|
|
||||||
<ProtectedRoute
|
|
||||||
Component={Account}
|
|
||||||
open="team"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</Route>
|
|
||||||
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/login"
|
|
||||||
element={<Login />}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/register"
|
|
||||||
element={<AdminCheckedRegister />}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/register/:token"
|
|
||||||
element={<Register />}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Route
|
|
||||||
path="*"
|
|
||||||
element={<NotFound />}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Route
|
|
||||||
path="/forgot-password"
|
|
||||||
element={<ForgotPassword />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/check-email"
|
|
||||||
element={<CheckEmail />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/set-new-password/:token"
|
|
||||||
element={<SetNewPassword />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/new-password-confirmed"
|
|
||||||
element={<NewPasswordConfirmed />}
|
|
||||||
/>
|
|
||||||
</Routes>
|
|
||||||
<ToastContainer />
|
<ToastContainer />
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -2,28 +2,7 @@ import { Avatar as MuiAvatar } from "@mui/material";
|
|||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
import { useTheme } from "@emotion/react";
|
||||||
/**
|
|
||||||
* Generates a color based on the input string.
|
|
||||||
* @param {string} string - The input string to generate the color from.
|
|
||||||
* @returns {string}
|
|
||||||
*/
|
|
||||||
const stringToColor = (string) => {
|
|
||||||
let hash = 0;
|
|
||||||
let i;
|
|
||||||
for (i = 0; i < string.length; i += 1) {
|
|
||||||
hash = string.charCodeAt(i) + ((hash << 5) - hash);
|
|
||||||
}
|
|
||||||
|
|
||||||
let color = "#";
|
|
||||||
for (i = 0; i < 3; i += 1) {
|
|
||||||
const value = (hash >> (i * 8)) & 0xff;
|
|
||||||
color += `00${value.toString(16)}`.slice(-2);
|
|
||||||
}
|
|
||||||
|
|
||||||
return color;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @component
|
* @component
|
||||||
* @param {Object} props
|
* @param {Object} props
|
||||||
@@ -38,6 +17,7 @@ const stringToColor = (string) => {
|
|||||||
|
|
||||||
const Avatar = ({ src, small, sx }) => {
|
const Avatar = ({ src, small, sx }) => {
|
||||||
const { user } = useSelector((state) => state.auth);
|
const { user } = useSelector((state) => state.auth);
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
const style = small ? { width: 32, height: 32 } : { width: 64, height: 64 };
|
const style = small ? { width: 32, height: 32 } : { width: 64, height: 64 };
|
||||||
const border = small ? 1 : 3;
|
const border = small ? 1 : 3;
|
||||||
@@ -57,7 +37,7 @@ const Avatar = ({ src, small, sx }) => {
|
|||||||
fontSize: small ? "16px" : "22px",
|
fontSize: small ? "16px" : "22px",
|
||||||
color: "white",
|
color: "white",
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
backgroundColor: stringToColor(`${user?.firstName} ${user?.lastName}`),
|
backgroundColor: theme.palette.primary.main, // Same BG color as checkmate BG in sidebar
|
||||||
display: "inline-flex",
|
display: "inline-flex",
|
||||||
"&::before": {
|
"&::before": {
|
||||||
content: `""`,
|
content: `""`,
|
||||||
@@ -74,7 +54,7 @@ const Avatar = ({ src, small, sx }) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{user.firstName?.charAt(0)}
|
{user.firstName?.charAt(0)}
|
||||||
{user.lastName?.charAt(0)}
|
{user.lastName?.charAt(0) || ''}
|
||||||
</MuiAvatar>
|
</MuiAvatar>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
import { useSelector } from "react-redux";
|
|
||||||
|
|
||||||
const withAdminProp = (WrappedComponent) => {
|
|
||||||
const WithAdminProp = (props) => {
|
|
||||||
const { user } = useSelector((state) => state.auth);
|
|
||||||
const isAdmin =
|
|
||||||
(user?.role?.includes("admin") ?? false) ||
|
|
||||||
(user?.role?.includes("superadmin") ?? false);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<WrappedComponent
|
|
||||||
{...props}
|
|
||||||
isAdmin={isAdmin}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
const wrappedComponentName =
|
|
||||||
WrappedComponent.displayName || WrappedComponent.name || "Component";
|
|
||||||
WithAdminProp.displayName = `WithAdminProp(${wrappedComponentName})`;
|
|
||||||
|
|
||||||
return WithAdminProp;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default withAdminProp;
|
|
||||||
@@ -3,21 +3,20 @@ import { useSelector } from "react-redux";
|
|||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProtectedRoute is a higher-order component that wraps the `Route` component from `react-router-dom`
|
* ProtectedRoute is a wrapper component that ensures only authenticated users
|
||||||
* to create a protected route. It uses Redux to check if the user is authenticated. If the user is
|
* can access the wrapped content. It checks authentication status (e.g., from Redux or Context).
|
||||||
* authenticated, it renders the component passed to it; otherwise, it redirects the user to the login page.
|
* If the user is authenticated, it renders the children; otherwise, it redirects to the login page.
|
||||||
*
|
*
|
||||||
* @param {Object} props - The props passed to the ProtectedRoute component.
|
* @param {Object} props - The props passed to the ProtectedRoute component.
|
||||||
* @param {React.ComponentType} props.Component - The component to render if the user is authenticated.
|
* @param {React.ReactNode} props.children - The children to render if the user is authenticated.
|
||||||
* @param {Object} rest - The remaining props passed to the Route component.
|
* @returns {React.ReactElement} The children wrapped in a protected route or a redirect to the login page.
|
||||||
* @returns {React.ReactElement} A Route component that conditionally renders the passed Component or redirects to the login page.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const ProtectedRoute = ({ Component, ...rest }) => {
|
const ProtectedRoute = ({ children }) => {
|
||||||
const authState = useSelector((state) => state.auth);
|
const authState = useSelector((state) => state.auth);
|
||||||
|
|
||||||
return authState.authToken ? (
|
return authState.authToken ? (
|
||||||
<Component {...rest} />
|
children
|
||||||
) : (
|
) : (
|
||||||
<Navigate
|
<Navigate
|
||||||
to="/login"
|
to="/login"
|
||||||
@@ -27,7 +26,7 @@ const ProtectedRoute = ({ Component, ...rest }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProtectedRoute.propTypes = {
|
ProtectedRoute.propTypes = {
|
||||||
Component: PropTypes.elementType.isRequired,
|
children: PropTypes.elementType.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ProtectedRoute;
|
export default ProtectedRoute;
|
||||||
@@ -27,7 +27,6 @@ import UserSvg from "../../assets/icons/user.svg?react";
|
|||||||
import TeamSvg from "../../assets/icons/user-two.svg?react";
|
import TeamSvg from "../../assets/icons/user-two.svg?react";
|
||||||
import LogoutSvg from "../../assets/icons/logout.svg?react";
|
import LogoutSvg from "../../assets/icons/logout.svg?react";
|
||||||
import Support from "../../assets/icons/support.svg?react";
|
import Support from "../../assets/icons/support.svg?react";
|
||||||
import Dashboard from "../../assets/icons/dashboard.svg?react";
|
|
||||||
import Account from "../../assets/icons/user-edit.svg?react";
|
import Account from "../../assets/icons/user-edit.svg?react";
|
||||||
import Maintenance from "../../assets/icons/maintenance.svg?react";
|
import Maintenance from "../../assets/icons/maintenance.svg?react";
|
||||||
import Monitors from "../../assets/icons/monitors.svg?react";
|
import Monitors from "../../assets/icons/monitors.svg?react";
|
||||||
@@ -179,13 +178,7 @@ function Sidebar() {
|
|||||||
direction="row"
|
direction="row"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
gap={theme.spacing(4)}
|
gap={theme.spacing(4)}
|
||||||
onClick={() =>
|
onClick={() => navigate("/")}
|
||||||
window.open(
|
|
||||||
"https://github.com/bluewave-labs/bluewave-uptime",
|
|
||||||
"_blank",
|
|
||||||
"noreferrer"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
sx={{ cursor: "pointer" }}
|
sx={{ cursor: "pointer" }}
|
||||||
>
|
>
|
||||||
<Stack
|
<Stack
|
||||||
|
|||||||
@@ -14,10 +14,11 @@ import { useState, useEffect } from "react";
|
|||||||
import Select from "../../Components/Inputs/Select";
|
import Select from "../../Components/Inputs/Select";
|
||||||
import { advancedSettingsValidation } from "../../Validation/validation";
|
import { advancedSettingsValidation } from "../../Validation/validation";
|
||||||
import { buildErrors, hasValidationErrors } from "../../Validation/error";
|
import { buildErrors, hasValidationErrors } from "../../Validation/error";
|
||||||
|
import { useIsAdmin } from "../../Hooks/useIsAdmin";
|
||||||
|
|
||||||
const AdvancedSettings = ({ isAdmin }) => {
|
const AdvancedSettings = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
const isAdmin = useIsAdmin();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isAdmin) {
|
if (!isAdmin) {
|
||||||
navigate("/");
|
navigate("/");
|
||||||
|
|||||||
@@ -0,0 +1,95 @@
|
|||||||
|
import { useRef, useEffect } from "react";
|
||||||
|
import { Box, Button, Stack, Typography } from "@mui/material";
|
||||||
|
import { useTheme } from "@emotion/react";
|
||||||
|
import TextInput from "../../../../Components/Inputs/TextInput";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Renders the email step of the login process which includes an email field.
|
||||||
|
*
|
||||||
|
* @param {Object} props
|
||||||
|
* @param {Object} props.form - Form state object.
|
||||||
|
* @param {Object} props.errors - Object containing form validation errors.
|
||||||
|
* @param {Function} props.onSubmit - Callback function to handle form submission.
|
||||||
|
* @param {Function} props.onChange - Callback function to handle form input changes.
|
||||||
|
* @param {Function} props.onBack - Callback function to handle "Back" button click.
|
||||||
|
* @returns {JSX.Element}
|
||||||
|
*/
|
||||||
|
const EmailStep = ({ form, errors, onSubmit, onChange }) => {
|
||||||
|
const theme = useTheme();
|
||||||
|
const inputRef = useRef(null);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (inputRef.current) {
|
||||||
|
inputRef.current.focus();
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Stack
|
||||||
|
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
|
||||||
|
textAlign="center"
|
||||||
|
>
|
||||||
|
<Box>
|
||||||
|
<Typography component="h1">Log In</Typography>
|
||||||
|
<Typography>Enter your email address</Typography>
|
||||||
|
</Box>
|
||||||
|
<Box
|
||||||
|
textAlign="left"
|
||||||
|
component="form"
|
||||||
|
noValidate
|
||||||
|
spellCheck={false}
|
||||||
|
onSubmit={onSubmit}
|
||||||
|
display="grid"
|
||||||
|
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
|
||||||
|
>
|
||||||
|
<TextInput
|
||||||
|
type="email"
|
||||||
|
id="login-email-input"
|
||||||
|
label="Email"
|
||||||
|
isRequired={true}
|
||||||
|
placeholder="jordan.ellis@domain.com"
|
||||||
|
autoComplete="email"
|
||||||
|
value={form.email}
|
||||||
|
onInput={(e) => (e.target.value = e.target.value.toLowerCase())}
|
||||||
|
onChange={onChange}
|
||||||
|
error={errors.email ? true : false}
|
||||||
|
helperText={errors.email}
|
||||||
|
ref={inputRef}
|
||||||
|
/>
|
||||||
|
<Stack
|
||||||
|
direction="row"
|
||||||
|
justifyContent="flex-end"
|
||||||
|
>
|
||||||
|
<Button
|
||||||
|
variant="contained"
|
||||||
|
color="primary"
|
||||||
|
type="submit"
|
||||||
|
disabled={errors.email && true}
|
||||||
|
sx={{
|
||||||
|
width: "30%",
|
||||||
|
"&.Mui-focusVisible": {
|
||||||
|
outline: `2px solid ${theme.palette.primary.main}`,
|
||||||
|
outlineOffset: `2px`,
|
||||||
|
boxShadow: `none`,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Continue
|
||||||
|
</Button>
|
||||||
|
</Stack>
|
||||||
|
</Box>
|
||||||
|
</Stack>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
EmailStep.propTypes = {
|
||||||
|
form: PropTypes.object.isRequired,
|
||||||
|
errors: PropTypes.object.isRequired,
|
||||||
|
onSubmit: PropTypes.func.isRequired,
|
||||||
|
onChange: PropTypes.func.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default EmailStep;
|
||||||
@@ -0,0 +1,159 @@
|
|||||||
|
import { useRef, useEffect } from "react";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import { Box, Button, Stack, Typography } from "@mui/material";
|
||||||
|
import { useTheme } from "@emotion/react";
|
||||||
|
import LoadingButton from "@mui/lab/LoadingButton";
|
||||||
|
import { useSelector } from "react-redux";
|
||||||
|
import TextInput from "../../../../Components/Inputs/TextInput";
|
||||||
|
import { PasswordEndAdornment } from "../../../../Components/Inputs/TextInput/Adornments";
|
||||||
|
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Renders the password step of the login process, including a password input field.
|
||||||
|
*
|
||||||
|
* @param {Object} props
|
||||||
|
* @param {Object} props.form - Form state object.
|
||||||
|
* @param {Object} props.errors - Object containing form validation errors.
|
||||||
|
* @param {Function} props.onSubmit - Callback function to handle form submission.
|
||||||
|
* @param {Function} props.onChange - Callback function to handle form input changes.
|
||||||
|
* @param {Function} props.onBack - Callback function to handle "Back" button click.
|
||||||
|
* @returns {JSX.Element}
|
||||||
|
*/
|
||||||
|
const PasswordStep = ({ form, errors, onSubmit, onChange, onBack }) => {
|
||||||
|
const theme = useTheme();
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const inputRef = useRef(null);
|
||||||
|
const authState = useSelector((state) => state.auth);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (inputRef.current) {
|
||||||
|
inputRef.current.focus();
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const handleNavigate = () => {
|
||||||
|
if (form.email !== "" && !errors.email) {
|
||||||
|
sessionStorage.setItem("email", form.email);
|
||||||
|
}
|
||||||
|
navigate("/forgot-password");
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Stack
|
||||||
|
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
|
||||||
|
position="relative"
|
||||||
|
textAlign="center"
|
||||||
|
>
|
||||||
|
<Box>
|
||||||
|
<Typography component="h1">Log In</Typography>
|
||||||
|
<Typography>Enter your password</Typography>
|
||||||
|
</Box>
|
||||||
|
<Box
|
||||||
|
component="form"
|
||||||
|
noValidate
|
||||||
|
spellCheck={false}
|
||||||
|
onSubmit={onSubmit}
|
||||||
|
textAlign="left"
|
||||||
|
mb={theme.spacing(5)}
|
||||||
|
sx={{
|
||||||
|
display: "grid",
|
||||||
|
gap: { xs: theme.spacing(12), sm: theme.spacing(16) },
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<TextInput
|
||||||
|
type="password"
|
||||||
|
id="login-password-input"
|
||||||
|
label="Password"
|
||||||
|
isRequired={true}
|
||||||
|
placeholder="••••••••••"
|
||||||
|
autoComplete="current-password"
|
||||||
|
value={form.password}
|
||||||
|
onChange={onChange}
|
||||||
|
error={errors.password ? true : false}
|
||||||
|
helperText={errors.password}
|
||||||
|
ref={inputRef}
|
||||||
|
endAdornment={<PasswordEndAdornment />}
|
||||||
|
/>
|
||||||
|
<Stack
|
||||||
|
direction="row"
|
||||||
|
justifyContent="space-between"
|
||||||
|
>
|
||||||
|
<Button
|
||||||
|
variant="outlined"
|
||||||
|
color="info"
|
||||||
|
onClick={onBack}
|
||||||
|
sx={{
|
||||||
|
px: theme.spacing(5),
|
||||||
|
"& svg.MuiSvgIcon-root": {
|
||||||
|
mr: theme.spacing(3),
|
||||||
|
},
|
||||||
|
"&:focus-visible": {
|
||||||
|
outline: `2px solid ${theme.palette.primary.main}`,
|
||||||
|
outlineOffset: `2px`,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<ArrowBackRoundedIcon />
|
||||||
|
Back
|
||||||
|
</Button>
|
||||||
|
<LoadingButton
|
||||||
|
variant="contained"
|
||||||
|
color="primary"
|
||||||
|
type="submit"
|
||||||
|
loading={authState.isLoading}
|
||||||
|
disabled={errors.password && true}
|
||||||
|
sx={{
|
||||||
|
width: "30%",
|
||||||
|
"&.Mui-focusVisible": {
|
||||||
|
outline: `2px solid ${theme.palette.primary.main}`,
|
||||||
|
outlineOffset: `2px`,
|
||||||
|
boxShadow: `none`,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Continue
|
||||||
|
</LoadingButton>
|
||||||
|
</Stack>
|
||||||
|
</Box>
|
||||||
|
<Box
|
||||||
|
textAlign="center"
|
||||||
|
sx={{
|
||||||
|
position: "absolute",
|
||||||
|
bottom: 0,
|
||||||
|
left: "50%",
|
||||||
|
transform: `translate(-50%, 150%)`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Typography
|
||||||
|
className="forgot-p"
|
||||||
|
display="inline-block"
|
||||||
|
color={theme.palette.primary.main}
|
||||||
|
>
|
||||||
|
Forgot password?
|
||||||
|
</Typography>
|
||||||
|
<Typography
|
||||||
|
component="span"
|
||||||
|
color={theme.palette.primary.main}
|
||||||
|
ml={theme.spacing(2)}
|
||||||
|
sx={{ userSelect: "none" }}
|
||||||
|
onClick={handleNavigate}
|
||||||
|
>
|
||||||
|
Reset password
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
|
</Stack>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
PasswordStep.propTypes = {
|
||||||
|
form: PropTypes.object.isRequired,
|
||||||
|
errors: PropTypes.object.isRequired,
|
||||||
|
onSubmit: PropTypes.func.isRequired,
|
||||||
|
onChange: PropTypes.func.isRequired,
|
||||||
|
onBack: PropTypes.func.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default PasswordStep
|
||||||
@@ -0,0 +1,213 @@
|
|||||||
|
import { useState, useEffect } from "react";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import { Box, Stack, Typography } from "@mui/material";
|
||||||
|
import { useTheme } from "@emotion/react";
|
||||||
|
import { credentials } from "../../../Validation/validation";
|
||||||
|
import { login } from "../../../Features/Auth/authSlice";
|
||||||
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
|
import { createToast } from "../../../Utils/toastUtils";
|
||||||
|
import { networkService } from "../../../main";
|
||||||
|
import Background from "../../../assets/Images/background-grid.svg?react";
|
||||||
|
import Logo from "../../../assets/icons/bwu-icon.svg?react";
|
||||||
|
import { logger } from "../../../Utils/Logger";
|
||||||
|
import "../index.css";
|
||||||
|
import EmailStep from "./Components/EmailStep";
|
||||||
|
import PasswordStep from "./Components/PasswordStep";
|
||||||
|
|
||||||
|
const DEMO = import.meta.env.VITE_APP_DEMO;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays the login page.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const Login = () => {
|
||||||
|
const dispatch = useDispatch();
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
|
const authState = useSelector((state) => state.auth);
|
||||||
|
const { authToken } = authState;
|
||||||
|
|
||||||
|
const idMap = {
|
||||||
|
"login-email-input": "email",
|
||||||
|
"login-password-input": "password",
|
||||||
|
};
|
||||||
|
|
||||||
|
const [form, setForm] = useState({
|
||||||
|
email: DEMO !== undefined ? "uptimedemo@demo.com" : "",
|
||||||
|
password: DEMO !== undefined ? "Demouser1!" : "",
|
||||||
|
});
|
||||||
|
const [errors, setErrors] = useState({});
|
||||||
|
const [step, setStep] = useState(0);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (authToken) {
|
||||||
|
navigate("/monitors");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
networkService
|
||||||
|
.doesSuperAdminExist()
|
||||||
|
.then((response) => {
|
||||||
|
if (response.data.data === false) {
|
||||||
|
navigate("/register");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
logger.error(error);
|
||||||
|
});
|
||||||
|
}, [authToken, navigate]);
|
||||||
|
|
||||||
|
const handleChange = (event) => {
|
||||||
|
const { value, id } = event.target;
|
||||||
|
const name = idMap[id];
|
||||||
|
setForm((prev) => ({
|
||||||
|
...prev,
|
||||||
|
[name]: value,
|
||||||
|
}));
|
||||||
|
|
||||||
|
const { error } = credentials.validate({ [name]: value }, { abortEarly: false });
|
||||||
|
|
||||||
|
setErrors((prev) => {
|
||||||
|
const prevErrors = { ...prev };
|
||||||
|
if (error) prevErrors[name] = error.details[0].message;
|
||||||
|
else delete prevErrors[name];
|
||||||
|
return prevErrors;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleSubmit = async (event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
if (step === 0) {
|
||||||
|
const { error } = credentials.validate(
|
||||||
|
{ email: form.email },
|
||||||
|
{ abortEarly: false }
|
||||||
|
);
|
||||||
|
if (error) {
|
||||||
|
setErrors((prev) => ({ ...prev, email: error.details[0].message }));
|
||||||
|
createToast({ body: error.details[0].message });
|
||||||
|
} else {
|
||||||
|
setStep(1);
|
||||||
|
}
|
||||||
|
} else if (step === 1) {
|
||||||
|
const { error } = credentials.validate(form, { abortEarly: false });
|
||||||
|
|
||||||
|
if (error) {
|
||||||
|
// validation errors
|
||||||
|
const newErrors = {};
|
||||||
|
error.details.forEach((err) => {
|
||||||
|
newErrors[err.path[0]] = err.message;
|
||||||
|
});
|
||||||
|
setErrors(newErrors);
|
||||||
|
createToast({
|
||||||
|
body:
|
||||||
|
error.details && error.details.length > 0
|
||||||
|
? error.details[0].message
|
||||||
|
: "Error validating data.",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
const action = await dispatch(login(form));
|
||||||
|
if (action.payload.success) {
|
||||||
|
navigate("/monitors");
|
||||||
|
createToast({
|
||||||
|
body: "Welcome back! You're successfully logged in.",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
if (action.payload) {
|
||||||
|
if (action.payload.msg === "Incorrect password")
|
||||||
|
setErrors({
|
||||||
|
password: "The password you provided does not match our records",
|
||||||
|
});
|
||||||
|
// dispatch errors
|
||||||
|
createToast({
|
||||||
|
body: action.payload.msg,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// unknown errors
|
||||||
|
createToast({
|
||||||
|
body: "Unknown error.",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Stack
|
||||||
|
className="login-page auth"
|
||||||
|
overflow="hidden"
|
||||||
|
sx={{
|
||||||
|
"& h1": {
|
||||||
|
color: theme.palette.primary.main,
|
||||||
|
fontWeight: 600,
|
||||||
|
fontSize: 28,
|
||||||
|
},
|
||||||
|
"& p": { fontSize: 14, color: theme.palette.text.accent },
|
||||||
|
"& span": { fontSize: "inherit" },
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Box
|
||||||
|
className="background-pattern-svg"
|
||||||
|
sx={{
|
||||||
|
"& svg g g:last-of-type path": {
|
||||||
|
stroke: theme.palette.border.light,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Background style={{ width: "100%" }} />
|
||||||
|
</Box>
|
||||||
|
<Stack
|
||||||
|
direction="row"
|
||||||
|
alignItems="center"
|
||||||
|
px={theme.spacing(12)}
|
||||||
|
gap={theme.spacing(4)}
|
||||||
|
>
|
||||||
|
<Logo style={{ borderRadius: theme.shape.borderRadius }} />
|
||||||
|
<Typography sx={{ userSelect: "none" }}>BlueWave Uptime</Typography>
|
||||||
|
</Stack>
|
||||||
|
<Stack
|
||||||
|
width="100%"
|
||||||
|
maxWidth={600}
|
||||||
|
flex={1}
|
||||||
|
justifyContent="center"
|
||||||
|
px={{ xs: theme.spacing(12), lg: theme.spacing(20) }}
|
||||||
|
pb={theme.spacing(20)}
|
||||||
|
mx="auto"
|
||||||
|
sx={{
|
||||||
|
"& > .MuiStack-root": {
|
||||||
|
border: 1,
|
||||||
|
borderRadius: theme.spacing(5),
|
||||||
|
borderColor: theme.palette.border.light,
|
||||||
|
backgroundColor: theme.palette.background.main,
|
||||||
|
padding: {
|
||||||
|
xs: theme.spacing(12),
|
||||||
|
sm: theme.spacing(20),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{step === 0 ? (
|
||||||
|
<EmailStep
|
||||||
|
form={form}
|
||||||
|
errors={errors}
|
||||||
|
onSubmit={handleSubmit}
|
||||||
|
onChange={handleChange}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
step === 1 && (
|
||||||
|
<PasswordStep
|
||||||
|
form={form}
|
||||||
|
errors={errors}
|
||||||
|
onSubmit={handleSubmit}
|
||||||
|
onChange={handleChange}
|
||||||
|
onBack={() => setStep(0)}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
)}
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Login;
|
||||||
@@ -21,8 +21,7 @@ const Empty = ({ styles }) => {
|
|||||||
textAlign="center"
|
textAlign="center"
|
||||||
color={theme.palette.text.secondary}
|
color={theme.palette.text.secondary}
|
||||||
>
|
>
|
||||||
Hang tight! When we receive data, we'll show it here. Please check back in a few
|
Hang tight! Data is loading
|
||||||
minutes.
|
|
||||||
</Typography>
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -8,13 +8,14 @@ import { useSelector } from "react-redux";
|
|||||||
import { networkService } from "../../main";
|
import { networkService } from "../../main";
|
||||||
import Breadcrumbs from "../../Components/Breadcrumbs";
|
import Breadcrumbs from "../../Components/Breadcrumbs";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import { useIsAdmin } from "../../Hooks/useIsAdmin";
|
||||||
|
|
||||||
const Maintenance = ({ isAdmin }) => {
|
const Maintenance = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { authToken } = useSelector((state) => state.auth);
|
const { authToken } = useSelector((state) => state.auth);
|
||||||
const { rowsPerPage } = useSelector((state) => state.ui.maintenance);
|
const { rowsPerPage } = useSelector((state) => state.ui.maintenance);
|
||||||
|
const isAdmin = useIsAdmin();
|
||||||
const [maintenanceWindows, setMaintenanceWindows] = useState([]);
|
const [maintenanceWindows, setMaintenanceWindows] = useState([]);
|
||||||
const [maintenanceWindowCount, setMaintenanceWindowCount] = useState(0);
|
const [maintenanceWindowCount, setMaintenanceWindowCount] = useState(0);
|
||||||
const [page, setPage] = useState(0);
|
const [page, setPage] = useState(0);
|
||||||
@@ -99,7 +100,7 @@ const Maintenance = ({ isAdmin }) => {
|
|||||||
"Stop sending alerts in maintenance windows",
|
"Stop sending alerts in maintenance windows",
|
||||||
]}
|
]}
|
||||||
link="/maintenance/create"
|
link="/maintenance/create"
|
||||||
isAdmin={true}
|
isAdmin={isAdmin}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -135,6 +135,8 @@ const PageSpeedConfigure = () => {
|
|||||||
if (pausePageSpeed.fulfilled.match(action)) {
|
if (pausePageSpeed.fulfilled.match(action)) {
|
||||||
const monitor = action.payload.data;
|
const monitor = action.payload.data;
|
||||||
setMonitor(monitor);
|
setMonitor(monitor);
|
||||||
|
const state = action?.payload?.data.isActive === false ? "paused" : "resumed";
|
||||||
|
createToast({ body: `Monitor ${state} successfully.` });
|
||||||
} else if (pausePageSpeed.rejected.match(action)) {
|
} else if (pausePageSpeed.rejected.match(action)) {
|
||||||
throw new Error(action.error.message);
|
throw new Error(action.error.message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,10 +21,12 @@ import Checkbox from "../../../Components/Inputs/Checkbox";
|
|||||||
import PieChart from "./Charts/PieChart";
|
import PieChart from "./Charts/PieChart";
|
||||||
import useUtils from "../../Uptime/utils";
|
import useUtils from "../../Uptime/utils";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
|
||||||
|
|
||||||
const PageSpeedDetails = ({ isAdmin }) => {
|
const PageSpeedDetails = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
const isAdmin = useIsAdmin();
|
||||||
const { statusColor, pagespeedStatusMsg, determineState } = useUtils();
|
const { statusColor, pagespeedStatusMsg, determineState } = useUtils();
|
||||||
const [monitor, setMonitor] = useState({});
|
const [monitor, setMonitor] = useState({});
|
||||||
const [audits, setAudits] = useState({});
|
const [audits, setAudits] = useState({});
|
||||||
|
|||||||
@@ -12,11 +12,12 @@ import SkeletonLayout from "./skeleton";
|
|||||||
import Card from "./card";
|
import Card from "./card";
|
||||||
import { networkService } from "../../main";
|
import { networkService } from "../../main";
|
||||||
import { Heading } from "../../Components/Heading";
|
import { Heading } from "../../Components/Heading";
|
||||||
const PageSpeed = ({ isAdmin }) => {
|
import { useIsAdmin } from "../../Hooks/useIsAdmin";
|
||||||
|
const PageSpeed = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
const isAdmin = useIsAdmin();
|
||||||
const { user, authToken } = useSelector((state) => state.auth);
|
const { user, authToken } = useSelector((state) => state.auth);
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
const [monitors, setMonitors] = useState([]);
|
const [monitors, setMonitors] = useState([]);
|
||||||
|
|||||||
@@ -23,11 +23,13 @@ import { networkService } from "../../main";
|
|||||||
import { settingsValidation } from "../../Validation/validation";
|
import { settingsValidation } from "../../Validation/validation";
|
||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
import Dialog from "../../Components/Dialog";
|
import Dialog from "../../Components/Dialog";
|
||||||
|
import { useIsAdmin } from "../../Hooks/useIsAdmin";
|
||||||
|
|
||||||
const SECONDS_PER_DAY = 86400;
|
const SECONDS_PER_DAY = 86400;
|
||||||
|
|
||||||
const Settings = ({ isAdmin }) => {
|
const Settings = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
const isAdmin = useIsAdmin();
|
||||||
const { user, authToken } = useSelector((state) => state.auth);
|
const { user, authToken } = useSelector((state) => state.auth);
|
||||||
const { checkTTL } = user;
|
const { checkTTL } = user;
|
||||||
const { isLoading } = useSelector((state) => state.uptimeMonitors);
|
const { isLoading } = useSelector((state) => state.uptimeMonitors);
|
||||||
|
|||||||
@@ -141,6 +141,8 @@ const Configure = () => {
|
|||||||
if (pauseUptimeMonitor.fulfilled.match(action)) {
|
if (pauseUptimeMonitor.fulfilled.match(action)) {
|
||||||
const monitor = action.payload.data;
|
const monitor = action.payload.data;
|
||||||
setMonitor(monitor);
|
setMonitor(monitor);
|
||||||
|
const state = action?.payload?.data.isActive === false ? "paused" : "resumed";
|
||||||
|
createToast({ body: `Monitor ${state} successfully.` });
|
||||||
} else if (pauseUptimeMonitor.rejected.match(action)) {
|
} else if (pauseUptimeMonitor.rejected.match(action)) {
|
||||||
throw new Error(action.error.message);
|
throw new Error(action.error.message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,14 +32,16 @@ import SkeletonLayout from "./skeleton";
|
|||||||
import "./index.css";
|
import "./index.css";
|
||||||
import useUtils from "../utils";
|
import useUtils from "../utils";
|
||||||
import { formatDateWithTz } from "../../../Utils/timeUtils";
|
import { formatDateWithTz } from "../../../Utils/timeUtils";
|
||||||
|
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Details page component displaying monitor details and related information.
|
* Details page component displaying monitor details and related information.
|
||||||
* @component
|
* @component
|
||||||
*/
|
*/
|
||||||
const DetailsPage = ({ isAdmin }) => {
|
const DetailsPage = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { statusColor, statusStyles, statusMsg, determineState } = useUtils();
|
const { statusColor, statusStyles, statusMsg, determineState } = useUtils();
|
||||||
|
const isAdmin = useIsAdmin();
|
||||||
const [monitor, setMonitor] = useState({});
|
const [monitor, setMonitor] = useState({});
|
||||||
const { monitorId } = useParams();
|
const { monitorId } = useParams();
|
||||||
const { authToken } = useSelector((state) => state.auth);
|
const { authToken } = useSelector((state) => state.auth);
|
||||||
|
|||||||
@@ -12,12 +12,14 @@ import StatusBox from "./StatusBox";
|
|||||||
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
import Breadcrumbs from "../../../Components/Breadcrumbs";
|
||||||
import Greeting from "../../../Utils/greeting";
|
import Greeting from "../../../Utils/greeting";
|
||||||
import { CurrentMonitoring } from "./CurrentMonitoring";
|
import { CurrentMonitoring } from "./CurrentMonitoring";
|
||||||
|
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
|
||||||
|
|
||||||
const BREADCRUMBS = [{ name: `Uptime`, path: "/uptime" }];
|
const BREADCRUMBS = [{ name: `Uptime`, path: "/uptime" }];
|
||||||
|
|
||||||
const UptimeMonitors = ({ isAdmin }) => {
|
const UptimeMonitors = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
const isAdmin = useIsAdmin();
|
||||||
const uptimeMonitorsState = useSelector((state) => state.uptimeMonitors);
|
const uptimeMonitorsState = useSelector((state) => state.uptimeMonitors);
|
||||||
const authState = useSelector((state) => state.auth);
|
const authState = useSelector((state) => state.auth);
|
||||||
const dispatch = useDispatch({});
|
const dispatch = useDispatch({});
|
||||||
|
|||||||
@@ -0,0 +1,176 @@
|
|||||||
|
import { Navigate, Route, Routes as LibRoutes } from "react-router";
|
||||||
|
import HomeLayout from "../Components/Layouts/HomeLayout";
|
||||||
|
import { Infrastructure } from "../Pages/Infrastructure";
|
||||||
|
import InfrastructureDetails from "../Pages/Infrastructure/Details";
|
||||||
|
import NotFound from "../Pages/NotFound";
|
||||||
|
import Login from "../Pages/Auth/Login";
|
||||||
|
import Register from "../Pages/Auth/Register/Register";
|
||||||
|
import Account from "../Pages/Account";
|
||||||
|
import Monitors from "../Pages/Uptime/Home";
|
||||||
|
import CreateMonitor from "../Pages/Uptime/CreateUptime";
|
||||||
|
import CreateInfrastructureMonitor from "../Pages/Infrastructure/CreateMonitor";
|
||||||
|
import Incidents from "../Pages/Incidents";
|
||||||
|
import Status from "../Pages/Status";
|
||||||
|
import Integrations from "../Pages/Integrations";
|
||||||
|
import Settings from "../Pages/Settings";
|
||||||
|
import ForgotPassword from "../Pages/Auth/ForgotPassword";
|
||||||
|
import CheckEmail from "../Pages/Auth/CheckEmail";
|
||||||
|
import SetNewPassword from "../Pages/Auth/SetNewPassword";
|
||||||
|
import NewPasswordConfirmed from "../Pages/Auth/NewPasswordConfirmed";
|
||||||
|
import ProtectedRoute from "../Components/ProtectedRoute";
|
||||||
|
import Details from "../Pages/Uptime/Details";
|
||||||
|
import AdvancedSettings from "../Pages/AdvancedSettings";
|
||||||
|
import Maintenance from "../Pages/Maintenance";
|
||||||
|
import Configure from "../Pages/Uptime/Configure";
|
||||||
|
import PageSpeed from "../Pages/PageSpeed";
|
||||||
|
import CreatePageSpeed from "../Pages/PageSpeed/CreatePageSpeed";
|
||||||
|
import CreateNewMaintenanceWindow from "../Pages/Maintenance/CreateMaintenance";
|
||||||
|
import PageSpeedDetails from "../Pages/PageSpeed/Details";
|
||||||
|
import PageSpeedConfigure from "../Pages/PageSpeed/Configure";
|
||||||
|
import withAdminCheck from "../Components/HOC/withAdminCheck";
|
||||||
|
|
||||||
|
const Routes = () => {
|
||||||
|
const AdminCheckedRegister = withAdminCheck(Register);
|
||||||
|
return (
|
||||||
|
<LibRoutes>
|
||||||
|
<Route
|
||||||
|
path="/"
|
||||||
|
element={
|
||||||
|
<ProtectedRoute>
|
||||||
|
<HomeLayout />
|
||||||
|
</ProtectedRoute>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Route
|
||||||
|
path="/"
|
||||||
|
element={<Navigate to="/uptime" />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/uptime"
|
||||||
|
element={<Monitors />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/uptime/create/:monitorId?"
|
||||||
|
element={<CreateMonitor />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/uptime/:monitorId/"
|
||||||
|
element={<Details />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/uptime/configure/:monitorId/"
|
||||||
|
element={<Configure />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="pagespeed"
|
||||||
|
element={<PageSpeed />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="pagespeed/create"
|
||||||
|
element={<CreatePageSpeed />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="pagespeed/:monitorId"
|
||||||
|
element={<PageSpeedDetails />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="pagespeed/configure/:monitorId"
|
||||||
|
element={<PageSpeedConfigure />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="infrastructure"
|
||||||
|
element={<Infrastructure />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="infrastructure/create"
|
||||||
|
element={<CreateInfrastructureMonitor />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="infrastructure/:monitorId"
|
||||||
|
element={<InfrastructureDetails />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="incidents/:monitorId?"
|
||||||
|
element={<Incidents />}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Route
|
||||||
|
path="status"
|
||||||
|
element={<Status />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="integrations"
|
||||||
|
element={<Integrations />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="maintenance"
|
||||||
|
element={<Maintenance />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/maintenance/create/:maintenanceWindowId?"
|
||||||
|
element={<CreateNewMaintenanceWindow />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="settings"
|
||||||
|
element={<Settings />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="advanced-settings"
|
||||||
|
element={<AdvancedSettings />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="account/profile"
|
||||||
|
element={<Account open={"profile"} />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="account/password"
|
||||||
|
element={<Account open={"password"} />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="account/team"
|
||||||
|
element={<Account open={"team"} />}
|
||||||
|
/>
|
||||||
|
</Route>
|
||||||
|
|
||||||
|
<Route
|
||||||
|
path="/login"
|
||||||
|
element={<Login />}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Route
|
||||||
|
path="/register"
|
||||||
|
element={<AdminCheckedRegister />}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Route
|
||||||
|
exact
|
||||||
|
path="/register/:token"
|
||||||
|
element={<Register />}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Route
|
||||||
|
path="/forgot-password"
|
||||||
|
element={<ForgotPassword />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/check-email"
|
||||||
|
element={<CheckEmail />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/set-new-password/:token"
|
||||||
|
element={<SetNewPassword />}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="/new-password-confirmed"
|
||||||
|
element={<NewPasswordConfirmed />}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Route
|
||||||
|
path="*"
|
||||||
|
element={<NotFound />}
|
||||||
|
/>
|
||||||
|
</LibRoutes>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export { Routes };
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
**Need support or have a suggestion? Check our [Discord channel](https://discord.gg/NAb6H3UTjK)**
|
**Need support or have a suggestion? Check our [Discord channel](https://discord.gg/NAb6H3UTjK) or [Discussions](https://github.com/bluewave-labs/checkmate/discussions) forum.**
|
||||||
|
|
||||||
|
**Checkmate is on [GitHub trending](https://github.com/trending) and #1 trending for JavaScript apps on Fri Dec 13th & 15th**
|
||||||
|
|
||||||
|
<img width="1259" alt="Frame 34" src="https://github.com/user-attachments/assets/b9339bd3-8f80-4919-8255-88db8d841a3d" />
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
@@ -18,6 +22,8 @@ Checkmate is an open source uptime manager, server & Docker monitoring tool used
|
|||||||
|
|
||||||
Checkmate also has an agent, called [Capture](https://github.com/bluewave-labs/capture), to retrieve data from remote servers. While Capture is not required to run Checkmate, it provides additional insigths about your servers' CPU, RAM, disk and temperature status.
|
Checkmate also has an agent, called [Capture](https://github.com/bluewave-labs/capture), to retrieve data from remote servers. While Capture is not required to run Checkmate, it provides additional insigths about your servers' CPU, RAM, disk and temperature status.
|
||||||
|
|
||||||
|
We've run stress tests with 1000+ active monitors without any particular issues or performance bottlenecks.
|
||||||
|
|
||||||
We **love** what we are building here, and learn a few things about Reactjs, Nodejs, MongoDB and Docker while building Checkmate. **If you would like to support us, please consider giving it a ⭐, think about contributing or providing feedback.** Please note that we do not operate a monetary donation program, make money by deploying servers, or run a SaaS business.
|
We **love** what we are building here, and learn a few things about Reactjs, Nodejs, MongoDB and Docker while building Checkmate. **If you would like to support us, please consider giving it a ⭐, think about contributing or providing feedback.** Please note that we do not operate a monetary donation program, make money by deploying servers, or run a SaaS business.
|
||||||
|
|
||||||
## 📦 Demo
|
## 📦 Demo
|
||||||
@@ -30,7 +36,7 @@ Usage instructions can be found [here](https://bluewavelabs.gitbook.io/checkmate
|
|||||||
|
|
||||||
## 🛠️ Installation
|
## 🛠️ Installation
|
||||||
|
|
||||||
See installation instructions in [Checkmate documentation portal](https://bluewavelabs.gitbook.io/checkmate/quickstart).
|
See installation instructions in [Checkmate documentation portal](https://bluewavelabs.gitbook.io/checkmate/quickstart). Alternatively, you can also use [Coolify](https://coolify.io/) for a one click Docker deployment.
|
||||||
|
|
||||||
## 💚 Questions & ideas
|
## 💚 Questions & ideas
|
||||||
|
|
||||||
@@ -48,6 +54,7 @@ If you have any questions, suggestions or comments, please use our [Discord chan
|
|||||||
- Incidents at a glance
|
- Incidents at a glance
|
||||||
- E-mail notifications
|
- E-mail notifications
|
||||||
- Scheduled maintenance
|
- Scheduled maintenance
|
||||||
|
- Can monitor 1000+ servers at the same time on a moderate server
|
||||||
|
|
||||||
**Short term roadmap:**
|
**Short term roadmap:**
|
||||||
|
|
||||||
@@ -74,16 +81,17 @@ If you have any questions, suggestions or comments, please use our [Discord chan
|
|||||||
|
|
||||||
## 🤝 Contributing
|
## 🤝 Contributing
|
||||||
|
|
||||||
We pride ourselves on building strong connections with contributors at every level. Despite being a young project, Checkmate has already earned 1500 stars and attracted 35+ contributors from around the globe. So, don’t hold back — jump in, contribute and learn with us!
|
We pride ourselves on building strong connections with contributors at every level. Despite being a young project, Checkmate has already earned 1900 stars and attracted 35+ contributors from around the globe. So, don’t hold back — jump in, contribute and learn with us!
|
||||||
|
|
||||||
Here's how you can contribute:
|
Here's how you can contribute:
|
||||||
|
|
||||||
0. Star this repo :)
|
0. Star this repo :)
|
||||||
1. Check [Contributor's guideline](https://github.com/bluewave-labs/bluewave-uptime/blob/master/CONTRIBUTING.md).
|
1. Check [Contributor's guideline](https://github.com/bluewave-labs/bluewave-uptime/blob/master/CONTRIBUTING.md). First timers are encouraged to check `good-first-issue` tag.
|
||||||
2. Have a look at our Figma designs [here](https://www.figma.com/design/RPSfaw66HjzSwzntKcgDUV/Uptime-Genie?node-id=0-1&t=WqOFv9jqNTFGItpL-1). We encourage you to copy to your own Figma page, then work on it as it is read-only.
|
2. Optionally, read [project structure](https://bluewavelabs.gitbook.io/checkmate/developers-guide/general-project-structure) and [high level overview](https://bluewavelabs.gitbook.io/checkmate/developers-guide/high-level-overview).
|
||||||
3. Open an issue if you believe you've encountered a bug
|
3. Have a look at our Figma designs [here](https://www.figma.com/design/RPSfaw66HjzSwzntKcgDUV/Uptime-Genie?node-id=0-1&t=WqOFv9jqNTFGItpL-1) if you are going to use one of our designs. We encourage you to copy to your own Figma page, then work on it as it is read-only.
|
||||||
4. Check for good-first-issue's if you are a newcomer
|
4. Open an issue if you believe you've encountered a bug.
|
||||||
5. Make a pull request to add new features/make quality-of-life improvements/fix bugs.
|
5. Check for good-first-issue's if you are a newcomer.
|
||||||
|
6. Make a pull request to add new features/make quality-of-life improvements/fix bugs.
|
||||||
|
|
||||||
<a href="https://github.com/bluewave-labs/bluewave-uptime/graphs/contributors">
|
<a href="https://github.com/bluewave-labs/bluewave-uptime/graphs/contributors">
|
||||||
<img src="https://contrib.rocks/image?repo=bluewave-labs/bluewave-uptime" />
|
<img src="https://contrib.rocks/image?repo=bluewave-labs/bluewave-uptime" />
|
||||||
|
|||||||
@@ -281,10 +281,11 @@ const editUser = async (req, res, next) => {
|
|||||||
const user = await req.db.getUserByEmail(email);
|
const user = await req.db.getUserByEmail(email);
|
||||||
// Compare passwords
|
// Compare passwords
|
||||||
const match = await user.comparePassword(req.body.password);
|
const match = await user.comparePassword(req.body.password);
|
||||||
// If not a match, throw a 401
|
// If not a match, throw a 403
|
||||||
|
// 403 instead of 401 to avoid triggering axios interceptor
|
||||||
if (!match) {
|
if (!match) {
|
||||||
const error = new Error(errorMessages.AUTH_INCORRECT_PASSWORD);
|
const error = new Error(errorMessages.AUTH_INCORRECT_PASSWORD);
|
||||||
error.status = 401;
|
error.status = 403;
|
||||||
next(error);
|
next(error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+36
-32
@@ -11,7 +11,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.7.2",
|
"axios": "^1.7.2",
|
||||||
"bcrypt": "^5.1.1",
|
"bcrypt": "^5.1.1",
|
||||||
"bullmq": "5.34.0",
|
"bullmq": "5.34.2",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"dockerode": "4.0.2",
|
"dockerode": "4.0.2",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
"chai": "5.1.2",
|
"chai": "5.1.2",
|
||||||
"esm": "3.2.25",
|
"esm": "3.2.25",
|
||||||
"mocha": "11.0.1",
|
"mocha": "11.0.1",
|
||||||
"nodemon": "3.1.7",
|
"nodemon": "3.1.9",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"sinon": "19.0.2"
|
"sinon": "19.0.2"
|
||||||
}
|
}
|
||||||
@@ -660,9 +660,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mongodb-js/saslprep": {
|
"node_modules/@mongodb-js/saslprep": {
|
||||||
"version": "1.1.7",
|
"version": "1.1.9",
|
||||||
"resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.7.tgz",
|
"resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.9.tgz",
|
||||||
"integrity": "sha512-dCHW/oEX0KJ4NjDULBo3JiOaK5+6axtpBbS+ao2ZInoAL9/YRQLhXzSNAFz7hP4nzLkIqsfYAK/PDE3+XHny0Q==",
|
"integrity": "sha512-tVkljjeEaAhCqTzajSdgbQ6gE6f3oneVwa3iXR6csiEwXXOFsiC6Uh9iAjAhXPtqa/XMDHWjjeNH/77m/Yq2dw==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sparse-bitfield": "^3.0.3"
|
"sparse-bitfield": "^3.0.3"
|
||||||
}
|
}
|
||||||
@@ -1169,9 +1170,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/bson": {
|
"node_modules/bson": {
|
||||||
"version": "6.7.0",
|
"version": "6.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/bson/-/bson-6.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/bson/-/bson-6.10.1.tgz",
|
||||||
"integrity": "sha512-w2IquM5mYzYZv6rs3uN2DZTOBe2a0zXLj53TGDqwF4l6Sz/XsISrisXOJihArF9+BZ6Cq/GjVht7Sjfmri7ytQ==",
|
"integrity": "sha512-P92xmHDQjSKPLHqFxefqMxASNq/aWJMEZugpCjf+AF/pgcUpMMQCg7t7+ewko0/u8AapvF3luf/FoehddEK+sA==",
|
||||||
|
"license": "Apache-2.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.20.1"
|
"node": ">=16.20.1"
|
||||||
}
|
}
|
||||||
@@ -1221,9 +1223,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/bullmq": {
|
"node_modules/bullmq": {
|
||||||
"version": "5.34.0",
|
"version": "5.34.2",
|
||||||
"resolved": "https://registry.npmjs.org/bullmq/-/bullmq-5.34.0.tgz",
|
"resolved": "https://registry.npmjs.org/bullmq/-/bullmq-5.34.2.tgz",
|
||||||
"integrity": "sha512-TyzeYDkIGkooYUn/P1CeiJW3Am1TboC3unwhlg1cJIwKksoyuRp97TkHyCZcwLchXbYCUtsGBZFUYf/lTAhdSg==",
|
"integrity": "sha512-eUzeCswrKbQDE1WY8h4ZTBtynOzCU5qx9felFdYOmIJrsy0warDahHKUiCZ6dUCs6ZxYMGtcaciIMcAf1L54yw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cron-parser": "^4.6.0",
|
"cron-parser": "^4.6.0",
|
||||||
@@ -3641,7 +3643,8 @@
|
|||||||
"node_modules/memory-pager": {
|
"node_modules/memory-pager": {
|
||||||
"version": "1.5.0",
|
"version": "1.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
|
||||||
"integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg=="
|
"integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==",
|
||||||
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/mensch": {
|
"node_modules/mensch": {
|
||||||
"version": "0.3.4",
|
"version": "0.3.4",
|
||||||
@@ -4431,13 +4434,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mongodb": {
|
"node_modules/mongodb": {
|
||||||
"version": "6.10.0",
|
"version": "6.12.0",
|
||||||
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.12.0.tgz",
|
||||||
"integrity": "sha512-gP9vduuYWb9ZkDM546M+MP2qKVk5ZG2wPF63OvSRuUbqCR+11ZCAE1mOfllhlAG0wcoJY5yDL/rV3OmYEwXIzg==",
|
"integrity": "sha512-RM7AHlvYfS7jv7+BXund/kR64DryVI+cHbVAy9P61fnb1RcWZqOW1/Wj2YhqMCx+MuYhqTRGv7AwHBzmsCKBfA==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mongodb-js/saslprep": "^1.1.5",
|
"@mongodb-js/saslprep": "^1.1.9",
|
||||||
"bson": "^6.7.0",
|
"bson": "^6.10.1",
|
||||||
"mongodb-connection-string-url": "^3.0.0"
|
"mongodb-connection-string-url": "^3.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -4445,7 +4448,7 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@aws-sdk/credential-providers": "^3.188.0",
|
"@aws-sdk/credential-providers": "^3.188.0",
|
||||||
"@mongodb-js/zstd": "^1.1.0",
|
"@mongodb-js/zstd": "^1.1.0 || ^2.0.0",
|
||||||
"gcp-metadata": "^5.2.0",
|
"gcp-metadata": "^5.2.0",
|
||||||
"kerberos": "^2.0.1",
|
"kerberos": "^2.0.1",
|
||||||
"mongodb-client-encryption": ">=6.0.0 <7",
|
"mongodb-client-encryption": ">=6.0.0 <7",
|
||||||
@@ -4486,14 +4489,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mongoose": {
|
"node_modules/mongoose": {
|
||||||
"version": "8.8.4",
|
"version": "8.9.1",
|
||||||
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.8.4.tgz",
|
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.9.1.tgz",
|
||||||
"integrity": "sha512-yJbn695qCsqDO+xyPII29x2R7flzXhxCDv09mMZPSGllf0sm4jKw3E9s9uvQ9hjO6bL2xjU8KKowYqcY9eSTMQ==",
|
"integrity": "sha512-whM6lWMdeKlUm4d2LSLS/q6cWtTp13lUrL5hy2YTsQdTSN+dsAu8HLdLUQOEgtBE59qp4IqLrjSXCSETbxhkQQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bson": "^6.7.0",
|
"bson": "^6.10.1",
|
||||||
"kareem": "2.6.3",
|
"kareem": "2.6.3",
|
||||||
"mongodb": "~6.10.0",
|
"mongodb": "~6.12.0",
|
||||||
"mpath": "0.9.0",
|
"mpath": "0.9.0",
|
||||||
"mquery": "5.0.0",
|
"mquery": "5.0.0",
|
||||||
"ms": "2.1.3",
|
"ms": "2.1.3",
|
||||||
@@ -4627,9 +4630,9 @@
|
|||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"node_modules/nanoid": {
|
"node_modules/nanoid": {
|
||||||
"version": "3.3.7",
|
"version": "3.3.8",
|
||||||
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
|
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
|
||||||
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
|
"integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -4758,9 +4761,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/nodemon": {
|
"node_modules/nodemon": {
|
||||||
"version": "3.1.7",
|
"version": "3.1.9",
|
||||||
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.7.tgz",
|
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.9.tgz",
|
||||||
"integrity": "sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ==",
|
"integrity": "sha512-hdr1oIb2p6ZSxu3PB2JWWYS7ZQ0qvaZsc3hK8DR8f02kRzc8rjYmxAIvdz+aYC+8F2IjNaB7HMcSDg8nQpJxyg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -4787,9 +4790,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/nodemon/node_modules/debug": {
|
"node_modules/nodemon/node_modules/debug": {
|
||||||
"version": "4.3.7",
|
"version": "4.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
|
||||||
"integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
|
"integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -6175,6 +6178,7 @@
|
|||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
|
||||||
"integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==",
|
"integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"memory-pager": "^1.0.2"
|
"memory-pager": "^1.0.2"
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -14,7 +14,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.7.2",
|
"axios": "^1.7.2",
|
||||||
"bcrypt": "^5.1.1",
|
"bcrypt": "^5.1.1",
|
||||||
"bullmq": "5.34.0",
|
"bullmq": "5.34.2",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"dockerode": "4.0.2",
|
"dockerode": "4.0.2",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
"chai": "5.1.2",
|
"chai": "5.1.2",
|
||||||
"esm": "3.2.25",
|
"esm": "3.2.25",
|
||||||
"mocha": "11.0.1",
|
"mocha": "11.0.1",
|
||||||
"nodemon": "3.1.7",
|
"nodemon": "3.1.9",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"sinon": "19.0.2"
|
"sinon": "19.0.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ import {
|
|||||||
const router = Router();
|
const router = Router();
|
||||||
|
|
||||||
router.post("/", isAllowed(["admin", "superadmin"]), verifyJWT, issueInvitation);
|
router.post("/", isAllowed(["admin", "superadmin"]), verifyJWT, issueInvitation);
|
||||||
router.post("/verify", issueInvitation);
|
router.post("/verify", inviteVerifyController);
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
+2
-1
@@ -2,5 +2,6 @@
|
|||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:recommended"
|
"config:recommended"
|
||||||
]
|
],
|
||||||
|
"labels": ["dependencies"]
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user