PageSourceSearch

https://healthdoc.lovable.app/assets/news-C65s86Iu.js

js healthdoc.lovable.app collected 2026-10-03 03:28:40 UTC 1,282 bytes, 1 lines download raw bytes

1import{u as n,j as s,M as l,E as o,s as i}from"./index-598-LtL7.js";import{u as m}from"./useQuery-D5NZuNw2.js";import{C as d}from"./card-COx3rh2X.js";import{i as c}from"./safe-url-B3ZLErmu.js";function f(){const{t,lang:a}=n(),{data:r}=m({queryKey:["news"],queryFn:async()=>{const{data:e}=await i.from("news").select("*").order("published_at",{ascending:!1});return e??[]}});return s.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-8",children:[s.jsx("h1",{className:"mb-6 text-3xl font-bold",children:t("News & Updates","समाचार तथा अपडेट")}),s.jsx("div",{className:"space-y-4",children:r?.map(e=>s.jsxs(d,{className:"p-5",children:[s.jsx("div",{className:"text-xs text-muted-foreground",children:new Date(e.published_at).toLocaleDateString(a==="ne"?"ne-NP":"en-GB")}),s.jsx("h2",{className:"mt-1 text-lg font-semibold",children:a==="ne"?e.title_ne:e.title_en}),s.jsx("div",{className:"mt-2",children:s.jsx(l,{children:(a==="ne"?e.body_md_ne:e.body_md_en)??""})}),c(e.source_url)&&s.jsxs("a",{href:e.source_url,target:"_blank",rel:"noreferrer noopener",className:"mt-3 inline-flex items-center gap-1 text-sm text-primary hover:underline",children:[t("Source","स्रोत")," ",s.jsx(o,{className:"h-3 w-3"})]})]},e.id))})]})}export{f as component};

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.