Browse Source

Merge pull request #84 from Timmoth/blazor-wasm-demo

Blazor wasm demo
Tim Jones 2 months ago
parent
commit
e8c3f43e51
28 changed files with 213 additions and 2483 deletions
  1. 0 1376
      COMMANDS.md
  2. 169 1063
      Commands.md
  3. 4 4
      RackPeek.Web.Viewer/Pages/Home.razor
  4. 1 1
      Shared.Rcl/AccessPoints/AccessPointCardComponent.razor
  5. 1 1
      Shared.Rcl/AccessPoints/AccessPointsListComponent.razor
  6. 2 2
      Shared.Rcl/Components/HardwareDependencyTreeComponent.razor
  7. 1 1
      Shared.Rcl/Desktops/DesktopCardComponent.razor
  8. 1 1
      Shared.Rcl/Desktops/DesktopsListComponent.razor
  9. 1 1
      Shared.Rcl/Firewalls/FirewallCardComponent.razor
  10. 1 1
      Shared.Rcl/Firewalls/FirewallListComponent.razor
  11. 11 11
      Shared.Rcl/Hardware/HardwareTreePage.razor
  12. 1 1
      Shared.Rcl/Laptops/LaptopCardComponent.razor
  13. 1 1
      Shared.Rcl/Laptops/LaptopsListComponent.razor
  14. 1 1
      Shared.Rcl/Routers/RouterCardComponent.razor
  15. 1 1
      Shared.Rcl/Routers/RouterListComponent.razor
  16. 1 1
      Shared.Rcl/Servers/ServerCardComponent.razor
  17. 1 1
      Shared.Rcl/Servers/ServersListComponent.razor
  18. 1 1
      Shared.Rcl/Services/AddServiceComponent.razor
  19. 3 3
      Shared.Rcl/Services/ServiceCardComponent.razor
  20. 1 1
      Shared.Rcl/Services/ServicesListComponent.razor
  21. 1 1
      Shared.Rcl/Switches/SwitchCardComponent.razor
  22. 1 1
      Shared.Rcl/Switches/SwitchListComponent.razor
  23. 1 1
      Shared.Rcl/Systems/AddSystemComponent.razor
  24. 3 3
      Shared.Rcl/Systems/SystemCardComponent.razor
  25. 1 1
      Shared.Rcl/Systems/SystemDependencyTreeComponent.razor
  26. 1 1
      Shared.Rcl/Systems/SystemsListComponent.razor
  27. 1 1
      Shared.Rcl/Ups/UpsCardComponent.razor
  28. 1 1
      Shared.Rcl/Ups/UpsListComponent.razor

+ 0 - 1376
COMMANDS.md

