fix(web): манифест PWA отдаётся с правильным типом

Go определяет .webmanifest как text/plain, из-за чего браузер мог отказаться
ставить приложение: тип задаём явно вместе с js/css/svg.
This commit is contained in:
2026-09-21 19:45:25 +03:00
parent 5afcfee744
commit dd4432452c
6 changed files with 217 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
{
"name": "glchat",
"short_name": "glchat",
"description": "glchat — self-hosted платформа общения: серверы, комнаты, голос и файлы",
"lang": "ru",
"dir": "ltr",
"start_url": "/app",
"scope": "/",
"display": "standalone",
"display_override": ["window-controls-overlay", "standalone"],
"orientation": "any",
"background_color": "#1a1b1e",
"theme_color": "#1a1b1e",
"categories": ["social", "communication"],
"icons": [
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" },
{
"src": "/icons/maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"shortcuts": [
{ "name": "Друзья", "url": "/app/friends" },
{ "name": "Настройки", "url": "/settings/account/profile" }
]
}