gaia-project/viewer/index.html
coyotte508 14347432f0 feat: remove Frontiers expansion; fix import cycles + base-game scoring clip; Vite dev app (engine 4.11.0, viewer 5.15.0)
FRONTIERS REMOVAL (engine + viewer). Old BGS games pin old engine
versions so replay compatibility is unaffected; no current-version
games used Frontiers.

Engine (745 tests passing, 0 lint errors):
- deleted available/ships.ts (+spec), move/ships.ts
- enums: Frontiers bitflag, ResearchField.Diplomacy, Resource Trade*/
  ShipRange/UpgradeDiplomacy, Building ships/Colony/CustomsPost block
  (+ships()/isShip()/isAvailableShip()/Ship), Command.MoveShip,
  Phase.RoundShip, Condition.Trade, TechFrontiers1, Diplomacy tech pos
  members; Expansion.All now = LostFleet
- research-tracks: Diplomacy track, frontiersEco, ship-range rewards
  stripped from base Navigation track; all other Frontiers-only fields,
  handlers, cases and AI dimensions removed
- wrapper.ts: frontiers expansion flag

Viewer (863 tests passing, lint clean):
- deleted logic/trade-rewards.ts, logic/buttons/ships.ts,
  charts/testdata/frontiers/; zero 'frontiers' references remain

IMPORT-CYCLE + CJS FIXES surfaced by the Vite dev server (ESM strict
order), all pre-existing bugs webpack/CJS masked:
- engine/src/buildings.ts imported from ".." (package root -> compiled
  dist) - now "./enums"
- engine/index.ts re-exported ~15 type-only names as values
  (BrainstoneDest, MaxLeech, EventSource, EngineOptions, the
  Available* block, ResourceConversion, FederationInfo, GaiaHexData,
  AvailableSetupOption, PreferenceSplit*/SilentAuction* types) -
  split into 'export type' (load-bearing for rolldown too)
- viewer: Rules.vue registers FactionInfoCard async, breaking the
  Rules -> FactionInfoCard -> PlayerInfo -> Rules cycle
- viewer: buttonStringLabel moved from logic/buttons/utils.ts to
  shortcuts.ts (re-exported), breaking utils <-> shortcuts

DEV APP ON VITE (npm run serve = vite --port 8080):
- vite.config.ts mode-aware: dev = SPA (index.html + public/ +
  engine-source aliases + optimizeDeps exclusion), build = the
  published IIFE lib (unchanged single-file contract, verified)
- package.json: pruned webpack-era files/unpkg entries (.map dropped
  - no map uploads per owner decision); deleted
  scripts/fix-package-imports.ts (referenced the vite build's
  nonexistent dist/package/css)
- dev boot verified in Chromium: self-contained picker renders,
  zero page errors

BASE-GAME SCORING CLIP (follow-up on 5.14.2, which shipped without
the intended fix due to a no-op string replace): ScoringBoard's
y=-25 offset removed for real; spec pins y===null; verified in the
built bundle (first final tile fully inside the canvas top).

AGENTS.md: no sourcemap upload to BGS (owner decision); bodyparser
exemption noted as deployed.
2026-09-01 10:33:08 +00:00

44 lines
1.8 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" type="image/png" id="favicon-gp" href="/favicon.png?v=5.36.4" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=5.36.4" />
<meta name="color-scheme" content="light dark" />
<meta name="theme-color" content="#1c2027" />
<script>
// Apply dark-by-default or the persisted choice before CSS and Vue mount, avoiding a theme
// flash.
(function () {
var theme = "dark";
try {
var storedTheme = window.localStorage.getItem("gp-fight-club-theme");
if (storedTheme === "light" || storedTheme === "dark") {
theme = storedTheme;
}
} catch (_) {
// Storage is optional in privacy-restricted contexts.
}
document.documentElement.setAttribute("data-theme", theme);
document.documentElement.style.colorScheme = theme;
document
.querySelector('meta[name="theme-color"]')
.setAttribute("content", theme === "dark" ? "#1c2027" : "#ffffff");
})();
</script>
<meta name="description" content="Gaia Project multiplayer and offline pass-and-play" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Fight Club" />
<title>GP: Fight Club</title>
</head>
<body>
<noscript>
<strong>We are sorry, javascript is needed for the website.</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<!-- built files will be auto injected -->
</body>
</html>