equal
deleted
inserted
replaced
1 /* Initialization of the namespace */ |
1 /* Initialization of the namespace */ |
|
2 import {$,jQuery} from 'jquery'; |
|
3 window.$ = $; |
|
4 window.jQuery = jQuery; |
|
5 global.$ = $; |
|
6 global.jQuery = jQuery; |
2 |
7 |
3 if (typeof window.IriSP === "undefined") { |
8 import 'jquery-ui/dist/jquery-ui'; |
4 window.IriSP = { |
|
5 VERSION: "0.3.2" |
|
6 }; |
|
7 } |
|
8 |
9 |
9 if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined") { |
10 import 'jquery-ui/dist/themes/base/jquery-ui.css'; |
10 var jvp = window.jQuery().jquery.split("."), |
|
11 jv = 100 * parseInt(jvp[0]) + parseInt(jvp[1]); |
|
12 if (jv > 170) { |
|
13 IriSP.jQuery = window.jQuery; |
|
14 } |
|
15 } |
|
16 |
11 |
17 if (typeof IriSP._ === "undefined" && typeof window._ !== "undefined" && parseFloat(window._.VERSION) >= 1.4) { |
12 import _ from "lodash"; |
18 IriSP._ = window._; |
13 |
19 } |
14 const __APP_VERSION__ = ""; |
|
15 |
|
16 const APP_VERSION = __APP_VERSION__; |
|
17 |
|
18 const IriSP = { |
|
19 VERSION: APP_VERSION, |
|
20 jQuery: jQuery, |
|
21 libFiles: { locations: {} }, |
|
22 |
|
23 }; |
|
24 |
|
25 window.IriSP = IriSP; |
|
26 |
|
27 export default IriSP; |