Skip to content

Commit 372c3c5

Browse files
kaichaosunjcouyang
authored andcommitted
Modify type n search related examples to use react-most package. (#16)
* modify type-n-search to use react-most package. * modify type-n-search-with-undo to use react-most package. * modify transducer-type-n-search to use react-most package. * have not migrate to google-closure-compiler-js, so restore to use compiler.jar
1 parent 7920fbe commit 372c3c5

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

examples/transducer-type-n-search/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939
"dependencies": {
4040
"classnames": "^2.2.0",
4141
"lodash": "^4.0.0",
42+
"most": "^1.1.1",
4243
"react": "^0.14.2",
4344
"react-dom": "^0.14.2",
45+
"react-most": "^0.6.6",
4446
"rest": "^1.3.1",
4547
"transducers-js": "^0.4.174"
4648
},

examples/transducer-type-n-search/src/.#app.jsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/transducer-type-n-search/src/app.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import {connect} from '../../../lib/react-most'
21
import {map, filter, comp, mapcat} from 'transducers-js'
3-
import Most from '../../../lib/react-most'
2+
import Most,{connect} from 'react-most'
43
import ReactDOM from 'react-dom'
54
import React from 'react'
6-
import most from 'most'
5+
import * as most from 'most'
76
import rest from 'rest'
87
const GITHUB_SEARCH_API = 'https://api.github.com/search/repositories?q=';
98
const TypeNsearch = (props)=>{

examples/type-n-search-with-undo/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@
4242
"dependencies": {
4343
"classnames": "^2.2.0",
4444
"lodash": "^4.0.0",
45+
"most": "^1.1.1",
4546
"react": "^0.14.2",
4647
"react-dom": "^0.14.2",
48+
"react-most": "^0.6.6",
4749
"rest": "^1.3.1"
4850
},
4951
"devDependencies": {

examples/type-n-search-with-undo/src/app.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import {connect} from '../../../lib/react-most'
2-
import Most from '../../../lib/react-most'
1+
import Most,{connect} from 'react-most'
32
import ReactDOM from 'react-dom'
43
import React from 'react'
54
import * as most from 'most'

examples/type-n-search/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939
"dependencies": {
4040
"classnames": "^2.2.0",
4141
"lodash": "^4.0.0",
42+
"most": "^1.1.1",
4243
"react": "^15.2.0",
4344
"react-dom": "^15.2.0",
45+
"react-most": "^0.6.6",
4446
"rest": "^1.3.1"
4547
},
4648
"devDependencies": {

examples/type-n-search/src/app.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import {connect} from '../../../lib/react-most'
2-
import Most from '../../../lib/react-most'
1+
import Most, {connect} from 'react-most'
32
import ReactDOM from 'react-dom'
43
import React from 'react'
5-
import most from 'most'
4+
import * as most from 'most'
65
import rest from 'rest'
76
const GITHUB_SEARCH_API = 'https://api.github.com/search/repositories?q=';
87
const TypeNsearch = (props)=>{

0 commit comments

Comments
 (0)