@@ -1,1376 +0,0 @@
-# CLI Commands
-
-## `rpk`
-```
-USAGE:
-    rpk [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    switches        Manage switches                  
-    systems         Manage systems                   
-    accesspoints    Manage access points             
-    ups             Manage UPS units                 
-    desktops                                         
-    services        Manage services                  
-    ap              Show access point hardware report
-    desktops        Show desktop hardware report     
-    ups             Show UPS hardware report         
-    servers         Manage servers                   
-```
-
-## `rpk switches`
-```
-DESCRIPTION:
-Manage switches
-
-USAGE:
-    rpk switches [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    summary            Show switch hardware report             
-    add <name>         Add a new switch                        
-    list               List switches                           
-    get <name>         Get a switches by name                  
-    describe <name>    Show detailed information about a switch
-    set <name>         Update switch properties                
-    del <name>         Delete a switch                         
-```
-
-## `rpk switches summary`
-```
-DESCRIPTION:
-Show switch hardware report
-
-USAGE:
-    rpk switches summary [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk switches add`
-```
-DESCRIPTION:
-Add a new switch
-
-USAGE:
-    rpk switches add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk switches list`
-```
-DESCRIPTION:
-List switches
-
-USAGE:
-    rpk switches list [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk switches get`
-```
-DESCRIPTION:
-Get a switches by name
-
-USAGE:
-    rpk switches get <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk switches describe`
-```
-DESCRIPTION:
-Show detailed information about a switch
-
-USAGE:
-    rpk switches describe <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk switches set`
-```
-DESCRIPTION:
-Update switch properties
-
-USAGE:
-    rpk switches set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help       Prints help information
-        --Model                             
-        --managed                           
-        --poe                               
-```
-
-## `rpk switches del`
-```
-DESCRIPTION:
-Delete a switch
-
-USAGE:
-    rpk switches del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk systems`
-```
-DESCRIPTION:
-Manage systems
-
-USAGE:
-    rpk systems [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    summary            Show system report                      
-    add <name>         Add a new system                        
-    list               List systems                            
-    get <name>         Get a system by name                    
-    describe <name>    Show detailed information about a system
-    set <name>         Update system properties                
-    del <name>         Delete a system                         
-```
-
-## `rpk systems summary`
-```
-DESCRIPTION:
-Show system report
-
-USAGE:
-    rpk systems summary [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk systems add`
-```
-DESCRIPTION:
-Add a new system
-
-USAGE:
-    rpk systems add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk systems list`
-```
-DESCRIPTION:
-List systems
-
-USAGE:
-    rpk systems list [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk systems get`
-```
-DESCRIPTION:
-Get a system by name
-
-USAGE:
-    rpk systems get <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk systems describe`
-```
-DESCRIPTION:
-Show detailed information about a system
-
-USAGE:
-    rpk systems describe <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk systems set`
-```
-DESCRIPTION:
-Update system properties
-
-USAGE:
-    rpk systems set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help       Prints help information
-        --type                              
-        --os                                
-        --cores                             
-        --ram                               
-        --runs-on                           
-```
-
-## `rpk systems del`
-```
-DESCRIPTION:
-Delete a system
-
-USAGE:
-    rpk systems del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk accesspoints`
-```
-DESCRIPTION:
-Manage access points
-
-USAGE:
-    rpk accesspoints [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    summary            Show access point hardware report              
-    add <name>         Add a new access point                         
-    list               List access points                             
-    get <name>         Get an access point by name                    
-    describe <name>    Show detailed information about an access point
-    set <name>         Update access point properties                 
-    del <name>         Delete an access point                         
-```
-
-## `rpk accesspoints summary`
-```
-DESCRIPTION:
-Show access point hardware report
-
-USAGE:
-    rpk accesspoints summary [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk accesspoints add`
-```
-DESCRIPTION:
-Add a new access point
-
-USAGE:
-    rpk accesspoints add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>    The access point name
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk accesspoints list`
-```
-DESCRIPTION:
-List access points
-
-USAGE:
-    rpk accesspoints list [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk accesspoints get`
-```
-DESCRIPTION:
-Get an access point by name
-
-USAGE:
-    rpk accesspoints get <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>    The access point name
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk accesspoints describe`
-```
-DESCRIPTION:
-Show detailed information about an access point
-
-USAGE:
-    rpk accesspoints describe <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>    The access point name
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk accesspoints set`
-```
-DESCRIPTION:
-Update access point properties
-
-USAGE:
-    rpk accesspoints set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help     Prints help information            
-        --model    The access point model name        
-        --speed    The speed of the access point in Gb
-```
-
-## `rpk accesspoints del`
-```
-DESCRIPTION:
-Delete an access point
-
-USAGE:
-    rpk accesspoints del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>    The access point name
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk ups`
-```
-DESCRIPTION:
-Manage UPS units
-
-USAGE:
-    rpk ups [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    summary            Show UPS hardware report             
-    add <name>         Add a new UPS                        
-    list               List UPS units                       
-    get <name>         Get a UPS by name                    
-    describe <name>    Show detailed information about a UPS
-    set <name>         Update UPS properties                
-    del <name>         Delete a UPS                         
-```
-
-## `rpk ups summary`
-```
-DESCRIPTION:
-Show UPS hardware report
-
-USAGE:
-    rpk ups summary [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk ups add`
-```
-DESCRIPTION:
-Add a new UPS
-
-USAGE:
-    rpk ups add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk ups list`
-```
-DESCRIPTION:
-List UPS units
-
-USAGE:
-    rpk ups list [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk ups get`
-```
-DESCRIPTION:
-Get a UPS by name
-
-USAGE:
-    rpk ups get <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk ups describe`
-```
-DESCRIPTION:
-Show detailed information about a UPS
-
-USAGE:
-    rpk ups describe <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk ups set`
-```
-DESCRIPTION:
-Update UPS properties
-
-USAGE:
-    rpk ups set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help     Prints help information
-        --model                           
-        --va                              
-```
-
-## `rpk ups del`
-```
-DESCRIPTION:
-Delete a UPS
-
-USAGE:
-    rpk ups del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk desktops`
-```
-USAGE:
-    rpk desktops [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    add <name>          
-    list                
-    get <name>          
-    describe <name>     
-    set <name>          
-    del <name>          
-    cpu                 
-    drive               
-    gpu                 
-    nic                 
-```
-
-## `rpk desktops add`
-```
-USAGE:
-    rpk desktops add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk desktops list`
-```
-USAGE:
-    rpk desktops list [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk desktops get`
-```
-USAGE:
-    rpk desktops get <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk desktops describe`
-```
-USAGE:
-    rpk desktops describe <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk desktops set`
-```
-USAGE:
-    rpk desktops set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help     Prints help information
-        --model                           
-```
-
-## `rpk desktops del`
-```
-USAGE:
-    rpk desktops del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk desktops cpu`
-```
-USAGE:
-    rpk desktops cpu [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    add <desktop>             
-    set <desktop> <index>     
-    del <desktop> <index>     
-```
-
-## `rpk desktops cpu add`
-```
-USAGE:
-    rpk desktops cpu add <desktop> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The desktop name
-
-OPTIONS:
-    -h, --help       Prints help information  
-        --model      The model name           
-        --cores      The number of cpu cores  
-        --threads    The number of cpu threads
-```
-
-## `rpk desktops cpu set`
-```
-USAGE:
-    rpk desktops cpu set <desktop> <index> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The desktop name            
-    <index>      The index of the desktop cpu
-
-OPTIONS:
-    -h, --help       Prints help information  
-        --model      The cpu model            
-        --cores      The number of cpu cores  
-        --threads    The number of cpu threads
-```
-
-## `rpk desktops cpu del`
-```
-USAGE:
-    rpk desktops cpu del <desktop> <index> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The name of the desktop               
-    <index>      The index of the desktop cpu to remove
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk desktops drive`
-```
-USAGE:
-    rpk desktops drive [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    add <desktop>             
-    set <desktop> <index>     
-    del <desktop> <index>     
-```
-
-## `rpk desktops drive add`
-```
-USAGE:
-    rpk desktops drive add <desktop> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The name of the desktop
-
-OPTIONS:
-    -h, --help    Prints help information     
-        --type    The drive type e.g hdd / ssd
-        --size    The drive capacity in Gb    
-```
-
-## `rpk desktops drive set`
-```
-USAGE:
-    rpk desktops drive set <desktop> <index> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The desktop name         
-    <index>      The drive index to update
-
-OPTIONS:
-    -h, --help    Prints help information     
-        --type    The drive type e.g hdd / ssd
-        --size    The drive capacity in Gb    
-```
-
-## `rpk desktops drive del`
-```
-USAGE:
-    rpk desktops drive del <desktop> <index> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The name of the desktop         
-    <index>      The index of the drive to remove
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk desktops gpu`
-```
-USAGE:
-    rpk desktops gpu [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    add <desktop>             
-    set <desktop> <index>     
-    del <desktop> <index>     
-```
-
-## `rpk desktops gpu add`
-```
-USAGE:
-    rpk desktops gpu add <desktop> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The name of the desktop
-
-OPTIONS:
-    -h, --help     Prints help information     
-        --model    The Gpu model               
-        --vram     The amount of gpu vram in Gb
-```
-
-## `rpk desktops gpu set`
-```
-USAGE:
-    rpk desktops gpu set <desktop> <index> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The desktop name              
-    <index>      The index of the gpu to update
-
-OPTIONS:
-    -h, --help     Prints help information     
-        --model    The gpu model name          
-        --vram     The amount of gpu vram in Gb
-```
-
-## `rpk desktops gpu del`
-```
-USAGE:
-    rpk desktops gpu del <desktop> <index> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The desktop name              
-    <index>      The index of the Gpu to remove
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk desktops nic`
-```
-USAGE:
-    rpk desktops nic [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    add <desktop>             
-    set <desktop> <index>     
-    del <desktop> <index>     
-```
-
-## `rpk desktops nic add`
-```
-USAGE:
-    rpk desktops nic add <desktop> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The desktop name
-
-OPTIONS:
-    -h, --help     Prints help information          
-        --type     The nic port type e.g rj45 / sfp+
-        --speed    The port speed                   
-        --ports    The number of ports              
-```
-
-## `rpk desktops nic set`
-```
-USAGE:
-    rpk desktops nic set <desktop> <index> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The desktop name              
-    <index>      The index of the nic to remove
-
-OPTIONS:
-    -h, --help     Prints help information          
-        --type     The nic port type e.g rj45 / sfp+
-        --speed    The speed of the nic in Gb/s     
-        --ports    The number of ports              
-```
-
-## `rpk desktops nic del`
-```
-USAGE:
-    rpk desktops nic del <desktop> <index> [OPTIONS]
-
-ARGUMENTS:
-    <desktop>    The desktop name              
-    <index>      The index of the nic to remove
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk services`
-```
-DESCRIPTION:
-Manage services
-
-USAGE:
-    rpk services [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    summary            Show service summary report              
-    add <name>         Add a new service                        
-    list               List all services                        
-    get <name>         Get a service by name                    
-    describe <name>    Show detailed information about a service
-    set <name>         Update service properties                
-    del <name>         Delete a service                         
-```
-
-## `rpk services summary`
-```
-DESCRIPTION:
-Show service summary report
-
-USAGE:
-    rpk services summary [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk services add`
-```
-DESCRIPTION:
-Add a new service
-
-USAGE:
-    rpk services add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>    The name of the service
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk services list`
-```
-DESCRIPTION:
-List all services
-
-USAGE:
-    rpk services list [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk services get`
-```
-DESCRIPTION:
-Get a service by name
-
-USAGE:
-    rpk services get <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>    The name of the service
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk services describe`
-```
-DESCRIPTION:
-Show detailed information about a service
-
-USAGE:
-    rpk services describe <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>    The name of the service
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk services set`
-```
-DESCRIPTION:
-Update service properties
-
-USAGE:
-    rpk services set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help        Prints help information             
-        --ip          The ip address of the service       
-        --port        The port the service is running on  
-        --protocol    The service protocol                
-        --url         The service URL                     
-        --runs-on     The system the service is running on
-```
-
-## `rpk services del`
-```
-DESCRIPTION:
-Delete a service
-
-USAGE:
-    rpk services del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>    The name of the service
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk ap`
-```
-DESCRIPTION:
-Show access point hardware report
-
-USAGE:
-    rpk ap [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk servers`
-```
-DESCRIPTION:
-Manage servers
-
-USAGE:
-    rpk servers [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    summary            Show a summarized hardware report for all servers
-    add <name>         Add a new server                                 
-    get <name>         List servers or get a server by name             
-    describe <name>    Show detailed information about a server         
-    set <name>         Update server properties                         
-    del <name>         Delete a server                                  
-    tree <name>        Displays a dependency tree for the server        
-    cpu                Manage server CPUs                               
-    drive              Manage server drives                             
-    gpu                Manage server GPUs                               
-    nic                Manage server NICs                               
-```
-
-## `rpk servers summary`
-```
-DESCRIPTION:
-Show a summarized hardware report for all servers
-
-USAGE:
-    rpk servers summary [OPTIONS]
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk servers add`
-```
-DESCRIPTION:
-Add a new server
-
-USAGE:
-    rpk servers add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk servers get`
-```
-DESCRIPTION:
-List servers or get a server by name
-
-USAGE:
-    rpk servers get <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk servers describe`
-```
-DESCRIPTION:
-Show detailed information about a server
-
-USAGE:
-    rpk servers describe <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk servers set`
-```
-DESCRIPTION:
-Update server properties
-
-USAGE:
-    rpk servers set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help        Prints help information
-        --ram <GB>                           
-        --ipmi                               
-```
-
-## `rpk servers del`
-```
-DESCRIPTION:
-Delete a server
-
-USAGE:
-    rpk servers del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk servers tree`
-```
-DESCRIPTION:
-Displays a dependency tree for the server
-
-USAGE:
-    rpk servers tree <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help    Prints help information
-```
-
-## `rpk servers cpu`
-```
-DESCRIPTION:
-Manage server CPUs
-
-USAGE:
-    rpk servers cpu [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    add <name>    Add a CPU to a server     
-    set <name>    Update a CPU on a server  
-    del <name>    Remove a CPU from a server
-```
-
-## `rpk servers cpu add`
-```
-DESCRIPTION:
-Add a CPU to a server
-
-USAGE:
-    rpk servers cpu add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help                 Prints help information
-        --model <MODEL>                               
-        --cores <CORES>                               
-        --threads <THREADS>                           
-```
-
-## `rpk servers cpu set`
-```
-DESCRIPTION:
-Update a CPU on a server
-
-USAGE:
-    rpk servers cpu set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help                 Prints help information
-        --index <INDEX>                               
-        --model <MODEL>                               
-        --cores <CORES>                               
-        --threads <THREADS>                           
-```
-
-## `rpk servers cpu del`
-```
-DESCRIPTION:
-Remove a CPU from a server
-
-USAGE:
-    rpk servers cpu del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help             Prints help information
-        --index <INDEX>                           
-```
-
-## `rpk servers drive`
-```
-DESCRIPTION:
-Manage server drives
-
-USAGE:
-    rpk servers drive [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    add <name>    Add a drive to a server     
-    set <name>    Update a drive on a server  
-    del <name>    Remove a drive from a server
-```
-
-## `rpk servers drive add`
-```
-DESCRIPTION:
-Add a drive to a server
-
-USAGE:
-    rpk servers drive add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help           Prints help information
-        --type <TYPE>                           
-        --size <SIZE>                           
-```
-
-## `rpk servers drive set`
-```
-DESCRIPTION:
-Update a drive on a server
-
-USAGE:
-    rpk servers drive set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help             Prints help information
-        --index <INDEX>                           
-        --type <TYPE>                             
-        --size <SIZE>                             
-```
-
-## `rpk servers drive del`
-```
-DESCRIPTION:
-Remove a drive from a server
-
-USAGE:
-    rpk servers drive del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help             Prints help information
-        --index <INDEX>                           
-```
-
-## `rpk servers gpu`
-```
-DESCRIPTION:
-Manage server GPUs
-
-USAGE:
-    rpk servers gpu [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    add <name>    Add a GPU to a server     
-    set <name>    Update a GPU on a server  
-    del <name>    Remove a GPU from a server
-```
-
-## `rpk servers gpu add`
-```
-DESCRIPTION:
-Add a GPU to a server
-
-USAGE:
-    rpk servers gpu add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help             Prints help information
-        --model <MODEL>                           
-        --vram <VRAM>                             
-```
-
-## `rpk servers gpu set`
-```
-DESCRIPTION:
-Update a GPU on a server
-
-USAGE:
-    rpk servers gpu set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help             Prints help information
-        --index <INDEX>                           
-        --model <MODEL>                           
-        --vram <VRAM>                             
-```
-
-## `rpk servers gpu del`
-```
-DESCRIPTION:
-Remove a GPU from a server
-
-USAGE:
-    rpk servers gpu del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help             Prints help information
-        --index <INDEX>                           
-```
-
-## `rpk servers nic`
-```
-DESCRIPTION:
-Manage server NICs
-
-USAGE:
-    rpk servers nic [OPTIONS] <COMMAND>
-
-OPTIONS:
-    -h, --help    Prints help information
-
-COMMANDS:
-    add <name>    Add a NIC to a server     
-    set <name>    Update a NIC on a server  
-    del <name>    Remove a NIC from a server
-```
-
-## `rpk servers nic add`
-```
-DESCRIPTION:
-Add a NIC to a server
-
-USAGE:
-    rpk servers nic add <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help             Prints help information
-        --type <TYPE>                             
-        --speed <SPEED>                           
-        --ports <PORTS>                           
-```
-
-## `rpk servers nic set`
-```
-DESCRIPTION:
-Update a NIC on a server
-
-USAGE:
-    rpk servers nic set <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help             Prints help information
-        --index <INDEX>                           
-        --type <TYPE>                             
-        --speed <SPEED>                           
-        --ports <PORTS>                           
-```
-
-## `rpk servers nic del`
-```
-DESCRIPTION:
-Remove a NIC from a server
-
-USAGE:
-    rpk servers nic del <name> [OPTIONS]
-
-ARGUMENTS:
-    <name>     
-
-OPTIONS:
-    -h, --help             Prints help information
-        --index <INDEX>                           
-```
-

