-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate mode stats into their own pages
- Loading branch information
Showing
10 changed files
with
164 additions
and
65 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
apps/discord-bot/src/commands/warlords/tables/capture-the-flag.table.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright (c) Statsify | ||
* | ||
* This source code is licensed under the GNU GPL v3 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* https://github.com/Statsify/statsify/blob/main/LICENSE | ||
*/ | ||
|
||
import { Table } from "#components"; | ||
import type { LocalizeFunction } from "@statsify/discord"; | ||
import type { Warlords } from "@statsify/schemas"; | ||
|
||
export interface WarlordsCaptureTheFlagTableProps { | ||
warlords: Warlords; | ||
t: LocalizeFunction; | ||
} | ||
|
||
export const WarlordsCaptureTheFlagTable = ({ warlords, t }: WarlordsCaptureTheFlagTableProps) => ( | ||
<Table.table> | ||
<Table.tr> | ||
<Table.td title={t("stats.wins")} value={t(warlords.captureTheFlag.wins)} color="§a" /> | ||
<Table.td title={t("stats.kills")} value={t(warlords.captureTheFlag.kills)} color="§e" /> | ||
</Table.tr> | ||
<Table.tr> | ||
<Table.td title={t("stats.flagCaptures")} value={t(warlords.captureTheFlag.flagCaptures)} color="§c" /> | ||
<Table.td title={t("stats.flagReturns")} value={t(warlords.captureTheFlag.flagReturns)} color="§9" /> | ||
</Table.tr> | ||
</Table.table> | ||
); |
25 changes: 25 additions & 0 deletions
25
apps/discord-bot/src/commands/warlords/tables/deathmatch.table.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright (c) Statsify | ||
* | ||
* This source code is licensed under the GNU GPL v3 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* https://github.com/Statsify/statsify/blob/main/LICENSE | ||
*/ | ||
|
||
import { Table } from "#components"; | ||
import type { LocalizeFunction } from "@statsify/discord"; | ||
import type { Warlords } from "@statsify/schemas"; | ||
|
||
export interface WarlordsDeathmatchTableProps { | ||
warlords: Warlords; | ||
t: LocalizeFunction; | ||
} | ||
|
||
export const WarlordsDeathmatchTable = ({ warlords, t }: WarlordsDeathmatchTableProps) => ( | ||
<Table.table> | ||
<Table.tr> | ||
<Table.td title={t("stats.wins")} value={t(warlords.teamDeathmatch.wins)} color="§a" /> | ||
<Table.td title={t("stats.kills")} value={t(warlords.teamDeathmatch.kills)} color="§e" /> | ||
</Table.tr> | ||
</Table.table> | ||
); |
30 changes: 30 additions & 0 deletions
30
apps/discord-bot/src/commands/warlords/tables/domination.table.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Copyright (c) Statsify | ||
* | ||
* This source code is licensed under the GNU GPL v3 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* https://github.com/Statsify/statsify/blob/main/LICENSE | ||
*/ | ||
|
||
import { Table } from "#components"; | ||
import type { LocalizeFunction } from "@statsify/discord"; | ||
import type { Warlords } from "@statsify/schemas"; | ||
|
||
export interface WarlordsDominationTableProps { | ||
warlords: Warlords; | ||
t: LocalizeFunction; | ||
} | ||
|
||
export const WarlordsDominationTable = ({ warlords, t }: WarlordsDominationTableProps) => ( | ||
<Table.table> | ||
<Table.tr> | ||
<Table.td title={t("stats.wins")} value={t(warlords.domination.wins)} color="§a" /> | ||
<Table.td title={t("stats.kills")} value={t(warlords.domination.kills)} color="§e" /> | ||
<Table.td title={t("stats.score")} value={t(warlords.domination.score)} color="§6" /> | ||
</Table.tr> | ||
<Table.tr> | ||
<Table.td title={t("stats.capturePoints")} value={t(warlords.domination.capturePoints)} color="§2" /> | ||
<Table.td title={t("stats.defendPoints")} value={t(warlords.domination.defendPoints)} color="§b" /> | ||
</Table.tr> | ||
</Table.table> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
apps/discord-bot/src/commands/warlords/tables/overall.table.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Copyright (c) Statsify | ||
* | ||
* This source code is licensed under the GNU GPL v3 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* https://github.com/Statsify/statsify/blob/main/LICENSE | ||
*/ | ||
|
||
import { Table } from "#components"; | ||
import type { LocalizeFunction } from "@statsify/discord"; | ||
import type { Warlords } from "@statsify/schemas"; | ||
|
||
export interface WarlordsOverallTableProps { | ||
warlords: Warlords; | ||
t: LocalizeFunction; | ||
} | ||
|
||
export const WarlordsOverallTable = ({ warlords, t }: WarlordsOverallTableProps) => ( | ||
<Table.table> | ||
<Table.tr> | ||
<Table.td title={t("stats.wins")} value={t(warlords.wins)} color="§a" /> | ||
<Table.td title={t("stats.losses")} value={t(warlords.losses)} color="§c" /> | ||
<Table.td title={t("stats.wlr")} value={t(warlords.wlr)} color="§6" /> | ||
<Table.td | ||
title={t("stats.gamesPlayed")} | ||
value={t(warlords.gamesPlayed)} | ||
color="§e" | ||
/> | ||
</Table.tr> | ||
<Table.tr> | ||
<Table.td title={t("stats.kills")} value={t(warlords.kills)} color="§a" /> | ||
<Table.td title={t("stats.deaths")} value={t(warlords.deaths)} color="§c" /> | ||
<Table.td title={t("stats.kdr")} value={t(warlords.kdr)} color="§6" /> | ||
<Table.td title={t("stats.assists")} value={t(warlords.assists)} color="§e" /> | ||
</Table.tr> | ||
</Table.table> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule private
updated
from 2e5630 to f8b515
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters