]> _ Git - psq.git/commitdiff
add pill boxes to entities
authorLouis Jeckel <louis.jeckel@outlook.cm>
Wed, 9 Sep 2020 15:00:42 +0000 (17:00 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Wed, 9 Sep 2020 15:00:42 +0000 (17:00 +0200)
22 files changed:
app/Http/Controllers/FileController.php
app/Models/AdCampaign.php
app/Models/LaboArticle.php
app/Models/PillBoxContract.php [new file with mode: 0644]
app/Models/SocialArticle.php
app/View/Components/PillBox.php
database/migrations/2020_09_09_134929_add_pill_boxes_to_entities.php [new file with mode: 0644]
public/admin/js/admin.js
public/js/app.js
resources/js/components/ActuLabos/ActuLaboInstantSearch.vue [new file with mode: 0644]
resources/js/components/ActuLabos/ActuLabosHit.vue [new file with mode: 0644]
resources/js/components/FileSearch/FileInstantSearch.vue
resources/views/actu-labos/show.blade.php
resources/views/admin/adCampaigns/form.blade.php
resources/views/admin/components/pillBoxForm.blade.php [new file with mode: 0644]
resources/views/admin/laboArticles/form.blade.php
resources/views/admin/pillBoxSpaces/form.blade.php
resources/views/admin/podcasts/form.blade.php
resources/views/admin/socialArticles/form.blade.php
resources/views/com-campaigns/show.blade.php
resources/views/layouts/vue.blade.php
resources/views/social-articles/show.blade.php

index addbad87ac35dc628142e9fd7b606b8c6ee11134..7fb41eb262c5559b41f93d56e084819a017fdd63 100644 (file)
@@ -20,10 +20,6 @@ class FileController extends Controller
 
     public function search()
     {
-        $a = 2;
-        $a++;
-
-
         return view('layouts.vue', [
             'extends' => 'layouts.app',
             'component' => 'file-instant-search'
index e101b46ebcbb9fc53b0230c827269e419fa09bdb..eb8110c17210204e200c724add0b658f43c606e6 100644 (file)
@@ -15,7 +15,7 @@ use Laravel\Scout\Searchable;
  * @package App\Models
  * @property string $url
  */
-class AdCampaign extends Model implements Sortable
+class AdCampaign extends Model implements Sortable, PillBoxContract
 {
     use HasSlug, HasMedias, HasPosition;
     use Searchable;
@@ -28,7 +28,10 @@ class AdCampaign extends Model implements Sortable
         'content',
         'publish_start_date',
         'publish_end_date',
-        'organization'
+        'organization',
+        'box_title',
+        'box_content',
+        'box_link',
     ];
 
     public $appends = [
index 42063e727dd5c8722ce242bbbf7afebfcca6f537..5aaa052359fbbeaea3ec3efb814d3390136bfba4 100644 (file)
@@ -7,6 +7,7 @@ use A17\Twill\Models\Behaviors\HasSlug;
 use A17\Twill\Models\Behaviors\HasMedias;
 use A17\Twill\Models\Behaviors\Sortable;
 use A17\Twill\Models\Model;
+use Laravel\Scout\Searchable;
 
 /**
  * Class LaboArticle
@@ -15,7 +16,7 @@ use A17\Twill\Models\Model;
  * @property string $url
  * @property string $preview
  */
-class LaboArticle extends Model implements Sortable
+class LaboArticle extends Model implements Sortable, PillBoxContract
 {
     use HasSlug, HasMedias, HasPosition;
 
@@ -27,6 +28,9 @@ class LaboArticle extends Model implements Sortable
         'content',
         'published',
         'position',
+        'box_title',
+        'box_content',
+        'box_link',
     ];
 
     public $slugAttributes = [
diff --git a/app/Models/PillBoxContract.php b/app/Models/PillBoxContract.php
new file mode 100644 (file)
index 0000000..83cbaa4
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+
+namespace App\Models;
+
+
+/**
+ * Interface HasPillBoxContract
+ * @package App\Models
+ * @property string $box_title
+ * @property string $box_content
+ * @property string $box_link
+ */
+interface PillBoxContract
+{
+
+
+}
index 56c66c449bdb10dd58ac4a06673993a49509d9c9..111d62da4b3926de0d255162c4045b58cba31630 100644 (file)
@@ -20,7 +20,7 @@ use A17\Twill\Models\Model;
  * @property string $chapo
  * @property int $count
  */
-class SocialArticle extends Model
+class SocialArticle extends Model implements PillBoxContract
 {
     use HasSlug, HasMedias, HasSubscriberOnlyContent;
 
@@ -29,7 +29,10 @@ class SocialArticle extends Model
         'content',
         'chapo',
         'title',
-        'subscriber_only'
+        'subscriber_only',
+        'box_title',
+        'box_content',
+        'box_link',
     ];
 
 
index f17bf776cf738b3623d6f93d4f57e56d17aeb484..fc6a1a994304a3cddd2a2fb10e8f3682bff75095 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace App\View\Components;
 
+use App\Models\PillBoxContract;
 use App\Models\PillBoxSpace;
 use App\Repositories\PillBoxSpaceRepository;
 use Illuminate\View\Component;
@@ -16,29 +17,34 @@ class PillBox extends Component
     /**
      * Create a new component instance.
      *
-     * @param null|string $slug
+     * @param string|null $slug
+     * @param null|PillBoxContract $object
      * @param string $title
      * @param string $link
+     * @param string $content
      */
-    public function __construct($slug = null, $title = '', $link = '#')
+    public function __construct(?string $slug, $object = null, $title = '', $link = '#', $content = '')
     {
         /** @var PillBoxSpaceRepository $repository */
         $repository = resolve(PillBoxSpaceRepository::class);
 
-
-        if($slug === null) {
+        if ($object === null && $slug === null) {
             $this->title = $title;
             $this->link = $link;
+            $this->content = $content;
 
-        } else if($pillBoxSpace = $repository->forSlug($slug)){
+        } else if($object instanceof PillBoxContract && !empty($object->box_title)) {
+            $this->title = $object->box_title;
+            $this->link = $object->box_link;
+            $this->content = $object->box_content;
 
+        } else if(is_string($slug) && $pillBoxSpace = $repository->forSlug($slug)){
             $this->title = $pillBoxSpace->box_title;
             $this->link = $pillBoxSpace->box_link;
             $this->content = $pillBoxSpace->box_content;
 
         } else {
             $this->class = 'd-none';
-
         }
 
 
diff --git a/database/migrations/2020_09_09_134929_add_pill_boxes_to_entities.php b/database/migrations/2020_09_09_134929_add_pill_boxes_to_entities.php
new file mode 100644 (file)
index 0000000..432739e
--- /dev/null
@@ -0,0 +1,56 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddPillBoxesToEntities extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('labo_articles', function (Blueprint $table) {
+            $table->string('box_title')->nullable();
+            $table->string('box_link')->nullable();
+            $table->text('box_content')->nullable();
+        });
+        Schema::table('social_articles', function (Blueprint $table) {
+            $table->string('box_title')->nullable();
+            $table->string('box_link')->nullable();
+            $table->text('box_content')->nullable();
+        });
+        Schema::table('ad_campaigns', function (Blueprint $table) {
+            $table->string('box_title')->nullable();
+            $table->string('box_link')->nullable();
+            $table->text('box_content')->nullable();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('labo_articles', function (Blueprint $table) {
+            $table->dropColumn('box_title');
+            $table->dropColumn('box_link');
+            $table->dropColumn('box_content');
+        });
+        Schema::table('social_articles', function (Blueprint $table) {
+            $table->dropColumn('box_title');
+            $table->dropColumn('box_link');
+            $table->dropColumn('box_content');
+        });
+        Schema::table('ad_campaigns', function (Blueprint $table) {
+            $table->dropColumn('box_title');
+            $table->dropColumn('box_link');
+            $table->dropColumn('box_content');
+        });
+    }
+}
index 8095af27e742f244b555562b77fa6b0600084038..823bceb3b27a0207490bd82da6cb9e8b55941633 100644 (file)
@@ -2138,6 +2138,97 @@ module.exports = {
 };
 
 
+/***/ }),
+
+/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js&":
+/*!******************************************************************************************************************************************************************************************!*\
+  !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js& ***!
+  \******************************************************************************************************************************************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _mixins_SearchMixin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/SearchMixin */ "./resources/js/mixins/SearchMixin.js");
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+
+/* harmony default export */ __webpack_exports__["default"] = ({
+  mixins: [_mixins_SearchMixin__WEBPACK_IMPORTED_MODULE_0__["default"]],
+  mounted: function mounted() {},
+  computed: {}
+});
+
+/***/ }),
+
+/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js&":
+/*!*********************************************************************************************************************************************************************************!*\
+  !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js& ***!
+  \*********************************************************************************************************************************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+//
+//
+//
+//
+/* harmony default export */ __webpack_exports__["default"] = ({
+  name: "ActuLabosHit"
+});
+
 /***/ }),
 
 /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdCampaign/CampaignHit.vue?vue&type=script&lang=js&":
@@ -50378,6 +50469,146 @@ render._withStripped = true
 
 
 
+/***/ }),
+
+/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230&":
+/*!**********************************************************************************************************************************************************************************************************************************!*\
+  !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230& ***!
+  \**********************************************************************************************************************************************************************************************************************************/
+/*! exports provided: render, staticRenderFns */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
+var render = function() {
+  var _vm = this
+  var _h = _vm.$createElement
+  var _c = _vm._self._c || _h
+  return _c(
+    "div",
+    [
+      _c(
+        "ais-instant-search",
+        {
+          attrs: {
+            "search-client": _vm.searchClient,
+            "index-name": _vm.prefix + "searchable_texts"
+          }
+        },
+        [
+          _c("ais-configure", { attrs: { hitsPerPage: 12 } }),
+          _vm._v(" "),
+          _c("div", { staticClass: "row" }, [
+            _c(
+              "div",
+              { staticClass: "col-md-12" },
+              [
+                _c(
+                  "div",
+                  { staticClass: "px-3" },
+                  [
+                    _c("ais-search-box", {
+                      staticClass: "searchbox ",
+                      attrs: { placeholder: "Rechercher..." }
+                    })
+                  ],
+                  1
+                ),
+                _vm._v(" "),
+                _c("ais-stats", { staticClass: "mt-2 ml-3" }),
+                _vm._v(" "),
+                _c(
+                  "div",
+                  { staticClass: "my-4" },
+                  [
+                    _c("ais-infinite-hits", {
+                      attrs: {
+                        "class-names": {
+                          "ais-InfiniteHits-list": "row",
+                          "ais-InfiniteHits-item": "col-sm-3 mb-3"
+                        }
+                      },
+                      scopedSlots: _vm._u([
+                        {
+                          key: "item",
+                          fn: function(ref) {
+                            var item = ref.item
+                            var index = ref.index
+                            return _c("file-hit", {
+                              key: index,
+                              attrs: { hit: item }
+                            })
+                          }
+                        },
+                        {
+                          key: "loadMore",
+                          fn: function(ref) {
+                            var page = ref.page
+                            var isLastPage = ref.isLastPage
+                            var refineNext = ref.refineNext
+                            return _c(
+                              "button",
+                              {
+                                staticClass: "btn btn-big mt-5",
+                                attrs: { disabled: isLastPage },
+                                on: { click: refineNext }
+                              },
+                              [
+                                _c("i", {
+                                  staticClass: "far fa-plus-square mr-1"
+                                }),
+                                _vm._v("Voir plus\n                        ")
+                              ]
+                            )
+                          }
+                        }
+                      ])
+                    })
+                  ],
+                  1
+                )
+              ],
+              1
+            )
+          ])
+        ],
+        1
+      )
+    ],
+    1
+  )
+}
+var staticRenderFns = []
+render._withStripped = true
+
+
+
+/***/ }),
+
+/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true&":
+/*!*************************************************************************************************************************************************************************************************************************************!*\
+  !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true& ***!
+  \*************************************************************************************************************************************************************************************************************************************/
+/*! exports provided: render, staticRenderFns */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
+var render = function() {
+  var _vm = this
+  var _h = _vm.$createElement
+  var _c = _vm._self._c || _h
+  return _c("div")
+}
+var staticRenderFns = []
+render._withStripped = true
+
+
+
 /***/ }),
 
 /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdCampaign/CampaignHit.vue?vue&type=template&id=39270b32&scoped=true&":
