feat: add upstream and aur urls to package info modal

This commit is contained in:
arcanis committed 2023-11-06 15:46:32 +02:00
1 parent deab8ddae6
commit 3f8b9eaed6
3 files changed
+25 -1

No files matched your search

@@ -79,6 +79,15 @@
.replace(/"/g, """);
}
// because I'm tired of safe element generation
function safeLink(url, text, title) {
const element = document.createElement("a");
element.href = url;
element.innerText = text;
if (title) element.title = title;
return element;
}
Date.prototype.toISOStringShort = function() {
const pad = number => String(number).padStart(2, "0");
return `${this.getFullYear()}-${pad(this.getMonth() + 1)}-${pad(this.getDate())} ${pad(this.getHours())}:${pad(this.getMinutes())}:${pad(this.getSeconds())}`;