aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-07-07 17:34:02 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-07-07 17:34:02 +0200
commit5c265c04ad513d845a41c7866c3ed231c8d5e68e (patch)
tree9a86b66958e59e4a07d0c8e10731667b05990816 /src/client
parent8b1f29f2802a081a67151e47b9c52803d7cc568a (diff)
server: Use database for userssync-with-db
Diffstat (limited to 'src/client')
-rw-r--r--src/client/.eslintrc5
-rw-r--r--src/client/react/components/container/HelpBox.js2
-rw-r--r--src/client/views/index.handlebars5
3 files changed, 8 insertions, 4 deletions
diff --git a/src/client/.eslintrc b/src/client/.eslintrc
new file mode 100644
index 0000000..6479217
--- /dev/null
+++ b/src/client/.eslintrc
@@ -0,0 +1,5 @@
+{
+ "rules": {
+ "no-console": "warn"
+ }
+}
diff --git a/src/client/react/components/container/HelpBox.js b/src/client/react/components/container/HelpBox.js
index d10c26b..f4fbbe9 100644
--- a/src/client/react/components/container/HelpBox.js
+++ b/src/client/react/components/container/HelpBox.js
@@ -21,6 +21,8 @@
import { connect } from 'react-redux';
import HelpBox from '../presentational/HelpBox';
+console.log('hi');
+
const mapStateToProps = state => ({
isVisible: !state.search || (state.search.results.length === 0 && state.search.text === ''),
});
diff --git a/src/client/views/index.handlebars b/src/client/views/index.handlebars
index 5105439..93eccf1 100644
--- a/src/client/views/index.handlebars
+++ b/src/client/views/index.handlebars
@@ -28,10 +28,7 @@
<body>
<div id="root"></div>
<script>
- {{{ flagsStr }}}
- {{{ usersStr }}}
- {{{ dailyScheduleWeeksStr }}}
- {{{ basisScheduleWeeksStr }}}
+ var USERS = {{{ usersStr }}};
</script>
<script src="/bundle.js"></script>
</body>