1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-24 10:26:09 +01:00
Commit Graph

16 Commits

Author SHA1 Message Date
Brett Sun
5073b0988d Convert withCurrentUser and withWhitelabel to withContext 2016-06-08 13:53:46 +02:00
Brett Sun
34b1a2c1fc Add whitelabel and isLoggedIn as arguments to ProxyHandler's redirectFunctions 2016-06-08 13:11:52 +02:00
Brett Sun
d1dba86b1a Convert currentUser to be passed down through context and withCurrentUser HOC
Similar to what react-router did with their router and withRouter HOC.
2016-06-07 14:56:35 +02:00
Brett Sun
6b67a8462f Convert usage of router from context to using withRouter 2016-06-06 16:54:38 +02:00
Brett Sun
c807f62297 Replace usage of history with router passed down through context 2016-06-06 16:10:41 +02:00
Tim Daubenschütz
fcaa85a0ed Replace usage of History mixin with contextTypes 2016-06-06 16:07:16 +02:00
Brett Sun
7eaa3b1a2b Inject environment variables into app
Injects environment variables into the app through webpack, rather than
script snippets in index.html.

As part of this:

* Updated server.js to use node’s path package to resolve file paths
* Ensure that all url environment variables passed to the app don’t
have a trailing slash, allowing for cleaner template urls

**Note**: There are still a number of constants that should be taken
out of the app and put into environment variables.
2016-06-02 17:14:58 +02:00
Brett Sun
537d6d52e8 Small fixes for warnings 2016-02-08 10:41:36 +01:00
Brett Sun
8ba9eb20b6 Add better PropType validation for components 2016-02-05 11:53:33 +01:00
Brett Sun
1ffa1eb6aa Fix potential race condition causing ProxyHandler to not evaluate its redirect functions if the component doesn't get updated 2016-01-13 16:03:08 +01:00
Brett Sun
8531b77633 Merge with master 2016-01-11 17:52:32 +01:00
Brett Sun
d622ddac06 Load current user and whitelabel settings in AscribeApp 2016-01-11 12:54:15 +01:00
Tim Daubenschütz
7e5662676c Add header to jury, judge and admin role 2015-12-08 15:44:46 +01:00
Tim Daubenschütz
e427429263 Implement AuthPrizeRoleRedirect 2015-12-08 15:21:20 +01:00
Tim Daubenschütz
50377ba478 Generalize ProxyHandler to take arbitrary redirect functions 2015-12-08 11:17:04 +01:00
Tim Daubenschütz
7cb5fa6758 Rename AuthProxyHandler to ProxyHandler and remove default export 2015-12-08 10:38:32 +01:00