Skip to content

Commit b8b49a1

Browse files
committed
chore: prettier --write
single quote에서 doblue quote로 변경
1 parent 5f0e4f9 commit b8b49a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+579
-490
lines changed

next.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const nextConfig = {
77
webpack(config) {
88
// Grab the existing rule that handles SVG imports
99
const fileLoaderRule = config.module.rules.find((rule) =>
10-
rule.test?.test?.(".svg")
10+
rule.test?.test?.(".svg"),
1111
);
1212

1313
config.module.rules.push(
@@ -23,7 +23,7 @@ const nextConfig = {
2323
issuer: fileLoaderRule.issuer,
2424
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url
2525
use: ["@svgr/webpack"],
26-
}
26+
},
2727
);
2828
// Modify the file loader rule to ignore *.svg, since we have it handled now.
2929
fileLoaderRule.exclude = /\.svg$/i;
Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import { SendChatMessageRequest, SendChatMessageResponse } from '@/chat/apis/sendChatMessage';
2-
import { NextRequest, NextResponse } from 'next/server';
1+
import {
2+
SendChatMessageRequest,
3+
SendChatMessageResponse,
4+
} from "@/chat/apis/sendChatMessage";
5+
import { NextRequest, NextResponse } from "next/server";
36

47
export async function POST(request: NextRequest) {
58
const body: SendChatMessageRequest = await request.json();
@@ -8,51 +11,58 @@ export async function POST(request: NextRequest) {
811

912
const normalReplyMockData: SendChatMessageResponse = {
1013
messageId: 1,
11-
type: 'SYSTEM_NORMAL_REPLY',
12-
sender: 'SYSTEM',
13-
answers: ['안녕 내담자', '따듯한 마룻바닥이 그리운 겨울 밤이야', '오늘은 어떤게 궁금해서 찾어왔어냥?'],
14+
type: "SYSTEM_NORMAL_REPLY",
15+
sender: "SYSTEM",
16+
answers: [
17+
"안녕 내담자",
18+
"따듯한 마룻바닥이 그리운 겨울 밤이야",
19+
"오늘은 어떤게 궁금해서 찾어왔어냥?",
20+
],
1421
};
1522

1623
const invalidQuestionReplyMockData: SendChatMessageResponse = {
1724
messageId: 1,
18-
type: 'SYSTEM_INVALID_QUESTION_REPLY',
19-
sender: 'SYSTEM',
20-
answers: ['잘못된 질문이네냥!', '다시 질문해보라냥!'],
25+
type: "SYSTEM_INVALID_QUESTION_REPLY",
26+
sender: "SYSTEM",
27+
answers: ["잘못된 질문이네냥!", "다시 질문해보라냥!"],
2128
};
2229

2330
const questionReplyMockData: SendChatMessageResponse = {
2431
messageId: 1,
25-
type: 'SYSTEM_TAROT_QUESTION_REPLY',
26-
sender: 'SYSTEM',
27-
answers: ['전남친이 아직 미련이 남았는지 궁금하구낭!', '타로카드로 그 사람의 마음을 함계 들여다 볼까냥?'],
32+
type: "SYSTEM_TAROT_QUESTION_REPLY",
33+
sender: "SYSTEM",
34+
answers: [
35+
"전남친이 아직 미련이 남았는지 궁금하구낭!",
36+
"타로카드로 그 사람의 마음을 함계 들여다 볼까냥?",
37+
],
2838
};
2939

3040
const questionAcceptanceReplyMockData: SendChatMessageResponse = {
3141
messageId: 1,
32-
type: 'SYSTEM_TAROT_QUESTION_ACCEPTANCE_REPLY',
33-
sender: 'SYSTEM',
34-
answers: ['너의 고민에 집중하면서', '카드를 한 장 뽑아봐!'],
42+
type: "SYSTEM_TAROT_QUESTION_ACCEPTANCE_REPLY",
43+
sender: "SYSTEM",
44+
answers: ["너의 고민에 집중하면서", "카드를 한 장 뽑아봐!"],
3545
};
3646

37-
if (body.intent === 'NORMAL') {
47+
if (body.intent === "NORMAL") {
3848
return NextResponse.json({ data: normalReplyMockData });
3949
}
4050

41-
if (body.intent === 'TAROT_ACCEPT') {
51+
if (body.intent === "TAROT_ACCEPT") {
4252
if (Math.random() < 0.2) {
4353
return NextResponse.json({ data: invalidQuestionReplyMockData });
4454
}
4555

4656
return NextResponse.json({ data: questionAcceptanceReplyMockData });
4757
}
4858

49-
if (body.intent === 'TAROT_DECLINE') {
59+
if (body.intent === "TAROT_DECLINE") {
5060
return NextResponse.json({ data: normalReplyMockData });
5161
}
5262

53-
if (body.intent === 'RECOMMEND_QUESTION') {
63+
if (body.intent === "RECOMMEND_QUESTION") {
5464
return NextResponse.json({ data: questionReplyMockData });
5565
}
5666

57-
return NextResponse.json({ error: 'Invalid intent' }, { status: 400 });
67+
return NextResponse.json({ error: "Invalid intent" }, { status: 400 });
5868
}

src/app/api/v1/chat/room/messages/route.ts

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,47 @@
1-
import { ChatMessagesByRoomIdResponse } from '@/chat/apis/getChatMessagesByRoomId';
2-
import { NextRequest } from 'next/server';
1+
import { ChatMessagesByRoomIdResponse } from "@/chat/apis/getChatMessagesByRoomId";
2+
import { NextRequest } from "next/server";
33

4-
import { NextResponse } from 'next/server';
4+
import { NextResponse } from "next/server";
55

66
export async function GET(request: NextRequest) {
77
const { searchParams } = new URL(request.url);
8-
const roomId = searchParams.get('roomId');
8+
const roomId = searchParams.get("roomId");
99

1010
console.log(roomId);
1111

1212
const mockData: ChatMessagesByRoomIdResponse = {
1313
messages: [
1414
{
1515
messageId: 1,
16-
type: 'USER_NORMAL',
17-
sender: 'SYSTEM',
18-
answers: ['타로결과를 다시 보고 싶으면 카드를 눌러보라냥🐾', '또 궁금한 거 있어냥?'],
19-
tarotName: 'M_00',
16+
type: "USER_NORMAL",
17+
sender: "SYSTEM",
18+
answers: [
19+
"타로결과를 다시 보고 싶으면 카드를 눌러보라냥🐾",
20+
"또 궁금한 거 있어냥?",
21+
],
22+
tarotName: "M_00",
2023
tarotResultId: 1,
2124
},
2225
{
2326
messageId: 2,
24-
type: 'USER_TAROT_QUESTION',
25-
sender: 'USER',
26-
answers: ['이 타로 카드가 의미하는 게 뭐냐냥?', '뭔가 다른 카드를 보고 싶다냥.'],
27-
tarotName: 'M_01',
27+
type: "USER_TAROT_QUESTION",
28+
sender: "USER",
29+
answers: [
30+
"이 타로 카드가 의미하는 게 뭐냐냥?",
31+
"뭔가 다른 카드를 보고 싶다냥.",
32+
],
33+
tarotName: "M_01",
2834
tarotResultId: 2,
2935
},
3036
{
3137
messageId: 3,
32-
type: 'SYSTEM_TAROT_RESULT',
33-
sender: 'SYSTEM',
34-
answers: ['새로운 결과를 보고 싶다면 다른 질문을 해보라냥!', '타로 카드 속에 숨겨진 비밀을 알려줄게냥!'],
35-
tarotName: 'M_02',
38+
type: "SYSTEM_TAROT_RESULT",
39+
sender: "SYSTEM",
40+
answers: [
41+
"새로운 결과를 보고 싶다면 다른 질문을 해보라냥!",
42+
"타로 카드 속에 숨겨진 비밀을 알려줄게냥!",
43+
],
44+
tarotName: "M_02",
3645
tarotResultId: 3,
3746
},
3847
],

src/app/api/v1/chat/room/route.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { CreateChatRoomResponse } from '@/chat/apis/createChatRoom';
2-
import { NextResponse } from 'next/server';
1+
import { CreateChatRoomResponse } from "@/chat/apis/createChatRoom";
2+
import { NextResponse } from "next/server";
33

44
export async function POST() {
55
const mockData: CreateChatRoomResponse = {
66
roomId: 1,
77
message: {
88
messageId: 1,
9-
type: 'SYSTEM_NORMAL',
10-
sender: 'SYSTEM',
11-
answer: ['안녕이다냥?'],
9+
type: "SYSTEM_NORMAL",
10+
sender: "SYSTEM",
11+
answer: ["안녕이다냥?"],
1212
},
1313
};
1414

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { LogShareEventRequest } from '@/shared/apis/logShareEvent';
2-
import { NextRequest, NextResponse } from 'next/server';
1+
import { LogShareEventRequest } from "@/shared/apis/logShareEvent";
2+
import { NextRequest, NextResponse } from "next/server";
33

44
export async function POST(request: NextRequest) {
55
const body: LogShareEventRequest = await request.json();
66
console.log(body);
77

8-
return NextResponse.json({ data: { message: '성공' } });
8+
return NextResponse.json({ data: { message: "성공" } });
99
}

src/app/api/v1/tarot/question/recommends/route.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import { TarotQuestionRecommendListResponse } from '@/tarot/apis/getTarotQuestionRecommends';
2-
import { NextResponse } from 'next/server';
1+
import { TarotQuestionRecommendListResponse } from "@/tarot/apis/getTarotQuestionRecommends";
2+
import { NextResponse } from "next/server";
33

44
export async function GET() {
55
const mockData: TarotQuestionRecommendListResponse = {
66
question: [
77
{
88
recommendQuestionId: 1,
9-
question: '썸남 썸녀랑 잘 될까?',
9+
question: "썸남 썸녀랑 잘 될까?",
1010
referenceCount: 1,
1111
},
1212
{
1313
recommendQuestionId: 2,
14-
question: '상반기에 취업할 수 있을까?',
14+
question: "상반기에 취업할 수 있을까?",
1515
referenceCount: 222,
1616
},
1717
{
1818
recommendQuestionId: 3,
19-
question: '그 사람은 내 생각하고 있을까?',
19+
question: "그 사람은 내 생각하고 있을까?",
2020
referenceCount: 3333,
2121
},
2222
],

src/app/api/v1/tarot/result/[resultId]/route.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import { TarotReadingResultResponse } from '@/tarot/apis/getTarotReadingResultById';
2-
import { NextRequest, NextResponse } from 'next/server';
1+
import { TarotReadingResultResponse } from "@/tarot/apis/getTarotReadingResultById";
2+
import { NextRequest, NextResponse } from "next/server";
33

44
export async function GET(request: NextRequest) {
5-
const resultId = request.nextUrl.pathname.split('/')[4];
5+
const resultId = request.nextUrl.pathname.split("/")[4];
66

77
console.log(parseInt(resultId, 10));
88

99
const mockData: TarotReadingResultResponse = {
10-
tarot: 'M_00',
11-
type: '연애',
10+
tarot: "M_00",
11+
type: "연애",
1212
cardValue: {
13-
summary: '집사가 주도권을 쥐고 있다냥',
14-
description: '지팡이의 여왕은 이런 의미를 가지고 있어. ',
13+
summary: "집사가 주도권을 쥐고 있다냥",
14+
description: "지팡이의 여왕은 이런 의미를 가지고 있어. ",
1515
},
1616
answer: {
17-
summary: '재결합 가능성이 있다냥',
17+
summary: "재결합 가능성이 있다냥",
1818
description:
19-
'재결합 가능성은 충분히 있다냥. 하지만 이 카드는 집사에게 자신을 먼저 사랑하라는 메시지도 준다냥. 집사가 자신감 있게 자신만의 기준을 세울 때, 상대방이 진심으로 집사를 다시 원할 가능성이 커진다냥.',
20-
question: '전남친이 아직 저에게 미련이 남았는지 궁금해요',
19+
"재결합 가능성은 충분히 있다냥. 하지만 이 카드는 집사에게 자신을 먼저 사랑하라는 메시지도 준다냥. 집사가 자신감 있게 자신만의 기준을 세울 때, 상대방이 진심으로 집사를 다시 원할 가능성이 커진다냥.",
20+
question: "전남친이 아직 저에게 미련이 남았는지 궁금해요",
2121
},
2222
advice: {
23-
summary: '가장 중요한 건 집사가 원하는 것이다냥',
23+
summary: "가장 중요한 건 집사가 원하는 것이다냥",
2424
description:
25-
'먼저 집사가 진짜 원하는 게 뭔지 정리해라냥. 그 과정에서 집사 자신이 얼마나 소중한 사람인지 다시 느낄 수 있을 거다냥. 그리고 과거에 얽매이지 않고, 집사의 매력을 뿜뿜하는 게 중요하다냥. 재결합은 집사가 빛날 때 자연스럽게 따라오는 결과일 거다냥.',
25+
"먼저 집사가 진짜 원하는 게 뭔지 정리해라냥. 그 과정에서 집사 자신이 얼마나 소중한 사람인지 다시 느낄 수 있을 거다냥. 그리고 과거에 얽매이지 않고, 집사의 매력을 뿜뿜하는 게 중요하다냥. 재결합은 집사가 빛날 때 자연스럽게 따라오는 결과일 거다냥.",
2626
},
2727
};
2828

src/app/api/v1/tarot/select/route.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
import { SelectTarotCardRequest, SelectTarotCardResponse } from '@/tarot/apis/selectTarotCard';
2-
import { NextRequest, NextResponse } from 'next/server';
1+
import {
2+
SelectTarotCardRequest,
3+
SelectTarotCardResponse,
4+
} from "@/tarot/apis/selectTarotCard";
5+
import { NextRequest, NextResponse } from "next/server";
36

47
export async function POST(request: NextRequest) {
58
const body: SelectTarotCardRequest = await request.json();
69
console.log(body);
710

811
const mockData: SelectTarotCardResponse = {
912
messageId: 1,
10-
type: 'SYSTEM_TAROT_RESULT',
11-
sender: 'SYSTEM',
12-
answer: ['타로결과를 다시 보고 싶으면 카드를 눌러보라냥🐾', '또 궁금한 거 있어냥?'],
13-
tarotName: 'M_00',
13+
type: "SYSTEM_TAROT_RESULT",
14+
sender: "SYSTEM",
15+
answer: [
16+
"타로결과를 다시 보고 싶으면 카드를 눌러보라냥🐾",
17+
"또 궁금한 거 있어냥?",
18+
],
19+
tarotName: "M_00",
1420
tarotResultId: 1,
1521
};
1622

src/app/chats/[chatId]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import HeaderContent from '@/shared/components/HeaderContent';
2-
import MainContent from '@/shared/components/MainContent';
1+
import HeaderContent from "@/shared/components/HeaderContent";
2+
import MainContent from "@/shared/components/MainContent";
33

44
export default function ChatPage() {
55
return (

src/app/chats/[chatId]/tarot-reading/[resultId]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import HeaderContent from '@/shared/components/HeaderContent';
2-
import MainContent from '@/shared/components/MainContent';
1+
import HeaderContent from "@/shared/components/HeaderContent";
2+
import MainContent from "@/shared/components/MainContent";
33

44
export default function TarotReadingResultPage() {
55
return (

0 commit comments

Comments
 (0)