Sync Canvas LMS export feature + refreshed Settings screenshot

Brings the share build up to date with the main project: QTI .zip export
and optional direct Canvas API push, plus the Canvas settings card.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-25 16:43:35 -04:00
co-authored by Claude Opus 4.8
parent 3c4b80a6d8
commit 4036ad5839
15 changed files with 1125 additions and 1 deletions
+7
View File
@@ -31,6 +31,12 @@ export const DEFAULT_SETTINGS = {
maxSourceChars: 24000,
verification: true,
},
// Optional: push quizzes straight into a Canvas course (lib/canvas/api.js).
// baseUrl is the institution's Canvas, token is a personal access token.
canvas: {
baseUrl: "",
token: "",
},
};
function emptyDb() {
@@ -69,6 +75,7 @@ export function mergeSettings(saved) {
}
out.generation = { ...base.generation, ...(saved.generation || {}) };
out.profile = { ...base.profile, ...(saved.profile || {}) };
out.canvas = { ...base.canvas, ...(saved.canvas || {}) };
return out;
}