mirror of
https://github.com/immich-app/immich.git
synced 2026-02-08 18:58:42 +03:00
- Create new timeline component (extracted from asset-gird) without removing old code - Add timeline/, timeline/actions/, timeline/base-components/, and timeline/internal-components/ directories - Copy needed components (delete-asset-dialog, scrubber, skeleton) to new locations - Add new timeline components (base-timeline, base-timeline-viewer, timeline-month, etc.) - Update timeline-util.ts with new functions (findMonthAtScrollPosition, formatGroupTitleFull) - Add asset-viewer-actions and asset-viewer-and-actions components This allows the timeline to exist alongside the current AssetGrid component.
19 lines
423 B
Svelte
19 lines
423 B
Svelte
<script lang="ts">
|
|
import { onMount } from 'svelte';
|
|
import type { UpdatePayload } from 'vite';
|
|
|
|
interface Props {
|
|
onAfterUpdate: (payload: UpdatePayload) => void;
|
|
}
|
|
|
|
let { onAfterUpdate }: Props = $props();
|
|
|
|
onMount(() => {
|
|
const hot = import.meta.hot;
|
|
if (hot) {
|
|
hot.on('vite:afterUpdate', onAfterUpdate);
|
|
return () => hot.off('vite:afterUpdate', onAfterUpdate);
|
|
}
|
|
});
|
|
</script>
|