-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from boostcampwm-2021/release0.0.3
Release0.0.3
- Loading branch information
Showing
282 changed files
with
71,779 additions
and
37,054 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Related Issue | ||
|
||
## WorkList | ||
|
||
### [ Title ] | ||
|
||
### [ Problem ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: 'Error, :sos: help' | ||
assignees: jin-Pro | ||
|
||
--- | ||
|
||
## What happened | ||
|
||
## How Solved it | ||
|
||
## I Think... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: FE, Feature | ||
assignees: jin-Pro | ||
|
||
--- | ||
|
||
## Description | ||
|
||
## Todo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Workflow name | ||
name: "Chromatic Deployment" | ||
|
||
# Event for the workflow | ||
on: | ||
push: | ||
branches: [dev] | ||
|
||
env: | ||
client-directory: ./client | ||
|
||
# List of jobs | ||
jobs: | ||
test: | ||
# Operating System | ||
runs-on: ubuntu-latest | ||
# Job steps | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Client npm install | ||
working-directory: ${{env.client-directory}} | ||
run: npm install | ||
|
||
- name: Storybook Deploy | ||
working-directory: ${{env.client-directory}} | ||
run: npm run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
cd client && npm run lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
cd client && npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const path = require("path"); | ||
const toPath = (_path) => path.join(process.cwd(), _path); | ||
|
||
module.exports = { | ||
stories: ["../src/Component/Atom/**/*.stories.tsx"], | ||
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions", "@storybook/preset-create-react-app"], | ||
framework: "@storybook/react", | ||
core: { | ||
builder: "@storybook/builder-webpack5", | ||
}, | ||
webpackFinal: async (config) => { | ||
config.resolve.alias["@Atom"] = toPath("src/Component/Atom"); | ||
config.resolve.alias["@Core"] = toPath("src/Component/Core"); | ||
config.resolve.alias["@Hook"] = toPath("src/Hook"); | ||
config.resolve.alias["@Page"] = toPath("src/Component/Page"); | ||
config.resolve.alias["@Molecules"] = toPath("src/Component/Molecules"); | ||
config.resolve.alias["@Organism"] = toPath("src/Component/Organism"); | ||
config.resolve.alias["@Template"] = toPath("src/Component/Template"); | ||
config.resolve.alias["@Hoc"] = toPath("src/Component/Hoc"); | ||
config.resolve.alias["@Common"] = toPath("src/Util"); | ||
config.resolve.alias["@Recoil"] = toPath("src/Recoil"); | ||
config.resolve.alias["@Socket"] = toPath("src/Socket"); | ||
config.resolve.alias["@emotion/styled"] = toPath("node_modules/@emotion/styled"); | ||
config.resolve.alias["@emotion/react"] = toPath("node_modules/@emotion/react"); | ||
return config; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
}; | ||
|
||
// function Test({ profileDatas, teamDatas, userDatas, children }) { | ||
// const setProfileModal = useSetRecoilState(profileModalDatas); | ||
// const setTeamState = useSetRecoilState(teamState); | ||
// const setUserState = useSetRecoilState(userState); | ||
|
||
// setProfileModal(profileDatas); | ||
// setTeamState(teamDatas); | ||
// setUserState(userDatas); | ||
|
||
// return <div>{children}</div>; | ||
// } | ||
|
||
// export const decorators = [ | ||
// (Story, context) => ( | ||
// <RecoilRoot> | ||
// <BrowserRouter> | ||
// <Test {...dummyData}> | ||
// <Story {...context} /> | ||
// </Test> | ||
// </BrowserRouter> | ||
// </RecoilRoot> | ||
// ), | ||
// ]; | ||
|
||
// const dummyData = { | ||
// profileDatas: [ | ||
// { | ||
// id: "1", | ||
// image: null, | ||
// location: "서울", | ||
// sex: "남자", | ||
// age: 25, | ||
// info: "hihi", | ||
// gid: null, | ||
// idx: 1, | ||
// }, | ||
// ], | ||
// teamDatas: { | ||
// id: "", | ||
// image: null, | ||
// location: "", | ||
// sex: "", | ||
// age: 0, | ||
// info: "", | ||
// leader: "", | ||
// member: [], | ||
// }, | ||
// userDatas: { | ||
// id: "", | ||
// image: null, | ||
// location: "", | ||
// sex: "", | ||
// age: 0, | ||
// info: "", | ||
// gid: null, | ||
// idx: 0, | ||
// }, | ||
// }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
const { useBabelRc, addWebpackAlias, override } = require("customize-cra"); | ||
const SpeedMeasurePlugin = require("speed-measure-webpack-plugin"); | ||
const path = require("path"); | ||
|
||
const resolve = (src) => path.resolve(__dirname, src); | ||
|
||
module.exports = override( | ||
useBabelRc(), | ||
addWebpackAlias({ | ||
"@Atom": resolve("./src/Component/Atom/"), | ||
"@Core": resolve("./src/Component/Core/"), | ||
"@Hook": resolve("./src/Hook/"), | ||
"@Page": resolve("./src/Component/Page/"), | ||
"@Molecules": resolve("./src/Component/Molecules/"), | ||
"@Organism": resolve("./src/Component/Organism/"), | ||
"@Template": resolve("./src/Component/Template/"), | ||
"@Hoc": resolve("./src/Component/Hoc/"), | ||
"@Util": resolve("./src/Util/"), | ||
"@Asset": resolve("./src/Asset/"), | ||
"@Recoil": resolve("./src/Recoil"), | ||
}) | ||
); | ||
const smp = new SpeedMeasurePlugin(); | ||
|
||
module.exports = { | ||
webpack: smp.wrap( | ||
override( | ||
useBabelRc(), | ||
addWebpackAlias({ | ||
"@Atom": resolve("./src/Component/Atom/"), | ||
"@Core": resolve("./src/Component/Core/"), | ||
"@Hook": resolve("./src/Hook/"), | ||
"@Page": resolve("./src/Component/Page/"), | ||
"@Molecules": resolve("./src/Component/Molecules/"), | ||
"@Organism": resolve("./src/Component/Organism/"), | ||
"@Template": resolve("./src/Component/Template/"), | ||
"@Hoc": resolve("./src/Component/Hoc/"), | ||
"@Common": resolve("./src/Common/"), | ||
"@Asset": resolve("./src/Asset/"), | ||
"@Recoil": resolve("./src/Recoil/"), | ||
"@Socket": resolve("./src/Socket/"), | ||
}) | ||
) | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { MockProps } from ".."; | ||
|
||
export const chatInfoHandler: MockProps = (req, res, ctx) => { | ||
return res( | ||
ctx.json([ | ||
{ | ||
chatRoomId: 1, | ||
member: [ | ||
{ id: "test", image: null, location: "수원", sex: "male", age: 25, info: "hihi", gid: 1, idx: 1 }, | ||
{ id: "test1", image: null, location: "수원", sex: "male", age: 25, info: "hihi", gid: 1, idx: 2 }, | ||
], | ||
|
||
chatMessage: [ | ||
{ | ||
from: "test", | ||
message: "hihi", | ||
source: "", | ||
}, | ||
], | ||
}, | ||
]) | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { MockProps } from ".."; | ||
|
||
export const chatMessagesHandler: MockProps = (req, res, ctx) => { | ||
const params = req.url.searchParams; | ||
const chatRoomId = params.get("chatRoomId"); | ||
const index = params.get("index"); | ||
if (index === "0") return res(ctx.status(403), ctx.json({ errorMessage: "index에러" })); | ||
if (chatRoomId === "0") return res(ctx.status(403), ctx.json({ errorMessage: "chatRoomId에러" })); | ||
return res( | ||
ctx.json([ | ||
{ | ||
from: "to", | ||
message: "hi", | ||
source: "", | ||
}, | ||
]) | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { rest } from "msw"; | ||
import { POST_CHAT_READ_API_URL, CHAT_INFO_URL, CHAT_MESSAGES_API_URL, JOIN_CHAT_URL } from "../../../src/Common/URL"; | ||
|
||
import { chatInfoHandler } from "./chatInfoHandler"; | ||
import { chatMessagesHandler } from "./chatMessagesHandler"; | ||
import { joinChatHandler } from "./joinChatHandler"; | ||
import { postChatReadHandler } from "./postChatReadHandler"; | ||
|
||
export const chatHandler = [rest.post(POST_CHAT_READ_API_URL, postChatReadHandler), rest.get(JOIN_CHAT_URL, joinChatHandler), rest.get(CHAT_INFO_URL, chatInfoHandler), rest.get(CHAT_MESSAGES_API_URL, chatMessagesHandler)]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { MockProps } from ".."; | ||
|
||
export const joinChatHandler: MockProps = (req, res, ctx) => { | ||
return res( | ||
ctx.json([ | ||
{ chatRoomId: 1, notReadNum: 0 }, | ||
{ chatRoomId: 12, notReadNum: 5 }, | ||
]) | ||
); | ||
}; |
Oops, something went wrong.