Commit 195a69cd authored by Adam Procter's avatar Adam Procter

updated with a quick stats view

dummy stats view and tweaked nav menu to behave a little nicer
parent e28aaa32
Pipeline #208 failed with stages
in 1 minute and 11 seconds
<template>
<main>
<nav>
<ul>
<li> <router-link to="/selectscreen" v-if="isLoggedIn" @click.native="logout()">Sign Out</router-link></li>
<li> <router-link to="/home" v-if="isLoggedIn" >Home</router-link></li>
<li> <router-link to="/about">About</router-link></li>
</ul>
</nav>
<li> <router-link to="/home" v-if="isLoggedIn">Home</router-link><router-link to="/selectscreen" v-else>Start</router-link></li>
<li> <router-link to="/stats" v-if="isLoggedIn">Your Stats</router-link></li>
<li> <router-link to="/selectscreen" v-if="isLoggedIn" @click.native="logout()">Sign Out</router-link></li>
<li> <router-link to="/about">About</router-link></li>
</ul>
</nav>
<router-view />
</main>
</template>
......
......@@ -35,6 +35,12 @@ export default new Router({
name: 'editor',
component: () =>
import(/* webpackChunkName: "editor" */ "./views/editor.vue")
},
{
path: '/stats',
name: 'stats',
component: () =>
import(/* webpackChunkName: "stats" */ "./views/stats.vue")
}
]
......
<template>
<div>
<logo></logo>
<p> Useful stats will go here</p>
</div>
</template>
<script>
import logo from "@/components/instance-logo.vue";
export default {
name: 'stats',
components: {
logo: logo
}
}
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment