This commit is contained in:
Bellord
2026-05-31 13:36:28 +03:00
parent f98cfc62a7
commit 1c882ba7f3
27 changed files with 349 additions and 364 deletions
+11 -8
View File
@@ -1014,6 +1014,13 @@ kit.config = kit.config || {};
function init(global){
document.addEventListener("DOMContentLoaded", function () {
console.log('%cDOMContentLoaded', 'color:#2053ff');
});
window.addEventListener("load", (event) => {
console.log('%cWindowLoaded', 'color:#2053ff');
});
var manager = new PluginManager(global);
/**
* @type {PluginManager.ready}
@@ -1054,7 +1061,6 @@ kit.config = kit.config || {};
window.__PluginManager__ = manager;
/**
* @type {kit}
* @global
*/
window.__pmGlobal__ = global;
}
@@ -1066,6 +1072,10 @@ kit.config = kit.config || {};
manager.install('pluginManager');
/**
* Создаем плагин который выполняет функцию глобального конфига
* PluginManager тоже использует его в своей работе
*/
manager.register('config', {
type: MD_TYPE.HMD,
handler: function(require, exports, module, global) {
@@ -1086,13 +1096,6 @@ kit.config = kit.config || {};
if(typeof window === 'object'){
window.__pmConfig__ = global.config;
}
document.addEventListener("DOMContentLoaded", function () {
console.log('%cDOMContentLoaded', 'color:#2053ff');
});
window.addEventListener("load", (event) => {
console.log('%cWindowLoaded', 'color:#2053ff');
});
},
onInstall: function(plugin){
if(typeof window === 'object'){