settings.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. const Cookies = require('js-cookie')
  2. function getTitle() {
  3. let lang = Cookies.get('DefaultLanguage')
  4. if (lang === 'zh') {
  5. return '呼叫系统配置中心'
  6. } else if (lang === 'en') {
  7. return 'System Configuration'
  8. } else {
  9. return 'Configuración del sistema'
  10. }
  11. }
  12. module.exports = {
  13. title: getTitle(),
  14. /**
  15. * @type {boolean} true | false
  16. * @description Whether show the settings right-panel
  17. */
  18. showSettings: true,
  19. /**
  20. * @type {boolean} true | false
  21. * @description Whether need tagsView
  22. */
  23. tagsView: true,
  24. /**
  25. * @type {boolean} true | false
  26. * @description Whether fix the header
  27. */
  28. fixedHeader: false,
  29. /**
  30. * @type {boolean} true | false
  31. * @description Whether show the logo in sidebar
  32. */
  33. sidebarLogo: false,
  34. /**
  35. * @type {string | array} 'production' | ['production', 'development']
  36. * @description Need show err logs component.
  37. * The default is only used in the production env
  38. * If you want to also use it in dev, you can pass ['production', 'development']
  39. */
  40. errorLog: 'production'
  41. }