path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
web/client/components/composition/modal.js
firewow/firewow
/** * Imports */ import React from 'react'; export default class Modal extends React.Component { render () { var buttons = this.props.buttons.map(function(button, key) { return ( <a href="#!" key={key} className='waves-effect waves-light btn-flat white-text' onClick={button...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
VikingDen/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ContactItem extends React.Com...
src/svg-icons/device/screen-rotation.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenRotation = (props) => ( <SvgIcon {...props}> <path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c...
packages/material-ui-icons/src/RecordVoiceOver.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><circle cx="9" cy="9" r="4" /><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.7...
components/accounts/transaction.js
kylecarter/bank
import React from 'react' import Head from 'next/head' import underscore from 'underscore' const _ = underscore; export default class Transaction extends React.Component { constructor( props ) { super(); this.state = _.extend( {}, props ); } render() { return (<li className="panel pa...
Client/index.android.js
oaml/RApp
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, Fetch, AsyncStorage, DeviceEventEmitter } from 'react-native'; export default class RApp extends Component { constructor(props) { super(props); this.IPAddress = '192.168.1.1'; try { AsyncStorage...
test/FormSpec.js
apkiernan/react-bootstrap
import React from 'react'; import $ from 'teaspoon'; import Form from '../src/Form'; import FormGroup from '../src/FormGroup'; describe('<Form>', () => { it('should support horizontal', () => { $( <Form horizontal className="my-form"> <FormGroup /> </Form> ) .shallowRender() ...
src/components/SelectField.js
willianribeiro/react-selectfield
'use strict' import React from 'react' import ReactDOM from 'react-dom' const events = { pauseEvent (event) { event.stopPropagation() event.preventDefault() }, addEventsToDocument (eventMap) { Object.keys(eventMap).forEach((key) => { document.addEventListener(key, eventMap[key], false) })...
docs/src/app/components/pages/get-started/RequiredKnowledge.js
w01fgang/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import requiredKnowledge from './required-knowledge.md'; const RequiredKnowledge = () => ( <div> <Title render={(previousTitle) => `Required Knowledge - ${previousTitle}`} /> <MarkdownEl...
client2/src/components/ChannelPreview.js
mehrandabi/graphql-tutorial
import React from 'react'; import { gql, graphql } from 'react-apollo'; const ChannelPreview = ({ data: {loading, error, channel } }) => { if (loading) { return <p>Loading ...</p>; } if (error) { return <p>{error.message}</p>; } return ( <div> <div className="channelName"> {channel...
packages/wix-style-react/src/TagList/TagListAction/TagListAction.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Button from '../../Button'; import { st, classes } from '../TagList.st.css'; const TagListAction = ({ className, ...rest }) => ( <Button className={st(classes.item, className)} {...rest} /> ); TagListAction.displayName = 'TagListAction'; TagList...
docs/src/examples/collections/Form/Variations/FormExampleUnstackable.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Form } from 'semantic-ui-react' const FormExampleUnstackable = () => ( <Form unstackable> <Form.Group widths={2}> <Form.Input label='First name' placeholder='First name' /> <Form.Input label='Last name' placeholder='Last name' /> </Form.Group> <Form....
containers/App.js
goominc/goommerce-seller-native
'use strict'; import React from 'react'; import { Dimensions, Image, StatusBar, StyleSheet, View } from 'react-native'; import { connect } from 'react-redux' import { authActions } from 'goommerce-redux'; import _ from 'lodash'; import TabNavigator from 'react-native-tab-navigator'; import Agreement from './Agreement...
src/icons/Pound.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Pound extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M125.2,352.3H32v-54.6h101.2l13.1-83.3H47v-54.6h107.2L176,32h63.9l-21.8,127.7h105.6L345.5,32h63.1l-21.8,127.7H480v54.6 ...
pages/_document.js
bmagic/acdh-client
import React from 'react' import Document, { Head, Main, NextScript } from 'next/document' import stylesheet from './styles.scss' export default class MyDocument extends Document { render () { return ( <html> <Head> <meta charSet='utf-8' /> <meta name='viewport' content='width=d...
blueocean-material-icons/src/js/components/svg-icons/action/delete.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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.displayName = 'ActionDelete'; ActionDelete.muiName = 'SvgIcon'; export def...
src/index.js
yvanbister/MurielvanCaster
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
client/src/javascript/components/sidebar/SidebarFilter.js
stephdewit/flood
import classnames from 'classnames'; import {injectIntl} from 'react-intl'; import React from 'react'; import Badge from '../general/Badge'; const METHODS_TO_BIND = ['handleClick']; class SidebarFilter extends React.Component { constructor() { super(); METHODS_TO_BIND.forEach(method => { this[method...
src/components/Containers.react.js
lzbgt/kitematic
import $ from 'jquery'; import _ from 'underscore'; import React from 'react'; import Router from 'react-router'; import containerStore from '../stores/ContainerStore'; import ContainerList from './ContainerList.react'; import Header from './Header.react'; import metrics from '../utils/MetricsUtil'; import shell from '...
client/src/components/mainContainer.js
dstarr/sb-react-demo
import React from 'react'; import Header from './header'; import Navigation from './navigation'; import Body from './body'; export default class MainContainer extends React.Component { render = () => { return ( <div> <Header text="The Finest Coffee on Earth" /> <Navigation navItemCallba...
dist/Route.js
lin2jie2/react-hash-router
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(ta...
fixtures/fiber-debugger/src/index.js
tomocchino/react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
docs/src/sections/ImageSection.js
mmarcant/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ImageSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anc...
addons/info/src/components/markdown/htags.js
enjoylife/storybook
import React from 'react'; import PropTypes from 'prop-types'; import { baseFonts } from '../theme'; const defaultProps = { children: null, id: null, }; const propTypes = { children: PropTypes.node, id: PropTypes.string, }; export function H1(props) { const styles = { ...baseFonts, borderBottom: '1p...
client/src/routes.js
saltypaul/SnipTodo
/** * This module defines route rules within the app. * */ import React from 'react'; import { Provider } from 'react-redux'; import configureStore from './store'; import { Router, Route, hashHistory, IndexRoute } from 'react-router'; import { Home, Welcome, Archive } from './components'; import { TodoListContaine...
js/BaseComponents/Input.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
src/routes/home/index.js
willchertoff/Ben-Kinde
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Home from './Home'; i...
src/index.js
roycejewell/flux-ui-example
import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import routes from './routes.js'; import 'styles/styles.css'; const router = { routes, history: createBrowserHistory(), createElement: (component, prop...
src/containers/ChannelData/index.js
TerryCapan/twitchBot
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import SparklineChart from '../../components/SparklineChart'; import { getTone, unsetTone } from '../../actions/index'; /* component styles */ import { styles } from './styles.scss'; class Cha...
blueocean-material-icons/src/js/components/svg-icons/action/card-membership.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionCardMembership = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"/> </SvgIcon> ); ActionCardMembership.displayN...
app/components/CarsList/index.js
aditigoel23/React-Car-App
import React from 'react'; import _ from 'lodash'; import CarListItem from '../CarListItem/index'; import Wrapper from './Wrapper'; function CarsList(props) { const carTypes = _.get(props, 'metaData.CarTypes', []); let list = []; if (Array.isArray(props.items)) { list = _.map(props.items, (car) => <Car...
docs/src/examples/elements/Segment/Variations/SegmentExampleCompact.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleCompact = () => <Segment compact>Compact content.</Segment> export default SegmentExampleCompact
imports/client/ui/components/HoursFormatted/index.js
focallocal/fl-maps
import React from 'react' import { formatDateWithWords, formatDate } from '/imports/client/utils/format' import { findNextEvent, calibrateEndWeekday } from '/imports/client/utils/findNextEvent' import './styles.scss' const HoursFormatted = ({ data }) => { const { startingDate, endingDate, startingTime, ...
packages/icons/src/md/editor/VerticalAlignBottom.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdVerticalAlignBottom(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M32 26h-6V6h-4v20h-6l8 8 8-8zM8 38v4h32v-4H8z" /> </IconBase> ); } export default MdVerticalAlignBottom;
src/App.js
jp7internet/react-apz
import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; import ContactList from './containers/ContactList'; import ContactCreate from './containers/ContactCreate'; import ContactEdit from './containers/ContactEdit'; import './App.css'; class App extends Compon...
src/svg-icons/places/golf-course.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesGolfCourse = (props) => ( <SvgIcon {...props}> <circle cx="19.5" cy="19.5" r="1.5"/><path d="M17 5.92L9 2v18H7v-1.73c-1.79.35-3 .99-3 1.73 0 1.1 2.69 2 6 2s6-.9 6-2c0-.99-2.16-1.81-5-1.97V8.98l6-3.06z"/> ...
src/svg-icons/toggle/star-border.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
src/components/pages/about.js
ranhouxingfu/website-by-react
import React from 'react' import { Grid, Col, Image, Icon } from 'amazeui-react' export default class aboutUs extends React.Component { constructor(props) { super(props); this.state = {} } render() { return( <div className='contain'> <div className='about-box'> <img src='../images/aboutus-bg.jpg'/> ...
ExampleApp/index.ios.js
joonhocho/react-native-linkedin-sdk
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableHighlight } from 'react-native'; import LinkedInSDK from 'react-native-linkedin-sdk'; export default class ExampleApp exten...
test/integration/client-navigation/pages/memo-component.js
flybayer/next.js
import React from 'react' export default React.memo((props) => <span {...props}>Memo component</span>)
apps/marketplace/components/BuyerSpecialist/BuyerSpecialistAboutStage.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Form } from 'react-redux-form' import Textfield from 'shared/form/Textfield' import Textarea from 'shared/form/Textarea' import CheckboxDetailsField from 'shared/form/CheckboxDetailsField' import formProps from '...
blueocean-material-icons/src/js/components/svg-icons/action/event-seat.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionEventSeat = (props) => ( <SvgIcon {...props}> <path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"/> </SvgIcon> ); ActionEventSeat.displayName = 'ActionEventSeat'; ActionEventSeat.muiN...
pages/notes/index.js
jhanstra/jh-gatsby
import React from 'react' import TopNav from '../../src/components/core/TopNav' class Notes extends React.Component { render () { return ( <div> <div className="full-title"> <h1>Notes</h1> <h3>Notes, reflections, and highlights from my studies and the books I read</h3> ...
src/index.js
mduleone/crapshoot
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {BrowserRouter as Router} from 'react-router-dom'; import injectTapEventPlugin from "react-tap-event-plugin"; import MuiThemeProvider from "material-ui/styles/MuiThemeProvider"; import initializeStore from './conf...
frontend/src/Movie/Details/Titles/MovieTitlesTableContentConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import MovieTitlesTableContent from './MovieTitlesTableContent'; function createMapStateToProps() { return createSelector( (state) => state.movies, (...
src/components/Logo/index.js
badT/Chatson
import React, { Component } from 'react'; import TimelineMax from 'gsap/src/minified/TimelineMax.min'; /* component styles */ import { styles } from './styles.scss'; export default class Logo extends Component { constructor(props) { super(props); this.state = { logo: new TimelineMax, hatson: ne...
src/components/Tabs/Tabs-story.js
wfp/ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, number, text } from '@storybook/addon-knobs'; import Tabs from '../Tabs'; import Tab from '../Tab'; import Tag from '../Tag'; import TabsSkeleton from '../Tabs/Tabs.Skeleton'; ...
src/TextField/TextFieldLabel.js
igorbt/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import transitions from '../styles/transitions'; function getStyles(props) { const defaultStyles = { position: 'absolute', lineHeight: '22px', top: 38, transition: transitions.easeOut(), zIndex: 1, // Needed to display label above Chr...
src/svg-icons/device/signal-cellular-off.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularOff = (props) => ( <SvgIcon {...props}> <path d="M21 1l-8.59 8.59L21 18.18V1zM4.77 4.5L3.5 5.77l6.36 6.36L1 21h17.73l2 2L22 21.73 4.77 4.5z"/> </SvgIcon> ); DeviceSignalCellularOff = pure(...
src/svg-icons/av/replay-5.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay5 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2...
website/src/components/charts/Tooltip/index.js
jwngr/notreda.me
import React from 'react'; import {TooltipWrapper} from './index.styles'; import {getWindowDimensions} from '../../../utils'; export default ({x, y, children}) => { const tooltipStyles = {}; const windowDimensions = getWindowDimensions(); if (y - window.scrollY < 100) { tooltipStyles.top = y; } else { ...
modules/TransitionHook.js
tikotzky/react-router
import React from 'react'; import warning from 'warning'; var { object } = React.PropTypes; var TransitionHook = { contextTypes: { router: object.isRequired }, componentDidMount() { warning( typeof this.routerWillLeave === 'function', 'Components that mixin TransitionHook should have a rou...
src/CarouselItem.js
laran/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...
src/views/BootCard/BootCardDeck.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules } from '../../lib/' const propTypes = { tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), className: PropTypes.string, cssModule: PropTypes.object, } const defaultProps = { tag: 'div',...
public/pages/UpdateDynamicFormPage.js
dynamicform/dynamicform-react-client
import React from 'react'; import {connect} from 'react-redux'; import DynamicForm from '../../src/components/DynamicForm'; @connect() export default class UpdateDynamicFormPage extends React.Component{ onSubmit(er){ console.log('回调函数onSubmit'); } onSuccess(){ } //${this.props.match && this.pr...
web/app/layout/header.js
seanhess/serials
// @flow import React from 'react' import {RouteHandler, Link} from 'react-router' import {assign} from 'lodash' import {Users} from '../model/user' import {background, Colors, clickable} from '../style' import {LinkStyle, TitleStyle, NavBar, CenterText} from './style' import {AlertView} from '../alert' import {Aler...
examples/todomvc/test/components/TodoItem.spec.js
joaomilho/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import TodoItem from '../../components/TodoItem' import TodoTextInput from '../../components/TodoTextInput' function setup( editing = false ) { const props = { todo: { id: 0, text: 'Use Redux', ...
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_05/finished/src/index.js
yevheniyc/C
import C from './constants' import React from 'react' import { render } from 'react-dom' import routes from './routes' import sampleData from './initialState' import storeFactory from './store' import { Provider } from 'react-redux' import { addError } from './actions' const initialState = (localStorage["redux-store"]...
App.js
Jack3113/edtBordeaux
import React from 'react'; import { Image } from 'react-native'; import { AppLoading, SplashScreen } from 'expo'; import { Asset } from 'expo-asset'; import * as Font from 'expo-font'; import { Entypo, Feather, FontAwesome, Ionicons, MaterialCommunityIcons, MaterialIcons, SimpleLineIcons } from '@expo/vector-icons'; i...
src/router.js
Huanzhang89/rss-feed-example
import React from 'react'; import { Provider } from 'react-redux'; import history from './history'; import { Router, Route } from 'react-router-dom'; import store from './store' import App from './views/App'; const routes = ( <Route path='/' component={App} /> ) const Routes = () => ( <Provider store={store}> ...
app/src/modules/shared/components/NavigationBar/NavigationBar.js
betofigueiredo/homelibraries.org
import React from 'react'; import PropTypes from 'prop-types'; // import { useSelector } from 'react-redux'; import { Link, withRouter } from 'react-router-dom'; // CSS import CSSModules from 'react-css-modules'; import styles from './style.module.scss'; // Language // import { translate } from '../../languages/trans...
src/parser/demonhunter/havoc/modules/talents/Momentum.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage, formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interf...
src/interface/report/Results/EncounterStats.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPECS from 'game/SPECS'; import ROLES from 'game/ROLES'; import ITEMS from 'common/ITEMS'; import fetchWcl from 'common/fetchWclApi'; import Icon from 'common/Icon'; import ItemLink from 'common/ItemLink'; import SpellLink from 'common/SpellLink'; i...
src/components/shared/top-bar/action-items/action-items.spec.js
david-mart/react-boilerplate-edited
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import ActionItems from './index'; describe('<ActionItems />', () => { it('should have 5 action button', () => { const wrapper = shallow(<ActionItems />); const expected = 5; const actual ...
views/blocks/Photo/Photo.js
dimastark/team5
import React from 'react'; import './Photo.css'; import b from 'b_'; const photo = b.lock('photo'); function Status(props) { if (props.userIsCreator || props.status === null) { return null; } return ( <div className={['control', photo('checker')].join(' ')}> <i className={`fa ...
packages/react/src/components/molecules/SocialLinks/index.js
massgov/mayflower
/** * SocialLinks module. * @module @massds/mayflower-react/SocialLinks * @requires module:@massds/mayflower-assets/scss/02-molecules/social-links * @requires module:@massds/mayflower-assets/scss/01-atoms/svg-icons * @requires module:@massds/mayflower-assets/scss/01-atoms/svg-loc-icons */ import React from 'react...
project/react-ant-multi-pages/src/pages/index/containers/AutoDestination/Item/index.js
FFF-team/generator-earth
import React from 'react' import moment from 'moment' import { DatePicker, Button, Form, Input, Col } from 'antd' import BaseContainer from 'ROOT_SOURCE/base/BaseContainer' import request from 'ROOT_SOURCE/utils/request' import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter' import Rules from 'ROOT_SOURCE/utils...
examples/BorderlessTable.js
15lyfromsaturn/react-materialize
import React from 'react'; import Table from '../src/Table'; export default <Table> <thead> <tr> <th data-field="id">Name</th> <th data-field="name">Item Name</th> <th data-field="price">Item Price</th> </tr> </thead> <tbody> <tr> <td>Alvin</td> <td>Eclair</td> <...
src/MasterPassword/SetupMasterPassword.js
Lynx-Productions/OPeM
/*** * Copyright 2017 - present Lynx Productions * * Licensed 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/licenses/LICENSE-2.0 * * Unless required by applicabl...
src/containers/SigninPage.js
ASIX-ALS/asix-final-project-frontend
import React from 'react'; import SigninPageLayout from '../components/SigninPageLayout'; class SigninPage extends React.Component { render() { return ( <SigninPageLayout /> ); } } export default SigninPage;
admin/client/components/FlashMessages.js
wmertens/keystone
import React from 'react'; import { Alert } from 'elemental'; var FlashMessage = React.createClass({ displayName: 'FlashMessage', propTypes: { message: React.PropTypes.oneOfType([ React.PropTypes.object, React.PropTypes.string, ]), type: React.PropTypes.string, }, renderMessage (message) { if (typeof...
client/client.js
CityRay/React15-Todo-List
import React from 'react'; import { render } from 'react-dom'; import App from '../components/App'; import configureStore from '../redux/store'; import { Provider } from 'react-redux'; // configure and create our store // createStore(reducres, initialState) const initialState = { todos: [ { id...
components/AR/ViroARImageMarker.js
viromedia/viro
/** * Copyright (c) 2017-present, Viro Media, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provid...
node_modules/react-router/es/IndexRoute.js
SpaceyRezum/react-trivia-game
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
src/pages/providers/lenon.js
gelo592/IntegrativeMed-Site
import React from 'react' import Layout from '../../components/layout' import SEO from '../../components/seo' import lenon from '../../images/lenon.jpg' import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import SubLayout from '../../components/sublayout'; import { withStyl...
demos/function-tree-demos/src/mobx/components/App/index.js
idream3/cerebral
import React from 'react' import run from '../../run' import './styles.css' import AddAssignment from '../AddAssignment' import Assignments from '../Assignments' import appMounted from '../../events/appMounted' class App extends React.Component { componentDidMount () { run('appMounted', appMounted) } rende...
thingmenn-frontend/src/components/party-details/index.js
baering/thingmenn
import React from 'react' import partyService from '../../services/party-service' import totalsService from '../../services/totals-service' import partySummaryService from '../../services/party-summary-service' import KPI from '../../widgets/key-performance-indicator' import Topics from '../../widgets/topics' import ...
definitions/npm/@storybook/addon-actions_v3.x.x/test_addon-actions_v3.x.x.js
splodingsocks/FlowTyped
// @flow import React from 'react'; import { action, decorateAction } from '@storybook/addon-actions' const Button = (props) => <button {...props} />; const firstArgAction = decorateAction([ args => args.slice(0, 1) ]); // $FlowExpectedError const erroneous = action(123); // $FlowExpectedError const erroneousDeco...
packages/react/components/searchbar.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '.....
app/components/Loading/__tests__/index-test.js
nelsonomuto/budgeting-sample-app-webpack2
import React from 'react'; import renderer from 'react-test-renderer'; import Loading from '../'; it('renders correctly', () => { const tree = renderer.create(<Loading />).toJSON(); expect(tree).toMatchSnapshot(); });
src/pages/settings/settings-email.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
packages/react-error-overlay/src/containers/RuntimeError.js
0xaio/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import Header from '../components/Header'; import StackTrace from './StackTrace'; import type { ...
packages/cli-adapter/src/saihubot-cli-addon-dialog.js
gasolin/saihubot
'use strict'; import React from 'react'; import {Box, Text, useApp, useInput} from 'ink'; import SelectInput from 'ink-select-input'; const SelectBox = ({handleSelect, title, items}) => { const {exit} = useApp(); useInput((input, key) => { if (input === 'q' || key.escape) { exit(); } }); const ...
template/src/components/Message.js
phonegap/phonegap-template-react-hot-loader
import '../css/message.css'; import React from 'react'; import CSSTransitionGroup from 'react-addons-css-transition-group'; export default React.createClass({ displayName: 'Message', propTypes: { message: React.PropTypes.string, }, render() { const { message } = this.props; const msg = message ...
src/index.js
richgurney/ReactTemperatureApp
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
.history/src/components/InstaCelebs/index_20171001010701.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' import '../../styles/insta-stats.scss' const imgMap = { d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg', e: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885...
src/client/components/loading.react.js
steida/songary
// import './loading.styl'; import Component from '../components/component.react'; import React from 'react'; export default class Loading extends Component { static propTypes = { delay: React.PropTypes.number, msg: React.PropTypes.object.isRequired } // http://www.nngroup.com/articles/response-times-3...
console/src/app/tasklogs/tasklogs.js
alfredking12/hp-scheduler
import React from 'react'; require('rc-pagination/assets/index.css'); require('rc-select/assets/index.css'); import Pagination from 'rc-pagination'; import Select from 'rc-select'; import ActionRefresh from 'material-ui/svg-icons/action/search'; import TextField from 'material-ui/TextField'; import IconButton from 'ma...
docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js
pomerantsev/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleLoading = () => ( <div style={style.container}> <RefreshI...
js/components/leads_old/index.js
aditya-simplecrm/iosReactAppNoresha
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Alert,TouchableHighlight } from 'react-native'; import { Image, AsyncStorage } from 'react-native'; import { Actions } from 'react-native-router-flux'; import { Container, Header, Title, Content, Text, Button, Icon, Left, Right, ...
electron/app/pages/component/any.js
midsnow/snowelectric
import React from 'react'; import Debug from 'debug' import Gab from '../../common/gab' let debug = Debug('snowstreams:app:pages:component:any'); export default class Any extends React.Component { constructor(props) { super(props) this.displayName = 'Any Component' this.state = { html: props.children || ...
src/templates/portfolio-page.js
tannerfiscus/tannerfisc.us
import React from 'react'; import Markdown from 'react-markdown'; import { Helmet } from 'react-helmet'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import PreviewCompatibleImage from '../components/PreviewCompatibleImage' import styles from './portfolio-page.module.scss'; import Text...
js/src/views/Settings/Views/defaults.js
kushti/mpt
// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version....
packages/material-ui-icons/src/BatteryCharging80TwoTone.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L11.93 9H7v11.67C7 21.4 7.6 22 8.33 22h7.33c....
docs/src/app/components/pages/components/IconButton/Page.js
pancho111203/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import iconButtonCode from '!raw!material-ui/IconButton/IconButton'; import icon...
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZone.js
naustudio/keystone
/** * THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT * THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON * - @mxstbr */ import React from 'react'; import DropZoneTarget from './ItemsTableDragDropZoneTarget'; import classnames from 'classnames'; var ItemsTableDragDropZone = React.createClass({ d...
js/components/App.js
js-mi/so
import React from 'react'; import Header from './Header'; import Container from './Container'; import Ribbon from './Ribbon'; class App extends React.Component { render () { return ( <div> <Header /> <Container /> <Ribbon /> </div> ); } } export default App;
docs/app/Examples/collections/Message/Types/MessageExampleIcon.js
vageeshb/Semantic-UI-React
import React from 'react' import { Message, Icon } from 'semantic-ui-react' const MessageExampleIcon = () => ( <Message icon> <Icon name='circle notched' loading /> <Message.Content> <Message.Header>Just one second</Message.Header> We are fetching that content for you. </Message.Content> </...
src/svg-icons/av/sort-by-alpha.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSortByAlpha = (props) => ( <SvgIcon {...props}> <path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ...
src/components/Dashboard/index.js
LazyHaus/MyHaus
import React from 'react'; import { Card, } from 'react-mdl'; import './style.css'; import '../../../node_modules/react-grid-layout/css/styles.css'; import '../../../node_modules/react-mdl/extra/material.css'; import '../../../node_modules/react-mdl/extra/material.js'; import {Responsive, WidthProvider} from 'react-g...