Invite-only sign-up, present mode, series, handouts, templates, dictation, progress, sharing
Build and Push Docker Image / build-and-push (push) Successful in 6m47s
Build and Push Docker Image / build-and-push (push) Successful in 6m47s
- Admin: sign-up Open / Invite only / Closed with single-use invite links - Present mode for scripts (auto-scroll) and outlines (step through, pace vs planned minutes) - Series: group studies on the dashboard, filter by series, calendar file for a study's sessions - Lesson handout: printable page per session (passage, outline, questions, writing lines) - Save a chunk's notes as your own study template (synced) - Voice dictation for notes and scripts (browser speech recognition) - Reading progress: map of the 66 books and a calendar of days read, synced and merged across devices - Export highlights and bookmarks as Markdown or Word, grouped by named colour - Verse of the day push to the ntfy topic (needs IQBIBLE_API_KEY) - Sharing: co-teacher editing via single-use invite links; read-only links can expire and take a passcode Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
88bc59bac0
commit
54cb1c217d
73 files changed
+2739
-134
No files matched your search
@@ -24,6 +24,21 @@ export function cleanPrefValue(key, value) {
|
||||
}
|
||||
return out;
|
||||
}
|
||||
if (key === 'studyTemplates') {
|
||||
// The person's own study templates: prompts for the note boxes and scaffold text to start each chunk with
|
||||
if (!Array.isArray(value)) return undefined;
|
||||
const text = (v, max) => (typeof v === 'string' ? v.slice(0, max) : '');
|
||||
const fields = (o, names, max) => {
|
||||
const out = {};
|
||||
for (const n of names) { const t = text(o?.[n], max); if (t.trim()) out[n] = t; }
|
||||
return out;
|
||||
};
|
||||
return value.slice(0, 12).filter((t) => t && typeof t.id === 'string' && /^user-[\w-]{1,40}$/.test(t.id) && typeof t.name === 'string' && t.name.trim()).map((t) => {
|
||||
const prompts = fields(t.prompts, ['observation', 'interpretation', 'application'], 800);
|
||||
const starters = fields(t.starters, ['generalNotes', 'observation', 'interpretation', 'application'], 2000);
|
||||
return { id: t.id, name: text(t.name, 40).trim(), description: text(t.description, 120), ...(Object.keys(prompts).length ? { prompts } : {}), ...(Object.keys(starters).length ? { starters } : {}) };
|
||||
});
|
||||
}
|
||||
if (key === 'position') {
|
||||
if (!value || typeof value !== 'object') return undefined;
|
||||
const book = String(value.book ?? '').toUpperCase();
|
||||
|
||||
Reference in new issue
Block a user