git-truck 3.2.0 → 3.2.1

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.
@@ -1 +1 @@
1
- window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-Ci1gLbyI.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/react-dom-B9ui1jR3.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-CGqKHKfX.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/react-dom-B9ui1jR3.js","/assets/dist-Bpk5WHYg.js","/assets/clear-cache-BJQQzFka.js"],"css":["/assets/root-BK0u4vgl.css"]},"routes/[.]well-known.$":{"id":"routes/[.]well-known.$","parentId":"root","path":".well-known/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_._well-known._-8QUD84tm.js","imports":[],"css":[]},"routes/clear-cache":{"id":"routes/clear-cache","parentId":"root","path":"clear-cache","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/clear-cache-DkN7P69Z.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js","/assets/clear-cache-BJQQzFka.js"],"css":[]},"routes/commitcount":{"id":"routes/commitcount","parentId":"root","path":"commitcount","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/commitcount-B_3CeIvr.js","imports":[],"css":[]},"routes/commits":{"id":"routes/commits","parentId":"root","path":"commits","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/commits-DDIAHyHU.js","imports":[],"css":[]},"routes/_index":{"id":"routes/_index","parentId":"root","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_index-VLoUE117.js","imports":[],"css":[]},"routes/browse":{"id":"routes/browse","parentId":"root","path":"browse","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/browse-Bx9O5Mvl.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-B9wBPRaK.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js"],"css":[]},"routes/$path":{"id":"routes/$path","parentId":"root","path":":path","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_path-DzSNgPJP.js","imports":[],"css":[]},"routes/view":{"id":"routes/view","parentId":"root","path":"view","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view-mmd0Q4B8.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-B9wBPRaK.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js"],"css":[]},"routes/view.progress":{"id":"routes/view.progress","parentId":"routes/view","path":"progress","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/view.progress-CEmcNaLe.js","imports":[],"css":[]},"routes/view.commits":{"id":"routes/view.commits","parentId":"routes/view","path":"commits","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view.commits-b-k-A7BT.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-B9wBPRaK.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js","/assets/RepoTabs-36qUc-RT.js"],"css":[]},"routes/view.details":{"id":"routes/view.details","parentId":"routes/view","path":"details","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view.details-B7LCPu46.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-B9wBPRaK.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js","/assets/RepoTabs-36qUc-RT.js"],"css":[]},"routes/view._index":{"id":"routes/view._index","parentId":"routes/view","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view._index-jmCCN9mA.js","imports":["/assets/jsx-runtime-s_YwNCZb.js"],"css":[]},"routes/ui":{"id":"routes/ui","parentId":"root","path":"ui","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/ui-Bw635ygf.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-B9wBPRaK.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js"],"css":[]},"routes/$":{"id":"routes/$","parentId":"root","path":"*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_-CT17qCl3.js","imports":[],"css":[]}},"url":"/assets/manifest-601d0239.js","version":"601d0239"};
1
+ window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-Ci1gLbyI.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/react-dom-B9ui1jR3.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-CGqKHKfX.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/react-dom-B9ui1jR3.js","/assets/dist-Bpk5WHYg.js","/assets/clear-cache-BJQQzFka.js"],"css":["/assets/root-BK0u4vgl.css"]},"routes/[.]well-known.$":{"id":"routes/[.]well-known.$","parentId":"root","path":".well-known/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_._well-known._-8QUD84tm.js","imports":[],"css":[]},"routes/clear-cache":{"id":"routes/clear-cache","parentId":"root","path":"clear-cache","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/clear-cache-DkN7P69Z.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js","/assets/clear-cache-BJQQzFka.js"],"css":[]},"routes/commitcount":{"id":"routes/commitcount","parentId":"root","path":"commitcount","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/commitcount-B_3CeIvr.js","imports":[],"css":[]},"routes/commits":{"id":"routes/commits","parentId":"root","path":"commits","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/commits-DDIAHyHU.js","imports":[],"css":[]},"routes/_index":{"id":"routes/_index","parentId":"root","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_index-VLoUE117.js","imports":[],"css":[]},"routes/browse":{"id":"routes/browse","parentId":"root","path":"browse","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/browse-Bvc2-R26.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-n3hSveGT.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js"],"css":[]},"routes/$path":{"id":"routes/$path","parentId":"root","path":":path","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_path-DzSNgPJP.js","imports":[],"css":[]},"routes/view":{"id":"routes/view","parentId":"root","path":"view","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view-PpNM0R4w.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-n3hSveGT.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js"],"css":[]},"routes/view.progress":{"id":"routes/view.progress","parentId":"routes/view","path":"progress","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/view.progress-CEmcNaLe.js","imports":[],"css":[]},"routes/view.commits":{"id":"routes/view.commits","parentId":"routes/view","path":"commits","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view.commits-CUFKse0G.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-n3hSveGT.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js","/assets/RepoTabs-CxO-avi8.js"],"css":[]},"routes/view.details":{"id":"routes/view.details","parentId":"routes/view","path":"details","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view.details-12HQVV2q.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-n3hSveGT.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js","/assets/RepoTabs-CxO-avi8.js"],"css":[]},"routes/view._index":{"id":"routes/view._index","parentId":"routes/view","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view._index-jmCCN9mA.js","imports":["/assets/jsx-runtime-s_YwNCZb.js"],"css":[]},"routes/ui":{"id":"routes/ui","parentId":"root","path":"ui","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/ui-Dwu6e1gT.js","imports":["/assets/jsx-runtime-s_YwNCZb.js","/assets/browse-n3hSveGT.js","/assets/dist-Bpk5WHYg.js","/assets/react-dom-B9ui1jR3.js"],"css":[]},"routes/$":{"id":"routes/$","parentId":"root","path":"*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_-CT17qCl3.js","imports":[],"css":[]}},"url":"/assets/manifest-1770f4ad.js","version":"1770f4ad"};
@@ -1 +1 @@
1
- import{H as e,W as t,t as n,z as r}from"./jsx-runtime-s_YwNCZb.js";import"./react-dom-B9ui1jR3.js";import{Dn as i,Un as a,V as o,g as s,rn as c,vn as l}from"./dist-Bpk5WHYg.js";import{C as u,S as d,_ as f,b as p,c as m,d as h,f as g,g as _,h as v,p as y,r as b,u as x,v as S,x as C,y as w}from"./browse-B9wBPRaK.js";var T=t(e(),1),E=t(n(),1),D={repo:{repositoryName:`mock-repo`,repositoryPath:`mock/path`,parentDirPath:`mock`,parentDirName:`mock`,status:`Success`,isAnalyzed:!0,refs:{Branches:{},Tags:{}},reasons:[],analyzedHeads:{},data:{cached:!1,interfaceVersion:17,hiddenFiles:[],repo:`mock-repo`,repositoryPath:`mock/path`,branch:`main`,commit:{type:`commit`,hash:``,tree:{type:`tree`,name:`root`,path:``,hash:``,children:[]},parent:``,parent2:null,author:{name:``,email:``,timestamp:0,timezone:``},committer:{name:``,email:``,timestamp:0,timezone:``},message:``,description:``,coauthors:[],fileCount:0},authors:[],authorsUnion:[],currentVersion:``,lastRunEpoch:0,commits:{}},currentHead:`main`,lastChanged:0},databaseInfo:{dominantAuthors:{},commitCounts:{},lastChanged:{},authorCounts:{},maxCommitCount:0,minCommitCount:0,newestChangeDate:0,oldestChangeDate:0,authors:[],authorUnions:[],fileTree:{type:`tree`,name:`root`,path:``,hash:``,children:[]},hiddenFiles:[],lastRunInfo:{time:0,hash:``},fileCount:0,repo:`mock-repo`,branch:`main`,timerange:[0,0],colorSeed:null,authorColors:{},commitCountPerTimeInterval:[],commitCountPerTimeIntervalUnit:`day`,selectedRange:[0,0],analyzedRepos:[],contribSumPerFile:{},maxMinContribCounts:{max:0,min:0},commitCount:0}};function O({handleType:e=`round`}){let t=[0,100],[n,r]=(0,T.useState)([20,80]),i=e=>{r([e[0],e[1]])};return(0,E.jsxs)(`div`,{className:`space-y-4`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs tracking-wide text-gray-500 uppercase dark:text-gray-400`,children:`Selected window`}),(0,E.jsxs)(`p`,{className:`text-lg font-semibold`,children:[n[0],`% – `,n[1],`%`]})]}),(0,E.jsxs)(C,{className:`relative`,mode:2,step:1,domain:t,values:n,onUpdate:i,onChange:i,children:[(0,E.jsx)(p,{children:_}),(0,E.jsx)(w,{children:({handles:n,getHandleProps:r})=>(0,E.jsx)(`div`,{children:n.map((n,i)=>(0,E.jsx)(v,{handle:n,domain:t,getHandleProps:r,handleType:e,title:`Drag to adjust the ${i===0?`start`:`end`} threshold`},n.id))})}),(0,E.jsx)(d,{left:!1,right:!1,children:({tracks:t,getTrackProps:n})=>(0,E.jsx)(`div`,{children:t.map(({id:t,...r})=>(0,E.jsx)(S,{trackType:e,...r,getTrackProps:n,backgroundColor:`#7aa0c4`},t))})})]}),(0,E.jsxs)(`div`,{className:`flex justify-between text-sm font-medium`,children:[(0,E.jsxs)(`span`,{children:[`Start: `,n[0],`%`]}),(0,E.jsxs)(`span`,{children:[`End: `,n[1],`%`]})]}),(0,E.jsx)(f,{below:!0,count:5,tickToLabel:e=>`${Math.round(e*100)}%`})]})}var k=r(function(){let[e,t]=(0,T.useState)(!1);return(0,E.jsx)(g,{data:D,children:(0,E.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-8 p-2`,children:[(0,E.jsx)(`h1`,{className:`mb-4 text-2xl font-bold`,children:`UI Components`}),(0,E.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Default Card`}),(0,E.jsx)(`p`,{className:`text-sm`,children:`This is a simple card with some text content.`})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsxs)(`div`,{className:`card__header`,children:[(0,E.jsx)(`span`,{className:`icon`,children:`🚚`}),(0,E.jsx)(`h2`,{className:`card__title`,children:`Card with Header`})]}),(0,E.jsx)(`div`,{className:`card__content`,children:(0,E.jsx)(`p`,{className:`text-sm`,children:`Card with header, subtitle, and content.`})})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Buttons`}),(0,E.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,E.jsx)(`button`,{className:`btn`,children:`Default`}),(0,E.jsx)(`button`,{className:`btn btn--text`,children:`Default text`}),(0,E.jsx)(`button`,{className:`btn btn--primary`,children:`Primary`}),(0,E.jsx)(`button`,{className:`btn btn--primary btn--outlined`,children:`Primary Outlined`}),(0,E.jsx)(`button`,{className:`btn btn--primary btn--text`,children:`Primary Text`}),(0,E.jsx)(`button`,{className:`btn btn--danger`,children:`Danger`}),(0,E.jsx)(`button`,{className:`btn btn--danger btn--outlined`,children:`Danger Outlined`}),(0,E.jsx)(`button`,{className:`btn btn--danger btn--text`,children:`Danger Text`}),(0,E.jsx)(`button`,{className:`btn btn--icon`,children:(0,E.jsx)(a,{path:i,size:`1.25em`})}),(0,E.jsx)(`button`,{className:`btn btn--icon btn--primary`,children:(0,E.jsx)(a,{path:c,size:`1.25em`})}),(0,E.jsx)(`button`,{className:`btn btn--icon btn--outlined`,children:(0,E.jsx)(a,{path:l,size:`1.25em`})}),(0,E.jsxs)(`button`,{className:`btn btn--hover-swap`,children:[(0,E.jsx)(`span`,{children:`Hover me`}),(0,E.jsx)(`span`,{className:`hover-swap`,children:`🎉`})]}),(0,E.jsx)(o,{open:!1}),(0,E.jsx)(o,{open:!0}),(0,E.jsxs)(`button`,{className:`btn btn--icon`,children:[(0,E.jsx)(a,{path:i,size:`1.25em`}),(0,E.jsx)(`span`,{className:`badge`,children:`13`})]})]})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Inputs & Labels`}),(0,E.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,E.jsx)(`label`,{className:`label`,htmlFor:`input1`,children:`Label`}),(0,E.jsx)(`input`,{className:`input`,id:`input1`,placeholder:`Type here...`}),(0,E.jsx)(`label`,{className:`label`,htmlFor:`select1`,children:`Select`}),(0,E.jsxs)(`select`,{className:`input`,id:`select1`,children:[(0,E.jsx)(`option`,{children:`Option 1`}),(0,E.jsx)(`option`,{children:`Option 2`})]}),(0,E.jsx)(`label`,{className:`label`,htmlFor:`revisionSelect`,children:`Revision Select`}),(0,E.jsx)(m,{headGroups:{Branches:{main:`abcdef`},Tags:{}},disabled:!1,analyzedBranches:[],className:`input`})]})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`LoadingIndicator`}),(0,E.jsx)(y,{loadingText:`Loading something...`,showProgress:!1})]}),(0,E.jsx)(`div`,{className:`card`,children:(0,E.jsx)(s,{installedVersion:`1.0.0`,latestVersion:`1.0.0`})}),(0,E.jsx)(`div`,{className:`card`,children:(0,E.jsx)(s,{installedVersion:`1.0.0`,latestVersion:`1.0.1`})}),(0,E.jsx)(`div`,{className:`card`,children:(0,E.jsx)(s,{installedVersion:`0.0.0-98822df`,latestVersion:`1.0.1`})}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Slider, round handles`}),(0,E.jsx)(`p`,{className:`text-sm`,children:`Demonstrates the same rail, handles, and tracks that power the in-app time range picker.`}),(0,E.jsx)(O,{handleType:`round`})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Slider, qquare Handles`}),(0,E.jsx)(`p`,{className:`text-sm`,children:`Same range selector with the column-style handles used in tighter layouts.`}),(0,E.jsx)(O,{handleType:`square`})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`IconRadioGroup`}),(()=>(0,E.jsx)(u,{ariaLabel:`Select demo option`,group:{A:`Alpha`,B:`Beta`,C:`Gamma`},defaultValue:`A`,iconMap:{A:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`,B:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z`,C:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z`},onChange:()=>{}}))(),(()=>(0,E.jsx)(u,{large:!0,ariaLabel:`Select demo option large`,group:{A:`Alpha`,B:`Beta`,C:`Gamma`},defaultValue:`A`,iconMap:{A:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`,B:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z`,C:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z`},onChange:()=>{}}))()]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Breadcrumb`}),(0,E.jsx)(b,{})]}),(0,E.jsx)(`div`,{className:`card relative`,children:(0,E.jsx)(h,{})}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Tooltip (Demo)`}),(0,E.jsxs)(`div`,{className:`flex flex-col items-start gap-2 p-4`,children:[(0,E.jsx)(`span`,{children:`Hover over the button to show tooltip:`}),(0,E.jsxs)(`div`,{className:``,children:[(0,E.jsxs)(`button`,{className:`btn btn--icon`,onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,E.jsx)(`span`,{className:`icon`,children:`🛈`}),` Hover me`]}),e&&(0,E.jsx)(x,{hoveredObject:{type:`blob`,name:`demo.txt`,path:`src/demo.txt`,hash:`abc123`,sizeInBytes:42}})]})]})]})]})]})})});export{k as default};
1
+ import{H as e,W as t,t as n,z as r}from"./jsx-runtime-s_YwNCZb.js";import"./react-dom-B9ui1jR3.js";import{Dn as i,Un as a,V as o,g as s,rn as c,vn as l}from"./dist-Bpk5WHYg.js";import{C as u,S as d,_ as f,b as p,c as m,d as h,f as g,g as _,h as v,p as y,r as b,u as x,v as S,x as C,y as w}from"./browse-n3hSveGT.js";var T=t(e(),1),E=t(n(),1),D={repo:{repositoryName:`mock-repo`,repositoryPath:`mock/path`,parentDirPath:`mock`,parentDirName:`mock`,status:`Success`,isAnalyzed:!0,refs:{Branches:{},Tags:{}},reasons:[],analyzedHeads:{},data:{cached:!1,interfaceVersion:17,hiddenFiles:[],repo:`mock-repo`,repositoryPath:`mock/path`,branch:`main`,commit:{type:`commit`,hash:``,tree:{type:`tree`,name:`root`,path:``,hash:``,children:[]},parent:``,parent2:null,author:{name:``,email:``,timestamp:0,timezone:``},committer:{name:``,email:``,timestamp:0,timezone:``},message:``,description:``,coauthors:[],fileCount:0},authors:[],authorsUnion:[],currentVersion:``,lastRunEpoch:0,commits:{}},currentHead:`main`,lastChanged:0},databaseInfo:{dominantAuthors:{},commitCounts:{},lastChanged:{},authorCounts:{},maxCommitCount:0,minCommitCount:0,newestChangeDate:0,oldestChangeDate:0,authors:[],authorUnions:[],fileTree:{type:`tree`,name:`root`,path:``,hash:``,children:[]},hiddenFiles:[],lastRunInfo:{time:0,hash:``},fileCount:0,repo:`mock-repo`,branch:`main`,timerange:[0,0],colorSeed:null,authorColors:{},commitCountPerTimeInterval:[],commitCountPerTimeIntervalUnit:`day`,selectedRange:[0,0],analyzedRepos:[],contribSumPerFile:{},maxMinContribCounts:{max:0,min:0},commitCount:0}};function O({handleType:e=`round`}){let t=[0,100],[n,r]=(0,T.useState)([20,80]),i=e=>{r([e[0],e[1]])};return(0,E.jsxs)(`div`,{className:`space-y-4`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-xs tracking-wide text-gray-500 uppercase dark:text-gray-400`,children:`Selected window`}),(0,E.jsxs)(`p`,{className:`text-lg font-semibold`,children:[n[0],`% – `,n[1],`%`]})]}),(0,E.jsxs)(C,{className:`relative`,mode:2,step:1,domain:t,values:n,onUpdate:i,onChange:i,children:[(0,E.jsx)(p,{children:_}),(0,E.jsx)(w,{children:({handles:n,getHandleProps:r})=>(0,E.jsx)(`div`,{children:n.map((n,i)=>(0,E.jsx)(v,{handle:n,domain:t,getHandleProps:r,handleType:e,title:`Drag to adjust the ${i===0?`start`:`end`} threshold`},n.id))})}),(0,E.jsx)(d,{left:!1,right:!1,children:({tracks:t,getTrackProps:n})=>(0,E.jsx)(`div`,{children:t.map(({id:t,...r})=>(0,E.jsx)(S,{trackType:e,...r,getTrackProps:n,backgroundColor:`#7aa0c4`},t))})})]}),(0,E.jsxs)(`div`,{className:`flex justify-between text-sm font-medium`,children:[(0,E.jsxs)(`span`,{children:[`Start: `,n[0],`%`]}),(0,E.jsxs)(`span`,{children:[`End: `,n[1],`%`]})]}),(0,E.jsx)(f,{below:!0,count:5,tickToLabel:e=>`${Math.round(e*100)}%`})]})}var k=r(function(){let[e,t]=(0,T.useState)(!1);return(0,E.jsx)(g,{data:D,children:(0,E.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-8 p-2`,children:[(0,E.jsx)(`h1`,{className:`mb-4 text-2xl font-bold`,children:`UI Components`}),(0,E.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Default Card`}),(0,E.jsx)(`p`,{className:`text-sm`,children:`This is a simple card with some text content.`})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsxs)(`div`,{className:`card__header`,children:[(0,E.jsx)(`span`,{className:`icon`,children:`🚚`}),(0,E.jsx)(`h2`,{className:`card__title`,children:`Card with Header`})]}),(0,E.jsx)(`div`,{className:`card__content`,children:(0,E.jsx)(`p`,{className:`text-sm`,children:`Card with header, subtitle, and content.`})})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Buttons`}),(0,E.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,E.jsx)(`button`,{className:`btn`,children:`Default`}),(0,E.jsx)(`button`,{className:`btn btn--text`,children:`Default text`}),(0,E.jsx)(`button`,{className:`btn btn--primary`,children:`Primary`}),(0,E.jsx)(`button`,{className:`btn btn--primary btn--outlined`,children:`Primary Outlined`}),(0,E.jsx)(`button`,{className:`btn btn--primary btn--text`,children:`Primary Text`}),(0,E.jsx)(`button`,{className:`btn btn--danger`,children:`Danger`}),(0,E.jsx)(`button`,{className:`btn btn--danger btn--outlined`,children:`Danger Outlined`}),(0,E.jsx)(`button`,{className:`btn btn--danger btn--text`,children:`Danger Text`}),(0,E.jsx)(`button`,{className:`btn btn--icon`,children:(0,E.jsx)(a,{path:i,size:`1.25em`})}),(0,E.jsx)(`button`,{className:`btn btn--icon btn--primary`,children:(0,E.jsx)(a,{path:c,size:`1.25em`})}),(0,E.jsx)(`button`,{className:`btn btn--icon btn--outlined`,children:(0,E.jsx)(a,{path:l,size:`1.25em`})}),(0,E.jsxs)(`button`,{className:`btn btn--hover-swap`,children:[(0,E.jsx)(`span`,{children:`Hover me`}),(0,E.jsx)(`span`,{className:`hover-swap`,children:`🎉`})]}),(0,E.jsx)(o,{open:!1}),(0,E.jsx)(o,{open:!0}),(0,E.jsxs)(`button`,{className:`btn btn--icon`,children:[(0,E.jsx)(a,{path:i,size:`1.25em`}),(0,E.jsx)(`span`,{className:`badge`,children:`13`})]})]})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Inputs & Labels`}),(0,E.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,E.jsx)(`label`,{className:`label`,htmlFor:`input1`,children:`Label`}),(0,E.jsx)(`input`,{className:`input`,id:`input1`,placeholder:`Type here...`}),(0,E.jsx)(`label`,{className:`label`,htmlFor:`select1`,children:`Select`}),(0,E.jsxs)(`select`,{className:`input`,id:`select1`,children:[(0,E.jsx)(`option`,{children:`Option 1`}),(0,E.jsx)(`option`,{children:`Option 2`})]}),(0,E.jsx)(`label`,{className:`label`,htmlFor:`revisionSelect`,children:`Revision Select`}),(0,E.jsx)(m,{headGroups:{Branches:{main:`abcdef`},Tags:{}},disabled:!1,analyzedBranches:[],className:`input`})]})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`LoadingIndicator`}),(0,E.jsx)(y,{loadingText:`Loading something...`,showProgress:!1})]}),(0,E.jsx)(`div`,{className:`card`,children:(0,E.jsx)(s,{installedVersion:`1.0.0`,latestVersion:`1.0.0`})}),(0,E.jsx)(`div`,{className:`card`,children:(0,E.jsx)(s,{installedVersion:`1.0.0`,latestVersion:`1.0.1`})}),(0,E.jsx)(`div`,{className:`card`,children:(0,E.jsx)(s,{installedVersion:`0.0.0-98822df`,latestVersion:`1.0.1`})}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Slider, round handles`}),(0,E.jsx)(`p`,{className:`text-sm`,children:`Demonstrates the same rail, handles, and tracks that power the in-app time range picker.`}),(0,E.jsx)(O,{handleType:`round`})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Slider, qquare Handles`}),(0,E.jsx)(`p`,{className:`text-sm`,children:`Same range selector with the column-style handles used in tighter layouts.`}),(0,E.jsx)(O,{handleType:`square`})]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`IconRadioGroup`}),(()=>(0,E.jsx)(u,{ariaLabel:`Select demo option`,group:{A:`Alpha`,B:`Beta`,C:`Gamma`},defaultValue:`A`,iconMap:{A:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`,B:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z`,C:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z`},onChange:()=>{}}))(),(()=>(0,E.jsx)(u,{large:!0,ariaLabel:`Select demo option large`,group:{A:`Alpha`,B:`Beta`,C:`Gamma`},defaultValue:`A`,iconMap:{A:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`,B:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z`,C:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z`},onChange:()=>{}}))()]}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Breadcrumb`}),(0,E.jsx)(b,{})]}),(0,E.jsx)(`div`,{className:`card relative`,children:(0,E.jsx)(h,{})}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{className:`card__title`,children:`Tooltip (Demo)`}),(0,E.jsxs)(`div`,{className:`flex flex-col items-start gap-2 p-4`,children:[(0,E.jsx)(`span`,{children:`Hover over the button to show tooltip:`}),(0,E.jsxs)(`div`,{className:``,children:[(0,E.jsxs)(`button`,{className:`btn btn--icon`,onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,E.jsx)(`span`,{className:`icon`,children:`🛈`}),` Hover me`]}),e&&(0,E.jsx)(x,{hoveredObject:{type:`blob`,name:`demo.txt`,path:`src/demo.txt`,hash:`abc123`,sizeInBytes:42}})]})]})]})]})]})})});export{k as default};
@@ -1 +1 @@
1
- import"./jsx-runtime-s_YwNCZb.js";import"./react-dom-B9ui1jR3.js";import"./dist-Bpk5WHYg.js";import{i as e,s as t}from"./browse-B9wBPRaK.js";export{t as default,e as meta};
1
+ import"./jsx-runtime-s_YwNCZb.js";import"./react-dom-B9ui1jR3.js";import"./dist-Bpk5WHYg.js";import{i as e,s as t}from"./browse-n3hSveGT.js";export{t as default,e as meta};
@@ -1 +1 @@
1
- import{A as e,H as t,L as n,P as r,W as i,j as a,n as o,t as s,z as c}from"./jsx-runtime-s_YwNCZb.js";import"./react-dom-B9ui1jR3.js";import{B as l,C as u,It as d,_t as f,ht as p}from"./dist-Bpk5WHYg.js";import{w as m}from"./browse-B9wBPRaK.js";import{t as h}from"./RepoTabs-36qUc-RT.js";var g=i(t()),_=i(s());function v(e){let[,t]=l();return e.items.map(e=>(0,_.jsx)(x,{authorColor:t.get(e.author)??`grey`,value:e},e.hash+`--itemContentAccordion`))}function y(e){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`div`,{className:`flex grow overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:e.keyString}),(0,_.jsx)(`p`,{className:`text-sm break-all text-ellipsis`,children:e.value})]})}function b(e){return(0,_.jsx)(`div`,{className:`max-h-64 overflow-auto`,children:(0,_.jsx)(`div`,{className:`grid max-w-lg grid-cols-[auto_auto_1fr] gap-x-3 gap-y-1`,children:e.filechanges.map(e=>(0,_.jsxs)(g.Fragment,{children:[(0,_.jsxs)(`div`,{className:`flex grow overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre text-green-600`,children:[`+`,e.insertions]}),(0,_.jsxs)(`div`,{className:`flex grow overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre text-red-600`,children:[`-`,e.deletions]}),(0,_.jsx)(`div`,{className:`grow overflow-hidden text-ellipsis whitespace-nowrap`,children:e.path})]},e.path))})})}function x(e){return(0,_.jsxs)(`div`,{title:`By: ${e.value.author}`,className:`flex items-center gap-2 overflow-hidden text-ellipsis`,children:[(0,_.jsx)(u,{className:`ml-1`,dotColor:e.authorColor,authorColorToChange:e.value.author}),(0,_.jsxs)(d,{positions:[`left`,`top`,`bottom`,`right`],popoverTitle:`Commit Details`,trigger:({onClick:t})=>(0,_.jsx)(`button`,{className:`cursor-pointer truncate font-bold opacity-80 hover:opacity-70`,onClick:t,children:e.value.message}),children:[(0,_.jsxs)(`div`,{className:`grid max-w-lg grid-cols-[auto_1fr] gap-x-3 gap-y-1`,children:[(0,_.jsx)(y,{keyString:`Hash`,value:e.value.hash}),(0,_.jsx)(y,{keyString:`Author`,value:e.value.author}),e.value.committertime===e.value.authortime?(0,_.jsx)(y,{keyString:`Date`,value:`${f(e.value.committertime*1e3)} (${p(e.value.committertime)})`}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(y,{keyString:`Date committed`,value:`${f(e.value.committertime*1e3)} (${p(e.value.committertime)})`}),(0,_.jsx)(y,{keyString:`Date authored`,value:`${f(e.value.authortime*1e3)} (${p(e.value.authortime)})`})]}),(0,_.jsx)(y,{keyString:`Message`,value:e.value.message}),(0,_.jsx)(`div`,{className:`flex grow overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Body`}),(0,_.jsx)(`div`,{className:`max-h-64 overflow-auto`,children:(0,_.jsx)(`p`,{className:`text-sm break-all text-ellipsis`,children:e.value.body.length>0?e.value.body:`<none>`})}),(0,_.jsx)(y,{keyString:`File changes`,value:e.value.fileChanges.length+` files (+`+e.value.fileChanges.reduce((e,t)=>e+t.insertions,0)+`, -`+e.value.fileChanges.reduce((e,t)=>e+t.deletions,0)+`)`})]}),(0,_.jsx)(b,{filechanges:e.value.fileChanges})]})]})}function S({commits:e,commitCount:t}){let i=r(),o=a(),[s,c]=n(),l=Number(s.get(`count`)??`10`),{clickedObject:u}=m();if(!u)throw Error(`Clicked object is null in CommitHistory`);return e?e.length===0?(0,_.jsx)(`h3`,{className:`font-bold`,children:`No commit history`}):(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(`div`,{children:[(0,_.jsx)(v,{items:e,count:l}),i.state===`idle`?l<t?(0,_.jsx)(`button`,{className:`text-xs font-medium whitespace-pre opacity-70 hover:cursor-pointer`,onClick:()=>c(e=>(e.set(`count`,String(Number(e.get(`count`)??`10`)+10)),e),{state:o.state}),children:`Show more commits`}):null:(0,_.jsx)(`h3`,{children:`Loading commits...`})]})}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(`h3`,{children:`Loading commits...`})})}var C=c(function(){let{commitCount:t,commitsPromise:n}=e();return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h,{}),(0,_.jsx)(g.Suspense,{fallback:(0,_.jsx)(`p`,{children:`Loading commits...`}),children:(0,_.jsx)(o,{resolve:n,children:e=>(0,_.jsx)(S,{commits:e,commitCount:t??0})})})]})});export{C as default};
1
+ import{A as e,H as t,L as n,P as r,W as i,j as a,n as o,t as s,z as c}from"./jsx-runtime-s_YwNCZb.js";import"./react-dom-B9ui1jR3.js";import{B as l,C as u,It as d,_t as f,ht as p}from"./dist-Bpk5WHYg.js";import{w as m}from"./browse-n3hSveGT.js";import{t as h}from"./RepoTabs-CxO-avi8.js";var g=i(t()),_=i(s());function v(e){let[,t]=l();return e.items.map(e=>(0,_.jsx)(x,{authorColor:t.get(e.author)??`grey`,value:e},e.hash+`--itemContentAccordion`))}function y(e){return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`div`,{className:`flex grow overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:e.keyString}),(0,_.jsx)(`p`,{className:`text-sm break-all text-ellipsis`,children:e.value})]})}function b(e){return(0,_.jsx)(`div`,{className:`max-h-64 overflow-auto`,children:(0,_.jsx)(`div`,{className:`grid max-w-lg grid-cols-[auto_auto_1fr] gap-x-3 gap-y-1`,children:e.filechanges.map(e=>(0,_.jsxs)(g.Fragment,{children:[(0,_.jsxs)(`div`,{className:`flex grow overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre text-green-600`,children:[`+`,e.insertions]}),(0,_.jsxs)(`div`,{className:`flex grow overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre text-red-600`,children:[`-`,e.deletions]}),(0,_.jsx)(`div`,{className:`grow overflow-hidden text-ellipsis whitespace-nowrap`,children:e.path})]},e.path))})})}function x(e){return(0,_.jsxs)(`div`,{title:`By: ${e.value.author}`,className:`flex items-center gap-2 overflow-hidden text-ellipsis`,children:[(0,_.jsx)(u,{className:`ml-1`,dotColor:e.authorColor,authorColorToChange:e.value.author}),(0,_.jsxs)(d,{positions:[`left`,`top`,`bottom`,`right`],popoverTitle:`Commit Details`,trigger:({onClick:t})=>(0,_.jsx)(`button`,{className:`cursor-pointer truncate font-bold opacity-80 hover:opacity-70`,onClick:t,children:e.value.message}),children:[(0,_.jsxs)(`div`,{className:`grid max-w-lg grid-cols-[auto_1fr] gap-x-3 gap-y-1`,children:[(0,_.jsx)(y,{keyString:`Hash`,value:e.value.hash}),(0,_.jsx)(y,{keyString:`Author`,value:e.value.author}),e.value.committertime===e.value.authortime?(0,_.jsx)(y,{keyString:`Date`,value:`${f(e.value.committertime*1e3)} (${p(e.value.committertime)})`}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(y,{keyString:`Date committed`,value:`${f(e.value.committertime*1e3)} (${p(e.value.committertime)})`}),(0,_.jsx)(y,{keyString:`Date authored`,value:`${f(e.value.authortime*1e3)} (${p(e.value.authortime)})`})]}),(0,_.jsx)(y,{keyString:`Message`,value:e.value.message}),(0,_.jsx)(`div`,{className:`flex grow overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Body`}),(0,_.jsx)(`div`,{className:`max-h-64 overflow-auto`,children:(0,_.jsx)(`p`,{className:`text-sm break-all text-ellipsis`,children:e.value.body.length>0?e.value.body:`<none>`})}),(0,_.jsx)(y,{keyString:`File changes`,value:e.value.fileChanges.length+` files (+`+e.value.fileChanges.reduce((e,t)=>e+t.insertions,0)+`, -`+e.value.fileChanges.reduce((e,t)=>e+t.deletions,0)+`)`})]}),(0,_.jsx)(b,{filechanges:e.value.fileChanges})]})]})}function S({commits:e,commitCount:t}){let i=r(),o=a(),[s,c]=n(),l=Number(s.get(`count`)??`10`),{clickedObject:u}=m();if(!u)throw Error(`Clicked object is null in CommitHistory`);return e?e.length===0?(0,_.jsx)(`h3`,{className:`font-bold`,children:`No commit history`}):(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(`div`,{children:[(0,_.jsx)(v,{items:e,count:l}),i.state===`idle`?l<t?(0,_.jsx)(`button`,{className:`text-xs font-medium whitespace-pre opacity-70 hover:cursor-pointer`,onClick:()=>c(e=>(e.set(`count`,String(Number(e.get(`count`)??`10`)+10)),e),{state:o.state}),children:`Show more commits`}):null:(0,_.jsx)(`h3`,{children:`Loading commits...`})]})}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(`h3`,{children:`Loading commits...`})})}var C=c(function(){let{commitCount:t,commitsPromise:n}=e();return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h,{}),(0,_.jsx)(g.Suspense,{fallback:(0,_.jsx)(`p`,{children:`Loading commits...`}),children:(0,_.jsx)(o,{resolve:n,children:e=>(0,_.jsx)(S,{commits:e,commitCount:t??0})})})]})});export{C as default};
@@ -1 +1 @@
1
- import{A as e,H as t,P as n,V as r,W as i,i as a,j as o,n as s,o as c,t as l,z as u}from"./jsx-runtime-s_YwNCZb.js";import"./react-dom-B9ui1jR3.js";import{B as d,C as f,Cn as p,En as m,Ot as h,Pt as g,Un as _,V as v,jt as y,ln as b,lt as x,mt as S,s as C,yt as w}from"./dist-Bpk5WHYg.js";import{a as T,l as E,m as D,o as O,w as k}from"./browse-B9wBPRaK.js";import{t as A}from"./RepoTabs-36qUc-RT.js";var j=i(t()),M=i(l());function N(e){let[,t]=d();return e.show?(0,M.jsx)(M.Fragment,{children:e.items.map(n=>{let r=n.contribs,i=n.author,a=Math.round(r/e.contribSum*100),o=a===0?`<1`:a;return(0,M.jsxs)(j.Fragment,{children:[(0,M.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,M.jsx)(f,{authorColorToChange:i,dotColor:t.get(i)??`grey`}),(0,M.jsx)(`span`,{className:`overflow-hidden text-sm font-bold text-ellipsis whitespace-pre`,children:i})]}),(0,M.jsxs)(`span`,{className:`text-right text-sm break-all`,children:[o,`%`]})]},i+r)})}):null}var P={},F=new WeakMap,I={metric:[{from:0,to:1e3,unit:`B`,long:`bytes`},{from:1e3,to:1e6,unit:`kB`,long:`kilobytes`},{from:1e6,to:1e9,unit:`MB`,long:`megabytes`},{from:1e9,to:0xe8d4a51000,unit:`GB`,long:`gigabytes`},{from:0xe8d4a51000,to:0x38d7ea4c68000,unit:`TB`,long:`terabytes`},{from:0x38d7ea4c68000,to:0xde0b6b3a7640000,unit:`PB`,long:`petabytes`},{from:0xde0b6b3a7640000,to:1e21,unit:`EB`,long:`exabytes`},{from:1e21,to:1e24,unit:`ZB`,long:`zettabytes`},{from:1e24,to:1e27,unit:`YB`,long:`yottabytes`}],metric_octet:[{from:0,to:1e3,unit:`o`,long:`octets`},{from:1e3,to:1e6,unit:`ko`,long:`kilooctets`},{from:1e6,to:1e9,unit:`Mo`,long:`megaoctets`},{from:1e9,to:0xe8d4a51000,unit:`Go`,long:`gigaoctets`},{from:0xe8d4a51000,to:0x38d7ea4c68000,unit:`To`,long:`teraoctets`},{from:0x38d7ea4c68000,to:0xde0b6b3a7640000,unit:`Po`,long:`petaoctets`},{from:0xde0b6b3a7640000,to:1e21,unit:`Eo`,long:`exaoctets`},{from:1e21,to:1e24,unit:`Zo`,long:`zettaoctets`},{from:1e24,to:1e27,unit:`Yo`,long:`yottaoctets`}],iec:[{from:0,to:1024**1,unit:`B`,long:`bytes`},{from:1024**1,to:1024**2,unit:`KiB`,long:`kibibytes`},{from:1024**2,to:1024**3,unit:`MiB`,long:`mebibytes`},{from:1024**3,to:1024**4,unit:`GiB`,long:`gibibytes`},{from:1024**4,to:1024**5,unit:`TiB`,long:`tebibytes`},{from:1024**5,to:1024**6,unit:`PiB`,long:`pebibytes`},{from:1024**6,to:1024**7,unit:`EiB`,long:`exbibytes`},{from:1024**7,to:1024**8,unit:`ZiB`,long:`zebibytes`},{from:1024**8,to:1024**9,unit:`YiB`,long:`yobibytes`}],iec_octet:[{from:0,to:1024**1,unit:`o`,long:`octets`},{from:1024**1,to:1024**2,unit:`Kio`,long:`kibioctets`},{from:1024**2,to:1024**3,unit:`Mio`,long:`mebioctets`},{from:1024**3,to:1024**4,unit:`Gio`,long:`gibioctets`},{from:1024**4,to:1024**5,unit:`Tio`,long:`tebioctets`},{from:1024**5,to:1024**6,unit:`Pio`,long:`pebioctets`},{from:1024**6,to:1024**7,unit:`Eio`,long:`exbioctets`},{from:1024**7,to:1024**8,unit:`Zio`,long:`zebioctets`},{from:1024**8,to:1024**9,unit:`Yio`,long:`yobioctets`}]},L=class{constructor(e,t){t=Object.assign({units:`metric`,precision:1,locale:void 0},P,t),F.set(this,t),Object.assign(I,t.customUnits);let n=e<0?`-`:``;e=Math.abs(e);let r=I[t.units];if(r){let i=r.find(t=>e>=t.from&&e<t.to);if(i){let r=new Intl.NumberFormat(t.locale,{style:`decimal`,maximumFractionDigits:t.precision});this.value=i.from===0?n+r.format(e):n+r.format(e/i.from),this.unit=i.unit,this.long=i.long}else this.value=n+e,this.unit=``,this.long=``}else throw Error(`Invalid units specified: ${t.units}`)}toString(){let e=F.get(this);return e.toStringFn?e.toStringFn.bind(this)():`${this.value} ${this.unit}`}};function R(e,t){return new L(e,t)}R.defaultOptions=function(e){P=e};var z=R;function B(){let e=g(),[t,n]=C(T);return{path:t.path??e.repo.repositoryPath,setPath:(0,j.useCallback)(e=>n(t=>({...t,path:e})),[n])}}const V=r(function(){return(0,M.jsx)(`div`,{children:`Loading...`})});var H=2;function U(e){if(!e)return!1;for(let{contribs:t}of e)if(t>0)return!0;return!1}var W=u(function(){let{setPath:t}=B(),{path:r,authorDistributionPromise:i}=e(),l=g(),{state:u}=n(),d=o(),f=x(),m=d.state?.clickedObject,v=E(),[S]=C(T),w=d.pathname+O({...S,zoomPath:r});if((0,j.useEffect)(()=>{v(!!m)},[m,v]),!m)return(0,M.jsx)(`p`,{className:`p-4`,children:`No file or folder selected`});let k=l.databaseInfo.commitCounts[r],N=m.type===`blob`,P=h(m.name.split(`.`));return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(A,{}),(0,M.jsxs)(`div`,{className:`flex grow flex-col gap-2`,children:[(0,M.jsxs)(`div`,{className:`grid grid-cols-[auto_1fr] gap-x-3 gap-y-1`,children:[N?(0,M.jsx)(K,{}):null,N?(0,M.jsx)(q,{count:k??0}):null,N?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(X,{size:m.sizeInBytes,isBinary:!1}),(0,M.jsx)(J,{epoch:l.databaseInfo.lastChanged[r]})]}):(0,M.jsx)(Z,{clickedTree:m}),(0,M.jsx)(Y,{path:m.path})]}),(0,M.jsx)(`div`,{className:`card`,children:(0,M.jsx)(j.Suspense,{fallback:(0,M.jsx)(`p`,{children:`Loading authors...`}),children:(0,M.jsx)(s,{resolve:i,children:e=>(0,M.jsx)(G,{authorDistribution:e})})})})]}),(0,M.jsx)(D,{}),(0,M.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:[(0,M.jsxs)(c,{className:`btn`,to:w,children:[(0,M.jsx)(_,{path:p}),`Zoom to this `,N?`file`:`folder`]}),N?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(a,{className:`w-max`,method:`post`,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`hide`,value:m.path}),(0,M.jsxs)(`button`,{className:`btn`,disabled:u!==`idle`,title:`Hide this file`,children:[(0,M.jsx)(_,{path:b}),`Hide`]})]}),m.name.includes(`.`)?(0,M.jsxs)(a,{className:`w-max`,method:`post`,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`hide`,value:`*.${P}`}),(0,M.jsxs)(`button`,{className:`btn`,disabled:u!==`idle`,title:`Hide all files with .${P} extension`,children:[(0,M.jsx)(_,{path:b}),(0,M.jsxs)(`span`,{children:[`Hide *.`,P]})]})]}):null]}):(0,M.jsxs)(a,{method:`post`,action:f,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`hide`,value:m.path}),(0,M.jsxs)(`button`,{className:`btn`,disabled:u!==`idle`,onClick:()=>{t(y(r))},children:[(0,M.jsx)(_,{path:b}),`Hide this folder`]})]})]})]})});function G({authorDistribution:e}){let t=(0,j.useId)(),[n,r]=(0,j.useState)(!0),i=(e?.length??0)>H+1,a=e?e.reduce((e,t)=>e+t.contribs,0):0;return(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,M.jsxs)(`div`,{className:`flex justify-between ${i?`hover:text-secondary-text dark:hover:text-secondary-text-dark cursor-pointer`:``}`,children:[(0,M.jsx)(`label`,{className:`label grow`,htmlFor:t,children:(0,M.jsx)(`h3`,{className:`font-bold`,children:`Author distribution`})}),i?(0,M.jsx)(v,{id:t,open:!n,onClick:()=>r(!n)}):null]}),(0,M.jsx)(`div`,{className:`grid grid-cols-[1fr_auto] items-center justify-center gap-1`,children:i?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(N,{show:!0,items:e.slice(0,H),contribSum:a}),(0,M.jsx)(N,{show:!n,items:e.slice(H),contribSum:a}),n?(0,M.jsxs)(`button`,{className:`cursor-pointer text-left text-xs opacity-70 hover:opacity-100`,onClick:()=>r(!n),children:[`+ `,(e?.slice(H)??[]).length,` more`]}):null]}):(0,M.jsx)(M.Fragment,{children:(e??[]).length>0&&U(e)?(0,M.jsx)(N,{show:!0,items:e??[],contribSum:a}):(0,M.jsx)(`p`,{children:`No authors found`})})})]})}function K(){let{clickedObject:e}=k();return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Type`}),(0,M.jsx)(`div`,{className:`flex gap-1 text-sm`,children:e?w(e.path):`N/A`})]})}function q(e){return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Commits`}),(0,M.jsx)(`p`,{className:`text-sm break-all`,children:e.count??`unknown`})]})}function J(e){return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Last changed`}),(0,M.jsx)(`p`,{className:`text-sm break-all`,children:e.epoch?S(e.epoch):`unknown`})]})}function Y(e){let{state:t}=n(),{clickedObject:r}=k(),i=x();return r?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Located at`}),(0,M.jsxs)(`div`,{className:`grid grid-cols-[1fr_auto] items-center justify-between gap-2 text-sm break-all`,children:[(0,M.jsx)(`p`,{className:`truncate`,title:e.path,children:e.path}),(0,M.jsxs)(a,{method:`post`,action:i,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`open`,value:r.path}),(0,M.jsx)(`button`,{className:`btn--icon`,disabled:t!==`idle`,title:r.type===`blob`?`Open file in default app`:`Browse folder in system explorer`,children:(0,M.jsx)(_,{path:m,size:`1.25em`,className:`w-max`})})]})]})]}):null}function X(e){let t=z(e.size??0);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Size`}),(0,M.jsxs)(`p`,{className:`text-sm break-all`,children:[t.value,` `,t.unit,` `,(0,M.jsx)(`span`,{className:`opacity-50`,children:e.isBinary?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`br`,{}),`(binary file)`]}):null})]})]})}function Z(e){let t=e.clickedTree.children.filter(e=>e.type===`tree`).length,n=e.clickedTree.children.length-t;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Files`}),(0,M.jsx)(`p`,{className:`text-sm break-all`,children:n}),(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Folders`}),(0,M.jsx)(`p`,{className:`text-sm break-all`,children:t})]})}export{V as HydrateFallback,W as default};
1
+ import{A as e,H as t,P as n,V as r,W as i,i as a,j as o,n as s,o as c,t as l,z as u}from"./jsx-runtime-s_YwNCZb.js";import"./react-dom-B9ui1jR3.js";import{B as d,C as f,Cn as p,En as m,Ot as h,Pt as g,Un as _,V as v,jt as y,ln as b,lt as x,mt as S,s as C,yt as w}from"./dist-Bpk5WHYg.js";import{a as T,l as E,m as D,o as O,w as k}from"./browse-n3hSveGT.js";import{t as A}from"./RepoTabs-CxO-avi8.js";var j=i(t()),M=i(l());function N(e){let[,t]=d();return e.show?(0,M.jsx)(M.Fragment,{children:e.items.map(n=>{let r=n.contribs,i=n.author,a=Math.round(r/e.contribSum*100),o=a===0?`<1`:a;return(0,M.jsxs)(j.Fragment,{children:[(0,M.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,M.jsx)(f,{authorColorToChange:i,dotColor:t.get(i)??`grey`}),(0,M.jsx)(`span`,{className:`overflow-hidden text-sm font-bold text-ellipsis whitespace-pre`,children:i})]}),(0,M.jsxs)(`span`,{className:`text-right text-sm break-all`,children:[o,`%`]})]},i+r)})}):null}var P={},F=new WeakMap,I={metric:[{from:0,to:1e3,unit:`B`,long:`bytes`},{from:1e3,to:1e6,unit:`kB`,long:`kilobytes`},{from:1e6,to:1e9,unit:`MB`,long:`megabytes`},{from:1e9,to:0xe8d4a51000,unit:`GB`,long:`gigabytes`},{from:0xe8d4a51000,to:0x38d7ea4c68000,unit:`TB`,long:`terabytes`},{from:0x38d7ea4c68000,to:0xde0b6b3a7640000,unit:`PB`,long:`petabytes`},{from:0xde0b6b3a7640000,to:1e21,unit:`EB`,long:`exabytes`},{from:1e21,to:1e24,unit:`ZB`,long:`zettabytes`},{from:1e24,to:1e27,unit:`YB`,long:`yottabytes`}],metric_octet:[{from:0,to:1e3,unit:`o`,long:`octets`},{from:1e3,to:1e6,unit:`ko`,long:`kilooctets`},{from:1e6,to:1e9,unit:`Mo`,long:`megaoctets`},{from:1e9,to:0xe8d4a51000,unit:`Go`,long:`gigaoctets`},{from:0xe8d4a51000,to:0x38d7ea4c68000,unit:`To`,long:`teraoctets`},{from:0x38d7ea4c68000,to:0xde0b6b3a7640000,unit:`Po`,long:`petaoctets`},{from:0xde0b6b3a7640000,to:1e21,unit:`Eo`,long:`exaoctets`},{from:1e21,to:1e24,unit:`Zo`,long:`zettaoctets`},{from:1e24,to:1e27,unit:`Yo`,long:`yottaoctets`}],iec:[{from:0,to:1024**1,unit:`B`,long:`bytes`},{from:1024**1,to:1024**2,unit:`KiB`,long:`kibibytes`},{from:1024**2,to:1024**3,unit:`MiB`,long:`mebibytes`},{from:1024**3,to:1024**4,unit:`GiB`,long:`gibibytes`},{from:1024**4,to:1024**5,unit:`TiB`,long:`tebibytes`},{from:1024**5,to:1024**6,unit:`PiB`,long:`pebibytes`},{from:1024**6,to:1024**7,unit:`EiB`,long:`exbibytes`},{from:1024**7,to:1024**8,unit:`ZiB`,long:`zebibytes`},{from:1024**8,to:1024**9,unit:`YiB`,long:`yobibytes`}],iec_octet:[{from:0,to:1024**1,unit:`o`,long:`octets`},{from:1024**1,to:1024**2,unit:`Kio`,long:`kibioctets`},{from:1024**2,to:1024**3,unit:`Mio`,long:`mebioctets`},{from:1024**3,to:1024**4,unit:`Gio`,long:`gibioctets`},{from:1024**4,to:1024**5,unit:`Tio`,long:`tebioctets`},{from:1024**5,to:1024**6,unit:`Pio`,long:`pebioctets`},{from:1024**6,to:1024**7,unit:`Eio`,long:`exbioctets`},{from:1024**7,to:1024**8,unit:`Zio`,long:`zebioctets`},{from:1024**8,to:1024**9,unit:`Yio`,long:`yobioctets`}]},L=class{constructor(e,t){t=Object.assign({units:`metric`,precision:1,locale:void 0},P,t),F.set(this,t),Object.assign(I,t.customUnits);let n=e<0?`-`:``;e=Math.abs(e);let r=I[t.units];if(r){let i=r.find(t=>e>=t.from&&e<t.to);if(i){let r=new Intl.NumberFormat(t.locale,{style:`decimal`,maximumFractionDigits:t.precision});this.value=i.from===0?n+r.format(e):n+r.format(e/i.from),this.unit=i.unit,this.long=i.long}else this.value=n+e,this.unit=``,this.long=``}else throw Error(`Invalid units specified: ${t.units}`)}toString(){let e=F.get(this);return e.toStringFn?e.toStringFn.bind(this)():`${this.value} ${this.unit}`}};function R(e,t){return new L(e,t)}R.defaultOptions=function(e){P=e};var z=R;function B(){let e=g(),[t,n]=C(T);return{path:t.path??e.repo.repositoryPath,setPath:(0,j.useCallback)(e=>n(t=>({...t,path:e})),[n])}}const V=r(function(){return(0,M.jsx)(`div`,{children:`Loading...`})});var H=2;function U(e){if(!e)return!1;for(let{contribs:t}of e)if(t>0)return!0;return!1}var W=u(function(){let{setPath:t}=B(),{path:r,authorDistributionPromise:i}=e(),l=g(),{state:u}=n(),d=o(),f=x(),m=d.state?.clickedObject,v=E(),[S]=C(T),w=d.pathname+O({...S,zoomPath:r});if((0,j.useEffect)(()=>{v(!!m)},[m,v]),!m)return(0,M.jsx)(`p`,{className:`p-4`,children:`No file or folder selected`});let k=l.databaseInfo.commitCounts[r],N=m.type===`blob`,P=h(m.name.split(`.`));return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(A,{}),(0,M.jsxs)(`div`,{className:`flex grow flex-col gap-2`,children:[(0,M.jsxs)(`div`,{className:`grid grid-cols-[auto_1fr] gap-x-3 gap-y-1`,children:[N?(0,M.jsx)(K,{}):null,N?(0,M.jsx)(q,{count:k??0}):null,N?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(X,{size:m.sizeInBytes,isBinary:!1}),(0,M.jsx)(J,{epoch:l.databaseInfo.lastChanged[r]})]}):(0,M.jsx)(Z,{clickedTree:m}),(0,M.jsx)(Y,{path:m.path})]}),(0,M.jsx)(`div`,{className:`card`,children:(0,M.jsx)(j.Suspense,{fallback:(0,M.jsx)(`p`,{children:`Loading authors...`}),children:(0,M.jsx)(s,{resolve:i,children:e=>(0,M.jsx)(G,{authorDistribution:e})})})})]}),(0,M.jsx)(D,{}),(0,M.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:[(0,M.jsxs)(c,{className:`btn`,to:w,children:[(0,M.jsx)(_,{path:p}),`Zoom to this `,N?`file`:`folder`]}),N?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(a,{className:`w-max`,method:`post`,action:f,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`hide`,value:m.path}),(0,M.jsxs)(`button`,{className:`btn`,disabled:u!==`idle`,title:`Hide this file`,children:[(0,M.jsx)(_,{path:b}),`Hide`]})]}),m.name.includes(`.`)?(0,M.jsxs)(a,{className:`w-max`,method:`post`,action:f,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`hide`,value:`*.${P}`}),(0,M.jsxs)(`button`,{className:`btn`,disabled:u!==`idle`,title:`Hide all files with .${P} extension`,children:[(0,M.jsx)(_,{path:b}),(0,M.jsxs)(`span`,{children:[`Hide *.`,P]})]})]}):null]}):(0,M.jsxs)(a,{method:`post`,action:f,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`hide`,value:m.path}),(0,M.jsxs)(`button`,{className:`btn`,disabled:u!==`idle`,onClick:()=>{t(y(r))},children:[(0,M.jsx)(_,{path:b}),`Hide this folder`]})]})]})]})});function G({authorDistribution:e}){let t=(0,j.useId)(),[n,r]=(0,j.useState)(!0),i=(e?.length??0)>H+1,a=e?e.reduce((e,t)=>e+t.contribs,0):0;return(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,M.jsxs)(`div`,{className:`flex justify-between ${i?`hover:text-secondary-text dark:hover:text-secondary-text-dark cursor-pointer`:``}`,children:[(0,M.jsx)(`label`,{className:`label grow`,htmlFor:t,children:(0,M.jsx)(`h3`,{className:`font-bold`,children:`Author distribution`})}),i?(0,M.jsx)(v,{id:t,open:!n,onClick:()=>r(!n)}):null]}),(0,M.jsx)(`div`,{className:`grid grid-cols-[1fr_auto] items-center justify-center gap-1`,children:i?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(N,{show:!0,items:e.slice(0,H),contribSum:a}),(0,M.jsx)(N,{show:!n,items:e.slice(H),contribSum:a}),n?(0,M.jsxs)(`button`,{className:`cursor-pointer text-left text-xs opacity-70 hover:opacity-100`,onClick:()=>r(!n),children:[`+ `,(e?.slice(H)??[]).length,` more`]}):null]}):(0,M.jsx)(M.Fragment,{children:(e??[]).length>0&&U(e)?(0,M.jsx)(N,{show:!0,items:e??[],contribSum:a}):(0,M.jsx)(`p`,{children:`No authors found`})})})]})}function K(){let{clickedObject:e}=k();return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Type`}),(0,M.jsx)(`div`,{className:`flex gap-1 text-sm`,children:e?w(e.path):`N/A`})]})}function q(e){return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Commits`}),(0,M.jsx)(`p`,{className:`text-sm break-all`,children:e.count??`unknown`})]})}function J(e){return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Last changed`}),(0,M.jsx)(`p`,{className:`text-sm break-all`,children:e.epoch?S(e.epoch):`unknown`})]})}function Y(e){let{state:t}=n(),{clickedObject:r}=k(),i=x();return r?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Located at`}),(0,M.jsxs)(`div`,{className:`grid grid-cols-[1fr_auto] items-center justify-between gap-2 text-sm break-all`,children:[(0,M.jsx)(`p`,{className:`truncate`,title:e.path,children:e.path}),(0,M.jsxs)(a,{method:`post`,action:i,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`open`,value:r.path}),(0,M.jsx)(`button`,{className:`btn--icon`,disabled:t!==`idle`,title:r.type===`blob`?`Open file in default app`:`Browse folder in system explorer`,children:(0,M.jsx)(_,{path:m,size:`1.25em`,className:`w-max`})})]})]})]}):null}function X(e){let t=z(e.size??0);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Size`}),(0,M.jsxs)(`p`,{className:`text-sm break-all`,children:[t.value,` `,t.unit,` `,(0,M.jsx)(`span`,{className:`opacity-50`,children:e.isBinary?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`br`,{}),`(binary file)`]}):null})]})]})}function Z(e){let t=e.clickedTree.children.filter(e=>e.type===`tree`).length,n=e.clickedTree.children.length-t;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Files`}),(0,M.jsx)(`p`,{className:`text-sm break-all`,children:n}),(0,M.jsx)(`div`,{className:`flex grow items-center overflow-hidden text-sm font-semibold text-ellipsis whitespace-pre`,children:`Folders`}),(0,M.jsx)(`p`,{className:`text-sm break-all`,children:t})]})}export{V as HydrateFallback,W as default};
@@ -180,7 +180,7 @@ function handleBrowserRequest(request, responseStatusCode, responseHeaders, reac
180
180
  });
181
181
  }
182
182
  const name = "git-truck";
183
- const version = "3.2.0";
183
+ const version = "3.2.1";
184
184
  const description = "Visualizing a Git repository";
185
185
  const main = "./cli.mjs";
186
186
  const bin = "./cli.mjs";
@@ -14501,6 +14501,7 @@ var view_details_default = UNSAFE_withComponentProps(function Details() {
14501
14501
  }), isBlob$1 ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Form, {
14502
14502
  className: "w-max",
14503
14503
  method: "post",
14504
+ action: viewAction,
14504
14505
  children: [/* @__PURE__ */ jsx("input", {
14505
14506
  type: "hidden",
14506
14507
  name: "hide",
@@ -14514,6 +14515,7 @@ var view_details_default = UNSAFE_withComponentProps(function Details() {
14514
14515
  }), clickedObject.name.includes(".") ? /* @__PURE__ */ jsxs(Form, {
14515
14516
  className: "w-max",
14516
14517
  method: "post",
14518
+ action: viewAction,
14517
14519
  children: [/* @__PURE__ */ jsx("input", {
14518
14520
  type: "hidden",
14519
14521
  name: "hide",
@@ -15381,10 +15383,10 @@ var server_manifest_default = {
15381
15383
  "hasClientMiddleware": false,
15382
15384
  "hasDefaultExport": true,
15383
15385
  "hasErrorBoundary": false,
15384
- "module": "/assets/browse-Bx9O5Mvl.js",
15386
+ "module": "/assets/browse-Bvc2-R26.js",
15385
15387
  "imports": [
15386
15388
  "/assets/jsx-runtime-s_YwNCZb.js",
15387
- "/assets/browse-B9wBPRaK.js",
15389
+ "/assets/browse-n3hSveGT.js",
15388
15390
  "/assets/dist-Bpk5WHYg.js",
15389
15391
  "/assets/react-dom-B9ui1jR3.js"
15390
15392
  ],
@@ -15428,10 +15430,10 @@ var server_manifest_default = {
15428
15430
  "hasClientMiddleware": false,
15429
15431
  "hasDefaultExport": true,
15430
15432
  "hasErrorBoundary": false,
15431
- "module": "/assets/view-mmd0Q4B8.js",
15433
+ "module": "/assets/view-PpNM0R4w.js",
15432
15434
  "imports": [
15433
15435
  "/assets/jsx-runtime-s_YwNCZb.js",
15434
- "/assets/browse-B9wBPRaK.js",
15436
+ "/assets/browse-n3hSveGT.js",
15435
15437
  "/assets/dist-Bpk5WHYg.js",
15436
15438
  "/assets/react-dom-B9ui1jR3.js"
15437
15439
  ],
@@ -15475,13 +15477,13 @@ var server_manifest_default = {
15475
15477
  "hasClientMiddleware": false,
15476
15478
  "hasDefaultExport": true,
15477
15479
  "hasErrorBoundary": false,
15478
- "module": "/assets/view.commits-b-k-A7BT.js",
15480
+ "module": "/assets/view.commits-CUFKse0G.js",
15479
15481
  "imports": [
15480
15482
  "/assets/jsx-runtime-s_YwNCZb.js",
15481
- "/assets/browse-B9wBPRaK.js",
15483
+ "/assets/browse-n3hSveGT.js",
15482
15484
  "/assets/dist-Bpk5WHYg.js",
15483
15485
  "/assets/react-dom-B9ui1jR3.js",
15484
- "/assets/RepoTabs-36qUc-RT.js"
15486
+ "/assets/RepoTabs-CxO-avi8.js"
15485
15487
  ],
15486
15488
  "css": [],
15487
15489
  "clientActionModule": void 0,
@@ -15502,13 +15504,13 @@ var server_manifest_default = {
15502
15504
  "hasClientMiddleware": false,
15503
15505
  "hasDefaultExport": true,
15504
15506
  "hasErrorBoundary": false,
15505
- "module": "/assets/view.details-B7LCPu46.js",
15507
+ "module": "/assets/view.details-12HQVV2q.js",
15506
15508
  "imports": [
15507
15509
  "/assets/jsx-runtime-s_YwNCZb.js",
15508
- "/assets/browse-B9wBPRaK.js",
15510
+ "/assets/browse-n3hSveGT.js",
15509
15511
  "/assets/dist-Bpk5WHYg.js",
15510
15512
  "/assets/react-dom-B9ui1jR3.js",
15511
- "/assets/RepoTabs-36qUc-RT.js"
15513
+ "/assets/RepoTabs-CxO-avi8.js"
15512
15514
  ],
15513
15515
  "css": [],
15514
15516
  "clientActionModule": void 0,
@@ -15550,10 +15552,10 @@ var server_manifest_default = {
15550
15552
  "hasClientMiddleware": false,
15551
15553
  "hasDefaultExport": true,
15552
15554
  "hasErrorBoundary": false,
15553
- "module": "/assets/ui-Bw635ygf.js",
15555
+ "module": "/assets/ui-Dwu6e1gT.js",
15554
15556
  "imports": [
15555
15557
  "/assets/jsx-runtime-s_YwNCZb.js",
15556
- "/assets/browse-B9wBPRaK.js",
15558
+ "/assets/browse-n3hSveGT.js",
15557
15559
  "/assets/dist-Bpk5WHYg.js",
15558
15560
  "/assets/react-dom-B9ui1jR3.js"
15559
15561
  ],
@@ -15585,8 +15587,8 @@ var server_manifest_default = {
15585
15587
  "hydrateFallbackModule": void 0
15586
15588
  }
15587
15589
  },
15588
- "url": "/assets/manifest-601d0239.js",
15589
- "version": "601d0239",
15590
+ "url": "/assets/manifest-1770f4ad.js",
15591
+ "version": "1770f4ad",
15590
15592
  "sri": void 0
15591
15593
  };
15592
15594
  const assetsBuildDirectory = "build/client";
@@ -1,5 +1,5 @@
1
1
  import { createRequestHandler } from "@react-router/express";
2
2
  import express from "express";
3
3
  const app = express();
4
- app.use(createRequestHandler({ build: () => import("./assets/server-build-voprGiDU.js") }));
4
+ app.use(createRequestHandler({ build: () => import("./assets/server-build-UP6uUcLa.js") }));
5
5
  export { app };
package/cli.mjs CHANGED
@@ -26,7 +26,7 @@ import { inflateSync } from "node:zlib";
26
26
  import yargsParser from "yargs-parser";
27
27
 
28
28
  //#region package.json
29
- var version = "3.2.0";
29
+ var version = "3.2.1";
30
30
  var homepage = "https://github.com/git-truck/git-truck#readme";
31
31
 
32
32
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-truck",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "private": false,
5
5
  "description": "Visualizing a Git repository",
6
6
  "license": "MIT",