163 Commits

Author SHA1 Message Date
Nick Krecklow
99c271ebc4 move script into <head> 2020-05-12 22:21:15 -05:00
Nick Krecklow
a68e4d2460 fix missing graphData culling behavior 2020-05-12 22:10:38 -05:00
Nick Krecklow
7fd0117f74 replace uplot lib with npm package 2020-05-12 19:50:28 -05:00
Nick Krecklow
8bfd297008 remove big-graph-mobile-load-request 2020-05-11 20:53:59 -05:00
Nick Krecklow
8177c43d15 impl updated graph tooltips 2020-05-11 20:05:34 -05:00
Nick Krecklow
9d8dce716b remove legacy flot.js hacks 2020-05-11 19:29:35 -05:00
Nick Krecklow
9a8afe2798 inline redraw function 2020-05-11 19:26:44 -05:00
Nick Krecklow
80c565a6ed simplify server label rendering 2020-05-11 19:23:37 -05:00
Nick Krecklow
bbdbe7e599 simplify error rendering logic 2020-05-11 18:58:47 -05:00
Nick Krecklow
c2f6d04e72 share a single timestamp array between all graphData objects 2020-05-11 18:12:29 -05:00
Nick Krecklow
59ec7d151f inline #isArrayUtil, remove jQuery 2020-05-11 04:25:30 -05:00
Nick Krecklow
84004f22be merge graph timestamps into single array, use seconds 2020-05-11 04:12:46 -05:00
Nick Krecklow
ef0c41ee1d remove graph smoothing behavior, add null playerCount support 2020-05-11 03:10:23 -05:00
Nick Krecklow
19190f8d79 fix timestamp, graph spacing 2020-05-11 02:35:11 -05:00
Nick Krecklow
19a7ce7d91 wip moving historical graph to uPlot, remove flot.js dependency 2020-05-11 02:28:41 -05:00
Nick Krecklow
9987434fea make tooltipPlugin more generic for further use 2020-05-11 00:42:02 -05:00
Nick Krecklow
1ff9478988 wire uPlot tooltips into the existing tooltip system 2020-05-11 00:37:22 -05:00
Nick Krecklow
8d211434df reference graphData instead of obscure self.data 2020-05-10 23:42:44 -05:00
Nick Krecklow
b96b9dacc5 replace Flot.js with uPlot for server graphs 2020-05-10 23:39:35 -05:00
Nick Krecklow
320dc3c2fb send playerCount in payload directly instead of nesting into legacy data structure 2020-05-08 16:13:24 -05:00
Nick Krecklow
4dfecce966 serve favicons over hashed paths for improved caching 2020-05-08 04:47:10 -05:00
Nick Krecklow
96acf3614b explicitly set serverRegistration.playerCount when firing #addServer 2020-05-08 03:35:22 -05:00
Nick Krecklow
4104c4144a remove timeout tasks since updates occur in bulk now 2020-05-08 03:27:01 -05:00
Nick Krecklow
63a01ace95 remove console.log debug call 2020-05-08 02:59:51 -05:00
Nick Krecklow
3491c73b89 store pingHistory as player count directly 2020-05-08 02:52:48 -05:00
Nick Krecklow
37a88677cf always update favicon if supplied 2020-05-08 02:42:46 -05:00
Nick Krecklow
e45f8b6639 simplify addServer/pingHistory & placeholder generation prior to optimizations 2020-05-08 02:39:30 -05:00
Nick Krecklow
f467fa1938 add serverGraphDuration config option 2020-05-08 01:54:04 -05:00
Nick Krecklow
7993ac0077 do not append serverId in getPingHistory entries 2020-05-08 01:25:38 -05:00
Nick Krecklow
c2494af82d use a single, shared timestamps array between all pings 2020-05-08 01:22:07 -05:00
Nick Krecklow
3ddb2c9a08 work on bulking updateServer payloads and single timestamps 2020-05-08 00:36:15 -05:00
Nick Krecklow
ac06ae884e remove development configuration values 2020-05-05 23:47:04 -05:00
Nick Krecklow
49379acc77 release 5.3.1 2020-05-05 23:45:04 -05:00
Nick Krecklow
3458c608fd run #updateGlobalStats in #handleSyncComplete 2020-05-05 17:59:05 -05:00
Nick Krecklow
cdb64f0ad8 auto assume WebSocket protocol using location.protocol 2020-05-05 17:52:28 -05:00
Nick Krecklow
438a72724b add WebSocket reconnection logic 2020-05-05 17:17:12 -05:00
Nick Krecklow
ca9e127e3e replace socket.io usage with WebSockets 2020-05-05 16:49:01 -05:00
Nick Krecklow
a335591d62 use flot.js yaxis auto scaling behavior 2020-05-01 15:28:08 -05:00
Nick Krecklow
45c34f1477 release 5.2.0 2020-04-29 04:25:08 -05:00
Nick Krecklow
7322b8dc82 merge updateHistoryGraph behavior into update flag 2020-04-29 04:21:50 -05:00
Nick Krecklow
7d47e9b5f8 remove frontend diffing behavior since the protocol does this now 2020-04-29 04:09:22 -05:00
Nick Krecklow
0e19904c39 remove legacy, unused #getServerByRank method 2020-04-29 04:03:59 -05:00
Nick Krecklow
be92449d52 use serverId in protocol instead of legacy info object 2020-04-29 04:01:10 -05:00
Nick Krecklow
4d13965e6b Backend cleanup (#146)
* Add ServerRegistration, begin refactoring to match frontend

* move graphData logic into ServerRegistration

* move ping updates/history into ServerRegistration

* start updating main app entry methods

* fix default rates.updateMojangStatus

* fix record loading delays on freshly booted instances

* move database loading logic to method + callback

* use data in frontend for type lookup instead of ping

* cleanup app.js

* reorganize methods to improve flow

* avoid useless mojang updates, remove legacy fields

* rename legacy fields for consistency

* finish restructure around App model

* ensure versions are sorted by release order

* filter errors sent to frontend to avoid data leaks

* fix version listing behavior on frontend

* 5.1.0
2020-04-21 17:59:53 -05:00
Nick Krecklow
9eda8d6bdb sync footer css with prod 2020-04-21 04:32:31 -05:00
Nick Krecklow
29dc264d6a tweak footer style and center align 2020-04-19 20:45:29 -05:00
Nick Krecklow
61295d0600 Safely handle legacy recordData that may not include the timestamp payload 2020-04-19 20:04:13 -05:00
Nick Krecklow
203d8df844 fix control buttons color matching background 2020-04-19 19:54:57 -05:00
Nick Krecklow
747fdbda8e tweak header, footer link colors 2020-04-19 19:44:23 -05:00
Nick Krecklow
43ae91c904 fix inverted footer a:hover color 2020-04-19 19:44:17 -05:00