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

62 Commits

Author SHA1 Message Date
Chris Cummer
fd794707cd
☢️ WTF-1031 Support multiple simultaneous configurations (#1032)
* WTF-1031 Rename WtfApp.app to WtfApp.tviewApp

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

* WTF-1031 Add scaffolding for main to support multiple WtfApp instances

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

* WTF-1031 WIP

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

* Remove common functionality from KeyboardWidget and into Base

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

* Augment with some descriptive comments

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

* Add full support for multiple app instances via the AppManager.

Still to do:

* Config support for multiple apps/multiple config files
* The ability to switch between apps

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

* Move SetTerminal out of main and into its own file

Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-12-21 03:25:41 -08:00
Fredrik Steen
90d672b2f2 Add krisinformation module
A module to parse the feed from: https://www.krisinformation.se/en

 Krisinformation.se is a web site run by the Swedish Civil Contingencies Agency
that compiles and convey warnings, alerts, and emergency information from
Swedish authorities to the public.

Features:

 - Filter on country (all messages)
 - Filter on county (only show county specific messages)
 - Distance (only show message within a certain distance)
 - Set a max age for displaying messages
 - Set a maximum number of messages displayed
2020-11-30 16:26:51 +01:00
Chris Cummer
4a820dd0e5 Make every widget a keyboard widget
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-11-26 23:12:15 -08:00
Chris Cummer
546f73d56c Merge branch 'grafana' of github.com:schoentoon/wtf into schoentoon-grafana 2020-10-22 09:27:22 -07:00
Toon Schoenmakers
441e82a3bd Added grafana alerts widget 2020-10-19 19:03:15 +02:00
Jade
64fa5acccb gofmt 2020-10-19 01:18:40 +01:00
Jade
5c6833a0df add the module to the widget_maker.go 2020-10-19 00:42:03 +01:00
Chris Cummer
a746ab6975 Remove unnecessary parameter passing in WtfApp
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-10-14 12:16:48 -07:00
Chris Cummer
35499987ce
Move loading of the GitHub user into startup (#999)
Having the calls on exit delayed the exiting of the app
by a second or more, which was noticable and annoying.

This change loads the GitHub user data asynchronously while the
app is running, removing the delay on exit.

Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-10-12 12:23:39 -07:00
Miha Frangež
7f05fbcda5 Implemented UptimeRobot widget
This is the first working version of the UptimeRobot module, as discussed in #979
2020-10-11 20:09:18 -07:00
Chris Cummer
9f94e8c63a Add an app exit banner message 2020-10-11 16:55:16 -07:00
Jason Schweier
9a2bd261c0 Test Validate func 2020-10-08 20:29:50 -04:00
Jason Schweier
4205327b95 Test NewModuleValidator func 2020-10-08 20:29:50 -04:00
Sean Smith
3c63eee8d3
Create generalized todo module (#982)
* Create generalized todo module

Makes existing modules "backends"
This gives us a consistent interface

* Fix check issues

* Fix lint errors

* Make changes to stay on wtfutil todoist fork
2020-10-07 14:58:24 -07:00
Chris Cummer
d672f57c14 Fix warning with type conversion from rune + int to string
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-09-25 06:47:28 -07:00
Sam Roberts
4bb725db9e golangci-lint configuration file
golangci-lint can run all the currently enabled linters, and as far as I
can tell, does it in under 5 seconds as opposed to over 180 seconds
(compare `time make cilint` and `time make lint`).

Some of the linters that are listed in the "enabled" section but
commented out looked like a good idea to me, and fairly low hanging
fruit to fix, but they are not passing at the moment.

All the linters covered in the current Makefile are run.

TODO:
- replace lint target in Makefile with golangci-lint
- remove .github/workflow/errcheck.yml
2020-05-16 12:34:57 -07:00
Chris Cummer
f0ca3b8a58
Another actions test (#889)
* Another actions test

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

* Add BuildTest action

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

* Remove lint check for the time being (so many issues)

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

* Fix issues found by errcheck

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

* Fix errors found by staticcheck

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

* Fix issues found by goimports

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

* Comment out the  action for the time being

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

* Fix shadowed variables

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

* go mod tidy

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

* Remove buildtest.yml

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

* go mod tidy

Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-05-09 12:51:08 -07:00
Jon Hadfield
72ae0ccd8b
add pihole module. 2020-04-19 21:29:45 +01:00
Chris Cummer
629661df05 Fix merge conflict in go.sum
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-02-15 13:53:59 -08:00
Elliot
6c1828234a
Initial commit of gitlab todo module (#830) 2020-02-15 12:33:23 -08:00
Yvonnick Esnault
25bcd15793 feat: cds modules
Signed-off-by: Yvonnick Esnault <yvonnick@esnau.lt>
2020-02-05 23:18:12 +01:00
Bjoern Weidlich
ce0151becc
Added SpaceX Module 2020-01-06 23:21:44 -08:00
Bjoern Weidlich
86b32b3f9f Adding twitch module to display top streams (#805) 2019-12-30 22:20:53 -05: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
Chris Cummer
435bc59a01 Merge branch 'exchangerates' of github.com:schoentoon/wtf into schoentoon-exchangerates 2019-11-15 20:56:44 -08:00
Toon Schoenmakers
244a86cb7e Implemented a module that shows exchange rates from exchangeratesapi.io 2019-11-12 18:06:45 +01:00
Omar
29d3a16491
add pocket widget 2019-11-10 13:59:20 +01: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
ada434b3c3
Merge pull request #715 from Ameobea/twitterstats
Twitterstats
2019-10-29 17:55:57 -07:00
Cizer Pereira
e7e1463181 feat: Add new widget for football scores and standings 2019-10-24 15:28:01 +02: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
Sean Smith
68e56eaa10 Add new urlutil option, and have these be reloadable
Handles #897 and part of #593
2019-10-12 17:44:28 -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
Jason Schweier
f56cc483b4 Add Buildkite widget 2019-10-03 10:44:48 -04:00
Lawrence Craft
b0d6790abe Adding subreddit module 2019-09-26 22:58:43 +01:00
Chris Cummer
e13e82a2b4 Merge branch 'add-devto-modules' of github.com:VictorAvelar/wtf into VictorAvelar-add-devto-modules 2019-09-22 17:44:07 -07:00
Chris Cummer
bb10669b09 Add env var defaults to AzureDevops module 2019-09-21 04:13:13 -07:00
Chris Cummer
1bfd26a55c Merge branch 'feature/azure-dev-ops-module' of github.com:v-braun/wtf into v-braun-feature/azure-dev-ops-module 2019-09-21 03:47:30 -07:00
vavelar
425a08522e Implementation of WTF devto module 2019-09-20 17:31:11 +02:00
Viktor Braun (v_b)
64985c3beb implemented azure devops widget 2019-09-19 10:11:59 +02:00
Sean Smith
9f81207037 Clean up cfg error handling a bit
Pass in the actual file being used, rather than hardcoded `config.yaml`
Differences between two error messages are not that distinct
Centralize on one and clean up all the `isCustomConfig` tracking
2019-09-12 20:28:24 -04:00
Chris Cummer
79bc78a5f7 Don't die if the watcher can't find the file. Continue trying 2019-09-10 21:48:33 -07:00
Narendra L
7756df16bb
Merge branch 'master' into add_digitalclock_module 2019-09-09 10:11:51 +02:00
Narendra L
6de3f0f5b9 modules/digitalclock/ 2019-09-08 23:58:25 +02:00
Chris Cummer
7dd4e4909b Merge branch 'feat/nr-multi' of github.com:Seanstoppable/wtf into Seanstoppable-feat/nr-multi 2019-09-08 05:11:05 -07:00
Chris Cummer
e441e7ebf1 Fix go.mod merge conflicts 2019-09-07 07:01:56 -07:00
Chris D Brown
3758ade094 feat(newrelic): Display deploy information from multiple apps 2019-09-04 22:52:01 -04:00
Chris Cummer
85fc8f28a1 Include in extended tcell terminal descriptions 2019-09-04 05:37:54 -07:00
Viktor Braun (v_b)
8bd0bf722c implemented docker module 2019-09-03 17:33:51 +02:00