mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2024-12-22 22:19:30 -05:00
Fix sorting on updated
This commit is contained in:
parent
c852e15b99
commit
18fb8dcce8
@ -101,7 +101,7 @@ async function main() {
|
|||||||
printError,
|
printError,
|
||||||
);
|
);
|
||||||
|
|
||||||
const metadata = batchFetchRepoMetadata(githubRepos);
|
const metadata = await batchFetchRepoMetadata(githubRepos);
|
||||||
|
|
||||||
await writeFile(
|
await writeFile(
|
||||||
GITHUB_METADATA_FILE,
|
GITHUB_METADATA_FILE,
|
||||||
|
@ -12,9 +12,7 @@ process.on('unhandledRejection', error => {
|
|||||||
console.log('unhandledRejection', error.message);
|
console.log('unhandledRejection', error.message);
|
||||||
});
|
});
|
||||||
|
|
||||||
// const table = 'data/table.md';
|
|
||||||
const templateHTML = 'website/table.tmpl.html';
|
const templateHTML = 'website/table.tmpl.html';
|
||||||
// const merged = 'website/table.html';
|
|
||||||
const destination = 'website/table.html';
|
const destination = 'website/table.html';
|
||||||
|
|
||||||
const valueNames = [
|
const valueNames = [
|
||||||
@ -60,7 +58,7 @@ const formatEntry = (
|
|||||||
description,
|
description,
|
||||||
homepage,
|
homepage,
|
||||||
stargazers_count: stargazers,
|
stargazers_count: stargazers,
|
||||||
updated_at: updated,
|
pushed_at: updated,
|
||||||
language,
|
language,
|
||||||
license,
|
license,
|
||||||
owner,
|
owner,
|
||||||
@ -73,7 +71,7 @@ const formatEntry = (
|
|||||||
`<p class="${valueNames[1]}">${description || '-'}</p>`,
|
`<p class="${valueNames[1]}">${description || '-'}</p>`,
|
||||||
`<p class="${
|
`<p class="${
|
||||||
valueNames[4]
|
valueNames[4]
|
||||||
} timestamp" data-timestamp="${updated}">Last update: ${getLastUpdate(
|
} timestamp" data-timestamp="${updated}">Last code update: ${getLastUpdate(
|
||||||
updated,
|
updated,
|
||||||
)}</p>`,
|
)}</p>`,
|
||||||
(homepage &&
|
(homepage &&
|
||||||
@ -109,7 +107,6 @@ function main() {
|
|||||||
`<div class="container">`,
|
`<div class="container">`,
|
||||||
`<div class="searchbar" ><input class="search" placeholder="Search" /></div>`,
|
`<div class="searchbar" ><input class="search" placeholder="Search" /></div>`,
|
||||||
`<div class="sortbtn" ><p>Sort by</p>${btn.join('')}</div>`,
|
`<div class="sortbtn" ><p>Sort by</p>${btn.join('')}</div>`,
|
||||||
// `<ul class="pagination"></ul>`,
|
|
||||||
`</div>`,
|
`</div>`,
|
||||||
'<ul class="list">',
|
'<ul class="list">',
|
||||||
metaData.map(formatEntry).join(''),
|
metaData.map(formatEntry).join(''),
|
||||||
|
35051
data/2018-06-25T13.24.43-fetched_repo_data.json
Normal file
35051
data/2018-06-25T13.24.43-fetched_repo_data.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
|||||||
data/2018-06-09T18.32.12-fetched_repo_data.json
|
data/2018-06-25T13.24.43-fetched_repo_data.json
|
@ -7,7 +7,7 @@ const main = () => {
|
|||||||
'description',
|
'description',
|
||||||
'homepage',
|
'homepage',
|
||||||
'star',
|
'star',
|
||||||
'updated',
|
{ name: 'updated', attr: 'data-timestamp' },
|
||||||
'language',
|
'language',
|
||||||
'license',
|
'license',
|
||||||
'author',
|
'author',
|
||||||
|
Loading…
Reference in New Issue
Block a user