Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Sync Master with latest Build #678

Merged
merged 14 commits into from
Sep 13, 2017
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ module.exports = function(grunt) {
src: app,
dest: 'dist/js/app.js'
},
js: {
app: {
options: {
sourceMap: true
},
Expand Down Expand Up @@ -233,6 +233,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-http');

grunt.registerTask('default', ['http', 'clean', 'jade', 'copy', 'cssmin', 'concat:vendor', 'concat:app', 'uglify', 'concat:js', 'concat:css', 'clean:cleanup_js', 'clean:cleanup_css']);
grunt.registerTask('default', ['http', 'clean', 'jade', 'copy', 'cssmin', 'concat:vendor', 'concat:app', 'uglify', 'concat:app', 'concat:css', 'clean:cleanup_js', 'clean:cleanup_css']);
grunt.registerTask('build', 'default');
};
2 changes: 1 addition & 1 deletion data/mist_releases.json

Large diffs are not rendered by default.

40 changes: 15 additions & 25 deletions dist/dao.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ <h4>The code</h4>
uint memberSince;
}

modifier onlyOwner {
require (msg.sender == owner);
_;
}
struct Vote {
bool inSupport;
address voter;
string justification;
}

// Modifier that allows only shareholders to vote and create new proposals
modifier onlyMembers {
Expand Down Expand Up @@ -142,11 +143,12 @@ <h4>The code</h4>
function removeMember(address targetMember) onlyOwner {
require(memberId[targetMember] != 0);

struct Vote {
bool inSupport;
address voter;
string justification;
}
for (uint i = memberId[targetMember]; i&lt;members.length-1; i++){
members[i] = members[i+1];
}
delete members[members.length-1];
members.length--;
}

/**
* Change voting rules
Expand All @@ -167,18 +169,8 @@ <h4>The code</h4>
debatingPeriodInMinutes = minutesForDebate;
majorityMargin = marginOfVotesForMajority;

/* First time setup */
function Congress (
uint minimumQuorumForProposals,
uint minutesForDebate,
int marginOfVotesForMajority
) payable {
changeVotingRules(minimumQuorumForProposals, minutesForDebate, marginOfVotesForMajority);
// It’s necessary to add an empty first member
addMember(0, &quot;&quot;);
// and let&#39;s add the founder, to save a step later
addMember(owner, &#39;founder&#39;);
}
ChangeOfRules(minimumQuorum, debatingPeriodInMinutes, majorityMargin);
}

/**
* Add Proposal
Expand Down Expand Up @@ -212,10 +204,8 @@ <h4>The code</h4>
ProposalAdded(proposalID, beneficiary, weiAmount, jobDescription);
numProposals = proposalID+1;

/// @notice Remove membership from `targetMember`
/// @param targetMember ethereum address to be removed
function removeMember(address targetMember) onlyOwner {
require(memberId[targetMember] != 0);
return proposalID;
}

/**
* Add proposal in Ether
Expand Down
207 changes: 0 additions & 207 deletions dist/js/app.js

This file was deleted.

2 changes: 1 addition & 1 deletion dist/js/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/app.min.js.map

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions dist/js/frontier.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/frontier.min.js.map

This file was deleted.

4 changes: 1 addition & 3 deletions views/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ html
//- Open Graph data
meta(property="og:title", content=title)
meta(property="og:type", content="article")
if url
if url
meta(property="og:url", content="https://www.ethereum.org/"+url)
else
meta(property="og:url", content="https://www.ethereum.org/")
Expand Down Expand Up @@ -63,5 +63,3 @@ html
| })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
| ga('create', 'UA-52040685-2', 'auto');
| ga('send', 'pageview');