浏览代码

Merge pull request #4 from christhoval06/main

Main
Christhoval Barba 1年前
父节点
当前提交
9f5cd3b002
没有帐户链接到提交者的电子邮件
共有 5 个文件被更改,包括 1239 次插入1162 次删除
  1. 1
    1
      Makefile
  2. 97
    0
      chart.json
  3. 581
    1114
      gitstats
  4. 112
    47
      gitstats.css
  5. 448
    0
      html.py

+ 1
- 1
Makefile 查看文件

@@ -1,7 +1,7 @@
1 1
 PREFIX=/usr/local
2 2
 BINDIR=$(PREFIX)/bin
3 3
 RESOURCEDIR=$(PREFIX)/share/gitstats
4
-RESOURCES=gitstats.css sortable.js *.gif tailwind.json
4
+RESOURCES=gitstats.css sortable.js *.gif tailwind.json html.py
5 5
 BINARIES=gitstats
6 6
 VERSION=$(shell git describe 2>/dev/null || git rev-parse --short HEAD 2>/dev/null || date +%Y-%m-%d)
7 7
 SEDVERSION=perl -pi -e 's/VERSION = 0/VERSION = "$(VERSION)"/' --

+ 97
- 0
chart.json 查看文件

@@ -0,0 +1,97 @@
1
+{
2
+  "series": [
3
+    {
4
+      "data": []
5
+    }
6
+  ],
7
+  "colors": ["#3C50E0"],
8
+  "chart": {
9
+    "fontFamily": "Satoshi, sans-serif",
10
+    "type": "bar",
11
+    "height": 350,
12
+    "toolbar": {
13
+      "show": false
14
+    }
15
+  },
16
+  "plotOptions": {
17
+    "bar": {
18
+      "horizontal": false,
19
+      "columnWidth": "55%",
20
+      "endingShape": "rounded",
21
+      "borderRadius": 2
22
+    },
23
+    "heatmap": {
24
+      "enableShades": false
25
+    }
26
+  },
27
+  "dataLabels": {
28
+    "enabled": false
29
+  },
30
+  "stroke": {
31
+    "show": true,
32
+    "width": 4,
33
+    "colors": ["transparent"]
34
+  },
35
+  "xaxis": {
36
+    "categories": [],
37
+    "floating": false,
38
+    "labels": {
39
+      "show": true,
40
+      "style": {
41
+        "fontFamily": "Inter, sans-serif",
42
+        "cssClass": "text-xs font-normal !fill-body dark:!fill-bodydark"
43
+      }
44
+    },
45
+    "axisBorder": {
46
+      "show": false
47
+    },
48
+    "axisTicks": {
49
+      "show": false
50
+    }
51
+  },
52
+  "legend": {
53
+    "show": true,
54
+    "position": "top",
55
+    "horizontalAlign": "left",
56
+    "fontFamily": "Satoshi",
57
+    "markers": {
58
+      "radius": 99
59
+    }
60
+  },
61
+  "yaxis": {
62
+    "title": false,
63
+    "labels": {
64
+      "show": true,
65
+      "style": {
66
+        "fontFamily": "Inter, sans-serif",
67
+        "cssClass": "text-xs font-normal !fill-body dark:!fill-bodydark"
68
+      }
69
+    }
70
+  },
71
+  "grid": {
72
+    "show": false,
73
+    "strokeDashArray": 4,
74
+    "padding": {
75
+      "left": 2,
76
+      "right": 2,
77
+      "top": -14
78
+    },
79
+    "yaxis": {
80
+      "lines": {
81
+        "show": false
82
+      }
83
+    }
84
+  },
85
+  "fill": {
86
+    "opacity": 1
87
+  },
88
+
89
+  "tooltip": {
90
+    "shared": true,
91
+    "intersect": false,
92
+    "x": {
93
+      "show": false
94
+    },
95
+    "y": {}
96
+  }
97
+}

+ 581
- 1114
gitstats
文件差异内容过多而无法显示
查看文件


+ 112
- 47
gitstats.css 查看文件

@@ -3,65 +3,65 @@
3 3
  */
4 4
 
5 5
 dt {
6
-	font-weight: bold;
7
-	float: left;
8
-	margin-right: 1em;
6
+  font-weight: bold;
7
+  float: left;
8
+  margin-right: 1em;
9 9
 }
10 10
 
11 11
 dt:after {
12
-	content: ': ';
12
+  content: ": ";
13 13
 }
14 14
 
15 15
 dd {
16
-	display: block;
17
-	clear: left;
16
+  display: block;
17
+  clear: left;
18 18
 }
19 19
 
20 20
 table {
21
-	border: 1px solid black;
22
-	border-collapse: collapse;
23
-	font-size: 80%;
24
-	margin-bottom: 1em;
21
+  border: 1px solid black;
22
+  border-collapse: collapse;
23
+  font-size: 80%;
24
+  margin-bottom: 1em;
25 25
 }
26 26
 
27 27
 table.noborders {
28
-	border: none;
28
+  border: none;
29 29
 }
30 30
 
31 31
 table.noborders td {
32
-	border: none;
32
+  border: none;
33 33
 }
34 34
 
35 35
 .vtable {
36
-	float: right;
37
-	clear: both;
36
+  float: right;
37
+  clear: both;
38 38
 }
39 39
 
40 40
 table.tags td {
41
-	vertical-align: top;
41
+  vertical-align: top;
42 42
 }
