From 930e62869d97a734cdff1c0c0e2095a2344c07e9 Mon Sep 17 00:00:00 2001 From: Frederic Jung Date: Sun, 25 Oct 2026 18:08:29 +0100 Subject: [PATCH] DKNOG gets its own evening --- site/i18n/it.js | 1 + site/index.html | 4 ++-- tests/modes.test.js | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/site/i18n/it.js b/site/i18n/it.js index 4bf21d0..2612ab0 100644 --- a/site/i18n/it.js +++ b/site/i18n/it.js @@ -2361,4 +2361,5 @@ "A leased {wave} wave on this route costs {price}/mo.":"Una wave da {wave} in affitto su questa tratta costa {price}/mese.", "Replace 16 Tbps of them and the cable pays for itself in about {n} months.":"Sostituiscine 16 Tbps e il cavo si ripaga in circa {n} mesi.", "{km} km is longer than any optic reaches at full speed. Transponders will run in long-haul mode (1.2T, 800G or 400G per channel), or add regen sites along the way to get full speed back.":"{km} km sono più di quanto qualsiasi ottica raggiunga a piena velocità. I transponder andranno in modalità long-haul (1.2T, 800G o 400G per canale), oppure aggiungi siti di rigenerazione lungo il percorso per tornare alla piena velocità.", +"The hallway track moved to a bar by the harbour, where the woman behind the bar kept pouring aquavit long past midnight and asked nobody about their AS path. Back at the hotel bar, someone said “just one more drink”. Your BGP sessions stayed up all night. So did you.":"L'hallway track si è spostato in un bar sul porto, dove la signora dietro al bancone ha continuato a versare acquavite ben oltre mezzanotte senza chiedere a nessuno il suo AS path. Poi al bar dell'hotel qualcuno ha detto «solo un ultimo bicchiere». Le tue sessioni BGP sono rimaste su tutta la notte. Anche tu.", }; diff --git a/site/index.html b/site/index.html index 332e494..5f1154a 100644 --- a/site/index.html +++ b/site/index.html @@ -1385,7 +1385,7 @@ function beginGame(nm,city,o={}){if(needPitch()&&!UI.pitched){UI.pendGame=[nm,ci toast(S.scn?`${esc(S.scn.name)}
${esc(o.scn.goal||tr('Serve as much traffic as you can in one year.'))} ${tr('You have {n} days.',{n:S.scn.days})}`:S.mode==='sandbox'?tr('Sandbox mode
A billion dollars, every unlock, and nothing ever breaks. Build the internet you always wanted.'):tr('Welcome, {name}!
The RIPE NCC assigned you AS{asn}. Your first router is humming in {city}.',{name:esc(nm),asn:S.asn,city:CITY[city].name}),'goal'); renderAll();save();if(!S.scn&&S.mode!=='sandbox')tutorialStart();} /* ---------- conference season ---------- */ -const CONFS=[{n:'NANOG',c:'chi',m:1},{n:'APRICOT',c:'sin',m:1},{n:'Peering Days',c:'waw',m:2},{n:'DKNOG',c:'cph',m:2},{n:'UKNOF',c:'lon',m:3},{n:'MENOG',c:'dxb',m:3},{n:'NZNOG',c:'akl',m:3},{n:'RIPE',c:'ams',m:4},{n:'NANOG',c:'sea',m:5},{n:'IX Forum',c:'tok',m:6},{n:'AfPIF',c:'nbo',m:7},{n:'AusNOG',c:'syd',m:8},{n:'NLNOG Day',c:'ams',m:8},{n:'LACNOG',c:'sao',m:9},{n:'NANOG',c:'ash',m:9},{n:'DENOG',c:'fra',m:10},{n:'RIPE',c:'ber',m:10},{n:'PTT Forum',c:'sao',m:11}]; +const CONFS=[{n:'NANOG',c:'chi',m:1},{n:'APRICOT',c:'sin',m:1},{n:'Peering Days',c:'waw',m:2},{n:'DKNOG',c:'cph',m:2,j:N_('The hallway track moved to a bar by the harbour, where the woman behind the bar kept pouring aquavit long past midnight and asked nobody about their AS path. Back at the hotel bar, someone said “just one more drink”. Your BGP sessions stayed up all night. So did you.')},{n:'UKNOF',c:'lon',m:3},{n:'MENOG',c:'dxb',m:3},{n:'NZNOG',c:'akl',m:3},{n:'RIPE',c:'ams',m:4},{n:'NANOG',c:'sea',m:5},{n:'IX Forum',c:'tok',m:6},{n:'AfPIF',c:'nbo',m:7},{n:'AusNOG',c:'syd',m:8},{n:'NLNOG Day',c:'ams',m:8},{n:'LACNOG',c:'sao',m:9},{n:'NANOG',c:'ash',m:9},{n:'DENOG',c:'fra',m:10},{n:'RIPE',c:'ber',m:10},{n:'PTT Forum',c:'sao',m:11}]; const CONF_COST=8000,CONF_DAYS=45; const confDay=(cf,y)=>y*360+cf.m*30+9; function confKey(cf,y){return cf.n+'@'+cf.c+'@'+y;} @@ -1394,7 +1394,7 @@ function confBoost(id){const cb=S.conf;if(!cb||!(cb.until>S.day))return 1;const function confTick(d){S.confReg=S.confReg||{}; for(const cf of upcomingConfs(30)){if(cf.day-d===30&&!S.confReg[cf.key])toast(tr('{conf} comes to {city} in 30 days.
Peering coordinators, hallway track, free stickers. Register in the Deals tab.',{conf:esc(cf.n),city:esc(CITY[cf.c].name)}),'goal',[{l:tr('Show me'),act:'leftTab',args:{t:'deals'}}]);} for(const cf of upcomingConfs(0)){if(cf.day!==d||!S.confReg[cf.key])continue;const reg=CITY[cf.c].reg;S.conf={until:d+CONF_DAYS,reg,name:cf.n};S.stats.confs=(S.stats.confs||0)+1; - const r=Math.random();let extra='';if(r<0.3){const cash=5000+Math.floor(Math.random()*4)*5000;S.cash+=cash;extra=' '+tr('You also won the raffle: {cash} worth of optics, sold on eBuy the same evening.',{cash:fmt$(cash)});}else if(r<0.5)extra=' '+tr('Someone from Goggle bought you a beer. You did not get their name, only a sticker.'); + const r=Math.random();let extra='';if(r<0.3){const cash=5000+Math.floor(Math.random()*4)*5000;S.cash+=cash;extra=' '+tr('You also won the raffle: {cash} worth of optics, sold on eBuy the same evening.',{cash:fmt$(cash)});}else if(r<0.5)extra=' '+tr('Someone from Goggle bought you a beer. You did not get their name, only a sticker.');if(cf.j)extra=' '+tr(cf.j)+(r<0.3?extra:''); toast(tr('{conf} in {city}
You shook a lot of hands. For {n} days, selective networks with a presence in {region} want half the usual traffic before they peer.',{conf:esc(cf.n),city:esc(CITY[cf.c].name),n:CONF_DAYS,region:esc(REG[reg])})+extra,'goal');sfx('coin');}} function confSection(){const up=upcomingConfs(75).slice(0,3),cb=S.conf&&S.conf.until>S.day?S.conf:null;if(!up.length&&!cb)return ''; return `

${tr('Conferences')}

${cb?`
${tr('{name} glow: {n} days left',{name:esc(cb.name),n:cb.until-S.day})}
${tr('Selective networks in {region} need half the usual traffic to peer. Now is the time to ask for that PNI.',{region:esc(REG[cb.reg])})}
`:''}${up.map(cf=>{const reg=S.confReg&&S.confReg[cf.key];return `
${esc(cf.n)} · ${esc(CITY[cf.c].name)}
${cf.day===S.day?tr('Today'):tr('in {n} days',{n:cf.day-S.day})} · ${esc(REG[CITY[cf.c].reg])}
${reg?''+tr('Registered')+'':cf.day<=S.day?''+tr('Registration closed')+'':btn(tr('Attend {cost}',{cost:fmt$(CONF_COST)}),'confGo',{key:cf.key},'sm',S.cash`;}).join('')}`;} diff --git a/tests/modes.test.js b/tests/modes.test.js index 2684eaa..9dea388 100644 --- a/tests/modes.test.js +++ b/tests/modes.test.js @@ -346,5 +346,6 @@ test('DKNOG in Copenhagen is on the conference calendar', () => { ev(`ACT.confGo({key:'${key}'})`); ev("for(let i=0;i<21;i++)dayTick()"); assert.equal(ev("S.conf&&S.conf.reg"), 'EU', 'the glow helps with European peers'); + assert.match(ev("S.log.map(e=>e.t).join(' | ')"), /just one more drink/, 'and the evening went as DKNOG evenings go'); assert.deepEqual(errors, []); });