Commit Graph

228 Commits

Author SHA1 Message Date
Guangcong Luo
94a1876f61 Support non-full builds in testclient
Non-Preact testclients don't deal well with non-full builds anymore,
now that battledata includes data/text.js. This fixes it so that
they're usable (although no longer being able to edit battle-dex etc
without an initial full build still sucks, it's unavoidable).
2025-04-26 06:02:06 -07:00
Guangcong Luo
2ec10bc172 Preact: Improve teambuilder
- Add format chooser
- Show team name in title
- Support selecting species/item/ability/move from menu
- Clicking species/item/ability/move selects the text for easy replace
- Add Stats menu
- Add placeholder Details menu
- Add types and item icon
- "Add Pokemon" button

It's still a very long way to go, but it's starting to look properly
like the vision I have in my mind.

Minor
- Refactor
- Fix cachebuster for teambuilder CSS
- Improve teambuilder resources HTML
2025-04-25 11:38:45 +00:00
Mia
60ee938a1d Teams: Add a back button to the search/view pages
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2025-04-12 01:31:28 -05:00
Mia
8e378c6129 Add static website for viewing server-side teams 2025-04-09 19:36:58 -05:00
Guangcong Luo
5e5578a140 Bring back Replays build script 2025-04-02 21:17:16 +00:00
Guangcong Luo
399289a3f7 April Fool's 2025 updates
The main new joke is #2337, but I made a number of other tweaks.
In particular:

