sbd.ninja v0.0.3 - Followed/Following/503 Error Catching/Mouse Scroll Support/Refactor Modules

in #utopian-io6 years ago (edited)

Project Info

  • A Cross Platform STEEM Information Query Tool (Mac/Windows/iOS/Android)
  • A lot of my friends need a native tool on Mobile (iOS/Android) to query steem related information, especially outdoors or on train.

Technology Stack

  • Lua + Corona SDK

License

  • MIT

Build

Special Thanks

New Features

function queryFollowed(username, callback)
  local body = "?cached&id=" .. username

  local params = {}
  params.body = body

  network.request( "https://helloacm.com/api/steemit/account/followed/", 
    "POST", 
    function(event)
      if ( event.isError ) then
        print( "Network error: ", event.response )
      else
        print ( "RESPONSE: " .. event.response )
      end
      callback(event)
    end, 
    params )
end
function queryFollowing(username, callback)
    local body = "?cached&id=" .. username

  local params = {}
  params.body = body

  network.request( "https://helloacm.com/api/steemit/account/following/", 
    "POST", 
    function(event)
      if ( event.isError ) then
        print( "Network error: ", event.response )
      else
        print ( "RESPONSE: " .. event.response )
      end
      callback(event)
    end, 
    params )
end
if (string.find(event.response, "503")) then
        print("503 Service Temporarily Unavailable")
        local  rowHeight = math.ceil(display.contentHeight * 0.5 * 0.1)
        uiInfoTableView:insertRow({
            rowHeight = rowHeight, 
            params = {text = "503 Service Temporarily Unavailable. Try Later."}})
local function onMouseEvent( event )

  --print("event.scrollY "..event.scrollY)

  if(uiInfoTableView:getNumRows() >= 1) then
    if(event.scrollY < 0) then
      uiInfoTableViewCurrentIndex = uiInfoTableViewCurrentIndex - 1
      if(uiInfoTableViewCurrentIndex <= 1) then
        uiInfoTableViewCurrentIndex = 1
      end
    elseif(event.scrollY > 0) then
      uiInfoTableViewCurrentIndex = uiInfoTableViewCurrentIndex + 1
      if(uiInfoTableViewCurrentIndex >=  uiInfoTableView:getNumRows()) then
        uiInfoTableViewCurrentIndex = uiInfoTableView:getNumRows()
      end
    end

    if(uiInfoTableViewCurrentIndex >= 1) then
      uiInfoTableView:scrollToIndex(uiInfoTableViewCurrentIndex)
    end
  end
end

Roadmap

  • Mac/Windows - Done
  • iOS/Android - Done Half, Android is ready
  • Account Information - Done partial
  • Delegation (In) - Done
  • Delegation (Out) - Done
  • Witness Info - Done
  • Followed/Following - Done
  • Curation
  • Converter
  • Transfer History
  • Votes
  • More...

Contribution is Welcome

Github: https://github.com/bobdos/sbd.ninja

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thanks a lot for your support.

I will continue to contribute to open source project, utopian-io and steem.

I cant download sbd ninja, how i can download @bobdos

Hi @daiky69, you cannot access dropbox link which I provided in the post ?

Hey @justyy, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

I want to ask sir, yesterday I made a suggestion to your app via utopian, but my contribution was rejected because your github does not have readmi

thanks for your suggestion. i will add readme next update.

Could you add a README to this project? thanks.

Thanks for your kind reminder, and it's added here:

https://github.com/bobdos/sbd.ninja/blob/master/README.md

Good stuff man. Added you to my steemauto.

thanks for your support.

Hey @bobdos I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Congratulations @bobdos, this post is the forth most rewarded post (based on pending payouts) in the last 12 hours written by a Hero account holder (accounts that hold between 10 and 100 Mega Vests). The total number of posts by Hero account holders during this period was 381 and the total pending payments to posts in this category was $3823.76. To see the full list of highest paid posts across all accounts categories, click here.

If you do not wish to receive these messages in future, please reply stop to this comment.

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.033
BTC 62934.09
ETH 3118.65
USDT 1.00
SBD 3.85