This file contains hidden or 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
| export const validateEmailAndPassword = (validate, fields) => validate(fields) | |
| .prop('email') | |
| .required() | |
| .email() | |
| .prop('password') | |
| .required() | |
| .simplePassword() | |
| .promise; |
This file contains hidden or 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
| // React from este creates stateless component with immutable props check. | |
| import React, { title, fields } from 'este'; | |
| let HelloEste = ({ fields }) => | |
| <div> | |
| Hello Este! Some text: {fields.text.value} | |
| <input {...fields.text} /> | |
| </div>; | |
| HelloEste = title(HelloEste, 'Hello Este!'); |
This file contains hidden or 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
| // Bootstrap environment | |
| require('react-native-browser-polyfill'); | |
| // global.Intl Polyfill | |
| // Server polyfillLocales doesn't work anymore, because packager error: | |
| // Encountered an error while persisting cache: | |
| // > Error: TimeoutError: transforming /Users/este/dev/este/node_modules | |
| // /intl/locale-data/complete.js took longer than 301 seconds. | |
| // require('../server/intl/polyfillLocales')( | |
| // self, |
This file contains hidden or 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
| const HelloMessage = props => | |
| <div>Hello {props.name}</div>; | |
| { | |
| let isMounted = false; | |
| const focusAfterAfterOneSec = el => { | |
| setTimeout(() => { | |
| if (!isMounted) return; | |
| el.focus(); |
This file contains hidden or 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 Component from 'react-pure-render/component'; | |
| import React, { PropTypes } from 'react'; | |
| import ValidationError from '../../common/lib/validation/ValidationError'; | |
| import { FormattedMessage, defineMessages } from 'react-intl'; | |
| const messages = defineMessages({ | |
| required: { | |
| defaultMessage: `{prop, select, | |
| description {Please enter a description.} | |
| email {Please enter an email address.} |
This file contains hidden or 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
| MonikaMoncekova@seznam.cz | |
| ales.randl@volny.cz | |
| amastalir@slezska.cz | |
| asistent.SPCR@seznam.cz | |
| asistent.jermar@seznam.cz | |
| asistent@cabrnochova.eu | |
| asistent@jstraka.cz | |
| asistentka@eliskawagnerova.cz | |
| asistentkadt@seznam.cz | |
| bajert@senat.cz |
This file contains hidden or 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
| export default class Dispatcher { | |
| constructor(store) { | |
| this.store = store; | |
| this.state = store(); | |
| } | |
| dispatch(action) { | |
| this.state = this.store(this.state, action); | |
| this.onChange && this.onChange(this.state); | |
| } | |
| load(state) { |
This file contains hidden or 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
| react: 577.1 KB (25.5%) | |
| <self>: 577.1 KB (100%) | |
| core-js: 250.3 KB (11.0%) | |
| <self>: 250.3 KB (100%) | |
| bluebird: 168.6 KB (7.44%) | |
| <self>: 168.6 KB (100%) | |
| immutable: 139.14 KB (6.14%) | |
| <self>: 139.14 KB (100%) | |
| firebase: 137.95 KB (6.09%) | |
| <self>: 137.95 KB (100%) |
This file contains hidden or 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
| firebase | |
| .child('vetos-votes/yes/vetos/EJixtowRe') | |
| .orderByChild('createdAt') | |
| .once('value', snapshot => { | |
| snapshot.forEach(itemSnapshot => { | |
| // forEach does not follow .orderByChild('createdAt') | |
| console.log(itemSnapshot.val()) | |
| }); | |
| }) | |
This file contains hidden or 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, { Component, PropTypes } from 'react'; | |
| export default class Html extends Component { | |
| static propTypes = { | |
| appCssFilename: PropTypes.string, | |
| bodyHtml: PropTypes.string.isRequired, | |
| googleAnalyticsId: PropTypes.string.isRequired, | |
| helmet: PropTypes.object.isRequired, | |
| isProduction: PropTypes.bool.isRequired |