path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/fade-button/fade-button-icon.js
ricsv/react-leonardo-ui
import React from 'react'; import Icon from '../icon/icon'; const FadeButtonIcon = (props) => <Icon className="lui-fade-button__icon" {...props} />; export default FadeButtonIcon;
docs/js/main.js
zebzhao/indent.js
var mode; var editor = new SpckEditor('#editor'); var tabSize = '2'; var EXAMPLES = { 'jsx:class': function () {/* class Main extends React.Component { constructor (props) { super(props); this.state = {}; } render() { return ( <div className=""> <Title label={this.props.title} /> </div> ) } } */ }, 'jsx:ant-de...
src/svg-icons/action/remove-shopping-cart.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRemoveShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.8...
web/src/Components/ListItem.js
Dinoshauer/random-wod
import React from 'react'; const ListItem = ({ item }) => ( <li className='list-group-item'> { item.amount } {' '} { item.name } </li> ); ListItem.propTypes = { item: React.PropTypes.object }; export default ListItem;
test/index.js
alan-cruz2/formsy-material-ui
/* global chai */ import 'babel-polyfill'; import React from 'react'; import sinonChai from 'sinon-chai'; import chaiEnzyme from 'chai-enzyme'; import injectTapEventPlugin from 'react-tap-event-plugin'; window.React = React; window.expect = chai.expect; chai.use(sinonChai); chai.use(chaiEnzyme()); injectTapEventPlugi...
js/components/loaders/ProgressBar.ios.js
bsusta/NativeBase-KitchenSink
import React, { Component } from 'react'; import { ProgressViewIOS } from 'react-native'; export default class ProgressBarNB extends Component { render() { const getColor = () => { if (this.props.color) { return this.props.color; } else if (this.props.inverse) { return this.getThem...
src/icons/ChevronRightIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ChevronRightIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M20 12l-2.83 2.83L26.34 24l-9.17 9.17L20 36l12-12z"/></svg>;} };
src/pages/Profile/Profile.js
analogrithems/react-sandbox
import React from 'react'; import { Row } from 'react-bootstrap'; const Profile = React.createClass({ render() { return ( <Row> <p>Profile Page</p> </Row> ) } }) export default Profile
src/templates/archive.js
jbasdf/justinball
import React from 'react' import Link from 'gatsby-link' import Layout from '../components/layout' import '../assets/scss/main.scss' import 'prismjs/themes/prism-solarizedlight.css'; const NavLink = props => { if (!props.test) { return <Link to={props.url} className={`button ${props.className}`}>{props.text}</...
packages/icons/src/randomize.js
geek/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg vie...
src/components/common/Navigation/NavLink.js
anztrax/simple-image-server-frontend
import React from 'react'; import { Link } from 'react-router'; export default class NavLink extends React.Component{ constructor(props){ super(props); } render(){ return ( <Link {...this.props} /> ) } }
src/components/StyleWrapper/StyleWrapperReadonly.js
chengjianhua/templated-operating-system
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { inject } from 'mobx-react'; /* eslint react/prop-types: ['error', { ignore: ['stylesStore'] }] */ @inject('stylesStore') export default class StyleWrapperReadonly extends Component { static propTypes = { // eslint-disable-next...
client/src/core-components/input.js
ivandiazwm/opensupports
import React from 'react'; import classNames from 'classnames'; import _ from 'lodash'; import Icon from 'core-components/icon'; class Input extends React.Component { static contextTypes = { loading: React.PropTypes.bool }; static propTypes = { value: React.PropTypes.string, vali...
app/containers/RepoListItem/index.js
ninjaref/ninjaref
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } fro...
src/Col.js
tonylinyy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
js/index.js
kortv/react-sort-and-search
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
ajax/libs/react-instantsearch/3.2.0/Dom.js
jdh8/cdnjs
/*! ReactInstantSearch 3.2.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
Libraries/ListView/ScrollResponder.web.js
brainpoint/citong-react-web
/** * Copyright (c) 2015-present, Alibaba Group Holding Limited. * All rights reserved. * * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * @providesModule ReactScrollResponder * @flow */ 'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import warning from 'fbjs...
src/containers/Home/Home.js
prakash-u/react-redux
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; import config from 'config'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; @connect(state => ({ online: state.online...
docs/client/components/pages/Video/CustomAddVideoVideoEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; import createVideoPlugin from 'draft-js-video-plugin'; import VideoAdd from './VideoAdd'; import editorStyles from './editorStyles.css'; const videoPlugin = createVideoPlugin(); const plugin...
src/interface/others/RestorationShamanSpreadsheet.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import PrePotion from 'parser/shared/modules/items/PrePotion'; import BaseHealerStatValues from 'parser/shared/modules/features/BaseHealerStatValues'; im...
examples/src/components/SelectedValuesField.js
SenecaSystems/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var SelectedValuesField = React.createClass({ displayName: 'SelectedValuesField', propTypes: { allowCreate: React.PropTy...
src/App.js
gambleros/bodyShredCal
import React, { Component } from 'react'; import TodoList from './TodoList'; // import reqwest from 'reqwest'; import Nav from './Nav'; import _ from 'lodash'; import Firebase from 'firebase'; export default class App extends Component { constructor() { super(); this.state={todoList: [],show:true} this....
website/irulez/src/components/admin_menu/fields/GroupField.js
deklungel/iRulez
import React, { Component } from 'react'; import ValueService from './../ValueService'; import SelectionField from './SelectionField'; class GroupField extends Component { valueService = new ValueService(); state = { options: [] }; componentDidMount() { this.getData(); } getData() { ...
src/js/components/NavigationTop/NavigationTop.js
soundchain/soundchain-frontend
import React, { Component } from 'react'; import cx from './NavigationTop.scss'; export default class NavigationTop extends Component { render() { return ( <div className={cx('navigation-top')}> NavigationTop </div> ); } }
docs/app/Examples/collections/Grid/Variations/GridExampleColoredRow.js
koenvg/Semantic-UI-React
import _ from 'lodash' import React from 'react' import { Grid } from 'semantic-ui-react' const colors = [ 'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black', ] const GridColoredRowExample = () => ( <Grid padded> {colors.map(color => ( <Gr...
src/js/app/index.js
ludonow/ludo-beta-react
import React from 'react'; import ReactDOM from 'react-dom'; import ReactGA from 'react-ga'; import AppRouter from './AppRouter'; global._babelPolyfill = false; const rwdMeta = document.createElement('meta'); rwdMeta.name = 'viewport'; rwdMeta.content = 'width=device-width, initial-scale=1.0'; const head = document.g...
app/jsx/account_course_user_search/components/CoursesPane.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js
TondaHack/create-react-app
/** * Copyright (c) 2015-present, Facebook, 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. */ import Rea...
packages/cf-component-pagination/src/PaginationItem.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'cf-component-icon'; import { combineRules, createComponent } from 'cf-style-container'; const active = ({ active, theme }) => { if (!active) return {}; return { color: theme.colorActive, borderColor: theme.borderColorActive, ...
src/server/server.js
clownba0t/3ps
"use strict"; // require("babel/register"); // Configuration files var packageInfo = require("../../package.json"); var config = require('config'); // Logging / Debug var bunyan = require('bunyan'); var debug = require('debug')(packageInfo.name); // Metrics var rollbar = require('rollbar'); require('newrelic'); //...
app/templates/src/index.js
chentsulin/generator-redux-app
import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import Root from './containers/Root'; import configureStore from './store/configureStore'; import './index.css'; const store = configureStore(); con...
client/components/Carousel/Carousel.js
Art404/platform404
/* * This carousel based off a fork of react-picture-show * https://www.npmjs.com/package/react-picture-show */ /*eslint-disable*/ import React from 'react'; import {findDOMNode} from 'react-dom'; import Swipeable from 'react-swipeable'; import cn from 'classnames'; import {support3d, getTransition} from './utils';...
src/components/TwoWayDataComplex.js
nchathu2014/reactApp
import React from 'react'; import TwoWayDataComplexHelper from './TwoWayDataComplexHelper'; export default class TwoWayDataComplex extends React.Component{ constructor(){ super(); this.state={ data:"Nuwan" } } _updateState(event){ this.setState({ data:event.target.value }) } render(){ return(...
app/components/packages/item/PackageItem.js
rvpanoz/luna
import React from 'react'; import cn from 'classnames'; import { useRef } from 'react'; import { withStyles } from '@material-ui/core/styles'; import { bool, objectOf, object, string, func, oneOfType } from 'prop-types'; import Typography from '@material-ui/core/Typography'; import TableCell from '@material-ui/core/Tab...
ui/src/main/js/components/TaskConfig.js
medallia/aurora
import React from 'react'; export default function TaskConfig({ config }) { return <pre>{JSON.stringify(config, null, 2)}</pre>; }
src/layouts/CoreLayout/AppLeftNav.js
kkanzelmeyer/project-dashboard
import React from 'react'; import { connect } from 'react-redux'; import LeftNav from 'material-ui/lib/left-nav'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import { SelectableContainerEnhance } from 'material-ui/lib/hoc/selectable-enhance'; import Theme from ...
admin/client/components/Popout/PopoutList.js
wmertens/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutList = React.createClass({ displayName: 'PopoutList', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, }, render () { const className = classnames('PopoutList...
examples/real-world/index.js
leolujuyi/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
app/components/Footer/index.js
boogunote/mevoco-client
import React from 'react'; import messages from './messages'; import A from 'components/A'; import styles from './styles.css'; import { FormattedMessage } from 'react-intl'; import LocaleToggle from 'containers/LocaleToggle'; function Footer() { return ( <footer className={styles.footer}> <section> ...
src/pages/App.js
branch-bookkeeper/pina
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { partial } from 'ramda'; import { withStyles } from '@material-ui/styles'; import { Route, Switch } from 'react-router-dom'; import { GITHUB_ACCESS_TOKEN } from '../constants/localStorageKeys'; import { entitiesShape, requestsShape }...
src/ui/router/routes.js
Eeltech/SpaceMusik
// Modules import React from 'react'; import { Route, IndexRedirect } from 'react-router'; // Actions import AppActions from '../actions/AppActions'; // Components import App from '../components/App.react'; import Library from '../components/Library/Library.react'; import Playlists from '../components/Playlis...
src/App.js
WorksWebsites/caozhehui
import React, { Component } from 'react'; import IndexPage from './Home'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <IndexPage /> </div> ); } } export default App;
src/modules/radioType/index.js
zcfreestyle/moment-react
/** * Created by dllo on 17/8/24. */ import React from 'react' import ReactDOM from 'react-dom' import App from './App' import '../../assets/styles/read.styl' import '../../assets/styles/transceiver.styl' import '../../assets/styles/Footer.styl' import '../../assets/styles/Up.styl' ReactDOM.render( <App />, docum...
src/svg-icons/action/help-outline.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHelpOutline = (props) => ( <SvgIcon {...props}> <path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c...
src/svg-icons/maps/local-mall.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMall = (props) => ( <SvgIcon {...props}> <path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3...
react-flux-mui/js/material-ui/src/svg-icons/action/done-all.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDoneAll = (props) => ( <SvgIcon {...props}> <path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4...
src/mixins/ReactDOM.js
Yuripetusko/react-slick
import React from 'react'; import ReactDOM14 from 'react-dom'; var ReactDOM = (React.version >= '0.14.0') ? ReactDOM14: React; export default ReactDOM;
src/components/Meeting.js
openbasement/openbasement
import { connect } from 'react-redux'; import React from 'react'; import mapDispatchToProps from '../actions'; import { mapStateToProps } from '../model/state'; import JournalEntryContent from './JournalEntryContent'; import JournalEntryTime from './JournalEntryTime'; @connect(mapStateToProps, mapDispatchToProps) exp...
App/Navigation/Navigator.js
taskrabbit/ReactNativeSampleApp
import React from 'react'; import { NavigationExperimental, } from 'react-native'; import AppActions from '../Actions/AppActions'; const { StateUtils: NavigationStateUtils, } = NavigationExperimental; var Navigator = function() { this.stack = null; }; Navigator.prototype.setStack = function(stack) { this.st...
examples/react-router/app/views/layout.js
leobauza/microcosm
import React from 'react' import Switch from 'react-router-dom/Switch' import Route from 'react-router-dom/Route' import Presenter from 'microcosm/addons/presenter' import ListIndex from './lists/index' import ListShow from './lists/show' import NotFound from './errors/notfound' class Application extends Presenter { ...
blueocean-material-icons/src/js/components/svg-icons/image/panorama-wide-angle.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImagePanoramaWideAngle = (props) => ( <SvgIcon {...props}> <path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12c0-1.78.24-3.58.71-5.36C7.29 6.2 ...
common/routes/Main/containers/Header.js
kuguarpwnz/musix
import React from 'react'; import { connect } from 'react-redux'; import { getCurrentTrackTitle } from '../reducers/tracks'; import Search from './Search'; import ControlsContainer from './ControlsContainer'; import { Toolbar, ToolbarGroup, ToolbarTitle } from 'material-ui/Toolbar'; import { cyan500, white } from 'mat...
examples/js/sort/demo.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ require('./style.css'); import React from 'react'; import SortTable from './sort-table'; import MultiSortTable from './multi-sort-table'; import DefaultSortTable from './default-sort-table'; import ExternalSort from './manage-sort-external-table'; import CustomSortTable from './custom-sort-table...
app/components/Footer/index.js
fenderface66/spotify-smart-playlists
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
resources/js/react/Ribbon.js
chekun/spore
import React from 'react'; class Ribbon extends React.Component { constructor(props) { super(props) } render() { return ( <a href={this.props.repo}> <img className="ribbon" src="/public/assets/ribbon.png" alt="Fork me on Github" /> </a> ); } } export defaul...
wisewit_front_end/node_modules/react-router/modules/Redirect.js
emineKoc/WiseWit
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should ...
test/unit/testHelper.js
Chandransh/music-player
import jq from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import createHistory from 'history/lib/createBrowserHistory'; import {...
src/components/Plot.js
nickooms/racing-webgl2
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import fetch from 'isomorphic-fetch'; import muiThemeable from 'material-ui/styles/muiThemeable'; import AppBar from 'material-ui/AppBar'; import Drawer from 'material-ui/Drawer'; import { Card, CardTitle, CardMedia } from 'material-ui/Card';...
Components/RoomInfo.js
colm2/mizen
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, DeviceEventEmitter, ActivityIndicator } from 'react-native'; import { connect, Provider } from 'react-redux'; import NearbyInfo from './NearbyInfo'; import ProjectList from './ProjectList'; export class RoomInfo2 e...
src/components/common/Spinner.js
brianyamasaki/rideshare
import React from 'react'; import { View, ActivityIndicator } from 'react-native'; const Spinner = ({ size }) => { return ( <View style={styles.spinnerStyle}> <ActivityIndicator size={size || 'large'} /> </View> ); }; const styles = { spinnerStyle: { flex: 1, justifyContent: 'center', ...
client/app/scripts/charts/node-networks-overlay.js
kinvolk/scope
import React from 'react'; import { scaleBand } from 'd3-scale'; import { List as makeList } from 'immutable'; import { connect } from 'react-redux'; import { getNetworkColor } from '../utils/color-utils'; import { NODE_BASE_SIZE } from '../constants/styles'; // Min size is about a quarter of the width, feels about r...
src/containers/views/DocumentEdit.js
jekyll/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory, withRouter } from 'react-router'; import { HotKeys } from 'react-hotkeys'; import _ from 'underscore'; import DocumentTitle from 'reac...
src/components/group/BaseGroup.js
redux-autoform/redux-autoform-material-ui
import React from 'react'; import PropTypes from 'prop-types'; import propTypes from '../../util/GroupPropTypes'; import VerticalComponent from '../common/VerticalComponent'; import HorizontalComponent from '../common/HorizontalComponent'; export default class BaseGroup extends React.Component { static propTypes ...
node_modules/react-bootstrap/es/Fade.js
ProjectSunday/rooibus
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classNames from 'classnames'; import React fr...
src/svg-icons/device/data-usage.js
pradel/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...
addons/themes/prologue/layouts/Single.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import scrollToElement from 'scroll-to-element'; import NavPanel from '../includes/NavPanel'; let Home = React.createClass({ component...
webClient/containers/Blocks.js
GContaldi/water-my-plants
import React from 'react'; import _ from 'underscore'; import { connect } from 'react-redux'; import Block from '../components/Block'; const propTypes = { blocks: React.PropTypes.object.isRequired }; const mapStateToProps = (state) => { return { blocks: _.groupBy(state.instantReads, (component) => component.b...
docs/app/Examples/elements/List/Variations/ListExampleRelaxed.js
vageeshb/Semantic-UI-React
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleRelaxed = () => ( <List relaxed> <List.Item> <Image avatar src='http://semantic-ui.com/images/avatar/small/daniel.jpg' /> <List.Content> <List.Header as='a'>Daniel Louise</List.Header> <List.Des...
src/components/parts/Table.js
Secunda/colorgame
import React from 'react' import TableRow from './TableRow' const Table = (props) => { return( <div className='game-container'> { [...new Array(props.rows)].map((val, i) => { if (typeof props.matrix[i] !== "undefined") { return <TableRow cols={props....
eventkit_cloud/ui/static/ui/app/components/Notification/NotificationsTable.js
venicegeo/eventkit-cloud
import PropTypes from 'prop-types'; import React from 'react'; import { withTheme } from '@material-ui/core/styles'; import withWidth, { isWidthUp } from '@material-ui/core/withWidth'; import Checkbox from '@material-ui/core/Checkbox'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/cor...
client/index.js
richchurcher/baata
import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' import { applyMiddleware, compose, createStore } from 'redux' import thunkMiddleware from 'redux-thunk' import reducers from './reducers' import App from './components/App' let store = createStore(reducers, compose( appl...
src/components/home/index.js
OpenChemistry/mongochemclient
import React, { Component } from 'react'; import withStyles from '@material-ui/core/styles/withStyles'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import Card from '@material-ui/core/Card'; import Paper from '@material-ui/core/Paper'; import Button from '@materia...
logspace-frontend-new/src/main/agents/components/Header.react.js
Indoqa/logspace
/* * Logspace * Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved. * This program and the accompanying materials are made available under the terms of * the Eclipse Public License Version 1.0, which accompanies this distribution and * is available at http://www.eclipse.org/legal/epl-...
node_modules/react-native/Libraries/Image/Image.ios.js
15chrjef/mobileHackerNews
/** * Copyright (c) 2015-present, Facebook, 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. * * @provides...
packages/plugins/i18n/admin/src/components/CMEditViewInjectedComponents/CMEditViewLocalePicker/Bullet.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; import styled from 'styled-components'; import { pxToRem } from '@strapi/helper-plugin'; import { getTrad } from '../../../utils'; const statusMap = { 'did-not-create-locale': { backgroundColor: 'neutral0', b...
src/NavBar.js
PlexChat/mobx-navigation
import React from 'react'; import { Button, Image, Platform, Text, TouchableOpacity, View, ViewPropTypes, } from 'react-native'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; @observer class BackButton extends React.Component { get contents() { if (this.props.left) { ...
Form.js
malsapp/react-native-maformvalidation
import React from 'react'; import { View, } from 'react-native'; import _ from 'lodash'; class Form extends React.Component { static propTypes = { children: React.PropTypes.arrayOf(React.Component).isRequired, }; constructor(props) { super(props); } validatorRefs = []; validate() { retur...
node_modules/react-native-form-generator/src/lib/SwitchComponent.js
tedsf/tiptap
'use strict'; import React from 'react'; let { View, StyleSheet, Text, Switch} = require('react-native'); import {Field} from './Field'; export class SwitchComponent extends React.Component{ constructor(props){ super(props); this.state = { value: props.value, } } handleLayoutChange(e){ le...
server/priv/js/components/BenchNav.react.js
avasenin/mzbench
import React from 'react'; class BenchNav extends React.Component { render() { const tabs = { overview: "Overview", scenario: "Scenario", reports: "Reports", logs: "Logs" }; return ( <ul className="nav nav-tabs bench-nav"> ...
src/svg-icons/av/forward-30.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward30 = (props) => ( <SvgIcon {...props}> <path d="M9.6 13.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.1-.2-.1h-.5s-.1.1-.2.1-.1.1-.1.2v.2h-1c0-.2 0-.3.1-.5s.2-.3.3-.4.3-.2.4-.2.4-.1.5-.1c.2 0 .4...
src/backward/Widgets/Content.js
sampsasaarela/NativeBase
import React, { Component } from 'react'; import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; import NativeBaseComponent from '../Base/NativeBaseComponent'; clas...
packages/react-error-overlay/src/containers/RuntimeError.js
ro-savage/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 { ...
src/components/DropdownHighlight/DropdownHighlight.js
auth0/web-header
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames/bind'; import styles from './DropdownHighlight.styl'; const cx = styles::classNames; const DropdownHighlight = ({ data, parentClass, closeDropdowns }) => <div className={cx({ highlight: parentClass !== 'moreD...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Row.js
JamieMason/npm-cache-benchmark
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 ...
test2/src/main.js
fengnovo/webpack-react
import React from 'react' import ReactDOM from 'react-dom' // import Redux from 'redux' // import ReactRedux from 'react-redux' import { createStore } from 'redux' import { Provider,connect } from 'react-redux' import Jisuanqi from './Jisuanqi' const JIA = {type: 'jia'} const JIAN = {type: 'jian'} let jisuanqi = (st...
src/components/common/Footer.js
DarylRodrigo/DarylRodrigo.github.io
import React from 'react'; import londonSkyline from '../../images/londonSkyline.jpg'; import '../../assets/sass/main.scss'; const Footer = () => ( <footer id="footer"> <div id="line-parent"> <div id="line"></div> <center> <img className="footer-image" src={londonSkyline}...
src/components/DemoButton.js
vivaxy/react-scaffold
/** * @since 2016-07-31 18:44 * @author vivaxy */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button } from 'react-pianist/Button'; export default class extends Component { static propTypes = { buttonDisabled: PropTypes.bool.isRequired, onLoadMore: Pr...
docs/src/stories/BigData/index.js
dowjones/react-dropdown-tree-select
import React from 'react' import DropdownTreeSelect from '../../../../src' import './index.css' import bigData from './big-data.json' const onChange = (curNode, selectedNodes) => { console.log('onChange::', curNode, selectedNodes) } const onAction = (node, action) => { console.log('onAction::', action, node) } c...
templates/rubix/demo/src/routes/C3js.js
jeffthemaximum/jeffline
import React from 'react'; import { Row, Col, Panel, PanelBody, PanelContainer, } from '@sketchpixy/rubix'; class ChartContainer extends React.Component { render() { return ( <PanelContainer> <Panel> <PanelBody style={{padding: 25}} className='text-center'> <h4>{thi...
packages/react-error-overlay/src/components/CodeBlock.js
christiantinauer/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 { redTransparent, yellowTransparent } from '../styles'; const _preStyle = { display: 'b...
app/index.js
BryanIams/foil-client
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Ro...
source/renderer/index.js
o-evin/glacier-console
import React from 'react'; import ReactDOM from 'react-dom'; import thunkMiddleware from 'redux-thunk'; import {remote} from 'electron'; import {Provider} from 'react-redux'; import {createMemoryHistory} from 'history'; import {createStore, applyMiddleware} from 'redux'; import {ConnectedRouter, routerMiddleware} from...
src/App.js
eskab/First-React-App
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchTodos } from './actions/todos'; import Spinner from './containers/Spinner'; import TodoAddForm from './containers/TodoAddForm'; import TodoList from './containers/TodoList'; import Footer from './components/Footer'; class ...
src/App.js
crazyskateface/Gallery
import React from 'react'; import logo from './logo.svg'; import './App.css'; function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Best react app </p> <a className="App-link...
app/javascript/mastodon/features/notifications/components/column_settings.js
mhffdq/mastodon
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...
example/examples/CustomTiles.js
hzdg/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView, { MAP_TYPES, PROVIDER_DEFAULT } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4...
src/sources/soundcloud/Player.js
welovekpop/uwave-web-welovekpop.club
import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import createDebug from 'debug'; import { translate } from 'react-i18next'; import Paper from '@material-ui/core/Paper'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; impor...
src/index.js
GoldStarPDX/GoldStar
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './app/App'; import registerServiceWorker from './registerServiceWorker'; import { Provider } from 'react-redux'; import store from './store/index'; ReactDOM.render( <Provider store={store}> <App /> </Provider>,...
frontend/source/Main.js
saylua/SayluaV2
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import sayluaStore from 'services/store'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import SayluaView from 'shared/SayluaView'; import Newspaper from 'modules/General/Newspaper'; import Stati...