2022-10-11 14:21:06 +02:00
|
|
|
<script>
|
2024-09-09 23:59:04 +02:00
|
|
|
import { onMount } from "svelte";
|
2025-03-27 15:38:59 +01:00
|
|
|
import Discord from "icons/Discord.svelte";
|
|
|
|
|
import Github from "icons/Github.svelte";
|
|
|
|
|
import Mastodon from "icons/Mastodon.svelte";
|
|
|
|
|
import Patreon from "icons/Patreon.svelte";
|
|
|
|
|
import Reddit from "icons/Reddit.svelte";
|
|
|
|
|
import { formatDataVolumeBits } from "util/Formatting.svelte";
|
2024-09-09 23:59:04 +02:00
|
|
|
|
2024-11-18 17:09:27 +01:00
|
|
|
export let nobg = false
|
2024-09-09 23:59:04 +02:00
|
|
|
let server_tx = 0
|
|
|
|
|
let cache_tx = 0
|
|
|
|
|
let storage_tx = 0
|
|
|
|
|
onMount(async () => {
|
|
|
|
|
try {
|
|
|
|
|
const resp = await fetch(window.api_endpoint+"/misc/cluster_speed")
|
|
|
|
|
if (resp.status >= 400) {
|
|
|
|
|
throw Error(await resp.text())
|
|
|
|
|
}
|
|
|
|
|
const speed = await resp.json()
|
|
|
|
|
server_tx = speed.server_tx
|
|
|
|
|
cache_tx = speed.cache_tx
|
|
|
|
|
storage_tx = speed.storage_tx
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error("Failed to get speed stats", err)
|
|
|
|
|
}
|
|
|
|
|
})
|
2022-10-11 14:21:06 +02:00
|
|
|
</script>
|
|
|
|
|
|
2024-11-18 17:09:27 +01:00
|
|
|
<footer class:nobg>
|
2022-10-11 14:21:06 +02:00
|
|
|
<div class="footer_content">
|
2022-12-05 15:01:04 +01:00
|
|
|
<div style="display: inline-block; margin: 0 8px;">
|
2022-12-24 11:37:31 +01:00
|
|
|
Pixeldrain is a product by
|
|
|
|
|
<a href="//fornaxian.tech" target="_blank" rel="noreferrer">Fornaxian Technologies</a>
|
2022-10-11 14:21:06 +02:00
|
|
|
</div>
|
2024-01-23 11:55:19 +01:00
|
|
|
<br/>
|
2022-12-05 15:01:04 +01:00
|
|
|
<div style="display: inline-block; margin: 0 8px;">
|
2022-12-24 11:37:31 +01:00
|
|
|
<a href="https://www.patreon.com/pixeldrain" target="_blank" rel="noreferrer">
|
2022-10-11 14:21:06 +02:00
|
|
|
<Patreon style="color: var(--body_text_color);"/> Patreon
|
|
|
|
|
</a> |
|
2024-05-17 11:58:42 +02:00
|
|
|
<a href="https://discord.gg/TWKGvYAFvX" target="_blank" rel="noreferrer">
|
2024-01-23 11:55:19 +01:00
|
|
|
<Discord style="color: var(--body_text_color);"/> Discord
|
|
|
|
|
</a> |
|
2022-12-24 11:37:31 +01:00
|
|
|
<a href="https://reddit.com/r/pixeldrain" target="_blank" rel="noreferrer">
|
2022-10-11 14:21:06 +02:00
|
|
|
<Reddit style="color: var(--body_text_color);"/> Reddit
|
|
|
|
|
</a> |
|
2022-12-24 11:37:31 +01:00
|
|
|
<a href="https://github.com/Fornaxian" target="_blank" rel="noreferrer">
|
2022-10-11 14:21:06 +02:00
|
|
|
<Github style="color: var(--body_text_color);"/> GitHub
|
|
|
|
|
</a> |
|
2022-12-24 11:37:31 +01:00
|
|
|
<a href="https://mastodon.social/web/@fornax" target="_blank" rel="noreferrer">
|
2022-10-11 14:21:06 +02:00
|
|
|
<Mastodon style="color: var(--body_text_color);"/> Mastodon
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<br/>
|
2024-09-09 23:59:04 +02:00
|
|
|
<div style="display: inline-block; margin: 0 8px;">
|
|
|
|
|
Server speed: {formatDataVolumeBits(server_tx, 4)}ps |
|
|
|
|
|
Cache cluster: {formatDataVolumeBits(cache_tx, 4)}ps |
|
|
|
|
|
Storage cluster: {formatDataVolumeBits(storage_tx, 4)}ps
|
|
|
|
|
</div>
|
|
|
|
|
<br/>
|
2022-10-11 14:21:06 +02:00
|
|
|
<span class="small_footer_text" style="font-size: .75em; line-height: .75em;">
|
|
|
|
|
page rendered by {window.server_hostname}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
2024-11-18 17:09:27 +01:00
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.nobg {
|
|
|
|
|
background-image: none;
|
|
|
|
|
background-color: unset;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
</style>
|