chore: add npm + vite for progressive enhancement

This commit is contained in:
Marc Emmanuel 2026-01-11 20:36:34 +01:00
parent 0c26f0831f
commit 3490ad9865
1374 changed files with 111037 additions and 19 deletions

11
src/utils/shorthands.js Normal file
View file

@ -0,0 +1,11 @@
const byId = document.getElementById.bind(document);
Node.prototype.on = function (name, fn, options) {
this.addEventListener(name, fn, options);
return this;
};
Node.prototype.off = function (name, fn) {
this.removeEventListener(name, fn);
return this;
};