diff --git a/play.pokemonshowdown.com/src/battle-animations.ts b/play.pokemonshowdown.com/src/battle-animations.ts index 8a86f5d49..1dcd4c84e 100644 --- a/play.pokemonshowdown.com/src/battle-animations.ts +++ b/play.pokemonshowdown.com/src/battle-animations.ts @@ -242,7 +242,7 @@ export class BattleScene implements BattleSceneStub { this.stopAnimation(); this.updateBgm(); if (!this.battle.started) { - this.$frame.append('


'); + this.$frame.append('


'); this.$frame.find('div.playbutton button[name=play-muted]').click(() => { this.setMute(true); this.battle.play(); diff --git a/play.pokemonshowdown.com/src/battle-log.ts b/play.pokemonshowdown.com/src/battle-log.ts index 84cc57389..5398dd3ac 100644 --- a/play.pokemonshowdown.com/src/battle-log.ts +++ b/play.pokemonshowdown.com/src/battle-log.ts @@ -112,7 +112,7 @@ export class BattleLog { this.skippedLines = true; const el = document.createElement('div'); el.className = 'chat'; - el.innerHTML = ''; + el.innerHTML = ''; const button = el.getElementsByTagName('button')[0]; button?.addEventListener?.('click', e => { e.preventDefault(); diff --git a/play.pokemonshowdown.com/src/battle-searchresults.tsx b/play.pokemonshowdown.com/src/battle-searchresults.tsx index 16d2ef43a..b7e9bb84f 100644 --- a/play.pokemonshowdown.com/src/battle-searchresults.tsx +++ b/play.pokemonshowdown.com/src/battle-searchresults.tsx @@ -381,7 +381,7 @@ export class PSSearchResults extends preact.Component<{ search: DexSearch }> { Filters: {} {search.filters.map(([type, name]) => )} {!search.query && (backspace = delete filter)} diff --git a/play.pokemonshowdown.com/src/panel-battle.tsx b/play.pokemonshowdown.com/src/panel-battle.tsx index 8c9fb34d7..4babdbbdd 100644 --- a/play.pokemonshowdown.com/src/panel-battle.tsx +++ b/play.pokemonshowdown.com/src/panel-battle.tsx @@ -58,7 +58,7 @@ class BattlesPanel extends PSRoomPanel { static readonly routes = ['battles']; static readonly Model = BattlesRoom; static readonly location = 'right'; - static readonly icon = ; + static readonly icon = ; static readonly title = 'Battles'; refresh = () => { this.props.room.refresh(); @@ -80,11 +80,13 @@ class BattlesPanel extends PSRoomPanel { const room = this.props.room; return

- {} + {} {

{atEnd ? ( ) : room.battle.paused ? ( ) : ( )} {}

; @@ -506,7 +508,7 @@ class BattlePanel extends PSRoomPanel { if (choices.isEmpty()) return null; let buf: preact.ComponentChild[] = [ - , ' ', + , ' ', ]; if (choices.isDone() && request.noCancel) { buf = ['Waiting for opponent...',
]; @@ -567,7 +569,9 @@ class BattlePanel extends PSRoomPanel { if (choices.isDone()) { return
- + {this.renderOldChoices(request, choices)}
@@ -595,7 +599,9 @@ class BattlePanel extends PSRoomPanel { const moveName = choices.getChosenMove(choices.current, choices.index()).name; return
- + {this.renderOldChoices(request, choices)} {pokemon.name} should use {moveName} at where? {}
@@ -611,7 +617,9 @@ class BattlePanel extends PSRoomPanel { return
- + {this.renderOldChoices(request, choices)} What will {pokemon.name} do?
@@ -666,7 +674,9 @@ class BattlePanel extends PSRoomPanel { const pokemon = request.side.pokemon[choices.index()]; return
- + {this.renderOldChoices(request, choices)} What will {pokemon.name} do?
@@ -680,9 +690,11 @@ class BattlePanel extends PSRoomPanel { } case 'team': { return
- + {choices.alreadySwitchingIn.length > 0 ? ( - [, + [, " What about the rest of your team? "] ) : ( "How will you start the battle? " @@ -720,22 +732,22 @@ class BattlePanel extends PSRoomPanel { href={`//${Config.routes.replays}/download`} class="button replayDownloadButton" > - Download replay + Download replay

{} {isNotTiny && } {isNotTiny && }

{room.side ? ( @@ -749,7 +761,7 @@ class BattlePanel extends PSRoomPanel {

) : (

- +

)}
; diff --git a/play.pokemonshowdown.com/src/panel-chat-tournament.tsx b/play.pokemonshowdown.com/src/panel-chat-tournament.tsx index de58cd93e..43c04b70a 100644 --- a/play.pokemonshowdown.com/src/panel-chat-tournament.tsx +++ b/play.pokemonshowdown.com/src/panel-chat-tournament.tsx @@ -473,7 +473,7 @@ export class TournamentBox extends preact.Component<{ tour: ChatTournament, left onSubmit={this.acceptChallenge} onValidate={this.validate} > {(info.isJoined && !info.challenging && !info.challenged && !info.challenges?.length) && ( - + )} {} {!!(!info.isStarted && info.isJoined) && ( @@ -514,7 +514,7 @@ export class TournamentBox extends preact.Component<{ tour: ChatTournament, left
@@ -544,7 +544,7 @@ export class TournamentBracket extends preact.Component<{ {row.name}{row.score} {i < 3 ? ( - + ) : null} ))} @@ -657,9 +657,15 @@ export class TournamentBracket extends preact.Component<{ {data?.type === 'table' ? this.renderTableBracket(data) : data?.type === 'tree' ? : null} - {this.props.poppedOut ? - : - } + {this.props.poppedOut ? ( + + ) : ( + + )}
; } } diff --git a/play.pokemonshowdown.com/src/panel-chat.tsx b/play.pokemonshowdown.com/src/panel-chat.tsx index 0de6b5386..5f598fc8b 100644 --- a/play.pokemonshowdown.com/src/panel-chat.tsx +++ b/play.pokemonshowdown.com/src/panel-chat.tsx @@ -974,7 +974,7 @@ class ChatPanel extends PSRoomPanel { static readonly routes = ['dm-*', 'groupchat-*', '*']; static readonly Model = ChatRoom; static readonly location = 'right'; - static readonly icon = ; + static readonly icon = ; override componentDidMount(): void { super.componentDidMount(); this.subscribeTo(PS.user, () => { @@ -1045,7 +1045,7 @@ class ChatPanel extends PSRoomPanel { return {challengeTo}{challengeFrom}{PS.isOffline &&

- +

}
{room.tour && } diff --git a/play.pokemonshowdown.com/src/panel-ladder.tsx b/play.pokemonshowdown.com/src/panel-ladder.tsx index c9491b688..8ee2eb375 100644 --- a/play.pokemonshowdown.com/src/panel-ladder.tsx +++ b/play.pokemonshowdown.com/src/panel-ladder.tsx @@ -97,7 +97,7 @@ class LadderFormatPanel extends PSRoomPanel { static readonly id = 'ladderformat'; static readonly routes = ['ladder-*']; static readonly Model = LadderFormatRoom; - static readonly icon = ; + static readonly icon = ; override componentDidMount() { const { room } = this.props; @@ -156,7 +156,7 @@ class LadderFormatPanel extends PSRoomPanel { const room = this.props.room; if (room.loading || !BattleFormats) { - return

Loading...

; + return

Loading...

; } else if (room.error !== undefined) { return

Error: {room.error}

; } else if (!room.ladderData) { @@ -179,7 +179,7 @@ class LadderFormatPanel extends PSRoomPanel { {room.ladderData.toplist.map((row, i) => - {i < 3 && } {i + 1} + {i < 3 && } {i + 1} {

- Seasonal rankings + Seasonal rankings {this.renderSearch()}

@@ -225,7 +225,7 @@ class LadderFormatPanel extends PSRoomPanel { class LadderListPanel extends PSRoomPanel { static readonly id = 'ladder'; static readonly routes = ['ladder']; - static readonly icon = ; + static readonly icon = ; static readonly title = 'Ladder'; override componentDidMount() { @@ -262,7 +262,7 @@ class LadderListPanel extends PSRoomPanel {

{this.renderList()} diff --git a/play.pokemonshowdown.com/src/panel-mainmenu.tsx b/play.pokemonshowdown.com/src/panel-mainmenu.tsx index 8ff401129..7e3009cf4 100644 --- a/play.pokemonshowdown.com/src/panel-mainmenu.tsx +++ b/play.pokemonshowdown.com/src/panel-mainmenu.tsx @@ -434,7 +434,7 @@ class MainMenuPanel extends PSRoomPanel { static readonly id = 'mainmenu'; static readonly routes = ['']; static readonly Model = MainMenuRoom; - static readonly icon = ; + static readonly icon = ; override focus() { this.base?.querySelector('.formatselect')?.focus(); } @@ -504,10 +504,14 @@ class MainMenuPanel extends PSRoomPanel { class={`mini-window-header${notifying}`} draggable onDragStart={this.handleDragStart} onClick={this.handleClickMinimize} > + + - - {room.title} {this.renderMiniRoom(room)} @@ -547,12 +551,12 @@ class MainMenuPanel extends PSRoomPanel { return {PS.isOffline &&

- +

}
; } @@ -560,15 +564,15 @@ class MainMenuPanel extends PSRoomPanel { return {PS.mainmenu.searchCountdown ? ( <> - +

) : (PS.mainmenu.searchSent || PS.mainmenu.search.searching.length) ? ( <>

diff --git a/play.pokemonshowdown.com/src/panel-page.tsx b/play.pokemonshowdown.com/src/panel-page.tsx index 0490284de..47ad884b2 100644 --- a/play.pokemonshowdown.com/src/panel-page.tsx +++ b/play.pokemonshowdown.com/src/panel-page.tsx @@ -48,7 +48,7 @@ function PageLadderHelp() { return

How the ladder works

diff --git a/play.pokemonshowdown.com/src/panel-popups.tsx b/play.pokemonshowdown.com/src/panel-popups.tsx index 029f499fc..adceaa803 100644 --- a/play.pokemonshowdown.com/src/panel-popups.tsx +++ b/play.pokemonshowdown.com/src/panel-popups.tsx @@ -149,8 +149,8 @@ class UserPanel extends PSRoomPanel { buttonbar.push(
,

- {} - + {} +

); } @@ -369,7 +369,7 @@ class UserOptionsPanel extends PSRoomPanel {

{}

) : ( ))} {} {canBan && !this.state.showMuteInput && !this.state.showConfirm && (this.state.showBanInput ? ( @@ -404,7 +404,7 @@ class UserOptionsPanel extends PSRoomPanel {
) : ( ))}

@@ -611,7 +611,7 @@ class OptionsPanel extends PSRoomPanel { {this.state.showStatusInput ? (

- +

) : (

@@ -744,10 +744,10 @@ class OptionsPanel extends PSRoomPanel {


{PS.user.named ?

- {} - + {} +

:

- +

}
; } @@ -857,7 +857,7 @@ class LoginPanel extends PSRoomPanel { (Others will be able to see your name change. To change name privately, use "Log out")

} {loginState?.needsPassword &&

- if you registered this name: + if you registered this name:

} {loginState?.needsGoogle && <> -

if you registered this name:

+

if you registered this name:

}

@@ -893,7 +893,7 @@ class LoginPanel extends PSRoomPanel {

{loginState?.name &&

- if not: + if not:

This is someone else's account. Sorry. @@ -1501,10 +1501,10 @@ class RoomTabListPanel extends PSRoomPanel { const verticalTabs = PS.prefs.onepanel === 'vertical'; return

    - {PS.leftRoomList.map(roomid => PSHeader.renderRoomTab(roomid))} + {PS.leftRoomList.map(roomid => PSHeader.renderRoomTab(roomid, true))}
    - {PS.rightRoomList.map(roomid => PSHeader.renderRoomTab(roomid))} + {PS.rightRoomList.map(roomid => PSHeader.renderRoomTab(roomid, true))}