From 0a178d17b9980dfca1ddcc6511e3603b3837bc5b Mon Sep 17 00:00:00 2001 From: oOHiyoriOo Date: Sat, 13 Jun 2026 17:51:50 +0200 Subject: [PATCH] feat: full de-Angularization with Bootstrap 5 migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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> --- html/chat.html | 17 -- html/connect.html | 54 ----- html/console.html | 11 - html/header.html | 40 ---- html/playerInfo.html | 41 ---- html/playerlist.html | 84 ------- html/serverInfo.html | 92 -------- image/arrow-right-bold-hexagon-outline.svg | 1 - image/menu.svg | 1 - index.html | 97 ++++---- js/app.js | 190 ++++++++-------- js/chat.js | 87 ------- js/connection.js | 135 ----------- js/console.js | 147 ------------ js/linq.min.js | 10 - js/pages/chat.js | 73 ++++++ js/pages/connect.js | 142 ++++++++++++ js/pages/console.js | 80 +++++++ js/pages/playerInfo.js | 70 ++++++ js/pages/playerlist.js | 141 ++++++++++++ js/pages/serverInfo.js | 188 ++++++++++++++++ js/playerInfo.js | 55 ----- js/playerlist.js | 50 ----- js/rcon.js | 181 +++++++++++++++ js/rconService.js | 131 ----------- js/router.js | 80 +++++++ js/serverInfo.js | 231 ------------------- js/utils.js | 47 ++++ nginx.example.conf | 24 ++ package-lock.json | 250 --------------------- package.json | 15 -- rcon.css | 179 +++++++-------- 32 files changed, 1242 insertions(+), 1702 deletions(-) delete mode 100644 html/chat.html delete mode 100644 html/connect.html delete mode 100644 html/console.html delete mode 100644 html/header.html delete mode 100644 html/playerInfo.html delete mode 100644 html/playerlist.html delete mode 100644 html/serverInfo.html delete mode 100644 image/arrow-right-bold-hexagon-outline.svg delete mode 100644 image/menu.svg delete mode 100644 js/chat.js delete mode 100644 js/connection.js delete mode 100644 js/console.js delete mode 100644 js/linq.min.js create mode 100644 js/pages/chat.js create mode 100644 js/pages/connect.js create mode 100644 js/pages/console.js create mode 100644 js/pages/playerInfo.js create mode 100644 js/pages/playerlist.js create mode 100644 js/pages/serverInfo.js delete mode 100644 js/playerInfo.js delete mode 100644 js/playerlist.js create mode 100644 js/rcon.js delete mode 100644 js/rconService.js create mode 100644 js/router.js delete mode 100644 js/serverInfo.js create mode 100644 js/utils.js create mode 100644 nginx.example.conf delete mode 100644 package-lock.json delete mode 100644 package.json diff --git a/html/chat.html b/html/chat.html deleted file mode 100644 index 5ab4c69..0000000 --- a/html/chat.html +++ /dev/null @@ -1,17 +0,0 @@ -
- -
-
- {{(line.Time * 1000) | date:'shortTime'}} - {{line.Username}} : - {{line.Message}} -
-
- -
-
- -
-
- -
\ No newline at end of file diff --git a/html/connect.html b/html/connect.html deleted file mode 100644 index 56edec3..0000000 --- a/html/connect.html +++ /dev/null @@ -1,54 +0,0 @@ -
- -
- -

Connect

- -
- {{LastErrorMessage}} -
- -

Enter the address (including rcon port) and the rcon password below to connect.

- -
- -
- - -
- -
- - -
- -
- -
- - - -
-
- -
- -
-

Saved Connections

- -
- -
-
- -
- -
diff --git a/html/console.html b/html/console.html deleted file mode 100644 index e5ed7e6..0000000 --- a/html/console.html +++ /dev/null @@ -1,11 +0,0 @@ -
- -
-
{{line.Message}}
-
- -
- -
- -
\ No newline at end of file diff --git a/html/header.html b/html/header.html deleted file mode 100644 index d6825a1..0000000 --- a/html/header.html +++ /dev/null @@ -1,40 +0,0 @@ - diff --git a/html/playerInfo.html b/html/playerInfo.html deleted file mode 100644 index f3a211e..0000000 --- a/html/playerInfo.html +++ /dev/null @@ -1,41 +0,0 @@ - -
- -
- -
- -

- Player: {{getUsername()}} -
- -
-

- - - -
- -
-

- Info -

- -
- This Player is currently not connected to this server! -
-
- -
-

{{key}}: {{value}}

-
-
- -
\ No newline at end of file diff --git a/html/playerlist.html b/html/playerlist.html deleted file mode 100644 index 297abea..0000000 --- a/html/playerlist.html +++ /dev/null @@ -1,84 +0,0 @@ -
- -
-
- -
-
- -
-
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ActionsUsernameSteam IDViolation LevelAddressPingDuration
-
- - -
-
- {{line.DisplayName}} - - {{line.SteamID}} - - {{line.VoiationLevel}} - - {{line.Address}} - - {{line.Ping}} - - {{line.ConnectedSeconds | SecondsToDuration}} -
-
-
-
- -
\ No newline at end of file diff --git a/html/serverInfo.html b/html/serverInfo.html deleted file mode 100644 index ecdd567..0000000 --- a/html/serverInfo.html +++ /dev/null @@ -1,92 +0,0 @@ -
- -
- -
-

{{serverinfo.Hostname}}

-
- -
-

- {{key}}: - {{value}} -

-
- -
-
- -
- -
-
- -

- Server Performance -

-
-
-
- -
-
-
- -
-
- - -

- Server Networking -

-
-
-
- -
-
-
- -
-
- -

- Players -

-
-
-
- -
-
-
- -
- -
- -
diff --git a/image/arrow-right-bold-hexagon-outline.svg b/image/arrow-right-bold-hexagon-outline.svg deleted file mode 100644 index 2e71c09..0000000 --- a/image/arrow-right-bold-hexagon-outline.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/image/menu.svg b/image/menu.svg deleted file mode 100644 index 64844e7..0000000 --- a/image/menu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/index.html b/index.html index 76ecddf..95c7eee 100644 --- a/index.html +++ b/index.html @@ -1,71 +1,68 @@ - + - Websocket Rcon - - + + - - -
- -
- -
- -