Bulk actions for the late game: POP standards, kit everywhere, buy on signing, network search
- POP standards by kind (micro, medium, regional hub), one button per POP and one per kind in Utilities (#315) - Redundancy kit at every POP from Utilities, and in the intern's template (#317) - Offers that need a generator, second router or second site can buy it and sign (#241) - The intern's Light more fiber order can leave new fiber dark (#316) - Search and connected-only filter for a POP's transit, exchange, PNI and cache lists (#199) - The link panel moves on to the next parallel link after a decommission (#119)
This commit is contained in:
parent
80baa970e7
commit
32b0b282f8
31 changed files with 692 additions and 18 deletions
|
|
@ -40,6 +40,12 @@ function utilityKit(city){const p=S&&S.pops[city];if(!p)return null;
|
|||
const gen=!p.gen,site=!p.site2,router=(p.routers||1)<2,g=p.rgen||0;
|
||||
return {gen,site,router,moves:utilityCacheMoves(city),cost:(gen?GEN_COST:0)+(site?SITE2_COST:0)+(router?routerCost(g,1):0),
|
||||
mo:(gen?GEN_MO:0)+(site?SITE2_MO:0)+(router?routerMo(g):0)};}
|
||||
// The kit at every POP that lacks part of it (#317): one quote, one button. From customer level 2, like the intern: early
|
||||
// on, every generator is a choice about money.
|
||||
const utilityKitAllOn=()=>!!S&&opsCanHire()&&!pzOn();
|
||||
function utilityKitAll(){if(!utilityKitAllOn())return null;const cities=[];let cost=0,mo=0,moves=0;
|
||||
for(const c of Object.keys(S.pops)){const q=utilityKit(c);if(!q||(!q.cost&&!q.moves.length))continue;cities.push(c);cost+=q.cost;mo+=q.mo;moves+=q.moves.length;}
|
||||
return {cities,cost,mo,moves};}
|
||||
function utilityPeers(){if(!S)return [];return Object.keys(S.ixp).filter(isIx).map(ix=>{
|
||||
const sessions=ixSessions(ix),requests=[],blocked=[];let existing=0;
|
||||
for(const id of ixMembers(ix)){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue