From a7068e5ebf2e569e57ab08b651f8a282b2a99c01 Mon Sep 17 00:00:00 2001 From: "Ichiro.S" Date: Sun, 5 Nov 2023 22:47:33 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=93=E3=83=B3=E3=82=B4=E3=81=AE=E5=85=AC?= =?UTF-8?q?=E9=96=8B=E8=A8=AD=E5=AE=9A=E3=81=AE=E5=A4=89=E6=9B=B4=E3=81=A8?= =?UTF-8?q?=E3=82=BB=E3=83=AB=E3=81=AB=E6=8A=95=E7=A8=BF=E8=80=85=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=83=A6=E3=83=BC=E3=82=B6=E3=82=92=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=20(#84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BingoCardCarousel.vue | 21 ++++- components/BingoCardDetailModal.vue | 26 ++++++- components/BingoCardView.vue | 21 +++-- components/CreateUserBadge.vue | 59 +++++++++----- pages/create.vue | 16 +++- pages/index.vue | 20 ++++- pages/mypage.vue | 18 +++++ server/api/bingoCard/index.post.ts | 1 + server/api/bingoCell/[bingoCardId].get.ts | 23 ++++++ server/api/user/index.put.ts | 28 +++++++ server/facades/repositories/bingoContents.ts | 81 +++++++++++++++++++- server/facades/repositories/users.ts | 12 +++ server/models/bingo/dto.ts | 9 ++- server/models/bingo/request.ts | 1 + server/models/bingo/response.ts | 10 ++- server/models/user/dto.ts | 2 + server/models/user/request.ts | 5 ++ 17 files changed, 315 insertions(+), 38 deletions(-) create mode 100644 server/api/bingoCell/[bingoCardId].get.ts create mode 100644 server/api/user/index.put.ts diff --git a/components/BingoCardCarousel.vue b/components/BingoCardCarousel.vue index f5b03ec..91a0a2a 100644 --- a/components/BingoCardCarousel.vue +++ b/components/BingoCardCarousel.vue @@ -57,6 +57,7 @@ @@ -88,18 +89,24 @@ @postBingoCellRequest="postBingoCellRequest" @postCheckFollowingSubject="postCheckFollowingSubject" @openNextBingoCardDetailModal="openNextBingoCardDetailModal" + :currentUserUid="props.currentUserUid" :selectedBingoCell="selectedBingoCardCell" :isFollowingSubject="isFollowingSubject" :selectedBingoCardCellNo="selectedBingoCardCellNo" + :answeredUserDetail="props.selectedBingoCellDetail?.answeredUserDetail" /> diff --git a/pages/create.vue b/pages/create.vue index d218234..3bf1d36 100644 --- a/pages/create.vue +++ b/pages/create.vue @@ -94,6 +94,18 @@ --> + + + +
{ Authorization: `Bearer ${await currentUser.value?.getIdToken()}`, }, body: JSON.stringify({ + ...form.value, title: form.value.title == "" ? "タイトルなし" : form.value.title, - theme: form.value.theme, - imageColor: form.value.imageColor, } as BongoCreateRequest), }); const data = (await res.json()) as { message: string; bingoCardId: string }; diff --git a/pages/index.vue b/pages/index.vue index 6dc2179..874f7d5 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -3,8 +3,11 @@ @clearIsFollowingSubject="clearIsFollowingSubject" @postBingoCellRequest="postBingoCellRequest" @postCheckFollowingSubject="postCheckFollowingSubject" + @getBingoCellDetail="getBingoCellDetail" :bingoCards="bingoCardDetails" :isFollowingSubject="isFollowingSubject" + :currentUserUid="currentUser?.uid" + :selectedBingoCellDetail="bingoCellDetail" />