|
| 1 | +let Reflux = require('reflux'); |
| 2 | + |
| 3 | +let LinksActions = Reflux.createActions([ |
| 4 | + 'loadData', |
| 5 | + 'loadDataSuccess' |
| 6 | +]); |
| 7 | + |
| 8 | +let data = [ |
| 9 | + { |
| 10 | + url: 'http://facebook.github.io/react/', |
| 11 | + title: 'React home page' |
| 12 | + }, |
| 13 | + { |
| 14 | + "url": "https://github.com/enaqx/awesome-react", |
| 15 | + "title": "A collection of awesome React libraries, resources and shiny things." |
| 16 | + }, |
| 17 | + { |
| 18 | + "url": "https://reactjsnews.com/", |
| 19 | + "title": "ReactJS News and tutorials from the community" |
| 20 | + }, |
| 21 | + { |
| 22 | + "url": "http://spoike.ghost.io/deconstructing-reactjss-flux/", |
| 23 | + "title": "Reflux - deconstructing ReactJS's Flux" |
| 24 | + }, |
| 25 | + { |
| 26 | + "url": "https://github.com/echenley/react-news", |
| 27 | + "title": "Hacker News clone written in React + Reflux + Firebase" |
| 28 | + }, |
| 29 | + { |
| 30 | + "url": "https://github.com/WRidder/react-spa", |
| 31 | + "title": "Community site SPA based on ReactJS + Reflux" |
| 32 | + }, |
| 33 | + { |
| 34 | + "url": "http://react-components.com", |
| 35 | + "title": "Searchable database of React components" |
| 36 | + }, |
| 37 | + { |
| 38 | + "url": "http://www.reactjsx.com/", |
| 39 | + "title": "Search reusable React components" |
| 40 | + }, |
| 41 | + { |
| 42 | + "url": "http://formatjs.io/react/", |
| 43 | + "title": "React mixin for internationalization" |
| 44 | + }, |
| 45 | + { |
| 46 | + "url": "http://isomorphic.net/", |
| 47 | + "title": "Isomorphic JavaScript - The future of web app development" |
| 48 | + }, |
| 49 | + { |
| 50 | + "url": "https://code.tutsplus.com/courses/getting-started-with-reactjs", |
| 51 | + "title": "Getting Started With React.js [screencasts]" |
| 52 | + }, |
| 53 | + { |
| 54 | + "url": "https://egghead.io/series/react-flux-architecture", |
| 55 | + "title": "React: Flux Architecture [screencasts]" |
| 56 | + }, |
| 57 | + { |
| 58 | + "url": "https://www.facebook.com/groups/228321510706889/", |
| 59 | + "title": "ReactJS (Facebook group)" |
| 60 | + }, |
| 61 | + { |
| 62 | + "url": "http://react-bootstrap.github.io/", |
| 63 | + "title": "Bootstrap 3 in React" |
| 64 | + }, |
| 65 | + { |
| 66 | + "url": "http://react-components.com/component/react-semantify", |
| 67 | + "title": "Semantic-UI in React" |
| 68 | + }, |
| 69 | + { |
| 70 | + "url": "https://github.com/sterpe/quantum-flux", |
| 71 | + "title": "https://github.com/sterpe/quantum-flux" |
| 72 | + }, |
| 73 | + { |
| 74 | + "url": "http://react.rocks/", |
| 75 | + "title": "Collection of examples and tutorials" |
| 76 | + } |
| 77 | +]; |
| 78 | + |
| 79 | +LinksActions.loadData.listen(function () { |
| 80 | + // here is the place for external communication with servers... |
| 81 | + LinksActions.loadDataSuccess.triggerAsync(data); |
| 82 | +}); |
| 83 | + |
| 84 | +export default LinksActions; |
0 commit comments