Skip to content

Commit 565fcd4

Browse files
committed
rename: 폴더 구조 변경
1 parent ab66e5f commit 565fcd4

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

src/App.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import Header from "./Header.js";
2-
import TodoForm from "./TodoForm.js";
3-
import TodoList from "./TodoList.js";
4-
import TodoCount from "./TodoCount.js";
5-
import { setItem } from "./storage.js";
1+
import Header from "./components/Header.js";
2+
import TodoForm from "./components/TodoForm.js";
3+
import TodoList from "./components/TodoList.js";
4+
import TodoCount from "./components/TodoCount.js";
5+
import { setItem } from "./utils/storage.js";
66

77
export default function App({ $target, initialState, initialCount }) {
88
new Header({

src/Header.js renamed to src/components/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import validation from "./util/validation.js";
1+
import validation from "../utils/validation.js";
22

33
export default function Header({ $target, text }) {
44
validation.newTarget(new.target);

src/TodoCount.js renamed to src/components/TodoCount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import validation from "./util/validation.js";
1+
import validation from "../utils/validation.js";
22

33
export default function TodoCount({ $target, initialCount }) {
44
validation.newTarget(new.target);

src/TodoForm.js renamed to src/components/TodoForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import validation from "./util/validation.js";
1+
import validation from "../utils/validation.js";
22

33
export default function TodoForm({ $target, onSubmit }) {
44
validation.newTarget(new.target);

src/TodoList.js renamed to src/components/TodoList.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { setItem } from "./storage.js";
2-
import validation from "./util/validation.js";
1+
import { setItem } from "../utils/storage.js";
2+
import validation from "../utils/validation.js";
33

44
// params.$target - 해당 컴포넌트가 추가될 DOM 앨리먼트
55
// params.initialState - 해당 컴포넌트의 초기 상태
@@ -27,8 +27,8 @@ export default function TodoList({ $target, initialState, updateCount }) {
2727
.map(
2828
({ text, isCompleted }, index) => `
2929
<li data-index=${index} class="todoList ${
30-
isCompleted ? "completed" : ""
31-
}">
30+
isCompleted ? "completed" : ""
31+
}">
3232
${text}
3333
<button class="deleteBtn">삭제</button>
3434
</li>

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import App from "./App.js";
2-
import { getItem } from "./storage.js";
2+
import { getItem } from "./utils/storage.js";
33

44
const initialState = getItem("todo", []);
55
const initialCount = getItem("count", { total: 0, done: 0 });
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)