feat(main): Add base theme: This is the falcon theme out of the box.

This commit is contained in:
2025-11-18 14:04:01 +01:00
parent 3a7f2db331
commit 85f9b038a7
604 changed files with 49818 additions and 0 deletions

View File

@ -0,0 +1,41 @@
import $ from 'jquery';
class DynamicImportJqueryPlugin {
constructor({
jqueryPluginCover,
importer,
} = {}) {
this.jqueryPluginCover = jqueryPluginCover;
this.importer = importer;
this.jqueryFuncCalled = [];
this.setJqueryPlugin();
}
callJqueryAction() {
for (const fncCall of this.jqueryFuncCalled) {
fncCall.elem[this.jqueryPluginCover](fncCall.args);
}
}
fetchFiles() {
this.importer.loadFiles(() => this.callJqueryAction());
}
setJqueryPlugin() {
const self = this;
/* eslint-disable func-names */
$.fn[this.jqueryPluginCover] = function (args) {
self.jqueryFuncCalled.push({
elem: this,
args,
});
self.fetchFiles();
return this;
};
}
}
export default DynamicImportJqueryPlugin;