Sebastian Mark
31179d4af4
- change mode from "Work" to "Focus" in server messages
- modify pomodoro configuration to use "Focus" instead of "Work"
- adjust default settings to reflect new terminology
- ensure all references to work duration are updated to focus duration
- update variable names in HTML and JavaScript for clarity
🤖
20 lines
537 B
Go
20 lines
537 B
Go
package shared
|
|
|
|
import (
|
|
"git.smsvc.net/pomodoro/GoTomato/internal/metadata"
|
|
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
|
)
|
|
|
|
// The global state of the pomodoro
|
|
var State = models.ServerMessage{
|
|
Mode: "Idle",
|
|
Settings: DefaultPomodoroConfig,
|
|
Session: 0,
|
|
TimeLeft: DefaultPomodoroConfig.Focus,
|
|
Ongoing: false,
|
|
Paused: false,
|
|
ProtocolVersion: metadata.ProtocolVersion,
|
|
}
|
|
|
|
// The password needed to execute client commands or change the pomodoro config
|
|
var PomodoroPassword string
|