File diff suppressed because it is too large
+ 169 - 1063
Commands.md


+ 4 - 4
RackPeek.Web.Viewer/Pages/Home.razor

@@ -27,17 +27,17 @@
                 <div class="grid grid-cols-2 gap-y-2 ">
 
                     <div class="hover:text-emerald-300">
-                        <NavLink href="@("/hardware/tree")">Hardware</NavLink>
+                        <NavLink href="@("hardware/tree")">Hardware</NavLink>
                     </div>
                     <div class="text-right">@_hardware!.TotalHardware</div>
 
                     <div class="hover:text-emerald-300">
-                        <NavLink href="@("/systems/list")">Systems</NavLink>
+                        <NavLink href="@("systems/list")">Systems</NavLink>
                     </div>
                     <div class="text-right">@_system!.TotalSystems</div>
 
                     <div class="hover:text-emerald-300">
-                        <NavLink href="@("/servers/list")">Services</NavLink>
+                        <NavLink href="@("servers/list")">Services</NavLink>
                     </div>
                     <div class="text-right">@_service!.TotalServices</div>
                 </div>
@@ -64,7 +64,7 @@
                             @foreach (var (kind, count) in _hardware.HardwareByKind.OrderByDescending(x => x.Value))
                             {
                                 var pluralKind = Resource.KindToPlural(kind);
-                                <NavLink href="@($"/{pluralKind}/list")" class="block">
+                                <NavLink href="@($"{pluralKind}/list")" class="block">
                                     <li class="text-zinc-500 hover:text-emerald-300">
                                         └─ @pluralKind (@count)
                                     </li>

+ 1 - 1
Shared.Rcl/AccessPoints/AccessPointCardComponent.razor

@@ -5,7 +5,7 @@
 <div class="border border-zinc-800 rounded p-4 bg-zinc-900">
     <div class="flex justify-between items-center mb-3">
         <div class="text-zinc-100 hover:text-emerald-300">
-            <NavLink href="@($"/resources/hardware/{AccessPoint.Name}")" class="block">
+            <NavLink href="@($"resources/hardware/{AccessPoint.Name}")" class="block">
 
                 @AccessPoint.Name
             </NavLink>

+ 1 - 1
Shared.Rcl/AccessPoints/AccessPointsListComponent.razor

@@ -38,7 +38,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/hardware/{serverName}");
+        Nav.NavigateTo($"resources/hardware/{serverName}");
         return Task.CompletedTask;
     }
 

