/**
 * 项目内常量,禁止重新赋值修改
 */

export const rootRoute = '/'
export const publicUrl = process.env.PUBLIC_PATH || '/'
export const parentKey = 'parent'
export const routeLimitKey = '$page'
export const appRootId = 'app-root'
export const defaultEnvMode = 'localhost'
export const coreStatic = `${publicUrl}static/ovine/core`
export const strDelimiter = '@##@'

// 屏幕尺寸定义
export const breakpoints = {
  xs: 0,
  sm: 576,
  md: 768,
  lg: 992,
  xl: 1200,
}

// core 需要用的一些关键字均使用 libXXX 开头，防止与开发者业务冲突

// 消息通知相关的 key
export const message = {
  storeRoot: '$store/',
  layoutSpinner: '$store/libLayoutSpinner',
  appTheme: 'libAppThemeMsg',
  appLocale: 'libAppLocaleMsg',
  clearRouteTabs: 'libClearRouteTabsMsg',
  routeTabChange: 'libRouteTabChangeMsg',
  asideLayoutCtrl: {
    msg: 'libAsideLayoutCtrlMsg',
    reload: 'libToggleAsideReloadMsg',
    toggleScreen: 'libToggleAsideScreenMsg',
    toggleFold: 'libToggleAsideFoldMsg',
  },
}

// 存储相关的 key
export const storage = {
  appInstance: 'libAppInsStore',
  userInfo: 'libUserInfoStore',
  appTheme: 'libAppThemeStore', // 注意此处修改 cli 的主题有用到 'libAppThemeStore' 字符串，修改的时候切记一起改，
  appLocale: 'libAppLocaleStore',
  appLimit: 'libAppLimitStore',
  routeTabs: 'libRouteTabsStore', // 存储 RouteTabs 数据
  routeQuery: 'libRouteQueryStore',
  supportRouteTabs: 'supportRouteTabsStore', // 是否支持 RouteTabs
  enableRouteTabs: 'libEnableRouteTabsStore', // 在支持的情况下， 是否开启使用 RouteTabs 功能
  routeData: 'libRouteDataStore',
  dev: {
    code: 'libDevCodeGlobal',
    limit: 'libDevLimitStore',
    api: 'libDevApiStore',
  },
}
