|
|
@@ -3,6 +3,18 @@
|
|
|
import '../app.css';
|
|
|
|
|
|
let year = new Date().getFullYear();
|
|
|
+ let version = null;
|
|
|
+
|
|
|
+ if (typeof window !== 'undefined') {
|
|
|
+ fetch(`${import.meta.env.VITE_STOCKS_HOST}/actuator/info`)
|
|
|
+ .then(res => res.json())
|
|
|
+ .then(data => {
|
|
|
+ version = data?.git?.commit?.id ?? null;
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error('Failed to fetch version:', err);
|
|
|
+ });
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<div
|
|
|
@@ -15,8 +27,11 @@
|
|
|
</main>
|
|
|
|
|
|
<footer
|
|
|
- class="flex flex-col items-center justify-center py-3 text-sm text-gray-500 dark:text-gray-400"
|
|
|
+ class="flex flex-col items-center justify-center py-3 text-sm text-gray-400 dark:text-gray-600"
|
|
|
>
|
|
|
<p>© {year} Lhamacorp</p>
|
|
|
+ {#if version}
|
|
|
+ <p>Version: {version}</p>
|
|
|
+ {/if}
|
|
|
</footer>
|
|
|
</div>
|