Add ablum feature to web (#352)

* Added album page

* Refactor sidebar

* Added album assets count info

* Added album viewer page

* Refactor album sorting

* Fixed incorrectly showing selected asset in album selection

* Improve fetching speed with prefetch

* Refactor to use ImmichThubmnail component for all

* Update to the latest version of Svelte

* Implement fixed app bar in album viewer

* Added shared user avatar

* Correctly get all owned albums, including shared
This commit is contained in:
Alex
2022-07-15 23:18:17 -05:00
committed by GitHub
parent 1887b5a860
commit 7134f93eb8
62 changed files with 2572 additions and 991 deletions

View File

@@ -1,9 +1,9 @@
export enum AdminSideBarSelection {
USER_MANAGEMENT = "User management",
USER_MANAGEMENT = 'User management',
}
export enum AppSideBarSelection {
PHOTOS = "Photos",
EXPLORE = "Explore",
}
PHOTOS = 'Photos',
EXPLORE = 'Explore',
ALBUMS = 'Albums',
}

View File

@@ -1,54 +0,0 @@
export enum AssetType {
IMAGE = 'IMAGE',
VIDEO = 'VIDEO',
AUDIO = 'AUDIO',
OTHER = 'OTHER',
}
export type ImmichExif = {
id: string;
assetId: string;
make: string;
model: string;
imageName: string;
exifImageWidth: number;
exifImageHeight: number;
fileSizeInByte: number;
orientation: string;
dateTimeOriginal: Date;
modifyDate: Date;
lensModel: string;
fNumber: number;
focalLength: number;
iso: number;
exposureTime: number;
latitude: number;
longitude: number;
city: string;
state: string;
country: string;
}
export type ImmichAssetSmartInfo = {
id: string;
assetId: string;
tags: string[];
objects: string[];
}
export type ImmichAsset = {
id: string;
deviceAssetId: string;
userId: string;
deviceId: string;
type: AssetType;
originalPath: string;
resizePath: string;
createdAt: string;
modifiedAt: string;
isFavorite: boolean;
mimeType: string;
duration: string;
exifInfo?: ImmichExif;
smartInfo?: ImmichAssetSmartInfo;
}