Merge pull request #153 from gradido/90-Show-release-version-in-frontend

90 show release version in frontend
This commit is contained in:
Alexander Friedland 2021-04-09 14:36:09 +02:00 committed by GitHub
commit 1d81c7e472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -2,3 +2,4 @@ LOGIN_API_URL=http://localhost/login_api/
COMMUNITY_API_STATE_BALANCE_URL=http://localhost/state-balances/
COMMUNITY_API_TRANSACTION_CREATION_URL=http://localhost/transaction-creations/
VUE_PATH=/vue
APP_VERSION=0

View File

@ -7,6 +7,7 @@ const environment = {
NODE_ENV: process.env.NODE_ENV,
DEBUG: process.env.NODE_ENV !== 'production' || false,
PRODUCTION: process.env.NODE_ENV === 'production' || false,
APP_VERSION: process.env.APP_VERSION || require('../../package.json').version,
}
const server = {

View File

@ -5,6 +5,10 @@
<div class="copyright text-center text-lg-center text-muted">
© {{ year }}
<a href="#/Login" class="font-weight-bold ml-1">Gradido-Akademie</a>
|
<a href="https://github.com/gradido/gradido/releases/latest" target="_blank">
App Verion {{ version }}
</a>
</div>
</b-col>
</b-row>
@ -32,10 +36,13 @@
</footer>
</template>
<script>
import CONFIG from '../../config'
export default {
data() {
return {
year: new Date().getFullYear(),
version: CONFIG.APP_VERSION,
}
},
}