+ 2 - 2
Shared.Rcl/Components/HardwareDependencyTreeComponent.razor

@@ -17,7 +17,7 @@ else
                 <div class="space-y-2">
 
                     <!-- System -->
-                    <NavLink href="@($"/resources/systems/{systemTree.System.Name}")" class="block">
+                    <NavLink href="@($"resources/systems/{systemTree.System.Name}")" class="block">
                         <div class="border border-zinc-800 rounded bg-zinc-900 p-3">
                             <div class="text-zinc-100">
                                 @systemTree.System.Name
@@ -35,7 +35,7 @@ else
                             @foreach (var service in systemTree.Services)
                             {
                                 var url = service.NetworkString();
-                                <NavLink href="@($"/resources/services/{service.Name}")" class="block">
+                                <NavLink href="@($"resources/services/{service.Name}")" class="block">
                                     <div class="border border-zinc-800 rounded bg-zinc-900 p-2 hover:border-zinc-700">
 
                                         <div class="text-zinc-200 text-sm">

+ 1 - 1
Shared.Rcl/Desktops/DesktopCardComponent.razor

@@ -28,7 +28,7 @@
 <div class="border border-zinc-800 rounded p-4 bg-zinc-900">
     <div class="flex justify-between items-center mb-3">
         <div class="text-zinc-100 hover:text-emerald-300">
-            <NavLink href="@($"/resources/hardware/{Desktop.Name}")" class="block">
+            <NavLink href="@($"resources/hardware/{Desktop.Name}")" class="block">
 
                 @Desktop.Name
             </NavLink>

+ 1 - 1
Shared.Rcl/Desktops/DesktopsListComponent.razor

@@ -38,7 +38,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/hardware/{serverName}");
+        Nav.NavigateTo($"resources/hardware/{serverName}");
         return Task.CompletedTask;
     }
 

