diff --git a/main.go b/main.go index 90a72aa..d0f9057 100644 --- a/main.go +++ b/main.go @@ -40,7 +40,6 @@ func main() { sse := sse.New() sse.AutoReplay = false - sse.CreateStream("weather") s := services.NewSystemService(sse) b := services.NewBookmarkService() diff --git a/views/home/home.templ b/views/home/home.templ index 369cbc8..b873918 100644 --- a/views/home/home.templ +++ b/views/home/home.templ @@ -9,8 +9,8 @@ templ Home(title string, bookmarks *services.Bookmarks, static *services.StaticI
@components.System("icon-[bi--cpu]",static.CPU.Name,"",static.CPU.Threads,"systemCpuPercentage","",live.CPU) - @components.System("icon-[bi--memory]",live.Ram.Value,fmt.Sprintf(" | %s", static.Ram.Total),static.Ram.Swap,"systemRamPercentage","systemRamValue",live.Ram.Percentage) @components.System("icon-[bi--nvme]",live.Disk.Value,fmt.Sprintf(" | %s", static.Disk.Total),static.Disk.Partitions,"systemDiskPercentage","systemDiskValue",live.Disk.Percentage) + @components.System("icon-[bi--memory]",live.Ram.Value,fmt.Sprintf(" | %s", static.Ram.Total),static.Ram.Swap,"systemRamPercentage","systemRamValue",live.Ram.Percentage) @components.Uptime(static.Host.Architecture,"systemUptimePercentage",live.Uptime)
@@ -42,29 +42,14 @@ templ Home(title string, bookmarks *services.Bookmarks, static *services.StaticI
}