feat: add notify telegram & bark, and some minor fixes

This commit is contained in:
Eric Wang committed 2024-03-18 00:06:31 +08:00
1 parent 63be746b4d
commit 0c6556eda9
6 files changed
+174 -40

No files matched your search

+10
View File
@@ -40,9 +40,19 @@ export default function MonitorDetail({
const uptimePercent = (((totalTime - downTime) / totalTime) * 100).toPrecision(4)
// Conditionally render monitor name with or without hyperlink based on monitor.url presence
const monitorNameElement = (
<Text mt="sm" fw={700} style={{ display: 'inline-flex', alignItems: 'center' }}>
{statusIcon} {monitor.name}
{monitor.url ? (
<a href={monitor.url} style={{ display: 'inline-flex', alignItems: 'center', color: 'inherit', textDecoration: 'none' }}>
{statusIcon} {monitor.name}
</a>
) : (
<>
{statusIcon} {monitor.name}
</>
)}
</Text>
)