Skip to content

A self-hosted dashboard that puts all your feeds in one place

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

Svilen Markovf4f789212313
diff --cc internal/feed/utils.go
index 1409cee,6ea475f..16c376b
--- a/internal/feed/utils.go
+++ b/internal/feed/utils.go
@@@ -79,8 -78,12 +79,19 @@@ func maybeCopySliceWithoutZeroValues[T
return values
}
++
+var urlSchemePattern = regexp.MustCompile(`^[a-z]+:\/\/`)
+
+func stripURLScheme(url string) string {
+ return urlSchemePattern.ReplaceAllString(url, "")
+}
++
+ func limitStringLength(s string, max int) (string, bool) {
+ asRunes := []rune(s)
+
+ if len(asRunes) > max {
+ return string(asRunes[:max]), true
+ }
+
+ return s, false
+ }
diff --cc internal/widget/widget.go
index 2158dd4,aff6bf3..8af7964
--- a/internal/widget/widget.go
+++ b/internal/widget/widget.go
@@@ -43,10 -45,10 +45,12 @@@ func New(widgetType string) (Widget, er
return &TwitchGames{}, nil
case "twitch-channels":
return &TwitchChannels{}, nil
+ case "change-detection":
+ return &ChangeDetection{}, nil
case "repository":
return &Repository{}, nil
+ case "search":
+ return &Search{}, nil
default:
return nil, fmt.Errorf("unknown widget type: %s", widgetType)
}