A self-hosted dashboard that puts all your feeds in one place
Go aggregatordashboarddockerfeed-readergohomelabhomepagemonitoringredditrssrss-readerself-hostedstartpageyoutube
Merge branch 'release/v0.6.0' into main
Svilen Markov9899f6b761c3
diff --cc internal/assets/templates/page.htmlindex c50dfe2,73c17d0..efb8529--- a/internal/assets/templates/page.html+++ b/internal/assets/templates/page.html@@@ -25,47 -27,48 +27,50 @@@{{ end }}{{ define "document-body" }}- <div class="header-container content-bounds">- <div class="header flex padding-inline-widget widget-content-frame">- <!-- TODO: Replace G with actual logo, first need an actual logo -->- <div class="logo">{{ .App.Config.Branding.ShortName }}</div>- <div class="nav flex grow">- {{ template "navigation-links" . }}+ <div class="flex flex-column height-100">+ {{ if not .Page.HideDesktopNavigation }}+ <div class="header-container content-bounds">+ <div class="header flex padding-inline-widget widget-content-frame">+ <!-- TODO: Replace G with actual logo, first need an actual logo -->+ <div class="logo">G</div>+ <div class="nav flex grow">+ {{ template "navigation-links" . }}+ </div></div></div>- </div>+ {{ end }}- <div class="mobile-navigation">- <div class="mobile-navigation-icons">- <a class="mobile-navigation-label" href="#top">↑</a>- {{ range $i, $column := .Page.Columns }}- <label class="mobile-navigation-label"><input type="radio" class="mobile-navigation-input" name="column" value="{{ $i }}" autocomplete="off"{{ if eq "full" $column.Size }} checked{{ end }}><div class="mobile-navigation-pill"></div></label>- {{ end }}- <label class="mobile-navigation-label"><input type="checkbox" class="mobile-navigation-page-links-input" autocomplete="on"><div class="hamburger-icon"></div></label>- </div>- <div class="mobile-navigation-page-links">- {{ template "navigation-links" . }}+ <div class="mobile-navigation">+ <div class="mobile-navigation-icons">+ <a class="mobile-navigation-label" href="#top">↑</a>+ {{ range $i, $column := .Page.Columns }}+ <label class="mobile-navigation-label"><input type="radio" class="mobile-navigation-input" name="column" value="{{ $i }}" autocomplete="off"{{ if eq "full" $column.Size }} checked{{ end }}><div class="mobile-navigation-pill"></div></label>+ {{ end }}+ <label class="mobile-navigation-label"><input type="checkbox" class="mobile-navigation-page-links-input" autocomplete="on"><div class="hamburger-icon"></div></label>+ </div>+ <div class="mobile-navigation-page-links">+ {{ template "navigation-links" . }}+ </div></div>- </div>- <div class="content-bounds">- <div class="page" id="page">- <div class="page-loading-container">- <!-- TODO: add a bigger/better loading indicator -->- <div class="loading-icon"></div>+ <div class="content-bounds grow">+ <div class="page" id="page">+ <div class="page-content" id="page-content"></div>+ <div class="page-loading-container">+ <!-- TODO: add a bigger/better loading indicator -->+ <div class="loading-icon"></div>+ </div></div></div>- </div>- {{ if .App.Config.Branding.Show }}- <div class="footer flex items-center flex-column">- <div>- <span class="size-h3">Glance</span> ({{ .App.Version }})++ {{ if not .App.Config.Branding.Show }}+ <div class="footer flex items-center flex-column">+ <div>+ <a class="size-h3" href="https://github.com/glanceapp/glance" target="_blank" rel="noreferrer">Glance</a> {{ if ne "dev" .App.Version }}<a class="visited-indicator" title="Release notes" href="https://github.com/glanceapp/glance/releases/tag/{{ .App.Version }}" target="_blank" rel="noreferrer">{{ .App.Version }}</a>{{ else }}({{ .App.Version }}){{ end }}+ </div></div>- <ul class="list-horizontal-text margin-top-5 size-h5 color-primary">- <li><a href="https://github.com/glanceapp/glance/issues" target="_blank" rel="noreferrer">Report issue</a></li>- <li><a href="https://github.com/glanceapp/glance/discussions" target="_blank" rel="noreferrer">Submit feedback</a></li>- </ul>++ {{ end }}++ <div class="mobile-navigation-offset"></div></div>{{ end }}- {{ end }}diff --cc internal/glance/glance.goindex 9bdca4e,ce7a7a0..d31d08f--- a/internal/glance/glance.go+++ b/internal/glance/glance.go@@@ -38,18 -40,14 +40,20 @@@ type Theme struct}type Server struct {- Host string `yaml:"host"`- Port uint16 `yaml:"port"`- AssetsPath string `yaml:"assets-path"`- StartedAt time.Time `yaml:"-"`+ Host string `yaml:"host"`+ Port uint16 `yaml:"port"`+ AssetsPath string `yaml:"assets-path"`+ BaseURL string `yaml:"base-url"`+ AssetsHash string `yaml:"-"`+ StartedAt time.Time `yaml:"-"` // used in custom css file}+type Branding struct {+ Show bool `yaml:show`+ Name string `yaml:name`+ ShortName string `yaml:"short-name"`+}+type Column struct {Size string `yaml:"size"`Widgets widget.Widgets `yaml:"widgets"`