update:wip

This commit is contained in:
2026-04-06 01:39:29 +09:00
parent 09c78206a8
commit ed19e0ba4e
10 changed files with 475 additions and 58 deletions

View File

@@ -0,0 +1,3 @@
package pages
type AddServerPageMsg struct{}

12
internal/pages/config.go Normal file
View File

@@ -0,0 +1,12 @@
package pages
type ConfigPageMsg struct{}
func ConfigMenuItems() []MenuItem {
return []MenuItem{
{Label: "Add Server", Key: "add"},
{Label: "Edit Server", Key: "edit", RequiresServers: true},
{Label: "Remove Server", Key: "remove", RequiresServers: true},
{Label: "Back", Key: "back"},
}
}

View File

@@ -3,13 +3,14 @@ package pages
type HomePageMsg struct{}
type MenuItem struct {
Label string
Key string
Label string
Key string
RequiresServers bool
}
func HomeMenuItems() []MenuItem {
return []MenuItem{
{Label: "Select Server", Key: "server"},
{Label: "Select Server", Key: "server", RequiresServers: true},
{Label: "Config", Key: "config"},
{Label: "Exit", Key: "exit"},
}