Commit Graph

4571 Commits

Author SHA1 Message Date
Kirk Scheibelhut
883cd91fc8 Handle AFK '@-in-names' protocol (take 2) (#1270) 2019-05-05 22:43:54 +09:30
The Immortal
2b879e4561 Teambuilder: Add support for Trademarked OM 2019-05-01 18:44:44 +04:00
JetOU
1948e07da6 Fix guests not showing in options (#1269) 2019-04-23 02:55:03 +09:30
Guangcong Luo
5348d1312e Revert "Handle AFK '@-in-names' protocol (#1265)"
There were several major crashes arising from it.

This reverts commit ba1e6d31bf.
2019-04-22 09:38:06 +09:30
Kirk Scheibelhut
ba1e6d31bf Handle AFK '@-in-names' protocol (#1265) 2019-04-22 06:41:46 +09:30
Guangcong Luo
61ff5ae093 Turn off autocomplete in teambuilder
The teambuilder already has a built-in autocomplete function which
competes with it, and most users seem to prefer the built-in one.
2019-04-21 20:50:52 +09:30
asgdf
91e84d49da Teambuilder: Fix changed hidden abilities in older gens (#1266) 2019-04-20 15:08:51 +09:30
Konrad Borowski
4d2f86be7d Allow aria-label and aria-hidden HTML attributes 2019-04-16 22:08:58 +02:00
Kirk Scheibelhut
87a5510000 Add a persistent /blockchallenges & /blockpms toggle (#1263) 2019-04-12 00:53:38 +09:30
Guangcong Luo
62c01a0216 Fix support for new |updateuser| 2019-04-09 00:54:20 +08:00
Guangcong Luo
7d52fd8c30 Implement TeamDropdown
Currently it's in the Main Menu where the old team dropdown was, but
the plan is for "Battle!" to eventually open a separate Search window.
2019-04-05 17:34:20 +08:00
asgdf
2354abb853 Tooltips: Fix Plus/Minus/Victory Star (#1258) 2019-04-03 15:11:01 +08:00
arandompieceofcheese
2361a00769 Fix Toxic damage tooltip (#1256) 2019-04-03 11:54:33 +08:00
Dan Huang
2e2852f35c Add server build step to client build (#1262) 2019-04-03 11:40:45 +08:00
asgdf
6ca21b0a88 Fix battle playback state after using /afd (#1261) 2019-04-03 11:40:24 +08:00
Guangcong Luo
e659be101a April Fool's 2019 2019-04-02 15:20:14 -04:00
Kris Johnson
d6f6b524bd Fix teambuilder for LC formats (#1260) 2019-04-02 20:27:52 +04:00
Guangcong Luo
e6e65dde4f Update AFD 2019 implementation
AFD messages are now disabled by `/afd off`
2019-04-01 19:18:28 +08:00
Guangcong Luo
27061397e0 Update item viability 2019-04-01 00:53:38 +08:00
Slayer95
5aa356c650 Fix freedomDegrees documentation 2019-03-30 23:28:24 -05:00
Ivo Julca
5e52773bee Battle UI: Refactor building of tooltip arguments string 2019-03-26 15:09:13 -05:00
Guangcong Luo
9c3dcd6233 Improve readmore box appearance 2019-03-22 18:51:44 +09:00
Guangcong Luo
18cad2f6d6 Fix Notification crash in Edge 2019-03-22 18:51:44 +09:00
Guangcong Luo
c70a54f4e6 Support room search in rooms panel 2019-03-22 18:51:44 +09:00
Guangcong Luo
087c030c2b Support "Chat" button on usercards
Also grey out unsupported buttons.
2019-03-22 00:22:17 +09:00
Guangcong Luo
23a1c86823 Update /me styling
In /me, usernames are now bold, italic, and username-colored. The
username should now be more obviously a username, and also more
obviously a part of the /me-sentence.

I got unanimously positive reactions, so I'm pushing this through. I'm
sure plenty of people will hate change, but whatever.
2019-03-22 00:10:24 +09:00
Guangcong Luo
f802aa8b40 Improve support for username colors
Includes a minor refactor of battle-log.ts
2019-03-22 00:10:24 +09:00
Guangcong Luo
fbaceafac1 Implement Rooms room 2019-03-21 20:16:01 +09:00
Guangcong Luo
3bef3920a8 Defer JS loading
I don't know exactly how HTTP2 works, but in theory this should be a
noticeable perf improvement.
2019-03-21 17:00:52 +09:00
asgdf
689c741526 Don't display illegal HMs as legal in Teambuilder (#1253) 2019-03-19 10:45:14 +09:00
Kris Johnson
0cb0056dae Fix teambuilder headers (#1254) 2019-03-18 22:29:47 +04:00
Guangcong Luo
a45578f731 Fix closing PM windows 2019-03-17 20:22:58 +09:00
Guangcong Luo
3e59d4e430 Add stub support for PMing 2019-03-17 20:18:26 +09:00
Guangcong Luo
eb38544200 Support serving the Preact client
If you want to access it, I'm sure you can figure out how from this
code. ;)
2019-03-17 06:21:49 -04:00
Guangcong Luo
7479cf6658 Lower line length limit to 120 2019-03-17 19:02:53 +09:00
Guangcong Luo
c02370f8b2 Stub teambuilder implementation 2019-03-17 19:02:53 +09:00
Guangcong Luo
25d2422a58 Add support for chat userlists and usercards
This involves a relatively substantial refactor to how panels work, but
it should be somewhat finalized now. Popups are now fully supported.
2019-03-17 19:02:53 +09:00
Guangcong Luo
6622e50234 Improve support for panel switching
Using arrow keys to switch rooms is now in! Unlike in the old client,
the new system supports switching to all rooms, and supports arrow keys
in all situations, rather than only being able to switch between chat
rooms, and only with textareas focused.

Also, focusing chat rooms now focuses the input box. This was
surprisingly hard to implement with React, which has an annoying
all-or-nothing approach to state it doesn't control.
2019-03-17 19:02:53 +09:00
Guangcong Luo
7174223d87 Support sending messages to rooms 2019-03-17 19:02:53 +09:00
Guangcong Luo
04a5454f6e Support login handshake
You can't actually log in through the Preact client anyway, but now
if you set the right config file, you can _be_ logged in.
2019-03-17 19:02:53 +09:00
Guangcong Luo
47425d4314 Fix style errors caught by tslint 2019-03-17 19:02:53 +09:00
Guangcong Luo
ecc21274b1 Router: Support hashes in testclient
This at least lets me test some router features without pushing it to
the live server.
2019-03-17 19:02:53 +09:00
Guangcong Luo
786bd37f72 Support uhtml 2019-03-17 19:02:53 +09:00
Guangcong Luo
0246466299 Use BattleLog for chat logs 2019-03-17 19:02:53 +09:00
Guangcong Luo
f3b6352676 Stub chatroom support 2019-03-17 19:02:53 +09:00
Guangcong Luo
805cc810d9 Add basic popup support 2019-03-17 19:02:53 +09:00
Guangcong Luo
e501702a2a Add connection support
The actual connect function is commented out, because there's no reason
for it to do anything. But it can actually connect to a server now.
2019-03-17 19:02:53 +09:00
Guangcong Luo
d271be4758 Add a router
Unlike the old router, this one has no dependencies, and also tracks
left/right panel state, for more accurate back/forward button support.

It also sets the URL to the last selected panel, instead of always
using the left panel.
2019-03-17 19:02:53 +09:00
Guangcong Luo
49bb49a038 Support joining/leaving rooms 2019-03-17 19:02:53 +09:00
Guangcong Luo
bf26807c16 Flesh out Prefs, Teams, User models a bit
There's still a lot more to do, but this is a start
2019-03-17 19:02:53 +09:00