19 Commits

Author SHA1 Message Date
d2faf80395 updated compose 2025-08-01 13:13:06 -04:00
2eb413f303 implementation update 2025-08-01 13:09:55 -04:00
9e4c21996b 🔄 Add Comprehensive Backup Management System
 New Features:
- Complete backup lifecycle management (create, list, download, delete, cleanup)
- Web-based backup interface with real-time status updates
- Individual backup deletion and bulk cleanup for old backups
- Docker-aware backup operations with volume persistence
- Automated backup scheduling and retention policies

📁 Added Files:
- backup.py - Core backup script for creating timestamped archives
- docker_backup.sh - Docker-compatible backup wrapper script
- app/templates/backup.html - Web interface for backup management
- BACKUP_SYSTEM.md - Comprehensive backup system documentation
- BACKUP_GUIDE.md - Quick reference guide for backup operations

🔧 Enhanced Files:
- Dockerfile - Added backup.py copy for container availability
- docker-compose.yml - Added backup volume mount for persistence
- app/routes/api.py - Added backup API endpoints (create, list, delete, cleanup)
- app/routes/main.py - Added backup management route
- app/templates/index.html - Added backup management navigation
- README.md - Updated with backup system overview and quick start

🎯 Key Improvements:
- Fixed backup creation errors in Docker environment
- Added Docker-aware path detection for container operations
- Implemented proper error handling and user confirmation dialogs
- Added real-time backup status updates via JavaScript
- Enhanced data persistence with volume mounting

💡 Use Cases:
- Data protection and disaster recovery
- Environment migration and cloning
- Development data management
- Automated maintenance workflows
2025-08-01 13:01:15 -04:00
faaddba185 updated 2025-08-01 11:52:15 -04:00
1f0420c6b3 🎨 Improved edit links page with responsive card grid layout
📱 Mobile & Desktop Optimization:
- Responsive grid layout: 1 card (mobile) → 2 cards (tablet) → 3 cards (desktop) → 4 cards (large screens)
- Better card design with improved spacing and hover effects
- Enhanced mobile experience with optimized touch targets

🔧 UI/UX Improvements:
- Modern card-based layout instead of stacked list
- Website logos with fallback icons for better visual recognition
- Improved button placement and iconography
- Better responsive breakpoints for different screen sizes

 Visual Enhancements:
- Smooth hover animations and shadow effects
- Better logo positioning with placeholder icons
- Optimized spacing and typography for mobile devices
- Professional card design with rounded corners and subtle shadows

This update provides a much cleaner and more organized view of links, especially on mobile devices where the cards stack properly and buttons are easily accessible.
2025-08-01 11:52:06 -04:00
ccf8b49f95 Enhanced statistics page with QR code preview and download options
🎨 New Features:
- Added QR code preview section in statistics page
- Integrated PNG and SVG download buttons
- Responsive design for mobile devices
- Automatic QR code loading for the current page

🔧 Technical Details:
- Added QR preview container with loading states
- Implemented downloadQRCode() function for both formats
- Enhanced mobile responsiveness for QR preview section
- Connected to existing /api/download endpoints

📱 UI Improvements:
- Clean preview with bordered QR code image
- Intuitive download buttons with icons
- Loading indicator while fetching QR code
- Error handling for missing QR codes

This completes the admin statistics dashboard with full QR code management capabilities.
2025-07-18 09:29:17 -04:00
53f5c513d4 🚀 Major improvements: Fix short URLs, separate public/admin views, and enhance UX
 Fixed Critical Issues:
- Fixed dynamic QR code short URL redirect functionality
- Resolved data consistency issues with multiple LinkPageManager instances
- Fixed worker concurrency problems in Gunicorn configuration

🎨 UI/UX Enhancements:
- Separated public page from admin statistics view
- Created clean public_page.html for QR code users (no admin info)
- Added comprehensive statistics_page.html for admin analytics
- Enhanced dashboard with separate 'Manage' and 'Stats' buttons
- Improved navigation flow throughout the application

🔧 Technical Improvements:
- Added URLShortener instance reloading for data consistency
- Reduced Gunicorn workers to 1 to prevent file conflicts
- Increased timeout to 60s for better performance
- Enhanced debug logging for troubleshooting
- Added proper error handling and 404 responses

📁 New Files:
- app/templates/public_page.html - Clean public interface
- app/templates/statistics_page.html - Admin analytics dashboard

�� Modified Files:
- app/routes/main.py - Added /stats route, improved short URL handling
- app/templates/edit_links.html - Added Statistics button
- app/templates/index.html - Added Stats button for QR codes
- app/utils/link_manager.py - Enhanced data reloading
- app/utils/url_shortener.py - Added debug logging
- gunicorn.conf.py - Optimized worker configuration

This update provides a professional separation between public content and admin functionality while ensuring reliable short URL operation.
2025-07-18 09:21:36 -04:00
1ae080df37 chore: Remove cookies.txt file from repository
- Removed temporary cookies.txt file that should not be tracked
- File was accidentally committed in previous commit
2025-07-16 18:04:52 -04:00
4252c32d44 fineal commit 2025-07-16 18:02:49 -04:00
ske087
543763adf6 docs: Add comprehensive comments to docker-compose.yml
- Added detailed explanations for each configuration section
- Documented port mapping and volume mount purposes
- Explained environment variables and health check settings
- Clarified network configuration and container management
- Improved readability for deployment and maintenance
2025-07-16 17:59:46 -04:00
ske087
8dbcec974e docs: Replace specific domain with generic placeholder
- Changed qr.moto-adv.com to [your-domain] throughout documentation
- Made documentation more generic and reusable for any deployment
- Updated Nginx configuration examples with placeholder domain
- Standardized domain references in all configuration sections
2025-07-16 17:57:06 -04:00
ske087
7e28c3f365 docs: Add Nginx reverse proxy configuration guide
- Added comprehensive Nginx Proxy Manager setup instructions
- Documented HTTPS to HTTP routing requirements
- Included common proxy issues and troubleshooting
- Added standard Nginx configuration examples
- Clarified SSL termination at proxy level
2025-07-16 17:53:45 -04:00
ske087
264a81652a Production deployment fixes and enhancements
- Added environment variable loading with python-dotenv
- Fixed Docker session permissions by using /tmp directory
- Updated .dockerignore to include .env file properly
- Enhanced docker-compose.yml with env_file directive
- Fixed Gunicorn configuration for Docker compatibility
- Updated README.md with comprehensive deployment docs
- Cleaned up debug logging from API routes
- Added DOMAIN_SETUP.md for reverse proxy guidance
- All production issues resolved and tested working
- Application now accessible at qr.moto-adv.com
2025-07-16 17:49:10 -04:00
e9a8f5e622 final app for testing and deployment 2025-07-16 20:45:12 +03:00
729f64f411 Clean up: Remove old files after project restructure
- Removed old app.py (replaced by main.py + app/ package)
- Removed old static/ and templates/ directories (moved to app/)
- Removed test files and extra documentation
- Maintain clean root directory with only essential files
- New structure: main.py as entry point, app/ package with modular design
2025-07-15 14:41:59 +03:00
492500f925 ssss 2025-07-15 14:35:22 +03:00
b94d2ebbd6 final stage of the app 2025-07-15 14:32:57 +03:00
94f006d458 updated to correct frature 2025-07-15 13:55:52 +03:00
d30d065f44 first commit 2025-07-15 13:25:34 +03:00