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',
|
2023-12-05 01:18:28 +01:00
|
|
|
DELETE = 'delete',
|
|
|
|
// RESTORE = 'restore',
|
|
|
|
ADD = 'add',
|
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',
|
2023-10-14 19:12:59 +02:00
|
|
|
ADMIN_REPAIR = '/admin/repair',
|
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',
|
2024-01-26 19:11:54 +01:00
|
|
|
PLACES = '/places',
|
2023-07-01 06:50:47 +02:00
|
|
|
PHOTOS = '/photos',
|
|
|
|
EXPLORE = '/explore',
|
2024-01-28 01:54:31 +01:00
|
|
|
SHARE = '/share',
|
2023-07-01 06:50:47 +02:00
|
|
|
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-12-12 03:35:57 +01:00
|
|
|
PARTNERS = '/partners',
|
2023-03-06 15:31:58 +01:00
|
|
|
|
2023-07-01 06:50:47 +02:00
|
|
|
AUTH_LOGIN = '/auth/login',
|
|
|
|
AUTH_REGISTER = '/auth/register',
|
|
|
|
AUTH_CHANGE_PASSWORD = '/auth/change-password',
|
2024-01-04 06:28:32 +01:00
|
|
|
AUTH_ONBOARDING = '/auth/onboarding',
|
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',
|
|
|
|
},
|
|
|
|
};
|
2024-01-07 01:15:25 +01:00
|
|
|
|
2024-01-28 01:54:31 +01:00
|
|
|
export enum QueryParameter {
|
|
|
|
ACTION = 'action',
|
|
|
|
ASSET_INDEX = 'assetIndex',
|
2024-02-11 00:25:02 +01:00
|
|
|
IS_OPEN = 'isOpen',
|
2024-01-28 01:54:31 +01:00
|
|
|
MEMORY_INDEX = 'memoryIndex',
|
|
|
|
ONBOARDING_STEP = 'step',
|
|
|
|
OPEN_SETTING = 'openSetting',
|
|
|
|
PREVIOUS_ROUTE = 'previousRoute',
|
2024-02-11 00:25:02 +01:00
|
|
|
QUERY = 'query',
|
2024-01-28 01:54:31 +01:00
|
|
|
SEARCHED_PEOPLE = 'searchedPeople',
|
|
|
|
SEARCH_TERM = 'q',
|
2024-02-11 00:25:02 +01:00
|
|
|
SMART_SEARCH = 'smartSearch',
|
2024-02-17 18:00:55 +01:00
|
|
|
PAGE = 'page',
|
2024-01-28 01:54:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export enum OpenSettingQueryParameterValue {
|
|
|
|
OAUTH = 'oauth',
|
|
|
|
JOB = 'job',
|
|
|
|
STORAGE_TEMPLATE = 'storageTemplate',
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum ActionQueryParameterValue {
|
|
|
|
MERGE = 'merge',
|
|
|
|
}
|
|
|
|
|
|
|
|
export const maximumLengthSearchPeople: number = 20;
|
|
|
|
|
|
|
|
export const timeBeforeShowLoadingSpinner: number = 100;
|
2024-01-07 01:15:25 +01:00
|
|
|
// should be the same values as the ones in the app.html
|
|
|
|
export enum Theme {
|
|
|
|
LIGHT = 'light',
|
|
|
|
DARK = 'dark',
|
|
|
|
}
|