mirror of
https://github.com/taigrr/gico.git
synced 2026-04-01 18:58:59 -07:00
remove references to charm fork
This commit is contained in:
5
ui/bb.go
5
ui/bb.go
@@ -5,14 +5,13 @@ import (
|
||||
"os"
|
||||
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"github.com/taigrr/gico/ui/graph"
|
||||
)
|
||||
|
||||
func InteractiveGraph() {
|
||||
m := graph.New()
|
||||
df := lipgloss.NewDoeFoot()
|
||||
m = m.UpdateDoeFoot(df)
|
||||
// df := lipgloss.NewDoeFoot()
|
||||
// m = m.UpdateDoeFoot(df)
|
||||
|
||||
p := tea.NewProgram(m)
|
||||
if err := p.Start(); err != nil {
|
||||
|
||||
@@ -2,13 +2,12 @@ package graph
|
||||
|
||||
import (
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"github.com/taigrr/gico/ui/graph/help"
|
||||
)
|
||||
|
||||
type Graph struct {
|
||||
Help help.Help
|
||||
df lipgloss.DoeFoot
|
||||
// df lipgloss.DoeFoot
|
||||
}
|
||||
|
||||
func (g Graph) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
@@ -50,8 +49,8 @@ func New() Graph {
|
||||
return g
|
||||
}
|
||||
|
||||
func (g Graph) UpdateDoeFoot(df lipgloss.DoeFoot) Graph {
|
||||
g.df = df
|
||||
g.Help = g.Help.UpdateDoeFoot(df)
|
||||
return g
|
||||
}
|
||||
//func (g Graph) UpdateDoeFoot(df lipgloss.DoeFoot) Graph {
|
||||
// g.df = df
|
||||
// g.Help = g.Help.UpdateDoeFoot(df)
|
||||
// return g
|
||||
//}
|
||||
|
||||
@@ -2,16 +2,16 @@ package help
|
||||
|
||||
import (
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
)
|
||||
|
||||
type Help struct {
|
||||
df lipgloss.DoeFoot
|
||||
// df lipgloss.DoeFoot
|
||||
}
|
||||
|
||||
func (h Help) Update(m tea.Msg) (tea.Model, tea.Cmd) {
|
||||
return h, nil
|
||||
}
|
||||
|
||||
func (h Help) Init() tea.Cmd {
|
||||
return nil
|
||||
}
|
||||
@@ -24,7 +24,7 @@ func New() Help {
|
||||
return Help{}
|
||||
}
|
||||
|
||||
func (h Help) UpdateDoeFoot(df lipgloss.DoeFoot) Help {
|
||||
h.df = df
|
||||
return h
|
||||
}
|
||||
//func (h Help) UpdateDoeFoot(df lipgloss.DoeFoot) Help {
|
||||
// h.df = df
|
||||
// return h
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user