init
This commit is contained in:
25
internal/tui/tui.go
Normal file
25
internal/tui/tui.go
Normal 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(),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user