LifeMate — Personal, Family & Learning Companion
design/mobile-accessibility-v2
chore/phase1-repository-cleanup
deploy/stable-web-apk
deployment-static
design/mobile-accessibility-v2
design/mobile-navigation-review
docs/child-education-access-decision
docs/offline-data-rescue-options
docs/owner-guide-and-delivery-plan
docs/phase1-policy-options
docs/public-review-live-2026-10-15
feat/aparat-learning-library
feat/child-device-safety
feat/child-identity-schema
feat/flutter-mobile-navigation
feat/learning-content-operations
feat/local-signing-preflight
feat/online-family-stage0
feat/personal-encrypted-recovery
feat/private-planner-series-api
feat/public-review-page
feat/standalone-weekly-planner
feat/weekly-planner-android
final-feature-1/iran-family-school
fix/auth-abuse-expiry-safety
fix/auth-expiry-after-lock
fix/backend-request-safety
fix/lifeguide-bootstrap-naming-ci
fix/lifeguide-pages-qa-base-preflight
fix/lifeguide-qa-pages-env-deployment
fix/local-task-persistence
fix/managed-child-session-boundary
fix/personal-jalali-dates
fix/personal-notification-controls
fix/personal-upgrade-delivery-guard
fix/sms-approval-gates
fix/study-duration-display
infra/cloudflare-neon-migration
infra/lifeguide-cloudflare-qa
infra/lifeguide-github-pages-qa
infra/lifeguide-supabase-qa
main
phase-1/foundation-completion
phase-2/product-foundation-identity
phase-3/planner-school-family-core
phase-4/ai-learning-wellbeing
phase-5/hardening-observability-release
test/android-reminder-acceptance
test/personal-notification-settings
test/personal-recovery-acceptance
test/role-entry-apk
| 1 | import fs from 'node:fs/promises'; |
| 2 | import path from 'node:path'; |
| 3 | import {fileURLToPath} from 'node:url'; |
| 4 | const root=path.resolve(path.dirname(fileURLToPath(import.meta.url)),'..'); |
| 5 | const [css,js,font,tokens]=await Promise.all([ |
| 6 | fs.readFile(path.join(root,'src/design.css'),'utf8'),fs.readFile(path.join(root,'src/app.js'),'utf8'), |
| 7 | fs.readFile(path.join(root,'assets/persian.ttf')),fs.readFile(path.join(root,'design-tokens.json'),'utf8')]); |
| 8 | const inlineCss=css.replace("url('../assets/persian.ttf')",`url('data:font/ttf;base64,${font.toString('base64')}')`); |
| 9 | const html=`<!doctype html><html lang="fa" dir="rtl"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; font-src data:; img-src data:; connect-src 'none'; form-action 'none'; base-uri 'none'"><title>LifeGuide · طرح تعاملی ۰۲</title><style>${inlineCss}</style></head><body><div id="app"></div><script>window.DESIGN_TOKENS=${tokens};\n${js.replaceAll('</script','<\\/script')}</script></body></html>`; |
| 10 | await fs.mkdir(path.join(root,'exports'),{recursive:true}); |
| 11 | await fs.writeFile(path.join(root,'exports/LifeGuide-preview.html'),html); |
| 12 | console.log(JSON.stringify({status:'BUILT_DESIGN_ONLY',screensSource:'src/app.js',output:'exports/LifeGuide-preview.html',bytes:Buffer.byteLength(html),externalDependencies:0})); |