mirror of
				https://github.com/taigrr/wtf
				synced 2025-01-18 04:03:14 -08:00 
			
		
		
		
	Merge pull request #466 from Seanstoppable/moreappcleanup
Remove more app usages which are unnecessary
This commit is contained in:
		
						commit
						745ecbf94d
					
				| @ -12,7 +12,6 @@ const APIURI = "https://api.bamboohr.com/api/gateway.php" | |||||||
| type Widget struct { | type Widget struct { | ||||||
| 	wtf.TextWidget | 	wtf.TextWidget | ||||||
| 
 | 
 | ||||||
| 	app      *tview.Application |  | ||||||
| 	settings *Settings | 	settings *Settings | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -20,7 +19,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | |||||||
| 	widget := Widget{ | 	widget := Widget{ | ||||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||||
| 
 | 
 | ||||||
| 		app:      app, |  | ||||||
| 		settings: settings, | 		settings: settings, | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -20,7 +20,6 @@ const baseURL = "https://bittrex.com/api/v1.1/public/getmarketsummary" | |||||||
| type Widget struct { | type Widget struct { | ||||||
| 	wtf.TextWidget | 	wtf.TextWidget | ||||||
| 
 | 
 | ||||||
| 	app      *tview.Application |  | ||||||
| 	settings *Settings | 	settings *Settings | ||||||
| 	summaryList | 	summaryList | ||||||
| } | } | ||||||
| @ -30,7 +29,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | |||||||
| 	widget := Widget{ | 	widget := Widget{ | ||||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||||
| 
 | 
 | ||||||
| 		app:         app, |  | ||||||
| 		settings:    settings, | 		settings:    settings, | ||||||
| 		summaryList: summaryList{}, | 		summaryList: summaryList{}, | ||||||
| 	} | 	} | ||||||
|  | |||||||
| @ -14,7 +14,6 @@ import ( | |||||||
| type Widget struct { | type Widget struct { | ||||||
| 	wtf.TextWidget | 	wtf.TextWidget | ||||||
| 
 | 
 | ||||||
| 	app          *tview.Application |  | ||||||
| 	device_token string | 	device_token string | ||||||
| 	settings     *Settings | 	settings     *Settings | ||||||
| } | } | ||||||
| @ -23,7 +22,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | |||||||
| 	widget := Widget{ | 	widget := Widget{ | ||||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||||
| 
 | 
 | ||||||
| 		app:          app, |  | ||||||
| 		device_token: settings.deviceToken, | 		device_token: settings.deviceToken, | ||||||
| 		settings:     settings, | 		settings:     settings, | ||||||
| 	} | 	} | ||||||
|  | |||||||
| @ -14,7 +14,6 @@ import ( | |||||||
| type Widget struct { | type Widget struct { | ||||||
| 	wtf.TextWidget | 	wtf.TextWidget | ||||||
| 
 | 
 | ||||||
| 	app           *tview.Application |  | ||||||
| 	priceWidget   *price.Widget | 	priceWidget   *price.Widget | ||||||
| 	toplistWidget *toplist.Widget | 	toplistWidget *toplist.Widget | ||||||
| 	settings      *Settings | 	settings      *Settings | ||||||
| @ -25,7 +24,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | |||||||
| 	widget := Widget{ | 	widget := Widget{ | ||||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||||
| 
 | 
 | ||||||
| 		app:           app, |  | ||||||
| 		priceWidget:   price.NewWidget(settings.priceSettings), | 		priceWidget:   price.NewWidget(settings.priceSettings), | ||||||
| 		toplistWidget: toplist.NewWidget(settings.toplistSettings), | 		toplistWidget: toplist.NewWidget(settings.toplistSettings), | ||||||
| 		settings:      settings, | 		settings:      settings, | ||||||
|  | |||||||
| @ -14,7 +14,6 @@ type Widget struct { | |||||||
| 
 | 
 | ||||||
| 	GithubRepos []*GithubRepo | 	GithubRepos []*GithubRepo | ||||||
| 
 | 
 | ||||||
| 	app      *tview.Application |  | ||||||
| 	settings *Settings | 	settings *Settings | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -24,7 +23,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) * | |||||||
| 		MultiSourceWidget: wtf.NewMultiSourceWidget(settings.common, "repository", "repositories"), | 		MultiSourceWidget: wtf.NewMultiSourceWidget(settings.common, "repository", "repositories"), | ||||||
| 		TextWidget:        wtf.NewTextWidget(app, settings.common, true), | 		TextWidget:        wtf.NewTextWidget(app, settings.common, true), | ||||||
| 
 | 
 | ||||||
| 		app:      app, |  | ||||||
| 		settings: settings, | 		settings: settings, | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -16,7 +16,6 @@ import ( | |||||||
| type Widget struct { | type Widget struct { | ||||||
| 	wtf.TextWidget | 	wtf.TextWidget | ||||||
| 
 | 
 | ||||||
| 	app      *tview.Application |  | ||||||
| 	result   string | 	result   string | ||||||
| 	settings *Settings | 	settings *Settings | ||||||
| } | } | ||||||
| @ -41,7 +40,6 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget { | |||||||
| 	widget := Widget{ | 	widget := Widget{ | ||||||
| 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | 		TextWidget: wtf.NewTextWidget(app, settings.common, false), | ||||||
| 
 | 
 | ||||||
| 		app:      app, |  | ||||||
| 		settings: settings, | 		settings: settings, | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -23,7 +23,6 @@ type Widget struct { | |||||||
| 	wtf.MultiSourceWidget | 	wtf.MultiSourceWidget | ||||||
| 	wtf.TextWidget | 	wtf.TextWidget | ||||||
| 
 | 
 | ||||||
| 	app      *tview.Application |  | ||||||
| 	settings *Settings | 	settings *Settings | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -34,7 +33,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) * | |||||||
| 		MultiSourceWidget: wtf.NewMultiSourceWidget(settings.common, "filePath", "filePaths"), | 		MultiSourceWidget: wtf.NewMultiSourceWidget(settings.common, "filePath", "filePaths"), | ||||||
| 		TextWidget:        wtf.NewTextWidget(app, settings.common, true), | 		TextWidget:        wtf.NewTextWidget(app, settings.common, true), | ||||||
| 
 | 
 | ||||||
| 		app:      app, |  | ||||||
| 		settings: settings, | 		settings: settings, | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user