fix(web): remove unused colors parameter from drawThreatLines call
- Minor fix to match function signature - Add lazy loaders for feedback and docs-api pages
This commit is contained in:
parent
00069b1870
commit
5215cd7e57
4 changed files with 15 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
206189f914d01d66ad700bce2e49f9e1ba361b81
|
||||
00069b1870a0d79fcf3af56bf8885fd75b2e4258
|
||||
|
|
|
|||
|
|
@ -12,8 +12,16 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// IslandStat holds per-island population statistics.
|
||||
// IslandStat holds per-island population statistics (dashboard format).
|
||||
type IslandStat struct {
|
||||
Population int `json:"population"`
|
||||
BestRating int `json:"best_rating"`
|
||||
BestBot string `json:"best_bot"`
|
||||
LanguageDiv string `json:"language_div,omitempty"` // dominant language
|
||||
}
|
||||
|
||||
// IslandStatFull holds per-island population statistics (full detail).
|
||||
type IslandStatFull struct {
|
||||
Count int `json:"count"`
|
||||
BestFitness float64 `json:"best_fitness"`
|
||||
AvgFitness float64 `json:"avg_fitness"`
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@ const loadEvolutionPage = () => import('./pages/evolution').then(m => m.renderEv
|
|||
const loadBlogPages = () => import('./pages/blog').then(m => ({ renderBlogPage: m.renderBlogPage, renderBlogPostPage: m.renderBlogPostPage }));
|
||||
const loadSeasonsPage = () => import('./pages/seasons').then(m => m.renderSeasonsPage);
|
||||
|
||||
// Feedback & docs (separate chunk - includes replay viewer for feedback page)
|
||||
const loadFeedbackPage = () => import('./pages/feedback').then(m => m.renderFeedbackPage);
|
||||
const loadDocsApiPage = () => import('./pages/docs-api').then(m => m.renderDocsApiPage);
|
||||
|
||||
// ─── Helper: wrap async page loader in sync RouteHandler ────────────────────────
|
||||
function lazyRoute(loader: () => Promise<(params: Record<string, string>) => void>): RouteHandler {
|
||||
return (params: Record<string, string>) => {
|
||||
|
|
|
|||
|
|
@ -1031,7 +1031,7 @@ export class ReplayViewer {
|
|||
|
||||
// Draw threat lines between bots in attack range
|
||||
if (!this.accessibility.reducedMotion) {
|
||||
this.drawThreatLines(turnData, colors, visible);
|
||||
this.drawThreatLines(turnData, visible);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue