mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-19 05:00:04 +02:00
npm: Use anchor-js via npm instead of CDN
This commit is contained in:
parent
d4244851ab
commit
8f4314fefc
5 changed files with 20 additions and 4 deletions
|
|
@ -1,6 +1,3 @@
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js"
|
|
||||||
integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg="
|
|
||||||
crossorigin="anonymous"></script>
|
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
|
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
|
||||||
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8="
|
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8="
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
|
|
||||||
|
import AnchorJS from 'anchor-js'
|
||||||
import Alpine from 'alpinejs'
|
import Alpine from 'alpinejs'
|
||||||
import alpine_search from './modules/alpine_search'
|
import alpine_search from './modules/alpine_search'
|
||||||
import ClipboardJS from 'clipboard'
|
import ClipboardJS from 'clipboard'
|
||||||
|
|
||||||
|
// -------------------
|
||||||
|
// Anchor
|
||||||
|
// -------------------
|
||||||
|
const anchors = new AnchorJS();
|
||||||
anchors.add();
|
anchors.add();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
13
package-lock.json
generated
13
package-lock.json
generated
|
|
@ -10,6 +10,7 @@
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"alpinejs": "^3.8.1",
|
"alpinejs": "^3.8.1",
|
||||||
|
"anchor-js": "^4.1.0",
|
||||||
"clipboard": "^2.0.4",
|
"clipboard": "^2.0.4",
|
||||||
"lunr": "^2.3.9",
|
"lunr": "^2.3.9",
|
||||||
"webpack": "^5.67.0",
|
"webpack": "^5.67.0",
|
||||||
|
|
@ -327,6 +328,12 @@
|
||||||
"@vue/reactivity": "~3.1.1"
|
"@vue/reactivity": "~3.1.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/anchor-js": {
|
||||||
|
"version": "4.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/anchor-js/-/anchor-js-4.1.0.tgz",
|
||||||
|
"integrity": "sha1-Co2QTPXkayqWAf4GK5X78CIkL1M=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/browserslist": {
|
"node_modules/browserslist": {
|
||||||
"version": "4.19.1",
|
"version": "4.19.1",
|
||||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz",
|
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz",
|
||||||
|
|
@ -1692,6 +1699,12 @@
|
||||||
"@vue/reactivity": "~3.1.1"
|
"@vue/reactivity": "~3.1.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"anchor-js": {
|
||||||
|
"version": "4.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/anchor-js/-/anchor-js-4.1.0.tgz",
|
||||||
|
"integrity": "sha1-Co2QTPXkayqWAf4GK5X78CIkL1M=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"version": "4.19.1",
|
"version": "4.19.1",
|
||||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz",
|
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"alpinejs": "^3.8.1",
|
"alpinejs": "^3.8.1",
|
||||||
|
"anchor-js": "^4.1.0",
|
||||||
"clipboard": "^2.0.4",
|
"clipboard": "^2.0.4",
|
||||||
"lunr": "^2.3.9",
|
"lunr": "^2.3.9",
|
||||||
"webpack": "^5.67.0",
|
"webpack": "^5.67.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue