No description
Find a file
2026-10-22 23:13:24 +03:00
.forgejo/workflows Added a timeout of 10 minutes to the test job in the deploy workflow to prevent long-running tasks from hanging indefinitely. 2026-10-22 00:00:07 +03:00
__pycache__ Add Dockerfile and GitHub Actions workflow for deployment 2026-10-20 21:19:34 +03:00
templates Add dark theme support to the application. Updated README.md with instructions on how to enable the dark theme and modified index.html to include the necessary CSS classes for dark mode. 2026-10-22 22:55:17 +03:00
.gitignore Added a timeout of 10 minutes to the test job in the deploy workflow to prevent long-running tasks from hanging indefinitely. 2026-10-22 00:00:07 +03:00
app.py Added a timeout of 10 minutes to the test job in the deploy workflow to prevent long-running tasks from hanging indefinitely. 2026-10-22 00:00:07 +03:00
Dockerfile Renamed .Dockerfile to Dockerfile 2026-10-21 00:18:10 +03:00
README.md Add dark theme support to the application. Updated README.md with instructions on how to enable the dark theme and modified index.html to include the necessary CSS classes for dark mode. 2026-10-22 22:55:17 +03:00
requirements.txt Add JSON and GraphQL validator 2026-10-21 23:09:12 +03:00

Утилиты для разработки

Локальный запуск

Создайте виртуальное окружение и установите зависимости:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

Запустите приложение:

python app.py

На Windows активируйте окружение командой .venv\Scripts\activate.

Тёмная тема

Переключите тему кнопкой «Включить тёмную тему» в боковой панели. Выбор сохраняется в браузере и применяется при следующем открытии приложения.

Журнал посещений

При открытии главной страницы приложение добавляет строку в logs/visits.log: время UTC, метод запроса и HTTP-код ответа. IP-адреса, cookies, User-Agent, Referer и параметры URL в этот журнал не записываются. Файл и ротационные копии ограниченного размера исключены из Git.

Валидатор GraphQL

Откройте вкладку «Валидатор GraphQL», вставьте SDL-схему и запрос. После нажатия кнопки ошибки схемы или запроса появятся под полями, а поля запроса, которых нет в схеме, будут подсвечены.