Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.js 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * Config
  3. * -------------------------------------------------------------------------------------
  4. * ! IMPORTANT: Make sure you clear the browser local storage In order to see the config changes in the template.
  5. * ! To clear local storage: (https://www.leadshook.com/help/how-to-clear-local-storage-in-google-chrome-browser/).
  6. */
  7. 'use strict';
  8. // JS global variables
  9. window.config = {
  10. colors: {
  11. primary: '#7367f0',
  12. secondary: '#a8aaae',
  13. success: '#28c76f',
  14. info: '#00cfe8',
  15. warning: '#ff9f43',
  16. danger: '#ea5455',
  17. dark: '#4b4b4b',
  18. black: '#000',
  19. white: '#fff',
  20. cardColor: '#fff',
  21. bodyBg: '#f8f7fa',
  22. bodyColor: '#6f6b7d',
  23. headingColor: '#5d596c',
  24. textMuted: '#a5a3ae',
  25. borderColor: '#dbdade'
  26. },
  27. colors_label: {
  28. primary: '#7367f029',
  29. secondary: '#a8aaae29',
  30. success: '#28c76f29',
  31. info: '#00cfe829',
  32. warning: '#ff9f4329',
  33. danger: '#ea545529',
  34. dark: '#4b4b4b29'
  35. },
  36. colors_dark: {
  37. cardColor: '#2f3349',
  38. bodyBg: '#25293c',
  39. bodyColor: '#b6bee3',
  40. headingColor: '#cfd3ec',
  41. textMuted: '#7983bb',
  42. borderColor: '#434968'
  43. },
  44. enableMenuLocalStorage: true // Enable menu state with local storage support
  45. };
  46. window.assetsPath = document.documentElement.getAttribute('data-assets-path');
  47. window.templateName = document.documentElement.getAttribute('data-template');
  48. window.rtlSupport = true; // set true for rtl support (rtl + ltr), false for ltr only.
  49. /**
  50. * TemplateCustomizer
  51. * ! You must use(include) template-customizer.js to use TemplateCustomizer settings
  52. * -----------------------------------------------------------------------------------------------
  53. */
  54. // To use more themes, just push it to THEMES object.
  55. /* TemplateCustomizer.THEMES.push({
  56. name: 'theme-raspberry',
  57. title: 'Raspberry'
  58. }); */
  59. // To add more languages, just push it to LANGUAGES object.
  60. /*
  61. TemplateCustomizer.LANGUAGES.fr = { ... };
  62. */
  63. /**
  64. * TemplateCustomizer settings
  65. * -------------------------------------------------------------------------------------
  66. * cssPath: Core CSS file path
  67. * themesPath: Theme CSS file path
  68. * displayCustomizer: true(Show customizer), false(Hide customizer)
  69. * lang: To set default language, Add more langues and set default. Fallback language is 'en'
  70. * controls: [ 'rtl', 'style', 'headerType', 'contentLayout', 'layoutCollapsed', 'layoutNavbarOptions', 'themes' ] | Show/Hide customizer controls
  71. * defaultTheme: 0(Default), 1(Bordered), 2(Semi Dark)
  72. * defaultStyle: 'light', 'dark', 'system' (Mode)
  73. * defaultTextDir: 'ltr', 'rtl' (rtlSupport must be true for rtl mode)
  74. * defaultContentLayout: 'compact', 'wide' (compact=container-xxl, wide=container-fluid)
  75. * defaultHeaderType: 'static', 'fixed' (for horizontal layout only)
  76. * defaultMenuCollapsed: true, false (For vertical layout only)
  77. * defaultNavbarType: 'sticky', 'static', 'hidden' (For vertical layout only)
  78. * defaultFooterFixed: true, false (For vertical layout only)
  79. * defaultShowDropdownOnHover : true, false (for horizontal layout only)
  80. */
  81. if (typeof TemplateCustomizer !== 'undefined') {
  82. window.templateCustomizer = new TemplateCustomizer({
  83. cssPath: assetsPath + 'vendor/css' + (rtlSupport ? '/rtl' : '') + '/',
  84. themesPath: assetsPath + 'vendor/css' + (rtlSupport ? '/rtl' : '') + '/',
  85. displayCustomizer: true,
  86. lang: localStorage.getItem('templateCustomizer-' + templateName + '--Lang') || 'en', // Set default language here
  87. // defaultTheme: 2,
  88. // defaultStyle: 'system',
  89. // defaultTextDir: 'rtl',
  90. // defaultContentLayout: 'wide',
  91. // defaultHeaderType: 'static',
  92. // defaultMenuCollapsed: true,
  93. // defaultNavbarType: 'sticky',
  94. // defaultFooterFixed: false,
  95. // defaultShowDropdownOnHover: false,
  96. controls: ['rtl', 'style', 'headerType', 'contentLayout', 'layoutCollapsed', 'layoutNavbarOptions', 'themes']
  97. });
  98. }