Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Licensed under ODbL
Stats icon by [Meko](https://thenounproject.com/mekoda/)https://thenounproject.com/icon/stats-4942475/
Pay Per Click icon by [Fauzan Adiima](https://thenounproject.com/creator/fauzan94/)https://thenounproject.com/icon/pay-per-click-2586454/
Medal icon by [Snow](https://thenounproject.com/snowdoll/)https://thenounproject.com/icon/medal-4567887/
Guild icon by Trimanggolo Mulyo – https://thenounproject.com/icon/guild-8266144/

### Flags

Expand Down
4 changes: 4 additions & 0 deletions resources/images/GuildIconWhite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,7 @@
"allies": "Allies",
"betrayals": "Betrayals",
"cities": "Cities",
"clan": "Clan",
"configure_columns": "Configure columns",
"factories": "Factories",
"gold": "Gold",
Expand All @@ -910,6 +911,7 @@
"owned": "Owned",
"player": "Player",
"ports": "Ports",
"rank": "Rank",
"sams": "SAMs",
"team": "Team",
"troops": "Troops",
Expand Down
13 changes: 8 additions & 5 deletions src/client/StatsConstants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export const COLUMN_IDS = [
"rank",
"clan",
"player",
"team",
"tiles",
"gold",
"troops",
Expand All @@ -15,10 +19,9 @@ export const COLUMN_IDS = [

export type ColumnId = (typeof COLUMN_IDS)[number];

export const DEFAULT_STATS_COLUMNS = [
"tiles",
"gold",
"maxtroops",
] as const satisfies readonly ColumnId[];
export const DEFAULT_STATS_COLUMNS = {
player: ["clan", "tiles", "gold", "maxtroops"],
team: ["tiles", "gold", "maxtroops"],
} as const satisfies Record<StatsTableKind, readonly ColumnId[]>;

export type StatsTableKind = "player" | "team";
Loading
Loading