How advieirabr/todo-vue-js works
This is a small Vue 2 task-list application. The user adds tasks, changes their pending/done state or deletes them; the root component owns the task collection, computes completion progress, and persists the collection in browser localStorage. The UI is split into task entry, task-grid/item display, and progress display. The excerpts show these component and storage relationships; no backend or other product capabilities are documented.
Main entry points: App.vue Task state · TaskGrid.vue Task grid · NewTask.vue Task entry · Task.vue Task item
Components 8
Application state
- Task state
src/App.vue
Task interface
- Task entry
src/components/NewTask.vue - Task grid
src/components/TaskGrid.vue - Task item
src/components/Task.vue - Progress display
src/components/TasksProgress.vue
Vue runtime
- Vue mount
src/main.js
Other components
- User
- Browser storage
Connections 10
- User → Task entry: enters task
src/components/NewTask.vue - Task entry → Task state: emits task
src/App.vue - Task state → Task grid: passes tasks
src/App.vue - Task state → Progress display: passes progress
src/App.vue - Task grid → Task item: renders items
src/components/TaskGrid.vue - Task item → Task grid: emits changes
src/components/TaskGrid.vue - Task grid → Task state: forwards changes
src/App.vue - Task state → Browser storage: reads tasks
src/App.vue - Task state → Browser storage: writes tasks
src/App.vue - Vue mount → Task state: mounts app
src/main.js