From 09760f31f8c09af59dfeb1b2fe782e04c8fec1a6 Mon Sep 17 00:00:00 2001 From: isamu Date: Tue, 24 Oct 2023 10:28:35 +0900 Subject: [PATCH] update menu --- src/components/MenuItem.vue | 37 +++++++++++++++++++ src/components/MenuList.vue | 71 ++++++++++++------------------------- src/i18n/en.ts | 7 ++++ src/i18n/ja.ts | 7 ++++ 4 files changed, 74 insertions(+), 48 deletions(-) create mode 100644 src/components/MenuItem.vue diff --git a/src/components/MenuItem.vue b/src/components/MenuItem.vue new file mode 100644 index 0000000..49e4452 --- /dev/null +++ b/src/components/MenuItem.vue @@ -0,0 +1,37 @@ + + diff --git a/src/components/MenuList.vue b/src/components/MenuList.vue index 3384f4d..b497a89 100644 --- a/src/components/MenuList.vue +++ b/src/components/MenuList.vue @@ -1,58 +1,28 @@ @@ -62,8 +32,13 @@ import { useStore } from "vuex"; import { auth } from "@/utils/firebase"; import { signOut } from "firebase/auth"; +import MenuItem from "@/components/MenuItem.vue"; + export default defineComponent({ emits: ["close-menu"], + components: { + MenuItem, + }, setup(_, ctx) { const store = useStore(); @@ -76,8 +51,8 @@ export default defineComponent({ }; return { handleClose, - logout, - store, + logout, + store, }; }, }); diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 030c459..93c72db 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -4,6 +4,13 @@ const lang = { message: { hello: "hello world", }, + menu: { + top: "Home", + mypage: "MyPage", + signin: "SignIn", + signout: "SignOut", + about: "Abount", + }, languages, }; diff --git a/src/i18n/ja.ts b/src/i18n/ja.ts index 214be27..ba14b66 100644 --- a/src/i18n/ja.ts +++ b/src/i18n/ja.ts @@ -4,6 +4,13 @@ const lang = { message: { hello: "こんにちは、世界", }, + menu: { + top: "Home", + mypage: "マイページ", + signin: "ログイン", + signout: "ログアウト", + about: "Abount", + }, languages, };