Skip to content

Commit

Permalink
move common/state to app/state
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Nov 27, 2024
1 parent 6c56696 commit ec56b79
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion pkg/app/app_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"encoding/json"
"log"

state "github.com/gucio321/HellSpawner/pkg/app/state"

"github.com/gucio321/HellSpawner/pkg/common"
"github.com/gucio321/HellSpawner/pkg/common/state"
"github.com/gucio321/HellSpawner/pkg/window/toolwindow"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package config
import (
"encoding/json"
"fmt"
"github.com/gucio321/HellSpawner/pkg/app/state"
"image/color"
"log"
"os"
Expand All @@ -11,8 +12,6 @@ import (

"github.com/gucio321/HellSpawner/pkg/common/enum"
"github.com/gucio321/HellSpawner/pkg/common/hsutil"
"github.com/gucio321/HellSpawner/pkg/common/state"

"github.com/kirsle/configdir"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/window/editor/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/gucio321/HellSpawner/pkg/app/state"
"log"

"github.com/AllenDang/giu"

"github.com/gucio321/HellSpawner/pkg/common/hsproject"

"github.com/gucio321/HellSpawner/pkg/common"
"github.com/gucio321/HellSpawner/pkg/common/state"
"github.com/gucio321/HellSpawner/pkg/window"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/window/toolwindow/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package console

import (
"fmt"
"github.com/gucio321/HellSpawner/pkg/app/state"
"os"

g "github.com/AllenDang/giu"

"github.com/gucio321/HellSpawner/pkg/common/state"
"github.com/gucio321/HellSpawner/pkg/window/toolwindow"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/window/toolwindow/mpqexplorer/mpqexplorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package mpqexplorer

import (
"github.com/gucio321/HellSpawner/pkg/app/state"
"log"
"os"
"path"
Expand All @@ -17,7 +18,6 @@ import (
"github.com/gucio321/HellSpawner/pkg/common"
"github.com/gucio321/HellSpawner/pkg/common/hsproject"
"github.com/gucio321/HellSpawner/pkg/common/hsutil"
"github.com/gucio321/HellSpawner/pkg/common/state"
"github.com/gucio321/HellSpawner/pkg/config"
"github.com/gucio321/HellSpawner/pkg/widgets"
"github.com/gucio321/HellSpawner/pkg/window/toolwindow"
Expand Down
2 changes: 1 addition & 1 deletion pkg/window/toolwindow/projectexplorer/projectexplorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package projectexplorer

import (
"github.com/gucio321/HellSpawner/pkg/app/state"
"log"
"os"
"path/filepath"
Expand All @@ -19,7 +20,6 @@ import (
"github.com/gucio321/HellSpawner/pkg/common/hsfiletypes"
"github.com/gucio321/HellSpawner/pkg/common/hsproject"
"github.com/gucio321/HellSpawner/pkg/common/hsutil"
"github.com/gucio321/HellSpawner/pkg/common/state"
"github.com/gucio321/HellSpawner/pkg/widgets"
"github.com/gucio321/HellSpawner/pkg/window/toolwindow"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/window/toolwindow/toolwindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package toolwindow

import (
"github.com/AllenDang/giu"
"github.com/gucio321/HellSpawner/pkg/common/state"
"github.com/gucio321/HellSpawner/pkg/app/state"
"github.com/gucio321/HellSpawner/pkg/window"
)

Expand Down
3 changes: 1 addition & 2 deletions pkg/window/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ package window

import (
"github.com/AllenDang/giu"

"github.com/gucio321/HellSpawner/pkg/common/state"
"github.com/gucio321/HellSpawner/pkg/app/state"
)

// Window represents project's window
Expand Down

0 comments on commit ec56b79

Please sign in to comment.