@@ -50731,7 +50962,7 @@ var render = function() {
                                 _c("i", {
                                   staticClass: "far fa-plus-square mr-1"
                                 }),
-                                _vm._v("Voir plus\n                  ")
+                                _vm._v("Voir plus\n                        ")
                               ]
                             )
                           }
@@ -86613,6 +86844,8 @@ module.exports = function(module) {
 /***/ (function(module, exports, __webpack_require__) {
 
 var map = {
+       "./components/ActuLabos/ActuLaboInstantSearch.vue": "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue",
+       "./components/ActuLabos/ActuLabosHit.vue": "./resources/js/components/ActuLabos/ActuLabosHit.vue",
        "./components/AdCampaign/CampaignHit.vue": "./resources/js/components/AdCampaign/CampaignHit.vue",
        "./components/AdCampaign/CampaignInstantSearch.vue": "./resources/js/components/AdCampaign/CampaignInstantSearch.vue",
        "./components/FileSearch/FileHit.vue": "./resources/js/components/FileSearch/FileHit.vue",
@@ -86810,6 +87043,144 @@ window.Echo = new laravel_echo__WEBPACK_IMPORTED_MODULE_1__["default"]({
   encrypted: true
 });
 
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue":
+/*!*********************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue ***!
+  \*********************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActuLaboInstantSearch.vue?vue&type=template&id=0241a230& */ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230&");
+/* harmony import */ var _ActuLaboInstantSearch_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ActuLaboInstantSearch.vue?vue&type=script&lang=js& */ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js&");
+/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
+
+
+
+
+
+/* normalize component */
+
+var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
+  _ActuLaboInstantSearch_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
+  _ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__["render"],
+  _ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
+  false,
+  null,
+  null,
+  null
+  
+)
+
+/* hot reload */
+if (false) { var api; }
+component.options.__file = "resources/js/components/ActuLabos/ActuLaboInstantSearch.vue"
+/* harmony default export */ __webpack_exports__["default"] = (component.exports);
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js&":
+/*!**********************************************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js& ***!
+  \**********************************************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./ActuLaboInstantSearch.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js&");
+/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); 
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230&":
+/*!****************************************************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230& ***!
+  \****************************************************************************************************/
+/*! exports provided: render, staticRenderFns */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./ActuLaboInstantSearch.vue?vue&type=template&id=0241a230& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230&");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__["render"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
+
+
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLabosHit.vue":
+/*!************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLabosHit.vue ***!
+  \************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true& */ "./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true&");
+/* harmony import */ var _ActuLabosHit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ActuLabosHit.vue?vue&type=script&lang=js& */ "./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js&");
+/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
+
+
+
+
+
+/* normalize component */
+
+var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
+  _ActuLabosHit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
+  _ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
+  _ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
+  false,
+  null,
+  "153c7a5e",
+  null
+  
+)
+
+/* hot reload */
+if (false) { var api; }
+component.options.__file = "resources/js/components/ActuLabos/ActuLabosHit.vue"
+/* harmony default export */ __webpack_exports__["default"] = (component.exports);
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js&":
+/*!*************************************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js& ***!
+  \*************************************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./ActuLabosHit.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js&");
+/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); 
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true&":
+/*!*******************************************************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true& ***!
+  \*******************************************************************************************************/
+/*! exports provided: render, staticRenderFns */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true&");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
+
+
+
 /***/ }),
 
 /***/ "./resources/js/components/AdCampaign/CampaignHit.vue":
