]> _ Git - fluidbook-toolbox.git/commitdiff
wip #3456 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 3 Mar 2020 17:54:26 +0000 (18:54 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 3 Mar 2020 17:54:26 +0000 (18:54 +0100)
app/Models/Quiz.php
config/app.php
config/backpack/base.php
public/images/logo.svg [new file with mode: 0644]
public/packages/cubist/fluidbooktoolbox/css/style.less [new file with mode: 0644]
public/packages/cubist/fluidbooktoolbox/js/bundle.js [new file with mode: 0644]

index d79edf3bd613797fd7fb92a7ae51221e5718dbb1..32d57bf37db0c9d175f9e578ce9de118e671a9d9 100644 (file)
@@ -45,7 +45,7 @@ class Quiz extends CubistMagicAbstractModel
             'name' => 'questions',
             'type' => 'BunchOfFieldsMultiple',
             'bunch' => 'App\SubForms\Question',
-            'label' => 'Questions',
+            'label' => '',
             'add_label' => 'Add question',
             'tab' => 'Questions / Answers',
         ]);
index be2f22020d58c860a038e1fba1465baf62a5e6e9..c9960cde592486d47266cbf812fc89d5cea81493 100644 (file)
@@ -13,7 +13,7 @@ return [
     |
     */
 
-    'name' => env('APP_NAME', 'Quiz Factory'),
+    'name' => env('APP_NAME', 'Laravel'),
 
     /*
     |--------------------------------------------------------------------------
index 9a4b67d5fa560cb5733a067de619f46c36864729..e4f0eb1291168bb704e2f8501b580ba759af43a8 100644 (file)
@@ -13,7 +13,7 @@ return [
 
 
     // Date & Datetime Format Syntax: https://carbon.nesbot.com/docs/#api-localization
-    'default_date_format'     => 'D MMM YYYY',
+    'default_date_format' => 'D MMM YYYY',
     'default_datetime_format' => 'D MMM YYYY, HH:mm',
 
     // Direction, according to language
@@ -44,6 +44,7 @@ return [
     // CSS files that are loaded in all pages, using Laravel's asset() helper
     'styles' => [
         'packages/backpack/base/css/bundle.css',
+        'packages/cubist/fluidbooktoolbox/css/style.css',
 
         // Here's what's inside the bundle:
         // 'packages/@digitallyhappy/backstrap/css/style.min.css',
@@ -60,6 +61,7 @@ return [
 
         // Example (load font-awesome instead of line-awesome):
         // 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css',
+
     ],
 
     // CSS files that are loaded in all pages, using Laravel's mix() helper
@@ -72,7 +74,7 @@ return [
     // ------
 
     // Menu logo. You can replace this with an <img> tag if you have a logo.
-    'project_logo'   => '<b>QUIZ</b> FACTORY',
+    'project_logo' => '<img src="/images/logo.svg" alt="Fluidbook Toolbox">',
 
     // Show / hide breadcrumbs on admin panel pages.
     'breadcrumbs' => true,
@@ -106,10 +108,10 @@ return [
     // change background color with bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan, bg-white
 
     // Developer or company name. Shown in footer.
-    'developer_name' => 'Cubedesigners',
+    'developer_name' => 'Fluidbook',
 
     // Developer website. Link in footer. Type false if you want to hide it.
-    'developer_link' => 'https://www.cubedesigners.com',
+    'developer_link' => 'https://www.fluidbook.com',
 
     // Show powered by Laravel Backpack in the footer? true/false
     'show_powered_by' => false,
@@ -122,6 +124,7 @@ return [
     'scripts' => [
         // Backstrap includes jQuery, Bootstrap, CoreUI, PNotify, Popper
         'packages/backpack/base/js/bundle.js',
+        'packages/cubist/fluidbooktoolbox/js/bundle.css',
 
         // examples (everything inside the bundle, loaded from CDN)
         // 'https://code.jquery.com/jquery-3.4.1.min.js',
@@ -212,7 +215,7 @@ return [
     // Username column for authentication
     // The Backpack default is the same as the Laravel default (email)
     // If you need to switch to username, you also need to create that column in your db
-    'authentication_column'      => 'email',
+    'authentication_column' => 'email',
     'authentication_column_name' => 'Email',
 
     // The guard that protects the Backpack admin panel.
diff --git a/public/images/logo.svg b/public/images/logo.svg
new file mode 100644 (file)
index 0000000..355f80f
--- /dev/null
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 24.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+        viewBox="0 0 224.6 34" style="enable-background:new 0 0 224.6 34;" xml:space="preserve">
+<style type="text/css">
+       .st0{fill:#FFFFFF;}
+       .st1{fill:url(#SVGID_1_);}
+       .st2{fill:url(#SVGID_2_);}
+       .st3{opacity:0.8;fill:url(#SVGID_3_);}
+</style>
+<g>
+       <g>
+               <g>
+                       <path class="st0" d="M149.8,31.4c-0.5,0.7-1,1.3-2,1.3c-1.1,0-1.6-0.8-1.6-2.6v-8.4h3.3v-1h-3.3v-3.5h-0.6l0,0.1
+                               c-0.5,1.4-1.6,2.6-3.4,3.7l-0.1,0v0.7h1.5v9c0,2.1,1.2,3.2,3.6,3.2c1.7,0,3-0.7,3.4-2l0-0.1L149.8,31.4L149.8,31.4z"/>
+                       <path class="st0" d="M224.5,32.7c-1.1-0.2-1.5-0.7-2.1-1.4c-0.1-0.1-0.2-0.2-0.3-0.4l-3.9-4.7l2.7-3.3c0.8-1,1.3-1.6,2.7-1.7
+                               l0.1,0v-0.8l-0.1,0c-0.4,0-0.8,0-1.2,0.1c-0.4,0-0.8,0-1.2,0.1c-0.4,0-0.9,0-1.3-0.1c-0.4,0-0.9,0-1.3-0.1l-0.1,0v0.8h0.1
+                               c0.5,0,1.4,0.2,1.4,0.8c0,0.4-0.6,1.1-0.9,1.5c-0.1,0.1-0.1,0.2-0.2,0.2l-1.3,1.7l-1.4-1.7l-0.1-0.2c-0.3-0.4-1.3-1.6-1.3-1.9
+                               c0-0.3,0.7-0.4,1.1-0.5c0.2,0,0.3,0,0.4-0.1l0.1,0v-0.8l-0.1,0c-0.5,0-1,0-1.6,0.1c-0.5,0-1,0-1.5,0.1c-0.5,0-1,0-1.5-0.1
+                               c-0.5,0-1,0-1.5-0.1l-0.1,0v0.8l0.1,0c0.9,0.1,1.2,0.5,1.7,1.2l3.9,5.1l-2.2,2.8c-1,1.3-1.8,2.3-3.4,2.4l-0.1,0v0.8l0.1,0
+                               c0.4,0,0.9,0,1.3-0.1c0.4,0,0.9,0,1.3-0.1c0.4,0,0.9,0,1.3,0.1c0.4,0,0.9,0,1.3,0.1l0.1,0v-0.8l-0.1,0c-0.7-0.1-1.4-0.2-1.4-0.8
+                               c0-0.6,0.9-1.7,1.3-2.1l1.1-1.4l2.3,2.9l0.1,0.1c0.2,0.2,0.5,0.6,0.5,0.9c0,0.1,0,0.2-0.1,0.2c-0.2,0.2-0.8,0.2-1.2,0.2
+                               c-0.1,0-0.2,0-0.3,0l-0.1,0v0.8l0.1,0c0.6,0,1.1,0,1.7-0.1c0.6,0,1.1,0,1.7-0.1c0.5,0,1.1,0,1.6,0.1c0.5,0,1.1,0,1.6,0.1l0.1,0
+                               L224.5,32.7L224.5,32.7z"/>
+               </g>
+               <path class="st0" d="M184.2,28.2c0,0.8,0,2.2-0.3,3l-0.1,0.2c0,0,2.4,0.3,2.6,0.3c1.3,1.6,2.7,2.2,4.6,2.2c3.7,0,6.4-2.8,6.4-6.6
+                       c0-3.4-2.4-7-6.4-7c-1.6,0-2.9,0.5-4,1.5c0-0.8,0-4.1,0-4.1c0-1.7,0.1-2.5,2-2.5l0.2,0v-0.9l-5.1-1V28.2z M187.1,28.5v-4.1
+                       c0-1.7,1.7-2.8,3.3-2.8c3.5,0,3.8,4.3,3.8,5.6c0,1.6-0.4,5.4-3.8,5.4C187.7,32.7,187.1,30.4,187.1,28.5z"/>
+               <path class="st0" d="M149.8,26.9c0,3.8,3,7,6.7,7c3.8,0,6.7-2.9,6.7-6.8c0-3.7-3.1-6.7-6.7-6.7C153.3,20.3,149.8,23,149.8,26.9z
+                        M152.9,27.1c0-1.3,0.3-5.7,3.5-5.7c3.1,0,3.7,3.2,3.7,5.8c0,1.1-0.1,2.6-0.7,3.8c-0.6,1.2-1.5,1.8-2.8,1.8
+                       C153.4,32.8,152.9,29.2,152.9,27.1z"/>
+               <path class="st0" d="M163.8,26.9c0,3.8,3,7,6.7,7c3.8,0,6.7-2.9,6.7-6.8c0-3.7-3.1-6.7-6.7-6.7C167.3,20.3,163.8,23,163.8,26.9z
+                        M166.9,27.1c0-1.3,0.3-5.7,3.5-5.7c3.1,0,3.7,3.2,3.7,5.8c0,1.1-0.1,2.6-0.7,3.8c-0.6,1.2-1.5,1.8-2.8,1.8
+                       C167.4,32.8,166.9,29.2,166.9,27.1z"/>
+               <path class="st0" d="M198.1,26.9c0,3.8,3,7,6.7,7c3.8,0,6.7-2.9,6.7-6.8c0-3.7-3.1-6.7-6.7-6.7C201.6,20.3,198.1,23,198.1,26.9z
+                        M201.2,27.1c0-1.3,0.3-5.7,3.5-5.7c3.1,0,3.7,3.2,3.7,5.8c0,1.1-0.1,2.6-0.7,3.8c-0.6,1.2-1.5,1.8-2.8,1.8
+                       C201.7,32.8,201.2,29.2,201.2,27.1z"/>
+               <path class="st0" d="M183.9,32.6c0,0-0.1,0-0.1,0l-0.1,0c-0.3,0-0.5-0.1-0.8-0.1c-0.7-0.1-1.5-0.2-1.5-0.2l0.1-0.2
+                       c0.3-0.7,0.3-2.2,0.3-3V14.8l-5.1,1v0.9l0.5,0.1c0.6,0.1,1.1,0.1,1.4,0.6c0.3,0.6,0.3,2.4,0.3,3V30l0,0.3c0,1.7,0,2.1-1.8,2.2
+                       l-0.2,0v1l3.4-0.1c0,0,1.6,0.1,1.6,0.1l1.9,0.1l0-0.2V32.6z"/>
+       </g>
+       <path class="st0" d="M16.5,8.1C13.3,3.6,6,3.5,1.1,0c-1.4,8-1.2,13.8,1,17.7c-0.7,0.1-1.4,0.1-2.1,0c2.7,7.7,5.8,11.2,10.9,10.4
+               c5.1-0.8,7.5-0.1,7.5-0.1c0,0,0,0,0,0c0,0,0,0,0,0C19.8,17.1,19.7,12.6,16.5,8.1z"/>
+       <g>
+               <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="0.21" y1="14.012" x2="19.3028" y2="14.012">
+                       <stop  offset="0" style="stop-color:#B0D247"/>
+                       <stop  offset="1" style="stop-color:#587836"/>
+               </linearGradient>
+               <path class="st1" d="M18.5,28c1.4-10.9,1.3-15.4-1.9-19.9C13.3,3.6,6,3.5,1.1,0c-2.2,12.6-0.6,19.7,7,22.5
+                       C15.7,25.3,18.5,28,18.5,28z"/>
+               <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="2.82" y1="18.3783" x2="18.443" y2="18.3783">
+                       <stop  offset="0" style="stop-color:#587836"/>
+                       <stop  offset="1" style="stop-color:#B0D247"/>
+               </linearGradient>
+               <path class="st2" d="M18.4,28c0-8.3-0.5-11.6-3.3-14.7c-2.8-3.1-8.3-2.5-12.3-4.6c-0.5,9.6,1.4,14.7,7.3,16.1
+                       C16.1,26.3,18.4,28,18.4,28z"/>
+               <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="0" y1="22.5693" x2="18.4507" y2="22.5693">
+                       <stop  offset="0" style="stop-color:#B0D247"/>
+                       <stop  offset="1" style="stop-color:#587836"/>
+               </linearGradient>
+               <path class="st3" d="M18.5,28c-2.6-6.5-4.1-9-7.3-10.6C7.9,15.9,3.8,18.1,0,17.7c2.7,7.7,5.8,11.2,10.9,10.4
+                       C16.1,27.4,18.5,28,18.5,28z"/>
+       </g>
+       <g>
+               <g>
+                       <path class="st0" d="M36.4,9.7c0-1.8-2.6-2.3-4.2-2.3c-4.3,0-6.3,2.2-6.3,7c0,0,0,4.9,0,5.3c-0.4,0-3.4,0-3.4,0v1.3
+                               c0,0,3,0,3.4,0v8.4c0,2.3-0.9,2.9-3.4,3l-0.2,0v1.1l5.5-0.1l2.3,0.1l2.6,0.1l0-0.2l0-0.9l-0.8,0c-1.1,0-2.1,0-2.5-1
+                               c-0.1-0.4-0.3-1.1-0.3-1.9c0,0,0-8,0-8.4c0.4,0,4,0,4,0v-1.3c0,0-3.6,0-4,0c0-0.4,0-5.8,0-5.8c0-1.2,0-2.8,0.5-3.9
+                               C30,9,30.7,8.6,32,8.6c1,0,1.3,0.4,1.7,1.3c0.2,0.5,0.5,1.1,1.4,1.1C35.8,10.9,36.4,10.4,36.4,9.7z M65.4,32.6l-0.2,0
+                               c-1.8-0.1-1.8-0.6-1.8-2.1l0-0.7v-9.6l-5,1v1l0.2,0c0.5,0,1.7-0.1,1.8,0.5c0,0.2,0.1,0.8,0.1,3.2V30l0,0.4c0,1.6,0,2-1.8,2.2
+                               l-0.2,0v1l3.6-0.1l1.6,0.1l1.7,0.1l0-0.2V32.6z M41.4,32.6l-0.2,0c-1.8-0.1-1.8-0.6-1.8-2.1l0-0.7V14.7l-5.1,1v0.9l0.5,0.1
+                               c0.6,0.1,1.1,0.1,1.4,0.6c0.3,0.6,0.3,2.4,0.3,3V30l0,0.3c0,1.7,0,2.1-1.9,2.2l-0.2,0v1l3.4-0.1c0,0,1.6,0.1,1.6,0.1l1.9,0.1
+                               l0-0.2V32.6z M56.1,31.9c-0.8,0-0.9-0.8-0.9-1.8v-9.7l-1.4,0.1c0,0-1.1,0.1-1.1,0.1c0,0-2.6-0.2-2.6-0.2l0,0.2v0.8l0.2,0
+                               c2.1,0.3,2.1,0.7,2.1,2.6l0,0.4v3.9c0,1.1-0.4,2.1-1.1,2.9c-0.7,0.8-1.7,1.3-2.7,1.3c-2,0-2.2-1.9-2.2-3.9v-8.2L45,20.6l-1.2,0.1
+                               c0,0-1.2-0.1-1.2-0.1l-1.4-0.1l0,0.2v0.7l0.2,0c2.1,0.3,2.1,0.7,2.1,2.6l0,0.4v5c0,3,1.4,4.4,4.2,4.4c1.8,0,3.6-1,4.8-2.5
+                               C52.6,32.1,53,34,53,34l4.4-1.1v-1.1l-0.6,0.1C56.6,31.8,56.3,31.9,56.1,31.9z M61.6,17c0.9,0,1.7-0.8,1.7-1.8
+                               c0-1-0.8-1.8-1.8-1.8c-1,0-1.8,0.8-1.8,1.8C59.8,16.2,60.6,17,61.6,17z M136.3,33.4v-0.8l-0.2,0c-0.8-0.1-1-0.4-1.5-0.9l-0.4-0.4
+                               c0,0-5.2-5.1-5.5-5.4c0.2-0.3,2.6-2.9,2.6-2.9c0,0,0.3-0.3,0.3-0.3c0.8-0.9,1.1-1.3,2.5-1.3l0.2,0v-1l-2.7,0.1
+                               c0,0-1.3-0.1-1.3-0.1l-1.5-0.1l0,0.2v0.8h0.2c0.9,0,1.3,0.2,1.3,0.5c0,0.2-0.3,0.8-2.1,2.8c0,0-1.2,1.2-1.7,1.8
+                               c0-1,0-13.5,0-13.5l-5.1,1v0.9l0.4,0.1c0.6,0.1,1.2,0.1,1.5,0.6c0.3,0.5,0.3,2.1,0.3,2.7V30l0,0.3c0,1.7,0,2.1-1.9,2.2l-0.2,0v1
+                               l2-0.1l1.6-0.1c0,0,1.6,0.1,1.6,0.1l1.9,0.1l0-0.2v-0.8l-0.2,0c-1.7-0.1-1.9-0.5-1.9-1.8c0-0.1,0-0.3,0-0.4l0-0.5
+                               c0,0,0-1.6,0-1.7c0.1-0.1,0.2-0.2,0.4-0.4c0.3,0.3,5.5,5.9,5.5,5.9s1.9-0.1,1.9-0.1c0,0,2,0.1,2,0.1L136.3,33.4z M115,20.2
+                               c-3.3,0-6.8,2.7-6.8,6.7c0,3.9,3,7,6.8,7c3.9,0,6.8-3,6.8-6.9C121.8,23.3,118.7,20.2,115,20.2z M118,31c-0.6,1.2-1.5,1.8-2.8,1.8
+                               c-3.3,0-3.8-3.6-3.8-5.8c0-1.3,0.3-5.7,3.5-5.7c3.1,0,3.8,3.2,3.8,5.9C118.7,28.3,118.6,29.8,118,31z M87.1,20.2
+                               c-1.6,0-3,0.5-4,1.5c0-0.8,0-4.1,0-4.1c0-1.7,0.1-2.5,2-2.5l0.2,0v-1l-5.1-1v15c0,0.8,0,2.2-0.3,3l-0.1,0.2c0,0,2.4,0.3,2.6,0.3
+                               c1.3,1.6,2.7,2.2,4.7,2.2c3.7,0,6.4-2.8,6.4-6.7C93.5,23.8,91.1,20.2,87.1,20.2z M86.4,32.7c-2.7,0-3.3-2.3-3.3-4.2v-4.2
+                               c0-1.7,1.7-2.8,3.3-2.8c3.5,0,3.8,4.3,3.8,5.7C90.2,28.9,89.8,32.7,86.4,32.7z M100.9,20.2c-3.3,0-6.8,2.7-6.8,6.7
+                               c0,3.9,3,7,6.8,7c3.9,0,6.8-3,6.8-6.9C107.7,23.3,104.6,20.2,100.9,20.2z M103.8,31c-0.6,1.2-1.5,1.8-2.8,1.8
+                               c-3.3,0-3.8-3.6-3.8-5.8c0-1.3,0.3-5.7,3.5-5.7c3.1,0,3.8,3.2,3.8,5.9C104.6,28.3,104.4,29.8,103.8,31z M78.8,28.1v-15l-5.1,1v1
+                               l0.2,0c1.9,0.1,2,0.8,2,2.5c0,0,0,3.3,0,4.1c-1-1-2.4-1.5-4-1.5c-4,0-6.4,3.6-6.4,7c0,3.9,2.7,6.7,6.4,6.7c2,0,3.4-0.7,4.7-2.2
+                               c0.1,0,2.6-0.3,2.6-0.3l-0.1-0.2C78.8,30.4,78.8,28.9,78.8,28.1z M75.9,28.5c0,1.9-0.6,4.2-3.3,4.2c-3.4,0-3.8-3.8-3.8-5.5
+                               c0-1.3,0.3-5.7,3.8-5.7c1.6,0,3.3,1.1,3.3,2.8V28.5z"/>
+               </g>
+       </g>
+</g>
+</svg>
diff --git a/public/packages/cubist/fluidbooktoolbox/css/style.less b/public/packages/cubist/fluidbooktoolbox/css/style.less
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/public/packages/cubist/fluidbooktoolbox/js/bundle.js b/public/packages/cubist/fluidbooktoolbox/js/bundle.js
new file mode 100644 (file)
index 0000000..e69de29