Skip to content

Commit 28224b1

Browse files
committed
rename: 폴더 이름 변경
1 parent 616d1d3 commit 28224b1

File tree

8 files changed

+11
-24
lines changed

8 files changed

+11
-24
lines changed

src/App.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import Header from "./component/Header.js";
2-
import TodoForm from "./component/TodoForm.js";
3-
import TodoList from "./component/TodoList.js";
4-
import TodoCount from "./component/TodoCount.js";
5-
import { setItem } from "./util/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";
6+
import { TodoCount as TodoCnt, TodoItem } from "./types/todo.js";
67

78
export default function App({ $target, initialState, initialCount }) {
89
new Header({

src/component/Header.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/component/TodoCount.ts renamed to src/components/TodoCount.ts

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/component/TodoForm.ts renamed to src/components/TodoForm.ts

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/component/TodoList.ts renamed to src/components/TodoList.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { setItem } from "../util/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 - 해당 컴포넌트의 초기 상태

src/main.ts

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 "./util/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)