diff --git a/frontend/scripts/build_media_manifest.mjs b/frontend/scripts/build_media_manifest.mjs index 36d7cb4..0cb77d8 100644 --- a/frontend/scripts/build_media_manifest.mjs +++ b/frontend/scripts/build_media_manifest.mjs @@ -25,15 +25,29 @@ async function ensureDir(dir) { await fs.mkdir(dir, { recursive: true }); } +async function exists(dir) { + try { + await fs.access(dir); + return true; + } catch { + return false; + } +} + async function main() { try { + const sourceExists = await exists(SOURCE); + const rootExists = await exists(ROOT); + const source = sourceExists ? SOURCE : rootExists ? ROOT : null; await ensureDir(ROOT); - const files = await walk(SOURCE).catch(() => []); - for (const file of files) { - const src = path.join(SOURCE, file); - const dest = path.join(ROOT, file); - await ensureDir(path.dirname(dest)); - await fs.copyFile(src, dest); + const files = source ? await walk(source) : []; + if (source && source !== ROOT) { + for (const file of files) { + const src = path.join(source, file); + const dest = path.join(ROOT, file); + await ensureDir(path.dirname(dest)); + await fs.copyFile(src, dest); + } } const payload = { generated_at: new Date().toISOString(), diff --git a/frontend/src/views/OnboardingView.vue b/frontend/src/views/OnboardingView.vue index 55331c6..087ed33 100644 --- a/frontend/src/views/OnboardingView.vue +++ b/frontend/src/views/OnboardingView.vue @@ -29,16 +29,6 @@ -
-@@ -166,7 +156,7 @@ class="secondary" type="button" @click="nextSection" - :disabled="!hasNextSection || isSectionLocked(nextSectionItem)" + :disabled="!hasNextSection || isSectionLocked(nextSectionItem) || !sectionGateComplete(activeSection)" > Next @@ -209,7 +199,7 @@