@snagset/server 0.1.7 → 0.1.9
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/package.json +1 -1
- package/static/dashboard/assets/{CompositeItem-B5AtyrD6.js → CompositeItem-Db_8iHSG.js} +1 -1
- package/static/dashboard/assets/{ConfirmDialog-ClUMXHe1.js → ConfirmDialog-eCzw7vjK.js} +1 -1
- package/static/dashboard/assets/{CopyButton-DCsj-LZV.js → CopyButton-lcjux1TA.js} +1 -1
- package/static/dashboard/assets/{FieldItemContext-DVEWRsEB.js → FieldItemContext-i5zdyQYl.js} +1 -1
- package/static/dashboard/assets/{InstallTag-B_qg9P2r.js → InstallTag-Eqs3RM9e.js} +1 -1
- package/static/dashboard/assets/{SaveState-B-6cG0nU.js → SaveState-Cf_bnJmg.js} +1 -1
- package/static/dashboard/assets/{_app-DQfqCcnn.js → _app-CuKLSKZ2.js} +1 -1
- package/static/dashboard/assets/{_app-DKjbkrkj.js → _app-qNVG5lsX.js} +1 -1
- package/static/dashboard/assets/{activity-D8OAqMBy.js → activity-CQLBFIV4.js} +1 -1
- package/static/dashboard/assets/{arrow-left-D2obUiWw.js → arrow-left-CQUHEFUP.js} +1 -1
- package/static/dashboard/assets/{avatar-DlHbKa1H.js → avatar-CWT37Ivf.js} +1 -1
- package/static/dashboard/assets/{badge-CQoGgFU8.js → badge-thtKAJ0h.js} +1 -1
- package/static/dashboard/assets/{card-YnwmM74t.js → card-CsXE7vKD.js} +1 -1
- package/static/dashboard/assets/{check-CLHnIgiu.js → check-Bc_1fmPx.js} +1 -1
- package/static/dashboard/assets/{chevron-right-BX_QQNXH.js → chevron-right-neQQkaOt.js} +1 -1
- package/static/dashboard/assets/{copy-ZOZ0pLVD.js → copy-O3USBatC.js} +1 -1
- package/static/dashboard/assets/{dialog-BO8bYmy1.js → dialog-MC-TOvQV.js} +1 -1
- package/static/dashboard/assets/{dropdown-menu-NLHjhAUe.js → dropdown-menu-C2ZhmONu.js} +1 -1
- package/static/dashboard/assets/{image-off-Dg9jTwH7.js → image-off-Bu6l8gP5.js} +1 -1
- package/static/dashboard/assets/{index-B7_Oj3hr.js → index-C6gyyLd5.js} +3 -3
- package/static/dashboard/assets/{label-Dpq7t35_.js → label-BTdAT39L.js} +1 -1
- package/static/dashboard/assets/{layout-grid-Bf2WS_DV.js → layout-grid-rYWIGaIJ.js} +1 -1
- package/static/dashboard/assets/me-CI9giaT9.js +1 -0
- package/static/dashboard/assets/{parts-C1QjM02Y.js → parts-kPNZVO9H.js} +1 -1
- package/static/dashboard/assets/{plus-D247LXUb.js → plus-CcJ1Zwa7.js} +1 -1
- package/static/dashboard/assets/s._site-D0HRtia-.js +1 -0
- package/static/dashboard/assets/{s._site.comments-DEzj9S7b.js → s._site.comments-D3ACsr3a.js} +1 -1
- package/static/dashboard/assets/{s._site.reviewers-DZ5GqGMU.js → s._site.reviewers-Djq2t6Dx.js} +1 -1
- package/static/dashboard/assets/{s._site.settings-BIjpyBsc.js → s._site.settings-D0b6vJci.js} +1 -1
- package/static/dashboard/assets/setup-D748SEIm.js +1 -0
- package/static/dashboard/assets/{sign-in-H0jNzIrs.js → sign-in-CKSiZWCo.js} +1 -1
- package/static/dashboard/assets/{sign-up-DyiLEKht.js → sign-up-BX9j_Ya2.js} +1 -1
- package/static/dashboard/assets/{sites-Dnmo-2Me.js → sites-QwJy87Y8.js} +1 -1
- package/static/dashboard/assets/studio-B_ma5JGA.js +1 -0
- package/static/dashboard/assets/{studio-enyabWEx.js → studio-HH_J6PPv.js} +1 -1
- package/static/dashboard/assets/{studio.index-nkeq6PME.js → studio.index-DrtJF7DT.js} +1 -1
- package/static/dashboard/assets/{studio.integrations-BWPo36fJ.js → studio.integrations-Cv34ukzT.js} +1 -1
- package/static/dashboard/assets/{studio.members-DXS5CJK_.js → studio.members-DTbKcrEI.js} +1 -1
- package/static/dashboard/assets/{sun-BzkBukC4.js → sun-CWPmS6_O.js} +1 -1
- package/static/dashboard/assets/{switch-ElcxbE6-.js → switch-CzijGUed.js} +1 -1
- package/static/dashboard/assets/{table-DdjoxL3-.js → table-CiZO2uuW.js} +1 -1
- package/static/dashboard/assets/{useAriaLabelledBy-BNUj3f_d.js → useAriaLabelledBy-oZFqC809.js} +1 -1
- package/static/dashboard/assets/{useBaseQuery-yj7uWlSz.js → useBaseQuery-CHgLQD-M.js} +1 -1
- package/static/dashboard/assets/useQuery-C6FyjMS-.js +1 -0
- package/static/dashboard/assets/useRender-D5jZ1wns.js +1 -0
- package/static/dashboard/assets/{useValueChanged-DQ0Iea1L.js → useValueChanged-Dvr7PvAV.js} +1 -1
- package/static/dashboard/assets/{users-DDrXwrCG.js → users-Ci-ogubz.js} +1 -1
- package/static/dashboard/assets/welcome-BDWw5Qlv.js +11 -0
- package/static/dashboard/assets/{you-CP3bZ82A.js → you-DAUNHAFI.js} +1 -1
- package/static/dashboard/assets/{zod-BUdBrC5l.js → zod-CtjFmGX5.js} +1 -1
- package/static/dashboard/index.html +1 -1
- package/static/dashboard/assets/me-DoCJgtG9.js +0 -1
- package/static/dashboard/assets/s._site-BDWAQaIb.js +0 -1
- package/static/dashboard/assets/setup-ONHVc5kM.js +0 -1
- package/static/dashboard/assets/studio-DxOnhxuB.js +0 -1
- package/static/dashboard/assets/useQuery-CBgK187B.js +0 -1
- package/static/dashboard/assets/useRender-BHlMpPxr.js +0 -1
- package/static/dashboard/assets/welcome-Dg1oA1uA.js +0 -11
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,d as O,e as M,V as w,j as T,aq as Y,Y as _,E as j,ap as S,i as k}from"./index-
|
|
1
|
+
import{r as l,d as O,e as M,V as w,j as T,aq as Y,Y as _,E as j,ap as S,i as k}from"./index-C6gyyLd5.js";const H=l.createContext(void 0);function K(){return l.useContext(H)?.direction??"ltr"}const y=l.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function B(){return l.useContext(y)}function F(s={}){const{guess:o,label:e,metadata:r,textRef:f,index:t}=s,{register:i,unregister:u,subscribeMapChange:d,nextIndexRef:h}=B(),c=l.useRef(-1),[g,C]=l.useState(t==null&&o?()=>{if(c.current===-1){const p=h.current;h.current+=1,c.current=p}return c.current}:-1),v=t??g,R=l.useRef(null),E=l.useCallback(p=>{const b=R.current;b&&u(b),R.current=p,p&&i(p,{metadata:r??null,index:t??null,label:e,textRef:f})},[t,i,u,r,e,f]);return O(()=>{if(t==null)return d(p=>{const b=R.current?p.get(R.current)?.index:null;b!=null&&C(b)})},[t,d]),{ref:E,index:v}}function Q(s){const{children:o,elementsRef:e,labelsRef:r,onMapChange:f}=s,t=M(f),[,i]=l.useState(!1),u=w(V).current,d=w(U).current,h=l.useRef(0),c=l.useRef(!0),g=l.useRef([]),C=l.useRef(null),v=M(()=>{c.current||(c.current=!0,i(n=>!n))}),R=M((n,x)=>{d.set(n,x),v()}),E=M(n=>{d.delete(n),v()}),p=M(n=>{const x=new Map;return e.current.length=0,r&&(r.current.length=0),n.forEach(a=>{x.set(a.element,{...a.registration.metadata??{},index:a.index}),e.current[a.index]=a.element,r&&(r.current[a.index]=a.registration.label!==void 0?a.registration.label:a.registration.textRef?.current?.textContent??a.element.textContent)}),h.current=e.current.length,x});function b(n){if(C.current?.disconnect(),C.current=null,typeof MutationObserver!="function"||n.length<2)return;const x=new MutationObserver(m=>{if(!z(m))return;let I=null;for(const L of n)if(L.isConnected){if(I&&D(I,L)>0){x.disconnect(),v();return}I=L}});C.current=x;const a=new Set;for(let m=1;m<n.length;m+=1){const I=q(n[m-1],n[m]);I&&a.add(I)}a.forEach(m=>x.observe(m,{childList:!0}))}const N=M(()=>{const[n,x]=W(d),a=p(n);b(x),g.current=n,c.current=!1,u.forEach(m=>m(a)),t(a)});O(()=>(c.current||p(g.current),()=>{e.current=[],r&&(r.current=[])}),[e,r,p]),O(()=>{c.current&&N()}),O(()=>()=>{C.current?.disconnect(),c.current=!0},[]);const P=M(n=>(u.add(n),()=>{u.delete(n)})),A=l.useMemo(()=>({register:R,unregister:E,subscribeMapChange:P,nextIndexRef:h}),[R,E,P,h]);return T.jsx(y.Provider,{value:A,children:o})}function U(){return new Map}function V(){return new Set}function W(s){const o=new Set,e=[],r=[];s.forEach((t,i)=>{if(!i.isConnected)return;const u=t.index,d={index:u??-1,element:i,registration:t};u===null?r.push(d):u>=0&&(o.add(u),e.push(d))});let f=0;return r.sort((t,i)=>D(t.element,i.element)),r.forEach(t=>{for(;o.has(f);)f+=1;t.index=f,e.push(t),f+=1}),o.size>0&&e.sort((t,i)=>t.index-i.index),[e,r.map(t=>t.element)]}function q(s,o){let e=s.parentElement;for(;e&&!e.contains(o);)e=e.parentElement;return e}function z(s){for(const o of s)for(let e=0;e<o.removedNodes.length;e+=1)if(o.removedNodes[e].isConnected)return!0;return!1}function D(s,o){return s.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function G(s={}){const{highlightItemOnHover:o,highlightedIndex:e,onHighlightedIndexChange:r}=Y(),{ref:f,index:t}=F(s),i=e===t,u=l.useRef(null),d=_(f,u);return{compositeProps:{tabIndex:i?0:-1,onFocus(){r(t)},onMouseMove(){const c=u.current;if(!o||!c)return;const g=c.hasAttribute("disabled")||c.ariaDisabled==="true";!i&&!g&&c.focus()}},compositeRef:d,index:t}}function X(s){const{render:o,className:e,style:r,state:f=j,props:t=S,refs:i=S,metadata:u,stateAttributesMapping:d,tag:h="div",...c}=s,{compositeProps:g,compositeRef:C}=G({metadata:u});return k(h,s,{state:f,ref:[C,...i],props:[g,...t,c],stateAttributesMapping:d})}export{Q as C,F as a,X as b,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as e,B as x}from"./index-
|
|
1
|
+
import{r as i,j as e,B as x}from"./index-C6gyyLd5.js";import{E as u,G as g,I as C,H as D,J as v,K as b}from"./dialog-MC-TOvQV.js";import{L as E,I}from"./label-BTdAT39L.js";function T({open:t,onOpenChange:o,title:m,description:r,children:h,confirmLabel:j,confirmWord:l,busy:s=!1,onConfirm:p}){const[n,c]=i.useState(""),d=i.useId();i.useEffect(()=>{t&&c("")},[t]);const f=!l||n.trim()===l;return e.jsx(u,{open:t,onOpenChange:a=>{!a&&s||o(a)},children:e.jsx(g,{showCloseButton:!1,children:e.jsxs("form",{className:"flex flex-col gap-4",onSubmit:a=>{a.preventDefault(),f&&!s&&p()},children:[e.jsxs(C,{children:[e.jsx(D,{children:m}),r&&e.jsx(v,{children:r})]}),h,l&&e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsxs(E,{htmlFor:d,children:["Type ",e.jsx("b",{className:"font-semibold text-foreground",children:l})," to confirm"]}),e.jsx(I,{id:d,value:n,autoComplete:"off",spellCheck:!1,disabled:s,onChange:a=>c(a.target.value)})]}),e.jsxs(b,{children:[e.jsx(x,{type:"button",variant:"outline",disabled:s,onClick:()=>o(!1),children:"Cancel"}),e.jsx(x,{type:"submit",variant:"destructive",loading:s,disabled:!f,children:s?"Working…":j})]})]})})})}export{T as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,j as t,B as c}from"./index-
|
|
1
|
+
import{r as n,j as t,B as c}from"./index-C6gyyLd5.js";import{C}from"./check-Bc_1fmPx.js";import{C as m}from"./copy-O3USBatC.js";function l({text:r,label:e="Copy",withText:s=!1,size:a="icon-sm",className:p}){const[o,i]=n.useState(!1);return t.jsxs(c,{type:"button",variant:"outline",size:s?"sm":a,className:p,"aria-label":o?"Copied":e,onClick:()=>{navigator.clipboard?.writeText(r).catch(()=>{}),i(!0),setTimeout(()=>i(!1),1500)},children:[o?t.jsx(C,{}):t.jsx(m,{}),s&&(o?"Copied":e)]})}export{l as C};
|
package/static/dashboard/assets/{FieldItemContext-DVEWRsEB.js → FieldItemContext-i5zdyQYl.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-C6gyyLd5.js";const e=t.createContext({disabled:!1});function r(){return t.useContext(e)}export{r as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,j as e,B as i,aA as n}from"./index-
|
|
1
|
+
import{r as o,j as e,B as i,aA as n}from"./index-C6gyyLd5.js";import{C as c}from"./check-Bc_1fmPx.js";import{C as l}from"./copy-O3USBatC.js";function p(t){return`<script src="${location.origin}/snag.js" ${n("site")}="${t}" defer><\/script>`}function g({uid:t}){const[r,a]=o.useState(!1),s=p(t);return e.jsxs("div",{className:"relative rounded-md border border-border bg-background px-3 py-2.5 pr-11 font-mono text-[12.5px] leading-relaxed",children:[e.jsx("code",{className:"whitespace-pre-wrap break-all",children:s}),e.jsx(i,{variant:"ghost",size:"icon-sm",className:"absolute right-1.5 top-1.5","aria-label":r?"Copied":"Copy the tag",onClick:()=>{navigator.clipboard?.writeText(s),a(!0),setTimeout(()=>a(!1),1500)},children:r?e.jsx(c,{}):e.jsx(l,{})})]})}export{g as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,j as e,az as o}from"./index-
|
|
1
|
+
import{r,j as e,az as o}from"./index-C6gyyLd5.js";function l({saving:s,savedAt:t}){const[i,a]=r.useState(!1);return r.useEffect(()=>{if(!t)return;a(!0);const n=setTimeout(()=>a(!1),1800);return()=>clearTimeout(n)},[t]),s?e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[12.5px] text-muted-foreground","aria-live":"polite",children:[e.jsx(o,{className:"size-3.5 animate-spin","aria-hidden":"true"}),"Saving"]}):e.jsx("span",{className:"text-[12.5px] text-muted-foreground","aria-live":"polite",children:i?"Saved":""})}export{l as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,u as n,G as a,B as r}from"./index-
|
|
1
|
+
import{j as e,u as n,G as a,B as r}from"./index-C6gyyLd5.js";function i({error:s}){const t=n(),o=s instanceof Error?s.message:"Something went wrong.";return e.jsx(a,{children:e.jsxs("div",{className:"flex flex-col items-start gap-3",children:[e.jsx("h1",{className:"m-0 text-lg font-semibold",children:"Could not load the dashboard"}),e.jsx("p",{className:"m-0 text-muted-foreground",children:o}),e.jsx(r,{variant:"outline",size:"sm",onClick:()=>void t.invalidate(),children:"Try again"})]})})}const m=({error:s})=>e.jsx(i,{error:s});export{m as errorComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as pt,a as gt,b as ft,c as D,r as o,d as z,e as le,g as ht,j as e,B as J,f as w,h as se,m as be,E as xt,i as ve,k as ge,l as mt,n as bt,o as ne,p as Z,q as vt,L as _,s as jt,t as _e,M as yt,v as St,w as wt,x as Ct,y as kt,O as Nt}from"./index-
|
|
1
|
+
import{u as pt,a as gt,b as ft,c as D,r as o,d as z,e as le,g as ht,j as e,B as J,f as w,h as se,m as be,E as xt,i as ve,k as ge,l as mt,n as bt,o as ne,p as Z,q as vt,L as _,s as jt,t as _e,M as yt,v as St,w as wt,x as Ct,y as kt,O as Nt}from"./index-C6gyyLd5.js";import{u as He}from"./useQuery-C6FyjMS-.js";import{T as Tt,i as ze,a as Pt,D as Rt,b as Mt,c as Et,X as Ot,d as It,e as Dt,f as At,g as _t,R as Ht,p as zt,h as Lt,j as $t,k as Bt,P as Ft,l as Ut,u as qt,m as Gt,n as Vt,o as Kt,q as Yt,r as Wt,s as Xt,t as Qt,v as Jt,w as Zt,x as es,y as ts,z as ss,A as ns,F as as,B as rs,C as os,E as Le,G as $e,H as Be,I as is,J as ls,K as ds}from"./dialog-MC-TOvQV.js";import{c as B,n as Fe,g as cs,a as fe,t as us,d as ps,i as gs,u as fs,b as de,L as hs,I as xs}from"./label-BTdAT39L.js";import{g as he,u as ms,a as bs,b as vs,s as js,c as ys,d as Ss,e as ws,f as Cs,h as ks,S as Ue,E as Q,D as ae,i as re,j as oe,k as je,l as ee,m as I,n as V,o as Ns,p as ce}from"./dropdown-menu-C2ZhmONu.js";import{u as qe}from"./useRender-D5jZ1wns.js";import{A as Ts,a as Ps}from"./avatar-CWT37Ivf.js";import{S as Rs,i as Ms,a as Es}from"./labels--UUyt9uB.js";import{u as Ge}from"./me-CI9giaT9.js";import{L as te}from"./layout-grid-rYWIGaIJ.js";import{U as xe}from"./users-Ci-ogubz.js";import{c as Os}from"./update-duXzIzFS.js";import{P as Ve}from"./plus-CcJ1Zwa7.js";import{M as Is,S as Ds,a as As}from"./sun-CWPmS6_O.js";import"./useBaseQuery-CHgLQD-M.js";import"./check-Bc_1fmPx.js";import"./CompositeItem-Db_8iHSG.js";import"./useValueChanged-Dvr7PvAV.js";function _s(t){const s=pt({warn:t?.router===void 0}),n=t?.router||s;return gt(n.stores.__store,ft(t,n))}/**
|
|
2
2
|
* @license lucide-react v1.39.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as g,J as f,K as p,o as v,j as e,B as m,L as N,p as P}from"./index-
|
|
1
|
+
import{I as g,J as f,K as p,o as v,j as e,B as m,L as N,p as P}from"./index-C6gyyLd5.js";import{Q as j,u as y}from"./useBaseQuery-CHgLQD-M.js";import{P as b,S as w}from"./parts-kPNZVO9H.js";import{b as S,c as R,S as E}from"./labels--UUyt9uB.js";import{u as F}from"./me-CI9giaT9.js";import"./card-CsXE7vKD.js";var k=class extends j{constructor(s,n){super(s,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(s){s._type="infinite",super.setOptions(s)}getOptimisticResult(s){return s._type="infinite",super.getOptimisticResult(s)}fetchNextPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"backward"}}})}createResult(s,n){const{state:i}=s,l=super.createResult(s,n),{isFetching:o,isRefetching:r,isError:u,isRefetchError:d}=l,t=i.fetchMeta?.fetchMore?.direction,c=u&&t==="forward",a=o&&t==="forward",x=u&&t==="backward",h=o&&t==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:f(n,i.data),hasPreviousPage:g(n,i.data),isFetchNextPageError:c,isFetchingNextPage:a,isFetchPreviousPageError:x,isFetchingPreviousPage:h,isRefetchError:d&&!c&&!x,isRefetching:r&&!a&&!h}}};function M(s,n){return y(s,k)}const A=[{value:"unresolved",label:"Needs attention"},...R.map(s=>({value:s,label:E[s]})),{value:"all",label:"Everything"}];function C(s,n=new Date){const i=new Date(s),l=r=>new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime(),o=Math.round((l(n)-l(i))/864e5);return o<=0?"Today":o===1?"Yesterday":o<7?i.toLocaleDateString(void 0,{weekday:"long"}):i.toLocaleDateString(void 0,{day:"numeric",month:"long"})}function I(){const s=F(),{status:n="unresolved",site:i}=p.useSearch(),l=v({from:"/activity"}),o=t=>void l({search:c=>({...c,...t}),replace:!0}),r=M({queryKey:["activity",n,i??null],queryFn:({pageParam:t})=>P.activity({status:n,...i?{site:i}:{},...t?{cursor:t}:{}}),initialPageParam:"",getNextPageParam:t=>t.nextCursor??void 0,refetchOnWindowFocus:!0}),u=r.data?.pages.flatMap(t=>t.data)??[],d=[];for(const t of u){const c=C(t.updatedAt),a=d[d.length-1];a?.day===c?a.rows.push(t):d.push({day:c,rows:[t]})}return e.jsxs("div",{className:"flex flex-col gap-5 p-7",children:[e.jsx(b,{title:"Activity",sub:`Every site, newest first${i?"":" — all of them"}`}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[A.map(t=>e.jsx(m,{size:"sm",variant:n===t.value?"default":"outline",onClick:()=>o({status:t.value}),children:t.label},t.value)),e.jsx("div",{className:"flex-1"}),e.jsxs("label",{className:"flex items-center gap-2 text-[13px] text-muted-foreground",children:["Site",e.jsxs("select",{"aria-label":"Site",value:i??"",onChange:t=>o({site:t.target.value||void 0}),className:"h-8 rounded-md border border-input bg-background px-2.5 text-[13px] text-foreground",children:[e.jsx("option",{value:"",children:"All sites"}),s.projects.map(t=>e.jsx("option",{value:t.uid,children:t.name},t.uid))]})]})]}),r.isPending&&e.jsx("p",{className:"m-0 text-[13px] text-muted-foreground",children:"Reading…"}),r.isError&&e.jsx("p",{className:"m-0 text-[13px] text-destructive",children:"Could not read the feed. Reload to try again."}),r.isSuccess&&u.length===0&&e.jsx("p",{className:"m-0 text-[13px] text-muted-foreground",children:n==="resolved"?"Nothing has been resolved yet — this is where finished comments go.":n==="unresolved"?"Nothing needs attention. Every comment on every site is resolved.":"No comments yet on any site."}),d.map(({day:t,rows:c})=>e.jsxs("section",{className:"flex flex-col gap-2",children:[e.jsx("h2",{className:"m-0 text-[12px] font-medium uppercase tracking-wide text-muted-foreground",children:t}),e.jsx("ul",{className:"m-0 flex list-none flex-col gap-1.5 p-0",children:c.map(a=>e.jsx("li",{children:e.jsxs(N,{to:"/s/$site/comments",params:{site:a.site.uid},search:{thread:a.key},className:"flex flex-col gap-1 rounded-md border border-border px-3 py-2.5 no-underline transition-colors hover:bg-muted/60",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-[13px]",children:[e.jsx(w,{status:a.status}),e.jsx("span",{className:"font-medium text-foreground",children:a.site.name}),e.jsx("code",{className:"font-mono text-[12px] text-muted-foreground",children:a.route}),e.jsx("span",{className:"flex-1"}),e.jsx("span",{className:"text-[12px] text-muted-foreground",children:S(a.updatedAt)})]}),a.latest?.body&&e.jsxs("span",{className:"line-clamp-2 text-[13px] text-foreground",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a.latest.author??a.createdBy.name,": "]}),a.latest.body]}),e.jsxs("span",{className:"flex flex-wrap items-center gap-x-2 text-[12px] text-muted-foreground",children:[e.jsx("span",{className:"font-mono",children:a.key}),e.jsx("span",{children:"·"}),e.jsxs("span",{children:[a.commentCount," ",a.commentCount===1?"comment":"comments"]}),a.assignee&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"·"}),e.jsx("span",{children:a.assignee})]})]})]})},a.id))})]},t)),r.hasNextPage&&e.jsx("div",{children:e.jsx(m,{variant:"outline",size:"sm",disabled:r.isFetchingNextPage,onClick:()=>void r.fetchNextPage(),children:r.isFetchingNextPage?"Reading…":"Show older"})})]})}export{I as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as b,i as f,j as d,f as m}from"./index-
|
|
1
|
+
import{r as a,h as b,i as f,j as d,f as m}from"./index-C6gyyLd5.js";import{w as A}from"./dialog-MC-TOvQV.js";const x=a.createContext(void 0);function z(){const e=a.useContext(x);if(e===void 0)throw new Error(b(13));return e}const g={imageLoadingStatus:()=>null},R=a.forwardRef(function(t,r){const{className:v,render:p,style:s,...c}=t,[n,o]=a.useState("idle"),i={imageLoadingStatus:n},u=a.useMemo(()=>({imageLoadingStatus:n,setImageLoadingStatus:o}),[n,o]),l=f("span",t,{state:i,ref:r,props:c,stateAttributesMapping:g});return d.jsx(x.Provider,{value:u,children:l})}),k=a.forwardRef(function(t,r){const{className:v,render:p,delay:s=0,style:c,...n}=t,{imageLoadingStatus:o}=z(),[i,u]=a.useState(s===0),l=A();return a.useEffect(()=>(s>0?l.start(s,()=>u(!0)):u(!0),l.clear),[l,s]),f("span",t,{state:{imageLoadingStatus:o},ref:r,props:n,stateAttributesMapping:g,enabled:o!=="loaded"&&(s===0||i)})});function h({className:e,size:t="default",...r}){return d.jsx(R,{"data-slot":"avatar","data-size":t,className:m("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),...r})}function w({className:e,...t}){return d.jsx(k,{"data-slot":"avatar-fallback",className:m("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}export{h as A,w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as a,f as n,n as o}from"./index-
|
|
1
|
+
import{m as a,f as n,n as o}from"./index-C6gyyLd5.js";import{u as d}from"./useRender-D5jZ1wns.js";const s=o("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function v({className:r,variant:e="default",render:t,...i}){return d({defaultTagName:"span",props:a({className:n(s({variant:e}),r)},i),render:t,state:{slot:"badge",variant:e}})}export{v as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,f as t}from"./index-
|
|
1
|
+
import{j as s,f as t}from"./index-C6gyyLd5.js";function c({className:a,size:d="default",...r}){return s.jsx("div",{"data-slot":"card","data-size":d,className:t("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...r})}export{c as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as zn,ac as Z,k as Pe,ad as mt,ak as oe,aB as bt,r as l,ap as Jn,V as ke,e as q,l as Ze,d as N,h as zt,i as Ae,W as Qn,j as I,X as Jt,E as ve,aC as Zn,Y as Pt,g as et,ag as ot,af as er,aD as tr,aE as Qt,aF as nr,al as rr,B as Zt,f as Fe}from"./index-
|
|
1
|
+
import{c as zn,ac as Z,k as Pe,ad as mt,ak as oe,aB as bt,r as l,ap as Jn,V as ke,e as q,l as Ze,d as N,h as zt,i as Ae,W as Qn,j as I,X as Jt,E as ve,aC as Zn,Y as Pt,g as et,ag as ot,af as er,aD as tr,aE as Qt,aF as nr,al as rr,B as Zt,f as Fe}from"./index-C6gyyLd5.js";import{a as A,o as U,m as ge,c as Se,B as or,u as en,s as tn,y as yt,b as nn,w as rn,g as Ee,t as on,q as sn,n as sr,p as ir,i as ar}from"./label-BTdAT39L.js";/**
|
|
2
2
|
* @license lucide-react v1.39.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as zn,r as u,i as Fe,E as tt,aa as qt,k as se,ab as $e,g as Pe,ac as ke,ad as We,ae as on,af as lt,ag as Et,ah as Vo,ai as Un,aj as Wo,ak as rn,al as Kn,am as Dt,an as Yn,ao as En,l as Ct,X as Gn,d as de,V as Xn,e as pe,ap as qn,h as ze,Z as jo,W as Qn,m as it,Y as $o,j as Q,aq as zo,f as ut}from"./index-
|
|
1
|
+
import{c as zn,r as u,i as Fe,E as tt,aa as qt,k as se,ab as $e,g as Pe,ac as ke,ad as We,ae as on,af as lt,ag as Et,ah as Vo,ai as Un,aj as Wo,ak as rn,al as Kn,am as Dt,an as Yn,ao as En,l as Ct,X as Gn,d as de,V as Xn,e as pe,ap as qn,h as ze,Z as jo,W as Qn,m as it,Y as $o,j as Q,aq as zo,f as ut}from"./index-C6gyyLd5.js";import{C as Uo}from"./check-Bc_1fmPx.js";import{i as Je,Q as Qt,w as Be,S as Jn,U as Zn,V as Ko,W as ft,Y as Tt,Z as eo,_ as to,a as Te,$ as Yo,a0 as Mt,a1 as Go,a2 as Xo,T as Jt,a3 as Lt,a4 as qo,a5 as Zt,v as Re,a6 as Qo,a7 as Jo,a8 as Zo,a9 as Cn,aa as Ut,ab as Tn,ac as Ne,ad as mt,ae as er,af as Nt,ag as Ht,ah as no,ai as sn,aj as tr,ak as nr,al as or,am as rr,C as sr,O as ir,A as oo,an as cr,B as ar,ao as lr,ap as ur,aq as fr,ar as dr,as as pr,z as gr,at as mr,au as hr,av as xr,N as yr,R as vr,p as Rr,aw as ro,j as br,P as wr,l as Er,ax as so,m as Cr,n as Tr,ay as Mr,az as Or,aA as Sr,q as Pr,aB as Ir,F as Ar,r as kr,o as Fr,aC as Dr,aD as Lr,aE as Nr,aF as Hr,aG as _r,aH as Br,s as Vr,t as Wr,aI as Mn,aJ as On,aK as jr}from"./dialog-MC-TOvQV.js";import{t as cn,g as nt,c as ie,m as ct,o as Se,a as le,p as at,q as io,b as be,r as en,s as Ot,v as an,u as _t,w as $r,x as st,k as zr,y as Sn,i as Ur,z as Kr}from"./label-BTdAT39L.js";import{u as co,a as ao,C as Yr,b as Gr}from"./CompositeItem-Db_8iHSG.js";import{u as Xr}from"./useValueChanged-Dvr7PvAV.js";/**
|
|
2
2
|
* @license lucide-react v1.39.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|