diff --git a/package.json b/package.json index d8107f7..54a8987 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.63.5", + "version": "1.64.0", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/public/icons/apple-calendar.svg b/public/icons/apple-calendar.svg new file mode 100644 index 0000000..57bde3b --- /dev/null +++ b/public/icons/apple-calendar.svg @@ -0,0 +1,5 @@ + + + + 31 + \ No newline at end of file diff --git a/public/icons/google-calendar.svg b/public/icons/google-calendar.svg new file mode 100644 index 0000000..b75948e --- /dev/null +++ b/public/icons/google-calendar.svg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/icons/outlook-calendar.svg b/public/icons/outlook-calendar.svg new file mode 100644 index 0000000..4b4746e --- /dev/null +++ b/public/icons/outlook-calendar.svg @@ -0,0 +1,5 @@ + + + + O + \ No newline at end of file diff --git a/public/icons/synology-calendar.svg b/public/icons/synology-calendar.svg new file mode 100644 index 0000000..63cffe5 --- /dev/null +++ b/public/icons/synology-calendar.svg @@ -0,0 +1,5 @@ + + + + S + \ No newline at end of file diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index 437a301..0410e1b 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -326,6 +326,7 @@ const translations: Record = { localization: "Localization", allDayEvents: "ALL-DAY EVENTS", syncCalendar: "Sync Calendar", + showProviderIcon: "Show provider icon on events", toggleDarkMode: "Toggle Dark Mode", signOut: "Sign Out", startHour: "Start of Day", @@ -543,6 +544,7 @@ const translations: Record = { localization: "Lokalisierung", allDayEvents: "GANZTÄGIGE EREIGNISSE", syncCalendar: "Kalender synchronisieren", + showProviderIcon: "Anbieter-Icon auf Terminen anzeigen", toggleDarkMode: "Dunkelmodus umschalten", signOut: "Abmelden", startHour: "Tagesbeginn", @@ -759,6 +761,7 @@ const translations: Record = { localization: "Localisation", allDayEvents: "ÉVÉNEMENTS JOURNÉE ENTIÈRE", syncCalendar: "Synchroniser le calendrier", + showProviderIcon: "Afficher l'icône du fournisseur sur les événements", toggleDarkMode: "Basculer le mode sombre", signOut: "Se déconnecter", startHour: "Début de journée", @@ -975,6 +978,7 @@ const translations: Record = { localization: "Localización", allDayEvents: "EVENTOS DE TODO EL DÍA", syncCalendar: "Sincronizar calendario", + showProviderIcon: "Mostrar icono del proveedor en eventos", toggleDarkMode: "Alternar modo oscuro", signOut: "Cerrar sesión", startHour: "Inicio del día", @@ -1191,6 +1195,7 @@ const translations: Record = { localization: "Localizzazione", allDayEvents: "EVENTI GIORNATA INTERA", syncCalendar: "Sincronizza calendario", + showProviderIcon: "Mostra icona del provider sugli eventi", toggleDarkMode: "Attiva/disattiva modalità scura", signOut: "Esci", startHour: "Inizio giornata", @@ -1955,6 +1960,7 @@ export default function WeeklyView() { weatherLat: null, weatherLon: null, weatherLocation: "", + showCalendarProviderIcon: false, }); const [motivationalQuote, setMotivationalQuote] = useState(""); const [showSummary, setShowSummary] = useState(false); @@ -7636,16 +7642,32 @@ export default function WeeklyView() { > {event.title} - {event.isRecurring && ( - + {(event.isRecurring || profile.showCalendarProviderIcon) && ( + + {event.isRecurring && } + {profile.showCalendarProviderIcon && ( + { (e.target as HTMLImageElement).style.display = 'none'; }} + /> + )} + )} ); @@ -12267,6 +12289,16 @@ function SettingsSidebar({ {t.connectedCalendars} + + saveField("showCalendarProviderIcon", e.target.checked)} + style={{ width: "16px", height: "16px" }} /> + + {t.showProviderIcon} + + + {connMsg && (