From eb7984f40d6cb41b0fe832ef82945d89f038b0d3 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 30 Mar 2026 19:39:54 +0200 Subject: [PATCH] fix: CustomSelect for backup schedule dropdowns, increase PWA cache limit - Replace native handleAutoSettingsChange('hour', parseInt(e.target.value, 10))} - className="w-full sm:w-auto px-3 py-2 rounded-lg text-sm font-medium border border-gray-200 bg-white text-gray-700 focus:ring-2 focus:ring-slate-400 focus:border-transparent" - > - {HOURS.map(h => { + handleAutoSettingsChange('hour', parseInt(v, 10))} + size="sm" + options={HOURS.map(h => { let label: string if (is12h) { const period = h >= 12 ? 'PM' : 'AM' @@ -369,13 +369,9 @@ export default function BackupPanel() { } else { label = `${String(h).padStart(2, '0')}:00` } - return ( - - ) + return { value: String(h), label } })} - + />

{t('backup.auto.hourHint', { format: is12h ? '12h' : '24h' })}{serverTimezone ? ` (Timezone: ${serverTimezone})` : ''}

@@ -408,15 +404,12 @@ export default function BackupPanel() { {autoSettings.interval === 'monthly' && (
- + handleAutoSettingsChange('day_of_month', parseInt(v, 10))} + size="sm" + options={DAYS_OF_MONTH.map(d => ({ value: String(d), label: String(d) }))} + />

{t('backup.auto.dayOfMonthHint')}

)} diff --git a/client/vite.config.js b/client/vite.config.js index a2d3632..61e5493 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -8,6 +8,7 @@ export default defineConfig({ VitePWA({ registerType: 'autoUpdate', workbox: { + maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, globPatterns: ['**/*.{js,css,html,svg,png,woff,woff2,ttf}'], navigateFallback: 'index.html', navigateFallbackDenylist: [/^\/api/, /^\/uploads/],