git-truck 3.0.0 → 3.0.2

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-NklqTk8N.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/react-dom-_FKEaPb7.js","/assets/chunk-JPUPSTYD-XO4UPun8.js","/assets/jsx-runtime-BVRj4wYA.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-Djh_4EO9.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/react-dom-_FKEaPb7.js","/assets/chunk-JPUPSTYD-XO4UPun8.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/clear-cache-CrL0weu5.js"],"css":["/assets/root-qwQAVU-u.css"]},"routes/FullscreenButton":{"id":"routes/FullscreenButton","parentId":"root","path":"FullscreenButton","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/FullscreenButton-CFqdBqf-.js","imports":["/assets/styling-B8OEge8x.js","/assets/jsx-runtime-BVRj4wYA.js"],"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._-DIwl00oI.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-82hexQD7.js","imports":["/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/clear-cache-CrL0weu5.js","/assets/chunk-LFPYN7LY-CPTP6242.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-eFguKtSp.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-DPfZp-l3.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-J0jvF8An.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-CPjwuHQe.js","imports":["/assets/browse-7BJg-qfM.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.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-bRAhzWvL.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-ZFr-KZ5c.js","imports":["/assets/browse-7BJg-qfM.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.js"],"css":[]},"routes/view.merge-authors":{"id":"routes/view.merge-authors","parentId":"routes/view","path":"merge-authors","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view.merge-authors-VwPHWL-d.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/chunk-JPUPSTYD-XO4UPun8.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-B7Os3EHt.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-D4Q38_m5.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/browse-7BJg-qfM.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/RepoTabs-4-CQeS6M.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.js"],"css":[]},"routes/view.details":{"id":"routes/view.details","parentId":"routes/view","path":"details","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view.details-CVK0Sh-y.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/browse-7BJg-qfM.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/RepoTabs-4-CQeS6M.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.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-CjsEuBV6.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/jsx-runtime-BVRj4wYA.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-CGg0wrDR.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/browse-7BJg-qfM.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.js"],"css":[]},"routes/$":{"id":"routes/$","parentId":"root","path":"*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_-RagYKtT_.js","imports":[],"css":[]}},"url":"/assets/manifest-c5f30ffe.js","version":"c5f30ffe"};
1
+ window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-NklqTk8N.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/react-dom-_FKEaPb7.js","/assets/chunk-JPUPSTYD-XO4UPun8.js","/assets/jsx-runtime-BVRj4wYA.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-Djh_4EO9.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/react-dom-_FKEaPb7.js","/assets/chunk-JPUPSTYD-XO4UPun8.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/clear-cache-CrL0weu5.js"],"css":["/assets/root-qwQAVU-u.css"]},"routes/FullscreenButton":{"id":"routes/FullscreenButton","parentId":"root","path":"FullscreenButton","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/FullscreenButton-CFqdBqf-.js","imports":["/assets/styling-B8OEge8x.js","/assets/jsx-runtime-BVRj4wYA.js"],"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._-DIwl00oI.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-82hexQD7.js","imports":["/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/clear-cache-CrL0weu5.js","/assets/chunk-LFPYN7LY-CPTP6242.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-eFguKtSp.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-DPfZp-l3.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-J0jvF8An.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-CPxPbHtx.js","imports":["/assets/browse-CuAoODR1.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.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-bRAhzWvL.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-ESMBoxIY.js","imports":["/assets/browse-CuAoODR1.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.js"],"css":[]},"routes/view.merge-authors":{"id":"routes/view.merge-authors","parentId":"routes/view","path":"merge-authors","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view.merge-authors-VwPHWL-d.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/chunk-JPUPSTYD-XO4UPun8.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-B7Os3EHt.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-DP_ltd6_.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/browse-CuAoODR1.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/RepoTabs-xQ7LCUn1.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.js"],"css":[]},"routes/view.details":{"id":"routes/view.details","parentId":"routes/view","path":"details","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/view.details-C6kuGyhb.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/browse-CuAoODR1.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/RepoTabs-xQ7LCUn1.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.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-CjsEuBV6.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/jsx-runtime-BVRj4wYA.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-nIuMvo3S.js","imports":["/assets/chunk-LFPYN7LY-CPTP6242.js","/assets/browse-CuAoODR1.js","/assets/styling-B8OEge8x.js","/assets/util-1G1Ez1rt.js","/assets/react-dom-_FKEaPb7.js","/assets/jsx-runtime-BVRj4wYA.js","/assets/GitTruckInfo-C1VOiqSW.js","/assets/UnionAuthorsModal-D-H775E5.js","/assets/compare-Br3z3FUS-OODPzXmX.js","/assets/chunk-JPUPSTYD-XO4UPun8.js"],"css":[]},"routes/$":{"id":"routes/$","parentId":"root","path":"*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/_-RagYKtT_.js","imports":[],"css":[]}},"url":"/assets/manifest-b5d81016.js","version":"b5d81016"};
@@ -1 +1 @@
1
- import{i as e,n as t,t as n}from"./jsx-runtime-BVRj4wYA.js";import{z as r}from"./chunk-LFPYN7LY-CPTP6242.js";import"./react-dom-_FKEaPb7.js";import{Dt as i,Wt as a,nt as o,vt as s}from"./styling-B8OEge8x.js";import{T as c}from"./util-1G1Ez1rt.js";import{C as l,S as u,_ as d,b as f,d as p,f as m,g as h,h as g,l as _,m as v,p as y,r as b,v as x,w as S,x as C,y as w}from"./browse-7BJg-qfM.js";import{t as T}from"./GitTruckInfo-C1VOiqSW.js";import"./UnionAuthorsModal-D-H775E5.js";var E=e(t(),1),D=e(n(),1),O={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 k({handleType:e=`round`}){let t=[0,100],[n,r]=(0,E.useState)([20,80]),i=e=>{r([e[0],e[1]])};return(0,D.jsxs)(`div`,{className:`space-y-4`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`text-xs tracking-wide text-gray-500 uppercase dark:text-gray-400`,children:`Selected window`}),(0,D.jsxs)(`p`,{className:`text-lg font-semibold`,children:[n[0],`% – `,n[1],`%`]})]}),(0,D.jsxs)(u,{className:`relative`,mode:2,step:1,domain:t,values:n,onUpdate:i,onChange:i,children:[(0,D.jsx)(C,{children:d}),(0,D.jsx)(f,{children:({handles:n,getHandleProps:r})=>(0,D.jsx)(`div`,{children:n.map((n,i)=>(0,D.jsx)(h,{handle:n,domain:t,getHandleProps:r,handleType:e,title:`Drag to adjust the ${i===0?`start`:`end`} threshold`},n.id))})}),(0,D.jsx)(l,{left:!1,right:!1,children:({tracks:t,getTrackProps:n})=>(0,D.jsx)(`div`,{children:t.map(({id:t,...r})=>(0,D.jsx)(w,{trackType:e,...r,getTrackProps:n,backgroundColor:`#7aa0c4`},t))})})]}),(0,D.jsxs)(`div`,{className:`flex justify-between text-sm font-medium`,children:[(0,D.jsxs)(`span`,{children:[`Start: `,n[0],`%`]}),(0,D.jsxs)(`span`,{children:[`End: `,n[1],`%`]})]}),(0,D.jsx)(x,{below:!0,count:5,tickToLabel:e=>`${Math.round(e*100)}%`})]})}var A=r(function(){let[e,t]=(0,E.useState)(!1);return(0,D.jsx)(y,{data:O,children:(0,D.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-8 p-2`,children:[(0,D.jsx)(`h1`,{className:`mb-4 text-2xl font-bold`,children:`UI Components`}),(0,D.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Default Card`}),(0,D.jsx)(`p`,{className:`text-sm`,children:`This is a simple card with some text content.`})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsxs)(`div`,{className:`card__header`,children:[(0,D.jsx)(`span`,{className:`icon`,children:`🚚`}),(0,D.jsx)(`h2`,{className:`card__title`,children:`Card with Header`})]}),(0,D.jsx)(`div`,{className:`card__content`,children:(0,D.jsx)(`p`,{className:`text-sm`,children:`Card with header, subtitle, and content.`})})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Buttons`}),(0,D.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,D.jsx)(`button`,{className:`btn`,children:`Default`}),(0,D.jsx)(`button`,{className:`btn btn--text`,children:`Default text`}),(0,D.jsx)(`button`,{className:`btn btn--primary`,children:`Primary`}),(0,D.jsx)(`button`,{className:`btn btn--primary btn--outlined`,children:`Primary Outlined`}),(0,D.jsx)(`button`,{className:`btn btn--primary btn--text`,children:`Primary Text`}),(0,D.jsx)(`button`,{className:`btn btn--danger`,children:`Danger`}),(0,D.jsx)(`button`,{className:`btn btn--danger btn--outlined`,children:`Danger Outlined`}),(0,D.jsx)(`button`,{className:`btn btn--danger btn--text`,children:`Danger Text`}),(0,D.jsx)(`button`,{className:`btn btn--icon`,children:(0,D.jsx)(a,{path:i,size:`1.25em`})}),(0,D.jsx)(`button`,{className:`btn btn--icon btn--primary`,children:(0,D.jsx)(a,{path:o,size:`1.25em`})}),(0,D.jsx)(`button`,{className:`btn btn--icon btn--outlined`,children:(0,D.jsx)(a,{path:s,size:`1.25em`})}),(0,D.jsxs)(`button`,{className:`btn btn--hover-swap`,children:[(0,D.jsx)(`span`,{children:`Hover me`}),(0,D.jsx)(`span`,{className:`hover-swap`,children:`🎉`})]}),(0,D.jsx)(c,{open:!1}),(0,D.jsx)(c,{open:!0}),(0,D.jsxs)(`button`,{className:`btn btn--icon`,children:[(0,D.jsx)(a,{path:i,size:`1.25em`}),(0,D.jsx)(`span`,{className:`badge`,children:`13`})]})]})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Inputs & Labels`}),(0,D.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,D.jsx)(`label`,{className:`label`,htmlFor:`input1`,children:`Label`}),(0,D.jsx)(`input`,{className:`input`,id:`input1`,placeholder:`Type here...`}),(0,D.jsx)(`label`,{className:`label`,htmlFor:`select1`,children:`Select`}),(0,D.jsxs)(`select`,{className:`input`,id:`select1`,children:[(0,D.jsx)(`option`,{children:`Option 1`}),(0,D.jsx)(`option`,{children:`Option 2`})]}),(0,D.jsx)(`label`,{className:`label`,htmlFor:`revisionSelect`,children:`Revision Select`}),(0,D.jsx)(_,{headGroups:{Branches:{main:`abcdef`},Tags:{}},disabled:!1,analyzedBranches:[],className:`input`})]})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`LoadingIndicator`}),(0,D.jsx)(g,{loadingText:`Loading something...`,showProgress:!1})]}),(0,D.jsx)(`div`,{className:`card`,children:(0,D.jsx)(T,{installedVersion:`1.0.0`,latestVersion:`1.0.0`})}),(0,D.jsx)(`div`,{className:`card`,children:(0,D.jsx)(T,{installedVersion:`1.0.0`,latestVersion:`1.0.1`})}),(0,D.jsx)(`div`,{className:`card`,children:(0,D.jsx)(T,{installedVersion:`0.0.0-98822df`,latestVersion:`1.0.1`})}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`AuthorOptions`}),(0,D.jsx)(S,{showUnionAuthorsModal:()=>alert(`Show union authors modal`)})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Slider, round handles`}),(0,D.jsx)(`p`,{className:`text-sm`,children:`Demonstrates the same rail, handles, and tracks that power the in-app time range picker.`}),(0,D.jsx)(k,{handleType:`round`})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Slider, qquare Handles`}),(0,D.jsx)(`p`,{className:`text-sm`,children:`Same range selector with the column-style handles used in tighter layouts.`}),(0,D.jsx)(k,{handleType:`square`})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`IconRadioGroup`}),(()=>(0,D.jsx)(v,{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,D.jsx)(v,{large:!0,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,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Breadcrumb`}),(0,D.jsx)(b,{})]}),(0,D.jsx)(`div`,{className:`card relative`,children:(0,D.jsx)(m,{})}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Tooltip (Demo)`}),(0,D.jsxs)(`div`,{className:`flex flex-col items-start gap-2 p-4`,children:[(0,D.jsx)(`span`,{children:`Hover over the button to show tooltip:`}),(0,D.jsxs)(`div`,{className:``,children:[(0,D.jsxs)(`button`,{className:`btn btn--icon`,onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,D.jsx)(`span`,{className:`icon`,children:`🛈`}),` Hover me`]}),e&&(0,D.jsx)(p,{hoveredObject:{type:`blob`,name:`demo.txt`,path:`src/demo.txt`,hash:`abc123`,sizeInBytes:42}})]})]})]})]})]})})});export{A as default};
1
+ import{i as e,n as t,t as n}from"./jsx-runtime-BVRj4wYA.js";import{z as r}from"./chunk-LFPYN7LY-CPTP6242.js";import"./react-dom-_FKEaPb7.js";import{Dt as i,Wt as a,nt as o,vt as s}from"./styling-B8OEge8x.js";import{T as c}from"./util-1G1Ez1rt.js";import{C as l,S as u,_ as d,b as f,d as p,f as m,g as h,h as g,l as _,m as v,p as y,r as b,v as x,w as S,x as C,y as w}from"./browse-CuAoODR1.js";import{t as T}from"./GitTruckInfo-C1VOiqSW.js";import"./UnionAuthorsModal-D-H775E5.js";var E=e(t(),1),D=e(n(),1),O={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 k({handleType:e=`round`}){let t=[0,100],[n,r]=(0,E.useState)([20,80]),i=e=>{r([e[0],e[1]])};return(0,D.jsxs)(`div`,{className:`space-y-4`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`p`,{className:`text-xs tracking-wide text-gray-500 uppercase dark:text-gray-400`,children:`Selected window`}),(0,D.jsxs)(`p`,{className:`text-lg font-semibold`,children:[n[0],`% – `,n[1],`%`]})]}),(0,D.jsxs)(u,{className:`relative`,mode:2,step:1,domain:t,values:n,onUpdate:i,onChange:i,children:[(0,D.jsx)(C,{children:d}),(0,D.jsx)(f,{children:({handles:n,getHandleProps:r})=>(0,D.jsx)(`div`,{children:n.map((n,i)=>(0,D.jsx)(h,{handle:n,domain:t,getHandleProps:r,handleType:e,title:`Drag to adjust the ${i===0?`start`:`end`} threshold`},n.id))})}),(0,D.jsx)(l,{left:!1,right:!1,children:({tracks:t,getTrackProps:n})=>(0,D.jsx)(`div`,{children:t.map(({id:t,...r})=>(0,D.jsx)(w,{trackType:e,...r,getTrackProps:n,backgroundColor:`#7aa0c4`},t))})})]}),(0,D.jsxs)(`div`,{className:`flex justify-between text-sm font-medium`,children:[(0,D.jsxs)(`span`,{children:[`Start: `,n[0],`%`]}),(0,D.jsxs)(`span`,{children:[`End: `,n[1],`%`]})]}),(0,D.jsx)(x,{below:!0,count:5,tickToLabel:e=>`${Math.round(e*100)}%`})]})}var A=r(function(){let[e,t]=(0,E.useState)(!1);return(0,D.jsx)(y,{data:O,children:(0,D.jsxs)(`div`,{className:`mx-auto max-w-3xl space-y-8 p-2`,children:[(0,D.jsx)(`h1`,{className:`mb-4 text-2xl font-bold`,children:`UI Components`}),(0,D.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Default Card`}),(0,D.jsx)(`p`,{className:`text-sm`,children:`This is a simple card with some text content.`})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsxs)(`div`,{className:`card__header`,children:[(0,D.jsx)(`span`,{className:`icon`,children:`🚚`}),(0,D.jsx)(`h2`,{className:`card__title`,children:`Card with Header`})]}),(0,D.jsx)(`div`,{className:`card__content`,children:(0,D.jsx)(`p`,{className:`text-sm`,children:`Card with header, subtitle, and content.`})})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Buttons`}),(0,D.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,D.jsx)(`button`,{className:`btn`,children:`Default`}),(0,D.jsx)(`button`,{className:`btn btn--text`,children:`Default text`}),(0,D.jsx)(`button`,{className:`btn btn--primary`,children:`Primary`}),(0,D.jsx)(`button`,{className:`btn btn--primary btn--outlined`,children:`Primary Outlined`}),(0,D.jsx)(`button`,{className:`btn btn--primary btn--text`,children:`Primary Text`}),(0,D.jsx)(`button`,{className:`btn btn--danger`,children:`Danger`}),(0,D.jsx)(`button`,{className:`btn btn--danger btn--outlined`,children:`Danger Outlined`}),(0,D.jsx)(`button`,{className:`btn btn--danger btn--text`,children:`Danger Text`}),(0,D.jsx)(`button`,{className:`btn btn--icon`,children:(0,D.jsx)(a,{path:i,size:`1.25em`})}),(0,D.jsx)(`button`,{className:`btn btn--icon btn--primary`,children:(0,D.jsx)(a,{path:o,size:`1.25em`})}),(0,D.jsx)(`button`,{className:`btn btn--icon btn--outlined`,children:(0,D.jsx)(a,{path:s,size:`1.25em`})}),(0,D.jsxs)(`button`,{className:`btn btn--hover-swap`,children:[(0,D.jsx)(`span`,{children:`Hover me`}),(0,D.jsx)(`span`,{className:`hover-swap`,children:`🎉`})]}),(0,D.jsx)(c,{open:!1}),(0,D.jsx)(c,{open:!0}),(0,D.jsxs)(`button`,{className:`btn btn--icon`,children:[(0,D.jsx)(a,{path:i,size:`1.25em`}),(0,D.jsx)(`span`,{className:`badge`,children:`13`})]})]})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Inputs & Labels`}),(0,D.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,D.jsx)(`label`,{className:`label`,htmlFor:`input1`,children:`Label`}),(0,D.jsx)(`input`,{className:`input`,id:`input1`,placeholder:`Type here...`}),(0,D.jsx)(`label`,{className:`label`,htmlFor:`select1`,children:`Select`}),(0,D.jsxs)(`select`,{className:`input`,id:`select1`,children:[(0,D.jsx)(`option`,{children:`Option 1`}),(0,D.jsx)(`option`,{children:`Option 2`})]}),(0,D.jsx)(`label`,{className:`label`,htmlFor:`revisionSelect`,children:`Revision Select`}),(0,D.jsx)(_,{headGroups:{Branches:{main:`abcdef`},Tags:{}},disabled:!1,analyzedBranches:[],className:`input`})]})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`LoadingIndicator`}),(0,D.jsx)(g,{loadingText:`Loading something...`,showProgress:!1})]}),(0,D.jsx)(`div`,{className:`card`,children:(0,D.jsx)(T,{installedVersion:`1.0.0`,latestVersion:`1.0.0`})}),(0,D.jsx)(`div`,{className:`card`,children:(0,D.jsx)(T,{installedVersion:`1.0.0`,latestVersion:`1.0.1`})}),(0,D.jsx)(`div`,{className:`card`,children:(0,D.jsx)(T,{installedVersion:`0.0.0-98822df`,latestVersion:`1.0.1`})}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`AuthorOptions`}),(0,D.jsx)(S,{showUnionAuthorsModal:()=>alert(`Show union authors modal`)})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Slider, round handles`}),(0,D.jsx)(`p`,{className:`text-sm`,children:`Demonstrates the same rail, handles, and tracks that power the in-app time range picker.`}),(0,D.jsx)(k,{handleType:`round`})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Slider, qquare Handles`}),(0,D.jsx)(`p`,{className:`text-sm`,children:`Same range selector with the column-style handles used in tighter layouts.`}),(0,D.jsx)(k,{handleType:`square`})]}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`IconRadioGroup`}),(()=>(0,D.jsx)(v,{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,D.jsx)(v,{large:!0,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,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Breadcrumb`}),(0,D.jsx)(b,{})]}),(0,D.jsx)(`div`,{className:`card relative`,children:(0,D.jsx)(m,{})}),(0,D.jsxs)(`div`,{className:`card`,children:[(0,D.jsx)(`h2`,{className:`card__title`,children:`Tooltip (Demo)`}),(0,D.jsxs)(`div`,{className:`flex flex-col items-start gap-2 p-4`,children:[(0,D.jsx)(`span`,{children:`Hover over the button to show tooltip:`}),(0,D.jsxs)(`div`,{className:``,children:[(0,D.jsxs)(`button`,{className:`btn btn--icon`,onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,D.jsx)(`span`,{className:`icon`,children:`🛈`}),` Hover me`]}),e&&(0,D.jsx)(p,{hoveredObject:{type:`blob`,name:`demo.txt`,path:`src/demo.txt`,hash:`abc123`,sizeInBytes:42}})]})]})]})]})]})})});export{A as default};
@@ -1 +1 @@
1
- import"./jsx-runtime-BVRj4wYA.js";import"./react-dom-_FKEaPb7.js";import"./styling-B8OEge8x.js";import"./util-1G1Ez1rt.js";import{c as e,i as t}from"./browse-7BJg-qfM.js";import"./GitTruckInfo-C1VOiqSW.js";import"./UnionAuthorsModal-D-H775E5.js";export{e as default,t as meta};
1
+ import"./jsx-runtime-BVRj4wYA.js";import"./react-dom-_FKEaPb7.js";import"./styling-B8OEge8x.js";import"./util-1G1Ez1rt.js";import{c as e,i as t}from"./browse-CuAoODR1.js";import"./GitTruckInfo-C1VOiqSW.js";import"./UnionAuthorsModal-D-H775E5.js";export{e as default,t as meta};
@@ -1 +1 @@
1
- import{i as e,n as t,t as n}from"./jsx-runtime-BVRj4wYA.js";import{A as r,L as i,N as a,k as o,t as s,z as c}from"./chunk-LFPYN7LY-CPTP6242.js";import"./react-dom-_FKEaPb7.js";import{h as l,p as u}from"./styling-B8OEge8x.js";import{U as d,s as f,w as p}from"./util-1G1Ez1rt.js";import{T as m}from"./browse-7BJg-qfM.js";import"./GitTruckInfo-C1VOiqSW.js";import"./UnionAuthorsModal-D-H775E5.js";import{t as h}from"./RepoTabs-4-CQeS6M.js";var g=e(t()),_=e(n());function v(e){let[,t]=p();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)(f,{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:`${l(e.value.committertime*1e3)} (${u(e.value.committertime)})`}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(y,{keyString:`Date committed`,value:`${l(e.value.committertime*1e3)} (${u(e.value.committertime)})`}),(0,_.jsx)(y,{keyString:`Date authored`,value:`${l(e.value.authortime*1e3)} (${u(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 n=a(),o=r(),[s,c]=i(),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}),n.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:e,commitsPromise:t}=o();return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h,{}),(0,_.jsx)(g.Suspense,{fallback:(0,_.jsx)(`p`,{children:`Loading commits...`}),children:(0,_.jsx)(s,{resolve:t,children:t=>(0,_.jsx)(S,{commits:t,commitCount:e??0})})})]})});export{C as default};
1
+ import{i as e,n as t,t as n}from"./jsx-runtime-BVRj4wYA.js";import{A as r,L as i,N as a,k as o,t as s,z as c}from"./chunk-LFPYN7LY-CPTP6242.js";import"./react-dom-_FKEaPb7.js";import{h as l,p as u}from"./styling-B8OEge8x.js";import{U as d,s as f,w as p}from"./util-1G1Ez1rt.js";import{T as m}from"./browse-CuAoODR1.js";import"./GitTruckInfo-C1VOiqSW.js";import"./UnionAuthorsModal-D-H775E5.js";import{t as h}from"./RepoTabs-xQ7LCUn1.js";var g=e(t()),_=e(n());function v(e){let[,t]=p();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)(f,{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:`${l(e.value.committertime*1e3)} (${u(e.value.committertime)})`}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(y,{keyString:`Date committed`,value:`${l(e.value.committertime*1e3)} (${u(e.value.committertime)})`}),(0,_.jsx)(y,{keyString:`Date authored`,value:`${l(e.value.authortime*1e3)} (${u(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 n=a(),o=r(),[s,c]=i(),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}),n.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:e,commitsPromise:t}=o();return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h,{}),(0,_.jsx)(g.Suspense,{fallback:(0,_.jsx)(`p`,{children:`Loading commits...`}),children:(0,_.jsx)(s,{resolve:t,children:t=>(0,_.jsx)(S,{commits:t,commitCount:e??0})})})]})});export{C as default};
@@ -1 +1 @@
1
- import{i as e,n as t,t as n}from"./jsx-runtime-BVRj4wYA.js";import{A as r,N as i,V as a,a as o,k as s,r as c,t as l,z as u}from"./chunk-LFPYN7LY-CPTP6242.js";import"./react-dom-_FKEaPb7.js";import{Et as d,Ft as f,O as p,Wt as m,_ as h,ct as g,f as _,j as v,z as y}from"./styling-B8OEge8x.js";import{T as b,V as x,s as S,w as C}from"./util-1G1Ez1rt.js";import{E as w,T,a as E,o as D,s as O,u as k}from"./browse-7BJg-qfM.js";import"./GitTruckInfo-C1VOiqSW.js";import"./UnionAuthorsModal-D-H775E5.js";import{t as A}from"./RepoTabs-4-CQeS6M.js";var j=e(t()),M=e(n());function N(e){let[,t]=C();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)(S,{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=x(),[t,n]=w(D);return{path:t.path??e.repo.repositoryPath,setPath:(0,j.useCallback)(e=>n(t=>({...t,path:e})),[n])}}const V=a(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:e}=B(),{showUnionAuthorsModal:t}=E(),{path:n,authorDistributionPromise:a}=s(),u=x(),{state:d}=i(),h=r(),_=h.state?.clickedObject,b=k(),[S]=w(D),C=h.pathname+O({...S,zoomPath:n});if((0,j.useEffect)(()=>{b(!!_)},[_,b]),!_)return(0,M.jsx)(`p`,{className:`p-4`,children:`No file or folder selected`});let T=u.databaseInfo.commitCounts[n],N=_.type===`blob`,P=p(_.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:T??0}):null,N?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(X,{size:_.sizeInBytes,isBinary:!1}),(0,M.jsx)(J,{epoch:u.databaseInfo.lastChanged[n]})]}):(0,M.jsx)(Z,{clickedTree:_}),(0,M.jsx)(Y,{path:_.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)(l,{resolve:a,children:e=>(0,M.jsx)(G,{authorDistribution:e})})})})]}),(0,M.jsxs)(`button`,{className:`btn`,onClick:t,children:[(0,M.jsx)(m,{path:y}),`Group authors`]}),(0,M.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:[(0,M.jsxs)(o,{className:`btn`,to:C,children:[(0,M.jsx)(m,{path:f}),`Zoom to this `,N?`file`:`folder`]}),N?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(c,{className:`w-max`,method:`post`,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`ignore`,value:_.path}),(0,M.jsxs)(`button`,{className:`btn`,type:`submit`,disabled:d!==`idle`,title:`Hide this file`,children:[(0,M.jsx)(m,{path:g}),`Hide`]})]}),_.name.includes(`.`)?(0,M.jsxs)(c,{className:`w-max`,method:`post`,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`ignore`,value:`*.${P}`}),(0,M.jsxs)(`button`,{className:`btn`,type:`submit`,disabled:d!==`idle`,title:`Hide all files with .${P} extension`,children:[(0,M.jsx)(m,{path:g}),(0,M.jsxs)(`span`,{children:[`Hide *.`,P]})]})]}):null]}):(0,M.jsxs)(c,{method:`post`,action:h.pathname,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`ignore`,value:_.path}),(0,M.jsxs)(`button`,{className:`btn`,type:`submit`,disabled:d!==`idle`,onClick:()=>{e(v(n))},children:[(0,M.jsx)(m,{path:g}),`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)(b,{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}=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:`Type`}),(0,M.jsx)(`div`,{className:`flex gap-1 text-sm`,children:e?h(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?_(e.epoch):`unknown`})]})}function Y(e){let{state:t}=i(),{clickedObject:n}=T();return n?(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)(c,{method:`post`,action:location.pathname,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`open`,value:n.path}),(0,M.jsx)(`button`,{className:`btn--icon`,disabled:t!==`idle`,title:n.type===`blob`?`Open file in default app`:`Browse folder in system explorer`,children:(0,M.jsx)(m,{path:d,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{i as e,n as t,t as n}from"./jsx-runtime-BVRj4wYA.js";import{A as r,N as i,V as a,a as o,k as s,r as c,t as l,z as u}from"./chunk-LFPYN7LY-CPTP6242.js";import"./react-dom-_FKEaPb7.js";import{Et as d,Ft as f,O as p,Wt as m,_ as h,ct as g,f as _,j as v,z as y}from"./styling-B8OEge8x.js";import{T as b,V as x,s as S,w as C}from"./util-1G1Ez1rt.js";import{E as w,T,a as E,o as D,s as O,u as k}from"./browse-CuAoODR1.js";import"./GitTruckInfo-C1VOiqSW.js";import"./UnionAuthorsModal-D-H775E5.js";import{t as A}from"./RepoTabs-xQ7LCUn1.js";var j=e(t()),M=e(n());function N(e){let[,t]=C();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)(S,{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=x(),[t,n]=w(D);return{path:t.path??e.repo.repositoryPath,setPath:(0,j.useCallback)(e=>n(t=>({...t,path:e})),[n])}}const V=a(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:e}=B(),{showUnionAuthorsModal:t}=E(),{path:n,authorDistributionPromise:a}=s(),u=x(),{state:d}=i(),h=r(),_=h.state?.clickedObject,b=k(),[S]=w(D),C=h.pathname+O({...S,zoomPath:n});if((0,j.useEffect)(()=>{b(!!_)},[_,b]),!_)return(0,M.jsx)(`p`,{className:`p-4`,children:`No file or folder selected`});let T=u.databaseInfo.commitCounts[n],N=_.type===`blob`,P=p(_.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:T??0}):null,N?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(X,{size:_.sizeInBytes,isBinary:!1}),(0,M.jsx)(J,{epoch:u.databaseInfo.lastChanged[n]})]}):(0,M.jsx)(Z,{clickedTree:_}),(0,M.jsx)(Y,{path:_.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)(l,{resolve:a,children:e=>(0,M.jsx)(G,{authorDistribution:e})})})})]}),(0,M.jsxs)(`button`,{className:`btn`,onClick:t,children:[(0,M.jsx)(m,{path:y}),`Group authors`]}),(0,M.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:[(0,M.jsxs)(o,{className:`btn`,to:C,children:[(0,M.jsx)(m,{path:f}),`Zoom to this `,N?`file`:`folder`]}),N?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(c,{className:`w-max`,method:`post`,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`ignore`,value:_.path}),(0,M.jsxs)(`button`,{className:`btn`,type:`submit`,disabled:d!==`idle`,title:`Hide this file`,children:[(0,M.jsx)(m,{path:g}),`Hide`]})]}),_.name.includes(`.`)?(0,M.jsxs)(c,{className:`w-max`,method:`post`,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`ignore`,value:`*.${P}`}),(0,M.jsxs)(`button`,{className:`btn`,type:`submit`,disabled:d!==`idle`,title:`Hide all files with .${P} extension`,children:[(0,M.jsx)(m,{path:g}),(0,M.jsxs)(`span`,{children:[`Hide *.`,P]})]})]}):null]}):(0,M.jsxs)(c,{method:`post`,action:h.pathname,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`ignore`,value:_.path}),(0,M.jsxs)(`button`,{className:`btn`,type:`submit`,disabled:d!==`idle`,onClick:()=>{e(v(n))},children:[(0,M.jsx)(m,{path:g}),`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)(b,{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}=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:`Type`}),(0,M.jsx)(`div`,{className:`flex gap-1 text-sm`,children:e?h(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?_(e.epoch):`unknown`})]})}function Y(e){let{state:t}=i(),{clickedObject:n}=T();return n?(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)(c,{method:`post`,action:location.pathname,children:[(0,M.jsx)(`input`,{type:`hidden`,name:`open`,value:n.path}),(0,M.jsx)(`button`,{className:`btn--icon`,disabled:t!==`idle`,title:n.type===`blob`?`Open file in default app`:`Browse folder in system explorer`,children:(0,M.jsx)(m,{path:d,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.0.0";
183
+ const version = "3.0.2";
184
184
  const description = "Visualizing a Git repository";
185
185
  const main = "./cli.mjs";
186
186
  const bin = "./cli.mjs";
@@ -263,7 +263,7 @@ const devDependencies = {
263
263
  "@types/d3": "^7.4.3",
264
264
  "@types/d3-hierarchy": "^3.1.7",
265
265
  "@types/express": "^5.0.6",
266
- "@types/node": "^24.10.13",
266
+ "@types/node": "^25.3.0",
267
267
  "@types/randomstring": "^1.3.0",
268
268
  "@types/react": "^19.2.14",
269
269
  "@types/react-dom": "^19.2.3",
@@ -348,11 +348,7 @@ var package_default = {
348
348
  devDependencies,
349
349
  tsdown,
350
350
  prettier,
351
- "lint-staged": { "{src,scripts}/**/*.{ts,tsx,js,mjs}": [
352
- "knip --fix",
353
- "eslint --cache --fix",
354
- "prettier --write"
355
- ] },
351
+ "lint-staged": { "{src,scripts}/**/*.{ts,tsx,js,mjs}": ["eslint --cache --fix", "prettier --write"] },
356
352
  knip,
357
353
  engines,
358
354
  repository,
@@ -11416,12 +11412,29 @@ function Breadcrumb({ className = "", zoom = false }) {
11416
11412
  }
11417
11413
  function useClickedObject() {
11418
11414
  const location$1 = useLocation();
11419
- const [objectPath, setObjectPath] = useQueryState("objectPath", viewSearchParamsConfig.objectPath);
11415
+ const [params] = useQueryStates(viewSearchParamsConfig);
11416
+ const clickedObject = params.objectPath ? location$1.state?.clickedObject ?? null : null;
11417
+ const navigate = useNavigate();
11418
+ const tabURL = useMatch(href("/view/commits")) ? "/view/commits" : "/view/details";
11420
11419
  return {
11421
- clickedObject: objectPath ? location$1.state?.clickedObject ?? null : null,
11420
+ clickedObject,
11422
11421
  setClickedObject: useCallback((object) => {
11423
- setObjectPath(!object ? null : object.path);
11424
- }, [setObjectPath])
11422
+ if (object) {
11423
+ navigate(tabURL + viewSerializer({
11424
+ ...params,
11425
+ objectPath: object.path
11426
+ }), { state: { clickedObject: object } });
11427
+ return;
11428
+ }
11429
+ navigate(href("/view") + viewSerializer({
11430
+ ...params,
11431
+ objectPath: null
11432
+ }));
11433
+ }, [
11434
+ navigate,
11435
+ params,
11436
+ tabURL
11437
+ ])
11425
11438
  };
11426
11439
  }
11427
11440
  const SearchContext = createContext$1(void 0);
@@ -12626,6 +12639,10 @@ const SearchCard = memo(function SearchCard$1() {
12626
12639
  value: object.path,
12627
12640
  onKeyDown: (event) => {
12628
12641
  const currentIndex = resultRefs.findIndex((ref) => ref.current === event.currentTarget);
12642
+ if (event.key === "Escape") {
12643
+ searchFieldRef.current?.focus();
12644
+ searchFieldRef.current?.select();
12645
+ }
12629
12646
  if (event.key === "ArrowDown") {
12630
12647
  event.preventDefault();
12631
12648
  if (resultRefs.length === 0) return;
@@ -13817,7 +13834,7 @@ var view_default = UNSAFE_withComponentProps(function Repo() {
13817
13834
  }),
13818
13835
  /* @__PURE__ */ jsx(CollapsibleHeader, {
13819
13836
  className: "card",
13820
- title: /* @__PURE__ */ jsxs(Fragment, { children: ["Visualization options", /* @__PURE__ */ jsx(CollapsableSettings, {})] }),
13837
+ title: /* @__PURE__ */ jsx(Fragment, { children: "Visualization options" }),
13821
13838
  contentClassName: "pb-6 flex flex-col gap-2",
13822
13839
  children: /* @__PURE__ */ jsx(Options, {})
13823
13840
  }),
@@ -13872,7 +13889,8 @@ var view_default = UNSAFE_withComponentProps(function Repo() {
13872
13889
  /* @__PURE__ */ jsx(SearchCard, {}),
13873
13890
  /* @__PURE__ */ jsx(RefreshButton, {}),
13874
13891
  /* @__PURE__ */ jsx(HiddenFiles, {}),
13875
- /* @__PURE__ */ jsx(FullscreenButton, {})
13892
+ /* @__PURE__ */ jsx(FullscreenButton, {}),
13893
+ /* @__PURE__ */ jsx(CollapsableSettings, {})
13876
13894
  ]
13877
13895
  })
13878
13896
  ]
@@ -15263,9 +15281,9 @@ var server_manifest_default = {
15263
15281
  "hasClientMiddleware": false,
15264
15282
  "hasDefaultExport": true,
15265
15283
  "hasErrorBoundary": false,
15266
- "module": "/assets/browse-CPjwuHQe.js",
15284
+ "module": "/assets/browse-CPxPbHtx.js",
15267
15285
  "imports": [
15268
- "/assets/browse-7BJg-qfM.js",
15286
+ "/assets/browse-CuAoODR1.js",
15269
15287
  "/assets/styling-B8OEge8x.js",
15270
15288
  "/assets/util-1G1Ez1rt.js",
15271
15289
  "/assets/react-dom-_FKEaPb7.js",
@@ -15316,9 +15334,9 @@ var server_manifest_default = {
15316
15334
  "hasClientMiddleware": false,
15317
15335
  "hasDefaultExport": true,
15318
15336
  "hasErrorBoundary": false,
15319
- "module": "/assets/view-ZFr-KZ5c.js",
15337
+ "module": "/assets/view-ESMBoxIY.js",
15320
15338
  "imports": [
15321
- "/assets/browse-7BJg-qfM.js",
15339
+ "/assets/browse-CuAoODR1.js",
15322
15340
  "/assets/styling-B8OEge8x.js",
15323
15341
  "/assets/util-1G1Ez1rt.js",
15324
15342
  "/assets/react-dom-_FKEaPb7.js",
@@ -15398,16 +15416,16 @@ var server_manifest_default = {
15398
15416
  "hasClientMiddleware": false,
15399
15417
  "hasDefaultExport": true,
15400
15418
  "hasErrorBoundary": false,
15401
- "module": "/assets/view.commits-D4Q38_m5.js",
15419
+ "module": "/assets/view.commits-DP_ltd6_.js",
15402
15420
  "imports": [
15403
15421
  "/assets/chunk-LFPYN7LY-CPTP6242.js",
15404
- "/assets/browse-7BJg-qfM.js",
15422
+ "/assets/browse-CuAoODR1.js",
15405
15423
  "/assets/styling-B8OEge8x.js",
15406
15424
  "/assets/util-1G1Ez1rt.js",
15407
15425
  "/assets/react-dom-_FKEaPb7.js",
15408
15426
  "/assets/jsx-runtime-BVRj4wYA.js",
15409
15427
  "/assets/GitTruckInfo-C1VOiqSW.js",
15410
- "/assets/RepoTabs-4-CQeS6M.js",
15428
+ "/assets/RepoTabs-xQ7LCUn1.js",
15411
15429
  "/assets/UnionAuthorsModal-D-H775E5.js",
15412
15430
  "/assets/compare-Br3z3FUS-OODPzXmX.js",
15413
15431
  "/assets/chunk-JPUPSTYD-XO4UPun8.js"
@@ -15431,16 +15449,16 @@ var server_manifest_default = {
15431
15449
  "hasClientMiddleware": false,
15432
15450
  "hasDefaultExport": true,
15433
15451
  "hasErrorBoundary": false,
15434
- "module": "/assets/view.details-CVK0Sh-y.js",
15452
+ "module": "/assets/view.details-C6kuGyhb.js",
15435
15453
  "imports": [
15436
15454
  "/assets/chunk-LFPYN7LY-CPTP6242.js",
15437
- "/assets/browse-7BJg-qfM.js",
15455
+ "/assets/browse-CuAoODR1.js",
15438
15456
  "/assets/styling-B8OEge8x.js",
15439
15457
  "/assets/util-1G1Ez1rt.js",
15440
15458
  "/assets/react-dom-_FKEaPb7.js",
15441
15459
  "/assets/jsx-runtime-BVRj4wYA.js",
15442
15460
  "/assets/GitTruckInfo-C1VOiqSW.js",
15443
- "/assets/RepoTabs-4-CQeS6M.js",
15461
+ "/assets/RepoTabs-xQ7LCUn1.js",
15444
15462
  "/assets/UnionAuthorsModal-D-H775E5.js",
15445
15463
  "/assets/compare-Br3z3FUS-OODPzXmX.js",
15446
15464
  "/assets/chunk-JPUPSTYD-XO4UPun8.js"
@@ -15485,10 +15503,10 @@ var server_manifest_default = {
15485
15503
  "hasClientMiddleware": false,
15486
15504
  "hasDefaultExport": true,
15487
15505
  "hasErrorBoundary": false,
15488
- "module": "/assets/ui-CGg0wrDR.js",
15506
+ "module": "/assets/ui-nIuMvo3S.js",
15489
15507
  "imports": [
15490
15508
  "/assets/chunk-LFPYN7LY-CPTP6242.js",
15491
- "/assets/browse-7BJg-qfM.js",
15509
+ "/assets/browse-CuAoODR1.js",
15492
15510
  "/assets/styling-B8OEge8x.js",
15493
15511
  "/assets/util-1G1Ez1rt.js",
15494
15512
  "/assets/react-dom-_FKEaPb7.js",
@@ -15526,8 +15544,8 @@ var server_manifest_default = {
15526
15544
  "hydrateFallbackModule": void 0
15527
15545
  }
15528
15546
  },
15529
- "url": "/assets/manifest-c5f30ffe.js",
15530
- "version": "c5f30ffe",
15547
+ "url": "/assets/manifest-b5d81016.js",
15548
+ "version": "b5d81016",
15531
15549
  "sri": void 0
15532
15550
  };
15533
15551
  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-SmQQTUGx.js") }));
4
+ app.use(createRequestHandler({ build: () => import("./assets/server-build-D47uxE8F.js") }));
5
5
  export { app };
package/cli.mjs CHANGED
@@ -37723,7 +37723,7 @@ var require_express = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37723
37723
  //#endregion
37724
37724
  //#region package.json
37725
37725
  var import_express = /* @__PURE__ */ __toESM(require_express(), 1);
37726
- var version = "3.0.0";
37726
+ var version = "3.0.2";
37727
37727
  var homepage = "https://github.com/git-truck/git-truck#readme";
37728
37728
 
37729
37729
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-truck",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
5
  "description": "Visualizing a Git repository",
6
6
  "license": "MIT",
@@ -85,7 +85,7 @@
85
85
  "@types/d3": "^7.4.3",
86
86
  "@types/d3-hierarchy": "^3.1.7",
87
87
  "@types/express": "^5.0.6",
88
- "@types/node": "^24.10.13",
88
+ "@types/node": "^25.3.0",
89
89
  "@types/randomstring": "^1.3.0",
90
90
  "@types/react": "^19.2.14",
91
91
  "@types/react-dom": "^19.2.3",
@@ -152,7 +152,6 @@
152
152
  },
153
153
  "lint-staged": {
154
154
  "{src,scripts}/**/*.{ts,tsx,js,mjs}": [
155
- "knip --fix",
156
155
  "eslint --cache --fix",
157
156
  "prettier --write"
158
157
  ]