Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ type Config struct {
ExpiresAt time.Time `json:"expires_at,omitempty"`
}

const DefaultAPIURL = "https://api.thundercompute.com:8443"
const DefaultAPIURL = "https://dev-staging.thundercompute.com:8443"

func getAPIURL() string {
if envURL := os.Getenv("TNR_API_URL"); envURL != "" {
Expand Down
5 changes: 0 additions & 5 deletions cmd/snapshot_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@ func (m snapshotCreateProgressModel) View() string {
content := lipgloss.JoinVertical(lipgloss.Left, lines...)
result := "\n" + boxStyle.Render(content) + "\n\n"

// Add beta notice
warningStyle := lipgloss.NewStyle().Foreground(lipgloss.Color(theme.WarningColor)).Width(80)
betaNotice := "ℹ Snapshots are currently in beta. Please share feedback with us on Discord (https://discord.gg/nwuETS9jJK) or by emailing support@thundercompute.com"
result += warningStyle.Render(betaNotice) + "\n\n"

return result
}

Expand Down
5 changes: 0 additions & 5 deletions cmd/snapshot_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ func runSnapshotList() error {
// Render table
renderSnapshotTable(snapshots)

// Show beta notice
fmt.Println()
betaNotice := "ℹ Snapshots are currently in beta. Please share feedback with us on Discord (https://discord.gg/nwuETS9jJK) or by emailing support@thundercompute.com"
fmt.Println(tui.WarningStyle().Render(betaNotice))

return nil
}

Expand Down
5 changes: 0 additions & 5 deletions tui/snapshot_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
}
}

func NewSnapshotCreateModel(client *api.Client) snapshotCreateModel {

Check failure on line 79 in tui/snapshot_create.go

View workflow job for this annotation

GitHub Actions / Lint and Format Check

unexported-return: exported func NewSnapshotCreateModel returns unexported type tui.snapshotCreateModel, which can be annoying to use (revive)
styles := newSnapshotCreateStyles()

ti := textinput.New()
Expand Down Expand Up @@ -281,11 +281,6 @@
var s strings.Builder
s.WriteString("\n")
s.WriteString(m.styles.title.Render("⚡ Create Snapshot"))
s.WriteString("\n")

// Beta notice
betaNotice := "ℹ Snapshots are currently in beta. Please share feedback with us on Discord (https://discord.gg/nwuETS9jJK) or by emailing support@thundercompute.com"
s.WriteString(WarningStyle().Width(80).Render(betaNotice))
s.WriteString("\n\n")

progressSteps := []string{"Instance", "Name", "Confirm"}
Expand Down
5 changes: 0 additions & 5 deletions tui/snapshot_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
styles deleteStyles
}

func NewSnapshotDeleteModel(client *api.Client, snapshots api.ListSnapshotsResponse) snapshotDeleteModel {

Check failure on line 37 in tui/snapshot_delete.go

View workflow job for this annotation

GitHub Actions / Lint and Format Check

unexported-return: exported func NewSnapshotDeleteModel returns unexported type tui.snapshotDeleteModel, which can be annoying to use (revive)
s := NewPrimarySpinner()

return snapshotDeleteModel{
Expand Down Expand Up @@ -139,11 +139,6 @@
var s strings.Builder

s.WriteString(m.styles.title.Render("⚡ Delete Snapshot"))
s.WriteString("\n")

// Beta notice
betaNotice := "ℹ Snapshots are currently in beta. Please share feedback with us on Discord (https://discord.gg/nwuETS9jJK) or by emailing support@thundercompute.com"
s.WriteString(WarningStyle().Width(80).Render(betaNotice))
s.WriteString("\n\n")

switch m.step {
Expand Down
Loading