This commit is contained in:
2026-04-06 01:23:10 +09:00
commit 09c78206a8
12 changed files with 439 additions and 0 deletions

25
internal/tui/tui.go Normal file
View File

@@ -0,0 +1,25 @@
package tui
import (
"filepass/internal/pages"
"filepass/internal/services"
)
type TUIInterface struct {
Services *services.ServicesStore
MenuItems []pages.MenuItem
Selected int
Servers map[string]services.Server
NoServers bool
InitErr error
Quitting bool
WindowWidth int
WindowHeight int
}
func NewTUIInterface(store *services.ServicesStore) TUIInterface {
return TUIInterface{
Services: store,
MenuItems: pages.HomeMenuItems(),
}
}