mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
app version step 1
This commit is contained in:
parent
7b42a2e278
commit
9bffdd7334
@ -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
|
||||||
|
VUE_APP_VERSION=0
|
||||||
@ -26,8 +26,13 @@ export const store = new Vuex.Store({
|
|||||||
'Access-Control-Allow-Credentials': 'true',
|
'Access-Control-Allow-Credentials': 'true',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
packageVersion: process.env.VUE_APP_VERSION|| '0',
|
||||||
|
},
|
||||||
|
getters: {
|
||||||
|
appVersion: (state) => {
|
||||||
|
return state.packageVersion
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getters: {},
|
|
||||||
// Syncronous mutation of the state
|
// Syncronous mutation of the state
|
||||||
mutations: {
|
mutations: {
|
||||||
language: (state, language) => {
|
language: (state, language) => {
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
</b-nav-item> -->
|
</b-nav-item> -->
|
||||||
</b-nav>
|
</b-nav>
|
||||||
</b-col>
|
</b-col>
|
||||||
|
My Awesome App version {{ $store.getters.appVersion }}
|
||||||
</b-row>
|
</b-row>
|
||||||
</footer>
|
</footer>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
const path = require('path')
|
const path = require('path')
|
||||||
const dotenv = require('dotenv-webpack')
|
const dotenv = require('dotenv-webpack')
|
||||||
|
process.env.VUE_APP_VERSION = require('./package.json').version
|
||||||
|
|
||||||
|
|
||||||
function resolveSrc(_path) {
|
function resolveSrc(_path) {
|
||||||
return path.join(__dirname, _path)
|
return path.join(__dirname, _path)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user