Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 24, 2016
1 parent 925ea38 commit 3dda811
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015", "react"]
"presets": ["es2015", "react", "stage-1"]
}
6 changes: 0 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
# HEAD

## Breaking changes

- Rename `extractFromContent` to `extractFromCode`.

All notable changes are described on the [Releases](https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types/releases) page.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "i18n-extract",
"version": "0.2.0",
"version": "0.3.0",
"description": "Manage localization of ES6 code with static analysis",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -35,6 +35,7 @@
"babel-eslint": "^6.0.3",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-1": "^6.5.0",
"chai": "^3.0.0",
"eslint": "^2.8.0",
"eslint-plugin-react": "^5.0.1",
Expand Down
12 changes: 6 additions & 6 deletions src/extractFromCodeFixtures/es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const styles = {
export default class LogMonitor {
constructor() {
if (typeof window !== 'undefined') {
window.addEventListener('keydown', ::this.handleKeyPress);
window.addEventListener('keydown', this.handleKeyPress);
}
}

Expand Down Expand Up @@ -173,28 +173,28 @@ export default class LogMonitor {
previousState={previousState}
collapsed={skippedActions[i]}
error={error}
onActionClick={::this.handleToggleAction}
onActionClick={this.handleToggleAction}
/>
);
}

return (
<div style={{...styles.container, backgroundColor: theme.base00}}>
<div style={{...styles.buttonBar, borderColor: theme.base02}}>
<LogMonitorButton theme={theme} onClick={::this.handleReset}>
<LogMonitorButton theme={theme} onClick={this.handleReset}>
{i18n('reset')}
</LogMonitorButton>
<LogMonitorButton theme={theme} onClick={::this.handleRollback} enabled={computedStates.length}>
<LogMonitorButton theme={theme} onClick={this.handleRollback} enabled={computedStates.length}>
{i18n('revert')}
</LogMonitorButton>
<LogMonitorButton
theme={theme}
onClick={::this.handleSweep}
onClick={this.handleSweep}
enabled={Object.keys(skippedActions).some((key) => skippedActions[key])}
>
{i18n('sweep')}
</LogMonitorButton>
<LogMonitorButton theme={theme} onClick={::this.handleCommit} enabled={computedStates.length > 1}>
<LogMonitorButton theme={theme} onClick={this.handleCommit} enabled={computedStates.length > 1}>
{i18n('commit')}
</LogMonitorButton>
</div>
Expand Down

0 comments on commit 3dda811

Please sign in to comment.