These files are not saved in the repo and are needed to run:
library-name {library home page}
(version tested/built with) [install/unpack in]
pyodide {https://pyodide.org/en/stable/}
(pyodide-core-0.26.1) [static/js/external/pyodide/]
jquery {https://jquery.com/}
(jquery-3.3.1.min.js) [static/js/external/]
jquery-terminal {https://terminal.jcubic.pl/}
(jquery.terminal.2.39.0.min.js) [static/js/external/]
(jquery.terminal.2.39.0.min.css) [static/css/external/]
codemirror-6 {https://codemirror.net/}
(https://github.com/RPGillespie6/codemirror-quickstart) [static/js/external/cm6.bundle.js]
(codemirror.css) [static/css/external/]
fabric.js {http://fabricjs.com/} (Should be optional. Maybe not yet.)
(fabric-5.2.0.js) [static/js/external/]
Site must be served with proper headers to allow the javascript sharedBuffer to work.
It also must be served over https unless you are serving only localhost (127.0.0.1)
(Settings tested with nginx-1.22.1)
add_header Access-Control-Allow-Origin "localhost"; # or your site base url
add_header Cross-Origin-Embedder-Policy "require-corp";
add_header Cross-Origin-Opener-Policy "same-origin";
(Also on nginx-1.22.1)
Need to set up serving .mjs files as application/javascript
I've used two methods, both times, but I believe only one is needed.
(be sure after making changes to mime/type configuration that you clear your browser cache! -- as well as restart the http server)
1) Add mjs to the application/javascript line in mime.types
2) Add a types section directly to nginx.conf
types {
application/javascript js mjs;
}
Then restart server AND clear your browser cache!
Also may need to add serving wasm files as application/wasm
This was on an older version of nginx (1.10.3) so this line may already be there in newer versions
I added the line directly to mime.types:
application/wasm wasm;