materio-d9/web/themes/custom/materiotheme/assets/dist/module-blabla.bundle.js

1 line
2.0 KiB
JavaScript
Raw Normal View History

2021-06-01 22:46:15 +02:00
(self.webpackChunkmaterio_com=self.webpackChunkmaterio_com||[]).push([[67],{4007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"blabla"}},[e.items.length?i("div",{staticClass:"cards-list"},[i("ul",e._l(e.items,(function(e){return i("li",{key:e.nid},[i("ArticleCard",{attrs:{item:e}})],1)})),0),e._v(" "),i("infinite-loading",{on:{infinite:e.nextPage}},[i("div",{attrs:{slot:"no-more"},slot:"no-more"},[e._v("No more articles")])])],1):i("div",{staticClass:"loading"},[i("span",[e._v(e._s(e.$t("default.Loading…")))])])])};a._withStripped=!0;var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("article",{staticClass:"card article"},[i("header",[i("h1",[i("a",{attrs:{href:e.item.view_node},domProps:{innerHTML:e._s(e.item.title)},on:{click:function(t){return t.preventDefault(),e.onclick(t)}}})]),e._v(" "),i("aside",{domProps:{innerHTML:e._s(e.item.created)}})]),e._v(" "),i("section",{staticClass:"images"},[i("a",{attrs:{href:e.item.view_node},on:{click:function(t){return t.preventDefault(),e.onclick(t)}}},[i("figure",{domProps:{innerHTML:e._s(e.item.field_visuel)}})])])])};s._withStripped=!0;var n=i(4408);drupalSettings.path.baseUrl,drupalSettings.path.pathPrefix;const r={name:"ArticleCard",router:n.Z,props:["item"],data(){return{alias:this.item.view_node.replace(/^.*\/blabla\//g,"")}},methods:{onclick(){this.alias,this.$router.push({name:"article",params:{alias:this.alias,id:this.item.nid}})}}};var l=i(1900),o=(0,l.Z)(r,s,[],!1,null,"08b811fe",null);o.options.__file="web/themes/custom/materiotheme/vuejs/components/Content/ArticleCard.vue";const c=o.exports;var m=i(629);const d={name:"Blabla",computed:{...(0,m.rn)({items:e=>e.Blabla.items})},created(){this.items.length||this.getItems()},methods:{...(0,m.nv)({getItems:"Blabla/getItems",nextPage:"Blabla/nextPage"})},components:{ArticleCard:c}};var u=(0,l.Z)(d,a,[],!1,null,"230b184d",null);u.options.__file="web/themes/custom/materiotheme/vuejs/components/Pages/Blabla.vue";const p=u.exports}}]);