About the project:
The actifit landingpage slowly becomes more and more complex.
- Now you can log in via SteemConnect.
- The frontpage/navbar has been reworked.
- You can see all the Activity Reports on the website now, from a certain user or all of them.
- All the data handling has moved to Vuex, Vue's state management.
For that I now always use the Vue.js plugin I created the other day.
Now SteemConnect is available globally as
In the Vuex store it has to be initialized separately.
Then you need an auth page to receive the access token. The store has an action for login, where the user data is fetched, and one for logout which simply removes the access token from local storage and unsets the user property.
All the data is now handled by Vuex.
Here is the list of properties/data that is handled by the store.
Wallet only for logged in user
Before it was possible to simply enter a username on the frontpage and see that users balance and transactions. This changed now. You need to log in via SteemConnect to access your wallet.
There's now also a UserMenu Component that shows the current AFIT balance of the logged-in user.
The website now shows all the Activity Reports.
The posts are fetched with steem-js by the
actifit tag and then filtered to get only posts with the specific json metadata.
The same procedure is used for the user specific reports but since the posts are fetched with the
getDiscussionsByBlog function, there needs to be another check for the
actifit tag when filtering the posts.
I did not mention every single commit in this post but basically all commits since this one can be taken into account for this contribution.
Last but not least I even added and updated some comments in the code, to please the reviewing moderator! ;)