mirror of
https://github.com/immich-app/immich.git
synced 2025-01-10 13:56:47 +01:00
84e60ea155
* move from app.html to user-page-layout.svelte * fix: use layout.svelte * simplify * fix: map style don't change * fix: auto switch theme map * use constants * simplify * rename * rename settign * fix: remove * pr feedback * fix: tests * fix: migration * fix: migration * pr feedback * simplify * simplify * pr feedback * fix: merge * chore: set insetad of toggle on click --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
65 lines
1.5 KiB
TypeScript
65 lines
1.5 KiB
TypeScript
export enum AssetAction {
|
|
ARCHIVE = 'archive',
|
|
UNARCHIVE = 'unarchive',
|
|
FAVORITE = 'favorite',
|
|
UNFAVORITE = 'unfavorite',
|
|
TRASH = 'trash',
|
|
DELETE = 'delete',
|
|
// RESTORE = 'restore',
|
|
ADD = 'add',
|
|
}
|
|
|
|
export enum AppRoute {
|
|
ADMIN_USER_MANAGEMENT = '/admin/user-management',
|
|
ADMIN_SETTINGS = '/admin/system-settings',
|
|
ADMIN_STATS = '/admin/server-status',
|
|
ADMIN_JOBS = '/admin/jobs-status',
|
|
ADMIN_REPAIR = '/admin/repair',
|
|
|
|
ALBUMS = '/albums',
|
|
LIBRARIES = '/libraries',
|
|
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',
|
|
TRASH = '/trash',
|
|
PARTNERS = '/partners',
|
|
|
|
AUTH_LOGIN = '/auth/login',
|
|
AUTH_LOGOUT = '/auth/logout',
|
|
AUTH_REGISTER = '/auth/register',
|
|
AUTH_CHANGE_PASSWORD = '/auth/change-password',
|
|
AUTH_ONBOARDING = '/auth/onboarding',
|
|
}
|
|
|
|
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',
|
|
}
|
|
|
|
export const dateFormats = {
|
|
album: <Intl.DateTimeFormatOptions>{
|
|
month: 'short',
|
|
day: 'numeric',
|
|
year: 'numeric',
|
|
},
|
|
};
|
|
|
|
// should be the same values as the ones in the app.html
|
|
export enum Theme {
|
|
LIGHT = 'light',
|
|
DARK = 'dark',
|
|
}
|