path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/blog/src/index.js
velopert/redux-pender
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import store from './store'; import { Provider } from 'react-redux'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );
collect-webapp/frontend/src/common/components/Forms.js
openforis/collect
import React from 'react'; import { Button, FormFeedback, FormGroup, Label, Input, Col } from 'reactstrap'; import L from 'utils/Labels' import Strings from 'utils/Strings' import Objects from '../../utils/Objects'; export const SimpleFormItem = props => { const extractErrorMessage = (fieldId, errorFeedback, vali...
src/rocks/selector-editor-dialog/DialogComponent.js
animachine/animachine
import React from 'react' import {DialogComp} from 'spaceman' import {Scrollable, Button} from 'react-matterkit' import QuickInterface from 'quick-interface' class SelectorRow extends React.Component { render() { const {selector} = this.props return ( <QuickInterface describe={() => ({ ...
src/client/component/summary.js
yoo2001818/resumegen
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Marked from './marked'; import '../style/summary.scss'; export default function Summary({ children }) { return ( <div className='summary-component'> <Marked>{ children }</Marked> </div> ); } Summary.propTypes = { ...
packages/ringcentral-widgets-cli/templates/Project/src/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore } from 'redux'; import { createPhone } from './modules/Phone'; import App from './containers/App'; import brandConfig from './brand'; import prefix from './prefix'; const apiConfig = process.env.API_CONFIG; const appVersion = process.en...
src/components/footer/FooterToolbar.js
eveafeline/D3-ID3-Naomi
import React from 'react'; export default (props) => { return( <div className="footer-status toolbar-actions"> <div className="status-bar-left"> <div className="error-helper-status"> <span className="error-helper icon icon-info-circled"></span> <span className="error-helper info...
packages/react-vis/src/radial-chart/index.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
example/Form.js
jerryshew/dot-css
import React, { Component } from 'react'; import {CN, TitleBlock} from './util'; import {NS} from './setting'; const makeForm = (cn = '') => { return ( <div className={CN(`${cn} form`)}> <div className="group"> <label placeholder="input name...">name:</label> <di...
app/components/Home.js
Strive22/Hunt
import React from 'react'; import { browserHistory, Link} from 'react-router'; import { Jumbotron, Button, Grid, Row, Col, Well } from 'react-bootstrap'; import HomeNav from './HomeNav'; class Home extends React.Component { constructor(props) { super(props); this.state = { userName: this.props.userNam...
app/javascript/mastodon/features/compose/components/upload_form.js
h3zjp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import UploadProgressContainer from '../containers/upload_progress_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import UploadContainer from '../containers/upload_container'; import SensitiveButtonC...
frontend/src/pages/login/login.js
petar-prog91/go-bank-web
import React from 'react'; import { connect } from 'react-redux'; import { LoginForm } from '../../components'; const Login = () => ( <div className="loginPage__base"> <LoginForm /> </div> ); export default connect()(Login);
generators/app/templates/app/src/client.js
hasura/generator-hasura-web
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createLogger from 'redux-logger'; import thunk from 'redux-thunk'; import {Provider} from 'react-redux'; import { Router...
src/js/components/VideoSphere.js
FlexingDream/start_screen
import React from 'react'; import {Animation, Entity, Scene} from 'aframe-react'; import styleParser from 'style-attr'; /** * Stringify components passed as an object. * * {primitive: box; width: 10} to 'primitive: box; width: 10' */ function serializeComponents (props) { let serialProps = {}; Object.keys(pro...
src/layout/Layout.js
r-daneelolivaw/planetdrupal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import styled from 'styled-components'; // @todo header, footer components import Content from './Content'; import Router from './Router'; import Header from './Header'; import Footer from './Footer'; clas...
ajax/libs/react-instantsearch/5.0.0-beta.0/Dom.js
joeyparrish/cdnjs
/*! ReactInstantSearch 5.0.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], facto...
app/containers/HomePage/BlockView.js
rapicastillo/beautifulrising-client
/* Block */ import React from 'react'; import styled from 'styled-components'; import { ThemeProvider } from 'styled-components'; const theme = { bgColor: 'whitesmoke', listItemWidth: '260px', showBackground: true, listItemHeight: '260px', blockView: true, padding: '' }; export default (props...
src/views/RadarMenuView/RadarMenuView.js
francocorreasosa/ClimaUY
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Text, View, Image, ScrollView, TouchableOpacity, } from 'react-native'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import moment f...
src/svg-icons/communication/textsms.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationTextsms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/> </SvgIcon> ); Communica...
src/components/CurrencySelect/CurrencySelect.js
nobt-io/frontend
import React from 'react'; import Select from 'react-select'; import CurrencySelectTheme from './CurrencySelect.scss'; import 'react-select/dist/react-select.css'; import 'currency-flags/dist/currency-flags.css'; import classnames from 'classnames'; const currencies = [ { label: 'Euro', value: 'EUR' }, { label: '...
src/svg-icons/av/repeat-one.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeatOne = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/> </SvgIcon> ); AvRepeatOne = pure(AvRepeatOne); AvRepeatOn...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Badacadabra/Harmoneezer
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/js/index.js
nathanbrennan/redux-todo
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import todoApp from './reducers' import App from './components/App' let store = createStore(todoApp) ReactDOM.render ( <Provider store={ store }> <App /> </Provider>, documen...
view/src/App.js
digi-to/memberDirectory
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
src/client/index.js
earnubs/react-hot-loader-starter-kit
import { AppContainer } from 'react-hot-loader'; import React from 'react'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import { hydrate } from 'react-dom'; import App from './containers/app'; import reducers from './reducers'; // Grab the state from a global variable injected into th...
src/components/common/icons/MoreOptionsIcon.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; const MoreOptionsIcon = props => ( <div className="app-icon app-icon-more-options" style={{ backgroundColor: props.backgroundColor }}> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px...
packages/material-ui-icons/src/Terrain.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Terrain = 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>; Terrain = pure(Terrain); Terrain.muiName = 'SvgIcon'; export default ...
docs/src/pages/demos/tabs/CenteredTabs.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Paper from 'material-ui/Paper'; import Tabs, { Tab } from 'material-ui/Tabs'; const styles = theme => ({ root: { flexGrow: 1, mar...
src/stores/LegendStore.js
alexmasselot/medlineGeoWebFrontend
import React from 'react'; import {EventEmitter} from 'events'; import assign from 'object-assign'; import httpClient from '../core/HttpClient'; import dispatcher from '../core/Dispatcher'; import Constants from '../constants/Constants'; import BaseStore from './BaseStore' import _ from 'lodash'; let _legendDict = {...
test/fixtures/invalid-component.js
abramz/gulp-render-react
/*! Gulp Render React | MIT License */ import React from 'react'; const validComponent = React.createClass({ getDefaultProps: () => { return {}; }, render: () => { let id = 0; return ( <InvalidTag> {Object.keys(this.props).forEach((key) => { return (<li key={id++}>{prop.text}...
geonode/contrib/monitoring/frontend/src/components/organisms/software-performance/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import RaisedButton from 'material-ui/RaisedButton'; import ChartIcon from 'material-ui/svg-icons/av/equalizer'; import HoverPaper from '../../atoms/hover-paper'; import GeonodeData from '../../cels/geonode-data'; import WSData from '../../cels/ws-data'; im...
src/components/App.js
XiaoSX/Campanella-worldlinepack
import React, { Component } from 'react'; export default class App extends Component { render () { return ( <h1>Hello Camapanella!</h1> ); } }
src/components/pulldown-goto.js
YPlan/react-pulldown
import React from 'react'; const PulldownGoto = React.createClass({ propTypes: { children: React.PropTypes.any, className: React.PropTypes.string, stage: React.PropTypes.string.isRequired, }, contextTypes: { goTo: React.PropTypes.func, }, _handleClick() { const {goTo} = this.context; ...
components/Navigation/TabBar/TabBar.story.js
rdjpalmer/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, number } from '@storybook/addon-knobs'; import TabBar from './TabBar'; import TabBarItem from './TabBarItem'; import TabBarIconItem from './TabBarIconItem'; const stories = storiesOf('TabBar', module); stories.addDecorator(wit...
src/svg-icons/image/exposure.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposure = (props) => ( <SvgIcon {...props}> <path d="M15 17v2h2v-2h2v-2h-2v-2h-2v2h-2v2h2zm5-15H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 5h6v2H5V5zm15 15H4L20 4v16z"/> </...
app/containers/Header/MainHeader.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { HeaderBar } from '../../components/Header'; import { logoutUser, openChangeUserInfoModal, openChangePasswordModal } from '../../actions'; class Header extends Component { componentDidMount() { window.onclick = (event) => { ...
src-example/components/organisms/FeatureList/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react' import styled from 'styled-components' import { Feature, Link, Heading } from 'components' const Grid = styled.div` display: flex; flex-flow: row wrap; & > * { width: calc(50% - 2rem); @media screen and (max-width: 640px) { width: calc(100% - 1rem); } } ` const Sty...
client/views/omnichannel/directory/chats/contextualBar/DepartmentField.js
VoiSmart/Rocket.Chat
import React from 'react'; import { useTranslation } from '../../../../../contexts/TranslationContext'; import { AsyncStatePhase } from '../../../../../hooks/useAsyncState'; import { useEndpointData } from '../../../../../hooks/useEndpointData'; import Field from '../../../components/Field'; import Info from '../../.....
src/components/profile/RecruiterProfile.js
Team-Banana-Guava/JobOrNot-React
import React from 'react'; import { connect } from 'react-redux'; import RecruiterInfo from './RecruiterInfo'; import ResumeSearchForm from '../forms/ResumeSearchForm'; import RecruiterLikedResumes from './RecruiterLikedResumes'; const mapStateToProps = (state) => { return { user: state.userAuth.user }...
src/components/Input.story.js
creditornot/wolt-web-common
/* eslint-disable jsx-a11y/label-has-for */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import Input from './Input'; const labeledInput = (type) => ( <label key={type} htmlFor={type}> <h2>{type}</h2> <Input id={type} type={type}...
examples/star-wars/src/client.js
denvned/isomorphic-relay
import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; import IsomorphicRelay from 'isomorphic-relay'; import rootContainerProps from './rootContainerProps'; const environment = new Relay.Environment(); environment.injectNetworkLayer(new Relay.DefaultNetworkLayer('/graphql')); ...
client/src/components/employer/employer.js
Siyanda-Mzam/hire-grad
import React from 'react'; import Hero from '../shared/hero'; import ApplyNow from '../shared/applynow'; import HowWorks from '../../containers/how'; import Pricing from './pricing'; import HiringInsights from './hiringInsights'; import WhyHireGrads from './whyHireGrads'; const Employer = ({item, howItWorks, user}) =>...
src/components/About.js
odarino/odarino.github.io
import React, { Component } from 'react'; import * as data from '../utils/data'; class About extends Component { createMarkup = () => { return { _html: data.aboutMe } } render() { return ( <div className="primary-layout__about is-post"> <div d...
src/components/Shopping.js
FrozenTear7/student-life-organizer
import React from 'react' import { connect } from 'react-redux' import { updateShoppingItem, shoppingItemResetEdit } from '../actions/shoppingActions' import renderField from './renderField' import { reduxForm, Field, reset } from 'redux-form' import {positiveNumber, required} from '../utils/validateForm' const submit...
new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/Forms/Screen2Information.js
lamassu/lamassu-server
import { Field } from 'formik' import React from 'react' import * as Yup from 'yup' import TextInputFormik from 'src/components/inputs/formik/TextInput' import { H4, P } from 'src/components/typography' const ScreenInformation = () => { return ( <> <H4>Screen 2 Information</H4> {/* TODO Add ? icon */} ...
app/components/malt/MaltForm.js
MitchLillie/brewhome
import React from 'react' const MaltForm = React.createClass({ getInitialState: function () { return {name: '', lb: '', srm: '', potential: '', costLb: ''} }, handleNameChange: function (e) { this.setState({name: e.target.value}) }, handleLbChange: function (e) { this.setState({lb: e.target.value...
src/components/atoms/Dialog/DialogContent.js
ygoto3/artwork-manager
// @flow import React from 'react'; export type DialogContentProps = { title?: string; children: React$Element<any>; } export const DialogContent = ({ children, title }: DialogContentProps) => ( <section> <h1>{title}</h1> {children} </section> ); Object.assign(DialogContent, { displayName: 'Dialo...
src/app/controllers/Home.js
mazahell/eve-react-app
import React from 'react'; import { connect } from 'react-redux'; import { updNeed, getChartData, unmountHome, getHomeInfo } from '../actions/homeActions'; import { setHead } from '../actions/appActions'; import Copyright from '../components/blocks/_copyright'; import PanelContent from '../components/blocks/_panel_con...
src/scene/Order/OrderScene.js
Cowboy1995/JZWXZ
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ //import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, StatusBar, Image, ListView, TouchableOpacity, ScrollView, RefreshControl } from 'react-native'; im...
App/Client/node_modules/react-router/modules/Link.js
qianyuchang/React-Chat
import React from 'react' import warning from './routerWarning' const { bool, object, string, func, oneOfType } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } functio...
src/DropdownToggle.js
dongtong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import Button from './Button'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const CARET = <span> <span className="caret" /></span>; export default class DropdownToggle extends React.Component { render() ...
src/index.js
dudekt/amber
import React from 'react' import ReactDOM from 'react-dom' import {AppContainer} from 'react-hot-loader' import Root from './app/Root' const render = Component => { ReactDOM.render( <AppContainer> <Component /> </AppContainer>, document.getElementById('root') ) }; render(R...
assets/postjob/component/PostJobComponent.js
janta-devs/nyumbani
import React, { Component } from 'react'; import BackComponent from './BackComponent'; import DangerAlert from './DangerAlert'; import InformationAlert from './InformationAlert'; import SuccessAlert from './SuccessAlert'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Action...
src/interface/icons/WebBanner.js
fyruna/WoWAnalyzer
import React from 'react'; // Web Banner by Vectors Market from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66 66" className="icon" {...other}> <path d="M58.609,40.132l-20.276-9.089c-0.256-0.115-0.555-0.077-0.775,0.099c-0.219,0.175-0.322,0.459-0.266,0.73...
src/docs/components/columns/ColumnsExamplesDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Columns from 'grommet/components/Columns'; import Box from 'grommet/components/Box'; import InteractiveExample from '../../../components/InteractiveExample'; Columns.displayName = 'Columns'; const PR...
ukelonn.web.frontend/src/main/frontend/components/Unauthorized.js
steinarb/ukelonn
import React from 'react'; import { Redirect } from 'react-router'; import { useSelector } from 'react-redux'; import Locale from './Locale'; import Logout from './Logout'; export default function Unauthorized() { const haveReceivedResponseFromLogin = useSelector(state => state.haveReceivedResponseFromLogin); ...
examples/counter/index.js
itrelease/redux
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.getElementById('root') );
src/components/Post.js
saitodisse/astounding
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-react'; @Cerebral({}) class Post extends React.Component { render() { return ( <li className='list-group-item'> <div dangerouslySetInnerHTML={ {__html: this.props.post.htmlResult} } /> { this.props.post.isSaving ? ...
src/components/WebHeader/WebHeader.js
auth0/web-header
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames/bind'; import cxN from 'classnames'; import axios from 'axios'; import Head from '../Head'; import FeaturedHead from '../FeaturedHead'; import Item from '../Item'; import FooterMobile from '../FooterMobile';...
src/components/TagListHierarchy.js
oglimmer/linky
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import Immutable from 'immutable'; import { changeTag, completeChangeTag } from '../redux/actions/links'; import { CachedTagHierarchy } from '../util/Hierarchy'; const divS...
src/component/Projects/ProjectImage.js
dentemple/developer-portfolio
import React from 'react' import PropTypes from 'prop-types' const ImageContainer = ({ children, url }) => { return ( <a href={url} target='_blank' rel='noopener noreferrer'> { children } </a> ) } const ProjectImage = ({name, img, url}) => { const style = { width: 300, height: 200, bor...
ui/src/pages/role-policy.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
src/svg-icons/action/picture-in-picture.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPictureInPicture = (props) => ( <SvgIcon {...props}> <path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/> </SvgIcon> ...
app/javascript/mastodon/features/ui/components/column_header.js
8796n/mastodon
import React from 'react'; import PropTypes from 'prop-types' class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func, hideOnMobile: PropTypes.bool, columnHeaderId: PropTypes.string ...
src/svg-icons/places/business-center.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesBusinessCenter = (props) => ( <SvgIcon {...props}> <path d="M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1...
docs/src/examples/one/TextField.js
Trioxis/immutable-react-form
// TextField.js import React from 'react'; import MUITextField from 'material-ui/TextField'; export default function TextField(props){ const { form, field, ...remainingProps } = props; const fieldValidationInfo = form.validation.get(field) return <MUITextField {...remainingProps} value={f...
public/client/routes/users/containers/users.js
nearform/concorda-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import { pushPath } from 'redux-simple-router' import _ from 'lodash' // actions import {getUsers, deleteUser, getUser, closeSession, disableUser, enableUser} from '../../../modules/user/actions/index' import Panel from '../../components/pane...
src/components/markdown-render/h4.js
sparkdesignsystem/spark-design-system
import React from 'react'; const H4 = (props) => { const { children } = props; const id = children.toString().replace(/\s+/g, '-').toLowerCase(); return ( <> <span id={id} className="docs-b-Link--anchor" /> <h4 className=" docs-b-h4 sprk-b-TypeDisplayFour spr...
test/integration/initial-ref/pages/index.js
flybayer/next.js
import React from 'react' class App extends React.Component { constructor() { super() this.divRef = React.createRef() this.state = { refHeight: 0, } } componentDidMount() { const refHeight = this.divRef.current.clientHeight this.setState({ refHeight }) } render() { const...
src/Toolbar.js
ocelotconsulting/global-hack-6
import React from 'react' import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar' import ButtonGroup from 'react-bootstrap/lib/ButtonGroup' const Toolbar = ({ children }) => { let key = 0 return ( <ButtonToolbar> {[].concat(children).map(child => ( <ButtonGroup key={key++}> {child...
blueocean-material-icons/src/js/components/svg-icons/content/save.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentSave = (props) => ( <SvgIcon {...props}> <path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/> </SvgIcon> ); ContentSave.displayName ...
src/components/searchInput/SearchInput.js
DaveOrDead/react-dnd-character-generator
import React from 'react'; import FormItem from '../formItem'; import InputLabel from '../inputLabel'; import generateSvgLink from '../../utils/generateSvgLink'; const SearchInput = ({ id, isLabelHidden, labelText, maxLength = '250', value = '', ...props }) => { return ( <Form...
app/src/components/Dropdown.js
cs-cordero/mtgls
import React from 'react'; import PropTypes from 'prop-types'; export default class Dropdown extends React.Component { static PropTypes = { dropdownTitle: PropTypes.any.isRequired, children: PropTypes.arrayOf(PropTypes.shape({ itemTitle: PropTypes.string.isRequired, handleCl...
src/svg-icons/image/blur-off.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2...
frontend/src/components/HomePage.js
Jtcruthers/Whether
import React from 'react'; import FormInput from './FormInput'; import ToggleButton from '../components/ToggleButton'; import styles from '../css/HomePage.css'; const HomePage = ({toggleSubmitted, editOrigin, editDestination}) => ( <div className="HomePage"> <div className="MainSearchDiv"> <form className=...
src/components/Main.js
441953309/sound-by-redux
import React from 'react'; let yeomanImage = require('../images/yeoman.png'); class AppComponent extends React.Component { render() { return ( <div className="index"> <img src={yeomanImage} alt="Yeoman Generator" /> <div className="notice">Please edit <code>src/components/Main.js</code> t...
stories/Input/ExampleMagnifyingGlass.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Input from 'wix-style-react/Input'; const style = { display: 'inline-block', padding: '0 5px', width: '200px', lineHeight: '22px' }; const Example = ({theme}) => <div> <div className="ltr" style={style}>Left to right<Input theme={them...
src/grid/tile/tile.js
bokuweb/re-bulma
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from '../../../build/styles'; import { getCallbacks } from '../../helper/helper'; export default class Tile extends Component { static propTypes = { children: PropTypes.any, className: PropTypes.string, style: Pro...
src/ui/auth/ForgotPasswordScreen.js
exponentjs/xde
/** * @flow */ import React from 'react'; import { Link } from 'react-router'; import { StyleSheet, css } from 'aphrodite/no-important'; import { actions } from 'xde/state'; import { connectToData } from 'xde/state/utils'; import { withRouter } from 'xde/utils/routing'; import Button from 'xde/ui/components/Butt...
src/server.js
mattiasewers/react-redux-universal-hot-example
import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; im...
blueocean-material-icons/src/js/components/svg-icons/maps/local-phone.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45...
react/features/calendar-sync/components/JoinButton.web.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../base/i18n'; import { Icon, IconAdd } from '../../base/icons'; import { Tooltip } from '../../base/tooltip'; /** * The type of the React {@code Component} props of {@link JoinButton}. */ type Props = { /** * The function c...
html/dev/lib/nav.js
scott-fleischman/greek-grammar
import React from 'react'; import { Navbar, NavBrand, NavItem, Nav as BNav } from 'react-bootstrap'; export const Nav = ({ title, workListUrl, typeListUrl, licenseUrl }) => { return ( <Navbar fluid> <NavBrand>{title}</NavBrand> <BNav right> <NavItem eventKey={0} href={workListUrl}>Works</NavI...
src/icons/Lightbulb.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Lightbulb extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256,32c-70.7,0-128,55.4-128,123.8c0,4.9,0.3,9.7,0.9,14.5c0.6,5.4,1.6,10.6,3,15.7c0.1,0.5,0.3,1.1,0.4,1.6 c16.6,...
react-starter/examples/UnigridExample12.js
yoonka/unigrid
/* Copyright (c) 2018, Grzegorz Junka All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
src/Parser/Hunter/BeastMastery/Modules/Spells/BestialWrath/BestialWrathAverageFocus.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBox from "Main/StatisticBox"; import SpellIcon from "common/SpellIcon"; import { formatNumber } from "common/format"; import SpellLink fr...
app/packs/src/components/CollectionTree.js
ComPlat/chemotion_ELN
import React from 'react'; import { Button, OverlayTrigger, Badge, Glyphicon, Tooltip } from 'react-bootstrap'; import update from 'immutability-helper'; import CollectionStore from './stores/CollectionStore'; import CollectionActions from './actions/CollectionActions'; import CollectionSubtree from './CollectionSubtre...
src/components/stories/MarkupItReactRenderer.js
radekzz/netlify-cms-test
import React from 'react'; import markdownSyntax from 'markup-it/syntaxes/markdown'; import htmlSyntax from 'markup-it/syntaxes/html'; import MarkupItReactRenderer from '../MarkupItReactRenderer'; import { storiesOf } from '@kadira/storybook'; const mdContent = ` # Title * List 1 * List 2 `; const htmlContent = ` <h...
src/components/drupal/plain/DrupalPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './DrupalPlain.svg' /** DrupalPlain */ function DrupalPlain({ width, height, className }) { return ( <SVGDeviconInline className={'DrupalPlain' + ' ' + className} ...
examples/with-redux-observable/pages/other.js
BlancheXu/test
import React from 'react' import Link from 'next/link' const OtherPage = () => ( <div> <h1>Other Page</h1> <Link href='/'> <a>Get back to "/"</a> </Link> </div> ) export default OtherPage
src/pages/user_profile/content.js
RexSkz/drone-ui
import {branch} from 'baobab-react/higher-order'; import {Link} from 'react-router'; import PageContent from '../../components/layout/content'; import React from 'react'; import {Switch} from 'react-mdl'; import {events, GET_REPO_LIST, POST_REPO, DEL_REPO} from '../../actions/events'; import './index.less'; class Con...
src/interface/RootErrorBoundary.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import FullscreenError from 'interface/common/FullscreenError'; import ErrorBoundary from 'interface/common/ErrorBoundary'; import ApiDownBackground from 'interface/common/images/api-down-background.gif'; class RootErrorBoundary extends React.Component { ...
src/modules/Profile/index.js
hdngr/mantenuto
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { updateUser } from 'modules/user/redux'; import { notifSend } from '../Notifs/redux'; import ProfileForm from './components/ProfileForm'; import ListenAnytime from './components/ListenAnytime'...
src/modules/Home/Home.js
dannegm/danielgarcia
/* eslint-disable camelcase */ import React from 'react'; import useDocumentTitle from '@/shared/hooks/useDocumentTitle'; import Galaxy from '@/shared/components/Galaxy'; import { getTodayAvatar } from '@/shared/services/avatares'; import { // Breakline Page, Background, Overlay, Hero, Avatar...
app/bce/index.js
mudio/bce-client
import React from 'react'; import {remote} from 'electron'; import {render} from 'react-dom'; import {AppContainer} from 'react-hot-loader'; import Root from './containers/Root'; import {configureStore, history} from './store/configureStore'; import './style/mixin.global.css'; export default class BceModule { sta...
src/stories/index.js
slopen/storybook-addon-mocha-runner
import React from 'react'; import {storiesOf} from '@kadira/storybook'; import AddonMochaRunner from '../'; import test from '../tests'; storiesOf ('Storybook Mocha Runner', module) .addDecorator ( AddonMochaRunner ([ test ]) ) .add ('default view', () => { return ( ...
src/containers/CourseFormScreen.js
Dennitz/Timetable
// @flow import React from 'react'; import { LayoutAnimation } from 'react-native'; import { connect } from 'react-redux'; import uuid from 'uuid/v1'; import { arrayPush, arrayRemove, arrayInsert, formValueSelector, reduxForm, submit, } from 'redux-form'; import i18n from 'react-native-i18n'; import Course...
src/modules/users/components/UserListItem/UserListItem.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const UserListItem = ({ _id, name, username, avatarUrl, isActiveUser }) => ( <div className="userListItem"> <Link to={isActiveUser ? "/profile" : `/users/${_id}` } > <div className="use...
src/components/Feedback/Feedback.js
BlackAngus/BVPHackathon
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
ui/src/components/Counter/index.js
LearningLocker/learninglocker
import React from 'react'; import { isNumber, round } from 'lodash'; import NoData from 'ui/components/Graphs/NoData'; import numeral from 'numeral'; import styled from 'styled-components'; import tooltipFactory from 'react-toolbox/lib/tooltip'; import { Link } from 'react-toolbox/lib/link'; import { getPercentage } fr...
src/templates/plugin.js
getinsomnia/insomnia.rest
import { graphql } from 'gatsby'; import React from 'react'; import Plugin from '../lib/plugin'; import Title from '../partials/title'; import SocialCards from '../components/social-cards'; import iconPluginDefault from '../assets/icons/plugins-default-icon.svg'; export default ({ data: { npmPackage: pkg } }) => { l...