Commit Graph

30 Commits

Author SHA1 Message Date
2b9fd75474 fix foramt 2024-03-18 22:46:14 -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
5ae4fb3ab9 host now generates a piechart for memory usage 2024-03-16 11:34:17 -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
db068fcecb start migration to templ 2024-03-14 14:39:26 -06:00
0da1551a2b Update tailwind config for templ
Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
2024-03-14 12:23:05 -06:00
2c15c6f840 start setup for move to templ 2024-03-14 12:21:07 -06:00
6e0198de35 fixed list icons
- instead of trying to change their colors in css, i created new svgs based on the ones I wanted
2024-03-14 01:54:41 -06:00
c170739128 remove resized svgs. It was only the viewbox 2024-03-13 22:38:35 -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
899a80f2e5 make file naming consistent 2024-03-12 10:34:16 -06:00
bb9feaef44 properly stubbed each library so it will compile 2024-03-12 10:33:14 -06:00
1bfdaf28c7 Add file stubs, add comments to guide dev in host
Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
2024-03-12 01:38:29 -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
5b16a75bdf refactor from all in main to lib
- lib/guest is for managing, displaying, etc. virtual machines
- lib/host is the same for hosts
2024-03-11 12:48:14 -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
9ce8b81e06 update README.md
- Discovered simplest method of quorum
  - if the controller can't reach a host, it's down
2024-03-09 23:54:40 -07:00
user_name
6a6d0d2f21 Add git-lfs
Signed-off-by: user_name <user_email>
2024-03-09 23:24:29 -07:00
user_name
5731493f1d Update README.md
Signed-off-by: user_name <user_email>
2024-03-09 23:18:31 -07:00
d7dffa395c Already have a readme locally, so I'm removing this one in favour of that one
Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
2024-03-09 23:17:47 -07:00
254ff5bc4b Initial commit 2024-03-09 23:17:16 -07:00