mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Use linkifyjs module
This commit is contained in:
parent
a120d79585
commit
1a8d539c9e
3 changed files with 13 additions and 16 deletions
|
@ -11,7 +11,6 @@
|
|||
<noscript>
|
||||
<p>Unfortunately gamja requires JavaScript. Please enable it!</p>
|
||||
</noscript>
|
||||
<script src="./node_modules/linkifyjs/dist/linkify.min.js"></script>
|
||||
<script type="module">
|
||||
import { html, render } from "./lib/index.js";
|
||||
import App from "./components/app.js";
|
||||
|
|
|
@ -4,6 +4,4 @@ import { h } from "../node_modules/preact/dist/preact.module.js";
|
|||
import htm from "../node_modules/htm/dist/htm.module.js";
|
||||
export const html = htm.bind(h);
|
||||
|
||||
// TODO: replace with proper import once this is merged and released:
|
||||
// https://github.com/Hypercontext/linkifyjs/pull/356
|
||||
export const linkifyjs = window.linkify;
|
||||
export * as linkifyjs from "../node_modules/linkifyjs/dist/linkify.module.js";
|
||||
|
|
24
package-lock.json
generated
24
package-lock.json
generated
|
@ -197,9 +197,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/linkifyjs": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-3.0.2.tgz",
|
||||
"integrity": "sha512-PSHDxSAWkZQ208W4PI/+yo9NHSI6NAHKmazMtyRavyibJgrPOioPIjQn7zyapASQlKoPmAV+tOlqzTqX3XFWXQ=="
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-3.0.3.tgz",
|
||||
"integrity": "sha512-ba5opS5wRHSbDC8VaiDdN14nPGm6LqyRsIPQZGG4qXV4scFdrPneT/uoZOaq9QAPBf6W9I9D/6tNSzWH//815Q=="
|
||||
},
|
||||
"node_modules/lodash": {
|
||||
"version": "4.17.21",
|
||||
|
@ -276,9 +276,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/preact": {
|
||||
"version": "10.5.14",
|
||||
"resolved": "https://registry.npmjs.org/preact/-/preact-10.5.14.tgz",
|
||||
"integrity": "sha512-KojoltCrshZ099ksUZ2OQKfbH66uquFoxHSbnwKbTJHeQNvx42EmC7wQVWNuDt6vC5s3nudRHFtKbpY4ijKlaQ==",
|
||||
"version": "10.5.15",
|
||||
"resolved": "https://registry.npmjs.org/preact/-/preact-10.5.15.tgz",
|
||||
"integrity": "sha512-5chK29n6QcJc3m1lVrKQSQ+V7K1Gb8HeQY6FViQ5AxCAEGu3DaHffWNDkC9+miZgsLvbvU9rxbV1qinGHMHzqA==",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/preact"
|
||||
|
@ -478,9 +478,9 @@
|
|||
}
|
||||
},
|
||||
"linkifyjs": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-3.0.2.tgz",
|
||||
"integrity": "sha512-PSHDxSAWkZQ208W4PI/+yo9NHSI6NAHKmazMtyRavyibJgrPOioPIjQn7zyapASQlKoPmAV+tOlqzTqX3XFWXQ=="
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-3.0.3.tgz",
|
||||
"integrity": "sha512-ba5opS5wRHSbDC8VaiDdN14nPGm6LqyRsIPQZGG4qXV4scFdrPneT/uoZOaq9QAPBf6W9I9D/6tNSzWH//815Q=="
|
||||
},
|
||||
"lodash": {
|
||||
"version": "4.17.21",
|
||||
|
@ -539,9 +539,9 @@
|
|||
}
|
||||
},
|
||||
"preact": {
|
||||
"version": "10.5.14",
|
||||
"resolved": "https://registry.npmjs.org/preact/-/preact-10.5.14.tgz",
|
||||
"integrity": "sha512-KojoltCrshZ099ksUZ2OQKfbH66uquFoxHSbnwKbTJHeQNvx42EmC7wQVWNuDt6vC5s3nudRHFtKbpY4ijKlaQ=="
|
||||
"version": "10.5.15",
|
||||
"resolved": "https://registry.npmjs.org/preact/-/preact-10.5.15.tgz",
|
||||
"integrity": "sha512-5chK29n6QcJc3m1lVrKQSQ+V7K1Gb8HeQY6FViQ5AxCAEGu3DaHffWNDkC9+miZgsLvbvU9rxbV1qinGHMHzqA=="
|
||||
},
|
||||
"qs": {
|
||||
"version": "6.10.1",
|
||||
|
|
Loading…
Reference in a new issue