Skip to content

Commit 8c67316

Browse files
committed
web: link the build id to its commit
1 parent 724d175 commit 8c67316

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎web/src/App.vue‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@ function label(key: string): string {
5353
<a class="text-declared hover:underline" href="/v1/compatibility.json">JSON</a>
5454
<a class="text-declared hover:underline" href="/v1/schemas/package.json">Schema</a>
5555
<span v-if="generated" class="text-neutral-500 dark:text-neutral-400">
56-
Updated {{ generated }}<template v-if="document?.build"> · build {{ document.build }}</template>
56+
Updated {{ generated }}
57+
<template v-if="document?.build">
58+
· build
59+
<a
60+
v-if="/^[0-9a-f]{7,40}$/.test(document.build)"
61+
:href="`https://github.com/NativeScript/compatibility/commit/${document.build}`"
62+
class="text-declared hover:underline"
63+
:title="`Commit ${document.build} on GitHub`"
64+
><code>{{ document.build }}</code></a>
65+
<code v-else>{{ document.build }}</code>
66+
</template>
5767
</span>
5868
</nav>
5969
<div class="mt-5 flex flex-wrap items-center justify-between gap-x-8 gap-y-3">

0 commit comments

Comments
 (0)