1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
Commit Graph

2688 Commits

Author SHA1 Message Date
Brett Sun
4fd0e0d99c Fix Navbar and notification list styling 2016-06-10 10:32:42 +02:00
Brett Sun
9ffa834ec0 Fix Navbar not showing mobile toggle 2016-06-10 10:32:42 +02:00
Brett Sun
6eeac85012 Merge pull request #202 from ascribe/upgrade-react
Upgrade react and react-router
2016-06-10 10:30:33 +02:00
Brett Sun
6b1609e8d9 Merge pull request #201 from ascribe/modernize-build-system
Modernize build system
2016-06-10 10:26:24 +02:00
Brett Sun
2aa3aa5ff7 Fix Footer rendering from route declarations
Also a few cosmetic changes to make it more obvious the route holds an
actual footer type.
2016-06-10 10:25:09 +02:00
Brett Sun
df1e6a55c4 Remove displayName declaration from ProxyHandler's component 2016-06-10 10:25:03 +02:00
Brett Sun
ec13e968a4 Make withContext's displayName more intuitive 2016-06-10 10:24:54 +02:00
Brett Sun
206eca16cb Add back spacing to npm scripts 2016-06-08 15:25:06 +02:00
Brett Sun
0f57137c52 Remove route from context and use setRouteLeaveHooks in top level route components 2016-06-08 15:10:58 +02:00
Brett Sun
71dbad2a18 Add location to context 2016-06-08 14:54:05 +02:00
Brett Sun
5a0a6e88db Convert usages of withRouter to withContext 2016-06-08 13:53:50 +02:00
Brett Sun
5073b0988d Convert withCurrentUser and withWhitelabel to withContext 2016-06-08 13:53:46 +02:00
Brett Sun
75247b2594 Remove obsolete AppRouteWrapper
Now that currentUser and whitelabel are passed as context, we don’t
need AppRouteWrapper to copy them into routes as props
2016-06-08 13:11:52 +02:00
Brett Sun
4683ae6b17 Fix OTS font parsing errors during development
Caused by not using the ExtractTextPlugin for development.
2016-06-08 13:11:52 +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
b02695a33a Convert whitelabel to be passed down through context and withWhitelabel HOC 2016-06-08 13:11:48 +02:00
Brett Sun
b5eda1cdd2 Inject isLoggedIn through withCurrentUser
Makes checking for logged in status less error prone than always using
`currentUser.email` or `currentUser.username`.
2016-06-07 14:56:40 +02:00
Brett Sun
b99782455e Fix typo with whitelabel store's error handler 2016-06-07 14:56:39 +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
d5a722259b Fix client--undefined class being applied to the default app 2016-06-06 16:11:14 +02:00
Brett Sun
c807f62297 Replace usage of history with router passed down through context 2016-06-06 16:10:41 +02:00
Brett Sun
d1dfdbdbec Only import what we need from react-router
Unfortunately webpack doesn’t understand jsnext:main declarations yet,
so we have to do this ourselves by using react-router’s es6 build
2016-06-06 16:07:47 +02:00
tim
30c03783d1 Replace getDOMNode with findDOMNode 2016-06-06 16:07:43 +02:00
tim
7e0068bec8 Fix app crashing warnings 2016-06-06 16:07:17 +02:00
Tim Daubenschütz
fcaa85a0ed Replace usage of History mixin with contextTypes 2016-06-06 16:07:16 +02:00
Tim Daubenschütz
8a5a192d24 Comply to react-router's history changes 2016-06-06 16:07:16 +02:00
Tim Daubenschütz
960e16475b Fix all occurrences of react/addons usage
Fixed also: cloneWithProps deprecation
2016-06-06 16:07:16 +02:00
Tim Daubenschütz
b0777fe326 Bump react infrastructure dependencies 2016-06-06 16:07:12 +02:00
Brett Sun
7610d74c4c Add separate extract build command and disable it by default on development
Using ExtractTextPlugin disables hot reloading for CSS, so we only
enable it in production.
2016-06-03 18:06:51 +02:00
Brett Sun
d6c1dca63a Enable code splitting for whitelabels 2016-06-03 17:52:38 +02:00
Brett Sun
ab946abfbc Suppress build info for dev server 2016-06-03 16:02:34 +02:00
Brett Sun
319261f15e Update gemini and docs for visual regression testing 2016-06-03 16:02:31 +02:00
Brett Sun
c13a24a107 Add dedupe webpack plugin for production builds 2016-06-03 13:26:44 +02:00
Brett Sun
1a8691bc53 Map entire dist/ folder as /static in server to allow for dynamic chunking
Otherwise we’d have to change the mapping every time we add or remove a
chunk.
2016-06-03 13:26:43 +02:00
Brett Sun
173d3d19b7 Always build with /static as the public path for the assets 2016-06-03 13:26:43 +02:00
Brett Sun
92978269cc Fix ESLint errors on visual and integration test code 2016-06-03 13:26:40 +02:00
Brett Sun
42d35e7807 Fix ESLint errors on server and dev server 2016-06-03 13:26:39 +02:00
Brett Sun
aff95af78f Upgrade ESLint and use eslint-config-ascribe 2016-06-03 13:26:32 +02:00
Brett Sun
2921c2adac Handle dependencies that should be split from the main app
Using ES6’s System.import allows webpack to split up the dependency
into its own chunk and load it as necessary. When this is not possible
(ie. when a script expects itself to be dropped into the html), follow
the previous strategy of copying the dependency folder into the build
folder.
2016-06-02 17:14:58 +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
1b52749f9d Generate index.html using webpack
Allows webpack to generate the js and css tags rather than hard coding
them in
2016-06-02 17:14:58 +02:00
Brett Sun
bd2895afa0 Add webpack config
Notable changes:

* Updated to babel 6
* Updated polyfills to only include core-js/es6 and core-js/stage/4
rather than entire babel/polyfill set
* Dev server with hot reloading replaces server.js in development
* Updated bootstrap loading to be separate from app’s stylesheets
* Cleaned up some of the font dependencies, removing the need for
templating their paths
2016-06-02 17:14:58 +02:00
Brett Sun
d2a17839ee Rename sauce tunnelling command to sauce-tunnel for less ambiguity 2016-06-02 17:14:58 +02:00
Brett Sun
a8ac9f2777 Move .env-template to .env_template for naming rules 2016-06-02 17:14:58 +02:00
Brett Sun
9b70488b7f Upgrade to babel6 2016-06-02 17:14:58 +02:00
Brett Sun
959c5402de Remove gulp and browserify dependencies 2016-06-02 17:14:58 +02:00
Brett Sun
a98ce448c9 Upgrade heroku node engine to 6.2 2016-06-02 17:14:58 +02:00
Brett Sun
d1b9c8f96c Re-order package.json 2016-06-02 17:14:58 +02:00
Brett Sun
4561034869 Clean gitignore 2016-06-02 17:14:58 +02:00