Fix: Statistiken werden nicht angezeigt, Tee-Sorten Editieren funktioniert nicht

- Fix updateStats() um renderDetailedStats() korrekt aufzurufen
- Fix Stats-Period-Filter Event-Listener hinzugefügt
- Verbesserte LocalFileStorage-Klasse mit besserer Fehlerbehandlung
- .htaccess-Datei für Apache-Server hinzugefügt
- SERVER_SETUP.md mit Anleitungen für Server-Konfiguration
- data/-Verzeichnis mit .gitkeep hinzugefügt
- app-Variable als window.app global verfügbar gemacht

Co-authored-by: trevor1969 <trevor1969@users.noreply.github.com>
This commit is contained in:
Vibe Nuage Agent
2026-06-06 11:15:48 +00:00
parent b47e2bd7d0
commit 2544a102d9
4 changed files with 489 additions and 6 deletions

38
.htaccess Normal file
View File

@ -0,0 +1,38 @@
# TeeTracker .htaccess Configuration
# Enable PUT and DELETE methods for the data directory
# Required for file-based storage to work on Apache servers
<IfModule mod_rewrite.c>
RewriteEngine On
# Allow PUT and DELETE for data directory
RewriteCond %{REQUEST_METHOD} ^(PUT|DELETE)$
RewriteCond %{REQUEST_URI} ^/data/ [NC]
RewriteRule ^ - [L]
</IfModule>
# Enable all HTTP methods for the data directory
<Limit GET POST PUT DELETE OPTIONS>
Require all granted
</Limit>
<LimitExcept GET POST PUT DELETE OPTIONS>
Require all denied
</LimitExcept>
# Set proper MIME types for JSON files
<IfModule mod_mime.c>
AddType application/json .json
</IfModule>
# Disable caching for data files
<FilesMatch "\.(json|txt)$">
<IfModule mod_expires.c>
ExpiresActive Off
</IfModule>
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>
</FilesMatch>