Skip to content

Commit 53a15e0

Browse files
committed
Add WebApp version
1 parent 9019c15 commit 53a15e0

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

src/components/Footer.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,24 @@
1515

1616
<template>
1717
<div class="footer">
18-
<b-card class="align-text-top text-right">
19-
<div class="bg-light text-dark">
20-
Adabas RESTfull application with REST server version: {{version}}
21-
</div>
22-
</b-card>
18+
<b-container fluid class="bg-light text-dark w-100">
19+
<b-row><b-col class="text-left">Adabas REST WebApp {{webAppVersion}}</b-col>
20+
<b-col class="text-right">
21+
Adabas RESTfull application with REST server version: {{version}}
22+
</b-col></b-row>
23+
</b-container>
2324
</div>
2425
</template>
2526

2627
<script lang="ts">
2728
import { Vue } from "vue-property-decorator";
29+
import { config } from "../store/config";
2830
2931
export default Vue.extend({
3032
name: "Footer",
3133
data() {
3234
return {
35+
webAppVersion: config.Version(),
3336
checked: true,
3437
version: null,
3538
};

src/store/config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ export function Url() {
2929
return '.';
3030
}
3131

32+
export function Version(): string {
33+
if (process.env.NODE_ENV === 'development') {
34+
return 'dev';
35+
}
36+
return 'v1.0.0';
37+
}
38+
3239
export const config = {
3340
Url,
41+
Version,
3442
};

0 commit comments

Comments
 (0)