Skip to content

Commit

Permalink
fix(#392): add all of the all '/v4' tokens that weren't added for som…
Browse files Browse the repository at this point in the history
…e reason
  • Loading branch information
Omnikron13 authored and dlvhdr committed Jun 17, 2024
1 parent 16f173a commit 0c0c2f6
Show file tree
Hide file tree
Showing 47 changed files with 161 additions and 161 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"github.com/muesli/termenv"
"github.com/spf13/cobra"

"github.com/dlvhdr/gh-dash/ui"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/ui"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion config/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/go-playground/validator/v10"
"gopkg.in/yaml.v2"

"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/utils"
)

const DashDir = "gh-dash"
Expand Down
2 changes: 1 addition & 1 deletion ui/common/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package common

import (
"github.com/charmbracelet/lipgloss"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/v4/data"
)

func RenderLabels(sidebarWidth int, labels []data.Label, pillStyle lipgloss.Style) string {
Expand Down
4 changes: 2 additions & 2 deletions ui/common/labels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/charmbracelet/lipgloss"
"github.com/stretchr/testify/require"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/common"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion ui/common/repopath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/v4/ui/common"
)

var configPaths = map[string]string{
Expand Down
4 changes: 2 additions & 2 deletions ui/common/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package common
import (
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/theme"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/theme"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions ui/components/footer/footer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/config"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/ui/keys"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/config"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/keys"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type Model struct {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/inputbox/inputbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

type Model struct {
Expand Down
10 changes: 5 additions & 5 deletions ui/components/issue/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"strings"

"github.com/charmbracelet/lipgloss"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components"
"github.com/dlvhdr/gh-dash/ui/components/table"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components"
"github.com/dlvhdr/gh-dash/v4/ui/components/table"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type Issue struct {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/issuesidebar/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/charmbracelet/glamour"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type RenderedActivity struct {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/issuesidebar/assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) assign(usernames []string) tea.Cmd {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/issuesidebar/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

tea "github.com/charmbracelet/bubbletea"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) comment(body string) tea.Cmd {
Expand Down
12 changes: 6 additions & 6 deletions ui/components/issuesidebar/issuesidebar.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/ui/components/inputbox"
"github.com/dlvhdr/gh-dash/ui/components/issue"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/common"
"github.com/dlvhdr/gh-dash/v4/ui/components/inputbox"
"github.com/dlvhdr/gh-dash/v4/ui/components/issue"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
)

type Model struct {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/issuesidebar/unassign.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/issuessection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) unassign(usernames []string) tea.Cmd {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/issuessection/close.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

func (m *Model) close() tea.Cmd {
Expand Down
16 changes: 8 additions & 8 deletions ui/components/issuessection/issuessection.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (

tea "github.com/charmbracelet/bubbletea"

"github.com/dlvhdr/gh-dash/config"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/issue"
"github.com/dlvhdr/gh-dash/ui/components/section"
"github.com/dlvhdr/gh-dash/ui/components/table"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/config"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/issue"
"github.com/dlvhdr/gh-dash/v4/ui/components/section"
"github.com/dlvhdr/gh-dash/v4/ui/components/table"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

const SectionType = "issue"
Expand Down
6 changes: 3 additions & 3 deletions ui/components/issuessection/reopen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

func (m *Model) reopen() tea.Cmd {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/listviewport/listviewport.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/charmbracelet/bubbles/viewport"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type Model struct {
Expand Down
12 changes: 6 additions & 6 deletions ui/components/pr/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (

"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components"
"github.com/dlvhdr/gh-dash/ui/components/table"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components"
"github.com/dlvhdr/gh-dash/v4/ui/components/table"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type PullRequest struct {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/prompt/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package prompt
import (
"github.com/charmbracelet/bubbles/textinput"
tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

type Model struct {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/prsidebar/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/charmbracelet/glamour"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/utils"
)

type RenderedActivity struct {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/prsidebar/assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/prssection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/prssection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) assign(usernames []string) tea.Cmd {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/prsidebar/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"

"github.com/charmbracelet/lipgloss"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/v4/data"
)

func (sidebar *Model) renderChecks() string {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/prsidebar/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"time"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/prssection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/prssection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) comment(body string) tea.Cmd {
Expand Down
12 changes: 6 additions & 6 deletions ui/components/prsidebar/prsidebar.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"

"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/ui/components/inputbox"
"github.com/dlvhdr/gh-dash/ui/components/pr"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/ui/markdown"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/common"
"github.com/dlvhdr/gh-dash/v4/ui/components/inputbox"
"github.com/dlvhdr/gh-dash/v4/ui/components/pr"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
)

type Model struct {
Expand Down
8 changes: 4 additions & 4 deletions ui/components/prsidebar/unassign.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/data"
"github.com/dlvhdr/gh-dash/ui/components/prssection"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/data"
"github.com/dlvhdr/gh-dash/v4/ui/components/prssection"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) unassign(usernames []string) tea.Cmd {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/prssection/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strings"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/common"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/common"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m *Model) checkout() (tea.Cmd, error) {
Expand Down
6 changes: 3 additions & 3 deletions ui/components/prssection/close.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/utils"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
"github.com/dlvhdr/gh-dash/v4/utils"
)

func (m *Model) close() tea.Cmd {
Expand Down
2 changes: 1 addition & 1 deletion ui/components/prssection/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
)

func (m Model) diff() tea.Cmd {
Expand Down
4 changes: 2 additions & 2 deletions ui/components/prssection/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os/exec"

tea "github.com/charmbracelet/bubbletea"
"github.com/dlvhdr/gh-dash/ui/constants"
"github.com/dlvhdr/gh-dash/ui/context"
"github.com/dlvhdr/gh-dash/v4/ui/constants"
"github.com/dlvhdr/gh-dash/v4/ui/context"
)

func (m Model) merge() tea.Cmd {
Expand Down
Loading

0 comments on commit 0c0c2f6

Please sign in to comment.