Phase 2: client military/social screens, WebSocket push, trade + endgame, review findings pending
Built: units/movements/reports/send/expansion screens, alliance/messages/rankings screens, ws client + server /ws push (docs/PROTOCOL.md), Internet exchange trade, backbone endgame + world end, shared reports, buildDone relative levels. Tested: npm test 175/175. Two adversarial reviews found issues (trade-leg recall exploit, __proto__ via validate.js, rankings DoS, static headers, ...): fixes follow in the next commit. NOT done: bots/balance, e2e suite, real-device checks. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q2MJaQ5LXAHzGnTDgceT14
This commit is contained in:
parent
249818a7aa
commit
b18645dca1
87 changed files with 10201 additions and 71 deletions
|
|
@ -3,6 +3,10 @@ const test = require('node:test');
|
|||
const assert = require('node:assert');
|
||||
const I = require('../public/js/i18n.js');
|
||||
const D = require('../public/js/data.js');
|
||||
// Strings added by later screens: public/js/strings/*.js, loaded for the parity test the same way the browser loads them.
|
||||
for (const f of require('fs').readdirSync(require('path').join(__dirname, '..', 'public', 'js', 'strings')).sort()) {
|
||||
if (f.endsWith('.js')) require('../public/js/strings/' + f);
|
||||
}
|
||||
|
||||
const placeholders = (s) => (s.match(/\{\w+\}/g) || []).sort().join(',');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue