Commit Graph

15 Commits

Author SHA1 Message Date
9d3fc15ab1 more stats work
added templ file for basic stat output of cluster
2024-03-18 23:48:24 -06:00
3bcbfd3577 adding stats to cluster object 2024-03-18 22:38:28 -06:00
4819cc8e9b Moved hosting.templ into the view directory
- Pages will go to view
- pages will be seperated into each file by type (host, vm, etc.)
- each page will have multiple sections in each file that can be
  either rendered together, or loaded via HTMX, depending on the call
- started on htmx api endpoints
2024-03-17 00:10:04 -06:00
d10aea8d8c Adding chart generation for host stats 2024-03-16 11:09:58 -06:00
223496075a Adding even more components
- Starting on main manager page
- Manager layout will be included in the manager page
- Manager page will use htmx to load different components via api
2024-03-15 22:50:24 -06:00
5fd215d6dd nav bar!
Added a navbar that doesn't do anything to the homepage
2024-03-15 16:48:11 -06:00
8a736a57f9 removed tailwindcss-dracula
- defined custom colours for ui elements
- created layouts directory in views that control layouts
- made the header in homepage flexbox
2024-03-15 11:55:28 -06:00
9c35be1fcf really liking templ
- made multiple components for reuse in templ
- going to start on actual data displaying templates
2024-03-14 21:56:49 -06:00
fada05c56d add icons for tailwind
- svg icons from heroicons.com
- add Type to String map for:
  - StoragePoolState
  - StorageVolType
- default icons are sized 24x24
  - added 36x36, 48x48, 64x64
- adding styling to home.gohtml homepage
2024-03-13 22:21:01 -06:00
2419d5d3a6 add basic chi http server
- added air to reload the server on changes automatically
- added tailwindcss
- added base page structure in html using _index, _header and _footer
- added static homepage
- added style.css built by tailwindcss
- added basic View object to control views and templates
2024-03-13 19:12:48 -06:00
f96a911722 host will now load VM data
- All host node info is done using goroutines to speed up the process as much as possible
- The vast majority of data is stored at this point
  - Need to work out refreshes, using either polling or events
2024-03-12 22:17:42 -06:00
b5ab70fc25 getting host data before each vm on host data
- Hostdata is useful
2024-03-11 23:35:32 -06:00
00758af30b Now pulling VM data from named VMs
- Next is to get the list and setting the information using go routines for each VM
2024-03-11 19:39:17 -06:00
4ecf05bf82 Adding basic wrappers
- Wrapper for Host connection called Host
  - Allows for easier usage of the API
- Wrapper for Domains called GuestVM, which pulls VM information and allows
  other functionality in a better way
2024-03-10 20:32:11 -06:00
bab4f2506b Added ability to check domains on host
super simple example to show it can work
2024-03-10 00:15:49 -07:00