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 %>,
|
2019-08-06 21:06:19 +08:00
|
|
|
FILENAME_TRUNCATION_LENGTH: <%= Constants::FILENAME_TRUNCATION_LENGTH %>,
|
|
|
|
FILE_MAX_SIZE_MB: <%= Rails.configuration.x.file_max_size_mb %>,
|
2019-11-05 22:33:04 +08:00
|
|
|
IS_SAFARI: /^((?!chrome|android).)*safari/i.test(navigator.userAgent),
|
|
|
|
REPOSITORY_LIST_ITEMS_PER_COLUMN: <%= Constants::REPOSITORY_LIST_ITEMS_PER_COLUMN %>
|
2019-08-06 21:06:19 +08:00
|
|
|
};
|