1import{d as x,a as y,w as k,b as d,c as n,r as c,F as _,e as N,f as h,o as r,g as b,h as C,i as o,t,_ as $,j as p,k as I}from"./BBMRuxCa.js";import{u as V}from"./CvRWc-3U.js";import{_ as A}from"./DlAUqK2U.js";const B=x({__name:"api-test",async setup(L){let s,l;const{$directus:m,$readItems:f,$readItem:S,$site:{id:g}}=y(),{data:i}=([s,l]=k(()=>h("news",()=>m.request(f("news",{fields:["slug","title","published_at","tags.news_tags_id.title","tags.news_tags_id.color","user_created.first_name","user_created.last_name"],sort:["-published_at"],filter:{site:g??null}})))),s=await s,l(),s);return V().loadNavigation(),(D,a)=>{const w=$;return d(i)?(r(!0),n(_,{key:0},c(d(i),e=>(r(),n("li",{key:e.id},[b(w,{href:`/news${e.slug}`},{default:C(()=>[o("h2",null,t(e.title),1)]),_:2},1032,["href"]),o("span",null,[p(t(e.published_at)+" ⢠"+t(e.user_created.first_name)+" "+t(e.user_created.last_name),1),a[0]||(a[0]=o("br",null,null,-1))]),(r(!0),n(_,null,c(e.tags,u=>(r(),n(_,{key:u.id},[o("span",{class:"tag",style:I({"--tag-color":u.news_tags_id.color})},t(u),5),a[1]||(a[1]=p(" ⢠",-1))],64))),128))]))),128)):N("",!0)}}}),q=A(B,[["__scopeId","data-v-cf77298a"]]);export{q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.