buildAdminNav returns the full admin navigation, combining hardcoded core entries with module-contributed entries.
()
| 3 | // buildAdminNav returns the full admin navigation, combining hardcoded core |
| 4 | // entries with module-contributed entries. |
| 5 | func buildAdminNav() []WebNavItem { |
| 6 | nav := []WebNavItem{ |
| 7 | { |
| 8 | Name: "Lifeforms", |
| 9 | Description: "Manage players, NPCs, conversations, pets, and races.", |
| 10 | Children: []WebNavItem{ |
| 11 | { |
| 12 | Name: "Users", |
| 13 | Target: "/admin/users", |
| 14 | Description: "Manage player accounts, roles, and permissions.", |
| 15 | Children: []WebNavItem{ |
| 16 | {Label: "View / Edit", Target: "/admin/users", Description: "Browse, search, and edit player account records."}, |
| 17 | {Label: "API Docs", Target: "/admin/users-api", Description: "REST API reference for the users endpoint."}, |
| 18 | }, |
| 19 | }, |
| 20 | { |
| 21 | Name: "Mobs", |
| 22 | Target: "/admin/mobs", |
| 23 | Description: "Define and manage non-player character templates.", |
| 24 | Children: []WebNavItem{ |
| 25 | {Label: "View / Edit", Target: "/admin/mobs", Description: "Browse, create, and edit mob definitions."}, |
| 26 | {Label: "Rankings", Target: "/admin/mob-rankings", Description: "View mob power and loot rankings across all types."}, |
| 27 | {Label: "API Docs", Target: "/admin/mobs-api", Description: "REST API reference for the mobs endpoint."}, |
| 28 | }, |
| 29 | }, |
| 30 | { |
| 31 | Name: "Conversations", |
| 32 | Target: "/admin/conversations", |
| 33 | Description: "Script dialogue sequences between NPCs.", |
| 34 | Children: []WebNavItem{ |
| 35 | {Label: "View / Edit", Target: "/admin/conversations", Description: "Browse and edit NPC conversation scripts."}, |
| 36 | {Label: "API Docs", Target: "/admin/conversations-api", Description: "REST API reference for the conversations endpoint."}, |
| 37 | }, |
| 38 | }, |
| 39 | { |
| 40 | Name: "Pets", |
| 41 | Target: "/admin/pets", |
| 42 | Description: "Configure tameable companion types and rankings.", |
| 43 | Children: []WebNavItem{ |
| 44 | {Label: "View / Edit", Target: "/admin/pets", Description: "Browse and edit pet type definitions."}, |
| 45 | {Label: "Rankings", Target: "/admin/pets-ranks", Description: "View pet power rankings across all types."}, |
| 46 | {Label: "API Docs", Target: "/admin/pets-api", Description: "REST API reference for the pets endpoint."}, |
| 47 | }, |
| 48 | }, |
| 49 | { |
| 50 | Name: "Races", |
| 51 | Target: "/admin/races", |
| 52 | Description: "Define playable and NPC races with stats and traits.", |
| 53 | Children: []WebNavItem{ |
| 54 | {Label: "View / Edit", Target: "/admin/races", Description: "Browse and edit race definitions."}, |
| 55 | {Label: "API Docs", Target: "/admin/races-api", Description: "REST API reference for the races endpoint."}, |
| 56 | }, |
| 57 | }, |
| 58 | }, |
| 59 | }, |
| 60 | |
| 61 | { |
| 62 | Name: "Content", |
no outgoing calls
no test coverage detected