NOC tab and Pie Control tidied for phones: Pie Control in the NOC top row, traceroute in Routing & DDoS, government money in the bank
- NOC tab: Pie Control is a button in the top row next to "Open NOC dashboard" (only once the rocket
company is unlocked) and replaces the Pie in the Sky card; a spat waiting for an answer keeps its card.
The Connections button is gone (it lives in the NOC dashboard), and the traceroute moved into the
Routing & DDoS modal as an entry that opens the unchanged traceroute modal.
- Government money (Rural Digital Pie Fund, Pitcairn grant, Ex-Im Pie Bank) is a section of the bank,
shown with a rocket company or anything of the fund's to show. pieGovOpen, the action the toasts use,
opens the bank there; pieTab({t:'gov'}) does too.
- Pie Control has four tabs (Traffic, Company, Launch, Dishes) in one segmented control that fits 360 px,
styled like the HUD's speed buttons. The Founder's posts and the orbit books moved into the Company tab,
newest three posts shown and the rest folded. A stale UI.pieTab of 'gov', 'book' or 'founder' falls back.
- Agent docs for pieGovOpen, pieTab, routingOpen and connOpen; the route fuzzer drops connOpen from the
NOC tab on both pages to stay in lockstep with main.
- Tests: tests/noc-panel-layout.test.js, and the pie tests follow the moves.
This commit is contained in:
parent
176a6995b1
commit
9d74873edb
22 changed files with 207 additions and 68 deletions
|
|
@ -19,11 +19,13 @@ All notable changes to this project are documented here. The project follows
|
||||||
- The globe in Pie Control now replays your last few launches: a good one climbs and spills its pies into orbit (and a reusable booster flies home), a failed one goes up in a fireball with debris raining down.
|
- The globe in Pie Control now replays your last few launches: a good one climbs and spills its pies into orbit (and a reusable booster flies home), a failed one goes up in a fireball with debris raining down.
|
||||||
- A bad week in orbit now hurts without emptying the sky: a half-baked crust carries part of its traffic from 40% (all of it from 60%) instead of nothing until 60%, satellites wear out a few at a time near the end of their life instead of a whole launch month on one day, no storm or food fight takes more than a tenth of a crust, and orbit customers put up with about a month without service before they cancel.
|
- A bad week in orbit now hurts without emptying the sky: a half-baked crust carries part of its traffic from 40% (all of it from 60%) instead of nothing until 60%, satellites wear out a few at a time near the end of their life instead of a whole launch month on one day, no storm or food fight takes more than a tenth of a crust, and orbit customers put up with about a month without service before they cancel.
|
||||||
- A full satellite constellation now pays for itself in about seven years if you run it well, instead of practically never: pies cost half as much to build, landing rights cost less (at most $100M a year a country), orbit customers pay about a quarter more, the sky sells 40% of a crust's capacity instead of 25%, and orbit customers call twice as often. Terminal customers also land on the nearest pie dish with room for all of their traffic, instead of squeezing into a nearly full one.
|
- A full satellite constellation now pays for itself in about seven years if you run it well, instead of practically never: pies cost half as much to build, landing rights cost less (at most $100M a year a country), orbit customers pay about a quarter more, the sky sells 40% of a crust's capacity instead of 25%, and orbit customers call twice as often. Terminal customers also land on the nearest pie dish with room for all of their traffic, instead of squeezing into a nearly full one.
|
||||||
- Governments now pay for space too, in a new Gov tab in Pie Control. The Rural Digital Pie Fund auctions support for remote towns only your satellites reach: ask less than the rival and you are paid every month for five years, as long as the town stays well served after a three-month deadline, or the award is taken away and half of it paid back. The Ex-Im Pie Bank lends a rocket company a lot of money at under 3%, if you launch the pies you promised by a deadline and keep a pie dish in its country; break that and the rate goes up and its government picks a fight. And the UK now pays a smaller grant for Pitcairn when the islanders are online through your satellites.
|
- Governments now pay for space too, in a Government money section of the bank (Cash · Bank) that appears with your rocket company. The Rural Digital Pie Fund auctions support for remote towns only your satellites reach: ask less than the rival and you are paid every month for five years, as long as the town stays well served after a three-month deadline, or the award is taken away and half of it paid back. The Ex-Im Pie Bank lends a rocket company a lot of money at under 3%, if you launch the pies you promised by a deadline and keep a pie dish in its country; break that and the rate goes up and its government picks a fight. And the UK now pays a smaller grant for Pitcairn when the islanders are online through your satellites.
|
||||||
- Pie Control's Launch tab now says how long each crust you are filling takes to fill at your current pace. When that is more than two years, it suggests another launch pad at your coastal POP nearest the equator, with a button to build it.
|
- Pie Control's Launch tab now says how long each crust you are filling takes to fill at your current pace. When that is more than two years, it suggests another launch pad at your coastal POP nearest the equator, with a button to build it.
|
||||||
- Buoys, ships' mail and sensors that can live with gaps in the sky now pay a little before a crust carries anything: from 10% coverage, up to about $30M a month for the Shortcrust at 40%, as long as one pie dish works under it. Between 40% and 60% they make way for regular orbit customers, and the Traffic tab lists them.
|
- Buoys, ships' mail and sensors that can live with gaps in the sky now pay a little before a crust carries anything: from 10% coverage, up to about $30M a month for the Shortcrust at 40%, as long as one pie dish works under it. Between 40% and 60% they make way for regular orbit customers, and the Traffic tab lists them.
|
||||||
- While your crusts are under 30% covered, the Dishes tab reminds you that pie dishes earn nothing until the sky fills up, so it pays to wait.
|
- While your crusts are under 30% covered, the Dishes tab reminds you that pie dishes earn nothing until the sky fills up, so it pays to wait.
|
||||||
- The month a crust starts carrying traffic is its grand opening: for 30 days orbit customers call every day and up to four offers wait, so regular customers sign up while the gap-tolerant ones fade out.
|
- The month a crust starts carrying traffic is its grand opening: for 30 days orbit customers call every day and up to four offers wait, so regular customers sign up while the gap-tolerant ones fade out.
|
||||||
|
- The NOC tab is tidier: Pie Control is a button in its top row next to the NOC dashboard, the traceroute moved into Routing & DDoS, and the Connections button is gone (the list is still in the NOC dashboard).
|
||||||
|
- Pie Control has four tabs in one row that fits a phone: Traffic, Company, Launch and Dishes. The Founder's posts and your orbit books moved into the Company tab.
|
||||||
- Your own subsea cables now land right on the city's dot, also in Fujairah, Dubai, Karachi, Barcelona, Osaka and other cities the map shifts slightly so they do not overlap (#305).
|
- Your own subsea cables now land right on the city's dot, also in Fujairah, Dubai, Karachi, Barcelona, Osaka and other cities the map shifts slightly so they do not overlap (#305).
|
||||||
- Starting a new network no longer leaves the last one's "New POP!" and money pop-ups frozen all over the map until a reload.
|
- Starting a new network no longer leaves the last one's "New POP!" and money pop-ups frozen all over the map until a reload.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ Reuse the existing sanctions / sovereign-drill / China licence machinery where i
|
||||||
- Not over my airspace: two countries each demand their traffic avoid the other's dishes.
|
- Not over my airspace: two countries each demand their traffic avoid the other's dishes.
|
||||||
Each spat is a notification with 2 choices; outcomes deterministic per seed.
|
Each spat is a notification with 2 choices; outcomes deterministic per seed.
|
||||||
|
|
||||||
## Government money (`60-features/99-pie-subsidies.js`, Pie Control's Gov tab)
|
## Government money (`60-features/99-pie-subsidies.js`, a section of the bank)
|
||||||
|
|
||||||
- Rural Digital Pie Fund: reverse auctions for towns only orbit reaches (a cut-off POP on backhaul, or a small town of
|
- Rural Digital Pie Fund: reverse auctions for towns only orbit reaches (a cut-off POP on backhaul, or a small town of
|
||||||
your terminal customers). You ask 90%, 70% or 50% of the reserve; a rival asks 40-100%; the lower ask wins and is paid
|
your terminal customers). You ask 90%, 70% or 50% of the reserve; a rival asks 40-100%; the lower ask wins and is paid
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@
|
||||||
// The backbone, Auto-TE and DDoS settings moved from the NOC tab into the Routing & DDoS modal: offer them here on
|
// The backbone, Auto-TE and DDoS settings moved from the NOC tab into the Routing & DDoS modal: offer them here on
|
||||||
// both pages, in one order, so main's page (settings in the tab) and this one (behind the button) stay in lockstep.
|
// both pages, in one order, so main's page (settings in the tab) and this one (behind the button) stay in lockstep.
|
||||||
if (typeof routingBody === 'function' && b.some((x) => x.act === 'routingOpen')) { const d = document.createElement('div'); d.innerHTML = routingBody(); b = b.filter((x) => x.act !== 'routingOpen').concat(btns(d)); }
|
if (typeof routingBody === 'function' && b.some((x) => x.act === 'routingOpen')) { const d = document.createElement('div'); d.innerHTML = routingBody(); b = b.filter((x) => x.act !== 'routingOpen').concat(btns(d)); }
|
||||||
|
// The traceroute moved into that modal too, and Connections left the tab (it is in the dashboard): drop it on both pages.
|
||||||
|
b = b.filter((x) => x.act !== 'connOpen');
|
||||||
return b.sort((x, y) => (sig(x) < sig(y) ? -1 : sig(x) > sig(y) ? 1 : 0));
|
return b.sort((x, y) => (sig(x) < sig(y) ? -1 : sig(x) > sig(y) ? 1 : 0));
|
||||||
}
|
}
|
||||||
if (w.where === 'openLink') { if (!S.pops[w.a]) return []; openLinkModal(w.a, w.b); return modalOpen() ? btns($('modal')) : []; }
|
if (w.where === 'openLink') { if (!S.pops[w.a]) return []; openLinkModal(w.a, w.b); return modalOpen() ? btns($('modal')) : []; }
|
||||||
|
|
|
||||||
|
|
@ -3396,8 +3396,6 @@
|
||||||
"pie.build_pad_price":"Startrampe in {city} bauen {price}",
|
"pie.build_pad_price":"Startrampe in {city} bauen {price}",
|
||||||
"pie.build_price":"Bauen {price}",
|
"pie.build_price":"Bauen {price}",
|
||||||
"pie.buy":"Kaufen",
|
"pie.buy":"Kaufen",
|
||||||
"pie.card_live":"{n} Pies im Orbit · {q} Starts geplant",
|
|
||||||
"pie.card_pitch":"Gründe eine Raketenfirma und bring dein eigenes Internet in den Himmel. Es kostet ein Vermögen.",
|
|
||||||
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
||||||
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
||||||
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
||||||
|
|
@ -3420,6 +3418,7 @@
|
||||||
"pie.factory_pitch":"Backt {m} Pies im Monat, für {mo} im Monat.",
|
"pie.factory_pitch":"Backt {m} Pies im Monat, für {mo} im Monat.",
|
||||||
"pie.factory_stock":"{n} Pies im Regal · {m} im Monat",
|
"pie.factory_stock":"{n} Pies im Regal · {m} im Monat",
|
||||||
"pie.feed_empty":"Der Gründer hat noch nichts gepostet. Gib ihm eine Minute.",
|
"pie.feed_empty":"Der Gründer hat noch nichts gepostet. Gib ihm eine Minute.",
|
||||||
|
"pie.feed_older":{"one":"{n} älterer Post","other":"{n} ältere Posts"},
|
||||||
"pie.found_pitch":"Deine eigene Konstellation: Raketen, Tausende Satelliten (Pies) in Schalen (Krusten) und Schüsseln am Boden. Nichts, was du bisher gebaut hast, kostet so viel.",
|
"pie.found_pitch":"Deine eigene Konstellation: Raketen, Tausende Satelliten (Pies) in Schalen (Krusten) und Schüsseln am Boden. Nichts, was du bisher gebaut hast, kostet so viel.",
|
||||||
"pie.found_price":"Firma gründen {price} · {mo}/Monat",
|
"pie.found_price":"Firma gründen {price} · {mo}/Monat",
|
||||||
"pie.founder_feed":"Der Gründer postet",
|
"pie.founder_feed":"Der Gründer postet",
|
||||||
|
|
@ -3497,7 +3496,6 @@
|
||||||
"pie.t_test":"Testflug {n} ist explodiert, wie Testflüge das so tun. Noch {left}.",
|
"pie.t_test":"Testflug {n} ist explodiert, wie Testflüge das so tun. Noch {left}.",
|
||||||
"pie.tab_company":"Firma",
|
"pie.tab_company":"Firma",
|
||||||
"pie.tab_dishes":"Schüsseln",
|
"pie.tab_dishes":"Schüsseln",
|
||||||
"pie.tab_founder":"Gründer",
|
|
||||||
"pie.tab_launch":"Starts",
|
"pie.tab_launch":"Starts",
|
||||||
"pie.test_flight":"Testflug",
|
"pie.test_flight":"Testflug",
|
||||||
"pie.unlocked_body":"Du bist Tier 1. Jetzt kannst du eine Raketenfirma gründen und dein eigenes Internet im Orbit backen. Du findest es im NOC-Tab.",
|
"pie.unlocked_body":"Du bist Tier 1. Jetzt kannst du eine Raketenfirma gründen und dein eigenes Internet im Orbit backen. Du findest es im NOC-Tab.",
|
||||||
|
|
@ -3538,6 +3536,8 @@
|
||||||
"pie_gov.rival_coop":"Genossenschaft Kabelsalat",
|
"pie_gov.rival_coop":"Genossenschaft Kabelsalat",
|
||||||
"pie_gov.rival_hugsnet":"HugsNet",
|
"pie_gov.rival_hugsnet":"HugsNet",
|
||||||
"pie_gov.rival_viasad":"ViaSad",
|
"pie_gov.rival_viasad":"ViaSad",
|
||||||
|
"pie_gov.section":"Staatsgeld",
|
||||||
|
"pie_gov.section_note":"Fördergeld und billige Kredite für deine Raketenfirma. Keins davon ohne Haken.",
|
||||||
"pie_gov.served":"{p} versorgt",
|
"pie_gov.served":"{p} versorgt",
|
||||||
"pie_gov.t_auction":"Förderung für {city}: bis zu {mo}/Monat für {y} Jahre. Gebote bis {d}.",
|
"pie_gov.t_auction":"Förderung für {city}: bis zu {mo}/Monat für {y} Jahre. Gebote bis {d}.",
|
||||||
"pie_gov.t_auction_title":"Auktion des Rural Digital Pie Fund",
|
"pie_gov.t_auction_title":"Auktion des Rural Digital Pie Fund",
|
||||||
|
|
@ -3551,7 +3551,6 @@
|
||||||
"pie_gov.t_revoked":"Förderung für {city} entzogen: {p} versorgt, der Fonds will {need}. Er fordert {amt} zurück.",
|
"pie_gov.t_revoked":"Förderung für {city} entzogen: {p} versorgt, der Fonds will {need}. Er fordert {amt} zurück.",
|
||||||
"pie_gov.t_warn":"Der Fonds beobachtet {city}: letzten Monat {p} versorgt, er will {need}. Noch so ein Monat und die Förderung ist weg.",
|
"pie_gov.t_warn":"Der Fonds beobachtet {city}: letzten Monat {p} versorgt, er will {need}. Noch so ein Monat und die Förderung ist weg.",
|
||||||
"pie_gov.t_won":"Du hast {city} gewonnen: {mo}/Monat. Bis {d} brauchst du {p} Versorgung.",
|
"pie_gov.t_won":"Du hast {city} gewonnen: {mo}/Monat. Bis {d} brauchst du {p} Versorgung.",
|
||||||
"pie_gov.tab":"Staat",
|
|
||||||
"pie_gov.until":"Bezahlt bis {d}",
|
"pie_gov.until":"Bezahlt bis {d}",
|
||||||
"pie_gov.up_to":"bis zu {mo}/Monat",
|
"pie_gov.up_to":"bis zu {mo}/Monat",
|
||||||
"pie_gov.warned":"noch ein schlechter Monat und sie ist weg",
|
"pie_gov.warned":"noch ein schlechter Monat und sie ist weg",
|
||||||
|
|
@ -4220,6 +4219,8 @@
|
||||||
"routing.ddos_defence":"DDoS-Abwehr",
|
"routing.ddos_defence":"DDoS-Abwehr",
|
||||||
"routing.how_traffic_crosses_your_backbone":"Wie Traffic über deinen Backbone läuft und was passiert, wenn eine Flut kommt.",
|
"routing.how_traffic_crosses_your_backbone":"Wie Traffic über deinen Backbone läuft und was passiert, wenn eine Flut kommt.",
|
||||||
"routing.routing_and_ddos":"Routing & DDoS",
|
"routing.routing_and_ddos":"Routing & DDoS",
|
||||||
|
"routing.trace_note":"Folge einem Paket Hop für Hop und sieh, warum es genau dort rausgeht.",
|
||||||
|
"routing.trace_run":"Tracen",
|
||||||
"routing_and_routers.maintenance_window_in_city":"Wartungsfenster in {city}",
|
"routing_and_routers.maintenance_window_in_city":"Wartungsfenster in {city}",
|
||||||
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} wird ab Kundenlevel {lv} freigeschaltet.</b>",
|
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} wird ab Kundenlevel {lv} freigeschaltet.</b>",
|
||||||
"routing_and_routers.new_router_in_city_swapped_before":"<b>Neuer Router in {city}</b><br>Getauscht, bevor irgendwas eingesteckt war: null Ausfallzeit, null wütende Kunden.",
|
"routing_and_routers.new_router_in_city_swapped_before":"<b>Neuer Router in {city}</b><br>Getauscht, bevor irgendwas eingesteckt war: null Ausfallzeit, null wütende Kunden.",
|
||||||
|
|
|
||||||
|
|
@ -3394,8 +3394,6 @@
|
||||||
"pie.build_pad_price":"Construir una plataforma de lanzamiento en {city} {price}",
|
"pie.build_pad_price":"Construir una plataforma de lanzamiento en {city} {price}",
|
||||||
"pie.build_price":"Construir {price}",
|
"pie.build_price":"Construir {price}",
|
||||||
"pie.buy":"Comprar",
|
"pie.buy":"Comprar",
|
||||||
"pie.card_live":"{n} tartas en órbita · {q} lanzamientos en cola",
|
|
||||||
"pie.card_pitch":"Funda una empresa de cohetes y pon tu propio internet en el cielo. Cuesta una fortuna.",
|
|
||||||
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
||||||
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
||||||
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
||||||
|
|
@ -3418,6 +3416,7 @@
|
||||||
"pie.factory_pitch":"Hornea {m} tartas al mes, por {mo} al mes.",
|
"pie.factory_pitch":"Hornea {m} tartas al mes, por {mo} al mes.",
|
||||||
"pie.factory_stock":"{n} tartas en el almacén · {m} al mes",
|
"pie.factory_stock":"{n} tartas en el almacén · {m} al mes",
|
||||||
"pie.feed_empty":"El Fundador aún no ha publicado nada. Dale un minuto.",
|
"pie.feed_empty":"El Fundador aún no ha publicado nada. Dale un minuto.",
|
||||||
|
"pie.feed_older":{"one":"{n} publicación anterior","other":"{n} publicaciones anteriores"},
|
||||||
"pie.found_pitch":"Tu propia constelación: cohetes, miles de satélites (tartas) en capas (cortezas) y antenas en tierra. Nada de lo que has construido hasta ahora cuesta tanto.",
|
"pie.found_pitch":"Tu propia constelación: cohetes, miles de satélites (tartas) en capas (cortezas) y antenas en tierra. Nada de lo que has construido hasta ahora cuesta tanto.",
|
||||||
"pie.found_price":"Fundar la empresa {price} · {mo}/mes",
|
"pie.found_price":"Fundar la empresa {price} · {mo}/mes",
|
||||||
"pie.founder_feed":"Lo que publica el Fundador",
|
"pie.founder_feed":"Lo que publica el Fundador",
|
||||||
|
|
@ -3495,8 +3494,7 @@
|
||||||
"pie.t_test":"El vuelo de prueba {n} explotó, como hacen los vuelos de prueba. Quedan {left}.",
|
"pie.t_test":"El vuelo de prueba {n} explotó, como hacen los vuelos de prueba. Quedan {left}.",
|
||||||
"pie.tab_company":"Empresa",
|
"pie.tab_company":"Empresa",
|
||||||
"pie.tab_dishes":"Antenas",
|
"pie.tab_dishes":"Antenas",
|
||||||
"pie.tab_founder":"Fundador",
|
"pie.tab_launch":"Lanzar",
|
||||||
"pie.tab_launch":"Lanzamientos",
|
|
||||||
"pie.test_flight":"vuelo de prueba",
|
"pie.test_flight":"vuelo de prueba",
|
||||||
"pie.unlocked_body":"Eres Tier 1. Ahora puedes fundar una empresa de cohetes y hornear tu propio internet en órbita. Está en la pestaña NOC.",
|
"pie.unlocked_body":"Eres Tier 1. Ahora puedes fundar una empresa de cohetes y hornear tu propio internet en órbita. Está en la pestaña NOC.",
|
||||||
"pie.unlocked_title":"Pie in the Sky está desbloqueado",
|
"pie.unlocked_title":"Pie in the Sky está desbloqueado",
|
||||||
|
|
@ -3536,6 +3534,8 @@
|
||||||
"pie_gov.rival_coop":"Cooperativa La Parabólica",
|
"pie_gov.rival_coop":"Cooperativa La Parabólica",
|
||||||
"pie_gov.rival_hugsnet":"HugsNet",
|
"pie_gov.rival_hugsnet":"HugsNet",
|
||||||
"pie_gov.rival_viasad":"ViaSad",
|
"pie_gov.rival_viasad":"ViaSad",
|
||||||
|
"pie_gov.section":"Dinero público",
|
||||||
|
"pie_gov.section_note":"Subvenciones y préstamos baratos para tu empresa de cohetes. Todos vienen con letra pequeña.",
|
||||||
"pie_gov.served":"{p} servido",
|
"pie_gov.served":"{p} servido",
|
||||||
"pie_gov.t_auction":"Ayuda para {city}: hasta {mo}/mes durante {y} años. Pujas hasta el {d}.",
|
"pie_gov.t_auction":"Ayuda para {city}: hasta {mo}/mes durante {y} años. Pujas hasta el {d}.",
|
||||||
"pie_gov.t_auction_title":"Subasta del Rural Digital Pie Fund",
|
"pie_gov.t_auction_title":"Subasta del Rural Digital Pie Fund",
|
||||||
|
|
@ -3549,7 +3549,6 @@
|
||||||
"pie_gov.t_revoked":"Ayuda para {city} revocada: {p} servido, el fondo quiere {need}. Reclama {amt}.",
|
"pie_gov.t_revoked":"Ayuda para {city} revocada: {p} servido, el fondo quiere {need}. Reclama {amt}.",
|
||||||
"pie_gov.t_warn":"El fondo vigila {city}: {p} servido el mes pasado, quiere {need}. Otro mes así y la ayuda se revoca.",
|
"pie_gov.t_warn":"El fondo vigila {city}: {p} servido el mes pasado, quiere {need}. Otro mes así y la ayuda se revoca.",
|
||||||
"pie_gov.t_won":"Ganaste {city}: {mo}/mes. Tenlo servido al {p} antes del {d}.",
|
"pie_gov.t_won":"Ganaste {city}: {mo}/mes. Tenlo servido al {p} antes del {d}.",
|
||||||
"pie_gov.tab":"Gobierno",
|
|
||||||
"pie_gov.until":"Pagado hasta el {d}",
|
"pie_gov.until":"Pagado hasta el {d}",
|
||||||
"pie_gov.up_to":"hasta {mo}/mes",
|
"pie_gov.up_to":"hasta {mo}/mes",
|
||||||
"pie_gov.warned":"un mes malo más y se revoca",
|
"pie_gov.warned":"un mes malo más y se revoca",
|
||||||
|
|
@ -4218,6 +4217,8 @@
|
||||||
"routing.ddos_defence":"Defensa DDoS",
|
"routing.ddos_defence":"Defensa DDoS",
|
||||||
"routing.how_traffic_crosses_your_backbone":"Cómo cruza el tráfico tu backbone y qué pasa cuando llega una inundación.",
|
"routing.how_traffic_crosses_your_backbone":"Cómo cruza el tráfico tu backbone y qué pasa cuando llega una inundación.",
|
||||||
"routing.routing_and_ddos":"Routing y DDoS",
|
"routing.routing_and_ddos":"Routing y DDoS",
|
||||||
|
"routing.trace_note":"Sigue un paquete salto a salto y mira por qué sale por donde sale.",
|
||||||
|
"routing.trace_run":"Trazar",
|
||||||
"routing_and_routers.maintenance_window_in_city":"Ventana de mantenimiento en {city}",
|
"routing_and_routers.maintenance_window_in_city":"Ventana de mantenimiento en {city}",
|
||||||
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} se desbloquea en el nivel de cliente {lv}.</b>",
|
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} se desbloquea en el nivel de cliente {lv}.</b>",
|
||||||
"routing_and_routers.new_router_in_city_swapped_before":"<b>Router nuevo en {city}</b><br>Cambiado antes de conectar nada: cero inactividad, cero clientes enfadados.",
|
"routing_and_routers.new_router_in_city_swapped_before":"<b>Router nuevo en {city}</b><br>Cambiado antes de conectar nada: cero inactividad, cero clientes enfadados.",
|
||||||
|
|
|
||||||
|
|
@ -3394,8 +3394,6 @@
|
||||||
"pie.build_pad_price":"Construire un pas de tir à {city} {price}",
|
"pie.build_pad_price":"Construire un pas de tir à {city} {price}",
|
||||||
"pie.build_price":"Construire {price}",
|
"pie.build_price":"Construire {price}",
|
||||||
"pie.buy":"Acheter",
|
"pie.buy":"Acheter",
|
||||||
"pie.card_live":"{n} tartes en orbite · {q} lancements prévus",
|
|
||||||
"pie.card_pitch":"Fonde une société de fusées et mets ton propre internet dans le ciel. Ça coûte une fortune.",
|
|
||||||
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
||||||
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
||||||
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
||||||
|
|
@ -3418,6 +3416,7 @@
|
||||||
"pie.factory_pitch":"Cuit {m} tartes par mois, pour {mo} par mois.",
|
"pie.factory_pitch":"Cuit {m} tartes par mois, pour {mo} par mois.",
|
||||||
"pie.factory_stock":"{n} tartes en stock · {m} par mois",
|
"pie.factory_stock":"{n} tartes en stock · {m} par mois",
|
||||||
"pie.feed_empty":"Le Fondateur n'a encore rien posté. Laisse-lui une minute.",
|
"pie.feed_empty":"Le Fondateur n'a encore rien posté. Laisse-lui une minute.",
|
||||||
|
"pie.feed_older":{"one":"{n} message plus ancien","other":"{n} messages plus anciens"},
|
||||||
"pie.found_pitch":"Ta propre constellation : des fusées, des milliers de satellites (tartes) sur des couches (croûtes), et des antennes au sol. Rien de ce que tu as construit jusqu'ici ne coûte autant.",
|
"pie.found_pitch":"Ta propre constellation : des fusées, des milliers de satellites (tartes) sur des couches (croûtes), et des antennes au sol. Rien de ce que tu as construit jusqu'ici ne coûte autant.",
|
||||||
"pie.found_price":"Fonder la société {price} · {mo}/mois",
|
"pie.found_price":"Fonder la société {price} · {mo}/mois",
|
||||||
"pie.founder_feed":"Les posts du Fondateur",
|
"pie.founder_feed":"Les posts du Fondateur",
|
||||||
|
|
@ -3495,8 +3494,7 @@
|
||||||
"pie.t_test":"Le vol d'essai {n} a explosé, comme tout vol d'essai. Encore {left}.",
|
"pie.t_test":"Le vol d'essai {n} a explosé, comme tout vol d'essai. Encore {left}.",
|
||||||
"pie.tab_company":"Société",
|
"pie.tab_company":"Société",
|
||||||
"pie.tab_dishes":"Antennes",
|
"pie.tab_dishes":"Antennes",
|
||||||
"pie.tab_founder":"Fondateur",
|
"pie.tab_launch":"Lancer",
|
||||||
"pie.tab_launch":"Lancements",
|
|
||||||
"pie.test_flight":"vol d'essai",
|
"pie.test_flight":"vol d'essai",
|
||||||
"pie.unlocked_body":"Tu es Tier 1. Tu peux maintenant fonder une société de fusées et cuire ton propre internet en orbite. C'est dans l'onglet NOC.",
|
"pie.unlocked_body":"Tu es Tier 1. Tu peux maintenant fonder une société de fusées et cuire ton propre internet en orbite. C'est dans l'onglet NOC.",
|
||||||
"pie.unlocked_title":"Pie in the Sky est débloqué",
|
"pie.unlocked_title":"Pie in the Sky est débloqué",
|
||||||
|
|
@ -3536,6 +3534,8 @@
|
||||||
"pie_gov.rival_coop":"Coopérative La Parabole",
|
"pie_gov.rival_coop":"Coopérative La Parabole",
|
||||||
"pie_gov.rival_hugsnet":"HugsNet",
|
"pie_gov.rival_hugsnet":"HugsNet",
|
||||||
"pie_gov.rival_viasad":"ViaSad",
|
"pie_gov.rival_viasad":"ViaSad",
|
||||||
|
"pie_gov.section":"Argent public",
|
||||||
|
"pie_gov.section_note":"Subventions et prêts bon marché pour ta société de fusées. Aucun n'est sans conditions.",
|
||||||
"pie_gov.served":"{p} servi",
|
"pie_gov.served":"{p} servi",
|
||||||
"pie_gov.t_auction":"Aide pour {city} : jusqu'à {mo}/mois pendant {y} ans. Enchères jusqu'au {d}.",
|
"pie_gov.t_auction":"Aide pour {city} : jusqu'à {mo}/mois pendant {y} ans. Enchères jusqu'au {d}.",
|
||||||
"pie_gov.t_auction_title":"Enchère du Rural Digital Pie Fund",
|
"pie_gov.t_auction_title":"Enchère du Rural Digital Pie Fund",
|
||||||
|
|
@ -3549,7 +3549,6 @@
|
||||||
"pie_gov.t_revoked":"Aide pour {city} retirée : {p} servi, le fonds veut {need}. Il récupère {amt}.",
|
"pie_gov.t_revoked":"Aide pour {city} retirée : {p} servi, le fonds veut {need}. Il récupère {amt}.",
|
||||||
"pie_gov.t_warn":"Le fonds surveille {city} : {p} servi le mois dernier, il veut {need}. Encore un mois comme ça et l'aide est retirée.",
|
"pie_gov.t_warn":"Le fonds surveille {city} : {p} servi le mois dernier, il veut {need}. Encore un mois comme ça et l'aide est retirée.",
|
||||||
"pie_gov.t_won":"Tu as gagné {city} : {mo}/mois. Sers-la à {p} d'ici le {d}.",
|
"pie_gov.t_won":"Tu as gagné {city} : {mo}/mois. Sers-la à {p} d'ici le {d}.",
|
||||||
"pie_gov.tab":"État",
|
|
||||||
"pie_gov.until":"Payé jusqu'au {d}",
|
"pie_gov.until":"Payé jusqu'au {d}",
|
||||||
"pie_gov.up_to":"jusqu'à {mo}/mois",
|
"pie_gov.up_to":"jusqu'à {mo}/mois",
|
||||||
"pie_gov.warned":"encore un mauvais mois et elle est retirée",
|
"pie_gov.warned":"encore un mauvais mois et elle est retirée",
|
||||||
|
|
@ -4218,6 +4217,8 @@
|
||||||
"routing.ddos_defence":"Défense DDoS",
|
"routing.ddos_defence":"Défense DDoS",
|
||||||
"routing.how_traffic_crosses_your_backbone":"Comment le trafic traverse ton backbone, et ce qui se passe quand une attaque déferle.",
|
"routing.how_traffic_crosses_your_backbone":"Comment le trafic traverse ton backbone, et ce qui se passe quand une attaque déferle.",
|
||||||
"routing.routing_and_ddos":"Routage et DDoS",
|
"routing.routing_and_ddos":"Routage et DDoS",
|
||||||
|
"routing.trace_note":"Suis un paquet saut par saut et vois pourquoi il sort là où il sort.",
|
||||||
|
"routing.trace_run":"Tracer",
|
||||||
"routing_and_routers.maintenance_window_in_city":"Fenêtre de maintenance à {city}",
|
"routing_and_routers.maintenance_window_in_city":"Fenêtre de maintenance à {city}",
|
||||||
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>Le {model} se débloque au niveau client {lv}.</b>",
|
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>Le {model} se débloque au niveau client {lv}.</b>",
|
||||||
"routing_and_routers.new_router_in_city_swapped_before":"<b>Nouveau routeur à {city}</b><br>Remplacé avant que quoi que ce soit ne soit branché : zéro interruption, zéro client fâché.",
|
"routing_and_routers.new_router_in_city_swapped_before":"<b>Nouveau routeur à {city}</b><br>Remplacé avant que quoi que ce soit ne soit branché : zéro interruption, zéro client fâché.",
|
||||||
|
|
|
||||||
|
|
@ -3394,8 +3394,6 @@
|
||||||
"pie.build_pad_price":"Costruisci una rampa di lancio a {city} {price}",
|
"pie.build_pad_price":"Costruisci una rampa di lancio a {city} {price}",
|
||||||
"pie.build_price":"Costruisci {price}",
|
"pie.build_price":"Costruisci {price}",
|
||||||
"pie.buy":"Compra",
|
"pie.buy":"Compra",
|
||||||
"pie.card_live":"{n} torte in orbita · {q} lanci in coda",
|
|
||||||
"pie.card_pitch":"Fonda un'azienda di razzi e metti il tuo internet in cielo. Costa una fortuna.",
|
|
||||||
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
||||||
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
||||||
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
||||||
|
|
@ -3418,6 +3416,7 @@
|
||||||
"pie.factory_pitch":"Sforna {m} torte al mese, per {mo} al mese.",
|
"pie.factory_pitch":"Sforna {m} torte al mese, per {mo} al mese.",
|
||||||
"pie.factory_stock":"{n} torte in magazzino · {m} al mese",
|
"pie.factory_stock":"{n} torte in magazzino · {m} al mese",
|
||||||
"pie.feed_empty":"Il Fondatore non ha ancora postato. Dagli un minuto.",
|
"pie.feed_empty":"Il Fondatore non ha ancora postato. Dagli un minuto.",
|
||||||
|
"pie.feed_older":{"one":"{n} post precedente","other":"{n} post precedenti"},
|
||||||
"pie.found_pitch":"La tua costellazione: razzi, migliaia di satelliti (torte) su gusci (croste) e parabole a terra. Niente di quello che hai costruito finora costa così tanto.",
|
"pie.found_pitch":"La tua costellazione: razzi, migliaia di satelliti (torte) su gusci (croste) e parabole a terra. Niente di quello che hai costruito finora costa così tanto.",
|
||||||
"pie.found_price":"Fonda l'azienda {price} · {mo}/mese",
|
"pie.found_price":"Fonda l'azienda {price} · {mo}/mese",
|
||||||
"pie.founder_feed":"I post del Fondatore",
|
"pie.founder_feed":"I post del Fondatore",
|
||||||
|
|
@ -3495,7 +3494,6 @@
|
||||||
"pie.t_test":"Il volo di prova {n} è esploso, come fanno i voli di prova. Ne mancano {left}.",
|
"pie.t_test":"Il volo di prova {n} è esploso, come fanno i voli di prova. Ne mancano {left}.",
|
||||||
"pie.tab_company":"Azienda",
|
"pie.tab_company":"Azienda",
|
||||||
"pie.tab_dishes":"Parabole",
|
"pie.tab_dishes":"Parabole",
|
||||||
"pie.tab_founder":"Fondatore",
|
|
||||||
"pie.tab_launch":"Lanci",
|
"pie.tab_launch":"Lanci",
|
||||||
"pie.test_flight":"volo di prova",
|
"pie.test_flight":"volo di prova",
|
||||||
"pie.unlocked_body":"Sei un Tier 1. Ora puoi fondare un'azienda di razzi e sfornare il tuo internet in orbita. Lo trovi nella scheda NOC.",
|
"pie.unlocked_body":"Sei un Tier 1. Ora puoi fondare un'azienda di razzi e sfornare il tuo internet in orbita. Lo trovi nella scheda NOC.",
|
||||||
|
|
@ -3536,6 +3534,8 @@
|
||||||
"pie_gov.rival_coop":"Cooperativa La Parabola",
|
"pie_gov.rival_coop":"Cooperativa La Parabola",
|
||||||
"pie_gov.rival_hugsnet":"HugsNet",
|
"pie_gov.rival_hugsnet":"HugsNet",
|
||||||
"pie_gov.rival_viasad":"ViaSad",
|
"pie_gov.rival_viasad":"ViaSad",
|
||||||
|
"pie_gov.section":"Soldi pubblici",
|
||||||
|
"pie_gov.section_note":"Sussidi e prestiti a buon mercato per la tua azienda di razzi. Nessuno è senza condizioni.",
|
||||||
"pie_gov.served":"{p} servito",
|
"pie_gov.served":"{p} servito",
|
||||||
"pie_gov.t_auction":"Sostegno per {city}: fino a {mo}/mese per {y} anni. Offerte fino al {d}.",
|
"pie_gov.t_auction":"Sostegno per {city}: fino a {mo}/mese per {y} anni. Offerte fino al {d}.",
|
||||||
"pie_gov.t_auction_title":"Asta del Rural Digital Pie Fund",
|
"pie_gov.t_auction_title":"Asta del Rural Digital Pie Fund",
|
||||||
|
|
@ -3549,7 +3549,6 @@
|
||||||
"pie_gov.t_revoked":"Sostegno per {city} revocato: {p} servito, il fondo vuole {need}. Si riprende {amt}.",
|
"pie_gov.t_revoked":"Sostegno per {city} revocato: {p} servito, il fondo vuole {need}. Si riprende {amt}.",
|
||||||
"pie_gov.t_warn":"Il fondo tiene d'occhio {city}: {p} servito il mese scorso, vuole {need}. Un altro mese così e il sostegno viene revocato.",
|
"pie_gov.t_warn":"Il fondo tiene d'occhio {city}: {p} servito il mese scorso, vuole {need}. Un altro mese così e il sostegno viene revocato.",
|
||||||
"pie_gov.t_won":"Hai vinto {city}: {mo}/mese. Servilo al {p} entro il {d}.",
|
"pie_gov.t_won":"Hai vinto {city}: {mo}/mese. Servilo al {p} entro il {d}.",
|
||||||
"pie_gov.tab":"Stato",
|
|
||||||
"pie_gov.until":"Pagato fino al {d}",
|
"pie_gov.until":"Pagato fino al {d}",
|
||||||
"pie_gov.up_to":"fino a {mo}/mese",
|
"pie_gov.up_to":"fino a {mo}/mese",
|
||||||
"pie_gov.warned":"ancora un mese brutto ed è revocato",
|
"pie_gov.warned":"ancora un mese brutto ed è revocato",
|
||||||
|
|
@ -4218,6 +4217,8 @@
|
||||||
"routing.ddos_defence":"Difesa DDoS",
|
"routing.ddos_defence":"Difesa DDoS",
|
||||||
"routing.how_traffic_crosses_your_backbone":"Come il traffico attraversa il tuo backbone e cosa succede quando arriva un attacco.",
|
"routing.how_traffic_crosses_your_backbone":"Come il traffico attraversa il tuo backbone e cosa succede quando arriva un attacco.",
|
||||||
"routing.routing_and_ddos":"Routing e DDoS",
|
"routing.routing_and_ddos":"Routing e DDoS",
|
||||||
|
"routing.trace_note":"Segui un pacchetto hop dopo hop e scopri perché esce proprio lì.",
|
||||||
|
"routing.trace_run":"Traccia",
|
||||||
"routing_and_routers.maintenance_window_in_city":"Finestra di manutenzione a {city}",
|
"routing_and_routers.maintenance_window_in_city":"Finestra di manutenzione a {city}",
|
||||||
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} si sblocca al livello clienti {lv}.</b>",
|
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} si sblocca al livello clienti {lv}.</b>",
|
||||||
"routing_and_routers.new_router_in_city_swapped_before":"<b>Nuovo router a {city}</b><br>Sostituito prima che ci fosse collegato qualcosa: zero downtime, zero clienti arrabbiati.",
|
"routing_and_routers.new_router_in_city_swapped_before":"<b>Nuovo router a {city}</b><br>Sostituito prima che ci fosse collegato qualcosa: zero downtime, zero clienti arrabbiati.",
|
||||||
|
|
|
||||||
|
|
@ -3394,8 +3394,6 @@
|
||||||
"pie.build_pad_price":"Construir uma plataforma de lançamento em {city} {price}",
|
"pie.build_pad_price":"Construir uma plataforma de lançamento em {city} {price}",
|
||||||
"pie.build_price":"Construir {price}",
|
"pie.build_price":"Construir {price}",
|
||||||
"pie.buy":"Comprar",
|
"pie.buy":"Comprar",
|
||||||
"pie.card_live":"{n} tortas em órbita · {q} lançamentos na fila",
|
|
||||||
"pie.card_pitch":"Funde uma empresa de foguetes e coloque sua própria internet no céu. Custa uma fortuna.",
|
|
||||||
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
||||||
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
||||||
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
||||||
|
|
@ -3418,6 +3416,7 @@
|
||||||
"pie.factory_pitch":"Assa {m} tortas por mês, por {mo} ao mês.",
|
"pie.factory_pitch":"Assa {m} tortas por mês, por {mo} ao mês.",
|
||||||
"pie.factory_stock":"{n} tortas no estoque · {m} por mês",
|
"pie.factory_stock":"{n} tortas no estoque · {m} por mês",
|
||||||
"pie.feed_empty":"O Fundador ainda não postou nada. Dê um minuto.",
|
"pie.feed_empty":"O Fundador ainda não postou nada. Dê um minuto.",
|
||||||
|
"pie.feed_older":{"one":"{n} post mais antigo","other":"{n} posts mais antigos"},
|
||||||
"pie.found_pitch":"Sua própria constelação: foguetes, milhares de satélites (tortas) em camadas (crostas) e antenas no chão. Nada do que você construiu até agora custa tanto.",
|
"pie.found_pitch":"Sua própria constelação: foguetes, milhares de satélites (tortas) em camadas (crostas) e antenas no chão. Nada do que você construiu até agora custa tanto.",
|
||||||
"pie.found_price":"Fundar a empresa {price} · {mo}/mês",
|
"pie.found_price":"Fundar a empresa {price} · {mo}/mês",
|
||||||
"pie.founder_feed":"Os posts do Fundador",
|
"pie.founder_feed":"Os posts do Fundador",
|
||||||
|
|
@ -3495,8 +3494,7 @@
|
||||||
"pie.t_test":"O voo de teste {n} explodiu, como voos de teste fazem. Faltam {left}.",
|
"pie.t_test":"O voo de teste {n} explodiu, como voos de teste fazem. Faltam {left}.",
|
||||||
"pie.tab_company":"Empresa",
|
"pie.tab_company":"Empresa",
|
||||||
"pie.tab_dishes":"Antenas",
|
"pie.tab_dishes":"Antenas",
|
||||||
"pie.tab_founder":"Fundador",
|
"pie.tab_launch":"Lançar",
|
||||||
"pie.tab_launch":"Lançamentos",
|
|
||||||
"pie.test_flight":"voo de teste",
|
"pie.test_flight":"voo de teste",
|
||||||
"pie.unlocked_body":"Você é Tier 1. Agora pode fundar uma empresa de foguetes e assar sua própria internet em órbita. Está na aba NOC.",
|
"pie.unlocked_body":"Você é Tier 1. Agora pode fundar uma empresa de foguetes e assar sua própria internet em órbita. Está na aba NOC.",
|
||||||
"pie.unlocked_title":"Pie in the Sky foi desbloqueado",
|
"pie.unlocked_title":"Pie in the Sky foi desbloqueado",
|
||||||
|
|
@ -3536,6 +3534,8 @@
|
||||||
"pie_gov.rival_coop":"Cooperativa Parabólica",
|
"pie_gov.rival_coop":"Cooperativa Parabólica",
|
||||||
"pie_gov.rival_hugsnet":"HugsNet",
|
"pie_gov.rival_hugsnet":"HugsNet",
|
||||||
"pie_gov.rival_viasad":"ViaSad",
|
"pie_gov.rival_viasad":"ViaSad",
|
||||||
|
"pie_gov.section":"Dinheiro público",
|
||||||
|
"pie_gov.section_note":"Subsídios e empréstimos baratos para sua empresa de foguetes. Nenhum vem sem condições.",
|
||||||
"pie_gov.served":"{p} atendido",
|
"pie_gov.served":"{p} atendido",
|
||||||
"pie_gov.t_auction":"Apoio para {city}: até {mo}/mês por {y} anos. Lances até {d}.",
|
"pie_gov.t_auction":"Apoio para {city}: até {mo}/mês por {y} anos. Lances até {d}.",
|
||||||
"pie_gov.t_auction_title":"Leilão do Rural Digital Pie Fund",
|
"pie_gov.t_auction_title":"Leilão do Rural Digital Pie Fund",
|
||||||
|
|
@ -3549,7 +3549,6 @@
|
||||||
"pie_gov.t_revoked":"Apoio para {city} revogado: {p} atendido, o fundo quer {need}. Ele pega de volta {amt}.",
|
"pie_gov.t_revoked":"Apoio para {city} revogado: {p} atendido, o fundo quer {need}. Ele pega de volta {amt}.",
|
||||||
"pie_gov.t_warn":"O fundo está de olho em {city}: {p} atendido no mês passado, ele quer {need}. Mais um mês assim e o apoio é revogado.",
|
"pie_gov.t_warn":"O fundo está de olho em {city}: {p} atendido no mês passado, ele quer {need}. Mais um mês assim e o apoio é revogado.",
|
||||||
"pie_gov.t_won":"Você ganhou {city}: {mo}/mês. Deixe {p} atendido até {d}.",
|
"pie_gov.t_won":"Você ganhou {city}: {mo}/mês. Deixe {p} atendido até {d}.",
|
||||||
"pie_gov.tab":"Governo",
|
|
||||||
"pie_gov.until":"Pago até {d}",
|
"pie_gov.until":"Pago até {d}",
|
||||||
"pie_gov.up_to":"até {mo}/mês",
|
"pie_gov.up_to":"até {mo}/mês",
|
||||||
"pie_gov.warned":"mais um mês ruim e é revogado",
|
"pie_gov.warned":"mais um mês ruim e é revogado",
|
||||||
|
|
@ -4218,6 +4217,8 @@
|
||||||
"routing.ddos_defence":"Defesa DDoS",
|
"routing.ddos_defence":"Defesa DDoS",
|
||||||
"routing.how_traffic_crosses_your_backbone":"Como o tráfego cruza seu backbone e o que acontece quando chega uma enxurrada.",
|
"routing.how_traffic_crosses_your_backbone":"Como o tráfego cruza seu backbone e o que acontece quando chega uma enxurrada.",
|
||||||
"routing.routing_and_ddos":"Roteamento e DDoS",
|
"routing.routing_and_ddos":"Roteamento e DDoS",
|
||||||
|
"routing.trace_note":"Siga um pacote salto a salto e veja por que ele sai por onde sai.",
|
||||||
|
"routing.trace_run":"Traçar",
|
||||||
"routing_and_routers.maintenance_window_in_city":"Janela de manutenção em {city}",
|
"routing_and_routers.maintenance_window_in_city":"Janela de manutenção em {city}",
|
||||||
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} desbloqueia no nível de cliente {lv}.</b>",
|
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} desbloqueia no nível de cliente {lv}.</b>",
|
||||||
"routing_and_routers.new_router_in_city_swapped_before":"<b>Roteador novo em {city}</b><br>Trocado antes de qualquer coisa estar conectada: zero downtime, zero clientes bravos.",
|
"routing_and_routers.new_router_in_city_swapped_before":"<b>Roteador novo em {city}</b><br>Trocado antes de qualquer coisa estar conectada: zero downtime, zero clientes bravos.",
|
||||||
|
|
|
||||||
|
|
@ -444,8 +444,8 @@ const API_CMD={
|
||||||
|
|
||||||
const API_VIEW={
|
const API_VIEW={
|
||||||
pieOpen:{args:[],doc:'Open Pie Control, the rocket company\'s panel.'},
|
pieOpen:{args:[],doc:'Open Pie Control, the rocket company\'s panel.'},
|
||||||
pieGovOpen:{args:[],doc:'Open Pie Control on its Gov tab.'},
|
pieGovOpen:{args:[],doc:'Open the bank at its Government money section: the rocket company\'s fund auctions, the Pitcairn grant and the Ex-Im Pie Bank (it used to be Pie Control\'s Gov tab).'},
|
||||||
pieTab:{args:[['t','pieTab']],doc:'Switch the Pie Control tab.'},
|
pieTab:{args:[['t','pieTab']],doc:'Switch the Pie Control tab: traffic, co (the company, its books and the Founder\'s posts), fly (launches) or dish.'},
|
||||||
pieCity:{args:[['v','cityId']],doc:'Pick the POP the Dishes tab works on.'},
|
pieCity:{args:[['v','cityId']],doc:'Pick the POP the Dishes tab works on.'},
|
||||||
pieHi:{args:[['id','string']],doc:'Highlight one orbit flow on the Pie Control globe.'},
|
pieHi:{args:[['id','string']],doc:'Highlight one orbit flow on the Pie Control globe.'},
|
||||||
pieIns:{args:[],doc:'Toggle launch insurance for the next launches.'},
|
pieIns:{args:[],doc:'Toggle launch insurance for the next launches.'},
|
||||||
|
|
@ -488,7 +488,7 @@ const API_VIEW={
|
||||||
popsSort:{args:[['k','popsSortKey']],doc:'Flip the sort of the list of cities with no POP.'},
|
popsSort:{args:[['k','popsSortKey']],doc:'Flip the sort of the list of cities with no POP.'},
|
||||||
goConn:{args:[['city','cityId'],['k','connKind']],doc:'Open a city\'s connections tab.'},
|
goConn:{args:[['city','cityId'],['k','connKind']],doc:'Open a city\'s connections tab.'},
|
||||||
goEgress:{args:[['city','cityId'],['k','egressKind']],doc:'Open a city\'s connections tab (l2 for the customer list).'},
|
goEgress:{args:[['city','cityId'],['k','egressKind']],doc:'Open a city\'s connections tab (l2 for the customer list).'},
|
||||||
connOpen:{args:[],doc:'Open the connections dashboard tab.'},
|
connOpen:{args:[],doc:'Open the connections tab of the NOC dashboard (also the Peering tab\'s "All connections" button).'},
|
||||||
connF:{args:[['f','connFilter'],['v','string',false]],doc:'Filter the connections list.'},
|
connF:{args:[['f','connFilter'],['v','string',false]],doc:'Filter the connections list.'},
|
||||||
connCity:{args:[['v','string']],doc:'Filter the connections list by city.'},
|
connCity:{args:[['v','string']],doc:'Filter the connections list by city.'},
|
||||||
connNet:{args:[['v','string']],doc:'Filter the connections list by network.'},
|
connNet:{args:[['v','string']],doc:'Filter the connections list by network.'},
|
||||||
|
|
@ -501,7 +501,7 @@ const API_VIEW={
|
||||||
offerStep:{args:[],doc:'Select the next open offer (soonest to expire first), centre its city and mark it under Offers here: the $ key.'},
|
offerStep:{args:[],doc:'Select the next open offer (soonest to expire first), centre its city and mark it under Offers here: the $ key.'},
|
||||||
zoomStep:{args:[['d','integer']],doc:'Zoom the map out (d<0) or in (d>0) around its middle: the - and = keys.'},
|
zoomStep:{args:[['d','integer']],doc:'Zoom the map out (d<0) or in (d>0) around its middle: the - and = keys.'},
|
||||||
keys:{args:[],doc:'Open the list of keyboard shortcuts (the ? key).'},
|
keys:{args:[],doc:'Open the list of keyboard shortcuts (the ? key).'},
|
||||||
routingOpen:{args:[],doc:'Open the Routing & DDoS window: backbone, Auto-TE and DDoS settings (the button at the top of the NOC tab).'},
|
routingOpen:{args:[],doc:'Open the Routing & DDoS window: the traceroute, backbone, Auto-TE and DDoS settings (the button at the top of the NOC tab).'},
|
||||||
opsOpen:{args:[],doc:'Open the Ops sheet: the NOC intern\'s mood, weekly shift report and standing orders.'},
|
opsOpen:{args:[],doc:'Open the Ops sheet: the NOC intern\'s mood, weekly shift report and standing orders.'},
|
||||||
salesOpen:{args:[],doc:'Open the sales desk sheet: the three kinds of salesperson, who is at the desk and what they cost.'},
|
salesOpen:{args:[],doc:'Open the sales desk sheet: the three kinds of salesperson, who is at the desk and what they cost.'},
|
||||||
opsCity:{args:[['v','cityId',false]],doc:'Show one POP\'s standing-order exceptions in the Ops sheet.'},
|
opsCity:{args:[['v','cityId',false]],doc:'Show one POP\'s standing-order exceptions in the Ops sheet.'},
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,10 @@ function pieGovFix(g,s){const o=pieGovBlank(),day=s.day,ob=x=>x&&typeof x==='obj
|
||||||
function pieEximFix(s){const ccs=new Set(CITIES.map(c=>c.cc)),home=isCity(s.home)?CITY[s.home].cc:CITIES[0].cc;
|
function pieEximFix(s){const ccs=new Set(CITIES.map(c=>c.cc)),home=isCity(s.home)?CITY[s.home].cc:CITIES[0].cc;
|
||||||
for(const l of s.loans||[]){if(l.bank!=='exim')continue;const q=l.pie&&typeof l.pie==='object'?l.pie:{};
|
for(const l of s.loans||[]){if(l.bank!=='exim')continue;const q=l.pie&&typeof l.pie==='object'?l.pie:{};
|
||||||
l.pie={cc:ccs.has(q.cc)?q.cc:home,n:int(q.n,0,1e5,0),by:int(q.by,0,s.day+PIE_EXIM_BY,0),flown:int(q.flown,0,1e6,0),br:int(q.br,0,1e4,0)};l.covs=['pielaunch','piedish'];}}
|
l.pie={cc:ccs.has(q.cc)?q.cc:home,n:int(q.n,0,1e5,0),by:int(q.by,0,s.day+PIE_EXIM_BY,0),flown:int(q.flown,0,1e6,0),br:int(q.br,0,1e4,0)};l.covs=['pielaunch','piedish'];}}
|
||||||
/* ---- Pie Control: the Gov tab ---- */
|
/* ---- The bank's Government money section (it was Pie Control's Gov tab) ---- */
|
||||||
|
// Shown once there is a rocket company, or anything of the fund's or the Ex-Im bank's to show.
|
||||||
|
function pieGovShow(){const P=S&&S.pie;return !!(P&&pieOn()&&(P.co||P.gov.auc.length||P.gov.aw.length||P.gov.ex||pieEximLoan()));}
|
||||||
|
function pieGovBank(){return pieGovShow()?`<section class="bank-gov"><h3 id="bankGov" style="font-size:18px;margin-top:14px">🏛️ ${tr('pie_gov.section')}</h3><p class="meta">${tr('pie_gov.section_note')}</p>${pieGovHtml()}</section>`:'';}
|
||||||
function pieGovHtml(){const P=S.pie,G=P.gov,can=pieCanBuild();let h=`<div class="ops-o"><div class="nm">🏛️ ${tr('pie_gov.rdf')}</div><p class="meta">${tr('pie_gov.rdf_note',{y:PIE_RDF_TERM/360,p:pct(PIE_RDF_NEED),c:pct(PIE_RDF_CLAW)})}</p>`;
|
function pieGovHtml(){const P=S.pie,G=P.gov,can=pieCanBuild();let h=`<div class="ops-o"><div class="nm">🏛️ ${tr('pie_gov.rdf')}</div><p class="meta">${tr('pie_gov.rdf_note',{y:PIE_RDF_TERM/360,p:pct(PIE_RDF_NEED),c:pct(PIE_RDF_CLAW)})}</p>`;
|
||||||
for(const a of G.auc)h+=`<div class="kv"><span>${esc(CITY[a.city].name)} · ${tr('pie_gov.up_to',{mo:fmt$(a.ask)})}</span><b>${tr('pie_gov.closes',{d:dateStr(a.close)})}</b></div>
|
for(const a of G.auc)h+=`<div class="kv"><span>${esc(CITY[a.city].name)} · ${tr('pie_gov.up_to',{mo:fmt$(a.ask)})}</span><b>${tr('pie_gov.closes',{d:dateStr(a.close)})}</b></div>
|
||||||
<div class="ops-p">${PIE_RDF_BIDS.map(f=>btn(tr('pie_gov.ask',{mo:fmt$(Math.round(a.ask*f))}),'pieBid',{id:a.id,f},a.bid===f?'pink sm':'ghost sm',!can)).join('')}</div>`;
|
<div class="ops-p">${PIE_RDF_BIDS.map(f=>btn(tr('pie_gov.ask',{mo:fmt$(Math.round(a.ask*f))}),'pieBid',{id:a.id,f},a.bid===f?'pink sm':'ghost sm',!can)).join('')}</div>`;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// Pie in the Sky (60-features/99-pie-in-the-sky.js): every action checks pieCanBuild() for anything new.
|
// Pie in the Sky (60-features/99-pie-in-the-sky.js): every action checks pieCanBuild() for anything new.
|
||||||
const pieRe=()=>{after();if(!$('modal').hidden&&$('modal').className==='pie')pieModal();};
|
const pieRe=()=>{after();if(!$('modal').hidden&&$('modal').className==='pie')pieModal();if(!$('bankBox').hidden)renderBank();};
|
||||||
const pieNo=why=>{toast(why,'bad');sfx('err');pieRe();};
|
const pieNo=why=>{toast(why,'bad');sfx('err');pieRe();};
|
||||||
Object.assign(ACT,{
|
Object.assign(ACT,{
|
||||||
pieOpen:()=>{if(!S||pzOn()||!pieOn())return;UI.confirm=null;pieModal();},
|
pieOpen:()=>{if(!S||pzOn()||!pieOn())return;UI.confirm=null;pieModal();},
|
||||||
|
|
@ -28,13 +28,13 @@ Object.assign(ACT,{
|
||||||
pieSafe:()=>{const P=pieGet();if(!P||!P.co)return;P.safe=!P.safe;sfx('click');pieRe();},
|
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();},
|
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();},
|
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();},
|
||||||
// Government money (60-features/99-pie-subsidies.js): Pie Control's Gov tab, a bid, the Ex-Im loan.
|
// Government money (60-features/99-pie-subsidies.js): its section in the bank, a bid, the Ex-Im loan. It was Pie Control's Gov tab; the name stays for old toasts.
|
||||||
pieGovOpen:()=>{if(!S||pzOn()||!pieOn())return;UI.pieTab='gov';UI.confirm=null;pieModal();},
|
pieGovOpen:()=>{if(!S||pzOn()||!pieOn())return;if(!$('modal').hidden)closeModal();ACT.bank();const g=$('bankGov');if(g&&g.scrollIntoView)g.scrollIntoView({block:'start'});},
|
||||||
pieBid:({id,f})=>{const P=pieGet();f=+f;const a=P&&P.gov.auc.find(x=>x.id===id);if(!a||!PIE_RDF_BIDS.includes(f))return;if(!pieCanBuild())return pieNo(tr('pie.why_not_t1'));
|
pieBid:({id,f})=>{const P=pieGet();f=+f;const a=P&&P.gov.auc.find(x=>x.id===id);if(!a||!PIE_RDF_BIDS.includes(f))return;if(!pieCanBuild())return pieNo(tr('pie.why_not_t1'));
|
||||||
a.bid=f;toast(tr('pie_gov.t_bid',{city:esc(CITY[a.city].name),mo:fmt$(Math.round(a.ask*f)),d:dateStr(a.close)}),'good');sfx('click');pieRe();},
|
a.bid=f;toast(tr('pie_gov.t_bid',{city:esc(CITY[a.city].name),mo:fmt$(Math.round(a.ask*f)),d:dateStr(a.close)}),'good');sfx('click');pieRe();},
|
||||||
pieExim:()=>{const P=pieGet();if(!P||!P.co)return;if(!pieCanBuild())return pieNo(tr('pie.why_not_t1'));if(!pieEximTake())return pieRe();
|
pieExim:()=>{const P=pieGet();if(!P||!P.co)return;if(!pieCanBuild())return pieNo(tr('pie.why_not_t1'));if(!pieEximTake())return pieRe();
|
||||||
const l=pieEximLoan();toast(`<b>${tr('interface.amt_from_bank_has_landed',{amt:fmt$(l.amount),bank:esc(BANKS.exim.name)})}</b><br>${loanSummary(l)}`,'good');sfx('coin');pieRe();},
|
const l=pieEximLoan();toast(`<b>${tr('interface.amt_from_bank_has_landed',{amt:fmt$(l.amount),bank:esc(BANKS.exim.name)})}</b><br>${loanSummary(l)}`,'good');sfx('coin');pieRe();},
|
||||||
pieTab:({t})=>{if(!PIE_TABS.includes(t))return;UI.pieTab=t;pieModal();},
|
pieTab:({t})=>{if(t==='gov')return ACT.pieGovOpen();if(!PIE_TABS.includes(t)&&t!=='book'&&t!=='founder')return;UI.pieTab=pieTabOf(t);pieModal();},
|
||||||
pieHi:({id})=>{if(typeof id!=='string')return;sfx('click');pieHiSet(id);},
|
pieHi:({id})=>{if(typeof id!=='string')return;sfx('click');pieHiSet(id);},
|
||||||
pieCity:({v})=>{if(!S||!S.pops[v])return;UI.pieCity=v;pieModal();},
|
pieCity:({v})=>{if(!S||!S.pops[v])return;UI.pieCity=v;pieModal();},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,9 @@ function renderLeft(){checkLayer();
|
||||||
h+=`<div class="row"><div class="grow"><div class="nm">${esc(o.name)}</div><div class="meta">${esc(BIZ_T[o.type].l)} · ${CITY[o.city].name}${o.city2?' ⇄ '+CITY[o.city2].name:''} · <b>${bTerms(o)}</b> · ${tr('ui.n_d_left',{n:o.exp-S.day})}${(o.reqs||[]).length?` · ${trn('hud_and_panels.n_special_requirement',o.reqs.length)}`:''}</div>${o.refN?`<div class="meta">${tr('lifecycle.referred_by',{name:esc(o.refN)})}</div>`:''}${spotWhy(o)}${bRisk(o)}${reqList(o)}
|
h+=`<div class="row"><div class="grow"><div class="nm">${esc(o.name)}</div><div class="meta">${esc(BIZ_T[o.type].l)} · ${CITY[o.city].name}${o.city2?' ⇄ '+CITY[o.city2].name:''} · <b>${bTerms(o)}</b> · ${tr('ui.n_d_left',{n:o.exp-S.day})}${(o.reqs||[]).length?` · ${trn('hud_and_panels.n_special_requirement',o.reqs.length)}`:''}</div>${o.refN?`<div class="meta">${tr('lifecycle.referred_by',{name:esc(o.refN)})}</div>`:''}${spotWhy(o)}${bRisk(o)}${reqList(o)}
|
||||||
<div class="btns">${has?btn(tr('common.accept'),'accept',{id:o.id},'green sm'):btn(tr('common.go_there'),'focusCity',{city:bCities(o).find(c=>!S.pops[c])},'ghost sm')}${btn(tr('common.decline'),'decline',{id:o.id},'ghost sm')}</div>${has?'':`<div class="why">${tr('hud_and_panels.needs_a_pop_in_cities',{cities:bCities(o).filter(x=>!S.pops[x]).map(x=>CITY[x].name).join(', ')})}</div>`}</div></div>`;}
|
<div class="btns">${has?btn(tr('common.accept'),'accept',{id:o.id},'green sm'):btn(tr('common.go_there'),'focusCity',{city:bCities(o).find(c=>!S.pops[c])},'ghost sm')}${btn(tr('common.decline'),'decline',{id:o.id},'ghost sm')}</div>${has?'':`<div class="why">${tr('hud_and_panels.needs_a_pop_in_cities',{cities:bCities(o).filter(x=>!S.pops[x]).map(x=>CITY[x].name).join(', ')})}</div>`}</div></div>`;}
|
||||||
}else if(UI.left==='noc'){
|
}else if(UI.left==='noc'){
|
||||||
h+=`<div class="btns" style="margin-bottom:8px">${btn(tr('hud_and_panels.open_noc_dashboard'),'dash',{},'pink')}${btn(tr('common.connections'),'connOpen',{},'')}${btn(tr('common.traceroute'),'trace',{},'')}${btn(`⚙️ ${tr('routing.routing_and_ddos')}${S.te&&!coreTE()?'<span class="cnt red dot" aria-hidden="true"></span>':''}`,'routingOpen',{},'')}</div>`;
|
h+=`<div class="btns" style="margin-bottom:8px">${btn(tr('hud_and_panels.open_noc_dashboard'),'dash',{},'pink')}${pieNocBtn()}${btn(`⚙️ ${tr('routing.routing_and_ddos')}${S.te&&!coreTE()?'<span class="cnt red dot" aria-hidden="true"></span>':''}`,'routingOpen',{},'')}</div>`;
|
||||||
h+=`<p class="lead">${tr('hud_and_panels.your_network_operations_center_every')}</p>`;
|
h+=`<p class="lead">${tr('hud_and_panels.your_network_operations_center_every')}</p>`;
|
||||||
h+=opsCard()+pieCard()+mkCard()+ddosPanel();
|
h+=opsCard()+pieSpatCard()+mkCard()+ddosPanel();
|
||||||
// Incidents come first, the ones you can fix with one click at the top (#63): no scrolling past hot ports to replace an optic.
|
// Incidents come first, the ones you can fix with one click at the top (#63): no scrolling past hot ports to replace an optic.
|
||||||
for(const i of S.inc.filter(i=>i.type!=='ddos').sort((a,b)=>(b.cost?1:0)-(a.cost?1:0)||(b.impact||0)-(a.impact||0))){h+=`<div class="inc"><div class="nm">${incTitle(i.type)}</div><div class="meta">${esc(i.msg)}</div><div class="meta">${shipSea(i)?'🚢 '+esc(shipStatus(i)):trn('hud_and_panels.auto_fix_in_n_day',i.until-S.day)}${i.impact?` · ${tr('hud_and_panels.g_lost',{g:fmtG(i.impact)})}`:''}</div>${i.cost?`<div class="btns">${btn(`${esc(i.fix||tr('common.rush_repair'))} ${fmt$(i.cost)}`,'fixInc',{id:i.id},'red sm',S.cash<i.cost)}</div>`:''}</div>`;}
|
for(const i of S.inc.filter(i=>i.type!=='ddos').sort((a,b)=>(b.cost?1:0)-(a.cost?1:0)||(b.impact||0)-(a.impact||0))){h+=`<div class="inc"><div class="nm">${incTitle(i.type)}</div><div class="meta">${esc(i.msg)}</div><div class="meta">${shipSea(i)?'🚢 '+esc(shipStatus(i)):trn('hud_and_panels.auto_fix_in_n_day',i.until-S.day)}${i.impact?` · ${tr('hud_and_panels.g_lost',{g:fmtG(i.impact)})}`:''}</div>${i.cost?`<div class="btns">${btn(`${esc(i.fix||tr('common.rush_repair'))} ${fmt$(i.cost)}`,'fixInc',{id:i.id},'red sm',S.cash<i.cost)}</div>`:''}</div>`;}
|
||||||
h+=logSection();UI.logSeen=Date.now();
|
h+=logSection();UI.logSeen=Date.now();
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
/* ---------- Routing & DDoS: one modal for the network-wide settings ----------
|
/* ---------- Routing & DDoS: one modal for the network-wide settings ----------
|
||||||
The backbone, Auto-TE and DDoS automation used to sit at the bottom of the NOC tab, below every incident and
|
The backbone, Auto-TE and DDoS automation used to sit at the bottom of the NOC tab, below every incident and
|
||||||
the log, where nobody found them. A button at the top of the NOC tab opens them here. */
|
the log, where nobody found them. A button at the top of the NOC tab opens them here, with the traceroute. */
|
||||||
// Auto-TE: paused, installed or for sale.
|
// Auto-TE: paused, installed or for sale.
|
||||||
function tePanel(){
|
function tePanel(){
|
||||||
return S.te&&!coreTE()?`<div class="kv"><span>Auto-TE</span><b>${tr('core.paused')}</b></div><p class="why">${tr('core.auto_te_is_paused_it_needs')}</p>`:S.te?`<div class="kv"><span>Auto-TE</span><b>${S.te.on?tr('hud_and_panels.on_moving_g_onto_alternate_paths',{g:fmtG(R.teMoved||0)}):tr('common.off')}</b></div><div class="btns">${btn(S.te.on?tr('hud_and_panels.turn_auto_te_off'):tr('hud_and_panels.turn_auto_te_on'),'teToggle',{},'ghost sm')}${btn(S.te.script?tr('common.edit_routescript'):tr('hud_and_panels.write_a_routescript'),'teEdit',{},'pink sm')}</div>${S.te.script?`<p class="meta" style="margin:2px 0 6px">RouteScript: ${teRules()?tr('hud_and_panels.n_rules_live',{n:teRules().n}):S.te.on?tr('hud_and_panels.has_errors_not_running'):tr('common.controller_off')}${R.teBlack?` · ${tr('hud_and_panels.blackholing_g',{g:fmtG(R.teBlack)})}`:''}</p>`:''}`
|
return S.te&&!coreTE()?`<div class="kv"><span>Auto-TE</span><b>${tr('core.paused')}</b></div><p class="why">${tr('core.auto_te_is_paused_it_needs')}</p>`:S.te?`<div class="kv"><span>Auto-TE</span><b>${S.te.on?tr('hud_and_panels.on_moving_g_onto_alternate_paths',{g:fmtG(R.teMoved||0)}):tr('common.off')}</b></div><div class="btns">${btn(S.te.on?tr('hud_and_panels.turn_auto_te_off'):tr('hud_and_panels.turn_auto_te_on'),'teToggle',{},'ghost sm')}${btn(S.te.script?tr('common.edit_routescript'):tr('hud_and_panels.write_a_routescript'),'teEdit',{},'pink sm')}</div>${S.te.script?`<p class="meta" style="margin:2px 0 6px">RouteScript: ${teRules()?tr('hud_and_panels.n_rules_live',{n:teRules().n}):S.te.on?tr('hud_and_panels.has_errors_not_running'):tr('common.controller_off')}${R.teBlack?` · ${tr('hud_and_panels.blackholing_g',{g:fmtG(R.teBlack)})}`:''}</p>`:''}`
|
||||||
:`<div class="kv"><span>Auto-TE</span><b>${lvl()<3?tr('hud_and_panels.unlocks_at_customer_level_3'):tr('common.not_installed')}</b></div><p class="meta" style="margin:2px 0 6px">${tr('hud_and_panels.traffic_takes_the_shortest_path_even')}</p>${coreTE()?'':`<p class="why">${tr('core.auto_te_needs_an_rsvp_te_or')}</p>`}<div class="btns">${btn(tr('hud_and_panels.install_auto_te_cost_mo_mo',{cost:fmt$(TE_COST),mo:fmt$(TE_MO)}),'buyTE',{},'pink sm',lvl()<3||S.cash<TE_COST||!coreTE())}</div>`;}
|
:`<div class="kv"><span>Auto-TE</span><b>${lvl()<3?tr('hud_and_panels.unlocks_at_customer_level_3'):tr('common.not_installed')}</b></div><p class="meta" style="margin:2px 0 6px">${tr('hud_and_panels.traffic_takes_the_shortest_path_even')}</p>${coreTE()?'':`<p class="why">${tr('core.auto_te_needs_an_rsvp_te_or')}</p>`}<div class="btns">${btn(tr('hud_and_panels.install_auto_te_cost_mo_mo',{cost:fmt$(TE_COST),mo:fmt$(TE_MO)}),'buyTE',{},'pink sm',lvl()<3||S.cash<TE_COST||!coreTE())}</div>`;}
|
||||||
// What the modal holds, without its title (scripts/lib/fuzz-page.js reads its buttons too).
|
// What the modal holds, without its title (scripts/lib/fuzz-page.js reads its buttons too).
|
||||||
function routingBody(){return corePanel()+`<h3 style="font-size:15px;margin:8px 0 4px">${tr('common.traffic_engineering')}</h3>${tePanel()}`
|
// Traceroute opens its own modal from here: it explains the routing these settings shape.
|
||||||
|
function routingBody(){return `<div class="row rt-trace"><div class="grow"><div class="nm">🔎 ${tr('common.traceroute')}</div><div class="meta">${tr('routing.trace_note')}</div></div>${btn(tr('routing.trace_run'),'trace',{},'sm')}</div>`+corePanel()+`<h3 style="font-size:15px;margin:8px 0 4px">${tr('common.traffic_engineering')}</h3>${tePanel()}`
|
||||||
+`<h3 style="font-size:15px;margin:8px 0 4px">${tr('routing.ddos_defence')}</h3>${ddosSettings()}`;}
|
+`<h3 style="font-size:15px;margin:8px 0 4px">${tr('routing.ddos_defence')}</h3>${ddosSettings()}`;}
|
||||||
function routingModal(){if(!S)return;const card=$('modalCard'),open=!$('modal').hidden&&card.querySelector('[data-routing]'),st=open?card.scrollTop:0;
|
function routingModal(){if(!S)return;const card=$('modalCard'),open=!$('modal').hidden&&card.querySelector('[data-routing]'),st=open?card.scrollTop:0;
|
||||||
let h=`<div data-routing style="display:flex;align-items:center"><div><div class="eyebrow">NOC</div><h2 style="font-size:26px">${tr('routing.routing_and_ddos')}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>
|
let h=`<div data-routing style="display:flex;align-items:center"><div><div class="eyebrow">NOC</div><h2 style="font-size:26px">${tr('routing.routing_and_ddos')}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,29 @@
|
||||||
// Pie Control: a plain modal (a bottom sheet on phones) for the rocket company. Reached from the NOC tab (pieCard()).
|
// Pie Control: a plain modal (a bottom sheet on phones) for the rocket company. Reached from the NOC tab (pieNocBtn()).
|
||||||
let PIE_CCN=null;
|
let PIE_CCN=null;
|
||||||
function pieLicCountry(cc){try{PIE_CCN=PIE_CCN&&PIE_CCN.l===LANG?PIE_CCN:{l:LANG,d:new Intl.DisplayNames([LANG],{type:'region'})};return PIE_CCN.d.of(cc)||cc;}catch(e){return cc;}}
|
function pieLicCountry(cc){try{PIE_CCN=PIE_CCN&&PIE_CCN.l===LANG?PIE_CCN:{l:LANG,d:new Intl.DisplayNames([LANG],{type:'region'})};return PIE_CCN.d.of(cc)||cc;}catch(e){return cc;}}
|
||||||
function pieCard(){if(!pieOn())return '';const P=S.pie;
|
// Pie Control sits in the NOC tab's top row once the rocket company is unlocked; a spat waiting for an answer keeps its own card lower down.
|
||||||
return `<div class="ops-card pie-card"><div class="nm">🥧 ${tr('pie.pie_in_the_sky')}</div><div class="meta">${P&&P.co?esc(pieCoName())+' · '+tr('pie.card_live',{n:Object.keys(CRUSTS).reduce((a,id)=>a+pieLive(id),0),q:P.q.length}):tr('pie.card_pitch')}</div>
|
function pieNocBtn(){if(!pieOn())return '';return btn(`🥧 ${tr('pie.open_pie_control')}`,'pieOpen',{},'');}
|
||||||
${pieSpatCard()}<div class="btns">${btn(tr('pie.open_pie_control'),'pieOpen',{},P&&P.co?'sm':'pink sm')}</div></div>`;}
|
const PIE_TABS=['traffic','co','fly','dish'];
|
||||||
const PIE_TABS=['traffic','co','fly','dish','gov','book'];
|
// The tab UI.pieTab names, or the one that took its place: Gov moved to the bank, the Founder's feed into Company.
|
||||||
|
const pieTabOf=t=>PIE_TABS.includes(t)?t:t==='book'||t==='founder'?'co':'traffic';
|
||||||
|
const PIE_FEED_TOP=3;
|
||||||
const pieTag=(t,on)=>`<span class="tag ${on?'open':'selective'}">${t}</span>`;
|
const pieTag=(t,on)=>`<span class="tag ${on?'open':'selective'}">${t}</span>`;
|
||||||
function pieModal(){if(!S||!pieOn())return;const P=S.pie||pieBlank(S.day),can=pieCanBuild(),T=PIE_TABS.includes(UI.pieTab)?UI.pieTab:'traffic';
|
function pieModal(){if(!S||!pieOn())return;const P=S.pie||pieBlank(S.day),can=pieCanBuild(),T=UI.pieTab=pieTabOf(UI.pieTab);
|
||||||
let h=`<div style="display:flex;align-items:center"><div class="grow"><div class="eyebrow">${tr('pie.pie_in_the_sky')}</div><h2 style="font-size:24px">${P.co?esc(pieCoName()):tr('pie.pie_control')}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>`;
|
let h=`<div style="display:flex;align-items:center"><div class="grow"><div class="eyebrow">${tr('pie.pie_in_the_sky')}</div><h2 style="font-size:24px">${P.co?esc(pieCoName()):tr('pie.pie_control')}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>`;
|
||||||
if(!can)h+=`<p class="why">${tr('pie.why_not_t1')}</p>`;
|
if(!can)h+=`<p class="why">${tr('pie.why_not_t1')}</p>`;
|
||||||
if(pieSand())h+=`<p class="note">${tr('pie.sandbox_note',{amt:fmt$(P.book.wouldHave)})}</p>`;
|
if(pieSand())h+=`<p class="note">${tr('pie.sandbox_note',{amt:fmt$(P.book.wouldHave)})}</p>`;
|
||||||
if(!P.co){h+=`<p class="lead">${tr('pie.found_pitch')}</p><div class="btns">${btn(tr('pie.found_price',{price:fmt$(piePrice(PIE_CO)),mo:fmt$(PIE_CO_MO)}),'pieFound',{},'pink',!can)}</div>`;openModal(h,'pie');return;}
|
if(!P.co){h+=`<p class="lead">${tr('pie.found_pitch')}</p><div class="btns">${btn(tr('pie.found_price',{price:fmt$(piePrice(PIE_CO)),mo:fmt$(PIE_CO_MO)}),'pieFound',{},'pink',!can)}</div>`;openModal(h,'pie');return;}
|
||||||
const tab=(k,l)=>`<button class="b sm ${T===k?'pink':'ghost'}" data-act="pieTab" data-args='{"t":"${k}"}' aria-pressed="${T===k}">${l}</button>`;
|
const tab=(k,l)=>`<button class="${T===k?'on':''}" data-act="pieTab" data-args='{"t":"${k}"}' aria-pressed="${T===k}">${l}</button>`;
|
||||||
h+=pieGlobeHtml()+pieSpatCard();
|
h+=pieGlobeHtml()+pieSpatCard();
|
||||||
h+=`<div class="seg" style="margin:6px 0 10px">${tab('traffic',tr('pie_traffic.tab'))}${tab('co',tr('pie.tab_company'))}${tab('fly',tr('pie.tab_launch'))}${tab('dish',tr('pie.tab_dishes'))}${tab('gov',tr('pie_gov.tab'))}${tab('book',tr('pie.tab_founder'))}</div>`;
|
h+=`<div class="segc pie-tabs">${tab('traffic',tr('pie_traffic.tab'))}${tab('co',tr('pie.tab_company'))}${tab('fly',tr('pie.tab_launch'))}${tab('dish',tr('pie.tab_dishes'))}</div>`;
|
||||||
const cities=Object.keys(S.pops).sort((a,b)=>CITY[a].name.localeCompare(CITY[b].name)),c=S.pops[UI.pieCity]?UI.pieCity:cities[0];
|
const cities=Object.keys(S.pops).sort((a,b)=>CITY[a].name.localeCompare(CITY[b].name)),c=S.pops[UI.pieCity]?UI.pieCity:cities[0];
|
||||||
const sel=`<div class="trsel"><label>${tr('common.your_pop')}<select data-chg="pieCity">${cities.map(x=>`<option value="${x}"${x===c?' selected':''}>${esc(CITY[x].name)}</option>`).join('')}</select></label></div>`;
|
const sel=`<div class="trsel"><label>${tr('common.your_pop')}<select data-chg="pieCity">${cities.map(x=>`<option value="${x}"${x===c?' selected':''}>${esc(CITY[x].name)}</option>`).join('')}</select></label></div>`;
|
||||||
if(T==='traffic')h+=pieTrafficHtml();
|
if(T==='traffic')h+=pieTrafficHtml();
|
||||||
else if(T==='co'){
|
else if(T==='co'){
|
||||||
h+=`<div class="kv"><span>${tr('pie.running_costs')}</span><b>${tr('common.price_mo',{price:fmt$(pieMo())})}</b></div>`;
|
h+=`<div class="kv"><span>${tr('pie.running_costs')}</span><b>${tr('common.price_mo',{price:fmt$(pieMo())})}</b></div>`;
|
||||||
|
h+=`<div class="kv"><span>${tr('pie.spent')}</span><b>${fmt$(P.book.spent)}</b></div><div class="kv"><span>${tr('pie.earned')}</span><b>${fmt$(P.book.earned)}</b></div>`;
|
||||||
|
if(R&&R.pie)h+=`<p class="meta">${tr('pie.earned_mo',{amt:fmt$(R.pie.rev),n:R.pie.isl.length})}</p>`;
|
||||||
|
if(pieSand())h+=`<div class="kv"><span>${tr('pie.would_have')}</span><b>${fmt$(P.book.wouldHave)}</b></div>`;
|
||||||
h+=`<div class="ops-o${P.fac?' on':''}"><div class="nm">🏭 ${tr('pie.factory')}</div><div class="meta">${P.fac?tr('pie.factory_stock',{n:Math.floor(P.stock),m:PIE_FAC_MONTH}):tr('pie.factory_pitch',{m:PIE_FAC_MONTH,mo:fmt$(PIE_FAC_MO)})}</div>${P.fac?'':`<div class="btns">${btn(tr('pie.build_price',{price:fmt$(piePrice(PIE_FAC))}),'pieFactory',{},'pink sm',!can)}</div>`}</div>`;
|
h+=`<div class="ops-o${P.fac?' on':''}"><div class="nm">🏭 ${tr('pie.factory')}</div><div class="meta">${P.fac?tr('pie.factory_stock',{n:Math.floor(P.stock),m:PIE_FAC_MONTH}):tr('pie.factory_pitch',{m:PIE_FAC_MONTH,mo:fmt$(PIE_FAC_MO)})}</div>${P.fac?'':`<div class="btns">${btn(tr('pie.build_price',{price:fmt$(piePrice(PIE_FAC))}),'pieFactory',{},'pink sm',!can)}</div>`}</div>`;
|
||||||
h+=`<div class="ops-o"><div class="nm">🧪 ${tr('pie.rd')}</div>${Object.keys(PIE_RD).map(k=>`<div class="kv"><span>${tr(PIE_RD[k].n)}</span>${P.rd[k]?`<b>✓</b>`:btn(fmt$(piePrice(PIE_RD[k].cost)),'pieRd',{k},'ghost sm',!can)}</div>`).join('')}
|
h+=`<div class="ops-o"><div class="nm">🧪 ${tr('pie.rd')}</div>${Object.keys(PIE_RD).map(k=>`<div class="kv"><span>${tr(PIE_RD[k].n)}</span>${P.rd[k]?`<b>✓</b>`:btn(fmt$(piePrice(PIE_RD[k].cost)),'pieRd',{k},'ghost sm',!can)}</div>`).join('')}
|
||||||
${P.rd.heavy?`<p class="meta">${tr('pie.heavy_tests',{n:P.rd.heavyTests,max:PIE_HEAVY_TESTS})}</p>`:''}</div>`;
|
${P.rd.heavy?`<p class="meta">${tr('pie.heavy_tests',{n:P.rd.heavyTests,max:PIE_HEAVY_TESTS})}</p>`:''}</div>`;
|
||||||
|
|
@ -27,6 +32,7 @@ function pieModal(){if(!S||!pieOn())return;const P=S.pie||pieBlank(S.day),can=pi
|
||||||
h+=`<div class="ops-o"><div class="nm">🏷️ ${tr('pie.name')}</div><div class="btns">${btn(tr('pie.next_name'),'pieName',{},'ghost sm')}</div>
|
h+=`<div class="ops-o"><div class="nm">🏷️ ${tr('pie.name')}</div><div class="btns">${btn(tr('pie.next_name'),'pieName',{},'ghost sm')}</div>
|
||||||
<div class="network-name" style="margin-top:6px"><input class="t" id="pieNm" maxlength="40" value="${esc(pieCoName())}" autocomplete="off" aria-label="${esc(tr('pie.name'))}"></div><div class="btns">${btn(tr('slots.rename'),'pieRename',{},'ghost sm')}</div></div>`;
|
<div class="network-name" style="margin-top:6px"><input class="t" id="pieNm" maxlength="40" value="${esc(pieCoName())}" autocomplete="off" aria-label="${esc(tr('pie.name'))}"></div><div class="btns">${btn(tr('slots.rename'),'pieRename',{},'ghost sm')}</div></div>`;
|
||||||
h+=`<div class="btns">${btn(P.safe?tr('pie.safe_on'):tr('pie.safe_off'),'pieSafe',{},P.safe?'red sm':'ghost sm')}</div><p class="meta">${tr('pie.safe_note')}</p>`;
|
h+=`<div class="btns">${btn(P.safe?tr('pie.safe_on'):tr('pie.safe_off'),'pieSafe',{},P.safe?'red sm':'ghost sm')}</div><p class="meta">${tr('pie.safe_note')}</p>`;
|
||||||
|
h+=pieFeedHtml(P.founder);
|
||||||
}else if(T==='fly'){
|
}else if(T==='fly'){
|
||||||
let nudge=false;
|
let nudge=false;
|
||||||
h+=Object.keys(CRUSTS).map(id=>{const C=CRUSTS[id],cv=pieCov(id);return `<div class="ops-o${pieUp(id)?' on':''}"><div class="nm">${tr(C.n)} ${pieTag(pieBaked(id)?tr('pie.baked'):tr('pie.half_baked'),pieBaked(id))}</div>
|
h+=Object.keys(CRUSTS).map(id=>{const C=CRUSTS[id],cv=pieCov(id);return `<div class="ops-o${pieUp(id)?' on':''}"><div class="nm">${tr(C.n)} ${pieTag(pieBaked(id)?tr('pie.baked'):tr('pie.half_baked'),pieBaked(id))}</div>
|
||||||
|
|
@ -51,12 +57,10 @@ function pieModal(){if(!S||!pieOn())return;const P=S.pie||pieBlank(S.day),can=pi
|
||||||
const ccs=[...new Set([...P.dishes.map(x=>CITY[x.city].cc),CITY[c].cc,...Object.keys(P.lic)])];
|
const ccs=[...new Set([...P.dishes.map(x=>CITY[x.city].cc),CITY[c].cc,...Object.keys(P.lic)])];
|
||||||
h+=`<h3 style="font-size:15px;margin:10px 0 4px">${tr('pie.landing_rights')}</h3>`+ccs.map(cc=>{const l=P.lic[cc],ok=pieLicOk(cc);
|
h+=`<h3 style="font-size:15px;margin:10px 0 4px">${tr('pie.landing_rights')}</h3>`+ccs.map(cc=>{const l=P.lic[cc],ok=pieLicOk(cc);
|
||||||
return `<div class="kv"><span>${esc(pieLicCountry(cc))}${ok?' · '+tr('pie.lic_until',{d:dateStr(l.until)}):l&&l.state!=='ok'&&l.until>S.day?' · '+tr('pie.lic_refused'):''}</span>${btn((ok?tr('pie.renew'):tr('pie.buy'))+' '+fmt$(pieLicPrice(cc)),'pieLic',{cc},'ghost sm')}</div>`;}).join('');
|
return `<div class="kv"><span>${esc(pieLicCountry(cc))}${ok?' · '+tr('pie.lic_until',{d:dateStr(l.until)}):l&&l.state!=='ok'&&l.until>S.day?' · '+tr('pie.lic_refused'):''}</span>${btn((ok?tr('pie.renew'):tr('pie.buy'))+' '+fmt$(pieLicPrice(cc)),'pieLic',{cc},'ghost sm')}</div>`;}).join('');
|
||||||
}else if(T==='gov')h+=pieGovHtml();
|
|
||||||
else{
|
|
||||||
const F=P.founder;h+=`<div class="kv"><span>${tr('pie.promises')}</span><b>${tr('pie.promises_line',{n:F.promises,b:F.broken})}</b></div>`;
|
|
||||||
h+=`<div class="kv"><span>${tr('pie.spent')}</span><b>${fmt$(P.book.spent)}</b></div><div class="kv"><span>${tr('pie.earned')}</span><b>${fmt$(P.book.earned)}</b></div>`;
|
|
||||||
if(R&&R.pie)h+=`<p class="meta">${tr('pie.earned_mo',{amt:fmt$(R.pie.rev),n:R.pie.isl.length})}</p>`;
|
|
||||||
if(pieSand())h+=`<div class="kv"><span>${tr('pie.would_have')}</span><b>${fmt$(P.book.wouldHave)}</b></div>`;
|
|
||||||
h+=`<h3 style="font-size:15px;margin:10px 0 4px">${tr('pie.founder_feed')}</h3>`+(F.posts.length?F.posts.map(p=>`<div class="ops-rep"><div class="eyebrow">${esc(dateStr(p.d))}</div><div>${esc(pieFpText(p))}</div></div>`).join(''):`<p class="meta">${tr('pie.feed_empty')}</p>`);
|
|
||||||
}
|
}
|
||||||
openModal(h,'pie');{const cv=document.querySelector('#modal .pgcv');if(cv)pieGlobeOpen(cv,pieGlobeData);}}
|
openModal(h,'pie');{const cv=document.querySelector('#modal .pgcv');if(cv)pieGlobeOpen(cv,pieGlobeData);}}
|
||||||
|
// The Founder's posts are flavour: the newest few at the bottom of the Company tab, the older ones folded away.
|
||||||
|
function pieFeedHtml(F){const post=p=>`<div class="ops-rep"><div class="eyebrow">${esc(dateStr(p.d))}</div><div>${esc(pieFpText(p))}</div></div>`,top=F.posts.slice(0,PIE_FEED_TOP),more=F.posts.slice(PIE_FEED_TOP);
|
||||||
|
return `<div class="pie-feed"><h3>${tr('pie.founder_feed')}</h3><div class="kv"><span>${tr('pie.promises')}</span><b>${tr('pie.promises_line',{n:F.promises,b:F.broken})}</b></div>`
|
||||||
|
+(top.length?top.map(post).join(''):`<p class="meta">${tr('pie.feed_empty')}</p>`)
|
||||||
|
+(more.length?`<details><summary>${trn('pie.feed_older',more.length)}</summary>${more.map(post).join('')}</details>`:'')+'</div>';}
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,6 @@ function renderBank(){
|
||||||
${B.equity?`<div class="meta">${tr('bank.taking_pct_of_your_revenue_every',{pct:pct(l.share)})}</div>`:`<div class="kv"><span>${tr('common.still_owed')}</span><b>${fmt$(l.bal)}</b></div><div class="bar me"><i style="width:${Math.min(100,(1-l.bal/l.amount)*100)}%"></i></div><div class="meta">${loanLine(l)}</div>`}
|
${B.equity?`<div class="meta">${tr('bank.taking_pct_of_your_revenue_every',{pct:pct(l.share)})}</div>`:`<div class="kv"><span>${tr('common.still_owed')}</span><b>${fmt$(l.bal)}</b></div><div class="bar me"><i style="width:${Math.min(100,(1-l.bal/l.amount)*100)}%"></i></div><div class="meta">${loanLine(l)}</div>`}
|
||||||
${covList(l)}${l.breach>=1?`<div class="why">${trn('bank.condition_broken_for_n_day',l.breach)} ${l.breach<10?tr('bank.penalty_in_n_days',{n:10-l.breach}):tr('bank.penalties_are_running')}</div>`:''}
|
${covList(l)}${l.breach>=1?`<div class="why">${trn('bank.condition_broken_for_n_day',l.breach)} ${l.breach<10?tr('bank.penalty_in_n_days',{n:10-l.breach}):tr('bank.penalties_are_running')}</div>`:''}
|
||||||
<div class="btns" style="margin-top:6px">${btn(UI.confirm===l.id?tr('bank.really_pay_price',{price:fmt$(cost)}):B.equity?tr('bank.buy_them_out_price',{price:fmt$(cost)}):tr('bank.repay_early_price_incl_2_fee',{price:fmt$(cost)}),'repayLoan',{id:l.id},UI.confirm===l.id?'red sm':'sm',S.cash<cost)}</div></div></div>`;}
|
<div class="btns" style="margin-top:6px">${btn(UI.confirm===l.id?tr('bank.really_pay_price',{price:fmt$(cost)}):B.equity?tr('bank.buy_them_out_price',{price:fmt$(cost)}):tr('bank.repay_early_price_incl_2_fee',{price:fmt$(cost)}),'repayLoan',{id:l.id},UI.confirm===l.id?'red sm':'sm',S.cash<cost)}</div></div></div>`;}
|
||||||
|
h+=pieGovBank();
|
||||||
if(h!==UI._bh){UI._bh=h;$('bankCard').innerHTML=h;}
|
if(h!==UI._bh){UI._bh=h;$('bankCard').innerHTML=h;}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3395,8 +3395,6 @@
|
||||||
"pie.build_pad_price":"Build a launch pad in {city} {price}",
|
"pie.build_pad_price":"Build a launch pad in {city} {price}",
|
||||||
"pie.build_price":"Build {price}",
|
"pie.build_price":"Build {price}",
|
||||||
"pie.buy":"Buy",
|
"pie.buy":"Buy",
|
||||||
"pie.card_live":"{n} pies in orbit · {q} launches queued",
|
|
||||||
"pie.card_pitch":"Found a rocket company and put your own internet in the sky. It costs a fortune.",
|
|
||||||
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
"pie.co_compensation_dynamics":"Compensation Dynamics",
|
||||||
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
"pie.co_escape_velocity_partners":"Escape Velocity Partners",
|
||||||
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
"pie.co_gravity_is_optional":"Gravity Is Optional",
|
||||||
|
|
@ -3419,6 +3417,7 @@
|
||||||
"pie.factory_pitch":"Bakes {m} pies a month, for {mo} a month.",
|
"pie.factory_pitch":"Bakes {m} pies a month, for {mo} a month.",
|
||||||
"pie.factory_stock":"{n} pies on the shelf · {m} a month",
|
"pie.factory_stock":"{n} pies on the shelf · {m} a month",
|
||||||
"pie.feed_empty":"The Founder has not posted yet. Give it a minute.",
|
"pie.feed_empty":"The Founder has not posted yet. Give it a minute.",
|
||||||
|
"pie.feed_older":{"one":"{n} older post","other":"{n} older posts"},
|
||||||
"pie.found_pitch":"Your own constellation: rockets, thousands of satellites (pies) in shells (crusts), and dishes on the ground. Nothing you have built so far costs this much.",
|
"pie.found_pitch":"Your own constellation: rockets, thousands of satellites (pies) in shells (crusts), and dishes on the ground. Nothing you have built so far costs this much.",
|
||||||
"pie.found_price":"Found the company {price} · {mo}/mo",
|
"pie.found_price":"Found the company {price} · {mo}/mo",
|
||||||
"pie.founder_feed":"The Founder posts",
|
"pie.founder_feed":"The Founder posts",
|
||||||
|
|
@ -3496,7 +3495,6 @@
|
||||||
"pie.t_test":"Test flight {n} exploded, as test flights do. {left} to go.",
|
"pie.t_test":"Test flight {n} exploded, as test flights do. {left} to go.",
|
||||||
"pie.tab_company":"Company",
|
"pie.tab_company":"Company",
|
||||||
"pie.tab_dishes":"Dishes",
|
"pie.tab_dishes":"Dishes",
|
||||||
"pie.tab_founder":"Founder",
|
|
||||||
"pie.tab_launch":"Launch",
|
"pie.tab_launch":"Launch",
|
||||||
"pie.test_flight":"test flight",
|
"pie.test_flight":"test flight",
|
||||||
"pie.unlocked_body":"You are a Tier 1. Now you can found a rocket company and bake your own internet in orbit. Find it in the NOC tab.",
|
"pie.unlocked_body":"You are a Tier 1. Now you can found a rocket company and bake your own internet in orbit. Find it in the NOC tab.",
|
||||||
|
|
@ -3537,6 +3535,8 @@
|
||||||
"pie_gov.rival_coop":"Co-op de Ville",
|
"pie_gov.rival_coop":"Co-op de Ville",
|
||||||
"pie_gov.rival_hugsnet":"HugsNet",
|
"pie_gov.rival_hugsnet":"HugsNet",
|
||||||
"pie_gov.rival_viasad":"ViaSad",
|
"pie_gov.rival_viasad":"ViaSad",
|
||||||
|
"pie_gov.section":"Government money",
|
||||||
|
"pie_gov.section_note":"Subsidies and cheap loans for your rocket company. Every one of them comes with strings.",
|
||||||
"pie_gov.served":"{p} served",
|
"pie_gov.served":"{p} served",
|
||||||
"pie_gov.t_auction":"Support for {city}: up to {mo}/mo for {y} years. Bids close {d}.",
|
"pie_gov.t_auction":"Support for {city}: up to {mo}/mo for {y} years. Bids close {d}.",
|
||||||
"pie_gov.t_auction_title":"Rural Digital Pie Fund auction",
|
"pie_gov.t_auction_title":"Rural Digital Pie Fund auction",
|
||||||
|
|
@ -3550,7 +3550,6 @@
|
||||||
"pie_gov.t_revoked":"Award for {city} revoked: {p} served, the fund wants {need}. It claws back {amt}.",
|
"pie_gov.t_revoked":"Award for {city} revoked: {p} served, the fund wants {need}. It claws back {amt}.",
|
||||||
"pie_gov.t_warn":"The fund is watching {city}: {p} served last month, it wants {need}. Another month like that and the award is revoked.",
|
"pie_gov.t_warn":"The fund is watching {city}: {p} served last month, it wants {need}. Another month like that and the award is revoked.",
|
||||||
"pie_gov.t_won":"You won {city}: {mo}/mo. Have it {p} served by {d}.",
|
"pie_gov.t_won":"You won {city}: {mo}/mo. Have it {p} served by {d}.",
|
||||||
"pie_gov.tab":"Gov",
|
|
||||||
"pie_gov.until":"Paid until {d}",
|
"pie_gov.until":"Paid until {d}",
|
||||||
"pie_gov.up_to":"up to {mo}/mo",
|
"pie_gov.up_to":"up to {mo}/mo",
|
||||||
"pie_gov.warned":"one more bad month and it is revoked",
|
"pie_gov.warned":"one more bad month and it is revoked",
|
||||||
|
|
@ -4219,6 +4218,8 @@
|
||||||
"routing.ddos_defence":"DDoS defence",
|
"routing.ddos_defence":"DDoS defence",
|
||||||
"routing.how_traffic_crosses_your_backbone":"How traffic crosses your backbone, and what happens when a flood arrives.",
|
"routing.how_traffic_crosses_your_backbone":"How traffic crosses your backbone, and what happens when a flood arrives.",
|
||||||
"routing.routing_and_ddos":"Routing & DDoS",
|
"routing.routing_and_ddos":"Routing & DDoS",
|
||||||
|
"routing.trace_note":"Follow one packet hop by hop and see why it leaves where it does.",
|
||||||
|
"routing.trace_run":"Trace",
|
||||||
"routing_and_routers.maintenance_window_in_city":"Maintenance window in {city}",
|
"routing_and_routers.maintenance_window_in_city":"Maintenance window in {city}",
|
||||||
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} unlocks at customer level {lv}.</b>",
|
"routing_and_routers.model_unlocks_at_customer_level_lv":"<b>{model} unlocks at customer level {lv}.</b>",
|
||||||
"routing_and_routers.new_router_in_city_swapped_before":"<b>New router in {city}</b><br>Swapped before anything was plugged in: zero downtime, zero angry customers.",
|
"routing_and_routers.new_router_in_city_swapped_before":"<b>New router in {city}</b><br>Swapped before anything was plugged in: zero downtime, zero angry customers.",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,12 @@
|
||||||
.toast .b{pointer-events:auto}
|
.toast .b{pointer-events:auto}
|
||||||
.seg{display:flex;flex-wrap:wrap;gap:6px}
|
.seg{display:flex;flex-wrap:wrap;gap:6px}
|
||||||
.seg .b{white-space:normal;text-align:left}
|
.seg .b{white-space:normal;text-align:left}
|
||||||
|
/* A segmented control: one framed row of equal tabs, the active one filled like the HUD's speed buttons (Pie Control). */
|
||||||
|
.segc{display:flex;gap:3px;padding:3px;margin:6px 0 10px;border:3px solid var(--ink);border-radius:14px;background:var(--soft);box-shadow:3px 3px 0 var(--ink)}
|
||||||
|
.segc button{flex:1 1 0;min-width:0;min-height:40px;padding:3px 2px;border:2.5px solid transparent;border-radius:10px;background:none;color:var(--ink);font-family:var(--display);font-weight:800;font-size:min(13.5px,3.6vw);line-height:1.1;cursor:pointer;overflow-wrap:anywhere;hyphens:auto}
|
||||||
|
.segc button:hover{background:var(--paper)}
|
||||||
|
.segc button.on{background:var(--sun);border-color:var(--ink)}
|
||||||
|
.segc button:focus-visible{outline:3px solid var(--me);outline-offset:1px}
|
||||||
.toast .tx{flex:1;font-size:13px;line-height:1.35}
|
.toast .tx{flex:1;font-size:13px;line-height:1.35}
|
||||||
.toast .tx b{font-family:var(--display);font-size:14.5px}
|
.toast .tx b{font-family:var(--display);font-size:14.5px}
|
||||||
@keyframes pop{from{transform:scale(.8) translateY(10px);opacity:0}}
|
@keyframes pop{from{transform:scale(.8) translateY(10px);opacity:0}}
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,14 @@
|
||||||
.ops-mood{margin:6px 0 0;font-style:italic;font-size:13px;color:var(--ink2)}
|
.ops-mood{margin:6px 0 0;font-style:italic;font-size:13px;color:var(--ink2)}
|
||||||
.ops-rep{border-left:3px solid #8E5CF7;background:#F7F2FF;border-radius:0 8px 8px 0;padding:6px 8px;margin:6px 0;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
|
.ops-rep{border-left:3px solid #8E5CF7;background:#F7F2FF;border-radius:0 8px 8px 0;padding:6px 8px;margin:6px 0;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
|
||||||
.ops-rep .eyebrow{margin-bottom:2px}
|
.ops-rep .eyebrow{margin-bottom:2px}
|
||||||
|
/* Pie Control's Company tab ends with the Founder's feed: a quiet section, older posts folded away. */
|
||||||
|
.pie-feed{border-top:2px solid var(--line);margin-top:12px;padding-top:4px}
|
||||||
|
.pie-feed h3{font-size:15px;margin:8px 0 4px}
|
||||||
|
.pie-feed summary{cursor:pointer;font-weight:800;font-size:13px;color:var(--ink2);padding:8px 0;min-height:24px}
|
||||||
|
/* Government money in the bank: the same boxes as the loans next to it. */
|
||||||
|
.bank-gov>.meta{font-size:13px;color:var(--ink2);margin:2px 0 6px;line-height:1.35}
|
||||||
|
.bank-gov .ops-o{border:2.5px solid var(--ink);border-radius:14px;padding:10px 12px;margin-top:10px}
|
||||||
|
.bank-gov .ops-o .nm{font-weight:800;font-family:var(--display);font-size:16px}
|
||||||
|
.bank-gov .ops-o .meta{font-size:12.5px;color:var(--ink2);line-height:1.35}
|
||||||
|
.bank-gov .fact{display:inline-block;margin-top:2px}
|
||||||
|
.bank-gov .ops-o p.meta{margin:4px 0}
|
||||||
|
|
|
||||||
101
tests/noc-panel-layout.test.js
Normal file
101
tests/noc-panel-layout.test.js
Normal file
|
|
@ -0,0 +1,101 @@
|
||||||
|
// The NOC tab's top row (Pie Control next to the NOC dashboard), the traceroute inside Routing & DDoS, government money
|
||||||
|
// in the bank, and Pie Control's four tabs as one segmented control. Seeded; state is set directly.
|
||||||
|
const test = require('node:test');
|
||||||
|
const assert = require('node:assert/strict');
|
||||||
|
const { load } = require('./harness');
|
||||||
|
|
||||||
|
const sandbox = "ACT.modeSet({m:'sandbox'});ACT.start({});if(UI.pendGame)ACT.pitchSkip();S.nextFail=1e9;S.nextEvent=1e9";
|
||||||
|
const noc = "UI.started=true;UI.left='noc';UI.leftOpen=true;UI.sel=null;renderLeft()";
|
||||||
|
const acts = (root) => [...root.querySelectorAll('[data-act]')].map((b) => b.dataset.act);
|
||||||
|
|
||||||
|
test('the NOC tab: Pie Control in the top row once unlocked, no Connections or Traceroute buttons', () => {
|
||||||
|
const { dom, ev, errors } = load();
|
||||||
|
const doc = dom.window.document;
|
||||||
|
ev("window.innerWidth=360;ACT.start({});if(UI.pendGame)ACT.pitchSkip();ACT.launchBB({city:'fra'});" + noc);
|
||||||
|
const top = () => acts(doc.querySelector('#leftBody .btns'));
|
||||||
|
assert.deepEqual(top(), ['dash', 'routingOpen'], 'no rocket company yet: no Pie Control');
|
||||||
|
assert.ok(!acts(doc.getElementById('leftBody')).includes('connOpen'), 'Connections lives in the NOC dashboard');
|
||||||
|
assert.ok(!acts(doc.getElementById('leftBody')).includes('trace'), 'the traceroute moved into Routing & DDoS');
|
||||||
|
ev(sandbox + ';ACT.pieFound();' + noc);
|
||||||
|
assert.deepEqual(top(), ['dash', 'pieOpen', 'routingOpen'], 'Pie Control sits next to the NOC dashboard');
|
||||||
|
assert.equal(doc.querySelectorAll('#leftBody [data-act=pieOpen]').length, 1, 'and the old card is gone');
|
||||||
|
assert.equal(doc.querySelector('#leftBody .pie-card'), null);
|
||||||
|
doc.querySelector('#leftBody .btns [data-act=pieOpen]').click();
|
||||||
|
assert.equal(ev("$('modal').className"), 'pie');
|
||||||
|
ev('closeModal()');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Routing & DDoS opens the traceroute', () => {
|
||||||
|
const { dom, ev, errors } = load();
|
||||||
|
const doc = dom.window.document;
|
||||||
|
ev("window.innerWidth=360;ACT.start({});if(UI.pendGame)ACT.pitchSkip();ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});ACT.routingOpen()");
|
||||||
|
const b = doc.querySelector('#modalCard [data-act=trace]');
|
||||||
|
assert.ok(b, 'a traceroute entry in the modal');
|
||||||
|
assert.match(doc.querySelector('#modalCard .rt-trace').textContent, /Traceroute/);
|
||||||
|
b.click();
|
||||||
|
assert.equal(doc.querySelector('#modalCard [data-routing]'), null, 'the traceroute modal took over');
|
||||||
|
assert.ok(doc.getElementById('trFrom'), 'with its source picker');
|
||||||
|
ev('closeModal()');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the bank shows Government money only with a rocket company, and pieGovOpen opens it there', () => {
|
||||||
|
const { dom, ev, errors } = load();
|
||||||
|
const doc = dom.window.document;
|
||||||
|
ev(sandbox + ";window.innerWidth=360;ACT.bank()");
|
||||||
|
assert.equal(doc.getElementById('bankGov'), null, 'nothing to show before the company');
|
||||||
|
ev('ACT.bankClose();ACT.pieFound();ACT.pieOpen();ACT.pieGovOpen()');
|
||||||
|
assert.equal(ev("$('modal').hidden"), true, 'Pie Control steps aside');
|
||||||
|
assert.equal(ev("$('bankBox').hidden"), false);
|
||||||
|
const card = doc.getElementById('bankCard');
|
||||||
|
assert.ok(doc.getElementById('bankGov'));
|
||||||
|
for (const re of [/Government money/, /Rural Digital Pie Fund/, /Pitcairn/, /Ex-Im Pie Bank/]) assert.match(card.textContent, re);
|
||||||
|
ev('ACT.bankClose()');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Pie Control: four tabs in one segmented control; old Gov and Founder tabs fall back', () => {
|
||||||
|
const { dom, ev, errors } = load();
|
||||||
|
const doc = dom.window.document;
|
||||||
|
ev(sandbox + ";window.innerWidth=360;ACT.pieFound();UI.pieTab=null;ACT.pieOpen()");
|
||||||
|
const seg = doc.querySelector('#modalCard .segc.pie-tabs');
|
||||||
|
assert.ok(seg, 'one segmented control');
|
||||||
|
assert.deepEqual([...seg.querySelectorAll('button')].map((b) => JSON.parse(b.dataset.args).t), ['traffic', 'co', 'fly', 'dish']);
|
||||||
|
assert.equal(seg.querySelectorAll('button.on').length, 1);
|
||||||
|
assert.equal(seg.querySelector('button.on').getAttribute('aria-pressed'), 'true');
|
||||||
|
assert.deepEqual(JSON.parse(ev('JSON.stringify(PIE_TABS)')), ['traffic', 'co', 'fly', 'dish']);
|
||||||
|
// A tab name left over from before: Founder lands on Company, Gov on traffic (or the bank, when asked for by name).
|
||||||
|
ev("UI.pieTab='founder';ACT.pieOpen()");
|
||||||
|
assert.equal(ev('UI.pieTab'), 'co');
|
||||||
|
ev("UI.pieTab='book';ACT.pieOpen()");
|
||||||
|
assert.equal(ev('UI.pieTab'), 'co');
|
||||||
|
ev("UI.pieTab='gov';ACT.pieOpen()");
|
||||||
|
assert.equal(ev('UI.pieTab'), 'traffic');
|
||||||
|
ev("UI.pieTab='nonsense';ACT.pieOpen()");
|
||||||
|
assert.equal(ev('UI.pieTab'), 'traffic');
|
||||||
|
ev("ACT.pieTab({t:'gov'})");
|
||||||
|
assert.equal(ev("$('bankBox').hidden"), false, 'the old Gov tab name opens the bank');
|
||||||
|
ev("ACT.bankClose();ACT.pieTab({t:'book'})");
|
||||||
|
assert.equal(ev('UI.pieTab'), 'co');
|
||||||
|
ev('closeModal()'); // an open globe keeps its animation loop, and this process, alive
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the Company tab ends with the Founder\'s posts, the newest three and the rest folded', () => {
|
||||||
|
const { dom, ev, errors } = load();
|
||||||
|
const doc = dom.window.document;
|
||||||
|
ev(sandbox + ";window.innerWidth=360;ACT.pieFound();for(let i=0;i<5;i++)pieFounder(N_('pie.fp_rename'));ACT.pieTab({t:'co'})");
|
||||||
|
const feed = doc.querySelector('#modalCard .pie-feed');
|
||||||
|
assert.ok(feed, 'the feed is on the Company tab');
|
||||||
|
assert.equal(feed, [...doc.querySelectorAll('#modalCard > *')].pop(), 'at the bottom');
|
||||||
|
assert.match(feed.textContent, /The Founder posts/);
|
||||||
|
assert.match(feed.textContent, /Promises/);
|
||||||
|
const n = ev('S.pie.founder.posts.length');
|
||||||
|
assert.equal(feed.querySelectorAll(':scope > .ops-rep').length, 3);
|
||||||
|
assert.equal(feed.querySelectorAll('details .ops-rep').length, n - 3);
|
||||||
|
assert.match(feed.querySelector('summary').textContent, new RegExp(`${n - 3} older posts`));
|
||||||
|
assert.match(doc.getElementById('modalCard').textContent, /Spent so far/, 'the books moved here too');
|
||||||
|
ev('closeModal()');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
@ -177,8 +177,9 @@ test('Ex-Im Pie Bank: a cheap loan sized to the constellation, with space covena
|
||||||
assert.match(bank, /Launch \d+ pies by .* \(20 so far\)/);
|
assert.match(bank, /Launch \d+ pies by .* \(20 so far\)/);
|
||||||
assert.match(bank, /Keep a pie dish in/);
|
assert.match(bank, /Keep a pie dish in/);
|
||||||
ev("$('bankBox').hidden=true;ACT.pieGovOpen()");
|
ev("$('bankBox').hidden=true;ACT.pieGovOpen()");
|
||||||
assert.match(dom.window.document.querySelector('#modal').textContent, /Ex-Im Pie Bank/);
|
assert.equal(ev("$('bankBox').hidden"), false, 'the toast button opens the bank');
|
||||||
ev('closeModal()');
|
assert.match(dom.window.document.querySelector('#bankGov').parentNode.textContent, /Ex-Im Pie Bank/);
|
||||||
|
ev('ACT.bankClose()');
|
||||||
assert.deepEqual(errors, []);
|
assert.deepEqual(errors, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -209,20 +210,21 @@ test('a broken space covenant: the bank penalty, tighter terms and a spat in the
|
||||||
assert.deepEqual(errors, []);
|
assert.deepEqual(errors, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('the Gov tab fits a phone and lists the auction, the awards, Pitcairn and the bank', () => {
|
test('the bank\'s Government money section fits a phone and lists the auction, the awards, Pitcairn and the bank', () => {
|
||||||
const { dom, ev, errors } = load();
|
const { dom, ev, errors } = load();
|
||||||
pitcairn(ev);
|
pitcairn(ev);
|
||||||
ev("window.innerWidth=360;pieRdfOpen('pcn');S.pie.gov.aw.push({id:'w1',city:'akl',mo:5e6,start:S.day,due:S.day+90,end:S.day+1800,s:0,n:0,paid:0});UI.pieTab=null;ACT.pieGovOpen()");
|
ev("window.innerWidth=360;pieRdfOpen('pcn');S.pie.gov.aw.push({id:'w1',city:'akl',mo:5e6,start:S.day,due:S.day+90,end:S.day+1800,s:0,n:0,paid:0});UI.pieTab=null;ACT.pieGovOpen()");
|
||||||
const m = dom.window.document.querySelector('#modal');
|
const m = dom.window.document.querySelector('#bankCard');
|
||||||
assert.equal(ev("$('modal').hidden"), false);
|
assert.equal(ev("$('bankBox').hidden"), false);
|
||||||
|
assert.ok(m.querySelector('#bankGov'), 'opened at its section');
|
||||||
assert.equal(m.querySelectorAll('[data-act=pieBid]').length, 3, 'three asks');
|
assert.equal(m.querySelectorAll('[data-act=pieBid]').length, 3, 'three asks');
|
||||||
assert.match(m.textContent, /Rural Digital Pie Fund/);
|
assert.match(m.textContent, /Rural Digital Pie Fund/);
|
||||||
assert.match(m.textContent, /Auckland/);
|
assert.match(m.textContent, /Auckland/);
|
||||||
assert.match(m.textContent, /Pitcairn/);
|
assert.match(m.textContent, /Pitcairn/);
|
||||||
assert.match(m.textContent, /satellite grant/);
|
assert.match(m.textContent, /satellite grant/);
|
||||||
assert.doesNotMatch(m.textContent, /pie_gov\.|banks\.|undefined|NaN/);
|
assert.doesNotMatch(m.querySelector('.bank-gov').textContent, /pie_gov\.|banks\.|undefined|NaN/);
|
||||||
ev("ACT.pieBid({id:S.pie.gov.auc[0].id,f:0.7})");
|
ev("ACT.pieBid({id:S.pie.gov.auc[0].id,f:0.7})");
|
||||||
assert.ok(dom.window.document.querySelector('#modal [data-act=pieBid].pink'), 'your bid is marked');
|
assert.ok(dom.window.document.querySelector('#bankCard [data-act=pieBid].pink'), 'your bid is marked, in the open bank');
|
||||||
ev('closeModal()');
|
ev('closeModal()');
|
||||||
assert.deepEqual(errors, []);
|
assert.deepEqual(errors, []);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ test('unlocks once, on the Tier 1 win, in a save of this version', () => {
|
||||||
assert.equal(ev('S.pie.born'), born, 'only once');
|
assert.equal(ev('S.pie.born'), born, 'only once');
|
||||||
// reachable from the NOC tab
|
// reachable from the NOC tab
|
||||||
ev("UI.started=true;UI.left='noc';UI.leftOpen=true;renderLeft()");
|
ev("UI.started=true;UI.left='noc';UI.leftOpen=true;renderLeft()");
|
||||||
assert.ok(ev("!!document.querySelector('[data-act=pieOpen]')"), 'the NOC tab has the Pie Control card');
|
assert.ok(ev("!!document.querySelector('[data-act=pieOpen]')"), 'the NOC tab has the Pie Control button');
|
||||||
assert.deepEqual(errors, []);
|
assert.deepEqual(errors, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -264,7 +264,7 @@ test('saves without a rocket company pay nothing', () => {
|
||||||
assert.equal(ev("pieDay(S.day)"), undefined);
|
assert.equal(ev("pieDay(S.day)"), undefined);
|
||||||
assert.equal(ev('pieDishes().length+pieHubs().length'), 0);
|
assert.equal(ev('pieDishes().length+pieHubs().length'), 0);
|
||||||
assert.deepEqual(JSON.parse(ev('JSON.stringify(pieGlobeData())')), { crusts: [], dishes: [], pads: [], launches: [] });
|
assert.deepEqual(JSON.parse(ev('JSON.stringify(pieGlobeData())')), { crusts: [], dishes: [], pads: [], launches: [] });
|
||||||
assert.equal(ev("pieCard()"), '', 'no card while locked');
|
assert.equal(ev("pieNocBtn()"), '', 'no Pie Control button while locked');
|
||||||
assert.deepEqual(errors, []);
|
assert.deepEqual(errors, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -273,7 +273,7 @@ test('Pie Control renders every tab on a phone', () => {
|
||||||
ev('window.innerWidth=360');
|
ev('window.innerWidth=360');
|
||||||
won(ev);
|
won(ev);
|
||||||
company(ev);
|
company(ev);
|
||||||
for (const t of ['co', 'fly', 'dish', 'gov', 'book']) {
|
for (const t of ['traffic', 'co', 'fly', 'dish']) {
|
||||||
ev(`ACT.pieTab({t:'${t}'})`);
|
ev(`ACT.pieTab({t:'${t}'})`);
|
||||||
assert.equal(ev("$('modal').hidden"), false);
|
assert.equal(ev("$('modal').hidden"), false);
|
||||||
assert.ok(dom.window.document.querySelectorAll('#modalCard [data-act]').length > 2, t);
|
assert.ok(dom.window.document.querySelectorAll('#modalCard [data-act]').length > 2, t);
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ test('the Traffic tab is first, fits 360 px and lists a terminal and a sky circu
|
||||||
term(ev, 'pz', 'pcn');
|
term(ev, 'pz', 'pcn');
|
||||||
ev('UI.pieTab=null;ACT.pieOpen()');
|
ev('UI.pieTab=null;ACT.pieOpen()');
|
||||||
const d = doc(dom);
|
const d = doc(dom);
|
||||||
assert.equal(d.querySelector('#modalCard .seg [aria-pressed="true"]').textContent, ev("tr('pie_traffic.tab')"), 'Traffic is the default tab');
|
assert.equal(d.querySelector('#modalCard .pie-tabs [aria-pressed="true"]').textContent, ev("tr('pie_traffic.tab')"), 'Traffic is the default tab');
|
||||||
const txt = d.querySelector('#modalCard').textContent;
|
const txt = d.querySelector('#modalCard').textContent;
|
||||||
assert.match(txt, /In orbit now: .* of .* sellable · .*\/mo · 2 customers/);
|
assert.match(txt, /In orbit now: .* of .* sellable · .*\/mo · 2 customers/);
|
||||||
assert.match(txt, /Who's riding/);
|
assert.match(txt, /Who's riding/);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue