settings.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. module.exports = {
  2. /**
  3. * @type {string}
  4. * @description Web page title
  5. */
  6. title: 'ChargEco CSMS',
  7. version: 'v2.2.1',
  8. /**
  9. * @type {string}
  10. * @description project name
  11. */
  12. projectName: 'ChargEco',
  13. company: 'Strides YTL Pte. Ltd.',
  14. defaultCountry: 'SG',
  15. defaultCalling: '65',
  16. dashboardVersion: 2,
  17. enableWebPos: true,
  18. enableTopup: false,
  19. enableEVCPID: true,
  20. enableOCPIToken: false, //是否显示完整的OCPI Token(仅ChargEco为false)
  21. enablePassword12: true, //是否启用高复杂度密码安全策略(仅ChargEco为true)
  22. enableSessionAuth: true, //是否启用Session管理登录而不是localStorage
  23. /**
  24. * @type {string}
  25. * @description API url base service
  26. */
  27. baseUrl: '/steve',
  28. /**
  29. * @type {boolean} true | false
  30. * @description Whether show the settings right-panel
  31. */
  32. showSettings: false,
  33. /**
  34. * @type {boolean} true | false
  35. * @description Whether need tagsView
  36. */
  37. tagsView: false,
  38. /**
  39. * @type {boolean} true | false
  40. * @description Whether fix the header
  41. */
  42. fixedHeader: true,
  43. /**
  44. * @type {boolean} true | false
  45. * @description Whether show the logo in sidebar
  46. */
  47. sidebarLogo: true,
  48. /**
  49. * 是否启用在线校验路由
  50. * - true 每次刷新都将获取最新的路由权限
  51. * - false 每次刷新获取本地缓存的路由权限
  52. */
  53. enableOnlineAuth: true,
  54. /**
  55. * @type {string | array} 'production' | ['production', 'development']
  56. * @description Need show err logs component.
  57. * The default is only used in the production env
  58. * If you want to also use it in dev, you can pass ['production', 'development']
  59. */
  60. errorLog: 'production'
  61. }