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

355 Commits

Author SHA1 Message Date
Chris Cummer
a18fce88ac
WTF-718 Fixes missing grid issue when running CmdRunner (#740)
Closes #718 and closes #730.

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-11-09 14:09:13 -08:00
Chris Cummer
200dbcc03c
WTF-730 Fix missing color key config error (#738)
* WTF-730 Fix missing color key config error

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Add Subheading color formatting to modules

Users can now set a `subheading` color in their config to change the
color of subheadings in widget display.

Defaults to `red`.

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix oustanding color issues

Clean up missing color config changes not addressed in earlier commits.

Signed-off-by: Chris Cummer <chriscummer@me.com>

* Remove unused dependency

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Base cleanup

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix a few bugs related to color config changes

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix issues with PagerDuty subheading display

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix bug with Todo list colour rendering

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-11-09 11:21:45 -08:00
Chris Cummer
1bfca29d17
WTF-657 Add spec coverage for cfg/common_settings.go (#728)
* WTF-657 Add spec coverage for cfg/common_settings.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for cfg/position_validation.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for cfg/validations.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for checklist/checklist.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for checklist/checklist_item.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for utils/conversions.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Get rid of utils.Home() function

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for utils/homedir.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for utils/text.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Clean up utils/utils.go

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-10-30 17:35:00 -07:00
Chris Cummer
ada434b3c3
Merge pull request #715 from Ameobea/twitterstats
Twitterstats
2019-10-29 17:55:57 -07:00
Casey Primozic
a99af9a091
Support both bearer + consumer tokens for Twitter modules
* Add support to both the twitter and twitterstats modules for authenticating using both bearer tokens as well as consumer key + secret.
  * A bearer token is defaulted to if it's supplied
  * Add this support to both the twitterstats module as well as to the existing twitter module, modifying its functionality to re-use the same HTTP client and handle authentication upfront via oauth2
2019-10-29 03:15:57 -07:00
Chris Cummer
59501353e7
Merge pull request #724 from madepolli/modded_resourceusage
modded resourceusage
2019-10-25 07:58:11 -07:00
Matjaž Depolli
900d0d0ea5 modded resourceusage 2019-10-25 12:54:16 +02:00
Cizer Pereira
5261325771 fix: resolve PR commits 2019-10-25 08:27:14 +02:00
Cizer Pereira
22b40ff0ec fix: mark favorite with 2019-10-24 18:37:16 +02:00
Cizer Pereira
e7e1463181 feat: Add new widget for football scores and standings 2019-10-24 15:28:01 +02:00
Casey Primozic
d82eda1933
Improvements to twitterstats code from review
* Unmarshal directly into a `TwitterStats` struct by using json struct annotations
 * Pull stats fetching for a single user out into its own function so that closing the request body is done after each request and the HTTP request can be re-used for multiple usernames' stats
 * Improve type casting code used in settings parsing logic
2019-10-23 11:49:33 -07:00
Casey Primozic
3c95d8e39d
Improve styling + remove unused code
* Got rid of unused struct fields, unused settings, added some comments to functions + structs
2019-10-22 13:23:17 -07:00
Casey Primozic
0be63a404c
Implement Twitter API fetching for twitterstats
* Create Oauth2 client configured for Twitter and create a HTTP client out of that
 * Fetch user stats for each of the users, parse out of JSON, and return stats as stats structs
2019-10-22 12:42:11 -07:00
Casey Primozic
4c9990bafd
Implement initial twitterstats module
* Create module skeleton based off of the existing twitter module
  * Strip out unused pieces and try to make it as minimal as possible
 * Implement settings parsing, converting the untyped `screenNames` slice into an slice of strings
 * Implement initial minimal display, showing a table with all usernames and their follower count + # of tweets (using dummy metrics for now)
2019-10-22 11:58:20 -07:00
Chris Cummer
97bf42045b
Merge pull request #712 from Daanikus/close-file
Close unclosed file
2019-10-21 21:19:11 -07:00
Chris Cummer
cb636881c3 Merge branch 'master' of github.com:wtfutil/wtf 2019-10-21 21:08:14 -07:00
Daanikus
db9f3c7b99 close unclosed file 2019-10-22 17:00:43 +13:00
Omar
e7a42e05b5
chore: adjust ToDo to use ScrollableWidget 2019-10-20 13:10:15 +02:00
Albert Salim
f1303bcc2f Rename "Approval Requests" to "Assigned Merge Requests" 2019-10-19 10:15:38 +08:00
Albert Salim
fa1bdade76 Add user context to GitLab project
- Get MergeRequests and Issues with user's ID
2019-10-19 10:13:54 +08:00
Albert Salim
149228dd1c Add lists of authored and assigned issues in GitLab project 2019-10-15 23:46:55 +08:00
Alex Fornuto
419d43670c remove pull request count from issue count (#694) 2019-10-12 17:51:53 -04: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
c9eff660f6
Merge pull request #584 from alexfornuto/netman-agnostic
Find SSID regardless of network manager
2019-10-11 05:02:48 -07:00
Chris Cummer
3e84dc2b6e
Merge pull request #685 from Boot-Error/master
Fix Errors in azuredevops and devto modules
2019-10-10 20:28:13 -07:00
Jason Schweier
016bef7f79 Rename token to apiKey 2019-10-10 18:36:45 -04:00
Vighnesh SK
260ad3e968
Merge branch 'master' into master 2019-10-11 03:36:22 +05:30
Boot-Error
a1526b97e8 Fix Errors in azuredevops and devto modules
azuredevops had a error due to cli being a pointer to interface rather
than interface.

devto module's `widget.articles` and `displayArticles` data type changed
to `devto.ListedArticles`.
2019-10-11 03:30:11 +05:30
Alex Fornuto
cf3cda3b13 simplify iwgetid use 2019-10-10 14:41:14 -05:00
Tim Scheuermann
4e529b49e6 Expose the widget dimensions to commands in cmdrunner 2019-10-09 14:55:23 +02:00
Chris Cummer
abfdad01fe
Merge pull request #680 from noxer/master
Make the cmdrunner more interactive
2019-10-08 17:29:51 -07:00
Tim Scheuermann
0629e28105 Set a proper default line limit 2019-10-07 22:15:14 +02:00
Tim Scheuermann
45b9555633 CmdRunner now updates view while running 2019-10-07 22:10:51 +02:00
Jason Schweier
61bfd97939 Sort Buildkite pipelines and branches alphabetically 2019-10-07 12:03:36 -04:00
Chris Cummer
0306ecd746 Merge branch 'add-buildkite-widget' of github.com:jmks/wtf into jmks-add-buildkite-widget 2019-10-05 20:41:53 -07:00
krassnigg@babymarkt.de
1a13bc2420 Provide Spotify color customization settings 2019-10-04 11:48:47 +02:00
Jason Schweier
f56cc483b4 Add Buildkite widget 2019-10-03 10:44:48 -04:00
Chris Cummer
7f5d09c508
Merge pull request #674 from Seanstoppable/checkboxoverride
Have checkbox config work as intended
2019-10-02 19:43:52 -07:00
Chris Cummer
47651fb102 Merge branch 'respectordering' of github.com:Seanstoppable/wtf into Seanstoppable-respectordering 2019-10-02 19:40:13 -07:00
Chris Cummer
acf6785bba
Merge pull request #671 from wtfutil/WTF-661-tranismission-blocker
WTF-661 Fix tranmission module to no longer block on initialization
2019-10-02 19:35:25 -07:00
Chris Cummer
7823d1d2e8
Merge pull request #669 from wtfutil/WTF-658-clocks-row-color
WTF-658 Clocks obeys global row color settings
2019-10-02 19:34:36 -07:00
Chris Cummer
336e11959d
Merge pull request #668 from wtfutil/WTF-665-gcal-time-support
WTF-665 Add time format setting for gCal module
2019-10-02 19:31:24 -07:00
Sean Smith
2c1e7fc2c9 Have checkbox config work as intended
Support checkedIcon
Also support uncheckedIcon
Addresses the end of #616
2019-10-02 17:41:04 -04:00
Sean Smith
b7bd6e3817 Respect list ordering for trello
Ordering not respected because of the use of a map
Switch to using slice
Resolves #664
2019-10-02 17:26:34 -04: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
ef71ad2ced WTF-658 Clocks obeys global row color settings
Fixes #658.
2019-10-02 05:43:16 -07:00
Chris Cummer
ca0345a0b4 Fix a bug with subreddit module row colour
Even and odd rows now display as different colours when row colour is
explicitly defined in the module config.
2019-10-02 05:37:31 -07:00
Chris Cummer
7c2d6b4c42 WTF-665 Add time format setting for gCal module
Allows the user to specify either "12" or "24" to set whether or not to
display times in AM/PM format or 24-hour format.

Example:

      gcal:
        enabled: true
        timeFormat: "12"
        refreshInterval: 360

Fixes #665
2019-10-01 21:37:03 -07:00
Chris Cummer
36607f43ad Merge branch 'master' of github.com:lawrencecraft/wtf into lawrencecraft-master 2019-09-28 07:57:53 -04:00
Chris Cummer
f934f21638 Attempt to fix the HIBP index out of range bug 2019-09-27 20:06:58 -07:00