2019-08-06 21:06:19 +08:00
|
|
|
const GLOBAL_CONSTANTS = {
|
|
|
|
NAME_TRUNCATION_LENGTH: <%= Constants::NAME_TRUNCATION_LENGTH %>,
|
|
|
|
NAME_MAX_LENGTH: <%= Constants::NAME_MAX_LENGTH %>,
|
2019-11-11 05:36:17 +08:00
|
|
|
NAME_MIN_LENGTH: <%= Constants::NAME_MIN_LENGTH %>,
|
2020-01-09 20:32:03 +08:00
|
|
|
TEXT_MAX_LENGTH: <%= Constants::TEXT_MAX_LENGTH %>,
|
2024-03-15 01:35:22 +08:00
|
|
|
TABLE_CARD_MIN_WIDTH: 340, <%# pixels %>
|
|
|
|
TABLE_CARD_GAP: 16, <%# pixels %>
|
2019-08-06 21:06:19 +08:00
|
|
|
FILENAME_TRUNCATION_LENGTH: <%= Constants::FILENAME_TRUNCATION_LENGTH %>,
|
2020-02-11 22:58:17 +08:00
|
|
|
FILE_MAX_SIZE_MB: parseInt($('meta[name="max-file-size"]').attr('content'), 10),
|
2019-11-05 22:33:04 +08:00
|
|
|
IS_SAFARI: /^((?!chrome|android).)*safari/i.test(navigator.userAgent),
|
2019-12-11 21:49:14 +08:00
|
|
|
REPOSITORY_LIST_ITEMS_PER_COLUMN: <%= Constants::REPOSITORY_LIST_ITEMS_PER_COLUMN %>,
|
2020-11-03 05:19:33 +08:00
|
|
|
REPOSITORY_CHECKLIST_ITEMS_PER_COLUMN: <%= Constants::REPOSITORY_CHECKLIST_ITEMS_PER_COLUMN %>,
|
2022-01-18 20:17:05 +08:00
|
|
|
REPOSITORY_STOCK_UNIT_ITEMS_PER_COLUMN: <%= Constants::REPOSITORY_STOCK_UNIT_ITEMS_PER_COLUMN %>,
|
2022-04-12 21:03:06 +08:00
|
|
|
HAS_UNSAVED_DATA_CLASS_NAME: 'has-unsaved-data',
|
2023-08-02 21:34:36 +08:00
|
|
|
DEFAULT_ELEMENTS_PER_PAGE: <%= Constants::DEFAULT_ELEMENTS_PER_PAGE %>,
|
|
|
|
FILENAME_MAX_LENGTH: <%= Constants::FILENAME_MAX_LENGTH %>,
|
2023-09-14 22:21:17 +08:00
|
|
|
FAST_STATUS_POLLING_INTERVAL: <%= Constants::FAST_STATUS_POLLING_INTERVAL %>,
|
|
|
|
SLOW_STATUS_POLLING_INTERVAL: <%= Constants::SLOW_STATUS_POLLING_INTERVAL %>,
|
2024-02-07 18:26:40 +08:00
|
|
|
ASSET_POLLING_INTERVAL: <%= Constants::ASSET_POLLING_INTERVAL %>,
|
2023-10-19 17:53:18 +08:00
|
|
|
ASSET_SYNC_URL: '<%= Constants::ASSET_SYNC_URL %>',
|
2024-04-08 02:36:02 +08:00
|
|
|
GLOBAL_SEARCH_PREVIEW_LIMIT: <%= Constants::GLOBAL_SEARCH_PREVIEW_LIMIT %>,
|
|
|
|
SEARCH_LIMIT: <%= Constants::SEARCH_LIMIT %>
|
2019-08-06 21:06:19 +08:00
|
|
|
};
|