Finished creating result statistic views

This commit is contained in:
2022-08-31 23:58:48 +01:00
parent 187c52cd44
commit 96d751843a
10 changed files with 258 additions and 28 deletions

View File

@ -1,5 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router'
import { mdiAccountBoxMultiple, mdiAccountGroupOutline, mdiAccountQuestion, mdiChartBox, mdiCodeTags, mdiCounter, mdiEarth, mdiHandCoin, mdiHome, mdiInformation, mdiWeb } from '@mdi/js'
import { mdiAccountBoxMultiple, mdiAccountGroupOutline, mdiAccountQuestion, mdiChartBox, mdiCodeTags, mdiCompare, mdiCounter, mdiEarth, mdiHandCoin, mdiHome, mdiInformation, mdiWeb } from '@mdi/js'
import About from '@/views/about/Index.vue'
import AboutPage from '@/views/about/About.vue'
import Acknowledgements from '@/views/about/Acknowledgements.vue'
@ -13,8 +13,9 @@ import Refused from '@/views/errors/Refused.vue'
import Results from '@/views/results/Index.vue'
import ResultsPage from '@/views/results/Results.vue'
import Scores from '@/views/results/Scores.vue'
import Answers from '@/views/results/Answers.vue'
import CompareAnswers from '@/views/results/CompareAnswers.vue'
import Statistics from '@/views/results/Statistics.vue'
import CompareResults from '@/views/results/CompareResults.vue'
const routes = [
{
@ -144,17 +145,28 @@ const routes = [
component: Scores,
meta: {
index: 1,
title: 'All Scores',
title: 'Your Scores',
svgPath: mdiCounter,
parentIndex: -1
}
},
{
path: 'compare',
name: 'CompareResults',
component: CompareResults,
meta: {
index: 2,
title: 'Compare Results',
svgPath: mdiCompare,
parentIndex: -1
}
},
{
path: 'statistics',
name: 'Statistics',
component: Statistics,
meta: {
index: 2,
index: 3,
title: 'Statistics',
svgPath: mdiChartBox,
parentIndex: -1
@ -163,10 +175,10 @@ const routes = [
{
path: 'answers',
name: 'Answers',
component: Answers,
component: CompareAnswers,
meta: {
index: 3,
title: 'Global Answers',
index: 4,
title: 'Compare Answers',
svgPath: mdiEarth,
parentIndex: -1
}