git-truck 0.0.0-04d9aa7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +89 -0
- package/build/_assets/App-CCO27G3C.css +3 -0
- package/build/_assets/Chart-OOZGWRB3.css +26 -0
- package/build/_assets/index-ISZFG75V.css +52 -0
- package/build/_assets/truck-7F5JWBYT.gif +0 -0
- package/build/_assets/vars-SMWRLQRH.css +25 -0
- package/build/cli.js +217658 -0
- package/build/index.js +7392 -0
- package/cli.js +4 -0
- package/package.json +118 -0
- package/public/build/_assets/App-CCO27G3C.css +3 -0
- package/public/build/_assets/Chart-OOZGWRB3.css +26 -0
- package/public/build/_assets/index-ISZFG75V.css +52 -0
- package/public/build/_assets/truck-7F5JWBYT.gif +0 -0
- package/public/build/_assets/vars-SMWRLQRH.css +25 -0
- package/public/build/_shared/chunk-2BPXJFRU.js +67 -0
- package/public/build/_shared/chunk-2EHCKJST.js +1 -0
- package/public/build/_shared/chunk-EOMKHWUT.js +1 -0
- package/public/build/_shared/chunk-FTSBCPJ3.js +234 -0
- package/public/build/_shared/chunk-XMAWJ27N.js +26 -0
- package/public/build/entry.client-YPWZXPQ4.js +1 -0
- package/public/build/manifest-99EFEE04.js +1 -0
- package/public/build/root-2YIKZDZQ.js +1 -0
- package/public/build/routes/$repo.$-SDMDCNJB.js +350 -0
- package/public/build/routes/index-4NZQTZSQ.js +61 -0
- package/public/favicon.ico +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import{a as s,b as D,c as I,d as O,e as t,m as L,n as V}from"/build/_shared/chunk-EOMKHWUT.js";import{A as H,K as w,L as x,Q as E,a as Z,c as n,s as a}from"/build/_shared/chunk-FTSBCPJ3.js";import{c as r,d as M,k as d,q as N,r as h,v as m}from"/build/_shared/chunk-2BPXJFRU.js";var c=r(D()),f=r(O());var R="/build/_assets/truck-7F5JWBYT.gif";var i=r(m()),T=n.div`
|
|
2
|
+
padding: 0.5em 2em;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
/* hide_initially animation */
|
|
7
|
+
opacity: 0;
|
|
8
|
+
animation: hide_initially 0s linear forwards;
|
|
9
|
+
animation-delay: 1s;
|
|
10
|
+
`,J=n.div`
|
|
11
|
+
display: grid;
|
|
12
|
+
place-items: center;
|
|
13
|
+
height: 100vh;
|
|
14
|
+
width: 100vw;
|
|
15
|
+
background-color: var(--global-bg-color);
|
|
16
|
+
`,F=n.div`
|
|
17
|
+
text-align: center;
|
|
18
|
+
`;function j(){return(0,i.jsx)(J,{children:(0,i.jsxs)(T,{children:[(0,i.jsx)("img",{src:R,alt:"\u{1F69B}",width:400}),(0,i.jsx)(F,{children:"Analyzing..."})]})})}s();var K=r(I());var u=r(M());var e=r(m());function v(){let o=N(),{repositories:g,baseDir:W,baseDirName:k}=o;return h().state!=="idle"?(0,e.jsx)(j,{}):(0,e.jsxs)(X,{children:[(0,e.jsx)(t,{}),(0,e.jsx)(Y,{children:"Welcome to Git Truck!"}),(0,e.jsx)(t,{}),(0,e.jsxs)("p",{children:["Found ",g.length," git repositories in the folder ",(0,e.jsx)(w,{inline:!0,title:W,children:k}),"."]}),(0,e.jsx)(t,{}),g.length===0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t,{}),(0,e.jsxs)("p",{children:["Try running ",(0,e.jsx)(w,{inline:!0,children:"git-truck"})," in another folder or provide another path as argument."]})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t,{xxl:!0}),(0,e.jsx)("nav",{children:(0,e.jsx)(b,{children:g.map(G=>(0,e.jsx)(S,{repo:G},G.path))})})]})]})}function S({repo:o}){let[g,W]=(0,u.useState)(o.currentHead),k=L(o.name,g),l=o.analyzedHeads[g],G=l?"green":void 0;return(0,e.jsx)($,{children:(0,e.jsxs)(H,{style:{outline:l?"1px solid green":void 0},children:[(0,e.jsxs)(a,{title:o.name,children:[o.name,l?(0,e.jsx)(_,{children:"Analyzed"}):null]}),(0,e.jsx)(t,{}),(0,e.jsx)(V,{value:g,onChange:U=>W(U.target.value),headGroups:o.refs,iconColor:G,analyzedHeads:o.analyzedHeads}),(0,e.jsx)(t,{}),(0,e.jsxs)(E,{children:[(0,e.jsx)(x,{}),(0,e.jsx)(p,{to:k,children:l?"View":"Analyze"})]})]})},o.name)}var X=n.div`
|
|
19
|
+
width: calc(100vw - 2 * var(--side-panel-width));
|
|
20
|
+
margin: auto;
|
|
21
|
+
padding: var(--unit);
|
|
22
|
+
|
|
23
|
+
@media(max-width: 1000px) {
|
|
24
|
+
width: 100vw;
|
|
25
|
+
}
|
|
26
|
+
`,Y=n.h1`
|
|
27
|
+
font-weight: normal;
|
|
28
|
+
`,b=n.ul`
|
|
29
|
+
list-style: none;
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
|
|
32
|
+
`,$=n.li`
|
|
33
|
+
margin: 0;
|
|
34
|
+
`,p=n(d)`
|
|
35
|
+
line-height: 100%;
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
font-weight: bold;
|
|
38
|
+
font-size: 0.9em;
|
|
39
|
+
color: ${o=>o.green?" green":Z`var(--text-color)`};
|
|
40
|
+
opacity: 75%;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
&:hover {
|
|
43
|
+
opacity: 100%;
|
|
44
|
+
}
|
|
45
|
+
`,_=n.span`
|
|
46
|
+
text-transform: uppercase;
|
|
47
|
+
font-weight: normal;
|
|
48
|
+
font-size: 0.6rem;
|
|
49
|
+
border: 1px solid currentColor;
|
|
50
|
+
color: green;
|
|
51
|
+
border-radius: 100000px;
|
|
52
|
+
padding: 2px 4px;
|
|
53
|
+
letter-spacing: 1px;
|
|
54
|
+
user-select: none;
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
display: flex;
|
|
57
|
+
place-items: center;
|
|
58
|
+
line-height: 100%;
|
|
59
|
+
vertical-align: middle;
|
|
60
|
+
align-content: flex-start;
|
|
61
|
+
`;export{v as default};
|
|
Binary file
|