spa modules and terminology: app.mjs split into flat es modules (router lifecycle, shared widgets, views own their state), mock smoke in test/; DICTIONARY.md rules the terms, four renames swept clean through the machinery - paper->status (run summary command is report now), window->session, wrap->housekeeping, context window->contwin; no dual-accepts by ruling, old data migrates once in the clerk (restore self-heals old dumps)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// web/dom.mjs — the two DOM helpers everything else builds on.
|
||||
|
||||
export const $ = (id) => document.getElementById(id);
|
||||
|
||||
// one element, class and text in the common shape
|
||||
export function el(tag, cls, text) {
|
||||
const e = document.createElement(tag);
|
||||
if (cls) e.className = cls;
|
||||
if (text !== undefined) e.textContent = text;
|
||||
return e;
|
||||
}
|
||||
Reference in New Issue
Block a user