diff --git a/docs/assets/404View.522fb552.js b/docs/assets/404View.dd7eb74c.js similarity index 91% rename from docs/assets/404View.522fb552.js rename to docs/assets/404View.dd7eb74c.js index 51e471a..38e9bca 100644 --- a/docs/assets/404View.522fb552.js +++ b/docs/assets/404View.dd7eb74c.js @@ -1 +1 @@ -import{o as t,c as _,a as o,_ as n,f as d,C as r,I as i,J as l}from"./index.040b0aab.js";const p={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},h=o("path",{fill:"currentColor",d:"M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42Z"},null,-1),u=[h];function m(e,a){return t(),_("svg",p,u)}var v={name:"mdi-chevron-left",render:m};const s=e=>(i("data-v-dc5a2a7a"),e=e(),l(),e),f={class:"not-found"},g=s(()=>o("div",{class:"sorry"},"Page Not Found",-1)),x=s(()=>o("div",{class:"item-404"},"404",-1)),w={href:"/",class:"go-home"},V={__name:"404View",setup(e){return document.title="Page Not Found",(a,B)=>{const c=v;return t(),_("div",f,[g,x,o("a",w,[d(c,{class:"one-rem"}),r(" Go Back Home ")])])}}};var N=n(V,[["__scopeId","data-v-dc5a2a7a"]]);export{N as default}; +import{o as t,c as _,a as o,_ as n,f as d,C as r,I as i,J as l}from"./index.6bfae8aa.js";const p={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},h=o("path",{fill:"currentColor",d:"M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42Z"},null,-1),u=[h];function m(e,a){return t(),_("svg",p,u)}var v={name:"mdi-chevron-left",render:m};const s=e=>(i("data-v-dc5a2a7a"),e=e(),l(),e),f={class:"not-found"},g=s(()=>o("div",{class:"sorry"},"Page Not Found",-1)),x=s(()=>o("div",{class:"item-404"},"404",-1)),w={href:"/",class:"go-home"},V={__name:"404View",setup(e){return document.title="Page Not Found",(a,B)=>{const c=v;return t(),_("div",f,[g,x,o("a",w,[d(c,{class:"one-rem"}),r(" Go Back Home ")])])}}};var N=n(V,[["__scopeId","data-v-dc5a2a7a"]]);export{N as default}; diff --git a/docs/assets/HomeView.ad0b283f.js b/docs/assets/HomeView.b04ec14c.js similarity index 99% rename from docs/assets/HomeView.ad0b283f.js rename to docs/assets/HomeView.b04ec14c.js index 07d2dbc..0e6fa0a 100644 --- a/docs/assets/HomeView.ad0b283f.js +++ b/docs/assets/HomeView.b04ec14c.js @@ -1 +1 @@ -import{o as a,c as o,a as t,g as x,u as j,b as z,d as _,n as v,e as $,t as h,h as D,F as y,r as B,f as g,_ as G,i as J,j as k,k as Q,l as V,S as R,w as W,m as X,v as ee,p as te,q as b,s as M,x as ae,D as T,y as ne}from"./index.040b0aab.js";import{t as oe}from"./tracker.d5d900f2.js";const se={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},re=t("path",{fill:"currentColor",d:"M3 5h18v4H3V5m0 5h18v4H3v-4m0 5h18v4H3v-4Z"},null,-1),le=[re];function ie(n,i){return a(),o("svg",se,le)}var ce={name:"mdi-view-sequential",render:ie};const ue={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},de=t("path",{fill:"currentColor",d:"M3 19h6v-7H3v7m7 0h12v-7H10v7M3 5v6h19V5H3Z"},null,-1),he=[de];function _e(n,i){return a(),o("svg",ue,he)}var ve={name:"mdi-view-compact",render:_e};const me={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ge=t("path",{fill:"currentColor",d:"m18 21l-4-4h3V7h-3l4-4l4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2Z"},null,-1),fe=[ge];function pe(n,i){return a(),o("svg",me,fe)}var ke={name:"mdi-sort",render:pe};const we={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$e=t("path",{fill:"currentColor",d:"M14 12v7.88c.04.3-.06.62-.29.83a.996.996 0 0 1-1.41 0l-2.01-2.01a.989.989 0 0 1-.29-.83V12h-.03L4.21 4.62a1 1 0 0 1 .17-1.4c.19-.14.4-.22.62-.22h14c.22 0 .43.08.62.22a1 1 0 0 1 .17 1.4L14.03 12H14Z"},null,-1),be=[$e];function ye(n,i){return a(),o("svg",we,be)}var Be={name:"mdi-filter",render:ye};const Ce={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Le=t("path",{fill:"currentColor",d:"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5Z"},null,-1),Se=[Le];function Ve(n,i){return a(),o("svg",Ce,Se)}var Me={name:"mdi-search",render:Ve};const xe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ae=t("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"},null,-1),He=[Ae];function Ne(n,i){return a(),o("svg",xe,He)}var De={name:"mdi-close",render:Ne};const Re={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Te=t("path",{fill:"currentColor",d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7c0-.24-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81a3 3 0 0 0 3-3a3 3 0 0 0-3-3a3 3 0 0 0-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.15c-.05.21-.08.43-.08.66c0 1.61 1.31 2.91 2.92 2.91c1.61 0 2.92-1.3 2.92-2.91A2.92 2.92 0 0 0 18 16.08Z"},null,-1),Ie=[Te];function qe(n,i){return a(),o("svg",Re,Ie)}var Pe={name:"mdi-share-variant",render:qe};const Fe={class:"blog-peek"},Ze=["src"],Oe=t("div",{class:"blog-peek--divider"},null,-1),Ee={class:"blog-peek--author"},Ke=["src"],Ue={class:"author-info"},Ye=["href","title"],je={key:1,class:"author-name"},ze={class:"created-at",title:"Created Timestamp"},Ge={class:"blog-peek--content"},Je={class:"blog-title"},Qe={class:"tags"},We={key:0,class:"blog-peek--footer"},Xe={"aria-label":"Share",title:"Share Post",class:"icon-button"},et={class:"read-time"},tt={computed:{minutesToRead(){return Math.round(this.contentLength/(100*6))}}},at=Object.assign(tt,{__name:"BlogPeek",props:{title:{type:String,required:!0},tags:{type:Array,required:!0},authorName:{type:String,required:!0},authorAvatar:{type:String,required:!0},authorLink:{type:String,default:null},createdAt:{type:[Date,String],required:!0},contentLength:{type:Number,default:0},detailView:{type:Boolean,default:!1},banner:{type:String,default:null}},setup(n){const i=x("fallback_banner_dark"),w=x("fallback_banner"),{dark:c}=j(),u=z(()=>c.value?i:w);return(m,f)=>{const p=Pe;return a(),o("div",Fe,[t("div",{class:v(["blog-peek--banner",{"blog-peek--banner--fallback":!n.banner}])},[n.banner||_(u)?(a(),o("img",{key:0,src:n.banner||_(u),alt:"Blog Banner",class:v({"fallback-banner":!n.banner,"regular-banner":n.banner})},null,10,Ze)):$("",!0)],2),Oe,t("div",Ee,[t("img",{src:n.authorAvatar,class:"author-avatar circle",alt:"Author Avatar"},null,8,Ke),t("div",Ue,[n.authorLink?(a(),o("a",{key:0,href:n.authorLink,target:"_blank",title:n.authorName,class:"author-link"},h(n.authorName),9,Ye)):(a(),o("div",je,h(n.authorName),1)),t("div",ze,h(_(D)(n.createdAt).format("MMM DD, YYYY"))+" ("+h(_(D)(n.createdAt).fromNow())+") ",1)])]),t("div",Ge,[t("div",Je,h(n.title),1),t("div",Qe,[(a(!0),o(y,null,B(n.tags,(d,C)=>(a(),o("div",{key:C,class:"tag-item"}," #\xA0"+h(d),1))),128))])]),n.detailView?$("",!0):(a(),o("div",We,[t("button",Xe,[g(p,{class:"one-rem"})]),t("div",et,h(m.minutesToRead)+" minutes of read ",1)]))])}}});const nt={class:"home-view"},ot=["src"],st={class:"home-view--search"},rt=["onKeyup"],lt={class:"home-view--search--actions"},it=["onClick"],ct=["onClick"],ut=["title"],dt={key:0,class:"home-view--no-results"},ht={class:"message"},_t={__name:"HomeView",setup(n){const{currentRoute:i,push:w}=J(),c=k([]),u=k(""),m=k(!1),f=k(null),p=k(null),d=k(null);Q(async()=>{C(),oe.trackPageView()});const C=()=>{var e;m.value=!0,f.value=i.value.params.filterBy,p.value=(e=i.value.params)==null?void 0:e.sortBy,c.value=V(),L(p.value),m.value=!1,d.value=R.getHomeViewMode()},I=x("loading");W(u,()=>{u.value||(c.value=V())});const q=()=>{d.value=d.value==="list"?"grid":"list",R.saveHomeViewMode(d.value)},P=e=>{const l=e.seriesTitle;l?window.location.href=`/#/blog/${encodeURIComponent(l)}/${encodeURIComponent(e.title)}`:window.location.href=`/#/blog/${encodeURIComponent(e.title)}`},A=()=>{m.value=!0;const e=[],l=u.value.toLowerCase();f.value?c.value.forEach(r=>{f.value==="tag"?r.tags&&r.tags.join(" ").toLowerCase().includes(l)&&e.push(r):r.authorName.toLowerCase().includes(l)&&e.push(r)}):p.value?c.value.forEach(r=>{r.title.toLowerCase().includes(l)&&e.push(r)}):c.value.forEach(r=>{r.title.toLowerCase().includes(l)&&e.push(r)}),c.value=e,m.value=!1},H=()=>{u.value=""},N=()=>{w({name:"Home"}).then(()=>{c.value=V(),L(p.value),u.value=""})},F=e=>{i.value.params.sortBy===e?N():w({name:"Sort",params:{sortBy:e}}).then(()=>{f.value=e,L(e)})},Z=e=>{i.value.params.filterBy===e?N():w({name:"Filter",params:{filterBy:e}}).then(()=>{f.value=e})},L=e=>{e==="alpha"?c.value.sort((l,r)=>l.title.localeCompare(r.title)):c.value.sort((l,r)=>r.createdAt-l.createdAt)};return(e,l)=>{const r=De,O=Me,E=Be,K=ke,U=ve,Y=ce;return a(),o("div",nt,[m.value?(a(),o("img",{key:0,src:_(I),height:"30",width:"30",alt:"Loading Spinner",class:"spinner"},null,8,ot)):$("",!0),t("div",st,[X(t("input",{id:"search",class:"home-view--search--input","onUpdate:modelValue":l[0]||(l[0]=s=>u.value=s),placeholder:"Search...",onKeyup:te(A,["enter"])},null,40,rt),[[ee,u.value]]),t("div",lt,[u.value.length>0?(a(),o("button",{key:0,class:"clear-button",onClick:H},[g(r)])):$("",!0),t("button",{class:"icon-button",title:"Search",onClick:A},[g(O,{class:"one-rem"})]),g(_(T),null,{trigger:b(()=>[t("button",{class:v(["icon-button",{filtering:e.$route.name==="Filter"}]),title:"Filter"},[g(E,{class:"one-rem"})],2)]),drop:b(()=>[(a(!0),o(y,null,B(_(ae),s=>(a(),o("div",{key:s.key,class:v(["menu-drop-item",{"item-active":e.$route.params.filterBy===s.key}]),onClick:S=>Z(s.key)},h(s.label),11,it))),128))]),_:1}),g(_(T),{class:"menu"},{trigger:b(()=>[t("button",{class:v(["icon-button",{sorting:e.$route.name==="Sort"}]),title:"Sort"},[g(K,{class:"one-rem"})],2)]),drop:b(()=>[(a(!0),o(y,null,B(_(ne),s=>(a(),o("div",{key:s.key,class:v(["menu-drop-item",{"item-active":e.$route.params.sortBy===s.key}]),onClick:S=>F(s.key)},h(s.label),11,ct))),128))]),_:1}),t("button",{class:v(["icon-button",{sorting:e.$route.name==="Sort"}]),title:d.value==="list"?"Grid View":"List View",onClick:l[1]||(l[1]=s=>q())},[d.value==="list"?(a(),M(U,{key:0,class:"one-rem"})):(a(),M(Y,{key:1,class:"one-rem"}))],10,ut)])]),t("div",{class:v({"home-view--list":d.value==="list","home-view--grid":d.value!=="list"})},[(a(!0),o(y,null,B(c.value,(s,S)=>(a(),M(_(at),{key:S,title:s.title,"created-at":s.createdAt,"author-name":s.authorName,"author-link":s.authorLink,"author-avatar":s.authorAvatar,"content-length":s.contentLength,tags:s.tags,banner:s.banner,onClick:vt=>P(s)},null,8,["title","created-at","author-name","author-link","author-avatar","content-length","tags","banner","onClick"]))),128)),c.value.length===0?(a(),o("div",dt,[t("div",ht,'Sorry, no results found for "'+h(u.value)+'"',1),t("button",{onClick:H},"Reset Search")])):$("",!0)],2)])}}};var ft=G(_t,[["__scopeId","data-v-56103f1a"]]);export{ft as default}; +import{o as a,c as o,a as t,g as x,u as j,b as z,d as _,n as v,e as $,t as h,h as D,F as y,r as B,f as g,_ as G,i as J,j as k,k as Q,l as V,S as R,w as W,m as X,v as ee,p as te,q as b,s as M,x as ae,D as T,y as ne}from"./index.6bfae8aa.js";import{t as oe}from"./tracker.d5d900f2.js";const se={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},re=t("path",{fill:"currentColor",d:"M3 5h18v4H3V5m0 5h18v4H3v-4m0 5h18v4H3v-4Z"},null,-1),le=[re];function ie(n,i){return a(),o("svg",se,le)}var ce={name:"mdi-view-sequential",render:ie};const ue={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},de=t("path",{fill:"currentColor",d:"M3 19h6v-7H3v7m7 0h12v-7H10v7M3 5v6h19V5H3Z"},null,-1),he=[de];function _e(n,i){return a(),o("svg",ue,he)}var ve={name:"mdi-view-compact",render:_e};const me={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ge=t("path",{fill:"currentColor",d:"m18 21l-4-4h3V7h-3l4-4l4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2Z"},null,-1),fe=[ge];function pe(n,i){return a(),o("svg",me,fe)}var ke={name:"mdi-sort",render:pe};const we={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$e=t("path",{fill:"currentColor",d:"M14 12v7.88c.04.3-.06.62-.29.83a.996.996 0 0 1-1.41 0l-2.01-2.01a.989.989 0 0 1-.29-.83V12h-.03L4.21 4.62a1 1 0 0 1 .17-1.4c.19-.14.4-.22.62-.22h14c.22 0 .43.08.62.22a1 1 0 0 1 .17 1.4L14.03 12H14Z"},null,-1),be=[$e];function ye(n,i){return a(),o("svg",we,be)}var Be={name:"mdi-filter",render:ye};const Ce={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Le=t("path",{fill:"currentColor",d:"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5Z"},null,-1),Se=[Le];function Ve(n,i){return a(),o("svg",Ce,Se)}var Me={name:"mdi-search",render:Ve};const xe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ae=t("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"},null,-1),He=[Ae];function Ne(n,i){return a(),o("svg",xe,He)}var De={name:"mdi-close",render:Ne};const Re={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Te=t("path",{fill:"currentColor",d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7c0-.24-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81a3 3 0 0 0 3-3a3 3 0 0 0-3-3a3 3 0 0 0-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.15c-.05.21-.08.43-.08.66c0 1.61 1.31 2.91 2.92 2.91c1.61 0 2.92-1.3 2.92-2.91A2.92 2.92 0 0 0 18 16.08Z"},null,-1),Ie=[Te];function qe(n,i){return a(),o("svg",Re,Ie)}var Pe={name:"mdi-share-variant",render:qe};const Fe={class:"blog-peek"},Ze=["src"],Oe=t("div",{class:"blog-peek--divider"},null,-1),Ee={class:"blog-peek--author"},Ke=["src"],Ue={class:"author-info"},Ye=["href","title"],je={key:1,class:"author-name"},ze={class:"created-at",title:"Created Timestamp"},Ge={class:"blog-peek--content"},Je={class:"blog-title"},Qe={class:"tags"},We={key:0,class:"blog-peek--footer"},Xe={"aria-label":"Share",title:"Share Post",class:"icon-button"},et={class:"read-time"},tt={computed:{minutesToRead(){return Math.round(this.contentLength/(100*6))}}},at=Object.assign(tt,{__name:"BlogPeek",props:{title:{type:String,required:!0},tags:{type:Array,required:!0},authorName:{type:String,required:!0},authorAvatar:{type:String,required:!0},authorLink:{type:String,default:null},createdAt:{type:[Date,String],required:!0},contentLength:{type:Number,default:0},detailView:{type:Boolean,default:!1},banner:{type:String,default:null}},setup(n){const i=x("fallback_banner_dark"),w=x("fallback_banner"),{dark:c}=j(),u=z(()=>c.value?i:w);return(m,f)=>{const p=Pe;return a(),o("div",Fe,[t("div",{class:v(["blog-peek--banner",{"blog-peek--banner--fallback":!n.banner}])},[n.banner||_(u)?(a(),o("img",{key:0,src:n.banner||_(u),alt:"Blog Banner",class:v({"fallback-banner":!n.banner,"regular-banner":n.banner})},null,10,Ze)):$("",!0)],2),Oe,t("div",Ee,[t("img",{src:n.authorAvatar,class:"author-avatar circle",alt:"Author Avatar"},null,8,Ke),t("div",Ue,[n.authorLink?(a(),o("a",{key:0,href:n.authorLink,target:"_blank",title:n.authorName,class:"author-link"},h(n.authorName),9,Ye)):(a(),o("div",je,h(n.authorName),1)),t("div",ze,h(_(D)(n.createdAt).format("MMM DD, YYYY"))+" ("+h(_(D)(n.createdAt).fromNow())+") ",1)])]),t("div",Ge,[t("div",Je,h(n.title),1),t("div",Qe,[(a(!0),o(y,null,B(n.tags,(d,C)=>(a(),o("div",{key:C,class:"tag-item"}," #\xA0"+h(d),1))),128))])]),n.detailView?$("",!0):(a(),o("div",We,[t("button",Xe,[g(p,{class:"one-rem"})]),t("div",et,h(m.minutesToRead)+" minutes of read ",1)]))])}}});const nt={class:"home-view"},ot=["src"],st={class:"home-view--search"},rt=["onKeyup"],lt={class:"home-view--search--actions"},it=["onClick"],ct=["onClick"],ut=["title"],dt={key:0,class:"home-view--no-results"},ht={class:"message"},_t={__name:"HomeView",setup(n){const{currentRoute:i,push:w}=J(),c=k([]),u=k(""),m=k(!1),f=k(null),p=k(null),d=k(null);Q(async()=>{C(),oe.trackPageView()});const C=()=>{var e;m.value=!0,f.value=i.value.params.filterBy,p.value=(e=i.value.params)==null?void 0:e.sortBy,c.value=V(),L(p.value),m.value=!1,d.value=R.getHomeViewMode()},I=x("loading");W(u,()=>{u.value||(c.value=V())});const q=()=>{d.value=d.value==="list"?"grid":"list",R.saveHomeViewMode(d.value)},P=e=>{const l=e.seriesTitle;l?window.location.href=`/#/blog/${encodeURIComponent(l)}/${encodeURIComponent(e.title)}`:window.location.href=`/#/blog/${encodeURIComponent(e.title)}`},A=()=>{m.value=!0;const e=[],l=u.value.toLowerCase();f.value?c.value.forEach(r=>{f.value==="tag"?r.tags&&r.tags.join(" ").toLowerCase().includes(l)&&e.push(r):r.authorName.toLowerCase().includes(l)&&e.push(r)}):p.value?c.value.forEach(r=>{r.title.toLowerCase().includes(l)&&e.push(r)}):c.value.forEach(r=>{r.title.toLowerCase().includes(l)&&e.push(r)}),c.value=e,m.value=!1},H=()=>{u.value=""},N=()=>{w({name:"Home"}).then(()=>{c.value=V(),L(p.value),u.value=""})},F=e=>{i.value.params.sortBy===e?N():w({name:"Sort",params:{sortBy:e}}).then(()=>{f.value=e,L(e)})},Z=e=>{i.value.params.filterBy===e?N():w({name:"Filter",params:{filterBy:e}}).then(()=>{f.value=e})},L=e=>{e==="alpha"?c.value.sort((l,r)=>l.title.localeCompare(r.title)):c.value.sort((l,r)=>r.createdAt-l.createdAt)};return(e,l)=>{const r=De,O=Me,E=Be,K=ke,U=ve,Y=ce;return a(),o("div",nt,[m.value?(a(),o("img",{key:0,src:_(I),height:"30",width:"30",alt:"Loading Spinner",class:"spinner"},null,8,ot)):$("",!0),t("div",st,[X(t("input",{id:"search",class:"home-view--search--input","onUpdate:modelValue":l[0]||(l[0]=s=>u.value=s),placeholder:"Search...",onKeyup:te(A,["enter"])},null,40,rt),[[ee,u.value]]),t("div",lt,[u.value.length>0?(a(),o("button",{key:0,class:"clear-button",onClick:H},[g(r)])):$("",!0),t("button",{class:"icon-button",title:"Search",onClick:A},[g(O,{class:"one-rem"})]),g(_(T),null,{trigger:b(()=>[t("button",{class:v(["icon-button",{filtering:e.$route.name==="Filter"}]),title:"Filter"},[g(E,{class:"one-rem"})],2)]),drop:b(()=>[(a(!0),o(y,null,B(_(ae),s=>(a(),o("div",{key:s.key,class:v(["menu-drop-item",{"item-active":e.$route.params.filterBy===s.key}]),onClick:S=>Z(s.key)},h(s.label),11,it))),128))]),_:1}),g(_(T),{class:"menu"},{trigger:b(()=>[t("button",{class:v(["icon-button",{sorting:e.$route.name==="Sort"}]),title:"Sort"},[g(K,{class:"one-rem"})],2)]),drop:b(()=>[(a(!0),o(y,null,B(_(ne),s=>(a(),o("div",{key:s.key,class:v(["menu-drop-item",{"item-active":e.$route.params.sortBy===s.key}]),onClick:S=>F(s.key)},h(s.label),11,ct))),128))]),_:1}),t("button",{class:v(["icon-button",{sorting:e.$route.name==="Sort"}]),title:d.value==="list"?"Grid View":"List View",onClick:l[1]||(l[1]=s=>q())},[d.value==="list"?(a(),M(U,{key:0,class:"one-rem"})):(a(),M(Y,{key:1,class:"one-rem"}))],10,ut)])]),t("div",{class:v({"home-view--list":d.value==="list","home-view--grid":d.value!=="list"})},[(a(!0),o(y,null,B(c.value,(s,S)=>(a(),M(_(at),{key:S,title:s.title,"created-at":s.createdAt,"author-name":s.authorName,"author-link":s.authorLink,"author-avatar":s.authorAvatar,"content-length":s.contentLength,tags:s.tags,banner:s.banner,onClick:vt=>P(s)},null,8,["title","created-at","author-name","author-link","author-avatar","content-length","tags","banner","onClick"]))),128)),c.value.length===0?(a(),o("div",dt,[t("div",ht,'Sorry, no results found for "'+h(u.value)+'"',1),t("button",{onClick:H},"Reset Search")])):$("",!0)],2)])}}};var ft=G(_t,[["__scopeId","data-v-56103f1a"]]);export{ft as default}; diff --git a/docs/assets/PostView.b98d53fb.js b/docs/assets/PostView.5df3145f.js similarity index 99% rename from docs/assets/PostView.b98d53fb.js rename to docs/assets/PostView.5df3145f.js index 9136183..ccc6e9c 100644 --- a/docs/assets/PostView.b98d53fb.js +++ b/docs/assets/PostView.5df3145f.js @@ -1,3 +1,3 @@ -import{o as S,c as w,a as f,b as Rt,z as Xt,d as U,u as Zt,n as Kt,t as ne,f as N,g as ht,k as Ot,A as Jt,B as Qt,F as vt,r as Tt,C as gt,_ as en,i as tn,E as nn,j as Fe,w as rn,G as an,H as on,e as ln}from"./index.040b0aab.js";import{t as sn}from"./tracker.d5d900f2.js";/*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE */function H(t){return H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},H(t)}function We(t,n){return We=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},We(t,n)}function cn(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function de(t,n,o){return cn()?de=Reflect.construct:de=function(c,d,m){var T=[null];T.push.apply(T,d);var E=Function.bind.apply(c,T),D=new E;return m&&We(D,m.prototype),D},de.apply(null,arguments)}function k(t){return un(t)||fn(t)||mn(t)||dn()}function un(t){if(Array.isArray(t))return Ve(t)}function fn(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mn(t,n){if(!!t){if(typeof t=="string")return Ve(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Ve(t,n)}}function Ve(t,n){(n==null||n>t.length)&&(n=t.length);for(var o=0,l=new Array(n);ot.length)&&(n=t.length);for(var o=0,l=new Array(n);o1?o-1:0),c=1;c/gm),Nn=x(/\${[\w\W]*}/gm),Ln=x(/^data-[\-\w.\u00B7-\uFFFF]/),Dn=x(/^aria-[\-\w]+$/),Cn=x(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mn=x(/^(?:\w+script|data):/i),kn=x(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xn=x(/^html$/i),In=function(){return typeof window=="undefined"?null:window},Pn=function(n,o){if(H(n)!=="object"||typeof n.createPolicy!="function")return null;var l=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(l=o.currentScript.getAttribute(c));var d="dompurify"+(l?"#"+l:"");try{return n.createPolicy(d,{createHTML:function(T){return T},createScriptURL:function(T){return T}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}};function Lt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:In(),n=function(e){return Lt(e)};if(n.version="2.4.1",n.removed=[],!t||!t.document||t.document.nodeType!==9)return n.isSupported=!1,n;var o=t.document,l=t.document,c=t.DocumentFragment,d=t.HTMLTemplateElement,m=t.Node,T=t.Element,E=t.NodeFilter,D=t.NamedNodeMap,K=D===void 0?t.NamedNodeMap||t.MozNamedAttrMap:D,he=t.HTMLFormElement,ve=t.DOMParser,z=t.trustedTypes,re=T.prototype,Dt=fe(re,"cloneNode"),Ct=fe(re,"nextSibling"),Mt=fe(re,"childNodes"),Te=fe(re,"parentNode");if(typeof d=="function"){var ge=l.createElement("template");ge.content&&ge.content.ownerDocument&&(l=ge.content.ownerDocument)}var C=Pn(z,o),qe=C?C.createHTML(""):"",ae=l,Ae=ae.implementation,kt=ae.createNodeIterator,xt=ae.createDocumentFragment,It=ae.getElementsByTagName,Pt=o.importNode,Ye={};try{Ye=W(l).documentMode?l.documentMode:{}}catch{}var I={};n.isSupported=typeof Te=="function"&&Ae&&typeof Ae.createHTMLDocument!="undefined"&&Ye!==9;var ye=Rn,Ee=On,be=Nn,Ft=Ln,$t=Dn,Ut=Mn,Xe=kn,Se=Cn,_=null,Ze=s({},[].concat(k(Et),k(He),k(ze),k(Be),k(bt))),g=null,Ke=s({},[].concat(k(St),k(Ge),k(wt),k(me))),p=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,we=null,Je=!0,Re=!0,Qe=!1,V=!1,B=!1,Oe=!1,Ne=!1,j=!1,oe=!1,ie=!1,et=!0,tt=!1,Ht="user-content-",Le=!0,Q=!1,q={},Y=null,nt=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),rt=null,at=s({},["audio","video","img","source","image","track"]),De=null,ot=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),le="http://www.w3.org/1998/Math/MathML",se="http://www.w3.org/2000/svg",P="http://www.w3.org/1999/xhtml",X=P,Ce=!1,Me=null,zt=s({},[le,se,P],$e),G,Bt=["application/xhtml+xml","text/html"],Gt="text/html",h,Z=null,Wt=l.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},ke=function(e){Z&&Z===e||((!e||H(e)!=="object")&&(e={}),e=W(e),G=Bt.indexOf(e.PARSER_MEDIA_TYPE)===-1?G=Gt:G=e.PARSER_MEDIA_TYPE,h=G==="application/xhtml+xml"?$e:pe,_="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS,h):Ze,g="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR,h):Ke,Me="ALLOWED_NAMESPACES"in e?s({},e.ALLOWED_NAMESPACES,$e):zt,De="ADD_URI_SAFE_ATTR"in e?s(W(ot),e.ADD_URI_SAFE_ATTR,h):ot,rt="ADD_DATA_URI_TAGS"in e?s(W(at),e.ADD_DATA_URI_TAGS,h):at,Y="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS,h):nt,J="FORBID_TAGS"in e?s({},e.FORBID_TAGS,h):{},we="FORBID_ATTR"in e?s({},e.FORBID_ATTR,h):{},q="USE_PROFILES"in e?e.USE_PROFILES:!1,Je=e.ALLOW_ARIA_ATTR!==!1,Re=e.ALLOW_DATA_ATTR!==!1,Qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,V=e.SAFE_FOR_TEMPLATES||!1,B=e.WHOLE_DOCUMENT||!1,j=e.RETURN_DOM||!1,oe=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,et=e.SANITIZE_DOM!==!1,tt=e.SANITIZE_NAMED_PROPS||!1,Le=e.KEEP_CONTENT!==!1,Q=e.IN_PLACE||!1,Se=e.ALLOWED_URI_REGEXP||Se,X=e.NAMESPACE||P,e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(p.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(p.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(p.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),V&&(Re=!1),oe&&(j=!0),q&&(_=s({},k(bt)),g=[],q.html===!0&&(s(_,Et),s(g,St)),q.svg===!0&&(s(_,He),s(g,Ge),s(g,me)),q.svgFilters===!0&&(s(_,ze),s(g,Ge),s(g,me)),q.mathMl===!0&&(s(_,Be),s(g,wt),s(g,me))),e.ADD_TAGS&&(_===Ze&&(_=W(_)),s(_,e.ADD_TAGS,h)),e.ADD_ATTR&&(g===Ke&&(g=W(g)),s(g,e.ADD_ATTR,h)),e.ADD_URI_SAFE_ATTR&&s(De,e.ADD_URI_SAFE_ATTR,h),e.FORBID_CONTENTS&&(Y===nt&&(Y=W(Y)),s(Y,e.FORBID_CONTENTS,h)),Le&&(_["#text"]=!0),B&&s(_,["html","head","body"]),_.table&&(s(_,["tbody"]),delete J.tbody),R&&R(e),Z=e)},lt=s({},["mi","mo","mn","ms","mtext"]),st=s({},["foreignobject","desc","title","annotation-xml"]),Vt=s({},["title","style","font","a","script"]),ce=s({},He);s(ce,ze),s(ce,Sn);var xe=s({},Be);s(xe,wn);var jt=function(e){var r=Te(e);(!r||!r.tagName)&&(r={namespaceURI:X,tagName:"template"});var a=pe(e.tagName),u=pe(r.tagName);return Me[e.namespaceURI]?e.namespaceURI===se?r.namespaceURI===P?a==="svg":r.namespaceURI===le?a==="svg"&&(u==="annotation-xml"||lt[u]):Boolean(ce[a]):e.namespaceURI===le?r.namespaceURI===P?a==="math":r.namespaceURI===se?a==="math"&&st[u]:Boolean(xe[a]):e.namespaceURI===P?r.namespaceURI===se&&!st[u]||r.namespaceURI===le&&!lt[u]?!1:!xe[a]&&(Vt[a]||!ce[a]):!!(G==="application/xhtml+xml"&&Me[e.namespaceURI]):!1},F=function(e){te(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch{try{e.outerHTML=qe}catch{e.remove()}}},Ie=function(e,r){try{te(n.removed,{attribute:r.getAttributeNode(e),from:r})}catch{te(n.removed,{attribute:null,from:r})}if(r.removeAttribute(e),e==="is"&&!g[e])if(j||oe)try{F(r)}catch{}else try{r.setAttribute(e,"")}catch{}},ct=function(e){var r,a;if(Ne)e=""+e;else{var u=An(e,/^[\r\n\t ]+/);a=u&&u[0]}G==="application/xhtml+xml"&&X===P&&(e=''+e+"");var O=C?C.createHTML(e):e;if(X===P)try{r=new ve().parseFromString(O,G)}catch{}if(!r||!r.documentElement){r=Ae.createDocument(X,"template",null);try{r.documentElement.innerHTML=Ce?"":O}catch{}}var y=r.body||r.documentElement;return e&&a&&y.insertBefore(l.createTextNode(a),y.childNodes[0]||null),X===P?It.call(r,B?"html":"body")[0]:B?r.documentElement:y},ut=function(e){return kt.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT,null,!1)},qt=function(e){return e instanceof he&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof K)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},ee=function(e){return H(m)==="object"?e instanceof m:e&&H(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},$=function(e,r,a){!I[e]||gn(I[e],function(u){u.call(n,r,a,Z)})},ft=function(e){var r;if($("beforeSanitizeElements",e,null),qt(e)||b(/[\u0080-\uFFFF]/,e.nodeName))return F(e),!0;var a=h(e.nodeName);if($("uponSanitizeElement",e,{tagName:a,allowedTags:_}),e.hasChildNodes()&&!ee(e.firstElementChild)&&(!ee(e.content)||!ee(e.content.firstElementChild))&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent)||a==="select"&&b(/