Commit Graph
15 Commits
Author SHA1 Message Date
angryzeroandCopilot 93a6cb09e4 fix: player info regex greedily captured trailing slash
The regex .+) matched '76561198984102849/' instead of just the
SteamID. Changed to [^/]+) which stops at the trailing slash.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-13 18:49:41 +02:00
angryzeroandCopilot 7010562dae style: deeper purple + remove redundant page title
- Darkened primary from #8b5cf6 to #6d28d9 (violet-700) to better
  complement the dark theme
- Removed <h1> page title — the sidebar active highlight already
  tells you which tab you're on
- Cleaned up related CSS and elTitle plumbing in app.js

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-13 18:32:11 +02:00
angryzeroandCopilot f4e7dd5bb6 fix: empty server page on reload with cached connection
Router.go() sets window.location.hash, but when the hash already
matches (e.g. F5 reload at /#/addr/info then clicking a saved
connection), hashchange doesn't fire and the router never re-renders.
Switched to Router.navigate() which processes the route directly
regardless of current hash.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-13 18:26:08 +02:00
angryzeroandCopilot b9364119da fix: serverInfo page shows data immediately on load
Eliminated redundant serverinfo RCON polling from the serverInfo page.
It now subscribes to the header's serverinfo-update CustomEvent instead.

Key changes:
- app.js: cache last serverinfo in window._lastServerInfo and dispatch
  serverinfo-update event so pages can pick up data immediately
- serverInfo.js: replaced setInterval-based polling with event listener
  plus immediate _lastServerInfo cache check, eliminating the initial
  blank page state and duplicate RCON requests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-13 18:20:55 +02:00
angryzeroandCopilot 19c5247c90 fix: router add() signature, setActivePage typo, connect race condition
- Router.add() now takes 3 params (pattern, title, onEnter) matching app.js usage
- Fixed setActiveSidebar → setActivePage in all route callbacks
- Removed premature hash-setting from connect.js — app.js now sole navigator
  (was firing router into a hidden container before showConnected ran)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-13 17:57:48 +02:00
angryzeroandCopilot 0a178d17b9 feat: full de-Angularization with Bootstrap 5 migration
- Removed AngularJS 1.4.8 completely — no more framework dependency
- Extracted core RCON logic into pure vanilla JS (js/rcon.js)
- Added lightweight hash-based SPA router (js/router.js)
- Rewrote all 6 pages as vanilla JS modules in js/pages/
- Migrated Bootstrap 3 → Bootstrap 5 (cards instead of panels, bootstrap-icons instead of glyphicons)
- Removed jQuery dependency (Bootstrap 5 is vanilla JS)
- Purged all Angular templates from html/
- Removed npm artifacts (package.json, node_modules)
- Added nginx.example.conf for static hosting
- Updated rcon.css dark theme for BS5 variables
- Static file only — no Node.js backend required

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-13 17:51:50 +02:00
alexfriesen a02a57bf99 add Disconnect
added disconnect feature
auto formatted js/html code
2017-04-21 15:06:52 +02:00
Garry Newman 2da3351935 Nice header with server status, better chat layout 2016-07-11 09:57:17 +01:00
alexfriesen 4087a9f591 Added ServerInfo Page
ConnectionController.Connect redirects automatically to ServerInfo
2016-04-30 19:07:44 +02:00
Garry Newman 8db1528ae5 Chat section 2016-04-29 15:24:12 +01:00
Garry Newman 6de72eec86 Switch to bootstrap 2016-04-12 15:13:48 +01:00
Maksim Nazarjev 48695efeca Removed nonexistent template path 2016-03-04 15:32:15 +03:00
Garry Newman e4452d48ab URLs include address, automatically connected to if password is present 2016-03-03 12:53:56 +00:00
Garry Newman 5fa14a3247 Xp history 2016-02-29 17:12:24 +00:00
Garry Newman 1387e4cb3f Added a couple of useful services to rconservice 2016-02-29 13:03:23 +00:00