feat(match3): Verbesserung der Drag & Drop-Funktionalität und Hinzufügen von Soundeffekten
- Anpassungen an der Match3Game-Komponente zur Verbesserung der Drag & Drop-Interaktionen, einschließlich neuer Event-Handler für Maus- und Touch-Eingaben. - Einführung von Soundeffekten für Bewegungen, Bomben, Raketen und Regenbogen-Animationen zur Steigerung des Spielerlebnisses. - Erweiterung der CSS-Animationen für Tiles, um neue visuelle Effekte bei Bewegungen und Erscheinen zu implementieren. - Aktualisierung der Animationseffekte für Explosionen und andere Spielereignisse zur Verbesserung der Benutzeroberfläche.
This commit is contained in:
@@ -42,7 +42,32 @@ const syncModels = async (models) => {
|
||||
|
||||
// Intelligente Schema-Synchronisation - prüft ob Updates nötig sind
|
||||
const syncModelsWithUpdates = async (models) => {
|
||||
console.log('🔍 Prüfe ob Schema-Updates nötig sind...');
|
||||
// Prüfe ob wir im Entwicklungsmodus sind
|
||||
if (process.env.STAGE !== 'dev') {
|
||||
console.log('🚫 Nicht im Entwicklungsmodus - überspringe Schema-Updates');
|
||||
console.log('📊 Aktueller Stage:', process.env.STAGE || 'nicht gesetzt');
|
||||
console.log('💡 Setze STAGE=dev in der .env Datei für automatische Schema-Updates');
|
||||
console.log('🔒 Sicherheitsmodus: Schema-Updates sind deaktiviert');
|
||||
|
||||
// Normale Synchronisation ohne Updates
|
||||
for (const model of Object.values(models)) {
|
||||
await model.sync({ alter: false, force: false });
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Zusätzliche Sicherheitsabfrage für Produktionsumgebungen
|
||||
if (process.env.NODE_ENV === 'production' && process.env.STAGE !== 'dev') {
|
||||
console.log('🚨 PRODUKTIONSWARNUNG: Schema-Updates sind in Produktionsumgebungen deaktiviert!');
|
||||
console.log('🔒 Verwende nur normale Synchronisation ohne Schema-Änderungen');
|
||||
|
||||
for (const model of Object.values(models)) {
|
||||
await model.sync({ alter: false, force: false });
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('🔍 Entwicklungsmodus aktiv - prüfe ob Schema-Updates nötig sind...');
|
||||
|
||||
try {
|
||||
// Prüfe ob neue Felder existieren müssen
|
||||
|
||||
Reference in New Issue
Block a user