Utopian.js
<h3>What is the project about?
<p dir="auto">This script provides easy to use functions of Utopian API which can be linked using script tags with available CDN or downloaded minified script.
<h3>Technology Stack
<ul>
<li>HTML
<li>CSS
<li>JS(jQuery)
<li>Task Runner(GruntJS)
<h3>Example
<pre><code><!doctype html>
<html>
<head>
</head>
<body>
<script src="http://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdn.rawgit.com/ms10398/utopian.js/master/dist/utopian.min.js"></script>
<script>
utopian.getModerators()
.then((moderators) => console.log(moderators))
utopian.getSponsors()
.then((sponsors) => console.log(sponsors))
utopian.getStats()
.then((stats) => console.log(stats))
utopian.getModerator('ms10398')
.then((moderator) => console.log(moderator))
utopian.getSponsor('yabapmatt')
.then((sponsor) => console.log(sponsor))
utopian.getPosts()
.then((posts) => console.log(posts))
utopian.getTotalPostCount()
.then((count) => console.log(count))
</script>
</body>
</html>
<h3>Roadmap
<p dir="auto">This is the initial release of the script there will be a final release of the script soon.
<h3>How to contribute?
<p dir="auto">Fork the <a href="https://github.com/ms10398/utopian.js" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">repo, and feel free to send a PR.
<p dir="auto">You need to follow some specific steps for it-
<ul>
<li>install dev dependencies
<li>install grunt globally
<li>run grunt before making a PR to generate new minified script.
<h3>License
<p dir="auto">MIT
<p dir="auto"><strong>Supports all browser as the ES6 code code is transpiled to ES5 for the production use.
<p dir="auto"><br /><hr /><em>Posted on <a href="https://utopian.io/utopian-io/@ms10398/utopian-js-client-side-import-script-for-utopian-api" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Utopian.io - Rewarding Open Source Contributors<hr /><p>
Thank you for the contribution. It has been approved.
Looks great... This is the client side of Utopian API
You can contact us on Discord.
[utopian-moderator]
Yes its a pure Vanilla JS version which can be used in Front-end only projects.
It is transpiled for all browsers using babel with Grunt as a task runner.
And yes,
Thanks for the approval.
I am coming up with more cool stuffs
Our CTO :)
Hey @ms10398 I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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