pokemon-showdown-client/replay.pokemonshowdown.com
Guangcong Luo 5971e5151a
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Preact minor update batch 11
Minor
- Unhide right panel when choosing "Two panels" layout option
- Refactor focusing
  - Correctly focus next room when closing currently active room
  - Correctly focus room when joining new room
- Use strict mode on all compiled files
- Fix router when started on `/` (it previously required starting on a
  non-empty room ID, which wasn't noticeable back when the URL needed
  to be `/preactalpha`)
- Update teambuilder sidebar CSS, to make it easier to add regular text
  - This is mainly for the "Tournaments" button in the main menu,
    which shares the CSS
- Fix new tournament elim tree text in Safari
- Update new tournament elim tree highlighted links to reliably
  link every still-playing game
- Remove latest gen from format name displays everywhere
  - Previously, they would only be removed from the format dropdown,
    but now they're also gone from the Ladder tab, battle tabs, and
    `/rank`
- Support async d3 loading
  - This allows chatrooms to be loaded way before all our dependencies
    are fully downloaded
- Remove "[Gen 9]" from format names everywhere (previously it was only
  removed from the format dropdown)
  - Also add "[Gen 6]" to unlabeled formats in `/rank` (Gen 6 was the
    last time we didn't have format generation as part of format names)

Trivial
- Stricter JSX linting
  - (unfortunately, most of the JSX style enforcement I actually want
    isn't possible in @stylistic)
- Make room.subscribeTo's second parameter optional
- Rearrange and comment loading order
- Rename hiddenInit -> focusNextUpdate (clarity)
- Rename PSMain -> PSView (clarity)
- Fix button spacing in Change Password
- Add `touch-action: manipulation` to <a> tags
- Refactor `nodeSize` in elim tour trees
2025-04-18 05:47:58 +00:00
..
src Preact minor update batch 11 2025-04-18 05:47:58 +00:00
theme Redesign website top navigation 2025-04-01 18:21:04 +00:00
.htaccess Update replay download link 2025-04-13 08:12:44 +00:00
404.html Redesign website top navigation 2025-04-01 18:21:04 +00:00
apple-touch-icon.png
check-login.php
dirindex Improve directory indexes and 404 pages 2025-03-29 13:11:44 +00:00
download.html Update replay download link 2025-04-13 08:12:44 +00:00
favicon.ico
index.template.php Split off replays-index.tsx 2025-04-09 01:36:52 +00:00
README.md Improve Replays testclient documentation 2025-04-03 16:38:44 +00:00
replay-manage.php Replays: Restore edit function 2024-02-15 16:41:41 -06:00
replay.log.php Replays: Support easier ways of getting inputlogs 2025-04-06 17:58:29 +00:00
replays.lib.php Replays: Restore edit function 2024-02-15 16:41:41 -06:00
testclient.html Split off replays-index.tsx 2025-04-09 01:36:52 +00:00

PS replays database

This is the code powering https://replay.pokemonshowdown.com/

JSON API

The replays database has a JSON API, documented at:

https://github.com/smogon/pokemon-showdown-client/blob/master/WEB-API.md

Testing local changes

We now have a testclient.html for testing local changes.

  1. npm install <- you only have to do this the first time
  2. ./build
  3. open testclient.html in a browser.

And then repeat every time you make changes.

Features requiring login (private replay search, auto-self) won't work, but everything else should.