feat: add update_at column

This commit is contained in:
ZT 2022-07-25 09:38:01 +08:00 committed by GitHub
parent c87b9bf9e9
commit d5ba8bbd30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -72,6 +72,7 @@ function initDT() {
['Open Issues', 'open_issues_count'],
['Size', 'size'],
['Last Push', 'pushed_at'],
['Update at', 'updated_at'],
];
// Sort by stars:
@ -87,7 +88,7 @@ function initDT() {
return {
title: colNM[0],
render:
colNM[1] === 'pushed_at'
(colNM[1] === 'pushed_at') || (colNM[1] ==='updated_at')
? (data, type, _row) => {
if (type === 'display') {
return moment(data).fromNow();