index b579f96491385e59e19f259864e8e08700d76772..c6b11db96ff629c934afcadd83a0fa38fddec90c 100644 (file)
@@ -7333,6 +7333,97 @@ module.exports = {
 };
 
 
+/***/ }),
+
+/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js&":
+/*!******************************************************************************************************************************************************************************************!*\
+  !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js& ***!
+  \******************************************************************************************************************************************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _mixins_SearchMixin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mixins/SearchMixin */ "./resources/js/mixins/SearchMixin.js");
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+
+/* harmony default export */ __webpack_exports__["default"] = ({
+  mixins: [_mixins_SearchMixin__WEBPACK_IMPORTED_MODULE_0__["default"]],
+  mounted: function mounted() {},
+  computed: {}
+});
+
+/***/ }),
+
+/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js&":
+/*!*********************************************************************************************************************************************************************************!*\
+  !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js& ***!
+  \*********************************************************************************************************************************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+//
+//
+//
+//
+/* harmony default export */ __webpack_exports__["default"] = ({
+  name: "ActuLabosHit"
+});
+
 /***/ }),
 
 /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdCampaign/CampaignHit.vue?vue&type=script&lang=js&":
@@ -79914,6 +80005,146 @@ render._withStripped = true
 
 
 
+/***/ }),
+
+/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230&":
+/*!**********************************************************************************************************************************************************************************************************************************!*\
+  !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230& ***!
+  \**********************************************************************************************************************************************************************************************************************************/
+/*! exports provided: render, staticRenderFns */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
+var render = function() {
+  var _vm = this
+  var _h = _vm.$createElement
+  var _c = _vm._self._c || _h
+  return _c(
+    "div",
+    [
+      _c(
+        "ais-instant-search",
+        {
+          attrs: {
+            "search-client": _vm.searchClient,
+            "index-name": _vm.prefix + "searchable_texts"
+          }
+        },
+        [
+          _c("ais-configure", { attrs: { hitsPerPage: 12 } }),
+          _vm._v(" "),
+          _c("div", { staticClass: "row" }, [
+            _c(
+              "div",
+              { staticClass: "col-md-12" },
+              [
+                _c(
+                  "div",
+                  { staticClass: "px-3" },
+                  [
+                    _c("ais-search-box", {
+                      staticClass: "searchbox ",
+                      attrs: { placeholder: "Rechercher..." }
+                    })
+                  ],
+                  1
+                ),
+                _vm._v(" "),
+                _c("ais-stats", { staticClass: "mt-2 ml-3" }),
+                _vm._v(" "),
+                _c(
+                  "div",
+                  { staticClass: "my-4" },
+                  [
+                    _c("ais-infinite-hits", {
+                      attrs: {
+                        "class-names": {
+                          "ais-InfiniteHits-list": "row",
+                          "ais-InfiniteHits-item": "col-sm-3 mb-3"
+                        }
+                      },
+                      scopedSlots: _vm._u([
+                        {
+                          key: "item",
+                          fn: function(ref) {
+                            var item = ref.item
+                            var index = ref.index
+                            return _c("file-hit", {
+                              key: index,
+                              attrs: { hit: item }
+                            })
+                          }
+                        },
+                        {
+                          key: "loadMore",
+                          fn: function(ref) {
+                            var page = ref.page
+                            var isLastPage = ref.isLastPage
+                            var refineNext = ref.refineNext
+                            return _c(
+                              "button",
+                              {
+                                staticClass: "btn btn-big mt-5",
+                                attrs: { disabled: isLastPage },
+                                on: { click: refineNext }
+                              },
+                              [
+                                _c("i", {
+                                  staticClass: "far fa-plus-square mr-1"
+                                }),
+                                _vm._v("Voir plus\n                        ")
+                              ]
+                            )
+                          }
+                        }
+                      ])
+                    })
+                  ],
+                  1
+                )
+              ],
+              1
+            )
+          ])
+        ],
+        1
+      )
+    ],
+    1
+  )
+}
+var staticRenderFns = []
+render._withStripped = true
+
+
+
+/***/ }),
+
+/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true&":
+/*!*************************************************************************************************************************************************************************************************************************************!*\
+  !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true& ***!
+  \*************************************************************************************************************************************************************************************************************************************/
+/*! exports provided: render, staticRenderFns */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
+var render = function() {
+  var _vm = this
+  var _h = _vm.$createElement
+  var _c = _vm._self._c || _h
+  return _c("div")
+}
+var staticRenderFns = []
+render._withStripped = true
+
+
+
 /***/ }),
 
 /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/AdCampaign/CampaignHit.vue?vue&type=template&id=39270b32&scoped=true&":
