Skip to content

Commit

Permalink
refactor: move the models to the model folder
Browse files Browse the repository at this point in the history
  • Loading branch information
TypicalAM committed Jan 6, 2023
1 parent c803c2b commit 285bd59
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion internal/backend/cache/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/TypicalAM/goread/internal/backend"
"github.com/TypicalAM/goread/internal/model/simplelist"
"github.com/TypicalAM/goread/internal/rss"
"github.com/TypicalAM/goread/internal/simplelist"
"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/backend/web/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package web

import (
"github.com/TypicalAM/goread/internal/backend"
"github.com/TypicalAM/goread/internal/model/simplelist"
"github.com/TypicalAM/goread/internal/rss"
"github.com/TypicalAM/goread/internal/simplelist"
"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
"github.com/mmcdole/gofeed"
Expand Down
8 changes: 4 additions & 4 deletions internal/model/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"strings"

"github.com/TypicalAM/goread/internal/backend"
"github.com/TypicalAM/goread/internal/model/tab"
"github.com/TypicalAM/goread/internal/model/tab/category"
"github.com/TypicalAM/goread/internal/model/tab/feed"
"github.com/TypicalAM/goread/internal/model/tab/welcome"
"github.com/TypicalAM/goread/internal/style"
"github.com/TypicalAM/goread/internal/tab"
"github.com/TypicalAM/goread/internal/tab/category"
"github.com/TypicalAM/goread/internal/tab/feed"
"github.com/TypicalAM/goread/internal/tab/welcome"

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package category

import (
"github.com/TypicalAM/goread/internal/backend"
"github.com/TypicalAM/goread/internal/simplelist"
"github.com/TypicalAM/goread/internal/tab"
"github.com/TypicalAM/goread/internal/model/simplelist"
"github.com/TypicalAM/goread/internal/model/tab"
tea "github.com/charmbracelet/bubbletea"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/tab/feed/feed.go → internal/model/tab/feed/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"strings"

"github.com/TypicalAM/goread/internal/backend"
"github.com/TypicalAM/goread/internal/simplelist"
"github.com/TypicalAM/goread/internal/model/simplelist"
"github.com/TypicalAM/goread/internal/model/tab"
"github.com/TypicalAM/goread/internal/style"
"github.com/TypicalAM/goread/internal/tab"
"github.com/charmbracelet/bubbles/list"
"github.com/charmbracelet/bubbles/spinner"
"github.com/charmbracelet/bubbles/viewport"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package welcome

import (
"github.com/TypicalAM/goread/internal/backend"
"github.com/TypicalAM/goread/internal/simplelist"
"github.com/TypicalAM/goread/internal/tab"
"github.com/TypicalAM/goread/internal/model/simplelist"
"github.com/TypicalAM/goread/internal/model/tab"
tea "github.com/charmbracelet/bubbletea"
)

Expand Down

0 comments on commit 285bd59

Please sign in to comment.