public function search()
{
- $a = 2;
- $a++;
-
-
return view('layouts.vue', [
'extends' => 'layouts.app',
'component' => 'file-instant-search'
* @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;
'content',
'publish_start_date',
'publish_end_date',
- 'organization'
+ 'organization',
+ 'box_title',
+ 'box_content',
+ 'box_link',
];
public $appends = [
use A17\Twill\Models\Behaviors\HasMedias;
use A17\Twill\Models\Behaviors\Sortable;
use A17\Twill\Models\Model;
+use Laravel\Scout\Searchable;
/**
* Class LaboArticle
* @property string $url
* @property string $preview
*/
-class LaboArticle extends Model implements Sortable
+class LaboArticle extends Model implements Sortable, PillBoxContract
{
use HasSlug, HasMedias, HasPosition;
'content',
'published',
'position',
+ 'box_title',
+ 'box_content',
+ 'box_link',
];
public $slugAttributes = [
--- /dev/null
+<?php
+
+
+namespace App\Models;
+
+
+/**
+ * Interface HasPillBoxContract
+ * @package App\Models
+ * @property string $box_title
+ * @property string $box_content
+ * @property string $box_link
+ */
+interface PillBoxContract
+{
+
+
+}
* @property string $chapo
* @property int $count
*/
-class SocialArticle extends Model
+class SocialArticle extends Model implements PillBoxContract
{
use HasSlug, HasMedias, HasSubscriberOnlyContent;
'content',
'chapo',
'title',
- 'subscriber_only'
+ 'subscriber_only',
+ 'box_title',
+ 'box_content',
+ 'box_link',
];
namespace App\View\Components;
+use App\Models\PillBoxContract;
use App\Models\PillBoxSpace;
use App\Repositories\PillBoxSpaceRepository;
use Illuminate\View\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';
-
}
--- /dev/null
+<?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');
+ });
+ }
+}
};
+/***/ }),
+
+/***/ "./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&":
+/***/ }),
+
+/***/ "./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&":
_c("i", {
staticClass: "far fa-plus-square mr-1"
}),
- _vm._v("Voir plus\n ")
+ _vm._v("Voir plus\n ")
]
)
}
/***/ (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",
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":
};
+/***/ }),
+
+/***/ "./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&":
+/***/ }),
+
+/***/ "./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&":
_c("i", {
staticClass: "far fa-plus-square mr-1"
}),
- _vm._v("Voir plus\n ")
+ _vm._v("Voir plus\n ")
]
)
}
/***/ (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",
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":
--- /dev/null
+<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>
+
--- /dev/null
+<template>
+
+</template>
+
+<script>
+export default {
+ name: "ActuLabosHit"
+}
+</script>
+
+<style scoped>
+
+</style>
<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: {
- }
+ }
};
<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">
{!! $actu->content !!}
</div>
+
</div>
</article>
-@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
--- /dev/null
+ @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' ],
+ ])
-@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
@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
@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'])
-@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
<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
@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
<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>