From 51b193f2b9011626be008ce4a6051825edeaf8ce Mon Sep 17 00:00:00 2001 From: hikahana <22.h.hanada.nutfes@gmail.com> Date: Thu, 7 Nov 2024 10:08:46 +0000 Subject: [PATCH 1/8] =?UTF-8?q?codegen=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view-admin/src/type/graphql.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/view-admin/src/type/graphql.ts b/view-admin/src/type/graphql.ts index 26ab7f7..1c8df92 100644 --- a/view-admin/src/type/graphql.ts +++ b/view-admin/src/type/graphql.ts @@ -2116,11 +2116,11 @@ export type GetOneLatestReachLogQuery = { reachLogs: Array<{ __typename?: "ReachLogs"; reachNum: number }>; }; -export type SubscribeOneLatestReachlogSubscriptionVariables = Exact<{ +export type SubscribeOneLatestReachLogSubscriptionVariables = Exact<{ [key: string]: never; }>; -export type SubscribeOneLatestReachlogSubscription = { +export type SubscribeOneLatestReachLogSubscription = { __typename?: "subscription_root"; reachLogs: Array<{ __typename?: "ReachLogs"; reachNum: number }>; }; @@ -2451,15 +2451,15 @@ export type GetOneLatestReachLogQueryResult = Apollo.QueryResult< GetOneLatestReachLogQuery, GetOneLatestReachLogQueryVariables >; -export const SubscribeOneLatestReachlogDocument = gql` - subscription SubscribeOneLatestReachlog { +export const SubscribeOneLatestReachLogDocument = gql` + subscription SubscribeOneLatestReachLog { reachLogs(orderBy: { createdAt: DESC }, limit: 1) { reachNum } } `; -export type SubscribeOneLatestReachlogSubscriptionResult = - Apollo.SubscriptionResult; +export type SubscribeOneLatestReachLogSubscriptionResult = + Apollo.SubscriptionResult; export const GetListReachLogsAfterTimestampDocument = gql` query GetListReachLogsAfterTimestamp($timestamp: timestamptz!) { reachLogs( From bc6b60fd50462d8a701ed146ce5f641c48438e9f Mon Sep 17 00:00:00 2001 From: hikahana <22.h.hanada.nutfes@gmail.com> Date: Thu, 7 Nov 2024 10:12:01 +0000 Subject: [PATCH 2/8] =?UTF-8?q?=E3=82=AD=E3=83=A3=E3=83=A1=E3=83=AB?= =?UTF-8?q?=E3=82=B1=E3=83=BC=E3=82=B9=E3=81=B8=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view-admin/src/styles/Home.module.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view-admin/src/styles/Home.module.css b/view-admin/src/styles/Home.module.css index 8e07a35..ec74115 100644 --- a/view-admin/src/styles/Home.module.css +++ b/view-admin/src/styles/Home.module.css @@ -153,7 +153,7 @@ font-size: small; } -.flexerror { +.flexError { display: flex; flex-direction: column; } From ce49169d29b010d2c6cd04a8fdf3346cc966fac5 Mon Sep 17 00:00:00 2001 From: hikahana <22.h.hanada.nutfes@gmail.com> Date: Thu, 7 Nov 2024 10:12:27 +0000 Subject: [PATCH 3/8] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AAimport=E3=81=AE?= =?UTF-8?q?=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view-admin/src/components/common/BingoResult/BingoResult.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view-admin/src/components/common/BingoResult/BingoResult.tsx b/view-admin/src/components/common/BingoResult/BingoResult.tsx index 3dc5234..8ddb9f4 100644 --- a/view-admin/src/components/common/BingoResult/BingoResult.tsx +++ b/view-admin/src/components/common/BingoResult/BingoResult.tsx @@ -1,4 +1,4 @@ -import React, { ReactNode } from "react"; +import React from "react"; import styles from "./BingoResult.module.css"; import { SubscribeListNumbersSubscription } from "@/type/graphql"; From 42b52f145e32bd12d8e551ac20c9d30f71940c1f Mon Sep 17 00:00:00 2001 From: hikahana <22.h.hanada.nutfes@gmail.com> Date: Thu, 7 Nov 2024 10:13:09 +0000 Subject: [PATCH 4/8] =?UTF-8?q?graphql=E3=81=AEimport=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/PrizeResult/PrizeResult.tsx | 12 ++++++------ .../UpdateNumberModal/UpdateNumberModal.tsx | 8 ++++---- view-admin/src/pages/index.tsx | 16 +++++++--------- view-admin/src/pages/postPrizes/index.tsx | 13 +++++-------- view-admin/src/pages/prizes/index.tsx | 3 +-- view-user/src/components/Layout/Layout.tsx | 12 +++++------- .../cards/NumberCardList/NumberCardList.tsx | 2 +- .../cards/NumberCardSmall/NumberCardSmall.tsx | 2 +- .../common/cards/PrizeCard/PrizeCard.tsx | 2 +- view-user/src/pages/index.tsx | 6 ++++-- view-user/src/pages/prizes/index.tsx | 6 ++---- 11 files changed, 37 insertions(+), 45 deletions(-) diff --git a/view-admin/src/components/common/PrizeResult/PrizeResult.tsx b/view-admin/src/components/common/PrizeResult/PrizeResult.tsx index 2ded830..5edf0ee 100644 --- a/view-admin/src/components/common/PrizeResult/PrizeResult.tsx +++ b/view-admin/src/components/common/PrizeResult/PrizeResult.tsx @@ -1,13 +1,13 @@ import React, { useState } from "react"; import styles from "./PrizeResult.module.css"; import { useMutation } from "@apollo/client"; -import { UpdateOnePrizeIsWonDocument } from "@/type/graphql"; -import Image from "next/image"; -import type { - UpdateOnePrizeIsWonMutation, - UpdateOnePrizeIsWonMutationVariables, - GetListPrizesQuery, +import { + UpdateOnePrizeIsWonDocument, + type UpdateOnePrizeIsWonMutation, + type UpdateOnePrizeIsWonMutationVariables, + type GetListPrizesQuery, } from "@/type/graphql"; +import Image from "next/image"; interface PrizeResultProps { prizeResult: GetListPrizesQuery["prizes"]; diff --git a/view-admin/src/components/common/UpdateNumberModal/UpdateNumberModal.tsx b/view-admin/src/components/common/UpdateNumberModal/UpdateNumberModal.tsx index 7720506..8f8f49f 100644 --- a/view-admin/src/components/common/UpdateNumberModal/UpdateNumberModal.tsx +++ b/view-admin/src/components/common/UpdateNumberModal/UpdateNumberModal.tsx @@ -2,10 +2,10 @@ import React, { useState } from "react"; import styles from "./UpdateNumberModal.module.css"; import { RxCrossCircled } from "react-icons/rx"; import { useMutation } from "@apollo/client"; -import { UpdateOneNumberDocument } from "@/type/graphql"; -import type { - UpdateOneNumberMutation, - UpdateOneNumberMutationVariables, +import { + UpdateOneNumberDocument, + type UpdateOneNumberMutation, + type UpdateOneNumberMutationVariables, } from "@/type/graphql"; interface UpdateNumberModalProps { diff --git a/view-admin/src/pages/index.tsx b/view-admin/src/pages/index.tsx index 6fb9ed3..a045703 100644 --- a/view-admin/src/pages/index.tsx +++ b/view-admin/src/pages/index.tsx @@ -19,11 +19,9 @@ import { SubscribeListNumbersDocument, IncrementReachNumDocument, DecrementReachNumDocument, -} from "@/type/graphql"; -import type { - SubscribeListNumbersSubscription, - IncrementReachNumMutation, - DecrementReachNumMutation, + type SubscribeListNumbersSubscription, + type IncrementReachNumMutation, + type DecrementReachNumMutation, } from "@/type/graphql"; interface formDataCreate { @@ -43,7 +41,7 @@ const Page: NextPage = () => { SubscribeListNumbersSubscription["numbers"] >([]); const [isOpened, setIsOpened] = useState(false); - const isopenBool = () => setIsOpened(!isOpened); + const isOpenBool = () => setIsOpened(!isOpened); const [isOpenUpdateNumberModal, setIsOpenUpdateNumberModal] = useState(false); @@ -143,7 +141,7 @@ const Page: NextPage = () => { >

景品管理

-