]> _ Git - fluidbook-toolbox.git/commitdiff
wait #3753 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Nov 2021 10:56:21 +0000 (11:56 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Nov 2021 10:56:21 +0000 (11:56 +0100)
app/Models/FluidbookPublication.php
config/database.php

index 2640f7047dd4189b1e9b2929b2bc23816c614844..4506c292438b1ce6288ca1a993191696029678c4 100644 (file)
@@ -52,7 +52,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_important',
             'type' => 'FormSection',
-            'label' => 'Description de la publication',
+            'label' => __('Description de la publication'),
         ]);
         $this->addField([
             'name' => 'mobileLVersion',
@@ -65,6 +65,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'mobileVersion',
             'type' => 'SelectFromArray',
             'options' => [
+                'pdf' => 'Rediriger vers le PDF',
                 'html5-desktop' => 'Version HTML5 recommandée (vecteurs sur desktop)',
                 'html5' => 'Version HTML5 vecteurs',
                 'html5-images' => 'Version HTML5 en images',
@@ -84,25 +85,26 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'url_link',
             'type' => 'LongText',
             'label' => __('URL du lien de retour au site'),
-            'default' => 'https://',
+            'default' => 'http://',
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'signature',
             'type' => FluidbookSignature::class,
-            'label' => __('Signature'),
             'default' => '1',
+            'label' => __('Signature'),
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'section_assets',
             'type' => 'FormSection',
-            'label' => 'Assets',
+            'label' => __('Assets'),
         ]);
         $this->addField([
             'name' => 'assetsDir',
-            'type' => 'Integer',
+            'type' => 'LongText',
             'label' => __('Utiliser le dossier d\'assets du fluidbook'),
+            'default' => '',
             'translatable' => false,
         ]);
         $this->addField([
@@ -115,7 +117,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_basicStats',
             'type' => 'FormSection',
-            'label' => 'Statistiques',
+            'label' => __('Statistiques'),
         ]);
         $this->addField([
             'name' => 'stats',
@@ -141,7 +143,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_share',
             'type' => 'FormSection',
-            'label' => 'Fonctions de partage',
+            'label' => __('Fonctions de partage'),
         ]);
         $this->addField([
             'name' => 'share',
@@ -169,6 +171,35 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'default' => '',
             'translatable' => false,
         ]);
+        $this->addField([
+            'name' => 'email_editable',
+            'type' => 'Checkbox',
+            'label' => __('Permettre au lecteur de modifier le corps de l\'email'),
+            'default' => true,
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'name' => 'askAcknowledge',
+            'type' => 'Checkbox',
+            'label' => __('Demander au destinataire un accusé de réception'),
+            'default' => false,
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'name' => 'sendasfluidbook',
+            'type' => 'Checkbox',
+            'label' => __('Envoyer le mail comme Fluidbook'),
+            'hint' => __('L\'expéditeur apparaîtra en reply-to'),
+            'default' => false,
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'name' => 'email_mailto',
+            'type' => 'Checkbox',
+            'label' => __('Envoyer le mail via le client mail du visiteur (mailto:)'),
+            'default' => false,
+            'translatable' => false,
+        ]);
         $this->addField([
             'type' => 'FormSeparator',
         ]);
@@ -253,7 +284,23 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'default' => false,
             'translatable' => false,
         ]);
-
+        $this->addField([
+            'type' => 'FormSeparator',
+        ]);
+        $this->addField([
+            'name' => 'googleplus',
+            'type' => 'Checkbox',
+            'label' => __('Google +'),
+            'default' => false,
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'name' => 'viadeo',
+            'type' => 'Checkbox',
+            'label' => __('Viadeo'),
+            'default' => false,
+            'translatable' => false,
+        ]);
         $this->addField([
             'type' => 'FormSeparator',
         ]);
@@ -284,7 +331,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_seo',
             'type' => 'FormSection',