+ 1 - 1
Shared.Rcl/Firewalls/FirewallCardComponent.razor

@@ -12,7 +12,7 @@
     <div class="flex justify-between items-center mb-3">
 
         <div class="text-zinc-100 hover:text-emerald-300">
-            <NavLink href="@($"/resources/hardware/{Firewall.Name}")" class="block">
+            <NavLink href="@($"resources/hardware/{Firewall.Name}")" class="block">
 
                 @Firewall.Name
             </NavLink>

+ 1 - 1
Shared.Rcl/Firewalls/FirewallListComponent.razor

@@ -38,7 +38,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/hardware/{serverName}");
+        Nav.NavigateTo($"resources/hardware/{serverName}");
         return Task.CompletedTask;
     }
 

+ 11 - 11
Shared.Rcl/Hardware/HardwareTreePage.razor

@@ -9,28 +9,28 @@
 <div class="min-h-screen bg-zinc-950 text-zinc-200 font-mono p-6">
 
     <nav class="space-x-6 text-sm mb-4">
-        <NavLink href="/servers/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+        <NavLink href="servers/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
             Servers
         </NavLink>
-        <NavLink href="/switches/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+        <NavLink href="switches/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
             Switches
         </NavLink>
-        <NavLink href="/firewalls/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+        <NavLink href="firewalls/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
             Firewalls
         </NavLink>
