Skip to content

markterence/vue-exercise-4

Repository files navigation

Vue Exercise 4

Setup the environment

  • Install the dependencies

    yarn install
    
  • Run development server

    yarn serve
    

Overview

This is a Todo list.

List - Simply think of this list as a notepad.

Card - This is the todo's. A card can contain description.

image

image

The List schema:

Property Type
list Object<Listt>
listTitle String
cardList Array<Card>
cardTitle String
cardDescription String
isComplete Boolean

JSON Structure

{
  "list": {
    "listTitle": "M.I.T.",
    "cardList": [
      {
        "cardTitle": "Gather 2 milk from the ranch",
        "cardDescription": "AAA",
        "isComplete": false
      },
      {
        "cardTitle": "Cook pasta",
        "cardDescription": "AABB",
        "isComplete": false
      },
      {
        "cardTitle": "Clean mah dog.",
        "cardDescription": "AABB",
        "isComplete": false
      }
    ]
  }
}
src/utils/storage/list-storage.js

Cards are saved on and loaded from browser's localstorage

Your tasks.

[Task] - Add an item/card to the list

[Task] - Properly remove an item on the list

[Task] - The Add Card

  • When + Add Another Card is clicked, it should not be shown (hidden). Then the Add Card button and the textbox should show.

[Feature] - Implement a 'check-all'-'un-check-all'

When the horizontal ellipsis icon-button was clicked. A dropdown shows up.

When 'Complete All' was selected. Check all the items/card in the list.

When 'Un-check All' was selected. Remove the check on the items/card in the list.

[Task] - Clear the logs

A button to clear the logs