-
Notifications
You must be signed in to change notification settings - Fork 0
preparing to PR #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| </script> | ||
|
|
||
| <style> | ||
| @keyframes ldio-3igtohkgnvp-r { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3igtohkgnvp - ?
You can clean up your code when copy, and use scoped styles to isolate these classes within current component
| props: { | ||
| value: String, | ||
| }, | ||
| model: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not very convenient way when you work with simple inputs - you need to extract DOM node to emit new value
| this.todo = this.selectedTodo; | ||
| }, | ||
| methods: { | ||
| closeEditing() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant method. Just write @close=$emit('close')
| <th scope="col">Title</th> | ||
| <th scope="col">Completed</th> | ||
| <th scope="col"> | ||
| <button class="btn btn-info" @click="addNew">Add new +</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting!
| v-if="selectedTodo" | ||
| v-model="selectedTodo" | ||
| @close="closeEditing" | ||
| :key="selectedTodo.id"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What for did you add key here ?
| }, | ||
| addNew() { | ||
| this.todos.push({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No backend communication in app
| <meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
| <link rel="icon" href="<%= BASE_URL %>favicon.ico"> | ||
| <title><%= htmlWebpackPlugin.options.title %></title> | ||
| <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import in css modules better
| @@ -0,0 +1,5 @@ | |||
| export default { | |||
| getCard(state) { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getter name should be a noun
| } | ||
| return state.todoList.filter((item) => item.title.includes(state.searchValue)); | ||
| }, | ||
| selectedTodo(state) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this should be stored in a component, not in a store
No description provided.