This commit is contained in:
1 parent
31f94997d5
commit
ccc1f625e8
14 files changed
+1974
-1900
No files matched your search
+1837
-1833
File diff suppressed because it is too large.
Load diff
+63
-50
@@ -32,6 +32,8 @@ try {
|
||||
aria-selected="false" aria-controls="recommendView" tabindex="-1">Рекомендации</button>
|
||||
<button class="tab" id="tabHltb" role="tab" data-view="hltb"
|
||||
aria-selected="false" aria-controls="hltbView" tabindex="-1">HLTB</button>
|
||||
<button class="tab" id="tabServices" role="tab" data-view="services"
|
||||
aria-selected="false" aria-controls="servicesView" tabindex="-1">Сервисы</button>
|
||||
</nav>
|
||||
<div class="stats" id="stats"></div>
|
||||
<button id="themeToggle" class="icon-btn theme-toggle" type="button"
|
||||
@@ -146,57 +148,7 @@ try {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="maintenance" id="maintenance">
|
||||
<button class="maintenance-toggle" id="maintenanceToggle" type="button"
|
||||
aria-expanded="false" aria-controls="maintenanceBody">
|
||||
<span class="maintenance-title">
|
||||
<svg viewBox="0 0 24 24" width="15" height="15" fill="none"
|
||||
stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M14.7 6.3a4 4 0 0 0-5.4 5.4L4 17v3h3l5.3-5.3a4 4 0 0 0 5.4-5.4l-2.2 2.2-2-2 2.2-2.2Z"/>
|
||||
</svg>
|
||||
Сервис и перевод
|
||||
</span>
|
||||
<svg class="chev" viewBox="0 0 24 24" width="16" height="16" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M6 9l6 6 6-6"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<div class="maintenance-body" id="maintenanceBody" inert aria-hidden="true">
|
||||
<div class="maintenance-inner details-progress">
|
||||
<div class="dp-head">Описания <span id="dpCount"></span></div>
|
||||
<div class="bar"><i id="dpBar"></i></div>
|
||||
<div class="dp-note" id="dpNote"></div>
|
||||
<button id="prefetch" class="link">догрузить / повторить</button>
|
||||
|
||||
<div class="dp-head translate-head">Перевод <span id="trCount"></span></div>
|
||||
<div class="bar"><i id="trBar"></i></div>
|
||||
<div class="dp-note" id="trNote"></div>
|
||||
<button id="translate" class="link">перевести кратко</button>
|
||||
<button id="translateAbout" class="link">полные описания</button>
|
||||
|
||||
<div class="refresh-block">
|
||||
<div class="dp-head">База игр</div>
|
||||
<div class="refresh-actions">
|
||||
<button id="refreshInc" class="ghost" type="button"
|
||||
title="Инкрементальное обновление">инкрем.</button>
|
||||
<button id="refreshFull" class="ghost" type="button"
|
||||
title="Полное обновление">полная</button>
|
||||
<button id="backup" class="ghost" type="button"
|
||||
title="Скачать копию БД">бэкап</button>
|
||||
<button id="hltb" class="ghost" type="button"
|
||||
title="Сверить длительность с HowLongToBeat">HLTB</button>
|
||||
</div>
|
||||
<div class="refresh-actions">
|
||||
<button id="jobCancel" class="ghost" type="button" hidden>отменить</button>
|
||||
<button id="jobRetry" class="ghost" type="button" hidden>повторить</button>
|
||||
</div>
|
||||
<div class="dp-note" id="hltbNote"></div>
|
||||
<div class="dp-note" id="jobStatus"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<div class="content">
|
||||
@@ -352,6 +304,22 @@ try {
|
||||
<h1>HLTB: проверенные игры</h1>
|
||||
<div class="muted" id="hltbSummary"></div>
|
||||
</div>
|
||||
<div class="service-card hltb-controls">
|
||||
<div class="hltb-actions">
|
||||
<button id="hltbRun" class="primary" type="button">Проверить новые</button>
|
||||
<button id="hltbRetryMissed" class="ghost" type="button">Повторить промахи</button>
|
||||
<button id="hltbRefreshAll" class="ghost" type="button">Перепроверить всё</button>
|
||||
</div>
|
||||
<div class="hltb-job">
|
||||
<div class="dp-head">Задача <span id="hltbJobStatus">нет задачи</span></div>
|
||||
<div class="bar"><i id="hltbJobBar"></i></div>
|
||||
<pre id="hltbJobLog" class="hltb-log" hidden></pre>
|
||||
<div class="refresh-actions">
|
||||
<button id="hltbJobCancel" class="ghost" type="button" hidden>остановить</button>
|
||||
<button id="hltbJobRetry" class="ghost" type="button" hidden>повторить</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="toolbar hltb-toolbar">
|
||||
<input id="hltbSearch" type="search" placeholder="Поиск по названию…"
|
||||
autocomplete="off" aria-label="Поиск в HLTB">
|
||||
@@ -380,6 +348,51 @@ try {
|
||||
<button id="hltbMore" class="more hidden" type="button">показать ещё</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="servicesView" class="hidden" role="tabpanel" aria-labelledby="tabServices">
|
||||
<div class="services-page">
|
||||
<h1>Сервисы</h1>
|
||||
<div class="service-grid">
|
||||
<article class="service-card">
|
||||
<h2>Описания</h2>
|
||||
<div class="dp-head">Загружено <span id="dpCount"></span></div>
|
||||
<div class="bar"><i id="dpBar"></i></div>
|
||||
<div class="dp-note" id="dpNote"></div>
|
||||
<button id="prefetch" class="ghost" type="button">догрузить / повторить</button>
|
||||
</article>
|
||||
|
||||
<article class="service-card">
|
||||
<h2>Перевод</h2>
|
||||
<div class="dp-head">Переведено <span id="trCount"></span></div>
|
||||
<div class="bar"><i id="trBar"></i></div>
|
||||
<div class="dp-note" id="trNote"></div>
|
||||
<div class="refresh-actions">
|
||||
<button id="translate" class="ghost" type="button">кратко</button>
|
||||
<button id="translateAbout" class="ghost" type="button">полные</button>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="service-card">
|
||||
<h2>База игр</h2>
|
||||
<div class="refresh-actions">
|
||||
<button id="refreshInc" class="ghost" type="button"
|
||||
title="Инкрементальное обновление">инкрем.</button>
|
||||
<button id="refreshFull" class="ghost" type="button"
|
||||
title="Полное обновление">полная</button>
|
||||
<button id="backup" class="ghost" type="button"
|
||||
title="Скачать копию БД">бэкап</button>
|
||||
</div>
|
||||
<div class="dp-head">Задача <span id="jobStatus">нет задачи</span></div>
|
||||
<div class="bar"><i id="jobBar"></i></div>
|
||||
<pre id="jobLog" class="hltb-log" hidden></pre>
|
||||
<div class="refresh-actions">
|
||||
<button id="jobCancel" class="ghost" type="button" hidden>остановить</button>
|
||||
<button id="jobRetry" class="ghost" type="button" hidden>повторить</button>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<dialog id="modal" class="modal" aria-labelledby="modalTitle">
|
||||
|
||||
@@ -708,6 +708,42 @@ html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 5
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
/* service pages */
|
||||
.services-page { max-width: 1200px; margin: 0 auto; }
|
||||
.services-page h1 { font-size: 26px; margin-bottom: 18px; }
|
||||
.service-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 18px;
|
||||
align-items: start;
|
||||
}
|
||||
.service-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--panel);
|
||||
}
|
||||
.service-card h2 { font-size: 17px; }
|
||||
.hltb-controls { margin-bottom: 4px; }
|
||||
.hltb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.hltb-actions .ghost { flex: 0 0 auto; }
|
||||
.hltb-job { display: flex; flex-direction: column; gap: 8px; }
|
||||
.hltb-log {
|
||||
margin: 0;
|
||||
max-height: 150px;
|
||||
overflow: auto;
|
||||
padding: 9px 11px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: var(--bg-2);
|
||||
color: var(--muted);
|
||||
font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* HLTB service page */
|
||||
#hltbView { max-width: 1200px; margin: 0 auto; }
|
||||
.hltb-page { display: flex; flex-direction: column; gap: 18px; }
|
||||
@@ -1132,6 +1168,8 @@ html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c9c0ad; }
|
||||
@media (max-width: 720px) {
|
||||
.topbar { position: relative; flex-wrap: wrap; gap: 12px; padding: 12px 68px 12px 16px; }
|
||||
.theme-toggle { position: absolute; top: 12px; right: 16px; }
|
||||
.tabs { gap: 2px; padding: 3px; }
|
||||
.tab { padding: 6px 9px; font-size: 12px; }
|
||||
.stats { width: 100%; justify-content: flex-start; }
|
||||
main { padding: 18px 16px 60px; }
|
||||
.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
|
||||
@@ -1148,4 +1186,6 @@ html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c9c0ad; }
|
||||
.game-table .t-name { min-width: 0; }
|
||||
.cover-inline { width: 28px; margin-right: 7px; }
|
||||
.me-grid { grid-template-columns: 1fr; }
|
||||
.service-grid { grid-template-columns: 1fr; }
|
||||
.service-card { padding: 16px; }
|
||||
}
|
||||
Reference in new issue
Block a user