Video frame stills for featured cards; newsletter Pick from fix
- Image fields take frameFrom/frameWhen: "Frame at" saves a still from the row's YouTube or Facebook link to /uploads/thumbnails/ (POST /api/admin/video-frame, grabFrame in clips.js). Used on video featured cards. - clock/parseClock moved to src/lib/clock.ts, shared with Video clips. - Newsletter: new drafts no longer store source 'events' (the Pick from select's blank choice), which showed as "events no longer exists"; older drafts load it as blank. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3b45944094
commit
b8012c75e9
9 changed files with 172 additions and 25 deletions
|
|
@ -71,7 +71,9 @@
|
|||
`resolve` option is the media.ts helper for the field's public/
|
||||
directory, so a bare filename previews from the right place. Its
|
||||
`folder` ("logos" for logo and icon fields) is where uploads go and
|
||||
the tab the library opens on.
|
||||
the tab the library opens on. `frameFrom` names the row's video
|
||||
link field and adds "Frame at" (a still at a typed time, saved to
|
||||
thumbnails/); `frameWhen` limits it to rows that match.
|
||||
|
||||
Two options change the box itself rather than what goes in it:
|
||||
|
||||
|
|
@ -383,6 +385,7 @@ export function Field({ field, value, row, options, error, onChange, onPatch }:
|
|||
value={value}
|
||||
resolve={field.resolve}
|
||||
folder={field.folder}
|
||||
videoUrl={field.frameFrom && fieldShown({ when: field.frameWhen }, row) ? getPath(row, field.frameFrom) : null}
|
||||
locked={locked}
|
||||
className={locked ? inputLocked : common.className}
|
||||
onChange={onChange}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue