package.json, add footer with version and link to homepage
This commit is contained in:
parent
7711f19810
commit
003c0be447
3 changed files with 20 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "kollagen",
|
"name": "kollagen",
|
||||||
"version": "0.1.0",
|
"version": "0.0.1",
|
||||||
|
"homepage": "https://gitlab.com/tmladek/kollagen",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
|
|
14
src/App.vue
14
src/App.vue
|
@ -2,6 +2,7 @@
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<picker @images="images = $event"/>
|
<picker @images="images = $event"/>
|
||||||
<collage :images="images"/>
|
<collage :images="images"/>
|
||||||
|
<footer><a :href="HOMEPAGE_URL">kollagen v{{APP_VERSION}}</a></footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -18,6 +19,14 @@ import Collage from "@/components/Collage.vue";
|
||||||
})
|
})
|
||||||
export default class App extends Vue {
|
export default class App extends Vue {
|
||||||
private images: ImageBitmap[] = [];
|
private images: ImageBitmap[] = [];
|
||||||
|
|
||||||
|
private get APP_VERSION() {
|
||||||
|
return process.env.VUE_APP_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
|
private get HOMEPAGE_URL() {
|
||||||
|
return process.env.VUE_APP_HOMEPAGE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -34,4 +43,9 @@ html, body {
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
const packageJSON = require('./package.json');
|
||||||
|
process.env.VUE_APP_VERSION = packageJSON.version;
|
||||||
|
process.env.VUE_APP_HOMEPAGE = packageJSON.homepage;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: '/tools/kollagen'
|
publicPath: '/tools/kollagen'
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue