mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
feat(web): revamp places (#12219)
* revamp places * add english translations * migrate places page and components to svelte 5 * fix lint * chore: cleanup --------- Co-authored-by: Jason Rasmussen <jason@rasm.me>
This commit is contained in:
@@ -101,6 +101,14 @@ export interface AlbumViewSettings {
|
||||
};
|
||||
}
|
||||
|
||||
export interface PlacesViewSettings {
|
||||
groupBy: string;
|
||||
collapsedGroups: {
|
||||
// Grouping Option => Array<Group ID>
|
||||
[group: string]: string[];
|
||||
};
|
||||
}
|
||||
|
||||
export interface SidebarSettings {
|
||||
people: boolean;
|
||||
sharing: boolean;
|
||||
@@ -147,6 +155,16 @@ export const albumViewSettings = persisted<AlbumViewSettings>('album-view-settin
|
||||
collapsedGroups: {},
|
||||
});
|
||||
|
||||
export enum PlacesGroupBy {
|
||||
None = 'None',
|
||||
Country = 'Country',
|
||||
}
|
||||
|
||||
export const placesViewSettings = persisted<PlacesViewSettings>('places-view-settings', {
|
||||
groupBy: PlacesGroupBy.None,
|
||||
collapsedGroups: {},
|
||||
});
|
||||
|
||||
export const showDeleteModal = persisted<boolean>('delete-confirm-dialog', true, {});
|
||||
|
||||
export const alwaysLoadOriginalFile = persisted<boolean>('always-load-original-file', false, {});
|
||||
|
||||
Reference in New Issue
Block a user