diff --git a/index.js b/index.js index ad3281e..27f3f7e 100644 --- a/index.js +++ b/index.js @@ -67,9 +67,14 @@ wss.on('connection', (ws, request) => { }); ws.on('message', (message) => { - logDebug('Received message from client:', message.toString()); + logDebug('Command received from \x1b[90m' + request.connection.remoteAddress + '\x1b[0m:', message.toString()); command = message.toString(); - client.write(command + "\n"); + + if(command.startsWith('X')) { + logWarn('Remote tuner shutdown attempted by \x1b[90m' + request.connection.remoteAddress + '\x1b[0m. You may consider blocking this user.'); + } else { + client.write(command + "\n"); + } }); ws.on('close', (code, reason) => { diff --git a/web/css/breadcrumbs.css b/web/css/breadcrumbs.css index 9ffe10e..97f81fe 100644 --- a/web/css/breadcrumbs.css +++ b/web/css/breadcrumbs.css @@ -59,7 +59,7 @@ h3 { display: none; } -@media (max-width: 960px) { +@media (max-width: 768px) { canvas, #flags-container { display: none; } @@ -80,7 +80,7 @@ h3 { padding: 0 !important; } #data-ps { - font-size: 60px; + font-size: 54px; } #data-frequency { font-size: 72px; @@ -109,6 +109,24 @@ h3 { } #tune-buttons { height: 64px; + order: 1; + } + .filter-controls { + order: 2; + } + .button-play-mobile { + order: 2; + margin: 0 !important; + border-radius: 0; + } + .button-play-mobile .playbutton { + border-radius: 0; + } + .button-eq { + order: 1; + } + .button-ims { + order: 3; } } diff --git a/web/css/buttons.css b/web/css/buttons.css index cd821f3..f7bd5d5 100644 --- a/web/css/buttons.css +++ b/web/css/buttons.css @@ -7,6 +7,7 @@ button { background-color: var(--color-4); cursor: pointer; font-family: inherit; + color: var(--color-main); } button:hover { diff --git a/web/css/helpers.css b/web/css/helpers.css index af35ac3..a47d467 100644 --- a/web/css/helpers.css +++ b/web/css/helpers.css @@ -42,6 +42,10 @@ margin-left: 20px; } +.m-right-20 { + margin-right: 20px; +} + .h-100 { height: 100%; } @@ -154,7 +158,19 @@ .flex-phone { display: flex; } + .flex-phone-column { + flex-flow: column; + } .hide-phone { display: none; } + .m-0 { + margin: auto; + } +} + +@media only screen and (min-width: 769px) { + .hide-desktop { + display: none; + } } \ No newline at end of file diff --git a/web/index.html b/web/index.html index 16fda2c..2cef1c5 100644 --- a/web/index.html +++ b/web/index.html @@ -49,8 +49,13 @@