diff --git a/_next/static/chunks/pages/[prefix]/[slug]-5b13cd8bd4bab6aa.js b/_next/static/chunks/pages/[prefix]/[slug]-5b13cd8bd4bab6aa.js new file mode 100644 index 000000000..7c1890d0d --- /dev/null +++ b/_next/static/chunks/pages/[prefix]/[slug]-5b13cd8bd4bab6aa.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[95549],{68787:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[prefix]/[slug]",function(){return n(5488)}])},5488:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return i}});var l=n(85893),o=n(71450),i=!0;t.default=e=>(0,l.jsx)(o.default,{...e})},71450:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return p},default:function(){return _prefix_},getRecommendPost:function(){return getRecommendPost}});var l=n(85893),o=n(72924),i=n.n(o),u=n(67294),r=n(11163),d=n(58622);let a={header:0,sub_header:1,sub_sub_header:2},getPageTableOfContents=(e,t)=>{var n;let l=null!==(n=e.content)&&void 0!==n?n:[],o=function getBlockHeader(e,t,n){if(n||(n=[]),!e)return n;for(let u of e){var l,o,i;let e=null===(l=t.block[u])||void 0===l?void 0:l.value;if(!e)continue;let{type:r}=e;if(r.indexOf("header")>=0){let t=n.find(e=>e.id===u);t||n.push({id:u,type:r,text:(0,d.FB)(null===(i=e.properties)||void 0===i?void 0:i.title),indentLevel:a[r]})}(null===(o=e.content)||void 0===o?void 0:o.length)>0&&getBlockHeader(e.content,t,n)}return n}(l,t),i=[{actual:-1,effective:-1}];for(let e of o){let{indentLevel:t}=e;for(;;){let n=i[i.length-1],{actual:l,effective:o}=n;if(t>l)e.indentLevel=o+1,i.push({actual:t,effective:e.indentLevel});else if(t===l){e.indentLevel=o;break}else i.pop()}}return o};var s=n(90054),c=n(88495),f=n.n(c),v=n(22006),g=n(66043),p=!0;function getRecommendPost(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6,l=[],o=[],i=(null==e?void 0:e.tags)||[];for(let n=0;nu.type.indexOf("Post")))for(let e=0;e-1)&&u.tags&&u.tags.indexOf(t)>-1&&(l.push(u),o.push(u.id))}}return l.length>n&&(l=l.slice(0,n)),l}var _prefix_=e=>{var t;let{post:n,siteInfo:o}=e,d=(0,r.useRouter)(),[a,c]=(0,u.useState)((null==n?void 0:n.password)&&(null==n?void 0:n.password)!=="");(0,u.useEffect)(()=>{if(n||setTimeout(()=>{if(v.jU){let e=document.getElementById("notion-article");e||d.push("/404").then(()=>{console.warn("找不到页面",d.asPath)})}},8e3),(null==n?void 0:n.password)&&(null==n?void 0:n.password)!=="")c(!0);else{var e;c(!1),!a&&(null==n?void 0:null===(e=n.blockMap)||void 0===e?void 0:e.block)&&(n.content=Object.keys(n.blockMap.block).filter(e=>{var t,l;return(null===(l=n.blockMap.block[e])||void 0===l?void 0:null===(t=l.value)||void 0===t?void 0:t.parent_id)===n.id}),n.toc=getPageTableOfContents(n,n.blockMap))}},[n]);let p={title:n?"".concat(null==n?void 0:n.title," | ").concat((0,g.J)("TITLE")):"".concat((0,g.J)("TITLE")," | loading"),description:null==n?void 0:n.summary,type:null==n?void 0:n.type,slug:null==n?void 0:n.slug,image:(null==n?void 0:n.pageCoverThumbnail)||(null==o?void 0:o.pageCover)||i().HOME_BANNER_IMAGE,category:null==n?void 0:null===(t=n.category)||void 0===t?void 0:t[0],tags:null==n?void 0:n.tags};e={...e,lock:a,meta:p,setLock:c,validPassword:e=>{let t=f()(n.slug+e);return!!e&&t===n.password&&(c(!1),!0)}};let _=(0,s.getLayoutByTheme)({theme:(0,g.J)("THEME"),router:(0,r.useRouter)()});return(0,l.jsx)(_,{...e})}}},function(e){e.O(0,[88495,49774,92888,40179],function(){return e(e.s=68787)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/[prefix]/[slug]/[...suffix]-f5d35020b71ca032.js b/_next/static/chunks/pages/[prefix]/[slug]/[...suffix]-f5d35020b71ca032.js new file mode 100644 index 000000000..41e84c20d --- /dev/null +++ b/_next/static/chunks/pages/[prefix]/[slug]/[...suffix]-f5d35020b71ca032.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[78885],{99095:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[prefix]/[slug]/[...suffix]",function(){return n(58049)}])},58049:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return i}});var l=n(85893),o=n(71450),i=!0;t.default=e=>(0,l.jsx)(o.default,{...e})},71450:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return p},default:function(){return _prefix_},getRecommendPost:function(){return getRecommendPost}});var l=n(85893),o=n(72924),i=n.n(o),u=n(67294),r=n(11163),d=n(58622);let a={header:0,sub_header:1,sub_sub_header:2},getPageTableOfContents=(e,t)=>{var n;let l=null!==(n=e.content)&&void 0!==n?n:[],o=function getBlockHeader(e,t,n){if(n||(n=[]),!e)return n;for(let u of e){var l,o,i;let e=null===(l=t.block[u])||void 0===l?void 0:l.value;if(!e)continue;let{type:r}=e;if(r.indexOf("header")>=0){let t=n.find(e=>e.id===u);t||n.push({id:u,type:r,text:(0,d.FB)(null===(i=e.properties)||void 0===i?void 0:i.title),indentLevel:a[r]})}(null===(o=e.content)||void 0===o?void 0:o.length)>0&&getBlockHeader(e.content,t,n)}return n}(l,t),i=[{actual:-1,effective:-1}];for(let e of o){let{indentLevel:t}=e;for(;;){let n=i[i.length-1],{actual:l,effective:o}=n;if(t>l)e.indentLevel=o+1,i.push({actual:t,effective:e.indentLevel});else if(t===l){e.indentLevel=o;break}else i.pop()}}return o};var s=n(90054),c=n(88495),f=n.n(c),v=n(22006),g=n(66043),p=!0;function getRecommendPost(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6,l=[],o=[],i=(null==e?void 0:e.tags)||[];for(let n=0;nu.type.indexOf("Post")))for(let e=0;e-1)&&u.tags&&u.tags.indexOf(t)>-1&&(l.push(u),o.push(u.id))}}return l.length>n&&(l=l.slice(0,n)),l}var _prefix_=e=>{var t;let{post:n,siteInfo:o}=e,d=(0,r.useRouter)(),[a,c]=(0,u.useState)((null==n?void 0:n.password)&&(null==n?void 0:n.password)!=="");(0,u.useEffect)(()=>{if(n||setTimeout(()=>{if(v.jU){let e=document.getElementById("notion-article");e||d.push("/404").then(()=>{console.warn("找不到页面",d.asPath)})}},8e3),(null==n?void 0:n.password)&&(null==n?void 0:n.password)!=="")c(!0);else{var e;c(!1),!a&&(null==n?void 0:null===(e=n.blockMap)||void 0===e?void 0:e.block)&&(n.content=Object.keys(n.blockMap.block).filter(e=>{var t,l;return(null===(l=n.blockMap.block[e])||void 0===l?void 0:null===(t=l.value)||void 0===t?void 0:t.parent_id)===n.id}),n.toc=getPageTableOfContents(n,n.blockMap))}},[n]);let p={title:n?"".concat(null==n?void 0:n.title," | ").concat((0,g.J)("TITLE")):"".concat((0,g.J)("TITLE")," | loading"),description:null==n?void 0:n.summary,type:null==n?void 0:n.type,slug:null==n?void 0:n.slug,image:(null==n?void 0:n.pageCoverThumbnail)||(null==o?void 0:o.pageCover)||i().HOME_BANNER_IMAGE,category:null==n?void 0:null===(t=n.category)||void 0===t?void 0:t[0],tags:null==n?void 0:n.tags};e={...e,lock:a,meta:p,setLock:c,validPassword:e=>{let t=f()(n.slug+e);return!!e&&t===n.password&&(c(!1),!0)}};let _=(0,s.getLayoutByTheme)({theme:(0,g.J)("THEME"),router:(0,r.useRouter)()});return(0,l.jsx)(_,{...e})}}},function(e){e.O(0,[88495,49774,92888,40179],function(){return e(e.s=99095)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/category/[category]-870f14c329d4c7e1.js b/_next/static/chunks/pages/category/[category]-870f14c329d4c7e1.js new file mode 100644 index 000000000..90647905d --- /dev/null +++ b/_next/static/chunks/pages/category/[category]-870f14c329d4c7e1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[95694],{78637:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/category/[category]",function(){return n(64663)}])},64663:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return i},default:function(){return Category}});var o=n(85893);n(67294);var r=n(54110),u=n(11163),c=n(90054),a=n(66043),i=!0;function Category(t){let{siteInfo:e}=t,{locale:n}=(0,r.O)(),i=(0,c.getLayoutByTheme)({theme:(0,a.J)("THEME"),router:(0,u.useRouter)()}),_={title:"".concat(t.category," | ").concat(n.COMMON.CATEGORY," | ").concat((0,a.J)("TITLE")||""),description:(0,a.J)("DESCRIPTION"),slug:"category/"+t.category,image:null==e?void 0:e.pageCover,type:"website"};return t={...t,meta:_},(0,o.jsx)(i,{...t})}}},function(t){t.O(0,[49774,92888,40179],function(){return t(t.s=78637)}),_N_E=t.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/category/[category]/page/[page]-901a24624c3d7984.js b/_next/static/chunks/pages/category/[category]/page/[page]-901a24624c3d7984.js new file mode 100644 index 000000000..666187b86 --- /dev/null +++ b/_next/static/chunks/pages/category/[category]/page/[page]-901a24624c3d7984.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34822],{23102:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/category/[category]/page/[page]",function(){return n(38510)}])},38510:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return i},default:function(){return Category}});var o=n(85893);n(67294);var r=n(54110),u=n(11163),c=n(90054),a=n(66043),i=!0;function Category(e){let{siteInfo:t}=e,{locale:n}=(0,r.O)(),i=(0,c.getLayoutByTheme)({theme:(0,a.J)("THEME"),router:(0,u.useRouter)()}),_={title:"".concat(e.category," | ").concat(n.COMMON.CATEGORY," | ").concat((0,a.J)("TITLE")||""),description:(0,a.J)("DESCRIPTION"),slug:"category/"+e.category,image:null==t?void 0:t.pageCover,type:"website"};return e={...e,meta:_},(0,o.jsx)(i,{...e})}}},function(e){e.O(0,[49774,92888,40179],function(){return e(e.s=23102)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/page/[page]-e11f22948308bc15.js b/_next/static/chunks/pages/page/[page]-e11f22948308bc15.js new file mode 100644 index 000000000..de9fcde73 --- /dev/null +++ b/_next/static/chunks/pages/page/[page]-e11f22948308bc15.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[42523],{56432:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/page/[page]",function(){return n(95514)}])},95514:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return a}});var u=n(85893),o=n(11163),i=n(90054),r=n(66043),a=!0;t.default=e=>{let{siteInfo:t}=e,n=(0,i.getLayoutByTheme)({theme:(0,r.J)("THEME"),router:(0,o.useRouter)()}),a={title:"".concat(null==e?void 0:e.page," | Page | ").concat((0,r.J)("TITLE")),description:(0,r.J)("DESCRIPTION"),image:null==t?void 0:t.pageCover,slug:"page/"+e.page,type:"website"};return e={...e,meta:a},(0,u.jsx)(n,{...e})}}},function(e){e.O(0,[49774,92888,40179],function(){return e(e.s=56432)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/search/[keyword]-47355d318a01b8f4.js b/_next/static/chunks/pages/search/[keyword]-47355d318a01b8f4.js new file mode 100644 index 000000000..3de7105c4 --- /dev/null +++ b/_next/static/chunks/pages/search/[keyword]-47355d318a01b8f4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41565],{17809:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/[keyword]",function(){return n(9599)}])},9599:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return l},getPageContentText:function(){return getPageContentText}});var o=n(85893),r=n(54110),i=n(11163),u=n(90054),c=n(66043);function appendText(t,e,n){if(!e)return t;let o=e[n],r=o?function getTextContent(t){if("object"==typeof t&&isIterable(t)){let e="";for(let n of t)e+=getTextContent(n);return e}if("string"==typeof t)return t}(o):"";return r&&"Untitled"!==r?t.concat(r):t}let isIterable=t=>null!=t&&"function"==typeof t[Symbol.iterator];var l=!0;function getPageContentText(t,e){let n=[];if(e&&e.block&&!t.password){let t=Object.keys(e.block);t.forEach(t=>{var o,r;let i=null==e?void 0:null===(r=e.block[t])||void 0===r?void 0:null===(o=r.value)||void 0===o?void 0:o.properties;n=appendText(n,i,"title"),n=appendText(n,i,"caption")})}return n.join("")}e.default=t=>{let{keyword:e,siteInfo:n}=t,{locale:l}=(0,r.O)(),a=(0,u.getLayoutByTheme)({theme:(0,c.J)("THEME"),router:(0,i.useRouter)()}),f={title:"".concat(e||"").concat(e?" | ":"").concat(l.NAV.SEARCH," | ").concat((0,c.J)("TITLE")),description:(0,c.J)("TITLE"),image:null==n?void 0:n.pageCover,slug:"search/"+(e||""),type:"website"};return t={...t,meta:f},(0,o.jsx)(a,{...t})}}},function(t){t.O(0,[49774,92888,40179],function(){return t(t.s=17809)}),_N_E=t.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/search/[keyword]/page/[page]-8f5f38a8283f89e0.js b/_next/static/chunks/pages/search/[keyword]/page/[page]-8f5f38a8283f89e0.js new file mode 100644 index 000000000..1b3915070 --- /dev/null +++ b/_next/static/chunks/pages/search/[keyword]/page/[page]-8f5f38a8283f89e0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92589],{74700:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/[keyword]/page/[page]",function(){return n(37112)}])},37112:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return i}});var u=n(85893),c=n(54110),r=n(11163),o=n(90054),a=n(66043),i=!0;t.default=e=>{let{keyword:t,siteInfo:n}=e,{locale:i}=(0,c.O)(),_=(0,o.getLayoutByTheme)({theme:(0,a.J)("THEME"),router:(0,r.useRouter)()}),s={title:"".concat(t||"").concat(t?" | ":"").concat(i.NAV.SEARCH," | ").concat((0,a.J)("TITLE")),description:(0,a.J)("TITLE"),image:null==n?void 0:n.pageCover,slug:"search/"+(t||""),type:"website"};return e={...e,meta:s,currentSearch:t},(0,u.jsx)(_,{...e})}}},function(e){e.O(0,[49774,92888,40179],function(){return e(e.s=74700)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/tag/[tag]-27fd94272e69240a.js b/_next/static/chunks/pages/tag/[tag]-27fd94272e69240a.js new file mode 100644 index 000000000..397dae3a4 --- /dev/null +++ b/_next/static/chunks/pages/tag/[tag]-27fd94272e69240a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[87549],{22267:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tag/[tag]",function(){return n(19849)}])},19849:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return _}});var u=n(85893),o=n(54110),c=n(11163),r=n(90054),i=n(66043),_=!0;e.default=t=>{let{locale:e}=(0,o.O)(),{tag:n,siteInfo:_}=t,a=(0,r.getLayoutByTheme)({theme:(0,i.J)("THEME"),router:(0,c.useRouter)()}),s={title:"".concat(n," | ").concat(e.COMMON.TAGS," | ").concat((0,i.J)("TITLE")),description:(0,i.J)("DESCRIPTION"),image:null==_?void 0:_.pageCover,slug:"tag/"+n,type:"website"};return t={...t,meta:s},(0,u.jsx)(a,{...t})}}},function(t){t.O(0,[49774,92888,40179],function(){return t(t.s=22267)}),_N_E=t.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/tag/[tag]/page/[page]-7364bfe43180da9b.js b/_next/static/chunks/pages/tag/[tag]/page/[page]-7364bfe43180da9b.js new file mode 100644 index 000000000..4c392809f --- /dev/null +++ b/_next/static/chunks/pages/tag/[tag]/page/[page]-7364bfe43180da9b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[58522],{54865:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tag/[tag]/page/[page]",function(){return n(56503)}])},56503:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return i}});var u=n(85893),o=n(54110),c=n(11163),r=n(90054),a=n(66043),i=!0;e.default=t=>{let{locale:e}=(0,o.O)(),{tag:n,siteInfo:i}=t,_=(0,r.getLayoutByTheme)({theme:(0,a.J)("THEME"),router:(0,c.useRouter)()}),s={title:"".concat(n," | ").concat(e.COMMON.TAGS," | ").concat((0,a.J)("TITLE")),description:(0,a.J)("DESCRIPTION"),image:null==i?void 0:i.pageCover,slug:"tag/"+n,type:"website"};return t={...t,meta:s},(0,u.jsx)(_,{...t})}}},function(t){t.O(0,[49774,92888,40179],function(){return t(t.s=54865)}),_N_E=t.O()}]); \ No newline at end of file