ice.fo.utils
Version:
59 lines (46 loc) • 1.65 kB
JavaScript
export const TOKEN_SUFFIX = 'SvcJWT'
export const REFRESH_SUFFIX = 'ReSvcJWT'
export const ADM_SUFFIX = 'admJWT'
export const MNG_SUFFIX = 'mngJWT'
export const ICE_COOKIE_SIGNED = 'iceSS'
export const ICE_SOURCE_PREFIX = 'ice'
export const ICE_IP_HEADER_NAME = 'ice-request-ip'
export const COMPONENT_FILE_PATTERN = '**/[A-Z][a-zA-z0-9]+.vue'
export const ICE_EXCLUSIVE_SITE_ID = [ICE_SOURCE_PREFIX, 'publish']
export const ICE_EVENTS = {
PAGE_SEED_READY: 'PAGE_SEED_READY',
}
export const ROUTE_NAMES = {
ContentEditablePage: 'ice_content',
BuilderEditablePage: 'ice_builder',
LandingPageBuilder: 'ice_landing_builder',
ImagePageBuilder: 'ice_image_builder',
DynamicPage: 'DynamicPage',
GuideFrame: 'ice-ComponentFrame',
ProfilePage: 'ice_profile_page',
LandingPage: 'ice_landing_page',
SurveyPage: 'ice_survey_page',
ChatPage: 'ice_chat_page',
FormPage: 'ice_form_page',
}
export const FO_PAGE_TYPE = {
Builder: 'builder',
Coding: 'coding',
}
export const STORE_ACTIONS = {
SAVE_USER_INFO: 'SAVE_USER_INFO',
}
export const EXCLUDE_ASYNC_COMPONENTS = [
'SystemContainer',
]
export const LAZY_RENDER_MODE = {
IN_VIEW: 'IN_VIEW', // SSR = Normal Render, Client = Render when scrolled into viewport
CLIENT_IN_VIEW: 'CLIENT_IN_VIEW', // SSR = Not Render, Client = Render when scrolled into viewport => No SEO
SEQUENCE: 'SEQUENCE', // SSR = Normal Render, Client = Render All but in top-down sequence
CLIENT_SEQUENCE: 'CLIENT_SEQUENCE', // SSR = Not Render, Client = Render All but in top-down sequence
}
export const DEVICE_RENDER_CHANNEL = {
MOBILE: 'mobile',
DESKTOP: 'web',
APP: 'app',
}