@shumai-one/shumai 0.4.4 → 0.4.6
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/bin/{chunk-snhsjs4x.js → chunk-07jszkhj.js} +62 -62
- package/bin/chunk-0c67210c.js +1 -0
- package/bin/{chunk-kswvyqq1.js → chunk-0wvhahzh.js} +2 -2
- package/bin/chunk-161rxeq2.js +2 -0
- package/bin/{chunk-trveq4wg.js → chunk-1bgsphyz.js} +2 -2
- package/bin/{chunk-vap4k11j.js → chunk-1dqsf5qj.js} +6 -6
- package/bin/{chunk-zxk7q0zk.js → chunk-1jybg56e.js} +1 -1
- package/bin/chunk-1kt5dzjv.js +2 -0
- package/bin/{chunk-drepsbb4.js → chunk-1t51fp6n.js} +1 -1
- package/bin/{chunk-cbgq517y.js → chunk-2jrjwaqr.js} +2 -2
- package/bin/chunk-2qjfpmcf.js +2 -0
- package/bin/{chunk-wjyaezs7.js → chunk-2vzzd0q6.js} +1 -1
- package/bin/chunk-2yr5k567.js +2 -0
- package/bin/chunk-2z1pnt7h.js +2 -0
- package/bin/{chunk-0zv3bks2.js → chunk-3d5rm1d1.js} +1 -1
- package/bin/{chunk-w4ghe71n.js → chunk-3d9tfxp4.js} +1 -1
- package/bin/{chunk-0qjfahk9.js → chunk-3dgahs95.js} +1 -1
- package/bin/{chunk-dqxeztfa.js → chunk-3j5njrpr.js} +2 -2
- package/bin/{chunk-ryzz5fht.js → chunk-3n4224c0.js} +1 -1
- package/bin/{chunk-914bp49r.js → chunk-3tg39jx7.js} +3 -3
- package/bin/chunk-3vmapyk9.js +1 -0
- package/bin/{chunk-g3fpmyyn.js → chunk-46wfxyd7.js} +2 -2
- package/bin/{chunk-4hkkdm2q.js → chunk-47tn3vtg.js} +1 -1
- package/bin/{chunk-1zwajpwf.js → chunk-4syt6rn0.js} +3 -3
- package/bin/chunk-5kvc1gp2.js +1 -0
- package/bin/{chunk-xa18z1py.js → chunk-5vvvgjvz.js} +2 -2
- package/bin/{chunk-5nm2jvg5.js → chunk-6vxzkrsj.js} +11 -11
- package/bin/{chunk-ytdwk2fq.js → chunk-6y4xkcte.js} +2 -2
- package/bin/{chunk-fpc4p0j8.js → chunk-7e5z637e.js} +2 -2
- package/bin/chunk-7nvk7waw.js +1 -0
- package/bin/{chunk-rq0n0vcc.js → chunk-80qz30dc.js} +2 -2
- package/bin/chunk-886pnknh.js +3 -0
- package/bin/{chunk-6ghcj4a9.js → chunk-8cn7fx40.js} +1 -1
- package/bin/chunk-908pypkr.js +1 -0
- package/bin/chunk-952qwf17.js +2 -0
- package/bin/chunk-988casfy.js +1 -0
- package/bin/chunk-9a2tf0mh.js +2 -0
- package/bin/{chunk-nkdk229f.js → chunk-9d0thqcy.js} +1 -1
- package/bin/{chunk-s2k4qntr.js → chunk-9nvymwqj.js} +2 -2
- package/bin/{chunk-mz0yjra0.js → chunk-9trnkbtr.js} +4 -4
- package/bin/{chunk-t2hy6tj9.js → chunk-a4056d0r.js} +1 -1
- package/bin/{chunk-ze20rm02.js → chunk-a796sgcw.js} +4 -4
- package/bin/{chunk-kpgfqkp0.js → chunk-afnzb9ne.js} +2 -2
- package/bin/chunk-apfrw0wd.js +3 -0
- package/bin/{chunk-wndm3px3.js → chunk-axmd242s.js} +1 -1
- package/bin/{chunk-nr20tvnw.js → chunk-b3aqmcps.js} +2 -2
- package/bin/chunk-b6q287d1.js +2 -0
- package/bin/{chunk-j1tkmcae.js → chunk-b9hyc0a1.js} +2 -2
- package/bin/chunk-ba33nf0q.js +4 -0
- package/bin/chunk-batadmvr.js +2 -0
- package/bin/{chunk-1t167cvj.js → chunk-brwbhbmc.js} +7 -7
- package/bin/chunk-bvdvp192.js +1 -0
- package/bin/{chunk-fahk9h62.js → chunk-crja7whq.js} +2 -2
- package/bin/{chunk-98715kc3.js → chunk-d7fwggt6.js} +2 -2
- package/bin/chunk-db1msmdh.js +2 -0
- package/bin/{chunk-97f2af6d.js → chunk-dbw8c1jj.js} +5 -5
- package/bin/{chunk-7gmdnsdg.js → chunk-dj5a6kkh.js} +1 -1
- package/bin/chunk-dkx3pmdz.js +1 -0
- package/bin/{chunk-071x515q.js → chunk-dmvvt8va.js} +2 -2
- package/bin/{chunk-3tedzb2j.js → chunk-dpc11hpd.js} +9 -9
- package/bin/{chunk-ks8xzc95.js → chunk-dscq4a4k.js} +2 -2
- package/bin/{chunk-jmpb5633.js → chunk-dz076sh7.js} +1 -1
- package/bin/chunk-edqd8evk.js +2 -0
- package/bin/{chunk-0qaq0sp8.js → chunk-ehpfg3km.js} +2 -2
- package/bin/chunk-ey3h4sct.js +2 -0
- package/bin/{chunk-vm5fx7td.js → chunk-ga3pahzf.js} +1 -1
- package/bin/chunk-gc6m7agb.js +3 -0
- package/bin/{chunk-7bcxj1jd.js → chunk-gcjsw9yp.js} +1 -1
- package/bin/chunk-gqr5hxhj.js +2 -0
- package/bin/{chunk-jrjnqx78.js → chunk-gsfcpcye.js} +1 -1
- package/bin/chunk-h9mka9br.js +2 -0
- package/bin/chunk-hacyjx1s.js +1 -0
- package/bin/chunk-hd6dnnyg.js +2 -0
- package/bin/chunk-he5nvmqw.js +1 -0
- package/bin/{chunk-reyxk4bw.js → chunk-hnhdq2wd.js} +1 -1
- package/bin/{chunk-gt4csat6.js → chunk-hs2r9qaw.js} +2 -2
- package/bin/{chunk-fb40xxz3.js → chunk-hxyg5q2a.js} +2 -2
- package/bin/chunk-hyr1vtfp.js +1 -0
- package/bin/{chunk-zw86wnwe.js → chunk-j9ks8bd7.js} +2 -2
- package/bin/{chunk-1gvscz88.js → chunk-jg2v25d2.js} +2 -2
- package/bin/chunk-jh8q3885.js +211 -0
- package/bin/chunk-jzbrt2vk.js +1 -0
- package/bin/chunk-k6avge95.js +10 -0
- package/bin/{chunk-msfw3jmc.js → chunk-kg8eg9z3.js} +2 -2
- package/bin/chunk-kk42xhgz.js +1 -0
- package/bin/{chunk-3ttrhqy3.js → chunk-kmbjp5kp.js} +2 -2
- package/bin/{chunk-jgs8an3h.js → chunk-md5pcq46.js} +8 -8
- package/bin/{chunk-xarsrs08.js → chunk-mtb9fpj2.js} +1 -1
- package/bin/chunk-n3xjwszr.js +2 -0
- package/bin/chunk-nqym3zbs.js +1 -0
- package/bin/{chunk-579e4wv4.js → chunk-p75f5pgq.js} +2 -2
- package/bin/{chunk-hm0dkzed.js → chunk-pdh9bnyj.js} +2 -2
- package/bin/{chunk-rhvv1vvk.js → chunk-pgj2kjnn.js} +2 -2
- package/bin/{chunk-hmpwg5za.js → chunk-pvg3msgw.js} +8 -8
- package/bin/{chunk-4991gz3y.js → chunk-pwkby9h7.js} +6 -6
- package/bin/{chunk-fnmwksnb.js → chunk-qbqym9m6.js} +2 -2
- package/bin/{chunk-4wy87hwd.js → chunk-qgkbxw1k.js} +2 -2
- package/bin/{chunk-1j27fzy1.js → chunk-qs7855cz.js} +2 -2
- package/bin/{chunk-7jtmwt5a.js → chunk-radcwage.js} +2 -2
- package/bin/{chunk-gk2q9a3f.js → chunk-rmzcarv9.js} +2 -2
- package/bin/{chunk-s2fnfyn9.js → chunk-rp4pc6kz.js} +1 -1
- package/bin/{chunk-5adsx8x4.js → chunk-rsd164d9.js} +2 -2
- package/bin/{chunk-hk5rc6cd.js → chunk-s05cdax2.js} +4 -4
- package/bin/{chunk-pazjhrnf.js → chunk-sab7tjxw.js} +5 -5
- package/bin/chunk-sebbjvgv.css +1 -0
- package/bin/{chunk-bkr5zm4h.js → chunk-t350k3s1.js} +1 -1
- package/bin/{chunk-4v41a1r9.js → chunk-t7bvde99.js} +3 -3
- package/bin/chunk-t8gv2ekj.js +14 -0
- package/bin/chunk-teqprbd8.js +2 -0
- package/bin/chunk-tgr86ac4.js +2 -0
- package/bin/{chunk-5hg6kcfz.js → chunk-v8v8vdf7.js} +9 -9
- package/bin/chunk-vm5tn0zm.js +2 -0
- package/bin/chunk-vzj2j11x.js +2 -0
- package/bin/chunk-w1wxzqqb.js +2 -0
- package/bin/chunk-wmjp8dcm.js +1 -0
- package/bin/chunk-wy8dkyxj.js +1 -0
- package/bin/{chunk-a6gx7f5q.js → chunk-y1b3ck7m.js} +1 -1
- package/bin/{chunk-1xh34aew.js → chunk-y20sbaz5.js} +2 -2
- package/bin/{chunk-qsr1a0rp.js → chunk-y56yvezn.js} +1 -1
- package/bin/{chunk-9t8n2des.js → chunk-yfr0hzb7.js} +2 -2
- package/bin/chunk-ysv80zyb.js +5 -0
- package/bin/chunk-z08bqvkc.js +42 -0
- package/bin/{chunk-5tcdwep5.js → chunk-z6jpt0h6.js} +4 -4
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +605 -370
- package/package.json +7 -7
- package/prisma/migrations/20260913130237_add_asset_comment_asset_id_idx/migration.sql +2 -0
- package/prisma/migrations/20260914024424_add_asset_comment_reactions/migration.sql +22 -0
- package/prisma/migrations/20260914064432_limit_reaction_code_length/migration.sql +8 -0
- package/prisma/migrations/20260914092940_add_jpeg_preview_flags/migration.sql +5 -0
- package/prisma/schema.prisma +22 -0
- package/bin/chunk-0cmx7k4c.js +0 -1
- package/bin/chunk-16xax8kk.js +0 -1
- package/bin/chunk-2w5xqhjm.js +0 -1
- package/bin/chunk-3zkasqb8.js +0 -1
- package/bin/chunk-453ykvaw.js +0 -2
- package/bin/chunk-4mjywsj8.js +0 -3
- package/bin/chunk-5vzrpz50.js +0 -2
- package/bin/chunk-77fmkpdz.js +0 -10
- package/bin/chunk-7kjgvxqa.js +0 -2
- package/bin/chunk-7pw1550a.js +0 -2
- package/bin/chunk-7rhz2gze.js +0 -211
- package/bin/chunk-837fky18.js +0 -3
- package/bin/chunk-84as6x83.js +0 -1
- package/bin/chunk-8e28hcny.js +0 -2
- package/bin/chunk-9ccw540k.js +0 -2
- package/bin/chunk-9ybt6vbm.js +0 -1
- package/bin/chunk-avwgktxb.js +0 -2
- package/bin/chunk-d27mm390.js +0 -1
- package/bin/chunk-dj92fss9.js +0 -2
- package/bin/chunk-f6svp4dp.js +0 -2
- package/bin/chunk-fsyzs0tf.js +0 -1
- package/bin/chunk-fxecgp5k.js +0 -1
- package/bin/chunk-gc5sbfa5.js +0 -2
- package/bin/chunk-gdm6yfqq.js +0 -2
- package/bin/chunk-gye8gabk.js +0 -2
- package/bin/chunk-j2bvj2yn.js +0 -2
- package/bin/chunk-jffktpqg.js +0 -1
- package/bin/chunk-k2k9vjq6.js +0 -1
- package/bin/chunk-m9pr03kn.js +0 -2
- package/bin/chunk-mfn9qjm4.js +0 -2
- package/bin/chunk-nbdw8fen.js +0 -1
- package/bin/chunk-q806pqeh.js +0 -1
- package/bin/chunk-qka4mkmj.js +0 -2
- package/bin/chunk-rchsme43.js +0 -3
- package/bin/chunk-rqf7999q.js +0 -42
- package/bin/chunk-rssgmj7x.js +0 -2
- package/bin/chunk-t7nsgg5k.js +0 -4
- package/bin/chunk-tm7f32c7.js +0 -14
- package/bin/chunk-vy8gntez.js +0 -1
- package/bin/chunk-vyzptrea.js +0 -2
- package/bin/chunk-wdsf44hs.js +0 -2
- package/bin/chunk-x5jwwvs0.js +0 -1
- package/bin/chunk-x92cq59c.js +0 -1
- package/bin/chunk-xtf3c29c.css +0 -1
- package/bin/chunk-xx337zcw.js +0 -2
- package/bin/chunk-xz6713tj.js +0 -2
- package/bin/chunk-yfnem6se.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{I}from"./chunk-jh8q3885.js";var a=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],sn=I("sparkles",a);
|
|
2
|
+
export{sn};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{
|
|
2
|
+
import{pf}from"./chunk-1dqsf5qj.js";import{w}from"./chunk-qbqym9m6.js";var bi=w(function(d){var{SignatureV4:l,signatureV4aContainer:o}=pf(),r={CrtSignerV4:null},g="X-Amz-S3session-Token".toLowerCase();class a extends l{async signWithCredentials(e,i,n){let s=c(i);e.headers[g]=i.sessionToken;let t=this;return u(t,s),t.signRequest(e,n??{})}async presignWithCredentials(e,i,n){let s=c(i);return delete e.headers[g],e.headers["X-Amz-S3session-Token"]=i.sessionToken,e.query=e.query??{},e.query["X-Amz-S3session-Token"]=i.sessionToken,u(this,s),this.presign(e,n)}}function c(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function u(e,i){let n=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=n,Promise.resolve(i))}class h{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof r.CrtSignerV4==="function")return"crt";else if(typeof o.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new a(e),this.signerOptions=e}async sign(e,i={}){if(i.signingRegion==="*")return this.getSigv4aSigner().sign(e,i);return this.sigv4Signer.sign(e,i)}async signWithCredentials(e,i,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),t=r.CrtSignerV4;if(t&&s instanceof t)return s.signWithCredentials(e,i,n);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,i,n)}async presign(e,i={}){if(i.signingRegion==="*"){let n=this.getSigv4aSigner(),s=r.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,i);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,i)}async presignWithCredentials(e,i,n={}){if(n.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,i,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=r.CrtSignerV4,i=o.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!i)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(i&&typeof i==="function")this.sigv4aSigner=new i({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!i||typeof i!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new i({...this.signerOptions})}}return this.sigv4aSigner}}d.SignatureV4MultiRegion=h;d.SignatureV4SignWithCredentials=a;d.signatureV4CrtContainer=r});
|
|
3
|
+
export{bi};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h,D,u,S,Z,t,o,ft,Me,Ue,A,F,Ya,jn,to,Ce,Ie,Te,S0,x_,Cf,Oc,hx,gn,lt,Nt,yr,$t,wt,Wp}from"./chunk-jh8q3885.js";import{Er}from"./chunk-ehpfg3km.js";import{tr}from"./chunk-2z1pnt7h.js";import{Rn,Nn,Dn,br,xt,_t}from"./chunk-b6q287d1.js";S();var k=(a)=>{if(!a)return"??";return a.split(" ").map((r)=>r[0]).slice(0,2).join("").toUpperCase()};function T(){let{projectId:a}=j.useParams(),{teamId:r,ensureTeamIdForProject:n}=lt(),g=Me();h(()=>{n(a)},[a,n]);let{data:i}=tr(Wp(a)),d=i?.rootFolder,[v,N]=u(240),{fileListLeftSidebarCollapsed:m,setFileListLeftSidebarCollapsed:y}=$t(),{data:c,isLoading:w,fetchNextPage:f,hasNextPage:p,isFetchingNextPage:l}=ft({queryKey:["collections",a],queryFn:async({pageParam:e})=>{let s=await A.api.projects[":projectId"].collections.$get({param:{projectId:a},query:{first:"20",after:e}});if(!s.ok)throw Error("Failed to fetch collections");return await s.json()},initialPageParam:"",getNextPageParam:(e)=>e.pageInfo?.cursor||void 0,enabled:!!a}),{ref:I,inView:b}=Nt();h(()=>{if(b&&p&&!l)f()},[b,p,l,f]);let x=D(()=>c?.pages.flatMap((e)=>e.data)||[],[c]);if(!r||!d||!i)return t(wt,{});return t("div",{className:"flex flex-1 flex-col bg-background min-h-0",children:o("div",{className:"flex flex-1 overflow-hidden relative",children:[!m&&t("div",{className:"md:hidden fixed inset-0 bg-black/50 z-40",onClick:()=>y(!0)}),!m&&o(Z,{children:[t("div",{className:"bg-background",style:{width:v},children:t(yr,{teamId:r,projectId:a,projectName:i.name??"",rootFolderId:d})}),t(Er,{onResize:(e)=>{N((s)=>Math.max(180,Math.min(400,s+e)))},className:"hidden md:block"})]}),o("div",{className:"flex-1 flex flex-col min-h-0 bg-card overflow-hidden",children:[t("header",{className:"h-14 border-b flex items-center justify-between px-6 shrink-0 bg-background/50 backdrop-blur-sm sticky top-0 z-10",children:o("div",{className:"flex items-center gap-2",children:[t(Ya,{className:"h-5 w-5 text-primary"}),t("h1",{className:"font-bold text-lg text-foreground",children:S0()})]})}),t("div",{className:"flex-1 overflow-y-auto p-6",children:w?t("div",{className:"flex justify-center items-center h-64",children:t("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):x.length===0?o("div",{className:"flex flex-col items-center justify-center h-64 text-muted-foreground gap-3",children:[t(to,{className:"h-10 w-10 text-muted-foreground/50"}),t("p",{children:hx()})]}):o("div",{className:"border border-border rounded-xl bg-background overflow-hidden shadow-xs",children:[o(Rn,{children:[t(Nn,{children:o(br,{className:"hover:bg-transparent bg-muted/20",children:[t(xt,{className:"font-semibold px-4 py-3",children:x_()}),t(xt,{className:"font-semibold px-4 py-3",children:Oc()}),t(xt,{className:"font-semibold px-4 py-3 w-[200px]",children:Cf()})]})}),t(Dn,{children:x.map((e)=>o(br,{className:"hover:bg-muted/10 transition-colors cursor-pointer",onClick:()=>g({to:"/projects/$projectId/collections/$collectionId",params:{projectId:a,collectionId:e.id}}),children:[t(_t,{className:"font-medium px-4 py-3.5",children:o("div",{className:"flex items-center gap-2",children:[t(Ya,{className:"h-4 w-4 text-primary shrink-0"}),t("span",{className:"text-foreground font-semibold hover:underline",children:e.name})]})}),t(_t,{className:"px-4 py-3.5",children:o("div",{className:"flex items-center gap-2",children:[o(Ce,{className:"h-6 w-6",children:[e.creator?.image&&t(Ie,{src:e.creator.image,alt:e.creator.name,className:"object-cover"}),t(Te,{className:"text-[10px]",children:k(e.creator?.name)})]}),t("span",{className:"text-sm font-medium text-foreground truncate max-w-[200px]",children:e.creator?.name||gn()})]})}),t(_t,{className:"px-4 py-3.5 text-muted-foreground text-sm",children:o("div",{className:"flex items-center gap-2",children:[t(jn,{className:"h-3.5 w-3.5 text-muted-foreground/70"}),t("span",{children:new Date(e.createdAt).toLocaleDateString()})]})})]},e.id))})]}),t("div",{ref:I,className:"h-10 w-full flex items-center justify-center",children:l&&t(F,{className:"h-6 w-6 animate-spin text-primary"})})]})})]})]})})}var j=Ue("/projects/$projectId/collections/")({component:T});export{j as Route};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
async function
|
|
2
|
-
export{
|
|
1
|
+
async function co(t){if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText==="function")try{return await navigator.clipboard.writeText(t),!0}catch{}try{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="2em",e.style.height="2em",e.style.padding="0",e.style.border="none",e.style.outline="none",e.style.boxShadow="none",e.style.background="transparent",e.style.opacity="0",document.body.appendChild(e),e.focus(),e.select();let o=document.execCommand("copy");return document.body.removeChild(e),o}catch(e){return console.error("Failed to copy text to clipboard:",e),!1}}
|
|
2
|
+
export{co};
|