using Microsoft.AspNetCore.Components.Routing; using RobotNet10.Components; namespace RobotNet10.FleetManager.Client; public static class Extensions { extension(IServiceCollection services) { public void AddNavigationMenu(string version = "dev") { services.AddSingleton(sp => new OptionLayout() { AppName = "FleetManager", Version = version, NavModels = [ new("mdi-view-dashboard", "/", "Dashboard", NavLinkMatch.All), new("mdi-map", "/layout-manager", "Map Editor", NavLinkMatch.All), new("mdi-robot-mower-outline", "/vehicle-manager", "Vehicle", NavLinkMatch.All), new("mdi-robot-industrial", "/robot-models", "RobotModel", NavLinkMatch.All), new("mdi-robot", "/robots", "Robot", NavLinkMatch.All), new("mdi-monitor-eye", "/robots/monitor", "Monitor", NavLinkMatch.All), new("mdi-file-code", "/programming", "Programming", NavLinkMatch.All), new("mdi-flag-checkered", "/missions", "Missions", NavLinkMatch.All), new("mdi-application-cog-outline", "/config-manager", "Configuration", NavLinkMatch.All), new("mdi-math-log", "/logs", "Logs", NavLinkMatch.All), ] }); } } }