mirror of
https://github.com/Xevion/glance.git
synced 2025-12-15 04:11:59 -06:00
Merge branch 'release/v0.5.0' into change-detection
This commit is contained in:
@@ -19,6 +19,8 @@ func New(widgetType string) (Widget, error) {
|
||||
switch widgetType {
|
||||
case "calendar":
|
||||
return &Calendar{}, nil
|
||||
case "clock":
|
||||
return &Clock{}, nil
|
||||
case "weather":
|
||||
return &Weather{}, nil
|
||||
case "bookmarks":
|
||||
@@ -47,6 +49,8 @@ func New(widgetType string) (Widget, error) {
|
||||
return &ChangeDetection{}, nil
|
||||
case "repository":
|
||||
return &Repository{}, nil
|
||||
case "search":
|
||||
return &Search{}, nil
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown widget type: %s", widgetType)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user