From a24eae242cea096ec5cd95233073bbb446aa92ad Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 24 Jul 2026 15:29:30 +0000 Subject: [PATCH] Upload files to "templates/admin" --- templates/admin/events_view.html | 310 +++++++ templates/admin/gift_item.html | 202 +++++ templates/admin/gifts.html | 82 ++ templates/admin/index.html | 1443 ++++++++++++++++++++++++++++++ templates/admin/kittyrecMod.html | 79 ++ 5 files changed, 2116 insertions(+) create mode 100644 templates/admin/events_view.html create mode 100644 templates/admin/gift_item.html create mode 100644 templates/admin/gifts.html create mode 100644 templates/admin/index.html create mode 100644 templates/admin/kittyrecMod.html diff --git a/templates/admin/events_view.html b/templates/admin/events_view.html new file mode 100644 index 0000000..2d8cf92 --- /dev/null +++ b/templates/admin/events_view.html @@ -0,0 +1,310 @@ +{% extends 'admin/custom_base.html' %} + +{% block head_css %}{{ super() }} + +{% endblock %} + +{% block body %} +{{ super() }} +
+
+

Events

+ {% if SCOPE_ADMIN in scopes %} + + {% endif %} +
+ +
+ +
+ + + + +{% endblock %} diff --git a/templates/admin/gift_item.html b/templates/admin/gift_item.html new file mode 100644 index 0000000..6aa4dd4 --- /dev/null +++ b/templates/admin/gift_item.html @@ -0,0 +1,202 @@ +{% extends 'admin/custom_base.html' %} + +{% block body %} +
+
+

Gift Item to Player

+ Back to Players +
+ + {% if error %} +
{{ error }}
+ {% endif %} + {% if success %} +
{{ success }}
+ {% endif %} + + {% if player %} +
+
Player: {{ player.Username }} (ID {{ player.Id }})
+
+ Display name: {{ player.DisplayName }} — Level {{ player.Level }} — {{ player.Xp }} XP +
+
+ +
+
Gift Details
+
+
+ + +
+ + +
+ +
+
+ + + + {{ all_items|length }} avatar items available ({{ custom_items_only|length }} custom) +
+
+ + + + + + + +
+ +
+
+
+ + + Bonus XP included with the gift +
+
+
+
+ + + Levels to grant (0 = none) +
+
+
+
+ + +
+
+
+ +
+ + +
+ +
+ + Reset +
+
+
+
+ + {% else %} +
+
+

No player selected. Enter a player ID:

+
+
+ +
+ +
+
+
+
+
+ {% endif %} +
+ + +{% endblock %} diff --git a/templates/admin/gifts.html b/templates/admin/gifts.html new file mode 100644 index 0000000..32a379d --- /dev/null +++ b/templates/admin/gifts.html @@ -0,0 +1,82 @@ +{% extends "admin/admin_base.html" %} +{% block title %}Gifts — KittyRec Admin{% endblock %} + +{% block content %} + + +
+
+

Recent Gifts

+
+ {{ pending }} pending + {{ total }} total +
+
+
+ + + + + + + + + + + + + + + {% for g in gifts %} + + + + + + + + + + + {% endfor %} + +
IDPlayerXPItemRarityContextStatusCreated
{{ g.id }}{{ g.username }}+{{ g.xp }} + {% if g.avatar_item_desc %} + {{ g.avatar_item_desc }} + {% elif g.consumable_item_desc %} + {{ g.consumable_item_desc }} + {% elif g.equipment_prefab_name %} + {{ g.equipment_prefab_name | replace('[','') | replace(']','') }} + {% elif g.currency and g.currency > 0 %} + {{ g.currency }} {% if g.currency_type == 1 %}LaserTag Tickets{% elif g.currency_type == 2 %}Tokens{% elif g.currency_type == 100 %}Lost Skulls{% else %}Currency{% endif %} + {% elif g.xp and g.xp > 0 %} + XP only + {% elif g.level and g.level > 0 %} + Level grant + {% else %} + — + {% endif %} + + {% set rmap = {0: ('Common','badge-gray'), 10: ('Uncommon','badge-green'), 20: ('Rare','badge-teal'), 30: ('Epic','badge-yellow'), 50: ('Legendary','badge-purple')} %} + {% set rinfo = rmap.get(g.gift_rarity, ('?','badge-gray')) %} + {{ rinfo[0] }} + + {% if g.gift_context == 1 %}Post-game + {% elif g.gift_context == 2 %}Store + {% else %}Admin{% endif %} + + {% if g.consumed %} + Opened + {% else %} + Pending + {% endif %} + {{ g.created_at[:16] if g.created_at else '—' }}
+
+
+{% endblock %} diff --git a/templates/admin/index.html b/templates/admin/index.html new file mode 100644 index 0000000..1c7b44a --- /dev/null +++ b/templates/admin/index.html @@ -0,0 +1,1443 @@ +{% extends 'admin/custom_base.html' %} + +{% block body %} +
+ +
+
+