@@ -80267,7 +80498,7 @@ var render = function() {
                                 _c("i", {
                                   staticClass: "far fa-plus-square mr-1"
                                 }),
-                                _vm._v("Voir plus\n                  ")
+                                _vm._v("Voir plus\n                        ")
                               ]
                             )
                           }
@@ -96855,6 +97086,8 @@ module.exports = function(module) {
 /***/ (function(module, exports, __webpack_require__) {
 
 var map = {
+       "./components/ActuLabos/ActuLaboInstantSearch.vue": "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue",
+       "./components/ActuLabos/ActuLabosHit.vue": "./resources/js/components/ActuLabos/ActuLabosHit.vue",
        "./components/AdCampaign/CampaignHit.vue": "./resources/js/components/AdCampaign/CampaignHit.vue",
        "./components/AdCampaign/CampaignInstantSearch.vue": "./resources/js/components/AdCampaign/CampaignInstantSearch.vue",
        "./components/FileSearch/FileHit.vue": "./resources/js/components/FileSearch/FileHit.vue",
@@ -97029,6 +97262,144 @@ window.Echo = new laravel_echo__WEBPACK_IMPORTED_MODULE_1__["default"]({
   encrypted: true
 });
 
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue":
+/*!*********************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue ***!
+  \*********************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActuLaboInstantSearch.vue?vue&type=template&id=0241a230& */ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230&");
+/* harmony import */ var _ActuLaboInstantSearch_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ActuLaboInstantSearch.vue?vue&type=script&lang=js& */ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js&");
+/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
+
+
+
+
+
+/* normalize component */
+
+var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
+  _ActuLaboInstantSearch_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
+  _ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__["render"],
+  _ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
+  false,
+  null,
+  null,
+  null
+  
+)
+
+/* hot reload */
+if (false) { var api; }
+component.options.__file = "resources/js/components/ActuLabos/ActuLaboInstantSearch.vue"
+/* harmony default export */ __webpack_exports__["default"] = (component.exports);
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js&":
+/*!**********************************************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js& ***!
+  \**********************************************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./ActuLaboInstantSearch.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=script&lang=js&");
+/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); 
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230&":
+/*!****************************************************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230& ***!
+  \****************************************************************************************************/
+/*! exports provided: render, staticRenderFns */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./ActuLaboInstantSearch.vue?vue&type=template&id=0241a230& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLaboInstantSearch.vue?vue&type=template&id=0241a230&");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__["render"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLaboInstantSearch_vue_vue_type_template_id_0241a230___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
+
+
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLabosHit.vue":
+/*!************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLabosHit.vue ***!
+  \************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true& */ "./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true&");
+/* harmony import */ var _ActuLabosHit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ActuLabosHit.vue?vue&type=script&lang=js& */ "./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js&");
+/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
+
+
+
+
+
+/* normalize component */
+
+var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
+  _ActuLabosHit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
+  _ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
+  _ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
+  false,
+  null,
+  "153c7a5e",
+  null
+  
+)
+
+/* hot reload */
+if (false) { var api; }
+component.options.__file = "resources/js/components/ActuLabos/ActuLabosHit.vue"
+/* harmony default export */ __webpack_exports__["default"] = (component.exports);
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js&":
+/*!*************************************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js& ***!
+  \*************************************************************************************/
+/*! exports provided: default */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./ActuLabosHit.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=script&lang=js&");
+/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); 
+
+/***/ }),
+
+/***/ "./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true&":
+/*!*******************************************************************************************************!*\
+  !*** ./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true& ***!
+  \*******************************************************************************************************/
+/*! exports provided: render, staticRenderFns */
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ActuLabos/ActuLabosHit.vue?vue&type=template&id=153c7a5e&scoped=true&");
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
+
+/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ActuLabosHit_vue_vue_type_template_id_153c7a5e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
+
+
+
 /***/ }),
 
 /***/ "./resources/js/components/AdCampaign/CampaignHit.vue":
