🚀 CRM Files Migration & Real-time Features

 Features:
- Migrated ALL files to new S3 structure (Projects, Contacts, Accounts, HelpDesk, Invoice, etc.)
- Added Nextcloud folder buttons to ALL modules
- Fixed Nextcloud editor integration
- WebSocket server for real-time updates
- Redis Pub/Sub integration
- File path manager for organized storage
- Redis caching for performance (Functions.php)

📁 New Structure:
Documents/Project/ProjectName_ID/file_docID.ext
Documents/Contacts/FirstName_LastName_ID/file_docID.ext
Documents/Accounts/AccountName_ID/file_docID.ext

🔧 Technical:
- FilePathManager for standardized paths
- S3StorageService integration
- WebSocket server (Node.js + Docker)
- Redis cache for getBasicModuleInfo()
- Predis library for Redis connectivity

📝 Scripts:
- Migration scripts for all modules
- Test pages for WebSocket/SSE/Polling
- Documentation (MIGRATION_*.md, REDIS_*.md)

🎯 Result: 15,000+ files migrated successfully!
This commit is contained in:
Fedor
2025-10-24 19:59:28 +03:00
parent 3fb2ad5f60
commit 9245768987
1062 changed files with 161778 additions and 16212 deletions

View File

@@ -44,6 +44,17 @@
</h4>
</div>
{include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE}
{* Кнопка открытия папки лида в Nextcloud *}
<div class="info-row" style="margin-top: 10px;">
<button type="button" class="btn btn-info btn-sm" onclick="openRecordFolder('Leads', '{$RECORD->getId()}', '{$RECORD->get("firstname")|escape:javascript}_{$RECORD->get("lastname")|escape:javascript}')" title="Открыть папку лида в Nextcloud">
<i class="fa fa-folder-open"></i> Папка в Nextcloud
</button>
</div>
{* Подключаем Nextcloud Editor JS *}
<script type="text/javascript" src="crm_extensions/nextcloud_editor/js/nextcloud-editor.js"></script>
{*
<div class="info-row row">
{assign var=FIELD_MODEL value=$MODULE_MODEL->getField('email')}