ILIAS
ILIAS copied to clipboard
NPM: Add `linkifyjs`
This PR adds linkifyjs
as NPM dependency.
Usage:
- CoPage: Used in paragraphs
- LearningModule: Used for the export
- OnScreenChat: Used to make links in chat messages clickable.
- See: components/ILIAS/OnScreenChat/js/onscreenchat.js
Wrapped By:
- ./components/ILIAS/Link/js/ilExtLink.js
Reasoning:
-
linkifyjs
is used by theOnScreenChat
to transform URL-like strings into clickable HTML link elements. Without this library all kind of URL-like strings (see: https://linkify.js.org/) are not transformed anymore and our users will have to copy the strings manually into the browser address input. I doubt we can support this feature with a few regular expressions maintained by the ILIAS community.
Maintenance:
-
linkifyjs
is actively maintained, although it is feature-complete. In the last months a few bug fixes and improvements have been committed.
Links:
- NPM: https://www.npmjs.com/package/linkifyjs
- GitHub: https://github.com/Hypercontext/linkifyjs
- Documentation: https://linkify.js.org/docs/
Jour Fixe, 22 JAN 2024: Dependency is accepted for ILIAS 10.
This should have become part of ILIAS 10 via this PR. As always, something might have gone wrong. If you are still missing that package, please ping me.
Kind regards!