path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
apps/marketplace/components/ItemSelect/SelectedItems.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import { Control } from 'react-redux-form' import { sortObjectByName } from 'marketplace/components/helpers' import AUheading from '@gov.au/headings/lib/js/react.js' import styles from './SelectedItems.scss' const SelectedItemsList = props => { const { actions, selectedItems, selectedItem...
app/javascript/mastodon/features/notifications/components/column_settings.js
anon5r/mastonon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
examples/jest-snapshot-testing/src/components/AppFooter.js
ericf/react-intl
import React from 'react'; import { FormattedMessage, defineMessages } from 'react-intl'; const messages = defineMessages({ copyright: { id: 'app-footer__copyright', defaultMessage: '© 2017 Future Testing', }, }); export default () => ( <footer className="app-footer"> <div classNam...
packages/core/tocco-ui/src/Button/Button.js
tocco/tocco-client
import PropTypes from 'prop-types' import React from 'react' import Icon from '../Icon' import LoadingSpinner from '../LoadingSpinner' import {design} from '../utilStyles' import StyledButton, {StyledLabelWrapper} from './StyledButton' /** * Use the Button to trigger any actions. Choose look and ink according Materi...
app/components/ListItem/index.js
likesalmon/likesalmon-react-boilerplate
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
frontend/src/components/h5/header/ImageLibrary.js
sunlong/h5
/** * Created by madofu@163.com. */ import React from 'react'; import store from '../../../store'; import Fetch from '../../../common/FetchIt'; import API_URL from '../../../common/url'; class ImageLibrary extends React.Component { componentDidMount = () => { }; render() { return ( ...
laxar-react-adapter.js
LaxarJS/laxar-react-adapter
/** * Copyright 2017 aixigo AG * Released under the MIT license. * http://laxarjs.org/license */ /** * Implements the LaxarJS adapter API for the integration technology "react": * https://github.com/LaxarJS/laxar/blob/master/docs/manuals/adapters.md * * @module laxar-react-adapter */ import React from 'react...
pollard/components/MarkPlayedBtn.js
freeformpdx/pollard
import React, { Component } from 'react'; import classNames from 'classnames'; import mergeStyles from '../lib/mergeStyles'; export default class MarkPlayedBtn extends Component { handleClick(event) { this.props.markSongPlayed(this.props.idx); } render() { const gridStyle = mergeStyles({ marginT...
views/blocks/ImagesCountControl/ImagesCountControl.js
FairTex/team5
import React from 'react'; import './ImagesCountControl.css'; import './../Input.css'; import b from 'b_'; import {ImagesCountControlStrings} from './../../constants/strings'; function item(title, value, name) { return ( <div className={b('images-count-control', 'item')}> <span>{title}</span> ...
src/client/pages/project/AddApi.js
callmeJozo/MKRN
import React from 'react'; import Codemirror from 'react-codemirror/lib/Codemirror'; require('codemirror/mode/javascript/javascript'); require('codemirror/theme/monokai.css'); import { Form, Input, Button, Radio, Select, Upload, Icon, Alert, message } from 'antd'; import ApiStore from "../../stores/api"; import Project...
site/demos/airbeds/src/index.js
appbaseio/reactivesearch
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render(<App />, document.getElementById('app'));
src/parser/mage/fire/modules/features/HeatingUp.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer, { SELECTED_PLAYER } from 'p...
src/components/Main.js
5-gwoap/adopt-a-family
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import AboutUs from './AboutUs'; import Dashboard from './Dashboard'; import Footer from './Footer'; import Landing from './Landing'; import Messaging from './Messaging'; import Header from './Header'; import Pairing from './Pairing'; import ...
src/Message.js
Chatnbook/react-native-gifted-chat
import PropTypes from 'prop-types'; import React from 'react'; import { View, ViewPropTypes, StyleSheet, } from 'react-native'; import Avatar from './Avatar'; import Bubble from './Bubble'; import SystemMessage from './SystemMessage'; import Day from './Day'; import {isSameUser, isSameDay} from './utils'; expo...
src/svg-icons/image/wb-iridescent.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbIridescent = (props) => ( <SvgIcon {...props}> <path d="M5 14.5h14v-6H5v6zM11 .55V3.5h2V.55h-2zm8.04 2.5l-1.79 1.79 1.41 1.41 1.8-1.79-1.42-1.41zM13 22.45V19.5h-2v2.95h2zm7.45-3.91l-1.8-1.79-1.41 1.41 1....
node_modules/node_modules/recompose/build/Recompose.js
SerendpityZOEY/Solr-Search-React-UI
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
app/components/calendar/Week.js
adrilo/headek
import React, { Component } from 'react'; import Day from './Day'; export default class Week extends Component { render() { let weekStyle = { height: '100px' }; return ( <tr style={weekStyle}> {this.props.weekDates.map((dayInfo) => { ...
src/components/header.js
derrickyoo/derrickyoo.com
import PropTypes from 'prop-types' import React from 'react' import { library } from '@fortawesome/fontawesome-svg-core' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faFolder, faFolderOpen } from '@fortawesome/free-solid-svg-icons' library.add(faFolder, faFolderOpen) const Header = ({ si...
packages/web/src/components/date/DatePicker.js
appbaseio/reactivesearch
import React, { Component } from 'react'; import { updateQuery, setQueryOptions, setCustomQuery } from '@appbaseio/reactivecore/lib/actions'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { isEqual, checkValueChange, checkSomePropChange, getClassName, formatDate, getOptionsFromQuery, updateC...
src/components/views/elements/DeviceVerifyButtons.js
aperezdc/matrix-react-sdk
/* Copyright 2016 OpenMarket Ltd 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 applicable law or agreed to in writing, software ...
client/component/table/table-buttons.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; const TableButtons = props => { const { enabled = true, children } = props; if ( enabled ) { return ( <div className="table-buttons"> { children } </div> ); } return null; }; export default TableButtons;
renderer/components/Autopay/AutopaySearch.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { injectIntl } from 'react-intl' import { intlShape } from '@zap/i18n' import { Form, SearchInput } from 'components/Form' import messages from './messages' const AutopaySearch = ({ intl, searchQuery, updateAutopaySearchQuery, ...rest }) => ( <Form ...
docs/src/app/components/pages/components/IconButton/ExampleTooltip.js
ArcanisCz/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; const IconButtonExampleTooltip = () => ( <div> <IconButton iconClassName="muidocs-icon-custom-github" tooltip="bottom-right" tooltipPosition="bottom-right" /> <IconButton iconClassName="muidocs-icon-custom-githu...
local-cli/templates/HelloNavigation/components/ListItem.js
Swaagie/react-native
'use strict'; import React, { Component } from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; /** * Renders the right type of Touchable for the list item, based on platform. */ const Touchable = ({onPress, children}) => { const c...
src/Reduxible.js
xissy/reduxible
import React from 'react'; import ReactDOM from 'react-dom'; import ReactDOMServer from 'react-dom/server'; import ReduxibleRouter from './ReduxibleRouter'; import ReduxibleConfig from './ReduxibleConfig'; import StoreFactory from './StoreFactory'; import createBrowserHistory from 'history/lib/createBrowserHistory'; im...
client/app/scripts/components/terminal.js
dilgerma/scope
/* eslint no-return-assign: "off", react/jsx-no-bind: "off" */ import debug from 'debug'; import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { clickCloseTerminal } from '../actions/app-actions'; import { getNeutralColor } from...
src/blocks/image_content_landscape.js
govau/service-manual
import PropTypes from 'prop-types'; import React from 'react'; import Slugify from 'slugify'; /** * The ImageContentLandscape component */ const ImageContentLandscape = ( page ) => { const imageSrc = page.image.startsWith('http') ? `${ page.image }` : `/assets/img/${ page.image }`; const HeadingTag = `h${ page.le...
react/features/invite/components/AddPasswordForm.js
KalinduDN/kalindudn.github.io
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { setPassword } from '../../base/conference'; import { translate } from '../../base/i18n'; /** * A React {@code Component} for locking a JitsiConference with a password. */ class AddPasswordForm extends Component { /** ...
app/containers/NotFoundPage/index.js
brobey8/toomanynotes
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Button from 'components/Button'; import H1 from 'components/H1'; export function NotFound(pro...
docs/src/GettingStartedPage.js
gianpaj/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import Anchor from './Anchor'; export default class Page extends React.Component { render() { return ( <div> <NavMa...
src/components/icons/PlayCircleIcon.js
austinknight/ui-components
import React from 'react'; import { generateFillFromProps, colors } from '../styles/colors'; const PlayCircleIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 512 512"> {props.title && <title>{props.title}</title>} <path {...generateFillFromProps(props, colo...
ReactNative/node_modules/react-navigation/src/views/Header/HeaderTitle.js
tahashahid/cloud-computing-2017
import React from 'react'; import { Text, View, Platform, StyleSheet, Animated } from 'react-native'; const AnimatedText = Animated.Text; const HeaderTitle = ({ style, ...rest }) => ( <AnimatedText numberOfLines={1} {...rest} style={[styles.title, style]} accessibilityTraits="header" /> ); const ...
lib/index.js
maiastone/chat-app
import React from 'react'; import ReactDOM from 'react-dom'; import Application from './components/Application'; require('./reset.scss'); require('./style.scss'); ReactDOM.render( <Application />, document.getElementById('application') );
client/index.js
cape-io/cape-forms-demo
import 'babel-core/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createRootComponent from '../common'; const initialState = window.__INITIAL_STATE__; if (!initialState) { console.log('initState', initialState); throw new Error('Missing __INITIAL_STATE__'); } const RootComponent =...
src/components/reduxFormReactSelect.js
regMeet/ReactSelector
import React, { Component } from 'react'; import SelectInput from './SelectInput'; import { Field, reduxForm } from 'redux-form' import { getDataSelector, getInitialData } from '../actions'; import { connect } from 'react-redux'; import { alphaNumeric, required, phoneNumber, email, number } from '../utils/validator' c...
scripts/app.js
gustavoguichard/react-lettering
import React from 'react' import Lettering from './lettering' class App extends React.Component { render() { return ( <Lettering className="fancyText" tagName="h1" charClass="custom"> Awesome Title!\n Stylized! </Lettering> ) } } module.exports = App
definitions/npm/styled-components_v2.x.x/flow_v0.42.x-/test_styled-components_native_v2.x.x.js
gaborsar/flow-typed
// @flow import nativeStyled, { ThemeProvider as NativeThemeProvider, withTheme as nativeWithTheme, keyframes as nativeKeyframes, } from 'styled-components/native' import React from 'react' import type { Theme as NativeTheme, Interpolation as NativeInterpolation, // Temporary ReactComponentFunctional as ...
app/modules/common/pagination/previous.js
theseushu/runcai
import React from 'react'; import IconButton from 'react-mdl/lib/IconButton'; export default (props) => <IconButton ripple name="chevron_left" {...props}>...</IconButton>;
web-server/v0.4/src/pages/ComparisonSelect/index.js
atheurer/pbench
import React from 'react'; import { connect } from 'dva'; import { routerRedux } from 'dva/router'; import { Card, Spin, notification } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import { filterIterations } from '../../utils/parse'; import TableFilterSelection from '@/components/TableF...
packages/material-ui-icons/src/Scanner.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Scanner = props => <SvgIcon {...props}> <path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z" /> </SvgIc...
dapp/src/shared/components/app/header.js
airalab/DAO-IPCI
import React from 'react' import { Link } from 'react-router' import { translate } from 'react-i18next' import _ from 'lodash' import Add from '../../containers/add' const Header = function Header(props) { return ( <div> <nav className="navbar navbar-default navbar-fixed-top"> <div className="conta...
docs/app/Examples/collections/Message/Types/MessageListItemsPropExample.js
ben174/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const items = [ 'You can now have cover images on blog pages', 'Drafts will now auto-save while writing', ] const MessageListItemsPropExample = () => ( <Message> <Message.Header>New Site Features</Message.Header> <Message.List items={...
src/components/admin/AdminPage.js
douglascorrea/react-hot-redux-firebase-starter
import React from 'react'; import {Link} from 'react-router'; const AdminPage = () => { return ( <div> <h1>You will only see this page if you are Admin</h1> <Link to="/" activeClassName="active">Home</Link> </div> ); }; export default AdminPage;
client/src/container/App.js
hmilyjeny/HAKA
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Nav from './Nav'; import '../../../static/css/main.css'; class App extends Component { constructor(props, context) { super(props, context); } render() { return( <div className="wrapper"> <Nav logged...
packages/lore-auth/src/generators/AuthenticationGenerator.js
lore/lore
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import _ from 'lodash'; function getDisplayName(Component) { return Component.displayName || Component.name || 'Component'; } export default function(options) { return function (DecoratedComponent) { ...
src/components/AppSettingsMenu/ThemeControls/ThemeListItem.js
Charlie9830/pounder
import React, { Component } from 'react'; import Hammer from 'hammerjs'; import { ListItem, ListItemText } from '@material-ui/core'; import withMouseOver from '../../Hocs/withMouseOver'; import DeleteButton from './DeleteButton'; import MuiColorChit from './MuiColorChit'; let grid = { width: '100%', minHeight...
src/js/components/App.js
nikdelig/react-redux-sass-starter-kit
import React from 'react'; const App = () => ( <div> <p>Its working!</p> </div> ); export default App;
src/clincoded/static/components/variant_central/interpretation/summary.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import createReactClass from 'create-react-class'; import { Form, FormMixin, Input } from '../../../libs/bootstrap/form'; import { RestMixin } from '../../rest'; import * as curator from '../../curat...
lib/views/machine-settings.js
koding/kd-atom
'use babel' /* globals atom */ import { Emitter, CompositeDisposable } from 'atom' import { View } from 'atom-space-pen-views' import React from 'react' import { render } from 'react-dom' import MachinesTable from './machines-table' export default class MachineSettings extends View { static content({ machines }) {...
stories/ImageDataURI/index.js
jpuri/react-draft-wysiwyg
/* @flow */ import React from 'react'; import { Editor } from '../../src'; function uploadImageCallBack(file) { return new Promise( (resolve, reject) => { const reader = new FileReader(); // eslint-disable-line no-undef reader.onload = e => resolve({ data: { link: e.target.result } }); reader....
App.js
jeanmfdias/appUnidadeHaugh
/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', a...
src/components/PageHeader/PageHeader.js
malinowsky/dataroot_03
/** * 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 withStyles from 'isom...
src/containers/Home/Home.js
bkniffler/react-redux-universal-hot-example
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server const logoImage = ...
teletobit/src/components/Profile/Profile.js
edenpark/teletobit
import React from 'react'; import Container from 'components/Common/Container'; import { Grid } from 'semantic-ui-react'; const Profile = ({ children }) => { return( <Container className="profile route"> <Grid columns="equal"> {children} </Grid> </Container> ...
src/parser/warrior/arms/modules/talents/SuddenDeath.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatNumber } from 'common/format'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/StatisticListBoxItem'; import Events from 'parser/co...
modules/Route.js
zenlambda/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components } from './PropTypes' const { string, func } = React.PropTypes /** * A <Route> is used to declare which components are rendered to the * page when the URL matches a gi...
src/svg-icons/device/data-usage.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDataUsage = (props) => ( <SvgIcon {...props}> <path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53...
lib/components/Welcome/Welcome.js
the-oem/weathrly
import React, { Component } from 'react'; import SearchBar from '../SearchBar/SearchBar'; import './Welcome.css'; const Welcome = ({ changeLocation, resultsState }) => { return ( <section className='welcome-search'> <h2>welcome</h2> <SearchBar changeLocation={changeLocation} showButto...
Demo1/index.android.js
Quxiaolei/Study_RN
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class Demo1 extends Component { render() { return ( <View style={styles.container}> <Text st...
app/containers/UpdateShop/index.js
cbradley3/recycle_bin_frontend
/* * * UpdateShop * */ import React from 'react'; import Helmet from 'react-helmet'; import Responsive from 'react-responsive'; import {Link} from "react-router"; import FlatButton from "material-ui/FlatButton"; import NavBar from 'components/NavBar'; import { Carousel } from 'react-bootstrap'; import { Th...
client/src/components/pages/provider/ProviderActiveAlertsPage.js
15thnight/15thnight
import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { getAlerts, setAlertRedirect } from 'actions'; import { Alerts } from 'alert'; class ProviderActiveAlertsPage extends React.Component { componentWillMount() { if (this.props.alertRedirect)...
src/index.js
RSS-Dev/live-html
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { Router, Route, IndexRoute, browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import configureStore from './configureStore' import App from './components/App' import C...
packages/reactor-kitchensink/src/examples/Charts/3DColumn/3DStacked/3DStacked.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; export default class Stacked extends Component { store = Ext.create('Ext.data.Store', { fields: ['country', 'agr', 'in...
client/pages/todoReact/todoListView.js
jsg7440/MainPage
var $ = require('jquery'); import React from 'react'; import ReactDOM from 'react-dom'; import Backbone from 'backbone'; import todoModel from 'pages/todoReact/todoModel'; import TodoItemView from 'pages/todoReact/todoView'; import dispatcher from 'pages/todoReact/todoDispatcher'; var TodoReactListView = Backbone.View...
src/index.js
diegocasmo/workouter
import React from 'react' import ReactDOM from 'react-dom' import registerServiceWorker from './registerServiceWorker' import {AppFromStore} from './containers/App' import {getStore} from './state/store' import {Provider} from 'react-redux' import {DragDropContextProvider} from 'react-dnd' import HTML5Backend from 'rea...
sub-packs/themes/zealder-default-theme/src/components/MainMenu.js
Zealder/zealder-cms
// @flow import React from 'react'; import { connect } from 'react-redux'; import _ from 'lodash/core'; import { Nav, NavItem, NavDropdown, MenuItem, Accordion, Panel, ListGroup, ListGroupItem } from 'react-bootstrap'; import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap'; var bowser = require('...
examples/pinterest/app.js
Nedomas/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, IndexRoute, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/pinterest' }) const PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekit...
src/components/common/LoadingDots.js
ashutosh-singh-rawat/react-redux-starter
import React from 'react'; import PropTypes from 'prop-types'; class LoadingDots extends React.Component { constructor(props, context){ super(props, context); this.state = {frame: 1}; } componentDidMount() { this.interval = setInterval( () => { this.setState({ frame: this.state.frame + ...
public/client/routes/addClient/containers/addClient.js
Concorda/concorda-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {reduxForm} from 'redux-form' import RadioGroup from 'react-radio-group' import CheckboxGroup from 'react-checkbox-group' import {upsertClient} from '../../../modules/client/actions/index' import {validateAddClient} from '../../../lib/...
src/components/Credits.js
tavofigse/flip-the-reactomster
import React from 'react' import BackButton from './BackButton' const Credits = ({props}) => { return ( <div> <div className="section"> <div className="section-title"> Credits </div> </div> <div className="section"> Source code in &nbsp;<a href="https://github...
demo/component/LineChart.js
sdoomz/recharts
import React from 'react'; import CustomLineDot from './CustomLineDot'; import { changeNumberOfData } from './utils'; import { ResponsiveContainer, LineChart, Line, XAxis, YAxis, ReferenceLine, ReferenceDot, Tooltip, CartesianGrid, Legend, Brush } from 'recharts'; const data = [ { name: 'Page A', uv: 400, pv: 2400...
src/components/featureDashboard/FeatureDashboardForm.js
RanjithNair/FeatureTracker
import React from 'react'; import classNames from 'classnames'; import moment from 'moment'; function getFormattedTime(value) { return moment(value).format("MM-DD-YYYY HH:mm:ss"); } function generateRows(data, onChange) { let rows = []; for(let item in data) { var rowClass = classNames({ 'comp...
js/containers/App.js
alrighty/recoub
import React from 'react'; import {Provider} from 'react-redux'; import configureStore from '../store/configureStore'; import Home from '../components/Home'; import {renderDevTools} from '../utils/devTools'; const store = configureStore(); export default React.createClass({ render() { return ( <div> ...
app/src/containers/App.js
oh-my-github/yo-omg-basic
import React from 'react' import { bindActionCreators, } from 'redux' import { connect, } from 'react-redux' import * as ActionCreators from '../actions/ActionCreators' import Header from '../components/Header' import MainTabs from '../components/MainTabs' import Footer from '../components/Footer' import css from './...
src/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z"/> </SvgIcon> ); DeviceSignalCellularC...
src/demos/testing-a-geospatial-app/4-testing-actions/root.js
uber-common/vis-academy
/* global document */ import React from 'react'; import {render} from 'react-dom'; import App from './src/provider'; const Root = () => ( <div className="app-container"><App/></div> ); render(<Root />, document.body.appendChild(document.createElement('div')));
src/App.js
vlmlee/LaTeX-Preview
import React, { Component } from 'react'; import Header from './Components/Header'; import Button from './Components/Button'; import ErrorMessage from './Components/ErrorMessage'; import Footer from './Components/Footer'; import './App.css'; class App extends Component { constructor() { super(); this.state =...
packages/demos/demo/src/components/Phone/index.js
yusufsafak/cerebral
import React from 'react' import { connect } from 'cerebral/react' import { signal } from 'cerebral/tags' export default connect( { onClick: signal`clients.phoneClicked`, }, function Phone({ onClick, phone }) { return ( <a className="level-item" onClick={phone ? () => onClick({ phon...
frontend/src/components/Comments.js
Pseudonick47/sherlock
import React from 'react'; import { Link } from 'react-router'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Avatar from 'material-ui/Avatar'; import Chip from 'material-ui/Chip'; import Paper from 'material-ui/Paper'; import RaisedButton from 'material-ui/RaisedButton'; i...
react/guzhidui/components/LoginBox.js
zhangqiangoffice/zhanglemeng
import React from 'react'; const LoginBox = ({showLoginBox, username, password, changeUsername, changePassword, onSubmit, onClose, toRegister}) => { if (!showLoginBox) { return null; } return ( <div className="login_box"> <i className="icon gzdfont gzd-guanbi" onClick={onClose}></i> <div> ...
src/parser/druid/restoration/modules/features/Ironbark.js
FaideWW/WoWAnalyzer
import React from 'react'; import LazyLoadStatisticBox, { STATISTIC_ORDER } from 'interface/others/LazyLoadStatisticBox'; import { formatNumber, formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import fetchWcl from 'common/fetchWclApi'; import Analy...
components/LobbyLayout/LobbyLayout.js
marchisbogdan/licenta-front
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import LobbyHeader from './LobbyHeader'; import LobbyFooter from './LobbyFooter'; import s from './LobbyLayout.css'; class LobbyLayout extends React.Component { static propTypes = { className: PropTypes.string, }; c...
src/svg-icons/image/filter-hdr.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterHdr = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageFilterHdr = pure(ImageFilterHdr); ImageFilterHdr.displayName...
src/Slider.js
jareth/react-materialize
import React from 'react'; import cx from 'classnames'; class Slider extends React.Component { constructor() { super() this.state = {}; } componentDidMount() { let {indicators, interval, transition} = this.props; $('.slider').slider({ full_width: this.props.fullscreen, indicators, ...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Stepper/HorizontalTransition.js
pbogdan/react-flux-mui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import ExpandTransition from 'material-ui/internal/ExpandTransition'; import TextField from 'material-ui/TextField'; /*...
src/js/app/app.js
dupengdl/kickoffreact
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> <h1 className="hello">Hello, world!</h1> <div className="world">test</div> </div> ); } }
config/flow/definitions/react.js
dark-dao/strimmer-test
/* @flow */ // Note: we already have the definitions from // https://github.com/facebook/flow/blob/master/lib/react.js // so the below are merely helpful extensions import React from 'react'; declare type $React$Element = React.Element<*>; declare type $React$Node = string | number | $React$Element | Array<$React$E...
examples/todomvc/containers/TodoApp.js
sapegin/redux-devtools
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; class TodoApp extends Component { render(...
src/pages/meetups/index.js
ChicagoJS/chicagojs.org
import React from 'react' import { graphql } from 'gatsby' import get from 'lodash.get' import Layout from '../../components/Layout' import MeetupCard from '../../components/MeetupCard' const MeetupsPage = props => { const meetups = get(props, 'data.allLocalMeetupsJson.edges', []) return ( <Layout title="Local...
fluxible-router/components/Html.js
sensduo/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import ApplicationStore from '../stores/ApplicationStore'; function HtmlComponent (props) { return ( <html> <head> <me...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/PureComponent.js
JonathanUsername/flow
// @flow import React from 'react'; class MyComponent extends React.PureComponent<DefaultProps, Props, State> { static defaultProps: DefaultProps = {}; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extend...
src/pages/menu.js
absolute413/PizzaAcademy.com
import React from 'react' import Layout from '../components/layout' import { menu } from '../../content/menu.yaml' import Page from '../components/page' export default ({ location }) => ( <Layout location={location}> <Page title="Menu"> {menu.map((category, idx) => ( <table key={idx} className="t...
src/components/Snackbars/SnackbarActionButton.js
Charlie9830/pounder
import React from 'react'; import { Button } from '@material-ui/core'; const SnackbarActionButton = (props) => { if (props.text === '') { return null; } return ( <Button color={props.color} variant="text" onClick={props.onClick}> {props.text}...
docs/app/Examples/collections/Table/Variations/TableExampleInverted.js
vageeshb/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleInverted = () => { return ( <Table inverted> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Notes</...
src/icons/IosRefresh.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosRefresh extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256,48C141.1,48,48,141.1,48,256s93.1,208,208,208c114.9,0,208-93.1,208-208S370.9,48,256,48z M256,384.1 c-70.7,0...
frontend/src/screens/history/widgets/comment-modal/comment-modal.js
linea-it/qlf
import React from 'react'; import Modal from '@material-ui/core/Modal'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import { FadeLoader } from 'halogenium'; import TextField from '@material-ui/core/TextField'; import Icon from '@material-ui/core/Icon'; import QlfApi from '...
lib/cli/generators/METEOR/template/.stories/index.js
shilman/storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import Button from './Button'; import Welcome from './Welcome'; storiesOf('Welcome', module) .add('to Storybook', () => ( <Welcome showApp...
React_Router_tutorial/modules/Home.js
luongthomas/React-Portfolio
import React from 'react'; export default React.createClass({ render() { return <div>Home</div>; }, });
webapp/app/components/SaveCreation/Form/Date/index.js
EIP-SAM/SAM-Solution-Node-js
// // DateFormGroup in form for page SaveCreation // import React from 'react'; import { FormGroup, ControlLabel, HelpBlock } from 'react-bootstrap'; import DatePicker from 'components/DatePicker'; import styles from 'components/SaveCreation/styles.css'; const moment = require('moment'); /* eslint-disable react/pref...
examples/js/sort/sort-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 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 id = startId + i; products.push({ id: id, ...