Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 5f481d3

Browse files
committed
rm extra console.log
1 parent 3e13f59 commit 5f481d3

File tree

13 files changed

+5
-28
lines changed

13 files changed

+5
-28
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ bin
77
lang/.messages/
88
coverage/
99
.coveralls.yml
10+
yarn-error.log

containers/Body/Theme.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ const Desc = styled.div`
1818
`
1919

2020
const Theme = ({ curTheme }) => {
21-
console.log('curTheme', curTheme)
22-
// console.log('curTheme === name ? ', curTheme === name)
23-
2421
return (
2522
<Center>
2623
<HorizontalCenter>

containers/Body/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ const debug = makeDebugger('C:Body')
2424

2525
const IntroPage = props => {
2626
const { route } = props
27-
// console.log('route: ', route)
28-
// console.log('props.body.theme --> : ', props.body.themeName)
2927

3028
switch (route.query.name) {
3129
case 'index':
@@ -56,7 +54,6 @@ class ContentContainer extends React.Component {
5654
render() {
5755
// debug('cur route:', this.props.route)
5856

59-
// console.log('>> props.body.theme --> : ', this.props.body.themeName)
6057
return (
6158
<Body>
6259
<IntroPage {...this.props} key={this.props.body.themeName} />

containers/Body/logic.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export function changeTheme(name) {
1212

1313
export function changeLocale(lang) {
1414
// debug('changeLocale', lang)
15-
// console.log('store.isLocaleExist: ', store.isLocaleExist(lang))
1615

1716
if (!store.isLocaleExist(lang)) {
1817
debug('process.env.NODE_ENV:', process.env.NODE_ENV)

containers/MultiLanguage/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ const selector = ({ store }) => ({
1414
})
1515

1616
const IntlObserver = observer(selector, ({ children, locale, messages }) => {
17-
console.log('observer locale: ', locale)
18-
console.log('observer messages: ', messages)
19-
2017
return (
2118
// key is important, see https://github.com/yahoo/react-intl/issues/234
2219
<IntlProvider key={locale} locale={locale} messages={messages}>

containers/UniversePanel/logic.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const repoNotFound = R.allPass([
3838
])
3939

4040
export function search(e) {
41-
// console.log('search: ', val)
4241
const inputValue = e.target.value
4342
// store.markState('inputValue', value)
4443
store.markState({

docs/ideas.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
## TODO
2222

23+
- [ ] [answer](https://github.com/mobxjs/mobx-state-tree/issues/27)
2324
- [ ] phoenix [新文档地址](https://github.com/phoenixframework/phoenix/tree/master/guides/docs)
2425
- [ ] 使用 Github Rest/GraphQl api 摸索数据层方案
2526
- [ ] Search panel && login panel ----> 或许应该叫 UnverisalPanel ? --> 可以呼出
@@ -34,7 +35,6 @@
3435
- [ ] [react-loadable](https://github.com/thejameskyle/react-loadable)
3536
- [ ] docs introduction / file-structure / theme / debug / generator / testing ... see [this](https://github.com/react-boilerplate/react-boilerplate/tree/master/docs)
3637
- [ ] launch first version with changeLog staff
37-
- [ ] and answer [this issue](https://github.com/samuelalvin/react-mobx-mobxstatetree)
3838
- [ ] [防嵌套网页](https://segmentfault.com/a/1190000004502619)
3939
- [ ] [devdocs 的离线缓存怎么做的?](https://devdocs.io/) 弄一个呗
4040
- [x] *test Preact in production*
@@ -106,6 +106,7 @@
106106
## Resources
107107

108108
### Ramada
109+
[invoker 的例子](https://stackoverflow.com/questions/28896800/how-can-i-do-this-better-with-ramda-js)
109110
[Ramda 中文网](http://ramda.cn/) (简介部分有很多文章)
110111
[Ramda 函数库参考教程 -- 阮一峰](http://www.ruanyifeng.com/blog/2017/03/ramda.html)
111112
[Pointfree 编程风格指南](http://www.ruanyifeng.com/blog/2017/03/pointfree.html)

lang/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"containers.Body.home.desc": "maybe the best react boilerplate you can find",
2+
"containers.Body.home.desc": "maybe the best react boilerplate you can find on earth",
33
"containers.Body.feature.title": "Features",
44
"containers.Body.feature.1": "Server-Side-Render out of the box, power by ",
55
"containers.Body.feature.2": "State management and front-end ORM layer powered by ",

pages/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ export default class Index extends React.Component {
1313
/* eslint-disable no-underscore-dangle */
1414
/* eslint-disable no-undef */
1515
const { locale, messages } = req || window.__NEXT_DATA__.props
16-
// console.log('the fuck messages: ', messages)
1716
const langSetup = {}
1817
langSetup[locale] = messages
19-
// console.log('langSetup: ', langSetup)
2018
const store = initAppStore(isServer, langSetup)
2119
/* eslint-enable no-undef */
2220

23-
console.log('getInitialProps locale: ', locale)
24-
console.log('getInitialProps messages: ', messages)
2521
return { isServer, version: store.version, messages, locale, langSetup }
2622
}
2723

@@ -38,7 +34,6 @@ export default class Index extends React.Component {
3834
const globalStatus = {
3935
route: this.props.url,
4036
}
41-
console.log('this.store: ', this.store.locale)
4237

4338
return (
4439
<Provider store={this.store}>

server.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const getMessages = locale => {
3737

3838
try {
3939
langData = require(`./lang/${locale}.json`)
40-
// console.log('langData: ', langData)
4140
messageCache.set(locale, langData)
4241
} catch (e) {
4342
return { error: 'this lang is not supported' }
@@ -59,7 +58,6 @@ app.prepare().then(() => {
5958
const locale = accept.language(supportLanguages) // 'zh'
6059

6160
if (localeMatch) {
62-
// console.log('localeMatch: ', localeMatch)
6361
res.setHeader('Content-Type', 'application/json;charset=utf-8')
6462
return res.end(JSON.stringify(getMessages(localeMatch.lang)))
6563
}
@@ -68,7 +66,6 @@ app.prepare().then(() => {
6866
req.messages = getMessages(locale)
6967

7068
if (homeMatch) {
71-
// console.log('getMessages(locale) : ', getMessages(locale))
7269
return app.render(req, res, '/', homeMatch)
7370
}
7471
// now index page go this way

0 commit comments

Comments
 (0)