mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-01 03:05:18 +02:00
immich: Show dates of images next to the results
This commit is contained in:
parent
c7d34f6c48
commit
94fca45af0
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { createEventDispatcher, onMount } from 'svelte';
|
||||||
import { t } from 'svelte-i18n';
|
import { t } from 'svelte-i18n';
|
||||||
import ImmichLogo from '$lib/assets/immich.svg';
|
import ImmichLogo from '$lib/assets/immich.svg';
|
||||||
import type { Adventure, ImmichAlbum } from '$lib/types';
|
import type { Adventure, ImmichAlbum } from '$lib/types';
|
||||||
|
@ -6,15 +7,13 @@
|
||||||
|
|
||||||
let immichImages: any[] = [];
|
let immichImages: any[] = [];
|
||||||
let immichSearchValue: string = '';
|
let immichSearchValue: string = '';
|
||||||
let searchCategory: 'search' | 'date' | 'album' = 'search';
|
let searchCategory: 'search' | 'date' | 'album' = 'date';
|
||||||
let immichError: string = '';
|
let immichError: string = '';
|
||||||
let immichNextURL: string = '';
|
let immichNextURL: string = '';
|
||||||
let loading = false;
|
let loading = false;
|
||||||
|
|
||||||
export let adventure: Adventure | null = null;
|
export let adventure: Adventure | null = null;
|
||||||
|
|
||||||
// TODO: Show date of pictures somewhere?
|
|
||||||
import { createEventDispatcher, onMount } from 'svelte';
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
let albums: ImmichAlbum[] = [];
|
let albums: ImmichAlbum[] = [];
|
||||||
|
@ -177,6 +176,9 @@
|
||||||
alt="Image from Immich"
|
alt="Image from Immich"
|
||||||
class="h-24 w-24 object-cover rounded-md"
|
class="h-24 w-24 object-cover rounded-md"
|
||||||
/>
|
/>
|
||||||
|
<h4>
|
||||||
|
{image.fileCreatedAt?.split('T')[0] || "Unknown"}
|
||||||
|
</h4>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-sm btn-primary"
|
class="btn btn-sm btn-primary"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue