mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-24 22:46:57 +02:00
1 line
No EOL
5.9 KiB
JavaScript
1 line
No EOL
5.9 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[12983],{66074:(e,n,a)=>{a.r(n),a.d(n,{default:()=>c});var t=a(24246),l=(a(27378),a(93127)),s=a(22488);function o({pluginId:e,pluginInstanceContent:n}){return(0,t.jsxs)("section",{style:{marginBottom:30},children:[(0,t.jsx)("code",{children:e}),(0,t.jsx)(s.Z,{src:n,collapseDepth:2})]})}function i({pluginName:e,pluginContent:n}){return(0,t.jsxs)("section",{style:{marginBottom:60},children:[(0,t.jsx)("h3",{children:e}),(0,t.jsx)("div",{children:Object.entries(n).filter((([,e])=>!!e)).map((([e,n])=>(0,t.jsx)(o,{pluginId:e,pluginInstanceContent:n},e)))})]})}function c({allContent:e}){return(0,t.jsxs)(l.Z,{children:[(0,t.jsx)("h2",{children:"Plugin content"}),(0,t.jsx)("div",{children:Object.entries(e).filter((([,e])=>Object.values(e).some((e=>!!e)))).map((([e,n])=>(0,t.jsx)(i,{pluginName:e,pluginContent:n},e)))})]})}},22488:(e,n,a)=>{a.d(n,{Z:()=>j});var t=a(24246),l=a(27378);const s=e=>"boolean"==typeof e||e instanceof Boolean,o=e=>"number"==typeof e||e instanceof Number,i=e=>"bigint"==typeof e||e instanceof BigInt,c=e=>!!e&&e instanceof Date,r=e=>"string"==typeof e||e instanceof String,u=e=>Array.isArray(e),d=e=>e instanceof Object&&null!==e;function p(e){let{field:n,value:a,data:t,lastElement:s,openBracket:o,closeBracket:i,level:c,style:r,shouldExpandNode:u}=e;const d=(0,l.useRef)(!1),[p,m,_]=function(e){const[n,a]=(0,l.useState)(e());return[n,()=>a((e=>!e)),a]}((()=>u(c,a,n)));(0,l.useEffect)((()=>{d.current?_(u(c,a,n)):d.current=!0}),[u]);const b=p?r.collapseIcon:r.expandIcon,x=p?"collapse JSON":"expand JSON",f=(0,l.useId)(),v=c+1,g=t.length-1,E=e=>{" "===e.key&&m()};return(0,l.createElement)("div",{className:r.basicChildStyle,role:"list"},(0,l.createElement)("span",{className:b,onClick:m,onKeyDown:E,role:"button",tabIndex:0,"aria-label":x,"aria-expanded":p,"aria-controls":p?f:void 0}),n&&(0,l.createElement)("span",{className:r.label},n,":"),(0,l.createElement)("span",{className:r.punctuation},o),p?(0,l.createElement)("div",{id:f},t.map(((e,n)=>(0,l.createElement)(h,{key:e[0]||n,field:e[0],value:e[1],style:r,lastElement:n===g,level:v,shouldExpandNode:u})))):(0,l.createElement)("span",{className:r.collapsedContent,onClick:m,onKeyDown:E,role:"button",tabIndex:-1,"aria-hidden":!0,"aria-label":x,"aria-expanded":p}),(0,l.createElement)("span",{className:r.punctuation},i),!s&&(0,l.createElement)("span",{className:r.punctuation},","))}function m(e){let{field:n,value:a,style:t,lastElement:l,shouldExpandNode:s,level:o}=e;return p({field:n,value:a,lastElement:l||!1,level:o,openBracket:"{",closeBracket:"}",style:t,shouldExpandNode:s,data:Object.keys(a).map((e=>[e,a[e]]))})}function _(e){let{field:n,value:a,style:t,lastElement:l,level:s,shouldExpandNode:o}=e;return p({field:n,value:a,lastElement:l||!1,level:s,openBracket:"[",closeBracket:"]",style:t,shouldExpandNode:o,data:a.map((e=>[void 0,e]))})}function b(e){let{field:n,value:a,style:t,lastElement:u}=e,d=a,p=t.otherValue;return null===a?(d="null",p=t.nullValue):void 0===a?(d="undefined",p=t.undefinedValue):r(a)?(d=`"${a}"`,p=t.stringValue):s(a)?(d=a?"true":"false",p=t.booleanValue):o(a)?(d=a.toString(),p=t.numberValue):i(a)?(d=`${a.toString()}n`,p=t.numberValue):d=c(a)?a.toISOString():a.toString(),""===n&&(n='""'),(0,l.createElement)("div",{className:t.basicChildStyle,role:"listitem"},n&&(0,l.createElement)("span",{className:t.label},n,":"),(0,l.createElement)("span",{className:p},d),!u&&(0,l.createElement)("span",{className:t.punctuation},","))}function h(e){const n=e.value;return u(n)?(0,l.createElement)(_,Object.assign({},e)):d(n)&&!c(n)?(0,l.createElement)(m,Object.assign({},e)):(0,l.createElement)(b,Object.assign({},e))}var x="_2bkNM";const f={container:"_2IvMF _GzYRV",basicChildStyle:x,label:"_1MGIk",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti"},v=()=>!0,g=e=>{let{data:n,style:a=f,shouldExpandNode:t=v}=e;return(0,l.createElement)("div",{className:a.container},(0,l.createElement)(h,{value:n,style:a,lastElement:!0,level:0,shouldExpandNode:t}))},E={container:"containerParaiso_TYa3",basicChildStyle:"basicElementParaiso_DqvR",label:"labelParaiso_l3ql",nullValue:"nullValueParaiso_Ey4X",undefinedValue:"undefinedValueParaiso__T3e",stringValue:"stringValueParaiso_T6i7",booleanValue:"booleanValueParaiso__TSh",numberValue:"numberValueParaiso_JGW0",otherValue:"otherValueParaiso_nnwW",punctuation:"punctuationParaiso_knwc",collapseIcon:"collapseIconParaiso_MWEp",expandIcon:"expandIconParaiso_fAkX",collapsedContent:"collapseContentParaiso_KH36"};function j({src:e,collapseDepth:n}){return(0,t.jsx)(g,{data:e,shouldExpandNode:(e,a)=>Array.isArray(a)?a.length<5:void 0!==n&&e<n,style:E})}},93127:(e,n,a)=>{a.d(n,{Z:()=>c});var t=a(24246),l=(a(27378),a(97134)),s=a(41428);const o={container:"container_tECh",nav:"nav_sWk6",navlink:"navlink__gTJ",active:"active_Uuwz"};function i({to:e,children:n}){return(0,t.jsx)(s.Z,{className:o.navlink,isNavLink:!0,to:e,exact:!0,activeStyle:{backgroundColor:"#363739"},children:n})}function c({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.Z,{children:[(0,t.jsx)("html",{lang:"en"}),(0,t.jsx)("title",{children:"Docusaurus debug panel"}),(0,t.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("nav",{className:o.nav,children:[(0,t.jsx)(i,{to:"/__docusaurus/debug",children:"Config"}),(0,t.jsx)(i,{to:"/__docusaurus/debug/metadata",children:"Metadata"}),(0,t.jsx)(i,{to:"/__docusaurus/debug/registry",children:"Registry"}),(0,t.jsx)(i,{to:"/__docusaurus/debug/routes",children:"Routes"}),(0,t.jsx)(i,{to:"/__docusaurus/debug/content",children:"Content"}),(0,t.jsx)(i,{to:"/__docusaurus/debug/globalData",children:"Global data"})]}),(0,t.jsx)("main",{className:o.container,children:e})]})]})}}}]); |