From a992d080e12139651180b0b881498edc7ecadcfe Mon Sep 17 00:00:00 2001 From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com> Date: Wed, 4 Dec 2024 02:08:17 +0900 Subject: [PATCH 1/8] =?UTF-8?q?feat:=20ai=20=EC=9A=94=EC=95=BD=20=ED=99=95?= =?UTF-8?q?=EC=9D=B8=20dialog=20UI=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/assets/icons/ai-summary.svg | 5 ++++ .../dashboard/apply/AiSummaryDialog.tsx | 18 ++++++++++++ .../dashboard/apply/TicleInfoCard.tsx | 28 +++++++++++++++++-- 3 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 apps/web/src/assets/icons/ai-summary.svg create mode 100644 apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx diff --git a/apps/web/src/assets/icons/ai-summary.svg b/apps/web/src/assets/icons/ai-summary.svg new file mode 100644 index 00000000..52f16db8 --- /dev/null +++ b/apps/web/src/assets/icons/ai-summary.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx b/apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx new file mode 100644 index 00000000..ba33166c --- /dev/null +++ b/apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx @@ -0,0 +1,18 @@ +import { Dialog } from '@/components/common/Dialog'; + +interface AiSummaryDialogProps { + isOpen: boolean; + onClose: () => void; +} + +function AiSummaryDialog({ isOpen, onClose }: AiSummaryDialogProps) { + return ( + + 신청자 목록 + + hi + + ); +} + +export default AiSummaryDialog; diff --git a/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx b/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx index 242dfedc..9b46da58 100644 --- a/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx +++ b/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx @@ -1,9 +1,13 @@ import { Link, useNavigate } from '@tanstack/react-router'; import { MouseEvent } from 'react'; +import AiSummaryIc from '@/assets/icons/ai-summary.svg?react'; import Button from '@/components/common/Button'; +import useModal from '@/hooks/useModal'; import { formatDateTimeRange } from '@/utils/date'; +import AiSummaryDialog from './AiSummaryDialog'; + interface TicleInfoCardProps { ticleId: number; speakerName: string; @@ -21,6 +25,7 @@ function TicleInfoCard({ endTime, status, }: TicleInfoCardProps) { + const { isOpen, onOpen, onClose } = useModal(); const { dateStr, timeRangeStr } = formatDateTimeRange(startTime, endTime); const navigate = useNavigate(); @@ -29,6 +34,11 @@ function TicleInfoCard({ navigate({ to: `/live/${ticleId}` }); }; + const handleAiSummaryDialogOpen = (e: MouseEvent) => { + e.preventDefault(); + onOpen(); + }; + return ( @@ -48,9 +58,21 @@ function TicleInfoCard({ {`${dateStr} ${timeRangeStr}`} - - {status === 'closed' ? '종료된 티클' : '티클 참여하기'} - + + + AI 음성 요약 + + + + + + {status === 'closed' ? '종료된 티클' : '티클 참여하기'} + + + {isOpen && } ); From 216eb154dbb6ff8a6027ef1e76a028066971b9b8 Mon Sep 17 00:00:00 2001 From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com> Date: Wed, 4 Dec 2024 02:22:03 +0900 Subject: [PATCH 2/8] =?UTF-8?q?feat:=20ai=20=EC=9A=94=EC=95=BD=EB=B3=B8=20?= =?UTF-8?q?GET=20api=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/api/dashboard.ts | 12 +++++++++- .../dashboard/apply/AiSummaryDialog.tsx | 12 +++++++--- .../dashboard/apply/TicleInfoCard.tsx | 24 +++++++++++-------- apps/web/src/hooks/api/dashboard.ts | 16 ++++++++++++- .../types/src/dashboard/getDashboardList.ts | 6 +++++ 5 files changed, 55 insertions(+), 15 deletions(-) diff --git a/apps/web/src/api/dashboard.ts b/apps/web/src/api/dashboard.ts index 17aeca4d..b8ebdfbf 100644 --- a/apps/web/src/api/dashboard.ts +++ b/apps/web/src/api/dashboard.ts @@ -1,4 +1,6 @@ import { + DashboardAiSummaryResponse, + DashboardAiSummaryResponseSchema, DashboardApplicantsResponse, DashboardApplicantsResponseSchema, DashboardListResponse, @@ -26,6 +28,14 @@ const getApplicantsTicle = async (ticleId: string) => { }); }; +const getAiSummary = async (ticleId: string) => { + return request({ + method: 'GET', + url: `/stream/summary/${ticleId}`, + schema: DashboardAiSummaryResponseSchema, + }); +}; + const startTicle = async (ticleId: string) => { const { data } = await axiosInstance.post(`/dashboard/${ticleId}/start`); @@ -38,4 +48,4 @@ const joinTicle = async (ticleId: string) => { return data; }; -export { getDashboardTicleList, startTicle, joinTicle, getApplicantsTicle }; +export { getDashboardTicleList, startTicle, joinTicle, getApplicantsTicle, getAiSummary }; diff --git a/apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx b/apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx index ba33166c..34ff773d 100644 --- a/apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx +++ b/apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx @@ -1,16 +1,22 @@ import { Dialog } from '@/components/common/Dialog'; +import { useAiSummary } from '@/hooks/api/dashboard'; interface AiSummaryDialogProps { isOpen: boolean; onClose: () => void; + ticleId: string; } -function AiSummaryDialog({ isOpen, onClose }: AiSummaryDialogProps) { +function AiSummaryDialog({ isOpen, onClose, ticleId }: AiSummaryDialogProps) { + const { data } = useAiSummary(ticleId); + return ( - 신청자 목록 + AI 음성 요약 - hi + + {data?.summary[0]} + ); } diff --git a/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx b/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx index 9b46da58..136f1f6c 100644 --- a/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx +++ b/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx @@ -59,20 +59,24 @@ function TicleInfoCard({ - - AI 음성 요약 - - - - + {status === 'closed' && ( + + AI 음성 요약 + + + + + )} {status === 'closed' ? '종료된 티클' : '티클 참여하기'} - {isOpen && } + {isOpen && ( + + )} ); diff --git a/apps/web/src/hooks/api/dashboard.ts b/apps/web/src/hooks/api/dashboard.ts index 7cccd1b2..ade5fbaf 100644 --- a/apps/web/src/hooks/api/dashboard.ts +++ b/apps/web/src/hooks/api/dashboard.ts @@ -1,7 +1,13 @@ import { useQuery, useMutation, useQueryClient, useInfiniteQuery } from '@tanstack/react-query'; import { GetDashboardListQueryType } from '@repo/types'; -import { getDashboardTicleList, getApplicantsTicle, startTicle, joinTicle } from '@/api/dashboard'; +import { + getDashboardTicleList, + getApplicantsTicle, + startTicle, + joinTicle, + getAiSummary, +} from '@/api/dashboard'; export const useDashboardTicleList = (params: GetDashboardListQueryType) => { return useInfiniteQuery({ @@ -28,6 +34,14 @@ export const useApplicantsTicle = (ticleId: string) => { }); }; +export const useAiSummary = (ticleId: string) => { + return useQuery({ + queryKey: ['aiSummary', ticleId], + queryFn: () => getAiSummary(ticleId), + enabled: !!ticleId, + }); +}; + export const useStartTicle = () => { const queryClient = useQueryClient(); diff --git a/packages/types/src/dashboard/getDashboardList.ts b/packages/types/src/dashboard/getDashboardList.ts index 90b10c67..23363e3c 100644 --- a/packages/types/src/dashboard/getDashboardList.ts +++ b/packages/types/src/dashboard/getDashboardList.ts @@ -61,3 +61,9 @@ export const DashboardApplicantsResponseSchema = z.array( ); export type DashboardApplicantsResponse = z.infer; + +export const DashboardAiSummaryResponseSchema = z.object({ + summary: z.array(z.string()), +}); + +export type DashboardAiSummaryResponse = z.infer; From bacadc682805f66b8357a0cc9250fef6e9fa3044 Mon Sep 17 00:00:00 2001 From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com> Date: Wed, 4 Dec 2024 02:30:33 +0900 Subject: [PATCH 3/8] =?UTF-8?q?feat:=20=EA=B0=9C=EC=84=A4=ED=95=9C=20?= =?UTF-8?q?=ED=8B=B0=ED=81=B4=20=EA=B4=80=EB=A6=AC=EC=97=90=EC=84=9C?= =?UTF-8?q?=EB=8F=84=20ai=20=EC=9A=94=EC=95=BD=EB=B3=B8=20=EB=B3=B4?= =?UTF-8?q?=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/{apply => }/AiSummaryDialog.tsx | 0 .../dashboard/apply/TicleInfoCard.tsx | 2 +- .../dashboard/open/TicleInfoCard.tsx | 47 +++++++++++++++++-- 3 files changed, 44 insertions(+), 5 deletions(-) rename apps/web/src/components/dashboard/{apply => }/AiSummaryDialog.tsx (100%) diff --git a/apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx b/apps/web/src/components/dashboard/AiSummaryDialog.tsx similarity index 100% rename from apps/web/src/components/dashboard/apply/AiSummaryDialog.tsx rename to apps/web/src/components/dashboard/AiSummaryDialog.tsx diff --git a/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx b/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx index 136f1f6c..5b725ae2 100644 --- a/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx +++ b/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx @@ -6,7 +6,7 @@ import Button from '@/components/common/Button'; import useModal from '@/hooks/useModal'; import { formatDateTimeRange } from '@/utils/date'; -import AiSummaryDialog from './AiSummaryDialog'; +import AiSummaryDialog from '../AiSummaryDialog'; interface TicleInfoCardProps { ticleId: number; diff --git a/apps/web/src/components/dashboard/open/TicleInfoCard.tsx b/apps/web/src/components/dashboard/open/TicleInfoCard.tsx index c23bd7c6..402fa6a8 100644 --- a/apps/web/src/components/dashboard/open/TicleInfoCard.tsx +++ b/apps/web/src/components/dashboard/open/TicleInfoCard.tsx @@ -1,6 +1,7 @@ import { Link, useNavigate } from '@tanstack/react-router'; import { MouseEvent } from 'react'; +import AiSummaryIc from '@/assets/icons/ai-summary.svg?react'; import PersonFilledIc from '@/assets/icons/person-filled.svg?react'; import Button from '@/components/common/Button'; import { useApplicantsTicle, useStartTicle } from '@/hooks/api/dashboard'; @@ -8,6 +9,7 @@ import useModal from '@/hooks/useModal'; import { formatDateTimeRange } from '@/utils/date'; import ApplicantsDialog from './ApplicantsDialog'; +import AiSummaryDialog from '../AiSummaryDialog'; interface TicleInfoCardProps { ticleId: number; @@ -18,7 +20,17 @@ interface TicleInfoCardProps { } function TicleInfoCard({ ticleId, ticleTitle, startTime, endTime, status }: TicleInfoCardProps) { - const { isOpen, onOpen, onClose } = useModal(); + const { + isOpen: isApplicantsDialogOpen, + onOpen: onApplicantsDialogOpen, + onClose: onApplicantsDialogClose, + } = useModal(); + + const { + isOpen: isAiSummaryDialogOpen, + onOpen: onAiSummaryDialogOpen, + onClose: onAiSummaryDialogClose, + } = useModal(); const { data: applicantsData } = useApplicantsTicle(ticleId.toString()); const { mutate: ticleStartMutate } = useStartTicle(); @@ -36,7 +48,12 @@ function TicleInfoCard({ ticleId, ticleTitle, startTime, endTime, status }: Ticl const handleApplicantsDialogOpen = (e: MouseEvent) => { e.preventDefault(); - onOpen(); + onApplicantsDialogOpen(); + }; + + const handleAiSummaryDialogOpen = (e: MouseEvent) => { + e.preventDefault(); + onAiSummaryDialogOpen(); }; return ( @@ -55,6 +72,17 @@ function TicleInfoCard({ ticleId, ticleTitle, startTime, endTime, status }: Ticl + {status === 'closed' && ( + + AI 음성 요약 + + + + + )} - {isOpen && ( - + {isApplicantsDialogOpen && ( + + )} + {isAiSummaryDialogOpen && ( + )} From 5657c7677b11a9852a614b55be0f5e794b36a9e0 Mon Sep 17 00:00:00 2001 From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com> Date: Wed, 4 Dec 2024 02:40:12 +0900 Subject: [PATCH 4/8] =?UTF-8?q?feat:=20AI=20=EC=9A=94=EC=95=BD=EC=9D=B4=20?= =?UTF-8?q?=EC=99=84=EB=A3=8C=EB=90=98=EC=A7=80=20=EC=95=8A=EC=95=98?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=20=EB=B3=B4=EC=97=AC=EC=A4=84=20=EB=A1=9C?= =?UTF-8?q?=EB=94=A9=20=EB=B7=B0=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/dashboard/AiSummaryDialog.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/dashboard/AiSummaryDialog.tsx b/apps/web/src/components/dashboard/AiSummaryDialog.tsx index 34ff773d..34bd5a65 100644 --- a/apps/web/src/components/dashboard/AiSummaryDialog.tsx +++ b/apps/web/src/components/dashboard/AiSummaryDialog.tsx @@ -1,6 +1,8 @@ import { Dialog } from '@/components/common/Dialog'; import { useAiSummary } from '@/hooks/api/dashboard'; +import Loading from '../common/Loading'; + interface AiSummaryDialogProps { isOpen: boolean; onClose: () => void; @@ -15,7 +17,16 @@ function AiSummaryDialog({ isOpen, onClose, ticleId }: AiSummaryDialogProps) { AI 음성 요약 - {data?.summary[0]} + {!data || data?.summary.length === 0 ? ( + + + + AI 요약을 처리중이에요. + + + ) : ( + {data?.summary[0]} + )} ); From 4a3ab2f08b5c153448f44d065609ebcc1b6cc0c3 Mon Sep 17 00:00:00 2001 From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com> Date: Wed, 4 Dec 2024 03:05:18 +0900 Subject: [PATCH 5/8] =?UTF-8?q?feat:=20=EC=9D=B4=EB=AF=B8=20=EB=85=B9?= =?UTF-8?q?=EC=9D=8C=20=EB=B2=84=ED=8A=BC=EC=9D=84=20=EB=88=8C=EB=A0=80?= =?UTF-8?q?=EB=8B=A4=EB=A9=B4=20=EB=8B=A4=EC=8B=9C=20=EB=88=84=EB=A5=B4?= =?UTF-8?q?=EC=A7=80=20=EB=AA=BB=ED=95=98=EA=B2=8C=20=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/live/SettingDialog/AiSummary.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/live/SettingDialog/AiSummary.tsx b/apps/web/src/components/live/SettingDialog/AiSummary.tsx index 2e860f1a..13bfaa2d 100644 --- a/apps/web/src/components/live/SettingDialog/AiSummary.tsx +++ b/apps/web/src/components/live/SettingDialog/AiSummary.tsx @@ -1,5 +1,5 @@ import { useParams } from '@tanstack/react-router'; -import { useState } from 'react'; +import { useEffect, useState } from 'react'; import { SOCKET_EVENTS } from '@repo/mediasoup'; import Button from '@/components/common/Button'; @@ -8,15 +8,23 @@ import { useMediasoupState } from '@/contexts/mediasoup/context'; function AiSummary() { const [isRecording, setIsRecording] = useState(false); const { socketRef } = useMediasoupState(); + const socket = socketRef.current; const { ticleId: roomId } = useParams({ from: '/_authenticated/live/$ticleId' }); const handleRecordStart = () => { - const socket = socketRef.current; if (!socket) return; socket.emit(SOCKET_EVENTS.startRecord, { roomId }); setIsRecording(true); }; + useEffect(() => { + if (!socket) return; + socket.emit(SOCKET_EVENTS.getIsRecording, { roomId }, (res) => { + const { isRecording } = res; + setIsRecording(isRecording); + }); + }, []); + return ( From dbaf7b85ae84beadf0c6da33a98492fd257ac11f Mon Sep 17 00:00:00 2001 From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com> Date: Wed, 4 Dec 2024 03:11:07 +0900 Subject: [PATCH 6/8] =?UTF-8?q?feat:=20=EB=85=B9=EC=9D=8C=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=EC=9D=80=20=EB=B0=A9=EC=9E=A5=EC=97=90=EA=B2=8C?= =?UTF-8?q?=EB=A7=8C=20=EB=B3=B4=EC=97=AC=EC=A3=BC=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EB=B6=84=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/live/ControlBar/index.tsx | 6 ++++- .../components/live/SettingDialog/index.tsx | 27 ++++++++++++------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/apps/web/src/components/live/ControlBar/index.tsx b/apps/web/src/components/live/ControlBar/index.tsx index c4b273d8..2260be99 100644 --- a/apps/web/src/components/live/ControlBar/index.tsx +++ b/apps/web/src/components/live/ControlBar/index.tsx @@ -143,7 +143,11 @@ const ControlBar = ({ isOwner, onTicleEnd }: ControlBarProps) => { /> )} {isOpenSettingModal && ( - + )} > ); diff --git a/apps/web/src/components/live/SettingDialog/index.tsx b/apps/web/src/components/live/SettingDialog/index.tsx index 48f71da8..41f32282 100644 --- a/apps/web/src/components/live/SettingDialog/index.tsx +++ b/apps/web/src/components/live/SettingDialog/index.tsx @@ -1,4 +1,5 @@ import { cva } from 'class-variance-authority'; +import { i } from 'node_modules/@repo/mediasoup/dist/index-uthNRcro'; import { useState } from 'react'; import { Dialog } from '@/components/common/Dialog'; @@ -23,10 +24,12 @@ const listVariants = cva( const SIDEBAR_ITEMS = [ { + onlyForOwner: false, title: '오디오 및 비디오', Component: SelectMedia, }, { + onlyForOwner: true, title: 'AI 음성 요약', Component: AiSummary, }, @@ -35,9 +38,10 @@ const SIDEBAR_ITEMS = [ interface SettingDialogProps { isOpen: boolean; onClose: () => void; + isOwner: boolean; } -function SettingDialog({ isOpen, onClose }: SettingDialogProps) { +function SettingDialog({ isOpen, onClose, isOwner }: SettingDialogProps) { const [activeIndex, setActiveIndex] = useState(0); const Component = SIDEBAR_ITEMS[activeIndex]?.Component; @@ -48,15 +52,18 @@ function SettingDialog({ isOpen, onClose }: SettingDialogProps) { - {SIDEBAR_ITEMS.map((item, index) => ( - setActiveIndex(index)} - > - {item.title} - - ))} + {SIDEBAR_ITEMS.map( + (item, index) => + (item.onlyForOwner ? isOwner : true) && ( + setActiveIndex(index)} + > + {item.title} + + ) + )} {Component && } From 19379fc71be23c01a4b058ca79d67cf8ce30b36c Mon Sep 17 00:00:00 2001 From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:12:46 +0900 Subject: [PATCH 7/8] =?UTF-8?q?feat:=20=EB=B3=91=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/apply/TicleInfoCard.tsx | 22 +- .../components/live/SettingDialog/index.tsx | 1 - apps/web/src/routeTree.gen.ts | 315 +++++++++--------- 3 files changed, 172 insertions(+), 166 deletions(-) diff --git a/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx b/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx index 01b60372..7371fe80 100644 --- a/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx +++ b/apps/web/src/components/dashboard/apply/TicleInfoCard.tsx @@ -70,17 +70,17 @@ function TicleInfoCard({ )} - - {status === 'closed' - ? '종료된 티클' - : status === 'inProgress' - ? '티클 참여하기' - : '티클 시작 전'} - + + {status === 'closed' + ? '종료된 티클' + : status === 'inProgress' + ? '티클 참여하기' + : '티클 시작 전'} + {isOpen && ( diff --git a/apps/web/src/components/live/SettingDialog/index.tsx b/apps/web/src/components/live/SettingDialog/index.tsx index 41f32282..5ff23b29 100644 --- a/apps/web/src/components/live/SettingDialog/index.tsx +++ b/apps/web/src/components/live/SettingDialog/index.tsx @@ -1,5 +1,4 @@ import { cva } from 'class-variance-authority'; -import { i } from 'node_modules/@repo/mediasoup/dist/index-uthNRcro'; import { useState } from 'react'; import { Dialog } from '@/components/common/Dialog'; diff --git a/apps/web/src/routeTree.gen.ts b/apps/web/src/routeTree.gen.ts index fb46b8e0..53ad6fb7 100644 --- a/apps/web/src/routeTree.gen.ts +++ b/apps/web/src/routeTree.gen.ts @@ -10,229 +10,236 @@ // Import Routes -import { Route as rootRoute } from './routes/__root'; -import { Route as AuthenticatedLayoutImport } from './routes/_authenticated/_layout'; -import { Route as IndexImport } from './routes/index'; -import { Route as TicleTicleIdImport } from './routes/ticle/$ticleId'; -import { Route as AuthOauthImport } from './routes/auth/oauth'; -import { Route as AuthLoginImport } from './routes/auth/login'; -import { Route as AuthenticatedDashboardLayoutImport } from './routes/_authenticated/dashboard/_layout'; -import { Route as AuthenticatedTicleOpenImport } from './routes/_authenticated/ticle/open'; -import { Route as AuthenticatedLiveTicleIdImport } from './routes/_authenticated/live/$ticleId'; -import { Route as AuthenticatedDashboardOpenImport } from './routes/_authenticated/dashboard/open'; -import { Route as AuthenticatedDashboardApplyImport } from './routes/_authenticated/dashboard/apply'; +import { Route as rootRoute } from './routes/__root' +import { Route as AuthenticatedLayoutImport } from './routes/_authenticated/_layout' +import { Route as IndexImport } from './routes/index' +import { Route as TicleTicleIdImport } from './routes/ticle/$ticleId' +import { Route as AuthOauthImport } from './routes/auth/oauth' +import { Route as AuthLoginImport } from './routes/auth/login' +import { Route as AuthenticatedDashboardLayoutImport } from './routes/_authenticated/dashboard/_layout' +import { Route as AuthenticatedTicleOpenImport } from './routes/_authenticated/ticle/open' +import { Route as AuthenticatedLiveTicleIdImport } from './routes/_authenticated/live/$ticleId' +import { Route as AuthenticatedDashboardOpenImport } from './routes/_authenticated/dashboard/open' +import { Route as AuthenticatedDashboardApplyImport } from './routes/_authenticated/dashboard/apply' // Create/Update Routes const AuthenticatedLayoutRoute = AuthenticatedLayoutImport.update({ id: '/_authenticated', getParentRoute: () => rootRoute, -} as any); +} as any) const IndexRoute = IndexImport.update({ id: '/', path: '/', getParentRoute: () => rootRoute, -} as any); +} as any) const TicleTicleIdRoute = TicleTicleIdImport.update({ id: '/ticle/$ticleId', path: '/ticle/$ticleId', getParentRoute: () => rootRoute, -} as any); +} as any) const AuthOauthRoute = AuthOauthImport.update({ id: '/auth/oauth', path: '/auth/oauth', getParentRoute: () => rootRoute, -} as any); +} as any) const AuthLoginRoute = AuthLoginImport.update({ id: '/auth/login', path: '/auth/login', getParentRoute: () => rootRoute, -} as any); +} as any) -const AuthenticatedDashboardLayoutRoute = AuthenticatedDashboardLayoutImport.update({ - id: '/dashboard', - path: '/dashboard', - getParentRoute: () => AuthenticatedLayoutRoute, -} as any); +const AuthenticatedDashboardLayoutRoute = + AuthenticatedDashboardLayoutImport.update({ + id: '/dashboard', + path: '/dashboard', + getParentRoute: () => AuthenticatedLayoutRoute, + } as any) const AuthenticatedTicleOpenRoute = AuthenticatedTicleOpenImport.update({ id: '/ticle/open', path: '/ticle/open', getParentRoute: () => AuthenticatedLayoutRoute, -} as any); +} as any) const AuthenticatedLiveTicleIdRoute = AuthenticatedLiveTicleIdImport.update({ id: '/live/$ticleId', path: '/live/$ticleId', getParentRoute: () => AuthenticatedLayoutRoute, -} as any); - -const AuthenticatedDashboardOpenRoute = AuthenticatedDashboardOpenImport.update({ - id: '/open', - path: '/open', - getParentRoute: () => AuthenticatedDashboardLayoutRoute, -} as any); - -const AuthenticatedDashboardApplyRoute = AuthenticatedDashboardApplyImport.update({ - id: '/apply', - path: '/apply', - getParentRoute: () => AuthenticatedDashboardLayoutRoute, -} as any); +} as any) + +const AuthenticatedDashboardOpenRoute = AuthenticatedDashboardOpenImport.update( + { + id: '/open', + path: '/open', + getParentRoute: () => AuthenticatedDashboardLayoutRoute, + } as any, +) + +const AuthenticatedDashboardApplyRoute = + AuthenticatedDashboardApplyImport.update({ + id: '/apply', + path: '/apply', + getParentRoute: () => AuthenticatedDashboardLayoutRoute, + } as any) // Populate the FileRoutesByPath interface declare module '@tanstack/react-router' { interface FileRoutesByPath { '/': { - id: '/'; - path: '/'; - fullPath: '/'; - preLoaderRoute: typeof IndexImport; - parentRoute: typeof rootRoute; - }; + id: '/' + path: '/' + fullPath: '/' + preLoaderRoute: typeof IndexImport + parentRoute: typeof rootRoute + } '/_authenticated': { - id: '/_authenticated'; - path: ''; - fullPath: ''; - preLoaderRoute: typeof AuthenticatedLayoutImport; - parentRoute: typeof rootRoute; - }; + id: '/_authenticated' + path: '' + fullPath: '' + preLoaderRoute: typeof AuthenticatedLayoutImport + parentRoute: typeof rootRoute + } '/_authenticated/dashboard': { - id: '/_authenticated/dashboard'; - path: '/dashboard'; - fullPath: '/dashboard'; - preLoaderRoute: typeof AuthenticatedDashboardLayoutImport; - parentRoute: typeof AuthenticatedLayoutImport; - }; + id: '/_authenticated/dashboard' + path: '/dashboard' + fullPath: '/dashboard' + preLoaderRoute: typeof AuthenticatedDashboardLayoutImport + parentRoute: typeof AuthenticatedLayoutImport + } '/auth/login': { - id: '/auth/login'; - path: '/auth/login'; - fullPath: '/auth/login'; - preLoaderRoute: typeof AuthLoginImport; - parentRoute: typeof rootRoute; - }; + id: '/auth/login' + path: '/auth/login' + fullPath: '/auth/login' + preLoaderRoute: typeof AuthLoginImport + parentRoute: typeof rootRoute + } '/auth/oauth': { - id: '/auth/oauth'; - path: '/auth/oauth'; - fullPath: '/auth/oauth'; - preLoaderRoute: typeof AuthOauthImport; - parentRoute: typeof rootRoute; - }; + id: '/auth/oauth' + path: '/auth/oauth' + fullPath: '/auth/oauth' + preLoaderRoute: typeof AuthOauthImport + parentRoute: typeof rootRoute + } '/ticle/$ticleId': { - id: '/ticle/$ticleId'; - path: '/ticle/$ticleId'; - fullPath: '/ticle/$ticleId'; - preLoaderRoute: typeof TicleTicleIdImport; - parentRoute: typeof rootRoute; - }; + id: '/ticle/$ticleId' + path: '/ticle/$ticleId' + fullPath: '/ticle/$ticleId' + preLoaderRoute: typeof TicleTicleIdImport + parentRoute: typeof rootRoute + } '/_authenticated/dashboard/apply': { - id: '/_authenticated/dashboard/apply'; - path: '/apply'; - fullPath: '/dashboard/apply'; - preLoaderRoute: typeof AuthenticatedDashboardApplyImport; - parentRoute: typeof AuthenticatedDashboardLayoutImport; - }; + id: '/_authenticated/dashboard/apply' + path: '/apply' + fullPath: '/dashboard/apply' + preLoaderRoute: typeof AuthenticatedDashboardApplyImport + parentRoute: typeof AuthenticatedDashboardLayoutImport + } '/_authenticated/dashboard/open': { - id: '/_authenticated/dashboard/open'; - path: '/open'; - fullPath: '/dashboard/open'; - preLoaderRoute: typeof AuthenticatedDashboardOpenImport; - parentRoute: typeof AuthenticatedDashboardLayoutImport; - }; + id: '/_authenticated/dashboard/open' + path: '/open' + fullPath: '/dashboard/open' + preLoaderRoute: typeof AuthenticatedDashboardOpenImport + parentRoute: typeof AuthenticatedDashboardLayoutImport + } '/_authenticated/live/$ticleId': { - id: '/_authenticated/live/$ticleId'; - path: '/live/$ticleId'; - fullPath: '/live/$ticleId'; - preLoaderRoute: typeof AuthenticatedLiveTicleIdImport; - parentRoute: typeof AuthenticatedLayoutImport; - }; + id: '/_authenticated/live/$ticleId' + path: '/live/$ticleId' + fullPath: '/live/$ticleId' + preLoaderRoute: typeof AuthenticatedLiveTicleIdImport + parentRoute: typeof AuthenticatedLayoutImport + } '/_authenticated/ticle/open': { - id: '/_authenticated/ticle/open'; - path: '/ticle/open'; - fullPath: '/ticle/open'; - preLoaderRoute: typeof AuthenticatedTicleOpenImport; - parentRoute: typeof AuthenticatedLayoutImport; - }; + id: '/_authenticated/ticle/open' + path: '/ticle/open' + fullPath: '/ticle/open' + preLoaderRoute: typeof AuthenticatedTicleOpenImport + parentRoute: typeof AuthenticatedLayoutImport + } } } // Create and export the route tree interface AuthenticatedDashboardLayoutRouteChildren { - AuthenticatedDashboardApplyRoute: typeof AuthenticatedDashboardApplyRoute; - AuthenticatedDashboardOpenRoute: typeof AuthenticatedDashboardOpenRoute; + AuthenticatedDashboardApplyRoute: typeof AuthenticatedDashboardApplyRoute + AuthenticatedDashboardOpenRoute: typeof AuthenticatedDashboardOpenRoute } -const AuthenticatedDashboardLayoutRouteChildren: AuthenticatedDashboardLayoutRouteChildren = { - AuthenticatedDashboardApplyRoute: AuthenticatedDashboardApplyRoute, - AuthenticatedDashboardOpenRoute: AuthenticatedDashboardOpenRoute, -}; +const AuthenticatedDashboardLayoutRouteChildren: AuthenticatedDashboardLayoutRouteChildren = + { + AuthenticatedDashboardApplyRoute: AuthenticatedDashboardApplyRoute, + AuthenticatedDashboardOpenRoute: AuthenticatedDashboardOpenRoute, + } const AuthenticatedDashboardLayoutRouteWithChildren = - AuthenticatedDashboardLayoutRoute._addFileChildren(AuthenticatedDashboardLayoutRouteChildren); + AuthenticatedDashboardLayoutRoute._addFileChildren( + AuthenticatedDashboardLayoutRouteChildren, + ) interface AuthenticatedLayoutRouteChildren { - AuthenticatedDashboardLayoutRoute: typeof AuthenticatedDashboardLayoutRouteWithChildren; - AuthenticatedLiveTicleIdRoute: typeof AuthenticatedLiveTicleIdRoute; - AuthenticatedTicleOpenRoute: typeof AuthenticatedTicleOpenRoute; + AuthenticatedDashboardLayoutRoute: typeof AuthenticatedDashboardLayoutRouteWithChildren + AuthenticatedLiveTicleIdRoute: typeof AuthenticatedLiveTicleIdRoute + AuthenticatedTicleOpenRoute: typeof AuthenticatedTicleOpenRoute } const AuthenticatedLayoutRouteChildren: AuthenticatedLayoutRouteChildren = { - AuthenticatedDashboardLayoutRoute: AuthenticatedDashboardLayoutRouteWithChildren, + AuthenticatedDashboardLayoutRoute: + AuthenticatedDashboardLayoutRouteWithChildren, AuthenticatedLiveTicleIdRoute: AuthenticatedLiveTicleIdRoute, AuthenticatedTicleOpenRoute: AuthenticatedTicleOpenRoute, -}; +} -const AuthenticatedLayoutRouteWithChildren = AuthenticatedLayoutRoute._addFileChildren( - AuthenticatedLayoutRouteChildren -); +const AuthenticatedLayoutRouteWithChildren = + AuthenticatedLayoutRoute._addFileChildren(AuthenticatedLayoutRouteChildren) export interface FileRoutesByFullPath { - '/': typeof IndexRoute; - '': typeof AuthenticatedLayoutRouteWithChildren; - '/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren; - '/auth/login': typeof AuthLoginRoute; - '/auth/oauth': typeof AuthOauthRoute; - '/ticle/$ticleId': typeof TicleTicleIdRoute; - '/dashboard/apply': typeof AuthenticatedDashboardApplyRoute; - '/dashboard/open': typeof AuthenticatedDashboardOpenRoute; - '/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute; - '/ticle/open': typeof AuthenticatedTicleOpenRoute; + '/': typeof IndexRoute + '': typeof AuthenticatedLayoutRouteWithChildren + '/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren + '/auth/login': typeof AuthLoginRoute + '/auth/oauth': typeof AuthOauthRoute + '/ticle/$ticleId': typeof TicleTicleIdRoute + '/dashboard/apply': typeof AuthenticatedDashboardApplyRoute + '/dashboard/open': typeof AuthenticatedDashboardOpenRoute + '/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute + '/ticle/open': typeof AuthenticatedTicleOpenRoute } export interface FileRoutesByTo { - '/': typeof IndexRoute; - '': typeof AuthenticatedLayoutRouteWithChildren; - '/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren; - '/auth/login': typeof AuthLoginRoute; - '/auth/oauth': typeof AuthOauthRoute; - '/ticle/$ticleId': typeof TicleTicleIdRoute; - '/dashboard/apply': typeof AuthenticatedDashboardApplyRoute; - '/dashboard/open': typeof AuthenticatedDashboardOpenRoute; - '/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute; - '/ticle/open': typeof AuthenticatedTicleOpenRoute; + '/': typeof IndexRoute + '': typeof AuthenticatedLayoutRouteWithChildren + '/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren + '/auth/login': typeof AuthLoginRoute + '/auth/oauth': typeof AuthOauthRoute + '/ticle/$ticleId': typeof TicleTicleIdRoute + '/dashboard/apply': typeof AuthenticatedDashboardApplyRoute + '/dashboard/open': typeof AuthenticatedDashboardOpenRoute + '/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute + '/ticle/open': typeof AuthenticatedTicleOpenRoute } export interface FileRoutesById { - __root__: typeof rootRoute; - '/': typeof IndexRoute; - '/_authenticated': typeof AuthenticatedLayoutRouteWithChildren; - '/_authenticated/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren; - '/auth/login': typeof AuthLoginRoute; - '/auth/oauth': typeof AuthOauthRoute; - '/ticle/$ticleId': typeof TicleTicleIdRoute; - '/_authenticated/dashboard/apply': typeof AuthenticatedDashboardApplyRoute; - '/_authenticated/dashboard/open': typeof AuthenticatedDashboardOpenRoute; - '/_authenticated/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute; - '/_authenticated/ticle/open': typeof AuthenticatedTicleOpenRoute; + __root__: typeof rootRoute + '/': typeof IndexRoute + '/_authenticated': typeof AuthenticatedLayoutRouteWithChildren + '/_authenticated/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren + '/auth/login': typeof AuthLoginRoute + '/auth/oauth': typeof AuthOauthRoute + '/ticle/$ticleId': typeof TicleTicleIdRoute + '/_authenticated/dashboard/apply': typeof AuthenticatedDashboardApplyRoute + '/_authenticated/dashboard/open': typeof AuthenticatedDashboardOpenRoute + '/_authenticated/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute + '/_authenticated/ticle/open': typeof AuthenticatedTicleOpenRoute } export interface FileRouteTypes { - fileRoutesByFullPath: FileRoutesByFullPath; + fileRoutesByFullPath: FileRoutesByFullPath fullPaths: | '/' | '' @@ -243,8 +250,8 @@ export interface FileRouteTypes { | '/dashboard/apply' | '/dashboard/open' | '/live/$ticleId' - | '/ticle/open'; - fileRoutesByTo: FileRoutesByTo; + | '/ticle/open' + fileRoutesByTo: FileRoutesByTo to: | '/' | '' @@ -255,7 +262,7 @@ export interface FileRouteTypes { | '/dashboard/apply' | '/dashboard/open' | '/live/$ticleId' - | '/ticle/open'; + | '/ticle/open' id: | '__root__' | '/' @@ -267,16 +274,16 @@ export interface FileRouteTypes { | '/_authenticated/dashboard/apply' | '/_authenticated/dashboard/open' | '/_authenticated/live/$ticleId' - | '/_authenticated/ticle/open'; - fileRoutesById: FileRoutesById; + | '/_authenticated/ticle/open' + fileRoutesById: FileRoutesById } export interface RootRouteChildren { - IndexRoute: typeof IndexRoute; - AuthenticatedLayoutRoute: typeof AuthenticatedLayoutRouteWithChildren; - AuthLoginRoute: typeof AuthLoginRoute; - AuthOauthRoute: typeof AuthOauthRoute; - TicleTicleIdRoute: typeof TicleTicleIdRoute; + IndexRoute: typeof IndexRoute + AuthenticatedLayoutRoute: typeof AuthenticatedLayoutRouteWithChildren + AuthLoginRoute: typeof AuthLoginRoute + AuthOauthRoute: typeof AuthOauthRoute + TicleTicleIdRoute: typeof TicleTicleIdRoute } const rootRouteChildren: RootRouteChildren = { @@ -285,11 +292,11 @@ const rootRouteChildren: RootRouteChildren = { AuthLoginRoute: AuthLoginRoute, AuthOauthRoute: AuthOauthRoute, TicleTicleIdRoute: TicleTicleIdRoute, -}; +} export const routeTree = rootRoute ._addFileChildren(rootRouteChildren) - ._addFileTypes(); + ._addFileTypes() /* ROUTE_MANIFEST_START { From 8c5fc67a8d62125b0cfa211e0802cbb4b69dc121 Mon Sep 17 00:00:00 2001 From: Eunseo Sim <55528304+simeunseo@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:14:12 +0900 Subject: [PATCH 8/8] chore: prettier --- apps/web/src/routeTree.gen.ts | 315 +++++++++++++++++----------------- 1 file changed, 154 insertions(+), 161 deletions(-) diff --git a/apps/web/src/routeTree.gen.ts b/apps/web/src/routeTree.gen.ts index 53ad6fb7..fb46b8e0 100644 --- a/apps/web/src/routeTree.gen.ts +++ b/apps/web/src/routeTree.gen.ts @@ -10,236 +10,229 @@ // Import Routes -import { Route as rootRoute } from './routes/__root' -import { Route as AuthenticatedLayoutImport } from './routes/_authenticated/_layout' -import { Route as IndexImport } from './routes/index' -import { Route as TicleTicleIdImport } from './routes/ticle/$ticleId' -import { Route as AuthOauthImport } from './routes/auth/oauth' -import { Route as AuthLoginImport } from './routes/auth/login' -import { Route as AuthenticatedDashboardLayoutImport } from './routes/_authenticated/dashboard/_layout' -import { Route as AuthenticatedTicleOpenImport } from './routes/_authenticated/ticle/open' -import { Route as AuthenticatedLiveTicleIdImport } from './routes/_authenticated/live/$ticleId' -import { Route as AuthenticatedDashboardOpenImport } from './routes/_authenticated/dashboard/open' -import { Route as AuthenticatedDashboardApplyImport } from './routes/_authenticated/dashboard/apply' +import { Route as rootRoute } from './routes/__root'; +import { Route as AuthenticatedLayoutImport } from './routes/_authenticated/_layout'; +import { Route as IndexImport } from './routes/index'; +import { Route as TicleTicleIdImport } from './routes/ticle/$ticleId'; +import { Route as AuthOauthImport } from './routes/auth/oauth'; +import { Route as AuthLoginImport } from './routes/auth/login'; +import { Route as AuthenticatedDashboardLayoutImport } from './routes/_authenticated/dashboard/_layout'; +import { Route as AuthenticatedTicleOpenImport } from './routes/_authenticated/ticle/open'; +import { Route as AuthenticatedLiveTicleIdImport } from './routes/_authenticated/live/$ticleId'; +import { Route as AuthenticatedDashboardOpenImport } from './routes/_authenticated/dashboard/open'; +import { Route as AuthenticatedDashboardApplyImport } from './routes/_authenticated/dashboard/apply'; // Create/Update Routes const AuthenticatedLayoutRoute = AuthenticatedLayoutImport.update({ id: '/_authenticated', getParentRoute: () => rootRoute, -} as any) +} as any); const IndexRoute = IndexImport.update({ id: '/', path: '/', getParentRoute: () => rootRoute, -} as any) +} as any); const TicleTicleIdRoute = TicleTicleIdImport.update({ id: '/ticle/$ticleId', path: '/ticle/$ticleId', getParentRoute: () => rootRoute, -} as any) +} as any); const AuthOauthRoute = AuthOauthImport.update({ id: '/auth/oauth', path: '/auth/oauth', getParentRoute: () => rootRoute, -} as any) +} as any); const AuthLoginRoute = AuthLoginImport.update({ id: '/auth/login', path: '/auth/login', getParentRoute: () => rootRoute, -} as any) +} as any); -const AuthenticatedDashboardLayoutRoute = - AuthenticatedDashboardLayoutImport.update({ - id: '/dashboard', - path: '/dashboard', - getParentRoute: () => AuthenticatedLayoutRoute, - } as any) +const AuthenticatedDashboardLayoutRoute = AuthenticatedDashboardLayoutImport.update({ + id: '/dashboard', + path: '/dashboard', + getParentRoute: () => AuthenticatedLayoutRoute, +} as any); const AuthenticatedTicleOpenRoute = AuthenticatedTicleOpenImport.update({ id: '/ticle/open', path: '/ticle/open', getParentRoute: () => AuthenticatedLayoutRoute, -} as any) +} as any); const AuthenticatedLiveTicleIdRoute = AuthenticatedLiveTicleIdImport.update({ id: '/live/$ticleId', path: '/live/$ticleId', getParentRoute: () => AuthenticatedLayoutRoute, -} as any) - -const AuthenticatedDashboardOpenRoute = AuthenticatedDashboardOpenImport.update( - { - id: '/open', - path: '/open', - getParentRoute: () => AuthenticatedDashboardLayoutRoute, - } as any, -) - -const AuthenticatedDashboardApplyRoute = - AuthenticatedDashboardApplyImport.update({ - id: '/apply', - path: '/apply', - getParentRoute: () => AuthenticatedDashboardLayoutRoute, - } as any) +} as any); + +const AuthenticatedDashboardOpenRoute = AuthenticatedDashboardOpenImport.update({ + id: '/open', + path: '/open', + getParentRoute: () => AuthenticatedDashboardLayoutRoute, +} as any); + +const AuthenticatedDashboardApplyRoute = AuthenticatedDashboardApplyImport.update({ + id: '/apply', + path: '/apply', + getParentRoute: () => AuthenticatedDashboardLayoutRoute, +} as any); // Populate the FileRoutesByPath interface declare module '@tanstack/react-router' { interface FileRoutesByPath { '/': { - id: '/' - path: '/' - fullPath: '/' - preLoaderRoute: typeof IndexImport - parentRoute: typeof rootRoute - } + id: '/'; + path: '/'; + fullPath: '/'; + preLoaderRoute: typeof IndexImport; + parentRoute: typeof rootRoute; + }; '/_authenticated': { - id: '/_authenticated' - path: '' - fullPath: '' - preLoaderRoute: typeof AuthenticatedLayoutImport - parentRoute: typeof rootRoute - } + id: '/_authenticated'; + path: ''; + fullPath: ''; + preLoaderRoute: typeof AuthenticatedLayoutImport; + parentRoute: typeof rootRoute; + }; '/_authenticated/dashboard': { - id: '/_authenticated/dashboard' - path: '/dashboard' - fullPath: '/dashboard' - preLoaderRoute: typeof AuthenticatedDashboardLayoutImport - parentRoute: typeof AuthenticatedLayoutImport - } + id: '/_authenticated/dashboard'; + path: '/dashboard'; + fullPath: '/dashboard'; + preLoaderRoute: typeof AuthenticatedDashboardLayoutImport; + parentRoute: typeof AuthenticatedLayoutImport; + }; '/auth/login': { - id: '/auth/login' - path: '/auth/login' - fullPath: '/auth/login' - preLoaderRoute: typeof AuthLoginImport - parentRoute: typeof rootRoute - } + id: '/auth/login'; + path: '/auth/login'; + fullPath: '/auth/login'; + preLoaderRoute: typeof AuthLoginImport; + parentRoute: typeof rootRoute; + }; '/auth/oauth': { - id: '/auth/oauth' - path: '/auth/oauth' - fullPath: '/auth/oauth' - preLoaderRoute: typeof AuthOauthImport - parentRoute: typeof rootRoute - } + id: '/auth/oauth'; + path: '/auth/oauth'; + fullPath: '/auth/oauth'; + preLoaderRoute: typeof AuthOauthImport; + parentRoute: typeof rootRoute; + }; '/ticle/$ticleId': { - id: '/ticle/$ticleId' - path: '/ticle/$ticleId' - fullPath: '/ticle/$ticleId' - preLoaderRoute: typeof TicleTicleIdImport - parentRoute: typeof rootRoute - } + id: '/ticle/$ticleId'; + path: '/ticle/$ticleId'; + fullPath: '/ticle/$ticleId'; + preLoaderRoute: typeof TicleTicleIdImport; + parentRoute: typeof rootRoute; + }; '/_authenticated/dashboard/apply': { - id: '/_authenticated/dashboard/apply' - path: '/apply' - fullPath: '/dashboard/apply' - preLoaderRoute: typeof AuthenticatedDashboardApplyImport - parentRoute: typeof AuthenticatedDashboardLayoutImport - } + id: '/_authenticated/dashboard/apply'; + path: '/apply'; + fullPath: '/dashboard/apply'; + preLoaderRoute: typeof AuthenticatedDashboardApplyImport; + parentRoute: typeof AuthenticatedDashboardLayoutImport; + }; '/_authenticated/dashboard/open': { - id: '/_authenticated/dashboard/open' - path: '/open' - fullPath: '/dashboard/open' - preLoaderRoute: typeof AuthenticatedDashboardOpenImport - parentRoute: typeof AuthenticatedDashboardLayoutImport - } + id: '/_authenticated/dashboard/open'; + path: '/open'; + fullPath: '/dashboard/open'; + preLoaderRoute: typeof AuthenticatedDashboardOpenImport; + parentRoute: typeof AuthenticatedDashboardLayoutImport; + }; '/_authenticated/live/$ticleId': { - id: '/_authenticated/live/$ticleId' - path: '/live/$ticleId' - fullPath: '/live/$ticleId' - preLoaderRoute: typeof AuthenticatedLiveTicleIdImport - parentRoute: typeof AuthenticatedLayoutImport - } + id: '/_authenticated/live/$ticleId'; + path: '/live/$ticleId'; + fullPath: '/live/$ticleId'; + preLoaderRoute: typeof AuthenticatedLiveTicleIdImport; + parentRoute: typeof AuthenticatedLayoutImport; + }; '/_authenticated/ticle/open': { - id: '/_authenticated/ticle/open' - path: '/ticle/open' - fullPath: '/ticle/open' - preLoaderRoute: typeof AuthenticatedTicleOpenImport - parentRoute: typeof AuthenticatedLayoutImport - } + id: '/_authenticated/ticle/open'; + path: '/ticle/open'; + fullPath: '/ticle/open'; + preLoaderRoute: typeof AuthenticatedTicleOpenImport; + parentRoute: typeof AuthenticatedLayoutImport; + }; } } // Create and export the route tree interface AuthenticatedDashboardLayoutRouteChildren { - AuthenticatedDashboardApplyRoute: typeof AuthenticatedDashboardApplyRoute - AuthenticatedDashboardOpenRoute: typeof AuthenticatedDashboardOpenRoute + AuthenticatedDashboardApplyRoute: typeof AuthenticatedDashboardApplyRoute; + AuthenticatedDashboardOpenRoute: typeof AuthenticatedDashboardOpenRoute; } -const AuthenticatedDashboardLayoutRouteChildren: AuthenticatedDashboardLayoutRouteChildren = - { - AuthenticatedDashboardApplyRoute: AuthenticatedDashboardApplyRoute, - AuthenticatedDashboardOpenRoute: AuthenticatedDashboardOpenRoute, - } +const AuthenticatedDashboardLayoutRouteChildren: AuthenticatedDashboardLayoutRouteChildren = { + AuthenticatedDashboardApplyRoute: AuthenticatedDashboardApplyRoute, + AuthenticatedDashboardOpenRoute: AuthenticatedDashboardOpenRoute, +}; const AuthenticatedDashboardLayoutRouteWithChildren = - AuthenticatedDashboardLayoutRoute._addFileChildren( - AuthenticatedDashboardLayoutRouteChildren, - ) + AuthenticatedDashboardLayoutRoute._addFileChildren(AuthenticatedDashboardLayoutRouteChildren); interface AuthenticatedLayoutRouteChildren { - AuthenticatedDashboardLayoutRoute: typeof AuthenticatedDashboardLayoutRouteWithChildren - AuthenticatedLiveTicleIdRoute: typeof AuthenticatedLiveTicleIdRoute - AuthenticatedTicleOpenRoute: typeof AuthenticatedTicleOpenRoute + AuthenticatedDashboardLayoutRoute: typeof AuthenticatedDashboardLayoutRouteWithChildren; + AuthenticatedLiveTicleIdRoute: typeof AuthenticatedLiveTicleIdRoute; + AuthenticatedTicleOpenRoute: typeof AuthenticatedTicleOpenRoute; } const AuthenticatedLayoutRouteChildren: AuthenticatedLayoutRouteChildren = { - AuthenticatedDashboardLayoutRoute: - AuthenticatedDashboardLayoutRouteWithChildren, + AuthenticatedDashboardLayoutRoute: AuthenticatedDashboardLayoutRouteWithChildren, AuthenticatedLiveTicleIdRoute: AuthenticatedLiveTicleIdRoute, AuthenticatedTicleOpenRoute: AuthenticatedTicleOpenRoute, -} +}; -const AuthenticatedLayoutRouteWithChildren = - AuthenticatedLayoutRoute._addFileChildren(AuthenticatedLayoutRouteChildren) +const AuthenticatedLayoutRouteWithChildren = AuthenticatedLayoutRoute._addFileChildren( + AuthenticatedLayoutRouteChildren +); export interface FileRoutesByFullPath { - '/': typeof IndexRoute - '': typeof AuthenticatedLayoutRouteWithChildren - '/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren - '/auth/login': typeof AuthLoginRoute - '/auth/oauth': typeof AuthOauthRoute - '/ticle/$ticleId': typeof TicleTicleIdRoute - '/dashboard/apply': typeof AuthenticatedDashboardApplyRoute - '/dashboard/open': typeof AuthenticatedDashboardOpenRoute - '/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute - '/ticle/open': typeof AuthenticatedTicleOpenRoute + '/': typeof IndexRoute; + '': typeof AuthenticatedLayoutRouteWithChildren; + '/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren; + '/auth/login': typeof AuthLoginRoute; + '/auth/oauth': typeof AuthOauthRoute; + '/ticle/$ticleId': typeof TicleTicleIdRoute; + '/dashboard/apply': typeof AuthenticatedDashboardApplyRoute; + '/dashboard/open': typeof AuthenticatedDashboardOpenRoute; + '/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute; + '/ticle/open': typeof AuthenticatedTicleOpenRoute; } export interface FileRoutesByTo { - '/': typeof IndexRoute - '': typeof AuthenticatedLayoutRouteWithChildren - '/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren - '/auth/login': typeof AuthLoginRoute - '/auth/oauth': typeof AuthOauthRoute - '/ticle/$ticleId': typeof TicleTicleIdRoute - '/dashboard/apply': typeof AuthenticatedDashboardApplyRoute - '/dashboard/open': typeof AuthenticatedDashboardOpenRoute - '/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute - '/ticle/open': typeof AuthenticatedTicleOpenRoute + '/': typeof IndexRoute; + '': typeof AuthenticatedLayoutRouteWithChildren; + '/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren; + '/auth/login': typeof AuthLoginRoute; + '/auth/oauth': typeof AuthOauthRoute; + '/ticle/$ticleId': typeof TicleTicleIdRoute; + '/dashboard/apply': typeof AuthenticatedDashboardApplyRoute; + '/dashboard/open': typeof AuthenticatedDashboardOpenRoute; + '/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute; + '/ticle/open': typeof AuthenticatedTicleOpenRoute; } export interface FileRoutesById { - __root__: typeof rootRoute - '/': typeof IndexRoute - '/_authenticated': typeof AuthenticatedLayoutRouteWithChildren - '/_authenticated/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren - '/auth/login': typeof AuthLoginRoute - '/auth/oauth': typeof AuthOauthRoute - '/ticle/$ticleId': typeof TicleTicleIdRoute - '/_authenticated/dashboard/apply': typeof AuthenticatedDashboardApplyRoute - '/_authenticated/dashboard/open': typeof AuthenticatedDashboardOpenRoute - '/_authenticated/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute - '/_authenticated/ticle/open': typeof AuthenticatedTicleOpenRoute + __root__: typeof rootRoute; + '/': typeof IndexRoute; + '/_authenticated': typeof AuthenticatedLayoutRouteWithChildren; + '/_authenticated/dashboard': typeof AuthenticatedDashboardLayoutRouteWithChildren; + '/auth/login': typeof AuthLoginRoute; + '/auth/oauth': typeof AuthOauthRoute; + '/ticle/$ticleId': typeof TicleTicleIdRoute; + '/_authenticated/dashboard/apply': typeof AuthenticatedDashboardApplyRoute; + '/_authenticated/dashboard/open': typeof AuthenticatedDashboardOpenRoute; + '/_authenticated/live/$ticleId': typeof AuthenticatedLiveTicleIdRoute; + '/_authenticated/ticle/open': typeof AuthenticatedTicleOpenRoute; } export interface FileRouteTypes { - fileRoutesByFullPath: FileRoutesByFullPath + fileRoutesByFullPath: FileRoutesByFullPath; fullPaths: | '/' | '' @@ -250,8 +243,8 @@ export interface FileRouteTypes { | '/dashboard/apply' | '/dashboard/open' | '/live/$ticleId' - | '/ticle/open' - fileRoutesByTo: FileRoutesByTo + | '/ticle/open'; + fileRoutesByTo: FileRoutesByTo; to: | '/' | '' @@ -262,7 +255,7 @@ export interface FileRouteTypes { | '/dashboard/apply' | '/dashboard/open' | '/live/$ticleId' - | '/ticle/open' + | '/ticle/open'; id: | '__root__' | '/' @@ -274,16 +267,16 @@ export interface FileRouteTypes { | '/_authenticated/dashboard/apply' | '/_authenticated/dashboard/open' | '/_authenticated/live/$ticleId' - | '/_authenticated/ticle/open' - fileRoutesById: FileRoutesById + | '/_authenticated/ticle/open'; + fileRoutesById: FileRoutesById; } export interface RootRouteChildren { - IndexRoute: typeof IndexRoute - AuthenticatedLayoutRoute: typeof AuthenticatedLayoutRouteWithChildren - AuthLoginRoute: typeof AuthLoginRoute - AuthOauthRoute: typeof AuthOauthRoute - TicleTicleIdRoute: typeof TicleTicleIdRoute + IndexRoute: typeof IndexRoute; + AuthenticatedLayoutRoute: typeof AuthenticatedLayoutRouteWithChildren; + AuthLoginRoute: typeof AuthLoginRoute; + AuthOauthRoute: typeof AuthOauthRoute; + TicleTicleIdRoute: typeof TicleTicleIdRoute; } const rootRouteChildren: RootRouteChildren = { @@ -292,11 +285,11 @@ const rootRouteChildren: RootRouteChildren = { AuthLoginRoute: AuthLoginRoute, AuthOauthRoute: AuthOauthRoute, TicleTicleIdRoute: TicleTicleIdRoute, -} +}; export const routeTree = rootRoute ._addFileChildren(rootRouteChildren) - ._addFileTypes() + ._addFileTypes(); /* ROUTE_MANIFEST_START {
{data?.summary[0]}