Use linkifyjs module

This commit is contained in:
Simon Ser 2021-10-14 20:55:55 +02:00
parent a120d79585
commit 1a8d539c9e
3 changed files with 13 additions and 16 deletions

View File

@ -11,7 +11,6 @@
<noscript> <noscript>
<p>Unfortunately gamja requires JavaScript. Please enable it!</p> <p>Unfortunately gamja requires JavaScript. Please enable it!</p>
</noscript> </noscript>
<script src="./node_modules/linkifyjs/dist/linkify.min.js"></script>
<script type="module"> <script type="module">
import { html, render } from "./lib/index.js"; import { html, render } from "./lib/index.js";
import App from "./components/app.js"; import App from "./components/app.js";

View File

@ -4,6 +4,4 @@ import { h } from "../node_modules/preact/dist/preact.module.js";
import htm from "../node_modules/htm/dist/htm.module.js"; import htm from "../node_modules/htm/dist/htm.module.js";
export const html = htm.bind(h); export const html = htm.bind(h);
// TODO: replace with proper import once this is merged and released: export * as linkifyjs from "../node_modules/linkifyjs/dist/linkify.module.js";
// https://github.com/Hypercontext/linkifyjs/pull/356
export const linkifyjs = window.linkify;

24
package-lock.json generated
View File

@ -197,9 +197,9 @@
} }
}, },
"node_modules/linkifyjs": { "node_modules/linkifyjs": {
"version": "3.0.2", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-3.0.2.tgz", "resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-3.0.3.tgz",
"integrity": "sha512-PSHDxSAWkZQ208W4PI/+yo9NHSI6NAHKmazMtyRavyibJgrPOioPIjQn7zyapASQlKoPmAV+tOlqzTqX3XFWXQ==" "integrity": "sha512-ba5opS5wRHSbDC8VaiDdN14nPGm6LqyRsIPQZGG4qXV4scFdrPneT/uoZOaq9QAPBf6W9I9D/6tNSzWH//815Q=="
}, },
"node_modules/lodash": { "node_modules/lodash": {
"version": "4.17.21", "version": "4.17.21",
@ -276,9 +276,9 @@
} }
}, },
"node_modules/preact": { "node_modules/preact": {
"version": "10.5.14", "version": "10.5.15",
"resolved": "https://registry.npmjs.org/preact/-/preact-10.5.14.tgz", "resolved": "https://registry.npmjs.org/preact/-/preact-10.5.15.tgz",
"integrity": "sha512-KojoltCrshZ099ksUZ2OQKfbH66uquFoxHSbnwKbTJHeQNvx42EmC7wQVWNuDt6vC5s3nudRHFtKbpY4ijKlaQ==", "integrity": "sha512-5chK29n6QcJc3m1lVrKQSQ+V7K1Gb8HeQY6FViQ5AxCAEGu3DaHffWNDkC9+miZgsLvbvU9rxbV1qinGHMHzqA==",
"funding": { "funding": {
"type": "opencollective", "type": "opencollective",
"url": "https://opencollective.com/preact" "url": "https://opencollective.com/preact"
@ -478,9 +478,9 @@
} }
}, },
"linkifyjs": { "linkifyjs": {
"version": "3.0.2", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-3.0.2.tgz", "resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-3.0.3.tgz",
"integrity": "sha512-PSHDxSAWkZQ208W4PI/+yo9NHSI6NAHKmazMtyRavyibJgrPOioPIjQn7zyapASQlKoPmAV+tOlqzTqX3XFWXQ==" "integrity": "sha512-ba5opS5wRHSbDC8VaiDdN14nPGm6LqyRsIPQZGG4qXV4scFdrPneT/uoZOaq9QAPBf6W9I9D/6tNSzWH//815Q=="
}, },
"lodash": { "lodash": {
"version": "4.17.21", "version": "4.17.21",
@ -539,9 +539,9 @@
} }
}, },
"preact": { "preact": {
"version": "10.5.14", "version": "10.5.15",
"resolved": "https://registry.npmjs.org/preact/-/preact-10.5.14.tgz", "resolved": "https://registry.npmjs.org/preact/-/preact-10.5.15.tgz",
"integrity": "sha512-KojoltCrshZ099ksUZ2OQKfbH66uquFoxHSbnwKbTJHeQNvx42EmC7wQVWNuDt6vC5s3nudRHFtKbpY4ijKlaQ==" "integrity": "sha512-5chK29n6QcJc3m1lVrKQSQ+V7K1Gb8HeQY6FViQ5AxCAEGu3DaHffWNDkC9+miZgsLvbvU9rxbV1qinGHMHzqA=="
}, },
"qs": { "qs": {
"version": "6.10.1", "version": "6.10.1",