1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-06-16 06:25:23 +00:00

Renamed windows/dialogs

This commit is contained in:
マリウス 2023-01-02 15:33:12 -05:00
parent f608100050
commit 666f3b596d
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F
4 changed files with 11 additions and 7 deletions

View File

@ -10,7 +10,7 @@ import (
"github.com/mrusme/gobbs/ui/header"
"github.com/mrusme/gobbs/ui/views/posts"
"github.com/mrusme/gobbs/ui/windowmanager"
"github.com/mrusme/gobbs/ui/windows/postdialog"
"github.com/mrusme/gobbs/ui/windows/postshow"
"github.com/mrusme/gobbs/ui/views"
@ -108,7 +108,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.ctx.Logger.Debugln("received WinOpen")
ccmds = m.wm.Open(
msg.Target,
postdialog.NewModel(m.ctx),
postshow.NewModel(m.ctx),
[4]int{3, 2, 10, 6},
&msg,
)

View File

@ -15,7 +15,7 @@ import (
"github.com/mrusme/gobbs/models/reply"
"github.com/mrusme/gobbs/ui/cmd"
"github.com/mrusme/gobbs/ui/ctx"
"github.com/mrusme/gobbs/ui/windows/postdialog"
"github.com/mrusme/gobbs/ui/windows/postshow"
)
var (
@ -148,7 +148,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
if ok {
// m.ctx.Loading = true
// cmds = append(cmds, m.loadItem(&i))
cmd := cmd.New(cmd.WinOpen, postdialog.WIN_ID, cmd.Arg{
cmd := cmd.New(cmd.WinOpen, postshow.WIN_ID, cmd.Arg{
Name: "post",
Value: &i,
})

View File

@ -1,4 +1,4 @@
package postcreatedialog
package postcreate
import (
"fmt"
@ -19,6 +19,10 @@ import (
"github.com/mrusme/gobbs/ui/helpers"
)
var (
WIN_ID = "postcreate"
)
type KeyMap struct {
Refresh key.Binding
Select key.Binding

View File

@ -1,4 +1,4 @@
package postdialog
package postshow
import (
"fmt"
@ -19,7 +19,7 @@ import (
)
var (
WIN_ID = "postShow"
WIN_ID = "postshow"
viewportStyle = lipgloss.NewStyle().
Margin(0, 0, 0, 0).