Update
ci/woodpecker/push/woodpecker Pipeline was successful Podrobnosti

This commit is contained in:
tree 2022-10-21 22:43:54 +02:00
rodič d84e6c4b51
revize 4d5f11c241
2 změnil soubory, kde provedl 10 přidání a 3 odebrání

Zobrazit soubor

@ -90,7 +90,7 @@ export default async function build (src = SOURCE_FILE) {
if (item.version_conf) {
item.versions = await getVersions(item.version_conf, item)
}
delete item.version_conf
//delete item.version_conf
}
spec.time = new Date

Zobrazit soubor

@ -55,6 +55,13 @@
return `<span class="${outdated ? 'text-orange-400' : 'text-green-600'}">${current} ${isSemver ? '' : '*'}</span>`
}
function gitUrl (repo, target) {
if (repo.match(/^http/)) {
return repo
}
return 'https://github.com/' + repo + (target ? '/' + target : '')
}
const serverCols = [
{ title: 'Name', key: 'name' },
{ title: 'Hostname', key: (s) => `<a href="https://${s.host}" class="underline hover:no-underline">${s.host}</a>` },
@ -66,13 +73,13 @@
]
const cols = [
{ title: 'Name', key: s => `${s.name} (<a href="https://github.com/${s.repo}" target="_blank" class="git-link underline hover:no-underline">git</a>)` },
{ title: 'Name', key: s => `${s.name} (<a href="${gitUrl(s.repo)}" target="_blank" class="git-link underline hover:no-underline">git</a>)` },
{ title: 'Server', key: 'server' },
{ title: 'Endpoint', key: (s) => s.url ? `<a href="${s.url}" class="underline hover:no-underline">${s.url.replace(/^https?:\/\//, '')}</a>` : '' },
{ title: 'Status', key: (s) => `<a href="https://status.gwei.cz/dashboard/${s.monitor}" target="_blank"><img src="https://status.gwei.cz/api/badge/${s.monitor}/status?style=flat-square" /></a>` },
//{ title: 'Uptime', key: (s) => `<img src="https://status.gwei.cz/api/badge/${s.monitor}/uptime/24?style=flat-square" />` },
{ title: 'Version', key: (s) => s.versions ? renderVersion(s.versions.local, s.versions.latest) : '-' },
{ title: 'Latest version', key: (s) => s.versions ? (`<a href="https://github.com/${s.repo}" target="_blank"><span class="text-gray-400">${s.versions.latest}</span></a>` || 'n/a') : '' },
{ title: 'Latest version', key: (s) => s.versions ? (`<a href="${gitUrl(s.repo, (s.version_conf && s.version_conf.to.strategy === 'github_tags' ? 'tags' : 'releases'))}" target="_blank"><span class="text-gray-400">${s.versions.latest}</span></a>` || 'n/a') : '' },
];
</script>