revert: remove search bar and credentials collapsible

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-21 08:04:04 +00:00
parent 4d5e01855f
commit 1fe62af26b
2 changed files with 18 additions and 124 deletions
+16 -35
View File
@@ -88,14 +88,11 @@
{% endfor %}
</div>
{% endif %}
<div class="svc-search-wrap">
<input type="search" id="svc-search" class="svc-search" placeholder="Поиск сервиса..." autocomplete="off" />
</div>
</section>
<section class="grid service-grid">
{% for service in services %}
{% set svc_cats = service_categories.get(service.id, []) %}
<div class="tile-wrap" data-name="{{ service.name|lower }}">
<div class="tile-wrap">
<a class="tile-link" href="/go/{{ service.slug }}" aria-label="{{ service.name }}"></a>
<div class="tile">
<div class="tile-icon-box">
@@ -104,28 +101,22 @@
<h3>{{ service.name }}</h3>
<div class="tile-info-area">
{% if service.svc_login or service.svc_password %}
<div class="svc-credentials-wrap">
<button type="button" class="svc-cred-toggle" onclick="this.closest('.svc-credentials-wrap').classList.toggle('open')">
<span>Данные входа</span>
<svg class="svc-cred-chevron" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z" clip-rule="evenodd"/></svg>
</button>
<div class="svc-credentials">
{% if service.svc_login %}
<div class="svc-cred-row">
<span class="svc-cred-label">Логин</span>
<span class="svc-cred-value">{{ service.svc_login }}</span>
</div>
{% endif %}
{% if service.svc_password %}
<div class="svc-cred-row">
<span class="svc-cred-label">Пароль</span>
<span class="svc-cred-value svc-cred-masked">{{ service.svc_password }}</span>
</div>
{% endif %}
{% if service.svc_cred_hint %}
<p class="svc-cred-hint">{{ service.svc_cred_hint }}</p>
{% endif %}
<div class="svc-credentials">
{% if service.svc_login %}
<div class="svc-cred-row">
<span class="svc-cred-label">Логин</span>
<span class="svc-cred-value">{{ service.svc_login }}</span>
</div>
{% endif %}
{% if service.svc_password %}
<div class="svc-cred-row">
<span class="svc-cred-label">Пароль</span>
<span class="svc-cred-value svc-cred-masked">{{ service.svc_password }}</span>
</div>
{% endif %}
{% if service.svc_cred_hint %}
<p class="svc-cred-hint">{{ service.svc_cred_hint }}</p>
{% endif %}
</div>
{% endif %}
{% if service.comment %}
@@ -241,16 +232,6 @@
});
})();
(function () {
const input = document.getElementById('svc-search');
if (!input) return;
input.addEventListener('input', function () {
const q = this.value.trim().toLowerCase();
document.querySelectorAll('.tile-wrap[data-name]').forEach(function (wrap) {
wrap.style.display = (!q || wrap.dataset.name.includes(q)) ? '' : 'none';
});
});
})();
</script>
</body>
</html>