The API for status is showing CORS issue: "Response body is not available to scripts (Reason: CORS Missing Allow Origin)" when using from other domain/localhost. To solve this ,CORS header is added. It also possible to specify allowed domain in Env Var in cloudflare and call them directly.
* Add basic webhook option to workerConfig.notification as alternative to apprise
* Add uptime.config.ts example for webhook option
* Removed trailing commas from newly added types for consistency
* Add ability to customize webhook body
* use template
---------
Co-authored-by: lyc8503 <me@lyc8503.net>
* Updated with intial commit
- MaintenanceAlert.tsx now handles upcoming and active maintenance alerts.
- OverallStatus.tsx updated to include collapsible sections for ongoing and upcoming maintenance alerts.
* Updated MaintenanceAlert layout for better responsiveness
* Revert the uptime.config.ts
* fix: Added type definitions for active and upcoming maintenances
* Update components/MaintenanceAlert.tsx
Co-authored-by: Bennet Gallein <me@bennetgallein.de>
* Update: added `pageConfig.maintenances.upcomingColor` to control upcoming maintenance alert colors.
* Feature: Added a config option for the favicon.
* keep original styles
* remove collapse
* add back a different collapse for upcoming events
* css grid to align date text
* tiny css changes and cleanup
---------
Co-authored-by: Bennet Gallein <me@bennetgallein.de>
Co-authored-by: lyc8503 <me@lyc8503.net>
* feat: add incident history link to links in header
* fix: lower margin-bottom on header to have not that much wasted space
* chore: move footer to own component
* feat: add NoIncidents component
* feat: add incidents history page
* fix: add sorting by date
* fix: fix sorting
* feat: hash linking to individual incidents
* fix: always truthy title
* feat: remove hash
* feat: some link improvements
* feat: improve styles for alert, support mobile devices
* fix: remove unused vars, larger margin
---------
Co-authored-by: lyc8503 <me@lyc8503.net>
* fix: allow partial callbacks in config types
* fix: allow non-async callback functions in config types
* fix: specify type of monitor argument in callback type
* fix: use generics type for env argument in callback type