diff --git a/resources/js/components/ActuLabos/ActuLaboInstantSearch.vue b/resources/js/components/ActuLabos/ActuLaboInstantSearch.vue
new file mode 100644 (file)
index 0000000..0bbf69a
--- /dev/null
@@ -0,0 +1,68 @@
+<template>
+    <div>
+
+        <ais-instant-search
+            :search-client="searchClient"
+            :index-name="prefix+'searchable_texts'"
+        >
+            <ais-configure
+                :hits-per-page.camel="12"
+            />
+            <div class="row">
+
+
+                <div class="col-md-12">
+                    <div class="px-3">
+                        <ais-search-box placeholder="Rechercher..." class="searchbox " />
+
+                    </div>
+                    <ais-stats class="mt-2 ml-3"></ais-stats>
+
+                    <div class="my-4">
+                        <ais-infinite-hits :class-names="{
+                    'ais-InfiniteHits-list': 'row',
+                    'ais-InfiniteHits-item' : 'col-sm-3 mb-3'
+                }">
+
+
+                            <file-hit
+                                slot="item"
+                                slot-scope="{item, index}"
+                                :key="index"
+                                :hit="item"
+                            >
+                            </file-hit>
+
+                            <button
+                                slot="loadMore"
+                                slot-scope="{ page, isLastPage, refineNext }"
+                                :disabled="isLastPage"
+                                @click="refineNext"
+                                class="btn btn-big mt-5"
+                            >
+                                <i class="far fa-plus-square mr-1"></i>Voir plus
+                            </button>
+                        </ais-infinite-hits>
+                    </div>
+                </div>
+            </div>
+        </ais-instant-search>
+    </div>
+
+</template>
+
+<script>
+import Search from '../../mixins/SearchMixin';
+
+export default {
+    mixins: [Search],
+    mounted(){
+    },
+    computed: {
+
+    }
+
+
+};
+</script>
+
diff --git a/resources/js/components/ActuLabos/ActuLabosHit.vue b/resources/js/components/ActuLabos/ActuLabosHit.vue
new file mode 100644 (file)
index 0000000..6e97ba3
--- /dev/null
@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+    name: "ActuLabosHit"
+}
+</script>
+
+<style scoped>
+
+</style>
index 9fbd4ffcbc5b3df32bffc5d77405b2d33ff456c5..0bbf69a8575f62620099e8fe1d57768be8c8d686 100644 (file)
@@ -1,52 +1,52 @@
 <template>
