Code Monkey home page Code Monkey logo

todomvc-vue-composition-api's Introduction

TodoMVC built with Vue 3 Composition Api and Vuex

Build Status Dependencies Status

The well-known TodoMVC built with Vue 3 Composition Api and Vuex in a structured and testable way.

TodoMVC Vue

Edit and try it out online

Concepts and tools covered

Usage

After installing the dependencies the following NPM scripts become available:

  • start: starts the application in development mode on http://localhost:9000
  • build: bundles the application for production into the dist folder
  • test: runs unit and E2E tests
  • test:unit: runs unit tests with Mocha and Chai in the src folder suffixed with *.spec.js
  • test:e2e: runs E2E tests with Cypress in the tests/e2e folder suffixed with *.spec.js
  • format: formats the code with Prettier within the src folder
  • lint: lint files with ESLint based on Airbnb's styleguide and the Prettier config

Component architecture

Architecture

Application is compatible with Vue devtools

Series

This implementation is part of a series where the same application was implemented with the same architecture.

todomvc-vue-composition-api's People

Contributors

sonicoder86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

todomvc-vue-composition-api's Issues

BUG: handleBlur event failed to trigger

It's not triggered handleBlur unless you tap it manually (click 3 times)(It should be able to reproduce, test on chrome/firefox)
as shown in the figure
This results in multiple item being edited at the same time

I didn't find a way to deal with him
Are you going to fix him?
thank!

image

I have a question

If all the items in the list are selected, then click toggle-all should all be unchecked?

I don't understand this line of code in the src/store/mutations/todo.js file.

const areAllCompleted = state => state.length && selectCompleted(state).length === state.length;

maybe it should be

const areAllCompleted = ({ todos }) => todos.length && selectCompleted(todos).length === todos.length;

I am just explaining my idea, thank you very much for this project, I can learn Vue3 through it.

Do you have an v-model example?

I am trying the new Composition API but I am not getting v-model on a custom component working...

<custom-component v-model="something"></custom-component>

Inside the custom component, I have a prop called value and a watcher on the prop. But the watcher doesn't trigger..

export default {
        props: {
            value: Boolean,
        },
watch(props.value, (value, value2) => {
                console.info(value);
                console.info(value2);
            });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.