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_STATE_BALANCE_URL=http://localhost/state-balances/
COMMUNITY_API_TRANSACTION_CREATION_URL=http://localhost/transaction-creations/ COMMUNITY_API_TRANSACTION_CREATION_URL=http://localhost/transaction-creations/
VUE_PATH=/vue VUE_PATH=/vue
APP_VERSION=0

View File

@ -7,6 +7,7 @@ const environment = {
NODE_ENV: process.env.NODE_ENV, NODE_ENV: process.env.NODE_ENV,
DEBUG: process.env.NODE_ENV !== 'production' || false, DEBUG: process.env.NODE_ENV !== 'production' || false,
PRODUCTION: 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 = { const server = {

View File

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