ํ๋์๋์ฐจ๊ทธ๋ฃน ์ํํฐ์ด๋ถํธ์บ ํ 2๊ธฐ
๊ฐ๋ฐ๊ธฐ๊ฐ: 2023.07.3 ~ 2023.7.5
์ค์ง์ | ์ฅ์๋น |
---|---|
@JeeeunOh | @afk0323 |
์ดํ์ฌ์๋ํ๊ต ์ปดํจํฐ๊ณตํ๊ณผ | ํ๊ตญํญ๊ณต๋ํ๊ต ์ํํธ์จ์ดํ๊ณผ |
- 10๋ถ๋ง๋ค ๊ต๋ํ๋ค.
- 4๋ฒ์ ๊ต๋ ํ์๋ ์ ๊น ํด์ํ๋ค.
- ์๋ก์ ์๊ฐ์ ํ ๋๋ก ์ฝ๋๋ฅผ ์ง๋๋กํ๋ค.
- ์๊ฒฌ์ด ์์ผ๋ฉด ํผ๋๋ฐฑํ๋ฉด์ ์งํํ๋ค.
โโโ README.md : ๋ฆฌ๋๋ฏธ ํ์ผ
โโโ grade.js : ์์ ํ์ผ
โโโ todos.js : ์ ์ฅ ํ์ผ
โโโ module.js : ํจ์ ํ์ผ
โโโ constant.js : ์์ ํ์ผ
- ํ ์ผ์ ์ํ๋
todo
,done
,doing
์ด๋ค. - ์๋ก ์ถ๊ฐํ ํ ์ผ์ ์ํ๋
todo
๋ก ์์ฑ๋๋ค. - ํ ์ผ์ id๋ 1๋ถํฐ ์์ํด์ 1์ฉ ์ฆ๊ฐํ๋ค.
-
๊ฐ์ ์ด๋ฆ์ ๊ฐ์ง ํ ์ผ์ด ์ด๋ฏธ ์กด์ฌํ ๋ :
๊ฐ์ ์ด๋ฆ์ ๊ฐ์ง TODO๊ฐ ์กด์ฌํฉ๋๋ค.
-
ํ๊ทธ ํ์์ ์งํค์ง ์์์ ๋ :
ํ๊ทธ ํ์์ ์ง์ผ์ ์ ๋ ฅํด์ฃผ์ธ์. ---------------------- TODO ๋ฆฌ์คํธ ์ค๋ช ์ ---------------------- > todo ์ถ๊ฐํ๊ธฐ add$์ ๋ชฉ$[tag1, tag2...] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ญ์ ํ๊ธฐ delete$[์ญ์ ํ id] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ ๋ฐ์ดํธํ๊ธฐ update$[id]$[status] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ดํด๋ณด๊ธฐ show$all || show$todo || show$doing || show$done ์ ์ ๋ ฅํด์ฃผ์ธ์. -----------------------------------------------------------------
-
๋ช ๋ น์ด์ ํ์ํ ์ธ์๋ฅผ ์ ๋ ฅํ์ง ์์์ ๋
๋ช ๋ น์ด์ ํ์ํ ์ธ์๋ฅผ ๋ชจ๋ ์ ๋ ฅํด์ฃผ์ธ์. ---------------------- TODO ๋ฆฌ์คํธ ์ค๋ช ์ ---------------------- > todo ์ถ๊ฐํ๊ธฐ add$์ ๋ชฉ$[tag1, tag2...] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ญ์ ํ๊ธฐ delete$[์ญ์ ํ id] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ ๋ฐ์ดํธํ๊ธฐ update$[id]$[status] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ดํด๋ณด๊ธฐ show$all || show$todo || show$doing || show$done ์ ์ ๋ ฅํด์ฃผ์ธ์. -----------------------------------------------------------------
- filter๋ก ํด๋น id์ ํ ์ผ์ todos์์ ์ญ์ ํ๋ค.
-
ํด๋นํ๋ ํ ์ผ์ id๊ฐ ์กด์ฌํ์ง ์์ ๋ :
ํด๋น id๋ฅผ ๊ฐ์ง TODO๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค.
-
๋ช ๋ น์ด์ ํ์ํ ์ธ์๋ฅผ ์ ๋ ฅํ์ง ์์์ ๋
๋ช ๋ น์ด์ ํ์ํ ์ธ์๋ฅผ ๋ชจ๋ ์ ๋ ฅํด์ฃผ์ธ์. ---------------------- TODO ๋ฆฌ์คํธ ์ค๋ช ์ ---------------------- > todo ์ถ๊ฐํ๊ธฐ add$์ ๋ชฉ$[tag1, tag2...] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ญ์ ํ๊ธฐ delete$[์ญ์ ํ id] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ ๋ฐ์ดํธํ๊ธฐ update$[id]$[status] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ดํด๋ณด๊ธฐ show$all || show$todo || show$doing || show$done ์ ์ ๋ ฅํด์ฃผ์ธ์. -----------------------------------------------------------------
- findIndex๋ก ํด๋น id์ todo๋ฅผ ์ฐพ์์ ์ํ๋ฅผ ์ ๋ฐ์ดํธํ๋ค.
-
ํด๋นํ๋ ํ ์ผ์ id๊ฐ ์กด์ฌํ์ง ์์ ๋ :
ํด๋น id๋ฅผ ๊ฐ์ง TODO๊ฐ ์กด์ฌํ์ง ์์ต๋๋ค.
-
์ํ๋ฅผ
todo
,doing
,done
์ผ๋ก ์ ๋ ฅํ์ง ์์์ ๋ :status๋ todo, doing, done ์ค ํ๋๋ง ๊ฐ๋ฅํฉ๋๋ค.
-
ํ์ฌ ํ ์ผ์ ์ํ์ ๋์ผํ status๋ฅผ ์ ๋ ฅํ์ ๋ :
์ด๋ฏธ ํด๋น status ์ ๋๋ค.
-
๋ช ๋ น์ด์ ํ์ํ ์ธ์๋ฅผ ์ ๋ ฅํ์ง ์์์ ๋
๋ช ๋ น์ด์ ํ์ํ ์ธ์๋ฅผ ๋ชจ๋ ์ ๋ ฅํด์ฃผ์ธ์. ---------------------- TODO ๋ฆฌ์คํธ ์ค๋ช ์ ---------------------- > todo ์ถ๊ฐํ๊ธฐ add$์ ๋ชฉ$[tag1, tag2...] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ญ์ ํ๊ธฐ delete$[์ญ์ ํ id] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ ๋ฐ์ดํธํ๊ธฐ update$[id]$[status] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ดํด๋ณด๊ธฐ show$all || show$todo || show$doing || show$done ์ ์ ๋ ฅํด์ฃผ์ธ์. -----------------------------------------------------------------
- ๊ฐ๊ฐ์
todo
,doing
,done
์ํ์ ๋ช๊ฐ์ ์์๋ค์ด ์๋์ง ๊ฐ์๋ฅผ ๋ณด์ฌ์ค๋ค. - ํด๋น ์ํ์ ์ํ๋ ์์์ ์ด ๊ฐ์์ ์ด๋ฆ, id๋ฅผ ๋ณด์ฌ์ค๋ค.
-
๋ช ๋ น์ด์ ํ์ํ ์ธ์๋ฅผ ์ ๋ ฅํ์ง ์์์ ๋
๋ช ๋ น์ด์ ํ์ํ ์ธ์๋ฅผ ๋ชจ๋ ์ ๋ ฅํด์ฃผ์ธ์. ---------------------- TODO ๋ฆฌ์คํธ ์ค๋ช ์ ---------------------- > todo ์ถ๊ฐํ๊ธฐ add$์ ๋ชฉ$[tag1, tag2...] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ญ์ ํ๊ธฐ delete$[์ญ์ ํ id] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ ๋ฐ์ดํธํ๊ธฐ update$[id]$[status] ๋ฅผ ์ ๋ ฅํด์ฃผ์ธ์. > todo ์ดํด๋ณด๊ธฐ show$all || show$todo || show$doing || show$done ์ ์ ๋ ฅํด์ฃผ์ธ์. -----------------------------------------------------------------