Rae Che
8d73ff6833
BrewLookup: Mark links as noreferrer
2018-05-31 10:53:07 -04:00
Rae Che
c4397d34f8
BrewItem: Mark links as noreferrer
2018-05-31 10:53:07 -04:00
Rae Che
66c0c96a4f
EditPage: Mark link as noreferrer
2018-05-31 10:53:07 -04:00
Rae Che
838b64c589
EditPage: Simplify hasChanges.
...
In particular, remove unreachable `return` statement.
2018-05-31 10:53:07 -04:00
Rae Che
730dde730c
MetadataEditor: Mark link as noreferrer
2018-05-31 10:53:07 -04:00
Rae Che
d867aa7ce1
EditPage: Consistent trySave on handle[Metadata|Text]change
...
Previously, one of these happened in React's post-state-update callback,
while the other happened directly. They now both use the callback.
2018-05-31 10:53:07 -04:00
Rae Che
761597e71f
EditPage: Fix potentially inconsistent React state updates
2018-05-31 10:53:07 -04:00
Rae Che
4bde5fcbf8
HomebrewAdmin: Mark links as noreferrer.
2018-05-31 10:53:07 -04:00
Rae Che
ff0aa56ddc
HomebrewAdmin: Remove direct React state mutation.
2018-05-31 10:53:07 -04:00
Rae Che
74f92f3e44
Use noreferrer in recent-brew links.
2018-05-31 10:53:07 -04:00
Rae Che
84285f7359
Remove redundant expression.
2018-05-31 10:53:07 -04:00
Rae Che
ec0de7a408
BrewRenderer: Remove redundant errors state property.
...
The errors are in fact tracked in `this.props`, not `this.state`.
2018-05-31 10:53:07 -04:00
Rae Che
9ea99236ff
Omit redundant property definition in brew renderer
2018-05-31 10:53:07 -04:00
Rae Che
f806328e75
Omit redundant property in eslintrc
2018-05-31 10:53:07 -04:00
Rae Che
15ac397b63
Fix inconsistent React state update.
...
Flagged by lgtm.com (as js/react/inconsistent-state-update).
2018-05-31 10:53:07 -04:00
Rae Che
b8105eb147
Config: Read MongoDB URL from config files too.
2018-05-29 11:04:57 -04:00
Rae2che5
cbbb7292d9
Revert "Fix duplicated text from Class Feature snippet"
...
This reverts commit 9519a0b4e4 .
2018-05-11 20:44:53 +01:00
Rae Che
fd5d142c16
Fix calculation of currently-viewed page.
...
Previously, this relied on a hard-coded constant determining the
height of a page. However, that's unnecessary -- we know the scroll
height of the window and the number of pages, so we can compute it.
2018-05-10 14:35:03 -04:00