-  <div>
+    <div>
 
-      <ais-instant-search
-        :search-client="searchClient"
-        :index-name="prefix+'searchable_texts'"
-      >
-       <ais-configure
-          :hits-per-page.camel="12"
-        />
-        <div class="row">
+        <ais-instant-search
+            :search-client="searchClient"
+            :index-name="prefix+'searchable_texts'"
+        >
+            <ais-configure
+                :hits-per-page.camel="12"
+            />
+            <div class="row">
 
 
-        <div class="col-md-12">
-            <div class="px-3">
-                <ais-search-box placeholder="Rechercher..." class="searchbox " />
+                <div class="col-md-12">
+                    <div class="px-3">
+                        <ais-search-box placeholder="Rechercher..." class="searchbox " />
 
-            </div>
-            <ais-stats class="mt-2 ml-3"></ais-stats>
+                    </div>
+                    <ais-stats class="mt-2 ml-3"></ais-stats>
 
-              <div class="my-4">
-                <ais-infinite-hits :class-names="{
+                    <div class="my-4">
+                        <ais-infinite-hits :class-names="{
                     'ais-InfiniteHits-list': 'row',
                     'ais-InfiniteHits-item' : 'col-sm-3 mb-3'
                 }">
 
 
-                    <file-hit
-                        slot="item"
-                        slot-scope="{item, index}"
-                        :key="index"
-                        :hit="item"
-                    >
-                    </file-hit>
+                            <file-hit
+                                slot="item"
+                                slot-scope="{item, index}"
+                                :key="index"
+                                :hit="item"
+                            >
+                            </file-hit>
 
