recorder.py aktualisiert

This commit is contained in:
2026-10-01 22:58:47 +02:00
parent aa742f62c4
commit 178b83d066
+22 -1
View File
@@ -65,6 +65,8 @@ PAGE_HEADING = os.environ.get("PAGE_HEADING", "EVENT AUDIO – Aufnahmen")
THEME_FILE = Path(os.environ.get("THEME_FILE", "/config/theme.json")) THEME_FILE = Path(os.environ.get("THEME_FILE", "/config/theme.json"))
LOGO_FILE = Path(os.environ["LOGO_FILE"]) if os.environ.get("LOGO_FILE") else None LOGO_FILE = Path(os.environ["LOGO_FILE"]) if os.environ.get("LOGO_FILE") else None
FAVICON_FILE = Path(os.environ["FAVICON_FILE"]) if os.environ.get("FAVICON_FILE") else None FAVICON_FILE = Path(os.environ["FAVICON_FILE"]) if os.environ.get("FAVICON_FILE") else None
GIT_REPO_URL = os.environ.get("GIT_REPO_URL", "")
EDITOR_URL = os.environ.get("EDITOR_URL", "")
DEFAULT_THEME = {'background': '#111', 'surface': '#181818', 'surface_alt': '#222', 'surface_dark': '#0b0b0b', 'text': '#eee', 'text_secondary': '#ccc', 'text_muted': '#aaa', 'text_faint': '#777', 'border': '#333', 'border_subtle': '#2b2b2b', 'control': '#333', 'control_hover': '#444', 'primary': '#1769aa', 'primary_hover': '#1f7fc2', 'accent': '#ffcc33', 'success': '#173d24', 'success_text': '#b8f5c9', 'warning': '#6b4e00', 'danger': '#8b0000', 'danger_soft': '#4a2020', 'danger_soft_hover': '#6a2b2b', 'error': '#4a1b1b', 'error_text': '#ffd0d0', 'recording': '#b00000', 'recording_border': '#3a2222', 'selection': 'rgba(80,150,255,.16)', 'shadow': '#000', 'scroll_thumb': '#777', 'scroll_thumb_hover': '#999', 'scroll_thumb_active': '#aaa', 'live_surface': '#1d1111', 'table_header': '#252525', 'table_text': '#eee', 'footer': '#666', 'white': '#fff','surface_modal':'#202020','overlay':'rgba(0,0,0,.78)'} DEFAULT_THEME = {'background': '#111', 'surface': '#181818', 'surface_alt': '#222', 'surface_dark': '#0b0b0b', 'text': '#eee', 'text_secondary': '#ccc', 'text_muted': '#aaa', 'text_faint': '#777', 'border': '#333', 'border_subtle': '#2b2b2b', 'control': '#333', 'control_hover': '#444', 'primary': '#1769aa', 'primary_hover': '#1f7fc2', 'accent': '#ffcc33', 'success': '#173d24', 'success_text': '#b8f5c9', 'warning': '#6b4e00', 'danger': '#8b0000', 'danger_soft': '#4a2020', 'danger_soft_hover': '#6a2b2b', 'error': '#4a1b1b', 'error_text': '#ffd0d0', 'recording': '#b00000', 'recording_border': '#3a2222', 'selection': 'rgba(80,150,255,.16)', 'shadow': '#000', 'scroll_thumb': '#777', 'scroll_thumb_hover': '#999', 'scroll_thumb_active': '#aaa', 'live_surface': '#1d1111', 'table_header': '#252525', 'table_text': '#eee', 'footer': '#666', 'white': '#fff','surface_modal':'#202020','overlay':'rgba(0,0,0,.78)'}
@@ -803,6 +805,11 @@ a.button:hover {
color: var(--color-text-faint); color: var(--color-text-faint);
} }
.footer-links { display:flex; justify-content:center; align-items:center; gap:16px; margin-top:8px; }
.footer-links a { color:var(--color-footer); text-decoration:none; }
.footer-links a:hover { color:var(--color-text); text-decoration:underline; }
.git-icon { display:inline-block; margin-right:4px; font-size:16px; line-height:1; }
.footer { .footer {
margin-top: 24px; margin-top: 24px;
color: var(--color-footer); color: var(--color-footer);
@@ -1006,7 +1013,19 @@ a.button:hover {
</div> </div>
<div class="footer"> <div class="footer">
Live-Status wird bei Start und Ende einer Aufnahme automatisch aktualisiert. <div>Live-Status wird bei Start und Ende einer Aufnahme automatisch aktualisiert.</div>
{% if git_repo_url or editor_url %}
<div class="footer-links">
{% if git_repo_url %}
<a href="{{ git_repo_url }}" target="_blank" rel="noopener noreferrer">
<span class="git-icon" aria-hidden="true">⎇</span> App auf Git
</a>
{% endif %}
{% if editor_url %}
<a href="{{ editor_url }}">Editor</a>
{% endif %}
</div>
{% endif %}
</div> </div>
<script> <script>
@@ -1252,6 +1271,8 @@ def render_index():
normalizing_filename=normalizing_filename, normalizing_filename=normalizing_filename,
status_error=status_error, status_error=status_error,
icecast_public_url=ICECAST_PUBLIC_URL, icecast_public_url=ICECAST_PUBLIC_URL,
git_repo_url=GIT_REPO_URL,
editor_url=EDITOR_URL,
**branding_context(), **branding_context(),
) )