Restructures project with feature-based organization

Refactors project structure to support modular, feature-driven development

Introduces comprehensive language localization support
Adds menu management with role-based access control
Implements dynamic sidebar and theme switching capabilities

Enhances project scalability and maintainability
This commit is contained in:
Janus C. H. Knudsen 2026-01-08 15:44:11 +01:00
parent fac7754d7a
commit d7f3c55a2a
60 changed files with 3214 additions and 20 deletions

29
app/Program.cs Normal file
View file

@ -0,0 +1,29 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using CalendarServer.Features.Menu.Services;
using CalendarServer.Features.Language.Services;
var builder = WebApplication.CreateBuilder(args);
// Add MVC services
builder.Services.AddControllersWithViews();
// Register application services
builder.Services.AddScoped<IMenuService, MockMenuService>();
builder.Services.AddScoped<ILocalizationService, JsonLocalizationService>();
var app = builder.Build();
// Serve static files from wwwroot
app.UseStaticFiles();
// Configure routing
app.UseRouting();
// Map MVC routes
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.Run("http://localhost:8000");