-            'label' => 'Optimisation pour les moteurs de recherche',
+            'label' => __('Optimisation pour les moteurs de recherche'),
         ]);
         $this->addField([
             'name' => 'seoVersion',
@@ -337,7 +384,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_3d_mode',
             'type' => 'FormSection',
-            'label' => 'Options de visualisation',
+            'label' => __('Options de visualisation'),
         ]);
         $this->addField([
             'name' => 'mobileNavigationType',
@@ -374,7 +421,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'mobileTransitionDuration',
             'type' => 'Number',
             'label' => __('Durée de la transition'),
-            'default' => '0.5',
+            'default' => 0.5,
             'translatable' => false,
         ]);
         $this->addField([
@@ -436,7 +483,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'label' => __('Angle de base entre les pages'),
             'hint' => __('0 : Publication à plat
 2 : Valeur par défaut'),
-            'default' => '2',
+            'default' => 2,
             'translatable' => false,
         ]);
         $this->addField([
@@ -453,21 +500,21 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'extraXSpace',
             'type' => 'Integer',
             'label' => __('Marge supplémentaire horizontale'),
-            'default' => '0',
+            'default' => 0,
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'mobileExtraXSpace',
             'type' => 'Integer',
             'label' => __('Marge supplémentaire horizontale'),
-            'default' => '0',
+            'default' => 0,
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'extraYSpace',
             'type' => 'Integer',
             'label' => __('Marge supplémentaire verticale'),
-            'default' => '0',
+            'default' => 0,
             'translatable' => false,
         ]);
         $this->addField([
@@ -497,6 +544,30 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'type' => 'FormSeparator',
         ]);
+        $this->addField([
+            'name' => 'svgToCanvasUpscale',
+            'type' => 'Number',
+            'label' => __('Upscale de la fonction svgtocanvas'),
+            'default' => 1,
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'name' => 'textsThickness',
+            'type' => 'Number',
+            'label' => __('Epaisseur des textes'),
+            'default' => 1,
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'name' => 'textsThicknessPages',
+            'type' => 'LongText',
+            'label' => __('Appliquer l\'épaisseur des texte sur les pages'),
+            'default' => '',
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'type' => 'FormSeparator',
+        ]);
         $this->addField([
             'name' => 'imageFormat',
             'type' => 'SelectFromArray',
@@ -514,15 +585,24 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'options' => [
                 300 => '300dpi',
                 150 => '150dpi',
+                125 => '125dpi',
+                100 => '100dpi',
             ],
             'label' => __('Résolution maximale des pages'),
             'default' => 300,
             'translatable' => false,
         ]);
+        $this->addField([
+            'name' => 'JPEGQuality',
+            'type' => 'Integer',
+            'label' => __('Qualité JPEG'),
+            'default' => 85,
+            'translatable' => false,
+        ]);
         $this->addField([
             'name' => 'section_performances',
             'type' => 'FormSection',
-            'label' => 'Performances',
+            'label' => __('Performances'),
         ]);
         $this->addField([
             'name' => 'rasterizeOnSafari',
@@ -534,7 +614,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_general',
             'type' => 'FormSection',
-            'label' => 'Fonctionnalités générales',
+            'label' => __('Fonctionnalités générales'),
         ]);
         $this->addField([
             'name' => 'tooltipTimer',
@@ -568,36 +648,39 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'pages',
             'type' => 'Integer',
             'label' => __('Nombre de pages'),
+            'default' => 0,
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'width',
             'type' => 'Number',
             'label' => __('Largeur'),
+            'default' => 0,
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'height',
             'type' => 'Number',
             'label' => __('Hauteur'),
+            'default' => 0,
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'section_menu',
             'type' => 'FormSection',
-            'label' => 'Menu',
+            'label' => __('Menu'),
         ]);
         $this->addField([
             'name' => 'navOrder',
             'type' => 'Textarea',
-            'label' => __('Ordre des icônes dans la nav horizontale'),
+            'label' => __('Ordre des icônes dans la nav'),
             'default' => 'index, chapters, search, print, friend, bookmark, pdf, notes, archives, basket, fullscreen, sound, 3d, extra, extra1, extra2, extra3, extra4, extra5, help, lang',
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'navOrderH',
             'type' => 'Textarea',
-            'label' => __('Ordre des icônes dans le menu burger (Si différente)'),
+            'label' => __('Ordre des icônes dans la nav (Si différente)'),
             'default' => '',
             'translatable' => false,
         ]);
@@ -608,7 +691,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'mobileNavScale',
             'type' => 'Integer',
             'label' => __('Taille du menu (en %)'),
-            'default' => '100',
+            'default' => 100,
             'translatable' => false,
         ]);
         $this->addField([
@@ -916,7 +999,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_landing',
             'type' => 'FormSection',
-            'label' => 'Custom Landing Page',
+            'label' => __('Custom Landing Page'),
         ]);
         $this->addField([
             'name' => 'landingPage',
@@ -928,7 +1011,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_fs',
             'type' => 'FormSection',
-            'label' => 'Plein écran',
+            'label' => __('Plein écran'),
         ]);
         $this->addField([
             'name' => 'fullscreen',
@@ -947,7 +1030,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_bookmark',
             'type' => 'FormSection',
-            'label' => 'Marques-pages',
+            'label' => __('Marques-pages'),
         ]);
         $this->addField([
             'name' => 'bookmark',
@@ -1040,7 +1123,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_help',
             'type' => 'FormSection',
-            'label' => 'Aide',
+            'label' => __('Aide'),
         ]);
         $this->addField([
             'name' => 'help',
@@ -1099,7 +1182,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_index',
             'type' => 'FormSection',
-            'label' => 'Vue d\'index (vignettes)',
+            'label' => __('Vue d\'index (vignettes)'),
         ]);
         $this->addField([
             'name' => 'indexAutoScroll',
@@ -1129,7 +1212,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_print',
             'type' => 'FormSection',
-            'label' => 'Impression',
+            'label' => __('Impression'),
         ]);
         $this->addField([
             'name' => 'print',
@@ -1155,7 +1238,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_search',
             'type' => 'FormSection',
-            'label' => 'Moteur de recherche',
+            'label' => __('Moteur de recherche'),
         ]);
         $this->addField([
             'name' => 'search',
@@ -1262,7 +1345,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_sound',
             'type' => 'FormSection',
-            'label' => 'Effets sonores',
+            'label' => __('Effets sonores'),
         ]);
         $this->addField([
             'name' => 'soundTheme',
@@ -1310,9 +1393,9 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'translatable' => false,
         ]);
         $this->addField([
-            'name' => 'section_pdf',
+            'name' => 'section_downloadpdf',
             'type' => 'FormSection',
-            'label' => 'Fonction de téléchargement',
+            'label' => __('Fonction de téléchargement'),
         ]);
         $this->addField([
             'name' => 'pdf',
@@ -1364,7 +1447,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_zoom',
             'type' => 'FormSection',
-            'label' => 'Zoom',
+            'label' => __('Zoom'),
         ]);
         $this->addField([
             'name' => 'zoomWheel',
@@ -1398,7 +1481,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_stats',
             'type' => 'FormSection',
-            'label' => 'Statistiques avancées',
+            'label' => __('Statistiques avancées'),
         ]);
         $this->addField([
             'name' => 'stats_score',
@@ -1430,9 +1513,8 @@ class FluidbookPublication extends CubistMagicAbstractModel
         ]);
         $this->addField([
             'name' => 'gtag_additional_code',
-            'type' => 'Code',
+            'type' => 'Textarea',
             'label' => __('Code additionnel Google Tag Manager'),
-            'hint' => __('Code HTML'),
             'default' => '',
             'translatable' => false,
         ]);
