Commit Graph

5719 Commits

Author SHA1 Message Date
Starmind
2ef97f83f1
Upgrade Wikimedia CSS parser (#2126)
Fixes #2119
2023-06-16 11:33:53 -07:00
Leonard Craft III
f0d9f53ded
Update raw team length restriction to 25 KB (#2125) 2023-06-16 01:28:17 -04:00
Kris Johnson
faf40776a0
Teambuilder: Fix LC support (#2123) 2023-06-04 00:57:33 -04:00
Mia
1286e9f15d
Sync ps-web with master (#2122) 2023-06-02 16:28:04 -04:00
Kris Johnson
c55c7a4689
Update spritesheet indexes (#2121) 2023-06-02 15:36:19 -04:00
Marty-D
a526a66dfa
Update .babelrc 2023-06-02 15:34:37 -04:00
pyuk-bot
a57a351fd8
Tooltips: Show true category for Tera Blast, etc. (#2117) 2023-06-02 14:58:52 -04:00
pyuk-bot
9e7650ecae
MnM: Display correct ability after a forme change (#2116) 2023-06-02 14:58:25 -04:00
Guangcong Luo
28c87f2e4a
Update Privacy Policy
(apparently exact phrasing is important)
2023-05-02 06:35:36 -07:00
Guangcong Luo
e85f91e74a
Update Privacy Policy
(Pointed out by YouTube API compliance)
2023-05-02 06:02:44 -07:00
Mia
720e41ccec
Bring us into compliance with YouTube API terms (#2111) 2023-04-10 19:39:05 -07:00
Kris Johnson
9f348ab431
Make LC support less hardcoded (#2110)
* Make LC support less hardcoded

* oops
2023-04-03 00:23:41 -04:00
Guangcong Luo
fc00e68231 Fix performance on long battles
1000-turn battles often took over a minute to load, but they should now
be loaded in a few seconds. In addition, loading no longer freezes tabs,
and skipping several turns back should be a lot more performant.

There are two tricks here:

1. Every 300ms, we rest for 1ms to let the event loop run, which doesn't
   provide _that_ much UI responsiveness, but enough for the tab not to
   freeze entirely, and allows things like leaving the battle or clicking
   "Prev turn" multiple times in a row.

2. Instead of writing every single turn to the battle log when skipping
   to the end of a replay (such as when joining a battle), we only write
   the most recent 100 turns. This drastically speeds up loading.
2023-03-27 04:42:46 -04:00
Guangcong Luo
7ba9053742 Update Replay play button
Two simple changes:

1. The "Play" button on replays is now button-class (and affected by
   dark mode)

2. "Resume" no longer appears over paused replays (obviously the
   play/pause button is still there), which should make things easier
   for anyone trying to narrate a replay at their preferred pace.
2023-03-27 04:38:58 -04:00
Marty-D
f9b1bde104
Update Pokemon icons sheet 2023-03-23 15:43:36 -04:00
Kris Johnson
254801bdff
Teambuilder: Fix slicing moves (#2108) 2023-03-23 15:41:01 -04:00
Karthik
165b2b7e6f
Support new Commander activation message (#2106) 2023-03-23 15:40:38 -04:00
Leonard Craft III
a1db064307
Fix build (#2107) 2023-03-23 15:39:16 -04:00
Guangcong Luo
5a6a2cbfdb Website: Use an upscaled background
I heard some complaints about Horizon looking blurry on large screens, so
here I am spending nearly 600 KB of the home page's 1 MB bandwidth use on
a nice-looking background.

To be fair, it is in fact a nice-looking background and the most
eyecatching thing there, so it's probably worth it.
2023-03-19 02:50:32 -04:00
Guangcong Luo
accd7e9677 Fix interstice appearance 2023-03-19 02:48:10 -04:00
Guangcong Luo
6f1b435fdb Center new website design on small screens
This actually makes a surprising amount of difference for now nice things
look!

This takes advantage of inline-block, a feature not supported by IE6. I'm
always weirdly hesitant to use "modern" CSS, but I suppose worrying about
IE6 support is a bit insane even for me; even Replays required IE7+ when
I first wrote it.
2023-03-19 02:44:37 -04:00
Guangcong Luo
7c216564f5 Support passing a text log to Battle
Battle previously wanted an array of strings, but text logs from replays
are stored as a text file, and so supporting pure strings makes the Battle
constructor easier to use.
2023-03-19 00:51:43 -04:00
Guangcong Luo
6b712f24d0 Battle: Support autoresize
PS's current desktop client supports mobile. But we currently use battle
scenes in four places:

- PS itself
- Replays
- Downloaded replays
- PS Preact client

And the other three don't support mobile. That changes today! Well, it
doesn't, but it changes sometime in the future, with this being the
next step.

So that the code doesn't need to be duplicated between all four clients,
it's been moved from `client-battle.js` to `battle.ts`.
2023-03-19 00:51:26 -04:00
Guangcong Luo
86a70287bb
Update dependencies 2023-03-16 05:01:37 -07:00
Marty-D
4e52d45423
Website: Add current OU to "official" 2023-03-15 15:56:34 -04:00
JagSamurott
d66afbff0e
Fix cries for Gen 9 forms (#2100)
Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>
2023-03-14 19:44:39 -04:00
Kris Johnson
6418607ed0
Teambuilder: Fix National Dex BH EVs (#2105) 2023-03-14 19:39:55 -04:00
Karthik
6192807b24
Remove added type upon Terastallization (#2104) 2023-03-14 19:39:17 -04:00
Kris Johnson
fadd26b99a
Website: Update ladder display names (#2103) 2023-03-14 19:38:58 -04:00
Guangcong Luo
a78f3c049e Fix crash from #2005 2023-03-14 02:13:18 -04:00
Guangcong Luo
48840f52cf Website: Fix navbar on small screens 2023-03-14 02:12:45 -04:00
Guangcong Luo
46dea1f3cb Website: Make nav buttons pop a bit more 2023-03-13 23:05:20 -04:00
Guangcong Luo
1b0b51743c Fix crash in Replays 2023-03-13 22:52:26 -04:00
Guangcong Luo
ca4477eb93 Migrate other website pages to the redesign
The redesign was always designed to accommodate all PS pages; I just
dragged my feet in transitioning the other pages over.

Sadly, the other main tabs (dex, replays, ladder) can't be
transitioned over because they use our panel layout.
2023-03-13 22:49:34 -04:00
Guangcong Luo
0cdd61b85a Redesign home page
I actually did this redesign way back in April 2022, but I never got
around to committing it. I'm doing that now.
2023-03-13 07:36:53 -04:00
Karthik
ac2d1bd81d
Build: Fix compiled TS file count (#2074) 2023-03-11 14:36:48 -08:00
Marty-D
9ec5d01e92
Teambuilder: Support NatDex Draft formats properly 2023-03-05 19:42:21 -05:00
Kennedy
545a434069
Update link for Generation 9 Random Battles (#2099) 2023-03-01 14:48:40 -05:00
Kris Johnson
65bff43f6f
Add tooltips for new moves (#2102) 2023-03-01 14:47:59 -05:00
Kris Johnson
dffa7bfa05
Add new move animations (#2101) 2023-02-27 16:50:44 -05:00
Marty-D
81c72199cd
Update Pokemon icons sheet 2023-02-27 16:50:15 -05:00
Karthik
73eb46cc66
Properly handle Orichalcum Pulse activation messages (#2098) 2023-02-01 14:46:35 -05:00
Alexander B
5cd9238e60
Tooltips: Fix Steely Spirit to boost ally moves (#2097) 2023-01-29 13:21:09 -05:00
Karthik
3fe827e2d1
Fix Cosmetic forme sprites not showing in Gen 9 (#2096) 2023-01-29 13:17:59 -05:00
Karthik
ae9588b08e
Fix Tera Type not exporting when backing up all teams (#2094) 2023-01-21 12:18:08 -05:00
Marty
0707457425 Update Tauros form names 2023-01-21 12:09:19 -05:00
Marty-D
a12563218e
Prepare for renaming Paldean Tauros forms 2023-01-20 17:28:24 -05:00
Karthik
c35b8f1825
Fix Tera permanently replacing sprite (#2090) 2023-01-20 17:28:01 -05:00
Kris Johnson
9883683c10
Teambuilder: Update OM support for Gen 9 (#2089) 2023-01-15 14:29:18 -05:00
Hisuian Zoroark
ad261880c3
Tooltips: Don't show drop for same Ruin Abilities (#2088) 2023-01-15 14:28:01 -05:00