1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

27 Commits

Author SHA1 Message Date
Chris Cummer
cde904ff08
Use errcheck to find unhandled errors (#795)
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-17 08:26:16 -08:00
Chris Cummer
3a388fba23
20191215 code improvements (#790)
* Upgrade godo to latest
* Fix a bunch of issues found by
* Running staticcheck on a codebase for the first time is a sobering experience
* go mod tidy
* More static improvements

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:25:29 -08:00
Chris Cummer
58299c2efa
WTF-484 DigitalOcean module (#782)
* WTF-484 DigitalOcean module stubbed out
* WTF-484 Delete droplets via Ctrl-d
* WTF-484 Rebasing off master after a long time away
* WTF-484 Improve DigitalOcean display
* WTF-484 Can shutdown and restart the selected droplet
* WTF-484 Display info about the selected droplet using the ? key
* WTF-484 Display info about the selected droplet using the Return key
* WTF-484 Greatly improve the utils.Truncate function
* WTF-484 Display a droplet's features in the info modal
* WTF-484 Change reboot key from r to b to not conflict with refresh
* WTF-484 Panic if a keyboard control is mapped to the same character more than once
* WTF-484 Colorize droplet status indicator
* WTF-484 Extract view.InfoTable out into a reusable component
2019-12-13 11:33:29 -08:00
Toon Schoenmakers
14c2e0c627 Added a setting to hide the completed downloads in the transmission module (#746) 2019-11-12 20:14:49 -08:00
Chris Cummer
189c667928 Fix some of the transmission module race conditions
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-10-11 06:19:05 -07:00
Chris Cummer
4aa0f4e43b WTF-661 Fix tranmission module to no longer block on initialization
Fixes #661.
2019-10-02 05:59:33 -07:00
Chris Cummer
bf877f5fa7 Constantize the defaultFocus value for each module 2019-09-22 18:12:29 -07:00
Sean Smith
ed50751518 Use port value for transmission client 2019-08-29 21:26:00 -04:00
Sean Smith
14e7619075 Renormalize the redraw function
Have all instances take a function
Update the remaining modules to take this into account
Numerous smaller refactors to make some widgets work more or less the same
2019-08-27 21:51:37 -04:00
Sean Smith
264f49fd2c Fix race with HighlightableHelper
GetRect can lead to a race condition
Add a RenderFunc method so that we can call try to
wrap even more of our rendering in the thread safe
`QueueUpdateDraw` method
2019-08-24 22:15:35 -04:00
Chris Cummer
523a0bec2c Remove the need for every module to define a widget.Refresh keyboard control 2019-08-23 21:18:51 -07:00
Chris Cummer
5337656c58 Remove the need for every module to define a widget.ShowHelp keyboard control
This common functionality is moved up to KeyboardWidget. Modules now
include widget.InitializeCommonControls() instead.
2019-08-23 21:18:51 -07:00
Chris Cummer
4e46fff145 Move the utils.go file into the /utils directory 2019-08-05 10:50:12 -07:00
Chris Cummer
dbc047516d Move all components responsible for module composition into /view 2019-08-04 21:42:40 -07:00
Chris Cummer
5bbddcf2ee Fix off-by-one error when deleting Transmission torrents 2019-07-10 08:04:01 -07:00
Chris Cummer
b07f3c5e67 Reimpliments the module configuration validation
Now supports displaying errors from multiple widgets.
2019-07-07 16:04:43 -07:00
Chris Cummer
d76f6807cc Redraw when a Transmission torrent is removed 2019-07-05 21:45:59 -07:00
Chris Cummer
1f82d26ac2 Fix a Transmission bug in which seed ratios could be negative percentages 2019-07-04 20:17:32 -07:00
Chris Cummer
743aa0992f Add help text to the Transmission settings file 2019-07-04 06:24:13 -07:00
Chris Cummer
007c1773a8 Add help text to the Transmission settings file 2019-07-04 06:23:33 -07:00
Chris Cummer
eb11ec34f2 Simplify the Transmission display when there are no torrents 2019-06-26 18:14:14 -07:00
Chris Cummer
4f0b0fedb8 Add Transmission seed ratio to display 2019-06-26 17:34:55 -07:00
Chris Cummer
bf84bfe4b0 Add percentage sign to Transmission download indicator 2019-06-26 17:18:33 -07:00
Chris Cummer
3a65dad743 Add pause/unpause and delete functionality to Transmisson widget 2019-06-26 16:51:18 -07:00
Chris Cummer
5dbce09e4f Make Transmission widget scrollable 2019-06-26 06:58:27 -07:00
Chris Cummer
9244d60abe Add a rudimentary Transmission module (https://transmissionbt.com) 2019-06-26 06:58:27 -07:00
Chris Cummer
ae13a3394d WIP Transmission 2019-06-23 15:04:09 -07:00