summaryrefslogtreecommitdiff
path: root/src/components/signature
diff options
context:
space:
mode:
authorJoão Augusto Costa Branco Marado Torres <torres.dev@disroot.org>2025-07-04 15:37:50 -0300
committerJoão Augusto Costa Branco Marado Torres <torres.dev@disroot.org>2025-07-04 15:37:50 -0300
commit011c4266ccbf3ff66d92e223b2fafd291127c102 (patch)
tree8de8ed25817de784a866d8ba010ddfb7a106388c /src/components/signature
parent2598c9ef0b945f13e94dba8f36c5fbb5cba58feb (diff)
style: deno fmt
Signed-off-by: João Augusto Costa Branco Marado Torres <torres.dev@disroot.org>
Diffstat (limited to 'src/components/signature')
-rw-r--r--src/components/signature/Authors.astro30
-rw-r--r--src/components/signature/Commit.astro4
-rw-r--r--src/components/signature/Summary.astro2
3 files changed, 16 insertions, 20 deletions
diff --git a/src/components/signature/Authors.astro b/src/components/signature/Authors.astro
index 71a3d62..4e52d4e 100644
--- a/src/components/signature/Authors.astro
+++ b/src/components/signature/Authors.astro
@@ -134,18 +134,16 @@ if (!expectedFingerprints.isSubsetOf(verifiedFingerprints)) {
>
{
primary?.name
- ? info?.websites[0] ? (
+ ? info?.websites[0] ? (
<a
itemprop="url"
rel="author external noreferrer"
target="_blank"
href={info.websites[0]}
><span itemprop="name">{primary.name}</span></a>
- ) : (
- <span itemprop="name">{primary.name}</span>
- )
- : primary?.email
- ? (
+ ) : <span itemprop="name">{primary.name}</span>
+ : primary?.email
+ ? (
<>&lt;<a
itemprop="email"
rel="author external noreferrer"
@@ -153,7 +151,7 @@ if (!expectedFingerprints.isSubsetOf(verifiedFingerprints)) {
href={primary?.email && `mailto:${primary.email}`}
>{primary?.email}</a>&gt;</>
)
- : ""
+ : ""
}
{
primary && (
@@ -181,10 +179,8 @@ if (!expectedFingerprints.isSubsetOf(verifiedFingerprints)) {
<><p>Websites</p><ul>
{
info.websites.map((
- x,
- ) => (
- <li><a href={x}>{x}</a></li>
- ))
+ x,
+ ) => <li><a href={x}>{x}</a></li>)
}
</ul></>
)
@@ -199,8 +195,8 @@ if (!expectedFingerprints.isSubsetOf(verifiedFingerprints)) {
<td>
<><span title={fingerprint?.replace(/(....)/g, "$1 ")}>{
key
- ? "0x" + toPK(key).getKeyID().toHex()
- : "0x" + keyID.toHex()
+ ? "0x" + toPK(key).getKeyID().toHex()
+ : "0x" + keyID.toHex()
}</span>
{
key && false && (
@@ -214,7 +210,7 @@ if (!expectedFingerprints.isSubsetOf(verifiedFingerprints)) {
}
{
key &&
- (
+ (
<button popovertarget={`armor-${fingerprint}`}>
Armor
</button>
@@ -229,9 +225,9 @@ if (!expectedFingerprints.isSubsetOf(verifiedFingerprints)) {
<td>
{
commitSignerKey &&
- key?.getFingerprint().toUpperCase()?.endsWith(
- commitSignerKey.toUpperCase(),
- ) && "✅"
+ key?.getFingerprint().toUpperCase()?.endsWith(
+ commitSignerKey.toUpperCase(),
+ ) && "✅"
}
</td>
</tr>
diff --git a/src/components/signature/Commit.astro b/src/components/signature/Commit.astro
index a2138ab..328a8f9 100644
--- a/src/components/signature/Commit.astro
+++ b/src/components/signature/Commit.astro
@@ -29,7 +29,7 @@ const formatter = new Intl.DateTimeFormat([Astro.props.lang], {
? files.map((file) => (
<dd><samp>{file.path.pathname.replace(dir.pathname, "")}</samp></dd>
))
- : <dd>Nenhum ficheiro modificado</dd>
+ : <dd>Nenhum ficheiro modificado</dd>
}
<dt>
Autor (<time datetime={toIso8601Full(author.date)}>{
@@ -53,7 +53,7 @@ const formatter = new Intl.DateTimeFormat([Astro.props.lang], {
</dd>
{
signature &&
- (
+ (
<dt>Assinatura do commit</dt>
<dd>
<dl>
diff --git a/src/components/signature/Summary.astro b/src/components/signature/Summary.astro
index 6ab6bf5..f25c1d1 100644
--- a/src/components/signature/Summary.astro
+++ b/src/components/signature/Summary.astro
@@ -161,7 +161,7 @@ A assinatura digital é criptograficamente válida. <strong>O dono da chave púb
{
lvl &&
- (
+ (
<details
class:list={{
ok: lvl[0] === Level.OK,