UNPKG

pulse-dashboard

Version:

A Next.js Dashboard application for real-time monitoring and historical analysis of Playwright test executions. This component provides the UI for visualizing Playwright test results and can be run as a standalone CLI tool.

1 lines 8.88 kB
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[220],{2448:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]])},12543:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},13768:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]])},15300:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},35695:(e,t,a)=>{var r=a(18999);a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}})},48155:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},52333:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]])},58527:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},60704:(e,t,a)=>{a.d(t,{B8:()=>I,UC:()=>T,bL:()=>j,l9:()=>D});var r=a(12115),n=a(85185),o=a(46081),i=a(89196),l=a(28905),d=a(63655),s=a(94315),u=a(5845),c=a(61285),h=a(95155),f="Tabs",[p,v]=(0,o.A)(f,[i.RG]),y=(0,i.RG)(),[m,b]=p(f),k=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,onValueChange:n,defaultValue:o,orientation:i="horizontal",dir:l,activationMode:f="automatic",...p}=e,v=(0,s.jH)(l),[y,b]=(0,u.i)({prop:r,onChange:n,defaultProp:o});return(0,h.jsx)(m,{scope:a,baseId:(0,c.B)(),value:y,onValueChange:b,orientation:i,dir:v,activationMode:f,children:(0,h.jsx)(d.sG.div,{dir:v,"data-orientation":i,...p,ref:t})})});k.displayName=f;var w="TabsList",g=r.forwardRef((e,t)=>{let{__scopeTabs:a,loop:r=!0,...n}=e,o=b(w,a),l=y(a);return(0,h.jsx)(i.bL,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:r,children:(0,h.jsx)(d.sG.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:t})})});g.displayName=w;var A="TabsTrigger",x=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:r,disabled:o=!1,...l}=e,s=b(A,a),u=y(a),c=F(s.baseId,r),f=C(s.baseId,r),p=r===s.value;return(0,h.jsx)(i.q7,{asChild:!0,...u,focusable:!o,active:p,children:(0,h.jsx)(d.sG.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...l,ref:t,onMouseDown:(0,n.m)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,n.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,n.m)(e.onFocus,()=>{let e="manual"!==s.activationMode;p||o||!e||s.onValueChange(r)})})})});x.displayName=A;var M="TabsContent",R=r.forwardRef((e,t)=>{let{__scopeTabs:a,value:n,forceMount:o,children:i,...s}=e,u=b(M,a),c=F(u.baseId,n),f=C(u.baseId,n),p=n===u.value,v=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(l.C,{present:o||p,children:a=>{let{present:r}=a;return(0,h.jsx)(d.sG.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:f,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0},children:r&&i})}})});function F(e,t){return"".concat(e,"-trigger-").concat(t)}function C(e,t){return"".concat(e,"-content-").concat(t)}R.displayName=M;var j=k,I=g,D=x,T=R},65064:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]])},68718:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},79311:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},89196:(e,t,a)=>{a.d(t,{RG:()=>g,bL:()=>D,q7:()=>T});var r=a(12115),n=a(85185),o=a(82284),i=a(6101),l=a(46081),d=a(61285),s=a(63655),u=a(39033),c=a(5845),h=a(94315),f=a(95155),p="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[m,b,k]=(0,o.N)(y),[w,g]=(0,l.A)(y,[k]),[A,x]=w(y),M=r.forwardRef((e,t)=>(0,f.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(R,{...e,ref:t})})}));M.displayName=y;var R=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:l=!1,dir:d,currentTabStopId:y,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:k,onEntryFocus:w,preventScrollOnEntryFocus:g=!1,...x}=e,M=r.useRef(null),R=(0,i.s)(t,M),F=(0,h.jH)(d),[C=null,j]=(0,c.i)({prop:y,defaultProp:m,onChange:k}),[D,T]=r.useState(!1),E=(0,u.c)(w),G=b(a),L=r.useRef(!1),[q,H]=r.useState(0);return r.useEffect(()=>{let e=M.current;if(e)return e.addEventListener(p,E),()=>e.removeEventListener(p,E)},[E]),(0,f.jsx)(A,{scope:a,orientation:o,dir:F,loop:l,currentTabStopId:C,onItemFocus:r.useCallback(e=>j(e),[j]),onItemShiftTab:r.useCallback(()=>T(!0),[]),onFocusableItemAdd:r.useCallback(()=>H(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>H(e=>e-1),[]),children:(0,f.jsx)(s.sG.div,{tabIndex:D||0===q?-1:0,"data-orientation":o,...x,ref:R,style:{outline:"none",...e.style},onMouseDown:(0,n.m)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,n.m)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(p,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=G().filter(e=>e.focusable);I([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),g)}}L.current=!1}),onBlur:(0,n.m)(e.onBlur,()=>T(!1))})})}),F="RovingFocusGroupItem",C=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:i=!1,tabStopId:l,...u}=e,c=(0,d.B)(),h=l||c,p=x(F,a),v=p.currentTabStopId===h,y=b(a),{onFocusableItemAdd:k,onFocusableItemRemove:w}=p;return r.useEffect(()=>{if(o)return k(),()=>w()},[o,k,w]),(0,f.jsx)(m.ItemSlot,{scope:a,id:h,focusable:o,active:i,children:(0,f.jsx)(s.sG.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:(0,n.m)(e.onMouseDown,e=>{o?p.onItemFocus(h):e.preventDefault()}),onFocus:(0,n.m)(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:(0,n.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,a){var r;let n=(r=e.key,"rtl"!==a?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return j[n]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){"prev"===t&&a.reverse();let r=a.indexOf(e.currentTarget);a=p.loop?function(e,t){return e.map((a,r)=>e[(t+r)%e.length])}(a,r+1):a.slice(r+1)}setTimeout(()=>I(a))}})})})});C.displayName=F;var j={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}var D=M,T=C},97990:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(40157).A)("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]])}}]);