From 4a871e91140d855c8855a1d719c288c9a91fbb18 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 24 Jul 2026 15:29:41 +0000 Subject: [PATCH] Upload files to "templates/admin" --- templates/admin/custom_base.html | 903 ++++++++++++++++++++++++++++ templates/admin/dashboard.html | 214 +++++++ templates/admin/discord_view.html | 354 +++++++++++ templates/admin/dll_archive.html | 157 +++++ templates/admin/downloads_view.html | 314 ++++++++++ 5 files changed, 1942 insertions(+) create mode 100644 templates/admin/custom_base.html create mode 100644 templates/admin/dashboard.html create mode 100644 templates/admin/discord_view.html create mode 100644 templates/admin/dll_archive.html create mode 100644 templates/admin/downloads_view.html diff --git a/templates/admin/custom_base.html b/templates/admin/custom_base.html new file mode 100644 index 0000000..fe5cc7d --- /dev/null +++ b/templates/admin/custom_base.html @@ -0,0 +1,903 @@ +{% extends 'admin/base.html' %} + +{% block page_body %} +
+ +
+
+ +
+
+ {% block body %}{% endblock %} +
+
+
+{% endblock %} + +{% block head_meta %} +{{ super() }} + + + + + + +{% endblock %} + +{% block brand %} + + KittyRec + + KittyRec + Admin Panel + + +{% endblock %} + +{% block access_control %} +
+ + + 0 online + + Logout +
+{% endblock %} + +{% block tail %} +{{ super() }} + + +{% endblock %} diff --git a/templates/admin/dashboard.html b/templates/admin/dashboard.html new file mode 100644 index 0000000..f46244e --- /dev/null +++ b/templates/admin/dashboard.html @@ -0,0 +1,214 @@ +{% extends "base.html" %} +{% block title %}Dashboard — KittyRec Admin{% endblock %} +{% block head %} + +{% endblock %} + +{% block content %} + + +
+
+
Total Players
+
{{ total_players }}
+
registered accounts
+
+
+
Online Now
+
{{ online_count }}
+
active connections
+
+
+
Sessions
+
{{ session_count }}
+
active Photon rooms
+
+
+
Pending Gifts
+
{{ pending_gifts }}
+
unopened boxes
+
+
+
Banned
+
{{ banned_count }}
+
active bans
+
+
+ +
+
+
+

Online Players

+ {{ online_count }} +
+
+

Loading...

+
+
+ +
+
+

Active Sessions

View all
+ {% if sessions %} +
+ + + + {% for s in sessions %} + + + + + + + {% endfor %} + +
RoomActivityPlayersMode
{{ s.photon_room_id }}{{ s.name }}{{ s.players|length }} + {% if s.sandbox %}Sandbox + {% elif s.private %}Private + {% else %}Public{% endif %} +
+
+ {% else %} +

No active sessions

+ {% endif %} +
+ +
+

Recent Moderation

View all
+ {% if recent_bans %} + {% for b in recent_bans %} +
+ {{ b.action }} + {{ b.username }} + {{ b.reason[:40] if b.reason else '—' }} + {{ b.created_at[:10] }} +
+ {% endfor %} + {% else %} +

No recent actions

+ {% endif %} +
+
+
+ +{% if SCOPE_ADMIN in scopes %} +
+
+

Store

+ +
+

Force the store to rotate to a new random selection before the 12-hour window expires.

+
+ +
+

Quick Gift All

+
+
+ + +
+
+ + +
+
+ + +
+ +
+
+{% endif %} + +{% include 'admin/partials/ban_modal.html' %} +{% endblock %} + +{% block scripts %} + +{% endblock %} diff --git a/templates/admin/discord_view.html b/templates/admin/discord_view.html new file mode 100644 index 0000000..cb3118d --- /dev/null +++ b/templates/admin/discord_view.html @@ -0,0 +1,354 @@ +{% extends 'admin/admin_base.html' %} +{% block title %}Discord Analytics — KittyRec Admin{% endblock %} +{% block content %} + + +
+
+
+
Discord Analytics
+
KittyNet server — loading…
+
+ +
+ +
+
—
Members
+
—
7-Day Growth
+
—
Total Messages
+
—
Linked Accounts
+
—
Voice Sessions
+
—
In Voice Now
+
+ +
+
+
Member Growth
Last 30 days — sampled every ~2h
+
+ +
+ +
+
+
+
Message Activity
Last 48 hours by hour
+
+ +
+
+
+
Top Channels
By all-time message count
+
+ +
+
+
+ +
+
+
+
Top Voice Channels
Total hours logged
+
+ +
+
+
Recent Join / Leave Events
+
+ + + +
UserEventWhen
Loading…
+
+
+
+
+ +
+
Top Active Discord Users
+
+ + + +
#UsernameMessagesLast Active
Loading…
+
+
+ +
+
Discord-Linked KittyRec Accounts
+
+ + + +
Discord UserKittyRec AccountLevelLinked At
Loading…
+
+
+
+ +{% endblock %} +{% block scripts %} + + +{% endblock %} diff --git a/templates/admin/dll_archive.html b/templates/admin/dll_archive.html new file mode 100644 index 0000000..76db946 --- /dev/null +++ b/templates/admin/dll_archive.html @@ -0,0 +1,157 @@ +{% extends 'admin/custom_base.html' %} +{% block body %} +
+

DLL Archive

+ + {% if SCOPE_ADMIN in scopes %} +
+
+ Upload New DLL
+
+
+
+ + +
+
+ +
+ + +
+
+
+ + +
+
+
+
+
+ {% endif %} + +
+
All DLLs
+
+ + + + + + + + + + + {% if SCOPE_ADMIN in scopes %}{% endif %} + + + + + +
LabelFilenameSizeUploadedByBranchSHA-512Actions
Loading…
+
+
+
+ + +{% endblock %} diff --git a/templates/admin/downloads_view.html b/templates/admin/downloads_view.html new file mode 100644 index 0000000..ae85551 --- /dev/null +++ b/templates/admin/downloads_view.html @@ -0,0 +1,314 @@ +{% extends 'admin/custom_base.html' %} +{% block body %} +
+

Downloads

+ +
+
+ Upload New Build
+
+
+
+ + +
+
+ +
+ + +
+
+
+ + +
+
+ +
+
+
+ +
+
+ All Builds + + Current: None set +  ·  Permanent URL: /download/current + +
+
+ + + + + + + + + + + + + + + +
Build NameDateSizeDLsUploaded ByStatusActions
Loading…
+
+
+
+ + + + +{% endblock %} + \ No newline at end of file