UNPKG

modules-pack

Version:

JavaScript Modules for Modern Frontend & Backend Projects

22 lines (19 loc) 877 B
import { __PROD__, Active, ONE_HOUR, ONE_MONTH, ONE_WEEK } from 'utils-pack' import { THEME } from './configs' import { CURRENCY } from './definitions' /** * PROJECT DEFAULTS ============================================================ * ============================================================================= */ export const DEFAULT = { LANGUAGE: Active.LANG._, CURRENCY: CURRENCY.USD._, LOGIN_DURATION: __PROD__ ? ONE_MONTH : ONE_WEEK, // match `TOKEN_LIFESPAN_JWT` GRADIENT_HUE_COUNT: 3, PAY_INTERVAL: ONE_HOUR, QUERY_LIMIT: 1000, // generic limit QUERY_ID_LIMIT: 10000, // about 2.9 KB for 100 ObjectIds, allowing 33k IDs per 1 MB QUERY_TAG_LIMIT: 1000, // about 0.3 KB for each tag with 10 languages, allowing 3.3k Tags per 1 MB QUERY_USER_LIMIT: 300, // each user response takes about ?, GraphQl default limit is 1 MB THEME: THEME.LIGHT, }