Siege Lion
4e611fe736
Feat: vela top supports custom theme features ( #5180 )
...
* Feat: add the diy theme feature
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: add test case
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: update go mod to fix vela top can't show on some terminal
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: add test case
Signed-off-by: HanMengnan <1448189829@qq.com >
* Feat: embed theme file
Signed-off-by: HanMengnan <1448189829@qq.com >
* Feat: add theme selector and add test cases
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix type bug
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix some file bugs
Signed-off-by: HanMengnan <1448189829@qq.com >
Signed-off-by: HanMengnan <1448189829@qq.com >
2022-12-20 14:13:26 +08:00
Siege Lion
d38b20de64
Feat: add feature of refreshing resource view and fix the bug of stucking ( #4743 )
...
* Fix: add test cases
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix bugs in resource view switch
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: optimize the method of resource view render
1. Separate view loading and data rendering to optimize the view rendering speed
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix the bug of ctx value transmit in resource view switch
Signed-off-by: HanMengnan <1448189829@qq.com >
* Feat: Add the feature of auto refresh
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: small fix
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: small fix
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: small fix
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: small fix
Signed-off-by: HanMengnan <1448189829@qq.com >
Signed-off-by: HanMengnan <1448189829@qq.com >
2022-09-20 11:28:51 +08:00
Siege Lion
67f1901015
Refactor: rename interfaces and functions in vela top to promote semanticity ( #4727 )
...
* Fix: rename two interface name to make the name more specific
1. rename the ResourceListener to ViewListener
2. rename the Component to View
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: update the type of ”Main“ field in component.app
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: rename some functions of pageStack to make the name more readable
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix some name
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: add more test case
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix time format bug
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix test case in cluster_namespace_test.go
Signed-off-by: HanMengnan <1448189829@qq.com >
Signed-off-by: HanMengnan <1448189829@qq.com >
2022-09-15 17:10:18 +08:00
Siege Lion
5a241078b7
Feat: add new system info to system info board and optimize code ( #4640 )
...
newly added system info including:
1. Cluster num
2. App running num
3. cpu and mem usage condition of vela-core
4. cpu and mem usage condition of vela-core cluster gateway
Signed-off-by: HanMengnan <1448189829@qq.com >
Signed-off-by: HanMengnan <1448189829@qq.com >
2022-08-22 18:00:49 +08:00
Siege Lion
4d3ef75601
Feat: Add a new CLI command: vela top which can display system information and resource status in UI form ( #4556 )
...
* Feat: UI sketch init
Signed-off-by: HanMengnan <1448189829@qq.com >
* Feat: Resource data load finish
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: optimize code struct
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: add test case and fix some bugs
1. add test case to package model
2. fix a bug of ListClusters
3. optimize code structure
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix go.mod package version
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix some bugs and optimize code structure
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix irregular code and add comments
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: supplement test cases and fix bugs
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: move the `vela status --ui` command out and add it as a new command `vela top`
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: fix package import sequence and go.mod
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: add copyright header
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: update description and example of command `vela top`
Signed-off-by: HanMengnan <1448189829@qq.com >
* Fix: convert color variables to const variables
Signed-off-by: HanMengnan <1448189829@qq.com >
2022-08-09 10:56:22 +08:00