Add user database migration, core reusable components, and layout structure

This commit is contained in:
2026-05-16 18:54:23 -04:00
parent c7df396a83
commit e132c7a580
33 changed files with 2348 additions and 398 deletions
+10
View File
@@ -0,0 +1,10 @@
export function createStore(initial) {
let state = { ...initial };
const subscribers = new Set();
return {
get() { return { ...state }; },
set(updates) { state = { ...state, ...updates }; subscribers.forEach(fn => fn(state)); },
subscribe(fn) { subscribers.add(fn); return () => subscribers.delete(fn); },
};
}