├── app
├── .meteor
│ ├── .gitignore
│ ├── release
│ ├── platforms
│ ├── .id
│ ├── .finished-upgraders
│ ├── packages
│ └── versions
├── public
│ ├── graph.png
│ ├── graph2.jpg
│ ├── graph2.png
│ ├── person.jpg
│ └── fonts
│ │ ├── icomoon.eot
│ │ ├── icomoon.ttf
│ │ ├── icomoon.woff
│ │ ├── icomoon.svg
│ │ └── demo.html
├── client
│ ├── libraries
│ │ ├── subscribed.js
│ │ ├── dashboard
│ │ │ ├── main
│ │ │ │ ├── menu
│ │ │ │ │ ├── menu.js
│ │ │ │ │ ├── classie.js
│ │ │ │ │ ├── gnmenu.js
│ │ │ │ │ └── modernizr.custom.js
│ │ │ │ └── components.js
│ │ │ ├── vote
│ │ │ │ ├── vote.js
│ │ │ │ └── poll.js
│ │ │ ├── delegates
│ │ │ │ ├── personal.js
│ │ │ │ └── delegates.js
│ │ │ ├── voted
│ │ │ │ └── poll_voted.js
│ │ │ └── create
│ │ │ │ └── create.js
│ │ └── homepage
│ │ │ └── login.js
│ ├── templates
│ │ ├── dashboard
│ │ │ ├── main
│ │ │ │ ├── dashboard.html
│ │ │ │ ├── menu.html
│ │ │ │ └── components.html
│ │ │ ├── voted
│ │ │ │ └── poll_voted.html
│ │ │ ├── vote
│ │ │ │ ├── poll.html
│ │ │ │ └── vote.html
│ │ │ ├── delegates
│ │ │ │ ├── personal.html
│ │ │ │ └── delegates.html
│ │ │ └── create
│ │ │ │ └── create.html
│ │ ├── head.html
│ │ └── homepage
│ │ │ ├── login.html
│ │ │ └── home.html
│ └── stylesheets
│ │ ├── dashboard
│ │ ├── delegates
│ │ │ ├── personal.css
│ │ │ └── delegates.css
│ │ ├── voted
│ │ │ └── poll_voted.css
│ │ ├── vote
│ │ │ ├── vote.css
│ │ │ └── poll.css
│ │ ├── main
│ │ │ ├── normalize.css
│ │ │ ├── dashboard.css
│ │ │ └── menu.css
│ │ └── create
│ │ │ └── create.css
│ │ └── homepage
│ │ ├── login.css
│ │ └── home.css
├── collections
│ └── collections.js
├── README.md
├── server
│ ├── accounts.js
│ ├── published.js
│ └── server.js
└── shared
│ └── routes.js
├── contracts
├── organization.sol
└── poll.sol
├── README.md
└── tests
├── circularDelegation
└── circularcheck.js
├── README.md
├── withDelegates
├── voteCount.js
└── generator.js
├── onlyVoters
├── voteCount.js
└── generator.js
└── treeVisualization
├── tree.html
└── flare.json
/app/.meteor/.gitignore:
--------------------------------------------------------------------------------
1 | local
2 |
--------------------------------------------------------------------------------
/app/.meteor/release:
--------------------------------------------------------------------------------
1 | METEOR@1.2.1
2 |
--------------------------------------------------------------------------------
/app/.meteor/platforms:
--------------------------------------------------------------------------------
1 | server
2 | browser
3 |
--------------------------------------------------------------------------------
/app/public/graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/domschiener/liquid-democracy/HEAD/app/public/graph.png
--------------------------------------------------------------------------------
/app/public/graph2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/domschiener/liquid-democracy/HEAD/app/public/graph2.jpg
--------------------------------------------------------------------------------
/app/public/graph2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/domschiener/liquid-democracy/HEAD/app/public/graph2.png
--------------------------------------------------------------------------------
/app/public/person.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/domschiener/liquid-democracy/HEAD/app/public/person.jpg
--------------------------------------------------------------------------------
/app/public/fonts/icomoon.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/domschiener/liquid-democracy/HEAD/app/public/fonts/icomoon.eot
--------------------------------------------------------------------------------
/app/public/fonts/icomoon.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/domschiener/liquid-democracy/HEAD/app/public/fonts/icomoon.ttf
--------------------------------------------------------------------------------
/app/public/fonts/icomoon.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/domschiener/liquid-democracy/HEAD/app/public/fonts/icomoon.woff
--------------------------------------------------------------------------------
/app/client/libraries/subscribed.js:
--------------------------------------------------------------------------------
1 | Meteor.subscribe("userData");
2 | Meteor.subscribe("pollListings");
3 | Meteor.subscribe("delegatesData");
4 |
--------------------------------------------------------------------------------
/app/client/libraries/dashboard/main/menu/menu.js:
--------------------------------------------------------------------------------
1 | Template.dashboard_menu.onRendered(function() {
2 | new gnMenu( document.getElementById( 'gn-menu' ) );
3 | });
4 |
--------------------------------------------------------------------------------
/app/collections/collections.js:
--------------------------------------------------------------------------------
1 | Uservotes = new Mongo.Collection('uservotes');
2 | Delegates = new Mongo.Collection('delegates');
3 | poll = new Mongo.Collection('polls');
4 |
--------------------------------------------------------------------------------
/app/README.md:
--------------------------------------------------------------------------------
1 | # App Structure
2 |
3 | Coming Soon
4 |
5 | ## Credits
6 |
7 | A huge shoutout to [Codrops](http://tympanus.net/codrops/), the Dashboard menu is from them. Check them out :)
8 |
--------------------------------------------------------------------------------
/app/client/libraries/homepage/login.js:
--------------------------------------------------------------------------------
1 | Template.login.events({
2 | 'click #github_login' : function() {
3 | Meteor.loginWithGithub({loginStyle: "redirect", requestPermissions: ['user']}, function(error, success) {
4 | console.log(success);
5 | });
6 | }
7 | })
8 |
--------------------------------------------------------------------------------
/app/server/accounts.js:
--------------------------------------------------------------------------------
1 | ServiceConfiguration.configurations.remove({
2 | service: "github"
3 | });
4 |
5 | ServiceConfiguration.configurations.insert({
6 | service: "github",
7 | clientId: "d0c2b45aa6bc025b2644",
8 | secret: "92dfafe10920fd509c24cc73c82fb2a9933d9fb8"
9 | });
10 |
--------------------------------------------------------------------------------
/app/.meteor/.id:
--------------------------------------------------------------------------------
1 | # This file contains a token that is unique to your project.
2 | # Check it into your repository along with the rest of this directory.
3 | # It can be used for purposes such as:
4 | # - ensuring you don't accidentally deploy one app on top of another
5 | # - providing package authors with aggregated statistics
6 |
7 | k3rs3g1um9k6f1h7i26k
8 |
--------------------------------------------------------------------------------
/app/client/libraries/dashboard/vote/vote.js:
--------------------------------------------------------------------------------
1 | Template.vote.helpers({
2 | getDate: function(timestamp) {
3 | return new Date(timestamp);
4 | },
5 | vote_count: function() {
6 | var current_poll = this;
7 | if (current_poll.votes) {
8 | return current_poll.votes.length;
9 | }
10 | else {
11 | return 0;
12 | }
13 | }
14 | })
15 |
--------------------------------------------------------------------------------
/app/client/templates/dashboard/main/dashboard.html:
--------------------------------------------------------------------------------
1 |
2 |
Let us never forget that government is ourselves and not an alien power over us. The ultimate rulers of our democracy are not a President and senators and congressmen and government officials, but the voters of this country.
{{this.poll.description}}
17 |{{this.poll.description}}
17 |Liquid Democracy is a new, novel form of decentralized decision making. It combines the best of Direct and Representative Democracy and creates a truly democratic voting system where the voter is fully empowered.
21 |With Liquid Democracy voters can either vote directly on decisions, or they can delegate their voting power to someone else. This gives voters the choice of how involved they wanted to be in the decision making.
22 | 23 |Engage with the community and discuss issues demcoratically to find the right option
48 |Express your opinion by getting directly involved in the voting process
55 |Learn more about delegation by actually delegating your voting power to someone
62 |Validate the outcome of decisions and your delegates, powered by the Blockchain
69 |More than 150 are already writing
79 |{{delegateCount this.delegations}}
82 |15
96 |100 | 101 |
102 |Generated by IcoMoon
99 |{{this.delegate.name}}
21 |{{this.delegate.description}}
24 |Votes Casted
39 |Issues Created
65 |Become a Delegate
20 |{{this.delegate.name}}
69 |{{this.delegate.description}}
72 |