feat(frontend): ➕ Aggiunto jQuery
This commit is contained in:
parent
a215690b59
commit
402ed5e69b
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="JavaScriptLibraryMappings">
|
<component name="JavaScriptLibraryMappings">
|
||||||
<file url="PROJECT" libraries="{@types/mithril}" />
|
<file url="PROJECT" libraries="{@types/jquery, @types/mithril}" />
|
||||||
<includedPredefinedLibrary name="Node.js Core" />
|
<includedPredefinedLibrary name="Node.js Core" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -95,5 +95,6 @@
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" name="@types/mithril" level="application" />
|
<orderEntry type="library" name="@types/mithril" level="application" />
|
||||||
|
<orderEntry type="library" name="@types/jquery" level="application" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
|
@ -14,6 +14,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@inertiajs/inertia": "^0.10.0",
|
"@inertiajs/inertia": "^0.10.0",
|
||||||
"@maicol07/inertia-mithril": "^0.3.3",
|
"@maicol07/inertia-mithril": "^0.3.3",
|
||||||
|
"jquery": "^3.6.0",
|
||||||
"mithril": "^2.0.4"
|
"mithril": "^2.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
|
import jQuery from 'jquery';
|
||||||
import m from 'mithril';
|
import m from 'mithril';
|
||||||
import {createInertiaApp} from '@maicol07/inertia-mithril';
|
import {createInertiaApp} from '@maicol07/inertia-mithril';
|
||||||
|
|
||||||
|
global.$ = jQuery;
|
||||||
|
global.jQuery = jQuery;
|
||||||
global.m = m;
|
global.m = m;
|
||||||
|
|
||||||
// noinspection JSIgnoredPromiseFromCall
|
// noinspection JSIgnoredPromiseFromCall
|
||||||
|
|
Loading…
Reference in New Issue