Guangcong Luo
eff5359fb4
Rename Tools to Dex
...
This has already been done server-side, and there's no use delaying
client.
2018-12-05 21:11:47 -06:00
Guangcong Luo
9589c8c339
Fix crash from BattleLog update
2018-11-19 20:36:59 -05:00
Guangcong Luo
5f05adc856
Split battle-log.ts off from battle-dex.ts
...
This splits battle-dex.ts up into:
- `battle-dex.ts`
- dex data access, misc tools
- `battle-log.ts`
- manipulating HTML, especially in battle logs
This turned out to be a pretty significant portion of what was
previously battle-dex.
2018-11-15 18:52:53 -06:00
Guangcong Luo
95adb434f4
Document /debug
2018-10-27 02:49:27 -04:00
Guangcong Luo
b6dcc4da35
Remove jQuery-JSON dependency
...
We now just use JSON.parse and JSON.stringify - it's supported by all
browsers supported by the client.
Tools.safeJSON has also been moved to Storage.safeJSON, since it's not
used in replays at all.
2018-10-14 22:07:55 -05:00
Guangcong Luo
a133ee8c5e
Fix some bugs caught by LGTM
2018-09-05 16:48:27 -05:00
whales
f4ea4f3772
Use either command character for clientside commands ( #1134 )
2018-08-06 10:24:17 +09:00
The Immortal
e957f953c2
Move custom ranks below %
2018-06-07 05:11:28 +08:00
MacChaeger
016342de1e
Integrate replays into the client ( #1115 )
2018-05-21 17:34:24 -05:00
Guangcong Luo
5a6b725d72
Push Zarel-as-RO above admins/leaders
...
This is a really dumb hack, but oh well, it works.
2018-05-19 22:00:06 -04:00
Quinton Lee
102b9bb708
Support UHTML in PMs ( #1120 )
2018-05-18 18:04:14 -05:00
Guangcong Luo
0a637cdbc3
Auto-dismiss |notifyonce| on focus by default
2018-05-07 16:57:50 -05:00
HoeenHero
bdd2ff21ec
Prompt the user to forfeit before leaving a game room ( #1110 )
2018-05-01 22:55:45 -05:00
asgdf
5ec4b23777
Fix /afd causing the battle to be in the wrong playback mode ( #1103 )
2018-04-16 06:36:53 -05:00
asgdf
38459e969d
Fix ignoring for (semi)locked users ( #1098 )
2018-04-02 05:05:08 -05:00
asgdf
73d0c1b9af
Switch sprites immediately when toggling AFD mode ( #1097 )
2018-04-01 16:06:32 -05:00
asgdf
ffa84eb6cc
Add client command to disable AFD sprites ( #1096 )
2018-04-01 13:17:35 -05:00
Guangcong Luo
d6bdcf02e8
Remove COIL
...
https://www.smogon.com/forums/threads/suspect-tests-stop-having-game-limits-also-im-removing-coil.3627581/
2018-02-16 04:55:01 -05:00
urkerab
6465bfbde8
Properly hide maximised user list ( #1072 )
2018-01-14 18:37:15 -06:00
Guangcong Luo
ed6f9009b7
Notify on messages from Help rooms
...
This treats Help room messages more like PMs
2017-12-25 01:16:14 -05:00
Guangcong Luo
58f9331eda
Support |tempnotify| and highlight notifications
2017-12-25 01:16:14 -05:00
HoeenHero
9043b62fcb
Refactor |uhtml| ( #1057 )
2017-12-02 16:56:29 -06:00
Guangcong Luo
74c05e608f
Show basic tour messages when tours disabled
...
PS sticks to a general principle of "Don't have options that confuse
users if they don't realize the option is on".
2017-11-27 15:48:25 -05:00
Guangcong Luo
2c57bdfb14
Update eslint version
2017-11-22 07:15:29 -06:00
Guangcong Luo
c2abdbbf9f
Fix ES6 use in client-chat.js
...
Fixes #1045
2017-11-14 19:06:41 -05:00
Bär Halberkamp
dee1106af4
Keep /raw and /html PMs from showing up in main chat ( #1041 )
2017-11-04 13:55:20 -07:00
Hidden50
1ca77fdde1
Fix crash on browser console when typing "/r " ( #1014 )
...
`e.setSelectionRange` is a typo, `setSelectionRange` is a property of the textbox element.
Results in `Uncaught TypeError: e.setSelectionRange is not a function` when the user types in ``"/r "``.
2017-09-29 12:14:54 -05:00
Guangcong Luo
43897c4de6
Add role="log" to chatroom/PM logs
...
Fixes part of #954
2017-06-28 10:13:07 +08:00
jumbowhales
c71aa34010
Add crq to the commands blocked by client ( #933 )
2017-05-31 03:44:47 +09:00
Charlie Kobayashi
e2a98288b4
Client: support custom ranks ( #918 )
2017-05-25 13:32:48 +09:00
HoeenHero
d9ea64084d
Add |notify| ( #873 )
2017-05-10 20:13:18 -05:00
Charlie Kobayashi
f8d2ae936e
Allow formatting in PMs and fix spelling mistake ( #872 )
2017-05-05 00:55:25 -07:00
asgdf
9546d51c50
Expand tabcompletion functionality ( #909 )
...
* allow cancelling tabcompletion with Esc
* allow cycling through candidates in reverse in PMs as well
* allow tabcompletion everywhere in a multi-line message
2017-04-28 03:58:21 -07:00
Quinton Lee
39a7644e80
Fix gen specific /rank in older browsers
2017-04-16 13:15:35 -05:00
asgdf
a32c62a3fd
Prevent ghost new message notifications after refreshing ( #892 )
2017-04-01 21:08:03 -04:00
asgdf
e5c99f53ac
Fix format/gen specific /rank ( #887 )
...
Also trim targets before parsing so spaces around commas don't throw it
off and replace use of Array#map().
2017-03-23 22:20:49 -04:00
MacChaeger
4d8a059361
Allow users to filter by gen in /rank ( #885 )
2017-03-19 01:33:58 -05:00
Guangcong Luo
9590c47d11
Don't ignore chat messages if reader is roomstaff
2017-03-01 05:44:48 -05:00
Charlie Kobayashi
05d450fe4f
Make hidden avatars last through into the next PS session ( #870 )
2017-02-21 23:44:43 -06:00
panpawn
8203fe438a
Add support for ☆ Player rank ( #847 )
...
This is in preparation for several things, eventually culminating in ★
being used for a separate Host rank.
2017-02-17 14:09:54 -06:00
asgdf
b68dc54c52
Allow cycling through tabcomplete candidates in reverse ( #834 )
...
Using Shift-Tab.
2016-12-09 00:23:41 -05:00
panpawn
2d132963cd
Make /R an alias of /r and /reply ( #802 )
2016-11-14 19:46:09 -07:00
Quinton Lee
5a01f555b4
Fix muting notification sounds
2016-10-05 23:36:18 -05:00
Bär Halberkamp
da9084ccb6
Implement notification sounds ( #777 )
2016-10-04 20:49:50 -07:00
Bär Halberkamp
bce03c4f6e
Port /reply to the client ( #773 )
2016-10-03 13:28:20 -07:00
Guangcong Luo
a3995a1b97
Introduce |error|
...
|error| replaces the previous |html|<div class="message-error">
with something nicer.
2016-09-28 18:20:17 -04:00
Guangcong Luo
7ab332673b
Don't notify for own messages
...
For the most part, this isn't really a big deal: If you send a message,
you usually have the window open, so you can see that you've sent a
message.
This is mainly for things like if you send a message and switch rooms
before it appears in the roomlog, but it's really mainly for things
like /hotpatch where you don't need to be notified about all the
rooms that notify you.
2016-09-13 18:36:50 -04:00
Guangcong Luo
b3e63242b2
Support |c|USER|/log MESSAGE
...
The new /log syntax is analogous to /me and /announce
Doing it this way makes it easier to support by bots, and also makes
it not highlight the initiator but still highlight others which is
usually desired.
Closes #760
2016-09-10 15:57:32 -04:00
Guangcong Luo
e3b908e5f2
Add message length limits
...
We already limit message length in various ways, but this helps save
some bandwidth by doing a basic check before anything is sent.
The limit is very high (80 KB) mostly so certain long commands like
/eval can go through.
2016-09-05 06:46:30 -04:00
Guangcong Luo
86c7373353
Fix bug when joining room by alias
...
Rooms would auto-close when you tried to join a room by its alias.
2016-08-20 23:44:04 -04:00