]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5851 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 13 Apr 2023 10:15:00 +0000 (12:15 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 13 Apr 2023 10:15:00 +0000 (12:15 +0200)
.env.dev
app/Models/FluidbookTheme.php
config/backpack/base.php

index 32d41d081060de17e393f3d621809e46bda69324..2d4af1276a4fda27b23e6f219bc73f22ba777e1b 100644 (file)
--- a/.env.dev
+++ b/.env.dev
@@ -9,6 +9,7 @@ APP_URL=https://dev.toolbox.fluidbook.com
 LOG_CHANNEL=stack
 APP_LOG=daily
 LOG_SLACK_WEBHOOK_URL=https://hooks.slack.com/services/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
+SLACK_BOT_TOKEN=xoxb-12192359685-3923048219394-EXUQIBSc3VTO6RKr3Plrn1um
 
 DB_CONNECTION=mysql
 DB_HOST=fluidbook-toolbox-dev-mariadb
@@ -48,8 +49,6 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
 SCORM_CLOUD_APP_ID=VAAROP2RFR
 SCORM_CLOUD_SECRET_KEY=7PHpD9pQk4aIjUnlKgF8s89CGlhkIucZHJ3zMXuQ
 
-SLACK_BOT_TOKEN=xoxb-12192359685-3923048219394-EXUQIBSc3VTO6RKr3Plrn1um
-
 BACKPACK_LOCALES=en,fr
 TIMEZONE=Europe/Paris
 
index ed8f78ea305e0ad4b01e14123955a923a95eaa2a..68c74e92e0e76b4af3f7e15a043302feab2353ee 100644 (file)
@@ -14,6 +14,7 @@ use Cubist\Backpack\Magic\Fields\Files;
 use Cubist\Backpack\Magic\Fields\SelectFromModel;
 use Cubist\Util\CommandLine;
 use Cubist\Util\CommandLine\Imagemagick\Ico;
+
 // __('!!Paramètres des thèmes')
 class FluidbookTheme extends ToolboxSettingsModel
 {
@@ -58,7 +59,7 @@ class FluidbookTheme extends ToolboxSettingsModel
         $this->addOwnerField();
 
         $this->addField('name', 'Text', __('Nom'), ['column' => true]);
-        $this->addField('preview', 'NoValue', __('Preview'), ['column' => true, 'column_type' => 'model_function', 'column_function_name' => 'getPreviewImage', 'column_limit' => -1]);
+        $this->addField('preview', 'NoValue', __('Preview'), ['column_escape' => false, 'column' => true, 'column_type' => 'model_function', 'column_function_name' => 'getPreviewImage', 'column_limit' => -1]);
 
         $this->setSettingsFields();
     }
index 889945f573c32383fcd4b465d7098ca0b7dd6fa4..9e2a2aaca92456d609853e36f54efb2ff2c8a6f0 100644 (file)
@@ -25,7 +25,7 @@ return [
     // ----
 
     // Project name. Shown in the window title.
-    'project_name' => 'Fluidbook Toolbox',
+    'project_name' => env('APP_NAME'),
 
     // When clicking on the admin panel's top-left logo/name,
     // where should the user be redirected?