-        <NavLink href="/routers/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+        <NavLink href="routers/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
             Routers
         </NavLink>
-        <NavLink href="/accesspoints/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+        <NavLink href="accesspoints/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
             AccessPoints
         </NavLink>
-        <NavLink href="/ups/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+        <NavLink href="ups/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
             Ups
         </NavLink>
-        <NavLink href="/desktops/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+        <NavLink href="desktops/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
             Desktops
         </NavLink>
-        <NavLink href="/laptops/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
+        <NavLink href="laptops/list" class="hover:text-emerald-400" activeClass="text-emerald-400 font-semibold">
             Laptops
         </NavLink>
     </nav>
@@ -62,7 +62,7 @@
                     {
                         <li>
                             <!-- Hardware -->
-                            <NavLink href="@($"/resources/hardware/{hardware.HardwareName}")" class="block">
+                            <NavLink href="@($"resources/hardware/{hardware.HardwareName}")" class="block">
 
                                 @if (hardware.Systems.Any())
                                 {
@@ -86,7 +86,7 @@
                                     {
                                         <li>
                                             <!-- System -->
-                                            <NavLink href="@($"/resources/systems/{system.SystemName}")" class="block">
+                                            <NavLink href="@($"resources/systems/{system.SystemName}")" class="block">
                                                 @if (system.Services.Any())
                                                 {
                                                     <div class="text-zinc-300 hover:text-emerald-300">
@@ -107,7 +107,7 @@
                                                 <ul class="ml-4 mt-1 space-y-1">
                                                     @foreach (var service in system.Services.OrderBy(s => s))
                                                     {
-                                                        <NavLink href="@($"/resources/services/{service}")"
+                                                        <NavLink href="@($"resources/services/{service}")"
                                                                  class="block hover:text-emerald-300">
 
                                                             <li class="text-zinc-500 hover:text-emerald-300">

+ 1 - 1
Shared.Rcl/Laptops/LaptopCardComponent.razor

@@ -22,7 +22,7 @@
 <div class="border border-zinc-800 rounded p-4 bg-zinc-900">
     <div class="flex justify-between items-center mb-3">
         <div class="text-zinc-100 hover:text-emerald-300">
-            <NavLink href="@($"/resources/hardware/{Laptop.Name}")" class="block">
+            <NavLink href="@($"resources/hardware/{Laptop.Name}")" class="block">
 
                 @Laptop.Name
             </NavLink>

+ 1 - 1
Shared.Rcl/Laptops/LaptopsListComponent.razor

@@ -37,7 +37,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/hardware/{serverName}");
+        Nav.NavigateTo($"resources/hardware/{serverName}");
         return Task.CompletedTask;
     }
 

+ 1 - 1
Shared.Rcl/Routers/RouterCardComponent.razor

@@ -12,7 +12,7 @@
 <div class="border border-zinc-800 rounded p-4 bg-zinc-900">
     <div class="flex justify-between items-center mb-3">
         <div class="text-zinc-100 hover:text-emerald-300">
-            <NavLink href="@($"/resources/hardware/{Router.Name}")" class="block">
+            <NavLink href="@($"resources/hardware/{Router.Name}")" class="block">
                 @Router.Name
             </NavLink>
         </div>

+ 1 - 1
Shared.Rcl/Routers/RouterListComponent.razor

@@ -38,7 +38,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/hardware/{serverName}");
+        Nav.NavigateTo($"resources/hardware/{serverName}");
         return Task.CompletedTask;
     }
 

+ 1 - 1
Shared.Rcl/Servers/ServerCardComponent.razor

@@ -28,7 +28,7 @@
 <div class="border border-zinc-800 rounded p-4 bg-zinc-900">
     <div class="flex justify-between items-center mb-3">
         <div class="text-zinc-100 hover:text-emerald-300">
-            <NavLink href="@($"/resources/hardware/{Server.Name}")" class="block">
+            <NavLink href="@($"resources/hardware/{Server.Name}")" class="block">
 
                 @Server.Name
             </NavLink>

+ 1 - 1
Shared.Rcl/Servers/ServersListComponent.razor

@@ -38,7 +38,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/hardware/{serverName}");
+        Nav.NavigateTo($"resources/hardware/{serverName}");
         return Task.CompletedTask;
     }
 

+ 1 - 1
Shared.Rcl/Services/AddServiceComponent.razor

@@ -57,7 +57,7 @@
             _name = string.Empty;
 
             await OnCreated.InvokeAsync(name);
-            Nav.NavigateTo($"/resources/services/{name}");
+            Nav.NavigateTo($"resources/services/{name}");
         }
         catch (Exception ex)
         {

+ 3 - 3
Shared.Rcl/Services/ServiceCardComponent.razor

@@ -8,7 +8,7 @@
 
 <div class="border border-zinc-800 rounded p-4 bg-zinc-900">
     <div class="flex justify-between items-center mb-3">
-        <NavLink href="@($"/resources/services/{Service.Name}")" class="block">
+        <NavLink href="@($"resources/services/{Service.Name}")" class="block">
 
             <div class="text-zinc-100 hover:text-emerald-300">
                 @Service.Name
@@ -138,7 +138,7 @@
             }
             else if (!string.IsNullOrWhiteSpace(Service.RunsOn))
             {
-                <NavLink href="@($"/resources/systems/{Service.RunsOn}")"
+                <NavLink href="@($"resources/systems/{Service.RunsOn}")"
                          class="text-emerald-400">
                     @Service.RunsOn
                 </NavLink>
@@ -188,7 +188,7 @@
     {
         await CloneServiceUseCase.ExecuteAsync(Service.Name, newName);
 
-        Nav.NavigateTo($"/resources/services/{newName}");
+        Nav.NavigateTo($"resources/services/{newName}");
     }
 
 }

+ 1 - 1
Shared.Rcl/Services/ServicesListComponent.razor

@@ -53,7 +53,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/services/{serverName}");
+        Nav.NavigateTo($"resources/services/{serverName}");
         return Task.CompletedTask;
     }
 

