This commit is contained in:
2021-08-25 20:03:53 +03:00
parent 543d1c3215
commit 0621b62e4e
4 changed files with 27 additions and 28 deletions
+1 -1
View File
@@ -563,7 +563,7 @@ window.kit = window.kit || {};
};
var defaultConfig = {
defaultPath: '',
assetsPath: '',
requiredDependencies: [],
autoloadPluginList: [],
debug: false,
+13 -13
View File
@@ -1,6 +1,6 @@
__PluginManager__.registerPlugins({
menu: {
path: __pmConfig__.defaultPath + '/menu',
path: __pmConfig__.assetsPath + '/menu',
module: '/menu.js',
css: [
'/menu.css'
@@ -9,28 +9,28 @@ __PluginManager__.registerPlugins({
deps: ['lib', 'align', 'utils']
},
lib: {
path: __pmConfig__.defaultPath + '/lib',
path: __pmConfig__.assetsPath + '/lib',
module: '/lib.js',
type: 'loader',
},
align: {
path: __pmConfig__.defaultPath + '/align',
path: __pmConfig__.assetsPath + '/align',
module: '/align.js',
type: 'loader',
},
utils: {
path: __pmConfig__.defaultPath + '/utils',
path: __pmConfig__.assetsPath + '/utils',
module: '/utils.js',
type: 'loader',
},
jquery: {
path: __pmConfig__.defaultPath + '/jquery',
path: __pmConfig__.assetsPath + '/jquery',
module: '/jquery.min.js',
type: 'loader',
alias: '$',
},
tooltip: {
path: __pmConfig__.defaultPath + '/tooltip',
path: __pmConfig__.assetsPath + '/tooltip',
module: '/tooltip.js',
type: 'loader',
css: '/tooltip.css',
@@ -40,13 +40,13 @@ __PluginManager__.registerPlugins({
deps: ['popper', 'bsCore'],
},
popper: {
path: __pmConfig__.defaultPath + '/popper',
path: __pmConfig__.assetsPath + '/popper',
alias: 'popper.js',
module: '/popper.js',
type: 'loader',
},
bsCore: {
path: __pmConfig__.defaultPath + '/bsCore',
path: __pmConfig__.assetsPath + '/bsCore',
module: '/bsCore.js',
type: 'loader',
css: [
@@ -54,20 +54,20 @@ __PluginManager__.registerPlugins({
]
},
mask: {
path: __pmConfig__.defaultPath + '/mask',
path: __pmConfig__.assetsPath + '/mask',
module: '/mask.js',
type: 'loader',
deps: ['jquery'],
},
toolkit: {
path: __pmConfig__.defaultPath + '/toolkit',
path: __pmConfig__.assetsPath + '/toolkit',
module: '/toolkit.js',
type: 'loader',
css: ['/toolkit.css'],
deps: ['jquery', 'mask'],
},
modal: {
path: __pmConfig__.defaultPath + '/modal',
path: __pmConfig__.assetsPath + '/modal',
module: '/modal.js',
type: 'loader',
css: [
@@ -92,7 +92,7 @@ __PluginManager__.registerPlugins({
},
},
collapse: {
path: __pmConfig__.defaultPath + '/collapse',
path: __pmConfig__.assetsPath + '/collapse',
module: '/collapse.js',
type: 'loader',
css: [
@@ -106,7 +106,7 @@ __PluginManager__.registerPlugins({
},
},
datepicker: {
path: __pmConfig__.defaultPath + '/datepicker',
path: __pmConfig__.assetsPath + '/datepicker',
module: '/js/datepicker.js',
type: 'loader',
css: [