Move sign out to the bottom center of every sidebar

This commit is contained in:
Dymas committed 2026-10-22 13:57:12 +02:00
1 parent dc7808c94f
commit 219e64f5a2
9 files changed
+68 -28

No files matched your search

+5
View File
@@ -1,5 +1,10 @@
# Changelog
## 0.55.1 - 2026-10-22
- Moved Sign out to the bottom center of the left sidebar on every page, below navigation and page-specific controls. Desktop sidebars stay within the viewport and scroll when needed; mobile layouts keep the button below the sidebar content.
- Checked all three bundled anime providers against upstream; no updates were required.
## 0.55.0 - 2026-10-22
- Added configurable `base_url` / `KAIZOKU_BASE_URL` for reverse proxies that forward a complete mount path such as `https://tools.coreplay.eu/kaizoku`. Navigation, APIs, thumbnails, exports, login redirects, and cookies respect the prefix; unrelated paths return 404.
+1 -1
View File
@@ -7,7 +7,7 @@ A local web app to search, track, and download anime from Anikoto, AniNeko, and
- Download available English subtitles and translate them to Czech with Ollama or OpenAI.
- Back up watchlists and receive Discord notifications.
The AI Subtitles page uses the same sidebar navigation and responsive layout as the other pages.
The AI Subtitles page uses the same sidebar navigation and responsive layout as the other pages. **Sign out** is centered at the bottom of the left sidebar on every page.
Jellyfin handoff checks each downloaded TV season in **Finished** separately, verifies its season-specific completion metadata, and moves only that season and its sidecars once its expected video files are present. Other seasons remain in Downloads. Use **Config → Handoff → Run now** after updating to repair missing or incorrect season metadata and retry previously skipped seasons. If metadata cannot be verified, the queue reports the skip and retains the files for a later retry.
+1 -1
View File
@@ -1 +1 @@
0.55.0
0.55.1
+6 -5
View File
@@ -1,5 +1,5 @@
"""AI subtitle library and persistent translation queue UI."""
from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand
from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout
AI_SUBTITLES_HTML = r'''<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
@@ -7,13 +7,14 @@ AI_SUBTITLES_HTML = r'''<!doctype html>
<style>
:root{color-scheme:dark;--text:#f6f2ff;--muted:#b8b0cf;--accent:#9d7bff;--line:#ffffff18}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top left,#251738,#090611 65%);color:var(--text);font:15px/1.5 "Segoe UI",system-ui,sans-serif;min-height:100vh}
.shell{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);min-height:100vh}aside{padding:22px;border-right:1px solid var(--line);background:linear-gradient(180deg,rgba(25,18,41,.94),rgba(14,10,24,.9));display:grid;align-content:start;gap:20px;backdrop-filter:blur(18px) saturate(170%)}h1{margin:0;font-size:29px;line-height:1.05;letter-spacing:-.04em}.topline{display:flex;gap:10px;align-items:center;justify-content:space-between}.brand-wrap{display:grid;gap:6px}.shell-note{font-size:13px;max-width:28ch}.shell-note,.muted{color:var(--muted)}.badge{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:999px;padding:6px 10px;color:var(--muted);background:#ffffff0a;font-size:12px;white-space:nowrap}.page-links{display:grid;gap:8px;padding:6px;border:1px solid var(--line);border-radius:18px;background:#ffffff08}.page-link{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;border:0;border-radius:12px;padding:0 14px;color:var(--muted);background:transparent;font-weight:700;text-decoration:none;transition:background .16s ease,color .16s ease,transform .16s ease}.page-link:hover{background:#ffffff0d;color:var(--text)}.page-link.active{background:#9d7bff24;color:var(--text);box-shadow:inset 0 0 0 1px #9d7bff38}
.shell{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);min-height:100vh}aside{padding:22px;border-right:1px solid var(--line);background:linear-gradient(180deg,rgba(25,18,41,.94),rgba(14,10,24,.9));display:flex;flex-direction:column;align-self:start;position:sticky;top:0;height:100dvh;overflow-y:auto;gap:20px;backdrop-filter:blur(18px) saturate(170%)}h1{margin:0;font-size:29px;line-height:1.05;letter-spacing:-.04em}.topline{display:flex;gap:10px;align-items:center;justify-content:space-between}.brand-wrap{display:grid;gap:6px}.shell-note{font-size:13px;max-width:28ch}.shell-note,.muted{color:var(--muted)}.badge{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:999px;padding:6px 10px;color:var(--muted);background:#ffffff0a;font-size:12px;white-space:nowrap}.page-links{display:grid;gap:8px;padding:6px;border:1px solid var(--line);border-radius:18px;background:#ffffff08}.page-link{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;border:0;border-radius:12px;padding:0 14px;color:var(--muted);background:transparent;font-weight:700;text-decoration:none;transition:background .16s ease,color .16s ease,transform .16s ease}.page-link:hover{background:#ffffff0d;color:var(--text)}.page-link.active{background:#9d7bff24;color:var(--text);box-shadow:inset 0 0 0 1px #9d7bff38}
.sidebar-logout{margin:auto 0 0;padding-top:20px;text-align:center}aside>*{flex-shrink:0}
main{padding:32px;max-width:1500px;width:100%}h2{font-size:30px;margin:0}h3{margin:0 0 10px}p{margin:8px 0 18px}button,input,textarea,select{font:inherit;color:inherit;background:#21172f;border:1px solid #ffffff25;border-radius:9px;padding:9px 12px}button{cursor:pointer}button:hover{border-color:var(--accent)}button:disabled{opacity:.5;cursor:default}button.primary{background:#7953d0}input{width:min(100%,420px)}textarea{width:100%;min-height:100px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #c6adff;outline-offset:3px}
.toolbar,.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toolbar{justify-content:space-between;margin-bottom:22px}.cards{display:grid;gap:0}.card,.panel{border:1px solid var(--line);background:#191229d9;border-radius:16px;padding:20px}.card{text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:0;padding:10px 14px}.card strong{font-size:15px}.alphabet{display:flex;gap:4px;flex-wrap:wrap;margin:14px 0}.alphabet button{padding:5px 9px}.active-filter{background:#7953d0}.library-controls{display:flex;gap:16px;flex-wrap:wrap;align-items:end;margin:16px 0}.pager{display:flex;align-items:center;justify-content:space-between;margin:14px 0;gap:10px}.panel{margin-bottom:18px}details{margin:16px 0}summary{cursor:pointer;font-size:19px;padding:10px 0}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:13px 9px;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);font-size:13px}.table-wrap{overflow:auto}td:first-child{min-width:220px;overflow-wrap:anywhere}.state{color:#c7acff}.error{color:#ffa8b0}.warning{color:#f0c67a}small{display:block;color:var(--muted)}progress{display:block;margin:6px 0;width:130px;accent-color:var(--accent)}#message{min-height:24px;margin-bottom:12px}#connection{overflow-wrap:anywhere}a{color:#c7acff}[hidden]{display:none!important}
@media(max-width:900px){.shell{grid-template-columns:1fr}aside{border-right:0;border-bottom:1px solid var(--line)}}
@media(max-width:900px){.shell{grid-template-columns:1fr}aside{position:static;height:auto;overflow:visible;border-right:0;border-bottom:1px solid var(--line)}}
@media(max-width:760px){main{padding:20px}h2{font-size:26px}}
dialog{width:min(1200px,95vw);max-height:90vh;border:1px solid #9d7bff66;border-radius:16px;padding:24px;background:#191229;color:var(--text)}dialog::backdrop{background:#0009}.review-scroll{max-height:65vh;overflow:auto}.review-text{white-space:pre-wrap;overflow-wrap:anywhere}.review-table{table-layout:fixed}.review-table td:first-child{min-width:0;width:50%}.review-table th{position:sticky;top:0;background:#21172f}.review-table td{width:50%}.review-editor{width:100%;min-height:95px;resize:vertical;margin:8px 0}.review-actions{display:flex;gap:8px;margin-top:8px}.review-cell-error{margin-top:7px}
</style></head><body><div class="shell"><aside>__BRAND____NAV__</aside><main>
</style></head><body><div class="shell"><aside>__BRAND____NAV____LOGOUT__</aside><main>
<div class="toolbar"><div><h2>AI Subtitles</h2><p class="muted">Your Jellyfin dialogue, translated into Czech.</p></div><button id="scan" class="primary">Scan libraries</button></div>
<p id="connection" class="muted"></p><div id="scan-errors" class="warning" role="status"></div><div id="message" role="status" aria-live="polite"></div>
<section id="library">
@@ -111,4 +112,4 @@ function renderDetail(){if(!selected)return;const host=$('seasons');const open=n
async function refresh(){data=await api('/api/ai-subtitles');$('connection').textContent=`${data.backend==='openai'?'OpenAI API':'Ollama'} · ${data.model} · ${data.endpoint} · TV: ${data.roots.tv} · Movies: ${data.roots.movie}`;$('scan').disabled=data.scanning;$('scan').textContent=data.scanning?'Scanning…':'Scan libraries';$('scan-errors').textContent=data.scan_errors.join(' ');renderLibrary();renderDetail();}
$('scan').onclick=()=>action('scan');$('filter').oninput=()=>{libraryPage=1;renderLibrary();};$('back').onclick=()=>{selected=null;$('library').hidden=false;$('detail').hidden=true;$('seasons').replaceChildren();};$('queue-title').onclick=()=>action('queue',selection());$('save-notes').onclick=()=>action('terminology',{...selection(),notes:$('notes').value});
refresh().catch(e=>message(e.message,true));startSerialPoll(async()=>{if(!busy&&!['SELECT','TEXTAREA'].includes(document.activeElement.tagName)){try{await refresh();}catch(e){message(e.message,true);}}},4000);
</script></body></html>'''.replace('__BRAND__', render_sidebar_brand('Library translation', 'AI Subtitles')).replace('__NAV__', render_page_links('ai-subtitles')).replace('__API__', BROWSER_API_HELPER).replace('__POLL__', BROWSER_POLL_HELPER)
</script></body></html>'''.replace('__BRAND__', render_sidebar_brand('Library translation', 'AI Subtitles')).replace('__NAV__', render_page_links('ai-subtitles')).replace('__LOGOUT__', render_sidebar_logout()).replace('__API__', BROWSER_API_HELPER).replace('__POLL__', BROWSER_POLL_HELPER)
+12 -5
View File
@@ -3,7 +3,7 @@
"""Config page template for Kaizoku."""
from app_support import DISCORD_WEBHOOK_EVENT_CHOICES, DISCORD_WEBHOOK_EVENT_LABELS
from template_helpers import BROWSER_API_HELPER, render_page_links, render_sidebar_brand
from template_helpers import BROWSER_API_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout
WEBHOOK_EVENT_OPTIONS = "\n".join(
@@ -126,11 +126,18 @@ CONFIG_HTML = r"""<!doctype html>
aside {
border-right: 1px solid var(--line);
background: linear-gradient(180deg, rgba(25, 18, 41, 0.94), rgba(14, 10, 24, 0.9));
display: grid;
align-content: start;
display: flex;
flex-direction: column;
align-self: start;
position: sticky;
top: 0;
height: 100dvh;
overflow-y: auto;
gap: 20px;
backdrop-filter: blur(18px) saturate(170%);
}
aside > * { flex-shrink: 0; }
.sidebar-logout { margin: auto 0 0; padding-top: 20px; text-align: center; }
main {
display: grid;
gap: 20px;
@@ -449,7 +456,7 @@ CONFIG_HTML = r"""<!doctype html>
}
@media (max-width: 900px) {
.app { grid-template-columns: 1fr; }
aside { border-right: 0; border-bottom: 1px solid var(--line); }
aside { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
.toolbar, .row { align-items: stretch; flex-direction: column; }
}
@media (max-width: 1080px) {
@@ -495,7 +502,7 @@ CONFIG_HTML = r"""<!doctype html>
<div class="provider-update-list" id="providerUpdatesList"></div>
</div>
</section>
</aside>
""" + render_sidebar_logout() + r""" </aside>
<main>
<section class="deps" id="deps"></section>
+12 -5
View File
@@ -2,7 +2,7 @@
"""Queue page template for Kaizoku."""
from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand
from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout
QUEUE_HTML = r"""<!doctype html>
@@ -99,11 +99,18 @@ QUEUE_HTML = r"""<!doctype html>
aside {
border-right: 1px solid var(--line);
background: linear-gradient(180deg, rgba(25, 18, 41, 0.94), rgba(14, 10, 24, 0.9));
display: grid;
align-content: start;
display: flex;
flex-direction: column;
align-self: start;
position: sticky;
top: 0;
height: 100dvh;
overflow-y: auto;
gap: 20px;
backdrop-filter: blur(18px) saturate(170%);
}
aside > * { flex-shrink: 0; }
.sidebar-logout { margin: auto 0 0; padding-top: 20px; text-align: center; }
main {
display: grid;
grid-template-rows: auto auto 1fr;
@@ -380,7 +387,7 @@ QUEUE_HTML = r"""<!doctype html>
}
@media (max-width: 900px) {
.app { grid-template-columns: 1fr; }
aside { border-right: 0; border-bottom: 1px solid var(--line); }
aside { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
.toolbar, .row { align-items: stretch; flex-direction: column; }
.job-head { grid-template-columns: auto 1fr; }
.job-head .status { grid-column: 2; justify-self: start; }
@@ -405,7 +412,7 @@ QUEUE_HTML = r"""<!doctype html>
<button class="ghost" id="removeFinishedBtn" type="button">Remove finished</button>
</div>
</section>
</aside>
""" + render_sidebar_logout() + r""" </aside>
<main>
<section class="toolbar">
+12 -5
View File
@@ -2,7 +2,7 @@
"""Search page template for Kaizoku."""
from template_helpers import BROWSER_API_HELPER, render_page_links, render_sidebar_brand
from template_helpers import BROWSER_API_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout
INDEX_HTML = r"""<!doctype html>
@@ -129,11 +129,18 @@ INDEX_HTML = r"""<!doctype html>
aside {
border-right: 1px solid var(--line);
background: linear-gradient(180deg, rgba(25, 18, 41, 0.94), rgba(14, 10, 24, 0.9));
display: grid;
align-content: start;
display: flex;
flex-direction: column;
align-self: start;
position: sticky;
top: 0;
height: 100dvh;
overflow-y: auto;
gap: 20px;
backdrop-filter: blur(18px) saturate(170%);
}
aside > * { flex-shrink: 0; }
.sidebar-logout { margin: auto 0 0; padding-top: 20px; text-align: center; }
main {
display: grid;
gap: 20px;
@@ -442,7 +449,7 @@ INDEX_HTML = r"""<!doctype html>
}
@media (max-width: 900px) {
.app { grid-template-columns: 1fr; }
aside { border-right: 0; border-bottom: 1px solid var(--line); }
aside { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
.controls, .row, .toolbar { align-items: stretch; flex-direction: column; }
.search-panel .controls { grid-template-columns: 1fr; }
.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@@ -460,7 +467,7 @@ INDEX_HTML = r"""<!doctype html>
"Search",
badge_id="serverBadge",
) + render_page_links("search") + r"""
</aside>
""" + render_sidebar_logout() + r""" </aside>
<main>
<section class="search-panel">
+7 -1
View File
@@ -87,5 +87,11 @@ def render_page_links(active_page):
for key, label, href in PAGE_LINKS:
class_name = "page-link active" if key == active_page else "page-link"
links.append(f' <a class="{class_name}" href="{href}">{label}</a>')
links.append(' <form method="post" action="/auth/logout"><button type="submit">Sign out</button></form>')
return " <nav class=\"page-links\" aria-label=\"Primary navigation\">\n" + "\n".join(links) + "\n </nav>\n"
def render_sidebar_logout():
return (
' <form class="sidebar-logout" method="post" action="/auth/logout">'
'<button type="submit">Sign out</button></form>\n'
)
+12 -5
View File
@@ -2,7 +2,7 @@
"""Watchlist page template for Kaizoku."""
from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand
from template_helpers import BROWSER_API_HELPER, BROWSER_POLL_HELPER, render_page_links, render_sidebar_brand, render_sidebar_logout
WATCHLIST_HTML = r"""<!doctype html>
@@ -119,11 +119,18 @@ WATCHLIST_HTML = r"""<!doctype html>
aside {
border-right: 1px solid var(--line);
background: linear-gradient(180deg, rgba(25, 18, 41, 0.94), rgba(14, 10, 24, 0.9));
display: grid;
align-content: start;
display: flex;
flex-direction: column;
align-self: start;
position: sticky;
top: 0;
height: 100dvh;
overflow-y: auto;
gap: 20px;
backdrop-filter: blur(18px) saturate(170%);
}
aside > * { flex-shrink: 0; }
.sidebar-logout { margin: auto 0 0; padding-top: 20px; text-align: center; }
main {
display: grid;
gap: 20px;
@@ -734,7 +741,7 @@ WATCHLIST_HTML = r"""<!doctype html>
}
@media (max-width: 900px) {
.app { grid-template-columns: 1fr; }
aside { border-right: 0; border-bottom: 1px solid var(--line); }
aside { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
.toolbar, .row { align-items: stretch; flex-direction: column; }
.summary-grid { grid-template-columns: 1fr; }
.watchlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@@ -754,7 +761,7 @@ WATCHLIST_HTML = r"""<!doctype html>
"Watch tracking, refreshes, and automatic downloads.",
"Watchlist",
) + render_page_links("watchlist") + r"""
</aside>
""" + render_sidebar_logout() + r""" </aside>
<main>
<section class="watchlist-shell">