feat: localize tags and genres; improve search, duration and sorting
CI / test (push) Successful in 27s

This commit is contained in:
strsv committed 2026-11-09 08:13:00 +03:00
1 parent ea3074e0a9
commit be4fbf6864
31 files changed
+1126 -145

No files matched your search

+13 -1
View File
@@ -121,7 +121,7 @@ try {
<label class="check"><input type="checkbox" id="fUnplayed"> не запускались</label>
<label class="check"><input type="checkbox" id="fFavorite"> избранные</label>
<label class="field">
<label class="field" title="Пресет по длительности (HLTB или оценка)">
<span>Длина игры</span>
<select id="fDuration">
<option value="">любая</option>
@@ -130,6 +130,13 @@ try {
<option value="long">больше 25 ч</option>
</select>
</label>
<div class="field" title="Диапазон длительности: HLTB, иначе оценка по жанрам/тегам">
<span>Длительность, ч</span>
<div class="range-row">
<input id="fDurationMin" type="number" min="0" step="1" placeholder="от" data-filter="minDuration" aria-label="Минимальная длительность">
<input id="fDurationMax" type="number" min="0" step="1" placeholder="до" data-filter="maxDuration" aria-label="Максимальная длительность">
</div>
</div>
</div>
</details>
@@ -198,6 +205,9 @@ try {
</button>
<input id="search" type="search" placeholder="Поиск: название, описание, тег…" autocomplete="off"
aria-label="Поиск по библиотеке" aria-keyshortcuts="/">
<label class="toolbar-check" title="Искать только в названии игры">
<input id="searchNameOnly" type="checkbox"> в названии
</label>
<select id="sort" aria-label="Сортировка">
<option value="name">по названию</option>
<option value="hours">по времени</option>
@@ -208,6 +218,8 @@ try {
<option value="genre">по жанру</option>
<option value="added">по добавлению</option>
</select>
<button id="sortDir" class="ghost toolbar-select" type="button"
title="По убыванию" aria-label="Направление сортировки">↓</button>
<button id="layoutToggle" class="ghost toolbar-select" type="button"
aria-pressed="false" title="Компактный список" aria-keyshortcuts="g">список</button>
<button id="exportLibrary" class="ghost toolbar-select" type="button"