1 line
7.6 KiB
JavaScript
1 line
7.6 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"+cux":function(t,e){t.exports={type:"image",mimeType:"image/gif",src:"/assets/static/loader.7ba8522.26b00aa05cbb68a428ee9f0fd01277d2.gif",size:{width:200,height:200},sizes:"(max-width: 200px) 100vw, 200px",srcset:["/assets/static/loader.7ba8522.26b00aa05cbb68a428ee9f0fd01277d2.gif 200w"],dataUri:"data:image/svg+xml,%3csvg fill='none' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cfilter id='__svg-blur-4ab46238d327d018a971312e5634faf6'%3e%3cfeGaussianBlur in='SourceGraphic' stdDeviation='40'/%3e%3c/filter%3e%3c/defs%3e%3cimage x='0' y='0' filter='url(%23__svg-blur-4ab46238d327d018a971312e5634faf6)' width='200' height='200' xlink:href='data:image/gif%3bbase64%2ciVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAPoAAAD6AG1e1JrAAAF%2b0lEQVR42u2Xe0xTVxzH21umSxb%2bcLqYZVk2pmMqvpZsmdsy2eZ8oaABBBTmA0QnQxy%2bgPmcojKnw6kTNogiVREpUloqsMpDoNCWRxGKUCk%2bJgKFWih90SI9u%2beUXtFlSaUp6ZLzSb65j3PPr/197%2b%2beB42GwWAwGAwGg8FgMBgMBoPBYDCjIK%2b8FR0BALS1%2bwtdPl2f5fJleLaL50Z7xHLZcuwmI7tIhmKfSK%2bhJV%2bvc14TADA5LPa5LAkdHo9cqHLO5HkVcmsFvBr6Ez98flh25DdbciIWfGePrm%2bNOV22noz5CjKBVYdM4FS0OJ8BrJvN9GEDJq3YwQPTA9lgbggbzAkevWYH54CPN/CA7y5u3VOgd4XxUzn1dKesgCw%2bZcDry6LYqve808zT/ZjGab7pJnv0/oqL%2blkhXLD1l%2bIkGH924GVGecN95zZg%2bbZc1RSfNDDDn2kiTRi0R2S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WvWq0K7Ff3BvSrVcPqDejtUwYpexWrlb3dLyOyT/dalVr5FYyvUHbQ1Jq%2bsVnf5wssW9y/hG3obffr9JYpr6XjX8%2bqlApqKdwqawQP2prAvVYpuC%2b3T3JZA%2bjpegDuSOuEMH51VREhlzvhdrhH0UFthhrrRSqRoMgsrioxkRq0UwMNkkogqa3Mh/EFpTxCKq13PgOU3Z1WAyY2NVSra8VloEZ0a4iU2U4ZpbeFoLlJgr5J/o0sorOz3akrYCJZAZoaUSkg3565WlgCRidL/1rRLdDxSA46Oh5Fwvh3ZU2MkfsUp0Gl7KY%2bgbstDX2kCYDUIKmnoxTsa5Y2VHc/bn94GMZeOG8yzSmTt8wClp2gaQgQBr3uHb22302v1Viks0in6Ucy6Cz34Tn1zEhZ2t8lj1PhYuzFHarJNOCcJgwOOebt3Gmqp8pere5zzuR1OstK0Ez%2bUXL1R1d0PqJ3d7UP6zGSorMdCV1T58%2bErq3t5DUcV/r6elFceNT0O2nyGAwGg8FgMBgMBoPBYDAYzP%2bHfwBMQvwW3C5PBwAAAABJRU5ErkJggg==' /%3e%3c/svg%3e"}},"9bAD":function(t,e,s){"use strict";s("x1lP")},A2Wa:function(t,e,s){"use strict";s("oEvX")},FvWF:function(t,e,s){"use strict";s.r(e);s("07d7"),s("rB9j"),s("PKPk"),s("hByQ"),s("3bBZ"),s("Kz25");var r={props:{record:{},border:{type:Boolean,default:!0}},computed:{card:function(){return"MarkdownPage"!=this.record.__typename},path:function(){return this.pathPrefix?this.pathPrefix+"/"+this.record.id:this.record.path}}},a=(s("9bAD"),s("KHd+")),i={metaInfo:{title:"Search"},data:function(){return{q:"",objects:{},loading:!0}},computed:{searchResults:function(){var t=this.q;if(!t||t.length<3)return[];for(var e=this.$search.search({query:t,limit:100}),s=[],r=0;r<e.length;r++){var a=e[r];s.push({node:this.objects[a.path]})}return s},contentHeight:function(){return window.innerHeight-128}},mounted:function(){this.q=new URL(location.href).searchParams.get("query");for(var t=0;t<this.$page.projects.edges.length;t++){var e=this.$page.projects.edges[t];this.objects[e.node.path]=e.node}for(t=0;t<this.$page.people.edges.length;t++){e=this.$page.people.edges[t];this.objects[e.node.path]=e.node}for(t=0;t<this.$page.blogs.edges.length;t++){e=this.$page.blogs.edges[t];this.objects[e.node.path]=e.node}for(t=0;t<this.$page.markdowns.edges.length;t++){e=this.$page.markdowns.edges[t];this.objects[e.node.path]=e.node}this.loading=!1},components:{SearchListItem:Object(a.a)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.card?s("div",{staticClass:"flex search-post px-0 sm:px-4 pb-8 mb-8",class:{"no-border":!t.border}},[s("g-link",{staticClass:"post-card-image-link",attrs:{to:t.record.path}},[s("g-image",{staticClass:"post-card-image",attrs:{src:t.record.image,alt:t.record.title}})],1),s("div",{staticClass:"p-5"},[s("g-link",{attrs:{to:t.record.path}},[s("h2",{staticClass:"post-card-title mt-3"},[t._v(t._s(t.record.title||t.record.name))]),s("p",{staticClass:"post-card-excerpt"},[t._v(t._s(t.record.excerpt))]),s("section",{staticClass:"post-tags container mx-auto relative py-1"},t._l(t.record.memberships,(function(e){return s("g-link",{key:e.id,staticClass:"text-xs bg-transparent hover:text-blue-700 py-1 px-2 mr-1 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full",attrs:{to:e.path}},[t._v(t._s(e.title))])})),1)]),s("div",{staticClass:"w-full post-card-meta pt-2"},[s("div",{staticClass:"avatars"},[s("div",{staticClass:"flex items-center"},[s("div",{staticClass:"flex justify-between items-center"},[s("ul",{staticClass:"list-none flex author-list m-0"},t._l(t.record.authors,(function(t){return s("li",{key:t.id,staticClass:"author-list-item"},[s("g-link",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.name,expression:"author.name"}],attrs:{to:t.path}},[s("g-image",{staticClass:"w-8 h-8 rounded-full bg-gray-200 border-2 border-white",attrs:{src:t.image,alt:t.name}})],1)],1)})),0)]),s("div",{staticClass:"flex flex-col text-xs leading-none uppercase"},[s("p",[s("g-link",{attrs:{to:t.record.path}},[s("time",{attrs:{datetime:t.record.datetime}},[t._v(t._s(t.record.humanTime))])])],1),s("p",[s("g-link",{attrs:{to:t.record.path}},[s("time",{attrs:{datetime:t.record.datetime}},[t._v(t._s(t.record.startDate))])]),t._v("\n "+t._s(t.record.status)+"\n ")],1)])]),s("section",{staticClass:"post-tags container mx-auto relative py-3"},t._l(t.record.tags,(function(e){return s("g-link",{key:e.id,staticClass:"text-xs bg-transparent hover:text-blue-700 py-2 px-4 mr-2 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full",attrs:{to:e.path}},[t._v(t._s(e.title))])})),1)])])],1)],1):s("div",{staticClass:"flex search-post px-0 sm:px-4 pb-8 mb-8",class:{"no-border":!t.border}},[s("div",{staticClass:"p-5"},[s("g-link",{attrs:{to:t.record.path}},[s("h2",{staticClass:"post-card-title mt-3"},[t._v(t._s(t.record.title))]),t.record.excerpt?s("p",{staticClass:"post-card-excerpt"},[t._v(t._s(t.record.excerpt.substring(100)))]):t._e()])],1)])}),[],!1,null,"72a7ec66",null).exports}},o=(s("A2Wa"),null),c=Object(a.a)(i,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Layout",[r("div",{staticClass:"container sm:pxi-0 mx-auto",style:{"min-height":t.contentHeight+"px"}},[t.loading?r("g-image",{staticClass:"m-auto",attrs:{src:s("+cux"),alt:""}}):t._e(),t.searchResults.length>0?r("div",{staticClass:"flex flex-wrap with-large pt-8 pb-8 mx-4 sm:-mx-4"},t._l(t.searchResults,(function(t){return r("SearchListItem",{key:t.node.id,attrs:{record:t.node}})})),1):r("div",{staticClass:"flex flex-col with-large my-auto text-center py-20"},[r("h1",{},[t._v("No results")]),r("p",[t._v("OOPS! Something went wrong here")])])],1)])}),[],!1,null,"5e8f1829",null);"function"==typeof o&&o(c);e.default=c.exports},oEvX:function(t,e,s){},x1lP:function(t,e,s){}}]); |