mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Merge branch 'master' into ipinfo-useless-condition
This commit is contained in:
commit
8808e3a8a3
@ -25,10 +25,6 @@ func NewWidget() *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
client := NewClient("https://api.bamboohr.com/api/gateway.php")
|
client := NewClient("https://api.bamboohr.com/api/gateway.php")
|
||||||
todayItems := client.Away(
|
todayItems := client.Away(
|
||||||
"timeOff",
|
"timeOff",
|
||||||
|
@ -29,10 +29,6 @@ func NewWidget() *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.display(widget.clockColl.Sorted())
|
widget.display(widget.clockColl.Sorted())
|
||||||
}
|
}
|
||||||
|
@ -34,10 +34,6 @@ func NewWidget() *Widget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.execute()
|
widget.execute()
|
||||||
widget.View.SetTitle(fmt.Sprintf(" %s ", widget))
|
widget.View.SetTitle(fmt.Sprintf(" %s ", widget))
|
||||||
|
@ -100,10 +100,6 @@ func makeMarketCurrency(name string) *mCurrency {
|
|||||||
|
|
||||||
// Refresh & update after interval time
|
// Refresh & update after interval time
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.updateSummary()
|
widget.updateSummary()
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.display()
|
widget.display()
|
||||||
|
@ -38,10 +38,6 @@ func NewWidget() *Widget {
|
|||||||
|
|
||||||
// Refresh & update after interval time
|
// Refresh & update after interval time
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.updateCurrencies()
|
widget.updateCurrencies()
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
|
|
||||||
|
@ -29,10 +29,6 @@ func NewWidget() *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
events, _ := Fetch()
|
events, _ := Fetch()
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
|
@ -49,10 +49,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages) *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
repoPaths := wtf.ToStrs(Config.UList("wtf.mods.git.repositories"))
|
repoPaths := wtf.ToStrs(Config.UList("wtf.mods.git.repositories"))
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
|
@ -51,10 +51,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages) *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, repo := range widget.GithubRepos {
|
for _, repo := range widget.GithubRepos {
|
||||||
repo.Refresh()
|
repo.Refresh()
|
||||||
}
|
}
|
||||||
|
@ -47,10 +47,6 @@ func NewWidget() *Widget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.ipinfo()
|
widget.ipinfo()
|
||||||
widget.View.Clear()
|
widget.View.Clear()
|
||||||
|
@ -25,10 +25,6 @@ func NewWidget() *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
searchResult, err := IssuesFor(Config.UString("wtf.mods.jira.username"), Config.UString("wtf.mods.jira.project", ""), Config.UString("wtf.mods.jira.jql", ""))
|
searchResult, err := IssuesFor(Config.UString("wtf.mods.jira.username"), Config.UString("wtf.mods.jira.project", ""), Config.UString("wtf.mods.jira.jql", ""))
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
|
@ -26,10 +26,6 @@ func NewWidget() *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
app, appErr := Application()
|
app, appErr := Application()
|
||||||
deploys, depErr := Deployments()
|
deploys, depErr := Deployments()
|
||||||
|
|
||||||
|
@ -26,10 +26,6 @@ func NewWidget() *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
data, err := Fetch()
|
data, err := Fetch()
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
|
@ -28,10 +28,6 @@ func NewWidget() *Widget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.Battery.Refresh()
|
widget.Battery.Refresh()
|
||||||
|
|
||||||
|
@ -30,10 +30,6 @@ func NewWidget() *Widget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.prettyWeather()
|
widget.prettyWeather()
|
||||||
|
|
||||||
|
@ -26,10 +26,6 @@ func NewWidget() *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
data := NewSecurityData()
|
data := NewSecurityData()
|
||||||
data.Fetch()
|
data.Fetch()
|
||||||
|
|
||||||
|
@ -28,10 +28,6 @@ func NewWidget() *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
|
|
||||||
widget.View.SetText(
|
widget.View.SetText(
|
||||||
|
@ -33,10 +33,6 @@ func NewWidget(date, version string) *Widget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
|
|
||||||
widget.View.SetText(
|
widget.View.SetText(
|
||||||
|
@ -48,10 +48,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages) *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.View.SetTitle(fmt.Sprintf("%s %s", widget.Name, widget.filePath))
|
widget.View.SetTitle(fmt.Sprintf("%s %s", widget.Name, widget.filePath))
|
||||||
|
|
||||||
|
@ -61,10 +61,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages) *Widget {
|
|||||||
/* -------------------- Exported Functions -------------------- */
|
/* -------------------- Exported Functions -------------------- */
|
||||||
|
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.load()
|
widget.load()
|
||||||
widget.display()
|
widget.display()
|
||||||
|
@ -74,10 +74,6 @@ func (widget *Widget) Fetch(cityIDs []int) []*owm.CurrentWeatherData {
|
|||||||
// Refresh fetches new data from the OpenWeatherMap API and loads the new data into the.
|
// Refresh fetches new data from the OpenWeatherMap API and loads the new data into the.
|
||||||
// widget's view for rendering
|
// widget's view for rendering
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.Data = widget.Fetch(wtf.ToInts(Config.UList("wtf.mods.weather.cityids", widget.defaultCityCodes())))
|
widget.Data = widget.Fetch(wtf.ToInts(Config.UList("wtf.mods.weather.cityids", widget.defaultCityCodes())))
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user