Track shards separately, upgrade deps

This commit is contained in:
Jon Staab
2025-10-13 13:35:02 -07:00
parent 0cc25913c0
commit 44555215cf
19 changed files with 1109 additions and 1616 deletions
@@ -56,7 +56,7 @@
const ciphertext = new Uint8Array(await response.arrayBuffer())
const decryptedData = await decryptFile({ciphertext, key, nonce, algorithm})
src = URL.createObjectURL(new Blob([decryptedData]))
src = URL.createObjectURL(new Blob([new Uint8Array(decryptedData)]))
}
} else {
src = url
+1 -1
View File
@@ -744,7 +744,7 @@ export const uploadFile = async (file: File, options: UploadFileOptions = {}) =>
["encryption-algorithm", algorithm],
)
file = new File([new Blob([ciphertext])], name, {
file = new File([new Uint8Array(ciphertext)], name, {
type: "application/octet-stream",
})
}
+1 -1
View File
@@ -64,7 +64,7 @@ export const getPrimaryNavItemIndex = ($page: Page) => {
case "discover":
return urls.length + 2
case "spaces": {
const routeUrl = decodeRelay($page.params.relay)
const routeUrl = decodeRelay($page.params.relay || "")
return urls.findIndex(url => url === routeUrl) + 1
}