From 9f18a13bbf9edb5bc69383587650c90ea1f91ec9 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Fri, 11 Apr 2025 07:27:42 +0000 Subject: [PATCH] Preact: More misc fixes Moderate: - Fix double messages when being DMed (and otherwise joining a room server-side) - Refactor PSModel to support passing a value with updates, so PSStreamModel is explicitly about tracking an update backlog. - Work on supporting AFD mode (it doesn't seem to work yet) - Fix music still playing after closing a battle - Show username (with capitalization and spaces) in DM titles - Don't let people try to search for battles without choosing a username Minor: - Remove random BOM that made it into some files? - Correct date Preact client started (I mistook the date testclient was created) - Refactor updateLayout --- .../crossprotocol.template.html | 2 +- play.pokemonshowdown.com/index.template.html | 2 +- .../preactalpha.template.html | 2 +- play.pokemonshowdown.com/src/client-core.ts | 68 ++++++++------- play.pokemonshowdown.com/src/client-main.ts | 76 +++++++++++----- play.pokemonshowdown.com/src/panel-chat.tsx | 87 +++++++++---------- .../src/panel-mainmenu.tsx | 8 ++ play.pokemonshowdown.com/testclient.html | 2 +- 8 files changed, 142 insertions(+), 105 deletions(-) diff --git a/play.pokemonshowdown.com/crossprotocol.template.html b/play.pokemonshowdown.com/crossprotocol.template.html index c2e832809..fae013c6a 100644 --- a/play.pokemonshowdown.com/crossprotocol.template.html +++ b/play.pokemonshowdown.com/crossprotocol.template.html @@ -1,4 +1,4 @@ - +