]> _ Git - psq.git/commitdiff
archives
authorLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 8 Sep 2020 21:55:12 +0000 (23:55 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 8 Sep 2020 21:55:12 +0000 (23:55 +0200)
app/SearchableText.php
public/admin/js/admin.js
public/css/app.css
public/js/app.js
resources/js/components/FileSearch/FileHit.vue
resources/js/components/FileSearch/FileInstantSearch.vue
resources/sass/app.scss

index 30b07a6b232a705a014194250d890095ab4497ad..be394963c7f4c483b4f0df84d1af162bb441db88 100644 (file)
@@ -26,7 +26,7 @@ class SearchableText extends Model
                 'slug' => $this->file->slug,
                 'tags' => $this->file->fileTags()->pluck('content')->toArray(),
                 'collection' => (string) $this->file->collection,
-                'ref' => $this->file->ref,
+                'title' => $this->file->title,
                 'cover' => $this->file->coverUrl,
                 'created_at' => $this->file->created_at->format('U'),
             ],
index 9881291996651fddd0f1cdc45b436c892ecaf389..3f191a72f3ff696fd70c2c6a276ef5eaea789401 100644 (file)
@@ -50585,10 +50585,10 @@ var render = function() {
     }),
     _vm._v(" "),
     _c("div", { staticClass: "card-body" }, [
-      _c("h5", { staticClass: "card-title" }, [
-        _vm._v(_vm._s(_vm.hit.file.collection) + " - "),
-        _c("strong", [_vm._v(_vm._s(_vm.hit.file.ref))])
-      ]),
+      _c("h5", {
+        staticClass: "card-title",
+        domProps: { textContent: _vm._s(_vm.hit.file.title) }
+      }),
       _vm._v(" "),
       _c(
         "p",
@@ -50619,11 +50619,11 @@ var render = function() {
     _c(
       "a",
       {
-        staticClass: "btn btn-primary",
+        staticClass: "btn btn-big mb-0",
         attrs: { href: _vm.viewLink, target: "_blank" }
       },
       [
-        _c("i", { staticClass: "fas fa-book-open" }),
+        _c("i", { staticClass: "fas fa-book-open mr-1" }),
         _vm._v(" Lire cette édition")
       ]
     )
@@ -50663,7 +50663,7 @@ var render = function() {
           }
         },
         [
-          _c("ais-configure", { attrs: { hitsPerPage: 10 } }),
+          _c("ais-configure", { attrs: { hitsPerPage: 12 } }),
           _vm._v(" "),
           _c("div", { staticClass: "row" }, [
             _c(
@@ -50716,14 +50716,15 @@ var render = function() {
                             return _c(
                               "button",
                               {
-                                staticClass: "ais-InfiniteHits-loadMore",
+                                staticClass: "btn btn-big",
                                 attrs: { disabled: isLastPage },
                                 on: { click: refineNext }
                               },
                               [
-                                _vm._v(
-                                  "\n                      Voir plus\n                  "
-                                )
+                                _c("i", {
+                                  staticClass: "far fa-plus-square mr-1"
+                                }),
+                                _vm._v("Voir plus\n                  ")
                               ]
                             )
                           }
index 40ff02e1b33996bc37ed321da3493990600185b0..ec1de1cfd45526a7676ce17200c10ca125c84cf2 100644 (file)
@@ -11088,7 +11088,8 @@ mark.mark {
 }
 
 .highlight-blue,
-.btn-back {
+.btn-back,
+.btn-big {
   color: white;
   background-color: #074e9c;
 }
@@ -11664,7 +11665,8 @@ div.pill-box div > a.bottom-right {
   font-size: small;
 }
 
-.btn-back {
+.btn-back,
+.btn-big {
   text-transform: uppercase;
   font-weight: bold;
   margin-bottom: 1rem;
@@ -11724,3 +11726,7 @@ article h3 {
   max-height: 120px;
 }
 
+.badge-light {
+  font-weight: 300;
+}
+
index 65c92d42d3447e2550ff19e520447732180665af..74bb23b8e6e9016a94f063d1b177ab65cf78f113 100644 (file)
@@ -80121,10 +80121,10 @@ var render = function() {
     }),
     _vm._v(" "),
     _c("div", { staticClass: "card-body" }, [
-      _c("h5", { staticClass: "card-title" }, [
-        _vm._v(_vm._s(_vm.hit.file.collection) + " - "),
-        _c("strong", [_vm._v(_vm._s(_vm.hit.file.ref))])
-      ]),
+      _c("h5", {
+        staticClass: "card-title",
+        domProps: { textContent: _vm._s(_vm.hit.file.title) }
+      }),
       _vm._v(" "),
       _c(
         "p",
@@ -80155,11 +80155,11 @@ var render = function() {
     _c(
       "a",
       {
-        staticClass: "btn btn-primary",
+        staticClass: "btn btn-big mb-0",
         attrs: { href: _vm.viewLink, target: "_blank" }
       },
       [
-        _c("i", { staticClass: "fas fa-book-open" }),
+        _c("i", { staticClass: "fas fa-book-open mr-1" }),
         _vm._v(" Lire cette édition")
       ]
     )
@@ -80199,7 +80199,7 @@ var render = function() {
           }
         },
         [
-          _c("ais-configure", { attrs: { hitsPerPage: 10 } }),
+          _c("ais-configure", { attrs: { hitsPerPage: 12 } }),
           _vm._v(" "),
           _c("div", { staticClass: "row" }, [
             _c(
@@ -80252,14 +80252,15 @@ var render = function() {
                             return _c(
                               "button",
                               {
-                                staticClass: "ais-InfiniteHits-loadMore",
+                                staticClass: "btn btn-big",
                                 attrs: { disabled: isLastPage },
                                 on: { click: refineNext }
                               },
                               [
-                                _vm._v(
-                                  "\n                      Voir plus\n                  "
-                                )
+                                _c("i", {
+                                  staticClass: "far fa-plus-square mr-1"
+                                }),
+                                _vm._v("Voir plus\n                  ")
                               ]
                             )
                           }
index da601ca3997e63ae8327eab4bee6fc7cf571f58b..e2b3ce9df1a726f1659799190bc6d8c6a0e2c261 100644 (file)
@@ -3,7 +3,7 @@
     <div class="card w-100">
         <img class="card-img-top" :src="hit.file.cover" alt="Cover">
         <div class="card-body">
-            <h5 class="card-title">{{hit.file.collection}} - <strong>{{hit.file.ref}}</strong></h5>
+            <h5 class="card-title" v-text="hit.file.title"></h5>
 
             <p class="card-text">
                 <span class="badge badge-light mr-1" v-for="tag in hit.file.tags">
@@ -15,7 +15,7 @@
             </p>
         </div>
 
-        <a :href="viewLink" class="btn btn-primary" target="_blank"><i class="fas fa-book-open"></i>&nbsp;Lire cette édition</a>
+        <a :href="viewLink" class="btn btn-big mb-0" target="_blank"><i class="fas fa-book-open mr-1"></i>&nbspLire cette édition</a>
 
 
 
index fac11f604a8d021cb7027e45d371dc5cbc41ce01..2912357c25456990d1efa8e97ed7b56c9bed3e04 100644 (file)
@@ -6,7 +6,7 @@
         :index-name="prefix+'searchable_texts'"
       >
        <ais-configure
-          :hits-per-page.camel="10"
+          :hits-per-page.camel="12"
         />
         <div class="row">
 
@@ -38,9 +38,9 @@
                         slot-scope="{ page, isLastPage, refineNext }"
                         :disabled="isLastPage"
                         @click="refineNext"
-                        class="ais-InfiniteHits-loadMore"
+                        class="btn btn-big"
                     >
-                        Voir plus
+                        <i class="far fa-plus-square mr-1"></i>Voir plus
                     </button>
                 </ais-infinite-hits>
               </div>
index c3cf226a015fbc8a64b95dad1aacb5530c7be372..4055b66cb0b070e6aa1e172f5fb28bfe9e84775e 100644 (file)
@@ -97,7 +97,7 @@ a {
 }
 
 
-.btn-back {
+.btn-back, .btn-big {
     @extend .highlight-blue;
     text-transform: uppercase;
     font-weight: bold;
@@ -165,3 +165,7 @@ article {
 .mh-campaign{
     max-height: 120px;
 }
+
+.badge-light {
+    font-weight: 300;
+}