Chris Cummer
e43430e7ad
Merge branch 'openutilupdate' of github.com:Seanstoppable/wtf into Seanstoppable-openutilupdate
2019-10-15 15:27:56 -04:00
Tim Scheuermann
226796099c
Revert "Revert "Call the os.UserHomeDir in Home""
...
This reverts commit 270daf31ea007147e1b04770e501688472750a7e.
2019-10-15 11:09:03 +02: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
Tim Scheuermann
270daf31ea
Revert "Call the os.UserHomeDir in Home"
...
This reverts commit d3b6bc503a583bd2d841a9fba439b9f7e4056ff0.
2019-10-11 23:36:21 +02:00
Tim Scheuermann
d3b6bc503a
Call the os.UserHomeDir in Home
2019-10-11 23:18:08 +02:00
Tim Scheuermann
cdf37f053c
Optimized ParseJson and ExecuteCommand
2019-10-11 23:17:01 +02:00
Tim Scheuermann
5b4a49d11f
Preallocate slice
2019-10-11 23:13:38 +02:00
Tim Scheuermann
ca18a14d43
Preallocate slices and remove double type assertion
2019-10-11 23:13:18 +02:00
Tim Scheuermann
4ef6eb76c6
Added utils.CalculateDimensions
2019-10-09 14:54:47 +02: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
Sean Smith
36fbad54d8
Fix JSON parsing
...
Issue #600 points out Jenkins module panics occasionally
I noticed that a number of places panic because of JSON parsing
Centralize JSON parsing, have it return an error, and have widgets
report the error
2019-09-07 15:14:33 -04:00
Christopher Hall
e8bb4070d9
use xdg-open as default open method for http/https
...
This should be available on all BSD and similar OSs
Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>
2019-08-28 11:33:28 +08:00
Chris Cummer
c832db9ddb
Add utils.Includes() helper function
2019-08-20 16:39:15 -07:00
Chris Cummer
0db7e7c533
Catch intermittent failure with HIBP module
2019-08-05 17:57:29 -07:00
Chris Cummer
3e2d6eb5fa
Fix the naming and specs for some utility functions
2019-08-05 11:40:42 -07:00
Chris Cummer
ecd95ba2d2
Move a bunch of code out of utils.go and into dedicated files
2019-08-05 11:16:26 -07:00
Chris Cummer
4e46fff145
Move the utils.go file into the /utils directory
2019-08-05 10:50:12 -07:00
Chris Cummer
2da3344612
Get --module=[modname] working again (broke when position config validation was added)
2019-07-06 01:55:54 -07:00
Sean Smith
d8f337884f
Add more 'man page' like functionality
2019-05-24 00:06:10 -04:00
Sean Smith
c328ba4c11
Split up logger and widget
...
This allows us to use the logger from the wtf directory
For example when trying to debug sort ordering in focus_tracker
2019-05-10 19:07:52 -04:00