From f90cc36ebd9fa1977e0657208352fc54f4beaf0f Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Tue, 24 Mar 2026 16:00:22 +0300 Subject: [PATCH] feat: add API docs link button in sidebar footer Opens Swagger UI (/docs) in a new tab. Proxies /docs and /openapi.json in dev mode so the link works from the Vite dev server. --- frontend/src/lib/i18n/en.json | 1 + frontend/src/lib/i18n/ru.json | 1 + frontend/src/routes/+layout.svelte | 31 +++++++++++++++++------------- frontend/vite.config.ts | 4 +++- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/frontend/src/lib/i18n/en.json b/frontend/src/lib/i18n/en.json index e808847..ddb8ad7 100644 --- a/frontend/src/lib/i18n/en.json +++ b/frontend/src/lib/i18n/en.json @@ -806,6 +806,7 @@ "headersInvalid": "Invalid JSON", "language": "Language", "theme": "Theme", + "apiDocs": "API Docs", "light": "Light", "dark": "Dark", "system": "System", diff --git a/frontend/src/lib/i18n/ru.json b/frontend/src/lib/i18n/ru.json index dff4bc0..cd48bef 100644 --- a/frontend/src/lib/i18n/ru.json +++ b/frontend/src/lib/i18n/ru.json @@ -806,6 +806,7 @@ "headersInvalid": "Невалидный JSON", "language": "Язык", "theme": "Тема", + "apiDocs": "API Docs", "light": "Светлая", "dark": "Тёмная", "system": "Системная", diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 00ddcd7..2a20224 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -354,19 +354,6 @@ - -
- -
- {#if allProviders.length > 1}
@@ -386,6 +373,19 @@
{/if} + +
+ +
+