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

Deploy beta 0.0.1v #141

Merged
merged 437 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
437 commits
Select commit Hold shift + click to select a range
99b4136
feat: add topic content props
Jinho1011 Dec 6, 2023
63fefc7
Merge pull request #75 from team-offonoff/fix/슬라이드-topiccard로부터-분리
Jinho1011 Dec 6, 2023
304957f
feat: add mock data for test
Jinho1011 Dec 6, 2023
ea0f210
fix: move font declaration to index.html
Jinho1011 Dec 6, 2023
ded3b76
Merge pull request #78 from team-offonoff/fix/font-flicker-on-refresh
Jinho1011 Dec 6, 2023
07819b9
fix: html title
Jinho1011 Dec 6, 2023
87c5ccd
Merge pull request #80 from team-offonoff/fix/html-title
Jinho1011 Dec 6, 2023
18495c5
fix: refactor components folder
Jinho1011 Dec 7, 2023
611eb9c
Merge pull request #82 from team-offonoff/fix/refactor-components-folder
Jinho1011 Dec 7, 2023
725287e
fix: remove unused imports
Jinho1011 Dec 7, 2023
8ee501d
feat: add zIndex
Jinho1011 Dec 7, 2023
a0654c7
fix: hide when not opend and change zIndex
Jinho1011 Dec 7, 2023
8b526c1
fix: comment sheet open area
Jinho1011 Dec 7, 2023
64c9c6f
feat: add bottom sheet to TopicCard
Jinho1011 Dec 7, 2023
393cf7d
fix: remove unused import
Jinho1011 Dec 7, 2023
7601e71
feat: implement comment bottom sheet
Jinho1011 Dec 7, 2023
21eb18d
Merge pull request #83 from team-offonoff/feat/topic-comment-bottom-s…
Jinho1011 Dec 7, 2023
c190160
feat: add react-modal
Jinho1011 Dec 7, 2023
339c0fc
feat: add ActionModal
Jinho1011 Dec 8, 2023
44186db
fix: move useTimer to its folder
Jinho1011 Dec 8, 2023
753b1c2
fix: centerize default Modal
Jinho1011 Dec 8, 2023
1fe92bd
feat: implement ⭐️fancy⭐️ useModal hook
Jinho1011 Dec 8, 2023
553681d
feat: replace ActionModal to useModal hook
Jinho1011 Dec 8, 2023
7a84c5c
refactor: memoization and conditional render
Jinho1011 Dec 8, 2023
f2eeb9d
Merge pull request #85 from team-offonoff/feat/modal
Jinho1011 Dec 8, 2023
904710c
feat: AB logo
Jinho1011 Dec 8, 2023
2bfa2e6
feat: add row, col common props
Jinho1011 Dec 8, 2023
908d457
fix: Text's default lineHeight overrided issue
Jinho1011 Dec 8, 2023
b604ea8
fix: remove background color of Layout
Jinho1011 Dec 8, 2023
af3ffc8
fix: LoginButtonContainer tag to div
Jinho1011 Dec 8, 2023
7fef426
fix: duplicated gap property
Jinho1011 Dec 8, 2023
04bfe0b
feat: add noWrap props
Jinho1011 Dec 8, 2023
6e7e8dc
feat: add Divider
Jinho1011 Dec 8, 2023
7960bac
fix: replace login icons
Jinho1011 Dec 8, 2023
203491a
feat: add borderRadius to Flex
Jinho1011 Dec 8, 2023
c8431e0
feat: update login page design
Jinho1011 Dec 8, 2023
5e69378
fix: remove unused import
Jinho1011 Dec 8, 2023
d2ccd56
Merge pull request #87 from team-offonoff/fix/login-ui
Jinho1011 Dec 8, 2023
0b05c9c
feat: add ResponseError class
Jinho1011 Dec 9, 2023
3fa748b
feat: ErrorResponse interface
Jinho1011 Dec 9, 2023
8434fc5
refactor: remove console
Jinho1011 Dec 9, 2023
717c792
fix: navigate to signup page if error
Jinho1011 Dec 9, 2023
28150df
feat: get memberId state from location
Jinho1011 Dec 9, 2023
ead4928
Merge pull request #89 from team-offonoff/fix/kakao-login-flow
Jinho1011 Dec 9, 2023
3a66d32
feat: add useBottomSheet
Jinho1011 Dec 14, 2023
90bf060
fix: make backdrop's zIndex equiv to sheet
Jinho1011 Dec 14, 2023
6de4177
Merge pull request #92 from team-offonoff/feat/better-bottomsheet
Jinho1011 Dec 14, 2023
6e4d33d
fix: text top
Jinho1011 Dec 19, 2023
e261e22
feat: dev 모드에 따라 route 다르게 구성
Jinho1011 Dec 19, 2023
2efe670
feat: use env's access token in dev mode
Jinho1011 Dec 19, 2023
caeb343
fix: separate error interface from index
Jinho1011 Dec 19, 2023
6b0b89f
fix: TopicResponse to match spec
Jinho1011 Dec 19, 2023
f54f3c3
feat: add PagingDataResponse interface
Jinho1011 Dec 19, 2023
f1aa8fa
feat: add useTopic using react-query
Jinho1011 Dec 19, 2023
3854c89
fix: theme에 저장된 컬러로 변경
chaeyoung103 Dec 19, 2023
fb32374
feat: 선택완료 컴포넌트 추가
chaeyoung103 Dec 19, 2023
583d85c
Merge pull request #95 from team-offonoff/feat/completeVote
Jinho1011 Dec 19, 2023
7caadfb
Merge pull request #93 from team-offonoff/fix/choice-slide-background…
Jinho1011 Dec 19, 2023
21444bf
fix: react doesn't recognize the prop on a DOM
Jinho1011 Dec 20, 2023
f22c7e1
fix: transient prop
Jinho1011 Dec 20, 2023
202264a
fix: meatball's fill
Jinho1011 Dec 20, 2023
9f01273
feat: add thumb icon
Jinho1011 Dec 20, 2023
408b9c1
feat: add some colors
Jinho1011 Dec 20, 2023
a5a7c48
feat: add Thumb component
Jinho1011 Dec 20, 2023
09d4e61
feat: add fill value to MeathBall
Jinho1011 Dec 20, 2023
f731aa6
feat: implement Comment component
Jinho1011 Dec 20, 2023
c294e56
feat: add bottomsheet handlebar
Jinho1011 Dec 20, 2023
6299618
feat: 토픽 조회 연결
Jinho1011 Dec 20, 2023
1765349
Merge pull request #94 from team-offonoff/feat/topics-조회
Jinho1011 Dec 20, 2023
465e99e
Merge branch 'dev' into feat/comment-component
Jinho1011 Dec 20, 2023
b36156f
Merge pull request #97 from team-offonoff/feat/comment-component
Jinho1011 Dec 20, 2023
eaaff9a
fix: replace to useBottomSheet
Jinho1011 Dec 21, 2023
72b58c8
Merge pull request #99 from team-offonoff/hotfix/topic-card-comment-s…
Jinho1011 Dec 21, 2023
5d826b4
fix: restore ChoiceSlide with dummies
Jinho1011 Dec 21, 2023
ac11b66
feat: add report icon
Jinho1011 Dec 21, 2023
982a8ef
fix: zIndex priority
Jinho1011 Dec 21, 2023
8660bc9
feat: add Col to action modal
Jinho1011 Dec 21, 2023
c5d2b41
fix: accesstoken to Authorization
Jinho1011 Dec 21, 2023
5208889
fix: why did you just fix post? you idiot
Jinho1011 Dec 21, 2023
ca95e76
feat: add bearer keyword
Jinho1011 Dec 21, 2023
e677849
feat: add CommentResponse type
Jinho1011 Dec 21, 2023
c0372df
chore: add @toss/date
Jinho1011 Dec 21, 2023
3f17fe2
feat: add useComments
Jinho1011 Dec 21, 2023
9f5a8eb
feat: bind data to Comment
Jinho1011 Dec 21, 2023
82f243e
fix: make count props optional
Jinho1011 Dec 21, 2023
d4e76c7
feat: add useComments
Jinho1011 Dec 21, 2023
04cc44d
feat: add enabled to useComments
Jinho1011 Dec 21, 2023
387ac22
fix: distanceText condition
Jinho1011 Dec 21, 2023
fab5417
Merge pull request #102 from team-offonoff/feat/comment-action-sheet
Jinho1011 Dec 21, 2023
31679b9
feat: silde image 버전, Image modal 추가
chaeyoung103 Dec 21, 2023
f17c0af
Merge branch 'dev' into feat/imageSlider
Jinho1011 Dec 21, 2023
13a1673
Merge pull request #103 from team-offonoff/feat/imageSlider
Jinho1011 Dec 21, 2023
aacbac6
fix: resolve conflict
Jinho1011 Dec 21, 2023
511b6ce
Merge pull request #104 from team-offonoff/hotfix/topiccard-dummy-choice
Jinho1011 Dec 21, 2023
ecc1153
fix: React does not recognize prop warning
Jinho1011 Dec 21, 2023
6b53327
feat: add Topic Comment
Jinho1011 Dec 21, 2023
aa9d8ee
fix: only draggable class can be dragged
Jinho1011 Dec 21, 2023
aeb16a5
fix: bottomsheet content height
Jinho1011 Dec 21, 2023
ae5fb35
feat: add className prop
Jinho1011 Dec 21, 2023
31e6325
feat: add TopicComment
Jinho1011 Dec 21, 2023
7a75d74
Merge pull request #105 from team-offonoff/feat/comment-container
Jinho1011 Dec 22, 2023
43b28db
feat: add useCreateComments
Jinho1011 Dec 22, 2023
5a5e19f
fix: move useComments to TopicComemnts to pevent rerender
Jinho1011 Dec 22, 2023
cf9b3d6
fix: remove unused imports
Jinho1011 Dec 22, 2023
809930b
feat: add commentsCount
Jinho1011 Dec 22, 2023
f0733c1
fix: integrate to useReactComment
Jinho1011 Dec 22, 2023
0a8c991
Merge remote-tracking branch 'origin/dev' into bug/VoteCompletion
chaeyoung103 Dec 22, 2023
9efbd65
fix: votecompletion, slider 높이 맞춤
chaeyoung103 Dec 22, 2023
ed6ac28
fix: 선택완료시 밀어서 선택하기 문구 제거
chaeyoung103 Dec 22, 2023
ed8615e
fix: 괄호제거
chaeyoung103 Dec 22, 2023
901d9dc
Merge pull request #106 from team-offonoff/bug/VoteCompletion
Jinho1011 Dec 22, 2023
1ae2f01
fix: remove topicId from useReactComment
Jinho1011 Dec 22, 2023
9743a2d
fix: reflect api changes
Jinho1011 Dec 22, 2023
de4b4e2
feat: setQueryData on success mutation
Jinho1011 Dec 22, 2023
2b77f0a
feat: export CommentReaction
Jinho1011 Dec 22, 2023
c7039d6
feat: memoization Comment component
Jinho1011 Dec 22, 2023
97e50ab
Merge pull request #110 from team-offonoff/feat/댓글-등록
Jinho1011 Dec 22, 2023
3cd6ecc
feat: check isComposing
Jinho1011 Dec 22, 2023
00a3bca
feat: add hide and refresh icon
Jinho1011 Dec 23, 2023
a56a260
feat: add icons
Jinho1011 Dec 23, 2023
4b9d62a
feat: add ActionModalButton
Jinho1011 Dec 23, 2023
6c76742
feat: add modal buttons
Jinho1011 Dec 23, 2023
ada10d2
feat: add useReportTopic
Jinho1011 Dec 23, 2023
b8761a7
fix: rename mutation and toggle modal after report
Jinho1011 Dec 23, 2023
172be73
Merge pull request #112 from team-offonoff/feat/댓글-박스-메뉴
Jinho1011 Dec 23, 2023
1db455e
fix: choice slide background text top
Jinho1011 Dec 23, 2023
91c0b2b
fix: choice content imageUrl is nullable
Jinho1011 Dec 23, 2023
9a59701
fix: selectedOption is also nullable
Jinho1011 Dec 23, 2023
beed0e5
fix: null safe ModalImage
Jinho1011 Dec 23, 2023
de56a84
fix: vote completion text position
Jinho1011 Dec 23, 2023
3a2024a
fix: remove width from topic title
Jinho1011 Dec 23, 2023
de87e80
feat: replace hasVoted to topic.selectedChoice
Jinho1011 Dec 23, 2023
cd883a0
feat: separate getScreenWidth to util
Jinho1011 Dec 23, 2023
2ff7839
fix: choice slide width
Jinho1011 Dec 23, 2023
b3c4483
Merge pull request #113 from team-offonoff/fix/choice-slide-width-change
Jinho1011 Dec 23, 2023
17420c8
feat: add useVoteTopic
Jinho1011 Dec 24, 2023
5f19219
feat: add LatestCommnet type
Jinho1011 Dec 24, 2023
d3394a5
fix: onVote prop and add voteMutation
Jinho1011 Dec 24, 2023
3a476e4
fix: show latest comment instead of top comment
Jinho1011 Dec 24, 2023
3a8b5e5
fix: remove unused import
Jinho1011 Dec 24, 2023
a098f38
Merge pull request #116 from team-offonoff/feat/투표-api
Jinho1011 Dec 24, 2023
6f46a68
chore: add utils to path alias
Jinho1011 Dec 25, 2023
3725da0
feat: export topic key in useTopics
Jinho1011 Dec 25, 2023
caf3f13
feat: set selectedOption in topics data
Jinho1011 Dec 25, 2023
dfbc32c
fix: make createAt to number and profileImageUrl to nullable
Jinho1011 Dec 25, 2023
80ed3b7
fix: make profileImageUrl nullable
Jinho1011 Dec 25, 2023
0da5675
fix: make date filed unix time
Jinho1011 Dec 25, 2023
9179658
fix: make UserProfileImage to nullsafe
Jinho1011 Dec 25, 2023
8fb50c5
Merge pull request #118 from team-offonoff/feat/투표-결과-반영
Jinho1011 Dec 25, 2023
7a25a0e
chore: add vite-plugin-pwa
Jinho1011 Dec 25, 2023
84594ed
fix: replace logo svg
Jinho1011 Dec 25, 2023
a66092c
chore: ignore dev-dist
Jinho1011 Dec 25, 2023
69363d6
feat: add pwa settings
Jinho1011 Dec 25, 2023
c45f085
feat: add meta tags
Jinho1011 Dec 25, 2023
942f552
feat: add robots txt
Jinho1011 Dec 25, 2023
289598a
feat: add manifest setting
Jinho1011 Dec 25, 2023
bc20329
Merge pull request #119 from team-offonoff/feat/PWA
Jinho1011 Dec 25, 2023
498d730
feat: add latest comment when topic card loaded
Jinho1011 Dec 25, 2023
006c0a9
Merge pull request #120 from team-offonoff/fix/latest-comment
Jinho1011 Dec 25, 2023
4d481a3
fix: remove unused screen
Jinho1011 Jan 1, 2024
ba6ad85
feat: add TextInput component
Jinho1011 Jan 1, 2024
19c2708
fix: exclude 약관동의
Jinho1011 Jan 1, 2024
3e26ae2
feat: add sub purple
Jinho1011 Jan 1, 2024
f00a3e8
feat: add TextInput to 정보입력
Jinho1011 Jan 1, 2024
727717e
feat: memoization TextInput
Jinho1011 Jan 1, 2024
a84334f
feat: add react-hook-form
Jinho1011 Jan 1, 2024
8010ce2
feat: add form constant
Jinho1011 Jan 1, 2024
24429e0
fix: replace to useFormContext
Jinho1011 Jan 1, 2024
ceac29d
feat: add INPUT_TYPE
Jinho1011 Jan 1, 2024
314f38c
fix: error style
Jinho1011 Jan 1, 2024
04afa84
Merge pull request #122 from team-offonoff/feat/input-component
Jinho1011 Jan 1, 2024
f06af87
feat: add sub purple 2
Jinho1011 Jan 1, 2024
937cdc7
feat: separate to styles
Jinho1011 Jan 1, 2024
d110e98
feat: add nickname progress
Jinho1011 Jan 1, 2024
32e9814
fix: error message position
Jinho1011 Jan 1, 2024
45701bf
Merge pull request #123 from team-offonoff/feat/input-error
Jinho1011 Jan 1, 2024
4f3ed6d
fix: make layout header no shrink
Jinho1011 Jan 2, 2024
0ac436a
feat: implement InputField
Jinho1011 Jan 2, 2024
9e7f4e3
feat: add type and onKeyDown props to TextInput
Jinho1011 Jan 2, 2024
0af4270
fix: add placeholder color
Jinho1011 Jan 2, 2024
d7cb2ba
fix: birthday pattern
Jinho1011 Jan 2, 2024
082da93
feat: style 정보입력 screen
Jinho1011 Jan 2, 2024
fddbd08
fix: remove unused button
Jinho1011 Jan 2, 2024
f3e11f9
feat: autocomplete birthday input
Jinho1011 Jan 2, 2024
2d1926b
Merge pull request #124 from team-offonoff/feat/생년월일-input
Jinho1011 Jan 2, 2024
6c1b5d0
feat: add sub navy2
Jinho1011 Jan 2, 2024
d99cedf
feat: implement RadioInput
Jinho1011 Jan 2, 2024
e439125
feat: add gender input type
Jinho1011 Jan 2, 2024
4d0f2be
feat: add gender raido input field
Jinho1011 Jan 2, 2024
3ba2a76
Merge pull request #125 from team-offonoff/feat/radio-button
Jinho1011 Jan 2, 2024
cff2185
feat: add down chevron icon
Jinho1011 Jan 2, 2024
6cd4a0a
feat: add error message to radio input
Jinho1011 Jan 2, 2024
282c6f4
feat: add 정보입력 constants
Jinho1011 Jan 2, 2024
ded085a
feat: implement SelectInput component
Jinho1011 Jan 2, 2024
0acc44e
feat: add job input type
Jinho1011 Jan 2, 2024
ed861fe
feat: add job selection field
Jinho1011 Jan 2, 2024
355aea5
feat: add selected ui
Jinho1011 Jan 2, 2024
77ff4ca
Merge pull request #126 from team-offonoff/feat/select-input
Jinho1011 Jan 2, 2024
9608195
feat: implement signup mutation
Jinho1011 Jan 2, 2024
bc14641
fix: replace id to InputType
Jinho1011 Jan 2, 2024
3f15a57
feat: mutation on data filled
Jinho1011 Jan 2, 2024
3c2c253
feat: give memberId to 정보입력
Jinho1011 Jan 2, 2024
3b99084
Merge pull request #127 from team-offonoff/feat/signup-api
Jinho1011 Jan 3, 2024
e22b92d
fix: persist location when setSearchParams
Jinho1011 Jan 4, 2024
d63c48f
Merge pull request #129 from team-offonoff/fix/persist-state-with-use…
Jinho1011 Jan 4, 2024
0df6460
feat: add delete method
Jinho1011 Jan 5, 2024
dbadffd
feat: 개발 환경에서 시작 시 투표 취소하도록 수정
Jinho1011 Jan 5, 2024
84b00d6
fix: enable useLatestComment only has voted
Jinho1011 Jan 5, 2024
00390f8
Merge pull request #132 from team-offonoff/hotfix/delete-topic
chaeyoung103 Jan 5, 2024
751bc92
Merge remote-tracking branch 'origin/dev' into feat/topic-create-page
chaeyoung103 Jan 5, 2024
68dfb7a
feat: 헤더에 closebutton 추가
chaeyoung103 Jan 5, 2024
3dc47f6
feat: 토픽생성화면 추가
chaeyoung103 Jan 5, 2024
58c48ec
feat: 토픽생성화면 로고이미지 추가
chaeyoung103 Jan 5, 2024
62fe24f
feat: 토픽생성화면 배경이미지 추가
chaeyoung103 Jan 5, 2024
2b51006
Update README.md
Jinho1011 Jan 6, 2024
7a6ed94
Update README.md
Jinho1011 Jan 6, 2024
d42aec1
feat: 투표생성하기 화면- a,b선택화면 ui 생성
chaeyoung103 Jan 7, 2024
2931b24
Merge pull request #133 from team-offonoff/feat/topic-create-page
Jinho1011 Jan 7, 2024
cafe942
feat: a,b버튼 transition 추가
chaeyoung103 Jan 7, 2024
9ad36ba
feat: 바텀네비게이션에 토픽생성하기 페이지 이동 로직 추가
chaeyoung103 Jan 7, 2024
ef3dc9e
fix: prop not recognizable
Jinho1011 Jan 9, 2024
23e0533
feat: add body to delete method
Jinho1011 Jan 9, 2024
b9762de
fix: 토픽 생성 버튼 transition 추가 & a.b 버튼 description 클릭이벤트 제거
chaeyoung103 Jan 10, 2024
5c0e267
feat: change searchParams on change topic
Jinho1011 Jan 10, 2024
d14bf44
feat: close 버튼 로직 추가
chaeyoung103 Jan 10, 2024
e5d6e03
fix: 바텀네비게이션 A,B 페이지 바뀐 로고로 변경
chaeyoung103 Jan 10, 2024
7f136c8
Merge pull request #136 from team-offonoff/feat/topicId-params
Jinho1011 Jan 10, 2024
a139e87
Update src/components/commons/Header/CloseButton/CloseButton.tsx
chaeyoung103 Jan 10, 2024
d50866f
Merge pull request #134 from team-offonoff/fix/dom-custom-prop-error
Jinho1011 Jan 10, 2024
2b77b6e
fix: A,BButton 리팩토링
chaeyoung103 Jan 10, 2024
92c6743
Merge branch 'feat/topic-create-page' of https://github.com/team-offo…
chaeyoung103 Jan 10, 2024
bc1b5f0
Merge pull request #135 from team-offonoff/feat/topic-create-page
Jinho1011 Jan 10, 2024
4b5cd5d
fix: placeholder color
Jinho1011 Jan 16, 2024
f524bc9
feat: add input themes
Jinho1011 Jan 16, 2024
c441d4d
Merge pull request #137 from team-offonoff/fix/input-component-ui
Jinho1011 Jan 16, 2024
f4d0486
feat: extends HTMLAttributes
Jinho1011 Jan 16, 2024
bdabb7f
feat: add notifications route
Jinho1011 Jan 16, 2024
65dc27c
feat: add notification page
Jinho1011 Jan 16, 2024
8e6fb73
feat: separate TabHeader
Jinho1011 Jan 16, 2024
fa05fc9
feat: add icons
Jinho1011 Jan 16, 2024
37ad8c1
fix: thumbs width height
Jinho1011 Jan 16, 2024
c0fba74
feat: add IconWrapper
Jinho1011 Jan 16, 2024
d98d374
feat: add gap to Col
Jinho1011 Jan 16, 2024
8b1b00a
feat: navigate to notifications page
Jinho1011 Jan 17, 2024
bd79dfb
fix: bottomSheet not working
Jinho1011 Jan 17, 2024
2592512
Merge pull request #139 from team-offonoff/hotfix/shouldForwardProp
Jinho1011 Jan 22, 2024
2962ea5
Merge pull request #138 from team-offonoff/feat/notification-page
Jinho1011 Jan 22, 2024
428da50
fix: add width height to ThumbsIcon
Jinho1011 Jan 22, 2024
2ddc70f
fix: login ui
Jinho1011 Jan 22, 2024
c0ec41f
Merge pull request #140 from team-offonoff/fix/login-ui-broken
Jinho1011 Jan 22, 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
70 changes: 64 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,72 @@
const aliases = require('./tsconfig.paths.json').compilerOptions.paths;

