Commit Graph

29 Commits

Author SHA1 Message Date
Guangcong Luo
26f78dcce6 Add Preact dependency
Preact is currently unused in the client, but will be used in an
upcoming rewrite. This adds the foundation to support `.tsx` files in
`src/`.
2018-10-16 14:53:27 -05: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
caa5240e7d Update and minify JS libraries
This is _mostly_ to shut up LGTM but also partially because this should
be done periodically anyway.
2018-09-06 02:42:03 -05:00
Guangcong Luo
5120e59f5e Drop jslider dependency
jslider was incredibly buggy, and most likely the cause of the problems
with the teambuilder on mobile, and required some pretty ridiculous
hacks, and leaked memory.

We're now using HTML5 sliders, like we are with the volume controls.

HTML5 sliders aren't supported by IE9, but they're supported by most
other browsers PS cares about. If not, well, they won't look too ugly
probably...
2017-12-21 05:05:22 -06:00
Ivo Julca
ae57df76da Deps: Update Caja to latest master for HSL color notation support
Also we are still floating the patch from 18bf9fdb4
2017-08-01 14:55:51 -05:00
Guangcong Luo
7b3eb4f654 Improve accessibility
- Add labels to unlabeled controls
- Hide autoresize box from screen readers

Fixes part of #954
2017-06-24 16:29:39 -04:00
Felix Rilling
cde8151838 Update Backbone and lodash #906 (#907) 2017-04-24 22:02:17 -07:00
Guangcong Luo
fb19307927 Update SockJS to 1.1.1
Note that it's had to be modified slightly for compatibility for our
version of nwjs.
2016-09-05 06:46:30 -04:00
Ivo Julca
18bf9fdb4f Deps: Update Caja
This also floats a defensive patch against certain browser
extensions that leak an `html` global.
2016-06-20 03:07:26 -05:00
Guangcong Luo
211da6e8b1 Major update to background storage and menu colors
When loading a background, we use Color Thief to get a six-color
palette from the image, for use on the main menu buttons.

Only hue and lightness are extracted.

https://github.com/lokesh/color-thief/

Backgrounds are now stored in localStorage in the current origin,
rather than the prefs origin. This allows faster loading, as well
as different backgrounds for different origins, which other
servers should like since it means their backgrounds get seen
at least once before possibly being replaced.

Special thanks to Joim for the base code.
2015-12-12 04:01:00 -06:00
Guangcong Luo
279893d2ee Delete old jQuery file 2015-07-02 12:48:36 -04:00
Guangcong Luo
a6e56e969a Update jQuery to 2.1.4 2015-06-28 00:50:16 -04:00
Guangcong Luo
d2b5a0bad3 Support some CSS in sanitized HTML 2015-06-27 02:46:00 -04:00
Guangcong Luo
6c42d72548 Update jQuery 2015-06-07 23:42:03 -04:00
Morfent
d2bc6dd260 Update jQuery to version 2.1.3 2015-02-06 05:07:58 -04:00
Guangcong Luo
0e6f4ad984 Add jQuery 1.11 to repo 2014-04-11 02:51:59 -05:00
Guangcong Luo
96a69a8c74 Update jQuery and SockJS 2014-03-23 20:45:35 -05:00
Guangcong Luo
2ed97732fb Update soundManager 2014-01-12 01:26:57 -06:00
小太
0812a41172 Merge remote-tracking branch 'upstream/master' into tournaments 2013-12-02 16:55:01 +11:00
Guangcong Luo
550071c0e1 Newest jQuery versions 2013-11-20 17:55:59 -06:00
小太
4c13a800d2 Use a different library for rendering the tree and implement draggable brackets to support it 2013-09-17 20:14:17 +10:00
小太
1322025376 Add library required for previous commit 2013-09-15 15:37:16 +10:00
Guangcong Luo
0941d03ca1 Make sure lodash is loaded correctly in node-webkit 2013-08-30 01:23:12 -05:00
Guangcong Luo
5dff78bbdb Unminified SockJS for debugging 2013-05-21 16:19:33 -05:00
Cathy J. Fitzpatrick
1fff29b4ca Revert to version 1.04 of autoresize plugin 2013-05-21 00:49:13 -05:00
Guangcong Luo
d4376af96d Add jslider 2013-05-06 00:32:39 -07:00
Guangcong Luo
442e91d3aa Upgrade to newest version of Autoresize 2013-04-30 14:08:50 -07:00
Guangcong Luo
68e574cc52 Stub new client 2013-04-26 01:23:22 -07:00
Guangcong Luo
d8e8be1087 JS libraries now in /js/lib/ 2013-04-26 01:20:56 -07:00