feat(web): add lightweight workspace matching existing UI

This commit is contained in:
2026-11-11 16:59:09 -08:00
parent bc92651509
commit b7fdf7a89c
37 changed files with 2415 additions and 291 deletions
+14
View File
@@ -0,0 +1,14 @@
/** Marked uses at() internally, including on Chromium-based readers predating it. */
export function installLiteCompatibility() {
if (!("at" in Array.prototype)) {
Object.defineProperty(Array.prototype, "at", {
configurable: true,
writable: true,
value: function at(this: unknown[], index: number) {
const offset = Math.trunc(Number(index)) || 0;
const position = offset < 0 ? this.length + offset : offset;
return position < 0 || position >= this.length ? undefined : this[position];
},
});
}
}