-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the tui module started to get messy, because all the RPC and input handling was happening there. We introduce two changes to prevent this: - each view now has it's own client (VliewClient), that does the RPC that is specific to the view. Basically, each RPC call the has "view_id" as parameter. - split input handling between the TUI and the view. What the TUI can't handle is passed to the view. We also create a "view" directory that hold all the modules that are specific to the view. Further refactoring could be done: - trying to separate the rendering to a dedicated type to avoid View being cluttered with rendering code - adding a dedicated client for the TUI
- Loading branch information
1 parent
44881c8
commit 032966b
Showing
10 changed files
with
214 additions
and
215 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.