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