From 402ed5e69bb2eb91ada10f01f126c96a4e954639 Mon Sep 17 00:00:00 2001 From: Maicol Battistini Date: Tue, 3 Aug 2021 18:40:09 +0200 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E2=9E=95=20Aggiunto=20jQuery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/jsLibraryMappings.xml | 2 +- .idea/osm_rewrite.iml | 1 + package.json | 1 + resources/js/app.js | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml index f30fad3d3..6e0106267 100644 --- a/.idea/jsLibraryMappings.xml +++ b/.idea/jsLibraryMappings.xml @@ -1,7 +1,7 @@ - + \ No newline at end of file diff --git a/.idea/osm_rewrite.iml b/.idea/osm_rewrite.iml index 767f5fc7e..03e8bf2c8 100644 --- a/.idea/osm_rewrite.iml +++ b/.idea/osm_rewrite.iml @@ -95,5 +95,6 @@ + \ No newline at end of file diff --git a/package.json b/package.json index 5e22c8591..864832652 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/resources/js/app.js b/resources/js/app.js index b039938fb..36aab1444 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -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