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:
@@ -41,8 +41,8 @@
|
||||
"loginLabel": "Login",
|
||||
"loginPlaceholder": "Choose a login",
|
||||
"passwordLabel": "Password",
|
||||
"passwordMin": "Minimum 6 characters",
|
||||
"passwordMinShort": "Min. 6 characters",
|
||||
"passwordMin": "At least 8 characters",
|
||||
"passwordMinShort": "Min. 8 chars",
|
||||
"repeatPassword": "Repeat password",
|
||||
"repeatPasswordPlaceholder": "Enter again",
|
||||
"repeatLabel": "Repeat",
|
||||
@@ -58,7 +58,7 @@
|
||||
"validateNameRequired": "Enter your name",
|
||||
"validateLoginRequired": "Enter a login",
|
||||
"validateLoginMin": "Minimum 3 characters",
|
||||
"validatePasswordMin": "Minimum 6 characters",
|
||||
"validatePasswordMin": "At least {{min}} characters",
|
||||
"validatePasswordMatch": "Passwords don't match",
|
||||
"checking": "Checking...",
|
||||
"loginTaken": "✗ Login taken",
|
||||
@@ -81,7 +81,8 @@
|
||||
"nameLabel": "Name",
|
||||
"loginMinChars": "Minimum 3 characters",
|
||||
"accountCreatedLoginManually": "Account created. Log in manually.",
|
||||
"autoLoginFailed": "Account created, but automatic sign-in failed — please log in manually."
|
||||
"autoLoginFailed": "Account created, but automatic sign-in failed — please log in manually.",
|
||||
"validatePasswordMaxBytes": "Password is too long (max {{max}} bytes)"
|
||||
},
|
||||
"post": {
|
||||
"editTitle": "Edit ad",
|
||||
@@ -190,7 +191,9 @@
|
||||
"reopen": "↩ Return to feed",
|
||||
"showOnMap": "Show on map — {{address}}",
|
||||
"contactError": "Unable to open the chat. Please try again",
|
||||
"reward": "Reward"
|
||||
"reward": "Reward",
|
||||
"statusModeration": "Under review",
|
||||
"statusRejected": "Rejected"
|
||||
},
|
||||
"chat": {
|
||||
"title": "Chat",
|
||||
@@ -581,9 +584,24 @@
|
||||
"loadError": "Failed to load messages",
|
||||
"sendError": "No connection. Message not sent",
|
||||
"deleteError": "Failed to delete the chat",
|
||||
"deleteErrorWithStatus": "Failed to delete chat (error {{status}})"
|
||||
"deleteErrorWithStatus": "Failed to delete chat (error {{status}})",
|
||||
"sendRejected": "Message was not sent"
|
||||
},
|
||||
"map": {
|
||||
"backToListings": "Back to listings"
|
||||
},
|
||||
"errors": {
|
||||
"unknown": "Something went wrong",
|
||||
"tooManyRequests": "Too many attempts. Try again later",
|
||||
"tooManyRequestsMinutes": "Too many attempts. Try again in {{minutes}} min",
|
||||
"tooManyRequestsSeconds": "Too many attempts. Try again in {{seconds}} s",
|
||||
"payloadTooLarge": "File is too large — 10 MB max",
|
||||
"network": "No connection to the server. Check your internet"
|
||||
},
|
||||
"ads": {
|
||||
"label": "Ad",
|
||||
"openLink": "Open ad in a new tab",
|
||||
"closeIn": "Close in {{seconds}}s",
|
||||
"close": "Close ad"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user