diff --git a/frontend/src/layouts/MainLayout.vue b/frontend/src/layouts/MainLayout.vue index fc69d4d..f1c3334 100644 --- a/frontend/src/layouts/MainLayout.vue +++ b/frontend/src/layouts/MainLayout.vue @@ -50,6 +50,19 @@ import { ref } from 'vue'; import EssentialLink, { EssentialLinkProps } from 'components/EssentialLink.vue'; const essentialLinks: EssentialLinkProps[] = [ +{ + title: 'ホーム', + caption: 'home', + icon: 'home', + link: '/' + }, + { + title: 'ルールエディター', + caption: 'rule', + icon: 'rule', + link: '/#/ruleEditor' + } + , { title: 'Docs', caption: 'quasar.dev', diff --git a/frontend/src/pages/IndexPage.vue b/frontend/src/pages/IndexPage.vue index cff76f0..36bc2ed 100644 --- a/frontend/src/pages/IndexPage.vue +++ b/frontend/src/pages/IndexPage.vue @@ -1,6 +1,12 @@ diff --git a/frontend/src/router/routes.ts b/frontend/src/router/routes.ts index 2d34fc1..0b5f767 100644 --- a/frontend/src/router/routes.ts +++ b/frontend/src/router/routes.ts @@ -6,6 +6,11 @@ const routes: RouteRecordRaw[] = [ component: () => import('layouts/MainLayout.vue'), children: [{ path: '', component: () => import('pages/IndexPage.vue') }], }, + { + path: '/ruleEditor/', + component: () => import('layouts/MainLayout.vue'), + children: [{ path: '', component: () => import('pages/RuleEditor.vue') }], + }, // Always leave this as last one, // but you can also remove it