Commit Graph

127 Commits

Author SHA1 Message Date
Jeff Carr 9e77555991 still code restructuring
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-26 02:19:23 -07:00
Jeff Carr 703cf3668e fixes for the protobuf changes
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-26 01:05:28 -07:00
Jeff Carr 480768e33e closer to generating new tokens
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-26 00:27:15 -07:00
Jeff Carr def1e8a109 cleaner comments
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-25 22:07:58 -07:00
Jeff Carr e09e613347 move in one tab. Add IANA root DNS anchors
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-25 21:28:21 -07:00
Jeff Carr d03ff70b59 fix login & vm list + working token
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-25 15:34:10 -07:00
Jeff Carr e39a2608e8 minor
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-25 03:08:59 -07:00
Jeff Carr b1cddd9f60 minor
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-25 02:51:00 -07:00
Jeff Carr 3f5ff714ca refix the add account option
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-25 01:38:06 -07:00
Jeff Carr 817b424eee avoided some weird scary jsonpb bug with this exact syntax
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 23:53:52 -07:00
Jeff Carr df91e3b191 fix crash on nil
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 21:50:23 -07:00
Jeff Carr 6b0763c3fd lookup AAAA record. single CreateButtion() function now
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 20:53:44 -07:00
Jeff Carr 4e946e456f login and vm list still works
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 19:45:19 -07:00
Jeff Carr e459ec7fbb login and vm list works again
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 19:29:28 -07:00
Jeff Carr 10e2e7bc45 builds. gookit/config isn't used anymore instead use protobuf and marshal to JSON
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 19:03:15 -07:00
Jeff Carr 610f04c85a compiles again
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 18:41:31 -07:00
Jeff Carr d12549e314 remove references to AccNick
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 18:17:53 -07:00
Jeff Carr 89245aef3d start moving away from 'gookit/config' to protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 17:39:05 -07:00
Jeff Carr 86aee5482c login works again
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 15:35:57 -07:00
Jeff Carr 80ae926c10 attempt to add a VM
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 13:43:22 -07:00
Jeff Carr 2b7db182f9 try to load the config from the packr box (doesn't work)
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 11:32:26 -07:00
Jeff Carr 6fba083fdd more debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 09:04:36 -07:00
Jeff Carr 14199d588e better VM page handling
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 01:17:37 -07:00
Jeff Carr d494f0fe47 minor
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 00:21:15 -07:00
Jeff Carr 76243308af popup window if login fails
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-24 00:04:37 -07:00
Jeff Carr f4acaa113a attempt to send a login event
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 22:47:26 -07:00
Jeff Carr 1c0b51bb11 remove bmath's test account finally. thanks for all the fish
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 19:44:10 -07:00
Jeff Carr 8b041a97d7 sends the token
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 19:36:20 -07:00
Jeff Carr 1f80bd3249 pass the account nickname to the socket
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 17:43:41 -07:00
Jeff Carr e5128f8b48 attempt to map & track open sockets
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 16:38:51 -07:00
Jeff Carr 42c27dd329 remove old function name
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 16:09:09 -07:00
Jeff Carr 87ee1e2be2 trap window close and exit
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 13:45:11 -07:00
Jeff Carr 41679c718b v0.5 : skip the account screens when the user already has one
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 13:27:05 -07:00
Jeff Carr d9633fe2db override the config file from the cmdline for debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 13:14:57 -07:00
Jeff Carr 3238695374 write out the config filename at the end
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 11:37:03 -07:00
Jeff Carr a3896449ca store the account information
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 11:33:30 -07:00
Jeff Carr 3eaa1bf85e implement QUIT and saving new account info to the config file
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 11:03:32 -07:00
Jeff Carr 0602047f56 pass the new account username and password through
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 10:50:18 -07:00
Jeff Carr 84fc164e7f crap. the 'config' isn't parsing the JSON files correctly?
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 09:47:48 -07:00
Jeff Carr 1c7a68770d display golang build version & git commit rev
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-23 00:11:49 -07:00
Jeff Carr daca095873 move create VM tab back into GUI goroutine
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 22:33:16 -07:00
Jeff Carr 28e4b48a26 start moving everything to git.wit.com/wit/gui
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-22 20:16:16 -07:00
Jeff Carr 184bdd6677 code cleanup
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 23:02:10 -07:00
Jeff Carr 049dbdac72 remove the dnssec socket code.
TODO: add the dns IPv6 checks to the gorilla websocket daemon

Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 18:36:31 -07:00
Jeff Carr 8807c8fc9b clean up the websocket Dial code to correctly restart
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-12 06:18:06 -07:00
Jeff Carr 082e717d3d ready to do an event response
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-11 23:26:24 -07:00
Jeff Carr 06e60fbcb6 add a gorilla websocket send
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-11 23:21:57 -07:00
Jeff Carr a737a23d6f This seems to actually add a protobuf to the channel (not Marshal'd though)
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-11 07:53:32 -07:00
Jeff Carr 6f149c2706 GUI more stable than before
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-10 01:27:28 -07:00
Jeff Carr baecdd3d58 try to stabilize the GUI
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-10 01:21:32 -07:00
Jeff Carr 745ef852ef start on a cloud info tab
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-09 23:25:27 -07:00
Jeff Carr 24ae9a3033 add a -nogui option for debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-09 07:00:38 -07:00
Jeff Carr 4863991462 does multiline socket reads
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-09 06:52:51 -07:00
Jeff Carr 91b9a337e9 first attempt at passing in the column types and names
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 17:44:14 -07:00
Jeff Carr 67418e41da successfully entered a row
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 15:29:06 -07:00
Jeff Carr 76bf66e1f9 try a table with 700 rows. very fast.
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 14:21:05 -07:00
Jeff Carr 2107a4876e Try to dynamically add some of the other tabs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 14:03:10 -07:00
Jeff Carr 048c4f4b32 Move gui code into git.wit.com/wit/gui
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 13:09:44 -07:00
Jeff Carr 771f9eb29f Isolate all GUI code in an attempt to make a library out of it.
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 13:02:27 -07:00
Jeff Carr b84d38e33b ah. maybe it's possible to completely abstract this all away
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 01:49:09 -07:00
Jeff Carr 32f03ccffa color text works for some reason
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 00:41:55 -07:00
Jeff Carr f1a37e410c no longer crashes. seems stable. Can edit text fields
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-08 00:02:47 -07:00
Jeff Carr 369a8941a8 successfully add 2 tabs dynamically
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-07 16:42:16 -07:00
Jeff Carr dc3f440e47 dynamically add tabs. work around the JSON config file problem
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-07 14:54:08 -07:00
Jeff Carr 5f1dde7e27 write out json and yaml config files
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-07 05:02:39 -07:00
Jeff Carr 64223c47cd loop through attempts to connect every 10 seconds
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-07 04:28:50 -07:00
Jeff Carr 00a2d142f1 moved to gui.go. jesus this language is great to work with
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-06 19:00:52 -07:00
Jeff Carr 4d13b8abec prepare to move all the GUI code out of main.go
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-06 18:57:59 -07:00
Jeff Carr 6ddbe8c28d need this for it to work under windows. This is probably actually a bug
and can be fixed in the andlabs import internally with go

Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-06 17:42:59 -07:00
Jeff Carr 790b4ae20a add a gui-example1/ to test macos and windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-06 16:41:59 -07:00
Jeff Carr 229b470935 pass the name into the handler. start seperating the ui table callbacks
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-06 14:14:32 -07:00
Jeff Carr 85956b4020 due to some sort of magic, two tables like this actually fucking worked without a segfault
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-06 13:50:10 -07:00
Jeff Carr cbdf74a764 start focusing on making a table for the VMs
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-06 09:51:16 -07:00
Jeff Carr 701339dd7c add a table after figuring out how to correctly get it
to work under linux. TODO: send fix to libui author

Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-05-06 00:32:46 -07:00
Jeff Carr 910107d044 start to simplify some of the UI code
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-02-01 06:44:56 -08:00
Jeff Carr 0c7ed3bab4 show k8s pods that work
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-02-01 06:35:08 -08:00
Jeff Carr 4c686b87a5 Initial Commit
Signed-off-by: Jeff Carr <jcarr@wit.com>
2019-02-01 05:28:17 -08:00