7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
feat(proxy): add a Test button for the outbound proxy settings (#864)
suantea (asuan_suan)a8db04978cbb
diff --git a/client/src/components/keys/proxy-settings-section.tsx b/client/src/components/keys/proxy-settings-section.tsxindex e813a41a..22049602 100644--- a/client/src/components/keys/proxy-settings-section.tsx+++ b/client/src/components/keys/proxy-settings-section.tsx@@ -10,6 +10,12 @@ import { useI18n } from '@/i18n'import { PLATFORMS, CUSTOM_GROUP } from './shared'import type { ApiKey } from '../../../../shared/types'+/** Host of a probe target, for display. Falls back to the raw value so a+ * malformed override still shows something rather than vanishing. */+function hostOf(url: string): string {+ try { return new URL(url).host } catch { return url }+}+export function ProxySettingsSection() {const { t } = useI18n()const queryClient = useQueryClient()@@ -47,6 +53,14 @@ export function ProxySettingsSection() {},})+ // #863: test the DRAFT proxy URL (or the saved one when the input is empty)+ // without saving anything. Result shown inline; failures carry the reason.+ const testProxy = useMutation({+ meta: { silenceToast: true },+ mutationFn: (body: { proxyUrl?: string }) =>+ apiFetch<{ ok: boolean; latencyMs: number; status?: number; error?: string; target?: string }>('/api/settings/proxy/test', { method: 'POST', body: JSON.stringify(body) }),+ })+const submit = (e: React.FormEvent) => {e.preventDefault()saveProxy.mutate({ proxyUrl })@@ -94,12 +108,40 @@ export function ProxySettingsSection() {className="font-mono text-xs"/></div>+ <Button+ type="button"+ size="sm"+ variant="outline"+ disabled={testProxy.isPending}+ onClick={() => testProxy.mutate({ proxyUrl })}+ >+ {testProxy.isPending ? t('keys.testingProxy') : t('keys.testProxy')}+ </Button><Button type="submit" size="sm" disabled={saveProxy.isPending}>{saveProxy.isPending ? t('keys.savingProxy') : t('keys.saveProxy')}</Button></form>)}+ {testProxy.isSuccess && (+ <p className={`text-xs mt-2 ${testProxy.data.ok ? 'text-emerald-600 dark:text-emerald-400' : 'text-destructive'}`}>+ {testProxy.data.ok+ ? t('keys.proxyTestOk', { ms: String(testProxy.data.latencyMs) })+ : t('keys.proxyTestFail', { reason: testProxy.data.error ?? '' })}+ {/* Which endpoint was probed. A pass or a fail is only actionable if+ you know what was reached — and the target varies with the keys+ you hold. A bare host name needs no translation. */}+ {testProxy.data.target && (+ <span className="text-muted-foreground ml-1.5 font-mono">+ {hostOf(testProxy.data.target)}+ </span>+ )}+ </p>+ )}+ {testProxy.isError && (+ <p className="text-destructive text-xs mt-2">{(testProxy.error as Error).message}</p>+ )}+{saveProxy.isError && (<p className="text-destructive text-xs mt-2">{(saveProxy.error as Error).message}</p>)}diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex a34e9741..d51af640 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -529,7 +529,11 @@"bulkDelete": "ሁሉንም ሰርዝ","bulkDeleteConfirm": "{count} ይሰረዙ?","bulkResult": "{done} ተዘምኗል፤ {failed} አልተሳካም።",- "bulkDeleteResult": "{done} ተሰርዟል፤ {failed} አልተሳካም።"+ "bulkDeleteResult": "{done} ተሰርዟል፤ {failed} አልተሳካም።",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ጤናማ",diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex db2e79ac..8040e778 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -529,7 +529,11 @@"bulkDelete": "حذف الكل","bulkDeleteConfirm": "حذف {count}؟","bulkResult": "تم تحديث {done}؛ فشل {failed}.",- "bulkDeleteResult": "تم حذف {done}؛ فشل {failed}."+ "bulkDeleteResult": "تم حذف {done}؛ فشل {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "صحي",diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex 9c8573d0..05c7bcde 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -529,7 +529,11 @@"bulkDelete": "Hamısını sil","bulkDeleteConfirm": "{count} silinsin?","bulkResult": "Yeniləndi {done}; uğursuz {failed}.",- "bulkDeleteResult": "Silindi {done}; uğursuz {failed}."+ "bulkDeleteResult": "Silindi {done}; uğursuz {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "sağlam",diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex 28b5f52e..e397eb49 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -529,7 +529,11 @@"bulkDelete": "Изтрий всички","bulkDeleteConfirm": "Да се изтрият ли {count}?","bulkResult": "Обновени {done}; неуспешни {failed}.",- "bulkDeleteResult": "Изтрити {done}; неуспешни {failed}."+ "bulkDeleteResult": "Изтрити {done}; неуспешни {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "здравословно",diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex af5fc47e..877c24e8 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -529,7 +529,11 @@"bulkDelete": "সব মুছে দিন","bulkDeleteConfirm": "{count}টি মুছবেন?","bulkResult": "{done}টি হালনাগাদ হয়েছে; {failed}টি ব্যর্থ।",- "bulkDeleteResult": "{done}টি মুছে ফেলা হয়েছে; {failed}টি ব্যর্থ।"+ "bulkDeleteResult": "{done}টি মুছে ফেলা হয়েছে; {failed}টি ব্যর্থ।",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "সুস্থ",diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex 32868447..4e6088aa 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -529,7 +529,11 @@"bulkDelete": "Smazat vše","bulkDeleteConfirm": "Smazat {count}?","bulkResult": "Aktualizováno {done}; neúspěšné {failed}.",- "bulkDeleteResult": "Smazáno {done}; neúspěšné {failed}."+ "bulkDeleteResult": "Smazáno {done}; neúspěšné {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "zdravé",diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex 57d390b4..06a82a62 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -529,7 +529,11 @@"bulkDelete": "Slet alle","bulkDeleteConfirm": "Slet {count}?","bulkResult": "Opdaterede {done}; fejlede {failed}.",- "bulkDeleteResult": "Slettede {done}; fejlede {failed}."+ "bulkDeleteResult": "Slettede {done}; fejlede {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "sundt",diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex e7c1cff9..027e0c12 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -529,7 +529,11 @@"bulkDelete": "Alle löschen","bulkDeleteConfirm": "{count} löschen?","bulkResult": "Aktualisiert {done}; fehlgeschlagen {failed}.",- "bulkDeleteResult": "Gelöscht {done}; fehlgeschlagen {failed}."+ "bulkDeleteResult": "Gelöscht {done}; fehlgeschlagen {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "gesund",diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex 65faf026..d4b9e162 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -529,7 +529,11 @@"bulkDelete": "Διαγραφή όλων","bulkDeleteConfirm": "Διαγραφή {count};","bulkResult": "Ενημερώθηκαν {done}· απέτυχαν {failed}.",- "bulkDeleteResult": "Διαγράφηκαν {done}· απέτυχαν {failed}."+ "bulkDeleteResult": "Διαγράφηκαν {done}· απέτυχαν {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "υγιής",diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex 2c2b4804..1d795736 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -399,6 +399,10 @@"proxyUrl": "Proxy URL","saveProxy": "Save","savingProxy": "Saving…",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}","proxyLoadFailed": "Could not load proxy settings.","addCustom": "Add a custom OpenAI-compatible model","addCustomDescription": "Point chat, embedding, image, or audio models at any OpenAI-compatible endpoint. The API key is optional for local servers.",diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex addcf35e..18ce3b73 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -529,7 +529,11 @@"bulkDelete": "Eliminar todas","bulkDeleteConfirm": "¿Eliminar {count}?","bulkResult": "Actualizadas {done}; fallidas {failed}.",- "bulkDeleteResult": "Eliminadas {done}; fallidas {failed}."+ "bulkDeleteResult": "Eliminadas {done}; fallidas {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "correcto",diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex 191d0f9e..a347f642 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -529,7 +529,11 @@"bulkDelete": "حذف همه","bulkDeleteConfirm": "حذف {count}؟","bulkResult": "{done} بهروزرسانی شد؛ {failed} ناموفق.",- "bulkDeleteResult": "{done} حذف شد؛ {failed} ناموفق."+ "bulkDeleteResult": "{done} حذف شد؛ {failed} ناموفق.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "سالم",diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex 62f74298..438e5714 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -529,7 +529,11 @@"bulkDelete": "Poista kaikki","bulkDeleteConfirm": "Poistetaanko {count}?","bulkResult": "Päivitetty {done}; epäonnistui {failed}.",- "bulkDeleteResult": "Poistettu {done}; epäonnistui {failed}."+ "bulkDeleteResult": "Poistettu {done}; epäonnistui {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "terve",diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex 1c10caf1..202915c5 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -529,7 +529,11 @@"bulkDelete": "Tout supprimer","bulkDeleteConfirm": "Supprimer {count} ?","bulkResult": "Mises à jour : {done}. Échecs : {failed}.",- "bulkDeleteResult": "Supprimées : {done}. Échecs : {failed}."+ "bulkDeleteResult": "Supprimées : {done}. Échecs : {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "sain",diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex 37e62d32..091624ee 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -529,7 +529,11 @@"bulkDelete": "બધું કાઢી નાખો","bulkDeleteConfirm": "{count} કાઢી નાખવી?","bulkResult": "{done} અપડેટ થયા; {failed} નિષ્ફળ.",- "bulkDeleteResult": "{done} કાઢી નાખ્યા; {failed} નિષ્ફળ."+ "bulkDeleteResult": "{done} કાઢી નાખ્યા; {failed} નિષ્ફળ.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "સ્વસ્થ",diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex 46dfeec3..ee49ea68 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -529,7 +529,11 @@"bulkDelete": "Share duka","bulkDeleteConfirm": "A share {count}?","bulkResult": "An sabunta {done}; ya kasa {failed}.",- "bulkDeleteResult": "An share {done}; ya kasa {failed}."+ "bulkDeleteResult": "An share {done}; ya kasa {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "lafiya",diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex 3d005539..b423b037 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -529,7 +529,11 @@"bulkDelete": "מחק הכול","bulkDeleteConfirm": "למחוק {count}?","bulkResult": "עודכנו {done}; נכשלו {failed}.",- "bulkDeleteResult": "נמחקו {done}; נכשלו {failed}."+ "bulkDeleteResult": "נמחקו {done}; נכשלו {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "בריא",diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex b72e5b70..299f5b3e 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -529,7 +529,11 @@"bulkDelete": "सभी हटाएँ","bulkDeleteConfirm": "{count} हटाएँ?","bulkResult": "{done} अपडेट हुए; {failed} विफल।",- "bulkDeleteResult": "{done} हटाए गए; {failed} विफल।"+ "bulkDeleteResult": "{done} हटाए गए; {failed} विफल।",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "स्वस्थ",diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex 7a062f88..d566b334 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -529,7 +529,11 @@"bulkDelete": "Obriši sve","bulkDeleteConfirm": "Obrisati {count}?","bulkResult": "Ažurirano {done}; neuspješno {failed}.",- "bulkDeleteResult": "Obrisano {done}; neuspješno {failed}."+ "bulkDeleteResult": "Obrisano {done}; neuspješno {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "Zdravo",diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex 3b5cadd4..bce09dc9 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -529,7 +529,11 @@"bulkDelete": "Összes törlése","bulkDeleteConfirm": "{count} törlése?","bulkResult": "Frissítve {done}; {failed} sikertelen.",- "bulkDeleteResult": "Törölve {done}; {failed} sikertelen."+ "bulkDeleteResult": "Törölve {done}; {failed} sikertelen.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "egészséges",diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex 1875e343..9da54c90 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -529,7 +529,11 @@"bulkDelete": "Hapus semua","bulkDeleteConfirm": "Hapus {count}?","bulkResult": "Diperbarui {done}; gagal {failed}.",- "bulkDeleteResult": "Dihapus {done}; gagal {failed}."+ "bulkDeleteResult": "Dihapus {done}; gagal {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "sehat",diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex 0afa5475..382fb0f7 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -529,7 +529,11 @@"bulkDelete": "Hichapụ ha niile","bulkDeleteConfirm": "Hichapụ {count}?","bulkResult": "Emelitere {done}; {failed} dara.",- "bulkDeleteResult": "Ehichapụrụ {done}; {failed} dara."+ "bulkDeleteResult": "Ehichapụrụ {done}; {failed} dara.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ahụike",diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex 9829ec61..2df2b320 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -529,7 +529,11 @@"bulkDelete": "Elimina tutte","bulkDeleteConfirm": "Eliminare {count}?","bulkResult": "Aggiornate {done}; fallite {failed}.",- "bulkDeleteResult": "Eliminate {done}; fallite {failed}."+ "bulkDeleteResult": "Eliminate {done}; fallite {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "funzionante",diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex b947e077..1c7652ee 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -529,7 +529,11 @@"bulkDelete": "すべて削除","bulkDeleteConfirm": "{count} 件を削除しますか?","bulkResult": "{done} 件を更新しました。{failed} 件が失敗しました。",- "bulkDeleteResult": "{done} 件を削除しました。{failed} 件が失敗しました。"+ "bulkDeleteResult": "{done} 件を削除しました。{failed} 件が失敗しました。",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "健康な",diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex c257bb28..62275d26 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -529,7 +529,11 @@"bulkDelete": "ყველას წაშლა","bulkDeleteConfirm": "წაიშალოს {count}?","bulkResult": "განახლდა {done}; ვერ მოხერხდა {failed}.",- "bulkDeleteResult": "წაიშალა {done}; ვერ მოხერხდა {failed}."+ "bulkDeleteResult": "წაიშალა {done}; ვერ მოხერხდა {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ჯანსაღი",diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex f14f7b11..750a7f86 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -529,7 +529,11 @@"bulkDelete": "លុបទាំងអស់","bulkDeleteConfirm": "លុប {count}?","bulkResult": "បានធ្វើបច្ចុប្បន្នភាព {done}; បរាជ័យ {failed}។",- "bulkDeleteResult": "បានលុប {done}; បរាជ័យ {failed}។"+ "bulkDeleteResult": "បានលុប {done}; បរាជ័យ {failed}។",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "មានសុខភាពល្អ",diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex 6b3b5be6..1a700b6e 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -529,7 +529,11 @@"bulkDelete": "ಎಲ್ಲವನ್ನೂ ಅಳಿಸಿ","bulkDeleteConfirm": "{count} ಅಳಿಸುವುದೇ?","bulkResult": "{done} ನವೀಕರಿಸಲಾಗಿದೆ; {failed} ವಿಫಲವಾಗಿದೆ.",- "bulkDeleteResult": "{done} ಅಳಿಸಲಾಗಿದೆ; {failed} ವಿಫಲವಾಗಿದೆ."+ "bulkDeleteResult": "{done} ಅಳಿಸಲಾಗಿದೆ; {failed} ವಿಫಲವಾಗಿದೆ.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ಆರೋಗ್ಯಕರ",diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex 55d890d5..6fdd5558 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -529,7 +529,11 @@"bulkDelete": "모두 삭제","bulkDeleteConfirm": "{count}개를 삭제할까요?","bulkResult": "{done}개 업데이트됨, {failed}개 실패.",- "bulkDeleteResult": "{done}개 삭제됨, {failed}개 실패."+ "bulkDeleteResult": "{done}개 삭제됨, {failed}개 실패.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "건강한",diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex f0210765..242953a0 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -529,7 +529,11 @@"bulkDelete": "Ištrinti visus","bulkDeleteConfirm": "Ištrinti {count}?","bulkResult": "Atnaujinta {done}; nepavyko {failed}.",- "bulkDeleteResult": "Ištrinta {done}; nepavyko {failed}."+ "bulkDeleteResult": "Ištrinta {done}; nepavyko {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "Sveika",diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex a65178bc..018a097a 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -529,7 +529,11 @@"bulkDelete": "എല്ലാം ഇല്ലാതാക്കുക","bulkDeleteConfirm": "{count} ഇല്ലാതാക്കണോ?","bulkResult": "{done} അപ്ഡേറ്റ് ചെയ്തു; {failed} പരാജയപ്പെട്ടു.",- "bulkDeleteResult": "{done} ഇല്ലാതാക്കി; {failed} പരാജയപ്പെട്ടു."+ "bulkDeleteResult": "{done} ഇല്ലാതാക്കി; {failed} പരാജയപ്പെട്ടു.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ആരോഗ്യമുള്ള",diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex 0fb62f1a..71fd84a1 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -529,7 +529,11 @@"bulkDelete": "सर्व हटवा","bulkDeleteConfirm": "{count} हटवायचे?","bulkResult": "{done} अद्ययावत केले; {failed} अयशस्वी.",- "bulkDeleteResult": "{done} हटवले; {failed} अयशस्वी."+ "bulkDeleteResult": "{done} हटवले; {failed} अयशस्वी.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "निरोगी",diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex 4898b8d9..55462242 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -529,7 +529,11 @@"bulkDelete": "Padam semua","bulkDeleteConfirm": "Padam {count}?","bulkResult": "Dikemas kini {done}; gagal {failed}.",- "bulkDeleteResult": "Dipadam {done}; gagal {failed}."+ "bulkDeleteResult": "Dipadam {done}; gagal {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "sihat",diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex 89fe67b8..f91e3982 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -529,7 +529,11 @@"bulkDelete": "အားလုံး ဖျက်ပါ","bulkDeleteConfirm": "{count} ခု ဖျက်မလား?","bulkResult": "{done} ခု အပ်ဒိတ်လုပ်ပြီး၊ {failed} ခု မအောင်မြင်ပါ။",- "bulkDeleteResult": "{done} ခု ဖျက်ပြီး၊ {failed} ခု မအောင်မြင်ပါ။"+ "bulkDeleteResult": "{done} ခု ဖျက်ပြီး၊ {failed} ခု မအောင်မြင်ပါ။",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ကျန်းမာသော",diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex 9a48edcf..eaabbd44 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -529,7 +529,11 @@"bulkDelete": "सबै मेट्नुहोस्","bulkDeleteConfirm": "{count} मेट्ने?","bulkResult": "{done} अद्यावधिक भयो; {failed} असफल ।",- "bulkDeleteResult": "{done} मेटियो; {failed} असफल ।"+ "bulkDeleteResult": "{done} मेटियो; {failed} असफल ।",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "स्वस्थ छ",diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex b9009177..87fc40e8 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -529,7 +529,11 @@"bulkDelete": "Alles verwijderen","bulkDeleteConfirm": "{count} verwijderen?","bulkResult": "Bijgewerkt {done}; mislukt {failed}.",- "bulkDeleteResult": "Verwijderd {done}; mislukt {failed}."+ "bulkDeleteResult": "Verwijderd {done}; mislukt {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "Gezond",diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex e110923d..fbc93025 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -529,7 +529,11 @@"bulkDelete": "Slett alle","bulkDeleteConfirm": "Slette {count}?","bulkResult": "Oppdaterte {done}; mislyktes {failed}.",- "bulkDeleteResult": "Slettet {done}; mislyktes {failed}."+ "bulkDeleteResult": "Slettet {done}; mislyktes {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "Sunt",diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex dec2e2dc..e6fe7eec 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -529,7 +529,11 @@"bulkDelete": "ସବୁ ବିଲୋପ କରନ୍ତୁ","bulkDeleteConfirm": "{count} ବିଲୋପ କରିବେ?","bulkResult": "{done} ଅଦ୍ୟତନ ହୋଇଛି; {failed} ବିଫଳ ହୋଇଛି।",- "bulkDeleteResult": "{done} ବିଲୋପ ହୋଇଛି; {failed} ବିଫଳ ହୋଇଛି।"+ "bulkDeleteResult": "{done} ବିଲୋପ ହୋଇଛି; {failed} ବିଫଳ ହୋଇଛି।",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ସୁସ୍ଥ",diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex ef2b6e1e..c2cb3354 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -529,7 +529,11 @@"bulkDelete": "ਸਾਰੇ ਮਿਟਾਓ","bulkDeleteConfirm": "{count} ਮਿਟਾਉਣੇ ਹਨ?","bulkResult": "{done} ਅੱਪਡੇਟ ਹੋਏ; {failed} ਅਸਫਲ।",- "bulkDeleteResult": "{done} ਮਿਟਾਏ ਗਏ; {failed} ਅਸਫਲ।"+ "bulkDeleteResult": "{done} ਮਿਟਾਏ ਗਏ; {failed} ਅਸਫਲ।",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ਸਿਹਤਮੰਦ",diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex 3bfd90e3..e9ff10a1 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -529,7 +529,11 @@"bulkDelete": "Usuń wszystkie","bulkDeleteConfirm": "Usunąć {count}?","bulkResult": "Zaktualizowano {done}; nie powiodło się {failed}.",- "bulkDeleteResult": "Usunięto {done}; nie powiodło się {failed}."+ "bulkDeleteResult": "Usunięto {done}; nie powiodło się {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "zdrowy",diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex 3fd2e700..b8a223d9 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -529,7 +529,11 @@"bulkDelete": "Excluir todas","bulkDeleteConfirm": "Excluir {count}?","bulkResult": "Atualizadas {done}; falharam {failed}.",- "bulkDeleteResult": "Excluídas {done}; falharam {failed}."+ "bulkDeleteResult": "Excluídas {done}; falharam {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "saudável",diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex 64cf2d40..35d76f6f 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -529,7 +529,11 @@"bulkDelete": "Eliminar todas","bulkDeleteConfirm": "Eliminar {count}?","bulkResult": "Atualizadas {done}; falharam {failed}.",- "bulkDeleteResult": "Eliminadas {done}; falharam {failed}."+ "bulkDeleteResult": "Eliminadas {done}; falharam {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "Saudável",diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex c607a360..590175f7 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -529,7 +529,11 @@"bulkDelete": "Șterge toate","bulkDeleteConfirm": "Ștergi {count}?","bulkResult": "Actualizate {done}; eșuate {failed}.",- "bulkDeleteResult": "Șterse {done}; eșuate {failed}."+ "bulkDeleteResult": "Șterse {done}; eșuate {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "Sănătos",diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex 3ae9e074..3139117d 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -529,7 +529,11 @@"bulkDelete": "Удалить все","bulkDeleteConfirm": "Удалить {count}?","bulkResult": "Обновлено {done}; не удалось {failed}.",- "bulkDeleteResult": "Удалено {done}; не удалось {failed}."+ "bulkDeleteResult": "Удалено {done}; не удалось {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "здоровый",diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex 6cddd345..3888c081 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -529,7 +529,11 @@"bulkDelete": "සියල්ල මකන්න","bulkDeleteConfirm": "{count} මකන්නද?","bulkResult": "{done} යාවත්කාලීන කළා; {failed} අසාර්ථකයි.",- "bulkDeleteResult": "{done} මකා දැමුවා; {failed} අසාර්ථකයි."+ "bulkDeleteResult": "{done} මකා දැමුවා; {failed} අසාර්ථකයි.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "සෞඛ්ය සම්පන්න",diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex 5b621515..a7690a68 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -529,7 +529,11 @@"bulkDelete": "Vymazať všetky","bulkDeleteConfirm": "Vymazať {count}?","bulkResult": "Aktualizované {done}; zlyhalo {failed}.",- "bulkDeleteResult": "Vymazané {done}; zlyhalo {failed}."+ "bulkDeleteResult": "Vymazané {done}; zlyhalo {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "zdravé",diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex d20e4de3..e01395f0 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -529,7 +529,11 @@"bulkDelete": "Избриши све","bulkDeleteConfirm": "Избрисати {count}?","bulkResult": "Ажурирано {done}; неуспешно {failed}.",- "bulkDeleteResult": "Избрисано {done}; неуспешно {failed}."+ "bulkDeleteResult": "Избрисано {done}; неуспешно {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "здраво",diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex e9783631..61f3ac75 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -529,7 +529,11 @@"bulkDelete": "Radera alla","bulkDeleteConfirm": "Radera {count}?","bulkResult": "Uppdaterade {done}; misslyckades {failed}.",- "bulkDeleteResult": "Raderade {done}; misslyckades {failed}."+ "bulkDeleteResult": "Raderade {done}; misslyckades {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "Hälsosamt",diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex 8451339f..db282c57 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -529,7 +529,11 @@"bulkDelete": "Futa zote","bulkDeleteConfirm": "Futa {count}?","bulkResult": "Zimesasishwa {done}; zimeshindwa {failed}.",- "bulkDeleteResult": "Zimefutwa {done}; zimeshindwa {failed}."+ "bulkDeleteResult": "Zimefutwa {done}; zimeshindwa {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "afya",diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex d2758ddd..47585aa3 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -529,7 +529,11 @@"bulkDelete": "அனைத்தையும் நீக்கு","bulkDeleteConfirm": "{count} நீக்கவா?","bulkResult": "{done} புதுப்பிக்கப்பட்டது; {failed} தோல்வி.",- "bulkDeleteResult": "{done} நீக்கப்பட்டது; {failed} தோல்வி."+ "bulkDeleteResult": "{done} நீக்கப்பட்டது; {failed} தோல்வி.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ஆரோக்கியமான",diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex 64135c18..5c78512f 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -529,7 +529,11 @@"bulkDelete": "అన్నింటినీ తొలగించు","bulkDeleteConfirm": "{count} తొలగించాలా?","bulkResult": "{done} నవీకరించబడింది; {failed} విఫలమైంది.",- "bulkDeleteResult": "{done} తొలగించబడింది; {failed} విఫలమైంది."+ "bulkDeleteResult": "{done} తొలగించబడింది; {failed} విఫలమైంది.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ఆరోగ్యకరమైన",diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex 00c3babb..59ee91c3 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -529,7 +529,11 @@"bulkDelete": "ลบทั้งหมด","bulkDeleteConfirm": "ลบ {count} รายการ?","bulkResult": "อัปเดต {done}; ล้มเหลว {failed}",- "bulkDeleteResult": "ลบ {done}; ล้มเหลว {failed}"+ "bulkDeleteResult": "ลบ {done}; ล้มเหลว {failed}",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "มีสุขภาพดี",diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex f6c3fa8e..318b8626 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -529,7 +529,11 @@"bulkDelete": "Tanggalin lahat","bulkDeleteConfirm": "Tanggalin ang {count}?","bulkResult": "Na-update {done}; nabigo {failed}.",- "bulkDeleteResult": "Natanggal {done}; nabigo {failed}."+ "bulkDeleteResult": "Natanggal {done}; nabigo {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "malusog",diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex 407f2b66..da598798 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -529,7 +529,11 @@"bulkDelete": "Tümünü sil","bulkDeleteConfirm": "{count} silinsin mi?","bulkResult": "Güncellenen {done}; başarısız {failed}.",- "bulkDeleteResult": "Silinen {done}; başarısız {failed}."+ "bulkDeleteResult": "Silinen {done}; başarısız {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "sağlıklı",diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex 4a6b273c..07bfdea0 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -529,7 +529,11 @@"bulkDelete": "Видалити всі","bulkDeleteConfirm": "Видалити {count}?","bulkResult": "Оновлено {done}; не вдалося {failed}.",- "bulkDeleteResult": "Видалено {done}; не вдалося {failed}."+ "bulkDeleteResult": "Видалено {done}; не вдалося {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "здоровий",diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex e2841478..dc59651b 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -529,7 +529,11 @@"bulkDelete": "سب حذف کریں۔","bulkDeleteConfirm": "{count} حذف کریں؟","bulkResult": "{done} اپ ڈیٹ ہوئے؛ {failed} ناکام۔",- "bulkDeleteResult": "{done} حذف ہوئے؛ {failed} ناکام۔"+ "bulkDeleteResult": "{done} حذف ہوئے؛ {failed} ناکام۔",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "صحت مند",diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex b5c5c04f..bceb14b1 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -529,7 +529,11 @@"bulkDelete": "Hammasini oʻchirish","bulkDeleteConfirm": "{count} ta oʻchirilsinmi?","bulkResult": "Yangilandi {done}; muvaffaqiyatsiz {failed}.",- "bulkDeleteResult": "Oʻchirildi {done}; muvaffaqiyatsiz {failed}."+ "bulkDeleteResult": "Oʻchirildi {done}; muvaffaqiyatsiz {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "sog'lom",diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex 69edee11..2d011373 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -529,7 +529,11 @@"bulkDelete": "Xóa tất cả","bulkDeleteConfirm": "Xóa {count}?","bulkResult": "Đã cập nhật {done}; {failed} không thành công.",- "bulkDeleteResult": "Đã xóa {done}; {failed} không thành công."+ "bulkDeleteResult": "Đã xóa {done}; {failed} không thành công.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "khỏe mạnh",diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex 8b05f720..b0473fde 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -529,7 +529,11 @@"bulkDelete": "Paarẹ gbogbo rẹ","bulkDeleteConfirm": "Paarẹ {count}?","bulkResult": "Ṣe imudojuiwọn {done}; kuna {failed}.",- "bulkDeleteResult": "Paarẹ {done}; kuna {failed}."+ "bulkDeleteResult": "Paarẹ {done}; kuna {failed}.",+ "testProxy": "Test",+ "testingProxy": "Testing…",+ "proxyTestOk": "Proxy works — {ms}ms round trip",+ "proxyTestFail": "Proxy failed: {reason}"},"status": {"healthy": "ni ilera",diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex 45d2e2b5..b380b00a 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -377,6 +377,10 @@"proxyUrl": "代理地址","saveProxy": "保存","savingProxy": "保存中…",+ "testProxy": "测试",+ "testingProxy": "测试中…",+ "proxyTestOk": "代理可用 — 往返耗时 {ms}ms",+ "proxyTestFail": "代理测试失败:{reason}","proxyLoadFailed": "无法加载代理设置。","addCustom": "添加自定义 OpenAI 兼容模型","addCustomDescription": "指向任意 OpenAI 兼容的端点:llama.cpp、LM Studio、vLLM、本地 Ollama 或远程网关。API 密钥是可选的(大多数本地服务器不需要)。",diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex 0c32f2db..de96f855 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -377,6 +377,10 @@"proxyUrl": "代理位址","saveProxy": "儲存","savingProxy": "儲存中...",+ "testProxy": "測試",+ "testingProxy": "測試中...",+ "proxyTestOk": "代理可用 — 往返耗時 {ms}ms",+ "proxyTestFail": "代理測試失敗:{reason}","proxyLoadFailed": "無法載入代理設定。","addCustom": "新增自訂 OpenAI 相容模型","addCustomDescription": "指向任何 OpenAI 相容端點:llama.cpp、LM Studio、vLLM、本地 Ollama 或遠端閘道。API 金鑰為選填(大多數本地伺服器不需要)。",diff --git a/server/src/__tests__/lib/proxy.test.ts b/server/src/__tests__/lib/proxy.test.tsindex a42d4dec..a170fb94 100644--- a/server/src/__tests__/lib/proxy.test.ts+++ b/server/src/__tests__/lib/proxy.test.ts@@ -15,6 +15,8 @@ import {proxyFetch,describeAbort,withKeyProxy,+ probeProxyUrl,+ DEFAULT_PROXY_PROBE_TARGET,} from '../../lib/proxy.js';// Every env var the proxy config reads, in both the upper- and lower-case@@ -697,3 +699,137 @@ describe('per-key proxy override (#590)', () => {expect(logged).not.toContain('hunter2');});});++// #863: the dashboard "Test" button for the outbound proxy. probeProxyUrl must+// report reachability of a DRAFT proxy URL without persisting anything, fall+// back to the saved URL when the input is empty, and never throw — network+// failures and unbuildable agents come back as structured { ok: false, error }.+describe('probeProxyUrl (#863)', () => {+ it('runs direct and reports ok when no proxy URL is configured', async () => {+ const fetchSpy = vi.spyOn(global, 'fetch').mockResolvedValue(okResponse());++ const result = await probeProxyUrl(undefined);++ expect(result.ok).toBe(true);+ expect(result.status).toBe(200);+ expect(typeof result.latencyMs).toBe('number');+ expect((fetchSpy.mock.calls[0]?.[1] as any)?.dispatcher).toBeUndefined();+ });++ it('reports a structured failure instead of throwing when direct fetch fails', async () => {+ vi.spyOn(global, 'fetch').mockRejectedValue(new Error('ECONNREFUSED'));++ const result = await probeProxyUrl(undefined);++ expect(result.ok).toBe(false);+ expect(result.error).toContain('ECONNREFUSED');+ });++ it('prefers the draft URL over the saved value, without persisting it', async () => {+ applyProxyUrl('http://saved-proxy:8080');+ const fetchSpy = vi.spyOn(global, 'fetch').mockResolvedValue(okResponse());++ // Draft value wins: an HTTP(S) proxy URL builds an undici dispatcher, so+ // the fetch call must carry that dispatcher rather than going direct.+ const result = await probeProxyUrl('http://draft-proxy:8080');++ expect(result.ok).toBe(true);+ const dispatcher = (fetchSpy.mock.calls[0]?.[1] as any)?.dispatcher;+ expect(dispatcher).toBeDefined();+ // The saved value must be untouched.+ expect(getProxyUrl()).toBe('http://saved-proxy:8080');+ });++ it('falls back to the saved proxy URL when the draft is empty', async () => {+ applyProxyUrl('http://saved-proxy:8080');+ const fetchSpy = vi.spyOn(global, 'fetch').mockResolvedValue(okResponse());++ const result = await probeProxyUrl('');++ expect(result.ok).toBe(true);+ expect((fetchSpy.mock.calls[0]?.[1] as any)?.dispatcher).toBeDefined();+ });++ it('routes SOCKS draft URLs through socksFetch, not undici', async () => {+ const fetchSpy = vi.spyOn(global, 'fetch');+ const reqSpy = stubHttpsRequest();++ const result = await probeProxyUrl('socks5://127.0.0.1:1080');++ expect(result.ok).toBe(true);+ expect(result.status).toBe(200);+ expect(fetchSpy).not.toHaveBeenCalled();+ const agent = (reqSpy.mock.calls[0]?.[0] as any)?.agent;+ expect(agent?.proxy?.type).toBe(5);+ });++ it('returns a structured failure when the proxy agent cannot be built', async () => {+ const errSpy = vi.spyOn(console, 'error').mockImplementation(() => {});++ // ftp:// is not an accepted proxy scheme — the agent constructor throws.+ const result = await probeProxyUrl('ftp://127.0.0.1:21');++ expect(result.ok).toBe(false);+ expect(result.error).toContain('Failed to build a proxy agent');+ errSpy.mockRestore();+ });++ it('treats any HTTP response as a working proxy route, even a 4xx', async () => {+ vi.spyOn(global, 'fetch').mockResolvedValue({ ok: false, status: 401 } as Response);++ const result = await probeProxyUrl(undefined);++ // 401 without a key still proves the proxy connected; only a+ // network-level failure counts as a proxy failure.+ expect(result.ok).toBe(true);+ expect(result.status).toBe(401);+ });++ // The probe used to be hardcoded to api.openai.com, which made the button+ // lie in both directions: an install that never calls OpenAI pinged it on+ // every Test, and a network that blocks that host reported a working proxy+ // as broken. The caller now names the endpoint.+ it('calls the target the caller supplies', async () => {+ const fetchSpy = vi.spyOn(global, 'fetch').mockResolvedValue(okResponse());++ const result = await probeProxyUrl(undefined, { targetUrl: 'https://api.groq.com/openai/v1/models' });++ expect(String(fetchSpy.mock.calls[0]?.[0])).toBe('https://api.groq.com/openai/v1/models');+ expect(result.target).toBe('https://api.groq.com/openai/v1/models');+ });++ it('falls back to a neutral reachability endpoint, never an AI vendor', async () => {+ const fetchSpy = vi.spyOn(global, 'fetch').mockResolvedValue(okResponse());++ const result = await probeProxyUrl(undefined);++ expect(String(fetchSpy.mock.calls[0]?.[0])).toBe(DEFAULT_PROXY_PROBE_TARGET);+ expect(DEFAULT_PROXY_PROBE_TARGET).not.toContain('openai.com');+ expect(result.target).toBe(DEFAULT_PROXY_PROBE_TARGET);+ });++ it('blank and whitespace targets fall back rather than requesting an empty url', async () => {+ const fetchSpy = vi.spyOn(global, 'fetch').mockResolvedValue(okResponse());++ await probeProxyUrl(undefined, { targetUrl: ' ' });++ expect(String(fetchSpy.mock.calls[0]?.[0])).toBe(DEFAULT_PROXY_PROBE_TARGET);+ });++ it('reports the target it used on a failure too, so the result is readable', async () => {+ vi.spyOn(global, 'fetch').mockRejectedValue(new Error('ECONNREFUSED'));++ const result = await probeProxyUrl(undefined, { targetUrl: 'https://api.groq.com/openai/v1/models' });++ expect(result.ok).toBe(false);+ expect(result.target).toBe('https://api.groq.com/openai/v1/models');+ });++ it('still honours a custom timeout through the options object', async () => {+ vi.spyOn(global, 'fetch').mockResolvedValue(okResponse());++ const result = await probeProxyUrl(undefined, { timeoutMs: 250 });++ expect(result.ok).toBe(true);+ });+});diff --git a/server/src/lib/proxy.ts b/server/src/lib/proxy.tsindex d7d12132..8599f105 100644--- a/server/src/lib/proxy.ts+++ b/server/src/lib/proxy.ts@@ -661,3 +661,75 @@ export function flushProxyCache(): void {console.warn(`[proxy] could not replace the global fetch dispatcher on wake: ${err?.message ?? err}`);}}++export interface ProxyProbeResult {+ ok: boolean;+ latencyMs: number;+ status?: number;+ error?: string;+ /** The URL the probe actually called, so the dashboard can say what it+ * reached rather than leaving the operator to guess. */+ target?: string;+}++/**+ * Where the probe goes when the caller names no target and no provider key+ * can supply one.+ *+ * Deliberately NOT an AI vendor. The probe answers "can this proxy reach the+ * internet", and pointing it at a third party the install may never use makes+ * the test lie in both directions: a gateway that never calls that vendor now+ * calls it on every Test, and a network that blocks it reports a working proxy+ * as broken. `/cdn-cgi/trace` is a plain-text reachability endpoint with no+ * account, no rate limit and no regional AI-vendor blocking.+ */+export const DEFAULT_PROXY_PROBE_TARGET = 'https://www.cloudflare.com/cdn-cgi/trace';++/**+ * Test whether a proxy URL can actually route traffic (#863). Backs the+ * Settings → Outbound proxy "Test" button so an operator can verify a draft+ * value BEFORE saving it.+ *+ * `proxyUrl` empty → falls back to the saved global proxy URL (getProxyUrl);+ * when neither is set the probe runs direct, so the button is still useful+ * before any proxy has been configured.+ *+ * The probe target is supplied by the caller and should be an endpoint this+ * install genuinely uses — the /models route of a provider the operator holds+ * an enabled key for. Any HTTP response, even a 401/403 without a key, proves+ * the proxy route works; only a network-level failure (DNS, connect, timeout)+ * counts as a proxy failure.+ */+export async function probeProxyUrl(+ proxyUrl: string | undefined,+ options: { targetUrl?: string; timeoutMs?: number } = {},+): Promise<ProxyProbeResult> {+ const timeoutMs = options.timeoutMs ?? 10_000;+ const started = Date.now();+ const url = (proxyUrl ?? '').trim() || getProxyUrl();+ // The caller passes the endpoint this install actually talks to (see+ // routes/settings.ts); the constant is only the no-providers fallback.+ const target = (options.targetUrl ?? '').trim() || DEFAULT_PROXY_PROBE_TARGET;++ try {+ let response: Response;+ if (!url) {+ response = await fetch(target, { signal: AbortSignal.timeout(timeoutMs) });+ } else {+ const resolved = await resolvePerKeyDispatcher(url);+ if (!resolved) {+ return { ok: false, latencyMs: Date.now() - started, target, error: 'Failed to build a proxy agent for the given URL' };+ }+ if (resolved.isSocks) {+ response = await socksFetch(target, { signal: AbortSignal.timeout(timeoutMs) }, resolved.dispatcher as http.Agent, undefined, 'unknown', timeoutMs);+ } else {+ response = await fetch(target, { ...{ signal: AbortSignal.timeout(timeoutMs) }, dispatcher: resolved.dispatcher } as unknown as RequestInit);+ }+ }+ // Any HTTP response proves the proxy route works; the upstream may still+ // answer 401/403 without a key, which is connectivity, not proxy failure.+ return { ok: true, latencyMs: Date.now() - started, status: response.status, target };+ } catch (err: any) {+ return { ok: false, latencyMs: Date.now() - started, target, error: err?.message ?? String(err) };+ }+}diff --git a/server/src/routes/settings.ts b/server/src/routes/settings.tsindex f756fb23..7515c9af 100644--- a/server/src/routes/settings.ts+++ b/server/src/routes/settings.ts@@ -1,7 +1,9 @@import { Router } from 'express';import type { Request, Response } from 'express';-import { getUnifiedApiKey, regenerateUnifiedKey, getSetting, setSetting } from '../db/index.js';-import { applyProxyUrl, applyProxyEnabled, applyProxyBypass, isProxyActive, getProxyUrl, isProxyEnabled, getProxyBypassPlatforms, PROXY_SCHEMES } from '../lib/proxy.js';+import { getUnifiedApiKey, regenerateUnifiedKey, getSetting, setSetting, getDb } from '../db/index.js';+import { applyProxyUrl, applyProxyEnabled, applyProxyBypass, isProxyActive, getProxyUrl, isProxyEnabled, getProxyBypassPlatforms, probeProxyUrl, DEFAULT_PROXY_PROBE_TARGET, PROXY_SCHEMES } from '../lib/proxy.js';+import { getProvider } from '../providers/index.js';+import type { Platform } from '@freellmapi/shared/types.js';import { getSavedFusionConfig, setSavedFusionConfig, savedFusionConfigSchema, getFusionMaxK } from '../services/fusion.js';import { isUnifyEnabled, setUnifyEnabled, getUnifyOverrides, setUnifyOverrides, unifyOverridesSchema } from '../services/model-groups.js';import { getClaudeModelMap, setClaudeModelMap } from '../services/anthropic-map.js';@@ -376,3 +378,52 @@ settingsRouter.put('/proxy', (req: Request, res: Response) => {active: isProxyActive(),});});++// Test proxy connectivity WITHOUT saving (#863). The dashboard's "Test" button+// sends the DRAFT value; an empty body falls back to the saved proxy URL. The+// probe never persists anything — it only builds a throwaway dispatcher and+// measures a round trip through the (draft or saved) proxy.+/**+ * What the proxy probe should call.+ *+ * The question the Test button answers is "can outbound traffic from THIS+ * install reach the upstreams it routes to", so the target is the /models+ * endpoint of a provider the operator actually holds an enabled key for —+ * preferring one that is not bypassing the proxy, since a bypassed platform+ * would not exercise the proxy at all. PROXY_TEST_URL overrides everything for+ * air-gapped or mirror-only deployments. With no keys at all there is no+ * upstream to name, and only then does the neutral fallback apply.+ */+function proxyProbeTarget(): string {+ const override = (process.env.PROXY_TEST_URL ?? '').trim();+ if (override) return override;++ let platforms: { platform: string }[] = [];+ try {+ platforms = getDb().prepare(+ `SELECT DISTINCT platform FROM api_keys WHERE enabled = 1 ORDER BY platform`,+ ).all() as { platform: string }[];+ } catch {+ return DEFAULT_PROXY_PROBE_TARGET;+ }++ const bypassed = new Set(getProxyBypassPlatforms());+ const candidates = [+ ...platforms.filter(row => !bypassed.has(row.platform)),+ ...platforms.filter(row => bypassed.has(row.platform)),+ ];+ for (const row of candidates) {+ // 'custom' has no single registered base URL, and a provider may expose no+ // OpenAI-style catalog route at all; skip rather than invent one.+ if (row.platform === 'custom') continue;+ const url = (getProvider(row.platform as Platform) as { modelsUrl?: string } | undefined)?.modelsUrl;+ if (typeof url === 'string' && /^https?:\/\//i.test(url)) return url;+ }+ return DEFAULT_PROXY_PROBE_TARGET;+}++settingsRouter.post('/proxy/test', async (req: Request, res: Response) => {+ const { proxyUrl } = (req.body ?? {}) as { proxyUrl?: string };+ const result = await probeProxyUrl(proxyUrl, { targetUrl: proxyProbeTarget() });+ res.json(result);+});