feat: clickable domains on job queue

https://post.naskya.net/notes/9gbfos2mv5iz6g63
This commit is contained in:
ThatOneCalculator 2023-06-22 18:11:25 -07:00
parent 8539e4c7fd
commit d9e117b378
3 changed files with 5 additions and 3 deletions

View file

@ -201,7 +201,7 @@ const menuDef = $computed(() => [
active: currentPage?.route.name === "federation", active: currentPage?.route.name === "federation",
}, },
{ {
icon: "ph-clipboard-text ph-bold ph-lg", icon: "ph-queue ph-bold ph-lg",
text: i18n.ts.jobQueue, text: i18n.ts.jobQueue,
to: "/admin/queue", to: "/admin/queue",
active: currentPage?.route.name === "queue", active: currentPage?.route.name === "queue",

View file

@ -41,7 +41,9 @@
<div class="jobs"> <div class="jobs">
<div v-if="jobs.length > 0"> <div v-if="jobs.length > 0">
<div v-for="job in jobs" :key="job[0]"> <div v-for="job in jobs" :key="job[0]">
<span>{{ job[0] }}</span> <a :href="`https://${job[0]}`" class="_link"
><span>{{ job[0] }}</span></a
>
<span style="margin-left: 8px; opacity: 0.7" <span style="margin-left: 8px; opacity: 0.7"
>({{ number(job[1]) }} jobs)</span >({{ number(job[1]) }} jobs)</span
> >

View file

@ -63,6 +63,6 @@ const headerTabs = $computed(() => [
definePageMetadata({ definePageMetadata({
title: i18n.ts.jobQueue, title: i18n.ts.jobQueue,
icon: "ph-clipboard-text ph-bold ph-lg", icon: "ph-queue ph-bold ph-lg",
}); });
</script> </script>