[ARCH] Buryans One Alpha read-only shell
This commit is contained in:
1 parent
2fa7cf3944
commit
349000a10d
1 file changed
+11
-2
@@ -93,7 +93,7 @@ class H(BaseHTTPRequestHandler):
|
||||
|
||||
PAGE = """<!doctype html><html lang=ru><head><meta charset=utf-8>
|
||||
<meta name=viewport content="width=device-width,initial-scale=1">
|
||||
<title>Buryans Media Alpha</title>
|
||||
<title>Buryans One Alpha — read-only</title>
|
||||
<style>
|
||||
body{background:#0d1117;color:#e6edf3;font:15px/1.5 system-ui,Arial;margin:0;padding:28px}
|
||||
h1{font-size:24px;margin:0 0 4px}.mut{color:#8b949e}
|
||||
@@ -104,9 +104,18 @@ button{padding:12px 16px;border-radius:8px;border:0;background:#2f81f7;color:#ff
|
||||
.card h3{margin:0 0 4px;font-size:16px}.tag{color:#8b949e;font-size:12px}
|
||||
a{color:#58a6ff}
|
||||
</style></head><body>
|
||||
<h1>Buryans Media Alpha</h1><div class=mut>Read-only поиск по Jellyfin. Запросы и просмотр — в native Jellyfin.</div>
|
||||
<h1>Buryans One Alpha</h1><div class=mut>Read-only вход. Поиск по Jellyfin; сервисы открываются в native-приложениях.</div>
|
||||
<div class=grid style="margin:16px 0">
|
||||
<a class=card href="https://media.buryans.ru" target=_blank><h3>Jellyfin</h3><div class=tag>фильмы и сериалы</div></a>
|
||||
<a class=card href="https://requests.buryans.ru" target=_blank><h3>Seerr</h3><div class=tag>заявки</div></a>
|
||||
<a class=card href="https://music.buryans.ru" target=_blank><h3>Navidrome</h3><div class=tag>музыка</div></a>
|
||||
<a class=card href="https://element.buryans.ru" target=_blank><h3>Element</h3><div class=tag>Matrix</div></a>
|
||||
<a class=card href="http://192.168.1.10:9161/" target=_blank><h3>Audit 360</h3><div class=tag>аудит</div></a>
|
||||
<a class=card href="http://192.168.1.140:3000/" target=_blank><h3>Gitea</h3><div class=tag>код и решения</div></a>
|
||||
</div>
|
||||
<div style="margin:18px 0"><input id=q placeholder="Фильм или сериал..." autofocus> <button onclick="go()">Найти</button></div>
|
||||
<div id=msg class=mut></div><div id=out class=grid></div>
|
||||
<div class=mut style="margin-top:18px">Alpha read-only. Запросы и изменения — только после Gate G1.</div>
|
||||
<script>
|
||||
const e=s=>String(s??'').replace(/[&<>"]/g,c=>({'&':'&','<':'<','>':'>','"':'"'}[c]));
|
||||
async function go(){const q=document.getElementById('q').value.trim();if(!q)return;document.getElementById('msg').textContent='поиск...';const r=await fetch('v1/media/search?q='+encodeURIComponent(q));const d=await r.json();if(!d.ok){document.getElementById('msg').textContent=d.error||'ошибка';return}document.getElementById('msg').textContent=d.items.length?'':'ничего не найдено';document.getElementById('out').innerHTML=d.items.map(x=>`<div class=card><h3>${e(x.name)}</h3><div class=tag>${e(x.type)} ${e(x.year||'')}</div><div class=mut style="margin-top:6px">${e(x.overview||'')}</div></div>`).join('')}
|
||||
|
||||
Reference in new issue
Block a user