Replace CDN React/ReactDOM/Babel with local libs; remove Babel and inline scripts Build Tailwind locally, add safelist; switch to assets/tailwind.css Self-host Font Awesome and Inter (CSS + woff2); remove external font CDNs Implement strict CSP (no unsafe-inline/eval; scripts/styles/fonts from self) Extract inline handlers; move PWA scripts to external files Add local QR code generation (qrcode lib) and remove api.qrserver.com Improve SessionTypeSelector visual selection (highlighted background and ring) Keep PWA working with service worker and offline assets Refs: CSP hardening, offline-first, no external dependencies
19 lines
391 B
Markdown
19 lines
391 B
Markdown
# dijkstrajs.js
|
|
|
|
dijkstrajs is a simple JavaScript implementation of Dijkstra's single-source shortest-paths algorithm.
|
|
|
|
The code was originally written by Wyatt Baldwin and turned into a node module by Thomas Cort.
|
|
|
|
## Requirements
|
|
|
|
* [nodejs](http://nodejs.org/)
|
|
|
|
## Installation
|
|
|
|
npm install dijkstrajs
|
|
|
|
## Examples
|
|
|
|
See `test/dijkstra.test.js` in the sources for some example code.
|
|
|