added helppage and state

This commit is contained in:
thilo 2020-03-21 16:40:32 +01:00
parent 7f88fdcd6c
commit 9a61503344
6 changed files with 32 additions and 4 deletions

View File

@ -10,12 +10,14 @@
"dependencies": {
"core-js": "^3.6.4",
"vue": "^2.6.11",
"vue-router": "^3.1.5"
"vue-router": "^3.1.5",
"vuex": "^3.1.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.2.0",
"@vue/cli-plugin-eslint": "~4.2.0",
"@vue/cli-plugin-router": "~4.2.0",
"@vue/cli-plugin-vuex": "~4.2.0",
"@vue/cli-service": "~4.2.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.7.2",

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="de">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

View File

@ -1,10 +1,12 @@
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')

18
src/views/HelpPage.vue Normal file
View File

@ -0,0 +1,18 @@
<template>
<div class="help">
<p>{{ text }}</p>
</div>
</template>
<script>
export default {
name: "HelpPage",
props: {
text: String
}
}
</script>
<style scoped>
</style>

View File

@ -1,6 +1,7 @@
<template>
<div class="questionmaire">
<Question question="Frage" v-bind:answers="['Antwort 1', 'Antwort 2', 'Antwort 3']"></Question>
<Question v-bind:question="$store.state.questions[$store.state.currentQuestion].question"
v-bind:answers="$store.state.questions[$store.state.currentQuestion].answers"></Question>
</div>
</template>

View File

@ -1028,7 +1028,7 @@
dependencies:
"@vue/cli-shared-utils" "^4.2.3"
"@vue/cli-plugin-vuex@^4.2.3":
"@vue/cli-plugin-vuex@^4.2.3", "@vue/cli-plugin-vuex@~4.2.0":
version "4.2.3"
resolved "https://registry.npm.taobao.org/@vue/cli-plugin-vuex/download/@vue/cli-plugin-vuex-4.2.3.tgz#aa1d8e824dd82b8718c0c40e3906c34ccd752516"
integrity sha1-qh2Ogk3YK4cYwMQOOQbDTM11JRY=
@ -7912,6 +7912,11 @@ vue@^2.6.11:
resolved "https://registry.npm.taobao.org/vue/download/vue-2.6.11.tgz?cache=0&sync_timestamp=1584399755108&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue%2Fdownload%2Fvue-2.6.11.tgz#76594d877d4b12234406e84e35275c6d514125c5"
integrity sha1-dllNh31LEiNEBuhONSdcbVFBJcU=
vuex@^3.1.2:
version "3.1.3"
resolved "https://registry.npm.taobao.org/vuex/download/vuex-3.1.3.tgz?cache=0&sync_timestamp=1584268708627&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvuex%2Fdownload%2Fvuex-3.1.3.tgz#f2ad73e3fb73691698b38c93f66e58e267947180"
integrity sha1-8q1z4/tzaRaYs4yT9m5Y4meUcYA=
watchpack@^1.6.0:
version "1.6.0"
resolved "https://registry.npm.taobao.org/watchpack/download/watchpack-1.6.0.tgz#4bc12c2ebe8aa277a71f1d3f14d685c7b446cd00"