generated from methanium/template
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 010758cde7 | |||
|
f59470bc1f |
4 changed files with 76 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ export function Header() {
|
|||
</Button>
|
||||
</nav>
|
||||
<div className="flex h-full items-center gap-2">
|
||||
<p className="text-sm text-muted-foreground">
|
||||
<p className="text-sm text-muted-foreground max-w-70 overflow-hidden truncate">
|
||||
{snapshot?.generatedAt
|
||||
? `Updated ${formatTime(snapshot.generatedAt)}`
|
||||
: (error?.message ?? "Waiting for data")}
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ function ServiceRow({
|
|||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"px-4 flex items-center justify-between gap-40 py-2",
|
||||
"px-4 flex items-center justify-between py-2 min-w-130",
|
||||
index < max - 1
|
||||
? "border-border border-b border-[#C5CED6] dark:border-[#242D38]"
|
||||
: "",
|
||||
|
|
@ -268,7 +268,7 @@ function ServiceRow({
|
|||
<span className="truncate">{service.name}</span>
|
||||
<ExternalLink className="size-3 opacity-0 transition-opacity group-hover:opacity-60" />
|
||||
</a>
|
||||
<p className="mt-1 truncate text-xs text-muted-foreground">
|
||||
<p className="mt-1 truncate text-xs max-w-80 text-muted-foreground">
|
||||
{service.error ??
|
||||
(service.latencyMs !== null
|
||||
? `${service.latencyMs} ms${service.checkHttp3 ? " (HTTP/3 verified)" : ""}`
|
||||
|
|
|
|||
72
config.toml
Normal file
72
config.toml
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
public_address = "0.0.0.0"
|
||||
public_port = 4433
|
||||
admin_address = "127.0.0.1"
|
||||
admin_port = 8091
|
||||
check_interval_seconds = 300
|
||||
timeout_seconds = 15
|
||||
certificate = ".dev/cert.pem"
|
||||
private_key = ".dev/key.pem"
|
||||
frontend_dir = "apps/frontend/dist"
|
||||
state_dir = ".dev/state"
|
||||
curl = "curl"
|
||||
|
||||
[[categories]]
|
||||
id = "methanium"
|
||||
name = "Methanium"
|
||||
logo = "apps/frontend/public/methanium.svg"
|
||||
|
||||
[[categories.services]]
|
||||
id = "methanium-homepage"
|
||||
name = "Homepage"
|
||||
url = "https://methanium.net"
|
||||
|
||||
[[categories.services]]
|
||||
id = "methanium-ui"
|
||||
name = "Methanium UI"
|
||||
url = "https://ui.methanium.net"
|
||||
|
||||
[[categories.services]]
|
||||
id = "vector-verdict"
|
||||
name = "Vector Verdict"
|
||||
url = "https://vv.methanium.net"
|
||||
|
||||
[[categories.services]]
|
||||
id = "methanium-git"
|
||||
name = "Git"
|
||||
url = "https://git.methanium.net"
|
||||
|
||||
[[categories.services]]
|
||||
id = "methanium-legal"
|
||||
name = "Legal Page"
|
||||
url = "https://legal.methanium.net"
|
||||
|
||||
[[categories]]
|
||||
id = "tensamin"
|
||||
name = "Tensamin"
|
||||
logo = "apps/frontend/public/tensamin.svg"
|
||||
|
||||
[[categories.services]]
|
||||
id = "tensamin-homepage"
|
||||
name = "Homepage"
|
||||
url = "https://tensamin.net"
|
||||
|
||||
[[categories.services]]
|
||||
id = "tensamin-app"
|
||||
name = "Web App"
|
||||
url = "https://app.tensamin.net"
|
||||
|
||||
[[categories.services]]
|
||||
id = "tensamin-dev"
|
||||
name = "Web App (Dev)"
|
||||
url = "https://dev.tensamin.net"
|
||||
|
||||
[[categories.services]]
|
||||
id = "tensamin-docs"
|
||||
name = "Docs"
|
||||
url = "https://docs.tensamin.net"
|
||||
|
||||
[[categories.services]]
|
||||
id = "tensamin-omega"
|
||||
name = "Omega"
|
||||
url = "https://omega.tensamin.net"
|
||||
check_http3 = true
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
"packageManager": "pnpm@11.17.0",
|
||||
"scripts": {
|
||||
"dev": "pnpm dev:cert && concurrently --kill-others --success first --names frontend,backend --prefix-colors cyan,magenta \"pnpm --filter @methanium/status-frontend dev\" \"pnpm dev:backend\"",
|
||||
"dev:cert": "mkdir -p .dev && if [ ! -f .dev/cert.pem ] || [ ! -f .dev/key.pem ] || ! openssl x509 -in .dev/cert.pem -checkend 0 -noout >/dev/null 2>&1 || ! openssl x509 -in .dev/cert.pem -noout -text | grep -q 'Public Key Algorithm: id-ecPublicKey'; then openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -nodes -keyout .dev/key.pem -out .dev/cert.pem -days 10 -subj /CN=localhost -addext subjectAltName=DNS:localhost,IP:127.0.0.1; fi && printf 'VITE_MTP_URL=https://127.0.0.1:4433/mtp\\nVITE_MTP_CERT_HASH=%s\\n' \"$(openssl x509 -in .dev/cert.pem -outform DER | openssl dgst -sha256 -r | cut -d ' ' -f1)\" > apps/frontend/.env.local",
|
||||
"dev:cert": "mkdir -p .dev && if [ ! -f .dev/cert.pem ] || [ ! -f .dev/key.pem ] || ! openssl x509 -in .dev/cert.pem -checkend 0 -noout >/dev/null 2>&1 || ! openssl x509 -in .dev/cert.pem -noout -text | grep -q 'Public Key Algorithm: id-ecPublicKey'; then openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -nodes -keyout .dev/key.pem -out .dev/cert.pem -days 10 -subj /CN=localhost -addext subjectAltName=DNS:localhost,IP:127.0.0.1; fi && printf 'VITE_MTP_URL=https://127.0.0.1:4433/\\nVITE_MTP_CERT_HASH=%s\\n' \"$(openssl x509 -in .dev/cert.pem -outform DER | openssl dgst -sha256 -r | cut -d ' ' -f1)\" > apps/frontend/.env.local",
|
||||
"dev:backend": "cargo run --manifest-path apps/backend/Cargo.toml -- config.example.toml",
|
||||
"build": "pnpm --filter @methanium/status-frontend build",
|
||||
"check": "tsc -p tsconfig.json && cargo check --manifest-path apps/backend/Cargo.toml",
|
||||
|
|
|
|||
Loading…
Reference in a new issue