PageSourceSearch

https://www.barnman.cc/_next/static/chunks/2698.53f846b31a92511b.js

js barnman.cc collected 2026-09-25 22:28:11 UTC 4,805 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2698,82249,74678,29499],{82249:function(e,l,a){a.r(l),a.d(l,{BlogItem:function(){return E}});var s=a(85893),r=a(27134),n=a(67968),t=a(31933),i=a(4930),c=a(69325),d=a(26964),o=a(31761),_=a(41664),h=a.n(_),u=a(74678);let E=e=>{var l,a;let{post:_}=e,{NOTION_CONFIG:E}=(0,d.O)(),x=(0,c.JA)("SIMPLE_POST_COVER_ENABLE",!1,u.default),m=(0,c.JA)("POST_LIST_PREVIEW",!1,E)&&_.blockMap;return(0,s.jsxs)("div",{className:"h-42 my-6 pb-12 border-b dark:border-gray-800",children:[(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("div",{className:"article-cover h-full",children:x&&(0,s.jsx)("div",{className:"overflow-hidden mr-2 w-56 h-full",children:(0,s.jsx)(h(),{href:_.href,passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(r.Z,{src:null==_?void 0:_.pageCoverThumbnail,className:"w-56 h-full object-cover object-center group-hover:scale-110 duration-500"})})})}),(0,s.jsxs)("article",{className:"article-info",children:[(0,s.jsx)("h2",{className:"mb-2",children:(0,s.jsxs)(h(),{href:_.href,className:"blog-item-title font-bold text-black text-2xl menu-link",children:[(0,c.JA)("POST_TITLE_ICON")&&(0,s.jsx)(n.Z,{icon:_.pageIcon}),_.title]})}),(0,s.jsxs)("header",{className:"mb-5 text-md text-gray-700 dark:text-gray-300 flex-wrap flex leading-6",children:[(0,s.jsxs)("div",{className:"space-x-2",children:[(0,s.jsxs)("span",{children:[" ",(0,s.jsxs)("a",{href:(0,c.JA)("SIMPLE_AUTHOR_LINK",null,u.default),className:"p-1 hover:text-red-400 transition-all duration-200",children:[(0,s.jsx)("i",{className:"fa-regular fa-user"})," ",(0,c.JA)("AUTHOR")]})]}),(0,s.jsx)("span",{children:(0,s.jsxs)(h(),{className:"p-1 hover:text-red-400 transition-all duration-200",href:"/archive#".concat((0,o.x)(null==_?void 0:_.publishDate,"yyyy-MM")),children:[(0,s.jsx)("i",{className:"fa-regular fa-clock"})," ",(null===(l=_.date)||void 0===l?void 0:l.start_date)||_.createdTime]})}),(0,s.jsx)("span",{children:(0,s.jsx)(i.Z,{post:_})})]}),(0,s.jsxs)("div",{children:[_.category&&(0,s.jsxs)(h(),{href:"/category/".concat(_.category),className:"p-1",children:[" ",(0,s.jsxs)("span",{className:"hover:text-red-400 transition-all duration-200",children:[(0,s.jsx)("i",{className:"fa-regular fa-folder mr-0.5"}),_.category]})]}),(null==_?void 0:_.tags)&&(null==_?void 0:null===(a=_.tags)||void 0===a?void 0:a.length)>0&&(null==_?void 0:_.tags.map(e=>(0,s.jsx)(h(),{href:"/tag/".concat(e),className:" hover:text-red-400 transition-all duration-200",children:(0,s.jsxs)("span",{children:[" /",e]})},e)))]})]}),(0,s.jsxs)("main",{className:"text-gray-700 dark:text-gray-300 leading-normal mb-6",children:[!m&&(0,s.jsxs)(s.Fragment,{children:[_.summary,_.summary&&(0,s.jsx)("span",{children:"..."})]}),m&&(null==_?void 0:_.blockMap)&&(0,s.jsxs)("div",{className:"overflow-ellipsis truncate",children:[(0,s.jsx)(t.default,{post:_}),(0,s.jsx)("hr",{className:"border-dashed py-4"})]})]})]})]}),(0,s.jsx)("div",{className:"block",children:(0,s.jsxs)(h(),{href:_.href,className:"inline-block rounded-sm text-blue-600 dark:text-blue-300  text-xs dark:border-gray-800 border hover:text-red-400 transition-all duration-200 hover:border-red-300 h-9 leading-8 px-5",children:["Continue Reading"," ",(0,s.jsx)("i",{className:"fa-solid fa-angle-right align-middle"})]})})]},_.id)}},2698:function(e,l,a){a.r(l),a.d(l,{default:function(){return o}});var s=a(85893),r=a(69325),n=a(26964),t=a(93096),i=a.n(t),c=a(67294),d=a(82249);function o(e){let{posts:l}=e,{locale:a,NOTION_CONFIG:t}=(0,n.O)(),[o,_]=(0,c.useState)(1),h=(0,r.JA)("POSTS_PER_PAGE",null,t),u=!1,E=l?Object.assign(l).slice(0,h*o):[];l&&(u=o*h<l.length);let x=()=>{u&&_(o+1)},m=(0,c.useRef)(null),N=(0,c.useCallback)(i()(()=>{window.scrollY+window.outerHeight>(m&&m.current?m.current.clientHeight:0)+100&&x()},500));return(0,c.useEffect)(()=>(window.addEventListener("scroll",N),()=>{window.removeEventListener("scroll",N)})),(0,s.jsxs)("div",{id:"posts-wrapper",className:"w-full md:pr-8 mb-12",ref:m,children:[E.map(e=>(0,s.jsx)(d.BlogItem,{post:e},e.id)),(0,s.jsxs)("div",{onClick:x,className:"w-full my-4 py-4 text-center cursor-pointer ",children:[" ",u?a.COMMON.MORE:"".concat(a.COMMON.NO_MORE," \uD83D\uDE30")," "]})]})}},74678:function(e,l,a){a.r(l);var s=a(83454);let r={SIMPLE_LOGO_IMG:"/Logo.webp",SIMPLE_TOP_BAR:!0,SIMPLE_TOP_BAR_CONTENT:s.env.NEXT_PUBLIC_THEME_SIMPLE_TOP_TIPS||"",SIMPLE_LOGO_DESCRIPTION:"学生",SIMPLE_AUTHOR_LINK:s.env.NEXT_PUBLIC_AUTHOR_LINK||"#",SIMPLE_POST_AD_ENABLE:s.env.NEXT_PUBLIC_SIMPLE_POST_AD_ENABLE||!1,SIMPLE_POST_COVER_ENABLE:s.env.NEXT_PUBLIC_SIMPLE_POST_COVER_ENABLE||!1,SIMPLE_ARTICLE_RECOMMEND_POSTS:s.env.NEXT_PUBLIC_SIMPLE_ARTICLE_RECOMMEND_POSTS||!0,SIMPLE_MENU_CATEGORY:!0,SIMPLE_MENU_TAG:!0,SIMPLE_MENU_ARCHIVE:!0,SIMPLE_MENU_SEARCH:!0};l.default=r}}]);

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.