Compare commits

...

9 Commits

Author SHA1 Message Date
Émilien (perso) abe33fdbb5
Merge pull request #35 from iv-org/use-30dratio
use 30dratio for uptime
2024-01-31 13:57:21 +01:00
Emilien Devos 205378eea3 use 30dratio for uptime 2024-01-31 00:54:51 +01:00
Emilien Devos bf472d49a0 Revert "Workaround the fact that uptimerobot doesn't return the dailyRatio anymore"
This reverts commit 4e574892ec.
2024-01-31 00:34:54 +01:00
TheFrenchGhosty 51d69784ba
Merge pull request #34 from iv-org/fix
Workaround the fact that uptimerobot doesn't return the dailyRatio anymore
2024-01-30 22:22:18 +00:00
TheFrenchGhosty 4e574892ec
Workaround the fact that uptimerobot doesn't return the dailyRatio anymore 2024-01-30 23:20:15 +01:00
Samantaz Fox 029859082e
Merge pull request #28 from iv-org/update-static-list
Update static instances list
2023-07-26 21:10:27 +00:00
Samantaz Fox 16741a24d7
Add missing string interpolation 2023-07-26 18:36:22 +02:00
Samantaz Fox ab32cb6c07
Make changes as per review comments 2023-07-26 08:25:21 +02:00
Samantaz Fox aa75d446a4
Update static instances list
Remove dead instances
Add new ones
Add flag icon
2023-07-24 19:40:54 +00:00
2 changed files with 21 additions and 15 deletions

View File

@ -37,12 +37,13 @@ html(lang="en")
table
thead
tr
th(scope="col") Region
th(scope="col") Domain
th(scope="col") Health
th(scope="col") Action
tbody#instances-tbody
tr.loading
td(colspan="3" data-loading-message="Loading instances...").loading-td Trying to run scripts...
td(colspan="4" data-loading-message="Loading instances...").loading-td Trying to run scripts...
noscript
.instances-list
@ -50,20 +51,24 @@ html(lang="en")
ul.list
-
const instances = [
"invidious.snopyta.org",
"yewtu.be",
"invidious.kavin.rocks",
"invidious-us.kavin.rocks",
"invidious-jp.kavin.rocks",
"vid.puffyan.us",
"invidious.namazso.eu",
"inv.riverside.rocks",
"vid.mint.lgbt",
"invidious.osi.kr",
"invidio.xamh.de",
"yt.artemislena.eu",
{url: "yewtu.be", flag: "🇳🇱"},
{url: "vid.puffyan.us", flag: "🇺🇸"},
{url: "invidious.flokinet.to", flag: "🇷🇴"},
{url: "invidious.projectsegfau.lt", flag: "🇫🇷"},
{url: "inv.bp.projectsegfau.lt", flag: "🇱🇺"},
{url: "inv.in.projectsegfau.lt", flag: "🇮🇳"},
{url: "invidious.tiekoetter.com", flag: "🇩🇪"},
{url: "invidious.slipfox.xyz", flag: "🇺🇸"},
{url: "invidious.privacydev.net", flag: "🇫🇷"},
{url: "vid.priv.au", flag: "🇸🇬"},
{url: "iv.ggtyler.dev", flag: "🇨🇦"},
{url: "invidious.0011.lt", flag: "🇱🇹"},
{url: "inv.zzls.xyz", flag: "🇨🇱"},
{url: "invidious.protokolla.fi", flag: "🇫🇮"},
]
for instance in instances
li: a(href=`https://${instance}`)= instance
li
= `${instance.flag} `
a(href=`https://${instance.url}`)= instance.url
include footer.pug

View File

@ -52,7 +52,7 @@
return {
name: entry[0],
details: entry[1],
health: +(healthKnown ? entry[1].monitor.dailyRatios[0].ratio : 95),
health: +(healthKnown ? entry[1].monitor["30dRatio"].ratio : 95),
healthKnown
}
}).filter(entry => {
@ -65,6 +65,7 @@
const health = entry.healthKnown ? entry.health.toFixed(0) : "(unknown)"
q("#instances-tbody").appendChild(
createElement("tr", {}, [
createElement("td", {textContent: `${entry.details.flag} ${entry.details.region}`}),
createElement("td", {textContent: entry.name}),
createElement("td", {className: "column-center "+healthUnknown, textContent: health}),
createElement("td", {className: "column-center"}, [