-
Notifications
You must be signed in to change notification settings - Fork 151
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
Develop #36
base: main
Are you sure you want to change the base?
Develop #36
Conversation
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.
Great job, let's work on improvements now
@@ -0,0 +1,1298 @@ | |||
{ |
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.
don't add package-lock json to commit
getPosts(this.selectedUser.id) | ||
.then(({ data }) => { | ||
this.userPosts = data; | ||
}) | ||
.catch(() =>{ | ||
this.loadPostError = true; | ||
}) | ||
.finally(() => { | ||
this.isLoadingPosts = false; | ||
}) |
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.
better use try/catch and await it's more readable
|
||
<div class="block" > | ||
<p v-if="!selectedUser">No user selected</p> | ||
|
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.
remove empty line
|
||
|
||
<Errors v-if="loadPostError" /> | ||
|
||
<div class="notification is-warning" v-if="isPostsShown && !userPosts.length"> | ||
No posts yet | ||
</div> | ||
|
||
|
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.
remove unnecessary empty lines
@@ -0,0 +1,10 @@ | |||
|
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.
remove
|
||
|
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.
remove
|
||
import 'bulma/bulma.sass'; | ||
import '@fortawesome/fontawesome-free/css/all.css'; | ||
|
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.
remove
DEMO