diff --git a/qgis-app/package.json b/qgis-app/package.json index 5d443e2f..0a4f24ab 100644 --- a/qgis-app/package.json +++ b/qgis-app/package.json @@ -12,9 +12,12 @@ "keywords": [], "author": "", "license": "ISC", + "dependencies": { + "highlight.js": "^11.9.0", + "jquery": "^3.7.1" + }, "devDependencies": { "css-loader": "^6.8.1", - "highlight.js": "^11.9.0", "mini-css-extract-plugin": "^2.7.6", "sass": "^1.77.8", "sass-loader": "^13.3.2", diff --git a/qgis-app/static/js/index.js b/qgis-app/static/js/index.js index b5ce3b2d..057090af 100644 --- a/qgis-app/static/js/index.js +++ b/qgis-app/static/js/index.js @@ -1,4 +1,7 @@ require('../style/scss/style.scss'); +import $ from 'jquery'; + +window.$ = $; document.addEventListener('DOMContentLoaded', () => { @@ -21,4 +24,4 @@ require('../style/scss/style.scss'); }); }); - }); \ No newline at end of file + }); diff --git a/qgis-app/templates/base.html b/qgis-app/templates/base.html index 6b1e0033..8348a88f 100644 --- a/qgis-app/templates/base.html +++ b/qgis-app/templates/base.html @@ -19,9 +19,6 @@ - - -