mirror of
https://github.com/bspeice/speice.io
synced 2025-01-13 11:10:15 -05:00
1 line
3.6 KiB
JavaScript
1 line
3.6 KiB
JavaScript
|
"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["2998"],{44284:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(85893);n(67294);var r=n(7670),l=n(68007);function s(e){let{nextItem:t,prevItem:n}=e;return(0,i.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,r.I)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[t&&(0,i.jsx)(l.Z,{...t,subLabel:(0,i.jsx)(r.Z,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older post"})}),n&&(0,i.jsx)(l.Z,{...n,subLabel:(0,i.jsx)(r.Z,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer post"}),isNext:!0})]})}},41889:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(85893),r=n(67294),l=n(46055);function s(e){let{title:t,headingType:n,children:r}=e;return(0,i.jsxs)("div",{role:"group",children:[(0,i.jsx)(l.Z,{as:n,children:t}),r]})}let o=(0,r.memo)(function(e){let{items:t,ListComponent:n}=e;return function(e,t){let n=[],r=[];function l(){if(0===r.length)return;let e=new Date(r[0].date).getFullYear(),l=function(e,t){let n=[],r=[];function l(){if(0===r.length)return;let e=r[0].title.split(":")[0];r=(r=r.map(e=>({...e,title:e.title.split(":")[1].trim()}))).reverse(),n.push((0,i.jsx)(s,{title:e,headingType:"h4",children:(0,i.jsx)("div",{role:"group",style:{paddingInlineStart:"1.5em"},children:(0,i.jsx)(t,{items:r})})},e)),r=[]}for(let s of e){if(s.title.includes(":")){r.push(s);continue}l(),n.push((0,i.jsx)(t,{items:[s]},s.permalink))}return l(),n}(r,t);n.push((0,i.jsx)(s,{title:String(e),headingType:"h3",children:l},e)),r=[]}for(let t of e){if(0===r.length){r.push(t);continue}new Date(t.date).getFullYear()!==new Date(r[0].date).getFullYear()&&l(),r.push(t)}return l(),n}(t,n)})},13109:function(e,t,n){n.d(t,{Z:()=>v});var i=n("85893");n("67294");var r=n("67026"),l=n("6735"),s=n("34550"),o=n("7670"),a=n("87262"),d=n("44634"),c=n("19358"),u=n("3829"),h=n("15514");function p(e){let{children:t}=e;return(0,i.jsx)("div",{className:(0,r.Z)("playgroundHeader_qwyd"),children:t})}function g(){return(0,i.jsx)("div",{children:"Loading..."})}function x(){return(0,i.jsx)(d.Z,{fallback:(0,i.jsx)(g,{}),children:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.Z,{fallback:e=>(0,i.jsx)(c.Ac,{...e}),children:(0,i.jsx)(s.i5,{})}),(0,i.jsx)(s.IF,{})]})})}function j(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(o.Z,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,i.jsx)("div",{className:"playgroundPreview_bb8I",children:(0,i.jsx)(x,{})})]})}function f(){let e=(0,l.Z)();return(0,i.jsx)(s.uz,{className:"playgroundEditor_PvJ1"},String(e))}function b(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(o.Z,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,i.jsx)(f,{})]})}let m=e=>`${e};`;function v(e){let{children:t,transformCode:n,...r}=e,{siteConfig:{themeConfig:l}}=(0,a.Z)(),{liveCodeBlock:{playgroundPosition:o}}=l,d=(0,u.p)(),c=r.metastring?.includes("noInline")??!1;return(0,i.jsx)("div",{className:"playgroundContainer_TGbA",children:(0,i.jsx)(s.nu,{code:t?.replace(/\n$/,""),noInline:c,transformCode:n??m,theme:d,...r,children:"top"===o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j,{}),(0,i.jsx)(b,{})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{}),(0,i.jsx)(j,{})]})})})}}}]);
|