+ 1 - 1
Shared.Rcl/Switches/SwitchCardComponent.razor

@@ -11,7 +11,7 @@
 <div class="border border-zinc-800 rounded p-4 bg-zinc-900">
     <div class="flex justify-between items-center mb-3">
         <div class="text-zinc-100 hover:text-emerald-300">
-            <NavLink href="@($"/resources/hardware/{Switch.Name}")" class="block">
+            <NavLink href="@($"resources/hardware/{Switch.Name}")" class="block">
 
                 @Switch.Name
             </NavLink>

+ 1 - 1
Shared.Rcl/Switches/SwitchListComponent.razor

@@ -39,7 +39,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/hardware/{serverName}");
+        Nav.NavigateTo($"resources/hardware/{serverName}");
         return Task.CompletedTask;
     }
 

+ 1 - 1
Shared.Rcl/Systems/AddSystemComponent.razor

@@ -56,7 +56,7 @@
             _name = string.Empty;
 
             await OnCreated.InvokeAsync(name);
-            Nav.NavigateTo($"/resources/systems/{name}");
+            Nav.NavigateTo($"resources/systems/{name}");
         }
         catch (Exception ex)
         {

+ 3 - 3
Shared.Rcl/Systems/SystemCardComponent.razor

@@ -11,7 +11,7 @@
 @inject NavigationManager Nav
 <div class="border border-zinc-800 rounded p-4 bg-zinc-900">
     <div class="flex justify-between items-center mb-3">
-        <NavLink href="@($"/resources/systems/{System.Name}")" class="block">
+        <NavLink href="@($"resources/systems/{System.Name}")" class="block">
 
             <div class="text-zinc-100 hover:text-emerald-300">
                 @System.Name
@@ -144,7 +144,7 @@
             }
             else if (!string.IsNullOrWhiteSpace(System.RunsOn))
             {
-                <NavLink href="@($"/resources/hardware/{System.RunsOn}")"
+                <NavLink href="@($"resources/hardware/{System.RunsOn}")"
                          class="text-emerald-400 text-sm">
                     @System.RunsOn
                 </NavLink>
@@ -349,7 +349,7 @@
     {
         await CloneSystemUseCase.ExecuteAsync(System.Name, newName);
 
-        Nav.NavigateTo($"/resources/systems/{newName}");
+        Nav.NavigateTo($"resources/systems/{newName}");
     }
 
 }

