From 176812ed22ab2009e4e39e1db04955f1d9182985 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 24 Jul 2026 15:28:57 +0000 Subject: [PATCH] Upload files to "templates/admin" --- templates/admin/textures_view.html | 131 ++++++++++++++++++ templates/admin/ugc_items_view.html | 175 +++++++++++++++++++++++ templates/admin/unauthorized.html | 12 ++ templates/admin/videos.html | 184 +++++++++++++++++++++++++ templates/admin/weekly_challenges.html | 172 +++++++++++++++++++++++ 5 files changed, 674 insertions(+) create mode 100644 templates/admin/textures_view.html create mode 100644 templates/admin/ugc_items_view.html create mode 100644 templates/admin/unauthorized.html create mode 100644 templates/admin/videos.html create mode 100644 templates/admin/weekly_challenges.html diff --git a/templates/admin/textures_view.html b/templates/admin/textures_view.html new file mode 100644 index 0000000..668b367 --- /dev/null +++ b/templates/admin/textures_view.html @@ -0,0 +1,131 @@ +{% extends 'admin/custom_base.html' %} + +{% block body %} +
+
+

{{ categories[category].label }} {{ total }}

+
+ + + + {% if search %}Clear{% endif %} +
+
+ +
+ {% for cat_key, cat_info in categories.items() %} + + {{ cat_info.label }} + {{ cat_counts.get(cat_key, 0) }} + + {% endfor %} +
+ + {% if not files %} +

No {{ categories[category].label|lower }} found{% if search %} matching "{{ search }}"{% endif %}.

+ {% else %} + + {% if category in ('Texture2D', 'Sprite') %} +
+ {% for f in files %} + {% set url = '/assets/' + category + '/' + f %} +
+
+ + {{ f }} + +
+
+ {{ f.rsplit('.', 1)[0] }} +
+ Download +
+
+
+ {% endfor %} +
+ + {% elif category == 'AudioClip' %} +
+ {% for f in files %} + {% set url = '/assets/' + category + '/' + f %} +
+
+
+
{{ f }}
+ + Download +
+
+
+ {% endfor %} +
+ + {% elif category == 'Font' %} +
+ {% for f in files %} + {% set url = '/assets/' + category + '/' + f %} +
+
+
+ +
+ The quick brown fox jumps over the lazy dog +
+
+ {{ f }} + Download +
+
+
+
+ {% endfor %} +
+ + {% elif category in ('TextAsset', 'Shader', 'MonoBehaviour') %} + + + + {% for f in files %} + {% set url = '/assets/' + category + '/' + f %} + + + + + {% endfor %} + +
NameActions
+ {{ f }} + + View + Download +
+ + {% endif %} + + {% if pages > 1 %} + + {% endif %} + {% endif %} +
+{% endblock %} diff --git a/templates/admin/ugc_items_view.html b/templates/admin/ugc_items_view.html new file mode 100644 index 0000000..0389a02 --- /dev/null +++ b/templates/admin/ugc_items_view.html @@ -0,0 +1,175 @@ +{% extends 'admin/custom_base.html' %} +{% block body %} +
+

UGC Avatar Items

+

+ Manage items served via GET /api/ugc/OutfitItem/get. + The client constructs http://kittyrec.tabbycluster.net/{AssetbundleName} for each entry. +

+ + {% if error %} +
{{ error }}
+ {% endif %} + {% if success %} +
{{ success }}
+ {% endif %} + + {% if SCOPE_ADMIN in scopes %} +
+
+ + Add UGC Outfit Item +
+ + +
+
+
+ +
+ + + +
+
+ + +
+
+ + +
+
+ +
+
+
+ + + Max 10MB. +
+
+ + + Max 10MB. Make sure this matches the assetbundle you uploaded. +
+
+
+ + + + +
+
+
+ {% endif %} + +
+
+ Registered UGC Outfit Items + {{ items|length }} +
+
+ + + + + + + + {% if SCOPE_ADMIN in scopes %}{% endif %} + + + + {% if not items %} + + {% else %} + {% for item in items %} + + + + + + {% if SCOPE_ADMIN in scopes %} + + {% endif %} + + + + + {% endfor %} + {% endif %} + +
Friendly NameAssetbundleNameManifestNameVerActions
No UGC outfit items registered yet.
{{ item.friendly_name }} + {{ item.assetbundle_name }} + {% if item.assetbundle_name.startswith('cdn_') %} + ↗ + {% endif %} + + {{ item.manifest_name }} + {% if item.manifest_name.startswith('cdn_') %} + ↗ + {% endif %} + {{ item.get('version', 0) }} + +
+ + + +
+
+
+
+
+ + +{% endblock %} diff --git a/templates/admin/unauthorized.html b/templates/admin/unauthorized.html new file mode 100644 index 0000000..4c0cd88 --- /dev/null +++ b/templates/admin/unauthorized.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% block title %}Unauthorized — KittyRec Admin{% endblock %} +{% block content %} +
+

