Fully rename Pixeldrain to Nova

This commit is contained in:
Pixeldrain-Server committed 2026-06-10 23:53:03 +02:00
1 parent 3c13cd1a14
commit 7b24a9d8cf
95 files changed
+321 -1989

No files matched your search

+11 -11
View File
@@ -2,9 +2,9 @@
import Euro from "util/Euro.svelte";
import ProgressBar from "util/ProgressBar.svelte";
let fnx_storage = $state(0)
let fnx_egress = $state(0)
let fnx_total = $state(0)
let nova_storage = $state(0)
let nova_egress = $state(0)
let nova_total = $state(0)
let backblaze_storage = $state(0)
let backblaze_egress = $state(0)
let backblaze_api = $state(0)
@@ -20,9 +20,9 @@ let avg_file_size = $state(1000) // kB
$effect(() => {
// Nova has a minimum file size of 10kB. Calculate the number of files from
// storage and avg file size, then calculate storage usage based on that.
fnx_storage = Math.max(storage * 4, ((storage*10)/avg_file_size)*4)
fnx_egress = egress * 1
fnx_total = fnx_storage + fnx_egress
nova_storage = Math.max(storage * 4, ((storage*10)/avg_file_size)*4)
nova_egress = egress * 1
nova_total = nova_storage + nova_egress
// Egress at Backblaze is free up to three times the amount of storage, then
// it's $10/TB
@@ -35,7 +35,7 @@ $effect(() => {
wasabi_storage = storage * 6.99
wasabi_total = (egress > storage) ? 0 : wasabi_storage
price_max = Math.max(fnx_total, backblaze_total, wasabi_total)
price_max = Math.max(nova_total, backblaze_total, wasabi_total)
});
</script>
@@ -67,10 +67,10 @@ $effect(() => {
<div class="bars">
<div>
<div>
Nova.storage - <Euro amount={fnx_total*1e6}/> / month<br/>
<Euro amount={fnx_storage*1e6}/> storage,
<Euro amount={fnx_egress*1e6}/> egress
<ProgressBar used={fnx_total} total={price_max}/>
Nova.storage - <Euro amount={nova_total*1e6}/> / month<br/>
<Euro amount={nova_storage*1e6}/> storage,
<Euro amount={nova_egress*1e6}/> egress
<ProgressBar used={nova_total} total={price_max}/>
</div>
{#if avg_file_size < 10}
<div>