module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended', 'plugin:storybook/recommended'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:storybook/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:@tanstack/eslint-plugin-query/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
plugins: ['react-refresh', '@tanstack/query'],
settings: {
'import/resolver': {
alias: {
extensions: ['.ts', '.tsx'],
map: Object.entries(aliases).map(([key, value]) => {
const newPathKey = key.replace('/*', '');
const newPathValue = `./${value[0].replace('/*', '')}`;
return [newPathKey, newPathValue];
}),
},
},
},
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
'@tanstack/query/exhaustive-deps': 'error',
'@tanstack/query/stable-query-client': 'error',
'@typescript-eslint/no-unused-vars': 'warn',
'no-empty-pattern': 'warn',
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'import/no-unresolved': 'off',
'import/order': [
'error',
{
'newlines-between': 'always',
groups: [
'type',
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'unknown',
],
pathGroups: [
{
pattern: 'react*',
group: 'external',
position: 'before',
},
...Object.keys(aliases).map((key) => {
return {
pattern: key,
group: 'internal',
position: 'after',
};
}),
],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
}
};
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/기능-제안.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: 기능 제안
about: feature 작업 사항을 입력해주세요
title: ''
labels: ''
assignees: ''

---

## Description

설명을 작성하세요

## Todo
- [ ] what todo
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/버그-수정.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: 버그 수정
about: fix 작업 사항을 입력해주세요
title: ''
labels: ''
assignees: ''

