PageSourceSearch

https://uaeinteract.com/assets/RSSFeed-DVQBPmYs.js

js uaeinteract.com collected 2026-10-02 04:16:35 UTC 7,363 bytes, 32 lines download raw bytes

1var b=(l,m,r)=>new Promise((x,d)=>{var p=a=>{try{i(r.next(a))}catch(t){d(t)}},n=a=>{try{i(r.throw(a))}catch(t){d(t)}},i=a=>a.done?x(a.value):Promise.resolve(a.value).then(p,n);i((r=r.apply(l,m)).next())});import{r as g,j as e,V as j,E as N,N as o,b as w,y as f}from"./vendor-react-BFIu5aYX.js";import{S}from"./index-D7EqKZqX.js";import{s as v}from"./admin-pages-D0UVC722.js";import"./vendor-DrTmDyro.js";import"./vendor-supabase-BbSnAaKv.js";function k(){const[l,m]=g.useState([]),[r,x]=g.useState(!0);g.useEffect(()=>{d()},[]);function d(){return b(this,null,function*(){const{data:t,error:c}=yield v.from("news_articles").select(`
2        id,
3        title,
4        slug,
5        excerpt,
6        published_at,
7        category:news_categories(name, slug)
8      `).eq("status","published").order("published_at",{ascending:!1}).limit(50);!c&&t&&m(t),x(!1)})}function p(){const t="https://www.uaeinteract.com",c=l.map(s=>{var h;const y=new Date(s.published_at).toUTCString();return`
9    <item>
10      <title>${n(s.title)}</title>
11      <link>${t}/news/${s.slug}</link>
12      <guid>${t}/news/${s.slug}</guid>
13      <description>${n(s.excerpt)}</description>
14      <category>${n(((h=s.category)==null?void 0:h.name)||"News")}</category>
15      <pubDate>${y}</pubDate>
16    </item>`}).join("");return`<?xml version="1.0" encoding="UTF-8"?>
17<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
18  <channel>
19    <title>UAE Interact - Latest News</title>
20    <link>${t}</link>
21    <description>Latest news and updates about the United Arab Emirates covering politics, economy, culture, tourism, business, and regional developments.</description>
22    <language>en-us</language>
23    <lastBuildDate>${new Date().toUTCString()}</lastBuildDate>
24    <atom:link href="${t}/rss/news" rel="self" type="application/rss+xml" />
25    <image>
26      <url>${t}/logo.png</url>
27      <title>UAE Interact</title>
28      <link>${t}</link>
29    </image>
30${c}
31  </channel>
32</rss>`}function n(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function i(){const t=p(),c=new Blob([t],{type:"application/rss+xml"}),u=URL.createObjectURL(c),s=document.createElement("a");s.href=u,s.download="uaeinteract-news.xml",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(u)}function a(){navigator.clipboard.writeText("https://www.uaeinteract.com/rss/news"),alert("RSS feed URL copied to clipboard!")}return e.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[e.jsx(S,{title:"RSS News Feed - UAE Interact",description:"Subscribe to UAE Interact's RSS news feed for the latest updates about the United Arab Emirates covering politics, economy, culture, and regional developments.",canonical:"https://www.uaeinteract.com/rss/news"}),e.jsxs("main",{className:"flex-grow pt-20",children:[e.jsx("div",{className:"bg-gradient-to-r from-red-600 to-red-700 text-white py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-white/10 rounded-full mb-6",children:e.jsx(j,{className:"w-8 h-8"})}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"UAE Interact RSS News Feed"}),e.jsx("p",{className:"text-xl text-red-100 mb-8",children:"Stay updated with the latest news from the United Arab Emirates"})]})})}),e.jsx("div",{className:"container mx-auto px-4 py-12",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-8 mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Subscribe to Our Feed"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Get real-time updates about UAE news, politics, economy, culture, tourism, and regional developments delivered directly to your RSS reader."}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-6 mb-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("code",{className:"text-sm text-gray-700 bg-white px-4 py-2 rounded border border-gray-200 flex-grow mr-4",children:"https://www.uaeinteract.com/rss/news"}),e.jsx("button",{onClick:a,className:"bg-red-600 text-white px-4 py-2 rounded hover:bg-red-700 transition whitespace-nowrap",children:"Copy URL"})]}),e.jsxs("button",{onClick:i,className:"w-full bg-green-600 text-white px-6 py-3 rounded hover:bg-green-700 transition flex items-center justify-center gap-2",children:[e.jsx(N,{className:"w-5 h-5"}),"Download RSS Feed"]})]}),e.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"What is RSS?"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"RSS (Really Simple Syndication) allows you to subscribe to website updates and read them in your favorite RSS reader application. Instead of visiting multiple websites, you can see all updates in one place."}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4 mt-6",children:"Popular RSS Readers"}),e.jsxs("ul",{className:"grid md:grid-cols-2 gap-3",children:[e.jsxs("li",{className:"flex items-center gap-2 text-gray-700",children:[e.jsx(o,{className:"w-4 h-4 text-red-600"}),"Feedly"]}),e.jsxs("li",{className:"flex items-center gap-2 text-gray-700",children:[e.jsx(o,{className:"w-4 h-4 text-red-600"}),"Inoreader"]}),e.jsxs("li",{className:"flex items-center gap-2 text-gray-700",children:[e.jsx(o,{className:"w-4 h-4 text-red-600"}),"NewsBlur"]}),e.jsxs("li",{className:"flex items-center gap-2 text-gray-700",children:[e.jsx(o,{className:"w-4 h-4 text-red-600"}),"The Old Reader"]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-8",children:[e.jsxs("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:["Latest News Articles",e.jsxs("span",{className:"text-sm font-normal text-gray-500 ml-3",children:["(",l.length," articles in feed)"]})]}),r?e.jsxs("div",{className:"text-center py-12",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-red-600 mx-auto"}),e.jsx("p",{className:"text-gray-600 mt-4",children:"Loading articles..."})]}):e.jsx("div",{className:"space-y-6",children:l.map(t=>e.jsx("div",{className:"border-b border-gray-200 pb-6 last:border-0",children:e.jsxs(w,{to:`/news/${t.slug}`,className:"group",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 group-hover:text-red-600 transition mb-2",children:t.title}),e.jsx("p",{className:"text-gray-600 mb-3 line-clamp-2",children:t.excerpt}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-500",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(f,{className:"w-4 h-4"}),new Date(t.published_at).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})]}),t.category&&e.jsx("span",{className:"bg-red-100 text-red-700 px-3 py-1 rounded-full text-xs",children:t.category.name})]})]})},t.id))}),e.jsx("div",{className:"mt-8 pt-6 border-t border-gray-200 text-center",children:e.jsxs(w,{to:"/news",className:"inline-flex items-center gap-2 text-red-600 hover:text-red-700 font-semibold",children:["View All News Articles",e.jsx(o,{className:"w-5 h-5"})]})})]})]})})]})]})}export{k 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.