PageSourceSearch

https://1391korea.net/assets/LatestBoard-BGAkW1Te.js

js 1391korea.net collected 2026-10-08 09:18:06 UTC 4,392 bytes, 1 lines download raw bytes

1import{t as e}from"./jsx-runtime-Cx0BB4qO.js";import{a as t}from"./preload-helper-DqXppSED.js";import{r as n}from"./linkUtils-rVe0MSn0.js";var r=e();function i({widget:e,skin:i=`list`,limit:a=5,fullWidth:o=!1}){if(!e)return null;let s=Array.isArray(e.posts)?e.posts.slice(0,a):[],c=s[0];return(0,r.jsxs)(`div`,{className:`card bg-base-100 border border-base-300/70 shadow-sm hover:shadow-lg hover:border-base-300 transition-all h-full flex flex-col justify-between rounded-xl overflow-hidden ${o?`col-span-full`:``}`,children:[(0,r.jsxs)(`div`,{className:`bg-base-200/50 px-4 py-2.5 border-b border-base-200 flex items-center justify-between group cursor-pointer`,children:[(0,r.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,r.jsxs)(t,{to:`/board/$boardId`,params:{boardId:e.boardId},className:`font-bold text-sm text-base-content hover:text-primary active-press transition-colors flex items-center gap-1.5`,children:[(0,r.jsx)(`img`,{src:`/logo_square.png`,alt:`1391`,className:`h-[1.2em] w-auto object-contain filter grayscale opacity-75 rounded-md group-hover:grayscale-0 group-hover:opacity-100 transition-opacity duration-300`}),(0,r.jsx)(`span`,{children:e.title})]}),e.snsBadges?.map((t,n)=>(0,r.jsx)(`a`,{href:t.url,target:`_blank`,rel:`noreferrer`,className:`badge badge-xs bg-teal-600 hover:bg-teal-700 active-press text-white font-bold border-none px-1.5 py-0.5 text-[10px] transition-colors`,title:`${e.title} ${t.label} 링크 이동`,onClick:e=>e.stopPropagation(),children:t.label},n))]}),(0,r.jsx)(t,{to:`/board/$boardId`,params:{boardId:e.boardId},className:`text-base-content/60 hover:text-primary active-press transition-colors text-xs font-bold p-1 hover:bg-base-300/50 rounded-md`,title:`${e.title} 목록 전체보기`,children:`➕`})]}),(0,r.jsx)(`div`,{className:`p-4 flex-1 flex flex-col justify-between`,children:s.length===0?(0,r.jsx)(`p`,{className:`text-xs text-base-content/60 text-center py-6`,children:`등록된 게시글이 없습니다.`}):i===`snippet`&&c?(0,r.jsxs)(`div`,{className:`space-y-2`,children:[(0,r.jsxs)(t,{to:`/board/$boardId/$postId`,params:{boardId:e.boardId,postId:String(c.id)},className:`font-bold text-xs text-base-content hover:text-primary active-press line-clamp-1 block`,children:[(0,r.jsx)(`span`,{children:c.subject}),c.isSecret&&(0,r.jsx)(`span`,{title:`비밀글`,className:`ml-1 text-amber-500`,children:`🔒`})]}),c.contentSnippet&&(0,r.jsx)(`p`,{className:`text-xs text-base-content leading-relaxed line-clamp-3`,children:c.contentSnippet})]}):i===`horizontal`?(0,r.jsx)(`div`,{className:`grid grid-cols-3 sm:grid-cols-3 md:grid-cols-3 xl:grid-cols-6 gap-3`,children:s.map(i=>{let a=i.imageUrl?n(i.imageUrl):null;return(0,r.jsxs)(t,{to:`/board/$boardId/$postId`,params:{boardId:e.boardId,postId:String(i.id)},className:`group flex flex-col p-2 rounded-lg hover:bg-base-200/50 active-press transition-colors border border-base-200/40 text-center space-y-1.5`,children:[(0,r.jsx)(`div`,{className:`aspect-4/3 w-full bg-base-200 rounded-md flex items-center justify-center text-xl text-base-content/50 group-hover:scale-105 transition-transform overflow-hidden`,children:a?(0,r.jsx)(`img`,{src:a,alt:i.subject,className:`w-full h-full object-cover`,loading:`lazy`}):`📖`}),(0,r.jsxs)(`h4`,{className:`text-xs font-bold text-base-content group-hover:text-primary line-clamp-2 leading-snug`,children:[(0,r.jsx)(`span`,{children:i.subject}),i.isSecret&&(0,r.jsx)(`span`,{title:`비밀글`,className:`ml-1 text-amber-500`,children:`🔒`})]}),i.date&&(0,r.jsx)(`span`,{className:`text-[10px] text-base-content font-mono font-medium`,children:i.date})]},i.id)})}):(0,r.jsx)(`ul`,{className:`space-y-1.5 text-xs`,children:s.map(n=>{let i=n.subject||``,a=i.split(/[-|]/),o=a.length>1?a[1].trim():i.trim();return(0,r.jsxs)(`li`,{className:`flex items-center justify-between gap-2 group`,children:[(0,r.jsxs)(t,{to:`/board/$boardId/$postId`,params:{boardId:e.boardId,postId:String(n.id)},className:`text-base-content font-medium group-hover:text-primary active-press truncate transition-colors flex-1`,children:[(0,r.jsxs)(`span`,{children:[`• `,o]}),n.isSecret&&(0,r.jsx)(`span`,{title:`비밀글`,className:`ml-1 text-amber-500 inline-block text-[11px]`,children:`🔒`})]}),n.date&&(0,r.jsx)(`span`,{className:`text-[11px] text-base-content font-mono flex-none`,children:n.date})]},n.id)})})})]})}export{i as t};

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.