-                    <button
-                        slot="loadMore"
-                        slot-scope="{ page, isLastPage, refineNext }"
-                        :disabled="isLastPage"
-                        @click="refineNext"
-                        class="btn btn-big mt-5"
-                    >
-                        <i class="far fa-plus-square mr-1"></i>Voir plus
-                    </button>
-                </ais-infinite-hits>
-              </div>
-        </div>
-      </div>
-      </ais-instant-search>
+                            <button
+                                slot="loadMore"
+                                slot-scope="{ page, isLastPage, refineNext }"
+                                :disabled="isLastPage"
+                                @click="refineNext"
+                                class="btn btn-big mt-5"
+                            >
+                                <i class="far fa-plus-square mr-1"></i>Voir plus
+                            </button>
+                        </ais-infinite-hits>
+                    </div>
+                </div>
+            </div>
+        </ais-instant-search>
     </div>
 
 </template>
 import Search from '../../mixins/SearchMixin';
 
 export default {
-  mixins: [Search],
-  mounted(){
-  },
-  computed: {
+    mixins: [Search],
+    mounted(){
+    },
+    computed: {
 
-  }
+    }
 
 
 };
index 1f5c065017ea3411e411f54f1169c5a1ea1b90b9..7acca187375528df821613d7df4ebf04e237356d 100644 (file)
@@ -8,7 +8,7 @@
         <article class="row">
             <div class="col-sm-4">
                 <img src="{{$actu->image('image')}}" class="top-img mb-4" alt="">
-                <x-pill-box slug="article-actu-labos"></x-pill-box>
+                <x-pill-box slug="article-actu-labos" :object="$actu"></x-pill-box>
             </div>
 
             <div class="col-sm-8">
@@ -18,6 +18,7 @@
                     {!! $actu->content !!}
                 </div>
 
+
             </div>
 
         </article>
index 3d8c4089db2efb0938d958c672ca91a502fcb0aa..6d8cfcee75826809e9877c6f80dd38db7ebc4316 100644 (file)
@@ -1,4 +1,11 @@
-@extends('twill::layouts.form')
+@extends('twill::layouts.form', [
+    'additionalFieldsets' => [
+        [
+            'fieldset' => 'pillBox',
+            'label' => 'Encadré'
+        ],
+    ]
+])
 
 @section('contentFields')
     @formField('input', [
     ])
 
 @stop
+
+@section('fieldsets')
+
+    @component('twill::partials.form.utils._fieldset', ['id' => 'pillBox', 'title' => 'Encadré'])
+            @include('admin.components.pillBoxForm')
+    @endcomponent
+
+@stop
diff --git a/resources/views/admin/components/pillBoxForm.blade.php b/resources/views/admin/components/pillBoxForm.blade.php
new file mode 100644 (file)
index 0000000..e07f1c4
--- /dev/null
@@ -0,0 +1,16 @@
+    @formField('input', [
+        'name' => 'box_title',
+        'label' => "Titre de l'encadré",
+        'maxlength' => 100
+    ])
+    @formField('input', [
+        'name' => 'box_link',
+        'label' => "Lien de l'encadré",
+        'maxlength' => 250
+    ])
+    @formField('wysiwyg', [
+        'name' => 'box_content',
+        'label' => "Contenu de l'encadré",
+        'maxlength' => 750,
+        'toolbarOptions' => [ 'bold', 'italic', 'underline', 'strike', 'link' ],
+    ])
index 4bb9979bda2a663cff2704399dc6191191d8de8b..012c00b20eecf4cc2ffb4a26a462a5a0eca88665 100644 (file)
@@ -1,5 +1,11 @@
-@extends('twill::layouts.form')
-
+@extends('twill::layouts.form', [
+    'additionalFieldsets' => [
+        [
+            'fieldset' => 'pillBox',
+            'label' => 'Encadré'
+        ],
+    ]
+])
 @section('contentFields')
     @formField('wysiwyg', [
         'name' => 'chapo',
         'max' => 1,
     ])
 @stop
