feat(frontend): Aggiunto jQuery

This commit is contained in:
Maicol Battistini 2021-08-03 18:40:09 +02:00
parent a215690b59
commit 402ed5e69b
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
4 changed files with 6 additions and 1 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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": {

3
resources/js/app.js vendored
View File

@ -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