This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import SubmissionsList from './SubmissionsList'; | |
import SubmissionsListPage from './SubmissionsListPage'; | |
import { connect } from 'react-redux'; | |
import { fetchSubmissionsList } from '../actions_creators/SubmissionsListActionsCreator'; | |
class PendingSubmissionsPage extends SubmissionsListPage { | |
componentDidMount() { | |
this.props.dispatch(fetchSubmissionsList('pending')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
import React from 'react-native'; | |
import { connect } from 'react-redux/native'; | |
import { fetchSubmissionsList } from '../action_creators/SubmissionsActionCreator'; | |
import { Actions } from 'react-native-router-flux'; | |
import ActionTypes from '../constants/ActionTypes'; | |
import styles from '../styles/application'; | |
let { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
import React from 'react-native'; | |
import { Router, Route } from 'react-native-router-flux'; | |
import styles from './styles/navigation'; | |
import SubmissionsContainer from './components/SubmissionsContainer'; | |
class Routes extends React.Component { | |
render() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import { createStore, combineReducers, compose, applyMiddleware } from 'redux'; | |
import thunk from 'redux-thunk'; | |
import { routeReducer } from 'redux-simple-router'; | |
import SubmissionsReducer from './reducers/SubmissionsReducer'; | |
const reducers = { | |
submissions: SubmissionsReducer, | |
routing: routeReducer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React from 'react-native'; | |
import { Provider } from 'react-redux/native'; | |
import Routes from '../Routes' | |
import store from '../Store' | |
class App extends React.Component { | |
render() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { | |
AppRegistry, | |
Component, | |
StyleSheet, | |
Text, | |
View | |
} from 'react-native'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "OcenyMobile", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"fixBabel": "find node_modules -type f -name .babelrc | grep -v /react-native/ | xargs rm", | |
"clean": "npm run fixBabel", | |
"postinstall": "npm run clean", | |
"start": "node node_modules/react-native/local-cli/cli.js start" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"presets": ["es2015", "stage-0", "react"], | |
"plugins": ["syntax-jsx"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Accept:application/json, text/plain, */* | |
Accept-Encoding:gzip, deflate | |
Accept-Language:en-US,en;q=0.8,pl;q=0.6 | |
Connection:keep-alive | |
Content-Length:52 | |
Content-Type:application/json;charset=UTF-8 | |
Host:localhost:3001 | |
Origin:http://localhost:3000 | |
Referer:http://localhost:3000/submissions/new | |
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './game' | |
describe "map" do | |
subject { map(array, method) } | |
let(:method) { Proc.new { |a| a*2 } } | |
context "empty array" do | |
let(:array) { [] } | |
it { expect(subject).to eq([]) } |