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>
34 lines
1.2 KiB
JavaScript
34 lines
1.2 KiB
JavaScript
// Everything one account holds on the server, in the same file format the app's own "Download backup"
|
|
// makes, so it can be restored from Settings on any device.
|
|
export const BACKUP_APP = 'bible-study-project';
|
|
export const BACKUP_VERSION = 1;
|
|
|
|
// `store` supplies the account's data: { projects(), prefs(), marks(), ink(), plans() }.
|
|
export function buildAccountExport(user, store, now = new Date()) {
|
|
const prefs = store.prefs() ?? {};
|
|
const marks = store.marks() ?? {};
|
|
const plans = store.plans() ?? {};
|
|
return {
|
|
app: BACKUP_APP,
|
|
version: BACKUP_VERSION,
|
|
exportedAt: now.toISOString(),
|
|
account: user.email,
|
|
source: 'server',
|
|
projects: store.projects(),
|
|
reader: {
|
|
bookmarks: marks.bookmarks ?? {},
|
|
highlights: marks.highlights ?? [],
|
|
colorLabels: prefs.colorLabels?.v ?? {},
|
|
ink: store.ink() ?? {},
|
|
},
|
|
readingHistory: store.history?.() ?? { chapters: {}, days: [] },
|
|
readingPlans: {
|
|
progress: plans.progress ?? [],
|
|
customPlans: plans.customPlans ?? [],
|
|
activity: plans.activity ?? [],
|
|
},
|
|
};
|
|
}
|
|
|
|
export const accountExportName = (now = new Date()) => `bible-study-account-${now.toISOString().slice(0, 10)}.json`;
|