About
+Deployment Info
+Repo Setup
+DNS Configuration
+May only be lowercase letters and dashes, max 20 chars
+ {setName(e.currentTarget.value)}}/> -Don't see your technology/framework? Email me: nws-support@nickorlow.com
+ +Don't see your technology/framework? Email me: nws-support@nickorlow.com
-Other git hosting providers are not currently supported through the Web UI
-The repo must be public to create it through the Web UI
- {setGUI(e.currentTarget.value)}}/> - curl -s https://raw.githubusercontent.com/nickorlow/nws-ghactions-templates/main/add-nws.sh | bash -s {strat} {owner} {repo}
+
+ curl -s https://raw.githubusercontent.com/nickorlow/nws-ghactions-templates/main/add-nws.sh | bash -s {strat} {owner} {repo}
+
If your DNS provider is:
Type: CNAME
Name: {new URI(hostUriInput).subdomain()} ({new URI(hostUriInput).hostname()})
diff --git a/src/components/HomePage.tsx b/src/components/HomePage.tsx index dd1af73..7661373 100644 --- a/src/components/HomePage.tsx +++ b/src/components/HomePage.tsx @@ -1,4 +1,4 @@ -import NWSLogo from "../static/images/NWS_Logo.png"; +import NWSLogo from "../static/images/NWS_Logo_Transparent.png"; import UptimeCard from "./UptimeCard"; import IncidentCard from "./IncidentCard"; import Footer from "./Footer"; @@ -6,6 +6,8 @@ import React, {useEffect, useState} from "react"; import {Incident, UptimeResponse} from "../nws-api/types"; import {getIncidents, getUptime} from "../nws-api/calls"; import "../App.css"; +import UptimeComparisonCard from "./UptimeComparisonCard"; +import UptimeLabelCard from "./UptimeLabelCard"; export default function HomePage() { @@ -30,7 +32,6 @@ export default function HomePage() { return(Last updated at {new Date(uptime.lastUpdated).toLocaleString()}
-Uptime (Last Month)
+{props.uptime.uptimeMonth}%
+Uptime ({new Date().getFullYear()} YTD)
+{props.uptime.uptimeYtd}%
+Avg Response Time (24hr)
+{props.uptime.averageResponseTime}ms
+Current Status
++ {props.uptime.isUp ? 'Up' : (props.uptime.undergoingMaintenance ? 'Maintenance' : 'Down')} +
+Monitoring since {props.uptime.monitorStart}
+{new Date().getFullYear()} Uptime (YTD): {props.uptime.uptimeYtd}%
+Last Month Uptime: {props.uptime.uptimeMonth}%
+All-Time Uptime: {props.uptime.uptimeAllTime}%
+Average Response Time: {props.uptime.averageResponseTime}ms
+Service Name
+Uptime (Last Month)
+Uptime ({new Date().getFullYear()} YTD)
+Avg Response Time (24hr)
+Current Status
+