path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/routes.js
mattyao1984/react-redux-starterkit
import React from 'react'; import {Route} from 'react-router'; import App from './App'; import HomePage from './containers/HomePage/HomePage'; import ErrorPage from './containers/404/ErrorPage'; export default ( <Route component={App}> <Route path="/" component={HomePage} /> <Route path="*" component={ErrorP...
packages/material-ui-icons/src/SignalWifi3BarLock.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SignalWifi3BarLock = props => <SvgIcon {...props}> <path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-.3-4...
src/React/Viewers/Probe3DViewer/index.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactViewers/Probe3DViewer.mcss'; import AbstractViewerMenu from '../AbstractViewerMenu'; import LineChartViewer from '../LineChartViewer'; import LookupTableManagerControl from '../../CollapsibleControls/LookupTableManagerCont...
src/index.js
ge6285790/test
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; class Main extends Component { render() { return ( <div>Main2</div> ); } } ReactDOM.render(<Main />, document.getElementById('root'));
src/components/Footer.js
pshrmn/cryptonite
import React from 'react'; import 'scss/footer.scss'; export default function Footer(props) { return ( <footer> <div className='container'> made by <a href='http://www.pshrmn.com'>pshrmn.com</a> </div> </footer> ); }
public/client/routes/passReset/containers/passReset.js
nearform/concorda-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {reduxForm} from 'redux-form' import {pushPath} from 'redux-simple-router' import {getPasswordReset} from '../../../modules/user/actions/index' import {validateGetPassReset} from '../../../lib/validations' export let PasswordReset = ...
packages/@lyra/form-builder/src/inputs/BlockEditor/Toolbar/InsertMenu.js
VegaPublish/vega-studio
// @flow import type {Type, SlateChange, SlateValue} from '../typeDefs' import React from 'react' import DropDownButton from 'part:@lyra/components/buttons/dropdown' import {FOCUS_TERMINATOR} from '../../../utils/pathUtils' import {insertBlockObject, insertInlineObject} from '../utils/changes' type Props = { bloc...
app/javascript/mastodon/features/domain_blocks/index.js
blackle/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
app/containers/DevTools.js
3-strand-code/3sc-desktop
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' defaultIsVisible={false} ...
packages/app/app/components/PluginsView/UserPluginsSection/Warning/index.js
nukeop/nuclear
import React from 'react'; import { Icon, Message } from 'semantic-ui-react'; import { withTranslation } from 'react-i18next'; import styles from './styles.scss'; const Warning = ({t}) => { return ( <Message warning className={styles.plugins_warning}> <Message.Header> <Icon name='warning sign' /> ...
test/js/release_test/ViroShadowTest.js
viromedia/viro
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, } from 'react-native'; import { ViroSceneNavigator, ViroScene, ViroARScene, ViroBox, ViroMaterials, ViroNode,...
docs/src/sections/ThumbnailSection.js
dozoisch/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 ThumbnailSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
packages/node_modules/@ciscospark/react-component-activity-post-action/src/index.js
Altocloud/alto-react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Button from '@ciscospark/react-component-button'; import styles from './styles.css'; export default function ActivityPostAction(props) { return ( <div className={classNames(`ciscospark-post-action-item`, ...
webapp/app/components/RadioGroup/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component to wrap a list of react-bootstrap radio button // import React from 'react'; import { Radio } from 'react-bootstrap'; /* eslint-disable react/prefer-stateless-function */ export default class RadioGroup extends React.Component { constructor(props) { super(props); this.state = { button:...
tests/react_modules/es6class-proptypes-module.js
ForbesLindesay/flow
/* @flow */ import React from 'react'; class Hello extends React.Component<void, {name: string}, void> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): React.Element<*> { return <div>{this.props.name}</div>; } } module.exports = Hello;
examples/huge-apps/routes/Messages/components/Messages.js
ThibWeb/react-router
import React from 'react'; class Messages extends React.Component { render () { return ( <div> <h2>Messages</h2> </div> ); } } export default Messages;
src/pages/activity/Cell.js
zzelune/neam
import React, { Component } from 'react'; import { Image, View, StyleSheet, FlatList, ActivityIndicator, TouchableOpacity, Modal } from 'react-native'; import { Container, Header, Left, Body, Right, Button, Title, Text } from 'native-base'; import Icon from 'react-native-vector-icons/Ionicons'; import common from '../....
generators/form/templates/_main-redux-form.js
prescottprue/generator-react-firebase
<% if (hasPropTypes) { %>import React from 'react' import PropTypes from 'prop-types'<% } else { %>import React, { PropTypes } from 'react'<% } %> import { Field } from 'redux-form' import { TextField } from 'redux-form-material-ui' import Button from '@material-ui/core/Button'<% if (addStyle && styleType === 'scss') {...
examples/async/index.js
f/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
docs/src/pages/demos/selects/MultipleSelect.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Input, { InputLabel } from 'material-ui/Input'; import { MenuItem } from 'material-ui/Menu'; import { FormControl } from 'material-ui/Form'; import { ListItemText } from 'material-ui/List'; import Sele...
src/components/YtrackApp.js
yakirn/YTrack
'use strict'; import React from 'react'; import ReactTransitionGroup from 'react-addons-transition-group'; // CSS require('normalize.css'); require('../styles/main.scss'); import Header from './Header'; var Router = require('react-router'); var YtrackApp = React.createClass({ render: function() { return ( ...
blueocean-material-icons/src/js/components/svg-icons/communication/vpn-key.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationVpnKey = (props) => ( <SvgIcon {...props}> <path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/> </SvgIcon> ); Co...
frontend/src/components/ChatContainer.js
grwn/Project-5-6
import React, { Component } from 'react'; import { COMMUNITY_CHAT, MESSAGE_RECIEVED, MESSAGE_SENT, TYPING, PRIVATE_MESSAGE } from '../chat-server/Events' import { User } from '../chat-server/Factories' import Messages from './Messages' import MessageInput from './MessageInput' import ChatHeading from './ChatHeading' im...
app/javascript/mastodon/containers/mastodon.js
robotstart/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { refreshTimelineSuccess, updateTimeline, deleteFromTimelines, refreshTimeline, connectTimeline, disconnectTimeline } from '../actions/timelines...
src/components/search_bar.js
qdvu124/quas
import React from 'react'; class SearchBar extends React.Component { constructor(props) { super(props); this.state = {term: ''}; this.onInputChange = this.onInputChange.bind(this); } render() { return ( <div className="search-bar"> <input ...
src/components/HeaderBar/CurrentDJ.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; const CurrentDJ = ({ t, className, dj }) => ( <div className={className}> {t('booth.currentDJ', { user: dj.username })} </div> ); CurrentDJ.propTypes = { t: PropTypes.func.isRequired, className: PropT...
node_modules/react-bootstrap/es/MediaListItem.js
hsavit1/gosofi_webpage
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-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
templates/frontOffice/modern/components/React/PhoneCheck/index.js
lopes-vincent/thelia
import 'react-phone-number-input/style.css'; import PhoneInput, { isValidPhoneNumber } from 'react-phone-number-input'; import { useAddressQuery, useAddressUpdate } from '@openstudio/thelia-api-utils'; import Alert from '../Alert'; import React from 'react'; import { parsePhoneNumber } from 'react-phone-number-in...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
verniy6462/mastodon
import React from 'react'; import Dropdown, { DropdownTrigger, DropdownContent } from 'react-simple-dropdown'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; const messages = defineMessages({...
src/Assignments/AddAssignment/ExamModal.js
esharp054/SwimmingFishWeb
import React from 'react'; import Modal from 'react-modal'; import ExamForm from './ExamForm'; import FlatButton from 'material-ui/FlatButton'; const styles = { content: { top: '50%', left: '50%', right: 'auto', // bottom: '-20%', marginRight: '-50%', transform: 'tra...
src/components/groups/GroupShowsView.js
mg4tv/mg4tv-web
import React from 'react' const GroupShowsView = () => ( <div/> ) export default GroupShowsView
assets/js/components/forms/buttonInput.js
joshgagnon/sailjs-webpack-base
"use strict"; import React from 'react'; import {ButtonInput} from 'react-bootstrap'; export default ButtonInput; /* export default class ButtonInput extends React.Component { render(){ return <div className="form-group"> <input type={this.props.type} name={this.props.ref} label={this.props.la...
src/routes/home/index.js
samdenicola/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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'; impo...
src/scenes/home/404/fourOhFour.js
sethbergman/operationcode_frontend
import React from 'react'; import styles from './fourOhFour.css'; const FourOhFour = () => ( <div className={styles.FourOhFour}> <div className={styles.bg}> <h1 className={styles.title}>404!</h1> <p className={styles.paragraph}>You definitely weren&apos;t supposed to see this...</p> </div> </di...
modules/Brush.js
wuct/a4
import React from 'react' import R from 'ramda' import createPath from './utils/createPath' import { translate } from './utils/translate' import Dragable from './Dragable' import BrushSelection from './BrushSelection' import emptyFunction from './utils/emptyFunction' const { max, min } = Math const styles = { curso...
app/javascript/mastodon/features/ui/components/boost_modal.js
mhffdq/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; import StatusContent from '../../../components/status_content'; import Av...
src/app/containers/Admin/index.js
iprignano/gelateria
import React from 'react'; import {connect} from 'react-redux'; // import {editFlavour} from 'app/store/actions'; export class Admin extends React.Component { componentDidMount() { // this.props.dispatch(editFlavour(1, {primaryName: 'ciccioBellol'})); } render() { return 'ADMIN'; } } function mapSta...
test/integration/app-aspath/pages/_app.js
flybayer/next.js
import React from 'react' import App from 'next/app' export default class MyApp extends App { // find this static async getInitialProps({ ctx }) { const { query, pathname, asPath } = ctx return { url: { query, pathname, asPath } } } render() { const { Component, url } = this.props return <Com...
src/@ui/TabView/index.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { Dimensions, Platform } from 'react-native'; import { TabViewAnimated, SceneMap } from 'react-native-tab-view'; import { branch, compose, withProps, withState, setPropTypes, defaultProps } from 'recompose'; import isFunction from 'lodash/isFunction'...
submissions/tonyhu/src/views/App.react.js
sensduo/flux-challenge
import React from 'react'; import JediContainer from '../containers/JediContainer.react.js' import WorldContainer from '../containers/WorldContainer.react.js' export default class App extends React.Component { render() { return ( <div className="app-container"> <div className="css-root"> ...
web/src/server/components/lists/project-list.js
opendaylight/spectrometer
/** # @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0> ############################################################################## # Copyright (c) 2016 The Linux Foundation and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public L...
packages/wix-style-react/src/Table/test/Table.e2eStory.js
wix/wix-style-react
/* eslint-disable react/prop-types */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { ActionCellExample } from './testExamples'; import Table from '..'; import { getTestStoryKind } from '../../../stories/storiesHierarchy'; import { storySettings } from '../docs/storySettings'; const...
docs/app/Examples/elements/Button/Variations/ButtonVerticallyAttachedExample.js
jcarbo/stardust
import React from 'react' import { Button, Segment } from 'stardust' const ButtonVerticallyAttachedExample = () => ( <div> <Button attached='top'>Top</Button> <Segment attached> <img src='http://semantic-ui.com/images/wireframe/paragraph.png' /> </Segment> <Button attached='bottom'>Bottom</Butt...
index.js
websage-team/sp-react-isomorphic
import React from 'react' import { renderToString } from 'react-dom/server' import { createMemoryHistory, RouterContext, match } from 'react-router' import { Provider } from 'react-redux' import { syncHistoryWithStore } from 'react-router-redux' import { CHANGE_LANGUAGE, TELL_ME_URL } from 'sp-base/client' import { ...
JavaScript/React/LMap/src/app/routes.js
batazor/MyExampleAndExperiments
import React from 'react' // eslint-disable-line no-unused-vars import { Route, IndexRoute } from 'react-router' import requireAutentication from './containers/AuthenticatedComponent' import { App, Home, Admin, Maps, Auth, User, Todo, NotFound } from './pages' export default ( <Route path='/' component={App}> <...
src/containers/App/index.js
yamixail/frontcamp
import React, { Component } from 'react'; import { Link } from 'react-router'; import '../../assets/less/main.less'; export default class App extends Component { render() { return ( <div className="wrapper"> <Link to="/">Main page</Link> <Link to="/articles/new">New article</Link> {this.pr...
js/components/chat/chatMessage.js
frequencyasia/website
import React from 'react'; module.exports = React.createClass({ propTypes: { user: React.PropTypes.string, message: React.PropTypes.string.isRequired, time: React.PropTypes.string.isRequired, }, render: function render() { // If no user than this is a general/global notification. if (this.p...
src/test/react/my-relay-component.js
jeswin/isotropy-browser-mode
import React from 'react'; import Relay from 'react-relay'; import MyComponent from "./my-component"; const relayComponent = Relay.createContainer( MyComponent, { fragments: { ship: () => Relay.QL` fragment on Ship { name } `, } } ); export default relayComponent;
packages/react-devtools-shared/src/devtools/views/Button.js
rricard/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * 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 Tooltip from '@reach/tooltip'; import styles from './Button.css'; import tooltipSty...
src/interface/news/Preview.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import makeUrl from './makeUrl'; class Preview extends React.PureComponent { static propTypes = { title: PropTypes.node.isRequired, children: PropTypes.node.isRequired, image: PropTypes.string.isRequi...
website/src/containers/App.js
DTU-R3/ArloBot
import React, { Component } from 'react'; import openSocket from 'socket.io-client'; import './App.css'; import AccordionGroup from './AccordionGroup'; import Banner from '../components/Banner'; class App extends Component { constructor(props) { super(props); this.state = { webModel: { status:...
src/routes/dashboard/components/weather.js
miaoji/guojibackend
import React from 'react' import PropTypes from 'prop-types' import styles from './weather.less' function Weather ({ city, icon, dateTime, temperature, name }) { return (<div className={styles.weather}> <div className={styles.left}> <div className={styles.icon} style={{ backgroundImage: `url(${icon...
client/src/app/primitives/icon/Icon.js
camunda/bpmn-io-modeler
/** * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. * * Camunda licenses this file to you under the MIT; you may not use this ...
actor-apps/app-web/src/app/components/SidebarSection.react.js
ganquan0910/actor-platform
import React from 'react'; import { Styles, Tabs, Tab } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; import ContactsSection from 'components/sidebar/ContactsSec...
src/views/base/paginations/Paginations.js
mrholek/CoreUI-React
import React from 'react' import { CCard, CCardBody, CCardHeader, CCol, CPagination, CPaginationItem, CRow, } from '@coreui/react' import { DocsCallout, DocsExample } from 'src/components' const Paginations = () => { return ( <CRow> <CCol xs={12}> <DocsCallout name="Pagination" href="...
app/pages/landing.js
florapdx/flux-app-template
import React from 'react'; import {RouteHandler} from 'react-router'; let Landing = React.createClass({ render() { return ( <div className="my-app"> <h1>Welcome to the Landing Page</h1> <RouteHandler /> </div> ); } }); export default Lan...
src/components/PrevNext.js
DBozhinovski/beerjs.mk
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Link } from 'gatsby'; const Wrapper = styled.div` display: flex; margin: 6rem auto 0 auto; a { color: ${props => props.theme.colors.primary}; display: flex; align-items: center; } justi...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Divider/ExampleForm.js
pbogdan/react-flux-mui
import React from 'react'; import Divider from 'material-ui/Divider'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; const style = { marginLeft: 20, }; const DividerExampleForm = () => ( <Paper zDepth={2}> <TextField hintText="First name" style={style} underlineShow={fal...
src/svg-icons/image/landscape.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLandscape = (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> ); ImageLandscape = pure(ImageLandscape); ImageLandscape.displayName...
demo-react/src/datetime/Datetime.js
renhongl/Summary
import React, { Component } from 'react'; export default class DatetimeComp extends Component { constructor(props) { super(props); this.state = { time: '' } } componentDidMount() { this.timer = setInterval(() => { this.setState({ t...
scripts/components/NotFound.js
BarukhOr/cuddly-giggle-reactjs
/* Not Found */ import React from 'react'; class NotFound extends React.Component{ render(){ return( <h1>Page Not Found</h1> ) } } export default NotFound;
src/components/FormInputs/Radio.js
chaitanya1375/Myprojects
import React, { Component } from 'react'; import cx from 'classnames'; import uncheckImage from 'assets/images/radio-1.svg'; import checkImage from 'assets/images/radio-2.svg'; class Radio extends Component { componentWillReceiveProps(props) { console.log(props); } render() { let { input, l...
packages/ui-toolkit/src/styleguide/wrapper.js
geek/joyent-portal
import React from 'react'; import { ThemeProvider, injectGlobal } from 'styled-components'; import theme from '../theme'; import Base from '../base'; import { RootContainer } from '../layout'; import 'codemirror/mode/jsx/jsx'; injectGlobal` @import url('https://fonts.googleapis.com/css?family=Roboto+Mono:700,400');...
js/components/welcome/index.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { StatusBar } from 'react-native'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles fro...
packages/wix-style-react/src/DatePicker/DateInput/test/DateInput.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import Input from '../../../Input'; import DateInput from '../index'; const defaultProps = { value: new Date(0), }; const tests = [ { describe: 'DateInput', its: [ { it: 'variations', story: () => ( <...
app/javascript/mastodon/features/ui/components/tabs_bar.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; export const links = [ <NavLink className='tabs-bar...
examples/todomvc/components/TodoTextInput.js
zalmoxisus/redux-devtools-extension
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; class TodoTextInput extends Component { constructor(props, context) { super(props, context); this.state = { text: this.props.text || '' }; } handleSubmit(e) { const text = e.t...
app/containers/SignIn/index.js
Oscar-21/austin-conder
/* * * SignIn * */ import React from 'react'; import Helmet from 'react-helmet'; import Responsive from 'react-responsive'; import ArticleStyle from 'components/ArticleStyle'; import RaisedButton from 'material-ui/RaisedButton'; export default class SignIn extends React.PureComponent { constructor(props) { su...
client2/src/components/rooms/menu_createRoom.js
ibulmer/Board
import React, { Component } from 'react'; import axios from 'axios'; import { Router, Link } from 'react-router'; import { Button } from 'react-bootstrap'; export default class trueMenu extends Component { constructor(props) { super(); this.state = { displayCreateBoard: false, displayJoin: false...
src/containers/Generic.js
DimensionLab/narc
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { fromAsync } from 'store/selectors' const GenericContainer = ({ loading }) => <div className={loading ? 'loading' : ''} /> GenericContainer.propTypes = { loading: PropTypes.bool, } const mapStateToProps = sta...
modules/AsyncProps.js
rackt/async-props
/*global __ASYNC_PROPS__*/ import React from 'react' import RouterContext from 'react-router/lib/RouterContext' import computeChangedRoutes from 'react-router/lib/computeChangedRoutes' const { array, func, object } = React.PropTypes function eachComponents(components, iterator) { for (var i = 0, l = components.leng...
src/display/Todos.js
bakhle/ui-app-smart-display
import React, { Component } from 'react'; import Request from 'superagent'; import _ from 'lodash'; import './Todos.css'; class Todos extends Component { constructor(props) { super(props); this.state = { todos: [] } } componentWillMount() { this.fetchTodos(); // only for first time. when...
app/javascript/mastodon/features/list_editor/index.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
examples/docs/src/Containers/LayoutGrids.js
react-material-design/react-material-design
import React from 'react'; import _ from 'lodash'; import { LayoutGrid, LayoutGridCell } from 'react-material-design'; import componentDoc from '../docs/componentDoc.json'; import Docs from '../Components/docs'; const docs = _.pickBy(componentDoc, (value, key) => _.startsWith(key, '../../components/layout-grid/')); co...
docs/app/Examples/elements/Input/Variations/InputExampleTransparent.js
shengnian/shengnian-ui-react
import React from 'react' import { Input } from 'shengnian-ui-react' const InputExampleTransparent = () => ( <Input transparent placeholder='Search...' /> ) export default InputExampleTransparent
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
winiceo/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
app/containers/ConversationsPage/Conversation.js
aaronlangford31/ruah-web
import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import _ from 'underscore'; import moment from 'moment'; import Paper from 'material-ui/Paper'; import Avatar from 'material-ui/Avatar'; import TextField from 'material-ui/TextField'; import IconButton...
clients/privacy/components/DocLinks.js
Desertsnowman/Caldera-Forms
import React from 'react'; import { Twemoji } from 'react-emoji-render'; import {ListGroup, ListGroupItem } from 'react-bootstrap' import PropTypes from 'prop-types'; /** * Shows the doc links in the Privacy settings page * * @since 1.7.2 * * @param props * @return {*} */ export const DocLinks = (props) => { ...
react/boiling_calculator/src/components/TemperatureInput.js
greganswer/devnotes
import React, { Component } from 'react'; const scaleNames = { c: 'Celsius', f: 'Fahrenheit' }; class TemperatureInput extends Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); } handleChange(e) { this.props.onTemperatureChange(e.target.value); } ...
ui/shared/utils/constants.js
macarthur-lab/xbrowse
import React from 'react' import { Form } from 'semantic-ui-react' import orderBy from 'lodash/orderBy' import flatten from 'lodash/flatten' import { validators } from '../components/form/ReduxFormWrapper' import { BooleanCheckbox, RadioGroup, Dropdown, InlineToggle, Pagination, BaseSemanticInput } from '../components...
app/javascript/mastodon/components/button.js
hyuki0000/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
client/pages/Chatt.js
homanbromand/node-react-bootstrap
import React from 'react' export default class Chatt extends React.Component { render() { return ( <div class="bb-page bb-page-chatt"> <h1 class="bb-h1">Chatt</h1> <p>Chatt content..</p> </div> ) } }
app/containers/FeaturePage/index.js
rajeshbhatt/shopping-cart-redux
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
information/blendle-frontend-react-source/app/components/navigation/DefaultNavigationUserDropdown/index.js
BramscoChill/BlendleParser
import React from 'react'; import { string, func, bool } from 'prop-types'; import { formatCurrency, translate } from 'instances/i18n'; import { NavigationUserDropdown, DropdownOptionGroup, DropdownOption, Label } from '@blendle/lego'; import Link from 'components/Link'; import PremiumUpsellOption from './PremiumUpsell...
src/Flags/Germany.js
runjak/css-flags
// @flow import React from 'react'; import LinearFlag from './LinearFlag'; import gradient from '../utils/gradient'; const black = '#000000'; const red = '#DE0000'; const yellow = '#FFCF00'; export default function Germany() { return ( <LinearFlag gradient={`${gradient([black, red, yellow])}`} /> )...
react/index.web.js
gpolitis/jitsi-meet
/* global APP */ import React from 'react'; import ReactDOM from 'react-dom'; import { App } from './features/app/components'; import { getLogger } from './features/base/logging/functions'; import { Platform } from './features/base/react'; import { getJitsiMeetGlobalNS } from './features/base/util'; import PrejoinApp...
src/icons/Pause.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Pause extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M224,435.8V76.1c0-6.7-5.4-12.1-12.2-12.1h-71.6c-6.8,0-12.2,5.4-12.2,12.1v359.7c0,6.7,5.4,12.2,12.2,12.2h71.6 C218.6,...
app/javascript/mastodon/features/ui/index.js
imomix/mastodon
import React from 'react'; import Switch from 'react-router-dom/Switch'; import Route from 'react-router-dom/Route'; import Redirect from 'react-router-dom/Redirect'; import NotificationsContainer from './containers/notifications_container'; import PropTypes from 'prop-types'; import LoadingBarContainer from './contain...
app/components/Select.js
henrikra/gym-diary
import React, { Component } from 'react'; import { Input } from 'react-bootstrap'; export default class Select extends Component { state = { value: this.props.value }; componentWillReceiveProps = (nextProps) => { this.setState({value: nextProps.value}); } changeSelect = (event) => { this.setState({value: ev...
src/components/Dashboard/Dashboard.js
przeor/ReactC
import React from 'react' import classes from './Dashboard.scss' export const Dashboard = (props) => { const listJSX = props.dashboard.dashboardItems.map((item, i) => { let itemJSX; if(props.editedItemIndex === i) { itemJSX = <p><b><u>{item.label}</u></b></p> } else { itemJSX = <p>{item.labe...
pages/Contact.js
amni/portfolio
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from "react-helmet" import { config } from 'config' import Profile from 'components/Profile' import Navbar from 'components/Navbar' export default class Contact extends React.Component { render () ...
src/app/components/share-panel-link.js
pashist/soundcloud-like-player
import React from 'react'; export default class SharePanelLink extends React.Component { render() { if (!this.props.track) return null; return ( <div className="share-link"> <div className="right"> <button className="share-link-button" onClick={this.p...
website/src/components/ResultsList.js
jwngr/sdow
import * as d3 from 'd3'; import React from 'react'; import LazyLoad from 'react-lazyload'; import { ResultsListHeader, PageDescription, PageImage, PageTitle, PageWrapper, PageInnerWrapper, ResultsListItemWrapper, ResultsListWrapper, ResultsListOtherPathsText, } from './ResultsList.styles'; import d...
node_modules/react-bootstrap/es/DropdownMenu.js
acalabano/get-committed
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _Array$from from 'babel-runtime/core-js/array/from'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtim...
src/app/components/Clock.js
XPRO-LTD/resource-managment-react
import React, { Component } from 'react'; import Number from './Number' class Clock extends Component { renderNumbers(second, color){ return <Number data={ second } color={ color }></Number> } render(){ return ( <div> { this.renderNumbers(this.props.seconds, thi...
src/website/app/demos/Button/common/DemoLayout.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Root from '../../common/DemoLayout'; import type { DemoLayoutProps } from '../../common/types'; const DemoLayout = (props: DemoLayoutProps) => ( <Root includeLastChild marginBottom="0.5rem" marginRight="0.5rem" {...props} /> ); export default DemoLayo...
src/pages/404.js
tehkaiyu/bananas
import React from 'react'; import Layout from '../components/Layout'; const NotFoundPage = () => ( <Layout> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ); export default NotFoundPage;
awsmobilecognitocustomui/src/auth/SignIn.js
adrianhall/blog-code
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import IconTextInput from './ui/IconTextInput'; import ModalTokenInput from './ui/ModalTokenInput'; import Wrapper from './ui/Wrapper'; import { Button } from 'react-native-elements'; import { Auth } from 'aws-amplify-react-native'; cons...
fields/types/password/PasswordFilter.js
Pop-Code/keystone
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const EXISTS_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ propTypes:...
src/containers/DataInputLayout/DataInputPanes/UMIS/WorkbookPanes/materials/OptionB.js
ecocitybuilders/urbinsight
import React from 'react' import { Input } from 'react-bootstrap' class MaterialsOptionB extends React.Component { render () { return ( <div> <h3>Option B:</h3> <Input label='Total Weight (kg):' ref='totalWeight' type='number' /> <table> <tbody> <tr> ...