mirror of
https://github.com/immich-app/immich.git
synced 2025-06-16 21:38:28 +02:00
refactor: event manager (#17862)
* refactor: event manager * refactor: event manager
This commit is contained in:
parent
e822e3eca9
commit
d0014bdf94
12 changed files with 127 additions and 47 deletions
web/src/lib/stores
|
@ -1,3 +1,4 @@
|
|||
import { eventManager } from '$lib/stores/event-manager.svelte';
|
||||
import { asLocalTimeISO } from '$lib/utils/date-time';
|
||||
import {
|
||||
type AssetResponseDto,
|
||||
|
@ -24,6 +25,10 @@ export type MemoryAsset = MemoryIndex & {
|
|||
};
|
||||
|
||||
class MemoryStoreSvelte {
|
||||
constructor() {
|
||||
eventManager.on('auth.logout', () => this.clearCache());
|
||||
}
|
||||
|
||||
memories = $state<MemoryResponseDto[]>([]);
|
||||
private initialized = false;
|
||||
private memoryAssets = $derived.by(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue