wukong-gitlog-cli 1.0.29 → 1.0.31
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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/web/app.js +9 -6
- package/web/index.html +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.31](https://github.com/tomatobybike/wukong-gitlog-cli/compare/v1.0.29...v1.0.31) (2025-12-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 🎸 add date filter ([ac9779d](https://github.com/tomatobybike/wukong-gitlog-cli/commit/ac9779dd6eccd1d737d408d7d15ad15cede37dd2))
|
|
11
|
+
|
|
12
|
+
### [1.0.30](https://github.com/tomatobybike/wukong-gitlog-cli/compare/v1.0.29...v1.0.30) (2025-12-10)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* 🎸 add date filter ([ac9779d](https://github.com/tomatobybike/wukong-gitlog-cli/commit/ac9779dd6eccd1d737d408d7d15ad15cede37dd2))
|
|
18
|
+
|
|
5
19
|
### [1.0.29](https://github.com/tomatobybike/wukong-gitlog-cli/compare/v1.0.28...v1.0.29) (2025-12-09)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -113,6 +113,7 @@ function updatePager() {
|
|
|
113
113
|
|
|
114
114
|
function applySearch() {
|
|
115
115
|
const q = document.getElementById('searchInput').value.trim().toLowerCase()
|
|
116
|
+
|
|
116
117
|
if (!q) {
|
|
117
118
|
filtered = commitsAll.slice()
|
|
118
119
|
} else {
|
|
@@ -1132,13 +1133,13 @@ function drawDailyTrendSeverity(commits, weekly, onDayClick) {
|
|
|
1132
1133
|
silent: true,
|
|
1133
1134
|
itemStyle: { opacity: 0.15 },
|
|
1134
1135
|
data: [
|
|
1135
|
-
[{ name: '0–
|
|
1136
|
+
[{ name: '0–5 次', yAxis: 0 }, { yAxis: 5 }],
|
|
1136
1137
|
[
|
|
1137
|
-
{ name: '
|
|
1138
|
-
{ yAxis:
|
|
1138
|
+
{ name: '5–10 次', yAxis: 5 },
|
|
1139
|
+
{ yAxis: 10, itemStyle: { color: 'orange', opacity: 0.25 } }
|
|
1139
1140
|
],
|
|
1140
1141
|
[
|
|
1141
|
-
{ name: '
|
|
1142
|
+
{ name: '10 次以上', yAxis: 10 },
|
|
1142
1143
|
{ yAxis: 999, itemStyle: { color: 'red', opacity: 0.25 } }
|
|
1143
1144
|
]
|
|
1144
1145
|
]
|
|
@@ -1607,7 +1608,7 @@ function drawAuthorOvertimeTrends(commits, stats) {
|
|
|
1607
1608
|
const lines = params
|
|
1608
1609
|
.filter((i) => i.data > 0)
|
|
1609
1610
|
.map(
|
|
1610
|
-
(item) => `${item.marker}${item.seriesName}: ${item.data}
|
|
1611
|
+
(item) => `${item.marker}${item.seriesName}: ${item.data} 次提交`
|
|
1611
1612
|
)
|
|
1612
1613
|
.join('<br/>')
|
|
1613
1614
|
|
|
@@ -1620,7 +1621,9 @@ function drawAuthorOvertimeTrends(commits, stats) {
|
|
|
1620
1621
|
},
|
|
1621
1622
|
legend: { data: ds.authors },
|
|
1622
1623
|
xAxis: { type: 'category', data: ds.allPeriods },
|
|
1623
|
-
|
|
1624
|
+
// 把 y 轴名称改为提交数
|
|
1625
|
+
yAxis: { type: 'value', name: '提交数 (次)' },
|
|
1626
|
+
|
|
1624
1627
|
series: ds.series
|
|
1625
1628
|
})
|
|
1626
1629
|
}
|
package/web/index.html
CHANGED
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
<div class="chart-card">
|
|
32
|
-
<h2
|
|
33
|
-
<div id="dailyTrendChart" data-title="
|
|
32
|
+
<h2>按日提交趋势(次数)</h2>
|
|
33
|
+
<div id="dailyTrendChart" data-title="按日提交趋势(次数)" class="echart"></div>
|
|
34
34
|
</div>
|
|
35
35
|
|
|
36
36
|
<div class="chart-card">
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<div id="dailySeverityChart" data-title="每日超过下班的小时数" class="echart"></div>
|
|
51
51
|
</div>
|
|
52
52
|
<div class="chart-card">
|
|
53
|
-
<h2
|
|
53
|
+
<h2>按日提交趋势(次数)</h2>
|
|
54
54
|
<div id="dailyTrendChartDog" data-title="按日提交趋势" class="echart"></div>
|
|
55
55
|
</div>
|
|
56
56
|
<div class="chart-card">
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
</section>
|
|
65
65
|
|
|
66
66
|
<div class="chart-card">
|
|
67
|
-
<h2>开发者 Changed
|
|
67
|
+
<h2>开发者 Changed 工作量趋势(行数)</h2>
|
|
68
68
|
|
|
69
69
|
<div id="tabs" class="tabs">
|
|
70
70
|
<button data-type="daily" class="active">按日</button>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
</div>
|
|
76
76
|
|
|
77
77
|
<div class="chart-card">
|
|
78
|
-
<h2>开发者
|
|
78
|
+
<h2>开发者 加班趋势(次数)</h2>
|
|
79
79
|
<div class="tabs" id="tabsOvertime">
|
|
80
80
|
<button data-type="daily" class="active">按日</button>
|
|
81
81
|
<button data-type="weekly">按周</button>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
</div>
|
|
91
91
|
|
|
92
92
|
<div class="chart-card">
|
|
93
|
-
<h2>开发者
|
|
93
|
+
<h2>开发者 加班最晚趋势(小时)</h2>
|
|
94
94
|
<div class="tabs" id="tabsLatestOvertime">
|
|
95
95
|
<button data-type="daily" class="active">按日</button>
|
|
96
96
|
<button data-type="weekly">按周</button>
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
<input
|
|
108
108
|
id="searchInput"
|
|
109
109
|
type="search"
|
|
110
|
-
placeholder="搜索作者/信息/Hash"
|
|
110
|
+
placeholder="搜索作者/信息/Hash/Date"
|
|
111
111
|
/>
|
|
112
112
|
<label for="pageSize">每页显示</label>
|
|
113
113
|
<select id="pageSize">
|