Skip to content

Commit 72ad44e

Browse files
authored
[25.02.08 / TASK-109 / TASK-111] Feature - 샘플 로그인 및 글 바로가기 기능 추가 (#10)
* modify: 페이지 최대 크기 제한 * refactor: 타입 정리 * refactor: 디바운스 시간 감소 * modify: 높이 깨짐 오류 해결 * modify: 호버 위치와 상관없이 툴팁 표시 * feature: 리더보드 페이지 제작 * refactor: 헤더 리팩토링 * modify: 이벤트 트래킹 개선 * feature: 유저 이벤트 트래킹 * hotfix: 그래프 깜빡임 오류 해결 * feature: 대시보드 테스트 코드 * modify: 배포 세팅 * refactor: 트래킹 값 미반영 해결 * refactor: 문자열보단 숫자가 나을 것으로 판단됨 * refactor: 개발 관련 세팅 * feature: 샘플 로그인 추가 * refactor: 리더보드 페이지 비활성화 * hotfix: 로그아웃 관련 오류 수정 * refactor: 쿼리 세팅 리팩 * feat: 글 바로가기 추가 * refactor: 이거 왜 빠져있지? * refactor: 환경 변수 관련 리팩 * refactor: 메세지 변경 * refactor: 일부 코드 리팩 * refactor: 요소 위치 리팩
1 parent 4fb015e commit 72ad44e

Some content is hidden

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

50 files changed

+922
-199
lines changed

.env.sample

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
NEXT_PUBLIC_BASE_URL=<'server url here'>
44
NEXT_PUBLIC_ABORT_MS=<'abort time(ms) for fetch here'>
55
SENTRY_AUTH_TOKEN=<'sentry auth token here'>
6+
NEXT_PUBLIC_EVENT_LOG=<'Whether to send an event log here (true | false)'>
67
SENTRY_DSN=<'sentry dsn here'>

.eslintrc.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"extends": [
3-
"next/core-web-vitals",
4-
"next/typescript"
5-
]
2+
"extends": ["next/core-web-vitals", "next/typescript"]
63
}

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
.AppleDouble
2323
.LSOverride
2424

25-
# Icon must end with two \r
26-
Icon
27-
2825

2926
# Thumbnails
3027
._*

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
"javascriptreact",
1919
"typescript",
2020
"typescriptreact"
21-
]
21+
],
22+
"discord.enabled": true
2223
}

eslint.config.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ export default [
3838
'error',
3939
{ groups: ['builtin', 'external', 'internal'] },
4040
],
41+
'testing-library/no-container': 'warn',
42+
'testing-library/no-node-access': 'warn',
4143
'react/react-in-jsx-scope': 'off',
4244
'@typescript-eslint/promise-function-async': 'error',
4345
'@typescript-eslint/consistent-type-assertions': 'error',
4446
'@typescript-eslint/naming-convention': 'off',
45-
'@typescript-eslint/no-explicit-any': 'warn',
4647
'no-restricted-imports': ['error', { patterns: ['..*'] }],
4748
},
4849
languageOptions: {

jest.config.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ const createJestConfig = nextJest({
77

88
// Add any custom config to be passed to Jest
99
const customJestConfig = {
10-
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
11-
testEnvironment: 'jest-environment-jsdom',
10+
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts', '<rootDir>/setupTests.ts'],
11+
testEnvironment: 'jest-fixed-jsdom',
12+
testEnvironmentOptions: {
13+
customExportConditions: [''],
14+
},
15+
moduleNameMapper: {
16+
'^@sentry/nextjs$': '<rootDir>/node_modules/@sentry/nextjs',
17+
},
1218
};
1319

1420
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
6+
"dev": "next dev --port 3000",
77
"build": "next build",
8+
"autoBuild": "next build && cp -R public .next/standalone && mv .next/static .next/standalone/.next",
89
"start": "next start",
910
"lint": "next lint",
1011
"lintTest": "eslint ./src/__test__",
@@ -16,7 +17,9 @@
1617
"@tanstack/react-query": "^5.61.3",
1718
"@tanstack/react-query-devtools": "^5.62.11",
1819
"chart.js": "^4.4.7",
20+
"jest-fixed-jsdom": "^0.0.9",
1921
"js-cookie": "^3.0.5",
22+
"msw": "^2.7.0",
2023
"next": "14.2.18",
2124
"react": "^18",
2225
"react-chartjs-2": "^5.2.0",

0 commit comments

Comments
 (0)