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',
|
2024-04-20 03:19:50 +02:00
|
|
|
RESTORE = 'restore',
|
2023-12-05 01:18:28 +01:00
|
|
|
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',
|
2024-02-29 19:35:37 +01:00
|
|
|
ADMIN_LIBRARY_MANAGEMENT = '/admin/library-management',
|
2023-07-01 06:50:47 +02:00
|
|
|
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',
|
2024-05-23 19:57:25 +02:00
|
|
|
|
|
|
|
UTILITIES = '/utilities',
|
|
|
|
DUPLICATES = '/utilities/duplicates',
|
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',
|
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;
|
|
|
|
|
2024-02-18 20:18:40 +01:00
|
|
|
// time to load the map before displaying the loading spinner
|
|
|
|
export const timeToLoadTheMap: number = 100;
|
|
|
|
|
2024-01-28 01:54:31 +01:00
|
|
|
export const timeBeforeShowLoadingSpinner: number = 100;
|
2024-02-18 20:18:40 +01:00
|
|
|
|
2024-04-26 08:00:06 +02:00
|
|
|
export const timeDebounceOnSearch: number = 300;
|
|
|
|
|
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',
|
|
|
|
}
|
2024-02-22 15:36:14 +01:00
|
|
|
|
|
|
|
export const fallbackLocale = {
|
|
|
|
code: 'en-US',
|
|
|
|
name: 'English (US)',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const locales = [
|
|
|
|
{ code: 'af-ZA', name: 'Afrikaans (South Africa)' },
|
|
|
|
{ code: 'sq-AL', name: 'Albanian (Albania)' },
|
|
|
|
{ code: 'ar-DZ', name: 'Arabic (Algeria)' },
|
|
|
|
{ code: 'ar-BH', name: 'Arabic (Bahrain)' },
|
|
|
|
{ code: 'ar-EG', name: 'Arabic (Egypt)' },
|
|
|
|
{ code: 'ar-IQ', name: 'Arabic (Iraq)' },
|
|
|
|
{ code: 'ar-JO', name: 'Arabic (Jordan)' },
|
|
|
|
{ code: 'ar-KW', name: 'Arabic (Kuwait)' },
|
|
|
|
{ code: 'ar-LB', name: 'Arabic (Lebanon)' },
|
|
|
|
{ code: 'ar-LY', name: 'Arabic (Libya)' },
|
|
|
|
{ code: 'ar-MA', name: 'Arabic (Morocco)' },
|
|
|
|
{ code: 'ar-OM', name: 'Arabic (Oman)' },
|
|
|
|
{ code: 'ar-QA', name: 'Arabic (Qatar)' },
|
|
|
|
{ code: 'ar-SA', name: 'Arabic (Saudi Arabia)' },
|
|
|
|
{ code: 'ar-SY', name: 'Arabic (Syria)' },
|
|
|
|
{ code: 'ar-TN', name: 'Arabic (Tunisia)' },
|
|
|
|
{ code: 'ar-AE', name: 'Arabic (United Arab Emirates)' },
|
|
|
|
{ code: 'ar-YE', name: 'Arabic (Yemen)' },
|
|
|
|
{ code: 'hy-AM', name: 'Armenian (Armenia)' },
|
|
|
|
{ code: 'az-AZ', name: 'Azerbaijani (Azerbaijan)' },
|
|
|
|
{ code: 'eu-ES', name: 'Basque (Spain)' },
|
|
|
|
{ code: 'be-BY', name: 'Belarusian (Belarus)' },
|
|
|
|
{ code: 'bn-IN', name: 'Bengali (India)' },
|
|
|
|
{ code: 'bs-BA', name: 'Bosnian (Bosnia and Herzegovina)' },
|
|
|
|
{ code: 'bg-BG', name: 'Bulgarian (Bulgaria)' },
|
|
|
|
{ code: 'ca-ES', name: 'Catalan (Spain)' },
|
|
|
|
{ code: 'zh-CN', name: 'Chinese (China)' },
|
|
|
|
{ code: 'zh-HK', name: 'Chinese (Hong Kong SAR China)' },
|
|
|
|
{ code: 'zh-MO', name: 'Chinese (Macao SAR China)' },
|
|
|
|
{ code: 'zh-SG', name: 'Chinese (Singapore)' },
|
|
|
|
{ code: 'zh-TW', name: 'Chinese (Taiwan)' },
|
|
|
|
{ code: 'hr-HR', name: 'Croatian (Croatia)' },
|
|
|
|
{ code: 'cs-CZ', name: 'Czech (Czech Republic)' },
|
|
|
|
{ code: 'da-DK', name: 'Danish (Denmark)' },
|
|
|
|
{ code: 'nl-BE', name: 'Dutch (Belgium)' },
|
|
|
|
{ code: 'nl-NL', name: 'Dutch (Netherlands)' },
|
|
|
|
{ code: 'en-AU', name: 'English (Australia)' },
|
|
|
|
{ code: 'en-BZ', name: 'English (Belize)' },
|
|
|
|
{ code: 'en-CA', name: 'English (Canada)' },
|
|
|
|
{ code: 'en-IE', name: 'English (Ireland)' },
|
|
|
|
{ code: 'en-JM', name: 'English (Jamaica)' },
|
|
|
|
{ code: 'en-NZ', name: 'English (New Zealand)' },
|
|
|
|
{ code: 'en-PH', name: 'English (Philippines)' },
|
|
|
|
{ code: 'en-ZA', name: 'English (South Africa)' },
|
|
|
|
{ code: 'en-TT', name: 'English (Trinidad and Tobago)' },
|
|
|
|
{ code: 'en-VI', name: 'English (U.S. Virgin Islands)' },
|
|
|
|
{ code: 'en-GB', name: 'English (United Kingdom)' },
|
|
|
|
{ code: 'en-US', name: 'English (United States)' },
|
|
|
|
{ code: 'en-ZW', name: 'English (Zimbabwe)' },
|
|
|
|
{ code: 'et-EE', name: 'Estonian (Estonia)' },
|
|
|
|
{ code: 'fo-FO', name: 'Faroese (Faroe Islands)' },
|
|
|
|
{ code: 'fi-FI', name: 'Finnish (Finland)' },
|
|
|
|
{ code: 'fr-BE', name: 'French (Belgium)' },
|
|
|
|
{ code: 'fr-CA', name: 'French (Canada)' },
|
|
|
|
{ code: 'fr-FR', name: 'French (France)' },
|
|
|
|
{ code: 'fr-LU', name: 'French (Luxembourg)' },
|
|
|
|
{ code: 'fr-MC', name: 'French (Monaco)' },
|
|
|
|
{ code: 'fr-CH', name: 'French (Switzerland)' },
|
|
|
|
{ code: 'gl-ES', name: 'Galician (Spain)' },
|
|
|
|
{ code: 'ka-GE', name: 'Georgian (Georgia)' },
|
|
|
|
{ code: 'de-AT', name: 'German (Austria)' },
|
|
|
|
{ code: 'de-DE', name: 'German (Germany)' },
|
|
|
|
{ code: 'de-LI', name: 'German (Liechtenstein)' },
|
|
|
|
{ code: 'de-LU', name: 'German (Luxembourg)' },
|
|
|
|
{ code: 'de-CH', name: 'German (Switzerland)' },
|
|
|
|
{ code: 'el-GR', name: 'Greek (Greece)' },
|
|
|
|
{ code: 'gu-IN', name: 'Gujarati (India)' },
|
|
|
|
{ code: 'he-IL', name: 'Hebrew (Israel)' },
|
|
|
|
{ code: 'hi-IN', name: 'Hindi (India)' },
|
|
|
|
{ code: 'hu-HU', name: 'Hungarian (Hungary)' },
|
|
|
|
{ code: 'is-IS', name: 'Icelandic (Iceland)' },
|
|
|
|
{ code: 'id-ID', name: 'Indonesian (Indonesia)' },
|
|
|
|
{ code: 'it-IT', name: 'Italian (Italy)' },
|
|
|
|
{ code: 'it-CH', name: 'Italian (Switzerland)' },
|
|
|
|
{ code: 'ja-JP', name: 'Japanese (Japan)' },
|
|
|
|
{ code: 'kn-IN', name: 'Kannada (India)' },
|
|
|
|
{ code: 'kk-KZ', name: 'Kazakh (Kazakhstan)' },
|
|
|
|
{ code: 'kok-IN', name: 'Konkani (India)' },
|
|
|
|
{ code: 'ko-KR', name: 'Korean (South Korea)' },
|
|
|
|
{ code: 'lv-LV', name: 'Latvian (Latvia)' },
|
|
|
|
{ code: 'lt-LT', name: 'Lithuanian (Lithuania)' },
|
|
|
|
{ code: 'mk-MK', name: 'Macedonian (Macedonia)' },
|
|
|
|
{ code: 'ms-BN', name: 'Malay (Brunei)' },
|
|
|
|
{ code: 'ms-MY', name: 'Malay (Malaysia)' },
|
|
|
|
{ code: 'ml-IN', name: 'Malayalam (India)' },
|
|
|
|
{ code: 'mt-MT', name: 'Maltese (Malta)' },
|
|
|
|
{ code: 'mr-IN', name: 'Marathi (India)' },
|
|
|
|
{ code: 'mn-MN', name: 'Mongolian (Mongolia)' },
|
|
|
|
{ code: 'se-NO', name: 'Northern Sami (Norway)' },
|
|
|
|
{ code: 'nb-NO', name: 'Norwegian Bokmål (Norway)' },
|
|
|
|
{ code: 'nn-NO', name: 'Norwegian Nynorsk (Norway)' },
|
|
|
|
{ code: 'fa-IR', name: 'Persian (Iran)' },
|
|
|
|
{ code: 'pl-PL', name: 'Polish (Poland)' },
|
|
|
|
{ code: 'pt-BR', name: 'Portuguese (Brazil)' },
|
|
|
|
{ code: 'pt-PT', name: 'Portuguese (Portugal)' },
|
|
|
|
{ code: 'pa-IN', name: 'Punjabi (India)' },
|
|
|
|
{ code: 'ro-RO', name: 'Romanian (Romania)' },
|
|
|
|
{ code: 'ru-RU', name: 'Russian (Russia)' },
|
|
|
|
{ code: 'sr-BA', name: 'Serbian (Bosnia and Herzegovina)' },
|
|
|
|
{ code: 'sr-CS', name: 'Serbian (Serbia And Montenegro)' },
|
|
|
|
{ code: 'sk-SK', name: 'Slovak (Slovakia)' },
|
|
|
|
{ code: 'sl-SI', name: 'Slovenian (Slovenia)' },
|
|
|
|
{ code: 'es-AR', name: 'Spanish (Argentina)' },
|
|
|
|
{ code: 'es-BO', name: 'Spanish (Bolivia)' },
|
|
|
|
{ code: 'es-CL', name: 'Spanish (Chile)' },
|
|
|
|
{ code: 'es-CO', name: 'Spanish (Colombia)' },
|
|
|
|
{ code: 'es-CR', name: 'Spanish (Costa Rica)' },
|
|
|
|
{ code: 'es-DO', name: 'Spanish (Dominican Republic)' },
|
|
|
|
{ code: 'es-EC', name: 'Spanish (Ecuador)' },
|
|
|
|
{ code: 'es-SV', name: 'Spanish (El Salvador)' },
|
|
|
|
{ code: 'es-GT', name: 'Spanish (Guatemala)' },
|
|
|
|
{ code: 'es-HN', name: 'Spanish (Honduras)' },
|
|
|
|
{ code: 'es-MX', name: 'Spanish (Mexico)' },
|
|
|
|
{ code: 'es-NI', name: 'Spanish (Nicaragua)' },
|
|
|
|
{ code: 'es-PA', name: 'Spanish (Panama)' },
|
|
|
|
{ code: 'es-PY', name: 'Spanish (Paraguay)' },
|
|
|
|
{ code: 'es-PE', name: 'Spanish (Peru)' },
|
|
|
|
{ code: 'es-PR', name: 'Spanish (Puerto Rico)' },
|
|
|
|
{ code: 'es-ES', name: 'Spanish (Spain)' },
|
|
|
|
{ code: 'es-UY', name: 'Spanish (Uruguay)' },
|
|
|
|
{ code: 'es-VE', name: 'Spanish (Venezuela)' },
|
|
|
|
{ code: 'sw-KE', name: 'Swahili (Kenya)' },
|
|
|
|
{ code: 'sv-FI', name: 'Swedish (Finland)' },
|
|
|
|
{ code: 'sv-SE', name: 'Swedish (Sweden)' },
|
|
|
|
{ code: 'syr-SY', name: 'Syriac (Syria)' },
|
|
|
|
{ code: 'ta-IN', name: 'Tamil (India)' },
|
|
|
|
{ code: 'te-IN', name: 'Telugu (India)' },
|
|
|
|
{ code: 'th-TH', name: 'Thai (Thailand)' },
|
|
|
|
{ code: 'tn-ZA', name: 'Tswana (South Africa)' },
|
|
|
|
{ code: 'tr-TR', name: 'Turkish (Turkey)' },
|
|
|
|
{ code: 'uk-UA', name: 'Ukrainian (Ukraine)' },
|
|
|
|
{ code: 'uz-UZ', name: 'Uzbek (Uzbekistan)' },
|
|
|
|
{ code: 'vi-VN', name: 'Vietnamese (Vietnam)' },
|
|
|
|
{ code: 'cy-GB', name: 'Welsh (United Kingdom)' },
|
|
|
|
{ code: 'xh-ZA', name: 'Xhosa (South Africa)' },
|
|
|
|
{ code: 'zu-ZA', name: 'Zulu (South Africa)' },
|
|
|
|
];
|