From 36006a9b7238aa2a5e9340de1285cce23eb615f6 Mon Sep 17 00:00:00 2001 From: static Date: Thu, 30 Jan 2025 20:32:38 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=86=8C=ED=95=9C=20=EB=A6=AC?= =?UTF-8?q?=ED=8C=A9=ED=86=A0=EB=A7=81=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/server/services/file.ts | 4 ++-- src/routes/(fullscreen)/+layout.svelte | 2 +- src/routes/(main)/BottomBar.svelte | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/lib/server/services/file.ts b/src/lib/server/services/file.ts index 1f7f34f..d0b35ef 100644 --- a/src/lib/server/services/file.ts +++ b/src/lib/server/services/file.ts @@ -114,7 +114,7 @@ export const uploadFile = async ( try { const hashStream = createHash("sha256"); - const [_, hash] = await Promise.all([ + const [, hash] = await Promise.all([ pipeline( encContentStream, async function* (source) { @@ -127,7 +127,7 @@ export const uploadFile = async ( ), encContentHash, ]); - if (hashStream.digest("base64") != hash) { + if (hashStream.digest("base64") !== hash) { throw new Error("Invalid checksum"); } diff --git a/src/routes/(fullscreen)/+layout.svelte b/src/routes/(fullscreen)/+layout.svelte index d320930..9426a87 100644 --- a/src/routes/(fullscreen)/+layout.svelte +++ b/src/routes/(fullscreen)/+layout.svelte @@ -4,6 +4,6 @@ let { children } = $props(); - + {@render children()} diff --git a/src/routes/(main)/BottomBar.svelte b/src/routes/(main)/BottomBar.svelte index 51d5d2d..60c2b24 100644 --- a/src/routes/(main)/BottomBar.svelte +++ b/src/routes/(main)/BottomBar.svelte @@ -21,10 +21,12 @@
{#each pages as { path, label, icon: Icon }} - {@const textColor = !page.url.pathname.startsWith(path) ? "text-gray-600" : ""}