This commit is contained in:
@@ -188,13 +188,6 @@ export const config: Config = {
|
|||||||
androidLink:
|
androidLink:
|
||||||
"https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://git.atri.dad/atridad/MagicCounter/releases",
|
"https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://git.atri.dad/atridad/MagicCounter/releases",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: "goth-stack",
|
|
||||||
name: "GOTH Stack",
|
|
||||||
description:
|
|
||||||
"🚀 A Web Application Template Powered by HTMX + Go + Tailwind 🚀",
|
|
||||||
gitLink: "https://git.atri.dad/atridad/goth.stack",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: "himbot",
|
id: "himbot",
|
||||||
name: "Himbot",
|
name: "Himbot",
|
||||||
@@ -203,11 +196,17 @@ export const config: Config = {
|
|||||||
gitLink: "https://git.atri.dad/atridad/himbot",
|
gitLink: "https://git.atri.dad/atridad/himbot",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "loadr",
|
id: "lavitz",
|
||||||
name: "loadr",
|
name: "Lavitz",
|
||||||
description:
|
description:
|
||||||
"A lightweight REST load testing tool with robust support for different verbs, token auth, and performance reports.",
|
"My NixOS desktop configuration, named after a character in Legend of Dragoon for the PS1: Lavitz.",
|
||||||
gitLink: "https://git.atri.dad/atridad/loadr",
|
gitLink: "https://git.atri.dad/atridad/lavitz",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "atrodotdad",
|
||||||
|
name: "Personal Site",
|
||||||
|
description: "My personal website built with Astro.",
|
||||||
|
gitLink: "https://git.atri.dad/atridad/atridotdad",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@@ -60,8 +60,6 @@ export async function fetchGiteaRepoInfo(
|
|||||||
});
|
});
|
||||||
if (languagesResponse.ok) {
|
if (languagesResponse.ok) {
|
||||||
const languagesData = await languagesResponse.json();
|
const languagesData = await languagesResponse.json();
|
||||||
// Gitea returns an object like { "TypeScript": 12345, "JavaScript": 6789 }
|
|
||||||
// Sort by usage (bytes) and extract language names
|
|
||||||
languages = Object.keys(languagesData).sort(
|
languages = Object.keys(languagesData).sort(
|
||||||
(a, b) => languagesData[b] - languagesData[a],
|
(a, b) => languagesData[b] - languagesData[a],
|
||||||
);
|
);
|
||||||
@@ -96,7 +94,8 @@ const MINUTE_MS = 60_000;
|
|||||||
const HOUR_MS = 3_600_000;
|
const HOUR_MS = 3_600_000;
|
||||||
const DAY_MS = 86_400_000;
|
const DAY_MS = 86_400_000;
|
||||||
|
|
||||||
const pluralize = (n: number, unit: string) => `${n} ${unit}${n !== 1 ? "s" : ""} ago`;
|
const pluralize = (n: number, unit: string) =>
|
||||||
|
`${n} ${unit}${n !== 1 ? "s" : ""} ago`;
|
||||||
|
|
||||||
export function formatRelativeTime(dateString: string): string {
|
export function formatRelativeTime(dateString: string): string {
|
||||||
if (!dateString) return "Unknown";
|
if (!dateString) return "Unknown";
|
||||||
|
|||||||
Reference in New Issue
Block a user