Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jan
kresus
Commits
dce82727
Commit
dce82727
authored
Mar 18, 2016
by
Benjamin Bouvier
Browse files
Update client to React v0.14;
parent
529951b1
Changes
61
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
dce82727
...
...
@@ -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
...
...
client/.eslintrc.yml
View file @
dce82727
...
...
@@ -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
...
...
client/components/categories/create-form.js
View file @
dce82727
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
;
...
...
client/components/categories/index.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
Actions
,
store
,
State
}
from
'
../../store
'
;
import
{
translate
as
$t
,
NONE_CATEGORY_ID
}
from
'
../../helpers
'
;
...
...
client/components/categories/item.js
View file @
dce82727
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
);
}
...
...
client/components/charts/chart-base.js
View file @
dce82727
import
React
from
'
react
'
;
export
default
class
ChartComponent
extends
React
.
Component
{
redraw
()
{
...
...
client/components/charts/index.js
View file @
dce82727
/* globals c3: false, Dygraph: false */
import
React
from
'
react
'
;
import
{
store
,
State
}
from
'
../../store
'
;
import
{
assert
,
debug
,
translate
as
$t
}
from
'
../../helpers
'
;
...
...
client/components/charts/operations-by-category-chart.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
assert
,
translate
as
$t
}
from
'
../../helpers
'
;
import
{
store
}
from
'
../../store
'
;
import
{
Operation
}
from
'
../../models
'
;
...
...
client/components/duplicates/index.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
store
,
State
}
from
'
../../store
'
;
import
{
debug
as
dbg
,
translate
as
$t
}
from
'
../../helpers
'
;
import
Pair
from
'
./item
'
;
...
...
client/components/duplicates/item.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
Actions
,
store
}
from
'
../../store
'
;
import
{
translate
as
$t
,
has
}
from
'
../../helpers
'
;
...
...
client/components/init/account-wizard.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
translate
as
$t
}
from
'
../../helpers
'
;
import
NewBankForm
from
'
../shared/add-bank-form
'
;
...
...
client/components/init/weboob-readme.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
translate
as
$t
}
from
'
../../helpers
'
;
export
default
class
WeboobInstallReadme
extends
React
.
Component
{
...
...
client/components/menu/accounts.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
store
,
Actions
,
State
}
from
'
../../store
'
;
import
{
has
}
from
'
../../helpers
'
;
...
...
client/components/menu/banks.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
Actions
,
store
,
State
}
from
'
../../store
'
;
import
{
has
}
from
'
../../helpers
'
;
...
...
client/components/operations/amount-well.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
translate
as
$t
}
from
'
../../helpers
'
;
export
class
AmountWell
extends
React
.
Component
{
...
...
client/components/operations/details.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
has
,
translate
as
$t
}
from
'
../../helpers
'
;
import
{
Actions
}
from
'
../../store
'
;
...
...
client/components/operations/index.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
translate
as
$t
}
from
'
../../helpers
'
;
import
{
store
,
State
}
from
'
../../store
'
;
...
...
client/components/operations/label.js
View file @
dce82727
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
()
{
...
...
client/components/operations/operation.js
View file @
dce82727
import
React
from
'
react
'
;
import
{
translate
as
$t
,
has
}
from
'
../../helpers
'
;
import
{
Actions
}
from
'
../../store
'
;
...
...
client/components/operations/search.js
View file @
dce82727
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
)
{
...
...
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment