PageSourceSearch

https://www.miaoer.net/_next/static/chunks/pages/[locale]/categories/[slug]-d9e2d344a942afa7.js

js miaoer.net collected 2026-10-03 23:18:39 UTC 8,455 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2219,8657,9555],{5613:e=>{e.exports={loading:"Loading_loading__Y9_5z"}},11116:e=>{e.exports={timeline:"TimelineListWrapper_timeline__5x2LG"}},22239:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var i=r(23798),n=r(21462),s=r(76018),a=r(69701),l=r(5613),c=r.n(l);let o=e=>{let{loadingText:t}=e,[r,l]=(0,n.useState)(!0),{ref:o}=(0,s.Wx)({threshold:.5,onChange(e){e?l(!1):l(!0)}});return(0,a.D)()?(0,i.jsxs)("div",{className:c().loading,ref:o,children:[(0,i.jsx)("div",{className:"icon",children:(0,i.jsx)("svg",{className:"m-auto block bg-transparent",width:"200px",height:"200px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:(0,i.jsx)("circle",{cx:"50",cy:"51.3828",r:"13",fill:"#e15b64",children:!r&&(0,i.jsx)("animate",{attributeName:"cy",dur:"1s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.45 0 0.9 0.55;0 0.45 0.55 0.9",keyTimes:"0;0.5;1",values:"23;77;23"})})})},"icon"),(0,i.jsx)("span",{children:t})]}):null}},32219:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ArticleLayout:()=>f});var i=r(23798),n=r(71623),s=r(21462),a=r(18313);let l=(0,s.createContext)({}),c=l.Provider;var o=r(51578),u=r.n(o),d=r(66590),h=r(52564),p=r(90194),g=r(50031);let m=(0,s.memo)(e=>{let{animate:t=!0}=e,{title:r,type:n,id:a,subtitle:c,titleMeta:o,subtitleAnimation:m=!0}=(0,s.useContext)(l),f=(0,h.sc)(),x=(0,d.C)(e=>e.appUrl);return r?(0,i.jsxs)("section",{className:u()["post-title"],children:[(0,i.jsxs)("h1",{className:u().h1,children:[(0,i.jsx)(p.B,{appear:t,children:r},r),n&&a&&f&&x?(0,i.jsx)("a",{"data-hide-print":!0,className:"edit-link float-right",target:"_blank",href:(0,g.O2)(`#/${"page"===n?"pages":"posts"}/edit?id=${a}`,x.adminUrl),rel:"noreferrer",children:"编辑"}):null]}),o&&(0,i.jsx)("div",{className:"mt-3 flex justify-center",children:o}),c&&(0,i.jsx)("h2",{children:m?"string"==typeof c?(0,i.jsx)(p.B,{appear:t,children:c},c):c.map((e,r)=>(0,i.jsx)(p.B,{appear:t,className:"mb-2",initialDelay:r,children:e},c[r])):c})]}):null}),f=(0,s.memo)((0,s.forwardRef)((e,t)=>{let{children:r,title:l,subtitle:o,delay:d,type:h,id:p,titleAnimate:g,className:f,...x}=e;return(0,i.jsx)(c,{value:(0,s.useMemo)(()=>({title:l,id:p,subtitle:o,type:h}),[p,o,l,h]),children:(0,i.jsxs)("main",{className:(0,n.$)(u()["is-article"],f),ref:t,...x,id:"article-wrap","data-type":h,children:[(0,i.jsx)(m,{animate:g}),(0,i.jsx)(a.c,{in:!0,timeout:(0,s.useMemo)(()=>({enter:d??300}),[d]),children:r},p)]})})}))},37010:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/categories/[slug]",function(){return r(69802)}])},50031:(e,t,r)=>{"use strict";r.d(t,{O2:()=>i,lQ:()=>s,nL:()=>n});let i=(e,t)=>t.replace(/\/$/,"").concat(e||""),n=e=>e.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&#34;"),s=new Proxy(()=>void 0,{get:()=>s,apply(){}})},51578:e=>{e.exports={"post-title":"ArticleLayout_post-title__BqWRS","is-article":"ArticleLayout_is-article__a2DbR",h1:"ArticleLayout_h1__pHxaU"}},69802:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var i=r(23798),n=r(21462),s=r(39022),a=r(10064),l=r(73504),c=r(34114),o=r(80897),u=r(93581),d=r(88068),h=r(32219),p=r(18313),g=r(4439);let m=e=>{let t=(0,s.c)("category"),r=(0,l.j)(),[u,m]=(0,n.useState)(e.category),[f,x]=(0,n.useState)(e.children),y=e.category.slug;return(0,n.useEffect)(()=>{m(e.category),x(e.children)},[e.category?.id]),(0,n.useEffect)(()=>{c.uE.category.getCategoryByIdOrSlug(y).then(e=>{m((0,g.cJ)({...e},["children"])),x(e.children||[])})},[r,y]),(0,i.jsxs)(h.ArticleLayout,{title:t("title",{name:u.name}),subtitle:f.length?t("subtitleWithCount",{count:f.length}):t("subtitleEmpty"),children:[(0,i.jsx)(o.G,{title:t("seoTitle",{name:u.name})}),(0,i.jsx)("article",{className:"article-list",children:(0,i.jsx)(d.Z,{children:f.map((e,t)=>{let r=new Date(e.createdAt);return(0,i.jsxs)(p.c,{timeout:{enter:700+50*t},as:"li",className:"flex min-w-0 items-center justify-between",children:[(0,i.jsx)(a.N_,{target:"_blank",href:`/posts/${u.slug}/${e.slug}`,className:"min-w-0 truncate",children:e.title}),(0,i.jsxs)("span",{className:"meta",children:[(r.getMonth()+1).toString().padStart(2,"0"),"/",r.getDate().toString().padStart(2,"0"),"/",r.getFullYear()]})]},e.id)})})})]})};m.getInitialProps=async e=>{let{query:t}=e,{slug:r}=t,i=await c.uE.category.getCategoryByIdOrSlug(r);return{category:(0,g.cJ)({...i},["children"]),children:i.children||[]}};let f=(0,u.k)(m)},76018:(e,t,r)=>{"use strict";r.d(t,{Wx:()=>o});var i=r(21462),n=Object.defineProperty,s=new Map,a=new WeakMap,l=0,c=void 0;function o({threshold:e,delay:t,trackVisibility:r,rootMargin:n,root:u,triggerOnce:d,skip:h,initialInView:p,fallbackInView:g,onChange:m}={}){var f;let[x,y]=i.useState(null),v=i.useRef(m),[j,_]=i.useState({inView:!!p,entry:void 0});v.current=m,i.useEffect(()=>{let i;if(!h&&x)return i=function(e,t,r={},i=c){if(void 0===window.IntersectionObserver&&void 0!==i){let n=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:n,intersectionRect:n,rootBounds:n}
1),()=>{}}let{id:n,observer:o,elements:u}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(a.has(r)||(l+=1,a.set(r,l.toString())),a.get(r)):e[t]}`}).toString(),r=s.get(t);if(!r){let i,n=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var r;let s=t.isIntersecting&&i.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(r=n.get(t.target))||r.forEach(e=>{e(s,t)})})},e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:n},s.set(t,r)}return r}(r),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),o.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),o.unobserve(e)),0===u.size&&(o.disconnect(),s.delete(n))}}(x,(e,t)=>{_({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&d&&i&&(i(),i=void 0)},{root:u,rootMargin:n,threshold:e,trackVisibility:r,delay:t},g),()=>{i&&i()}},[Array.isArray(e)?e.toString():e,x,u,n,d,h,r,g,t]);let w=null==(f=j.entry)?void 0:f.target,b=i.useRef(void 0);x||!w||d||h||b.current===w||(b.current=w,_({inView:!!p,entry:void 0}));let E=[y,j.inView,j.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}i.Component},88068:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var i=r(23798),n=r(11116),s=r.n(n);let a=e=>{let{children:t}=e;return(0,i.jsx)("ul",{className:s().timeline,children:t})}},90194:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});var i=r(23798),n=r(14209);r(21462);var s=r(46311);let a=e=>{let{appear:t=!0,eachDelay:r=.1,initialDelay:a=0,children:l,text:c,...o}=e;return t?(0,i.jsx)("div",{...o,children:Array.from(c??l).map((e,t)=>(0,i.jsx)(n.P.span,{className:"inline-block whitespace-pre",initial:{transform:"translateY(10px)",opacity:0},animate:{transform:"translateY(0px)",opacity:1,transition:{...s.FM,duration:.1,delay:t*r+a}},children:e},t))}):(0,i.jsx)("div",{...o,children:c??l})}},93581:(e,t,r)=>{"use strict";r.d(t,{k:()=>g});var i=r(23798),n=r(69935),s=r(21462),a=()=>null,l=r(39022),c=r(4925),o=r(22239),u=r(4439),d=r(93496);let h=()=>(0,i.jsx)(o.R,{});function p(e){let t,{error:r}=e,n=(0,l.c)("error");
1if(!r||!(r instanceof Error))return(0,i.jsx)(d.E,{statusCode:"Error",description:n("requestFailed"),showRefreshButton:!0});if(r instanceof c.GI){let e=r.raw;t=(0,u.Et)(e.response?.status)?e.response.status:408}return(0,i.jsx)(d.E,{statusCode:t??"Error",description:r?.message||n("requestFailed"),showRefreshButton:!0})}function g(e){return function(e,t={}){if("undefined"==typeof window){let t=e.getInitialProps;return t&&(e.getInitialProps=async e=>({...await t(e),__$$path:e.asPath})),e}let{LoadingComponent:r=a,ErrorComponent:i=a}=t;return(0,s.memo)(t=>{let a=(0,n.useRouter)(),[l,c]=(0,s.useState)(!!e.getInitialProps),[o,u]=(0,s.useState)(null),[d,h]=(0,s.useState)(null);return((0,s.useEffect)(()=>{if(!e.getInitialProps){c(!1),u(null);return}if(t.__$$path===a.asPath){c(!1),u(t);return}try{let t=e.getInitialProps({AppTree:()=>null,pathname:a.pathname,query:a.query,asPath:a.asPath});"then"in t?t.then(e=>{c(!1),u(e)}).catch(e=>{c(!1),h(e)}):(c(!1),u(t))}catch(e){c(!1),h(e)}},[a.asPath]),d)?s.createElement(i,{error:d}):!o&&l?s.createElement(r,null):s.createElement(e,{...o})})}(e,{LoadingComponent:h,ErrorComponent:p})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=37010)),_N_E=e.O()}]);

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.