Dashboard

+
+ Signed in as {{ account.username }} + {% if SCOPE_ADMIN in scopes %}Admin{% else %}Mod{% endif %} +
+
+
+
+ + Go +
+ +
+
+ + + +
+
+
Total Players
+
{{ total_players }}
+
+
+
Online
+
{{ online_count }}
+
+
+
Sessions
+
{{ session_count }}
+
+
+
Pending Gifts
+
{{ pending_gifts }}
+
+
+
Banned
+
{{ banned_count }}
+
+
+
Admin Logins Today
+
{{ admin_logins_today }}
+
+
+
Total Playtime
+
—
+
+
+ +
+
+
+

Online Players

+ {{ online_count }} +
+
+ {% if online_players %} + + + + {% for p in online_players %} + + + + + + + {% endfor %} + +
PlayerLevelRoomActions
+ {{ p.username }} + {% if p.developer %}Dev{% endif %} + {% if p.screen_mode %}Screen{% else %}VR{% endif %} + {{ p.level }}{{ p.room }} +
+ + {% if SCOPE_ADMIN in scopes %} + + + + {% endif %} + +
+
+ {% else %} +
No players online
+ {% endif %} +
+
+ +
+
+

Active Sessions

+ View All → +
+
+ {% if active_sessions %} + + + + {% for s in active_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 %} +
+
+
+ +
+
+

Top Players by Playtime

+ All time +
+
+ + + +
#PlayerLevelPlaytimeSessions
Loading…
+
+
+ +
+

Recent Admin Actions

+
+ {% if recent_actions %} + + + + {% for a in recent_actions %} + + + + + + + {% endfor %} + +
ActionAdminDetailsTime
+ {% if 'ban' in a.action and 'unban' not in a.action %}{{ a.action|upper }} + {% elif a.action == 'unban' %}UNBAN + {% elif a.action == 'login' %}LOGIN + {% elif a.action == 'disconnect' %}KICK + {% elif a.action in ('gift_all', 'gift_xp', 'gift_player') %}GIFT + {% elif a.action == 'reroll_store' %}STORE + {% elif a.action == 'toggle_dev' %}DEV + {% elif a.action == 'reset_password' %}RESET PASS + {% elif a.action == 'send_dm' %}DM + {% elif a.action == 'maintenance_mode' %}MAINT + {% elif a.action == 'git_sync' %}GIT + {% elif a.action == 'create_room' %}ROOM + {% else %}{{ a.action|upper }}{% endif %} + {{ a.admin_name }}{{ (a.details or '—')|e }}{{ a.created_at[:16] if a.created_at else '' }}
+ {% else %} +
No recent actions
+ {% endif %} +
+
+ + {% if SCOPE_ADMIN in scopes %} +
+

Quick Actions

+
+
+
+
Gifts
+
+ + +
+
+
+
Messaging
+
+ + +
+
+
+
Store
+ +
Force a new 12-hour rotation
+
+
+
Photos
+ +
Stitch all HD photos into one image
+
+
+
Server
+
+ +
Checking...
+ + +
Pull latest from remote
+ +
Restart the Flask process
+ +
Off — reboot once all players leave
+
+ + +
+
+
+
+
+
Player Quick Actions
+
+
+ + +
+ + + + +
+ +
+
+
+ {% endif %} + + {% if SCOPE_ADMIN in scopes %} +
+
+

Anticheat Suspects

+ +
+
+
Click Refresh to load
+
+
+ +
+
+

Sanitize Log

+ +
+
+
Click Refresh to load
+
+
+ {% endif %} + +
+ +{% if SCOPE_ADMIN in scopes %} +
+
+
+

Maintenance Mode

+ +
+
+
+ + +
+
+
+
+ + +
+ +
+ +
+ +
+
+ + + + + + + + + + + + + + +{% endif %} + + +{% endblock %} diff --git a/templates/admin/kittyrecMod.html b/templates/admin/kittyrecMod.html new file mode 100644 index 0000000..00b673e --- /dev/null +++ b/templates/admin/kittyrecMod.html @@ -0,0 +1,79 @@ +{% extends 'admin/custom_base.html' %} +{% block body %} +
+

KittyRec Mod — DLL Management

+ + {% if error %} +
{{ error }}
+ {% endif %} + {% if success %} +
{{ success }}
+ {% endif %} + +
+ {% for branch_id, branch_name in branchs.items() %} + {% set current = dll_data.get(branch_id) %} +
+
+
+ {{ branch_name }} + {% if current %} + Active + {% else %} + No DLL + {% endif %} +
+
+ {% if current %} +

File:
+ {{ current.file }}

+

SHA-512:
+ {{ current.hash }}

+ {% else %} +

No DLL uploaded for this branch.

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