F4ilji
92bb10faba
fix: add CSRF token and cookies to deploy API requests
2026-07-02 13:17:24 +05:00
F4ilji
814c06bbb4
fix: correct path to dashboard API routes
2026-07-02 13:09:55 +05:00
F4ilji
c12ac98387
fix: register deploy:run command in ConsoleKernel
2026-07-02 12:57:14 +05:00
F4ilji
6fb0079e7c
feat: add deploy route and sidebar navigation
2026-07-02 12:50:09 +05:00
F4ilji
13d7d36088
feat: add deploy dashboard page with components
2026-07-02 12:48:49 +05:00
F4ilji
73d123a62d
feat: add deploy API endpoints
2026-07-02 12:48:09 +05:00
F4ilji
c216f929d4
feat: add deploy:run artisan command
2026-07-02 12:47:17 +05:00
F4ilji
8bc5c367d6
revert: remove deploy UI, controller, actions, tasks, and routes
...
- Remove Deploy/Index.vue, DeployController, DeploySiteAction, DeployTask
- Remove deploy routes from web.php
- Remove deploy menu item from menuConfig
- Remove deploy button and methods from Main.vue
- Remove deploy logging channel from logging.php
- Keep _deploy/ folder for future CI/CD setup
2026-07-02 12:00:48 +05:00
F4ilji
cc98d509e5
fix: add Docker CLI to PHP container for deploy script
...
- Install docker-ce-cli + docker-compose-plugin in Dockerfile
- Mount Docker socket in docker-compose.yml
- Add www-data to docker group for socket access
2026-07-02 01:50:40 +05:00
F4ilji
3da95da099
fix: use X-CSRF-TOKEN header to match Main.vue pattern
...
X-XSRF-TOKEN is for Laravel's cookie-based CSRF verification,
but this app uses meta tag CSRF. Main.vue uses X-CSRF-TOKEN
and works correctly.
2026-07-02 01:36:05 +05:00
F4ilji
de4fdc2c72
fix: add credentials same-origin to Deploy fetch calls
...
Without this, session cookie is not sent with fetch() requests,
causing server to redirect to login (returning HTML instead of JSON).
2026-07-02 01:29:05 +05:00
F4ilji
b42a733f53
error alert change
2026-07-02 01:24:58 +05:00
F4ilji
8364b220cc
feat: add Integration Credentials CRUD and Deploy UI
...
Integration Credentials:
- Add IntegrationCredential model with encrypted payload
- Add full CRUD: ManageIntegrationCredentialsAction, 4 Tasks, Controller, Requests
- Add migration for integration_credentials table
- Add Vue pages: Index, Create, Edit
- AI tasks now read API keys from DB instead of .env
- Add sidebar menu item
Deploy UI:
- Add DeployTask with full deploy lifecycle management
- Extend DeployController with index, log, history endpoints
- Add Deploy/Index.vue with live polling and deploy log viewer
- Add sidebar menu item and QuickAction for Sveden
UI:
- Add 'key' icon to SidebarNavItem
- Change deploy button color to amber in Main.vue
2026-07-02 01:03:13 +05:00
F4ilji
09bba25993
feat: add dedicated deploy logging to storage/logs/deploy.log
...
- Add 'deploy' channel in logging.php
- Instrument DeployTask with phpLog() for all state transitions
- Instrument DeploySiteAction with channel('deploy') for triggers, errors, clears
- Logs written to storage/logs/deploy.log (separate from laravel.log)
2026-07-02 00:57:57 +05:00
F4ilji
8715179ffa
chore: remove .qwen directory from git tracking
...
Files were added before .gitignore rule was created.
Now properly ignored via .gitignore.
2026-07-02 00:30:47 +05:00
F4ilji
287b7859c6
chore: cleanup obsolete documentation and rewrite QWEN.md
...
- Remove nginx-vikon-security.conf (already applied in docker config)
- Remove page-visual-customization.md (outdated)
- Rewrite QWEN.md to compact bootstrapper format (501→95 lines)
- Add .mimocode, .qwen, QWEN.md, AGENTS.md, docs to .gitignore
2026-07-02 00:30:38 +05:00
F4ilji
8bc42f3a9b
feat: add UUID, slug generation and defaults to educational program creation
...
- Auto-generate UUID and unique slug (with education level suffix)
- Set default values for inner_code, learning_forms, direction_study_id
- Slug avoids duplicates by appending numeric suffix
2026-07-02 00:29:38 +05:00
F4ilji
6750ca8f45
fix: add error flash message to Inertia shared props
...
Add error session key to flash messages so frontend can display
error notifications from session flash data.
2026-07-02 00:29:34 +05:00
F4ilji
2997558a50
refactor: move ByteConverter from Helpers to Services namespace
...
- Move ByteConverter class to App\Ship\Services
- Update all imports across Filament form blocks
- Update ByteConverterServiceProvider
- Add INTEGRATION_CREDENTIAL_PREFIX to CacheKeys enum
2026-07-02 00:29:29 +05:00
F4ilji
938578d217
fix: handle non-JSON server responses in Sveden upload
2026-07-01 13:58:46 +05:00
F4ilji
d83ecc3747
debug: show actual error message in Sveden upload
2026-07-01 13:33:49 +05:00
F4ilji
80b88405f1
fix: resolve Sveden upload permissions and CSRF cookie issue
...
- Add hostgroup (GID 1000) to Dockerfile so www-data inside container can write to sveden/
- Add credentials: 'same-origin' to fetch calls in Sveden.vue and QuickUpload.vue to send session cookies
2026-07-01 13:10:59 +05:00
F4ilji
c9fca0bf29
feat: add Sveden update feature
...
- SvedenController: upload zip and extract to public/sveden
- UpdateSvedenAction: orchestrates temp file handling and extraction
- ExtractSvedenArchiveTask: validates and extracts sveden/abitur folders with security checks
- Sveden.vue: upload UI with progress indicator
- Added routes: GET/POST /dashboard/sveden
- Added quick action: Обновить Sveden
2026-06-30 16:12:16 +05:00
F4ilji
20f615365b
changes
2026-04-17 12:38:39 +05:00
F4ilji
886cac5f95
changes
2026-04-15 16:41:08 +05:00
F4ilji
3669a0d982
changes
2026-04-14 23:10:00 +05:00
F4ilji
9b71f62a04
changes
2026-04-14 22:57:27 +05:00
F4ilji
d3433f2a1d
changes
2026-04-14 22:52:21 +05:00
F4ilji
ad91077263
changes
2026-04-13 20:28:10 +05:00
F4ilji
b8c96704c2
changes
2026-04-13 20:23:08 +05:00
F4ilji
2e77978d5c
changes
2026-04-13 14:37:57 +05:00
F4ilji
5eb5a7bc06
changes
2026-04-10 10:51:42 +05:00
F4ilji
9e35cf848d
changes
2026-04-10 09:01:47 +05:00
F4ilji
1c6f09ed80
changes
2026-04-09 18:17:09 +05:00
F4ilji
0d56ba5a28
changes
2026-04-09 18:09:55 +05:00
F4ilji
419bf112d4
changes
2026-04-09 18:01:10 +05:00
F4ilji
2fc19530ad
changes
2026-04-09 17:54:02 +05:00
F4ilji
c0babe8277
changes
2026-04-09 17:41:22 +05:00
F4ilji
4aa4b9cadf
changes
2026-04-09 17:23:10 +05:00
F4ilji
4bde0b10d0
changes
2026-04-09 13:35:02 +05:00
F4ilji
e986940680
changes
2026-04-09 09:09:17 +05:00
F4ilji
169a2f5654
changes
2026-04-08 14:14:38 +05:00
F4ilji and Qwen-Coder
bd28fc60d7
feat(ssr): вынести обработку SSR ошибок в отдельный файл
...
- Создан resources/js/ssr/errorHandler.js для логирования SSR ошибок
- SSR ошибки теперь записываются в storage/logs/ssr-errors.log
- Обновлён ssr.js с использованием кастомного error handler
- Добавлен storage/logs в .gitignore
Теперь SSR ошибки не засоряют основные логи приложения
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 22:55:31 +05:00
F4ilji and Qwen-Coder
d7c6d23a6b
fix(ssr): добавить route mixin для SSR совместимости Ziggy
...
- Создан RouteMixin.js для предоставления route() всем компонентам
- Обновлён ssr.js с правильным импортом Router и созданием route функции
- Исправлен BackButton.vue с проверкой this.route перед использованием
- Добавлена обработка ошибок для route() с fallback на '#'
Решает ошибку: ReferenceError: route is not defined at Proxy.resolvedLink
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 22:41:14 +05:00
F4ilji
3798d01da1
changes
2026-04-07 22:30:06 +05:00
F4ilji and Qwen-Coder
438f7df855
fix(ssr): пересобрать SSR бандл, Ziggy routes и Livewire ассеты
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 22:15:45 +05:00
F4ilji and Qwen-Coder
efec5f3508
refactor(email-tasks): понизить уровень логирования с info до debug для успешных операций
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 22:06:37 +05:00
F4ilji and Qwen-Coder
662b722ad4
fix(nginx): добавить mc.yandex.ru в CSP для Яндекс.Метрики
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 20:26:05 +05:00
F4ilji and Qwen-Coder
736ea7ae3a
fix(nginx): добавить cdn.jsdelivr.net в style-src CSP
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 20:21:40 +05:00
F4ilji and Qwen-Coder
da0215176a
fix(nginx): добавить внешние CDN в CSP (TinyMCE, шрифты) и опубликовать Livewire ассеты
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 20:11:58 +05:00
F4ilji
c2bf1127a5
fix
2026-04-07 20:01:27 +05:00
F4ilji and Qwen-Coder
3f906cbc20
fix(php): добавить /dev/null в open_basedir для composer
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 20:00:58 +05:00
F4ilji and Qwen-Coder
2d5b371247
fix(php): разрешить proc_open для Inertia SSR и расширить open_basedir для composer (включая /root)
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 19:53:33 +05:00
F4ilji
75f9c73dc7
fix(php): добавить /usr/local/bin в open_basedir для работы composer
2026-04-07 18:34:46 +05:00
F4ilji and Qwen-Coder
5d946eec3a
fix(nginx): разрешить доступ к публичным vendor ассетам (log-viewer)
...
Проблема: Правило 'location ~ ^/vendor/ { deny all; }' блокировало
доступ к CSS/JS файлам log-viewer в public/vendor/log-viewer/.
Решение:
- location /vendor/ — разрешает доступ к статическим файлам
- Запрещает выполнение .php файлов (security)
- try_files $uri =404 — отдаёт файлы если существуют
- autoindex off — запрещает листинг директорий
Fix: Log Viewer UI не загружался (app.css failed to load)
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 18:14:38 +05:00
F4ilji and Qwen-Coder
b1d964a526
fix(nginx): разрешить доступ к публичным файлам storage через symlink
...
Проблема: Правило 'location ~ ^/storage/ { deny all; }' блокировало
ВСЕ запросы к /storage/, включая файлы доступные через symlink
public/storage -> storage/app/public.
Решение:
- location /storage/ — разрешает доступ к статическим файлам (изображения, документы)
- Запрещает выполнение .php файлов в storage (security)
- try_files $uri =404 — отдаёт файлы если они существуют
- Запрещает листинг директорий (autoindex off)
Fix: Изображения новостей не загружались (404 ошибка)
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-07 18:08:37 +05:00
F4ilji
936b1fb5b0
changes
2026-04-07 17:54:26 +05:00
F4ilji
04adba6682
Changes
2026-04-07 17:47:00 +05:00
F4ilji and Qwen-Coder
cc20906062
fix(IMAP): исправить загрузку вложений — setFetchBody(true) необходим для структуры
...
Проблема: setFetchBody(false) не загружал структуру письма,
поэтому getAttachments() возвращал пустой список.
Исправления:
- FetchUnreadEmailsTask: setFetchBody(true) для загрузки структуры (вложения)
- FetchUnreadEmailsTask: конвертация Attribute в строку для subject
- config/imap.php: убраны fetch_body/fetch_flags (контроль на уровне Query)
- Обновлена документация
Fix: "В письме не найдено вложений" ошибка при обработке email
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-06 22:17:21 +05:00
F4ilji and Qwen-Coder
c115a5c7a7
fix(IMAP): оптимизация обработки email для предотвращения memory exhaustion
...
Корневая проблема: библиотека webklex/php-imap загружала все тела писем
по умолчанию, что приводило к исчерпанию 256MB памяти при 50+ письмах.
Решение (3 уровня):
Уровень 1 - Конфигурация:
- config/imap.php: добавлены fetch_body=false, fetch_flags=false, fetch_limit=20
- php.ini: увеличен memory_limit с 256M до 1G, добавлены OPcache настройки
Уровень 2 - Оптимизация кода:
- FetchUnreadEmailsTask: setFetchBody(false), лимиты, MemoryAwareTrait
- FetchEmailNewsAction: batch-обработка (10 писем), gc_collect_cycles()
- DownloadAttachmentsTask: lazy load вложений, extension whitelist (security)
- ConnectToImapTask: MemoryAwareTrait для мониторинга
Уровень 3 - Инфраструктура:
- ProcessEmailNewsJob: queue job для асинхронной обработки (3 попытки, 300s timeout)
- FetchEmailNewsCommand: поддержка --async режима
- MemoryAwareTrait: reusable трейт для мониторинга памяти
Security fixes:
- Extension whitelist для предотвращения path traversal
- Убраны реальные email из config/imap.php
- Добавлена проверка на null message объект
Docs:
- README_EMAIL_OPTIMIZATION.md: полная документация по оптимизации
Fixes: Allowed memory size of 268435456 bytes exhausted
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-06 22:08:03 +05:00
F4ilji
4b071d9ef2
Changes
2026-03-27 15:04:43 +05:00
F4ilji
5cf85f08e4
changes
2026-03-23 15:45:49 +05:00
F4ilji
c350f712dc
changes
2026-03-23 12:05:08 +05:00
F4ilji
1256adba98
changes
2026-03-23 10:50:31 +05:00
F4ilji
b1c4f7b054
changes
2026-03-21 15:40:18 +05:00
F4ilji
56d9a0207c
changes
2026-03-21 01:02:12 +05:00
F4ilji
e58c3088f1
changes
2026-03-21 01:00:31 +05:00
F4ilji
d0a106159d
changes
2026-03-21 00:53:49 +05:00
F4ilji
836452add6
Changes
2026-03-20 23:35:09 +05:00
F4ilji
c80a52ab86
changes
2026-03-20 22:26:10 +05:00
F4ilji
a3948c872e
Changes
2026-03-20 21:47:02 +05:00
F4ilji
ae7b42acbe
return LinksReform.js
2026-01-27 14:16:41 +05:00
F4ilji
d0cda1dac2
return nginx.conf
2026-01-27 13:41:26 +05:00
F4ilji
7ff0ffc118
change GetEducationalProgramBySlugTask.php
2026-01-26 11:37:04 +05:00
F4ilji
7f93aa185e
change LinksReform.js
2026-01-26 10:24:59 +05:00
F4ilji
2b4b97cd7e
change EducationSection.vue
2026-01-26 10:13:05 +05:00
F4ilji
eeab7cd343
change GetEducationsDataTask.php
2026-01-26 10:01:16 +05:00
F4ilji
9330ed457c
change nginx.conf
2026-01-25 22:51:13 +05:00
F4ilji
1ae1b5b047
change helper.php
2026-01-22 14:27:12 +05:00
F4ilji
7ef80e7207
change nginx.conf
2026-01-22 14:03:55 +05:00
F4ilji
c4be035890
change nginx.conf
2026-01-22 13:38:34 +05:00
F4ilji
8104d0b6cd
change nginx.conf
2026-01-22 13:27:18 +05:00
F4ilji
b976814d8b
Updated nginx prod configuration
2026-01-21 16:36:48 +05:00
F4ilji
afda333c25
Updated nginx prod configuration
...
Added schedule upload functionality in Filament
Updated .gitignore in public directory
2026-01-18 01:20:16 +05:00
F4ilji
1f61601e05
add cors rules
2026-01-09 19:07:51 +05:00
F4ilji
596e14feee
remove jenkins in docker-compose.yml
2026-01-09 14:09:55 +05:00
F4ilji
2d101dcdda
feat: Refactor MainController and related tasks to follow Porto architecture
...
- Moved logic from MainController to dedicated action and task classes.
- Introduced GetMainPageDataAction, GetEducationsDataTask, GetRecentPostsTask, GetUpcomingEventsTask, and GetPageDataTask for better separation of concerns.
- Updated routes to use the new MainController from the Main container.
- Deprecated the old MainController with a clear message for future removal.
- Updated caching mechanisms to use the new task classes.
- Adjusted environment variable access to use config() instead of env() for better practice.
- Added new MainPageResource for structured data response.
- Updated .gitignore to exclude QWEN.md.
- Added Jenkins service to docker-compose for CI/CD integration.
2025-12-16 12:20:01 +05:00
F4ilji
8bb7886ef7
Enhance TinyEditor configuration by refining 'test' profile settings and improving paste handling options
2025-12-02 14:23:00 +05:00
F4ilji
a61d810d55
Improve image handling and logging in CreateVkPostJob for better error tracking and validation
2025-11-26 13:50:02 +05:00
F4ilji
f6d6777d01
Enhance logging in CreateVkPostJob for better debugging and error tracking during post creation
2025-11-25 20:24:34 +05:00
F4ilji
537fa2b0b5
Refactor VkPostPublisher to simplify message formatting and enhance PostListItem layout for better author display
2025-11-25 16:10:50 +05:00
F4ilji
a983ab0424
Remove disabled state from VK publication toggle in PostForm
2025-11-22 21:11:19 +05:00
F4ilji
864795749e
Update pagination limit and improve author display in PostListItem
2025-11-20 15:58:48 +05:00
F4ilji
b470138ccd
Merge branch 'master' of https://github.com/F4ilji/ntspi-app
2025-11-20 15:13:18 +05:00
F4ilji
56935abfc0
Update default post status to published and enforce unique group names
2025-11-20 15:05:04 +05:00
F4ilji
de4f8e27b8
Update ListBlock label to include exhibitions in InfoSection.vue
2025-11-20 15:04:49 +05:00
F4ilji
480e1a0553
chanage name list for InfoSection
2025-10-11 22:09:38 +05:00
F4ilji
2369eab332
change
2025-10-09 16:30:09 +05:00
F4ilji
6df819f30c
disable vk auto post
2025-10-09 16:23:23 +05:00
F4ilji
6570b36cd0
remove regex validation
2025-10-08 18:10:14 +05:00