파일 캐시 추가

This commit is contained in:
static
2025-01-14 01:03:26 +09:00
parent 9ab107794a
commit ea0f0e4a71
7 changed files with 127 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
import type { ClientInit } from "@sveltejs/kit";
import { getClientKey, getMasterKeys, getHmacSecrets } from "$lib/indexedDB";
import { prepareFileCache } from "$lib/modules/cache";
import { prepareOpfs } from "$lib/modules/opfs";
import { clientKeyStore, masterKeyStore, hmacSecretStore } from "$lib/stores";
const prepareClientKeyStore = async () => {
@@ -29,5 +31,11 @@ const prepareHmacSecretStore = async () => {
};
export const init: ClientInit = async () => {
await Promise.all([prepareClientKeyStore(), prepareMasterKeyStore(), prepareHmacSecretStore()]);
await Promise.all([
prepareFileCache(),
prepareClientKeyStore(),
prepareMasterKeyStore(),
prepareHmacSecretStore(),
prepareOpfs(),
]);
};