path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/containers/App.js
moqada/toggline
/* @flow */ import React from 'react'; /** * App */ export default function App() { return <h1>App</h1>; }
src/svg-icons/action/swap-vert.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVert = (props) => ( <SvgIcon {...props}> <path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/> </SvgIcon> ); ActionSwapVert = pure(ActionSwapVert); ActionSwapVert.displa...
client/modules/App/components/Header/Header.js
bjoberg/social-pulse
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; // Material-ui import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import getMuiTheme from 'material-ui/styles/getM...
app/imports/ui/app/NoWeb3.js
raiden-network/raiden-token
import React, { Component } from 'react'; function NoWeb3(props) { return React.createElement('span', {}, 'No Web3.js detected. Consider using ', React.createElement('a', { href: 'https://metamask.io/', target: '_blank' }, 'MetaMask') ); } export default NoWeb3;
app/javascript/mastodon/features/standalone/community_timeline/index.js
anon5r/mastonon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandCommunityTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import ColumnHeader fr...
examples/js/shopping-list/client/components/App.js
reimagined/resolve
import React from 'react' import { renderRoutes } from 'react-router-config' import Header from './Header' const App = ({ route, children }) => ( <div> <Header title="ReSolve Shopping List Example" name="Shopping List" favicon="/favicon.png" css={['/bootstrap.min.css', '/fontawesome.min.cs...
src/containers/Asians/_components/PublishedBreakRound/Ballots/SmallBallots/Instance/BallotInstance/SpeakerDisplay.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import List, { ListItem, ListItemText } from 'material-ui/List' export default connect(mapStateToProps)(({ speaker, speakerScore, debatersById }) => <List> <ListItem dense > <ListItemText primary={`${debatersById[s...
client/js/components/MovieShowtimes.js
juliancantillo/royal-films
import React from 'react'; import CinemasList from './CinemasList' import APIServices from '../utils/APIServices' export default class MovieShowtime extends React.Component { static propTypes = { movie: React.PropTypes.string, }; constructor(props) { super(props); this.state = { functions: []...
src/index.js
jacketsu/photo-display-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
node_modules/rc-pagination/es/Pagination.js
wiflsnmo/react_study2
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PropTypes ...
src/components/Header.js
CatalystCode/azure-web-starter-template-reactjs
import React, { Component } from 'react'; import {routes} from '../routes/routes'; class Header extends Component { constructor(props) { super(props); let firstName = window.userProfile ? window.userProfile.given_name : 'N/A'; let lastName = window.userProfile ? window.userProfile.family_name : 'N...
client/src/components/Navigation/DynamicLinks.js
Velocies/raptor-ads
import React from 'react'; import { Menu } from 'semantic-ui-react'; import { Link } from 'react-router'; const DynamicLinks = ({ id, logout, location }) => { if (!id) { return ( <Menu.Menu position="right"> <Menu.Item color="green" as={Link} to="signup"> Sign Up </Menu.Item> ...
.storybook/preview.js
andrew-oxenburgh/andrew-oxenburgh.github.io
import React from 'react'; export const decorators = [ (Story) => ( <div style={{ margin: '1em' }}> <Story /> </div> ), ]; export const parameters = { actions: { argTypesRegex: "^on[A-Z].*" }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/, }, }, }
src/index.js
ludovers/FirstReactApp
import React from 'react'; import { Router, Route, Link, IndexRoute, browserHistory, applyRouterMiddleware } from 'react-router'; import ReactDOM, { render } from 'react-dom'; import { useTransitions, withTransition } from 'react-router-transitions'; import ReactCSSTransitionGroup from 'react-addons-css-transition-grou...
app/javascript/mastodon/containers/video_container.js
hyuki0000/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Video from '../features/video'; const { localeData, messages } = getLocale(); addLocaleData(localeData); export default class VideoContainer extends R...
src/containers/App.js
denichodev/personal-web
import React, { Component } from 'react'; // import PropTypes from 'prop-types'; import { BrowserRouter as Router, Route, Switch, Redirect, withRouter } from 'react-router-dom'; // import Navbar from '../components/Navbar/Navbar'; import './App.css'; import withTracker from './withTracker'; // import Home f...
src/components/Column.js
williamcabrera4/chrome-app-websocket-tester
import 'flexboxgrid'; // eslint-disable-line import React from 'react'; import PropTypes from 'prop-types'; class Column extends React.Component { generateClass() { let className = this.props.className || ''; className = this.generateClassName(className, 'xs'); className = this.generateClassName(classNam...
tech_stack/src/components/common/Card.js
haaswill/ReactNativeCourses
import React from 'react'; import { View } from 'react-native'; const Card = (props) => { return ( <View style={styles.containerStyle}> {props.children} </View> ); }; const styles = { containerStyle: { borderWidth: 1, borderRadius: 2, borderColor: '#ddd', borderBottomWidth: 0, ...
demo/uRested.Console/src/app/index.js
aaronpowell/uRested
import React from 'react'; import LoginComponent from './LoginComponent'; import ContentComponent from './ContentComponent'; import login from '../lib/login'; class App extends React.Component { constructor(props) { super(props); this.state = {}; } render() { if (!this.state.access...
src/components/articles/prevention.js
gelo592/IntegrativeMed-Site
import React from 'react' import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles'; import { colors } from '../../constants/constants'; const styles = theme => ({ para: { lineHeight: 2.2, fontSize: 17, paddingBottom: 20, color: colors.text, } }); ...
src/web/client/src/components/shared/messages-container.js
devmynd/cloud-access-manager
import React from 'react' import lodash from 'lodash' import './messages-container.scss' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' class Message extends React.Component { componentDidMount () { setTimeout(this.props.closeHandler, 10000) } render () { return ( <div cla...
nlyyAPP/component/揭盲/MLUnblinding.js
a497500306/nlyy_APP
/** * Created by maoli on 16/10/9. */ /** * Created by maoli on 16/10/9. */ /** * Created by maoli on 16/10/9. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Tou...
packages/components/src/ResourceList/Toolbar/Toolbar.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import FilterBar from '../../FilterBar'; import NameFilter from './NameFilter'; import SortOptions from './SortOptions'; import StateFilter from './StateFilter'; import { getTheme } from '../../theme'; import cssModule from './Toolbar.scss'; const theme ...
examples/huge-apps/routes/Course/components/Dashboard.js
dyzhu12/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
kavinmehta/angular
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
webapp/app/components/Restore/Filters/TypeUser/index.js
EIP-SAM/SAM-Solution-Server
// // Radio button type user filters page restore // import React from 'react'; import { ControlLabel, FormGroup, Col } from 'react-bootstrap'; import RadioGroup from 'components/RadioGroup'; import styles from 'components/Restore/Filters/styles.css'; /* eslint-disable react/prefer-stateless-function */ export defaul...
src/components/Header/Header.js
egut/react-docker-demo
/** * 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...
app/javascript/mastodon/features/ui/components/column_header.js
palon7/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func, columnHeaderId: PropTypes.string, }; handleCli...
src/svg-icons/maps/local-printshop.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPrintshop = (props) => ( <SvgIcon {...props}> <path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"...
client/containers/Project/Interface/InterfaceCol/CaseReport.js
YMFE/yapi
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Tabs } from 'antd'; const TabPane = Tabs.TabPane; function jsonFormat(json) { // console.log('json',json) if (json && typeof json === 'object') { return JSON.stringify(json, null, ' '); } return json; } const CaseReport = f...
packages/reactor-kitchensink/src/Files.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { TabPanel, Panel } from '@extjs/ext-react'; import hljs, { highlightBlock } from 'highlightjs'; // JSX syntax highlighting import 'highlightjs/styles/atom-one-dark.css'; import H_js from './H_js'; hljs.registerLanguage('js', H_js); ...
js/components/Compass/index.js
gmarty/journey
import React, { Component } from 'react'; import { /* eslint-disable no-unused-vars */ Image, Animated, DeviceEventEmitter, } from 'react-native'; import ReactNativeHeading from 'react-native-heading'; export default class Compass extends Component { constructor(props) { super(props); this.state = {...
packages/ringcentral-widgets/components/Select/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './styles.scss'; import '../../assets/DynamicsFont/DynamicsFont.scss'; // import font face export default function Select({ className, value, onChange, disabled, options, valueFunction, ...
src/js/admin/articles/filters/filter-input/filter-input.js
ucev/blog
import React from 'react' import { connect } from 'react-redux' import FilterItem, { FilterItemInput, FilterItemLabel } from '../filter-item' import { filterOptionChange } from '$actions/articles' class FilterInput extends React.Component { constructor (props) { super(props) this.change = this.change.bind(...
src/widget/nav/nav-react.js
zonghuan/xzs-amp
import React from 'react' import "./nav.less" export default React.createClass({ getInitialState(){ return { userName:'' } }, componentDidMount(){ var promise = $.ajax('/api/getUser.json') promise.done(result=>{ if(result.code===1){ this.setState({userName:result.msg.name}) ...
packages/material-ui-icons/src/Autorenew.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Autorenew = props => <SvgIcon {...props}> <path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 ...
Demo4/Container/Article.js
Quxiaolei/Study_RN
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, Image, ListView, Dimensions, Navigator, NavigatorIOS, ScrollView, ActivityIndicator, Platform, TouchableOpacity, View } from 'react-native'; // import ArticleList from './ArticleList'; import ArticleDetail from ...
frontend/src/Components/Form/PasswordInput.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import TextInput from './TextInput'; import styles from './PasswordInput.css'; // Prevent a user from copying (or cutting) the password from the input function onCopy(e) { e.preventDefault(); e.nativeEvent.stopImmediatePropagation(); } function Passwo...
docs/src/PropTable.js
leozdgao/react-bootstrap
import merge from 'lodash/object/merge'; import React from 'react'; import Label from '../../src/Label'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); function getPropsData(componentData, metadata){ let props = componentData.props || {}; i...
examples/async/containers/Root.js
tgriesser/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
docs/src/components/seo.js
apache/incubator-superset
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
src/pages/conference/room/index.js
sunway-official/acm-admin
import React, { Component } from 'react'; import { Subheader, IconButton } from 'material-ui'; import { Link } from 'react-router-dom'; import { ActionHome, HardwareKeyboardArrowRight } from 'material-ui/svg-icons'; import { graphql, compose } from 'react-apollo'; import { queries } from './helpers'; import RoomList fr...
frontend/src/components/EndPage/EndPage.js
FrancescoNegri/progetto-just-eat
'use strict'; import React from 'react'; import './EndPage.scss'; import {Link} from 'react-router'; const EndPage = () => { return (<section className="endPage"> <h1 className="page-header"> Ordine Completato</h1> <div className="container-fluid"> <p>Il tuo ordine è stato ricevuto co...
src/svg-icons/action/polymer.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPolymer = (props) => ( <SvgIcon {...props}> <path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/> </SvgIcon> ); ActionPolymer = pure(ActionPolymer); ActionPolymer.d...
webpack/components/extensions/HostDetails/DetailsTabCards/SystemPropertiesCardExtensions.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import { DescriptionListGroup, DescriptionListTerm, DescriptionListDescription, ClipboardCopy, } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; const SystemPropertiesCardExtensions = ({ hostDetails }) => ...
src/scripts/SearchHeader.js
whoisandie/yoda
'use strict'; import React from 'react'; export default React.createClass({ propTypes: { query: React.PropTypes.string.isRequired }, render() { var title = 'Search results: ' + this.props.query; return ( <div className="search-results-header"> <h3>{title}</h3> </div> ); } ...
src/server/route.js
SmallShrimp/node-tpl
import {getInitState} from './shared/util/HttpHelper'; import React from 'react'; import {Router} from 'express'; import _ from 'lodash'; import RenderHelper from 'helper/render'; import PageHandle from 'helper/page-handle'; var pageHandle = new PageHandle(); var renderHelper = new RenderHelper(); const route = new Rou...
src/components/Image/index.js
dnzhng/phlog
import React from 'react' import { useStaticQuery, graphql } from 'gatsby' import Img from 'gatsby-image' /* * This component is built using `gatsby-image` to automatically serve optimized * images with lazy loading and reduced file sizes. The image is loaded using a * `useStaticQuery`, which allows us to load the ...
public/js/app/sharedComponents/TopNav.js
fendy3002/QzQueryTools
import React from 'react' var TopNav = ({host}) => <header className="main-header"> <a href={host} className="logo"> <span className="logo-mini"><b>Qz</b>Q</span> <span className="logo-lg"><b>Qz</b>QueryTools</span> </a> <nav className="navbar navbar-static-top"> <a href="#" className=...
src/components/SideNotes.js
openbasement/openbasement
import { connect } from 'react-redux'; import React from 'react'; import mapDispatchToProps from '../actions'; import { mapStateToProps } from '../model/state'; import Notifications from './Notifications'; import Events from './Events'; import Interactions from './Interactions'; @connect(mapStateToProps, mapDispatchT...
cheesecakes/plugins/content-type-builder/admin/src/components/TableList/index.js
strapi/strapi-examples
/** * * TableList * */ import React from 'react'; import PropTypes from 'prop-types'; import { map } from 'lodash'; import { FormattedMessage } from 'react-intl'; import Button from 'components/Button'; import TableListRow from 'components/TableListRow'; import styles from './styles.scss'; class TableList extends Re...
src/index.js
tom76kimo/biblereader
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
ui/src/views/users/Login.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; import SessionStore from "../../stores/SessionStore"; class Login extends Component { static contextTypes = { router: React.PropTypes.object.isRequired }; constructor() { super(); this.state = { login: {}, registration: null, }; this.on...
consumer-react/src/App.js
felipecao/pact-sample
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { constructor() { super(); this.retrieveProducerStatus = this.retrieveProducerStatus.bind(this); this.state = { producer: { status: 'loading...', cur...
src/app/components/list/Opinion.js
cherishstand/OA-react
import React from 'react' import Header from '../public/Header' import Subheader from 'material-ui/Subheader' import RaisedButton from 'material-ui/RaisedButton' const styles = { textarea: { padding: '6px 12px', backgroundColor: '#fff', width: '100%', borderRadius: 12, border...
packages/veritone-react-common/src/components/BoundingPolyOverlay/Overlay.js
veritone/veritone-sdk
import React from 'react'; import { isNumber, isEqual, isString, findIndex, get } from 'lodash'; import memoize from 'memoize-one'; import { arrayOf, bool, string, number, shape, func, objectOf, any } from 'prop-types'; import { branch, renderNothing } from 'recompose'; import { guid } from 'helpers/gui...
src/renderers/ButtonRenderer.js
dkozar/react-data-menu
import React, { Component } from 'react'; import Dom from './../util/Dom'; var classnames = require('classnames'); export class Button extends Component { render() { var className = classnames(this.props.className, Dom.buildClassNames(this.props.classPrefix, ['menu-item-button'])), data = this...
packages/bonde-styleguide/src/navigation/DropdownItem/DropdownItem.js
ourcities/rebu-client
import React from 'react' import styled from 'styled-components' const Item = styled('a')`{ width: auto; display: block; font-family: 'Nunito Sans', sans-serif; font-size: 13px; font-weight: bold; font-stretch: normal; line-height: 1.54; letter-spacing: normal; text-align: left; color: #000000; t...
app/javascript/mastodon/components/modal_root.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import 'wicg-inert'; import { createBrowserHistory } from 'history'; import { multiply } from 'color-blend'; export default class ModalRoot extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { ...
examples/complete-todo-app/src/components/presentation/TodoList.js
mgmarlow/Redux-Samples
import React from 'react'; import Todo from './Todo'; const TodoList = ({ todos, onTodoClick }) => ( <ul> {todos.map(todo => { <Todo key={todo.id} {...todo} onClick={() => onTodoClick(todo.id)} /> })} </ul> ); export default TodoList;
src/components/trinomial/trinomial_show.js
cynthiacd/capstone-factoring-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { Field, reduxForm, reset } from 'redux-form'; import * as actions from '../../actions'; class TrinomialShow extends Component { componentDidMount() { this.props.fetchTrinomial(this.props....
src/AppContainer.js
kevinwucodes/gmail-quick-links
import React from 'react' import LinkList from './components/LinkList' import { storage, getQuickLinks, addQuickLink, removeGlobalLink, removeAccountLink, renameLink, toggleLink, GMAIL_QUICK_LINKS_NAME } from './config' import { gmailSideBar, gmailHoverSideBar, quickLinksContainer } from './gmai...
docs/src/app/components/pages/components/Stepper/GranularControlStepper.js
lawrence-yu/material-ui
import React from 'react'; import { Step, Stepper, StepButton, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; const getStyles = () => { return { root: { width: '100%', maxWidth: 700, margin: 'auto', }...
analysis/warriorarms/src/modules/talents/AngerManagement.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import { formatDuration } from 'common/format'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import SpellUsable from 'parser/shared/modules/SpellUs...
node_modules/redux-form/es/Form.js
taforyou/testtesttest-yo
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
src/esm/components/graphics/icons/link-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var LinkIcon = function LinkIcon(_ref) { var color = _ref.co...
src/components/ui-elements/Tag/Tag.js
PulseTile/PulseTile-React
import React from 'react'; export const Tag = ({ children, style, ...restProps }) => <span className={`label label-${style}`} {...restProps}>{children}</span>; export const TagList = ({ children }) => <div className="control-group">{children}</div>;
src/components/app_header.js
leapon/office-finder
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; class Header extends Component { constructor(props) { super(props); } render() { return ( <nav className="navbar navbar-light"> <Link className="navbar-brand" to={`/`} >...
authentication-hoc/src/components/app.js
alexkovalenko/react-redux-learn
import React from 'react'; import Header from './header'; export default class App extends React.Component { render() { return ( <div> <Header/> {this.props.children} </div> ) } }
src/SparklinesNormalBand.js
codevlabs/react-sparklines
import React from 'react'; import DataProcessor from './DataProcessor'; export default class SparklinesNormalBand extends React.Component { static propTypes = { style: React.PropTypes.object }; static defaultProps = { style: { fill: 'red', fillOpacity: .1 } }; render() { ...
src/index.js
garyhollandxyz/react-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App.jsx'; import './sass/style.scss'; ReactDOM.render(<App />, document.getElementById('root'));
aiohttp_admin/static/react-admin/js/utils/fields.js
aio-libs/aiohttp_admin
import React from 'react'; import { ShowField } from '../components/Fields/ShowField'; export function getFields(fields) { return Object.keys(fields).map(function(key, index) { return ( <ShowField key={index} source={fields[key].name} /> ); }); }
src/svg-icons/image/filter-9.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter9 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM15 5h-2c-1.1 0-2 .89-2 2v...
app/javascript/mastodon/features/ui/components/column_link.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Icon from 'mastodon/components/icon'; const ColumnLink = ({ icon, text, to, href, method, badge }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span...
demo/index.js
synapsestudios/synfrastructure
/* globals document, window */ import React from 'react'; import ReactDOM from 'react-dom'; import Demo from './demo'; window.onload = function bootstrap() { ReactDOM.render( React.createElement(Demo), window.document.getElementById('root'), ); };
source/shared/routes/demo-item.js
Pro-YY/universal-web-kit
import React from 'react' import path from 'path' import config from '../../config' import DemoItemListPage from '../components/containers/pages/DemoItemList' import DemoItemPage from '../components/containers/pages/DemoItem' import fetch from '../../utils/fetch' export default { path: '/demo-items', // Note: r...
docs/app/Examples/elements/Label/Types/LabelExampleHorizontal.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Label, List } from 'semantic-ui-react' const LabelExampleHorizontal = () => ( <List divided selection> <List.Item> <Label color='red' horizontal>Fruit</Label> Kumquats </List.Item> <List.Item> <Label color='purple' horizontal>Candy</Label> Ice Cr...
src/Parser/UnsupportedSpec/Modules/NotImplementedYet.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; class NotImplementedYet extends Analyzer { statistic() { return ( <div className="col-lg-12"> <div className="panel statistic-box"> <div className="panel-heading" style={{ color: 'red' }}> <h2>This spec i...
assets/javascripts/kitten/components/navigation/header-nav/stories/minimalist.js
KissKissBankBank/kitten
import React from 'react' import HeaderNav from '../index' import { KissKissBankBankLogo, SaveIcon, Text, parseHtml, Button, UsersIconNext, } from 'kitten' const HEADER_NAV_ID = 'kkbbAndCoHeaderNav' export const MinimalistHeaderNavStory = ({ text, subText, ...args }) => ( <HeaderNav id={HEADER_NAV_I...
Console/app/node_modules/rc-upload/es/IframeUploader.js
RisenEsports/RisenEsports.github.io
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/svg-icons/content/select-all.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSelectAll = (props) => ( <SvgIcon {...props}> <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 ...
packages/material-ui-icons/src/ShowChart.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z" /></g> , 'ShowChart');
src/containers/Signup.js
dddhany/notes-app-client
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { FormGroup, FormControl, ControlLabel, } from 'react-bootstrap'; import { AuthenticationDetails, CognitoUserPool, CognitoUserAttribute, } from 'amazon-cognito-identity-js'; import LoaderButton from '../component...
electron/app/components/StaticRenderer.js
zindlerb/motif
import React from 'react'; import _ from 'lodash'; import classnames from 'classnames'; import $ from 'jquery'; import dragManager from '../dragManager'; import { componentTypes, SIDEBAR_WIDTH, mainViewTypes } from '../constants'; import PagesDropdown from '../containers/PagesDropdown'; import ComponentsDropdown...
ajax/libs/react-instantsearch/3.3.1/Dom.js
ahocevar/cdnjs
/*! ReactInstantSearch 3.3.1 | © 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 ...
js/jqwidgets/demos/react/app/treegrid/defaultfunctionality/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount () { setTimeout(() => { this.refs.myTreeGrid.expandRow(32); },10) } render () { ...
src/routes/home/index.js
kyleaclark/ballcruncher
import React from 'react'; import Layout from '../../components/layout'; import Home from './home'; import { getRankings } from '../../actions/index'; export default { path: '/', async action({ store }) { store.dispatch(getRankings(2017, 17)); return { title: 'Home', component: <Layout><Home...
src/create-account/CreateAccountContainer.js
qingweibinary/binary-next-gen
import React, { Component } from 'react'; import CreateAccountCard from './CreateAccountCard'; import { connect } from 'react-redux'; import shouldPureComponentUpdate from 'react-pure-render/function'; import immutableChildrenToJS from 'binary-utils/lib/immutableChildrenToJS'; import createAccountSelectors from './cre...
fields/types/localfiles/LocalFilesField.js
nickhsine/keystone
import _ from 'underscore'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, FormField, FormInput, FormNote } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ const ICON_EXTS = [ 'aac', 'ai', 'aiff', 'avi', '...
components/Recipes.ios.js
jayvilla/snacktime
import React, { Component } from 'react'; import { Text, View, Image, TextInput, ListView, TouchableHighlight, TouchableOpacity } from 'react-native'; import helpers from '../helpers/helpers.js'; import Recipe from './Recipe.ios.js'; import styles from '../styles.ios.js'; import NutrientComparisons from './NutrientsCom...
src/svg-icons/av/pause-circle-outline.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M9 16h2V8H9v8zm3-14C6.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 8zm1-4h2...
components/Button/Button.js
ISMAELMARTINEZ/linkuk
import React from 'react' import s from './Button.css' export default (props) => ( <button className={s.button}> {props.children} </button> )
packages/react/src/components/Search/Search-story.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable no-console */ import React from 'react'; import { action } from '@storybook/addon-actions'; import { withKnobs, boolean, s...
src/svg-icons/editor/format-color-text.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorText = (props) => ( <SvgIcon {...props}> <path fillOpacity=".36" d="M0 20h24v4H0z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/> </SvgIcon> );...
js/components/toast/index.js
bengaara/simbapp
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, Toast } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import sty...
dashboard/client/src/js/components/modules/base/Footer.js
agaralabs/sieve
import React from 'react'; import {Link} from '../../../utils/router'; export default function (props) { return ( <footer className="footer has-text-centered"> <strong>Sieve</strong>. The source code is licensed under <Link to="http://www.apache.org/licenses/LICENSE-...
app/components/result/ResultGala.js
wp-wilsonperez/votos
import React from 'react'; import TableApp from './../common/TableApp'; class ResultGala extends React.Component { constructor(props) { super(props); let params= { title: "RESULTADO GALA VALOR MÁXIMO 10 Y 35%", fields: [ {"title": "Candidata", "field": "_id", "field2": "full...
docs/app/Examples/modules/Popup/Types/PopupExample.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button, Popup } from 'semantic-ui-react' const PopupExample = () => ( <Popup trigger={<Button icon='add' />} content='Add users to your feed' /> ) export default PopupExample
client/modules/core/components/tree/tree_footer.js
bompi88/grand-view
import React from 'react'; export default class Tree extends React.Component { renderItem(item) { const { currentState, changeState } = this.props; const active = currentState === item.state ? 'active' : ''; return ( <li key={item.state} role="presentation" className={acti...
Libraries/Components/WebView/WebView.ios.js
peterp/react-native
/** * 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...