gitoriaLog in with ident

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3eff126d3eff126dnotes#3: installable app (manifest + own icon/favicon; notes' own sw.js kept)mre3eff126d/components/notes.hl

880 B

  1. // components/notes.hl — THE NOTES PAGE, `/` and `/note/:id`. Since ticket notes#2 the notes area is not rendered here:
  2. // /notes-offline.js fills <note-book id="notesapp"> from the browser's own copy (IndexedDB) — the sidebar, the
  3. // selected note in <md-editor>, New note, Delete — and syncs it with the server through /api/notes. So this page
  4. // carries no note data at all (the service worker can keep it for offline use). Signed out: only the hint to log in.
  5. parent './main.hl'
  6. import { siteName } from '../project.hl'
  7. import { userIdOfSession } from '../users.hl'
  8. session = null
  9. id = null
  10. signedIn = userIdOfSession(session) != null
  11. signedOut = userIdOfSession(session) == null
  12. __title = siteName
  13. View {
  14. if (signedOut) { p { id = "loginhint" class = "muted" "Log in with ident (top right) to see your notes." } }
  15. if (signedIn) { noteBook { id = "notesapp" } }
  16. }

Branches

Latest commits

  • 3eff126dnotes#3: installable app (manifest + own icon/favicon; notes' own sw.js kept)mre
  • 9883c540deploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • eee693b8deploy.sh: never send .git or .gitignore to Byrodinmre
  • c8904061State of 2026-09-27, before the move to gitoriamre