Pie Control: Traffic tab, empty-sky checklist, orbit traceroute
A new first tab shows what rides the sky: a headline, load per crust, who is riding (tap to highlight on the globe), per-dish load and why a dish is idle, and a checklist when nothing flows. The traceroute lists circuits through orbit with their uplink, laser and downlink hops. Strings in all languages, tests in tests/pie-traffic.test.js.
This commit is contained in:
parent
df6e0e0964
commit
4ad080cb91
14 changed files with 589 additions and 7 deletions
|
|
@ -28,6 +28,7 @@ Object.assign(ACT,{
|
|||
pieSafe:()=>{const P=pieGet();if(!P||!P.co)return;P.safe=!P.safe;sfx('click');pieRe();},
|
||||
pieName:()=>{const P=pieGet();if(!P||!P.co)return;const i=PIE_NAMES.indexOf(P.co.name);P.co.name=PIE_NAMES[(i+1)%PIE_NAMES.length];pieFounder(N_('pie.fp_rename'));pieRe();},
|
||||
pieRename:()=>{const P=pieGet(),el=$('pieNm');if(!P||!P.co||!el)return;const v=el.value.replace(/\s+/g,' ').trim().slice(0,40);if(!v)return;P.co.name=v;pieFounder(N_('pie.fp_rename'));pieRe();},
|
||||
pieTab:({t})=>{if(!['co','fly','dish','book'].includes(t))return;UI.pieTab=t;pieModal();},
|
||||
pieTab:({t})=>{if(!PIE_TABS.includes(t))return;UI.pieTab=t;pieModal();},
|
||||
pieHi:({id})=>{if(typeof id!=='string')return;sfx('click');pieHiSet(id);},
|
||||
pieCity:({v})=>{if(!S||!S.pops[v])return;UI.pieCity=v;pieModal();},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue