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

Add a working Have I Been Pwned module

This commit is contained in:
Chris Cummer
2019-06-20 09:28:48 -04:00
parent 1fa2176412
commit 6216076b74
6 changed files with 314 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ import (
"github.com/wtfutil/wtf/modules/gitter"
"github.com/wtfutil/wtf/modules/gspreadsheets"
"github.com/wtfutil/wtf/modules/hackernews"
"github.com/wtfutil/wtf/modules/hibp"
"github.com/wtfutil/wtf/modules/ipaddresses/ipapi"
"github.com/wtfutil/wtf/modules/ipaddresses/ipinfo"
"github.com/wtfutil/wtf/modules/jenkins"
@@ -114,6 +115,9 @@ func MakeWidget(
case "hackernews":
settings := hackernews.NewSettingsFromYAML(widgetName, moduleConfig, globalConfig)
widget = hackernews.NewWidget(app, pages, settings)
case "hibp":
settings := hibp.NewSettingsFromYAML(widgetName, moduleConfig, globalConfig)
widget = hibp.NewWidget(app, settings)
case "ipapi":
settings := ipapi.NewSettingsFromYAML(widgetName, moduleConfig, globalConfig)
widget = ipapi.NewWidget(app, settings)