@@ -1441,17 +1523,15 @@ class FluidbookPublication extends CubistMagicAbstractModel
         ]);
         $this->addField([
             'name' => 'googleAnalyticsCustom',
-            'type' => 'Code',
+            'type' => 'Textarea',
             'label' => __('Code Stats personnalisé (placé avant fermeture de head)'),
-            'hint' => __('Code HTML'),
             'default' => '',
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'statsCustom',
-            'type' => 'Code',
+            'type' => 'Textarea',
             'label' => __('Code Stats personnalisé (placé avant fermeture du body)'),
-            'hint' => __('Code HTML'),
             'default' => '',
             'translatable' => false,
         ]);
@@ -1506,7 +1586,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_sommaire',
             'type' => 'FormSection',
-            'label' => 'Sommaire',
+            'label' => __('Sommaire'),
         ]);
         $this->addField([
             'name' => 'chaptersCaptionDisplay',
@@ -1617,6 +1697,13 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'default' => true,
             'translatable' => false,
         ]);
+        $this->addField([
+            'name' => 'chaptersIndent',
+            'type' => 'Checkbox',
+            'label' => __('Indenter les éléments (pour les sommaires à plat)'),
+            'default' => true,
+            'translatable' => false,
+        ]);
         $this->addField([
             'type' => 'FormSeparator',
         ]);
