Add back Loading Indicator, rework children caching, small visual improvement on character sheet and config management.

This commit is contained in:
Clément Pons
2026-01-12 17:48:28 +01:00
parent 0eaffcaa04
commit f761e44569
16 changed files with 333 additions and 238 deletions

View File

@@ -153,7 +153,7 @@ const arraySubstitute = <any>{ // <-- <any> is required to allow __proto__ witho
toSorted(comparer?: (a: unknown, b: unknown) => number) { return reactiveReadArray(this).toSorted(comparer) },
toSpliced(...args: unknown[]) { return (reactiveReadArray(this).toSpliced as any)(...args) },
unshift(...args: unknown[]) { return noTracking(this, 'unshift', args) },
values() { return iterator(this, 'values', item => wrapReactive(item)) }, /* */
values() { return iterator(this, 'values', item => wrapReactive(item)) },
};
// Store object to proxy correspondance
@@ -228,9 +228,6 @@ export function reactive<T extends object>(obj: T | Proxy<T>): T | Proxy<T>
if(_reactiveCache.has(obj))
return _reactiveCache.get(obj)!;
const prototype = Object.getPrototypeOf(obj);
const isArray = Array.isArray(obj);
const proxy = new Proxy<T>(obj, {
get: (target, key, receiver) => {
if(key === SYMBOLS.PROXY)