format: update import statements
- clean up and streamline import statements across multiple files
🤖
This commit is contained in:
parent
f26f12ef98
commit
e8b463c59c
8 changed files with 16 additions and 10 deletions
|
@ -2,8 +2,9 @@ package frontend
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
|
||||||
"github.com/gen2brain/beeep"
|
"github.com/gen2brain/beeep"
|
||||||
|
|
||||||
|
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func desktopNotifications(pomodoro GoTomato.ServerMessage) {
|
func desktopNotifications(pomodoro GoTomato.ServerMessage) {
|
||||||
|
|
|
@ -3,10 +3,12 @@ package frontend
|
||||||
import (
|
import (
|
||||||
"atomicgo.dev/keyboard"
|
"atomicgo.dev/keyboard"
|
||||||
"atomicgo.dev/keyboard/keys"
|
"atomicgo.dev/keyboard/keys"
|
||||||
|
ws "github.com/gorilla/websocket"
|
||||||
|
|
||||||
"git.smsvc.net/pomodoro/ChronoTomato/internal/websocket"
|
"git.smsvc.net/pomodoro/ChronoTomato/internal/websocket"
|
||||||
|
|
||||||
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
|
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||||
ws "github.com/gorilla/websocket"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func keyhandler(conn *ws.Conn, config ChronoTomato.Config, message *GoTomato.ServerMessage, quit chan bool) {
|
func keyhandler(conn *ws.Conn, config ChronoTomato.Config, message *GoTomato.ServerMessage, quit chan bool) {
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
package frontend
|
package frontend
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/gorilla/websocket"
|
||||||
|
|
||||||
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
|
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||||
"github.com/gorilla/websocket"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var message GoTomato.ServerMessage
|
var message GoTomato.ServerMessage
|
||||||
|
|
|
@ -2,9 +2,10 @@ package frontend
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func terminalOutput(pomodoro GoTomato.ServerMessage) {
|
func terminalOutput(pomodoro GoTomato.ServerMessage) {
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
package helper
|
package helper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
|
|
||||||
"github.com/charmbracelet/log"
|
"github.com/charmbracelet/log"
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
ChronoTomato "git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ParseConfig(filename string) ChronoTomato.Config {
|
func ParseConfig(filename string) ChronoTomato.Config {
|
||||||
|
|
|
@ -3,9 +3,10 @@ package websocket
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
|
||||||
"github.com/charmbracelet/log"
|
"github.com/charmbracelet/log"
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
|
|
||||||
|
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Done = make(chan struct{})
|
var Done = make(chan struct{})
|
||||||
|
|
|
@ -2,9 +2,10 @@ package websocket
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
|
||||||
"github.com/charmbracelet/log"
|
"github.com/charmbracelet/log"
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
|
|
||||||
|
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func sendClientCommand(conn *websocket.Conn, msg GoTomato.ClientCommand) {
|
func sendClientCommand(conn *websocket.Conn, msg GoTomato.ClientCommand) {
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
package models
|
package models
|
||||||
|
|
||||||
import (
|
import GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
URL string `yaml:"url"`
|
URL string `yaml:"url"`
|
||||||
|
|
Loading…
Reference in a new issue