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

[FEAT] admin 개발 환경 세팅 #447

Merged
merged 22 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
6ef1b74
chore: admin 디렉토리 개발환경 세팅 (pnpm + vite + react + ts) #442
rbgksqkr Dec 24, 2024
3e07d39
chore: 라이브러리 설치
rbgksqkr Dec 24, 2024
08cb16b
chore: QueryProvider, RouterProvider 설정 #442
rbgksqkr Dec 26, 2024
9d3c2f3
chore: emotion & reset css & color 설정 #442
rbgksqkr Dec 26, 2024
1f8f3da
chore: msw 설치 #442
rbgksqkr Dec 26, 2024
9396882
chore: 브라우저 msw 설정 #442
rbgksqkr Dec 26, 2024
d66af7b
chore: env 파일 gitignore에 추가 #442
rbgksqkr Dec 26, 2024
b7b8279
chore: env 키값 타입 설정 #442
rbgksqkr Dec 26, 2024
83c1c5a
refactor: url 상수화 #442
rbgksqkr Dec 26, 2024
9db2b40
feat: fetcher 공통 API 호출 모듈 구현 #442
rbgksqkr Dec 26, 2024
3f3d947
feat: content 관련 API 호출 함수 구현 #442
rbgksqkr Dec 26, 2024
3c67193
feat: login 관련 API 호출 함수 구현 #442
rbgksqkr Dec 26, 2024
e85b2c9
refactor: mocks 핸들러 폴더 구조 수정 #442
rbgksqkr Dec 26, 2024
521d24b
refactor: 컨텐츠 목데이터 추가 #442
rbgksqkr Dec 26, 2024
c70377f
feat: content 핸들러 구현 #442
rbgksqkr Dec 26, 2024
d800b8f
feat: login 핸들러 구현 #442
rbgksqkr Dec 26, 2024
1dfbd15
refactor: 대소문자 수정 #442
rbgksqkr Dec 26, 2024
e7bcf9a
refactor: 안쓰는 파일 삭제 #442
rbgksqkr Dec 26, 2024
2a8672c
refactor: 중복된 interface 선언하여 분리 #442
rbgksqkr Dec 26, 2024
ae9526b
refactor: 안쓰는 이미지 제거 #442
rbgksqkr Dec 26, 2024
694993b
refactor: interface명 수정 #442
rbgksqkr Dec 26, 2024
12a9f61
refactor: favicon & title 수정 #442
rbgksqkr Dec 27, 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
26 changes: 26 additions & 0 deletions frontend-admin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.env
28 changes: 28 additions & 0 deletions frontend-admin/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
13 changes: 13 additions & 0 deletions frontend-admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>땅콩 admin</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
38 changes: 38 additions & 0 deletions frontend-admin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "frontend-admin",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.14.0",
"@tanstack/react-query": "^5.62.10",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^7.1.1"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react-swc": "^3.5.0",
"eslint": "^9.17.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.16",
"globals": "^15.14.0",
"msw": "^2.7.0",
"typescript": "~5.6.2",
"typescript-eslint": "^8.18.2",
"vite": "^6.0.5"
},
"msw": {
"workerDirectory": [
"public"
]
}
}
Loading