43 43
 
44 44
 td {
45
-	background-color: white;
45
+  background-color: white;
46 46
 }
47 47
 
48 48
 th {
49
-	background-color: #ddf;
49
+  background-color: #ddf;
50 50
 }
51 51
 
52 52
 th a {
53
-	text-decoration: none;
53
+  text-decoration: none;
54 54
 }
55 55
 
56 56
 tr:hover {
57
-	background-color: #ddf;
57
+  background-color: #ddf;
58 58
 }
59 59
 
60 60
 td {
61
-	border: 1px solid black;
62
-	padding: 0.2em;
63
-	padding-left: 0.3em;
64
-	padding-right: 0.2em;
61
+  border: 1px solid black;
62
+  padding: 0.2em;
63
+  padding-left: 0.3em;
64
+  padding-right: 0.2em;
65 65
 }
66 66
 
67 67
 /* Navigation bar; tabbed style */
@@ -96,46 +96,111 @@ td {
96 96
 } */
97 97
 
98 98
 main img {
99
-	border: 1px solid black;
100
-	padding: 0.5em;
101
-	background-color: white;
99
+  border: 1px solid black;
100
+  padding: 0.5em;
101
+  background-color: white;
102 102
 }
103 103
 
104 104
 th img {
105
-	border: 0px;
106
-	padding: 0px;
107
-	background-color: #ddf;
105
+  border: 0px;
106
+  padding: 0px;
107
+  background-color: #ddf;
108 108
 }
109 109
 
110
-h1 a, h2 a {
111
-	color: black;
112
-	text-decoration: none;
110
+h1 a,
111
+h2 a {
112
+  color: black;
113
+  text-decoration: none;
113 114
 }
114 115
 
115
-main  h1:hover a:after,
116
-main  h2:hover a:after {
117
-	content: '¶';
118
-	color: #555;
116
+main h1:hover a:after,
117
+main h2:hover a:after {
118
+  content: "¶";
119
+  color: #555;
119 120
 }
120 121
 
121 122
 main h1 {
122
-	font-size: x-large;
123
+  font-size: x-large;
123 124
 }
124 125
 
125
-main  h2 {
126
-	background-color: #564;
127
-	border: 1px solid black;
128
-	padding-left: 0.5em;
129
-	padding-right: 0.5em;
130
-	color: white;
131
-	font-size: large;
132
-	clear: both;
126
+main h2 {
127
+  background-color: #564;
128
+  border: 1px solid black;
129
+  padding-left: 0.5em;
130
+  padding-right: 0.5em;
131
+  color: white;
132
+  font-size: large;
133
+  clear: both;
133 134
 }
134 135
 
135 136
 main h2 a {
136
-	color: white;
137
+  color: white;
137 138
 }
138 139
 
139 140
 main .moreauthors {
140
-	font-size: 80%;
141
+  font-size: 80%;
142
+}
143
+
144
+.dark .apexcharts-canvas .apexcharts-legend-text {
145
+  color: #aeb7c0 !important;
146
+}
147
+.apexcharts-canvas .apexcharts-legend-text {
148
+  color: #64748b !important;
149
+}
150
+
151
+.dark .apexcharts-canvas .apexcharts-text {
152
+  fill: #aeb7c0 !important;
153
+}
154
+
155
+.apexcharts-canvas .apexcharts-text {
156
+  fill: #64748b !important;
157
+}
158
+
159
+.dark .apexcharts-canvas .apexcharts-xcrosshairs {
160
+  fill: #2e3a47 !important;
161
+}
162
+.apexcharts-canvas .apexcharts-xcrosshairs {
163
+  fill: #e2e8f0 !important;
164
+}
165
+
166
+
167
+.dark .apexcharts-canvas .apexcharts-gridline {
168
+  stroke: #2e3a47 !important;
169
+}
170
+.apexcharts-canvas .apexcharts-gridline {
171
+  stroke: #e2e8f0 !important;
172
+}
173
+
174
+.dark .apexcharts-canvas .apexcharts-series.apexcharts-pie-series path {
175
+  stroke: transparent !important;
176
+}
177
+
178
+.apexcharts-canvas .apexcharts-legend-series {
179
+  display: inline-flex;
180
+  gap: 0.375rem
181
+}
182
+
183
+/*
184
+.apexcharts-tooltip.apexcharts-theme-light {
185
+  @apply dark:!border-strokedark dark:!bg-boxdark;
186
+}
187
+.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
188
+  @apply dark:!border-strokedark dark:!bg-meta-4;
189
+}
190
+.apexcharts-xaxistooltip,
191
+.apexcharts-yaxistooltip {
192
+  @apply dark:!border-meta-4 dark:!bg-meta-4 dark:!text-bodydark1;
193
+}
194
+.apexcharts-xaxistooltip-bottom:after {
195
+  @apply !border-b-gray dark:!border-b-meta-4;
196
+}
197
+.apexcharts-xaxistooltip-bottom:before {
198
+  @apply !border-b-gray dark:!border-b-meta-4;
199
+}
200
+.apexcharts-xaxistooltip-bottom {
201
+  @apply !rounded !border-none !bg-gray !text-xs !font-medium !text-black dark:!text-white;
202
+}
203
+.apexcharts-tooltip-series-group {
204
+  @apply !pl-1.5;
141 205
 }
206
+*/

+ 448
- 0
html.py
文件差异内容过多而无法显示
查看文件