This commit is contained in:
Janus Knudsen 2025-07-26 00:00:03 +02:00
parent 42c418e961
commit 001443ce11
3 changed files with 16 additions and 87 deletions

View file

@ -41,7 +41,7 @@ export class EventManager {
type: 'meeting',
allDay: false,
syncStatus: 'synced',
metadata: { day: 1, duration: 30 }
metadata: { duration: 30 }
},
{
id: '2',
@ -51,7 +51,7 @@ export class EventManager {
type: 'meeting',
allDay: false,
syncStatus: 'synced',
metadata: { day: 1, duration: 90 }
metadata: { duration: 90 }
},
{
id: '3',
@ -61,7 +61,7 @@ export class EventManager {
type: 'meal',
allDay: false,
syncStatus: 'synced',
metadata: { day: 1, duration: 60 }
metadata: { duration: 60 }
},
{
id: '4',
@ -71,7 +71,7 @@ export class EventManager {
type: 'work',
allDay: false,
syncStatus: 'synced',
metadata: { day: 2, duration: 120 }
metadata: { duration: 120 }
},
{
id: '5',
@ -81,7 +81,7 @@ export class EventManager {
type: 'meeting',
allDay: false,
syncStatus: 'synced',
metadata: { day: 2, duration: 30 }
metadata: { duration: 30 }
},
{
id: '6',
@ -91,7 +91,7 @@ export class EventManager {
type: 'meal',
allDay: false,
syncStatus: 'synced',
metadata: { day: 2, duration: 60 }
metadata: { duration: 60 }
},
{
id: '7',
@ -101,7 +101,7 @@ export class EventManager {
type: 'meeting',
allDay: false,
syncStatus: 'synced',
metadata: { day: 3, duration: 60 }
metadata: { duration: 60 }
},
{
id: '8',
@ -111,7 +111,7 @@ export class EventManager {
type: 'meal',
allDay: false,
syncStatus: 'synced',
metadata: { day: 3, duration: 60 }
metadata: { duration: 60 }
},
{
id: '9',
@ -121,7 +121,7 @@ export class EventManager {
type: 'meeting',
allDay: false,
syncStatus: 'synced',
metadata: { day: 4, duration: 120 }
metadata: { duration: 120 }
},
{
id: '10',
@ -131,7 +131,7 @@ export class EventManager {
type: 'meal',
allDay: false,
syncStatus: 'synced',
metadata: { day: 4, duration: 30 }
metadata: { duration: 30 }
},
{
id: '11',
@ -141,7 +141,7 @@ export class EventManager {
type: 'work',
allDay: false,
syncStatus: 'synced',
metadata: { day: 5, duration: 180 }
metadata: { duration: 180 }
}
];
@ -161,9 +161,6 @@ export class EventManager {
return [...this.events];
}
public getEventsByDay(day: number): CalendarEvent[] {
return this.events.filter(event => event.metadata?.day === day);
}
public getEventById(id: string): CalendarEvent | undefined {
return this.events.find(event => event.id === id);