From 8c90cf030db530d5f471e3034ad80b92070442d1 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sat, 29 Mar 2025 20:33:08 +0100 Subject: [PATCH] update s3 comparison page --- src/lib/layouts/post.svelte | 9 ++++++++- src/routes/posts/quick-comparison-of-s3/+page.md | 4 ++-- .../posts/quick-comparison-of-s3/_compare/Compare.svelte | 8 ++++---- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/lib/layouts/post.svelte b/src/lib/layouts/post.svelte index ca914db..fd17b14 100644 --- a/src/lib/layouts/post.svelte +++ b/src/lib/layouts/post.svelte @@ -13,6 +13,7 @@ export let title; export let date; + export let dateUpdated; export let description; export let categories; export let bigThumbnail; @@ -20,6 +21,9 @@ let dt = DateTime.fromISO(date); $: dt = DateTime.fromISO(date); + + let dtu = dateUpdated && DateTime.fromISO(dateUpdated); + $: dtu = dateUpdated && DateTime.fromISO(dateUpdated); @@ -50,7 +54,10 @@

{title}

Written {dt.toRelativeCalendar()} ({dt.toLocaleString(DateTime.DATE_FULL)}) - {categories.join(", ")} + {#if dtu} + Updated {dtu.toRelativeCalendar()} ({dtu.toLocaleString(DateTime.DATE_FULL)}) + {/if} +
diff --git a/src/routes/posts/quick-comparison-of-s3/+page.md b/src/routes/posts/quick-comparison-of-s3/+page.md index 1d415c0..c80bff5 100644 --- a/src/routes/posts/quick-comparison-of-s3/+page.md +++ b/src/routes/posts/quick-comparison-of-s3/+page.md @@ -1,6 +1,7 @@ --- title: Quick comparison of pricing of Simple Storage Services date: 2022-05-16 +dateUpdated: 2025-03-29 author: Daniel Bulant authorIcon: /logo.png categories: [programming, storage, comparison, s3] @@ -48,8 +49,7 @@ Delete operations are free (`DeleteObject`, `DeleteBucket`, `DeleteMultipartUplo ## Wasabi -EU/NA: ***$5.99/TB/month*** -APAC: ***$6.99/TB/month*** +***$6.99/TB/month*** No API charge/egress. Minimum fee of 1TB storage. diff --git a/src/routes/posts/quick-comparison-of-s3/_compare/Compare.svelte b/src/routes/posts/quick-comparison-of-s3/_compare/Compare.svelte index d89b5b2..1cbb4fb 100644 --- a/src/routes/posts/quick-comparison-of-s3/_compare/Compare.svelte +++ b/src/routes/posts/quick-comparison-of-s3/_compare/Compare.svelte @@ -13,15 +13,15 @@ { name: "Cloudflare R2", nameShort: "R2", - price: ({ storage, egress, fileCount, dataRetention, cloudflareProxy }) => 10 * storage + Math.max(0, fileCount-10e6)*0.36/1e6, - priceString: "10 * storage + Math.max(0, fileCount-10e6)*0.36/1e6", + price: ({ storage, egress, fileCount, dataRetention, cloudflareProxy }) => 15 * storage + Math.max(0, fileCount-10e6)*0.36/1e6, + priceString: "15 * storage + Math.max(0, fileCount-10e6)*0.36/1e6", color: "orange", link: "cloudflare-r2" }, { name: "Wasabi", nameShort: "Wasabi", - price: ({ storage, egress, fileCount, dataRetention, cloudflareProxy }) => 5 * storage * (90/dataRetention), - priceString: "5 * storage * (90/dataRetention)", + price: ({ storage, egress, fileCount, dataRetention, cloudflareProxy }) => 7 * storage * (90/dataRetention), + priceString: "7 * storage * (90/dataRetention)", color: "green", link: "wasabi" }, {