Changeset fe6aac9 in Klonkt for src/routes
- Timestamp:
- 06/23/2026 04:27:27 PM (3 months ago)
- Branches:
- main
- Children:
- 475eeda
- Parents:
- d5e78f7
- File:
-
- 1 edited
-
src/routes/admin-updates.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/admin-updates.js
rd5e78f7 rfe6aac9 37 37 } 38 38 39 // Laatste 5 commits op main = de "laatste wijzigingen" die je bij bijwerken krijgt. 40 function recentChanges() { 41 const out = git(['log', '-5', '--format=%s%x1f%cd', '--date=short', 'main']); 42 if (!out) return []; 43 return out.split('\n').map((l) => { 44 const i = l.indexOf('\x1f'); 45 return i >= 0 ? { msg: l.slice(0, i), date: l.slice(i + 1) } : { msg: l, date: '' }; 46 }); 47 } 48 39 49 router.get('/', requireGod, (req, res) => { 40 50 const cur = currentSha(); … … 51 61 canCheck: !!latest, 52 62 behind: (cur && latest && cur !== latest) ? git(['rev-list', '--count', cur + '..main']) : null, 63 changes: recentChanges(), 53 64 success: req.query.success || null, 54 65 error: req.query.error || null,
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)