Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

전남대 FE_서민지 6주차 과제 Step2 #12

Open
wants to merge 27 commits into
base: minji2219
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
840e28a
init
minji2219 Jul 30, 2024
95224e7
Merge pull request #1 from minji2219/step0
minji2219 Jul 30, 2024
b932ad6
feat: 상품 옵션 조회를 위해 select구현
minji2219 Jul 30, 2024
58267a9
feat: 백엔드 별로 baseurl 설정하기 위한 select 해더에 추가
minji2219 Jul 31, 2024
56ec00b
feat: option 변경으로 인한 테스트 코드 수정
minji2219 Jul 31, 2024
4a4a34e
docs: 1단계 과제 명세
minji2219 Jul 31, 2024
f78f6f9
feat: 회원가입 hooks 생성
minji2219 Jul 31, 2024
3094eaa
feat: 로그인 hooks 생성
minji2219 Jul 31, 2024
3c75bb4
feat: 로그인 및 회원가입 api 연결
minji2219 Jul 31, 2024
666a049
feat: 인증 헤더가 있는 인증 instance 추가
minji2219 Jul 31, 2024
5b7ed42
chore: git-pages 설치
minji2219 Aug 1, 2024
3d12631
feat: 배포을 위한 세팅
minji2219 Aug 1, 2024
3b521ca
feat: API 연결을 위한 명세 맞춤
minji2219 Aug 1, 2024
3f26f9c
feat: api 연결을 위한 명세 수정
minji2219 Aug 1, 2024
86968f9
feat: api path 수정
minji2219 Aug 2, 2024
276df25
feat: 통신을 위한 세팅
minji2219 Aug 2, 2024
4035080
Merge pull request #2 from minji2219/step1
minji2219 Aug 2, 2024
024d1e1
feat: 헤더에 인증 토큰 함께 보내는 인스턴스 추가
minji2219 Aug 4, 2024
12198ad
feat: api 경로 변경
minji2219 Aug 4, 2024
c0c504e
feat: useMakeOrder hooks 추가
minji2219 Aug 4, 2024
9290bcf
feat: 변경사항에 맞춰 test ㅅ정
minji2219 Aug 4, 2024
e1905fd
feat: optionId와productId 구분 필요에 의해 수정
minji2219 Aug 4, 2024
d29232a
feat: 로그인 및 회원가입을 위한 수정
minji2219 Aug 4, 2024
dfd976c
feat: 백엔드 api env로 관리
minji2219 Aug 4, 2024
c7eb59a
feat: 에러처리 수정
minji2219 Aug 4, 2024
59f63d8
feat: 관심 항목 삭제시 바로 wishes 다시 호출
minji2219 Aug 4, 2024
d82047a
Merge pull request #3 from minji2219/step1
minji2219 Aug 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'plugin:@typescript-eslint/recommended',
'airbnb/hooks',
'airbnb-typescript',
'prettier',
'plugin:storybook/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint',
'react-hooks',
'json-format',
'simple-import-sort',
'@emotion',
'prettier',
],
rules: {
'react/react-in-jsx-scope': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'@typescript-eslint/consistent-type-imports': 'warn',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
},
],
'import/extensions': ['off'],
'import/no-extraneous-dependencies': ['off'],
'react/jsx-filename-extension': [
'warn',
{
extensions: ['.tsx', '.js', '.jsx'],
},
],
'@typescript-eslint/no-use-before-define': ['off'],
},
ignorePatterns: ['**/build/**/*', '.eslintrc.js', 'craco.config.js'],
settings: {
'import/resolver': {
typescript: {},
},
},
};
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.yaml
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.vscode
/node_modules

8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"semi": true,
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 100,
"arrowParens": "always"
}
36 changes: 36 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import type { StorybookConfig } from '@storybook/react-webpack5';
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
import path from 'path';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/preset-create-react-app',
'@storybook/addon-onboarding',
'@storybook/addon-interactions',
],
webpackFinal: async (config) => {
config.resolve?.plugins?.push(
new TsconfigPathsPlugin({
configFile: path.resolve(__dirname, '../tsconfig.json'),
}),
);

return config;
},
framework: {
name: '@storybook/react-webpack5',
options: {
builder: {
useSWC: true,
},
},
},
docs: {
autodocs: 'tag',
},
staticDirs: ['../public'],
};
export default config;
16 changes: 16 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { Preview } from '@storybook/react';
import '@/styles';

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
# react-deploy
# react-deploy

### 6주차 1단계

API 명세 협의 & 반영

1. 옵션에 대해 UI 추가 필요
2. 백엔드 별 BASE_URL이 다름으로 변경 select UI 필요
3. API명세 협의에 따른 데이터 명 수정
16 changes: 16 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const path = require('path');

module.exports = {
webpack: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
jest: {
configure: {
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
},
},
};
Loading