<div><p><img src="https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmdxu3XEBifqSDbCrRqmjkVk8FaFMBRyJwv8LdiAXw7wsZ/image.png"></p> <h4>Repository</h4> <p><a href="https://github.com/therealFlauwy/1UP" rel="noopener" title="This link will take you away from steemit.com">https://github.com/therealFlauwy/1UP</a></p> <p>Following this <a href="https://steemit.com/utopian-io/@flauwy/developer-wanted-for-the-1up-curation-system-with-smt-bounty">post</a> from <a href="/@flauwy">@flauwy</a>, I've been tasked to start the creation of the new 1UP.<br> As a reminder, <a href="/@utopian-1up">@utopian-1UP</a> was an Utopian bot front-runner in which members of the community would decide which are the best posts to vote for. the <a href="/@utopian-1up">@utopian-1up</a> would then vote for the best post every 2.4 hours, followed by hundreds of curators in the trail.</p> <h3>New Features</h3> <h4>Distinction between the different types of trail</h4> If you have followed my work on 1UP, you saw that I ve already coded a route that helps administrators generating a random link that can be used to set the community whale on the trail. In my idea, the community started a trail, followed by all the users in the trail, after what the whale would end up the voting round. What I didn't understand correctly is that the "normal" user accounts of the trail were to be added directly on 1UP website rather than other service (such as SteemAuto). Therefore I had to change a big portion of the code and add some new routes in order to distinct these two different types of trail, as shown in this graph: ![](https://cdn.steemitimages.com/DQmegeipW3TKbWcCyjfhuwnnmpVJYZdbhiZmtppDktAfFwH/image.png) When the trail tail (the community whale) reaches 100% Voting Power a vote will be cast in this manner : - users will upvote sorted by increasing vote value - tail trail will upvote - 1UP will upvote In order to make this possible, I needed to get the `offline` token from the users. But since some don t like to give this permission, I didn't include it in the normal login. Users can now follow a trail directly from a community view page : ![](https://cdn.steemitimages.com/DQmYmaxdLPECWM5VrrprNfq55hpchCSmXXxoXMwzExTY5DM/image.png) Once again, I know it s ugly, but the css has not been implemented yet . If they never gave the offline permission yet, they will be redirected to SteemConnect, if they did, they will join the trail instantly. I have also moved the functions to an `utils.js` file. ### Future work - Fetch the posts the post corresponding to the community criteria - Display these posts and allow 1UP votes on it - Vote on the best post of the period <h3>Live Demo</h3> <p>As a demonstration speaks more than lots of words, I ve put back online the old Utopian1UP website. You can try by yourself and create a community and link a trail to it for testing purposes.<br> No votes will be casted do not worry, but it's an offline token so, for safety reasons, I would recommend using a test account.</p> <p><a href="https://utopian-1up.herokuapp.com" rel="noopener" title="This link will take you away from steemit.com">Live Demo</a></p> <h4>Pull Request</h4> <p><a href="https://github.com/therealFlauwy/1UP/pull/47" rel="noopener" title="This link will take you away from steemit.com">Trail tail and other trailing accounts</a></p> <h4>GitHub Account</h4> <p><a href="https://github.com/stoodkev" rel="noopener" title="This link will take you away from steemit.com">https://github.com/stoodkev</a></p> </div> <center> <a href="https://steemfest.com"><img src="https://files.steempeak.com/file/steempeak/rubencress/TdasrV2W-steemfest-round-corner.png" alt="Meet me at SteemFest 2018 in Kraków" /></a> </center>
post_id | 61,984,128 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
author | stoodkev | ||||||||||||
permlink | 1up--trail-tail-and-other-trailing-accounts | ||||||||||||
category | utopian-io | ||||||||||||
json_metadata | {"tags":["utopian-io","development","dev","steemdev","news"],"image":["https:\/\/steemitimages.com\/0x0\/https:\/\/cdn.steemitimages.com\/DQmdxu3XEBifqSDbCrRqmjkVk8FaFMBRyJwv8LdiAXw7wsZ\/image.png"],"links":["https:\/\/github.com\/therealFlauwy\/1UP","https:\/\/steemit.com\/utopian-io\/@flauwy\/developer-wanted-for-the-1up-curation-system-with-smt-bounty","\/@flauwy","\/@utopian-1up","https:\/\/utopian-1up.herokuapp.com","https:\/\/github.com\/therealFlauwy\/1UP\/pull\/47","https:\/\/github.com\/stoodkev","https:\/\/steemfest.com"],"app":"steemit\/0.1","format":"markdown"} | ||||||||||||
created | 2018-09-09 08:57:36 | ||||||||||||
last_update | 2018-09-11 19:15:39 | ||||||||||||
depth | 0 | ||||||||||||
children | 8 | ||||||||||||
net_rshares | 54,359,775,177,046 | ||||||||||||
last_payout | 2018-09-16 08:57:36 | ||||||||||||
cashout_time | 1969-12-31 23:59:59 | ||||||||||||
total_payout_value | 42.338 SBD | ||||||||||||
curator_payout_value | 12.946 SBD | ||||||||||||
pending_payout_value | 0.000 SBD | ||||||||||||
promoted | 0.000 SBD | ||||||||||||
body_length | 3,748 | ||||||||||||
author_reputation | 89,353,405,873,727 | ||||||||||||
root_title | "1UP : Trail tail and other trailing accounts" | ||||||||||||
beneficiaries |
| ||||||||||||
max_accepted_payout | 100,000.000 SBD | ||||||||||||
percent_steem_dollars | 10,000 | ||||||||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
arcange | 0 | 39,436,087,057 | 5% | ||
deanliu | 0 | 337,003,959,133 | 25% | ||
raphaelle | 0 | 2,893,159,354 | 5% | ||
shieha | 0 | 359,651,777 | 25% | ||
lydiachan | 0 | 11,201,426,432 | 40% | ||
passion-fruit | 0 | 10,009,459,737 | 46% | ||
aleister | 0 | 2,166,954,567 | 10% | ||
mkt | 0 | 29,052,918,416 | 100% | ||
flauwy | 0 | 36,924,133,034 | 100% | ||
roxane | 0 | 629,990,502,742 | 30% | ||
vallesleoruther | 0 | 59,501,781,312 | 100% | ||
luigi-tecnologo | 0 | 1,085,309,526 | 4% | ||
doughtaker | 0 | 15,370,808,039 | 50% | ||
thinkkniht | 0 | 132,234,892 | 100% | ||
rafalski | 0 | 48,059,481,953 | 80% | ||
healthykitty | 0 | 121,853,600 | 20% | ||
codingdefined | 0 | 11,138,318,087 | 15% | ||
wargof | 0 | 427,825,265 | 10% | ||
tekendra | 0 | 573,368,688 | 100% | ||
ashiqhooriya | 0 | 206,864,951 | 100% | ||
stoodkev | 0 | 460,901,462,122 | 100% | ||
ingonieur | 0 | 600,494,060 | 100% | ||
memorysports | 0 | 600,347,724 | 100% | ||
estoy | 0 | 60,988,165 | 10% | ||
renatomacedo | 0 | 164,468,194 | 30% | ||
flauwy-de | 0 | 297,372,457 | 100% | ||
bartosz546 | 0 | 182,087,665,942 | 100% | ||
pataty69 | 0 | 12,302,242,094 | 30% | ||
steemline | 0 | 241,877,871 | 100% | ||
baloox | 0 | 536,446,342 | 10% | ||
utopian-io | 0 | 51,281,071,356,046 | 34.83% | ||
greenorange | 0 | 605,432,593 | 100% | ||
lpv | 0 | 889,365,166 | 2.5% | ||
iptrucs | 0 | 6,391,209,156 | 15% | ||
elex17 | 0 | 190,526,926 | 10% | ||
fabinhocrypto | 0 | 241,997,766 | 10% | ||
duke77 | 0 | 436,348,931 | 5% | ||
ewq | 0 | 129,233,116 | 3% | ||
tiloupsa | 0 | 65,212,314 | 1% | ||
wazmung | 0 | 60,727,401 | 10% | ||
irminsoul82 | 0 | 64,279,123 | 10% | ||
happydaddyfr | 0 | 76,454,144 | 1% | ||
best-of-football | 0 | 75,001,096 | 10% | ||
amosbastian | 0 | 33,195,121,905 | 47.81% | ||
bobsthinking | 0 | 1,549,463,870 | 100% | ||
grzesiekb | 0 | 130,995,512,757 | 100% | ||
jjay | 0 | 462,730,829 | 100% | ||
portugalcoin | 0 | 2,541,987,920 | 10% | ||
voltagrou | 0 | 942,734,819 | 20% | ||
vianney | 0 | 263,507,288 | 20% | ||
curiousshibby | 0 | 210,687,182 | 10% | ||
holger80 | 0 | 130,001,811,950 | 71% | ||
leguidecrypto | 0 | 1,045,334,472 | 10% | ||
rayday | 0 | 453,161,647 | 100% | ||
michaelizer | 0 | 11,871,779,034 | 100% | ||
kelos | 0 | 657,302,208 | 25% | ||
polbot | 0 | 241,599,341 | 100% | ||
diamantnoir | 0 | 69,812,159 | 10% | ||
ulisessabeque | 0 | 481,961,252 | 30% | ||
tomlabe | 0 | 72,881,042 | 12% | ||
simplymike | 0 | 19,207,965,179 | 16% | ||
swisschain | 0 | 61,016,431 | 10% | ||
whateveryouwant | 0 | 608,149,034 | 100% | ||
analyzer | 0 | 357,509,429 | 100% | ||
thesport | 0 | 114,919,945 | 25% | ||
pl4ym0re | 0 | 60,789,475 | 10% | ||
didizion | 0 | 60,875,896 | 10% | ||
lartist-zen | 0 | 231,442,391 | 10% | ||
imcore | 0 | 1,069,717,460 | 10% | ||
yann85 | 0 | 258,860,962 | 10% | ||
naruitchi | 0 | 1,217,720,186 | 10% | ||
enlighted | 0 | 161,047,570 | 30% | ||
derasmo | 0 | 3,974,316,668 | 100% | ||
cryptofrench | 0 | 540,590,771 | 10% | ||
ryuna.siege | 0 | 259,890,142 | 100% | ||
fanbasefr | 0 | 1,246,786,149 | 10% | ||
jpchabry | 0 | 70,180,487 | 10% | ||
viljacques | 0 | 60,846,191 | 10% | ||
albatar | 0 | 184,982,367 | 10% | ||
tioneb44 | 0 | 60,773,041 | 10% | ||
depereenfils | 0 | 60,927,952 | 10% | ||
ibellia | 0 | 60,784,247 | 10% | ||
olicountry | 0 | 60,786,183 | 10% | ||
zackyy | 0 | 607,627,206 | 100% | ||
renac | 0 | 121,379,009 | 10% | ||
mapcompass | 0 | 60,961,515 | 10% | ||
algo.coder | 0 | 7,454,506,761 | 75% | ||
wargofosef | 0 | 65,074,057 | 20% | ||
remind-me | 0 | 107,591,095 | 100% | ||
heros | 0 | 151,729,210 | 20% | ||
thecryptodwarf | 0 | 276,697,292 | 100% | ||
twirllinks | 0 | 877,195,748 | 100% | ||
ftxft | 0 | 1,173,046,294 | 100% | ||
smartbee | 0 | 239,058,537 | 100% | ||
truthly | 0 | 136,297,887 | 100% | ||
duarte9sousa | 0 | 17,775,789,868 | 10% | ||
munhenhos | 0 | 2,156,055,972 | 30% | ||
isabelpereira | 0 | 547,557,632 | 20% | ||
tiagoferezin | 0 | 188,772,324 | 30% | ||
lynchmichael | 0 | 599,789,311 | 100% | ||
steem-ua | 0 | 796,058,515,074 | 4.18% | ||
kaczynski | 0 | 68,276,062 | 100% | ||
lezamad | 0 | 0 | 100% | ||
fcelier | 0 | 1,707,562,377 | 100% | ||
yarials | 0 | 606,818,673 | 100% |
better idea
post_id | 61,984,555 |
---|---|
author | tekendra |
permlink | re-stoodkev-1up--trail-tail-and-other-trailing-accounts-20180909t090355826z |
category | utopian-io |
json_metadata | {"links":[],"tags":["utopian-io"],"image":[],"format":"markdown","app":"busy\/2.5.6","community":"busy","users":[]} |
created | 2018-09-09 09:05:54 |
last_update | 2018-09-09 09:05:54 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-09-16 09:05:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 11 |
author_reputation | 7,079,457,843 |
root_title | "1UP : Trail tail and other trailing accounts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Thank you for your contribution. 1. you can simply include the bootstrap css to make button/text look a lot nicer than the plain ones. 2. You could use ES6 syntax e.g. `[a[i], a[j]] = [a[j], a[i]];` to swap two elements e.g. in your Array Shuffle function. PS: I personally don't like others to store my offline tokens unless I know there are stronger security preventions. Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category. To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2322222). ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
post_id | 62,009,619 |
---|---|
author | justyy |
permlink | re-stoodkev-1up--trail-tail-and-other-trailing-accounts-20180909t153932882z |
category | utopian-io |
json_metadata | {"app":"steemit\/0.1","links":["https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/3\/2322222","https:\/\/support.utopian.io\/","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"],"tags":["utopian-io"]} |
created | 2018-09-09 15:39:33 |
last_update | 2018-09-09 15:39:33 |
depth | 1 |
children | 1 |
net_rshares | 10,309,240,340,354 |
last_payout | 2018-09-16 15:39:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 8.346 SBD |
curator_payout_value | 2.616 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 868 |
author_reputation | 2,057,469,156,047,835 |
root_title | "1UP : Trail tail and other trailing accounts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
happyukgo | 0 | 495,225,751 | 25% | ||
superbing | 0 | 1,891,170,862 | 25% | ||
dailyfortune | 0 | 85,146,894 | 25% | ||
espoem | 0 | 17,502,375,228 | 15% | ||
dailystats | 0 | 4,609,220,211 | 25% | ||
utopian-io | 0 | 10,250,528,609,129 | 6.56% | ||
ajayyy | 0 | 8,871,990,127 | 100% | ||
dailychina | 0 | 5,266,565,937 | 25% | ||
reazuliqbal | 0 | 8,151,067,449 | 12% | ||
mightypanda | 0 | 3,638,899,229 | 10% | ||
turtlegraphics | 0 | 2,822,157,889 | 25% | ||
mops2e | 0 | 322,741,767 | 10% | ||
witnesstools | 0 | 2,723,119,677 | 25% | ||
ilovecoding | 0 | 2,332,050,204 | 25% |
Thank you for your review, @justyy! So far this week you've reviewed 1 contributions. Keep up the good work!
post_id | 62,480,954 |
---|---|
author | utopian-io |
permlink | re-re-stoodkev-1up--trail-tail-and-other-trailing-accounts-20180909t153932882z-20180915t022016z |
category | utopian-io |
json_metadata | {"app":"beem\/0.19.42"} |
created | 2018-09-15 02:20:18 |
last_update | 2018-09-15 02:20:18 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-09-22 02:20:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 109 |
author_reputation | 152,913,012,544,965 |
root_title | "1UP : Trail tail and other trailing accounts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
#### Hi @stoodkev! Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your post is eligible for our upvote, thanks to our collaboration with @utopian-io! **Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
post_id | 62,010,939 |
---|---|
author | steem-ua |
permlink | re-1up--trail-tail-and-other-trailing-accounts-20180909t155646z |
category | utopian-io |
json_metadata | {"app":"beem\/0.19.54"} |
created | 2018-09-09 15:56:48 |
last_update | 2018-09-09 15:56:48 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-09-16 15:56:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 287 |
author_reputation | 23,203,609,903,979 |
root_title | "1UP : Trail tail and other trailing accounts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Thanks a lot for being such good witness, I updated my vote, I do that every 2-3 months and I'm still voting you as a witness and I included you in this post to introduce you to a very good steemian : [One of the best steemians](https://steemit.com/dtube/@clixmoney/5tu5hpym)
post_id | 62,113,209 |
---|---|
author | clixmoney |
permlink | re-stoodkev-1up--trail-tail-and-other-trailing-accounts-20180910t200917192z |
category | utopian-io |
json_metadata | {"links":["https:\/\/steemit.com\/dtube\/@clixmoney\/5tu5hpym"],"app":"steemit\/0.1","tags":["utopian-io"]} |
created | 2018-09-10 20:09:18 |
last_update | 2018-09-10 20:09:18 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-09-17 20:09:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 275 |
author_reputation | 506,342,573,332,958 |
root_title | "1UP : Trail tail and other trailing accounts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Hey, @stoodkev! **Thanks for contributing on Utopian**. We’re already looking forward to your next contribution! **Get higher incentives and support Utopian.io!** Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)). **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
post_id | 62,291,902 |
---|---|
author | utopian-io |
permlink | re-1up--trail-tail-and-other-trailing-accounts-20180912t203548z |
category | utopian-io |
json_metadata | {"app":"beem\/0.19.42"} |
created | 2018-09-12 20:35:51 |
last_update | 2018-09-12 20:35:51 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-09-19 20:35:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 590 |
author_reputation | 152,913,012,544,965 |
root_title | "1UP : Trail tail and other trailing accounts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Congratulations @stoodkev! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : [![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/payout.png)](http://steemitboard.com/@stoodkev) Award for the total payout received <sub>_Click on the badge to view your Board of Honor._</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Do not miss the last post from @steemitboard:** <table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07"><img src="https://steemitimages.com/64x128/http://i.cubeupload.com/7CiQEO.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07">SteemitBoard - Witness Update</a></td></tr></table> > You can upvote this notification to help all Steemit users. Learn why [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
post_id | 62,346,167 |
---|---|
author | steemitboard |
permlink | steemitboard-notify-stoodkev-20180913t124826000z |
category | utopian-io |
json_metadata | {"image":["https:\/\/steemitboard.com\/img\/notify.png"]} |
created | 2018-09-13 12:48:24 |
last_update | 2018-09-13 12:48:24 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-09-20 12:48:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,030 |
author_reputation | 38,705,954,145,809 |
root_title | "1UP : Trail tail and other trailing accounts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Nice one, good to see you tackled that already. I have missed the post so I put you in my Steemify app so that does not happen again. I have tested the formular and it works. The process is pretty clear I think. There is a little bug though, when I click on the username dropdown it immediately selects the top link. I can avoid it by not releasing my mouse and scroll over the other links and then release, that's why I was able to test it.
post_id | 62,395,312 |
---|---|
author | flauwy |
permlink | re-stoodkev-1up--trail-tail-and-other-trailing-accounts-20180914t013235147z |
category | utopian-io |
json_metadata | {"app":"steempeak","tags":["utopian-io"],"community":"steempeak"} |
created | 2018-09-14 01:32:36 |
last_update | 2018-09-14 01:32:36 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-09-21 01:32:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 443 |
author_reputation | 242,971,623,482,939 |
root_title | "1UP : Trail tail and other trailing accounts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |