Commit Graph

252 Commits

Author SHA1 Message Date
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
pyuk-bot
c2365f3b16
Support multiple generations of Metronome Battle (#2029) 2022-11-25 20:50:04 -05:00
Kris Johnson
049434bd66
Add Gen 9 (#2011) 2022-11-17 20:46:47 -05:00
Karthik
51afc4d350
Teambuilder: Fix illegal moves showing in Nintendo formats (#1998) 2022-10-08 18:03:26 -04:00
Kris Johnson
d4e9642b29
Properly tier National Dex (#1990) 2022-08-24 19:40:49 -04:00
Kris Johnson
03e89bc122
Teambuilder: Add National Dex RU support (#1989) 2022-08-22 12:40:53 -04:00
Kris Johnson
9cf83da7cf
Teambuilder: Hardcode out Pikachu-Alola from LGPE (#1986) 2022-08-22 12:40:02 -04:00
Karthik
8389a55c92
Teambuilder: Fix Dragon Scale category in Gen 2 (#1981) 2022-07-24 22:06:44 -07:00
Marty-D
b5bf36f34e
Teambuilder: Fix regression in Gen 4 lower tier display 2022-06-30 14:48:13 -04:00
Christopher Monsanto
0830c457d6 Disable building sets
Removes a dependency on @smogon/sets. Sets will have to be manually copied to
data/sets
2022-06-27 22:44:40 -04:00
Adam Tran
6cdb206747
Add source-map dependency (#1970) 2022-05-12 22:11:40 -04:00
Karthik
9c9c0f1cae
Teambuilder: Fix unsketchable moves in past gens (#1965) 2022-04-25 17:58:05 -04:00
Kris Johnson
85604da1ad
Unify teambuilder tiers across gens (#1960) 2022-04-18 12:43:05 -04:00
Kris Johnson
9b5938c171
Add more tiers to the BDSP teambuilder (#1955) 2022-04-07 15:12:29 -04:00
pacmanboss256
98a66faef0
Categorize more evolution items as useless (#1952) 2022-04-07 15:11:23 -04:00
Marty-D
83feec1be1
Teambuilder: Fix Alolan Sandshrew listing for LC 2022-01-29 16:14:45 -05:00
Kris Johnson
3339b80c7b
BW PU/ZU: Add teambuilder support (#1920) 2022-01-11 10:42:58 -05:00
Quanyails
fd20697389
Write learnsets to JSON (#1911) 2022-01-03 17:55:00 -08:00
Kris Johnson
a583e3e06f
Add RU to the BDSP teambuilder (#1913) 2022-01-01 13:34:54 -08:00
Karthik
d9a956e407
Refactor Ability data overriding (#1908) 2021-12-24 22:59:41 -08:00
Karthik
fea7f88e08
Teambuilder: Set Arceus forme item to Plate in Gen 4-6 & BDSP (#1894) 2021-12-02 16:35:46 -08:00
Kris Johnson
23c9e4d5a1
Add teambuilder support for BDSP CAP (#1901) 2021-12-02 14:11:59 -08:00
Kris Johnson
399b33834d
Add BDSP Monotype teambuilder support (#1900) 2021-12-01 12:42:26 -08:00
Guangcong Luo
efa553d96b Build: Move ads/analytics into config
This keeps ads/analytics out of the repository, since they
shouldn't be used in forks and dev machines anyway.

Hiding ads in `website/news/include.php` was a thing I did in
the early days because one of the devs was ashamed of ads, and
`website/` wasn't in a public repository at the time. At this
point, though, I'm done being ashamed of it. You can obviously
see ads on the website and everyone knows they fund the server.
2021-11-25 20:52:51 -05:00
Guangcong Luo
0a47f395e4 Fix crash in build 2021-11-24 17:43:30 -05:00
Guangcong Luo
66ba58fc61 Fix animated sprite data in testclient
We were relying on the existence of `sprites/` to decide whether to
build sprite data, but at some point `sprites/` has had a few things
bypassing `.gitignore`. The new detection should be more reliable.

I also added some code to correct previous mistaken builds.

Fixes #1851
2021-11-21 16:18:47 -05:00
Karthik
73042b0ded
Teambuilder: Fix bugs from #1889 (#1890) 2021-11-18 20:03:01 -08:00
Kris Johnson
6cd9a91b53
Add BDSP teambuilder support (#1889)
* Finish client stuff

* Add BDSP doubles support

* Fix build
2021-11-18 19:21:11 -05:00
Karthik
35f8024807
Teambuilder: Fix some LC Pokemon showing twice (#1881) 2021-10-26 21:13:39 -04:00
Karthik
e1e254e871
Teambuilder: Show Ferroseed as legal in Gen 8 LC (#1872) 2021-10-09 19:06:40 -07:00
Karthik
6187132936
Add support for Let's Go move data overrides (#1829) 2021-09-29 21:30:28 -04:00
Karthik
280bc6da70
Teambuilder: Use Gen 7 VGC tier slices for all VGC/BS formats (#1868) 2021-09-29 21:19:36 -04:00
Kris Johnson
b416c28408
Teambuilder: Add support for Stadium tiers (#1859) 2021-09-19 10:31:53 -04:00
Karthik
1caf07bc8c
Teambuilder: Support Monotype bans (#1841) 2021-09-08 17:41:16 -04:00
Karthik
b30cd0d80d
Fix selecting cosmetic formes in old gens (#1849) 2021-09-08 17:40:01 -04:00
Karthik
370e574d96
Teambuilder: Fix bugs and implement new policy for STABmons (#1846) 2021-09-08 17:39:08 -04:00
Kris Johnson
fb9ceab6f9
Change 'letsgo' mod to 'gen7letsgo' in build-indexes (#1834) 2021-07-07 21:23:42 -07:00
Karthik
39000052be
Use getGen3Category to override category for gen<3 (#1818) 2021-05-27 19:34:46 -07:00
Karthik
e003a0e744
Refactor past-gen Species/Move data format (#1813) 2021-05-26 14:32:16 -07:00
May Evans
675191cd4b
Add OU by technicality to RBY (#1814) 2021-05-25 21:46:00 -07:00
Karthik
94d372c95b
Fix old gen teambuilder bugs (#1786) 2021-05-11 20:19:08 -07:00
Karthik
cb4371b14f
Fix NDUUBL again (#1789) 2021-05-11 19:53:46 -07:00
Karthik
28dafccef2
Fix NatDex Teambuilder Table for UUBL (#1773) 2021-05-03 16:07:51 -07:00
Guangcong Luo
017b54c521 Update for BattleTypeChart change
(BattleTypeChart keys were made lowercase)
2021-04-14 02:02:41 -07:00
Guangcong Luo
6475e7a268 Switch .gitignore back to blacklist
VS Code's search feature doesn't support .gitignore whitelisting. :(

(Also don't compile .d.ts files.)
2021-04-14 02:02:41 -07:00
Guangcong Luo
c24cbd6891 Compile chat-formatter from server
This is the point at which all these refactors to the build system pay
off: we can now directly share code from server. First off:
chat-formatter is now built directly from the server!
2021-04-13 14:06:25 -07:00
Guangcong Luo
2cd13d9de2 Remove babel-cli dependency
At this point, we might as well use babel-core directly.

New system supports source maps for `battledata` and `graphics`! Woo!

It also logs the compile step.
2021-04-13 14:06:25 -07:00
Guangcong Luo
d40fa7f28e Update Babel to latest version 2021-04-10 22:30:50 -07:00
Guangcong Luo
f36c42dd89 Update build tools for Dex API refactor 2021-04-08 03:09:35 -07:00
Guangcong Luo
0f3ec58174 Build JSON versions of the pokedex and moves tables
These are to ease third-party development done in languages other than
JS.

Their URLs are in WEB-API.md
2021-03-16 07:32:04 -04:00
Kris Johnson
8e56a4dfcc
Add teambuilder support for Gen 1 NU (#1730) 2021-03-15 14:40:23 -04:00
Guangcong Luo
c607b2a507 Support more compound words in search 2021-02-08 23:14:47 -05:00
Guangcong Luo
aa82e72e9a
Partial drag/drop panel tab rearranging (#1641)
Not full support, but basic rearranging is now possible!

Supported:

- Rearranging the topbar
- Dragging PMs from the Main Menu to the topbar

Not supported:

- Dragging things from the topbar to the Main Menu
2021-02-01 23:40:20 -08:00
Konrad Borowski
0005f1f79f
Use JSON.parse for parsing teambuilder tables (#1714)
This optimizes JavaScript parsing performance. V8 developers
recommend applying this optimization for objects of 10 kB or
larger, see <https://v8.dev/blog/cost-of-javascript-2019#json>
for more details. Teambuilder tables are 3.5 MBs which is much
more than 10 kB.
2021-01-23 09:45:20 -08:00
Kris Johnson
1693ccfe06
Remove LC Uber references (#1712)
And (Uber) from National Dex teambuilder.
2021-01-19 03:34:01 +04:00
Adam Tran
1f3c8cf450
Add sourceMaps and vscode debug configurations (#1707)
* launch json

* vscode updates

* clientUrl rename
2021-01-10 16:58:28 -08:00
Kris Johnson
69fa5e8435
Adjust support for building text files (#1664) 2020-11-11 14:41:05 -08:00
Kris Johnson
fffd393f97
Fix National Dex teambuilder (#1655) 2020-11-03 00:10:12 -05:00
Kris Johnson
ac8846eb9e
Add teambuilder support for DLC 1 metas and fix various bugs (#1654) 2020-11-03 05:29:01 +04:00
Kris Johnson
6d02caa2de
Add support for Gen 3 Doubles formats (#1650) 2020-10-31 19:29:16 -07:00
Guangcong Luo
7fc87cad1c Build data/text.js from server
text.js is no longer maintained in the client repo; it's now built
directly from the server's data/text/ directory.
2020-10-27 17:09:49 +00:00
Kris Johnson
2593d97bae
Support AG in the Gen 4 teambuilder (#1634) 2020-10-12 02:56:44 +04:00
Kris Johnson
e30bff092a
National Dex: Split UU and non-UU Pokemon (#1629) 2020-10-11 17:23:34 +04:00
Guangcong Luo
c2fe4b72b4 Update item viability
- Big Root and Focus Band are now usually useless
- A bunch of new evolution items weren't correctly being marked as
  useless
2020-10-06 21:02:53 -07:00
Kris Johnson
91bfc76526
Tier implied bans in National Dex correctly (#1623) 2020-10-05 14:24:38 -07:00
Marty-D
13a82cef78
Support GSC PU
Hardcoded so as not to disturb the GSC NU list
2020-09-30 13:54:35 -04:00
Guangcong Luo
d6d603ae2a Update build scripts for new item/move/ability text 2020-09-07 18:11:18 -04:00
Kris Johnson
8f59a7b334
Improve teambuilder support for Doubles OMs/RBY NU (#1612) 2020-09-01 16:16:22 +04:00
Marty-D
66bdc4b9a4
Teambuilder: Support OU by technicality for Gen 4 and 5
and swap (OU) and UUBL placements
2020-08-29 13:33:19 -04:00
Guangcong Luo
502f340438 Update for no-globals refactor
Ironically we already weren't using globals, so this is just the
`Dex.getId` -> `Dex.toID` rename.
2020-08-08 13:00:09 -05:00
petuuuhhh
1d16ce2e4f
Improve past gen item and move viability (#1590) 2020-08-06 09:56:52 -07:00
Kris Johnson
bfbdf8ca62
Use ruleTable to assign tiers in the teambuilder (#1586) 2020-08-01 23:34:15 -07:00
Kris Johnson
1d6c5bdefe
Handle Gigantamaxing properly (#1555) 2020-07-30 15:49:05 -07:00
Guangcong Luo
55b57799c0 Finish migrating website repository
This fixes up the last few remaining issues; from here on out,
pokemonshowdown.com should be served from `website/` with no
known problems.
2020-07-27 21:03:31 -04:00
Guangcong Luo
8ae2c71415 Support Battle prefix removal in server data
Renaming the client stuff will be a huge mess which I'm going to just
leave until later.
2020-07-24 12:46:56 -07:00
Annika
367ed82e56
Support configurable URLs (#1543) 2020-07-21 15:27:21 -07:00
Kris Johnson
943a7cee78
Update National Dex teambuilder support (#1541) 2020-07-03 01:27:51 +04:00