Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tui competition #37

Merged
merged 92 commits into from
Oct 12, 2023
Merged

Tui competition #37

merged 92 commits into from
Oct 12, 2023

Conversation

n00bady
Copy link
Collaborator

@n00bady n00bady commented Oct 12, 2023

TUI implementation using bubbletea and bubbles.

All basic functions of the VPN client are there.

  • Choose Router and VPN
  • Connect/Disconnect
  • See logs
  • And detailed Stats

Settings are yet to implemented and there are some scaling issues to resolve.

😅

zveinn and others added 30 commits August 5, 2023 12:22
…go file move the helping function to little_helpers.go. Also cleaned up the code a little bit and did some changes in the styles.
…bountaries too. Also moved the funtion to get the vpn logs in the little_helpers.go so the switch statement doesn't look like shit and I added a check so I won't have to update m.logs slice everytime if there are NO new logs.
…go file move the helping function to little_helpers.go. Also cleaned up the code a little bit and did some changes in the styles.
…bountaries too. Also moved the funtion to get the vpn logs in the little_helpers.go so the switch statement doesn't look like shit and I added a check so I won't have to update m.logs slice everytime if there are NO new logs.
…ruct so I can unfold an use the response from the login request in little_helpers.go and also added some example code for log in and log out in StartTUI() in the tui.go .
zveinn and others added 29 commits September 13, 2023 05:48
…ame of the currently connected VPN server panics with runtime error: invalid memory address or nil pointer dereference. So I temporarly disabled it so the VPN status line will just say connected if when you connect.
…o be becaused it is used elsewhere too. Moved the PAFR request construction in the StartUI() function just before the core.GetRoutersAndAccessPoints(&PAFR), it makes more sense to me there.
…ed and change the Disconnect shortcut to shift+d
… tab, changed the status line to be more consistant.
…imensions of the tui and also did some changes to accommodate the help menu. Lastly I added the keybinds, they are only implemented for now to be shown on the help menu but on the next commit I'll replace the hardcoded strings with the keybinds so they can be modified easier in the future.
…y them and cleaner. Also will more easy to implement user key re-binding in the future if we want.
…DMbpsString/UMbpsString get set. Also fixed the style of the help menu.
…d they are initialized in detailedStatsInit() and updated in detailedStatsUpdate(). Also changed changed on how the logs are updated and the viewport width to try and stop it from breaking in certain dimensions, seems to work so far.
@zveinn zveinn merged commit 8dfc280 into tunnels-is:tui-competition Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants