From 5aa023bba5d7e9f38eb5d38433a90f8ba73a930f Mon Sep 17 00:00:00 2001 From: FloPinguin <25036848+FloPinguin@users.noreply.github.com> Date: Sun, 1 Feb 2026 17:57:33 +0100 Subject: [PATCH 1/5] =?UTF-8?q?Adblockers=20blocked=20OUR=20OWN=20source?= =?UTF-8?q?=20files=20=F0=9F=94=A7=20(#3085)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: Renamed ad files because adblockers blocked them because of their name. When ES modules fail to import, the entire application breaks. ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: FloPinguin --- src/client/components/{VideoAd.ts => VideoReward.ts} | 0 src/client/graphics/GameRenderer.ts | 2 +- .../graphics/layers/{SpawnVideoAd.ts => SpawnVideoReward.ts} | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/client/components/{VideoAd.ts => VideoReward.ts} (100%) rename src/client/graphics/layers/{SpawnVideoAd.ts => SpawnVideoReward.ts} (97%) diff --git a/src/client/components/VideoAd.ts b/src/client/components/VideoReward.ts similarity index 100% rename from src/client/components/VideoAd.ts rename to src/client/components/VideoReward.ts diff --git a/src/client/graphics/GameRenderer.ts b/src/client/graphics/GameRenderer.ts index 1e1db656c..8ff1047b7 100644 --- a/src/client/graphics/GameRenderer.ts +++ b/src/client/graphics/GameRenderer.ts @@ -34,7 +34,7 @@ import { ReplayPanel } from "./layers/ReplayPanel"; import { SAMRadiusLayer } from "./layers/SAMRadiusLayer"; import { SettingsModal } from "./layers/SettingsModal"; import { SpawnTimer } from "./layers/SpawnTimer"; -import { SpawnVideoAd } from "./layers/SpawnVideoAd"; +import { SpawnVideoAd } from "./layers/SpawnVideoReward"; import { StructureIconsLayer } from "./layers/StructureIconsLayer"; import { StructureLayer } from "./layers/StructureLayer"; import { TeamStats } from "./layers/TeamStats"; diff --git a/src/client/graphics/layers/SpawnVideoAd.ts b/src/client/graphics/layers/SpawnVideoReward.ts similarity index 97% rename from src/client/graphics/layers/SpawnVideoAd.ts rename to src/client/graphics/layers/SpawnVideoReward.ts index 6d782d15d..3e089fe8e 100644 --- a/src/client/graphics/layers/SpawnVideoAd.ts +++ b/src/client/graphics/layers/SpawnVideoReward.ts @@ -4,7 +4,7 @@ import { crazyGamesSDK } from "src/client/CrazyGamesSDK"; import { getGamesPlayed } from "src/client/Utils"; import { GameType } from "src/core/game/Game"; import { GameView } from "../../../core/game/GameView"; -import "../../components/VideoAd"; +import "../../components/VideoReward"; import { Layer } from "./Layer"; @customElement("spawn-video-ad") From 106938c395bb7241cda8dc9157aafe6041a21001 Mon Sep 17 00:00:00 2001 From: Ryan <7389646+ryanbarlow97@users.noreply.github.com> Date: Sun, 1 Feb 2026 22:58:54 +0000 Subject: [PATCH 2/5] Add Ranked 1v1 Leaderboard (#3008) If this PR fixes an issue, link it below. If not, delete these two lines. Resolves #(issue number) @wraith4081 's pr updates the stats modal to show both 1v1 and clan stats - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced regression is found: w.o.n --------- Co-authored-by: Wraith <54374743+wraith4081@users.noreply.github.com> Co-authored-by: iamlewis --- index.html | 14 +- package-lock.json | 38 +- package.json | 1 + resources/lang/en.json | 18 +- src/client/Api.ts | 81 ++++ src/client/JoinPrivateLobbyModal.ts | 6 +- src/client/LangSelector.ts | 5 +- src/client/LeaderboardModal.ts | 133 +++++ src/client/Main.ts | 4 +- src/client/StatsModal.ts | 417 ---------------- src/client/components/DesktopNavBar.ts | 4 +- src/client/components/MobileNavBar.ts | 4 +- .../leaderboard/LeaderboardClanTable.ts | 385 +++++++++++++++ .../leaderboard/LeaderboardPlayerList.ts | 453 ++++++++++++++++++ .../components/leaderboard/LeaderboardTabs.ts | 75 +++ src/core/ApiSchemas.ts | 46 ++ tests/client/LeaderboardModal.test.ts | 383 +++++++++++++++ tests/client/StatsModal.test.ts | 140 ------ 18 files changed, 1622 insertions(+), 585 deletions(-) create mode 100644 src/client/LeaderboardModal.ts delete mode 100644 src/client/StatsModal.ts create mode 100644 src/client/components/leaderboard/LeaderboardClanTable.ts create mode 100644 src/client/components/leaderboard/LeaderboardPlayerList.ts create mode 100644 src/client/components/leaderboard/LeaderboardTabs.ts create mode 100644 tests/client/LeaderboardModal.test.ts delete mode 100644 tests/client/StatsModal.test.ts diff --git a/index.html b/index.html index ae29615c7..112333cbf 100644 --- a/index.html +++ b/index.html @@ -133,14 +133,14 @@