Skip to content

Commit

Permalink
feat(footer): add version and release link in the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
rwv committed Dec 31, 2024
1 parent 909f415 commit 95c29dd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/TheFooter.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
<script setup lang="ts">
import { version } from '../../package.json'
const gitCommit = __GIT_COMMIT__
const gitCommitTime = __GIT_COMMIT_TIME__
const gitShortCommit = gitCommit.slice(0, 8)
const githubURL = `https://github.com/lookscanned/lookscanned-example-pdfs/commit/${gitCommit}`
const githubURL = `https://github.com/lookscanned/how-to/commit/${gitCommit}`
const releaseURL = `https://github.com/lookscanned/how-to/releases/tag/v${version}`
</script>

<template>
<footer class="footer">
Git commit: <a :href="githubURL" class="github-link">{{ gitShortCommit }}</a> at
Version:
<a :href="releaseURL" class="github-link">{{ version }}</a
>&nbsp;<a :href="githubURL" class="github-link">({{ gitShortCommit }})</a> at
{{ new Date(gitCommitTime).toLocaleString() }}
</footer>
</template>
Expand Down

0 comments on commit 95c29dd

Please sign in to comment.