Merge pull request #2754 from EricGusmao/remove-jquery
Remove jQuery dependency and update theme version to 2.97.0
This commit is contained in:
@@ -27,7 +27,7 @@ function _getPackeryOptions(nodeGallery) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
(function init() {
|
(function init() {
|
||||||
$(window).on("load", function () {
|
window.addEventListener("load", function () {
|
||||||
let packeries = [];
|
let packeries = [];
|
||||||
let nodeGalleries = document.querySelectorAll(".gallery");
|
let nodeGalleries = document.querySelectorAll(".gallery");
|
||||||
|
|
||||||
@@ -35,6 +35,5 @@ function _getPackeryOptions(nodeGallery) {
|
|||||||
let packery = new Packery(nodeGallery, _getPackeryOptions(nodeGallery));
|
let packery = new Packery(nodeGallery, _getPackeryOptions(nodeGallery));
|
||||||
packeries.push(packery);
|
packeries.push(packery);
|
||||||
});
|
});
|
||||||
console.groupEnd();
|
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|||||||
Vendored
-2
File diff suppressed because one or more lines are too long
@@ -1,7 +1,3 @@
|
|||||||
{{/* jQuery */}}
|
|
||||||
{{ $jqueryLib := resources.Get "lib/jquery/jquery.slim.min.js" | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
|
|
||||||
<script src="{{ $jqueryLib.RelPermalink }}" integrity="{{ $jqueryLib.Data.Integrity }}"></script>
|
|
||||||
|
|
||||||
{{/* Mermaid */}}
|
{{/* Mermaid */}}
|
||||||
{{ if .Page.HasShortcode "mermaid" }}
|
{{ if .Page.HasShortcode "mermaid" }}
|
||||||
{{ $mermaidLib := resources.Get "lib/mermaid/mermaid.min.js" }}
|
{{ $mermaidLib := resources.Get "lib/mermaid/mermaid.min.js" }}
|
||||||
|
|||||||
Generated
-8
@@ -22,7 +22,6 @@
|
|||||||
"@tailwindcss/typography": "^0.5.19",
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
"chart.js": "^4.5.1",
|
"chart.js": "^4.5.1",
|
||||||
"fuse.js": "^7.1.0",
|
"fuse.js": "^7.1.0",
|
||||||
"jquery": "^4.0.0",
|
|
||||||
"katex": "^0.16.28",
|
"katex": "^0.16.28",
|
||||||
"lite-youtube-embed": "^0.3.4",
|
"lite-youtube-embed": "^0.3.4",
|
||||||
"medium-zoom": "^1.1.0",
|
"medium-zoom": "^1.1.0",
|
||||||
@@ -3002,13 +3001,6 @@
|
|||||||
"jiti": "lib/jiti-cli.mjs"
|
"jiti": "lib/jiti-cli.mjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/jquery": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/jquery/-/jquery-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-TXCHVR3Lb6TZdtw1l3RTLf8RBWVGexdxL6AC8/e0xZKEpBflBsjh9/8LXw+dkNFuOyW9B7iB3O1sP7hS0Kiacg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/js-tokens": {
|
"node_modules/js-tokens": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
"@tailwindcss/typography": "^0.5.19",
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
"chart.js": "^4.5.1",
|
"chart.js": "^4.5.1",
|
||||||
"fuse.js": "^7.1.0",
|
"fuse.js": "^7.1.0",
|
||||||
"jquery": "^4.0.0",
|
|
||||||
"katex": "^0.16.28",
|
"katex": "^0.16.28",
|
||||||
"lite-youtube-embed": "^0.3.4",
|
"lite-youtube-embed": "^0.3.4",
|
||||||
"medium-zoom": "^1.1.0",
|
"medium-zoom": "^1.1.0",
|
||||||
@@ -91,10 +90,6 @@
|
|||||||
"from": "node_modules/typeit/dist/index.umd.js",
|
"from": "node_modules/typeit/dist/index.umd.js",
|
||||||
"to": "assets/lib/typeit/typeit.umd.js"
|
"to": "assets/lib/typeit/typeit.umd.js"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"from": "node_modules/jquery/dist/jquery.slim.min.js",
|
|
||||||
"to": "assets/lib/jquery/jquery.slim.min.js"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"from": "node_modules/packery/dist/packery.pkgd.min.js",
|
"from": "node_modules/packery/dist/packery.pkgd.min.js",
|
||||||
"to": "assets/lib/packery/packery.pkgd.min.js"
|
"to": "assets/lib/packery/packery.pkgd.min.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user