Add specs page and link from version in panel (#130)
Closes: #126 Signed-off-by: Justin Georgi <justin.georgi@gmail.com> Reviewed-on: #130
This commit is contained in:
@@ -4,6 +4,7 @@ import AboutPage from '../pages/about.vue';
|
||||
import SettingsPage from '../pages/settings.vue';
|
||||
import DetectPage from '../pages/detect.vue';
|
||||
import ContactPage from '../pages/contact.vue';
|
||||
import SpecsPage from '../pages/specs.vue';
|
||||
|
||||
import NotFoundPage from '../pages/404.vue';
|
||||
|
||||
@@ -16,6 +17,10 @@ var routes = [
|
||||
path: '/about/',
|
||||
component: AboutPage,
|
||||
},
|
||||
{
|
||||
path: '/specs/',
|
||||
component: SpecsPage,
|
||||
},
|
||||
{
|
||||
path: '/detect/:region/',
|
||||
component: DetectPage,
|
||||
|
||||
@@ -2,7 +2,8 @@ import { reactive, computed } from 'vue';
|
||||
|
||||
const state = reactive({
|
||||
disclaimerAgreement: false,
|
||||
enabledRegions: ['thorax','abdomen','limbs']
|
||||
enabledRegions: ['thorax','abdomen','limbs'],
|
||||
version: '0.4.0'
|
||||
})
|
||||
|
||||
const agree = () => {
|
||||
@@ -12,5 +13,6 @@ const agree = () => {
|
||||
export default () => ({
|
||||
isAgreed: computed(() => state.disclaimerAgreement),
|
||||
getRegions: computed(() => state.enabledRegions),
|
||||
getVersion: computed(() => state.version),
|
||||
agree
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user