revert: "feat(web): wasm justified layout" (#19226)

This commit is contained in:
Zack Pollard
2025-06-17 17:01:40 +01:00
committed by GitHub
parent 0684a3ada4
commit 4c69511225
13 changed files with 145 additions and 106 deletions

View File

@@ -1,17 +1,17 @@
import { retrieveServerConfig } from '$lib/stores/server-config.store';
import { initLanguage } from '$lib/utils';
import { init as initLayout } from '@immich/justified-layout-wasm';
import { defaults } from '@immich/sdk';
import { memoize } from 'lodash-es';
type Fetch = typeof fetch;
function _init(fetch: Fetch) {
async function _init(fetch: Fetch) {
// set event.fetch on the fetch-client used by @immich/sdk
// https://kit.svelte.dev/docs/load#making-fetch-requests
// https://github.com/oazapfts/oazapfts/blob/main/README.md#fetch-options
defaults.fetch = fetch;
return Promise.all([initLayout(), initLanguage(), retrieveServerConfig()]);
await initLanguage();
await retrieveServerConfig();
}
export const init = memoize(_init, () => 'singlevalue');