@@ -1648,7 +1735,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_tabs',
             'type' => 'FormSection',
-            'label' => 'Onglets',
+            'label' => __('Onglets'),
         ]);
         $this->addField([
             'name' => 'tabsHTML5',
@@ -1708,7 +1795,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'type' => 'Number',
             'label' => __('Marge des onglets'),
             'hint' => __('Une marge négative = les onglets passent sous la publication'),
-            'default' => '-10',
+            'default' => -10,
             'translatable' => false,
         ]);
         $this->addField([
@@ -1767,7 +1854,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'type' => 'Number',
             'label' => __('Largeur des onglets'),
             'hint' => __('Largeur réservée pour les onglets et largeur de la zone cliquable des liens'),
-            'default' => '30',
+            'default' => 30,
             'translatable' => false,
         ]);
         $this->addField([
@@ -1794,7 +1881,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_links',
             'type' => 'FormSection',
-            'label' => 'Liens',
+            'label' => __('Liens'),
         ]);
         $this->addField([
             'name' => 'permanentLinks',
@@ -1871,14 +1958,14 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'type' => 'Integer',
             'label' => __('Taille des liens de coins de page'),
             'hint' => __('Pourcentage de la largeur de la page'),
-            'default' => '10',
+            'default' => 10,
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'linkTooltipMaxWidth',
             'type' => 'Integer',
             'label' => __('Largeur max des infobulles des liens de type "infobulle"'),
-            'default' => '140',
+            'default' => 140,
             'translatable' => false,
         ]);
         $this->addField([
@@ -1911,7 +1998,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_multimedia',
             'type' => 'FormSection',
-            'label' => 'Multimedia',
+            'label' => __('Multimedia'),
         ]);
         $this->addField([
             'name' => 'textPopupStylesheet',
@@ -1927,7 +2014,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'textPopupWidth',
             'type' => 'Integer',
             'label' => __('Largeur optimale des popups'),
-            'default' => '600',
+            'default' => 600,
             'translatable' => false,
         ]);
         $this->addField([
@@ -1937,7 +2024,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'iframePopupMaxWidth',
             'type' => 'Integer',
             'label' => __('Largeur maximale des popups iframe'),
-            'default' => '0',
+            'default' => 0,
             'translatable' => false,
         ]);
         $this->addField([
@@ -1947,20 +2034,44 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'OAMChromeFactor',
             'type' => 'Number',
             'label' => __('Facteur OAM Chrome'),
-            'default' => '1',
+            'default' => 1,
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'OAMIEFactor',
             'type' => 'Number',
             'label' => __('Facteur OAM IE11'),
-            'default' => '1',
+            'default' => 1,
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'name' => 'section_pdf',
+            'type' => 'FormSection',
+            'label' => __('PDF'),
+        ]);
+        $this->addField([
+            'name' => 'PDFRenderer',
+            'type' => 'SelectFromArray',
+            'options' => [
+                'native' => 'Navigateur',
+                'pdfjs' => 'PDF.js',
+                'pdfjs-legacy' => 'PDF.js (legacy)',
+            ],
+            'label' => __('Rendu des PDF par'),
+            'default' => 'native',
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'name' => 'PDFJSCSS',
+            'type' => 'Textarea',
+            'label' => __('Styles PDF.js'),
+            'default' => '',
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'section_slideshow',
             'type' => 'FormSection',
-            'label' => 'Slideshow',
+            'label' => __('Slideshow'),
         ]);
         $this->addField([
             'name' => 'inlineSlideshowLibrary',
@@ -2015,7 +2126,17 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_videos',
             'type' => 'FormSection',
-            'label' => 'Vidéos',
+            'label' => __('Vidéos'),
+        ]);
+        $this->addField([
+            'name' => 'webvideoAsLocal',
+            'type' => 'Checkbox',
+            'label' => __('Intégrer les webvidéos en local'),
+            'default' => false,
+            'translatable' => false,
+        ]);
+        $this->addField([
+            'type' => 'FormSeparator',
         ]);
         $this->addField([
             'name' => 'mobileVideosPath',
@@ -2060,7 +2181,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_audio',
             'type' => 'FormSection',
-            'label' => 'Lecteur audio',
+            'label' => __('Lecteur audio'),
         ]);
         $this->addField([
             'name' => 'audioPlayerTheme',
@@ -2077,7 +2198,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_downloadportion',
             'type' => 'FormSection',
-            'label' => 'Téléchargement d\'extraits',
+            'label' => __('Téléchargement d\'extraits'),
         ]);
         $this->addField([
             'name' => 'downloadPortionPDF',
@@ -2096,7 +2217,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_product_zoom',
             'type' => 'FormSection',
-            'label' => 'Zooms produits',
+            'label' => __('Zooms produits'),
         ]);
         $this->addField([
             'name' => 'product_zoom_references',
@@ -2347,7 +2468,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_accessibility',
             'type' => 'FormSection',
-            'label' => 'Accessibilité',
+            'label' => __('Accessibilité'),
         ]);
         $this->addField([
             'name' => 'audiodescriptionTexts',
@@ -2375,7 +2496,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_splash',
             'type' => 'FormSection',
-            'label' => 'Ecran de chargement',
+            'label' => __('Ecran de chargement'),
         ]);
         $this->addField([
             'name' => 'splashImage',
@@ -2411,13 +2532,13 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'splashMinimalTime',
             'type' => 'Number',
             'label' => __('Temps minimal d\'affichage'),
-            'default' => '1',
+            'default' => 1,
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'section_notes',
             'type' => 'FormSection',
-            'label' => 'Notes',
+            'label' => __('Notes'),
         ]);
         $this->addField([
             'name' => 'notes',
@@ -2429,7 +2550,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_articles',
             'type' => 'FormSection',
-            'label' => 'Articles',
+            'label' => __('Articles'),
         ]);
         $this->addField([
             'name' => 'articlesFile',
@@ -2491,7 +2612,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_archives',
             'type' => 'FormSection',
-            'label' => 'Archives',
+            'label' => __('Archives'),
         ]);
         $this->addField([
             'name' => 'externalArchives',
@@ -2515,7 +2636,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_form',
             'type' => 'FormSection',
-            'label' => 'Formulaire',
+            'label' => __('Formulaire'),
         ]);
         $this->addField([
             'name' => 'form',
@@ -2533,7 +2654,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_privacy',
             'type' => 'FormSection',
-            'label' => 'Respect de la vie privée',
+            'label' => __('Respect de la vie privée'),
         ]);
         $this->addField([
             'name' => 'cookieConsent',
@@ -2553,13 +2674,13 @@ class FluidbookPublication extends CubistMagicAbstractModel
             'name' => 'cookieConsentAutoclose',
             'type' => 'Integer',
             'label' => __('Masquer automatiquement après x secondes'),
-            'default' => '0',
+            'default' => 0,
             'translatable' => false,
         ]);
         $this->addField([
             'name' => 'section_basket',
             'type' => 'FormSection',
-            'label' => 'Panier',
+            'label' => __('Panier'),
         ]);
         $this->addField([
             'name' => 'basket',
@@ -2600,6 +2721,8 @@ class FluidbookPublication extends CubistMagicAbstractModel
                 'ZoomProductLink' => 'Zoom + lien produit (déprécié, utiliser la fonctionnalité "Zoom produits")',
                 'JoueclubWishlist' => 'Wishlist Jouéclub',
                 'GrandVision' => 'GrandVision',
+                'GrandPavois' => 'Grand Pavois',
+                'JoueclubWishlist2021' => 'Wishlist Jouéclub Noël 2021',
             ],
             'label' => __('Manager de panier'),
             'default' => 'classic',
@@ -2639,7 +2762,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_offline',
             'type' => 'FormSection',
-            'label' => 'Version offline',
+            'label' => __('Version offline'),
         ]);
         $this->addField([
             'name' => 'offlineTitle',
@@ -2669,7 +2792,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_mobilefirst',
             'type' => 'FormSection',
-            'label' => 'Mobile first',
+            'label' => __('Mobile first'),
         ]);
         $this->addField([
             'name' => 'mobilefirstFluidbookId',
@@ -2688,7 +2811,7 @@ class FluidbookPublication extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'section_phonegap',
             'type' => 'FormSection',
-            'label' => 'Applications mobile',
+            'label' => __('Applications mobile'),
         ]);
         $this->addField([
             'name' => 'phonegapId',
@@ -2726,7 +2849,7 @@ L,index',
         $this->addField([
             'name' => 'section_secure',
             'type' => 'FormSection',
-            'label' => 'Sécurisation',
+            'label' => __('Sécurisation'),
         ]);
         $this->addField([
             'name' => 'secureURL',
@@ -2810,7 +2933,7 @@ L,index',
         $this->addField([
             'name' => 'section_multibrochure',
             'type' => 'FormSection',
-            'label' => 'Multibrochure',
+            'label' => __('Multibrochure'),
         ]);
         $this->addField([
             'name' => 'home',
@@ -2849,7 +2972,7 @@ L,index',
         $this->addField([
             'name' => 'section_plv',
             'type' => 'FormSection',
-            'label' => 'Mode PLV',
+            'label' => __('Mode PLV'),
         ]);
         $this->addField([
             'name' => 'plv',
@@ -2881,7 +3004,7 @@ L,index',
         $this->addField([
             'name' => 'section_theme',
             'type' => 'FormSection',
-            'label' => 'Options du thème',
+            'label' => __('Options du thème'),
         ]);
         $this->addField([
             'name' => 'themeEnableAfterSearch',
@@ -2893,7 +3016,7 @@ L,index',
         $this->addField([
             'name' => 'section_package',
             'type' => 'FormSection',
-            'label' => 'Option d\'export',
+            'label' => __('Option d\'export'),
         ]);
         $this->addField([
             'name' => 'htmlExtension',
@@ -2913,7 +3036,7 @@ L,index',
         ]);
         $this->addField([
             'name' => 'htmlPrepend',
-            'type' => 'Code',
+            'type' => 'Textarea',
             'label' => __('Code à insérer en tête des fichiers'),
             'default' => '',
             'translatable' => false,
@@ -2932,10 +3055,17 @@ L,index',
             'default' => false,
             'translatable' => false,
         ]);
+        $this->addField([
+            'name' => 'embedAllLibraries',
+            'type' => 'Checkbox',
+            'label' => __('Intégrer toutes les bibliothèques JS'),
+            'default' => false,
+            'translatable' => false,
+        ]);
         $this->addField([
             'name' => 'section_demo',
             'type' => 'FormSection',
-            'label' => 'Lien de démo',
+            'label' => __('Lien de démo'),
         ]);
         $this->addField([
             'name' => 'disableDemo',
@@ -2954,7 +3084,7 @@ L,index',
         $this->addField([
             'name' => 'section_scorm',
             'type' => 'FormSection',
-            'label' => 'SCORM',
+            'label' => __('SCORM'),
         ]);
         $this->addField([
             'name' => 'scorm_enable',
@@ -3091,7 +3221,7 @@ L,index',
         $this->addField([
             'name' => 'section_downloads',
             'type' => 'FormSection',
-            'label' => 'Versions disponibles au téléchargement',
+            'label' => __('Versions disponibles au téléchargement'),
         ]);
         $this->addField([
             'name' => 'download_online',
@@ -3156,6 +3286,13 @@ L,index',
             'default' => false,
             'translatable' => false,
         ]);
+        $this->addField([
+            'name' => 'download_precompiled',
+            'type' => 'Checkbox',
+            'label' => __('Version precompilée'),
+            'default' => false,
+            'translatable' => false,
+        ]);
 
     }
 }
index ace71ad3994a47082fdf3b9956fc5098c965f7d4..9ec12b168721366320e2b6054c0ac94f11cc5b2f 100644 (file)
@@ -57,7 +57,7 @@ return [
             'prefix' => '',
             'prefix_indexes' => true,
             'strict' => true,
-            'engine' => null,
+            'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',
             'options' => extension_loaded('pdo_mysql') ? array_filter([
                 PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
             ]) : [],
@@ -77,7 +77,7 @@ return [
             'prefix' => '',
             'prefix_indexes' => true,
             'strict' => true,
-            'engine' => null,
+            'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',
             'options' => extension_loaded('pdo_mysql') ? array_filter([
                 PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
             ]) : [],