Utopian v0.0.12: Search Top Projects!

in #utopian-io6 years ago (edited)

Utopian Moderators & Supervisors

Utopian Moderators & Supervisors is a Chrome Extension that can be installed via Chrome Webstore:
https://chrome.google.com/webstore/detail/utopian-moderator-supervi/dcjdbldgiiboblbaconadffdaicicebc

If you are using Firefox, you can still install this Extension by Chrome Extension Foxified

Utopian Moderators & Supervisors, as its name suggests, help the moderators & supervisors during their moderation or supervision by providing a few useful tools, charts and statistics.

Technology Stack

Javascript that runs in Chrome.

Previous Contributions

This Commits

Commits

It adds the following features:

  1. Add User Image Avatar in Moderator Tab.
  2. Add Projects Tab which allows you to search top projects.

Screenshots

image.png

image.png

Javascript calls Utopian Top Projects API

    // top projects and contributions
    $('button#btn_top').click(function() {
        $('div#top_result').html("<img id='loading' src='images/loading.gif' />");
        let limit = parseInt($('input#top_limit').val());
        let start = $('input#top_start').val().trim();
        let end = $('input#top_end').val().trim();
        let sort1 = $('select#top_sort1').val().trim();
        let sort2 = "projects";
        let only_new = $('input#top_new').is(":checked") ? "true" : "false";
        let api = "https://api.utopian.io/api/posts/top?limit=" + limit + "&start_date=" + start + "&end_date=" + end + "&sort_by=" + sort1 + "&retrieve_by=" + sort2 + "&only_new=" + only_new;
        logit("calling " + api);
        saveSettings(false);
        $.ajax({
            type: "GET",
            url: api,
            success: function(result) {
                let s = "<table style='width:100%'>";
                s += "<thead>";
                s += "<tr><th>Project Name</th><th>Description</th><th>Count<th>Rewards</th><th>License</th></tr>";
                s += "</thead>";                                
                let len = result.length;
                for (let i = 0; i < len; ++ i) {
                    s += "<tr>";
                    let github = result[i].github;
                    let lic = github.license;
                    let home_url = github.home_url;
                    let project_name = github['name'];
                    let description = github['description'];
                    let count = result[i]['count'];
                    let rewards = result[i]['rewards'];
                    let license = lic ? lic['name'] : '';
                    s += "<td><a target=_blank href='" + home_url + "'>" + project_name + "</a></td>";
                    s += "<td>" + description + "</td>";
                    s += "<td>" + count + "</td>";
                    s += "<td>" + rewards.toFixed(3) + "</td>";
                    s += "<td>" + license + "</td>";                    
                    s += "</tr>";
                }                
                s += "</table>";
                $('div#top_result').html(s);
            },
            error: function(request, status, error) {
                logit('Response: ' + request.responseText);
                logit('Error: ' + error );
                logit('Status: ' + status);
            },
            complete: function(data) {
                logit("API Finished: " + api);                
            }             
        });            
    });

Roadmap

Any good suggestions, please shout at @justyy !

Chrome Webstore

Install the Utopian Chrome Extension Now!

Contribution Welcome

Github: https://github.com/DoctorLai/utopian-moderator

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



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Damn, not quite smart enough to contribute damn well anything yet. way out of my grasp still. but i'll say utopian is looking great though! much love.

Thank you for the contribution. It has been approved.

You can contact us on Discord.

[utopian-moderator]

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

Achievements

  • WOW WOW WOW People loved what you did here. GREAT JOB!
  • 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

Your post is very good

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 63799.64
ETH 3130.40
USDT 1.00
SBD 3.97