bioarchlinux-packages/html/current.html
Kuoi fff9faa4d5
generate patch (#3)
* try to convert it to bioarchlinux

* translate Chinese to English

* change path based on own need

* config

* fix typo

* fix the path

* Update main.rs

* change the location of repo

* add index

* feat: localized resource files

* fix(deps): update rust crate actix-web to 4.1.0

* fix(deps): update rust crate anyhow to 1.0.58

* fix(deps): update rust crate sentry-actix to 0.27.0

* fix(deps): update rust crate sentry to 0.27.0

* chore(deps): update dependency rust to v1.62.0

* fix(deps): update rust crate serde to 1.0.138

* fix(deps): update rust crate cached to 0.35.0

* fix(deps): update rust crate cached to 0.36.0

* fix(deps): update rust crate openssl to 0.10.41

* fix(deps): update rust crate serde to 1.0.139

* fix(deps): update rust crate cached to 0.37.0

* chore(deps): update dependency rust to v1.62.1

* fix

* fix

---------

Co-authored-by: imlonghao <git@imlonghao.com>
Co-authored-by: renovatebot <renovatebot@esd.cc>
2023-02-10 21:09:32 +08:00

74 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>bioarchlinux Currently Building Package</title>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css"
integrity="sha256-YY1izqyhIj4W3iyJOaGWOpXDSwrHWFL4Nfk+W0LyCHE=" crossorigin="anonymous">
</head>
<body>
<table id="l" class="stripe cell-border" style="text-align:center">
</table>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/datatables.net@1.10.20/js/jquery.dataTables.min.js"
integrity="sha256-LXQzPhL1IRyKkA7HpCOBi8I+OC8HqzHUYkjK8S+LKTs=" crossorigin="anonymous"></script>
<script>
const DATE_FORMATTER = new Intl.DateTimeFormat(undefined, {
timeStyle: "medium",
dateStyle: "medium",
hour12: false,
});
$(document).ready(function () {
$('#l').DataTable({
"ajax": {
url: "/api/current",
dataSrc: ""
},
"order": [[0, "desc"]],
"paging": false,
"columnDefs": [
{
targets: 0,
title: "Update Time",
data: "updated_at",
render: function (data, type, row, meta) {
if (type == 'display') {
return DATE_FORMATTER.format(new Date(data))
} else {
return data
}
}
},
{
targets: 1,
title: "Package Name",
data: "pkgbase"
},
{
targets: 2,
title: "Status",
data: "status"
},
{
targets: 3,
title: "Last Packaging Time",
data: "elapsed"
},
{
targets: 4,
title: "Packaging Reason",
data: "reasons",
render: function (data, type, row, meta) {
return JSON.parse(data)
}
}
]
});
});
</script>
</body>
</html>