Enhances application menu and adds calendar feature

Adds new calendar page and module with comprehensive initialization

Introduces quick actions group in side menu with create booking and sale options
Updates menu service to include new menu groups and rearrange sort order
Configures custom npm registry and esbuild configuration
Adds localization for new menu items and calendar section

Implements calendar controller with dependency injection and settings seeding
This commit is contained in:
Janus C. H. Knudsen 2026-02-02 22:42:18 +01:00
parent 435d9f11b7
commit 51f3b92d69
14 changed files with 422 additions and 10 deletions

View file

@ -71,7 +71,7 @@ public class MockMenuService : IMenuService
Id = "calendar",
Label = "Kalender",
Icon = "ph-calendar",
Url = "/poc-calendar.html",
Url = "/kalender",
MinimumRole = UserRole.Staff,
SortOrder = 2
},
@ -87,12 +87,41 @@ public class MockMenuService : IMenuService
}
},
// QUICK ACTIONS GROUP
new MenuGroup
{
Id = "quickActions",
Label = "Hurtigvalg",
SortOrder = 2,
Items = new List<MenuItem>
{
new MenuItem
{
Id = "createBooking",
Label = "Opret booking",
Icon = "ph-calendar-plus",
Url = "/opret-booking",
MinimumRole = UserRole.Staff,
SortOrder = 1
},
new MenuItem
{
Id = "createSale",
Label = "Opret salg",
Icon = "ph-shopping-cart",
Url = "/opret-salg",
MinimumRole = UserRole.Staff,
SortOrder = 2
}
}
},
// DATA GROUP
new MenuGroup
{
Id = "data",
Label = "Data",
SortOrder = 2,
SortOrder = 3,
Items = new List<MenuItem>
{
new MenuItem
@ -148,7 +177,7 @@ public class MockMenuService : IMenuService
{
Id = "online",
Label = "Online",
SortOrder = 3,
SortOrder = 4,
Items = new List<MenuItem>
{
new MenuItem
@ -177,7 +206,7 @@ public class MockMenuService : IMenuService
{
Id = "analytics",
Label = "Analyse",
SortOrder = 4,
SortOrder = 5,
Items = new List<MenuItem>
{
new MenuItem
@ -197,7 +226,7 @@ public class MockMenuService : IMenuService
{
Id = "system",
Label = "System",
SortOrder = 5,
SortOrder = 6,
Items = new List<MenuItem>
{
new MenuItem