Release 0.1.45: member phone locations and people-first family navigation

This commit is contained in:
Codex
2026-10-18 21:26:12 +08:00
parent 3b2c046060
commit fdb239b3ed
47 changed files with 914 additions and 287 deletions
+10
View File
@@ -6,6 +6,16 @@ Object.assign(window.ZhaoVue,{
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,showPage,
async viewPerson(id,familyId){
if(familyId!==state.familyId&&!await switchHousehold(familyId))return;
if(!loggedIn||state.familyId!==familyId)return;
showPage('family',{personId:id});
},
async viewMemberHistory(id,name,familyId){
if(familyId!==state.familyId&&!await switchHousehold(familyId))return;
if(!loggedIn||state.familyId!==familyId)return;
showPage('journal',{person:{id,name}});
},
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);}