Skip to content

Commit b848ffa

Browse files
committed
fix: reverted files to the previous working commit - 15c746c
1 parent 2ff79fe commit b848ffa

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-setup",
33
"description": "A Universal React setup with i18n: Babel 6, Koa 2, React, React Router, React Transmit, React Bootstrap, React-intl, Mocha, Webpack HMR, PostCSS, ESLint.",
4-
"version": "2.3.1",
4+
"version": "2.3.2",
55
"author": "Duc Nguyen (https://github.com/ngduc)",
66
"license": "MIT",
77
"homepage": "https://github.com/ngduc/react-setup",
@@ -46,64 +46,64 @@
4646
"clean": "rm -rf ./dist && rm -rf ./static"
4747
},
4848
"dependencies": {
49-
"autoprefixer": "6.3.3",
5049
"babel": "6.5.2",
5150
"babel-cli": "^6.6.5",
5251
"babel-core": "6.7.2",
5352
"babel-eslint": "^5.0.0",
5453
"babel-loader": "6.2.4",
5554
"babel-plugin-react-intl": "2.1.1",
56-
"babel-polyfill": "6.7.2",
5755
"babel-preset-es2015": "6.6.0",
5856
"babel-preset-react": "6.5.0",
5957
"babel-preset-react-hmre": "1.1.1",
6058
"babel-preset-stage-0": "6.5.0",
61-
"bootstrap": "^3.3.6",
62-
"classnames": "^2.2.3",
63-
"concurrently": "2.0.0",
64-
"copy-webpack-plugin": "^1.1.1",
65-
"css-loader": "^0.23.1",
66-
"extract-text-webpack-plugin": "^1.0.1",
59+
"babel-polyfill": "6.7.2",
6760
"fetch-plus": "3.8.1",
6861
"fetch-plus-bearerauth": "3.5.0",
6962
"fetch-plus-json": "3.6.0",
70-
"forever": "0.15.1",
71-
"glob": "^7.0.3",
72-
"html-webpack-plugin": "^2.10.0",
7363
"intl": "^1.1.0",
7464
"intl-locales-supported": "^1.0.0",
75-
"intl-messageformat-parser": "^1.2.0",
7665
"isomorphic-fetch": "2.2.1",
77-
"json-loader": "0.5.4",
78-
"just-wait": "1.0.5",
7966
"koa": "^2.0.0-alpha.3",
8067
"koa-bodyparser": "^3.0",
8168
"koa-compose": "^3.0.0",
8269
"koa-compress": "^2.0.0",
8370
"koa-convert": "^1.2",
71+
"koa-generic-session": "^1.10",
8472
"koa-passport": "^2.0",
8573
"koa-router": "7.0.1",
8674
"koa-serve-static": "^1.0.0",
87-
"koa-session": "^3.3.1",
88-
"mkdirp": "^0.5.1",
8975
"mustache": "^2.2.1",
76+
"react": "0.14.7",
77+
"react-bootstrap": "^0.28.3",
78+
"react-dom": "0.14.7",
79+
"react-inline-css": "2.1.0",
80+
"react-intl": "2.0.0-rc-1",
81+
"react-router": "2.0.1",
82+
"react-transmit": "https://github.com/ngduc/react-transmit.git",
83+
"serialize-javascript": "^1.2.0",
84+
"forever": "0.15.1",
85+
"concurrently": "2.0.0",
86+
"autoprefixer": "6.3.3",
87+
"bootstrap": "^3.3.6",
88+
"classnames": "^2.2.3",
89+
"copy-webpack-plugin": "^1.1.1",
90+
"css-loader": "^0.23.1",
91+
"extract-text-webpack-plugin": "^1.0.1",
92+
"glob": "^7.0.3",
93+
"html-webpack-plugin": "^2.10.0",
94+
"intl-messageformat-parser": "^1.2.0",
95+
"json-loader": "0.5.4",
96+
"just-wait": "1.0.5",
97+
"mkdirp": "^0.5.1",
9098
"postcss-cssnext": "^2.4.0",
9199
"postcss-import": "8.0.2",
92100
"postcss-loader": "^0.8.2",
93101
"postcss-mixins": "4.0.1",
94102
"postcss-modules-values": "1.1.1",
95103
"postcss-nested": "1.0.0",
96104
"postcss-simple-vars": "1.2.0",
97-
"react": "0.14.7",
98105
"react-addons-css-transition-group": "^0.14.7",
99106
"react-addons-test-utils": "^0.14.7",
100-
"react-bootstrap": "^0.28.3",
101-
"react-dom": "0.14.7",
102-
"react-inline-css": "2.1.0",
103-
"react-intl": "2.0.0-rc-1",
104-
"react-router": "2.0.1",
105-
"react-transmit": "https://github.com/ngduc/react-transmit.git",
106-
"serialize-javascript": "^1.2.0",
107107
"style-loader": "^0.13.0",
108108
"webpack": "1.12.14",
109109
"webpack-node-externals": "1.0.0"

src/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Router from 'koa-router'
66
import serveStatic from 'koa-serve-static'
77
import koaConvert from 'koa-convert'
88
import koaCompress from 'koa-compress'
9-
import koaSession from 'koa-session'
9+
//import koaSession from 'koa-session'
1010
import zlib from 'zlib'
1111

1212
import routesContainer from 'containers/routes'
@@ -23,7 +23,7 @@ try {
2323
let routes = routesContainer
2424

2525
app.use(koaCompress({ flush: zlib.Z_SYNC_FLUSH }))
26-
app.use(koaConvert(koaSession(app)))
26+
//app.use(koaConvert(koaSession(app)))
2727

2828
app.use(apiRouter())
2929

src/server/renderAppRouter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export default function renderAppRouter () {
2424
return next()
2525
}
2626

27-
const locale = ctx.query.locale || ctx.session.locale || 'en-US'
28-
ctx.session.locale = locale
27+
const locale = ctx.query.locale || 'en-US'
28+
// ctx.session.locale = locale
2929
i18nData = i18n.getLocaleMessages(locale)
3030
const i18nDataString = JSON.stringify(i18nData)
3131

0 commit comments

Comments
 (0)