From 69b2846f78c68fcebaf1dbfb5e2240f37ba2a626 Mon Sep 17 00:00:00 2001 From: "Ichiro.S" Date: Sun, 29 Oct 2023 14:17:34 +0900 Subject: [PATCH] =?UTF-8?q?56=20febe=E3=83=A1=E3=82=BF=E3=83=9E=E3=82=B9?= =?UTF-8?q?=E3=82=AF=E9=80=A3=E6=90=BA=20(#57)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 5 +- components/MyProfile.vue | 13 +- nuxt.config.ts | 5 + package-lock.json | 5555 +++++++++++++++++- package.json | 6 + pages/login.vue | 7 + pages/mypage.vue | 94 +- server/api/user/wallet/index.put.ts | 24 + server/facades/repositories/bingoContents.ts | 2 +- server/facades/repositories/users.ts | 21 + server/models/user/dto.ts | 8 + server/models/user/request.ts | 5 + 12 files changed, 5627 insertions(+), 118 deletions(-) create mode 100644 server/api/user/wallet/index.put.ts create mode 100644 server/facades/repositories/users.ts create mode 100644 server/models/user/dto.ts create mode 100644 server/models/user/request.ts diff --git a/.env.example b/.env.example index 6a9e7a4..fb30802 100644 --- a/.env.example +++ b/.env.example @@ -10,4 +10,7 @@ FIREBASE_AUTH_DOMAIN=${firebaseの認証ドメイン} FIREBASE_PROJECT_ID=${firebaseのプロジェクトID} FIREBASE_MESSAGING_SENDER_ID=${firebaseのメッセージング送信者ID} FIREBASE_APP_ID=${firebaseのアプリID} -FIREBASE_MEASUREMENT_ID=${firebaseの測定ID} \ No newline at end of file +FIREBASE_MEASUREMENT_ID=${firebaseの測定ID} + +// Wallet Connect +WALLET_CONNECT_PROJECT_ID=${wallet connectのプロジェクトID} \ No newline at end of file diff --git a/components/MyProfile.vue b/components/MyProfile.vue index 7322e5c..bd07273 100644 --- a/components/MyProfile.vue +++ b/components/MyProfile.vue @@ -48,6 +48,10 @@ const props = defineProps({ type: String as PropType, required: true, }, + walletAccount: { + type: Object, + required: true, + }, }); // プロフィール画像が設定されていない場合のデフォルト画像 @@ -62,7 +66,13 @@ const exchangeableToken = 100; const missionClearCount = 25; const missionCreateCount = 10; const missionClearedByOtherCount = 120; -const walletAddress = "testtesttest"; +const walletAddress = computed(() => { + console.log(props.walletAccount); + return ( + props.walletAccount?.address ?? + "接続されていません。ウォレットと接続してください" + ); +});