This commit is contained in:
Bellord
2026-09-02 08:36:31 +03:00
parent 329ecf3bc5
commit ca94090b05
7 changed files with 32 additions and 20 deletions
+23 -13
View File
@@ -37,15 +37,12 @@ var __PluginManagerConfigHandler__ = function() {
},
jQueryProxy: {
path: root + '/jquery/proxy',
js: '/jquery-proxy.min.js',
module: '/jquery-proxy.min.js',
type: 'HMD',
alias: [],
alias: ['jquery/proxy'],
deps: [],
onInstall: function(plugin){
var jQueryPlugin = __pmGlobal__.pm.plugins.jQuery
if(jQueryPlugin.isInstalled()){
}
plugin.module.exports.onInstall(plugin);
},
},
jQuery: {
@@ -57,17 +54,15 @@ var __PluginManagerConfigHandler__ = function() {
if(hasJQuery()){
plugin.module.exports = window.jQuery;
plugin.config.module = '';
} else {
var jQueryProxyPlugin = __pmGlobal__.pm.plugins.jQueryProxy;
if(jQueryProxyPlugin.isInstalled()){
jQueryProxyPlugin.module.exports.onJQueryRegister(plugin);
}
}
},
onInstall: function(plugin){
var jQueryProxyPlugin = __pmGlobal__.pm.plugins.jQueryProxy;
if(jQueryProxyPlugin.isInstalled()){
jQueryProxyPlugin.module.exports.onJQueryInstall(plugin);
jQueryProxyPlugin.module.exports.onJQueryInstall(plugin, jQueryProxyPlugin);
}
if(!hasJQuery()){
window.$ = window.jQuery = plugin.module.exports;
}
},
},
@@ -316,7 +311,6 @@ var __PluginManagerConfigHandler__ = function() {
path: root + '/lightGallery',
css: '/css/lightgallery.css',
module: '/lightgallery.min.js',
js: [],
type: 'UMD',
deps: [],
},
@@ -328,6 +322,22 @@ var __PluginManagerConfigHandler__ = function() {
deps: ['lightGallery'],
alias: ['lgVideo'],
},
'lightGallery.autoplay': {
path: root + '/lightGallery',
css: '/css/lg-autoplay.css',
module: '/plugins/autoplay/lg-autoplay.min.js',
type: 'UMD',
deps: ['lightGallery'],
alias: ['lgAutoplay'],
},
'lightGallery.thumbnail': {
path: root + '/lightGallery',
css: '/css/lg-thumbnail.css',
module: '/plugins/thumbnail/lg-thumbnail.min.js',
type: 'UMD',
deps: ['lightGallery'],
alias: ['lgThumbnail'],
},
owlCarousel: {
path: root + '/owlCarousel',
css: '/owlCarousel.css',
File diff suppressed because one or more lines are too long
View File