---

## Description

설명을 작성하세요

## Todo

- [ ] what todo
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI
on:
pull_request:
branches: ['dev', 'main']

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: yarn install

- name: build
run: yarn run build
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
dev-dist
dist
dist-ssr
*.local
Expand All @@ -22,3 +23,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# env
.env
7 changes: 7 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-recess-order"],
"rules": {
"no-empty-source": null
},
"customSyntax": "postcss-styled-syntax"
}
195 changes: 176 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,184 @@
# React + TypeScript + Vite
![AB](https://github.com/team-offonoff/web/assets/26860466/e15ec030-9a0c-4544-a539-0e59b0b8e5ac)

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
세상 모든 질문에 A/B로 답하다.

Currently, two official plugins are available:
# **Requirements**

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
1. Which browsers need to be supported? 🌐
- Chrome 57^
- Safari 10.1^
- Chrome for Android 116^
- Safari on iOS 10.3^
2. Which devices need to be supported? 📱💻
- mobile, tablets, desktop
3. Language support? 🌎
- ko-KR only
4. Dark theme? 🌙
- No
5. Server-side rendering? 🚀
- CSR only
6. Tests? 🧪
- No Testing
7. Accessibility? ♿
- Partial support

## Expanding the ESLint configuration
---

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
# Framework

- Configure the top-level `parserOptions` property like this:
<aside>
📌 **Vite + React.js**

```js
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
```
</aside>

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
## why?

Esbuild를 기반으로 만들어진 프론트엔드 빌드툴

- 번들링을 생략하여 개발 서버를 빠르게 구동시킨다
- 리로딩과 캐싱이 빠르다
- native ESM을 사용하여 앱에 대한 변경사항이 빠르게 반영된다

[Vite](https://ko.vitejs.dev/guide/why.html)

---

# Structure

- /src
- /components
- /RoundButton
- `RoundButton.tsx`
- `RoundButton.styles.tsx`
- `RoundButton.stories.ts`
- /BottomSheet
- /hooks
- `useModal.ts`
- `useIntersectionObserver.ts`
- /pages
- `home.tsx`
- `login.tsx`
- /apis
- `useUser.ts`
- /store
- /utils
- /types
- `user.ts`


---

# Libraries

## State Management

### Server State Management

React-Query

### Client State Management

zustand(currently not using)

## Styling Approach

styled-components

- pros
- good for component based project
- maintenance
- code consistency
- cons
- bundle size
- increase of unnecessary codes

### documentation

storybook

## Routing

react-router

## Utils

react-hookz

@toss/slash

## Deploy

S3 + CloundFront

## CI/CD

github actions

---

# **Git Branching Strategies**

<aside>
📌 Simplified Github Flow

</aside>

- main → prod branch
- dev → prod ready branch
- feat/* → for feature develop branch

## working process

1. create issue (fix, feature, build whatever)
2. create feature branch from develop branch (ex. feat/#31, fix/#26)
3. do some magic
4. open pull request of your branch
5. ready for code review
6. ta-da

---

# Roles

@Jeon Jinho

- documenting
- CI/CD

@송채영

- component
-

---

# Naming Convention

### folders/files

- use lower case for folders
- ex) /components
- use pascal case for tsx files
- ex) Button.tsx
- use camel case for util files
- ex) formatDate.ts

### variables

- use upper case and underscore for constants
- ex) USER_KEY = “”
- use `is`, `has` or `should` prefix for boolean state
- ex) ❌ `const [active, setActive] = useState(false)`
- ex) ✅ `const [isActive, setIsActive] = useState(false)`
- use pascal case for types/interface
- ex) `interface ButtonProps { … }`

### functions

- use `handle*` prefix
- ex) handleButtonClick

### props

- use `on*` prefix
- ex) `<Button onClick={handleButtonClick} />`
28 changes: 26 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
<!doctype html>
<html lang="en">
<head>
<link rel="icon" href="/favicon.ico" sizes="48x48" />
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<meta name="description" content="My Awesome App description" />
<meta name="theme-color" content="#242036" />
<title>AB - 세상의 모든 질문, AB로 답하다</title>
<style>
@font-face {
font-family: 'Pretendard Variable';
font-style: normal;
font-weight: 45 920;
src: local('Pretendard Variable'), local('Pretendard Variable');
src: url('./src/assets/fonts/PretendardVariable.woff2') format('woff2-variations');
font-display: block;
}

@font-face {
font-family: 'Montserrat Medium';
font-style: medium;
font-weight: 500;
src: local('Montserrat Medium'), local('Montserrat Medium');
src: url('./src/assets/fonts/MontserratMedium.woff2') format('woff2');
font-display: block;
}
</style>
</head>
<body>
<div id="root"></div>
Expand Down
Loading