Mercurial > gemma
annotate client/src/stores/application.js @ 23:c1ef0be0ae3d
Improve build chain
In order to improve the build, there is the need to include external
asset during build time.
The variable `VUE_APP_VENDOR_IMG_PATH` defines the source folder of
the vendor images.
The destination folder is /web/img/.
To improve readability comments to .env.sample variables were added.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 21 Jun 2018 13:39:01 +0200 |
parents | 88d0d60924cf |
children | e7d5383bc358 |
rev | line source |
---|---|
3 | 1 const Application = { |
2 namespaced: true, | |
3 state: { | |
6 | 4 appTitle: process.env.VUE_APP_TITLE, |
10
361ae8211991
refactored to component local state
Thomas Junk <thomas.junk@intevation.de>
parents:
9
diff
changeset
|
5 secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL |
3 | 6 }, |
7 getters: { | |
8 appTitle: state => { | |
9 return state.appTitle; | |
6 | 10 }, |
9
ee6d3836014e
current version of login
Thomas Junk <thomas.junk@intevation.de>
parents:
6
diff
changeset
|
11 secondaryLogo: state => { |
ee6d3836014e
current version of login
Thomas Junk <thomas.junk@intevation.de>
parents:
6
diff
changeset
|
12 return state.secondaryLogo; |
3 | 13 } |
14 }, | |
10
361ae8211991
refactored to component local state
Thomas Junk <thomas.junk@intevation.de>
parents:
9
diff
changeset
|
15 mutations: {}, |
3 | 16 actions: {} |
17 }; | |
18 | |
19 export default Application; |