grafana-dee / microcosm

Front end for Microcosm, a Go web server that serves the static files, templates and performs API calls.
GNU Affero General Public License v3.0
11 stars 3 forks source link

Obliterate JQuery and use native JavaScript #125

Open grafana-dee opened 2 years ago

grafana-dee commented 2 years ago

Philosophy is of graceful degradation with the work done on the server... however JS is needed at some points (maps on events, or to make the text entry textarea a little friendlier, or to update relative times every minute). Wherever we have JS today we are probably using JQuery. We no longer need that and can simplify and make a lot of the code more maintainable by removing it and rewriting things in pure JS.

Likely this will also fix a bug in which trying to attach multiple files to upload does not work.

pascalopitz commented 2 years ago

Am I right in thinking this would also mean rip out bootstrap?

pascalopitz commented 2 years ago

Made a start on the base.js file in this PR: https://github.com/buro9/microcosm/pull/135