+ 1 - 1
Shared.Rcl/Systems/SystemDependencyTreeComponent.razor

@@ -15,7 +15,7 @@ else
             @foreach (var service in Tree.Services)
             {
                 var url = service.NetworkString();
-                <NavLink href="@($"/resources/services/{service.Name}")" class="block">
+                <NavLink href="@($"resources/services/{service.Name}")" class="block">
                     <div class="border border-zinc-800 rounded bg-zinc-900 p-2 hover:border-zinc-700">
 
                         <div class="text-zinc-200 text-sm">

+ 1 - 1
Shared.Rcl/Systems/SystemsListComponent.razor

@@ -52,7 +52,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/systems/{serverName}");
+        Nav.NavigateTo($"resources/systems/{serverName}");
         return Task.CompletedTask;
     }
 

+ 1 - 1
Shared.Rcl/Ups/UpsCardComponent.razor

@@ -9,7 +9,7 @@
     <div class="flex justify-between items-center mb-3">
 
         <div class="text-zinc-100 hover:text-emerald-300">
-            <NavLink href="@($"/resources/hardware/{Ups.Name}")" class="block">
+            <NavLink href="@($"resources/hardware/{Ups.Name}")" class="block">
                 @Ups.Name
             </NavLink>
         </div>

+ 1 - 1
Shared.Rcl/Ups/UpsListComponent.razor

@@ -38,7 +38,7 @@
 
     private Task NavigateToNewResource(string serverName)
     {
-        Nav.NavigateTo($"/resources/hardware/{serverName}");
+        Nav.NavigateTo($"resources/hardware/{serverName}");
         return Task.CompletedTask;
     }
 

Some files were not shown because too many files changed in this diff