Files
immich/web/src/lib/elements/HotModuleReload.svelte
midzelis 3e9f713d81 refactor: new timeline component
- 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.
2025-09-18 21:07:45 +00:00

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>