/
githubmirror
/
gogs
Обзор
Документация
Войти
/
githubmirror
/
gogs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-archive-testing
web/index.html
34 строки
1 KB
ᴊᴏᴇ ᴄʜᴇɴ
Embed WebContext and add /api/web/user-info endpoint (#8282)
21 май 2026, 21:43
Не верифицирован
21 май 2026, 21:43
90790b2
Код
Авторство
О чём код?
<!doctype html> <html class="h-full"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> {{.WebContext}} <link rel="shortcut icon" href="/img/favicon.png" /> <title>Gogs</title> <style> /* Inlined so the page paints with the right theme background before the main stylesheet arrives. */ html { background-color: #fffffe; } html.dark { background-color: #16161a; } </style> <script> // Inlined to run before paint and avoid theme flash. Treat any value // other than "light" or "dark" (missing, corrupted, "system", etc.) // as a follow-the-system signal so the OS preference still wins. (function () { var saved = localStorage.getItem("gogs-theme"); var explicit = saved === "light" || saved === "dark"; var dark = saved === "dark" || (!explicit && window.matchMedia("(prefers-color-scheme: dark)").matches); if (dark) document.documentElement.classList.add("dark"); })(); </script> </head> <body class="h-full"> <div id="root"></div> <script type="module" src="/src/main.tsx"></script> </body> </html>