Separate system accounts and household people, add generation directory and consented member location sharing

This commit is contained in:
Codex
2026-10-18 20:00:43 +08:00
parent 67bc5a1ba9
commit 3b2c046060
52 changed files with 1497 additions and 311 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ Object.assign(window.ZhaoVue,{
api,refresh,notify:toast,address:ZhaoGeography.describe,
async saveLayout(value){const saved=await api('/api/households/layout',value);state.householdLayout=saved;this.publish();return saved;},
async enterHome(id,network=false){try{if(id!==state.familyId&&!await switchHousehold(id))return;if(network){devicePresentation='topology';showPage('objects');}else showPage('overview');}catch(e){if(!e.stale)toast(e.message);}},
enterDevice,
enterDevice,showPage,
async editAccount(id,familyId){if(familyId!==state.familyId&&!await switchHousehold(familyId))return;showPage('users');if(await loadUsers())openUser(id);},
location(id){return siteName(id);},
network(device){return ZhaoDevices.network(device,state);}
});