wukong-gitlog-cli 1.0.32 → 1.0.33
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 +7 -0
- package/bin/wukong-gitlog-cli +0 -0
- package/package.json +1 -1
- package/web/app.js +4 -2
- package/web/index.html +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.33](https://github.com/tomatobybike/wukong-gitlog-cli/compare/v1.0.32...v1.0.33) (2025-12-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 🎸 show author email ([61e738c](https://github.com/tomatobybike/wukong-gitlog-cli/commit/61e738cc4e3c26a59796de0fd21b22402f5b1d00))
|
|
11
|
+
|
|
5
12
|
### [1.0.32](https://github.com/tomatobybike/wukong-gitlog-cli/compare/v1.0.31...v1.0.32) (2025-12-10)
|
|
6
13
|
|
|
7
14
|
|
package/bin/wukong-gitlog-cli
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -97,9 +97,10 @@ function renderCommitsTablePage() {
|
|
|
97
97
|
const end = start + pageSize
|
|
98
98
|
filtered.slice(start, end).forEach((c) => {
|
|
99
99
|
const tr = document.createElement('tr')
|
|
100
|
-
tr.innerHTML = `<td>${c.hash.slice(0, 8)}</td><td>${c.author}</td><td>${formatDate(c.date)}</td><td>${c.message}</td><td>${c.changed}</td>`
|
|
100
|
+
tr.innerHTML = `<td>${c.hash.slice(0, 8)}</td><td>${c.author}</td><td>${c.email}</td><td>${formatDate(c.date)}</td><td>${c.message}</td><td>${c.changed}</td>`
|
|
101
101
|
tbody.appendChild(tr)
|
|
102
102
|
})
|
|
103
|
+
document.getElementById('commitsTotal').textContent = `共${filtered.length}条记录`
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
function updatePager() {
|
|
@@ -120,9 +121,10 @@ function applySearch() {
|
|
|
120
121
|
filtered = commitsAll.filter((c) => {
|
|
121
122
|
const h = c.hash.toLowerCase()
|
|
122
123
|
const a = String(c.author || '').toLowerCase()
|
|
124
|
+
const e = String(c.email || '').toLowerCase()
|
|
123
125
|
const m = String(c.message || '').toLowerCase()
|
|
124
126
|
const d = formatDate(c.date).toLowerCase()
|
|
125
|
-
return h.includes(q) || a.includes(q) || m.includes(q) || d.includes(q)
|
|
127
|
+
return h.includes(q) || a.includes(q)|| e.includes(q) || m.includes(q) || d.includes(q)
|
|
126
128
|
})
|
|
127
129
|
}
|
|
128
130
|
page = 1
|
package/web/index.html
CHANGED
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
<option value="50">50</option>
|
|
117
117
|
<option value="100">100</option>
|
|
118
118
|
</select>
|
|
119
|
+
<label id="commitsTotal"></label>
|
|
119
120
|
<div class="pager">
|
|
120
121
|
<button id="prevPage">上一页</button>
|
|
121
122
|
<span id="pageInfo"></span>
|
|
@@ -127,6 +128,7 @@
|
|
|
127
128
|
<tr>
|
|
128
129
|
<th>Hash</th>
|
|
129
130
|
<th>Author</th>
|
|
131
|
+
<th>Email</th>
|
|
130
132
|
<th>Date</th>
|
|
131
133
|
<th>Message</th>
|
|
132
134
|
<th>Changed</th>
|