Add a Calendar view on the right side

This commit is contained in:
Vyn 2024-10-29 15:02:46 +01:00
parent a80515ff90
commit f1ac8a42d1
18 changed files with 406 additions and 130 deletions

View file

@ -82,6 +82,8 @@ void Source::createEvent(const createEventParams &eventToCreate)
.id = generateUniqueId(),
.dayId = day.value().id,
.title = eventToCreate.title,
.startsAt = eventToCreate.startsAt,
.endsAt = eventToCreate.endsAt,
});
};
@ -144,4 +146,15 @@ std::string Source::name() const
{
return data->name();
}
std::string Source::type() const
{
// There is only 1 type for now
return "MarkdownFile";
}
DataProvider *Source::dataProvider()
{
return data;
}
} // namespace mirai