feat: refactor PhotoswipeReader to enhance modularity with new components and hooks for improved navigation, image loading, and touch handling

This commit is contained in:
Julien Froidefond
2025-10-22 21:05:10 +02:00
parent 66fbf98d54
commit 0ba027b625
11 changed files with 724 additions and 558 deletions

View File

@@ -45,6 +45,7 @@ class CircuitBreaker {
if (this.state.state === 'HALF_OPEN') {
this.state.failureCount = 0;
this.state.state = 'CLOSED';
// eslint-disable-next-line no-console
console.log('[CIRCUIT-BREAKER] ✅ Circuit closed - Komga recovered');
}
}
@@ -71,6 +72,7 @@ class CircuitBreaker {
lastFailureTime: 0,
nextAttemptTime: 0,
};
// eslint-disable-next-line no-console
console.log('[CIRCUIT-BREAKER] 🔄 Circuit reset');
}
}