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

1차 배포 - 배포 브랜치 활성화 #52

Merged
merged 68 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
416076d
ESLint,Prettier setting
minh0518 Dec 21, 2023
546a5ad
add templates and labels
minh0518 Dec 21, 2023
3cd4763
change labels file
minh0518 Dec 21, 2023
aaa964f
chore: stylelint setting
Joie-Kim Jan 3, 2024
00f4319
chore: PR템플릿 내용 간소화
minh0518 Jan 3, 2024
3d9f082
chore: husky, lint-stage, gitconfig 설정
minh0518 Jan 3, 2024
f5f71a9
chore: githun컨벤션 관련 husky 임시 제거
minh0518 Jan 5, 2024
b4a21eb
.env gitignore추가
minh0518 Jan 5, 2024
dbf043b
chore: NextAuth 초기세팅
minh0518 Jan 5, 2024
6a6283d
chore: Tanstack/Query provider적용
minh0518 Jan 5, 2024
9352e0e
chore: 초기 폴더 생성, SessionProvider 적용
minh0518 Jan 5, 2024
8c75e15
chore: types폴더 위치 수정
minh0518 Jan 8, 2024
a91f1fc
NextAuth설정 추가, page.tsx 라우팅 수정
minh0518 Jan 8, 2024
aa1d3f7
chore: sync자동화를 위한 .yml 추가
minh0518 Jan 8, 2024
0029235
chroe: build.sh
minh0518 Jan 8, 2024
47277ed
chore: next build를 위한 page.tsx export추가
minh0518 Jan 8, 2024
e63625f
chore: 폴더명 수정
minh0518 Jan 13, 2024
8229112
로그인 페이지 초기 마크업 진행 (#5)
minh0518 Jan 13, 2024
082b06e
refactor: 공통 엘리먼트 타입 수정 (#6)
minh0518 Jan 21, 2024
3df8f80
feat: QRcode, audio recording, image logic
Joie-Kim Jan 21, 2024
3f5a340
Merge pull request #7 from DDD-Community/feat/practice
Joie-Kim Jan 21, 2024
7873127
발표 생성/수정 페이지 구현 (#8)
minh0518 Jan 23, 2024
cf7619d
checkbox, toggle button 컴포넌트 추가 (#9)
Joie-Kim Jan 24, 2024
41b3b75
빌드 에러 수정 (route handler 반환 타입 명시) (#11)
minh0518 Jan 24, 2024
8e403be
서버사이드 File객체 제거 (#12)
minh0518 Jan 24, 2024
bf42953
엘리먼트 타입 이름 수정 및 주석 추가 & 타임피커 컴포넌트 추가 (#13)
Joie-Kim Jan 25, 2024
26f38eb
전역 모달 스토어 및 컴포넌트 생성 (#14)
minh0518 Jan 28, 2024
43e441e
토스트 컴포넌트 구현 (#15)
minh0518 Jan 30, 2024
9fd9fbb
fix: getTimeList 함수 utils로 이동
Joie-Kim Jan 30, 2024
f773b0f
fix: Checkbox, ToggleButton 타입 수정
Joie-Kim Jan 30, 2024
7b00aa8
feat: add Radio component
Joie-Kim Jan 30, 2024
bbaa08e
chore: _utils > element.ts로 파일명 변경
Joie-Kim Jan 30, 2024
f40657e
fix: remove id
Joie-Kim Jan 31, 2024
d349ab5
Merge pull request #16 from DDD-Community/feat/components_huiju
Joie-Kim Jan 31, 2024
9e6c07f
발표 업로드 페이지 유효성 검증, 캘린더 적용 (#17)
minh0518 Feb 1, 2024
f74ca0b
feat: add flyout menu
Joie-Kim Feb 1, 2024
5922920
Merge pull request #18 from DDD-Community/feat/components_huiju
Joie-Kim Feb 2, 2024
d119766
textarea 공통 컴포넌트 적용 (#20)
minh0518 Feb 3, 2024
8aded0d
Header 컴포넌트(Navbar) 마크업 생성 (#21)
minh0518 Feb 5, 2024
e4bd42a
재사용 버튼 테마, 사이즈 구현 (#22)
minh0518 Feb 7, 2024
adaa241
refactor: scss 변수 및 믹스인 수정, styles 폴더 생성 (#23)
Joie-Kim Feb 12, 2024
43d29ba
발표 업로드 (생성/수정) 페이지 최종 디자인 및 유효성 적용 (#24)
minh0518 Feb 13, 2024
3df2e06
발표 목록 페이지 UI 작업 (#25)
Joie-Kim Feb 15, 2024
a266781
발표 추가 및 수정 페이지 유효성 로직 변경, 시간 단위 수정, 글꼴 추가 (#26)
minh0518 Feb 16, 2024
22b2ce3
디자인 변경 사항 반영 (nav 컴포넌트, 컬러 및 폰트 변수) (#27)
Joie-Kim Feb 18, 2024
b3939d6
변경된 디자인 반영 (#28)
Joie-Kim Feb 18, 2024
497717d
소셜 로그인 및 자동화 구현 - 카카오 (#29)
minh0518 Feb 21, 2024
1beecce
발표 세팅 페이지 마크업 구현 (#30)
minh0518 Feb 22, 2024
f36bdcd
모달 컴포넌트 리뉴얼 (#31)
Joie-Kim Feb 24, 2024
bccfdca
발표 추가 및 생성 페이지 백엔드 api 연동 및 버그 수정, (#32)
minh0518 Feb 26, 2024
f27ccf3
발표 연습 페이지 UI 및 녹음 관련 기능 (#33)
Joie-Kim Feb 28, 2024
0391a3b
발표 연습 시작 전 설정 페이지 백엔드 api 연동 (#34)
minh0518 Feb 29, 2024
43fb58b
발표 목록 삭제 컴펌 노출하도록 로직 추가 (#35)
Joie-Kim Feb 29, 2024
c0bc606
발표 생성 페이지 중복 post 오류 수정, CDN baseUrl 환경변수 적용 (#36)
minh0518 Feb 29, 2024
7f15f91
feat: 랜딩 페이지 마크업 구현(SVG제외) (#37)
minh0518 Feb 29, 2024
6a89ab6
feat: 소켓 연결 로직 구현 (STOMP) (#38)
Joie-Kim Mar 1, 2024
1e7d2b4
발표 연습 페이지 헤더 이벤트 처리 및 조회 API 연동 (#39)
Joie-Kim Mar 1, 2024
0b19a90
메인 페이지 백엔드 API 연동 (#40)
minh0518 Mar 1, 2024
7249b6b
fix: 좌,우 화살표 버튼 상태 업데이트 및 유효성 적용 (#41)
minh0518 Mar 1, 2024
d743c8a
날짜 오류 수정 (#42)
minh0518 Mar 1, 2024
557294f
최초 사용자 전용 모달 생성 (#44)
minh0518 Mar 1, 2024
5a5f1fc
이미지 CDN 적용, 랜딩페이지 gif적용, 모달 props 수정 (#45)
minh0518 Mar 1, 2024
3055608
fix: 미들웨어 인증 기반 path조건 추가 (#46)
minh0518 Mar 1, 2024
32a4fa5
발표 연습 관련 로직 구현 (#47)
Joie-Kim Mar 1, 2024
25ed40e
fix: 마지막 페이지일 경우 피드백 페이지로 이동 (#48)
Joie-Kim Apr 1, 2024
f9ddb47
발표 생성 페이지 입력 폼 최적화 및 버그 수정 (#49)
minh0518 Apr 7, 2024
3a9657a
공통 컴포넌트 로직 적용, 네비게이션바 분류 및 클릭 이벤트 추가 (#50)
minh0518 Apr 23, 2024
ba25714
배포 전용 URL세팅 (#51)
minh0518 May 15, 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
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
next.config.js
/next.config.js
node_modules
42 changes: 41 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
{
"extends": "next/core-web-vitals"
"env": {
"browser": true,
"es2021": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"extends": ["next/core-web-vitals", "plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"],

"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"no-var": "error",
"no-console": ["warn", { "allow": ["warn", "error", "info"] }],
"prefer-const": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/restrict-template-expressions": "error",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
}
}
3 changes: 3 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# .gitconfig
[core]
ignorecase = false
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## 개요

{ 업무에 대한 요약 및 설명 }

<br/>

## 체크리스트

{ 작업 체크리스트 }

- [ ] 리스트 1
- [ ] 리스트 2

<br/>

## 비고

{ 기타 내용, 의존성있는 작업 }
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### 💁‍♂️ PR 개요

- 어떤 이유로 코드를 변경했는지
- #{issue number} (QA이슈)

<br/>

### 📷 스크린 샷 (선택)

- 관련 스크린샷 첨부

<br/>

### 🗣 리뷰어한테 할 말 (선택)

- 집중적으로 리뷰해주었으면 하는 부분 설명

<br/>

### 🧪 테스트 범위 (선택)

- 테스트 계획
- 테스트 완료 사항
37 changes: 37 additions & 0 deletions .github/labels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
{
"color": "D4C5F9",
"description": "패키지 매니저 수정, 그 외 기타 수정",
"name": "⚙️CHORE"
},
{
"color": "C5DEF5",
"description": "문서(주석) 수정",
"name": "📝DOCS"
},
{
"color": "FEF2C0",
"description": "기능 구현 관련",
"name": "✨FEAT"
},
{
"color": "F9D0C4",
"description": "기능에 대한 버그 수정",
"name": "🐛FIX"
},
{
"color": "C2E0C6",
"description": "기능의 변화가 아닌 코드 리팩터링 ex) 변수명 변경",
"name": "♻️REFACTOR"
},
{
"color": "E99695",
"description": "코드 스타일, 포맷팅에 대한 수정",
"name": "🎨STYLE"
},
{
"color": "66ff99",
"description": "test 관련",
"name": "✅TEST"
}
]
30 changes: 30 additions & 0 deletions .github/workflows/sync_develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: git push into another repo to deploy to vercel

on:
push:
branches: [develop]

jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v3
- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache
- name: creates output
run: sh ./build.sh
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_SYNC_KEY }}
with:
source-directory: 'output'
destination-github-username: minh0518
destination-repository-name: DDD-10-KKEUNKKEUN-WEB
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
commit-message: ${{ github.event.commits[0].message }}
target-branch: develop
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
30 changes: 30 additions & 0 deletions .github/workflows/sync_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: git push into another repo to deploy to vercel

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v3
- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache
- name: creates output
run: sh ./build.sh
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_SYNC_KEY }}
with:
source-directory: 'output'
destination-github-username: minh0518
destination-repository-name: DDD-10-KKEUNKKEUN-WEB
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
commit-message: ${{ github.event.commits[0].message }}
target-branch: main
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@ yarn-error.log*
# local env files
.env*.local


# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts


.eslintcache


.env
26 changes: 26 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env sh
# . "$(dirname -- "$0")/_/husky.sh"

# COMMIT_MSG_FILE=$1
# COMMIT_MSG=$(awk '!/^\s*#/' "$COMMIT_MSG_FILE")
# SECOND_LINE=$(echo "$COMMIT_MSG" | sed -n '2p')

# IS_HEADER_FORMAT_VALID='^(:[a-zA-Z_]+: )?(feat|fix|docs|refactor|test|style|chore): .+'
# IS_HEADER_LENGTH_UNDER_50='^(.{1,50}$)'

# # --- header ---
# if ! echo "$COMMIT_MSG" | grep -qP "$IS_HEADER_FORMAT_VALID"; then
# echo "🚨 커밋 메시지는 'feat: ', 'fix: ', 'docs: ', 'refactor: ', 'test: ', 'style: ', 'chore: ' 중 하나로 시작해야 합니다. (띄워쓰기 포함)"
# exit 1
# fi

# if ! echo "$COMMIT_MSG" | grep -qP "$IS_HEADER_LENGTH_UNDER_50"; then
# echo "🚨 커밋 메시지의 첫 줄은 50자를 넘을 수 없습니다."
# exit 1
# fi

# # --- description ---
# if ! [ -z "$SECOND_LINE" ]; then
# echo "🚨 커밋 메시지의 두 번째 줄은 비워야 합니다."
# exit 1
# fi
16 changes: 16 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env sh
# . "$(dirname -- "$0")/_/husky.sh"

# branch_name=$(git branch --show-current)

# # check branch naming
# pattern="^(feat|fix|docs|refactor|test|style|chore)\/.+$"

# if ! echo "$branch_name" | grep -Eq "$pattern"; then
# echo "🚨 브랜치 이름이 규칙에 맞지 않습니다."
# echo "수정 예시: feat/login_cookie, chore/ESLint,prettier 등"
# exit 1
# fi

# check ESlint&prettier before commit
npx lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
# . "$(dirname -- "$0")/_/husky.sh"

npm run build
13 changes: 13 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
// Type check TypeScript files
'**/*.(ts|tsx)': () => 'npx tsc --noEmit',

// Lint & Prettify TS and JS files
'**/*.(ts|tsx)': (filenames) => {
return [
`npx eslint --cache --fix ${filenames.join(' ')}`,
`npx prettier --write ${filenames.join(' ')}`,
// `npx stylelint --ignore-path .gitignore ${filenames.join(' ')}`,
];
},
};
19 changes: 19 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"useTabs": false,
"trailingComma": "all",
"printWidth": 100,
"arrowParens": "always",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"overrides": [
{
"files": "*.json",
"options": {
"printWidth": 150
}
}
]
}
60 changes: 60 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"extends": ["stylelint-config-standard-scss"],
"plugins": ["stylelint-order", "stylelint-prettier"],
"overrides": [
{
"files": ["**/*.scss"],
"customSyntax": "postcss-scss"
}
],
"rules": {
"media-feature-range-notation": "prefix",
"order/properties-order": [
"display",
"align-items",
"justify-content",
"clear",
"float",
"overflow",
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"width",
"height",
"margin",
"padding",
"background",
"background-size",
"border",
"color",
"font-size",
"font-weight",
"text-overflow",
"text-align",
"line-height",
"text-indent",
"transform",
"transition",
"box-sizing",
"white-space"
],
"scss/no-global-function-names": null,
"selector-class-pattern": null,
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["deep"]
}
],
"no-descending-specificity": null,
"font-family-no-missing-generic-family-keyword": [
true,
{
"ignoreFontFamilies": ["Font Awesome 5 Free"]
}
]
}
}
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd ../
mkdir output
cp -R ./DDD-10-KKEUNKKEUN-WEB/* ./output
cp -R ./output ./DDD-10-KKEUNKKEUN-WEB/
20 changes: 18 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
reactStrictMode: false,
images: {
remotePatterns: [{ protocol: 'http', hostname: '124.49.161.33' }],
},
async rewrites() {
return [
{
source: '/api/:path*',
destination:
process.env.NODE_ENV === 'development'
? `${process.env.NEXT_PUBLIC_BASE_URL_DEV}/api/:path*`
: `${process.env.NEXT_PUBLIC_BASE_URL_PROD}/api/:path*`,
},
];
},
};

module.exports = nextConfig
module.exports = nextConfig;
Loading
Loading