feat: Major updates to backend structure and security enhancements
- Removed `COMMON_ERRORS.md` file to streamline documentation. - Added `Flask-Limiter` for rate limiting and `redis` for session management in `requirements.txt`. - Expanded `ROADMAP.md` to include completed security features and planned enhancements for version 2.2. - Enhanced `setup_myp.sh` for ultra-secure kiosk installation, including system hardening and security configurations. - Updated `app.py` to integrate CSRF protection and improved logging setup. - Refactored user model to include username and active status for better user management. - Improved job scheduler with uptime tracking and task management features. - Updated various templates for a more cohesive user interface and experience.
This commit is contained in:
90
backend/app/static/manifest.json
Normal file
90
backend/app/static/manifest.json
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"name": "Mercedes-Benz MYP Platform",
|
||||
"short_name": "MYP",
|
||||
"description": "3D-Druck Management System",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#0f172a",
|
||||
"theme_color": "#0f172a",
|
||||
"orientation": "portrait-primary",
|
||||
"scope": "/",
|
||||
"lang": "de",
|
||||
"categories": ["productivity", "business"],
|
||||
"icons": [
|
||||
{
|
||||
"src": "static/icons/mercedes-logo.svg",
|
||||
"sizes": "192x192",
|
||||
"type": "image/svg+xml"
|
||||
},
|
||||
{
|
||||
"src": "static/icons/mercedes-logo.svg",
|
||||
"sizes": "512x512",
|
||||
"type": "image/svg+xml"
|
||||
},
|
||||
{
|
||||
"src": "static/icons/icon-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable any"
|
||||
}
|
||||
],
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "Dashboard",
|
||||
"url": "/dashboard",
|
||||
"description": "Übersicht anzeigen"
|
||||
},
|
||||
{
|
||||
"name": "Drucker",
|
||||
"url": "/printers",
|
||||
"description": "Drucker verwalten"
|
||||
},
|
||||
{
|
||||
"name": "Druckaufträge",
|
||||
"url": "/jobs",
|
||||
"description": "Druckaufträge verwalten"
|
||||
}
|
||||
],
|
||||
"screenshots": [],
|
||||
"prefer_related_applications": false,
|
||||
"edge_side_panel": {
|
||||
"preferred_width": 400
|
||||
},
|
||||
"launch_handler": {
|
||||
"client_mode": "navigate-existing"
|
||||
},
|
||||
"protocol_handlers": [
|
||||
{
|
||||
"protocol": "web+myp",
|
||||
"url": "/handle?url=%s"
|
||||
}
|
||||
],
|
||||
"file_handlers": [
|
||||
{
|
||||
"action": "/jobs/upload",
|
||||
"accept": {
|
||||
"model/gcode": [".gcode", ".g"],
|
||||
"model/stl": [".stl"],
|
||||
"model/obj": [".obj"],
|
||||
"model/3mf": [".3mf"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"share_target": {
|
||||
"action": "/jobs/share",
|
||||
"method": "POST",
|
||||
"enctype": "multipart/form-data",
|
||||
"params": {
|
||||
"title": "title",
|
||||
"text": "text",
|
||||
"url": "url",
|
||||
"files": [
|
||||
{
|
||||
"name": "files",
|
||||
"accept": ["model/gcode", "model/stl", "model/obj", "model/3mf"]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"offline_enabled": true
|
||||
}
|
Reference in New Issue
Block a user