Cabin Chat 4.0: accounts, https, PWA, mentions, notifications

- accounts with name + password (salted sha256), one account on several
  devices at once, profile menu: change password, profile picture,
  link another device (QR code + one-time link), logout, delete account
- @mentions with picker and highlighting
- https by default with the router web admin's certificate; --http,
  --cert/--key installer options
- logo/favicon, app manifest, service worker (installable PWA)
- browser notifications via the service worker, no internet needed
- devserver: https option, ignore connections reset by the browser

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal Suter
2026-11-16 15:28:11 +01:00
co-authored by Claude Opus 5.5
parent 863d30eeba
commit 1459b3228d
15 changed files with 4118 additions and 353 deletions
+9 -2
View File
@@ -12,12 +12,19 @@ PAYLOAD=dist/.payload
mkdir -p dist
(cd www && find . -type f ! -path './img/*' ! -name '.*' | sort) | while IFS= read -r f; do
f=${f#./}
dir=$(dirname "$f")
[ "$dir" = . ] || echo " mkdir -p \"\$STAGE/$dir\""
case $f in *.png|*.jpg|*.ico)
# binary: octal escapes for the shell's printf builtin, 16 bytes per line
echo " {"
od -An -v -to1 "www/$f" | awk 'NF { s = ""; for (i = 1; i <= NF; i++) s = s "\\" $i; print "\tprintf '\''" s "'\''" }'
echo " } > \"\$STAGE/$f\""
continue ;;
esac
if grep -q "^$DELIM\$" "www/$f"; then
echo "build: $f contains the line $DELIM - cannot embed it" >&2
exit 1
fi
dir=$(dirname "$f")
[ "$dir" = . ] || echo " mkdir -p \"\$STAGE/$dir\""
echo " cat > \"\$STAGE/$f\" <<'$DELIM'"
cat "www/$f"
[ -z "$(tail -c 1 "www/$f")" ] || echo