Wails shell over the existing Go core (app.go, main.go, wails.json, build/), with a React frontend for the VM list, VM detail, host page, create wizard and settings, plus process helpers for the driver and runtime packages. UI redesign stage 0 (docs/ui-redesign.md): - VM actions live in the page header: one primary action per state, icon-only secondary actions with tooltips, the rest in a "..." menu - install guide is a single card with the only "eject installer" button - summary is an icon + value row; paths, ICD, CPU model and runtime hash moved to a collapsed "technical details" section - logs no longer auto-open; a status bar shows merged download progress and an error count; the log view sticks to the bottom - busy states on actions, toasts for results, custom delete dialog with "keep disk files" - design tokens, Windows font stack, integer type scale, no inline styles - keyboard: sidebar listbox navigation, focus rings, Ctrl+N / Ctrl+, / Ctrl+L - copy rewritten per the restraint rules in §4.5 - Radix primitives and lucide icons replace hand-rolled widgets Backend: OpenVMFolder binding to show a VM's directory in Explorer. Docs: shell-design.md revised for decisions D1 and D4. Vite dev server pinned to 127.0.0.1 so `wails dev` can reach it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
1.0 KiB
Go
48 lines
1.0 KiB
Go
package main
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"github.com/wailsapp/wails/v2"
|
|
"github.com/wailsapp/wails/v2/pkg/options"
|
|
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
|
|
"github.com/wailsapp/wails/v2/pkg/options/windows"
|
|
)
|
|
|
|
//go:embed all:frontend/dist
|
|
var assets embed.FS
|
|
|
|
func main() {
|
|
app := NewApp()
|
|
err := wails.Run(&options.App{
|
|
Title: "reims-go",
|
|
Width: 1120,
|
|
Height: 740,
|
|
MinWidth: 920,
|
|
MinHeight: 600,
|
|
Frameless: true,
|
|
AssetServer: &assetserver.Options{
|
|
Assets: assets,
|
|
},
|
|
BackgroundColour: &options.RGBA{R: 28, G: 28, B: 30, A: 255},
|
|
Windows: &windows.Options{
|
|
Theme: windows.Dark,
|
|
WebviewIsTransparent: false,
|
|
WindowIsTranslucent: false,
|
|
CustomTheme: &windows.ThemeSettings{
|
|
DarkModeTitleBar: windows.RGB(28, 28, 30),
|
|
DarkModeTitleText: windows.RGB(245, 245, 247),
|
|
DarkModeBorder: windows.RGB(58, 58, 62),
|
|
},
|
|
},
|
|
OnStartup: app.startup,
|
|
OnShutdown: app.shutdown,
|
|
Bind: []any{
|
|
app,
|
|
},
|
|
})
|
|
if err != nil {
|
|
println("Error:", err.Error())
|
|
}
|
|
}
|