path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/compose/components/warning.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { mes...
src/routes/our_works/index.js
pustovitDmytro/maysternya
import React from 'react'; import Layout from '../../components/Layout'; import Tiles from '../../components/Tiles'; import {instagram} from './../../actions/api'; export default { path: '/works', async action(context){ let store = context.store; await Promise.all([instagram(store.dispatch)]).then(value...
src/svg-icons/editor/insert-chart.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertChart = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); Editor...
src/svg-icons/content/low-priority.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLowPriority = (props) => ( <SvgIcon {...props}> <path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7....
src/app/pages/About.js
skratchdot/js-playground
import React, { Component } from 'react'; import { Jumbotron } from 'react-bootstrap'; import { connect } from 'react-redux'; import marked from 'marked'; const fs = require('fs'); const readmeContents = marked(fs.readFileSync(`${__dirname}/../../../README.md`, 'utf-8')); class About extends Component { render() { ...
client/components/shared/RequireAuth.js
AnatolyBelobrovik/itechartlabs
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { addFlashMessage } from '../../actions/flashMessagesActions'; export default function (ComposedComponent) { class Authenticate extends React.Component { componentWillMount() { if (!this.props.isAu...
test/focus-first-suggestion-clear-on-enter/AutosuggestApp.js
moroshko/react-autosuggest
import React, { Component } from 'react'; import sinon from 'sinon'; import Autosuggest from '../../src/Autosuggest'; import languages from '../plain-list/languages'; import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js'; import { addEvent } from '../helpers'; const getMatchingLanguages = va...
docs/src/Anchor.js
collinwu/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.string }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className='anchor'> <span className='anchor-icon'>#</span> {this.props.children} </a> ); } }); e...
src/components/app.js
DavidSunny/mastering-react
import React from 'react'; import MainHeader from './main_header'; import Page from './page'; import Orders from './orders'; class App extends React.Component { render() { return ( <div className='app'> <MainHeader /> <Page> <Orders /> </Page> </div> ); } } ex...
examples/shopping-cart/src/components/ProductsContainer.js
adamrneary/nuclear-js
import React from 'react' import ProductItem from '../../common/components/ProductItem' import ProductsList from '../../common/components/ProductsList' import reactor from '../reactor' import getters from '../getters' import actions from '../actions' const ProductItemContainer = React.createClass({ onAddToCartCli...
app/javascript/mastodon/features/notifications/components/notification.js
h3zjp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage, defineMessages } from 'react-intl'; import { HotKeys } from 'react-hotkeys'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { me ...
src/ModalHeader.js
lzcmaro/react-ratchet
import React from 'react'; import classnames from 'classnames'; import NavBar from './NavBar'; import Link from './Link'; let ModalHeader = React.createClass({ propTypes: { closeButton: React.PropTypes.bool }, getDefaultProps() { return { closeButton: true } }, contextTypes: { onModalHide: React.PropTy...
src/helpers/form/formMap.js
PocketOfWeird/MediaGarden
import React from 'react' import map from 'lodash.map' import FormTag from '../../components/FormTag' import { isLoading } from '../../selectors' export const formMapStateToProps = state => ({ values: state.form.values, errors: state.form.errors, isLoading: isLoading(state) }) export const formSelectMap = (col...
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js
changjiashuai/actor-platform
import _ from 'lodash'; import Immutable from 'immutable'; import keymirror from 'keymirror'; import React from 'react'; import { Styles, TextField, FlatButton } from 'material-ui'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import ContactStore from 'stores/ContactStore'; import Cont...
src/routes/Counter/components/Counter.js
gribilly/react-redux-starter-kit
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
src/components/create-post.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program 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, either version 3 of the License, o...
src/index.js
jas-chen/react-starter-kit
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, Route, IndexRoute, useRouterHistory } from 'react-router'; import createHashHistory from 'history/lib/createHashHistory'; import { syncHistoryWithStore } from 'react-router-redux'; import Layout fro...
jqwidgets/jqwidgets-react/react_jqxnumberinput.js
UCF/IKM-APIM
/* jQWidgets v5.6.0 (2018-Feb) Copyright (c) 2011-2017 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxNumberInput extends React.Component { componentDidMount() { let options = this.ma...
react/src/App.js
LeChosenOne/EasyRecipe
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; import {Navbar, Nav, NavItem,FormGroup,FormControl,InputGroup} from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import RecipeListing f...
src/components/App.js
MouseZero/nightlife-frontend
import React from 'react' import PropTypes from 'prop-types' import TopBar from './top-bar' import BottomBar from './BottomBar' import Notifications from './Notifications' const App = (props) => { return ( <div id="app-component"> <Notifications/> <TopBar/> {props.children} <B...
src/components/ArticleListItemHome.js
hbuchel/heather-buchel.com
import React from 'react'; import { Link } from 'gatsby'; import { css } from '@emotion/core'; import Text from '../components/Text'; import Icon from '../components/Icon'; const articleHome = css` margin-bottom: var(--gap); ` const articleHomeInner = css` display: flex; justify-content: center; ` const articl...
benchmarks/source-strapi/src/pages/404.js
gatsbyjs/gatsby
import React from 'react' const NotFound = () => ( <div>404 not found</div> ) export default NotFound
src/apps/Usage/Usage.js
Syncano/syncano-dashboard
import React from 'react'; import Reflux from 'reflux'; import Helmet from 'react-helmet'; import _ from 'lodash'; import Store from '../Profile/ProfileBillingPlanStore'; import ChartStore from '../Profile/ProfileBillingChartStore'; import ChartActions from '../Profile/ProfileBillingChartActions'; import InstancesActi...
src/layouts/Counter.js
magic-FE/react-redux-boilerplate
import React, { Component } from 'react'; export default class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 }; } componentDidMount() { this.interval = setInterval(this.tick.bind(this), 1000); } componentWillUnmount() { clearInterval(this.interval)...
docs/client/components/pages/Alignment/SimpleAlignmentEditor/colorBlockPlugin.js
koaninc/draft-js-plugins
import React from 'react'; const ColorBlock = ({ block, // eslint-disable-line no-unused-vars blockProps, // eslint-disable-line no-unused-vars customStyleMap, // eslint-disable-line no-unused-vars customStyleFn, // eslint-disable-line no-unused-vars decorator, // eslint-disable-line no-unused-vars forceSe...
JavaScript/React/Pro React/First App/src/components/Hello/index.js
batazor/MyExampleAndExperiments
import React, { Component } from 'react'; import { render } from 'react-dom'; class Hello extends Component { render() { let divStyle = { width: 100, height: 30, padding: 5, backgroundColor: '#ee9900' }; return ( <div style={ divStyle }>Hello World</div> ); } } expor...
src/ui/form/password/password.js
josmardias/frontend-boilerplate
import React from 'react' import Lock from 'material-ui/svg-icons/action/lock' import MenuItem from 'material-ui/MenuItem' import TextField from '../text-field' const Password = () => ( <MenuItem leftIcon={<Lock />} > <TextField name="password" label="Password" secure /> </MenuItem> ) export default P...
react-frontend/src/index.js
sebastiansokolowski/AuctionHunter---Allegro
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; import 'bootstrap/dist/css/bootstrap.min.css'; ReactDOM.render( <App />, document.getElementById('root') ); // If you want to start measuring performance in ...
app/jsx/assignments_2/shared/FileList.js
djbender/canvas-lms
/* * Copyright (C) 2019 - 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/material-ui-icons/src/QueuePlayNext.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let QueuePlayNext = props => <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3...
src/server.js
xanf/letsreact2
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; 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'; import ApiC...
src/frontend/components/SinglePostPage.js
gbgtech/gbgtechWeb
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { get } from '../fetcher'; import NewsPost from './NewsPost'; import * as actions from '../store/actions'; const NewsPage = React.createClass({ componentWillMount() { this.props.requestPost(thi...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
crod93/googlePlacesEx-react-native
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
ui/app/shared/wrapper.component.js
NortaBirdo/TPW
import React from 'react'; export const Wrapper = ({component: Component, ...rest}) => ( <Component {...rest}></Component> );
packages/@sanity/studio-hints/src/components/ToggleSidecarButton.js
sanity-io/sanity
import React from 'react' import { isSidecarOpenSetting, toggleSidecarOpenState, } from 'part:@sanity/default-layout/sidecar-datastore' import {Button} from '@sanity/ui' import {HelpCircleIcon} from '@sanity/icons' export default class ToggleSidecarButton extends React.PureComponent { state = { isOpen: true,...
cra-network-aware-data-fetching/src/components/Spinner/index.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
src/Components/Primitive/Primitive.js
apiaryio/attributes-kit
import React from 'react'; import PropTypes from 'prop-types'; import merge from 'lodash/merge'; import Row from '../Row/Row'; import Type from '../Type/Type'; import Column from '../Column/Column'; import { Value } from '../Value/Value'; import Description from '../Description/Description'; import { hasDescription...
client/containers/Feed/index.js
abinavseelan/restobook
import React, { Component } from 'react'; import { connect } from 'react-redux'; import io from 'socket.io-client'; import cn from 'classnames'; import styles from './index.scss'; import PostCreator from '../../components/Creator'; import PostItem from '../../components/PostItem'; import { updateNewPostText, createNew...
src/parser/shaman/elemental/CONFIG.js
sMteX/WoWAnalyzer
import React from 'react'; import { HawkCorrigan } from 'CONTRIBUTORS'; import retryingPromise from 'common/retryingPromise'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time...
src/main/webapp/resources/js/components/index/index.js
peterchenhdu/webbf
import './style/index.css' import React from 'react' import { Row, Col } from 'antd'; import SiderMenu from '../common/sidermenu' import AreaStack from '../echarts/areastack' import UserMgt from '../antd/usermgt' import HeatmapCartesian from '../echarts/heatmapcartesian' export default class Index extends React.Compon...
src/components/decorators/controllable/controllable.js
5rabbits/portrait
import React from 'react' export const getDefaultProps = prop => `default${prop[0].toUpperCase()}${prop.substring(1)}` export default (propsMapping, instanceMethods = []) => Component => class ControllableComponent extends React.PureComponent { static WrappedComponent = Component controllableHandlers = {...
.storybook/preview.js
aznashwan/coriolis-web
import React from 'react' import { addDecorator } from '@storybook/react' import styled, { createGlobalStyle } from 'styled-components' import Palette from '../src/components/styleUtils/Palette' import StyleProps from '../src/components/styleUtils/StyleProps' import Fonts from '../src/components/atoms/Fonts' import { ...
src/components/CustomIcons/CapacitorIcon.js
wavicles/fossasia-pslab-apps
import React from 'react'; const CapacitorIcon = ({ size = '1.5em', color = 'rgba(0, 0, 0, 0.38)' }) => { return ( <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width={size} height={size} viewBox="0 0 460 460" > <g fill...
packages/stockflux-components/src/components/buttons/borderless-buttons/app-shortcuts/News.js
ScottLogic/StockFlux
import React from 'react'; import { Launchers } from 'stockflux-core'; import NewsIconSmall from '../../../glyphs/small/news.svg'; import NewsIcon from '../../../glyphs/launcher/news.svg'; import RoundButton from '../../round-button/RoundButton'; export default ({ symbol, name, small, disabled, intentsEnabled }) => { ...
tests/react/hoc.js
gabelevi/flow
// @flow import React from 'react'; function myHOC( Component: React$ComponentType<{foo: number, bar: number}>, ): React$ComponentType<{foo: number}> { return class extends React.Component<{foo: number}, {bar: number}> { state = {bar: 2}; render() { <Component />; // Error: `foo` is required. ...
pages/legal/disclaimers/index.js
blockstack/blockstack-site
import React from 'react' import Content from '../../../common/markdown/disclaimers.md' import { Section } from '@components/section' const meta = { path: '/legal/disclaimers', title: 'Disclaimers' } class DisclaimersPage extends React.PureComponent { static async getInitialProps(ctx) { return { meta ...
frontend/src/components/dialog/rename-dirent.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; import { Utils } from '../../utils/utils'; import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Alert } from 'reactstrap'; const propTypes = { onRename: PropTypes.func.isRequired, toggleCa...
frontend/src/components/LoginForm.js
icedcoffeeallday/CostPers
import React, { Component } from 'react'; import { AsyncStorage, Text, View, Linking, Image, TextInput, TouchableOpacity, KeyboardAvoidingView } from 'react-native'; import axios from 'axios'; import { Actions } from 'react-native-router-flux'; import { Button, Card, CardSection, InputField, Spinner, ItemsList, Header ...
src/index.js
lamosty/lexi
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route, IndexRoute } from 'react-router'; import configureStore from './store/configureStore'; import LexiTheme from '....
node_modules/react-router/es6/Link.js
rblin081/drafting-client
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
docs/app/Examples/elements/Input/Types/index.js
ben174/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const InputTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Input' description='A stan...
code/workspaces/web-app/src/components/common/buttons/PagePrimaryActionButton.js
NERC-CEH/datalab
import React from 'react'; import Button from '@material-ui/core/Button'; const PagePrimaryActionButton = ({ children, variant, color, ...rest }) => ( <Button variant="contained" color="primary" {...rest} > {children} </Button> ); export default PagePrimaryActionButton;
src/components/AddListItems.js
YonasBerhe/ga-react-tutorial
import React from 'react'; class AddListItems extends React.Component { render() { // var = style = { // backgroundColor: 'red', // } return ( // <div style={style} > <div> <form onSubmit={this.props.addListItem}> <input type= "text" onChange={this.props.updateInput} value={t...
src/svg-icons/action/chrome-reader-mode.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChromeReaderMode = (props) => ( <SvgIcon {...props}> <path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"/> ...
src/routes/home/index.js
grrey/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Home from './Home'; impo...
src/server.js
alexmasselot/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global.serve...
springboot/GReact/src/main/resources/static/app/routes/e-commerce/index.js
ezsimple/java
import React from 'react'; import HtmlRender from '../../components/utils/HtmlRender' export default { path: 'e-commerce', component: require('../../components/common/Layout').default, childRoutes: [ { path: 'products-detail', getComponent(nextState, cb){ System.import('html-loader?-attr...
src/pages/Home/index.js
elarasu/HackerNews
import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import { Actions } from 'react-native-router-flux'; import { Page } from 'HackerNews/src/components'; import ApolloClient, { createNetworkInterface } from 'apollo-client'; import { ApolloProvider } from 'react-apollo'; import NewsLis...
src/interface/icons/Checklist.js
anom0ly/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/term/checklist/437165/ // Checklist by David from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}> <path d="M37.434,25.406H92.54c1.354,0,2.46-1.103,2.46-2.459c0-1.3...
src/config/routes.js
ProvoJS/i-choose-you
import React from 'react' import { Route, DefaultRoute } from 'react-router' import App from '../App' import SelectPokemon from '../App/Views/SelectPokemon' import TrainPokemon from '../App/Views/TrainPokemon' var routes = ( <Route handler={App} > <DefaultRoute handler={SelectPokemon} /> <Route name='SelectP...
src/app/js/components/Textarea.react.js
fcurella/redux-boilerplate
import React from 'react' import { connect } from 'react-redux' import TextField from 'material-ui/lib/text-field'; import ControlMixin from './ControlMixin.react' var Textarea = React.createClass({ mixins: [ControlMixin], render() { const value = this.props.model[this.props.name] const borderWidth = t...
ReactJS/exam/exam/src/index.js
Martotko/JS-Web
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import './bootstrap.min.css'; import './../node_modules/toastr/build/toastr.min.css' import App from './App'; import registerServiceWorker from './registerServiceWorker'; import { BrowserRouter as Router } from 'react-router-dom'; React...
Libraries/Components/WebView/WebView.ios.js
cdlewis/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...
app/components/SuggestionList/index.js
castlemilk/nutry-web
/** * * SuggestionList * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; class SuggestionList extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> <FormattedMessage {...messag...
src/containers/Scheduler/AsideContainer.js
bgerm/scheduler3000
import React from 'react'; import styles from './AsideContainer.css'; import CSSModules from 'react-css-modules'; class AsideContainer extends React.Component { render() { return ( <div styleName='aside'> <h3>Calendars</h3> <p>Home</p> </div> ); } } export default CSSModules(As...
docs/src/examples/modules/Modal/Types/ModalExampleShorthand.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Modal } from 'semantic-ui-react' function ModalExampleShorthand() { return ( <Modal trigger={<Button>Show Modal</Button>} header='Reminder!' content='Call Benjamin regarding the reports.' actions={['Snooze', { key: 'done', content: 'Done', positi...
src/Spin/FadingCircle.js
Lobos/react-ui
import React from 'react' import classnames from 'classnames' import propTypes from './proptypes' import _styles from '../styles/spin/_fading-circle.scss' export default function FadingCircle (props) { const { size, color, margin } = props const className = classnames( props.className, _styles['fading-ci...
client/util/react-intl-test-helper.js
carloscuatin/mern-starter
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
src/components/SidebarForm/SidebarForm.js
expdevelop/d812
import React from 'react' import { Title } from 'components' import { classNames } from 'helpers' import s from './SidebarForm.sass' const SidebarForm = ({title, children, name, onSubmit, className}) => { return ( <form name={name} onSubmit={onSubmit} className={classNames(s.form, className)}> <Title size...
src/app/components/pages/configuration/Configuration.js
santthosh/swagger-sleek
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../presentation/MarkdownElement'; import AddAPICard from './containers/AddAPICard'; import SwaggerAPIDefinitions from './containers/SwaggerAPIDefinitions'; import configuration from './configuration.md'; const Configu...
JS Web/ReactJS/Intro to React/react-intro/src/index.js
mitaka00/SoftUni
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; const rerender=ReactDOM.render ReactDOM.render(App() , document.getElementById('root')); export default rerender; registerServiceWorker();
src/components/form/labeledRadio.js
BryceHQ/form-designer
import React from 'react'; import _ from 'lodash'; import classnames from 'classnames'; import Radio from '../common/editor/radio'; const styles = { root: { padding: '2px 0', } }; const LabeledRadio = React.createClass({ propTypes: { options: React.PropTypes.array, }, getDefaultProps() { return { nam...
src/modules/common/components/translation/TranslationProvider.js
nordsoftware/outdoors-sports-map
import React from 'react'; import {I18nextProvider} from 'react-i18next'; import i18next from 'i18next'; import keyBy from 'lodash/keyBy'; import mapValues from 'lodash/mapValues'; import mapKeys from 'lodash/mapKeys'; import {connect} from 'react-redux'; import {getLanguage} from '../../../language/selectors'; import ...
packages/icons/src/instance-type.js
yldio/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 xml...
src/components/FinalizeAuction/TimeDuration.js
ens-bid/ens-bid-dapp
import React from 'react'; import './TimeDuration.css'; export const TimeDuration = (props) => ( <div className='Finalize-TimeDuration'> <div>Finalize Auction On</div> <h3>{props.registratesAt.toString()}</h3> <div>Finalization</div> </div> );
app/components/Feed.js
FormedApp/formedapp
/* Feed */ import React from 'react'; import Post from './Post'; class Feed extends React.Component { constructor(){ super(); } renderData(key) { let data = this.props.data[key]; return <Post key={key} index={key} data={data} />; } render() { return( <div className="container"> {Object.k...
src/components/auth/RouterEnter.js
kriml76/react-try
/** * Created by 叶子 on 2017/8/1. */ /** * Created by 叶子 on 2017/7/31. */ import React, { Component } from 'react'; import { Row, Col, Card } from 'antd'; import BreadcrumbCustom from '@/components/BreadcrumbCustom'; import AuthWidget from '@/components/widget/AuthWidget'; class RouterEnter extends Component { ...
src/docs/examples/ProgressBar/Example100Percent.js
rajeshpillai/zs-react-pattern-lib
import React from 'react'; import ProgressBar from 'zs-react/ProgressBar'; /** 100% progress and height 20px */ export default function Example100Percent() { return <ProgressBar percent={100} width={150} height={20} /> }
stages/stage-3.1/app.js
aruberto/political-party-app
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Router, Route } from 'react-router'; import { createHistory } from 'history'; import VotingPage from './components/voting-page'; import VotingSummary from './components/voting-summary'; const history = createHistory(); class App ext...
src/components/Icon/NavigationIcon.js
Digitova/reactova-framework
import React, { Component } from 'react'; import { Text, View, Image, TouchableHighlight, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import Icon from './index' class NavigationIcon extends Component { constructor(props) { super(props); this.styles = { navItem: { flex: 1, ...
blueocean-material-icons/src/js/components/svg-icons/av/pause-circle-outline.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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-4h2V8h-2v8z"/> </SvgIcon> ); AvPau...
examples/02 Drag Around/Custom Drag Layer/index.js
jgable/react-dnd
import React, { Component } from 'react'; import Container from './Container'; import CustomDragLayer from './CustomDragLayer'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; @DragDropContext(HTML5Backend) export default class DragAroundCustomDragLayer extends Componen...
src/__stories__/01-basic-table/08-BasicWithOnClick.stories.js
Imballinst/react-bs-datatable
import React from 'react'; import { storiesOf } from '@storybook/react'; import { categoryName } from './_base'; import moment from 'moment'; // In your setup, replace "../../" with "react-bs-datatable". import Datatable from '../../'; import './08-styling.css'; const header = [ { title: 'Username', prop: 'username...
packages/lightning-components/Tabs/story.js
DaReaper/lightning-app
import React from 'react' import { storiesOf } from '@kadira/storybook' import Tabs from './' const tabs = [ { label: 'Recent', value: 'recent', }, { label: 'In Progress', value: 'in-progress', }, { label: 'Complete', value: 'complete', }, ] storiesOf('Tabs', module) .add('tabs'...
client/extensions/woocommerce/woocommerce-services/components/radio-buttons/index.js
Automattic/woocommerce-services
/** @format */ /* eslint-disable react/no-danger */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import FormFieldset from 'components/forms/form-fieldset'; import FormLabel from 'components/forms/form-label'; import FormLegend from 'c...
src/svg-icons/action/account-box.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
src/List/Toolbar/Pagination/Pagination.component.js
Talend/react-talend-components
import React from 'react'; import classNames from 'classnames'; import uuid from 'uuid'; import { Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import Icon from '../../../Icon'; import css from './Pagination.scss'; const FIRST = 'first'; const PREV = 'prev'; const NEXT = 'next'; const LAST = 'last'; ...
src/components/InboxMessage.js
chunghe/react-router-example
import React from 'react'; class InboxMessage extends React.Component { render() { return ( <div id="message-content"> <p>displaying content of message id: {this.props.params.messageId}</p> </div> ) } } export default InboxMessage;
src/templates/index.js
azoff/wedding
import React from 'react' import Section from 'components/Section' class IndexPage extends React.Component { render() { return ( <main> {this.renderSections()} </main> ) } renderSections() { return this.props.data.allSectionJson.edges.map(({ node }, i) => this.renderSection(...
src/components/NewPlayerComponent.js
noraeb/tictactoe
import React from 'react'; import TextField from 'material-ui/lib/text-field'; import RaisedButton from 'material-ui/lib/raised-button'; const buttonStyle = { marginLeft: 12, }; const hideSubmitStyle = { position: "absolute", height: "0px", width: "0px", border: "none", padding: "0px", hidefocus: "true"...
client/src/index.js
CrashsLanding/petfinder-searcher
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import 'bootstrap/dist/css/bootstrap.css'; ReactDOM.render( <App />, document.getElementById('root') );
app/components/GroupBlock/index.js
prudhvisays/season
import React from 'react'; import TopGroup from '../TopGroup'; export default class Score extends React.Component { //eslint-disable-line render() { return ( <div className="ink-flex"> <div className="all-100 team-block" style={{ padding: '0.5em 0.8em', width: '100%' }}> <div className="i...
src/App.js
paulmusso/webpack-boilerplate
import React, { Component } from 'react'; import Dummy from './components/Dummy'; export default class App extends Component { render() { return ( <div> <nav className="navbar navbar-inverse navbar-fixed-top"> <div className="container"> <div className="navbar-header"> <button type="button" ...
src/parser/priest/holy/modules/core/EchoOfLight_Mastery.js
fyruna/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import HealingDone from...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
ruikong/actor-platform
//import _ from 'lodash'; import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActions'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; //i...
benchmarks/dom-comparison/src/implementations/inline-styles/View.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import React from 'react'; const compose = (s1, s2) => { if (s1 && s2) { return { ...s1, ...s2 }; } else { return s1 || s2; } }; class View extends React.Component { render() { const { style, ...other } = this.props; return <div {...other} style={compose(v...
src/client.js
prjctrft/mantenuto
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { applyRouterMiddleware, Router, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { ReduxAsyncConnect } from 'redux-connect'; import...
src/svg-icons/action/view-module.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewModule = (props) => ( <SvgIcon {...props}> <path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/> </SvgIcon> ); ActionViewModule = pure(ActionViewModule)...
src/Main/ReportSelecter.js
mwwscott0/WoWAnalyzer
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import PatreonButton from './PatreonButton'; import GithubButton from './GithubButton'; import DiscordButton from './DiscordButton'; class ReportSelecter extends Component { static propTypes = { onSubmit: PropTypes.func.isRequired, ...
docs/src/app/components/pages/components/FlatButton/Page.js
matthewoates/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import flatButtonReadmeText from './README'; import flatButtonExampleSimpleCode ...