diff --git a/web/src/lib/components/shared-components/gallery-viewer/gallery-viewer.svelte b/web/src/lib/components/shared-components/gallery-viewer/gallery-viewer.svelte index ac99c105ef..2b36d5723f 100644 --- a/web/src/lib/components/shared-components/gallery-viewer/gallery-viewer.svelte +++ b/web/src/lib/components/shared-components/gallery-viewer/gallery-viewer.svelte @@ -8,13 +8,13 @@ {#if assets.length > 0} -
- {#each assets as asset (asset.id)} -
- (isMultiSelectionMode ? selectAssetHandler(e) : viewAssetHandler(e))} - on:select={selectAssetHandler} - selected={selectedAssets.has(asset)} - {showArchiveIcon} - /> -
- {/each} -
+
+ {#each assets as asset (asset.id)} +
+ (isMultiSelectionMode ? selectAssetHandler(e) : viewAssetHandler(e))} + on:select={selectAssetHandler} + selected={selectedAssets.has(asset)} + {showArchiveIcon} + /> +
+ {/each} +
{/if} {#if isShowAssetViewer} - + {/if} diff --git a/web/src/routes/(user)/archive/+page.svelte b/web/src/routes/(user)/archive/+page.svelte index 2100ad8a48..582e90448c 100644 --- a/web/src/routes/(user)/archive/+page.svelte +++ b/web/src/routes/(user)/archive/+page.svelte @@ -10,15 +10,15 @@ import AssetSelectControlBar from '$lib/components/photos-page/asset-select-control-bar.svelte'; import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte'; import GalleryViewer from '$lib/components/shared-components/gallery-viewer/gallery-viewer.svelte'; - import SelectAll from 'svelte-material-icons/SelectAll.svelte'; - import { archivedAsset } from '$lib/stores/archived-asset.store'; - import { handleError } from '$lib/utils/handle-error'; - import { api, AssetResponseDto } from '@api'; - import { onMount } from 'svelte'; + import SelectAll from 'svelte-material-icons/SelectAll.svelte'; + import {archivedAsset} from '$lib/stores/archived-asset.store'; + import {handleError} from '$lib/utils/handle-error'; + import {api, AssetResponseDto} from '@api'; + import {onMount} from 'svelte'; import DotsVertical from 'svelte-material-icons/DotsVertical.svelte'; import Plus from 'svelte-material-icons/Plus.svelte'; - import type { PageData } from './$types'; - import CircleIconButton from "$lib/components/elements/buttons/circle-icon-button.svelte"; + import type {PageData} from './$types'; + import CircleIconButton from "$lib/components/elements/buttons/circle-icon-button.svelte"; export let data: PageData; @@ -28,7 +28,7 @@ onMount(async () => { try { - const { data: assets } = await api.assetApi.getAllAssets({ + const {data: assets} = await api.assetApi.getAllAssets({ isArchived: true, withoutThumbs: true }); @@ -41,41 +41,41 @@ const onAssetDelete = (assetId: string) => { $archivedAsset = $archivedAsset.filter((a) => a.id !== assetId); }; - const handleSelectAll = () => { - selectedAssets = new Set($archivedAsset) - } + const handleSelectAll = () => { + selectedAssets = new Set($archivedAsset) + } - - {#if $archivedAsset.length === 0} - - {/if} + + {#if $archivedAsset.length === 0} + + {/if} - - {#if isMultiSelectionMode} - (selectedAssets = new Set())} - > - onAssetDelete(asset.id)} /> - - - - - - - - - - - - - {/if} - + + {#if isMultiSelectionMode} + (selectedAssets = new Set())} + > + onAssetDelete(asset.id)}/> + + + + + + + + + + + + + {/if} + - + diff --git a/web/src/routes/(user)/explore/+page.svelte b/web/src/routes/(user)/explore/+page.svelte index 4405a55db1..397c0d817f 100644 --- a/web/src/routes/(user)/explore/+page.svelte +++ b/web/src/routes/(user)/explore/+page.svelte @@ -2,13 +2,13 @@ import ImageThumbnail from '$lib/components/assets/thumbnail/image-thumbnail.svelte'; import Thumbnail from '$lib/components/assets/thumbnail/thumbnail.svelte'; import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte'; - import { AppRoute } from '$lib/constants'; - import { AssetTypeEnum, SearchExploreResponseDto, api } from '@api'; + import {AppRoute} from '$lib/constants'; + import {AssetTypeEnum, SearchExploreResponseDto, api} from '@api'; import ClockOutline from 'svelte-material-icons/ClockOutline.svelte'; import HeartMultipleOutline from 'svelte-material-icons/HeartMultipleOutline.svelte'; import MotionPlayOutline from 'svelte-material-icons/MotionPlayOutline.svelte'; import PlayCircleOutline from 'svelte-material-icons/PlayCircleOutline.svelte'; - import type { PageData } from './$types'; + import type {PageData} from './$types'; export let data: PageData; @@ -31,127 +31,127 @@ - {#if people.length > 0} -
-
-

People

- {#if data.people.length > MAX_ITEMS} - View All - {/if} -
-
- {#each people as person (person.id)} - - -

{person.name}

-
- {/each} -
-
- {/if} + {#if people.length > 0} +
+
+

People

+ {#if data.people.length > MAX_ITEMS} + View All + {/if} +
+
+ {#each people as person (person.id)} + + +

{person.name}

+
+ {/each} +
+
+ {/if} - {#if places.length > 0} -
-
-

Places

-
- +
+ {/if} - {#if things.length > 0} -
-
-

Things

-
- +
+ {/if} -
+
-
- -
-

CATEGORIES

- -
-
+
+ +
+

CATEGORIES

+ +
+
diff --git a/web/src/routes/(user)/favorites/+page.svelte b/web/src/routes/(user)/favorites/+page.svelte index de4169671e..065d9e9844 100644 --- a/web/src/routes/(user)/favorites/+page.svelte +++ b/web/src/routes/(user)/favorites/+page.svelte @@ -1,81 +1,81 @@ {#if isMultiSelectionMode} - (selectedAssets = new Set())}> - onAssetDelete(asset.id)}/> - - - - - - - - - - - - + (selectedAssets = new Set())}> + onAssetDelete(asset.id)}/> + + + + + + + + + + + + {/if} -
- - {#if favorites.length === 0} - - {/if} +
+ + {#if favorites.length === 0} + + {/if} - -
+ +
diff --git a/web/src/routes/(user)/people/[personId]/+page.svelte b/web/src/routes/(user)/people/[personId]/+page.svelte index 1b46dfa5c0..28109654c3 100644 --- a/web/src/routes/(user)/people/[personId]/+page.svelte +++ b/web/src/routes/(user)/people/[personId]/+page.svelte @@ -1,134 +1,134 @@ {#if isMultiSelectionMode} - (selectedAssets = new Set())}> - - - - - - - - - - - onAssetDelete(asset.id)} - /> - - + (selectedAssets = new Set())}> + + + + + + + + + + + onAssetDelete(asset.id)} + /> + + {:else} - goto(previousRoute)} - /> + goto(previousRoute)} + /> {/if}
- {#if isEditName} - handleNameChange(event.detail)} - on:cancel={() => (isEditName = false)} - /> - {:else} - - - {/if} + {#if isEditName} + handleNameChange(event.detail)} + on:cancel={() => (isEditName = false)} + /> + {:else} + + + {/if}
-
-
- +
+
+ +
-
diff --git a/web/src/routes/(user)/search/+page.svelte b/web/src/routes/(user)/search/+page.svelte index 2070ab82f3..ce7f25e6cf 100644 --- a/web/src/routes/(user)/search/+page.svelte +++ b/web/src/routes/(user)/search/+page.svelte @@ -1,105 +1,105 @@
- {#if isMultiSelectionMode} - (selectedAssets = new Set())}> - - - - - - - + {#if isMultiSelectionMode} + (selectedAssets = new Set())}> + + + + + + + - - - - - - - {:else} - goto(previousRoute)} backIcon={ArrowLeft}> -
- -
-
- {/if} + + + + + +
+ {:else} + goto(previousRoute)} backIcon={ArrowLeft}> +
+ +
+
+ {/if}
-
-
- {#if data.results?.assets?.items.length > 0} -
- -
- {:else} -
-
- -

No results

-

Try a synonym or more general keyword

-
-
- {/if} +
+
+ {#if data.results?.assets?.items.length > 0} +
+ +
+ {:else} +
+
+ +

No results

+

Try a synonym or more general keyword

+
+
+ {/if} +
-