+
+@section('fieldsets')
+
+    @component('twill::partials.form.utils._fieldset', ['id' => 'pillBox', 'title' => 'Encadré'])
+            @include('admin.components.pillBoxForm')
+    @endcomponent
+
+@stop
index 6fe50fb6c67a96ef559182a27249b808053c3b6b..10774d4c9c9aafa27dd693fd31fed76c0be54166 100644 (file)
@@ -1,22 +1,5 @@
 @extends('twill::layouts.form')
 
 @section('contentFields')
-
-    @formField('input', [
-        'name' => 'box_title',
-        'label' => "Titre de l'encadré",
-        'maxlength' => 100
-    ])
-    @formField('input', [
-        'name' => 'box_link',
-        'label' => "Lien de l'encadré",
-        'maxlength' => 250
-    ])
-    @formField('wysiwyg', [
-        'name' => 'box_content',
-        'label' => "Contenu de l'encadré",
-        'maxlength' => 750,
-        'toolbarOptions' => [ 'bold', 'italic', 'underline', 'strike', 'link' ],
-
-    ])
+    @include('admin.components.pillBoxForm')
 @stop
index ee5397587d9b6f07af55d0e284df38cd0b1003a3..8c724b34a7d2cf85dcd190c2dfa17117b010aefd 100644 (file)
@@ -33,7 +33,6 @@
 
     @component('twill::partials.form.utils._fieldset', ['id' => 'guests', 'title' => 'Invités'])
         @formField('repeater', ['type' => 'guests'])
-
     @endcomponent
 
     @component('twill::partials.form.utils._fieldset', ['id' => 'sponsor', 'title' => 'Partenaires'])
index fc77f121632bc5ddfb09f22babb8272c1457c28c..ab847eba1777fd43338bde23f09e2ff78b374a7d 100644 (file)
@@ -1,5 +1,11 @@
-@extends('twill::layouts.form')
-
+@extends('twill::layouts.form', [
+    'additionalFieldsets' => [
+        [
+            'fieldset' => 'pillBox',
+            'label' => 'Encadré'
+        ],
+    ]
+])
 @section('contentFields')
     @formField('wysiwyg', [
         'name' => 'chapo',
         'label' => 'Article complet',
     ])
 @stop
+
+
+@section('fieldsets')
+
+    @component('twill::partials.form.utils._fieldset', ['id' => 'pillBox', 'title' => 'Encadré'])
+            @include('admin.components.pillBoxForm')
+    @endcomponent
+
+@stop
index a69865a79fa2db5c3943dad2d0d9b4915c4a23f4..618b44d235a20628ee3ed195083b2c244805eaef 100644 (file)
@@ -4,13 +4,21 @@
 
     <article class="container psq-com-campaign">
         <x-back></x-back>
+{{--        <h1>MARKETING & COM : LES CAMPAGNES DE LA SEMAINE</h1>--}}
 
-        <h1>MARKETING & COM : LES CAMPAGNES DE LA SEMAINE</h1>
-
-        <div class="content ck-content">
-            {!! $campaign->content !!}
+        <div class="row mt-4">
+            <div class="col-sm-4">
+                <x-pill-box slug="article-com-campaigns" :object="$campaign"></x-pill-box>
+            </div>
+            <div class="col-sm-8">
+                <div class="content ck-content">
+                    {!! $campaign->content !!}
+                </div>
+            </div>
         </div>
 
+
+
     </article>
 
 @endsection
index fbc65c3330c864c17651221f8d97d74439d3adb7..62710741f10034cd64128758f930d2513dc0ac55 100644 (file)
@@ -1,7 +1,15 @@
 @extends($extends)
 
 @section('content')
-    <div class="container">
+    <div class="container {{$class ?? ''}}">
+        @if(isset($title))
+            <h1>{{$title}}</h1>
+        @endif
+        @if(isset($title2))
+            <h2 class="text-center">{{$title2}}</h2>
+        @endif
+
+
         <component is="{{$component}}"></component>
     </div>
 @endsection
index 246bea43f22b59f14f0d5200b548d9bd0c23cf3e..759214a356d7d675ee02c6ae5e883f1d605ece2f 100644 (file)
@@ -6,7 +6,7 @@
         <div class="row">
 
             <div class="col-sm-4">
-                <x-pill-box slug="article-reseaux-sociaux" class="mb-4"></x-pill-box>
+                <x-pill-box slug="article-reseaux-sociaux" :object="$article" class="mb-4"></x-pill-box>
             </div>
             <div class="col-sm-8">
                 <h2>{{$article->title}}</h2>