2023-08-05 05:26:28 +02:00
|
|
|
export enum AssetAction {
|
|
|
|
ARCHIVE = 'archive',
|
|
|
|
UNARCHIVE = 'unarchive',
|
|
|
|
FAVORITE = 'favorite',
|
|
|
|
UNFAVORITE = 'unfavorite',
|
2023-10-06 09:01:14 +02:00
|
|
|
TRASH = 'trash',
|
|
|
|
RESTORE = 'restore',
|
2023-08-05 05:26:28 +02:00
|
|
|
}
|
|
|
|
|
2022-12-09 21:51:42 +01:00
|
|
|
export enum AppRoute {
|
2023-07-01 06:50:47 +02:00
|
|
|
ADMIN_USER_MANAGEMENT = '/admin/user-management',
|
|
|
|
ADMIN_SETTINGS = '/admin/system-settings',
|
|
|
|
ADMIN_STATS = '/admin/server-status',
|
|
|
|
ADMIN_JOBS = '/admin/jobs-status',
|
2022-12-09 21:51:42 +01:00
|
|
|
|
2023-07-01 06:50:47 +02:00
|
|
|
ALBUMS = '/albums',
|
2023-09-20 13:16:33 +02:00
|
|
|
LIBRARIES = '/libraries',
|
2023-07-01 06:50:47 +02:00
|
|
|
ARCHIVE = '/archive',
|
|
|
|
FAVORITES = '/favorites',
|
|
|
|
PEOPLE = '/people',
|
|
|
|
PHOTOS = '/photos',
|
|
|
|
EXPLORE = '/explore',
|
|
|
|
SHARING = '/sharing',
|
|
|
|
SHARED_LINKS = '/sharing/sharedlinks',
|
|
|
|
SEARCH = '/search',
|
|
|
|
MAP = '/map',
|
|
|
|
USER_SETTINGS = '/user-settings',
|
|
|
|
MEMORY = '/memory',
|
2023-10-06 09:01:14 +02:00
|
|
|
TRASH = '/trash',
|
2023-03-06 15:31:58 +01:00
|
|
|
|
2023-07-01 06:50:47 +02:00
|
|
|
AUTH_LOGIN = '/auth/login',
|
|
|
|
AUTH_LOGOUT = '/auth/logout',
|
|
|
|
AUTH_REGISTER = '/auth/register',
|
|
|
|
AUTH_CHANGE_PASSWORD = '/auth/change-password',
|
2022-12-09 21:51:42 +01:00
|
|
|
}
|
2023-07-28 06:29:09 +02:00
|
|
|
|
|
|
|
export enum ProjectionType {
|
|
|
|
EQUIRECTANGULAR = 'EQUIRECTANGULAR',
|
|
|
|
CUBEMAP = 'CUBEMAP',
|
|
|
|
CUBESTRIP = 'CUBESTRIP',
|
|
|
|
EQUIRECTANGULAR_STEREO = 'EQUIRECTANGULAR_STEREO',
|
|
|
|
CUBEMAP_STEREO = 'CUBEMAP_STEREO',
|
|
|
|
CUBESTRIP_STEREO = 'CUBESTRIP_STEREO',
|
|
|
|
CYLINDER = 'CYLINDER',
|
|
|
|
NONE = 'NONE',
|
|
|
|
}
|
2023-08-11 18:00:51 +02:00
|
|
|
|
|
|
|
export const dateFormats = {
|
|
|
|
album: <Intl.DateTimeFormatOptions>{
|
|
|
|
month: 'short',
|
|
|
|
day: 'numeric',
|
|
|
|
year: 'numeric',
|
|
|
|
},
|
|
|
|
};
|