Commit dce82727 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Update client to React v0.14;

parent 529951b1
......@@ -42,7 +42,8 @@ lint-server: ## Runs the linter on the server.
test: ## Runs all tests and style checks.
./scripts/test.sh
release: build ## Prepares for a release. To be done only on the `master` branch.
release: ## Prepares for a release. To be done only on the `master` branch.
NODE_ENV=production make build
git add -f build/
npm shrinkwrap
git add npm-shrinkwrap.json
......
......@@ -12,8 +12,9 @@
- package.json
- ../shared/errors.json
- lodash.throttle
- react
- react-dom
globals:
"React": true
"$": true
rules:
# Conflicts with another React rule forcing several lines tags to be
......
import React from 'react';
import { has, translate as $t } from '../../helpers';
import ColorPicker from '../ui/color-picker';
......@@ -13,15 +15,15 @@ export default class CreateForm extends React.Component {
}
selectLabel() {
this.refs.label.getDOMNode().select();
this.refs.label.select();
}
clearLabel() {
this.refs.label.getDOMNode().value = '';
this.refs.label.value = '';
}
handleSave(e) {
let label = this.refs.label.getDOMNode().value.trim();
let label = this.refs.label.value.trim();
let color = this.refs.color.getValue();
if (!label || !color)
return false;
......
import React from 'react';
import { Actions, store, State } from '../../store';
import { translate as $t, NONE_CATEGORY_ID } from '../../helpers';
......
import React from 'react';
import { Actions, store } from '../../store';
import { translate as $t, NONE_CATEGORY_ID } from '../../helpers';
......@@ -50,7 +52,7 @@ export default class CategoryListItem extends React.Component {
}
handleDelete() {
let replaceCategory = this.refs.replacement.getDOMNode().value;
let replaceCategory = this.refs.replacement.value;
Actions.deleteCategory(this.props.cat, replaceCategory);
}
......
import React from 'react';
export default class ChartComponent extends React.Component {
redraw() {
......
/* globals c3: false, Dygraph: false */
import React from 'react';
import { store, State } from '../../store';
import { assert, debug, translate as $t } from '../../helpers';
......
import React from 'react';
import { assert, translate as $t } from '../../helpers';
import { store } from '../../store';
import { Operation } from '../../models';
......
import React from 'react';
import { store, State } from '../../store';
import { debug as dbg, translate as $t } from '../../helpers';
import Pair from './item';
......
import React from 'react';
import { Actions, store } from '../../store';
import { translate as $t, has } from '../../helpers';
......
import React from 'react';
import { translate as $t } from '../../helpers';
import NewBankForm from '../shared/add-bank-form';
......
import React from 'react';
import { translate as $t } from '../../helpers';
export default class WeboobInstallReadme extends React.Component {
......
import React from 'react';
import { store, Actions, State } from '../../store';
import { has } from '../../helpers';
......
import React from 'react';
import { Actions, store, State } from '../../store';
import { has } from '../../helpers';
......
import React from 'react';
import { translate as $t } from '../../helpers';
export class AmountWell extends React.Component {
......
import React from 'react';
import { has, translate as $t } from '../../helpers';
import { Actions } from '../../store';
......
import React from 'react';
import { translate as $t } from '../../helpers';
import { store, State } from '../../store';
......
import React from 'react';
import { has, assert, translate as $t } from '../../helpers';
import { Actions } from '../../store';
......@@ -24,7 +26,7 @@ class LabelComponent extends React.Component {
}
dom() {
return this.refs.customlabel.getDOMNode();
return this.refs.customlabel;
}
handleClickEditMode() {
......
import React from 'react';
import { translate as $t, has } from '../../helpers';
import { Actions } from '../../store';
......
import React from 'react';
import { has, translate as $t } from '../../helpers';
import { store } from '../../store';
......@@ -63,7 +65,7 @@ export default class SearchComponent extends React.Component {
ref(name) {
has(this.refs, name);
return this.refs[name].getDOMNode();
return this.refs[name];
}
handleChangeLowDate(value) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment