Skip to content

Commit 6f7f96a

Browse files
createhb21YoonJeongLulumangchheholim0
authored
chore: merge dev into master (#285)
* chore: apply dynamically config (#236) * apply dynamically config * fix test case * chore: add .pnp.cjs to .gitignore (#237) * add .pnp.cjs to .gitignore * delete /pnp.cjs * feat: msw 환경 구축 (#235) * feat: msw 환경 구축 * feat: remove console * feat: appEnvs * feat: remove isMocking * feat: remove v1 on handlers * feat: remove .pnp.cjs * feat: login callback api route (#239) * feature middleware * feature tokenService * feature api routes * fix post -> get * update var name * apply code review * fix middleware * remove unnessary codes * apply code review * apply code review * feat: one-app env (#242) * feature one-app env * fix parsing error * fix env * feature site url * feat: login pages (#241) * feature login pages * feature semantic naming * remove console.log * apply code review * fix import error * feat: add typescript compile check (#246) * add typescript compile check * add working directory * fix: api server side routing -> client side (#247) * fix fix client side * fix login structure * make test skip * wrap suspense to fix bugs * fix middleware * feat: nickname setup flow (#250) * fix fix client side * fix login structure * make test skip * wrap suspense to fix bugs * feature nickname setup flow * fix setToken when user has additionalInfo already * refactor semantic namings * refactor 훅 분리 * feature updateUser API Authorization * remove unused components * refactor zustand 최적화 * fix 오탈자 * fix renderIndicatorIcon naming * apply code review --------- Co-authored-by: Lulu <[email protected]> * feat: one-app cd (#252) * feature deploy web * test deploy * fix yml * chore: add a comment (#253) * add a comment * fix route of dockerfile * add AWS Credentials * fix env * fix deploy yml * fix deploy yml * Revert "fix deploy yml" This reverts commit e856a97. * Revert "fix deploy yml" This reverts commit c501290. * fix: typo in cicd script * fix deploy.sh * fix deploy yml * fix typo * fix typo * fix typo * remove unused --------- Co-authored-by: createhb21 <[email protected]> Co-authored-by: joohyun.ha <[email protected]> * feat: ♻️ MSW 관련 함수 리팩토링 (#255) * feat: text & theme tailwind setting (#259) * feature text & theme setting * revert font * feat: ✨ 유실물 목록 / 유실물 상세 API 연동 (#262) * SVG To direct rendering (#263) * feat: 유실물 페이지 비즈니스 로직들 (웹) - 리스트, 상세, 필터 (#270) * feature business logis * resolve conflicts * chore: 피그마 디자인 시스템 테일윈드 테마로 적용 (#273) * chore: 디자인 시스템에 맞게 컬러값 수정 및 신규 추가 (#269) * chore: 폰트 사이즈 테일윈드 시스템화(fontSize 항목 확장) (#269) * chore: green 컬러셋 추가 (#269) * feat: 유실물 페이지 (웹) UI 스타일링 (#274) * feature filter group setion styling * reset filter styling * article card styling, wip * article detail page, wip * article page detail styling, wip * re-comment styling * svgr typescript 지원 * fix build err * chore: next.ahhachul.com 삭제 (#275) * next.ahhachul.com 삭제 * fix codeowners * chore: 이슈 번호 자동으로 붙도록 설정 추가 (#277) (#278) * feat: 유실물 리스트, 상세, 댓글 목록, 댓글 입력 컴포넌트 UI 상세 작업 (#276) * feat: 댓글 조회 api 연동 * 검색 결과 리스트가 empty 일때 보여주는 화면 * loading uis * add empty uis * comment text filed ui * lost112 article 일시 상세 테이블 정보 UI가 추가된다 * article detail 내부 이미지 * img 관련 typescipt 빌드 에러 수정 * img 관련 typescipt 빌드 에러 수정 2 * img 관련 typescipt 빌드 에러 수정 3.. * refactor: isLexicalContent 유틸 함수를 early return 방식으로 변경 * chore: 절대경로 import 하는 문제 해결, eslint 관련 경고 뜨는 현상 해결 (#282) * feat: 댓글 생성 * Absolute Path to Relative Path and Fix eslint rules errors * chore: telemetry - false * feat: 댓글 생성 (#283) * resolve conficts * feat: 유실물 글 작성 페이지 구성 (#261) * feat: add new type definitions for LostFound data * feat: implemented basic UI components. * feat: add shad/cn setting file * chore: add library * chore: etc work * refactor: 유실물 페이지 라우터 재구성(수정, 생성 구분) (#258) * feat: 이미지 업로드/삭제 기능 구현 (#258) * chore: 지하철 호선 아이콘 추가 (#258) * feat: 바텀 시트 구현 (#258) * refactor: dto에 없는 지하철 호선 제거 (#258) * feat: lexical 에디터 추가 (#258) * chore: svg 타입 명시 * feat: 유실물 등록 기능 추가 (#258) * chore: 아이콘 속성 올바르게 수정 (#258) * chore: 임시로 유실물 페이지 등록 링크 추가 (#258) * refactor: 에디터 빈 값 판단 로직 추가 (#258) * feat: 유실물 데이터 조회 기반으로 화면에 바인딩 처리 (#258) * chore: 유실물 데이터에 옵셔널 체이닝 적용 (#258) * chore: 이미지 제거 아이콘 속성 수정 (#258) * refactor: 유실물 등록/수정 로직 훅으로 분리 (#258) * refactor: 주요 로직 훅으로 분리, 타입 정리 (#258) * chore: eslint 파일 스타일 변경 (#258) * refactor: shadcn 컴포넌트 위치 이동 및 기본 설치 위치 수정 (#258) * chore: 불필요 console.log 제거 (#258) * chore: 디자인 시스템에 맞게 컬러값 수정 및 신규 추가 (#269) * chore: 폰트 사이즈 테일윈드 시스템화(fontSize 항목 확장) (#269) * chore: green 컬러셋 추가 (#269) * refactor: LostFound 타입 명칭 수정 (#258) * chore: 컴포넌트 스타일 수정(테일 윈드 테마 적용) (#258) * chore: 설치 파일 동기화 (#258) * chore: 불필요 타입 제거 (#258) * refactor: 유실물 수정 시의 데이터 구성 로직 변경 * chore: yarn.lock 파일 업데이트 (#258) * refactor: 중복 타입 코드 제거 (#258) * refactor: shadcn 컴포넌트 수정(명칭 수정 및 불필요 하위 컴포넌트 제거) * style: 불필요 css 항목 제거 (#258) * refactor: 중복되는 스타일 유틸함수 제거 (#258) * refactor: 기존 타입 사용하도록 적용 (#258) * chore: 불필요 플러그인 설정에서 제거 (#258) * style: 조건부 스타일에 대해 cn 유틸 적용 (#258) * refactor: 유실물 등록/수정 요청 useMutation으로 적용 (#258) * refactor: 누락된 errorFallback 추가 (#258) * refactor: adapter 내에 lostId 없을 경우 기본 값으로 리턴되게 설정 (#258) * refactor: 유실물 수정/생성 컴포넌트 독립적으로 생성 적용 (#258) * chore: 타입 오류 제거 * chore: 컴포넌트 캐피털로 반영 * chore: 컴포넌트 캐피탈 다시 적용되도록 처리 * chore: 빌드 에러 수정 * uupdate deploy-app.yml --------- Co-authored-by: Lulu <[email protected]> Co-authored-by: joohyun.ha <[email protected]> Co-authored-by: 이희제 <[email protected]>
1 parent e9d15cb commit 6f7f96a

File tree

754 files changed

+6800
-31974
lines changed

Some content is hidden

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

754 files changed

+6800
-31974
lines changed

.eslintrc.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ module.exports = {
1010
project: './tsconfig.eslint.json',
1111
tsconfigRootDir: __dirname,
1212
},
13-
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:storybook/recommended', 'prettier'],
14-
plugins: ['react', '@typescript-eslint', 'react-hooks', 'jsx-a11y'],
13+
extends: [
14+
'eslint:recommended',
15+
'plugin:react/recommended',
16+
'plugin:storybook/recommended',
17+
'prettier',
18+
],
19+
plugins: ['react', '@typescript-eslint', 'jsx-a11y'],
1520
rules: {
16-
'react-hooks/rules-of-hooks': 'error',
17-
'react-hooks/exhaustive-deps': 'warn',
1821
'react/react-in-jsx-scope': 'off',
1922
'comma-dangle': 'off',
2023
'react/display-name': 'off',

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@createhb21 @areumsheep @YoonJeongLulu
1+
* @createhb21 @holim0 @YoonJeongLulu

.github/workflows/deploy-app.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Build & Deploy Ahhachul App
22

33
on:
4-
pull_request:
54
push:
65
branches:
76
- main

.github/workflows/deploy-web.yml

Lines changed: 0 additions & 98 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
yarn lint-staged
4+
# lint-staged 실행
5+
yarn lint-staged || exit 1

.husky/prepare-commit-msg

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# 현재 브랜치 이름 가져오기
5+
branch_name=$(git rev-parse --abbrev-ref HEAD)
6+
7+
# 브랜치 이름에서 숫자 또는 텍스트 식별자 추출
8+
issue_identifier=$(echo "$branch_name" | grep -oE '[^/]+$')
9+
10+
# 식별자가 없으면 스크립트 종료
11+
if [ -z "$issue_identifier" ]; then
12+
echo "No issue identifier found." >> /tmp/husky-debug.log
13+
exit 0
14+
fi
15+
16+
# 커밋 메시지 파일 경로
17+
commit_msg_file="$1"
18+
19+
# 커밋 메시지 경로 디버깅
20+
if [ ! -f "$commit_msg_file" ]; then
21+
echo "COMMIT_EDITMSG file not found: $commit_msg_file" >> /tmp/husky-debug.log
22+
exit 1
23+
fi
24+
25+
# 커밋 메시지 끝에 식별자 추가 (줄바꿈 없이)
26+
if ! grep -q "(#$issue_identifier)" "$commit_msg_file"; then
27+
sed -i '' -e "\$s/\$/ \\(#$issue_identifier\\)/" "$commit_msg_file"
28+
echo "Issue identifier added: (#$issue_identifier)" >> /tmp/husky-debug.log
29+
fi

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ packageExtensions:
2020
dependencies:
2121
'@lexical/clipboard': '^0.14.2'
2222
'@lexical/selection': '^0.14.2'
23+
'eslint-config-next@*':
24+
dependencies:
25+
'next': '*'

packages/react/components/accordion/src/Accordion.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
import { useState } from "react";
2-
import AccordionContext from "./AccordionContext";
3-
import { AccordionProps } from "./types";
4-
import { clsx } from "clsx";
5-
import * as React from "react";
6-
import { accordionStyle } from "./style.css";
1+
import { useState } from 'react';
2+
import AccordionContext from './AccordionContext';
3+
import { AccordionProps } from './types';
4+
import { clsx } from 'clsx';
5+
import * as React from 'react';
6+
import { accordionStyle } from './style.css';
77

88
const Accordion = (props: AccordionProps, ref: React.Ref<HTMLDivElement>) => {
99
const { defaultActiveItems = [], children, className, ...rest } = props;
1010

11-
const [activeItems, setActiveItems] =
12-
useState<string[]>(defaultActiveItems);
11+
const [activeItems, setActiveItems] = useState<string[]>(defaultActiveItems);
1312

1413
const handleSetActiveItem = (item: string) => {
1514
if (activeItems.includes(item)) {
1615
setActiveItems(activeItems.filter((activeItem) => activeItem !== item));
1716
} else {
1817
setActiveItems([...activeItems, item]);
1918
}
20-
};
19+
};
2120

2221
return (
2322
<AccordionContext.Provider

packages/react/components/accordion/src/AccordionButton.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import * as React from "react";
2-
import { AccordionButtonProps } from "./types";
3-
import { clsx } from "clsx";
4-
import { accordionButtonStyle } from "./style.css";
5-
import { useButton } from "@ahhachul/react-hooks-button";
6-
import { useAccordionContext } from "./AccordionContext";
7-
import { useCallback } from "react";
1+
import * as React from 'react';
2+
import { AccordionButtonProps } from './types';
3+
import { clsx } from 'clsx';
4+
import { accordionButtonStyle } from './style.css';
5+
import { useButton } from '@ahhachul/react-hooks-button';
6+
import { useAccordionContext } from './AccordionContext';
7+
import { useCallback } from 'react';
88

99
const AccordionButton = (
1010
props: AccordionButtonProps,
1111
ref: React.Ref<HTMLButtonElement>,
1212
) => {
13-
const { className, itemName = "", onClick, children, ...rest } = props;
13+
const { className, itemName = '', onClick, children, ...rest } = props;
1414

1515
const { setActiveItem } = useAccordionContext();
1616

@@ -25,7 +25,7 @@ const AccordionButton = (
2525
const { buttonProps } = useButton({
2626
...rest,
2727
onClick: handleClick,
28-
elementType: "button",
28+
elementType: 'button',
2929
});
3030

3131
return (

packages/react/components/accordion/src/AccordionItem.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
import * as React from "react";
2-
import { clsx } from "clsx";
3-
import { accordionItemStyle } from "./style.css";
4-
import { AccordionItemProps } from "./types";
5-
import { Children, cloneElement, isValidElement } from "react";
1+
import * as React from 'react';
2+
import { clsx } from 'clsx';
3+
import { accordionItemStyle } from './style.css';
4+
import { AccordionItemProps } from './types';
5+
import { Children, cloneElement, isValidElement } from 'react';
66

7-
const AccordionItem = (props: AccordionItemProps, ref: React.Ref<HTMLDivElement>) => {
7+
const AccordionItem = (
8+
props: AccordionItemProps,
9+
ref: React.Ref<HTMLDivElement>,
10+
) => {
811
const { itemName, children, className, ...rest } = props;
912

1013
const childrenWithProps = Children.toArray(children);
1114

1215
const accordionItemChildren = childrenWithProps.map((child) => {
1316
if (isValidElement(child)) {
14-
return cloneElement(child, { ...child.props, itemName })
17+
return cloneElement(child, { ...child.props, itemName });
1518
}
1619

1720
return null;

0 commit comments

Comments
 (0)