Access Denied

+

Your account doesn't have admin or moderator permissions for KittyRec.

+ {% if account %} +

Signed in as {{ account.username }} — scopes: {{ scopes|join(', ') or 'none' }}

+ {% endif %} + Sign out +
+{% endblock %} diff --git a/templates/admin/videos.html b/templates/admin/videos.html new file mode 100644 index 0000000..10eb66d --- /dev/null +++ b/templates/admin/videos.html @@ -0,0 +1,184 @@ +{% extends "admin/admin_base.html" %} +{% block title %}Videos — KittyRec Admin{% endblock %} +{% block head %} + +{% endblock %} + +{% block content %} + + +
+
+

Library

+ +
+
+
Loading…
+
+
+{% endblock %} + +{% block scripts %} + +{% endblock %} diff --git a/templates/admin/weekly_challenges.html b/templates/admin/weekly_challenges.html new file mode 100644 index 0000000..0f1d8f0 --- /dev/null +++ b/templates/admin/weekly_challenges.html @@ -0,0 +1,172 @@ +{% extends 'admin/custom_base.html' %} + +{% block head %} + +{% endblock %} + +{% block body %} +
+ + + {% set rarity_names = {0:'Common',10:'Uncommon',20:'Rare',30:'Epic',50:'Legendary'} %} + {% set rarity_badge = {0:'badge-gray',10:'badge-green',20:'badge-teal',30:'badge-purple',50:'badge-yellow'} %} + +
+ {% for w in weeks %} +
+
+
{{ '%02d' % w.week_number }}
+
+
+ {% if w.override and w.override.custom_title %}{{ w.override.custom_title }} + {% elif w.override and w.override.challenge_id %} + {{ all_challenges | selectattr('id', 'equalto', w.override.challenge_id) | map(attribute='title') | first | default(w.rotation_challenge.title) }} + {% else %}{{ w.rotation_challenge.title }}{% endif %} +
+
+ {% set eff_xp = w.override.custom_reward_xp if w.override and w.override.custom_reward_xp else w.rotation_challenge.reward_xp %} + {% set eff_target = w.override.custom_target if w.override and w.override.custom_target else w.rotation_challenge.target %} + {{ eff_target }} games • {{ eff_xp }} XP +
+
+ {% if w.is_current %}Current{% endif %} + {% if w.override %} + {% set r = w.override.custom_reward_rarity if w.override.custom_reward_rarity is not none else 0 %} + {{ rarity_names.get(r, r) }} + Override + {% else %} + {% set r = w.rotation_challenge.reward_rarity %} + {{ rarity_names.get(r, r) }} + {% endif %} +
+
{{ w.week_start }} → {{ w.week_end }}
+
+ +
+ + {% if SCOPE_ADMIN in scopes %} +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ {% if w.override %} + + {% endif %} + +
+
+
+ {% endif %} +
+ {% endfor %} +
+ +
+

Available Challenges

+
+ + + + {% for ch in all_challenges %} + + + + + + + + + {% endfor %} + +
IDTitleActivityTargetReward XPRarity
{{ ch.id }}{{ ch.title }}{{ ch.activity_guid[:8] }}…{{ ch.target }} games{{ ch.reward_xp }}{{ rarity_names.get(ch.reward_rarity, ch.reward_rarity) }}
+
+
+
+ +{% with messages = get_flashed_messages(with_categories=true) %} +{% if messages %} + +{% endif %} +{% endwith %} + + +{% endblock %}