Skip to content

Commit

Permalink
Merge pull request #49 from lovehachiware/main
Browse files Browse the repository at this point in the history
[3주차/하치와레] 워크북 제출합니다.
  • Loading branch information
lovehachiware authored Nov 1, 2024
2 parents cd7acce + 9c72748 commit e6a8d2d
Show file tree
Hide file tree
Showing 62 changed files with 12,402 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
1,675 changes: 1,675 additions & 0 deletions keyword/chapter03/keyword.md

Large diffs are not rendered by default.

Binary file modified mission/.DS_Store
Binary file not shown.
Binary file added mission/chapter02/.DS_Store
Binary file not shown.
Binary file added mission/chapter03/.DS_Store
Binary file not shown.
28 changes: 28 additions & 0 deletions mission/chapter03/mission01/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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
11 changes: 11 additions & 0 deletions mission/chapter03/mission01/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export function getAPI(url, page) {
return {
method: "GET",
headers: {
accept: "application/json",
Authorization: `Bearer ${import.meta.env.VITE_TMDB_ACCESS_TOKEN}`, // 토큰을 제대로 불러오고 있는지 확인
},
params: { language: "ko-KR", page },
url,
};
}
38 changes: 38 additions & 0 deletions mission/chapter03/mission01/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import js from '@eslint/js'
import globals from 'globals'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'

export default [
{ ignores: ['dist'] },
{
files: ['**/*.{js,jsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
settings: { react: { version: '18.3' } },
plugins: {
react,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...js.configs.recommended.rules,
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
...reactHooks.configs.recommended.rules,
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
]
13 changes: 13 additions & 0 deletions mission/chapter03/mission01/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="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Loading

0 comments on commit e6a8d2d

Please sign in to comment.