mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 09:15:05 +03:00
chore(web): migration svelte 5 syntax (#13883)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<script lang="ts" context="module">
|
||||
<script lang="ts" module>
|
||||
const recentTimes: number[] = [];
|
||||
// TODO: track average time to measure, and use this to populate TUNABLES.ASSETS_STORE.CHECK_INTERVAL_MS
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
@@ -20,9 +20,13 @@
|
||||
import { resizeObserver } from '$lib/actions/resize-observer';
|
||||
import type { AssetBucket, AssetStore, BucketListener } from '$lib/stores/assets.store';
|
||||
|
||||
export let assetStore: AssetStore;
|
||||
export let bucket: AssetBucket;
|
||||
export let onMeasured: () => void;
|
||||
interface Props {
|
||||
assetStore: AssetStore;
|
||||
bucket: AssetBucket;
|
||||
onMeasured: () => void;
|
||||
}
|
||||
|
||||
let { assetStore, bucket, onMeasured }: Props = $props();
|
||||
|
||||
async function _measure(element: Element) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user