Support new backend contracts: single-flight refresh, ad impression tokens, error handling
- apiFetch: proactive refresh, cross-tab single-flight via Web Locks, no logout on transient errors - AuthContext: save tokens returned on own login change, revoke refresh on logout, sync tabs - Ads: X-Session-Id, impressionToken in impression/click, IAB viewability, safe http(s) targetUrl - STOMP: refresh before CONNECT, stop reconnect loop on dead session, /user/queue/errors behind flag - Auth form: password 8 chars / 72 bytes; 429/413 messages via describeApiError - My posts with auth + moderation badges; post form step validation and field limits - Map: escape user text in Yandex hint/template Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -307,6 +307,15 @@ button.f-card-reward-btn:focus-visible {
|
||||
.f-type-loss { background: rgba(237,73,86,.1); color: #ed4956; border: 1px solid rgba(237,73,86,.25); }
|
||||
.f-type-found { background: rgba(48,168,94,.1); color: #30a85e; border: 1px solid rgba(48,168,94,.25); }
|
||||
|
||||
/* Статус неопубликованного объявления (видит только автор) */
|
||||
.f-status-badge {
|
||||
border-radius: 999px; padding: 3px 10px;
|
||||
font-size: .74rem; font-weight: 800;
|
||||
white-space: nowrap;
|
||||
background: rgba(240,160,32,.12); color: #c47a00; border: 1px solid rgba(240,160,32,.35);
|
||||
}
|
||||
.f-status-badge-rejected { background: rgba(120,120,120,.12); color: var(--muted); border-color: rgba(120,120,120,.35); }
|
||||
|
||||
/* ── Role badges (LOST_AND_FOUND / METRO) ── */
|
||||
.f-role-badge {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
@@ -595,9 +604,18 @@ button.f-card-reward-btn:focus-visible {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ad-card__link {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ad-card__link:focus-visible {
|
||||
outline: 2px solid var(--teal);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.ad-card__close,
|
||||
.ad-card__skip-timer {
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user