Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt frontend app to the same style as other aragon apps #10

Merged
merged 5 commits into from
May 25, 2018

Conversation

bingen
Copy link
Contributor

@bingen bingen commented May 24, 2018

Use babel.
Use SafeMath for contract.

Use babel.
USe SafeMath for contract.
@bingen bingen requested a review from sohkai May 24, 2018 21:20
@bingen bingen changed the title Adapt frontend app to the same style as other aragon apps [WIP] Adapt frontend app to the same style as other aragon apps May 24, 2018
Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

.gitignore Outdated
dist
package-lock.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably shouldn't be part of the .gitignore, as users (of the cloned repo) might want to check it in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides, it seems that it's used for IPFS too, so I should remove then dist too: https://github.com/aragon/aragon-cli/blob/master/src/commands/apm_cmds/publish.js#L102
I'll try to think of a better solution.

app/App.js Outdated
return (
<AppContainer>
<div>
<ObservedCount observable={this.state.state$} />
<ObservedCount observable={this.state.observable} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be this.props.observable

app/main.js Outdated
componentWillUnmount() {
window.removeEventListener('message', this.handleWrapperMessage)
}
handleWrapperMessage = ({ data }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment here to explain that this is for a handshake between Aragon Core and the iframe, since iframes can lose messages that were sent before they were ready.

bingen added a commit that referenced this pull request May 25, 2018
@bingen bingen changed the title [WIP] Adapt frontend app to the same style as other aragon apps Adapt frontend app to the same style as other aragon apps May 25, 2018
@sohkai sohkai merged commit 157e324 into master May 25, 2018
@sohkai sohkai deleted the babel_tower branch May 25, 2018 23:19
case 'Decrement':
return { count: parseInt(state.count, 10) - parseInt(event.returnValues.step, 10) }
return { count: await getValue() }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you could get rid of the switch, or at least join those 2 cases.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wanted to keep the switch so it was obvious what the pattern would be for a more complicated app :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants