--- a/src/js/init.js Sun Nov 12 22:07:33 2017 +0100
+++ b/src/js/init.js Wed Sep 04 17:32:50 2024 +0200
@@ -1,19 +1,27 @@
/* Initialization of the namespace */
+import {$,jQuery} from 'jquery';
+window.$ = $;
+window.jQuery = jQuery;
+global.$ = $;
+global.jQuery = jQuery;
-if (typeof window.IriSP === "undefined") {
- window.IriSP = {
- VERSION: "0.3.2"
- };
-}
+import 'jquery-ui/dist/jquery-ui';
+
+import 'jquery-ui/dist/themes/base/jquery-ui.css';
+
+import _ from "lodash";
-if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined") {
- var jvp = window.jQuery().jquery.split("."),
- jv = 100 * parseInt(jvp[0]) + parseInt(jvp[1]);
- if (jv > 170) {
- IriSP.jQuery = window.jQuery;
- }
-}
+const __APP_VERSION__ = "";
+
+const APP_VERSION = __APP_VERSION__;
-if (typeof IriSP._ === "undefined" && typeof window._ !== "undefined" && parseFloat(window._.VERSION) >= 1.4) {
- IriSP._ = window._;
-}
+const IriSP = {
+ VERSION: APP_VERSION,
+ jQuery: jQuery,
+ libFiles: { locations: {} },
+
+};
+
+window.IriSP = IriSP;
+
+export default IriSP;