using Microsoft.AspNetCore.Components.Routing; using RobotNet10.Components; namespace RobotNet10.RobotApp.Client; public static class Extensions { public static void AddNavigationMenu(this IServiceCollection services) { services.AddSingleton(sp => new OptionLayout() { AppName = "Robot App", NavModels = [ // new("mdi-view-dashboard", "/", "Dashboard", NavLinkMatch.All), // new("mdi-file-code", "/programming", "Programming", NavLinkMatch.All), // new("mdi-flag-checkered", "/missions", "Missions", NavLinkMatch.All), // new("mdi-map", "/layout-manager", "Map Editor", NavLinkMatch.All), // new("mdi-robot-industrial", "/vehicle-manager", "Vehicle", NavLinkMatch.All), new("mdi-chip", "/devices", "Devices", NavLinkMatch.All), // Manual Control page new("mdi-gamepad-variant", "/motion/manualcontrol", "Manual Control", NavLinkMatch.All), // new("mdi-axis-arrow", "/motion/odometry", "Odometry (XLOC)", NavLinkMatch.All), // new("mdi-monitor-eye", "/motion/navigation-monitor", "Navigation Monitor", NavLinkMatch.All), new("mdi-developer-board", "/plc/controller", "PLC Controller", NavLinkMatch.All), // new("mdi-crosshairs-gps", "/localization", "Localization", NavLinkMatch.All), // new("mdi-map-plus", "/maps", "Maps", NavLinkMatch.All), new("mdi-chart-box-outline", "/xloc/map", "Visualization", NavLinkMatch.All), // new("mdi-tune", "/navigation/tuning", "Navigation Tuning", NavLinkMatch.All), new("mdi-ev-station", "/dock-station-config", "Dock Station", NavLinkMatch.All), // new("mdi-application-cog-outline", "/config-manager", "Configuration", NavLinkMatch.All), new("mdi-text-box-outline", "/logs", "Logs", NavLinkMatch.All), ] }); } }