Skip to content

Commit

Permalink
🎉 Release: 1.5 MVP 배포 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojj1123 authored May 26, 2023
2 parents 474a8d8 + 5f9095d commit 091df46
Show file tree
Hide file tree
Showing 199 changed files with 3,733 additions and 1,095 deletions.
1 change: 0 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
NEXT_PUBLIC_API_MOCKING=enabled

2 changes: 2 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: "Chromatic Deployment"
# Event for the workflow
on:
pull_request:
paths:
- '**/*.stories.tsx'
branches:
- main
- develop
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml

This file was deleted.

592 changes: 574 additions & 18 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion mocks/handlers/meme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const getMemeDetail = rest.get(

return res(
ctx.status(200),
ctx.delay(300),
ctx.delay(),
ctx.json<GetMemeDetailByIdResponse>({
memeId,
name: "제목",
Expand Down
26 changes: 5 additions & 21 deletions mocks/handlers/search/index.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
import { rest } from "msw";

import type { GetMemesResponse } from "@/types";
import type { GetMemesResponse, GetSearchMemesResponse } from "@/types";

import * as MOCK_DATA from "./data";

export const getSearch = rest.get(
`${process.env.NEXT_PUBLIC_API_URL}/tags/search`,
(req, res, ctx) => {
const query = req.url.searchParams.get("word");

if (!query) {
return res(ctx.delay(), ctx.status(404));
}

return res(
ctx.delay(),
ctx.json({
tags: MOCK_DATA.tags.filter((tag) => tag.name.search(query) !== -1),
}),
);
},
);

export const getSearchResultsByKeyword = rest.get(
`${process.env.NEXT_PUBLIC_SEARCH_API_URL}/search`,
(req, res, ctx) => {
Expand All @@ -36,9 +18,10 @@ export const getSearchResultsByKeyword = rest.get(
}
return res(
ctx.status(200),
ctx.json<GetMemesResponse>({
ctx.json<GetSearchMemesResponse>({
memes: data,
count: data.length,
totalCount: 100,
}),
ctx.delay(500),
);
Expand All @@ -59,9 +42,10 @@ export const getSearchResultsByTag = rest.get(
}
return res(
ctx.status(200),
ctx.json<GetMemesResponse>({
ctx.json<GetSearchMemesResponse>({
memes: data,
count: data.length,
totalCount: 100,
}),
ctx.delay(500),
);
Expand Down
Loading

1 comment on commit 091df46

@vercel
Copy link

@vercel vercel bot commented on 091df46 May 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.