@chillicream/nitro-embedded 32.0.0-insider.8 → 32.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/context-providers.eb0f9c1e.d_1sxt2-.js +6737 -0
- package/assets/{editor.worker.fa746e77.T3jfs7I_.js → editor.worker.eb0f9c1e.CPSH5_7o.js} +1 -1
- package/assets/graphql-engine-scheduler.eb0f9c1e.BwYTNJtE.js +363 -0
- package/assets/graphql-indexer-scheduler.eb0f9c1e.CZ7x4nfh.js +270 -0
- package/assets/graphql.worker.eb0f9c1e.DozJBJdY.js +317 -0
- package/assets/index.eb0f9c1e.BltwUsAV.js +39 -0
- package/assets/{json.worker.fa746e77.CxIAIyle.js → json.worker.eb0f9c1e.GAJVQ_Ac.js} +1 -1
- package/assets/{jsonMode.fa746e77.DT27TKkD.js → jsonMode.eb0f9c1e.C3ukgfVD.js} +1 -1
- package/assets/main.eb0f9c1e.D9a6EbRi.js +603 -0
- package/assets/{monaco.fa746e77.DSc437aS.css → monaco.eb0f9c1e.BxVJuD1y.css} +1 -1
- package/assets/{monaco.fa746e77.BD9eCg41.js → monaco.eb0f9c1e.CiFWjB0j.js} +6 -6
- package/assets/{monaco.fa746e77.Bgr_ZGqO.css → monaco.eb0f9c1e.DAGxi9tN.css} +1 -1
- package/assets/session-scheduler.eb0f9c1e.Dj_pvu9w.js +270 -0
- package/assets/{yaml.fa746e77.CUpalURV.js → yaml.eb0f9c1e.DNvATgZi.js} +1 -1
- package/assets/{yaml.worker.fa746e77.CY43AHj0.js → yaml.worker.eb0f9c1e.CQeMr55x.js} +1 -1
- package/favicon.ico +0 -0
- package/favicon.svg +4 -4
- package/index.html +5 -5
- package/package.json +1 -1
- package/service-worker.js +1 -1
- package/assets/context-providers.fa746e77.lY_QdRdj.js +0 -4070
- package/assets/graphql-engine-scheduler.fa746e77.BTQJ_285.js +0 -436
- package/assets/graphql-indexer-scheduler.fa746e77.BGflz_GU.js +0 -345
- package/assets/graphql.worker.fa746e77.BwLF1ib4.js +0 -328
- package/assets/index.fa746e77.Vga-pS89.js +0 -32
- package/assets/main.fa746e77.BTVlfkMG.js +0 -5615
- package/assets/session-scheduler.fa746e77.C9Tq9F_9.js +0 -345
- /package/assets/{FiraCode-Medium.fa746e77.-YTCSZkP.woff2 → FiraCode-Medium.eb0f9c1e.-YTCSZkP.woff2} +0 -0
- /package/assets/{codicon.fa746e77.Hscy-R9e.ttf → codicon.eb0f9c1e.Hscy-R9e.ttf} +0 -0
- /package/assets/{context-providers.fa746e77.3HkX5s82.css → context-providers.eb0f9c1e.3HkX5s82.css} +0 -0
- /package/assets/{main.fa746e77.BdMtxJz7.css → main.eb0f9c1e.BdMtxJz7.css} +0 -0
- /package/assets/{monaco.fa746e77.C81nzcW9.js → monaco.eb0f9c1e.D0z7AHed.js} +0 -0
- /package/assets/{monaco.fa746e77.Berr_lG6.js → monaco.eb0f9c1e.DFXJF4sG.js} +0 -0
- /package/assets/{monaco.fa746e77.wPd_MMVI.js → monaco.eb0f9c1e.De8cDpD3.js} +0 -0
- /package/assets/{monaco.fa746e77.vcoSoN6S.js → monaco.eb0f9c1e.DkQhus17.js} +0 -0
- /package/assets/{monaco.fa746e77.Br8woclc.js → monaco.eb0f9c1e.wTso0TWV.js} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import{b as c,bN as e,cL as ue,cK as Se,s as R,I as S,c0 as a,c2 as m,dL as ke,b1 as we,a$ as De,be as ve,aV as xe,ba as Ne,bb as _e,aW as Ee,aX as ye,b3 as He,aY as Me,dc as P}from"./main.eb0f9c1e.D9a6EbRi.js";import{C as qe,H as ee,u as Oe,a as Pe,b as Ae,c as A,d as $e,e as ze,f as k,L as Be,g as Ge,V as Ue,N as Fe,h as he,i as E,j as y,k as v,l as U,T as F,m as H,n as M,o as Ke,p as We,S as je,q as Ve,r as Ye,s as Je,t as g,F as te,v as pe,w as Qe,I as Xe,x as N,W as Ze,y as et,z as tt,A as nt,B as st,D as it,M as ot,E as rt,G as ct,J as at,K as lt,O as j,P as w,Q as $,R as ne,U as z,X as C,Y as V,Z,_ as K,$ as _,a0 as fe,a1 as se,a2 as T,a3 as ie,a4 as dt,a5 as ut,a6 as ht,a7 as pt,a8 as ft,a9 as It,aa as mt,ab as gt,ac as Ct,ad as bt,ae as Lt,af as Tt,ag as Rt,ah as St,ai as kt,aj as wt,ak as Dt,al as vt,am as xt,an as Nt,ao as _t,ap as Et}from"./context-providers.eb0f9c1e.d_1sxt2-.js";import"./monaco.eb0f9c1e.CiFWjB0j.js";const x=c.forwardRef((t,n)=>e(ue,{ref:n,icon:"go-to-file",...t}));x.displayName="GoToItemIcon";const oe=c.forwardRef((t,n)=>e(ue,{ref:n,icon:"play-circle",fill:Se.states.info,...t}));oe.displayName="RunningIcon";const f=R(qe)(({theme:t})=>S`
|
|
2
|
+
width: ${t.spacing(50)};
|
|
3
|
+
text-transform: uppercase;
|
|
4
|
+
`),W=R("div")(({theme:t})=>S`
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
padding-left: ${t.spacing(6)};
|
|
8
|
+
`);function Ie({status:t,statusCode:n}){return t==="pending"?e(f,{color:"info",label:"PEN"}):t==="cancelled"?e(f,{color:"warning",label:"CAN"}):n?e(ee,{statusCode:n}):e(f,{color:"error",label:"ERR"})}function me({status:t}){switch(t){case"cancelled":return e(f,{color:"warning",label:"CAN"});case"failed":return e(f,{color:"error",label:"ERR"});case"pending":return e(f,{color:"info",label:"PEN"});case"succeeded":return e(f,{color:"success",label:"SUC"})}}function ge({status:t}){return t==="pending"?e(f,{color:"info",label:"PEN"}):t==="failed"?e(f,{color:"error",label:"ERR"}):e(f,{color:"success",label:"OK"})}function B(){const t=Oe(),n=Pe();return c.useCallback(async(s,i)=>{await n(s),i&&t(s,i,void 0)},[t,n])}const G="log";function yt(){const t=Ae(),n=A(G).toLocaleLowerCase(),s=c.useRef(null),i=c.useRef(t),o=c.useRef(t.followNewest),l=c.useRef(!0),h=$e(),u=B(),r=ze(),p={activeId:t.activeId,activeChildId:t.activeChildId,entries:t.entries.filter(d=>{const{kind:I}=d;switch(I){case"basic":return d.message.toLocaleLowerCase().includes(n);case"http-request":return d.name?.toLocaleLowerCase().includes(n)||d.uri.toLocaleLowerCase().includes(n);case"scope":return d.name.includes(n)||d.details?.uri?.toLocaleLowerCase().includes(n);case"subscription-request":return d.uri.toLocaleLowerCase().includes(n);default:return k()}})};i.current=t,o.current=t.followNewest;const b=c.useCallback(d=>{l.current=!1,d.kind==="http-request"&&d.scopeId?h(d.scopeId,d.id):h(d.id)},[h]),L=c.useCallback(async d=>{d.item?.id&&await u(d.item.id,d.id)},[u]),J=c.useCallback(d=>{const{scrollTop:I,clientHeight:D,scrollHeight:Re}=d.currentTarget;l.current=!0,o.current=Re-D<=Math.ceil(I),r(o.current)},[r]),Q=c.useCallback(d=>{if(s.current=d,s.current&&i.current.entries.length){const I=i.current.activeId?i.current.entries.findIndex(({id:D})=>D===i.current.activeId):-1;I===-1?s.current.scrollToIndex({index:i.current.entries.length-1,align:"end"}):s.current.scrollToIndex({index:I,align:"end"})}},[]);c.useLayoutEffect(()=>{o.current&&s.current&&p.entries.length&&s.current.scrollToIndex({index:p.entries.length-1,align:"end"})},[p.entries.length]),c.useLayoutEffect(()=>{if(l.current&&!o.current&&t.activeId&&s.current&&i.current){const d=i.current.entries.findIndex(({id:I})=>I===t.activeId);d!==-1&&s.current.scrollToIndex({index:d,align:"end"})}l.current=!0},[t.activeId]),c.useEffect(()=>()=>r(!0),[r]);const Te=c.useCallback((d,I)=>{const D=I.kind==="http-request"&&I.scopeId?I.id===p.activeChildId&&I.scopeId===p.activeId:I.id===p.activeId;return e(Be,{onClick:()=>b(I),onDoubleClick:()=>L(I),className:D?"active":void 0,children:e(Ht,{active:D,logEntry:I})})},[p.activeId,p.activeChildId,b,L]);return p.entries.length?e(Ue,{innerListRef:Q,data:p.entries,computeItemKey:d=>`log-entry-${d}`,fixedItemSize:Ge,tabIndex:-1,onScrollVirtualList:J,itemContent:Te}):e(Fe,{isFilterActive:!!n})}const Ht=c.memo(function({active:n,logEntry:s}){const{kind:i}=s;switch(i){case"basic":return e(Mt,{active:n,logEntry:s});case"http-request":return e(qt,{active:n,logEntry:s});case"scope":return e(Ot,{active:n,logEntry:s});case"subscription-request":return e(Pt,{active:n,logEntry:s});default:return k()}}),Mt=c.memo(function({active:n,logEntry:{id:s,level:i,message:o,timestamp:l,item:h}}){return a(m,{children:[e(Y,{id:s,active:n}),e(Ce,{level:i}),e(O,{children:e(be,{level:i})}),e(y,{children:e(E,{text:o,highlightedText:A(G)})}),e(q,{item:h}),e(M,{children:H(l)})]})});function Ce({level:t}){switch(t){case N.warning:return e(g,{children:e(Ze,{})});case N.error:return e(g,{children:e(te,{})});default:return e(g,{children:e(Xe,{})})}}const be=c.memo(function({level:n}){switch(n){case N.error:return e(f,{color:"error",label:"ERR"});case N.info:return e(f,{color:"info",label:"INFO"});case N.warning:return e(f,{color:"warning",label:"WARN"});default:return k()}}),qt=c.memo(function({active:n,logEntry:{id:s,scopeId:i,status:o,name:l,started:h,duration:u,item:r,uri:p,method:b,statusCode:L,contentLength:J,lastChild:Q}}){return a(m,{children:[i?e($t,{active:n,last:Q??!1}):e(Y,{id:s,active:n,pending:o==="pending"}),e(Le,{status:o,statusCode:L}),e(O,{children:e(f,{color:"info",label:b})}),e(y,{children:e(E,{text:l?.length?l+": "+p:p,highlightedText:A(G)})}),e(re,{children:e(Ie,{status:o,statusCode:L})}),e(ce,{children:v(J)}),e(F,{children:U(u)}),e(q,{item:r}),e(M,{children:H(h)})]})}),Ot=c.memo(function({active:n,logEntry:{id:s,name:i,level:o,started:l,duration:h,item:u,details:r,expanded:p}}){const b=A(G);return a(m,{children:[e(Y,{id:s,active:n,pending:r?.status==="pending",expandable:!0,expanded:p}),r?.kind==="introspection"?a(m,{children:[e(Le,{status:r.status,statusCode:r.statusCode}),e(O,{children:e(f,{color:"info",label:r.method})}),e(y,{children:e(E,{text:i?.length?i+": "+r.uri:r.uri,highlightedText:b})}),e(re,{children:e(Ie,{status:r.status,statusCode:r.statusCode})}),e(ce,{children:v(r.contentLength)}),e(F,{children:U(h)}),e(q,{item:u}),e(M,{children:H(l)})]}):a(m,{children:[e(Ce,{level:o}),e(O,{children:e(be,{level:o})}),e(y,{children:e(E,{text:i,highlightedText:b})}),e(F,{children:U(h)}),e(q,{item:u}),e(M,{children:H(l)})]})]})});function Le({status:t,statusCode:n}){return t==="pending"?e(g,{children:e(oe,{})}):t==="cancelled"?e(g,{children:e(Qe,{})}):!n||n>=300?e(g,{children:e(te,{})}):e(g,{children:e(pe,{})})}const Pt=c.memo(function({active:n,logEntry:{id:s,status:i,started:o,duration:l,item:h,protocol:u,uri:r,contentLength:p}}){return a(m,{children:[e(Y,{id:s,active:n}),e(At,{status:i}),e(O,{children:e(f,{color:"info",label:he(u)})}),e(y,{children:e(E,{text:r,highlightedText:A(G)})}),e(re,{children:e(ge,{status:i})}),e(ce,{children:v(p)}),e(F,{children:U(l)}),e(q,{item:h}),e(M,{children:H(o)})]})});function At({status:t}){return t==="pending"?e(g,{children:e(oe,{})}):t==="failed"?e(g,{children:e(te,{})}):e(g,{children:e(pe,{})})}function Y({id:t,active:n,pending:s,expandable:i,expanded:o}){const l=Ke(),h=We(),u=c.useCallback(r=>{i&&(r.stopPropagation(),o?l(t):h(t))},[t,i,o,l,h]);return e(g,{onClick:u,children:s?e(je,{}):i?o?e(ke,{}):e(Ve,{}):n?e(Ye,{}):e(Je,{})})}function $t({active:t,last:n}){return e(g,{children:n?t?e(et,{}):e(tt,{}):t?e(nt,{}):e(st,{})})}function q({item:t}){return e(Bt,{children:t&&a(m,{children:[e(g,{children:e(zt,{kind:t.kind})}),e(Gt,{children:t.name})]})})}function zt({kind:t}){if(!t)return e(x,{});switch(t){case Me:case He:return e(lt,{});case ye:case Ee:case _e:return e(at,{});case Ne:return e(ct,{});case xe:case ve:return e(rt,{});case De:return e(ot,{});case we:return e(it,{});default:return k()}}const Bt=R("div")(({theme:t})=>S`
|
|
9
|
+
display: flex;
|
|
10
|
+
flex: 0 0 ${t.spacing(100)};
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: flex-start;
|
|
14
|
+
padding: ${t.spacing(0,6,0,4)};
|
|
15
|
+
`),Gt=R("div")(({theme:t})=>S`
|
|
16
|
+
flex: 0 0 ${t.spacing(78)};
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
margin-left: ${t.spacing(2)};
|
|
19
|
+
text-overflow: ellipsis;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
`),O=R("div")(({theme:t})=>S`
|
|
22
|
+
flex: 0 0 ${t.spacing(50)};
|
|
23
|
+
padding: ${t.spacing(0,6)};
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
`),re=R("div")(({theme:t})=>S`
|
|
26
|
+
flex: 0 0 ${t.spacing(40)};
|
|
27
|
+
padding: ${t.spacing(0,6)};
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
`),ce=R("div")(({theme:t})=>S`
|
|
30
|
+
flex: 0 0 ${t.spacing(60)};
|
|
31
|
+
padding: ${t.spacing(0,6)};
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
text-align: right;
|
|
34
|
+
`);function Ut({logEntry:t}){return a(m,{children:[e(Ft,{logEntry:t}),e(j,{}),e(w,{children:t&&e(Kt,{logEntry:t})})]})}function Ft({logEntry:t}){const n=$(),s=B(),i=c.useCallback(async()=>{t.item?.id&&await s(t.item.id)},[t.item?.id,s]);return a(V,{spacing:"right",children:[e(ne,{children:"Details"}),e(z,{}),t.item?.id&&e(C,{tooltip:"Go to result item",onClick:i,children:e(x,{})}),e(C,{tooltip:"Close",onClick:n,children:e(P,{})})]})}const ae="log-entry-details";function Kt({logEntry:t}){const n=Z(t.details);return typeof n=="string"?e(K,{id:ae,content:n,enforceWordWrap:!0}):e(_,{id:ae,content:n})}function Wt({logEntry:t}){const[n,s]=c.useState("transport");return a(m,{children:[e(jt,{logEntry:t,viewId:n,updateViewId:s}),e(j,{}),e(w,{children:t&&e(Vt,{logEntry:t,viewId:n})})]})}function jt({logEntry:t,viewId:n,updateViewId:s}){const{Tabs:i,Tab:o,MoreTabs:l}=fe(),h=$(),u=B(),r=c.useCallback(async()=>{t.item?.id&&await u(t.item.id,t.id)},[t.id,t.item?.id,u]),p=c.useCallback((b,L)=>{s(L)},[s]);return a(V,{spacing:"right",children:[a(i,{value:n,"aria-label":"Log Entry Details",onChange:p,children:[e(o,{label:"Transport",value:"transport"}),e(o,{label:"Request Body",value:"request-body"}),e(o,{label:"Response Body",value:"response-body"})]}),e(l,{}),e(z,{}),t.item?.id&&e(C,{tooltip:"Go to result item",onClick:r,children:e(x,{})}),e(C,{tooltip:"Close",onClick:h,children:e(P,{})})]})}const le="request-body",X="response-body";function Vt({logEntry:t,viewId:n}){switch(n){case"transport":return e(Yt,{logEntry:t});case"request-body":{const s=Z(t.request.body);return typeof s=="string"?e(K,{id:le,content:s}):e(_,{id:le,content:s})}case"response-body":{const s=Z(t.response?.body);return(s===void 0||s==="")&&t.response?.error?e(_,{id:X,content:t.response.error}):typeof s=="string"?e(K,{id:X,content:s,followNewestLine:!0,scrollPositionInvalidation:t.id}):e(_,{id:X,content:s})}default:return k()}}function Yt({logEntry:t}){const{request:n,response:s}=t,i=n.headers?Object.entries(n.headers):[],o=s?.headers?Object.entries(s.headers):[],l=s?.contentLength??0,h=[{key:"url",name:"URL",description:n.uri},{key:"method",name:"Method",description:e(f,{color:"info",label:n.method})},{key:"status",name:"Status",description:e(me,{status:t.status})},s?.statusCode&&{key:"status-code",name:"Status Code",description:a(m,{children:[e(ee,{statusCode:s.statusCode}),e(W,{children:s?.statusText&&`(${s.statusText})`})]})},{key:"response-size",name:"Response Size",description:v(l)},{key:"cache",name:"Cache",description:n.cache},n.credentials&&{key:"credentials",name:"Credentials",description:n.credentials},n.referrerPolicy&&{key:"referrer-policy",name:"Referrer Policy",description:n.referrerPolicy}].filter(Boolean);return e(w,{children:e(se,{children:a(ie,{children:[e(T,{title:"General HTTP Information",items:h,collapsible:!0}),i.length>0&&e(T,{title:"Request Headers",items:i.map(([u,r])=>({key:u,name:u,description:typeof r=="string"?r:r.join(", ")})),collapsible:!0}),o.length>0&&e(T,{title:"Response Headers",items:o.map(([u,r])=>({key:u,name:u,description:typeof r=="string"?r:r.join(", ")})),collapsible:!0})]})})})}function Jt({logEntry:t}){return a(m,{children:[e(Qt,{logEntry:t}),e(j,{}),e(w,{children:t&&e(Xt,{logEntry:t})})]})}function Qt({logEntry:t}){const n=$(),s=B(),i=c.useCallback(async()=>{t.item?.id&&await s(t.item.id,t.id)},[t.id,t.item?.id,s]);return a(V,{spacing:"right",children:[e(ne,{children:"Transport"}),e(z,{}),t.item?.id&&e(C,{tooltip:"Go to result item",onClick:i,children:e(x,{})}),e(C,{tooltip:"Close",onClick:n,children:e(P,{})})]})}function Xt({logEntry:t}){const{details:n}=t;if(!n)return null;const s=n.requestHeaders?Object.entries(n.requestHeaders):[],i=n.responseHeaders?Object.entries(n.responseHeaders):[];return e(w,{children:e(se,{children:a(ie,{children:[e(T,{title:"General HTTP Information",items:[{key:"url",name:"URL",description:n.uri},{key:"method",name:"Method",description:e(f,{color:"info",label:n.method})},{key:"status",name:"Status",description:e(me,{status:n.status})},n?.statusCode&&{key:"status-code",name:"Status Code",description:a(m,{children:[e(ee,{statusCode:n.statusCode}),e(W,{children:n?.statusText&&`(${n.statusText})`})]})},{key:"response-size",name:"Response Size",description:v(n.contentLength)},{key:"cache",name:"Cache",description:n.cache},n.credentials&&{key:"credentials",name:"Credentials",description:n.credentials},n.referrerPolicy&&{key:"referrer-policy",name:"Referrer Policy",description:n.referrerPolicy}].filter(Boolean),collapsible:!0}),s.length>0&&e(T,{title:"Request Headers",items:s.map(([o,l])=>({key:o,name:o,description:l})),collapsible:!0}),i.length>0&&e(T,{title:"Response Headers",items:i.map(([o,l])=>({key:o,name:o,description:l})),collapsible:!0})]})})})}function Zt({logEntry:t}){const[n,s]=c.useState("transport");return a(m,{children:[e(en,{logEntry:t,viewId:n,updateViewId:s}),e(j,{}),e(w,{children:t&&e(sn,{logEntry:t,viewId:n})})]})}function en({logEntry:t,viewId:n,updateViewId:s}){const{Tabs:i,Tab:o,MoreTabs:l}=fe(),h=$(),u=B(),r=c.useCallback(async()=>{t.item?.id&&await u(t.item.id,t.id)},[t.id,t.item?.id,u]),p=c.useCallback((b,L)=>{s(L)},[s]);return a(V,{spacing:"right",children:[a(i,{value:n,"aria-label":"Log Entry Details",onChange:p,children:[e(o,{label:"Transport",value:"transport"}),e(o,{label:"Messages",value:"messages"}),e(o,{label:"Problems",value:"problems"})]}),e(l,{}),e(z,{}),t.item?.id&&e(C,{tooltip:"Go to result item",onClick:r,children:e(x,{})}),e(C,{tooltip:"Close",onClick:h,children:e(P,{})})]})}const tn="subscription-data",nn="subscription-error";function sn({logEntry:t,viewId:n}){switch(n){case"messages":return e(K,{id:tn,content:t.data,followNewestLine:!0,scrollPositionInvalidation:t.id});case"problems":return e(_,{id:nn,content:t.error});case"transport":return e(on,{logEntry:t});default:return k()}}function on({logEntry:t}){const n=t.connectionParams?Object.entries(t.connectionParams):[];return e(w,{children:e(se,{children:a(ie,{children:[e(T,{title:"General Information",items:[{key:"url",name:"URL",description:t.uri},{key:"protocol",name:"Protocol",description:a(m,{children:[e(f,{color:"info",label:he(t.protocol)}),a(W,{children:["(",t.protocol,")"]})]})},{key:"status",name:"Status",description:a(m,{children:[e(ge,{status:t.status}),a(W,{children:["(",t.status,")"]})]})},{key:"messages",name:"Messages",description:t.messages},{key:"response-size",name:"Response Size",description:v(t.contentLength)}],collapsible:!0}),n.length>0&&e(T,{title:"Connection Parameters",items:n.map(([s,i])=>({key:s,name:s,description:i})),collapsible:!0})]})})})}function rn(){const t=dt();return t?e(ut,{$separator:"left",children:e(cn,{logEntry:t})}):null}function cn({logEntry:t}){const{kind:n}=t;switch(n){case"basic":return e(Ut,{logEntry:t});case"http-request":return e(Wt,{logEntry:t});case"scope":return e(Jt,{logEntry:t});case"subscription-request":return e(Zt,{logEntry:t});default:return k()}}const de="log";function an(){const t=ht(),n=pt(de),s=ft(),i=It(de);return a(ln,{role:"toolbar",children:[e(mt,{searchTerm:n,onSearchTermChange:i}),e(C,{tooltip:"Clear Log",disabled:!t,onClick:s,children:e(gt,{})})]})}const ln=R("div")(({theme:t})=>S`
|
|
35
|
+
display: flex;
|
|
36
|
+
flex: 1 1 auto;
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
max-width: ${t.spacing(300)};
|
|
39
|
+
`);function Cn(){const t=Ct(),n=$(),s=c.useCallback(()=>{t(),n()},[t,n]);return a(m,{children:[a(bt,{children:[e(dn,{}),e(z,{}),e(an,{}),e(un,{}),e(C,{onClick:s,children:e(P,{})})]}),e(Tt,{children:e(Lt,{children:e(hn,{})})})]})}function dn(){const{all:t}=Rt();return a(ne,{children:["Log (",t,")"]})}function un(){const t=St(),n=kt();return wt()?e(C,{tooltip:"Minimize",onClick:n,children:e(Dt,{})}):e(C,{tooltip:"Maximize",onClick:t,children:e(vt,{})})}function hn(){const t=xt(),n=Nt(),s=_t();return e(Et,{id:"log",asideCollapsible:!0,asideCollapsed:t===null,asideWidth:n,leftContent:e(pn,{}),mainPane:"left",relativeWidth:!0,rightContent:e(fn,{}),onAsideWidthChange:s})}const pn=c.memo(yt),fn=c.memo(rn);export{Cn as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as xr,E as wr,p as Ye}from"./monaco.
|
|
1
|
+
import{S as xr,E as wr,p as Ye}from"./monaco.eb0f9c1e.wTso0TWV.js";let ot=!1;function cr(e){if(ot)return;ot=!0;const r=new xr(i=>{globalThis.postMessage(i)},i=>new wr(i,e));globalThis.onmessage=i=>{r.onmessage(i.data)}}globalThis.onmessage=e=>{ot||cr(null)};function At(e,r){r===void 0&&(r=!1);var i=e.length,t=0,n="",a=0,s=16,o=0,f=0,l=0,c=0,u=0;function h(m,I){for(var E=0,x=0;E<m;){var w=e.charCodeAt(t);if(w>=48&&w<=57)x=x*16+w-48;else if(w>=65&&w<=70)x=x*16+w-65+10;else if(w>=97&&w<=102)x=x*16+w-97+10;else break;t++,E++}return E<m&&(x=-1),x}function g(m){t=m,n="",a=0,s=16,u=0}function d(){var m=t;if(e.charCodeAt(t)===48)t++;else for(t++;t<e.length&&be(e.charCodeAt(t));)t++;if(t<e.length&&e.charCodeAt(t)===46)if(t++,t<e.length&&be(e.charCodeAt(t)))for(t++;t<e.length&&be(e.charCodeAt(t));)t++;else return u=3,e.substring(m,t);var I=t;if(t<e.length&&(e.charCodeAt(t)===69||e.charCodeAt(t)===101))if(t++,(t<e.length&&e.charCodeAt(t)===43||e.charCodeAt(t)===45)&&t++,t<e.length&&be(e.charCodeAt(t))){for(t++;t<e.length&&be(e.charCodeAt(t));)t++;I=t}else u=3;return e.substring(m,I)}function v(){for(var m="",I=t;;){if(t>=i){m+=e.substring(I,t),u=2;break}var E=e.charCodeAt(t);if(E===34){m+=e.substring(I,t),t++;break}if(E===92){if(m+=e.substring(I,t),t++,t>=i){u=2;break}var x=e.charCodeAt(t++);switch(x){case 34:m+='"';break;case 92:m+="\\";break;case 47:m+="/";break;case 98:m+="\b";break;case 102:m+="\f";break;case 110:m+=`
|
|
2
2
|
`;break;case 114:m+="\r";break;case 116:m+=" ";break;case 117:var w=h(4);w>=0?m+=String.fromCharCode(w):u=4;break;default:u=5}I=t;continue}if(E>=0&&E<=31)if(Te(E)){m+=e.substring(I,t),u=2;break}else u=6;t++}return m}function p(){if(n="",u=0,a=t,f=o,c=l,t>=i)return a=i,s=17;var m=e.charCodeAt(t);if(Ke(m)){do t++,n+=String.fromCharCode(m),m=e.charCodeAt(t);while(Ke(m));return s=15}if(Te(m))return t++,n+=String.fromCharCode(m),m===13&&e.charCodeAt(t)===10&&(t++,n+=`
|
|
3
3
|
`),o++,l=t,s=14;switch(m){case 123:return t++,s=1;case 125:return t++,s=2;case 91:return t++,s=3;case 93:return t++,s=4;case 58:return t++,s=6;case 44:return t++,s=5;case 34:return t++,n=v(),s=10;case 47:var I=t-1;if(e.charCodeAt(t+1)===47){for(t+=2;t<i&&!Te(e.charCodeAt(t));)t++;return n=e.substring(I,t),s=12}if(e.charCodeAt(t+1)===42){t+=2;for(var E=i-1,x=!1;t<E;){var w=e.charCodeAt(t);if(w===42&&e.charCodeAt(t+1)===47){t+=2,x=!0;break}t++,Te(w)&&(w===13&&e.charCodeAt(t)===10&&t++,o++,l=t)}return x||(t++,u=1),n=e.substring(I,t),s=13}return n+=String.fromCharCode(m),t++,s=16;case 45:if(n+=String.fromCharCode(m),t++,t===i||!be(e.charCodeAt(t)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=d(),s=11;default:for(;t<i&&A(m);)t++,m=e.charCodeAt(t);if(a!==t){switch(n=e.substring(a,t),n){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return n+=String.fromCharCode(m),t++,s=16}}function A(m){if(Ke(m)||Te(m))return!1;switch(m){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function b(){var m;do m=p();while(m>=12&&m<=15);return m}return{setPosition:g,getPosition:function(){return t},scan:r?b:p,getToken:function(){return s},getTokenValue:function(){return n},getTokenOffset:function(){return a},getTokenLength:function(){return t-a},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return a-c},getTokenError:function(){return u}}}function Ke(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Te(e){return e===10||e===13||e===8232||e===8233}function be(e){return e>=48&&e<=57}function Tr(e,r,i){var t,n,a,s,o;if(r){for(s=r.offset,o=s+r.length,a=s;a>0&&!Ot(e,a-1);)a--;for(var f=o;f<e.length&&!Ot(e,f);)f++;n=e.substring(a,f),t=kr(n,i)}else n=e,t=0,a=0,s=0,o=e.length;var l=Or(i,e),c=!1,u=0,h;i.insertSpaces?h=et(" ",i.tabSize||4):h=" ";var g=At(n,!1),d=!1;function v(){return l+et(h,t+u)}function p(){var V=g.scan();for(c=!1;V===15||V===14;)c=c||V===14,V=g.scan();return d=V===16||g.getTokenError()!==0,V}var A=[];function b(V,F,R){!d&&(!r||F<o&&R>s)&&e.substring(F,R)!==V&&A.push({offset:F,length:R-F,content:V})}var m=p();if(m!==17){var I=g.getTokenOffset()+a,E=et(h,t);b(E,a,I)}for(;m!==17;){for(var x=g.getTokenOffset()+g.getTokenLength()+a,w=p(),C="",T=!1;!c&&(w===12||w===13);){var N=g.getTokenOffset()+a;b(" ",x,N),x=g.getTokenOffset()+g.getTokenLength()+a,T=w===12,C=T?v():"",w=p()}if(w===2)m!==1&&(u--,C=v());else if(w===4)m!==3&&(u--,C=v());else{switch(m){case 3:case 1:u++,C=v();break;case 5:case 12:C=v();break;case 13:c?C=v():T||(C=" ");break;case 6:T||(C=" ");break;case 10:if(w===6){T||(C="");break}case 7:case 8:case 9:case 11:case 2:case 4:w===12||w===13?T||(C=" "):w!==5&&w!==17&&(d=!0);break;case 16:d=!0;break}c&&(w===12||w===13)&&(C=v())}w===17&&(C=i.insertFinalNewline?l:"");var M=g.getTokenOffset()+a;b(C,x,M),m=w}return A}function et(e,r){for(var i="",t=0;t<r;t++)i+=e;return i}function kr(e,r){for(var i=0,t=0,n=r.tabSize||4;i<e.length;){var a=e.charAt(i);if(a===" ")t++;else if(a===" ")t+=n;else break;i++}return Math.floor(t/n)}function Or(e,r){for(var i=0;i<r.length;i++){var t=r.charAt(i);if(t==="\r")return i+1<r.length&&r.charAt(i+1)===`
|
|
4
4
|
`?`\r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as Ye}from"./monaco.
|
|
1
|
+
import{m as Ye}from"./monaco.eb0f9c1e.CiFWjB0j.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
4
4
|
* Released under the MIT license
|