diff --git a/src/app.html b/src/app.html index c4092d6..e6490df 100644 --- a/src/app.html +++ b/src/app.html @@ -12,7 +12,7 @@ /> %sveltekit.head% - - %sveltekit.body% + +
%sveltekit.body%
diff --git a/src/lib/Card/Link.svelte b/src/lib/Card/Link.svelte index 66e4364..877529c 100644 --- a/src/lib/Card/Link.svelte +++ b/src/lib/Card/Link.svelte @@ -42,4 +42,8 @@ .githubcolored { @apply bg-alt text-alt-text; } + + .torcolored { + @apply bg-[#7d4698] text-white; + } diff --git a/src/lib/Card/LinksOuter.svelte b/src/lib/Card/LinksOuter.svelte index 71cc61f..5093e26 100644 --- a/src/lib/Card/LinksOuter.svelte +++ b/src/lib/Card/LinksOuter.svelte @@ -1,3 +1,3 @@ -
+
diff --git a/src/lib/Nav.svelte b/src/lib/Nav.svelte index f307c87..e2fd389 100644 --- a/src/lib/Nav.svelte +++ b/src/lib/Nav.svelte @@ -84,7 +84,6 @@ > {#each menus as { url, name, external }} -

{$page.status}: {$page.error?.message}

-The fetch request to the API probably failed, please contact us on Matrix. \ No newline at end of file +

{$page.status}: {$page.error?.message}

\ No newline at end of file diff --git a/src/routes/api/status/+server.ts b/src/routes/api/status/+server.ts index 4aea238..98464b9 100644 --- a/src/routes/api/status/+server.ts +++ b/src/routes/api/status/+server.ts @@ -12,7 +12,7 @@ const updateMap = () => { updateMap(); -setInterval(updateMap, 30000); +setInterval(updateMap, 60000); export const GET = (() => { const data = map.get("data"); diff --git a/src/routes/api/status/statusData.ts b/src/routes/api/status/statusData.ts index 8b8902d..2cd1f3b 100644 --- a/src/routes/api/status/statusData.ts +++ b/src/routes/api/status/statusData.ts @@ -1,7 +1,7 @@ import axios from "axios"; const fetchStatus = (domain: string) => { - const req = axios("https://" + domain, { timeout: 10000 }) + const req = axios("https://" + domain, { timeout: 5000 }) .then((res) => res.status) .catch((error) => error.response ? error.response.status : 500); @@ -18,6 +18,7 @@ const statusData = [ eu: "https://invidious.projectsegfau.lt/", us: "https://inv.us.projectsegfau.lt", bp: "https://inv.bp.projectsegfau.lt", + torBp: "http://invbp.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion", icon: "/icons/invidious.svg", statusEu: await fetchStatus("invidious.projectsegfau.lt"), statusUs: await fetchStatus("inv.us.projectsegfau.lt"), @@ -28,6 +29,7 @@ const statusData = [ description: "A frontend for Odysee.", eu: "https://lbry.projectsegfau.lt/", geo: "https://lbry.g.projectsegfau.lt/", + tor: "http://lbry.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion", icon: "/icons/librarian.png", statusEu: await fetchStatus("lbry.projectsegfau.lt"), statusGeo: await fetchStatus("lbry.g.projectsegfau.lt") @@ -38,6 +40,7 @@ const statusData = [ eu: "https://libreddit.projectsegfau.lt/", us: "https://libreddit.us.projectsegfau.lt", geo: "https://libreddit.g.projectsegfau.lt/", + tor: "http://libreddit.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion", icon: "/icons/libreddit.png", statusEu: await fetchStatus("libreddit.projectsegfau.lt"), statusUs: await fetchStatus("libreddit.us.projectsegfau.lt"), @@ -49,6 +52,7 @@ const statusData = [ eu: "https://nitter.projectsegfau.lt/", us: "https://nitter.us.projectsegfau.lt", geo: "https://nitter.g.projectsegfau.lt/", + tor: "http://nitter.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion", icon: "/icons/nitter.png", statusEu: await fetchStatus("nitter.projectsegfau.lt"), statusUs: await fetchStatus("nitter.us.projectsegfau.lt"), @@ -69,6 +73,7 @@ const statusData = [ eu: "https://bb.eu.projectsegfau.lt/", us: "https://bb.us.projectsegfau.lt/", geo: "https://bb.g.projectsegfau.lt/", + tor: "http://beatbump.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion", icon: "/icons/beatbump.svg", statusEu: await fetchStatus("bb.eu.projectsegfau.lt"), statusUs: await fetchStatus("bb.us.projectsegfau.lt"), @@ -80,6 +85,7 @@ const statusData = [ eu: "https://bw.eu.projectsegfau.lt/", us: "https://bw.us.projectsegfau.lt/", geo: "https://bw.g.projectsegfau.lt/", + tor: "http://breezewiki.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion", icon: "/icons/breezewiki.svg", statusEu: await fetchStatus("bw.eu.projectsegfau.lt"), statusUs: await fetchStatus("bw.us.projectsegfau.lt"), @@ -91,6 +97,7 @@ const statusData = [ eu: "https://scribe.eu.projectsegfau.lt/", us: "https://scribe.us.projectsegfau.lt/", geo: "https://scribe.g.projectsegfau.lt/", + tor: "http://scribe.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion", statusEu: await fetchStatus("scribe.eu.projectsegfau.lt"), statusUs: await fetchStatus("scribe.us.projectsegfau.lt"), statusGeo: await fetchStatus("scribe.g.projectsegfau.lt") @@ -123,6 +130,20 @@ const statusData = [ eu: "https://git.projectsegfau.lt/", icon: "/icons/gitea.png", statusEu: await fetchStatus("git.projectsegfau.lt") + }, + { + name: "Akkoma", + description: "Federated microblogging platform.", + eu: "https://social.projectsegfau.lt/", + icon: "/icons/akkoma.png", + statusEu: await fetchStatus("social.projectsegfau.lt") + }, + { + name: "Vikunja", + description: "A task management platform.", + eu: "https://todo.projectsegfau.lt/", + icon: "/icons/vikunja.png", + statusEu: await fetchStatus("todo.projectsegfau.lt") } ] }, diff --git a/src/routes/blog/+page.svelte b/src/routes/blog/+page.svelte index 374b0ed..c118c8b 100644 --- a/src/routes/blog/+page.svelte +++ b/src/routes/blog/+page.svelte @@ -31,9 +31,14 @@ title="Authors" icon="i-fa6-solid:user" /> +
- {#each data.posts as post} diff --git a/src/routes/donate/+page.md b/src/routes/donate/+page.md index d6f2166..500338f 100644 --- a/src/routes/donate/+page.md +++ b/src/routes/donate/+page.md @@ -16,7 +16,7 @@ title: Donate These donations primarily help us pay for our VPSes, domain names and other expenses related to crucial infrastructure we have to maintain. We also sometimes donate to developers who maintain software we rely heavily on such as our authentication provider. ## Donation methods -You can currently donate by credit card through [Liberapay](https://liberaypay.com) and cryptocurrencies. +You can currently donate by credit card through [Liberapay](https://liberapay.com) and cryptocurrencies. ### Credit card diff --git a/src/routes/instances/+page.svelte b/src/routes/instances/+page.svelte index 3e74c2c..c859843 100644 --- a/src/routes/instances/+page.svelte +++ b/src/routes/instances/+page.svelte @@ -1,5 +1,5 @@ - -
-
- - {#if item !== 200} - ({item}) +{#if type === "tor" || type === "torBp"} + +
+
+ {#if type === "torBp"} + Backup {/if} - {#if type === "geo"} - GeoDNS - {:else if type === "eu"} - EU - {:else if type === "us"} - US - {:else if type === "backup"} - Backup - {/if} - -
- +
+ +{:else} + +
+
+ + {#if item !== 200} + ({item}) + {/if} + {#if type === "geo"} + GeoDNS + {:else if type === "eu"} + EU + {:else if type === "us"} + US + {:else if type === "backup"} + Backup + {/if} + +
+ +{/if} \ No newline at end of file diff --git a/static/icons/akkoma.png b/static/icons/akkoma.png new file mode 100644 index 0000000..1a12b4a Binary files /dev/null and b/static/icons/akkoma.png differ diff --git a/static/icons/vikunja.png b/static/icons/vikunja.png new file mode 100644 index 0000000..b0d19da Binary files /dev/null and b/static/icons/vikunja.png differ