Commit Graph

5329 Commits

Author SHA1 Message Date
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
8aa6db2d81 Update TypeScript version 2021-04-11 04:46:25 -07:00
Guangcong Luo
621d6565e6 Update .babelrc
The new Babel version gives us access to transforming `||=` and `??`,
and removes the need for a lot of dependencies that are now included in
`@babel/preset-env` thanks to them being released rather than proposals.

This also adds a new Babel plugin to simply remove import/export when
building, which seems to be the best way to make `import` and `export`
usable on the client.
2021-04-10 23:23:49 -07:00
Guangcong Luo
d40fa7f28e Update Babel to latest version 2021-04-10 22:30:50 -07:00
Leonard Craft III
8486135090 Tooltips: Improve Speed calculation accuracy (#1745) 2021-04-10 15:49:51 -04:00
Guangcong Luo
f36c42dd89 Update build tools for Dex API refactor 2021-04-08 03:09:35 -07:00
Mia
64f9c09a62 Battle-Log: Support custom start times in youtube tags (#1742) 2021-04-07 07:32:45 -07:00
Leonard Craft III
3604dd88dd Fix display of move choices (#1743)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2021-04-05 20:50:09 -07:00
Guangcong Luo
d9899a14f9 Fix Multi Battle support 2021-04-03 22:56:51 -04:00
Annika
5b3d1f868a Fix whitespace mistakes in Spanish FAQ 2021-04-03 18:13:30 -07:00
Annika
61f244618c Website: Add more Spanish translations
Courtesy of Dorron
2021-04-03 18:10:04 -07:00
Guangcong Luo
70dcd34c0d Improve FFA sidebar locations
This isn't much of an improvement tbh but I think most people will
find it more intuitive that the corner they're in is the corner
their pokemon is in?
2021-04-02 19:52:45 -07:00
pyuk-bot
9ed7b3a880 FFA: Visually separate Pokemon on the same "side" (#1738) 2021-04-02 19:27:53 -07:00
Guangcong Luo
4b07cce615 Fix multi battles not working on mobile 2021-04-02 22:27:07 -04:00
Guangcong Luo
f3d8f67786 Fix pokemon list glitching when zoomed 2021-04-02 02:36:07 -04:00
Guangcong Luo
a872ad08d8 Fix multi/FFA support
The original multi battles implementation had basically no support for
FFA, so this adds that support. I also fixed a lot of bugs that
apply to multi battles as well.
2021-04-02 02:36:07 -04:00
Annika
6c22b5ef2d Remove AFD prank for 2021
This reverts commit 7e5f14754c.
2021-04-01 21:08:42 -07:00
Mia
031702bf10 Restore old jQuery (#1737) 2021-04-01 12:12:06 -04:00
Kris Johnson
81caa06762 Add more support for National Dex (#1736) 2021-03-31 21:00:26 -07:00
HoeenHero
7e5f14754c AFD 2021 (#1735) 2021-03-31 17:55:46 -07:00
Mia
aa0086856a Update to latest jQuery 2.2.4 (#1733) 2021-03-30 18:41:38 -07:00
Kris Johnson
f57fbc2f1a FIx BattleTextParser#team (#1734) 2021-03-30 18:15:16 -07:00
Guangcong Luo
94d420eac0 Fix double-turn bug 2021-03-28 21:50:33 -07:00
Guangcong Luo
0c4f741aaa Fix battle perspective messages 2021-03-28 20:38:58 -07:00
Spandan Punwatkar
1fe0b7eb85 Client-side support for Multi Battles (#1649) 2021-03-28 15:13:07 -07:00
HoeenHero
576f773653 Fix links not opening in a new tab (#1732) 2021-03-23 12:11:20 -07:00
Mia
6e7d5461f6 Support using form elements to send commands (#1731) 2021-03-23 09:04:24 -07:00
Guangcong Luo
add22fbf0a Fix ladder reset permissions 2021-03-18 17:26:45 -04:00
Guangcong Luo
15e732c8de Fix crash in "Copy URL" button 2021-03-18 17:26:45 -04:00
Guangcong Luo
6fc353cbe3 Remove bad code
This part doesn't do anything because it's below
`else if ($elo > 1300)`.

Maybe we'll update the Elo formula some other time... :S
2021-03-18 13:36:48 -04: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
Kris Johnson
0f1db74ca4 Fix support for OMs in the teambuilder (#1725) 2021-03-15 14:40:11 -04:00
Mia
95bbe72129 Add a button to copy/paste password reset urls (#1728) 2021-03-15 07:54:45 -07:00
Annika
359f0915ec Website: Add Spanish translation for FAQ and Staff 2021-03-09 09:50:26 -08:00
Leonard Craft III
de908c70d4 Display Mental Herb cure text (#1724) 2021-03-07 17:35:09 -05:00
Marty-D
cff921d991 Tooltips: Fix Heat Crash and Heavy Slam 2021-03-07 17:25:36 -05:00
Annika
8f1b3120c6 Remove objectionable replays from the homepage (#1727)
Removes replays with slurs, inappropriate usernames, permabanned users, and/or runMinor errors from the homepage
2021-03-04 18:31:12 -05:00
Kris Johnson
8cd74fc707 Teambuilder: Don't recommend 252 all EVs in Gen 6 (#1723) 2021-02-15 01:36:16 -08:00
Kris Johnson
83bd792b1b Don't autofill EVs in Gen 6 Hackmons metas (#1722) 2021-02-13 14:56:37 -05:00
Annika
8e81d19b45 Credits: Move The Immortal to Retired Staff 2021-02-10 12:35:05 -08:00
Guangcong Luo
c607b2a507 Support more compound words in search 2021-02-08 23:14:47 -05:00
Guangcong Luo
c3a2ea92cb Fix data-href and <a><button> buttons
This adds support for more server-side Pages, and also moves support
for back buttons (in Ladder and Teambuilder) back into the router for
easier use.
2021-02-08 23:14:47 -05:00
Guangcong Luo
f4edbef2f7 Improve indications of PS loading
New PS now makes it much clearer when it's still connecting to the server,
and when it's connected.
2021-02-08 23:14:47 -05:00
Guangcong Luo
62a20cade2 Fix crash in ladder panel 2021-02-08 23:14:46 -05:00
Guangcong Luo
0635dd4342 Implement Logout button 2021-02-08 23:14:46 -05:00
Guangcong Luo
7670b51b1b Use /hidenext for the hide checkbox
(This matches the tooltip help and should have been done a long time ago.)
2021-02-05 20:38:48 -05:00
Mia
0e3c80238c Support a twitch embed (#1720) 2021-02-05 16:02:17 -08: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
Mia
868244d49f Improve banning servers (#1719) 2021-02-01 13:18:38 -08:00