-
Notifications
You must be signed in to change notification settings - Fork 213
[10기 김장후] TodoList with CRUD #216
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
Open
kimjanghu
wants to merge
14
commits into
next-step:kimjanghu
Choose a base branch
from
kimjanghu:kimjanghu
base: kimjanghu
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0355050
feat: 초기 설정
kimjanghu 3fda74c
feat: entry point 설정
kimjanghu 0fb7a79
feat: core component 추가
7c73ad4
feat: core state 추가
5da65a2
feat: todo 추가
1f04215
feat: todo data 형식 변경
86965d7
feat: WIP todoList checkbox 진행중..
fabc69e
feat: Add check todo
kimjanghu 58bb086
chore: constants name 수정
kimjanghu 442933a
feat: todo 삭제
kimjanghu 57aea54
feat: 총 todo 갯수 표시
kimjanghu 12a311c
feat: todo 수정
kimjanghu d69a150
feat: todo 수정 및 총 갯수 표시 추가
kimjanghu b4592f1
feat: todo filter 적용
kimjanghu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| module.exports = { | ||
| env: { | ||
| browser: true, | ||
| node: true, | ||
| es2021: true, | ||
| }, | ||
| plugins: ["prettier"], | ||
| extends: ["eslint:recommended", "plugin:prettier/recommended"], | ||
| parserOptions: { | ||
| ecmaVersion: 2021, | ||
| sourceType: "module", | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
|
|
||
| # Created by https://www.toptal.com/developers/gitignore/api/node | ||
| # Edit at https://www.toptal.com/developers/gitignore?templates=node | ||
|
|
||
| ### Node ### | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| lerna-debug.log* | ||
| .pnpm-debug.log* | ||
|
|
||
| # Diagnostic reports (https://nodejs.org/api/report.html) | ||
| report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
|
||
| # Runtime data | ||
| pids | ||
| *.pid | ||
| *.seed | ||
| *.pid.lock | ||
|
|
||
| # Directory for instrumented libs generated by jscoverage/JSCover | ||
| lib-cov | ||
|
|
||
| # Coverage directory used by tools like istanbul | ||
| coverage | ||
| *.lcov | ||
|
|
||
| # nyc test coverage | ||
| .nyc_output | ||
|
|
||
| # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
| .grunt | ||
|
|
||
| # Bower dependency directory (https://bower.io/) | ||
| bower_components | ||
|
|
||
| # node-waf configuration | ||
| .lock-wscript | ||
|
|
||
| # Compiled binary addons (https://nodejs.org/api/addons.html) | ||
| build/Release | ||
|
|
||
| # Dependency directories | ||
| node_modules/ | ||
| jspm_packages/ | ||
|
|
||
| # Snowpack dependency directory (https://snowpack.dev/) | ||
| web_modules/ | ||
|
|
||
| # TypeScript cache | ||
| *.tsbuildinfo | ||
|
|
||
| # Optional npm cache directory | ||
| .npm | ||
|
|
||
| # Optional eslint cache | ||
| .eslintcache | ||
|
|
||
| # Microbundle cache | ||
| .rpt2_cache/ | ||
| .rts2_cache_cjs/ | ||
| .rts2_cache_es/ | ||
| .rts2_cache_umd/ | ||
|
|
||
| # Optional REPL history | ||
| .node_repl_history | ||
|
|
||
| # Output of 'npm pack' | ||
| *.tgz | ||
|
|
||
| # Yarn Integrity file | ||
| .yarn-integrity | ||
|
|
||
| # dotenv environment variables file | ||
| .env | ||
| .env.test | ||
| .env.production | ||
|
|
||
| # parcel-bundler cache (https://parceljs.org/) | ||
| .cache | ||
| .parcel-cache | ||
|
|
||
| # Next.js build output | ||
| .next | ||
| out | ||
|
|
||
| # Nuxt.js build / generate output | ||
| .nuxt | ||
| dist | ||
|
|
||
| # Gatsby files | ||
| .cache/ | ||
| # Comment in the public line in if your project uses Gatsby and not Next.js | ||
| # https://nextjs.org/blog/next-9-1#public-directory-support | ||
| # public | ||
|
|
||
| # vuepress build output | ||
| .vuepress/dist | ||
|
|
||
| # Serverless directories | ||
| .serverless/ | ||
|
|
||
| # FuseBox cache | ||
| .fusebox/ | ||
|
|
||
| # DynamoDB Local files | ||
| .dynamodb/ | ||
|
|
||
| # TernJS port file | ||
| .tern-port | ||
|
|
||
| # Stores VSCode versions used for testing VSCode extensions | ||
| .vscode-test | ||
|
|
||
| # yarn v2 | ||
| .yarn/cache | ||
| .yarn/unplugged | ||
| .yarn/build-state.yml | ||
| .yarn/install-state.gz | ||
| .pnp.* | ||
|
|
||
| # End of https://www.toptal.com/developers/gitignore/api/node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| module.exports = { | ||
| singleQuote: true, | ||
| semi: true, | ||
| useTabs: false, | ||
| tabWidth: 2, | ||
| trailingComma: 'all', | ||
| printWidth: 120, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,37 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="kr"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>이벤트 - TODOS</title> | ||
| <link rel="stylesheet" href="./src/css/style.css" /> | ||
| </head> | ||
| <body> | ||
| <div class="todoapp"> | ||
| <h1>TODOS</h1> | ||
| <input | ||
| id="new-todo-title" | ||
| class="new-todo" | ||
| placeholder="할일을 추가해주세요" | ||
| autofocus | ||
| /> | ||
| <main> | ||
| <input class="toggle-all" type="checkbox" /> | ||
| <ul id="todo-list" class="todo-list"></ul> | ||
| <div class="count-container"> | ||
| <span class="todo-count">총 <strong>0</strong> 개</span> | ||
| <ul class="filters"> | ||
| <li> | ||
| <a class="all selected" href="#">전체보기</a> | ||
| </li> | ||
| <li> | ||
| <a class="active" href="#active">해야할 일</a> | ||
| </li> | ||
| <li> | ||
| <a class="completed" href="#completed">완료한 일</a> | ||
| </li> | ||
| </ul> | ||
| </div> | ||
| </main> | ||
| </div> | ||
| </body> | ||
| </html> | ||
|
|
||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <title>이벤트 - TODOS</title> | ||
| <link rel="stylesheet" href="./src/css/style.css" /> | ||
| <script type="module" src="./src/index.js" defer></script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div id="app" class="todoapp"> | ||
| <h1>TODOS</h1> | ||
| <input id="new-todo-title" class="new-todo" placeholder="할일을 추가해주세요" autofocus /> | ||
| <main> | ||
| <input class="toggle-all" type="checkbox" /> | ||
| <ul id="todo-list" class="todo-list"></ul> | ||
| <div class="count-container"> | ||
| <span class="todo-count">총 <strong>0</strong> 개</span> | ||
| <ul class="filters"> | ||
| <li> | ||
| <a class="all selected" href="#">전체보기</a> | ||
| </li> | ||
| <li> | ||
| <a class="active" href="#active">해야할 일</a> | ||
| </li> | ||
| <li> | ||
| <a class="completed" href="#completed">완료한 일</a> | ||
| </li> | ||
| </ul> | ||
| </div> | ||
| </main> | ||
| </div> | ||
| </body> | ||
|
|
||
| </html> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "name": "js-todo-list-step1", | ||
| "version": "1.0.0", | ||
| "description": "<p align=\"middle\" > <img width=\"200px;\" src=\"./src/images/check_list.png\"/> </p> <h2 align=\"middle\">JS 투두리스트 스텝1</h2> <p align=\"middle\">자바스크립트로 구현 하는 투두리스트</p> <p align=\"middle\"> <img src=\"https://img.shields.io/badge/version-1.0.0-blue?style=flat-square\" alt=\"template version\"/> <img src=\"https://img.shields.io/badge/language-html-red.svg?style=flat-square\"/> <img src=\"https://img.shields.io/badge/language-css-blue.svg?style=flat-square\"/> <img src=\"https://img.shields.io/badge/language-js-yellow.svg?style=flat-square\"/> <a href=\"https://github.com/next-step/js-todo-list-step1/blob/main/LICENSE\" target=\"_blank\"> <img src=\"https://img.shields.io/github/license/next-step/js-todo-list-step1.svg?style=flat-square&label=license&color=08CE5D\"/> </a> </p>", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/kimjanghu/js-todo-list-step1.git" | ||
| }, | ||
| "author": "", | ||
| "license": "ISC", | ||
| "bugs": { | ||
| "url": "https://github.com/kimjanghu/js-todo-list-step1/issues" | ||
| }, | ||
| "homepage": "https://github.com/kimjanghu/js-todo-list-step1#readme", | ||
| "devDependencies": { | ||
| "eslint": "^7.30.0", | ||
| "eslint-config-prettier": "^8.3.0", | ||
| "eslint-plugin-prettier": "^3.4.0", | ||
| "prettier": "^2.3.2" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| export default class App { | ||
| constructor($target) { | ||
| console.log($target); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import App from './App.js'; | ||
| import { $ } from './utils/utils.js'; | ||
|
|
||
| document.addEventListener('DOMContentLoaded', () => new App($('#app'))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| const $ = (selector) => document.querySelector(selector); | ||
| const $$ = (selector) => document.querySelectorAll(selector); | ||
|
|
||
| export { $, $$ }; | ||
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 프론트엔드 공부가 부족해서 그런데, 이런식으로 해서 바닐라 JS만으로도 JS 분리를 깔끔하게 되는 것 같아요.
좋은 경험 얻어 갑니다. 👍