Фолбэк на кэш при недоступности PocketBase (Pricing/FAQ)

Pricing: при полном отказе всех запросов пробует localStorage-кэш
последнего успешного ответа вместо пустого состояния, пишет туда же при
успехе. Faq: отличает "в кэше правда пусто" от "не смогли загрузить" —
раньше оба случая показывали один и тот же текст "0 protocols found",
что вводило в заблуждение при обычном сетевом сбое.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-09 16:37:06 +07:00
parent b8bf9f7337
commit 0fa87e2d9a
13 changed files with 87 additions and 25 deletions
+4 -2
View File
@@ -59,11 +59,13 @@
"billedOnce": "Billed once:",
"period1m": "1 month",
"period6m": "6 months",
"period1y": "1 year"
"period1y": "1 year",
"offlineNotice": "Showing last saved prices — live data unavailable right now."
},
"faq": {
"title": "System Queries (FAQ)",
"empty": "No records found."
"empty": "No records found.",
"loadError": "Failed to load — try refreshing the page."
},
"blog": {
"badge": "Data Logs",