Menu

Tree [a10d73] default tip /
 History

Read Only access


File Date Author Commit
 grmod 2 days ago Lee Harr Lee Harr [11d9d8] change module grrr to codejo
 static 6 hours ago Lee Harr Lee Harr [a10d73] update fabric to 6.4.3
 .hgignore 2024-07-17 Lee Harr Lee Harr [df6418] move external libraries to separate folder
 README 6 hours ago Lee Harr Lee Harr [a10d73] update fabric to 6.4.3
 TODO 1 day ago Lee Harr Lee Harr [3067f4] update todo
 build.grmod 2 days ago Lee Harr Lee Harr [11d9d8] change module grrr to codejo
 favicon.ico 2024-06-28 Lee Harr Lee Harr [8920e6] initial
 index.html 6 hours ago Lee Harr Lee Harr [a10d73] update fabric to 6.4.3

Read Me

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.28.3) [static/js/external/pyodide/]
        [Can also run directly from CDN. Change in worker_main.js ~line 19]

    jquery {https://jquery.com/}
        (jquery-3.7.1.min.js) [static/js/external/]

    jquery-terminal {https://terminal.jcubic.pl/}
        (jquery.terminal.2.45.2.min.js) [static/js/external/]
        (jquery.terminal.2.45.2.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/}
        (fabric-6.4.3) [Runs directly from CDN]


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;
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.