Commit Graph

529 Commits

Author SHA1 Message Date
Nick Krecklow
f875361bc7
Minetrack 5 (#143)
* remove unused #getServer methods, inline #roundToPoint

* replace #safeName regex with incremental ids

* remove legacy #setInterval based #updateMojangServices handling

* add Tooltip class, move faviconSize to css instead of js

* move server id assignment to ServerRegistry

* move printPort logic to formatMinecraftServerAddress, add MINECRAFT_DEFAULT_PORTS

* simplify ping tracking

* rework perc-bar tooltip to not use mousemove event

* begin moving graphing logic to GraphDisplayManager

* begin merge graph point tracking into graphDisplayManager

* centralizing graphing logic into GraphDisplayManager

* properly reset GraphDisplayManager when handling disconnects

* move individual server graph data into ServerGraph class

* constantly run sortServers loop to simplify logic

* inline #updateMojangServices method

* resize performance improvements

* remove legacy bootTime refresh behavior, require manual user refresh

* move class defs to core.js

* remove unused #isGraphDataVisible arg

* remove #toggleControlsDrawer

* dont call #updatePercentageBar in #updateServerStatus calls

* centralize caption handling

* inline #msToTime

* remove hackish seconds handling for timestamps

* reduce #forEach calls with filter/map

* safely fallback to errorMessage if errno/description does not match

* Add /images/missing_favicon.png path instead of putting base64 in js

* remove debug

* cleanup mojang status handling

* move historyPlot instance into GraphDisplayManager

* cleanup checkbox html generation

* cleanup #updateServerStatus

* fix up tooltip styling

* move jquery code out of core.js

* fix add server race condition when initially pinging servers

* send error.placeholder=true for pending pings so the frontend can discard later

* filter placeholder pings sent by the backend

* del assets/images/logo_2014.png

* move graph code into graph.js

* merge pingTracker into ServerRegistry+ServerGraph

* remove todos

* simplify getVisibleGraphData

* fix potential sortServers race condition when adding

* use #show instead of #fadeIn(0)

* remove publicConfig.json, send over socket

* update docs/CHANGELOG.md

* getOrAssign -> getOrCreateId

* dont delete graph controls when disconnected

* early work cleaning up HTML+CSS structures

* cleanup server css elements

* cleanup graph control css elements

* move base CSS color values into @media(prefers-color-scheme: light)

* move CSS magic colors to vars

* reduce duplicated CSS color rules

* inline body text color CSS

* WIP replacing jQuery calls with vanilla JS

* WIP replacing jQuery calls with vanilla JS

* replace getElementsByClass with querySelectorAll

* typeMarker -> serverTypeHTML

* use jQuery slim for remaining flot.js dependency

* merge setAllGraphVisibility into GraphDisplayManager

* break apart element update and redraw logic

* add eslint + parcel bundler

* auto lint assets/js when building

* statically serve favicons/ for faviconOverrides outside of dist/

* only send favicons when changed

* move faviconOverride behavior into entry in servers.json

* add warning to backend server files

* remove .server-favicon-missing class

* add Minetrack 5 migration guide

* add npm run build step to install.sh

* adjust package.json version to 5.0.0

* remove js references from index.html

* move logic and behavior out of site.js

* cleanup ServerRegistry methods

* prevent multiple history graph redraws

* add comments

* cleanup #addServer usage, move to App

* move graph control bindings into GraphDisplayManager

* site.js -> main.js, core.js -> servers.js

* move Tooltip/Caption into util.js

* spacing tweak

* format index.html

* ensure the frontend does not handling updateHistoryGraph events

* prevent versions/record updates if the same value

* avoid empty percbar updates, ensure versions are sorted

* only include main.js ref in index.html

* serve minified copy of font awesome directly

* bundle icons.css into main.css, remove Open Sans 400

* add new SVG logo

* update docs/CHANGELOG.md

* new design, server version grouping

* remove start.sh call from install.sh

* move graph controls into header with new button

* move #handleSettingsToggle back to graph

* fix legacy code behavior of currentVersionIndex applying globally

* fix header text color in light mode

* fix mojang status text color in light mode

* fix toggle settings and checkbox colors

* tweak button hover color

* tweak button hover color

* add new status-overlay to avoid complicated DOM management during loading

* fix initial graph rendering bug

* add comments

* update default graph tick sizes

* prevent #tooltip from overflowing page

* remove localhost spec

* prevent minor connection errors from reshuffling layout

* update CHANGELOG.md

* add message/button for manually loading historical graph on mobile devices

* send isGraphVisible to frontend to prevent alert if logToDatabase: false

* send timestamp data with record

* update docs/CHANGELOG.md

* remove clock icon

* remove 24h peak timestamp

* Only check favicon if present

* safely handle undefined/empty knownVersions in #formatMinecraftVersions

* merge config.versions and minecraft.json into minecraft_versions.json, simplify index matching behavior

* remove localhost url in socket.io config

* stub methods/linkage for FocusManager

* add #isObjectEqual hack, add event proxying to FocusManager

* wip extended stats box

* remove server-type badging

* tweak mojang unstable color

* serve socket.io-client using parcel

* fix incorrect mojang status colors

* remove legacy capitalization design

* redesign focus boxes

* update docs/CHANGELOG.md

* remove localhost ref

* color clock icon

* use background-color for hover effect, remove unused var

* improve stats focus box icons

* change mojang sessions icon to globe

* Add favorites system

* remove focus boxes

* update docs/CHANGELOG.md

* remove focus icons from font

* simplify graph related event binding

* Add Sort By button

* store current sortOption in localStorage

* update docs/CHANGELOG.md

* move magic 0 sortOption to SORT_OPTION_INDEX_DEFAULT

* remove localhost ref

* merge #settings-toggle, #sort-by and .mojang-status CSS

* remove .focus-box CSS

* use sortedServerIds for _lastSortedServers

* tweak --color-blue

* new missing_favicon design to match logo

* edit footer CSS/text, remove github icon

* replace player count diff counter with GROWTH sort option

* italize non-default sort options

* add Only Favorites button to auto sync favorites to the visible graph data

* add icons to graph control buttons

* update docs/CHANGELOG.md

* use * to denote non-default sort option instead

* remove localhost url in socket.io config

* add value highlighting to make sort by easier to read

* remove last remaining uppercase text

* remove serverTypesVisible from config.json

* simplify header CSS, fix spacing with logToDatabase=false

* fix inverted text color on highlighted values

* remove localhost url in socket.io config

* break header into rows on mobile devices

Co-authored-by: Hugo Manrique <contact@hugmanrique.me>
2020-04-19 19:27:59 -05:00
Nick Krecklow
8c5e25b259
use mc-ping-updated 0.1.1 2020-04-08 08:45:55 -05:00
Nick Krecklow
1a926c7557
Merge pull request #142 from GiansCode/master
Added TrackedServers.com
2020-04-05 18:55:02 -05:00
Gianluca Falcomer
54a47eca28
Added TrackedServers.com 2020-04-03 18:08:49 +02:00
Nick Krecklow
0202003aa7
4.0.5 release 2020-04-01 22:38:46 -05:00
Nick Krecklow
9f5827f06c
automatically set peak label using publicConfig.graphDuration 2020-04-01 22:36:44 -05:00
Nick Krecklow
ad6907b0cc
Update package.json version to 4.0.3 2020-04-01 22:16:11 -05:00
Nick Krecklow
9d57dd263e
add Minecraft 1.15.1 version to master 2020-04-01 22:15:21 -05:00
Nick Krecklow
3605d6f8bc
4.0.3 release 2020-04-01 22:03:33 -05:00
Nick Krecklow
874685d639
update frontend jquery dependency 2.1.4->3.4.1 2020-04-01 22:01:00 -05:00
Nick Krecklow
7e4e0390f1
print CF-Connecting-IP/X-Forwarded-For when present in socket.io requests 2020-04-01 21:54:43 -05:00
Nick Krecklow
1382a6a21e
print CF-Connecting-IP/X-Forwarded-For when present 2020-04-01 21:48:37 -05:00
Nick Krecklow
cf8f3f0dcd
update socket.io dependency 1.3.7->2.3.0, fixes security vulns 2020-04-01 21:44:35 -05:00
Nick Krecklow
afebd2ff83
4.0.2 release 2020-04-01 21:20:21 -05:00
Nick Krecklow
a2aab353e3
updated install.sh & start.sh scripts 2020-04-01 21:17:57 -05:00
Nick Krecklow
eda4bf8a51
4.0.1 release 2020-04-01 20:45:56 -05:00
Nick Krecklow
258679bbde
add package-lock.json to .gitignore 2020-04-01 20:43:02 -05:00
Nick Krecklow
db4c934c8d
update mime 1.3.4->2.4.4, sqlite3 3.1.8->4.1.1, request 2.74.0->2.88.2 2020-04-01 20:42:27 -05:00
Nick Krecklow
364dc1ad59
fix potential crash issue during startup 2020-04-01 20:41:18 -05:00
Nick Krecklow
65aabb179a
fix undefined AM/PM time marker 2020-03-31 23:40:03 -05:00
Nick Krecklow
6d0a2f28e5
prevent high player counts from crashing browsers 2020-03-30 01:31:35 -05:00
Nick Krecklow
0ac311ce37
4.0.0 2020-03-30 01:16:52 -05:00
Nick Krecklow
63970a7752
remove /status.json endpoint warning 2020-03-30 01:06:50 -05:00
Nick Krecklow
f63d9bba4b
remove legacy category system 2020-03-30 01:06:30 -05:00
Nick Krecklow
a458038075
fix failing to send peaks data when connecting 2020-03-30 00:48:47 -05:00
Nick Krecklow
f1fe9d02e4
fix early div closure 2020-03-30 00:43:49 -05:00
Nick Krecklow
5fdaf1a656
fix var overlap 2020-03-30 00:39:38 -05:00
Nick Krecklow
d4353d8fe1
add 24hr peak 2020-03-30 00:37:49 -05:00
Nick Krecklow
7b8f91af68
add dark mode support 2020-03-30 00:17:20 -05:00
MiniDigger
b145d5e9cb
Update readme to reflect the state of this project (#136)
* Update readme to reflect the state of this project

* Update README.md

Co-Authored-By: MiniDigger <admin@minidigger.me>

* Merge in suggestion and fix typos

Co-authored-by: Nick Krecklow <hello@github.nklow.com>
2020-03-17 16:18:32 -05:00
Nick Krecklow
8c4c84e8be
update footer text 2020-03-15 00:20:38 -05:00
Nick Krecklow
9e6e650e02
remove details from generic footer 2020-03-15 00:16:46 -05:00
Crypt
533568d97a
Remove Google Analytics tracker 2019-09-05 16:34:21 -05:00
Hugo Manrique
0392fce6c3 Fix XSS by parsing player counts as raw data and validating favicon URIs (#116)
* Fix XSS by parsing player counts as raw data (instead of parsing it)

* Ensure the returned favicon is a data URI

* Force server favicon size to 64px

* Increase specificity of data URI validation

The previous commit would happily accept any domain (or subdomain) that started with "data"
2019-09-05 16:15:44 -05:00
Joni
6da613bbb8 Added PC 1.14 protocol version (#119) 2019-06-05 21:27:16 -05:00
Cryptkeeper
5a1dc9d862
Shrink version indicators since there's so many now 2018-08-24 16:35:53 -05:00
theminecoder
c58895f8b6 Add PC 1.13 protocol version (#108) 2018-08-24 16:31:03 -05:00
Cryptkeeper
557c581726 Prevent empty version payloads from breaking frontend 2017-10-23 03:20:45 -05:00
Hugo Manrique
a90d6faf45 Update sqlite3 dependency and add caret ranges (#86)
I added caret version ranges to big packages because there are no breaking changes in a patch update. Taken from npm: Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple. In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for versions 0.X >=0.1.0, and no updates for versions 0.0.X. [More](https://docs.npmjs.com/misc/semver#caret-ranges-123-025-004)
2017-08-09 00:55:25 -05:00
Cryptkeeper
b2c72c0bfb Revert "Properly sort ping listing to ensure we don't wrongly smooth"
This reverts commit a250b3977ac1a3731eeb73f5060472745f17d9ed.
2017-08-09 00:35:13 -05:00
Cryptkeeper
7da33b02b8 Test protocol 335 (1.12) 2017-06-07 07:01:46 -05:00
Cryptkeeper
2e99b136aa Mark protocol 335 as 1.12 2017-06-07 07:01:20 -05:00
Cryptkeeper
a250b3977a Properly sort ping listing to ensure we don't wrongly smooth 2017-05-27 08:05:25 +08:00
Cryptkeeper
106033adb8 Help readability on individual server elements 2017-05-13 11:21:41 -05:00
Cryptkeeper
7bd33c081b Shrink record and versions listing using server-meta 2017-05-13 11:17:31 -05:00
Cryptkeeper
d2ba338cb6 Darken versions listing 2017-05-13 11:11:42 -05:00
Cryptkeeper
7a751c84b5 Add default status text 2017-05-13 11:08:56 -05:00
Cryptkeeper
be01d5c515 Show loading indicators when disconnected 2017-05-13 11:08:19 -05:00
Cryptkeeper
bfcc896e28 Improved Mojang status indicators and better footer 2017-05-13 11:07:50 -05:00
Hugo Manrique
0955e8dbcd Allow custom Graph colors (#76) 2017-04-03 22:10:46 -05:00