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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 358 additions and 324 deletions

View file

@ -228,7 +228,11 @@
unsubscribe?.();
});
$: asset.id && !sharedLink && handlePromiseError(handleGetAllAlbums()); // Update the album information when the asset ID changes
$: {
if (asset.id && !sharedLink) {
handlePromiseError(handleGetAllAlbums());
}
}
const handleGetAllAlbums = async () => {
if (isSharedLink()) {

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();

View file

@ -205,6 +205,7 @@
case AssetAction.RESTORE:
case AssetAction.DELETE: {
// find the next asset to show or close the viewer
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
(await handleNext()) || (await handlePrevious()) || handleClose();
// delete after find the next one

View file

@ -12,9 +12,13 @@
let textarea: HTMLTextAreaElement;
$: newContent = content;
$: if (textarea) {
$: {
// re-visit with svelte 5. runes will make this better.
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
newContent;
void tick().then(() => autoGrowHeight(textarea));
if (textarea) {
void tick().then(() => autoGrowHeight(textarea));
}
}
const updateContent = () => {

View file

@ -188,7 +188,9 @@
asButton
let:feature
on:click={(event) => {
$$slots.popup || handleAssetClick(event.detail.feature.properties?.id, map);
if (!$$slots.popup) {
handleAssetClick(event.detail.feature.properties?.id, map);
}
}}
>
{#if useLocationPin}

View file

@ -33,6 +33,8 @@
let progress = setDuration(duration);
// svelte 5, again....
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
$: duration, handlePromiseError(onChange());
$: {

View file

@ -36,7 +36,9 @@
return 'bg-immich-primary dark:bg-immich-dark-primary';
};
$: $user && onUpdate();
$: if ($user) {
onUpdate();
}
onMount(async () => {
await requestServerInfo();

View file

@ -28,7 +28,9 @@
}
};
$: $isUploading && autoHide();
$: if ($isUploading) {
autoHide();
}
</script>
{#if $hasError || $isUploading}

View file

@ -27,6 +27,8 @@
let img: HTMLImageElement;
let showFallback = true;
// sveeeeeeelteeeeee fiveeeeee
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
$: img, user, void tryLoadImage();
const tryLoadImage = async () => {

View file

@ -14,7 +14,9 @@
$: releaseVersion = $release && semverToName($release.releaseVersion);
$: serverVersion = $release && semverToName($release.serverVersion);
$: $release?.isAvailable && handleRelease();
$: if ($release?.isAvailable) {
handleRelease();
}
const onAcknowledge = () => {
localStorage.setItem('appVersion', releaseVersion);