add pdf-cover

This commit is contained in:
isUnknown 2024-11-28 16:56:55 +01:00
parent bd95cf4613
commit 7cc2b2a9e8
19 changed files with 119 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View file

@ -0,0 +1,17 @@
Description:
----
Tags:
----
Sort: 2
----
Uuid: sXCMFnDdsxSwONdI
----
Template: image

View file

@ -2,7 +2,7 @@ Description:
----
Tags:
Tags: bouton poussoir
----

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

View file

@ -0,0 +1,17 @@
Description:
----
Tags: forme & design
----
Sort: 7
----
Uuid: BK2esNJ3pyPfL1fH
----
Template: image

View file

@ -18,6 +18,9 @@ Moodboard:
- file://o5O69A12RBr8N7L0
- file://wtE4h2yC4VQVl6IL
- file://BK2esNJ3pyPfL1fH
- file://HtVg8Gk0NaJWlfqa
- file://sXCMFnDdsxSwONdI
----

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

View file

@ -0,0 +1,17 @@
Description:
----
Tags:
----
Sort: 8
----
Uuid: HtVg8Gk0NaJWlfqa
----
Template: image

View file

@ -1,4 +1,37 @@
Comments:
Comments:
-
location:
page:
uri: >
projects/miss-dior-blooming-bouquet/proposal
title: Offre commerciale
href: '/projects/miss-dior-blooming-bouquet?dialog=proposal&fileIndex=0'
project:
title: Miss Dior Blooming Bouquet
uri: projects/miss-dior-blooming-bouquet
file:
uuid: file://3vTh1tMFeFM2JxaN
url: file://3vTh1tMFeFM2JxaN
position:
pageIndex: 1
x: '60.110185093015'
y: '44.594594594595'
replies: [ ]
text: test
author:
name: Adrien Payet
email: adrien.payet@outlook.com
uuid: user://WWjXgPWk
role: admin
date: 2024-11-28T16:30:56+01:00
id: m41h238q
type: comment
isRead: false
----
Cover: - file://wS6ILTHIDQb1DHJN
----

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View file

@ -0,0 +1,5 @@
Uuid: wS6ILTHIDQb1DHJN
----
Template: pdf-cover

View file

@ -0,0 +1,6 @@
title: Image
accept:
mime: image/*
type: image
focus: false

View file

@ -7,6 +7,14 @@ focus: false
fields:
comments:
type: hidden
cover:
label: Image de couverture
type: files
multiple: false
width: 1/3
layout: cards
uploads: pdf-cover
label:
label: Nom
type: text
width: 1/3

View file

@ -41,11 +41,11 @@ tabs:
label: Verre brut
type: files
multiple: false
template: pdf
uploads: pdf
finishedGlass:
label: Verre parachevé
type: files
mutliple: false
template: pdf
uploads: pdf
stepName:
type: hidden

View file

@ -17,6 +17,7 @@ function getFileData($file) {
if($file->extension() == "pdf") {
$data['comments'] = $file->comments()->exists() && $file->comments() ? Data::decode($file->comments()->value(), 'yaml') : [];
$data['cover'] = $file->cover()->exists() && $file->cover()->isNotEmpty() ? $file->cover()->toFile()->resize(576)->url() : false;
}
return $data;