- Bringing back some text from AFD 2019, and adding some more
- Showing the Taunt and Chilly Reception jokes in `/afd sprites`
2025-04-02 04:36:17 +00:00
Guangcong Luo
b90195346c Hide ugly error when PHP is installed
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-03-24 04:23:30 -07:00
shrianshChari
bda9877190
Add teambuilder support for UUBL tiers (#2336)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
* Add support for Gen 3 UUBL (and every other UUBL tier)

* Satisfy linter
2025-03-19 13:23:16 -06:00
pyuk-bot
ec92955748
Teambuilder: Update popular items for gen 9 & add doubles support (#2321)
* Teambuilder: Customize Metronome Battle's popular items

* Teambuilder: Update popular items for gen 9 & add doubles support

* Fixes

* Update play.pokemonshowdown.com/src/battle-dex-search.ts

* Apply suggestions from code review

* Update play.pokemonshowdown.com/src/battle-dex-search.ts

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-02-26 13:40:49 -07:00
Guangcong Luo
a10821ab8b
Update to ESLint 9 (#2326)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This finally removes the tslint dependency and switches to eslint.

There are a lot of other changes here, too, to bring the codebase up to
server standards. TSLint never had much in the way of indentation
enforcement.

Not very happy about eslint splitting itself up over 6 dependencies,
or its documentation over three websites, nor how poorly documented the
new flat config is, but I mean, eslint's gonna eslint. Customizing
would be even harder if we tried to use Biome or something. They mostly
seem to go full Prettier.

Also here are some changes to our style rules. In particular:

- Curly brackets (for objects etc) now have spaces inside them. Sorry
  for the huge change. ESLint doesn't support our old style, and most
  projects use Prettier style, so we might as well match them in this way.
  See https://github.com/eslint-stylistic/eslint-stylistic/issues/415

- String + number concatenation is no longer allowed (except in ES3
  code). We otherwise now consistently use template strings for this.
2025-02-25 20:05:32 -08:00
Guangcong Luo
c1ced5dbe3 Update Privacy Policy for new ad company 2024-10-18 00:29:44 +00:00
Kris Johnson
95bd7974b3 Add teambuilder support for 35 Pokes 2024-10-01 10:44:06 -06:00
Alex McConnell
2cfbc35332
Add Gen 5 ZU Support (#2262)
* Attempt to add teambuilder support for Gen 5 ZU

* Add teambuilder support for Gen 5 ZU

* Update play.pokemonshowdown.com/src/battle-dex-search.ts

* Update build-tools/build-indexes

* Add proper showdown filter for Gen 5 ZU

* Fix Lint issue with ZU tierset creation

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-07-22 01:22:49 -06:00
Guangcong Luo
c2ec42310c Support test configs
This adds support for test configs, to make it easier to test config
changes without affecting the live service.
2024-07-20 22:33:16 +00:00
Leonard Craft III
1019ac1b59
Convert noSketch to move flag (#2261) 2024-07-14 23:45:43 -05:00
shrianshChari
a0bab922fe
Add teambuilder support for BW 1 (#2257) 2024-07-06 21:22:31 -06:00
dot-Comfey
baf31cfe06
Properly display legal egg moves in teambuilder (#2256) 2024-07-04 15:04:02 -05:00
Karthik
442d576c31
Override Fling and Natural Gift data for items in past gens (#2252) 2024-06-19 23:44:15 -05:00
Leonard Craft III
8acf7c076b Mark more evolution items as bad 2024-05-27 17:02:27 -05:00
Kris Johnson
9434aed35b
Add SSB client support (#2245)
* ssb support

* SSB

* teehee

* poop

* more tooltip things

* Fix tooltips

* ok support

* More tooltip updates

* last changes

* Fix build
2024-05-04 12:02:01 -06:00
Karthik
17eef20bcf
Support new ability flags (#2210) 2024-01-08 18:10:58 -06:00
pyuk-bot
7d1943952c
Tooltips: Fix Tera BP minimum (#2202) 2024-01-01 00:36:27 -07:00
Kris Johnson
e0ee4e4e66 Fix National Dex Doubles teambuilder 2023-12-25 16:00:50 -07:00
Karthik
1a35b5c012
Teambuilder: Allow Tier filters on old gens (#2190) 2023-12-16 01:34:43 -07:00
Karthik
43966190c6
Teambuilder: Fix National Dex item table (#2191) 2023-12-16 01:34:10 -07:00
Kris Johnson
79970ed2d2
Add DLC2 client support (#2196)
* Add DLC2 client support

* vgc :-P
2023-12-15 21:34:41 -07:00
Kris Johnson
df11be96d2 Adjust ZU teambuilder support again 2023-12-01 10:49:54 -07:00
Kris Johnson
4d920caed7 Teambuilder: Add support for Ubers UU 2023-11-24 14:48:15 -07:00
Kris Johnson
77b75b5806 Adjust ZU teambuilder support 2023-11-17 14:28:57 -07:00
Guangcong Luo
5f614debe4 Satisfy eslint
At some point we need to update eslint but now is not that point.
2023-11-17 00:39:33 +00:00
Guangcong Luo
7732ec78f3 Refactor build tools for readability
(Also fixes the build error.)
2023-11-16 23:50:15 +00:00
Mia
4fa3ed7c33 Build-tools: Always try to update news 2023-11-16 16:51:11 -06:00
Guangcong Luo
5d41f3ec93
Reorganize directories (#2187)
Files meant to be served have been moved into
`play.pokemonshowdown.com/` and `pokemonshowdown.com/`.

We now have three directories for the three subdomains handled by this
repo:

- `pokemonshowdown.com/`
- `play.pokemonshowdown.com/`
- `replay.pokemonshowdown.com/`

Naming them after the subdomains will make it much easier to tell where
the files for each go.

The diff is probably useless; it'll be easier if you just look at the
new tree:
https://github.com/smogon/pokemon-showdown-client/tree/reorganize
2023-11-16 03:39:29 -08:00
Guangcong Luo
dc8e6cf254 Replays: Correct link previews
This should make Google search results and Discord link previews
for replays work correctly.

This actually involved a ton of work, but at least this work also
makes replays load faster.
2023-11-10 00:59:11 +00:00
Guangcong Luo
7a2b323eaf Deploy New Replays
The idea is to eventually move all client parts to their domain name
subdirectory, for clarity and better organization. New Replays is
just first.

Anyway, yeah, minor updates to New Replays, but otherwise it's just
getting deployed as-is, straight to

https://replay.pokemonshowdown.com/

The old URLs are getting taken down; they were only used for
development anyway.
2023-11-05 23:37:14 +00:00
Kris Johnson
c99981e81d FIx LC teambuilder 2023-11-01 12:36:16 -06:00
Kris Johnson
32d5476ed9 Fix ADV ZU teambuilder 2023-11-01 12:21:28 -06:00
Kris Johnson
b24a8c8dbe Add ZU teambuilder support 2023-11-01 11:37:56 -06:00
Guangcong Luo
235056ba75 Update New Replays
The main difference is that the main search screen should look
much nicer now.

https://pokemonshowdown.com/replays/

Putting search/featured/recent in separate sections makes the new
design look much nicer. And dark mode is now fully supported.
2023-10-26 21:38:59 +00:00
Guangcong Luo
fd28aca33f WIP New Replays
New Replays isn't done yet but I've done a lot of work on it and
probably it deserves a commit.

Why rewrite Replays:

- I redesigned pokemonshowdown.com to look more modern and support
  dark mode, and rejiggering Old Replays would be a lot of work
  anyway.

- It'd be nice to actually deploy some of PS's whole Preact
  infrastructure somewhere, instead of it just being in development
  hell.

- Nice to get a second look at the relevant code, leading to fixes
  like fc00e68231 and f28b1e9bf3.

- Replays is due for a migration from JS/PHP to TS anyway.

Anyway, feel free to try out New Replays, it's live in:

https://pokemonshowdown.com/replays/

Old Replays will stick around until we hit feature parity, but
that shouldn't be too long (I know, famous last words).
2023-10-26 14:56:05 +00:00
Kris Johnson
c8f9666707
Tweak client for DLC (#2148) 2023-09-13 22:10:25 -04:00
Marty-D
ed7359f296
Update build-indexes 2023-09-13 21:38:44 -04:00
Marty-D
dc02526768
Update build-indexes 2023-09-13 21:22:30 -04:00
Kris Johnson
bdb35e097e
Add Pre-DLC client support (#2146) 2023-09-13 16:59:55 -04:00
Kris Johnson
16a9fc0a87
Fix teambuilder for Gen 9 Hackmons (#2133) 2023-08-01 03:15:42 -04:00
Kris Johnson
faf40776a0
Teambuilder: Fix LC support (#2123) 2023-06-04 00:57:33 -04:00
Kris Johnson
9f348ab431
Make LC support less hardcoded (#2110)
* Make LC support less hardcoded

* oops
2023-04-03 00:23:41 -04:00
Karthik
ac2d1bd81d
Build: Fix compiled TS file count (#2074) 2023-03-11 14:36:48 -08:00
Mia
a4eef221bd
Update to handle esbuild migration (#2064) 2022-12-22 13:25:00 -08:00
Karthik
bd4c81dc67
Fix Eviolite NFE check for past gens (#2040) 2022-12-04 14:26:14 -05:00