Skip to content

Commit a2c4ca7

Browse files
committed
ssr
1 parent 97b4bae commit a2c4ca7

File tree

6 files changed

+70
-20
lines changed

6 files changed

+70
-20
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@
116116
"json-loader": "^0.5.7",
117117
"node-sass": "^4.7.2",
118118
"nodemon": "^1.11.0",
119-
"postcss": "^6.0.17",
119+
"postcss": "^6.0.21",
120120
"postcss-cssnext": "^3.1.0",
121121
"postcss-focus": "^3.0.0",
122-
"postcss-import": "^11.0.0",
122+
"postcss-import": "^11.1.0",
123123
"postcss-load-config": "^1.2.0",
124-
"postcss-loader": "^2.1.0",
124+
"postcss-loader": "^2.1.3",
125125
"postcss-reporter": "^5.0.0",
126126
"precss": "^3.1.0",
127127
"react-addons-test-utils": "^15.6.2",
@@ -191,7 +191,8 @@
191191
"redux": "^3.7.2",
192192
"redux-thunk": "^2.2.0",
193193
"serialize-javascript": "^1.4.0",
194-
"smoothscroll-polyfill": "^0.4.0"
194+
"smoothscroll-polyfill": "^0.4.0",
195+
"styled-components": "^3.2.5"
195196
},
196197
"jest": {
197198
"setupTestFrameworkScriptFile": "<rootDir>/__TESTS__/setupTests.js",

src/app/components/navigation/NavigationBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22

33
// #region imports
4-
import React, { type SyntheticEvent } from 'react';
4+
import React from 'react';
55
import PropTypes from 'prop-types';
66
import Humburger from './humburger/Humburger';
77
import LeftNav from './leftNav/LeftNav';

src/app/components/navigation/rightNav/RightNav.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22

33
// #region imports
4-
import React, { SyntheticEvent } from 'react';
4+
import React from 'react';
55
import PropTypes from 'prop-types';
66
import RightNavButton from './rightNavButton/RightNavButton';
77
// #endregion
@@ -12,10 +12,7 @@ export type Props = {
1212
link: string,
1313
label: string,
1414
viewName: string,
15-
btnLink: {
16-
showWhenUserAuth: boolean,
17-
alwaysShows: boolean,
18-
},
15+
btnLink: { showWhenUserAuth: boolean, alwaysShows: boolean },
1916
}>,
2017
onRightNavButtonClick: (event: SyntheticEvent<>) => any,
2118
userIsAuthenticated: boolean,

src/app/hoc/withEnterAnimation/withEnterAnimation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import cx from 'classnames';
1313
// #endregion
1414

1515
function withEnterAnimation() {
16-
return BaseComponent => {
16+
return (BaseComponent: any) => {
1717
class WithEnterAnimation extends Component<any, any> {
1818
render() {
1919
const { ...passProps } = this.props;

src/server/SSR/src/lib/expressServer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// #region imports
44
const express = require('express');
55
const path = require('path');
6-
// const { promisify } = require('util');
76
const chalk = require('chalk');
87
const ssr = require('../middleware/ssr');
98
const { error404, error500 } = require('../middleware/errors');

yarn.lock

Lines changed: 61 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,6 +2034,13 @@ buffer@^4.3.0:
20342034
ieee754 "^1.1.4"
20352035
isarray "^1.0.0"
20362036

2037+
buffer@^5.0.3:
2038+
version "5.1.0"
2039+
resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.1.0.tgz#c913e43678c7cb7c8bd16afbcddb6c5505e8f9fe"
2040+
dependencies:
2041+
base64-js "^1.0.2"
2042+
ieee754 "^1.1.4"
2043+
20372044
builtin-modules@^1.0.0:
20382045
version "1.1.1"
20392046
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
@@ -2680,6 +2687,10 @@ css-color-function@^1.3.0:
26802687
debug "~0.7.4"
26812688
rgb "~0.1.0"
26822689

2690+
css-color-keywords@^1.0.0:
2691+
version "1.0.0"
2692+
resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"
2693+
26832694
css-color-names@0.0.4:
26842695
version "0.0.4"
26852696
resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0"
@@ -2724,6 +2735,14 @@ css-selector-tokenizer@^0.7.0:
27242735
fastparse "^1.1.1"
27252736
regexpu-core "^1.0.0"
27262737

2738+
css-to-react-native@^2.0.3:
2739+
version "2.1.2"
2740+
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.1.2.tgz#c06d628467ef961c85ec358a90f3c87469fb0095"
2741+
dependencies:
2742+
css-color-keywords "^1.0.0"
2743+
fbjs "^0.8.5"
2744+
postcss-value-parser "^3.3.0"
2745+
27272746
css-unit-converter@^1.1.1:
27282747
version "1.1.1"
27292748
resolved "https://registry.yarnpkg.com/css-unit-converter/-/css-unit-converter-1.1.1.tgz#d9b9281adcfd8ced935bdbaba83786897f64e996"
@@ -3803,7 +3822,7 @@ fb-watchman@^2.0.0:
38033822
dependencies:
38043823
bser "^2.0.0"
38053824

3806-
fbjs@^0.8.1, fbjs@^0.8.16:
3825+
fbjs@^0.8.1, fbjs@^0.8.16, fbjs@^0.8.5:
38073826
version "0.8.16"
38083827
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db"
38093828
dependencies:
@@ -4540,6 +4559,10 @@ hoist-non-react-statics@^2.2.1, hoist-non-react-statics@^2.3.0, hoist-non-react-
45404559
version "2.3.1"
45414560
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.3.1.tgz#343db84c6018c650778898240135a1420ee22ce0"
45424561

4562+
hoist-non-react-statics@^2.5.0:
4563+
version "2.5.0"
4564+
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40"
4565+
45434566
home-or-tmp@^2.0.0:
45444567
version "2.0.0"
45454568
resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8"
@@ -7322,9 +7345,9 @@ postcss-image-set-polyfill@^0.4:
73227345
postcss-media-query-parser "0.2.3"
73237346
postcss-value-parser "3.3.0"
73247347

7325-
postcss-import@^11.0.0:
7326-
version "11.0.0"
7327-
resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-11.0.0.tgz#a962e2df82d3bc5a6da6a386841747204f41ef5b"
7348+
postcss-import@^11.1.0:
7349+
version "11.1.0"
7350+
resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-11.1.0.tgz#55c9362c9192994ec68865d224419df1db2981f0"
73287351
dependencies:
73297352
postcss "^6.0.1"
73307353
postcss-value-parser "^3.2.3"
@@ -7361,9 +7384,9 @@ postcss-load-plugins@^2.3.0:
73617384
cosmiconfig "^2.1.1"
73627385
object-assign "^4.1.0"
73637386

7364-
postcss-loader@^2.1.0:
7365-
version "2.1.0"
7366-
resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-2.1.0.tgz#038c2d6d59753fef4667827fd3ae03f5dc5e6a7a"
7387+
postcss-loader@^2.1.3:
7388+
version "2.1.3"
7389+
resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-2.1.3.tgz#eb210da734e475a244f76ccd61f9860f5bb3ee09"
73677390
dependencies:
73687391
loader-utils "^1.1.0"
73697392
postcss "^6.0.0"
@@ -7691,7 +7714,7 @@ postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0
76917714
source-map "^0.5.6"
76927715
supports-color "^3.1.2"
76937716

7694-
postcss@^6.0, postcss@^6.0.11, postcss@^6.0.13, postcss@^6.0.14, postcss@^6.0.17, postcss@^6.0.9:
7717+
postcss@^6.0, postcss@^6.0.11, postcss@^6.0.13, postcss@^6.0.14, postcss@^6.0.9:
76957718
version "6.0.17"
76967719
resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.17.tgz#e259a051ca513f81e9afd0c21f7f82eda50c65c5"
76977720
dependencies:
@@ -7707,6 +7730,14 @@ postcss@^6.0.0, postcss@^6.0.1, postcss@^6.0.3, postcss@^6.0.5, postcss@^6.0.6,
77077730
source-map "^0.5.6"
77087731
supports-color "^4.2.0"
77097732

7733+
postcss@^6.0.21:
7734+
version "6.0.21"
7735+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.21.tgz#8265662694eddf9e9a5960db6da33c39e4cd069d"
7736+
dependencies:
7737+
chalk "^2.3.2"
7738+
source-map "^0.6.1"
7739+
supports-color "^5.3.0"
7740+
77107741
precss@^3.1.0:
77117742
version "3.1.0"
77127743
resolved "https://registry.yarnpkg.com/precss/-/precss-3.1.0.tgz#d9698550d2f763c52b800bfa1c6ba54fb023313c"
@@ -9376,6 +9407,28 @@ style-loader@^0.20.1:
93769407
loader-utils "^1.1.0"
93779408
schema-utils "^0.4.3"
93789409

9410+
styled-components@^3.2.5:
9411+
version "3.2.5"
9412+
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-3.2.5.tgz#b5d5d7d618ab240ff10602b5ca5886b8db3d0a0d"
9413+
dependencies:
9414+
buffer "^5.0.3"
9415+
css-to-react-native "^2.0.3"
9416+
fbjs "^0.8.16"
9417+
hoist-non-react-statics "^2.5.0"
9418+
is-plain-object "^2.0.1"
9419+
prop-types "^15.5.4"
9420+
stylis "^3.5.0"
9421+
stylis-rule-sheet "^0.0.10"
9422+
supports-color "^3.2.3"
9423+
9424+
stylis-rule-sheet@^0.0.10:
9425+
version "0.0.10"
9426+
resolved "https://registry.yarnpkg.com/stylis-rule-sheet/-/stylis-rule-sheet-0.0.10.tgz#44e64a2b076643f4b52e5ff71efc04d8c3c4a430"
9427+
9428+
stylis@^3.5.0:
9429+
version "3.5.0"
9430+
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.5.0.tgz#016fa239663d77f868fef5b67cf201c4b7c701e1"
9431+
93799432
supports-color@^0.2.0:
93809433
version "0.2.0"
93819434
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a"

0 commit comments

Comments
 (0)