Initial TopDeck: self-hosted ranked favorites

A single Go binary with SQLite that serves a public page of the owner's
ranked lists (movies, TV, albums, songs, video games, theater) and a
login-gated editor.

- Lists of 1–65,535 entries (100 recommended), several per category
- Search-to-add via TMDB, TheTVDB, IGDB, Deezer/MusicBrainz, Wikipedia;
  manual entry as a fallback
- Theater entries carry a production (Broadway, tour, …), venue and cast
- Artwork cached locally; URL override and uploads
- Drag, arrow and type-a-rank reordering; paginated for long lists
- 12 theme presets plus custom CSS
- First-run setup code or env-provided admin; bcrypt, rate-limited login,
  CSRF-guarded JSON API
- Dockerfile and docker-compose.yml

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cdnutterandClaude Opus 5.5 committed 2026-09-24 16:54:19 -07:00
commit e9a75a968a
53 files changed
+7078

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
{{define "items"}}
<ol class="items items--{{.Layout}} aspect-{{.Category.Aspect}}" data-items data-list-title="{{.Title}}" start="{{with index .Items 0}}{{.Rank}}{{end}}">
{{- range .Items}}
<li class="item{{if le .Rank 3}} item--top item--top{{.Rank}}{{end}}">
<button type="button" class="item-btn" data-item="{{.ID}}">
<span class="item-art">
{{- if .Image}}<img src="{{.Image}}" alt="" loading="lazy" decoding="async">{{else}}<span class="art-fallback">{{icon $.Category.Icon}}</span>{{end -}}
<span class="rank-badge" aria-hidden="true">{{.Rank}}</span>
</span>
<span class="item-rank" aria-hidden="true">{{.Rank}}</span>
<span class="item-body">
<span class="item-title"><span class="sr-only">#{{.Rank}}: </span>{{.Title}}</span>
{{- if .Badge}}
{{- with .Subtitle}}<span class="item-sub">{{.}}</span>{{end}}
<span class="item-tags"><span class="badge">{{.Badge}}</span>{{with .Year}}<span class="item-year">{{.}}</span>{{end}}</span>
{{- else if or .Subtitle .Year}}
<span class="item-sub">{{.Subtitle}}{{if and .Subtitle .Year}}<span class="dot" aria-hidden="true">·</span>{{end}}{{.Year}}</span>
{{- end}}
{{- with .Note}}<span class="item-note">{{.}}</span>{{end}}
</span>
</button>
</li>
{{- end}}
</ol>
<script type="application/json" class="items-data">{{.Items}}</script>
{{end}}