14 Commits

Author SHA1 Message Date
kilyabin
4a1ec7859f fix(database): initialize database correctly and fix script 2026-03-05 22:36:41 +04:00
kilyabin
cbfda855ed fix(script): wrong user in systemd service 2026-03-05 22:23:42 +04:00
kilyabin
c43bed396e fix: добавить postbuild.js для копирования статических файлов
- scripts/postbuild.js: новый скрипт для копирования public и .next/static в .next/standalone
- package.json: запуск postbuild.js после npm run build
- scripts/install.sh: использование postbuild.js вместо ручного копирования
- scripts/manage.sh: использование postbuild.js вместо ручного копирования
- next.config.js: убран outputFileTracingRoot (не работает в Next.js 16)

Теперь стили и статические файлы должны корректно работать в продакшене
2026-03-05 14:24:09 +04:00
kilyabin
fa7fd147f5 fix: исправить загрузку статических файлов в продакшене
- Убран outputFileTracingRoot из next.config.js для корректной работы standalone режима
- В install.sh добавлено удаление старых файлов перед копированием новых
- Статические файлы (.next/static) и public теперь копируются корректно

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-05 14:04:43 +04:00
kilyabin
56a48b4552 fix: database location
Founded a major mistake: db overwrites during install.  Now all scripts save db in special folder and don't overwrite it.
2025-12-04 23:44:21 +04:00
kilyabin
24bb531dfb feat(ui): improve lesson cards and theme button, optimize dependency checks
UI Improvements:
- Highlight classroom number in lesson cards using Badge component
  * Applied to both mobile and desktop views
  * Improved visual distinction for classroom information

- Fix theme switcher button layout on mobile
  * Add "Тема" text label inside the button (visible on all devices)
  * Remove redundant absolute positioned span below button
  * Fix text overflow issues on mobile devices
  * Improve button isolation to prevent text escaping

Performance Optimization:
- Optimize dependency installation check in deployment scripts
  * Replace timestamp-based check with content hash comparison
  * Use MD5 hash of package.json and lock files to detect real changes
  * Save hash after successful installation for future comparisons
  * Significantly reduce unnecessary npm install runs during updates
  * Add .dependencies.hash to .gitignore

Files changed:
- src/widgets/schedule/lesson.tsx - Added Badge for classroom
- src/features/theme-switch/index.tsx - Added text label to button
- src/widgets/navbar/index.tsx - Improved button container structure
- src/pages/index.tsx - Removed redundant theme label span
- scripts/manage.sh - Optimized dependency check logic
- scripts/install.sh - Optimized dependency check logic
- .gitignore - Added .dependencies.hash exclusion
2025-11-26 01:09:46 +04:00
kilyabin
4aec72c4da fix: install and update script 2025-11-24 02:56:59 +04:00
kilyabin
04f6ea28ec fix: scripts modernize 2025-11-24 02:43:06 +04:00
kilyabin
808d577964 feat: исправление мобильной версии и улучшение UX
- Исправлена мобильная версия: добавлена горизонтальная прокрутка навигации,
  оптимизированы отступы и размеры элементов для touch-интерфейсов
- Устранено зависание на мобильных: удален бесконечный цикл в date-serializer.ts
- Улучшена читаемость: сделаны светлее описание пар, дни недели и текст
  последнего обновления (текущий день остается выделенным)
- Добавлена автоматическая прокрутка до текущего дня при загрузке страницы
- Добавлено отображение 'Пары нет' для отмененных пар при замене
- Оптимизированы скрипты установки: добавлена проверка зависимостей перед
  установкой для ускорения повторных запусков
- Исправлено отображение адреса и аудитории на мобильных устройствах
- Улучшены диалоги и touch-цели для мобильных устройств
2025-11-23 00:13:51 +04:00
kilyabin
66bc7136a3 fix script 2025-11-18 04:23:31 +04:00
kilyabin
b5f902a13f fixed .env use 2025-11-18 04:16:52 +04:00
kilyabin
327f143a29 fixed scripts and replaced consts 2025-11-18 04:13:20 +04:00
kilyabin
0bb41c897c goodize scripts 2025-11-18 04:03:24 +04:00
kilyabin
b82d4e5085 add scripts to auto-install 2025-11-18 03:57:22 +04:00