Skip to content

Commit

Permalink
Githash toegevoegd aan colofon zodat gezien kan worden welke code geb…
Browse files Browse the repository at this point in the history
…ruikt it
  • Loading branch information
Hilbrand committed Nov 15, 2024
1 parent f83100f commit 90e0d2f
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 0 deletions.
104 changes: 104 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@vue/cli": "^5.0.8",
"d3": "^7.9.0",
"git-rev-sync": "^3.0.2",
"pinia": "^2.2.2",
"typescript": "^5.6.2",
"vue": "^3.5.8",
Expand Down
5 changes: 5 additions & 0 deletions src/components/FooterPaneel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
<a href="https://github.com/hilbrand/ib-broncode" target="_blank">https://github.com/hilbrand/ib-broncode</a>.
Voor vragen of hergebruik van de webpagina e-mail naar: hilbrand @ freedom.nl.
</p>
<p>Githash: {{ gitHash }}</p>
</n-card>
</n-collapse-item>
</n-collapse>
</template>

<script setup lang="ts">
const gitHash = import.meta.env.VITE_GIT_COMMIT_HASH;
</script>
3 changes: 3 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { fileURLToPath, URL } from "node:url";

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import git from 'git-rev-sync'

process.env.VITE_GIT_COMMIT_HASH = git.short()

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit 90e0d2f

Please sign in to comment.