feat: Dahoam start page with accounts, cards and search
images / check (push) Successful in 27s
images / image (push) Successful in 32s

Replica of the reference start page: wallpaper, serif clock, search bar
and link cards, as a TanStack Start app.

- Better Auth: email/password and OIDC single sign-on
- Postgres with Drizzle for the auth tables, cards, links, settings and
  uploaded wallpapers; the server applies the migrations on start
- cards group links; links are dragged inside and between cards
- search with DuckDuckGo, SearXNG or Google, suggestions and / commands
- settings page: name, search engine, wallpaper, account
- UI from collabry-components, copied into src/vendor/collabry
- Dockerfile and a Gitea workflow that checks the code, builds the image
  for amd64 and arm64 and pushes it to the registry on main
This commit is contained in:
Niklas Haiden
2026-11-18 00:09:19 +01:00
parent 54914e8e03
commit 8df74a849c
80 changed files with 9642 additions and 1572 deletions
+68
View File
@@ -0,0 +1,68 @@
#!/bin/sh
# Copies the Collabry components this app uses into src/vendor/collabry.
# Usage: scripts/sync-collabry.sh [ref] (branch, tag or SHA; default: the pinned commit)
set -eu
UPSTREAM=https://git.nhaiden.io/niklas/collabry-components.git
REF=${1:-f94d10e8e9137724350cfd62389d9b84018b4f40}
DEST=src/vendor/collabry
# A part and the ui/ primitives it imports. Add a line, run the script again.
FILES="
lib/cn.ts
lib/portal.ts
styles/index.css
styles/tokens.css
components/ThemeProvider/ThemeProvider.tsx
components/Button/Button.tsx
components/Spinner/Spinner.tsx
components/Card/Card.tsx
components/Field/Field.tsx
components/Layout/Layout.tsx
components/Settings/Settings.tsx
components/SegmentedControl/SegmentedControl.tsx
components/ui/button.tsx
components/ui/card.tsx
components/ui/dialog.tsx
components/ui/input.tsx
components/ui/kbd.tsx
components/ui/label.tsx
components/ui/native-select.tsx
components/ui/radio-group.tsx
components/ui/textarea.tsx
components/ui/toggle.tsx
components/ui/toggle-group.tsx
"
cd "$(dirname "$0")/.."
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' EXIT
git clone --quiet "$UPSTREAM" "$tmp"
git -C "$tmp" checkout --quiet "$REF"
rm -rf "$DEST"
for file in $FILES; do
mkdir -p "$DEST/$(dirname "$file")"
cp "$tmp/src/$file" "$DEST/$file"
done
cat > "$DEST/UPSTREAM.md" <<MD
# Vendored: Collabry components
Do not edit the files in this directory. They are copies of upstream \`src/\`, so a diff
against upstream stays empty. App components go in \`src/components/\`.
- Upstream: $UPSTREAM
- Commit: \`$(git -C "$tmp" rev-parse HEAD)\`
- Copied: only the files listed in \`scripts/sync-collabry.sh\`
- Local patches: none
Update or add a component: edit the list in \`scripts/sync-collabry.sh\`, then run
\`scripts/sync-collabry.sh [ref]\` and \`pnpm typecheck && pnpm build\`.
Upstream files import \`@/lib/…\` and \`@/components/ui/…\`. \`tsconfig.json\` maps \`@/*\` to
\`src/*\` first and to this directory second, so they resolve here without a rewrite.
Do not create \`src/lib/cn.ts\`, \`src/lib/portal.ts\` or \`src/components/ui/\`: they would
take the place of the vendored files.
The look is changed from outside: tokens in \`src/styles.css\`, classes in \`src/components/\`.
MD