Merge branch 'release/v0.5.0' into change-detection

This commit is contained in:
Svilen Markov
2024-05-30 22:55:01 +01:00
committed by GitHub
44 changed files with 1428 additions and 177 deletions

View File

@@ -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)
}