- {t('percent at date', {
- percent: dayPercent,
- date: new Date(dayStart * 1000).toLocaleDateString(),
- })}
-
- {dayDownTime > 0 && (
-
- {t('Down for', {
- duration: moment.preciseDiff(moment(0), moment(dayDownTime * 1000)),
- })}
-
- )}
- >
- )
- }
- >
- {
- if (dayDownTime > 0) {
- setModalTitle(
- t('incidents at', {
- name: monitor.name,
- date: new Date(dayStart * 1000).toLocaleDateString(),
- })
- )
- setModelContent(
- <>
- {incidentReasons.map((reason, index) => (
-
{reason}
- ))}
- >
- )
- setModalOpened(true)
- }
- }}
- />
-
- )
- }
-
- return (
- <>
-
setModalOpened(false)}
- title={modalTitle}
- size={'40em'}
- >
- {modelContent}
-
-
- {uptimePercentBars.slice(Math.floor(Math.max(9 * 90 - barRect.width, 0) / 9), 90)}
-
- >
- )
-}
diff --git a/components/DetailChart.tsx b/components/DetailChart.tsx
deleted file mode 100644
index 9d174a8..0000000
--- a/components/DetailChart.tsx
+++ /dev/null
@@ -1,102 +0,0 @@
-import { Line } from 'react-chartjs-2'
-import {
- Chart as ChartJS,
- CategoryScale,
- LinearScale,
- PointElement,
- LineElement,
- Title,
- Tooltip as ChartTooltip,
- Legend,
- TimeScale,
-} from 'chart.js'
-import 'chartjs-adapter-moment'
-import { MonitorState, MonitorTarget } from '@/types/config'
-import { codeToCountry } from '@/util/iata'
-import { useTranslation } from 'react-i18next'
-
-ChartJS.register(
- CategoryScale,
- LinearScale,
- PointElement,
- LineElement,
- Title,
- ChartTooltip,
- Legend,
- TimeScale
-)
-
-export default function DetailChart({
- monitor,
- state,
-}: {
- monitor: MonitorTarget
- state: MonitorState
-}) {
- const { t } = useTranslation('common')
- const latencyData = state.latency[monitor.id].map((point) => ({
- x: point.time * 1000,
- y: point.ping,
- loc: point.loc,
- }))
-
- let data = {
- datasets: [
- {
- data: latencyData,
- borderColor: 'rgb(112, 119, 140)',
- borderWidth: 2,
- radius: 0,
- cubicInterpolationMode: 'monotone' as const,
- tension: 0.4,
- },
- ],
- }
-
- let options = {
- responsive: true,
- maintainAspectRatio: false,
- interaction: {
- mode: 'index' as const,
- intersect: false,
- },
- animation: {
- duration: 0,
- },
- plugins: {
- tooltip: {
- callbacks: {
- label: (item: any) => {
- if (item.parsed.y) {
- return `${item.parsed.y}ms (${codeToCountry(item.raw.loc)})`
- }
- },
- },
- },
- legend: {
- display: false,
- },
- title: {
- display: true,
- text: t('Response times'),
- align: 'start' as const,
- },
- },
- scales: {
- x: {
- type: 'time' as const,
- ticks: {
- source: 'auto' as const,
- maxRotation: 0,
- autoSkip: true,
- },
- },
- },
- }
-
- return (
-
-
-
- )
-}
diff --git a/components/Footer.tsx b/components/Footer.tsx
index 657a260..7ba84c6 100644
--- a/components/Footer.tsx
+++ b/components/Footer.tsx
@@ -1,14 +1,32 @@
-import { Divider } from '@mantine/core'
-import { pageConfig } from '@/uptime.config'
+import { Logo } from './brand'
+// The site footer from the brand handbook, trimmed for a single-purpose page.
export default function Footer() {
- const defaultFooter =
- '
Open-source monitoring and status page powered by UptimeFlare , made with ❤ by lyc8503 .
'
-
return (
- <>
-
-
- >
+
+
+
+
+
+
+
+ Cottage runs open-source apps for you, kept warm. This page checks our services every
+ minute from Cloudflare’s network.
+
+
+
+
© {new Date().getFullYear()} Cottage Services LLC
+
cottage.host
+ {/* an API route, not a page */}
+ {/* eslint-disable-next-line @next/next/no-html-link-for-pages */}
+
Status API
+
+ Built on{' '}
+ UptimeFlare , open source (
+ our copy )
+
+
+
+
)
}
diff --git a/components/Header.tsx b/components/Header.tsx
index bfccf32..f8819f3 100644
--- a/components/Header.tsx
+++ b/components/Header.tsx
@@ -1,53 +1,40 @@
-import { Container, Group, Image } from '@mantine/core'
-import classes from '@/styles/Header.module.css'
+import Link from 'next/link'
import { pageConfig } from '@/uptime.config'
-import { PageConfigLink } from '@/types/config'
-import { useTranslation } from 'react-i18next'
-
-export default function Header({ style }: { style?: React.CSSProperties }) {
- const { t } = useTranslation('common')
- const linkToElement = (link: PageConfigLink, i: number) => {
- return (
-
- {link.label}
-
- )
- }
-
- const links = [{ label: t('Incidents'), link: '/incidents' }, ...(pageConfig.links || [])]
+import { Logo } from './brand'
+// The site header from the brand handbook (SiteHeader): lockup left, nav, actions right.
+export default function Header({ current }: { current: 'status' | 'incidents' }) {
+ const nav = [
+ { key: 'status', label: 'Current status', href: '/' },
+ { key: 'incidents', label: 'Incident history', href: '/incidents' },
+ ]
return (
-
-
-
-
-
-
+
+
+
+
+
Status
+
+
+ {nav.map((l) => (
+
+ {l.label}
+
+ ))}
+
+
-
-
- {links?.map(linkToElement)}
-
-
-
- {links?.filter((link) => link.highlight || link.link.startsWith('/')).map(linkToElement)}
-
-
+
)
}
diff --git a/components/LatencyChart.tsx b/components/LatencyChart.tsx
new file mode 100644
index 0000000..549d1fc
--- /dev/null
+++ b/components/LatencyChart.tsx
@@ -0,0 +1,100 @@
+import { useEffect, useState } from 'react'
+import { Line } from 'react-chartjs-2'
+import {
+ Chart as ChartJS,
+ LinearScale,
+ PointElement,
+ LineElement,
+ Tooltip,
+ Filler,
+} from 'chart.js'
+import { MonitorState, MonitorTarget } from '@/types/config'
+import { codeToCountry } from '@/util/iata'
+import { formatTime } from '@/util/status'
+
+ChartJS.register(LinearScale, PointElement, LineElement, Tooltip, Filler)
+
+// Chart.js draws on a canvas, so read the brand tokens from CSS (and again if the theme changes).
+function useTokens() {
+ const read = () => {
+ const s = getComputedStyle(document.documentElement)
+ const v = (n: string) => s.getPropertyValue(n).trim()
+ return { moss: v('--moss'), mossSoft: v('--moss-soft'), line: v('--line'), muted: v('--ink-muted'), ink: v('--ink'), raised: v('--paper-raised'), strong: v('--line-strong') }
+ }
+ const [t, setT] = useState(read)
+ useEffect(() => {
+ const obs = new MutationObserver(() => setT(read()))
+ obs.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] })
+ return () => obs.disconnect()
+ }, [])
+ return t
+}
+
+export default function LatencyChart({ monitor, state }: { monitor: MonitorTarget; state: MonitorState }) {
+ const t = useTokens()
+ const points = (state.latency[monitor.id] || []).map((p) => ({ x: p.time, y: p.ping, loc: p.loc }))
+ const font = { family: getComputedStyle(document.body).fontFamily, size: 12 }
+
+ return (
+
+ formatTime(items[0].parsed.x as number),
+ label: (item) => `${item.parsed.y} ms from ${codeToCountry((item.raw as any).loc)}`,
+ },
+ },
+ },
+ scales: {
+ x: {
+ type: 'linear',
+ min: points[0]?.x,
+ max: points[points.length - 1]?.x,
+ border: { display: false },
+ grid: { display: false },
+ ticks: { color: t.muted, font, maxTicksLimit: 7, callback: (v) => formatTime(Number(v)) },
+ },
+ y: {
+ beginAtZero: true,
+ border: { display: false },
+ grid: { color: t.line },
+ ticks: { color: t.muted, font, maxTicksLimit: 4, callback: (v) => `${v} ms` },
+ },
+ },
+ }}
+ />
+
+ )
+}
diff --git a/components/MaintenanceAlert.tsx b/components/MaintenanceAlert.tsx
deleted file mode 100644
index 746d80e..0000000
--- a/components/MaintenanceAlert.tsx
+++ /dev/null
@@ -1,95 +0,0 @@
-import { Alert, List, Text, useMantineTheme } from '@mantine/core'
-import { useMediaQuery } from '@mantine/hooks'
-import { IconAlertTriangle } from '@tabler/icons-react'
-import { MaintenanceConfig, MonitorTarget } from '@/types/config'
-import { pageConfig } from '@/uptime.config'
-import { useTranslation } from 'react-i18next'
-
-export default function MaintenanceAlert({
- maintenance,
- style,
- upcoming = false,
-}: {
- maintenance: Omit
& { monitors?: (MonitorTarget | undefined)[] }
- style?: React.CSSProperties
- upcoming?: boolean
-}) {
- const { t } = useTranslation('common')
- const theme = useMantineTheme()
- const isDesktop = useMediaQuery(`(min-width: ${theme.breakpoints.sm})`)
-
- return (
- }
- title={
-
- {(upcoming ? t('Upcoming') : '') + (maintenance.title || t('Scheduled Maintenance'))}
-
- }
- color={
- upcoming ? pageConfig.maintenances?.upcomingColor ?? 'gray' : maintenance.color || 'yellow'
- }
- withCloseButton={false}
- style={{ margin: '16px auto 0 auto', ...style }}
- >
- {/* Date range in top right (desktop) or inline (mobile) */}
-
-
-
- {upcoming ? t('Scheduled for') : t('From')}
-
-
{new Date(maintenance.start).toLocaleString()}
-
- {upcoming ? t('Expected end') : t('To')}
-
-
- {maintenance.end
- ? new Date(maintenance.end).toLocaleString()
- : t('Until further notice')}
-
-
-
-
- {maintenance.body}
- {maintenance.monitors && maintenance.monitors.length > 0 && (
- <>
-
- {t('Affected components')}
-
-
- {maintenance.monitors.map((comp, compIdx) => (
- {comp?.name ?? t('MONITOR ID NOT FOUND')}
- ))}
-
- >
- )}
-
- )
-}
diff --git a/components/MonitorDetail.tsx b/components/MonitorDetail.tsx
deleted file mode 100644
index 0ff35bf..0000000
--- a/components/MonitorDetail.tsx
+++ /dev/null
@@ -1,104 +0,0 @@
-import { Text, Tooltip } from '@mantine/core'
-import { MonitorState, MonitorTarget } from '@/types/config'
-import { IconAlertCircle, IconAlertTriangle, IconCircleCheck } from '@tabler/icons-react'
-import DetailChart from './DetailChart'
-import DetailBar from './DetailBar'
-import { getColor } from '@/util/color'
-import { maintenances } from '@/uptime.config'
-import { useTranslation } from 'react-i18next'
-
-export default function MonitorDetail({
- monitor,
- state,
-}: {
- monitor: MonitorTarget
- state: MonitorState
-}) {
- const { t } = useTranslation('common')
-
- if (!state.latency[monitor.id])
- return (
- <>
-
- {monitor.name}
-
-
- {t('No data available')}
-
- >
- )
-
- let statusIcon =
- state.incident[monitor.id].slice(-1)[0].end === null ? (
-
- ) : (
-
- )
-
- // Hide real status icon if monitor is in maintenance
- const now = new Date()
- const hasMaintenance = maintenances
- .filter((m) => now >= new Date(m.start) && (!m.end || now <= new Date(m.end)))
- .find((maintenance) => maintenance.monitors?.includes(monitor.id))
- if (hasMaintenance)
- statusIcon = (
-
- )
-
- let totalTime = Date.now() / 1000 - state.incident[monitor.id][0].start[0]
- let downTime = 0
- for (let incident of state.incident[monitor.id]) {
- downTime += (incident.end ?? Date.now() / 1000) - incident.start[0]
- }
-
- const uptimePercent = (((totalTime - downTime) / totalTime) * 100).toPrecision(4)
-
- // Conditionally render monitor name with or without hyperlink based on monitor.url presence
- const monitorNameElement = (
-
- {monitor.statusPageLink ? (
-
- {statusIcon} {monitor.name}
-
- ) : (
- <>
- {statusIcon} {monitor.name}
- >
- )}
-
- )
-
- return (
- <>
-
- {monitor.tooltip ? (
- {monitorNameElement}
- ) : (
- monitorNameElement
- )}
-
-
- {t('Overall', { percent: uptimePercent })}
-
-
-
-
- {!monitor.hideLatencyChart && }
- >
- )
-}
diff --git a/components/MonitorList.tsx b/components/MonitorList.tsx
index ab14eb2..0a3a433 100644
--- a/components/MonitorList.tsx
+++ b/components/MonitorList.tsx
@@ -1,133 +1,114 @@
-import { MonitorState, MonitorTarget } from '@/types/config'
-import { Accordion, Card, Center, Text } from '@mantine/core'
-import MonitorDetail from './MonitorDetail'
+import { useState } from 'react'
+import { MaintenanceConfig, MonitorState, MonitorTarget } from '@/types/config'
import { pageConfig } from '@/uptime.config'
-import { useEffect, useState } from 'react'
-import { useTranslation } from 'react-i18next'
+import { formatPercent, monitorStatus, uptimePercent } from '@/util/status'
+import { StatusPill } from './brand'
+import UptimeBars from './UptimeBars'
+import LatencyChart from './LatencyChart'
-function countDownCount(state: MonitorState, ids: string[]) {
- let downCount = 0
- for (let id of ids) {
- if (state.incident[id] === undefined || state.incident[id].length === 0) {
- continue
- }
+function MonitorRow({
+ monitor,
+ state,
+ maintenances,
+}: {
+ monitor: MonitorTarget
+ state: MonitorState
+ maintenances: MaintenanceConfig[]
+}) {
+ const [open, setOpen] = useState(false)
+ const status = monitorStatus(state, maintenances, monitor.id)
+ const uptime = uptimePercent(state, monitor.id)
+ const hasLatency = !monitor.hideLatencyChart && (state.latency[monitor.id]?.length ?? 0) > 0
+ const chartId = `chart-${monitor.id}`
- if (state.incident[id].slice(-1)[0].end === null) {
- downCount++
- }
- }
- return downCount
-}
-
-function getStatusTextColor(state: MonitorState, ids: string[]) {
- let downCount = countDownCount(state, ids)
- if (downCount === 0) {
- return '#059669'
- } else if (downCount === ids.length) {
- return '#df484a'
- } else {
- return '#f29030'
- }
+ return (
+
+
+
+
+ {monitor.statusPageLink ? {monitor.name} : monitor.name}
+
+ {monitor.tooltip &&
{monitor.tooltip}
}
+
+
+ {uptime !== null && (
+
+ {formatPercent(uptime)} uptime
+
+ )}
+
+
+
+ {state.incident[monitor.id] ? (
+
+ ) : (
+ No checks have run for this service yet.
+ )}
+ {hasLatency && (
+ <>
+ setOpen(!open)}
+ >
+
+
+
+ Response times, last 12 hours
+
+ {open && (
+
+
+
+ )}
+ >
+ )}
+
+ )
}
export default function MonitorList({
monitors,
state,
+ maintenances,
}: {
monitors: MonitorTarget[]
state: MonitorState
+ maintenances: MaintenanceConfig[]
}) {
- const { t } = useTranslation('common')
const group = pageConfig.group
- const groupedMonitor = group && Object.keys(group).length > 0
- let content
-
- // Load expanded groups from localStorage
- const savedExpandedGroups = localStorage.getItem('expandedGroups')
- const expandedInitial = savedExpandedGroups
- ? JSON.parse(savedExpandedGroups)
- : Object.keys(group || {})
- const [expandedGroups, setExpandedGroups] = useState(expandedInitial)
- useEffect(() => {
- localStorage.setItem('expandedGroups', JSON.stringify(expandedGroups))
- }, [expandedGroups])
-
- if (groupedMonitor) {
- // Grouped monitors
- content = (
- setExpandedGroups(values)}
- >
- {Object.keys(group).map((groupName) => (
-
-
-
-
{groupName}
-
- {group[groupName].length - countDownCount(state, group[groupName])}/
- {group[groupName].length} {t('Operational')}
-
-
-
-
- {monitors
- .filter((monitor) => group[groupName].includes(monitor.id))
- .sort((a, b) => group[groupName].indexOf(a.id) - group[groupName].indexOf(b.id))
- .map((monitor) => (
-
-
-
-
-
- ))}
-
-
- ))}
-
- )
- } else {
- // Ungrouped monitors
- content = monitors.map((monitor) => (
-
-
-
-
-
- ))
- }
+ const groups: [string, MonitorTarget[]][] =
+ group && Object.keys(group).length > 0
+ ? Object.entries(group).map(([name, ids]) => [
+ name,
+ ids.map((id) => monitors.find((m) => m.id === id)).filter(Boolean) as MonitorTarget[],
+ ])
+ : [['Services', monitors]]
return (
-
-
- {content}
-
-
+
+ {groups.map(([name, list]) => {
+ const ok = list.filter((m) => monitorStatus(state, maintenances, m.id) === 'operational').length
+ return (
+
+
+
+ {name}
+
+
+ {ok} of {list.length} operational
+
+
+
+ {list.map((m) => (
+
+ ))}
+
+
+ )
+ })}
+
)
}
diff --git a/components/NoIncidents.tsx b/components/NoIncidents.tsx
deleted file mode 100644
index 865281b..0000000
--- a/components/NoIncidents.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import { Alert, Text } from '@mantine/core'
-import { IconInfoCircle } from '@tabler/icons-react'
-import { useTranslation } from 'react-i18next'
-
-export default function NoIncidentsAlert({ style }: { style?: React.CSSProperties }) {
- const { t } = useTranslation('common')
- return (
- }
- title={
-
- {t('No incidents in this month')}
-
- }
- color="gray"
- withCloseButton={false}
- style={{
- position: 'relative',
- margin: '16px auto 0 auto',
- ...style,
- }}
- >
- {t('There are no incidents for this month')}
-
- )
-}
diff --git a/components/Notice.tsx b/components/Notice.tsx
new file mode 100644
index 0000000..7db9a43
--- /dev/null
+++ b/components/Notice.tsx
@@ -0,0 +1,35 @@
+import { MaintenanceConfig, MonitorTarget } from '@/types/config'
+import { formatDateTime, noticeTone } from '@/util/status'
+import { Banner } from './brand'
+
+function when(n: MaintenanceConfig) {
+ const now = new Date()
+ const start = formatDateTime(n.start)
+ const end = n.end ? formatDateTime(n.end) : null
+ if (new Date(n.start) > now) return end ? `Planned for ${start} to ${end}` : `Planned for ${start}`
+ if (!n.end || new Date(n.end) > now) return end ? `Since ${start}, expected to end ${end}` : `Since ${start}`
+ return `${start} to ${end}`
+}
+
+// A posted notice (incident update or maintenance) from `maintenances` in uptime.config.ts.
+export default function Notice({
+ notice,
+ monitors,
+ upcoming = false,
+}: {
+ notice: MaintenanceConfig
+ monitors: MonitorTarget[]
+ upcoming?: boolean
+}) {
+ const affected = (notice.monitors || []).map(
+ (id) => monitors.find((m) => m.id === id)?.name ?? id
+ )
+ const tone = upcoming ? 'info' : noticeTone(notice.color)
+ return (
+
+ {when(notice)}
+ {notice.body}
+ {affected.length > 0 && Affects: {affected.join(', ')}
}
+
+ )
+}
diff --git a/components/OverallStatus.tsx b/components/OverallStatus.tsx
index 40f57c7..11fe330 100644
--- a/components/OverallStatus.tsx
+++ b/components/OverallStatus.tsx
@@ -1,137 +1,101 @@
-import { MaintenanceConfig, MonitorTarget } from '@/types/config'
-import { Center, Container, Title, Collapse, Button, Box } from '@mantine/core'
-import { IconCircleCheck, IconAlertCircle, IconPlus, IconMinus } from '@tabler/icons-react'
import { useEffect, useState } from 'react'
-import MaintenanceAlert from './MaintenanceAlert'
-import { pageConfig } from '@/uptime.config'
-import { useTranslation } from 'react-i18next'
+import { MaintenanceConfig, MonitorState, MonitorTarget } from '@/types/config'
+import { activeNotices, overallSummary, upcomingNotices } from '@/util/status'
+import { PodRow, StatusIcon } from './brand'
+import Notice from './Notice'
-function useWindowVisibility() {
- const [isVisible, setIsVisible] = useState(true)
+function useNow() {
+ const [now, setNow] = useState(() => Math.round(Date.now() / 1000))
useEffect(() => {
- const handleVisibilityChange = () => setIsVisible(document.visibilityState === 'visible')
- document.addEventListener('visibilitychange', handleVisibilityChange)
- return () => document.removeEventListener('visibilitychange', handleVisibilityChange)
+ const t = setInterval(() => {
+ if (document.visibilityState === 'visible') setNow(Math.round(Date.now() / 1000))
+ }, 1000)
+ return () => clearInterval(t)
}, [])
- return isVisible
+ return now
+}
+
+function ago(seconds: number) {
+ if (seconds < 5) return 'just now'
+ if (seconds < 90) return `${seconds} seconds ago`
+ return `${Math.round(seconds / 60)} minutes ago`
}
export default function OverallStatus({
state,
- maintenances,
monitors,
+ maintenances,
}: {
- state: { overallUp: number; overallDown: number; lastUpdate: number }
- maintenances: MaintenanceConfig[]
+ state: MonitorState
monitors: MonitorTarget[]
+ maintenances: MaintenanceConfig[]
}) {
- const { t } = useTranslation('common')
- let group = pageConfig.group
- let groupedMonitor = (group && Object.keys(group).length > 0) || false
-
- let statusString = ''
- let icon =
- if (state.overallUp === 0 && state.overallDown === 0) {
- statusString = t('No data yet')
- } else if (state.overallUp === 0) {
- statusString = t('All systems not operational')
- } else if (state.overallDown === 0) {
- statusString = t('All systems operational')
- icon =
- } else {
- statusString = t('Some systems not operational', {
- down: state.overallDown,
- total: state.overallUp + state.overallDown,
- })
- }
-
- const [openTime] = useState(Math.round(Date.now() / 1000))
- const [currentTime, setCurrentTime] = useState(Math.round(Date.now() / 1000))
- const isWindowVisible = useWindowVisibility()
- const [expandUpcoming, setExpandUpcoming] = useState(false)
+ const now = useNow()
+ const [openedAt] = useState(now)
+ const [showUpcoming, setShowUpcoming] = useState(false)
+ // Reload when the data is more than five minutes old (the worker writes every minute).
useEffect(() => {
- const interval = setInterval(() => {
- if (!isWindowVisible) return
- if (currentTime - state.lastUpdate > 300 && currentTime - openTime > 30) {
- window.location.reload()
- }
- setCurrentTime(Math.round(Date.now() / 1000))
- }, 1000)
- return () => clearInterval(interval)
- })
+ if (state.lastUpdate > 0 && now - state.lastUpdate > 300 && now - openedAt > 30) {
+ window.location.reload()
+ }
+ }, [now, state.lastUpdate, openedAt])
- const now = new Date()
-
- const activeMaintenances: (Omit & {
- monitors?: MonitorTarget[]
- })[] = maintenances
- .filter((m) => now >= new Date(m.start) && (!m.end || now <= new Date(m.end)))
- .map((maintenance) => ({
- ...maintenance,
- monitors: maintenance.monitors?.map(
- (monitorId) => monitors.find((mon) => monitorId === mon.id)!
- ),
- }))
-
- const upcomingMaintenances: (Omit & {
- monitors?: (MonitorTarget | undefined)[]
- })[] = maintenances
- .filter((m) => now < new Date(m.start))
- .map((maintenance) => ({
- ...maintenance,
- monitors: maintenance.monitors?.map(
- (monitorId) => monitors.find((mon) => monitorId === mon.id)!
- ),
- }))
+ const summary = overallSummary(state, monitors, maintenances)
+ const active = activeNotices(maintenances)
+ const upcoming = upcomingNotices(maintenances)
+ const shape = summary.tone === 'success' ? 'dot' : summary.tone === 'neutral' ? 'ring' : summary.title.startsWith('Maintenance') ? 'spin' : 'tri'
return (
-
- {icon}
-
- {statusString}
-
-
- {t('Last updated on', {
- date: new Date(state.lastUpdate * 1000).toLocaleString(),
- seconds: currentTime - state.lastUpdate,
- })}
-
-
- {/* Upcoming Maintenance */}
- {upcomingMaintenances.length > 0 && (
- <>
-
- {t('upcoming maintenance', { count: upcomingMaintenances.length })}{' '}
- setExpandUpcoming(!expandUpcoming)}
- >
- {expandUpcoming ? t('Hide') : t('Show')}
+
+
+
+
+
+
+ {summary.title}
+
+
+ {state.lastUpdate > 0 ? (
+ <>
+ Last checked {ago(now - state.lastUpdate)}
+
+ ·
-
+ checks run every minute
+ >
+ ) : (
+ 'The first checks run within a minute of deploying.'
+ )}
+
-
- {upcomingMaintenances.map((maintenance, idx) => (
-
- ))}
-
- >
+ {active.length > 0 && (
+
+ {active.map((n, i) => (
+
+ ))}
+
)}
- {/* Active Maintenance */}
- {activeMaintenances.map((maintenance, idx) => (
-
- ))}
-
+ {upcoming.length > 0 && (
+
+
setShowUpcoming(!showUpcoming)}
+ >
+ {showUpcoming ? 'Hide' : 'Show'} planned maintenance ({upcoming.length})
+
+ {showUpcoming && (
+
+ {upcoming.map((n, i) => (
+
+ ))}
+
+ )}
+
+ )}
+
)
}
diff --git a/components/UptimeBars.tsx b/components/UptimeBars.tsx
new file mode 100644
index 0000000..9fac052
--- /dev/null
+++ b/components/UptimeBars.tsx
@@ -0,0 +1,105 @@
+import { useRef, useState } from 'react'
+import { MonitorState, MonitorTarget } from '@/types/config'
+import { Day, DAYS, dailyHistory, dayTone, formatDate, formatDuration, formatPercent, formatTime } from '@/util/status'
+
+// 90 daily bars. Each bar is a button: hover or focus shows the day, and arrow keys move
+// between days, so the history isn't colour-only or mouse-only.
+export default function UptimeBars({ monitor, state }: { monitor: MonitorTarget; state: MonitorState }) {
+ const days = dailyHistory(state, monitor.id)
+ const [active, setActive] = useState<{ i: number; side: React.CSSProperties } | null>(null)
+ const refs = useRef<(HTMLButtonElement | null)[]>([])
+ const badDays = days.filter((d) => d.downSeconds > 0).length
+
+ // anchor the card to the bar, opening away from the nearer edge
+ const show = (i: number, el: HTMLElement) => {
+ const row = el.parentElement!.getBoundingClientRect()
+ const bar = el.getBoundingClientRect()
+ const x = bar.left - row.left
+ setActive({ i, side: x < row.width / 2 ? { left: x } : { right: row.right - bar.right } })
+ }
+
+ const move = (i: number) => {
+ const j = Math.max(0, Math.min(DAYS - 1, i))
+ const el = refs.current[j]
+ // on phones the oldest 60 bars are hidden: don't move focus onto them
+ if (el && el.offsetParent !== null) el.focus()
+ }
+
+ return (
+
+
setActive(null)}
+ >
+ {days.map((d, i) => (
+ {
+ refs.current[i] = el
+ }}
+ type="button"
+ className={`st-bar st-bar--${dayTone(d)}`}
+ aria-label={dayLabel(d)}
+ tabIndex={i === DAYS - 1 ? 0 : -1}
+ onMouseEnter={(e) => show(i, e.currentTarget)}
+ onFocus={(e) => show(i, e.currentTarget)}
+ onBlur={() => setActive(null)}
+ onKeyDown={(e) => {
+ if (e.key === 'ArrowLeft') move(i - 1)
+ else if (e.key === 'ArrowRight') move(i + 1)
+ else if (e.key === 'Home') move(0)
+ else if (e.key === 'End') move(DAYS - 1)
+ else return
+ e.preventDefault()
+ }}
+ />
+ ))}
+ {active !== null && }
+
+
+ {DAYS} days ago
+ 30 days ago
+ Today
+
+
+ )
+}
+
+function dayLabel(d: Day) {
+ const date = formatDate(d.start, true)
+ if (d.percent === null) return `${date}: not monitored yet`
+ if (d.downSeconds === 0) return `${date}: no downtime`
+ return `${date}: down for ${formatDuration(d.downSeconds)}, ${formatPercent(d.percent)} up`
+}
+
+function DayCard({ day, side }: { day: Day; side: React.CSSProperties }) {
+ return (
+
+
{formatDate(day.start, true)}
+ {day.percent === null ? (
+
Not monitored yet
+ ) : day.downSeconds === 0 ? (
+
No downtime
+ ) : (
+ <>
+
+ Down for {formatDuration(day.downSeconds)} · {formatPercent(day.percent)} up
+
+
+ {day.events.slice(0, 4).map((ev, i) => (
+
+
+ {formatTime(ev.from)}–{formatTime(ev.to)}
+ {' '}
+ {ev.error}
+
+ ))}
+ {day.events.length > 4 && and {day.events.length - 4} more }
+
+ >
+ )}
+
+ )
+}
diff --git a/components/brand.tsx b/components/brand.tsx
new file mode 100644
index 0000000..6366579
--- /dev/null
+++ b/components/brand.tsx
@@ -0,0 +1,203 @@
+// Cottage brand components, ported from the brand handbook's components/bundle.js so they match
+// the app exactly. Styles: styles/brand/bundle.css (copied verbatim from Hearth).
+import type { ReactNode } from 'react'
+
+const cx = (...c: (string | false | null | undefined)[]) => c.filter(Boolean).join(' ')
+
+function Mark({ size, mono }: { size: number; mono?: boolean }) {
+ const cls = cx('ct-logo__mark', mono && 'ct-logo__mark--mono')
+ if (size <= 24) {
+ return (
+
+
+
+
+
+
+ )
+ }
+ return (
+
+
+
+
+
+
+
+ )
+}
+
+export function Logo({
+ variant = 'lockup',
+ size = 32,
+ label = 'Cottage',
+}: {
+ variant?: 'lockup' | 'mark' | 'mono'
+ size?: number
+ label?: string
+}) {
+ if (variant !== 'lockup') {
+ return (
+
+
+
+ )
+ }
+ return (
+
+
+
+ cottage
+
+
+ )
+}
+
+export function PodRow({
+ count = 5,
+ lit,
+ size = 32,
+ roof = false,
+ empty = false,
+}: {
+ count?: number
+ lit?: number
+ size?: number
+ roof?: boolean
+ empty?: boolean
+}) {
+ const litIdx = lit == null ? Math.floor(count / 2) : lit
+ const W = count * 20 - 6
+ const pad = 4
+ const rise = roof ? Math.min(0.75 * (W / 2 - 3), 18) : 0
+ const podTop = roof ? 9 + rise + 8 : pad
+ const vbW = W + pad * 2
+ const vbH = podTop + 17 + pad
+ const eave = podTop - 9
+ return (
+
+ {roof && (
+
+ )}
+ {Array.from({ length: count }, (_, i) => {
+ const state = i === litIdx ? 'lit' : empty ? 'empty' : 'full'
+ const e = state === 'empty'
+ return (
+
+ )
+ })}
+
+ )
+}
+
+export type Shape = 'dot' | 'ring' | 'spin' | 'pause' | 'tri'
+
+export function StatusIcon({ shape }: { shape: Shape }) {
+ if (shape === 'dot')
+ return (
+
+
+
+ )
+ if (shape === 'ring')
+ return (
+
+
+
+ )
+ if (shape === 'spin')
+ return (
+
+
+
+ )
+ if (shape === 'pause')
+ return (
+
+
+
+
+ )
+ return (
+
+
+
+
+
+ )
+}
+
+const STATUS = {
+ operational: { label: 'Operational', tone: 'success', shape: 'dot' },
+ degraded: { label: 'Degraded', tone: 'warning', shape: 'tri' },
+ maintenance: { label: 'Maintenance', tone: 'warning', shape: 'spin' },
+ outage: { label: 'Outage', tone: 'danger', shape: 'tri' },
+ unknown: { label: 'No data', tone: 'neutral', shape: 'ring' },
+} as const
+
+export function StatusPill({ status }: { status: keyof typeof STATUS }) {
+ const s = STATUS[status]
+ return (
+
+
+ {s.label}
+
+ )
+}
+
+const BANNER_ICON = {
+ info: 'M10 2.5a7.5 7.5 0 1 0 0 15 7.5 7.5 0 0 0 0-15Zm0 6.5v5M10 6.5v.5',
+ success: 'M10 2.5a7.5 7.5 0 1 0 0 15 7.5 7.5 0 0 0 0-15ZM6.8 10.2l2.2 2.2 4.2-4.6',
+ warning: 'M10 3 18 16.5H2ZM10 8.2v3.6M10 14v.3',
+ danger: 'M10 2.5a7.5 7.5 0 1 0 0 15 7.5 7.5 0 0 0 0-15ZM7.3 7.3l5.4 5.4M12.7 7.3l-5.4 5.4',
+}
+
+export function Banner({
+ tone = 'info',
+ title,
+ children,
+ aside,
+}: {
+ tone?: keyof typeof BANNER_ICON
+ title?: ReactNode
+ children?: ReactNode
+ aside?: ReactNode
+}) {
+ return (
+
+
+
+
+
+ {title &&
{title}
}
+ {children &&
{children}
}
+
+ {aside &&
{aside}
}
+
+ )
+}
+
+export function EmptyState({ title, children }: { title: string; children?: ReactNode }) {
+ return (
+
+
+ {title}
+ {children && {children}
}
+
+ )
+}
diff --git a/dev/sample.ts b/dev/sample.ts
new file mode 100644
index 0000000..bec5e75
--- /dev/null
+++ b/dev/sample.ts
@@ -0,0 +1,118 @@
+// Sample data for `npm run dev`, which has no D1 database. Never used in production.
+// / normal: 120 days of history with a few past incidents
+// /?sample=outage one service down now, plus an incident notice
+// /?sample=maintenance maintenance in progress and one planned
+// /?sample=empty before the first check
+import type { MaintenanceConfig, MonitorStateCompacted, MonitorTarget } from '@/types/config'
+
+const hex = (arr: Uint16Array | Uint32Array) =>
+ Array.from(new Uint8Array(arr.buffer), (b) => b.toString(16).padStart(2, '0')).join('')
+
+// Deterministic noise so the preview looks the same on every reload.
+function rng(seed: number) {
+ return () => {
+ seed = (seed * 1664525 + 1013904223) % 4294967296
+ return seed / 4294967296
+ }
+}
+
+export function sampleState(monitors: MonitorTarget[], scenario = ''): string | null {
+ if (scenario === 'empty') return null
+ const now = Math.round(Date.now() / 1000)
+ const day = 86400
+ const data: MonitorStateCompacted = { lastUpdate: now - 23, overallUp: 0, overallDown: 0, incident: {}, latency: {} }
+
+ // past incidents: [monitor index, days ago, minutes, error]
+ const past: [number, number, number, string][] = [
+ [0, 63, 4, 'HTTP 522 from Cloudflare'],
+ [1, 40, 7, 'Timed out after 10 seconds'],
+ [1, 12, 18, 'HTTP 503: Service Unavailable'],
+ [2, 12, 18, 'HTTP 503: Service Unavailable'],
+ [2, 3, 2, 'Timed out after 10 seconds'],
+ ]
+
+ monitors.forEach((m, idx) => {
+ const start: number[][] = [[now - 120 * day]]
+ const end: (number | null)[] = [now - 120 * day]
+ const error: string[][] = [['dummy']]
+ for (const [i, ago, mins, err] of past) {
+ if (i !== idx) continue
+ const s = now - ago * day + 3600 * 14
+ start.push([s])
+ end.push(s + mins * 60)
+ error.push([err])
+ }
+ const down = scenario === 'outage' && idx === monitors.length - 1
+ if (down) {
+ start.push([now - 11 * 60, now - 4 * 60])
+ end.push(null)
+ error.push(['HTTP 502: Bad Gateway', 'Timed out after 10 seconds'])
+ }
+ down ? data.overallDown++ : data.overallUp++
+ data.incident[m.id] = { start, end, error }
+
+ // latency every 5 minutes for 12 hours
+ const r = rng(idx + 7)
+ const times: number[] = []
+ const pings: number[] = []
+ for (let t = now - 12 * 3600; t <= now; t += 300) {
+ times.push(t)
+ pings.push(Math.round(90 + idx * 35 + r() * 40 + (r() > 0.96 ? 180 : 0)))
+ }
+ data.latency[m.id] = {
+ time: hex(new Uint32Array(times)),
+ ping: hex(new Uint16Array(pings)),
+ loc: { v: ['IAD'], c: [times.length] },
+ }
+ })
+ return JSON.stringify(data)
+}
+
+export function sampleNotices(scenario = ''): MaintenanceConfig[] {
+ const at = (days: number, hour = 14) => {
+ const d = new Date()
+ d.setDate(d.getDate() + days)
+ d.setHours(hour, 0, 0, 0)
+ return d.toISOString()
+ }
+ const notices: MaintenanceConfig[] = [
+ {
+ title: 'Apps in US East were slow for 18 minutes',
+ body: 'A storage update on one server made some apps slow to respond. We rolled it back and every app recovered without data loss.',
+ monitors: ['dashboard', 'apps-us-east'],
+ start: at(-12),
+ end: at(-12, 15),
+ color: 'green',
+ },
+ ]
+ if (scenario === 'outage') {
+ notices.push({
+ title: 'Some apps in US East aren’t loading',
+ body: 'We’re looking into it now. Your data is safe. Next update within 30 minutes.',
+ monitors: ['apps-us-east'],
+ start: new Date(Date.now() - 6 * 60 * 1000).toISOString(),
+ color: 'red',
+ })
+ }
+ if (scenario === 'maintenance') {
+ notices.push(
+ {
+ title: 'Dashboard maintenance',
+ body: 'We’re moving the dashboard to a new database server. Your apps keep running; you can’t sign in for about 20 minutes.',
+ monitors: ['dashboard'],
+ start: new Date(Date.now() - 5 * 60 * 1000).toISOString(),
+ end: new Date(Date.now() + 15 * 60 * 1000).toISOString(),
+ color: 'blue',
+ },
+ {
+ title: 'Server updates in US East',
+ body: 'Each app restarts once, for under a minute, during this window.',
+ monitors: ['apps-us-east'],
+ start: at(4, 6),
+ end: at(4, 7),
+ color: 'blue',
+ }
+ )
+ }
+ return notices
+}
diff --git a/docs/desktop.png b/docs/desktop.png
deleted file mode 100644
index e50865c..0000000
Binary files a/docs/desktop.png and /dev/null differ
diff --git a/locales/de-DE/common.json b/locales/de-DE/common.json
deleted file mode 100644
index 9686989..0000000
--- a/locales/de-DE/common.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "Incidents": "Vorfälle",
- "No data yet": "Noch keine Daten",
- "All systems not operational": "Nicht alle Systeme funktionsfähig",
- "All systems operational": "Alle Systeme funktionsfähig",
- "Some systems not operational": "Manche Systeme sind nicht funktionsfähig ({{down}} von {{total}})",
- "Last updated on": "Letzte Aktualisierung: {{date}} (vor {{seconds}} Sekunden)",
- "upcoming maintenance": "{{count}} anstehende Wartung",
- "upcoming maintenance_plural": "{{count}} anstehende Wartungen",
- "Hide": "[verstecken]",
- "Show": "[zeigen]",
- "Operational": "Funktionsfähig",
- "No data available": "Keine Daten verfügbar, stelle sicher dass der Worker mit der letzten Config-Version deployed wurde und prüfe den Worker-Status!",
- "Overall": "Gesamt: {{percent}}%",
- "No Data": "Keine Daten",
- "percent at date": "{{percent}}% am {{date}}",
- "Down for": "Ausfall für {{duration}} (Klick für Details)",
- "incidents at": "🚨 {{name}} Vorfall am {{date}}",
- "Response times": "Antwortzeiten (ms)",
- "Upcoming": "[Geplant] ",
- "Scheduled Maintenance": "Geplante Wartung",
- "Scheduled for": "Geplant für:",
- "From": "Von:",
- "Expected end": "Voraussichtliches Ende:",
- "To": "Bis:",
- "Until further notice": "Bis auf Weiteres",
- "Affected components": "Betroffene Komponenten:",
- "MONITOR ID NOT FOUND": "[ERR: MONITOR ID NICHT GEFUNDEN]",
- "No incidents in this month": "Keine Vorfälle diesen Monat",
- "There are no incidents for this month": "Es gibt keine Vorfälle diesen Monat.",
- "Monitor not found": "Monitor mit ID {{id}} nicht gefunden!",
- "Monitor State not defined": "Monitor-Status ist nicht definiert. Prüfe den Worker-Status und das Binding!",
- "All": "Alle",
- "Select monitor": "Auswählen",
- "Backwards": "← Zurück",
- "Forward": "Vorwärts →"
-}
diff --git a/locales/en/common.json b/locales/en/common.json
deleted file mode 100644
index 6484ce0..0000000
--- a/locales/en/common.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "Incidents": "Incidents",
- "No data yet": "No data yet",
- "All systems not operational": "All systems not operational",
- "All systems operational": "All systems operational",
- "Some systems not operational": "Some systems not operational ({{down}} out of {{total}})",
- "Last updated on": "Last updated on: {{date}} ({{seconds}} sec ago)",
- "upcoming maintenance": "{{count}} upcoming maintenance",
- "upcoming maintenance_plural": "{{count}} upcoming maintenances",
- "Hide": "[Hide]",
- "Show": "[Show]",
- "Operational": "Operational",
- "No data available": "No data available, please make sure you have deployed your workers with latest config and check your worker status!",
- "Overall": "Overall: {{percent}}%",
- "No Data": "No Data",
- "percent at date": "{{percent}}% at {{date}}",
- "Down for": "Down for {{duration}} (click for detail)",
- "incidents at": "🚨 {{name}} incidents at {{date}}",
- "Response times": "Response times(ms)",
- "Upcoming": "[Upcoming] ",
- "Scheduled Maintenance": "Scheduled Maintenance",
- "Scheduled for": "Scheduled for:",
- "From": "From:",
- "Expected end": "Expected end:",
- "To": "To:",
- "Until further notice": "Until further notice",
- "Affected components": "Affected components:",
- "MONITOR ID NOT FOUND": "[ERR: MONITOR ID NOT FOUND]",
- "No incidents in this month": "No incidents in this month",
- "There are no incidents for this month": "There are no incidents for this month.",
- "Monitor not found": "Monitor with id {{id}} not found!",
- "Monitor State not defined": "Monitor State is not defined now, please check your worker's status and binding!",
- "All": "All",
- "Select monitor": "Select monitor",
- "Backwards": "← Backwards",
- "Forward": "Forward →"
-}
diff --git a/locales/fr-FR/common.json b/locales/fr-FR/common.json
deleted file mode 100644
index e28074b..0000000
--- a/locales/fr-FR/common.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "Incidents": "Incidents",
- "No data yet": "Aucune donnée pour le moment",
- "All systems not operational": "Aucun système n'est opérationnel",
- "All systems operational": "Tous les systèmes sont opérationnels",
- "Some systems not operational": "Certains systèmes ne fonctionnent pas ({{down}} sur {{total}})",
- "Last updated on": "Dernière actualisation : {{date}} (il y a {{seconds}} secondes)",
- "upcoming maintenance": "{{count}} maintenance à venir",
- "upcoming maintenance_plural": "{{count}} maintenances à venir",
- "Hide": "[Masquer]",
- "Show": "[Afficher]",
- "Operational": "Opérationnel",
- "No data available": "Aucune donnée disponible. Veuillez vous assurer d'avoir déployé vos workers avec la dernière configuration et vérifiez leur statut !",
- "Overall": "Moyenne : {{percent}}%",
- "No Data": "Aucune donnée",
- "percent at date": "{{percent}}% le {{date}}",
- "Down for": "Interruption de {{duration}} (cliquez pour plus de détails)",
- "incidents at": "🚨 Incidents sur {{name}} le {{date}}",
- "Response times": "Temps de réponse (ms)",
- "Upcoming": "[À venir] ",
- "Scheduled Maintenance": "Maintenance planifiée",
- "Scheduled for": "Planifiée pour :",
- "From": "De :",
- "Expected end": "Fin prévue :",
- "To": "À :",
- "Until further notice": "Jusqu'à nouvel ordre",
- "Affected components": "Composants affectés :",
- "MONITOR ID NOT FOUND": "[ERR : ID DU MONITEUR INTROUVABLE]",
- "No incidents in this month": "Aucun incident ce mois-ci",
- "There are no incidents for this month": "Il n'y a aucun incident pour ce mois-ci.",
- "Monitor not found": "Le moniteur avec l'ID {{id}} est introuvable !",
- "Monitor State not defined": "L'état du moniteur n'est pas défini actuellement, veuillez vérifier le statut de votre worker et sa liaison !",
- "All": "Tous",
- "Select monitor": "Sélectionner un moniteur",
- "Backwards": "← Précédent",
- "Forward": "Suivant →"
-}
\ No newline at end of file
diff --git a/locales/zh-CN/common.json b/locales/zh-CN/common.json
deleted file mode 100644
index 52866f5..0000000
--- a/locales/zh-CN/common.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "Incidents": "历史故障",
- "No data yet": "暂无数据",
- "All systems not operational": "系统均离线",
- "All systems operational": "系统一切正常",
- "Some systems not operational": "部分系统离线 ({{down}} / {{total}})",
- "Last updated on": "最后更新于: {{date}} ({{seconds}} 秒前)",
- "upcoming maintenance": "{{count}} 个即将进行的维护",
- "upcoming maintenance_plural": "{{count}} 个即将进行的维护",
- "Hide": "[隐藏]",
- "Show": "[显示]",
- "Operational": "在线",
- "No data available": "暂无数据,请确保您已使用最新配置部署了 Worker 并检查 Worker 状态!",
- "Overall": "总可用率: {{percent}}%",
- "No Data": "暂无数据",
- "percent at date": "{{percent}}% 于 {{date}}",
- "Down for": "故障持续 {{duration}} (点击查看详情)",
- "incidents at": "🚨 {{name}} 于 {{date}} 不可用",
- "Response times": "响应时间(ms)",
- "Upcoming": "[即将开始] ",
- "Scheduled Maintenance": "计划维护",
- "Scheduled for": "计划开始:",
- "From": "开始:",
- "Expected end": "预计结束:",
- "To": "结束:",
- "Until further notice": "直到另行通知",
- "Affected components": "受影响组件:",
- "MONITOR ID NOT FOUND": "[错误: 未找到监控 ID]",
- "No incidents in this month": "本月无故障",
- "There are no incidents for this month": "本月没有发生任何故障。",
- "Monitor not found": "未找到 ID 为 {{id}} 的监控!",
- "Monitor State not defined": "监控状态未定义,请检查您的 Worker 状态和绑定!",
- "All": "全部",
- "Select monitor": "选择监控",
- "Backwards": "← 上一月",
- "Forward": "下一月 →"
-}
diff --git a/locales/zh-TW/common.json b/locales/zh-TW/common.json
deleted file mode 100644
index e787bf4..0000000
--- a/locales/zh-TW/common.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "Incidents": "歷來事件",
- "No data yet": "沒有資料",
- "All systems not operational": "所有服務都已停止運作",
- "All systems operational": "所有服務皆正常運作",
- "Some systems not operational": "部分服務停止運作 ({{down}} / {{total}})",
- "Last updated on": "最後更新於:{{date}}({{seconds}} 秒前)",
- "upcoming maintenance": "{{count}} 個即將要進行的維護",
- "upcoming maintenance_plural": "{{count}} 個即將要進行的維護",
- "Hide": "[隱藏]",
- "Show": "[顯示]",
- "Operational": "運行中",
- "No data available": "沒有資料,請確保已部署最新設定的 Worker 並檢查 Worker 狀態!",
- "Overall": "總運行率:{{percent}}%",
- "No Data": "沒有資料",
- "percent at date": "{{percent}}% 於 {{date}}",
- "Down for": "事件持續 {{duration}}(點擊查看詳情)",
- "incidents at": "🚨 {{name}} 於 {{date}} 停運",
- "Response times": "回應時間(毫秒)",
- "Upcoming": "[即將開始] ",
- "Scheduled Maintenance": "預定維護",
- "Scheduled for": "預定開始:",
- "From": "開始:",
- "Expected end": "預計結束:",
- "To": "結束:",
- "Until further notice": "即日起持續生效",
- "Affected components": "受影響的部份:",
- "MONITOR ID NOT FOUND": "[錯誤:找不到站點 ID]",
- "No incidents in this month": "本月無事件",
- "There are no incidents for this month": "本月沒有任何事件發生。",
- "Monitor not found": "找不到 ID 為 {{id}} 的站點!",
- "Monitor State not defined": "站點狀態未定義,請檢查您的 Worker 狀態與 KV 綁定!",
- "All": "全部",
- "Select monitor": "選取站點",
- "Backwards": "← 上個月",
- "Forward": "下個月 →"
-}
diff --git a/package-lock.json b/package-lock.json
index 155c6c5..6a88d43 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,30 +1,19 @@
{
- "name": "uptimeflare",
+ "name": "cottage-status",
"version": "0.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
- "name": "uptimeflare",
+ "name": "cottage-status",
"version": "0.1.0",
"dependencies": {
"@cloudflare/workers-types": "^4.20250410.0",
- "@mantine/core": "^7.1.3",
- "@mantine/ds": "^7.1.3",
- "@mantine/hooks": "^7.1.3",
- "@tabler/icons-react": "^2.39.0",
- "@types/moment-precise-range-plugin": "^0.2.2",
"chart.js": "^4.4.0",
- "chartjs-adapter-moment": "^1.0.1",
- "i18next": "^25.7.3",
- "i18next-browser-languagedetector": "^8.2.0",
- "moment": "^2.29.4",
- "moment-precise-range-plugin": "^1.3.0",
"next": "^14.2.28",
"react": "^18.3.1",
"react-chartjs-2": "^5.2.0",
- "react-dom": "^18.3.1",
- "react-i18next": "^16.5.0"
+ "react-dom": "^18.3.1"
},
"devDependencies": {
"@cloudflare/next-on-pages": "^1.13.12",
@@ -33,9 +22,6 @@
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "^14.2.28",
- "postcss": "^8.4.31",
- "postcss-preset-mantine": "^1.8.0",
- "postcss-simple-vars": "^7.0.1",
"prettier": "3.0.3",
"typescript": "^5",
"wrangler": "^4.54.0"
@@ -54,6 +40,7 @@
"version": "7.28.4",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz",
"integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=6.9.0"
@@ -869,54 +856,6 @@
"node": ">=14"
}
},
- "node_modules/@floating-ui/core": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.0.tgz",
- "integrity": "sha512-kK1h4m36DQ0UHGj5Ah4db7R0rHemTqqO0QLvUqi1/mUUp3LuAWbWxdxSIf/XsnH9VS6rRVPLJCncjRzUvyCLXg==",
- "dependencies": {
- "@floating-ui/utils": "^0.1.3"
- }
- },
- "node_modules/@floating-ui/dom": {
- "version": "1.5.3",
- "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz",
- "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==",
- "dependencies": {
- "@floating-ui/core": "^1.4.2",
- "@floating-ui/utils": "^0.1.3"
- }
- },
- "node_modules/@floating-ui/react": {
- "version": "0.24.8",
- "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.24.8.tgz",
- "integrity": "sha512-AuYeDoaR8jtUlUXtZ1IJ/6jtBkGnSpJXbGNzokBL87VDJ8opMq1Bgrc0szhK482ReQY6KZsMoZCVSb4xwalkBA==",
- "dependencies": {
- "@floating-ui/react-dom": "^2.0.1",
- "aria-hidden": "^1.2.3",
- "tabbable": "^6.0.1"
- },
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
- },
- "node_modules/@floating-ui/react-dom": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.2.tgz",
- "integrity": "sha512-5qhlDvjaLmAst/rKb3VdlCinwTF4EYMiVxuuc/HVUjs46W0zgtbMmAZ1UTsDrRTxRmUEzl92mOtWbeeXL26lSQ==",
- "dependencies": {
- "@floating-ui/dom": "^1.5.1"
- },
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": ">=16.8.0"
- }
- },
- "node_modules/@floating-ui/utils": {
- "version": "0.1.6",
- "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz",
- "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A=="
- },
"node_modules/@humanwhocodes/config-array": {
"version": "0.13.0",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",
@@ -1454,75 +1393,6 @@
"resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.2.tgz",
"integrity": "sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw=="
},
- "node_modules/@mantine/code-highlight": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/@mantine/code-highlight/-/code-highlight-7.1.3.tgz",
- "integrity": "sha512-Z+E++yrOcqoKpgf34dw13y6M9K/qtqEnLftKiwwE2RL6C8+0gI8iVYU7Y7yuvFPgntZ1DOnSs+d2OEsxuECoiw==",
- "peer": true,
- "dependencies": {
- "clsx": "2.0.0",
- "highlight.js": "^11.7.0"
- },
- "peerDependencies": {
- "@mantine/core": "7.1.3",
- "@mantine/hooks": "7.1.3",
- "react": "^18.2.0",
- "react-dom": "^18.2.0"
- }
- },
- "node_modules/@mantine/core": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/@mantine/core/-/core-7.1.3.tgz",
- "integrity": "sha512-5vLwrMFVlGkd56HDoz5woE7I48XuycoyKaasJj49LTn2MuccHvNJ7c0VPlRlbzK8YQuwV7g1KsBAM8zzJlwqig==",
- "dependencies": {
- "@floating-ui/react": "^0.24.8",
- "clsx": "2.0.0",
- "react-number-format": "^5.2.2",
- "react-remove-scroll": "^2.5.6",
- "react-textarea-autosize": "8.5.3",
- "type-fest": "^3.13.1"
- },
- "peerDependencies": {
- "@mantine/hooks": "7.1.3",
- "react": "^18.2.0",
- "react-dom": "^18.2.0"
- }
- },
- "node_modules/@mantine/core/node_modules/type-fest": {
- "version": "3.13.1",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.1.tgz",
- "integrity": "sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==",
- "engines": {
- "node": ">=14.16"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@mantine/ds": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/@mantine/ds/-/ds-7.1.3.tgz",
- "integrity": "sha512-GTdS4J9XsNG6us56haksC2EcNb0EPkJsGoiBu2MO7zdmmIqQsPtF/DVGzr9XxkTxFmRkgd9qkVvsA9eOqRQEKg==",
- "dependencies": {
- "clsx": "2.0.0"
- },
- "peerDependencies": {
- "@mantine/code-highlight": "7.1.3",
- "@mantine/core": "7.1.3",
- "@mantine/hooks": "7.1.3",
- "@tabler/icons-react": "^2.29.0",
- "react": "^18.2.0",
- "react-dom": "^18.2.0"
- }
- },
- "node_modules/@mantine/hooks": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/@mantine/hooks/-/hooks-7.1.3.tgz",
- "integrity": "sha512-jCOedyl229vzNEoya9L/PIeT+Btwuoqh09vRbFRNoTdRZgVMTWi4BT08BRWK5iqSa9PlvWtIaSGcCtjqqXKZcA==",
- "peerDependencies": {
- "react": "^18.2.0"
- }
- },
"node_modules/@mapbox/node-pre-gyp": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-2.0.0.tgz",
@@ -2032,31 +1902,6 @@
"tslib": "^2.4.0"
}
},
- "node_modules/@tabler/icons": {
- "version": "2.39.0",
- "resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-2.39.0.tgz",
- "integrity": "sha512-iK3j2jIEGIUaJcbYYg5iwyG1Y/m4lzUxAUbxRpvgeXCWP29jvZaH5hajZmU3KaSealddHuJg7PSQislPHpCsoQ==",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/codecalm"
- }
- },
- "node_modules/@tabler/icons-react": {
- "version": "2.39.0",
- "resolved": "https://registry.npmjs.org/@tabler/icons-react/-/icons-react-2.39.0.tgz",
- "integrity": "sha512-MyUK1jqtmHPZBnDXqIc1Y5OnfoqG+tGaSB1/gcl0mlY462fJ5f3QB0ZIZzAHMAGYb6K2iJSdFIFavhcgpDDZ7Q==",
- "dependencies": {
- "@tabler/icons": "2.39.0",
- "prop-types": "^15.7.2"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/codecalm"
- },
- "peerDependencies": {
- "react": "^16.5.1 || ^17.0.0 || ^18.0.0"
- }
- },
"node_modules/@tootallnate/once": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz",
@@ -2136,14 +1981,6 @@
"integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=",
"dev": true
},
- "node_modules/@types/moment-precise-range-plugin": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/@types/moment-precise-range-plugin/-/moment-precise-range-plugin-0.2.2.tgz",
- "integrity": "sha512-Iof7Z9Ej/LbeE2++cap0SaSpDzMen9hT/ced3BwPhyUl5PWAgxR7sDxx4i0hYTOYshaMqH8hjXD0+CVBBYhEpw==",
- "dependencies": {
- "moment": ">=2.14.0"
- }
- },
"node_modules/@types/node": {
"version": "20.8.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.4.tgz",
@@ -2157,13 +1994,13 @@
"version": "15.7.8",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.8.tgz",
"integrity": "sha512-kMpQpfZKSCBqltAJwskgePRaYRFukDkm1oItcAbC3gNELR20XIBcN9VRgg4+m8DKsTfkWeA4m4Imp4DDuWy7FQ==",
- "devOptional": true
+ "dev": true
},
"node_modules/@types/react": {
"version": "18.2.28",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.28.tgz",
"integrity": "sha512-ad4aa/RaaJS3hyGz0BGegdnSRXQBkd1CCYDCdNjBPg90UUpLgo+WlJqb9fMYUxtehmzF3PJaTWqRZjko6BRzBg==",
- "devOptional": true,
+ "dev": true,
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@@ -2183,7 +2020,7 @@
"version": "0.16.4",
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.4.tgz",
"integrity": "sha512-2L9ifAGl7wmXwP4v3pN4p2FLhD0O1qsJpvKmNin5VA8+UvNVb447UDaAEV6UdrkA+m/Xs58U1RFps44x6TFsVQ==",
- "devOptional": true
+ "dev": true
},
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "8.29.1",
@@ -3791,17 +3628,6 @@
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
"dev": true
},
- "node_modules/aria-hidden": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.3.tgz",
- "integrity": "sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==",
- "dependencies": {
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
"node_modules/aria-query": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
@@ -4126,15 +3952,6 @@
"node": ">=6"
}
},
- "node_modules/camelcase-css": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
- "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
- "dev": true,
- "engines": {
- "node": ">= 6"
- }
- },
"node_modules/caniuse-lite": {
"version": "1.0.30001713",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001713.tgz",
@@ -4182,15 +3999,6 @@
"pnpm": ">=7"
}
},
- "node_modules/chartjs-adapter-moment": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/chartjs-adapter-moment/-/chartjs-adapter-moment-1.0.1.tgz",
- "integrity": "sha512-Uz+nTX/GxocuqXpGylxK19YG4R3OSVf8326D+HwSTsNw1LgzyIGRo+Qujwro1wy6X+soNSnfj5t2vZ+r6EaDmA==",
- "peerDependencies": {
- "chart.js": ">=3.0.0",
- "moment": "^2.10.2"
- }
- },
"node_modules/chokidar": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
@@ -4254,14 +4062,6 @@
"resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
"integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="
},
- "node_modules/clsx": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz",
- "integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==",
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/code-block-writer": {
"version": "10.1.1",
"resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-10.1.1.tgz",
@@ -4393,23 +4193,11 @@
"node": ">= 8"
}
},
- "node_modules/cssesc": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
- "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
- "dev": true,
- "bin": {
- "cssesc": "bin/cssesc"
- },
- "engines": {
- "node": ">=4"
- }
- },
"node_modules/csstype": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==",
- "devOptional": true
+ "dev": true
},
"node_modules/damerau-levenshtein": {
"version": "1.0.8",
@@ -4508,11 +4296,6 @@
"node": ">=8"
}
},
- "node_modules/detect-node-es": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
- "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ=="
- },
"node_modules/diff": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
@@ -5867,14 +5650,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/get-nonce": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
- "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/get-source": {
"version": "2.0.12",
"resolved": "https://registry.npmjs.org/get-source/-/get-source-2.0.12.tgz",
@@ -6084,24 +5859,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/highlight.js": {
- "version": "11.9.0",
- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.9.0.tgz",
- "integrity": "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==",
- "peer": true,
- "engines": {
- "node": ">=12.0.0"
- }
- },
- "node_modules/html-parse-stringify": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz",
- "integrity": "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==",
- "license": "MIT",
- "dependencies": {
- "void-elements": "3.1.0"
- }
- },
"node_modules/http-errors": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.4.0.tgz",
@@ -6140,46 +5897,6 @@
"node": ">= 14"
}
},
- "node_modules/i18next": {
- "version": "25.7.3",
- "resolved": "https://registry.npmjs.org/i18next/-/i18next-25.7.3.tgz",
- "integrity": "sha512-2XaT+HpYGuc2uTExq9TVRhLsso+Dxym6PWaKpn36wfBmTI779OQ7iP/XaZHzrnGyzU4SHpFrTYLKfVyBfAhVNA==",
- "funding": [
- {
- "type": "individual",
- "url": "https://locize.com"
- },
- {
- "type": "individual",
- "url": "https://locize.com/i18next.html"
- },
- {
- "type": "individual",
- "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "@babel/runtime": "^7.28.4"
- },
- "peerDependencies": {
- "typescript": "^5"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "node_modules/i18next-browser-languagedetector": {
- "version": "8.2.0",
- "resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-8.2.0.tgz",
- "integrity": "sha512-P+3zEKLnOF0qmiesW383vsLdtQVyKtCNA9cjSoKCppTKPQVfKd2W8hbVo5ZhNJKDqeM7BOcvNoKJOjpHh4Js9g==",
- "license": "MIT",
- "dependencies": {
- "@babel/runtime": "^7.23.2"
- }
- },
"node_modules/iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
@@ -6260,14 +5977,6 @@
"node": ">= 0.4"
}
},
- "node_modules/invariant": {
- "version": "2.2.4",
- "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
- "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
- "dependencies": {
- "loose-envify": "^1.0.0"
- }
- },
"node_modules/is-array-buffer": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz",
@@ -7011,22 +6720,6 @@
"node": ">=10"
}
},
- "node_modules/moment": {
- "version": "2.29.4",
- "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
- "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
- "engines": {
- "node": "*"
- }
- },
- "node_modules/moment-precise-range-plugin": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/moment-precise-range-plugin/-/moment-precise-range-plugin-1.3.0.tgz",
- "integrity": "sha1-YKwHX9/RRon20QKvdR0XGoC0q2A=",
- "peerDependencies": {
- "moment": ">=2.9.0"
- }
- },
"node_modules/mri": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
@@ -7193,6 +6886,7 @@
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
+ "dev": true,
"engines": {
"node": ">=0.10.0"
}
@@ -7595,108 +7289,6 @@
"node": "^10 || ^12 || >=14"
}
},
- "node_modules/postcss-js": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz",
- "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==",
- "dev": true,
- "dependencies": {
- "camelcase-css": "^2.0.1"
- },
- "engines": {
- "node": "^12 || ^14 || >= 16"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- "peerDependencies": {
- "postcss": "^8.4.21"
- }
- },
- "node_modules/postcss-mixins": {
- "version": "9.0.4",
- "resolved": "https://registry.npmjs.org/postcss-mixins/-/postcss-mixins-9.0.4.tgz",
- "integrity": "sha512-XVq5jwQJDRu5M1XGkdpgASqLk37OqkH4JCFDXl/Dn7janOJjCTEKL+36cnRVy7bMtoBzALfO7bV7nTIsFnUWLA==",
- "dev": true,
- "dependencies": {
- "fast-glob": "^3.2.11",
- "postcss-js": "^4.0.0",
- "postcss-simple-vars": "^7.0.0",
- "sugarss": "^4.0.1"
- },
- "engines": {
- "node": ">=14.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- "peerDependencies": {
- "postcss": "^8.2.14"
- }
- },
- "node_modules/postcss-nested": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz",
- "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==",
- "dev": true,
- "dependencies": {
- "postcss-selector-parser": "^6.0.11"
- },
- "engines": {
- "node": ">=12.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- "peerDependencies": {
- "postcss": "^8.2.14"
- }
- },
- "node_modules/postcss-preset-mantine": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/postcss-preset-mantine/-/postcss-preset-mantine-1.8.0.tgz",
- "integrity": "sha512-aLc+EoDXsvnXM2lWWF1MI+lgGqbd5xatVJ3KyTmsheNoXBYN0OFAkRFqyy3tfdveH64Fno2SLNEr4w/njPSInw==",
- "dev": true,
- "dependencies": {
- "postcss-mixins": "^9.0.4",
- "postcss-nested": "^6.0.1"
- },
- "peerDependencies": {
- "postcss": ">=8.0.0"
- }
- },
- "node_modules/postcss-selector-parser": {
- "version": "6.0.13",
- "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz",
- "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==",
- "dev": true,
- "dependencies": {
- "cssesc": "^3.0.0",
- "util-deprecate": "^1.0.2"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/postcss-simple-vars": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/postcss-simple-vars/-/postcss-simple-vars-7.0.1.tgz",
- "integrity": "sha512-5GLLXaS8qmzHMOjVxqkk1TZPf1jMqesiI7qLhnlyERalG0sMbHIbJqrcnrpmZdKCLglHnRHoEBB61RtGTsj++A==",
- "dev": true,
- "engines": {
- "node": ">=14.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- "peerDependencies": {
- "postcss": "^8.2.1"
- }
- },
"node_modules/prelude-ls": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
@@ -7757,6 +7349,7 @@
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
"integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "dev": true,
"dependencies": {
"loose-envify": "^1.4.0",
"object-assign": "^4.1.1",
@@ -7861,132 +7454,11 @@
"react": "^18.3.1"
}
},
- "node_modules/react-i18next": {
- "version": "16.5.0",
- "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-16.5.0.tgz",
- "integrity": "sha512-IMpPTyCTKxEj8klCrLKUTIUa8uYTd851+jcu2fJuUB9Agkk9Qq8asw4omyeHVnOXHrLgQJGTm5zTvn8HpaPiqw==",
- "license": "MIT",
- "dependencies": {
- "@babel/runtime": "^7.27.6",
- "html-parse-stringify": "^3.0.1",
- "use-sync-external-store": "^1.6.0"
- },
- "peerDependencies": {
- "i18next": ">= 25.6.2",
- "react": ">= 16.8.0",
- "typescript": "^5"
- },
- "peerDependenciesMeta": {
- "react-dom": {
- "optional": true
- },
- "react-native": {
- "optional": true
- },
- "typescript": {
- "optional": true
- }
- }
- },
"node_modules/react-is": {
"version": "16.13.1",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
- },
- "node_modules/react-number-format": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/react-number-format/-/react-number-format-5.3.1.tgz",
- "integrity": "sha512-qpYcQLauIeEhCZUZY9jXZnnroOtdy3jYaS1zQ3M1Sr6r/KMOBEIGNIb7eKT19g2N1wbYgFgvDzs19hw5TrB8XQ==",
- "dependencies": {
- "prop-types": "^15.7.2"
- },
- "peerDependencies": {
- "react": "^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
- }
- },
- "node_modules/react-remove-scroll": {
- "version": "2.5.7",
- "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.7.tgz",
- "integrity": "sha512-FnrTWO4L7/Bhhf3CYBNArEG/yROV0tKmTv7/3h9QCFvH6sndeFf1wPqOcbFVu5VAulS5dV1wGT3GZZ/1GawqiA==",
- "dependencies": {
- "react-remove-scroll-bar": "^2.3.4",
- "react-style-singleton": "^2.2.1",
- "tslib": "^2.1.0",
- "use-callback-ref": "^1.3.0",
- "use-sidecar": "^1.1.2"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/react-remove-scroll-bar": {
- "version": "2.3.4",
- "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.4.tgz",
- "integrity": "sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==",
- "dependencies": {
- "react-style-singleton": "^2.2.1",
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/react-style-singleton": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.1.tgz",
- "integrity": "sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==",
- "dependencies": {
- "get-nonce": "^1.0.0",
- "invariant": "^2.2.4",
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/react-textarea-autosize": {
- "version": "8.5.3",
- "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.5.3.tgz",
- "integrity": "sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==",
- "dependencies": {
- "@babel/runtime": "^7.20.13",
- "use-composed-ref": "^1.3.0",
- "use-latest": "^1.2.1"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- }
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "dev": true
},
"node_modules/readdirp": {
"version": "3.6.0",
@@ -8596,22 +8068,6 @@
}
}
},
- "node_modules/sugarss": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/sugarss/-/sugarss-4.0.1.tgz",
- "integrity": "sha512-WCjS5NfuVJjkQzK10s8WOBY+hhDxxNt/N6ZaGwxFZ+wN3/lKKFSaaKUNecULcTTvE4urLcKaZFQD8vO0mOZujw==",
- "dev": true,
- "engines": {
- "node": ">=12.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- "peerDependencies": {
- "postcss": "^8.3.3"
- }
- },
"node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -8636,11 +8092,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/tabbable": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz",
- "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew=="
- },
"node_modules/tapable": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
@@ -8887,7 +8338,7 @@
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
- "devOptional": true,
+ "dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -8979,99 +8430,6 @@
"punycode": "^2.1.0"
}
},
- "node_modules/use-callback-ref": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.0.tgz",
- "integrity": "sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==",
- "dependencies": {
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/use-composed-ref": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.3.0.tgz",
- "integrity": "sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==",
- "peerDependencies": {
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- }
- },
- "node_modules/use-isomorphic-layout-effect": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz",
- "integrity": "sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==",
- "peerDependencies": {
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/use-latest": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.2.1.tgz",
- "integrity": "sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==",
- "dependencies": {
- "use-isomorphic-layout-effect": "^1.1.1"
- },
- "peerDependencies": {
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/use-sidecar": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.2.tgz",
- "integrity": "sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==",
- "dependencies": {
- "detect-node-es": "^1.1.0",
- "tslib": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
- "node_modules/use-sync-external-store": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
- "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",
- "license": "MIT",
- "peerDependencies": {
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
- }
- },
- "node_modules/util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
- "dev": true
- },
"node_modules/uuid": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
@@ -9154,15 +8512,6 @@
"url": "https://paulmillr.com/funding/"
}
},
- "node_modules/void-elements": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz",
- "integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==",
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/web-vitals": {
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-0.2.4.tgz",
@@ -9811,7 +9160,8 @@
"@babel/runtime": {
"version": "7.28.4",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz",
- "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ=="
+ "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==",
+ "dev": true
},
"@cloudflare/kv-asset-handler": {
"version": "0.4.1",
@@ -10217,46 +9567,6 @@
"integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==",
"dev": true
},
- "@floating-ui/core": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.0.tgz",
- "integrity": "sha512-kK1h4m36DQ0UHGj5Ah4db7R0rHemTqqO0QLvUqi1/mUUp3LuAWbWxdxSIf/XsnH9VS6rRVPLJCncjRzUvyCLXg==",
- "requires": {
- "@floating-ui/utils": "^0.1.3"
- }
- },
- "@floating-ui/dom": {
- "version": "1.5.3",
- "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz",
- "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==",
- "requires": {
- "@floating-ui/core": "^1.4.2",
- "@floating-ui/utils": "^0.1.3"
- }
- },
- "@floating-ui/react": {
- "version": "0.24.8",
- "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.24.8.tgz",
- "integrity": "sha512-AuYeDoaR8jtUlUXtZ1IJ/6jtBkGnSpJXbGNzokBL87VDJ8opMq1Bgrc0szhK482ReQY6KZsMoZCVSb4xwalkBA==",
- "requires": {
- "@floating-ui/react-dom": "^2.0.1",
- "aria-hidden": "^1.2.3",
- "tabbable": "^6.0.1"
- }
- },
- "@floating-ui/react-dom": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.2.tgz",
- "integrity": "sha512-5qhlDvjaLmAst/rKb3VdlCinwTF4EYMiVxuuc/HVUjs46W0zgtbMmAZ1UTsDrRTxRmUEzl92mOtWbeeXL26lSQ==",
- "requires": {
- "@floating-ui/dom": "^1.5.1"
- }
- },
- "@floating-ui/utils": {
- "version": "0.1.6",
- "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz",
- "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A=="
- },
"@humanwhocodes/config-array": {
"version": "0.13.0",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",
@@ -10528,50 +9838,6 @@
"resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.2.tgz",
"integrity": "sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw=="
},
- "@mantine/code-highlight": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/@mantine/code-highlight/-/code-highlight-7.1.3.tgz",
- "integrity": "sha512-Z+E++yrOcqoKpgf34dw13y6M9K/qtqEnLftKiwwE2RL6C8+0gI8iVYU7Y7yuvFPgntZ1DOnSs+d2OEsxuECoiw==",
- "peer": true,
- "requires": {
- "clsx": "2.0.0",
- "highlight.js": "^11.7.0"
- }
- },
- "@mantine/core": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/@mantine/core/-/core-7.1.3.tgz",
- "integrity": "sha512-5vLwrMFVlGkd56HDoz5woE7I48XuycoyKaasJj49LTn2MuccHvNJ7c0VPlRlbzK8YQuwV7g1KsBAM8zzJlwqig==",
- "requires": {
- "@floating-ui/react": "^0.24.8",
- "clsx": "2.0.0",
- "react-number-format": "^5.2.2",
- "react-remove-scroll": "^2.5.6",
- "react-textarea-autosize": "8.5.3",
- "type-fest": "^3.13.1"
- },
- "dependencies": {
- "type-fest": {
- "version": "3.13.1",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.1.tgz",
- "integrity": "sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g=="
- }
- }
- },
- "@mantine/ds": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/@mantine/ds/-/ds-7.1.3.tgz",
- "integrity": "sha512-GTdS4J9XsNG6us56haksC2EcNb0EPkJsGoiBu2MO7zdmmIqQsPtF/DVGzr9XxkTxFmRkgd9qkVvsA9eOqRQEKg==",
- "requires": {
- "clsx": "2.0.0"
- }
- },
- "@mantine/hooks": {
- "version": "7.1.3",
- "resolved": "https://registry.npmjs.org/@mantine/hooks/-/hooks-7.1.3.tgz",
- "integrity": "sha512-jCOedyl229vzNEoya9L/PIeT+Btwuoqh09vRbFRNoTdRZgVMTWi4BT08BRWK5iqSa9PlvWtIaSGcCtjqqXKZcA==",
- "requires": {}
- },
"@mapbox/node-pre-gyp": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-2.0.0.tgz",
@@ -10884,20 +10150,6 @@
"tslib": "^2.4.0"
}
},
- "@tabler/icons": {
- "version": "2.39.0",
- "resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-2.39.0.tgz",
- "integrity": "sha512-iK3j2jIEGIUaJcbYYg5iwyG1Y/m4lzUxAUbxRpvgeXCWP29jvZaH5hajZmU3KaSealddHuJg7PSQislPHpCsoQ=="
- },
- "@tabler/icons-react": {
- "version": "2.39.0",
- "resolved": "https://registry.npmjs.org/@tabler/icons-react/-/icons-react-2.39.0.tgz",
- "integrity": "sha512-MyUK1jqtmHPZBnDXqIc1Y5OnfoqG+tGaSB1/gcl0mlY462fJ5f3QB0ZIZzAHMAGYb6K2iJSdFIFavhcgpDDZ7Q==",
- "requires": {
- "@tabler/icons": "2.39.0",
- "prop-types": "^15.7.2"
- }
- },
"@tootallnate/once": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz",
@@ -10966,14 +10218,6 @@
"integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=",
"dev": true
},
- "@types/moment-precise-range-plugin": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/@types/moment-precise-range-plugin/-/moment-precise-range-plugin-0.2.2.tgz",
- "integrity": "sha512-Iof7Z9Ej/LbeE2++cap0SaSpDzMen9hT/ced3BwPhyUl5PWAgxR7sDxx4i0hYTOYshaMqH8hjXD0+CVBBYhEpw==",
- "requires": {
- "moment": ">=2.14.0"
- }
- },
"@types/node": {
"version": "20.8.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.4.tgz",
@@ -10987,13 +10231,13 @@
"version": "15.7.8",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.8.tgz",
"integrity": "sha512-kMpQpfZKSCBqltAJwskgePRaYRFukDkm1oItcAbC3gNELR20XIBcN9VRgg4+m8DKsTfkWeA4m4Imp4DDuWy7FQ==",
- "devOptional": true
+ "dev": true
},
"@types/react": {
"version": "18.2.28",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.28.tgz",
"integrity": "sha512-ad4aa/RaaJS3hyGz0BGegdnSRXQBkd1CCYDCdNjBPg90UUpLgo+WlJqb9fMYUxtehmzF3PJaTWqRZjko6BRzBg==",
- "devOptional": true,
+ "dev": true,
"requires": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@@ -11013,7 +10257,7 @@
"version": "0.16.4",
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.4.tgz",
"integrity": "sha512-2L9ifAGl7wmXwP4v3pN4p2FLhD0O1qsJpvKmNin5VA8+UvNVb447UDaAEV6UdrkA+m/Xs58U1RFps44x6TFsVQ==",
- "devOptional": true
+ "dev": true
},
"@typescript-eslint/eslint-plugin": {
"version": "8.29.1",
@@ -11973,14 +11217,6 @@
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
"dev": true
},
- "aria-hidden": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.3.tgz",
- "integrity": "sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==",
- "requires": {
- "tslib": "^2.0.0"
- }
- },
"aria-query": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
@@ -12231,12 +11467,6 @@
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
"dev": true
},
- "camelcase-css": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
- "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
- "dev": true
- },
"caniuse-lite": {
"version": "1.0.30001713",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001713.tgz",
@@ -12260,12 +11490,6 @@
"@kurkle/color": "^0.3.0"
}
},
- "chartjs-adapter-moment": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/chartjs-adapter-moment/-/chartjs-adapter-moment-1.0.1.tgz",
- "integrity": "sha512-Uz+nTX/GxocuqXpGylxK19YG4R3OSVf8326D+HwSTsNw1LgzyIGRo+Qujwro1wy6X+soNSnfj5t2vZ+r6EaDmA==",
- "requires": {}
- },
"chokidar": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
@@ -12312,11 +11536,6 @@
"resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
"integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="
},
- "clsx": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz",
- "integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q=="
- },
"code-block-writer": {
"version": "10.1.1",
"resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-10.1.1.tgz",
@@ -12416,17 +11635,11 @@
"which": "^2.0.1"
}
},
- "cssesc": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
- "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
- "dev": true
- },
"csstype": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==",
- "devOptional": true
+ "dev": true
},
"damerau-levenshtein": {
"version": "1.0.8",
@@ -12496,11 +11709,6 @@
"integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==",
"dev": true
},
- "detect-node-es": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
- "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ=="
- },
"diff": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
@@ -13443,11 +12651,6 @@
"has-symbols": "^1.0.3"
}
},
- "get-nonce": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
- "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q=="
- },
"get-source": {
"version": "2.0.12",
"resolved": "https://registry.npmjs.org/get-source/-/get-source-2.0.12.tgz",
@@ -13592,20 +12795,6 @@
"has-symbols": "^1.0.2"
}
},
- "highlight.js": {
- "version": "11.9.0",
- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.9.0.tgz",
- "integrity": "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==",
- "peer": true
- },
- "html-parse-stringify": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz",
- "integrity": "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==",
- "requires": {
- "void-elements": "3.1.0"
- }
- },
"http-errors": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.4.0.tgz",
@@ -13637,22 +12826,6 @@
"debug": "4"
}
},
- "i18next": {
- "version": "25.7.3",
- "resolved": "https://registry.npmjs.org/i18next/-/i18next-25.7.3.tgz",
- "integrity": "sha512-2XaT+HpYGuc2uTExq9TVRhLsso+Dxym6PWaKpn36wfBmTI779OQ7iP/XaZHzrnGyzU4SHpFrTYLKfVyBfAhVNA==",
- "requires": {
- "@babel/runtime": "^7.28.4"
- }
- },
- "i18next-browser-languagedetector": {
- "version": "8.2.0",
- "resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-8.2.0.tgz",
- "integrity": "sha512-P+3zEKLnOF0qmiesW383vsLdtQVyKtCNA9cjSoKCppTKPQVfKd2W8hbVo5ZhNJKDqeM7BOcvNoKJOjpHh4Js9g==",
- "requires": {
- "@babel/runtime": "^7.23.2"
- }
- },
"iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
@@ -13712,14 +12885,6 @@
"side-channel": "^1.0.4"
}
},
- "invariant": {
- "version": "2.2.4",
- "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
- "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
- "requires": {
- "loose-envify": "^1.0.0"
- }
- },
"is-array-buffer": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz",
@@ -14249,17 +13414,6 @@
"dev": true,
"peer": true
},
- "moment": {
- "version": "2.29.4",
- "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
- "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w=="
- },
- "moment-precise-range-plugin": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/moment-precise-range-plugin/-/moment-precise-range-plugin-1.3.0.tgz",
- "integrity": "sha1-YKwHX9/RRon20QKvdR0XGoC0q2A=",
- "requires": {}
- },
"mri": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
@@ -14349,7 +13503,8 @@
"object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
+ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
+ "dev": true
},
"object-inspect": {
"version": "1.12.3",
@@ -14643,63 +13798,6 @@
"source-map-js": "^1.0.2"
}
},
- "postcss-js": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz",
- "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==",
- "dev": true,
- "requires": {
- "camelcase-css": "^2.0.1"
- }
- },
- "postcss-mixins": {
- "version": "9.0.4",
- "resolved": "https://registry.npmjs.org/postcss-mixins/-/postcss-mixins-9.0.4.tgz",
- "integrity": "sha512-XVq5jwQJDRu5M1XGkdpgASqLk37OqkH4JCFDXl/Dn7janOJjCTEKL+36cnRVy7bMtoBzALfO7bV7nTIsFnUWLA==",
- "dev": true,
- "requires": {
- "fast-glob": "^3.2.11",
- "postcss-js": "^4.0.0",
- "postcss-simple-vars": "^7.0.0",
- "sugarss": "^4.0.1"
- }
- },
- "postcss-nested": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz",
- "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==",
- "dev": true,
- "requires": {
- "postcss-selector-parser": "^6.0.11"
- }
- },
- "postcss-preset-mantine": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/postcss-preset-mantine/-/postcss-preset-mantine-1.8.0.tgz",
- "integrity": "sha512-aLc+EoDXsvnXM2lWWF1MI+lgGqbd5xatVJ3KyTmsheNoXBYN0OFAkRFqyy3tfdveH64Fno2SLNEr4w/njPSInw==",
- "dev": true,
- "requires": {
- "postcss-mixins": "^9.0.4",
- "postcss-nested": "^6.0.1"
- }
- },
- "postcss-selector-parser": {
- "version": "6.0.13",
- "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz",
- "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==",
- "dev": true,
- "requires": {
- "cssesc": "^3.0.0",
- "util-deprecate": "^1.0.2"
- }
- },
- "postcss-simple-vars": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/postcss-simple-vars/-/postcss-simple-vars-7.0.1.tgz",
- "integrity": "sha512-5GLLXaS8qmzHMOjVxqkk1TZPf1jMqesiI7qLhnlyERalG0sMbHIbJqrcnrpmZdKCLglHnRHoEBB61RtGTsj++A==",
- "dev": true,
- "requires": {}
- },
"prelude-ls": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
@@ -14739,6 +13837,7 @@
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
"integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "dev": true,
"requires": {
"loose-envify": "^1.4.0",
"object-assign": "^4.1.1",
@@ -14809,69 +13908,11 @@
"scheduler": "^0.23.2"
}
},
- "react-i18next": {
- "version": "16.5.0",
- "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-16.5.0.tgz",
- "integrity": "sha512-IMpPTyCTKxEj8klCrLKUTIUa8uYTd851+jcu2fJuUB9Agkk9Qq8asw4omyeHVnOXHrLgQJGTm5zTvn8HpaPiqw==",
- "requires": {
- "@babel/runtime": "^7.27.6",
- "html-parse-stringify": "^3.0.1",
- "use-sync-external-store": "^1.6.0"
- }
- },
"react-is": {
"version": "16.13.1",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
- },
- "react-number-format": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/react-number-format/-/react-number-format-5.3.1.tgz",
- "integrity": "sha512-qpYcQLauIeEhCZUZY9jXZnnroOtdy3jYaS1zQ3M1Sr6r/KMOBEIGNIb7eKT19g2N1wbYgFgvDzs19hw5TrB8XQ==",
- "requires": {
- "prop-types": "^15.7.2"
- }
- },
- "react-remove-scroll": {
- "version": "2.5.7",
- "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.7.tgz",
- "integrity": "sha512-FnrTWO4L7/Bhhf3CYBNArEG/yROV0tKmTv7/3h9QCFvH6sndeFf1wPqOcbFVu5VAulS5dV1wGT3GZZ/1GawqiA==",
- "requires": {
- "react-remove-scroll-bar": "^2.3.4",
- "react-style-singleton": "^2.2.1",
- "tslib": "^2.1.0",
- "use-callback-ref": "^1.3.0",
- "use-sidecar": "^1.1.2"
- }
- },
- "react-remove-scroll-bar": {
- "version": "2.3.4",
- "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.4.tgz",
- "integrity": "sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==",
- "requires": {
- "react-style-singleton": "^2.2.1",
- "tslib": "^2.0.0"
- }
- },
- "react-style-singleton": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.1.tgz",
- "integrity": "sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==",
- "requires": {
- "get-nonce": "^1.0.0",
- "invariant": "^2.2.4",
- "tslib": "^2.0.0"
- }
- },
- "react-textarea-autosize": {
- "version": "8.5.3",
- "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.5.3.tgz",
- "integrity": "sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==",
- "requires": {
- "@babel/runtime": "^7.20.13",
- "use-composed-ref": "^1.3.0",
- "use-latest": "^1.2.1"
- }
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "dev": true
},
"readdirp": {
"version": "3.6.0",
@@ -15303,13 +14344,6 @@
"client-only": "0.0.1"
}
},
- "sugarss": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/sugarss/-/sugarss-4.0.1.tgz",
- "integrity": "sha512-WCjS5NfuVJjkQzK10s8WOBY+hhDxxNt/N6ZaGwxFZ+wN3/lKKFSaaKUNecULcTTvE4urLcKaZFQD8vO0mOZujw==",
- "dev": true,
- "requires": {}
- },
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -15325,11 +14359,6 @@
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
"dev": true
},
- "tabbable": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz",
- "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew=="
- },
"tapable": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
@@ -15512,7 +14541,7 @@
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
- "devOptional": true
+ "dev": true
},
"uid-promise": {
"version": "1.0.0",
@@ -15580,55 +14609,6 @@
"punycode": "^2.1.0"
}
},
- "use-callback-ref": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.0.tgz",
- "integrity": "sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==",
- "requires": {
- "tslib": "^2.0.0"
- }
- },
- "use-composed-ref": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.3.0.tgz",
- "integrity": "sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==",
- "requires": {}
- },
- "use-isomorphic-layout-effect": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz",
- "integrity": "sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==",
- "requires": {}
- },
- "use-latest": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.2.1.tgz",
- "integrity": "sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==",
- "requires": {
- "use-isomorphic-layout-effect": "^1.1.1"
- }
- },
- "use-sidecar": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.2.tgz",
- "integrity": "sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==",
- "requires": {
- "detect-node-es": "^1.1.0",
- "tslib": "^2.0.0"
- }
- },
- "use-sync-external-store": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
- "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",
- "requires": {}
- },
- "util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
- "dev": true
- },
"uuid": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
@@ -15684,11 +14664,6 @@
}
}
},
- "void-elements": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz",
- "integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w=="
- },
"web-vitals": {
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-0.2.4.tgz",
diff --git a/package.json b/package.json
index dc9551a..de88a30 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "uptimeflare",
+ "name": "cottage-status",
"version": "0.1.0",
"private": true,
"scripts": {
@@ -11,22 +11,11 @@
},
"dependencies": {
"@cloudflare/workers-types": "^4.20250410.0",
- "@mantine/core": "^7.1.3",
- "@mantine/ds": "^7.1.3",
- "@mantine/hooks": "^7.1.3",
- "@tabler/icons-react": "^2.39.0",
- "@types/moment-precise-range-plugin": "^0.2.2",
"chart.js": "^4.4.0",
- "chartjs-adapter-moment": "^1.0.1",
- "i18next": "^25.7.3",
- "i18next-browser-languagedetector": "^8.2.0",
- "moment": "^2.29.4",
- "moment-precise-range-plugin": "^1.3.0",
"next": "^14.2.28",
"react": "^18.3.1",
"react-chartjs-2": "^5.2.0",
- "react-dom": "^18.3.1",
- "react-i18next": "^16.5.0"
+ "react-dom": "^18.3.1"
},
"devDependencies": {
"@cloudflare/next-on-pages": "^1.13.12",
@@ -35,9 +24,6 @@
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "^14.2.28",
- "postcss": "^8.4.31",
- "postcss-preset-mantine": "^1.8.0",
- "postcss-simple-vars": "^7.0.1",
"prettier": "3.0.3",
"typescript": "^5",
"wrangler": "^4.54.0"
diff --git a/pages/_app.tsx b/pages/_app.tsx
index 1521da4..c0e9ad6 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -1,15 +1,14 @@
-import '@mantine/core/styles.css'
import type { AppProps } from 'next/app'
-import { MantineProvider } from '@mantine/core'
import NoSsr from '@/components/NoSsr'
-import '@/util/i18n'
+import '@/styles/brand/fonts.css'
+import '@/styles/brand/tokens.css'
+import '@/styles/brand/bundle.css'
+import '@/styles/status.css'
export default function App({ Component, pageProps }: AppProps) {
return (
-
-
-
+
)
}
diff --git a/pages/_document.tsx b/pages/_document.tsx
index 83374be..9d42859 100644
--- a/pages/_document.tsx
+++ b/pages/_document.tsx
@@ -1,11 +1,18 @@
import { Html, Head, Main, NextScript } from 'next/document'
-import { ColorSchemeScript } from '@mantine/core'
+
+// Cottage is light-first; dark ("evening") follows the OS setting. The tokens switch on
+// data-theme, set here before first paint so there's no flash.
+const themeScript = `(function(){var m=window.matchMedia('(prefers-color-scheme: dark)');function s(){document.documentElement.setAttribute('data-theme',m.matches?'dark':'light')}s();m.addEventListener('change',s)})()`
export default function Document() {
return (
-
+
-
+
+
+
+
+
diff --git a/pages/incidents.tsx b/pages/incidents.tsx
index 480e5e4..f393815 100644
--- a/pages/incidents.tsx
+++ b/pages/incidents.tsx
@@ -1,144 +1,127 @@
import Head from 'next/head'
-
-import { Inter } from 'next/font/google'
-import { MaintenanceConfig, MonitorTarget } from '@/types/config'
-import { maintenances, pageConfig } from '@/uptime.config'
-import Header from '@/components/Header'
-import { Box, Button, Center, Container, Group, Select } from '@mantine/core'
-import Footer from '@/components/Footer'
import { useEffect, useState } from 'react'
-import MaintenanceAlert from '@/components/MaintenanceAlert'
-import NoIncidentsAlert from '@/components/NoIncidents'
-import { useTranslation } from 'react-i18next'
+import { MaintenanceConfig, MonitorTarget } from '@/types/config'
+import { maintenances as configMaintenances, pageConfig } from '@/uptime.config'
+import Header from '@/components/Header'
+import Footer from '@/components/Footer'
+import Notice from '@/components/Notice'
+import { EmptyState } from '@/components/brand'
export const runtime = 'experimental-edge'
-const inter = Inter({ subsets: ['latin'] })
-function getSelectedMonth() {
+const monthKey = (d: Date) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}`
+
+function selectedMonth() {
const hash = window.location.hash.replace('#', '')
- if (!hash) {
- const now = new Date()
- return now.getFullYear() + '-' + String(now.getMonth() + 1).padStart(2, '0')
- }
- return hash.split('-').splice(0, 2).join('-')
+ return /^\d{4}-\d{2}$/.test(hash) ? hash : monthKey(new Date())
}
-function filterIncidentsByMonth(
- incidents: MaintenanceConfig[],
- monthStr: string,
+function shift(month: string, by: number) {
+ const [y, m] = month.split('-').map(Number)
+ return monthKey(new Date(y, m - 1 + by))
+}
+
+function monthName(month: string) {
+ const [y, m] = month.split('-').map(Number)
+ return new Date(y, m - 1).toLocaleDateString(undefined, { month: 'long', year: 'numeric' })
+}
+
+export default function Incidents({
+ monitors,
+ maintenances,
+}: {
monitors: MonitorTarget[]
-): (Omit & { monitors: MonitorTarget[] })[] {
- return incidents
- .filter((incident) => {
- const d = new Date(incident.start)
- const incidentMonth = d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0')
- return incidentMonth === monthStr
- })
- .map((e) => ({
- ...e,
- monitors: (e.monitors || []).map((e) => monitors.find((mon) => mon.id === e)!),
- }))
- .sort((a, b) => (new Date(a.start) > new Date(b.start) ? -1 : 1))
-}
-
-function getPrevNextMonth(monthStr: string) {
- const [year, month] = monthStr.split('-').map(Number)
- const date = new Date(year, month - 1)
- const prev = new Date(date)
- prev.setMonth(prev.getMonth() - 1)
- const next = new Date(date)
- next.setMonth(next.getMonth() + 1)
- return {
- prev: prev.getFullYear() + '-' + String(prev.getMonth() + 1).padStart(2, '0'),
- next: next.getFullYear() + '-' + String(next.getMonth() + 1).padStart(2, '0'),
- }
-}
-
-export default function IncidentsPage({ monitors }: { monitors: MonitorTarget[] }) {
- const { t } = useTranslation('common')
- const [selectedMonitor, setSelectedMonitor] = useState('')
- const [selectedMonth, setSelectedMonth] = useState(getSelectedMonth())
+ maintenances: MaintenanceConfig[]
+}) {
+ const [month, setMonth] = useState(selectedMonth)
+ const [service, setService] = useState('')
useEffect(() => {
- const onHashChange = () => setSelectedMonth(getSelectedMonth())
- window.addEventListener('hashchange', onHashChange)
- return () => window.removeEventListener('hashchange', onHashChange)
+ const onHash = () => setMonth(selectedMonth())
+ window.addEventListener('hashchange', onHash)
+ return () => window.removeEventListener('hashchange', onHash)
}, [])
- const filteredIncidents = filterIncidentsByMonth(maintenances, selectedMonth, monitors)
- const monitorFilteredIncidents = selectedMonitor
- ? filteredIncidents.filter((i) => i.monitors.find((e) => e.id === selectedMonitor))
- : filteredIncidents
-
- const { prev, next } = getPrevNextMonth(selectedMonth)
-
- const monitorOptions = [
- { value: '', label: t('All') },
- ...monitors.map((monitor) => ({
- value: monitor.id,
- label: monitor.name,
- })),
- ]
+ const list = maintenances
+ .filter((n) => monthKey(new Date(n.start)) === month)
+ .filter((n) => !service || n.monitors?.includes(service))
+ .sort((a, b) => +new Date(b.start) - +new Date(a.start))
+ const isCurrentMonth = month === monthKey(new Date())
return (
<>
- {pageConfig.title}
-
+ {`Incident history · ${pageConfig.title}`}
+
+
+
+
+
Incident history
+
+ Every incident update and planned maintenance we’ve posted, by month.
+
+
-
-
-
-
-
-
-
-
- {monitorFilteredIncidents.length === 0 ? (
-
- ) : (
- monitorFilteredIncidents.map((incident, i) => (
-
- ))
- )}
-
-
- (window.location.hash = prev)}>
- {t('Backwards')}
-
-
- {selectedMonth}
-
- (window.location.hash = next)}>
- {t('Forward')}
-
-
-
-
-
+
+
+
+ Service
+ setService(e.target.value)}>
+ All services
+ {monitors.map((m) => (
+
+ {m.name}
+
+ ))}
+
+
+
+
+ {list.length === 0 ? (
+
+ We post here whenever something affects Cottage, and before planned maintenance.
+ Short blips our checks caught show on each service’s uptime bars.
+
+ ) : (
+
+ {list.map((n, i) => (
+ new Date()} />
+ ))}
+
+ )}
+
+
>
)
}
-export async function getServerSideProps() {
+export async function getServerSideProps({ query }: { query: Record }) {
const { workerConfig } = await import('@/uptime.config')
- // Only present these values to client
- const monitors: MonitorTarget[] = workerConfig.monitors.map((monitor) => ({
- id: monitor.id,
- name: monitor.name,
- })) as MonitorTarget[]
- return { props: { monitors } }
+ const monitors = workerConfig.monitors.map((m) => ({ id: m.id, name: m.name }))
+ if (process.env.NODE_ENV === 'development' && !(process.env as any).UPTIMEFLARE_D1) {
+ const { sampleNotices } = await import('@/dev/sample')
+ return { props: { monitors, maintenances: sampleNotices(String(query.sample ?? '')) } }
+ }
+ return { props: { monitors, maintenances: configMaintenances } }
}
diff --git a/pages/index.tsx b/pages/index.tsx
index 8af1e64..4fad87a 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -1,43 +1,39 @@
import Head from 'next/head'
-
-import { Inter } from 'next/font/google'
-import { MonitorTarget } from '@/types/config'
-import { maintenances, pageConfig } from '@/uptime.config'
+import Link from 'next/link'
+import { MaintenanceConfig, MonitorTarget } from '@/types/config'
+import { maintenances as configMaintenances, pageConfig } from '@/uptime.config'
import OverallStatus from '@/components/OverallStatus'
import Header from '@/components/Header'
import MonitorList from '@/components/MonitorList'
-import { Center, Text } from '@mantine/core'
-import MonitorDetail from '@/components/MonitorDetail'
import Footer from '@/components/Footer'
-import { useTranslation } from 'react-i18next'
+import UptimeBars from '@/components/UptimeBars'
import { CompactedMonitorStateWrapper, getFromStore } from '@/worker/src/store'
export const runtime = 'experimental-edge'
-const inter = Inter({ subsets: ['latin'] })
export default function Home({
compactedStateStr,
monitors,
+ maintenances,
}: {
- compactedStateStr: string
+ compactedStateStr: string | null
monitors: MonitorTarget[]
- tooltip?: string
- statusPageLink?: string
+ maintenances: MaintenanceConfig[]
}) {
- const { t } = useTranslation('common')
- let state = new CompactedMonitorStateWrapper(compactedStateStr).uncompact()
+ const state = new CompactedMonitorStateWrapper(compactedStateStr).uncompact()
- // Specify monitorId in URL hash to view a specific monitor (can be used in iframe)
+ // #monitor-id shows one service's bars on its own (for embedding in an iframe).
const monitorId = window.location.hash.substring(1)
if (monitorId) {
- const monitor = monitors.find((monitor) => monitor.id === monitorId)
- if (!monitor || !state) {
- return {t('Monitor not found', { id: monitorId })}
- }
+ const monitor = monitors.find((m) => m.id === monitorId)
return (
-
-
-
+
+ {monitor && state.incident[monitor.id] ? (
+
+ ) : (
+ No service called “{monitorId}”.
+ )}
+
)
}
@@ -45,47 +41,41 @@ export default function Home({
<>
{pageConfig.title}
-
+
-
-
-
-
- {state.lastUpdate === 0 ? (
-
- {t('Monitor State not defined')}
-
- ) : (
-
-
-
-
- )}
-
-
+
+
+
+
+
+
+ Uptime covers the last 90 days. Planned maintenance and incident updates are listed under{' '}
+ Incident history.
+
+
+
>
)
}
-export async function getServerSideProps() {
+export async function getServerSideProps({ query }: { query: Record }) {
const { workerConfig } = await import('@/uptime.config')
- // Read state as string from storage, to avoid hitting server-side cpu time limit
+ const monitors = workerConfig.monitors.map((m) => ({
+ id: m.id,
+ name: m.name,
+ tooltip: m.tooltip ?? null,
+ statusPageLink: m.statusPageLink ?? null,
+ hideLatencyChart: m.hideLatencyChart ?? null,
+ }))
+
+ // `npm run dev` has no D1 database: show sample data instead (dev/sample.ts).
+ if (process.env.NODE_ENV === 'development' && !(process.env as any).UPTIMEFLARE_D1) {
+ const { sampleState, sampleNotices } = await import('@/dev/sample')
+ return { props: { compactedStateStr: sampleState(workerConfig.monitors, String(query.sample ?? '')), monitors, maintenances: sampleNotices(String(query.sample ?? '')) } }
+ }
+
+ // Read the state as a string, so the server stays inside its CPU limit.
const compactedStateStr = await getFromStore(process.env as any, 'state')
-
- // Only present these values to client
- const monitors = workerConfig.monitors.map((monitor) => {
- return {
- id: monitor.id,
- name: monitor.name,
- // @ts-ignore
- tooltip: monitor?.tooltip,
- // @ts-ignore
- statusPageLink: monitor?.statusPageLink,
- // @ts-ignore
- hideLatencyChart: monitor?.hideLatencyChart,
- }
- })
-
- return { props: { compactedStateStr, monitors } }
+ return { props: { compactedStateStr, monitors, maintenances: configMaintenances } }
}
diff --git a/postcss.config.js b/postcss.config.js
deleted file mode 100644
index 6a68362..0000000
--- a/postcss.config.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = {
- plugins: {
- 'postcss-preset-mantine': {},
- 'postcss-simple-vars': {
- variables: {
- 'mantine-breakpoint-xs': '36em',
- 'mantine-breakpoint-sm': '48em',
- 'mantine-breakpoint-md': '62em',
- 'mantine-breakpoint-lg': '75em',
- 'mantine-breakpoint-xl': '88em',
- },
- },
- },
-}
diff --git a/public/favicon-16.svg b/public/favicon-16.svg
new file mode 100644
index 0000000..0747b01
--- /dev/null
+++ b/public/favicon-16.svg
@@ -0,0 +1 @@
+Cottage
diff --git a/public/favicon.png b/public/favicon.png
deleted file mode 100644
index bd489a0..0000000
Binary files a/public/favicon.png and /dev/null differ
diff --git a/public/favicon.svg b/public/favicon.svg
new file mode 100644
index 0000000..47a90f4
--- /dev/null
+++ b/public/favicon.svg
@@ -0,0 +1 @@
+Cottage
diff --git a/public/fonts/Fraunces-400-700.woff2 b/public/fonts/Fraunces-400-700.woff2
new file mode 100644
index 0000000..4c7b557
Binary files /dev/null and b/public/fonts/Fraunces-400-700.woff2 differ
diff --git a/public/fonts/HankenGrotesk-400-700.woff2 b/public/fonts/HankenGrotesk-400-700.woff2
new file mode 100644
index 0000000..e71775f
Binary files /dev/null and b/public/fonts/HankenGrotesk-400-700.woff2 differ
diff --git a/public/fonts/JetBrainsMono-400.woff2 b/public/fonts/JetBrainsMono-400.woff2
new file mode 100644
index 0000000..2ca6ac6
Binary files /dev/null and b/public/fonts/JetBrainsMono-400.woff2 differ
diff --git a/public/fonts/JetBrainsMono-500.woff2 b/public/fonts/JetBrainsMono-500.woff2
new file mode 100644
index 0000000..2ca6ac6
Binary files /dev/null and b/public/fonts/JetBrainsMono-500.woff2 differ
diff --git a/public/fonts/OFL-fraunces.txt b/public/fonts/OFL-fraunces.txt
new file mode 100644
index 0000000..22fa7ce
--- /dev/null
+++ b/public/fonts/OFL-fraunces.txt
@@ -0,0 +1,93 @@
+Copyright 2018 The Fraunces Project Authors (https://github.com/undercasetype/Fraunces)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/public/fonts/OFL-hankengrotesk.txt b/public/fonts/OFL-hankengrotesk.txt
new file mode 100644
index 0000000..9c8185d
--- /dev/null
+++ b/public/fonts/OFL-hankengrotesk.txt
@@ -0,0 +1,94 @@
+Copyright 2021 The Hanken Grotesk Project Authors (https://github.com/marcologous/hanken-grotesk)
+
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/public/fonts/OFL-jetbrainsmono.txt b/public/fonts/OFL-jetbrainsmono.txt
new file mode 100644
index 0000000..821a3da
--- /dev/null
+++ b/public/fonts/OFL-jetbrainsmono.txt
@@ -0,0 +1,93 @@
+Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+
+This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/public/logo.svg b/public/logo.svg
deleted file mode 100644
index 5290cf1..0000000
--- a/public/logo.svg
+++ /dev/null
@@ -1,154 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/styles/Header.module.css b/styles/Header.module.css
deleted file mode 100644
index 45257cd..0000000
--- a/styles/Header.module.css
+++ /dev/null
@@ -1,33 +0,0 @@
-.header {
- height: rem(56px);
- margin-bottom: rem(100px);
- background-color: var(--mantine-color-body);
- border-bottom: rem(1px) solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));
-}
-
-.inner {
- height: rem(56px);
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
-
-.link {
- display: block;
- line-height: 1;
- padding: rem(8px) rem(12px);
- border-radius: var(--mantine-radius-sm);
- text-decoration: none;
- color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-dark-0));
- font-size: var(--mantine-font-size-sm);
- font-weight: 500;
-
- @mixin hover {
- background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));
- }
-
- [data-mantine-color-scheme] &[data-active] {
- background-color: var(--mantine-color-blue-filled);
- color: var(--mantine-color-white);
- }
-}
diff --git a/styles/brand/bundle.css b/styles/brand/bundle.css
new file mode 100644
index 0000000..fa0908f
--- /dev/null
+++ b/styles/brand/bundle.css
@@ -0,0 +1,198 @@
+
+/* ---------- base ---------- */
+body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
+.ct-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
+.ct-num { text-align: right; font-variant-numeric: tabular-nums; }
+.ct-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-5); }
+.ct-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); max-width: 420px; }
+:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); }
+@keyframes ct-spin { to { transform: rotate(360deg); } }
+.ct-spin { animation: ct-spin 0.9s linear infinite; }
+@media (prefers-reduced-motion: reduce) { .ct-spin { animation: none; } }
+
+/* ---------- Logo ---------- */
+.ct-logo { display: inline-flex; align-items: center; gap: 0.32em; color: inherit; line-height: 1; }
+.ct-logo__mark { display: block; flex: none; }
+.ct-logo__roof { stroke: var(--moss); }
+.ct-logo__pod { fill: var(--moss); }
+.ct-logo__pod--lit { fill: var(--hearth); }
+.ct-logo__mark--mono .ct-logo__roof { stroke: currentColor; }
+.ct-logo__mark--mono .ct-logo__pod { fill: currentColor; }
+.ct-logo--lockup { align-items: flex-end; }
+.ct-logo__word { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-variation-settings: 'opsz' 36; color: var(--ink); line-height: 0.8; padding-bottom: 0.13em; }
+
+/* ---------- Button ---------- */
+.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-sans); font-weight: 600; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 120ms cubic-bezier(0.2, 0, 0, 1), border-color 120ms, color 120ms; }
+.ct-btn--sm { height: var(--control-sm); padding: 0 var(--space-3); font-size: 14px; line-height: 20px; }
+.ct-btn--md { height: var(--control-md); padding: 0 var(--space-4); font-size: 14px; line-height: 20px; }
+.ct-btn--lg { height: var(--control-lg); padding: 0 var(--space-6); font-size: 16px; line-height: 24px; }
+.ct-btn--block { width: 100%; }
+.ct-btn--primary { background: var(--moss); color: var(--on-moss); }
+.ct-btn--primary:hover { background: var(--moss-hover); }
+.ct-btn--secondary { background: var(--paper-raised); color: var(--ink); border-color: var(--line-strong); }
+.ct-btn--secondary:hover { background: var(--paper-sunken); }
+.ct-btn--quiet { background: transparent; color: var(--ink); }
+.ct-btn--quiet:hover { background: var(--paper-sunken); }
+.ct-btn--danger { background: var(--paper-raised); color: var(--danger); border-color: var(--danger); }
+.ct-btn--danger:hover { background: var(--danger-soft); }
+.ct-btn--inverse { background: transparent; color: var(--on-moss); border-color: var(--on-moss); }
+.ct-btn:disabled { opacity: 0.45; cursor: not-allowed; }
+.ct-btn__icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
+
+/* ---------- TextField ---------- */
+.ct-field { display: flex; flex-direction: column; gap: var(--space-2); }
+.ct-field__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
+.ct-field__control { display: flex; align-items: stretch; background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
+.ct-field__control:focus-within { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); border-color: var(--focus); }
+.ct-field__control--sm { height: var(--control-sm); }
+.ct-field__control--md { height: var(--control-md); }
+.ct-field__control--lg { height: var(--control-lg); }
+.ct-field__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 var(--space-3); font: inherit; font-size: 15px; color: var(--ink); outline: none; box-shadow: none !important; }
+.ct-field__input::placeholder { color: var(--ink-subtle); }
+.ct-field__affix { display: inline-flex; align-items: center; padding: 0 var(--space-3); background: var(--paper-sunken); color: var(--ink-muted); font-size: 14px; border-left: 1px solid var(--line); }
+.ct-field__affix:first-child { border-left: 0; border-right: 1px solid var(--line); }
+.ct-field__hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
+.ct-field__error { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--danger); }
+.ct-field--error .ct-field__control { border-color: var(--danger); }
+
+/* ---------- Badge ---------- */
+.ct-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-xs); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
+.ct-badge--neutral { background: var(--paper-sunken); color: var(--ink-muted); }
+.ct-badge--outline { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
+.ct-badge--moss { background: var(--moss-soft); color: var(--moss); }
+.ct-badge--hearth { background: var(--hearth-soft); color: var(--hearth-ink); }
+.ct-badge--honey { background: var(--honey-soft); color: var(--honey-ink); }
+.ct-badge__dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--honey); box-shadow: 0 0 0 1px var(--honey-ink); }
+
+/* ---------- StatusPill ---------- */
+.ct-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--radius-full); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
+.ct-pill--success { background: var(--success-soft); color: var(--success); }
+.ct-pill--warning { background: var(--warning-soft); color: var(--warning); }
+.ct-pill--danger { background: var(--danger-soft); color: var(--danger); }
+.ct-pill--neutral { background: var(--paper-sunken); color: var(--ink-muted); }
+
+/* ---------- Banner ---------- */
+.ct-banner { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); }
+.ct-banner__icon { flex: none; margin-top: 2px; }
+.ct-banner__body { flex: 1; min-width: 0; }
+.ct-banner__title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
+.ct-banner__text { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
+.ct-banner__action { flex: none; align-self: center; }
+.ct-banner--info { background: var(--info-soft); color: var(--info); }
+.ct-banner--success { background: var(--success-soft); color: var(--success); }
+.ct-banner--warning { background: var(--warning-soft); color: var(--warning); }
+.ct-banner--danger { background: var(--danger-soft); color: var(--danger); }
+
+/* ---------- AppIcon ---------- */
+.ct-appicon { display: inline-flex; flex: none; align-items: center; justify-content: center; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
+.ct-appicon__letter { font-family: var(--font-display); font-weight: 600; color: var(--moss); background: var(--moss-soft); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-variation-settings: 'opsz' 24; }
+
+/* ---------- AppCard ---------- */
+.ct-appcard { position: relative; display: flex; flex-direction: column; gap: var(--space-3); min-height: 196px; box-sizing: border-box; padding: var(--space-5); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: box-shadow 120ms, border-color 120ms; }
+.ct-appcard:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
+.ct-appcard__head { display: flex; gap: var(--space-3); align-items: center; }
+.ct-appcard__titles { min-width: 0; }
+.ct-appcard__name { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
+.ct-appcard__link { color: inherit; text-decoration: none; }
+.ct-appcard__link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-md); }
+.ct-appcard__cat { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
+.ct-appcard__tagline { margin: 0; flex: 1; font-size: 14px; line-height: 20px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
+.ct-appcard__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
+.ct-appcard__price { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
+.ct-appcard__price strong { color: var(--ink); font-weight: 600; }
+
+/* ---------- PriceEstimate ---------- */
+.ct-price { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: var(--space-6); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
+.ct-price__rows { display: flex; flex-direction: column; }
+.ct-stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; border-bottom: 1px solid var(--line); }
+.ct-stepper:last-child { border-bottom: 0; }
+.ct-stepper__label { font-size: 14px; line-height: 20px; font-weight: 600; }
+.ct-stepper__control { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; height: var(--control-md); }
+.ct-stepper__btn { width: 40px; height: 100%; border: 0; background: var(--paper-raised); color: var(--ink); font-size: 18px; cursor: pointer; }
+.ct-stepper__btn:hover { background: var(--paper-sunken); }
+.ct-stepper__btn:disabled { color: var(--ink-subtle); cursor: not-allowed; background: var(--paper-raised); }
+.ct-stepper__value { min-width: 96px; text-align: center; font-size: 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 38px; }
+.ct-price__total { display: flex; flex-direction: column; justify-content: center; padding: var(--space-5); background: var(--paper-sunken); border-radius: var(--radius-md); }
+.ct-price__caption { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
+.ct-price__amount { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 52px; color: var(--hearth-ink); font-variation-settings: 'opsz' 72; font-variant-numeric: tabular-nums lining-nums; }
+.ct-price__amount span { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; }
+.ct-price__hourly { margin: var(--space-2) 0 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
+.ct-price__note { margin: var(--space-3) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
+@media (max-width: 640px) { .ct-price { grid-template-columns: 1fr; } }
+
+/* ---------- BalanceCard ---------- */
+.ct-balance { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); padding: var(--space-5); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
+.ct-balance__label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
+.ct-balance__amount { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
+.ct-balance__runway { margin: 0 0 var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
+.ct-balance__runway--warning { color: var(--warning); font-weight: 600; }
+.ct-balance__runway--danger { color: var(--danger); font-weight: 600; }
+.ct-balance--compact { padding: var(--space-3); align-items: stretch; }
+.ct-balance--compact .ct-balance__amount { font-size: 18px; line-height: 26px; }
+.ct-balance--compact .ct-balance__runway { font-size: 12px; line-height: 16px; margin-bottom: var(--space-2); }
+
+/* ---------- AppTable ---------- */
+.ct-table-wrap { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
+.ct-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
+.ct-table th { height: 40px; padding: 0 var(--space-4); text-align: left; font-weight: 600; color: var(--ink-muted); background: var(--paper-sunken); border-bottom: 1px solid var(--line); }
+.ct-table th.ct-num { text-align: right; }
+.ct-table td { height: var(--table-row); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
+.ct-table tr:last-child td { border-bottom: 0; }
+.ct-table tbody tr:hover td { background: var(--paper-sunken); cursor: pointer; }
+.ct-table__app { display: flex; align-items: center; gap: var(--space-3); }
+.ct-table__name { margin: 0; font-weight: 600; }
+.ct-table__type { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
+.ct-table__addr { color: var(--ink-muted); font-size: 13px; }
+.ct-table__size { color: var(--ink-muted); font-size: 13px; white-space: nowrap; }
+
+/* ---------- EmptyState ---------- */
+.ct-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); background: var(--paper-raised); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
+.ct-empty__title { margin: var(--space-2) 0 0; font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; font-variation-settings: 'opsz' 24; }
+.ct-empty__text { margin: 0; max-width: 420px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
+.ct-empty__actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; justify-content: center; }
+
+/* ---------- PodRow + RoofRule ---------- */
+.ct-podrow { display: block; flex: none; }
+.ct-podrow__roof { stroke: var(--moss); }
+.ct-pod--full { fill: var(--moss); }
+.ct-pod--lit { fill: var(--hearth); }
+.ct-pod--empty { fill: var(--moss-soft); stroke: var(--moss); stroke-width: 1.5; }
+.ct-roof-rule { display: flex; align-items: center; gap: var(--space-3); width: 100%; }
+.ct-roof-rule__line { flex: 1; height: 1px; background: var(--line); }
+.ct-roof-rule__peak { flex: none; stroke: var(--moss); }
+
+/* ---------- SiteHeader ---------- */
+.ct-site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
+.ct-site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); height: var(--site-header-height); max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }
+.ct-site-header__home { display: inline-flex; text-decoration: none; border-radius: var(--radius-sm); }
+.ct-site-header__nav { display: flex; gap: var(--space-8); }
+.ct-site-header__link { position: relative; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); text-decoration: none; padding: var(--space-2) 0; }
+.ct-site-header__link:hover, .ct-site-header__link.is-current { color: var(--ink); }
+.ct-site-header__link.is-current::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--moss); border-radius: 2px; }
+.ct-site-header__actions { display: flex; gap: var(--space-2); }
+@media (max-width: 1023px) { .ct-site-header__nav { display: none; } }
+
+/* ---------- AppSidebar ---------- */
+.ct-sidebar { display: flex; flex-direction: column; width: var(--sidebar-width); box-sizing: border-box; min-height: 100%; padding: var(--space-5) var(--space-4); background: var(--paper-sunken); border-right: 1px solid var(--line); }
+.ct-sidebar__brand { height: 40px; display: flex; align-items: center; padding: 0 var(--space-1); margin-bottom: var(--space-6); }
+.ct-sidebar__nav { display: flex; flex-direction: column; gap: var(--space-1); }
+.ct-sidebar__item { display: flex; align-items: center; gap: var(--space-3); height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); text-decoration: none; }
+.ct-sidebar__item:hover { background: var(--paper-raised); color: var(--ink); }
+.ct-sidebar__item.is-active { background: var(--moss-soft); color: var(--moss); }
+.ct-sidebar__rule { border: 0; border-top: 1px solid var(--line); margin: var(--space-3) 0; width: 100%; }
+.ct-sidebar__foot { margin-top: auto; padding-top: var(--space-6); }
+
+/* ---------- Layout helpers used by the page showcases ---------- */
+.ct-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }
+.ct-band { padding: var(--space-24) 0; }
+.ct-band--sunken { background: var(--paper-sunken); }
+.ct-band--moss { background: var(--moss); color: var(--on-moss); }
+.ct-eyebrow { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss); }
+.ct-display-xl { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 68px; letter-spacing: -0.02em; font-variation-settings: 'opsz' 96; }
+.ct-display-l { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 52px; letter-spacing: -0.015em; font-variation-settings: 'opsz' 72; }
+.ct-h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 46px; letter-spacing: -0.01em; font-variation-settings: 'opsz' 48; }
+.ct-h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; font-variation-settings: 'opsz' 36; }
+.ct-h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; font-variation-settings: 'opsz' 24; }
+.ct-lede { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
+.ct-muted { color: var(--ink-muted); }
+.ct-caption { font-size: 12px; line-height: 16px; color: var(--ink-subtle); font-weight: 500; }
diff --git a/styles/brand/fonts.css b/styles/brand/fonts.css
new file mode 100644
index 0000000..2003454
--- /dev/null
+++ b/styles/brand/fonts.css
@@ -0,0 +1,33 @@
+/* Self-hosted fonts (SIL OFL 1.1), latin subset. */
+@font-face {
+ font-family: 'Fraunces';
+ font-style: normal;
+ font-weight: 400 700;
+ font-display: swap;
+ src: url(/fonts/Fraunces-400-700.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+@font-face {
+ font-family: 'Hanken Grotesk';
+ font-style: normal;
+ font-weight: 400 700;
+ font-display: swap;
+ src: url(/fonts/HankenGrotesk-400-700.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+@font-face {
+ font-family: 'JetBrains Mono';
+ font-style: normal;
+ font-weight: 400;
+ font-display: swap;
+ src: url(/fonts/JetBrainsMono-400.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+@font-face {
+ font-family: 'JetBrains Mono';
+ font-style: normal;
+ font-weight: 500;
+ font-display: swap;
+ src: url(/fonts/JetBrainsMono-500.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
diff --git a/styles/brand/tokens.css b/styles/brand/tokens.css
new file mode 100644
index 0000000..5c663b5
--- /dev/null
+++ b/styles/brand/tokens.css
@@ -0,0 +1,124 @@
+/* Cottage — generated from tokens.json */
+:root, [data-theme="light"] {
+ --paper: #FBF7EF;
+ --paper-raised: #FFFFFF;
+ --paper-sunken: #F3ECDF;
+ --ink: #23201B;
+ --ink-muted: #5F584D;
+ --ink-subtle: #6F675A;
+ --moss: #2F5D46;
+ --moss-hover: #264D3A;
+ --on-moss: #FFFFFF;
+ --moss-soft: #E3EDE5;
+ --hearth: #C2541C;
+ --on-hearth: #FFFFFF;
+ --hearth-ink: #A3441A;
+ --hearth-soft: #F8E6DA;
+ --honey: #E5B54A;
+ --honey-ink: #7A5A10;
+ --honey-soft: #FAF0D4;
+ --line: #E4DACA;
+ --line-strong: #958670;
+ --focus: var(--moss);
+ --success: #2A7349;
+ --success-soft: #E2F0E6;
+ --warning: #8C5900;
+ --warning-soft: #FBEFD6;
+ --danger: #B3261E;
+ --danger-soft: #FBE4E1;
+ --info: #2F5E8A;
+ --info-soft: #E3ECF5;
+ --scrim: rgba(35, 32, 27, 0.48);
+ --shadow-sm: 0 1px 2px rgba(35, 32, 27, 0.06);
+ --shadow-md: 0 6px 16px rgba(35, 32, 27, 0.08), 0 1px 3px rgba(35, 32, 27, 0.06);
+ --shadow-lg: 0 20px 48px rgba(35, 32, 27, 0.14), 0 2px 6px rgba(35, 32, 27, 0.06);
+}
+[data-theme="dark"] {
+ --paper: #191714;
+ --paper-raised: #221F1B;
+ --paper-sunken: #14120F;
+ --ink: #F2ECE0;
+ --ink-muted: #B8AE9D;
+ --ink-subtle: #8F8676;
+ --moss: #86BD9F;
+ --moss-hover: #9CCBB1;
+ --on-moss: #10201A;
+ --moss-soft: #1F2E26;
+ --hearth: #EE8A50;
+ --on-hearth: #2A1408;
+ --hearth-ink: #F29B66;
+ --hearth-soft: #3A2418;
+ --honey: #E9BF5C;
+ --honey-ink: #F0CB72;
+ --honey-soft: #352B14;
+ --line: #36322B;
+ --line-strong: #76705F;
+ --focus: var(--moss);
+ --success: #6FC08E;
+ --success-soft: #1B2C21;
+ --warning: #E2A93B;
+ --warning-soft: #33280F;
+ --danger: #F08A80;
+ --danger-soft: #3A1D1A;
+ --info: #8DB8E3;
+ --info-soft: #1A2633;
+ --scrim: rgba(0, 0, 0, 0.6);
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
+ --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45);
+ --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
+}
+:root {
+ --space-0-5: 2px;
+ --space-1: 4px;
+ --space-2: 8px;
+ --space-3: 12px;
+ --space-4: 16px;
+ --space-5: 20px;
+ --space-6: 24px;
+ --space-8: 32px;
+ --space-10: 40px;
+ --space-12: 48px;
+ --space-16: 64px;
+ --space-20: 80px;
+ --space-24: 96px;
+ --space-32: 128px;
+ --radius-xs: 4px;
+ --radius-sm: 8px;
+ --radius-md: 12px;
+ --radius-lg: 16px;
+ --radius-xl: 24px;
+ --radius-full: 9999px;
+ --container-max: 1200px;
+ --prose-max: 720px;
+ --dashboard-max: 1120px;
+ --site-header-height: 72px;
+ --topbar-height: 56px;
+ --sidebar-width: 248px;
+ --control-sm: 32px;
+ --control-md: 40px;
+ --control-lg: 48px;
+ --table-row: 52px;
+ --app-icon-md: 40px;
+ --app-icon-lg: 64px;
+ --bp-sm: 640px;
+ --bp-md: 768px;
+ --bp-lg: 1024px;
+ --bp-xl: 1280px;
+ --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
+ --font-sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
+ --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
+}
+.display-xl { font-family: var(--font-display); font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: 'opsz' 96; }
+.display-l { font-family: var(--font-display); font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: -0.015em; font-variation-settings: 'opsz' 72; }
+.h1 { font-family: var(--font-display); font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: 'opsz' 48; }
+.h2 { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: 'opsz' 36; }
+.h3 { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; font-variation-settings: 'opsz' 24; }
+.h4 { font-family: var(--font-sans); font-size: 18px; line-height: 26px; font-weight: 600; }
+.body-l { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 400; }
+.body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
+.body-s { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
+.label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; }
+.eyebrow { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; }
+.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; }
+.mono { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 400; }
+.mono-s { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; }
diff --git a/styles/status.css b/styles/status.css
new file mode 100644
index 0000000..e55a51d
--- /dev/null
+++ b/styles/status.css
@@ -0,0 +1,155 @@
+/* Cottage status page. Builds on styles/brand (tokens + component CSS copied from Hearth);
+ only layout and status-specific pieces live here. Tokens only: no hard-coded colours. */
+
+*, *::before, *::after { box-sizing: border-box; }
+html { background: var(--paper); }
+body { min-height: 100vh; display: flex; flex-direction: column; }
+#__next { flex: 1; display: flex; flex-direction: column; }
+a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
+a:hover { text-decoration-thickness: 2px; }
+.ct-btn, .ct-site-header__link, .ct-site-header__home, .st-footer__brand { text-decoration: none; }
+.ct-btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
+.ct-h1 { color: var(--ink); }
+.st-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
+
+/* ---------- layout ---------- */
+.st-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }
+.st-container--narrow { max-width: calc(880px + 2 * var(--space-8)); }
+.st-main { flex: 1; padding: var(--space-16) 0 var(--space-20); }
+@media (max-width: 639px) {
+ .st-container { padding: 0 var(--space-5); }
+ .st-main { padding: var(--space-10) 0 var(--space-16); }
+}
+
+/* ---------- header ---------- */
+.st-header__home { display: inline-flex; align-items: flex-end; gap: var(--space-3); }
+.st-header__tag { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); padding: 0 0 1px var(--space-3); border-left: 1px solid var(--line-strong); }
+.st-header__nav { display: flex; gap: var(--space-8); margin-right: auto; margin-left: var(--space-4); }
+@media (max-width: 1023px) {
+ .st-header__nav { gap: var(--space-5); margin-left: 0; }
+}
+@media (max-width: 767px) {
+ /* nav drops to a second row so incident history stays one tap away */
+ .ct-site-header__inner { flex-wrap: wrap; height: auto; padding: var(--space-3) var(--space-5) 0; gap: var(--space-3) var(--space-4); }
+ .st-header__actions .ct-btn--quiet { display: none; }
+ .st-header__nav { order: 3; width: 100%; margin: 0; gap: var(--space-6); }
+ .st-header__nav .ct-site-header__link { padding: var(--space-2) 0 var(--space-3); }
+ .st-header__nav .ct-site-header__link.is-current::after { bottom: -1px; }
+}
+
+/* ---------- hero ---------- */
+.st-hero { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-12); }
+.st-hero .ct-podrow { margin-bottom: var(--space-3); }
+.st-hero__title { display: flex; align-items: center; gap: var(--space-4); }
+.st-hero__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-full); }
+.st-hero__icon svg { width: 18px; height: 18px; }
+.st-tone--success { background: var(--success-soft); color: var(--success); }
+.st-tone--warning { background: var(--warning-soft); color: var(--warning); }
+.st-tone--danger { background: var(--danger-soft); color: var(--danger); }
+.st-tone--neutral { background: var(--paper-sunken); color: var(--ink-muted); }
+.st-hero__lede { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
+.st-hero__sep { margin: 0 var(--space-2); color: var(--ink-subtle); }
+.st-notices { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; margin-top: var(--space-5); }
+.st-upcoming { width: 100%; margin-top: var(--space-2); }
+.st-upcoming > .ct-btn { margin-left: calc(-1 * var(--space-3)); }
+.st-upcoming .st-notices { margin-top: var(--space-2); }
+@media (max-width: 639px) {
+ .st-hero__title { font-size: 32px; line-height: 38px; font-variation-settings: 'opsz' 36; align-items: flex-start; }
+ .st-hero__icon { width: 36px; height: 36px; margin-top: 1px; }
+}
+
+/* ---------- notices (Banner) ---------- */
+.ct-banner__text p { margin: 0; }
+.st-notice__when { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
+.st-notice__body { margin-top: var(--space-1) !important; color: var(--ink); white-space: pre-line; }
+.st-notice__affected { margin-top: var(--space-2) !important; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
+
+/* ---------- service groups ---------- */
+.st-groups { display: flex; flex-direction: column; gap: var(--space-8); }
+.st-group { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
+.st-group__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-5); background: var(--paper-sunken); border-bottom: 1px solid var(--line); border-radius: var(--radius-md) var(--radius-md) 0 0; }
+.st-group__name { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
+.st-group__count { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
+.st-group__list { list-style: none; margin: 0; padding: 0; }
+.st-monitor { padding: var(--space-5); border-top: 1px solid var(--line); }
+.st-monitor:first-child { border-top: 0; }
+.st-monitor__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
+.st-monitor__titles { min-width: 0; }
+.st-monitor__name { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
+.st-monitor__name a { color: inherit; text-decoration: none; }
+.st-monitor__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
+.st-monitor__desc { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
+.st-monitor__meta { display: flex; align-items: center; gap: var(--space-3); flex: none; }
+.st-monitor__uptime { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
+.st-monitor__uptime strong { color: var(--ink); font-weight: 600; }
+.st-monitor__nodata { margin: var(--space-3) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
+@media (max-width: 639px) {
+ .st-monitor { padding: var(--space-4); }
+ .st-monitor__head { flex-direction: column; gap: var(--space-2); }
+}
+
+/* ---------- 90-day bars ---------- */
+.st-bars-wrap { margin-top: var(--space-4); }
+.st-bars { position: relative; display: flex; gap: 2px; height: 32px; }
+.st-bar { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 2px; cursor: default; transition: opacity 120ms cubic-bezier(0.2, 0, 0, 1); }
+.st-bar--success { background: var(--success); }
+.st-bar--warning { background: var(--warning); }
+.st-bar--danger { background: var(--danger); }
+.st-bar--neutral { background: var(--line); }
+.st-bars:hover .st-bar { opacity: 0.55; }
+.st-bars .st-bar:hover, .st-bars .st-bar:focus-visible { opacity: 1; }
+.st-bar:focus-visible { box-shadow: 0 0 0 2px var(--paper-raised), 0 0 0 4px var(--focus); position: relative; z-index: 1; }
+.st-bars__axis { display: flex; justify-content: space-between; margin-top: var(--space-2); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
+/* phones show the last 30 days */
+.st-bars__from--short { display: none; }
+@media (max-width: 639px) {
+ .st-bars { height: 28px; }
+ .st-bar:nth-child(-n+60) { display: none; }
+ .st-bars__from--long { display: none; }
+ .st-bars__from--short { display: inline; }
+}
+.st-daycard { position: absolute; bottom: calc(100% + var(--space-2)); z-index: 5; width: max-content; max-width: min(340px, 80vw); padding: var(--space-3) var(--space-4); background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); pointer-events: none; }
+.st-daycard p { margin: 0; }
+.st-daycard__date { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
+.st-daycard__line { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
+.st-daycard__events { margin: var(--space-2) 0 0; padding: var(--space-2) 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--ink-muted); display: flex; flex-direction: column; gap: var(--space-1); }
+.st-daycard__time { font-size: 12px; color: var(--ink); }
+
+/* ---------- response times ---------- */
+.st-disclosure { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-3); margin-left: calc(-1 * var(--space-2)); height: var(--control-sm); padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent; font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); cursor: pointer; transition: background-color 120ms cubic-bezier(0.2, 0, 0, 1); }
+.st-disclosure:hover { background: var(--paper-sunken); color: var(--ink); }
+.st-disclosure svg { transition: transform 200ms cubic-bezier(0.2, 0, 0, 1); }
+.st-disclosure svg.is-open { transform: rotate(90deg); }
+.st-chart { height: 168px; margin-top: var(--space-3); }
+@media (prefers-reduced-motion: reduce) {
+ .st-disclosure svg, .st-bar { transition: none; }
+}
+
+.st-note { margin: var(--space-8) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
+
+/* ---------- incident history ---------- */
+.st-pagehead { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-10); }
+.st-pagehead .ct-lede { max-width: 560px; }
+.st-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
+.st-monthnav { display: flex; align-items: center; gap: var(--space-3); }
+.st-monthnav .ct-btn { width: var(--control-sm); padding: 0; }
+.st-monthnav__label { margin: 0; min-width: 160px; text-align: center; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
+.st-select select { height: var(--control-md); min-width: 200px; padding: 0 var(--space-10) 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink); font: inherit; font-size: 14px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
+.st-select select:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); }
+.st-pagehead .ct-h1 { font-size: 40px; }
+@media (max-width: 639px) {
+ .st-pagehead .ct-h1 { font-size: 32px; line-height: 38px; }
+ .st-select, .st-select select { width: 100%; }
+}
+
+/* ---------- footer ---------- */
+.st-footer { background: var(--paper-sunken); padding: var(--space-12) 0 var(--space-8); color: var(--ink-muted); }
+.st-footer__top { display: flex; align-items: center; gap: var(--space-5); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
+.st-footer__brand { display: inline-flex; color: var(--ink); border-radius: var(--radius-sm); }
+.st-footer__about { margin: 0; max-width: 520px; font-size: 14px; line-height: 20px; }
+.st-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding-top: var(--space-6); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
+.st-footer__bottom a { color: var(--ink-subtle); }
+.st-footer__bottom a:hover { color: var(--ink-muted); }
+
+/* ---------- embed (#monitor-id) ---------- */
+.st-embed { padding: var(--space-4); background: var(--paper-raised); }
diff --git a/uptime.config.ts b/uptime.config.ts
index cf80328..5c4146d 100644
--- a/uptime.config.ts
+++ b/uptime.config.ts
@@ -1,134 +1,76 @@
-// This is a simplified example config file for quickstart
-// Some not frequently used features are omitted/commented out here
-// For a full-featured example, please refer to `uptime.config.full.ts`
-
+// Cottage's status page: what we check and what we've posted.
+// A push to main deploys it (see README.md). Field reference: uptime.config.full.ts.
+//
// Don't edit this line
import { MaintenanceConfig, PageConfig, WorkerConfig } from './types/config'
const pageConfig: PageConfig = {
- // Title for your status page
- title: "lyc8503's Status Page",
- // Links shown at the header of your status page, could set `highlight` to `true`
+ title: 'Cottage status',
+ // Buttons on the right of the header.
links: [
- { link: 'https://github.com/lyc8503', label: 'GitHub' },
- { link: 'https://blog.lyc8503.net/', label: 'Blog' },
- { link: 'mailto:me@lyc8503.net', label: 'Email Me', highlight: true },
+ { link: 'https://cottage.host', label: 'cottage.host' },
+ { link: 'https://app.cottage.host', label: 'Your dashboard', highlight: true },
],
+ // Sections, in order. Every monitor below should appear in exactly one.
+ group: {
+ Cottage: ['website', 'dashboard'],
+ 'Apps by region': ['apps-us-east'],
+ },
}
const workerConfig: WorkerConfig = {
- // Define all your monitors here
+ // Checks run every minute from Cloudflare's network (the location nearest the worker).
+ // The targets go live at launch; until then the page isn't deployed.
monitors: [
- // Example HTTP Monitor
{
- // `id` should be unique, history will be kept if the `id` remains constant
- id: 'foo_monitor',
- // `name` is used at status page and callback message
- name: 'My API Monitor',
- // `method` should be a valid HTTP Method
+ id: 'website',
+ name: 'Website',
+ tooltip: 'cottage.host: pricing, the app catalog and docs',
method: 'GET',
- // `target` is a valid URL
- target: 'https://example.com',
- // [OPTIONAL] `tooltip` is ONLY used at status page to show a tooltip
- tooltip: 'This is a tooltip for this monitor',
- // [OPTIONAL] `statusPageLink` is ONLY used for clickable link at status page
- statusPageLink: 'https://example.com',
- // [OPTIONAL] `expectedCodes` is an array of acceptable HTTP response codes, if not specified, default to 2xx
- expectedCodes: [200],
- // [OPTIONAL] `timeout` in millisecond, if not specified, default to 10000
+ target: 'https://cottage.host',
+ statusPageLink: 'https://cottage.host',
timeout: 10000,
- // [OPTIONAL] headers to be sent
- headers: {
- 'User-Agent': 'Uptimeflare',
- Authorization: 'Bearer YOUR_TOKEN_HERE',
- },
- // [OPTIONAL] body to be sent (require POST/PUT/PATCH method)
- // body: 'Hello, world!',
- // [OPTIONAL] if specified, the response must contains the keyword to be considered as operational.
- // responseKeyword: 'success',
- // [OPTIONAL] if specified, the response must NOT contains the keyword to be considered as operational.
- // responseForbiddenKeyword: 'bad gateway',
- // [OPTIONAL] if specified, will call the check proxy to check the monitor, mainly for geo-specific checks
- // refer to docs https://github.com/lyc8503/UptimeFlare/wiki/Check-proxy-setup before setting this value
- // currently supports `worker://`, `globalping://` and `http(s)://` proxies
- // checkProxy: 'worker://weur',
- // [OPTIONAL] if true, the check will fallback to local if the specified proxy is down
- // checkProxyFallback: true,
+ headers: { 'User-Agent': 'cottage-status (+https://status.cottage.host)' },
},
- // Example TCP Monitor
{
- id: 'test_tcp_monitor',
- name: 'Example TCP Monitor',
- // `method` should be `TCP_PING` for tcp monitors
- method: 'TCP_PING',
- // `target` should be `host:port` for tcp monitors
- target: '1.2.3.4:22',
- tooltip: 'My production server SSH',
- statusPageLink: 'https://example.com',
- timeout: 5000,
+ id: 'dashboard',
+ name: 'Dashboard and billing',
+ tooltip: 'Signing in, deploying and managing apps, and top-ups',
+ method: 'GET',
+ target: 'https://app.cottage.host/healthz',
+ statusPageLink: 'https://app.cottage.host',
+ expectedCodes: [200],
+ timeout: 10000,
+ headers: { 'User-Agent': 'cottage-status (+https://status.cottage.host)' },
+ },
+ {
+ // A small app Cottage runs for itself on the region's servers, so this checks the
+ // whole path a customer's app takes: Cloudflare, the node's proxy and a running app.
+ // TODO at launch: deploy the canary app and put its address here.
+ id: 'apps-us-east',
+ name: 'Apps in US East',
+ tooltip: 'Customer apps hosted in Virginia',
+ method: 'GET',
+ target: 'https://status-canary-vin1.cottagehost.com/',
+ timeout: 10000,
+ headers: { 'User-Agent': 'cottage-status (+https://status.cottage.host)' },
},
],
- // [Optional] Notification settings
- notification: {
- // [Optional] Notification webhook settings, if not specified, no notification will be sent
- // More info at Wiki: https://github.com/lyc8503/UptimeFlare/wiki/Setup-notification
- webhook: {
- // [Required] webhook URL (example: Telegram Bot API)
- url: 'https://api.telegram.org/bot123456:ABCDEF/sendMessage',
- // [Optional] HTTP method, default to 'GET' for payloadType=param, 'POST' otherwise
- // method: 'POST',
- // [Optional] headers to be sent
- // headers: {
- // foo: 'bar',
- // },
- // [Required] Specify how to encode the payload
- // Should be one of 'param', 'json' or 'x-www-form-urlencoded'
- // 'param': append url-encoded payload to URL search parameters
- // 'json': POST json payload as body, set content-type header to 'application/json'
- // 'x-www-form-urlencoded': POST url-encoded payload as body, set content-type header to 'x-www-form-urlencoded'
- payloadType: 'x-www-form-urlencoded',
- // [Required] payload to be sent
- // $MSG will be replaced with the human-readable notification message
- payload: {
- chat_id: 12345678,
- text: '$MSG',
- },
- // [Optional] timeout calling this webhook, in millisecond, default to 5000
- timeout: 10000,
- },
- // [Optional] timezone used in notification messages, default to "Etc/GMT"
- timeZone: 'Asia/Shanghai',
- // [Optional] grace period in minutes before sending a notification
- // notification will be sent only if the monitor is down for N continuous checks after the initial failure
- // if not specified, notification will be sent immediately
- gracePeriod: 5,
- },
+ // Alerts come from Grafana Cloud (hearth infra/monitoring). A webhook here could page too.
}
-// You can define multiple maintenances here
-// During maintenance, an alert will be shown at status page
-// Also, related downtime notifications will be skipped (if any)
-// Of course, you can leave it empty if you don't need this feature
-
-// const maintenances: MaintenanceConfig[] = []
-
-const maintenances: MaintenanceConfig[] = [
- {
- // [Optional] Monitor IDs to be affected by this maintenance
- monitors: ['foo_monitor', 'bar_monitor'],
- // [Optional] default to "Scheduled Maintenance" if not specified
- title: 'Test Maintenance',
- // Description of the maintenance, will be shown at status page
- body: 'This is a test maintenance, server software upgrade',
- // Start time of the maintenance, in UNIX timestamp or ISO 8601 format
- start: '2020-01-01T00:00:00+08:00',
- // [Optional] end time of the maintenance, in UNIX timestamp or ISO 8601 format
- // if not specified, the maintenance will be considered as on-going
- end: '2050-01-01T00:00:00+08:00',
- // [Optional] color of the maintenance alert at status page, default to "yellow"
- color: 'blue',
- },
-]
+// Notices shown on the page: incident updates and planned maintenance. Newest last.
+// Write them in Cottage's voice: say what happened, who it affects and what to expect,
+// e.g. title 'Apps in US East were slow for 18 minutes'.
+// {
+// title: 'Some apps in US East aren’t loading',
+// body: 'We’re looking into it now. Next update within 30 minutes.',
+// monitors: ['apps-us-east'], // listed as "Affects: ..." and their status follows the colour
+// start: '2026-12-01T14:05:00Z',
+// end: '2026-12-01T14:40:00Z', // leave out while it's ongoing
+// color: 'red', // red = outage, yellow = degraded (default), blue = maintenance, green = resolved
+// },
+const maintenances: MaintenanceConfig[] = []
// Don't edit this line
export { maintenances, pageConfig, workerConfig }
diff --git a/util/color.ts b/util/color.ts
deleted file mode 100644
index 6fce3e7..0000000
--- a/util/color.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-function getColor(percent: number | string, darker: boolean): string {
- percent = Number(percent)
- if (percent >= 99.9) {
- return darker ? '#059669' : '#3bd671'
- } else if (percent >= 99) {
- return darker ? '#3bd671' : '#9deab8'
- } else if (percent >= 95) {
- return '#f29030'
- } else if (Number.isNaN(percent)) {
- return 'gray'
- } else {
- return '#df484a'
- }
-}
-
-export { getColor }
diff --git a/util/i18n.ts b/util/i18n.ts
deleted file mode 100644
index 5fed890..0000000
--- a/util/i18n.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import i18n from 'i18next'
-import { initReactI18next } from 'react-i18next'
-import LanguageDetector from 'i18next-browser-languagedetector'
-import en from '../locales/en/common.json'
-import zhCN from '../locales/zh-CN/common.json'
-import zhTW from '../locales/zh-TW/common.json'
-import frFR from '../locales/fr-FR/common.json'
-import deDE from '../locales/de-DE/common.json'
-
-i18n
- .use(LanguageDetector)
- .use(initReactI18next)
- .init({
- resources: {
- en: { common: en },
- 'zh-CN': { common: zhCN },
- zh: { common: zhCN },
- 'zh-TW': { common: zhTW },
- fr: { common: frFR },
- 'fr-FR': { common: frFR },
- de: { common: deDE },
- 'de-DE': { common: deDE },
- },
- fallbackLng: 'en',
- interpolation: {
- escapeValue: false,
- },
- detection: {
- order: ['navigator'],
- },
- })
-
-export default i18n
diff --git a/util/status.ts b/util/status.ts
new file mode 100644
index 0000000..3ec86ac
--- /dev/null
+++ b/util/status.ts
@@ -0,0 +1,206 @@
+// Status maths shared by the page components. The worker's state format is unchanged from
+// upstream UptimeFlare; everything here only reads it.
+import { MaintenanceConfig, MonitorState, MonitorTarget } from '@/types/config'
+
+export type Tone = 'success' | 'warning' | 'danger' | 'neutral'
+
+export const DAYS = 90
+
+const overlap = (a1: number, a2: number, b1: number, b2: number) =>
+ Math.max(0, Math.min(a2, b2) - Math.max(a1, b1))
+
+export function isDown(state: MonitorState, id: string): boolean {
+ const list = state.incident[id]
+ return !!list && list.length > 0 && list[list.length - 1].end === null
+}
+
+export function activeNotices(maintenances: MaintenanceConfig[], now = new Date()) {
+ return maintenances.filter((m) => now >= new Date(m.start) && (!m.end || now <= new Date(m.end)))
+}
+
+export function upcomingNotices(maintenances: MaintenanceConfig[], now = new Date()) {
+ return maintenances
+ .filter((m) => now < new Date(m.start))
+ .sort((a, b) => +new Date(a.start) - +new Date(b.start))
+}
+
+export type MonitorStatus = 'operational' | 'degraded' | 'maintenance' | 'outage' | 'unknown'
+
+// What an active notice says about a service: red = outage, yellow = degraded,
+// blue = maintenance, green = resolved (no effect).
+function noticeStatus(color?: string): MonitorStatus | null {
+ switch (noticeTone(color)) {
+ case 'danger':
+ return 'outage'
+ case 'info':
+ return 'maintenance'
+ case 'success':
+ return null
+ default:
+ return 'degraded'
+ }
+}
+
+const rank: MonitorStatus[] = ['unknown', 'operational', 'maintenance', 'degraded', 'outage']
+
+export function monitorStatus(
+ state: MonitorState,
+ maintenances: MaintenanceConfig[],
+ id: string
+): MonitorStatus {
+ if (!state.incident[id]) return 'unknown'
+ let status: MonitorStatus = isDown(state, id) ? 'outage' : 'operational'
+ for (const n of activeNotices(maintenances)) {
+ if (!n.monitors?.includes(id)) continue
+ const s = noticeStatus(n.color)
+ if (s && rank.indexOf(s) > rank.indexOf(status)) status = s
+ }
+ return status
+}
+
+// Uptime since monitoring began (the worker keeps 90 days of incidents).
+export function uptimePercent(state: MonitorState, id: string): number | null {
+ const list = state.incident[id]
+ if (!list || list.length === 0) return null
+ const now = Date.now() / 1000
+ const total = now - list[0].start[0]
+ if (total <= 0) return null
+ let down = 0
+ for (const inc of list) down += (inc.end ?? now) - inc.start[0]
+ return ((total - down) / total) * 100
+}
+
+export type Day = {
+ start: number // unix seconds, local midnight
+ percent: number | null // null: not monitored that day
+ downSeconds: number
+ events: { from: number; to: number; error: string }[]
+}
+
+export function dailyHistory(state: MonitorState, id: string): Day[] {
+ const list = state.incident[id]
+ const now = Math.round(Date.now() / 1000)
+ const monitorStart = list?.[0]?.start[0] ?? now
+ const midnight = new Date()
+ midnight.setHours(0, 0, 0, 0)
+ const today = Math.round(midnight.getTime() / 1000)
+ const days: Day[] = []
+
+ for (let i = DAYS - 1; i >= 0; i--) {
+ // step by calendar day so daylight-saving changes don't shift the bars
+ const d = new Date(midnight)
+ d.setDate(d.getDate() - i)
+ const start = i === 0 ? today : Math.round(d.getTime() / 1000)
+ const next = new Date(d)
+ next.setDate(next.getDate() + 1)
+ const end = Math.round(next.getTime() / 1000)
+
+ const watched = overlap(start, end, monitorStart, now)
+ let downSeconds = 0
+ const events: Day['events'] = []
+ for (const inc of list ?? []) {
+ if (inc.error[0] === 'dummy') continue // the worker's marker for when monitoring began
+ const incEnd = inc.end ?? now
+ const o = overlap(start, end, inc.start[0], incEnd)
+ if (o <= 0) continue
+ downSeconds += o
+ inc.error.forEach((error, k) => {
+ const from = Math.max(inc.start[k], start)
+ const to = Math.min(k === inc.error.length - 1 ? incEnd : inc.start[k + 1], end)
+ if (to > from) events.push({ from, to, error })
+ })
+ }
+ days.push({
+ start,
+ percent: watched > 0 ? ((watched - downSeconds) / watched) * 100 : null,
+ downSeconds,
+ events,
+ })
+ }
+ return days
+}
+
+// Colour by how long a service was down that day: any downtime is worth a look, half an hour
+// or more is serious. Every bar also has a text label (UptimeBars), so colour is never alone.
+export function dayTone(day: Pick): Tone {
+ if (day.percent === null) return 'neutral'
+ if (day.downSeconds === 0) return 'success'
+ if (day.downSeconds < 30 * 60) return 'warning'
+ return 'danger'
+}
+
+export function formatPercent(p: number | null): string {
+ if (p === null) return 'No data'
+ if (p >= 100) return '100%'
+ return `${(Math.floor(p * 100) / 100).toFixed(2)}%`
+}
+
+export function formatDuration(seconds: number): string {
+ const s = Math.max(0, Math.round(seconds))
+ if (s < 60) return `${s} second${s === 1 ? '' : 's'}`
+ const m = Math.round(s / 60)
+ if (m < 60) return `${m} minute${m === 1 ? '' : 's'}`
+ const h = Math.floor(m / 60)
+ const rest = m % 60
+ return `${h} hour${h === 1 ? '' : 's'}${rest ? ` ${rest} min` : ''}`
+}
+
+export function formatDate(unix: number, withYear = false): string {
+ return new Date(unix * 1000).toLocaleDateString(undefined, {
+ day: 'numeric',
+ month: 'short',
+ ...(withYear ? { year: 'numeric' } : {}),
+ })
+}
+
+export function formatTime(unix: number): string {
+ return new Date(unix * 1000).toLocaleTimeString(undefined, { hour: '2-digit', minute: '2-digit' })
+}
+
+export function formatDateTime(value: number | string): string {
+ return new Date(value).toLocaleString(undefined, {
+ day: 'numeric',
+ month: 'short',
+ year: 'numeric',
+ hour: '2-digit',
+ minute: '2-digit',
+ timeZoneName: 'short',
+ })
+}
+
+export function overallSummary(
+ state: MonitorState,
+ monitors: MonitorTarget[],
+ maintenances: MaintenanceConfig[]
+): { title: string; tone: Tone } {
+ if (state.lastUpdate === 0) return { title: 'Waiting for the first checks', tone: 'neutral' }
+ const statuses = monitors.map((m) => monitorStatus(state, maintenances, m.id))
+ const count = (s: MonitorStatus) => statuses.filter((x) => x === s).length
+ const down = count('outage')
+ if (down === monitors.length) return { title: 'Cottage is down', tone: 'danger' }
+ if (down > 0)
+ return {
+ title: `${down} of ${monitors.length} services ${down === 1 ? 'is' : 'are'} down`,
+ tone: 'danger',
+ }
+ if (count('degraded') > 0) return { title: 'Some services are running slowly', tone: 'warning' }
+ if (count('maintenance') > 0) return { title: 'Maintenance in progress', tone: 'warning' }
+ return { title: 'All systems normal', tone: 'success' }
+}
+
+// Notice colours in uptime.config.ts map to banner tones.
+export function noticeTone(color?: string): Tone | 'info' {
+ switch (color) {
+ case 'red':
+ case 'danger':
+ return 'danger'
+ case 'green':
+ case 'success':
+ return 'success'
+ case 'blue':
+ case 'info':
+ return 'info'
+ default:
+ return 'warning'
+ }
+}