path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/svg-icons/image/brightness-7.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness7 = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69...
examples/custom-server-micro/pages/index.js
nelak/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
src/mention/__tests__/fixtures/initializeEditor.js
catalinmiron/react-tinymce-mention
import 'babel/polyfill'; import React from 'react'; import TinyMCE from 'react-tinymce'; import Mention from '../../Mention'; import simpleDataSource from './simple'; const plugins = [ 'autolink', 'autoresize', 'code', 'image', 'link', 'media', 'mention', 'tabfocus' ]; export default function initiali...
src/components/soporte/chat_servidor.js
bombe-software/demos
//NPM packages import React, { Component } from 'react'; import { connect } from "react-redux"; //Actions import { fetchConversaciones } from "../../actions"; //Components import Chat from "./chat"; /** * @class ChatServidor * @author Vicroni <drasa_tec@hotmail.com> * @author Someone <none> * @version 1.0 <1/12/17>...
message/src/MessageBox.js
zhufengnodejs/201701node
import React, { Component } from 'react'; import 'bootstrap/dist/css/bootstrap.css' class MessageBox extends Component { render() { return ( <div className="panel panel-default"> <div className="panel-heading"> <h3 className="text-center">珠峰留言板</h3> </div> <div className="p...
src/scripts/views/DataView.js
recordbleach/recordBleach_front_end
import React from 'react' import Header from './header' import Footer from './footer' import ACTIONS from '../actions' import $ from 'jquery' const DataInputView = React.createClass({ render: function() { return( <div className = 'dataInputView'> <Header/> <Peti...
src/svg-icons/action/supervisor-account.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSupervisorAccount = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 ...
src/components/panels/index.js
mr47/react-redux-kit
/** * Created by mr470 on 02.04.2016. */ "use strict"; import React, { Component } from 'react'; class LeftPanel extends Component{ render() { const { children } = this.props; return ( <div className="column column-25"> {children} </div> ); }...
src/pages/chou-chou.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Chou Chou' /> )
client/src/screens/new-group.screen.js
srtucker22/chatty
import { _ } from 'lodash'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ActivityIndicator, Button, Image, StyleSheet, Text, View, } from 'react-native'; import { graphql, compose } from 'react-apollo'; import AlphabetListView from 'react-native-alpha-listview'; imp...
src/containers/ContactList.js
jp7internet/react-apz
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link, withRouter } from 'react-router-dom'; import Button from '../components/Button'; import { contactDelete, contactFetch } from '../actions'; class ContactList extends Component { componentWillMount() { this.props.onLoad...
src/svg-icons/content/weekend.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentWeekend = (props) => ( <SvgIcon {...props}> <path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51...
docs/app/Examples/collections/Message/Variations/MessageExampleFloating.js
shengnian/shengnian-ui-react
import React from 'react' import { Message } from 'shengnian-ui-react' const MessageExampleFloating = () => ( <Message floating> Way to go! </Message> ) export default MessageExampleFloating
react/features/toolbox/components/Toolbox.web.js
KalinduDN/kalindudn.github.io
/* @flow */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import UIEvents from '../../../../service/UI/UIEvents'; import { setDefaultToolboxButtons, setToolboxAlwaysVisible } from '../actions'; import { abstractMapStateToProps, showCustomToolbarPopup } from '../func...
src/_store/__tests__/AppConfigProvider-test.js
qingweibinary/binary-next-gen
import React from 'react'; import configureStore from 'redux-mock-store'; import { expect } from 'chai'; import { fromJS } from 'immutable'; import { shallow, render } from 'enzyme'; import AppConfigProvider from '../AppConfigProvider'; describe('<AppConfigProvider />', () => { const ChildComponent = () => <div>He...
src/svg-icons/action/play-for-work.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPlayForWork = (props) => ( <SvgIcon {...props}> <path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/> </SvgIcon> ); ActionPlayForWork ...
client/src/components/Dashboard.js
jobn/iceman
// @flow import React, { Component } from 'react'; export default class Dashboard extends Component<*> { render() { return ( <h1>Dashboard</h1> ); } }
plugins/subschema-plugin-contentwrapper/src/index.js
jspears/subschema-devel
import React, { Component } from 'react'; import PropTypes from 'subschema-prop-types'; import { FREEZE_OBJ } from 'subschema-utils'; function strip(obj) { return !obj ? FREEZE_OBJ : Object.keys(obj).reduce(function (ret, key) { if (key == 'dataType' || key == 'fieldAttrs' || obj[key] ...
examples/docs/src/Containers/GettingStarted.js
react-material-design/react-material-design
import React from 'react'; const GettingStarted = () => ( <div> <h1>Getting Started</h1> <p>More to come...</p> <p>To install run: yarn add react-material-design</p> <p>Once installed import the react-material-design components you'll be usings like so: import {'{'} FAB {'}'} from '...
src/decorators/withViewport.js
magnusbae/arcadian-rutabaga
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/admin/components/Profesor.js
zeljkoX/e-learning
import React from 'react'; import {State, History} from 'react-router'; import { Menu, Mixins, Styles, RaisedButton, TextField, SelectField } from 'material-ui'; import Content from '../../components/layout/Content'; import ContentHeader from '../../components/layout/ContentHeader'; class Profesor extends React.Compo...
src/slides/stream-of-events.js
philpl/talk-observe-the-future
import React from 'react' import { Appear, Image, Text, S, Slide } from 'spectacle' import Marbles from '../components/marbles' export default ( <Slide transition={[ 'slide' ]}> <Marbles/> </Slide> )
src/components/ScoreGraph.js
tgevaert/react-redux-hearts
import React from 'react'; import { connect } from 'react-redux'; import { getPlayers, getScoreTotals } from '../reducers'; const GraphRowLabel = ({label}) => (<div className={"graph label"}>{label}</div>); const GraphLine = ({size}) => { const colors = ["#388e3c", "#ffd600", "#e65100", "#d50000", "#d50000"]; con...
yycomponent/breadcrumb/Breadcrumb.js
77ircloud/yycomponent
import React from 'react'; import { Breadcrumb as _Breadcrumb } from 'antd'; class Breadcrumb extends React.Component{ constructor(props){ super(props); } render(){ return (<_Breadcrumb {...this.props}/>); } } export default Breadcrumb
test/integration/IconButton/IconButton.spec.js
matthewoates/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import IconButton from 'src/IconButton'; import FontIcon from 'src/FontIcon'; import getMuiTheme from 'src/styles/getMuiTheme'; describe('<IconButton />', () => { const muiTheme = getMuiTheme(); const sha...
imports/ui/components/footer/Footer/Footer.js
pletcher/cltk_frontend
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import IconButton from 'material-ui/IconButton'; import PropTypes from 'prop-types'; import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; export default class Footer ex...
app/javascript/mastodon/components/__tests__/avatar_overlay-test.js
rainyday/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import AvatarOverlay from '../avatar_overlay'; describe('<AvatarOverlay', () => { const account = fromJS({ username: 'alice', acct: 'alice', display_name: 'Alice', avatar: '/animated/alice.gif',...
modules/plugins/italic/ItalicButton.js
devrieda/arc-reactor
import React from 'react'; import MenuButton from '../../components/MenuButton'; import ToggleMarkup from '../../helpers/Manipulation/ToggleMarkup'; import SelectedContent from '../../helpers/SelectedContent'; const ItalicButton = React.createClass({ statics: { getName: () => "italic", isVisible: (content, s...
ux/editor/TextEditorView.js
rameshvk/j0
'use strict'; require('./TextEditorView.less'); import React from 'react'; import ReactDOM from 'react-dom'; import BaseComponent from '../BaseComponent'; import Caret from './Caret'; import InvisibleInput from './InvisibleInput'; import TextSelectionView from './TextSelectionView'; import getTextNodeInfoForPoint fro...
web/src/presentation/get-retro-properties.js
mgwalker/retros
import React from 'react'; import CategoryTime from './set-retro-category-time'; function displayTime(minutes) { const wholeMinutes = Math.floor(minutes); const seconds = Math.round((minutes - wholeMinutes) * 60); return `${wholeMinutes} minutes${seconds > 0 ? ` and ${seconds} seconds` : ''}`; } function GetRet...
js/ClientApp.js
JoeMarion/react-netflix
import React from 'react' import { render } from 'react-dom' import '../public/style.css' const App = React.createClass({ render () { return ( <div className='app'> <div className='landing'> <h1>svideo</h1> <input type='text' placeholder='Search' /> <a>or Browse All</a...
src/SvgIcon/SvgIcon.spec.js
ichiohta/material-ui
/* eslint-env mocha */ import React from 'react'; import {spy} from 'sinon'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import SvgIcon from './SvgIcon'; import getMuiTheme from '../styles/getMuiTheme'; describe('<SvgIcon />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (nod...
node-siebel-rest/siebel-claims-native/screens/AddClaim.js
Pravici/node-siebel
import React, { Component } from 'react'; import { StyleSheet, View, TouchableHighlight, Text, Image, ActivityIndicator, Button, } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import { MaterialIcons } from '@expo/vector-icons'; import { callPostApi } from '../utils/rest'...
src/containers/Contact/Contact.js
Anshul-HL/blitz-windermere
import React, { Component } from 'react'; import { groupBy } from 'utils/extenders'; const addressList = [ { id: '1', title: 'Our Corporate Office', address: [ '3th floor, Bikaner Pinnacle,', 'No.1 Rhenius street,', 'Off Richmond Road,', 'Bangalore - 560025' ], city: 'Bang...
client/app/partials/app-nav-bar/index.js
nebulae-io/coteries
import React, { Component } from 'react'; import { IndexLink, Link } from 'react-router'; import cns from 'classnames'; import Flex from 'components/flex'; import styles from './style.scss'; function mapStateToProps(state) { return {}; } function mapDispatchToProps(dispatch) { return { todoActions: bindActi...
node_modules/react-bootstrap/es/Alert.js
jkahrs595/website
import _Object$values from 'babel-runtime/core-js/object/values'; import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
client/src/Title.js
mit-teaching-systems-lab/swipe-right-for-cs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './Title.css'; import logoSrc from './img/swipe.gif'; import {Interactions} from './shared/data.js'; import Swipeable from './components/Swipeable.js'; import Delay from './components/Delay.js'; import SwipeCue from './components/Swipe...
docs/src/app/components/pages/components/DatePicker/ExampleInline.js
spiermar/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; /** * Inline Date Pickers are displayed below the input, rather than as a modal dialog. */ const DatePickerExampleInline = () => ( <div> <DatePicker hintText="Portrait Inline Dialog" container="inline" /> <DatePicker hintText="Land...
bayty/src/components/LoginForm.js
Asmaklf/bayty
import React, { Component } from 'react'; import { Text } from 'react-native'; import { connect } from 'react-redux'; import { emailChanged, passwordChanged, loginUser } from '../actions'; import { Card, CardSection, Button, Input, Spinner } from './common'; class LoginForm extends Component { onEmailChange(text) { ...
docs/src/Anchor.js
pandoraui/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className="anchor"> <span className="anchor-ic...
app/components/dashboard/home/CustomTagCloud.js
mchlltt/mementoes
// Import dependencies and components. import React from 'react'; import {TagCloud} from 'react-tagcloud'; // Create and export component class. // I created this custom component because the default TagCloud refreshed anytime the page state changed. export default class CustomTagCloud extends TagCloud { construct...
client/app/bundles/HelloWorld/components/general_components/table/sortable_table/table_sorting_mixin.js
ddmck/Empirical-Core
// This React mixin handles client-side sorting. // Use it ljke so: // Call defineSorting() in componentDidMount() of your component. // Call sortResults() when a sort changes (use as a handler function) // Call applySorting() on your data before displaying it in render(). import React from 'react' import _ from 'under...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
fengchenlianlian/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const GroupProfileMembers = React.createClass(...
src/components/rows/input/AnnualLeave.js
hikurangi/day-rate-calculator
import React from 'react'; import { TableRow, TableRowColumn } from '@material-ui/core/Table'; import TextField from '@material-ui/core/TextField'; const AnnualLeave = ({ handleChange }) => { return ( <TableRow> <TableRowColumn> <h3>Your total number of annual leave days</h3> </TableRowColum...
src/index.js
datchley/react-scale-text
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import warn from 'warning'; import { generate as shortId } from 'shortid'; import shallowEqual from './shallow-equal'; import getFillSize from './get-fillsize'; import { getStyle, css } from './dom-utils'; class ScaleText extends Component {...
examples/src/components/CustomRender.js
pedroseac/react-select
import React from 'react'; import Select from 'react-select'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setState({ value }); console.log('Support level sel...
packages/v4/src/content/extensions/extensions-data-list.js
patternfly/patternfly-org
import React from 'react'; import { DataList, DataListItem, DataListItemRow, DataListItemCells, DataListCell, Title } from '@patternfly/react-core'; export const ExtensionsDataList = (props) => ( <DataList aria-label="Community extensions"> {props.data.map(item => { cons...
www/components/add-poo.js
capaj/postuj-hovna
import React from 'react' import ImgUploader from './img-uploader' import GoogleMap from './google-map' import {photo} from '../services/moonridge' import backend from '../services/moonridge' export default class AddPoo extends React.Component { constructor(...props) { super(...props) this.state = {} } ...
readable/src/containers/PostDetail.js
custertian/readable
import React from 'react' import {Link} from 'react-router-dom' import {connect} from 'react-redux' import { Button, Card, Layout, Menu, Breadcrumb, Input, Tree } from 'antd' const {TextArea} = Input; const {Header, Content, Footer} = Layout const TreeNode = Tree.TreeNode class PostDetail extends React....
src/SparklinesBars.js
konsumer/react-sparklines
import React from 'react'; export default class SparklinesBars extends React.Component { static propTypes = { style: React.PropTypes.object }; static defaultProps = { style: { fill: 'slategray' } }; render() { const { points, width, height, margin, style } = this.props; ...
app/javascript/mastodon/features/compose/components/upload_button.js
cybrespace/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
src/components/account/recover-password-page/index.js
datea/datea-webapp-react
import React from 'react'; import Button from '@material-ui/core/Button'; import {Tr, translatable} from '../../../i18n'; import {observer, inject} from 'mobx-react'; import AccountFormContainer from '../account-form-container'; import TextField from '@material-ui/core/TextField'; import DIcon from '../../../icons'; im...
packages/bonde-admin/src/components/data-grid/hocs/col-hoc.js
ourcities/rebu-client
import React from 'react' import classnames from 'classnames' export default (WrappedComponent) => { return class PP extends React.Component { render () { const colProps = { className: classnames('flex-auto', this.props.className) } return ( <WrappedComponent {...this.props} {....
app/containers/EditUserProfile.js
alexko13/block-and-frame
import React from 'react'; import userHelpers from '../utils/userHelpers'; import authHelpers from '../utils/authHelpers'; import MenuBar from '../components/MenuBar'; import UserProfileForm from '../components/users/UserProfileForm'; import ImageUpload from '../components/users/Uploader'; import EditSuccess from...
src/components/App.js
jozanza/pixels
import React from 'react'; import { compose, mapProps, withHandlers, withState } from 'recompose'; import styled, { ThemeProvider } from 'styled-components'; import * as actionCreators from '../actionCreators'; import ArtboardSection from './ArtboardSection'; import ToolbarSection from './ToolbarSection'; import MenuWr...
packages/fyndiq-ui-test/stories/component-modal.js
fyndiq/fyndiq-ui
import React from 'react' import { storiesOf, action } from '@storybook/react' import Button from 'fyndiq-component-button' import Modal, { ModalButton, confirm, Confirm, ConfirmWrapper, } from 'fyndiq-component-modal' import { Warning } from 'fyndiq-icons' import './component-modal.css' storiesOf('Modal', mo...
packages/material-ui-icons/src/SettingsInputAntenna.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SettingsInputAntenna = props => <SvgIcon {...props}> <path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 10.6...
src/NodeInputListItem.js
falcon-client/hawk
import React from 'react'; export default class NodeInputListItem extends React.Component { constructor(props) { super(props); this.state = { hover: false }; } onMouseUp(e) { e.stopPropagation(); e.preventDefault(); this.props.onMouseUp(this.props.index); } onMouseOver() { ...
src/containers/Asians/TabControls/BreakCategorySettings/BreakCategoryRounds/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import CreateRounds from './CreateRounds' import ViewRounds from './ViewRounds' export default connect(mapStateToProps)(({ breakCategory, breakRounds, disabled }) => { const filterBreakRounds = breakRoundToMatch => breakRoundToMatch.breakCategory...
stories/list/index.js
shulie/dh-component
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import withReadme from 'storybook-readme/with-readme'; import { List, Menu, Dropdown, Icon, Avatar} from '../../src'; import listReadme from './list.md'; const addWithInfoOptions = { inline: true, propTables: false }; const menu ...
frontend/src/components/eois/modals/withdrawApplication/withdrawApplicationForm.js
unicef/un-partner-portal
import React from 'react'; import { reduxForm } from 'redux-form'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import TextFieldForm from '../../../forms/textFieldForm'; const messages = { label: 'Justification', placeholder: 'Provide justification of retraction', }; const ...
__tests__/components/Collapsible-test.js
nickjvm/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Collapsible from '../../src/js/components/Collapsible'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Collaps...
packages/components/src/Actions/ActionFile/File.stories.js
Talend/ui
import React from 'react'; import { action } from '@storybook/addon-actions'; import Action from '../Action'; const myAction = { label: 'Click me', 'data-feature': 'actionfile', icon: 'talend-upload', onChange: action('You changed me'), displayMode: 'file', }; export default { title: 'Buttons/File', decorator...
client/accept-invite/controller.js
ironmanLee/my_calypso
/** * External Dependencies */ import React from 'react'; /** * Internal Dependencies */ import i18n from 'lib/mixins/i18n'; import titleActions from 'lib/screen-title/actions'; import Main from './main'; export default { acceptInvite( context ) { titleActions.setTitle( i18n.translate( 'Accept Invite', { textO...
src/svg-icons/action/settings-cell.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
test/custom-control-component-spec.js
maludwig/react-redux-form
/* eslint react/no-multi-comp:0 react/jsx-no-bind:0 */ import { assert } from 'chai'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TestUtils from 'react-dom/test-utils'; import { Provider } from 'react-redux'; import { modelReducer, formReducer, Control } from '../src'; import {...
gatsby-strapi-tutorial/cms/admin/admin/src/containers/HomePage/BlockLink.js
strapi/strapi-examples
/** * * BlockLink */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import cn from 'classnames'; import PropTypes from 'prop-types'; import styles from './styles.scss'; function BlockLink({ content, isDocumentation, link, title }) { return ( <a className={cn( styles....
src/components/Counter/Counter.js
murrayjbrown/react-redux-rxjs-stampit-babylon-universal
import React from 'react'; import classes from './Counter.scss'; export const Counter = (props) => ( <div> <h2 className={classes.counterContainer}> Counter: {' '} <span className={classes['counter--green']}> {props.counter} </span> </h2> <button className="btn btn-default...
src/components/Box/Tools.js
falmar/react-adm-lte
import React from 'react' import PropTypes from 'prop-types' const Body = ({children}) => { return ( <div className='box-tools'> {children} </div> ) } Body.propTypes = { children: PropTypes.node } export default Body
src/components/Newsletter/index.js
fathomlondon/fathomlondon.github.io
import React from 'react'; export function Newsletter() { return ( <section className="newsletter bg-black white pt3 pt5-m"> <div id="mc_embed_signup" className="grid"> <div className="grid-item w-10 push-1"> <h3 className="f2">Our newsletter</h3> </div> <form className="grid-item w-10 push...
src/components/common/Image.js
jaggerwang/zqc-app-demo
/** * 在球场 * zaiqiuchang.com */ import React from 'react' import {StyleSheet, View, Image, TouchableOpacity} from 'react-native' import flattenStyle from 'flattenStyle' import {COLOR} from '../../config' import * as helpers from '../../helpers' import * as components from '../' export default ({playIconVisible = f...
react/gameday2/components/embeds/EmbedDacast.js
fangeugene/the-blue-alliance
import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' const EmbedDacast = (props) => { const channel = props.webcast.channel const file = props.webcast.file const iframeSrc = `https://iframe.dacast.com/b/${channel}/c/${file}` return ( <iframe src={iframeSrc} width...
app/components/CompareImages.js
Kamahl19/image-min-app
import React from 'react'; export default React.createClass({ displayName: 'CompareImages', propTypes: { images: React.PropTypes.array.isRequired, }, getInitialState() { return { sliderCss: {}, leftImageCss: {}, imgCss: {}, enableMouseMo...
src/dots.js
sanbornmedia/react-slick
'use strict'; import React from 'react'; import classnames from 'classnames'; var getDotCount = function (spec) { var dots; dots = Math.ceil(spec.slideCount / spec.slidesToScroll); return dots; }; export var Dots = React.createClass({ clickHandler: function (options, e) { // In Autoplay the focus stays...
src/Announcer.js
thinkcompany/react-a11y-announcer
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Announcer extends Component { constructor(props) { super(props); this.state = { text: '' } } static propTypes = { text: PropTypes.string, politeness: PropTypes.string } stati...
clients/packages/admin-client/src/mobilizations/templates/components/template-selectable-list.spec.js
nossas/bonde-client
/* eslint-disable no-unused-expressions */ import React from 'react'; import { expect } from 'chai'; import shallowWithIntl from '../../../intl/helpers/shallow-with-intl'; import { TemplateSelectableList } from '../../../mobilizations/templates/components'; import { IntlProvider } from 'react-intl'; const intlProvide...
app/components/hello/hello.js
dfmcphee/express-react
import React from 'react'; export default class Hello extends React.Component { constructor(props) { super(props); this.state = { message: 'Loading...' }; this.fetchMessage(); } fetchMessage() { fetch('/message.json') .then((response) => response.json()) .then((data) => t...
src/Toggle/__tests__/Toggle.native.js
Fineighbor/ui-kit
/* eslint-env jest */ import React from 'react' import { shallow } from 'enzyme' import Toggle from '../index.ios.js' describe('Toggle.native', () => { it('renders a snapshot', () => { const wrapper = shallow( <Toggle /> ) expect(wrapper).toMatchSnapshot() }) it('renders a snapshot with tight'...
src/components/common/svg-icons/action/delete.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDelete = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/> </SvgIcon> ); ActionDelete = pure(ActionDelete); ActionDelete.display...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
skevy/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment => ( ...
packages/ringcentral-widgets-docs/src/app/pages/Components/PresenceSettingSection/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
frontend/src/app/components/ExperimentRowCard.js
dannycoates/testpilot
import React from 'react'; import { Link } from 'react-router'; import classnames from 'classnames'; import { experimentL10nId } from '../lib/utils'; const ONE_DAY = 24 * 60 * 60 * 1000; const ONE_WEEK = 7 * ONE_DAY; const MAX_JUST_LAUNCHED_PERIOD = 2 * ONE_WEEK; const MAX_JUST_UPDATED_PERIOD = 2 * ONE_WEEK; export ...
src/routes/y-axis-assembly/YAxisAssembly.js
bigearth/www.clone.earth
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './YAxisAssembly.css'; import { Grid, Row, Col, Image } from 'react-bootstrap'; import DocsTOC from '../../components/DocsTOC'; class YAxisAssembly extends React.Component { ...
src/svg-icons/image/timer-3.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer3 = (props) => ( <SvgIcon {...props}> <path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49.11-.73 0-.55-.09-1....
docs/app/Examples/collections/Form/FieldVariations/FormExampleRequiredFieldShorthand.js
shengnian/shengnian-ui-react
import React from 'react' import { Form } from 'shengnian-ui-react' const FormExampleRequiredFieldShorthand = () => ( <Form> <Form.Checkbox inline label='I agree to the terms and conditions' required /> </Form> ) export default FormExampleRequiredFieldShorthand
examples/js/selection/select-hook-table.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-alert: 0 */ /* eslint guard-for-in: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const...
app/containers/UpgradeDialog/index.js
VonIobro/ab-web
import React from 'react'; import { Receipt } from 'poker-helper'; import { createStructuredSelector } from 'reselect'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Form, Field, SubmissionError, reduxForm } from 'redux-form/immutable'; import { makeSelectAccountData } from '../.....
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/Permission.js
sambaheerathan/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
src/index.js
melihberberolu/yemeksepeti-task
import React from 'react'; import { render } from "react-dom"; import App from './App'; import registerServiceWorker from './registerServiceWorker'; require("./assets/sass/main.scss"); render( <App />, document.getElementById("app") ); registerServiceWorker();
src/TabPane.js
roderickwang/react-bootstrap
import React from 'react'; import deprecationWarning from './utils/deprecationWarning'; import Tab from './Tab'; const TabPane = React.createClass({ componentWillMount() { deprecationWarning( 'TabPane', 'Tab', 'https://github.com/react-bootstrap/react-bootstrap/pull/1091' ); }, render() { ...
packages/react-ui-components/src/Dialog/index.story.js
mstruebing/PackageFactory.Guevara
import React from 'react'; import {storiesOf, action} from '@storybook/react'; import {withKnobs, text, boolean} from '@storybook/addon-knobs'; import {StoryWrapper} from './../_lib/storyUtils'; import Dialog from '.'; import Button from './../Button'; storiesOf('Dialog', module) .addDecorator(withKnobs) .addW...
app/components/FullRoster.js
BeAce/react-babel-webpack-eslint-boilerplate
import React from 'react'; const FullRoster = () => (<div> <ul>api12</ul> </div>); export default FullRoster;
app/components/users/UserForm.js
MakingSense/mern-seed
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import Formsy from 'formsy-react'; import autoBind from '../../lib/autoBind'; import { Input, Textarea } from 'formsy-react-components'; class UserForm extends Component { constructor(props, context) { ...
src/components/UI/Tabs/Tabs.js
bocasfx/Q
import React from 'react'; import './Tabs.css'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setSelection } from '../../../actions/Selection'; import PropTypes from 'prop-types'; class Tabs extends React.Component { static propTypes = { selection: PropTypes.object,...
web/portal/src/components/Form/Radio/index.js
trendmicro/serverless-survey-forms
import React, { Component } from 'react'; import Question from '../Question'; class Radio extends Component { render() { const { data, onClick } = this.props; return ( <div className="question" onClick={onClick} > <Question ...
__tests__/index.ios.js
amostap/react-native-todo
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
components/header.js
waigo/waigo.github.io
import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import Headroom from 'react-headroom'; import { config } from 'config'; import Classnames from 'classnames'; const NAV = [ { label: 'Guide', title: 'Documentation guide', link: prefixLink(config...
react/src/containers/Login/Login.js
hnquang112/laradock
import React from 'react'; import {Btn} from '../../components/Controls/Button/Button'; import History from '../../routes/History'; class Login extends React.Component { // this method is only to trigger route guards , remove and use your own logic handleLogin = () => { localStorage.setItem('token','to...
07/src/App.js
viddamao/front-end-demo
import React, { Component } from 'react'; import './App.css'; class App extends Component { render() { return ( <div className="wrapper"> <h1 className="todo-title">React-Todos</h1> <p>implements a todo list with React</p> <div className="App"> </div> </div> ); } } export...
imports/ui/components/resident-details/accounts/transaction/transaction-pa.js
gagpmr/app-met
import React from 'react'; import * as Styles from '/imports/modules/styles.js'; import { UpdateResident } from '/imports/api/residents/methods.js'; export class TransactionPa extends React.Component { constructor(props) { super(props); } removeBill(e) { e.preventDefault(); var resid = e.current...