- Blocks get layouts (BLOCK_VARIANTS: text standard/centred; image and text photo left, right or above; quote centred/with a line; call to action centred/banner), stored on Section.variant and checked against the type; an unknown one draws as the default, as every block looked before. The demo's image-text block id is now image-left. - Each block has its own background (Section.background, migration 20261201000000_block_background), in the published source only when set, put back by Discard and Restore, drawn as the homepage's (data-bg). - MP4 uploads up to 20 MB for the hero's Video layout: QuickTime refused, metadata boxes (udta, meta, uuid) blanked into free boxes of the same size so where it was filmed is gone and the frame offsets hold; size read from tkhd. GET /media lists mime. - Admin: a block's Layout and Background when open; the hero's Video field (only videos; photo fields only photos); the media library shows and takes videos. An upload over the limit says so instead of "That request isn't valid." - Tests: backend (152, three new); e2e for block layouts and a video upload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
877 B
JSON
35 lines
877 B
JSON
{
|
|
"name": "@crosscode/website-frontend",
|
|
"version": "1.11.0",
|
|
"private": true,
|
|
"description": "Church Website: the church's public site in its template, and the admin",
|
|
"scripts": {
|
|
"dev": "next dev -p 3300",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint src",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@crosscode/contracts": "*",
|
|
"@crosscode/seo": "*",
|
|
"@crosscode/ui": "*",
|
|
"lucide-react": "^0.536.0",
|
|
"next": "^16.4.6",
|
|
"react": "^19.3.1",
|
|
"react-dom": "^19.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/eslintrc": "^3",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"autoprefixer": "^10.4.21",
|
|
"eslint": "^10.13.0",
|
|
"eslint-config-next": "^16.4.6",
|
|
"postcss": "^8.5.6",
|
|
"tailwindcss": "3.4",
|
|
"typescript": "^5"
|
|
}
|
|
}
|