1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-24 04:46:50 +02:00

chore(deps): update typescript-eslint monorepo to v8 (major) (#11598)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
renovate[bot]
2024-08-05 19:13:00 +00:00
committed by GitHub
parent bb3d9b6306
commit 2821e0bf95
26 changed files with 358 additions and 324 deletions

View File

@ -82,18 +82,33 @@
let paused = false;
// Play or pause progress when the paused state changes.
$: paused ? handlePromiseError(pause()) : handlePromiseError(play());
$: {
if (paused) {
handlePromiseError(pause());
} else {
handlePromiseError(play());
}
}
// Progress should be paused when it's no longer possible to advance.
$: paused ||= !canGoForward || galleryInView;
// Advance to the next asset or memory when progress is complete.
$: $progress === 1 && handlePromiseError(toNext());
$: {
if ($progress === 1) {
handlePromiseError(toNext());
}
}
// Progress should be resumed when reset and not paused.
$: !$progress && !paused && handlePromiseError(play());
$: {
if (!$progress && !paused) {
handlePromiseError(play());
}
}
// Progress should be reset when the current memory or asset changes.
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
$: memoryIndex, assetIndex, handlePromiseError(reset());
let selectedAssets: Set<AssetResponseDto> = new Set();