Initial commit

This commit is contained in:
2026-07-03 16:37:12 +07:00
commit 63b8c1ea8b
1931 changed files with 640587 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
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),
]
});
}
}
}