added helppage and state
This commit is contained in:
parent
7f88fdcd6c
commit
9a61503344
6 changed files with 32 additions and 4 deletions
|
@ -10,12 +10,14 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core-js": "^3.6.4",
|
"core-js": "^3.6.4",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
"vue-router": "^3.1.5"
|
"vue-router": "^3.1.5",
|
||||||
|
"vuex": "^3.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "~4.2.0",
|
"@vue/cli-plugin-babel": "~4.2.0",
|
||||||
"@vue/cli-plugin-eslint": "~4.2.0",
|
"@vue/cli-plugin-eslint": "~4.2.0",
|
||||||
"@vue/cli-plugin-router": "~4.2.0",
|
"@vue/cli-plugin-router": "~4.2.0",
|
||||||
|
"@vue/cli-plugin-vuex": "~4.2.0",
|
||||||
"@vue/cli-service": "~4.2.0",
|
"@vue/cli-service": "~4.2.0",
|
||||||
"babel-eslint": "^10.0.3",
|
"babel-eslint": "^10.0.3",
|
||||||
"eslint": "^6.7.2",
|
"eslint": "^6.7.2",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
|
import store from './store'
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
|
store,
|
||||||
render: h => h(App)
|
render: h => h(App)
|
||||||
}).$mount('#app')
|
}).$mount('#app')
|
||||||
|
|
18
src/views/HelpPage.vue
Normal file
18
src/views/HelpPage.vue
Normal 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>
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="questionmaire">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1028,7 +1028,7 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
"@vue/cli-shared-utils" "^4.2.3"
|
"@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"
|
version "4.2.3"
|
||||||
resolved "https://registry.npm.taobao.org/@vue/cli-plugin-vuex/download/@vue/cli-plugin-vuex-4.2.3.tgz#aa1d8e824dd82b8718c0c40e3906c34ccd752516"
|
resolved "https://registry.npm.taobao.org/@vue/cli-plugin-vuex/download/@vue/cli-plugin-vuex-4.2.3.tgz#aa1d8e824dd82b8718c0c40e3906c34ccd752516"
|
||||||
integrity sha1-qh2Ogk3YK4cYwMQOOQbDTM11JRY=
|
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"
|
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=
|
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:
|
watchpack@^1.6.0:
|
||||||
version "1.6.0"
|
version "1.6.0"
|
||||||
resolved "https://registry.npm.taobao.org/watchpack/download/watchpack-1.6.0.tgz#4bc12c2ebe8aa277a71f1d3f14d685c7b446cd00"
|
resolved "https://registry.npm.taobao.org/watchpack/download/watchpack-1.6.0.tgz#4bc12c2ebe8aa277a71f1d3f14d685c7b446cd00"
|
||||||
|
|
Loading…
Reference in a new issue