1 line
No EOL
1.2 KiB
JavaScript
1 line
No EOL
1.2 KiB
JavaScript
import{Fragment as e,createBlock as t,createCommentVNode as n,createElementBlock as r,createElementVNode as i,createTextVNode as a,openBlock as o,renderList as s,toDisplayString as c,unref as l,withCtx as u}from"vue";import{Panel as d,PersonAvatar as f,formatRelative as p}from"@inhaus/ui";var m={class:`ih:-my-1 ih:grid ih:gap-1`},h=[`href`],g={class:`ih:min-w-0 ih:text-sm`},_={class:`ih:block ih:truncate`},v={class:`ih:font-medium`},y={class:`ih:text-muted-foreground`},b={class:`ih:line-clamp-2 ih:text-[13px] ih:text-muted-foreground`},x={class:`ih:text-xs ih:text-muted-foreground`},S={__name:`Recent`,props:{posts:{type:Array,required:!0}},setup(S){return(C,w)=>(o(),t(l(d),{title:`Aus Ihren Gruppen`,"action-label":`Alle Gruppen`,"action-href":`/gruppen`},{default:u(()=>[i(`ul`,m,[(o(!0),r(e,null,s(S.posts,e=>(o(),r(`li`,{key:e.id},[i(`a`,{href:e.url,class:`ih:-mx-2 ih:flex ih:gap-2.5 ih:rounded-md ih:p-2 ih:hover:bg-accent/50`},[e.user?(o(),t(l(f),{key:0,person:e.user,class:`ih:size-8 ih:text-[11px]`},null,8,[`person`])):n(``,!0),i(`span`,g,[i(`span`,_,[i(`span`,v,c(e.user?.name),1),w[0]||=a(),i(`span`,y,`in `+c(e.group),1)]),i(`span`,b,c(e.text),1),i(`span`,x,c(l(p)(e.created_at)),1)])],8,h)]))),128))])]),_:1}))}};export{S as default}; |