path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/groups/GroupPerformancesView.js
mg4tv/mg4tv-web
import React from 'react' const GroupPerformancesView = () => ( <div/> ) export default GroupPerformancesView
src/js/App.js
alansouzati/csu-demo
import React from 'react'; import { IntlProvider, addLocaleData } from 'react-intl'; import en from 'react-intl/locale-data/en'; import { getCurrentLocale, getLocaleData } from 'grommet/utils/Locale'; import { Provider } from 'react-redux'; import { initialize } from './actions/session'; import store from './store'; im...
src/app/components/transaction-list.js
davidpelaez-forks/react-pg
import React from 'react'; //import TransactionsItem from './TransactionsItem'; class TransactionsList extends React.Component { //addTransactionHandler (e) { // e.preventDefault(); // let transaction = { // amount: parseInt(this.refs.amount.value), // description: this.refs.description.value.trim()...
src/svg-icons/action/open-with.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenWith = (props) => ( <SvgIcon {...props}> <path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/> </SvgIcon> ); ActionOpenWith = pure(Act...
src/svg-icons/action/info.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInfo = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/> </SvgIcon> ); ActionInfo = pure(ActionInfo); ActionI...
src/Components/TabContent/index.js
wangming-0215/depth-in-react-demo
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; export default class extends Component { static propTypes = { activeIndex: PropTypes.number, panels: PropTypes.node, classPrefix: PropTypes.string }; constructor(props)...
wrappers/yaml.js
Slava/ats-website
import React from 'react' import yaml from 'js-yaml' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
app/components/LoadingIndicator/Circle.js
mhoffman/CatAppBrowser
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const circleFadeDelay = keyframes` 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } `; const Circle = (props) => { const CirclePrimitive = styled.div` width: 100%; heig...
react-flux-mui/js/material-ui/src/svg-icons/image/crop-landscape.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropLandscape = (props) => ( <SvgIcon {...props}> <path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/> </SvgIcon> ); ImageCropLandscape = pure(ImageCro...
Neos.Media.Browser/packages/neos-media-browser/src/Variants/Variants.js
neos/neos-development-collection
import React from 'react'; import Variant from './Variant'; export default class Variants extends React.PureComponent { render() { const {variants, onRequestCrop} = this.props; const renderedVariants = variants.map((variantInformation) => <Variant onRequestCrop={onRequestCrop} key={variantInformati...
example/Comment.js
jerryshew/dot-css
import React, { Component } from 'react'; import {CN, TitleBlock} from './util'; export default class Comment extends Component { render() { return ( <div> {TitleBlock('Comment')} <ul> <li> <div className={CN('comment')...
src/Control.jsx.js
wenshin/react-form-state
import React from 'react'; import PropTypes from 'prop-types'; import FormChild from './FormChild.jsx'; import util from './util'; export default class Control extends FormChild { static propTypes = { name: PropTypes.string, onChange: PropTypes.func, validator: PropTypes.object, // Control 只支持受限组件 ...
mobile/index.ios.js
serban-petrescu/candidate-management
import React from 'react'; import {AppRegistry} from 'react-native'; import App from './app/index'; AppRegistry.registerComponent('mobile', () => App);
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/Wysiwyg/previewControl.js
strapi/strapi-examples
/** * * * PreviewControl * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import styles from './componentsStyles.scss'; const PreviewControl = ({ onClick }) => ( <div className={styles.previewControlsWrapper} onClick={onClick}> <div /> <d...
app/components/Header/MainNavBar.js
klpdotorg/tada-frontend
/* * Main navigation bar - PrimarySchool/PreSchool selector */ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const NavBar = ({ primarySelected, onPrimaryClick, onPreSchoolClick }) => { let primarySchool = classNames({ 'primary-school-tab grey-mist-bg': !prim...
client2/src/components/react-burger-menu/example/src/example.js
frolicking-ampersand/CodeOut
import React from 'react'; import ReactDOM from 'react-dom'; import BurgerMenu from 'react-burger-menu'; import classNames from 'classnames'; let MenuWrap = React.createClass({ getInitialState() { return { hidden : false }; }, componentWillReceiveProps(nextProps) { const sideChanged = this.props.childr...
src/components/cell/cell_footer.js
n7best/react-weui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * Footer of `Cell` * */ const CellFooter = (props) => { const { className, children, primary, ...others } = props; const cls = classNames({ 'weui-cell__ft': true, 'weui-cell_pr...
src/images/Rides.svg.js
dkadrios/zendrum-stompblock-client
import React from 'react' export default () => ( <svg version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 468.575 468.575"> <g> <path d="M226.597,122.206c-7.035-1.948-13.98-3.925-20.893-5.911l-8.578,14.828c-9.139,5.526-15.31,15.466-15.31,26.928 c0,8.25,3.236,15.693,8.417,21.312v270.141h24.203V18...
src/app/components/forms/inputs/Select2.js
backpackcoder/world-in-flames
import React from 'react' import 'script-loader!select2/dist/js/select2.min.js' export default class Select2 extends React.Component { componentDidMount() { $(this.refs.select).select2() } componentWillUnmount() { $(this.refs.select).select2('destroy'); } render() { let {children, ...props} =...
DoD/ui/src/ResultViewControl.js
mitdbg/aurum-datadiscovery
import React, { Component } from 'react'; function ViewButtonPanel(props) { const nextView = props.next_view; const downloadView = props.download_view; return ( <div> <button type="button" className="button-next" data-toggle="tooltip" data-placement="left" data-html="true" title="Show next <em>view</em>" on...
src/index.js
timmathews/react-analog-gauge
import React from 'react'; import App from './App'; React.render(<App value={123.4567} units={'m/s'} label={'Velocity'} />, document.getElementById('root'));
src/components/Feedback/Feedback.js
concerned3rdparty/react-starter-kit
/*! 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...
client/app/config/routes.js
AlbertoALopez/polling
/* React router config */ import { IndexRoute, Route, Router, browserHistory } from 'react-router'; import React from 'react'; import App from '../views/App.jsx'; import Home from '../views/Home/containers/Home.jsx'; import Polls from '../views/Polls/Polls.jsx'; import ViewPoll from '../views/Polls/ViewPoll/containers/...
react/src/js/containers/RoutineRename.js
ftzm/muscleup
import React from 'react' import { connect } from 'react-redux' import { renameRoutine } from '../actions/routines' class RoutineRename extends React.Component { constructor(props) { super(props) this.state = { activeTab: 0 }; } componentDidMount() { var dialog = document.querySelector('dialog'); ...
src/api/crunchyroll/index.js
ChrisMichaelPerezSantiago/CodetrotterFinalProject
// npm packages import React from 'react'; import request from 'request-promise-native'; import cheerio from 'cheerio'; import {M3U} from 'playlist-parser'; import electron from 'electron'; // my packages import db from '../../db'; import parseXml from './parseXml'; import decode from './subtitles'; import bytesToAss ...
Libraries/Components/TextInput/TextInput.js
wenpkpk/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...
client-src/components/comparison/body/TechInfoCaption.js
minimus/final-task
import React from 'react' import propTypes from 'prop-types' export default function TechInfoCaption({ text }) { return <div className="tech-info-cell info-caption">{text}</div> } TechInfoCaption.propTypes = { text: propTypes.string.isRequired, }
app/javascript/mastodon/features/notifications/components/grant_permission_button.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class GrantPermissionButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn colum...
docs/src/examples/modules/Dimmer/Types/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const DimmerTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Dimmer' description='A s...
src/components/App.js
andrevvalle/redux-lab
import React, { Component } from 'react'; import { INCREMENT_COUNTER, DECREMENT_COUNTER } from '../constants/ActionTypes' export default class App extends Component { constructor(props) { super(props); const { store } = this.props this.state = { counter: store.getState(), store: store } } increment...
src/index.js
WajihaaKanwal/React-TicTacToe
/** * Created by wajihakanwal on 6/14/17. */ import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; function Square(props) { return ( <button className="square" onClick={props.onClick}> {props.value} </button> ); } class Board extends React.Component ...
examples/todomvc/index.js
leeluolee/redux
import 'babel/polyfill'; import React from 'react'; import Root from './containers/Root'; import 'todomvc-app-css/index.css'; React.render( <Root />, document.getElementById('root') );
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleFluid.js
ben174/Semantic-UI-React
import React from 'react' import { Dropdown, Menu } from 'semantic-ui-react' import { getOptions } from '../common' const DropdownExampleFluid = () => ( <Menu vertical> <Menu.Item as='a'>Link 1</Menu.Item> <Menu.Item as='a'>Link 2</Menu.Item> <Menu.Item header>All Sections</Menu.Item> <Menu.Item> ...
analysis/warlockdestruction/src/CONFIG.js
anom0ly/WoWAnalyzer
import SPECS from 'game/SPECS'; import React from 'react'; 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 maintainers to be included in this list. If someone built a large part of the spec or contributed s...
src/svg-icons/hardware/computer.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareComputer = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/> </SvgIcon> ); HardwareComputer ...
client/src/index.js
t-gabor/sunshade-control
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/index.js
briandunn/audio_param_graph
import React from 'react'; import { render } from 'react-dom'; import { createStore, compose } from 'redux'; import { connect } from 'react-redux'; import view from './view'; import reducer from './update'; import init from './model'; import takeSamples from './take_samples' const App = connect((model) => ({ model }))...
ajax/libs/react-instantsearch/4.0.0-beta.2/Dom.js
holtkamp/cdnjs
/*! ReactInstantSearch 4.0.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
app/javascript/mastodon/features/list_editor/components/account.js
increments/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
src/views/pages/dashboard.js
bugra9/adminjs
import React, { Component } from 'react'; import { Segment, Grid, Header, Icon } from 'semantic-ui-react'; class Dashboard extends Component { render() { return ( <Segment color="violet" inverted basic> <Grid verticalAlign="middle" textAlign="center" style={{height: "100vh"}}> <Grid.Colum...
mine-data/src/SubmitButton/SubmitButton.js
BerlingskeMedia/nyhedsbreveprofil
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'reactstrap'; import classNames from 'classnames'; import './SubmitButton.scss'; import { Loading } from '../Loading/Loading'; const SubmitButton = ({className, children, loading, disabled, warn, ...rest}) => ( <Button {...rest} t...
app/containers/FeaturePage/index.js
Rohitbels/KolheshwariIndustries
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
graphql/subscription/app/src/components/NotFound.js
networknt/light-java-example
import React from 'react'; const NotFound = ({ match }) => { return ( <div className="NotFound">404 Not Found</div> ); }; export default NotFound;
test/test_helper.js
Vedant-Koditkar/ReduxSimpleStarter
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/index.js
nnance/react-backbone-flux-example
import React from 'react'; import ReactDOM from 'react-dom'; import { App } from './app/components/App'; import '../styles/index.scss'; ReactDOM.render(<App />, document.getElementById('root'));
FirstApp/app/screens/Feed.js
xizhouhezai/react-app
import React, { Component } from 'react'; import { Text, View, ScrollView } from 'react-native'; import { List, ListItem } from 'react-native-elements'; import { users } from '../config/data'; class Feed extends Component { onLearnMore = (user) => { this.props.navigation.navigate('Details', { ...user }); ...
src/components/VmActions/ConsoleConfirmationModal.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import ConfirmationModal from './ConfirmationModal' import { downloadConsole, openConsoleModal, closeConsoleModal } from '_/actions' import { msg } from '_/intl' import { doesVmSessionExistForUserId } from '_/utils' impo...
src/components/SidebarWebcamTab.js
TorinoMeteo/tm-realtime-map
import React from 'react' import PropTypes from 'prop-types' class SidebarWebcamTab extends React.Component { static propTypes = { webcams: PropTypes.array.isRequired, selected: PropTypes.object, onSelectWebcam: PropTypes.func.isRequired } render () { return ( <div className='sidebar-conte...
app/routes.js
SixSecondMonks/sos-electron
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CounterPage from './containers/CounterPage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> <Route path...
node_modules/rc-collapse/es/PanelContent.js
raptor1989/MobileHeader
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...
docs/src/app/components/pages/components/AutoComplete/Page.js
lawrence-yu/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 autoCompleteReadmeText from './README'; import autoCompleteCode from '!ra...
docs/src/app/components/pages/customization/InlineStyles.js
barakmitz/material-ui
import React from 'react'; import Title from 'react-title-component'; import Checkbox from 'material-ui/Checkbox'; import CodeExample from '../../CodeExample'; import typography from 'material-ui/styles/typography'; class InlineStyles extends React.Component { getStyles() { return { headline: { fon...
src/svg-icons/communication/ring-volume.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationRingVolume = (props) => ( <SvgIcon {...props}> <path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0...
docs/routes/Home/components/HomeView.js
shengnian/shengnian-ui
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
examples/with-mobx-state-tree/components/SampleComponent.js
JeromeFitz/next.js
import React from 'react' import Link from 'next/link' import { inject, observer } from 'mobx-react' import Clock from './Clock' @inject('store') @observer class SampleComponent extends React.Component { componentDidMount() { this.props.store.start() } componentWillUnmount() { this.props.store.stop() ...
app/assets/javascripts/components/Markdown.js
Codeminer42/cm42-central
import React from 'react'; import Parser from 'html-react-parser'; import memoize from 'memoizee'; import PropTypes from 'prop-types'; const Markdown = ({ source }) => { if (source) { const descriptionHTML = window.md.makeHtml(source); const descriptionComponent = Parser(descriptionHTML); return ( ...
actor-apps/app-web/src/app/components/activity/GroupMember.react.js
liruqi/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import React from 'react'; import DialogActionCreators from 'actions/DialogActionCreators'; import KickUserActionCreators from 'actions/KickUserActionCreators'; import KickUserStore from 'stores/KickUserStore' import AvatarItem from 'components/common/Avata...
Gallery-in-React/src/components/Main.js
brilliantyy/React-Native
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; // 获取图片信息 let imageData = require('../data/imageData.json'); // 将图片名信息转换成URL路径信息 imageData = (function genImageURL(imageDataArr) { for (let i = 0, len = imageDataArr.length; i < len; i++) { let singleImageData = imageDa...
src/SoundPlayer.js
vire/react-sound-player
import React from 'react'; import { SeekBar } from './SeekBar'; import { Waveform } from './Waveform'; import { TimeDisplay } from './TimeDisplay'; import { PlaybackControl } from './PlaybackControl'; export class SoundPlayer extends React.Component { constructor(props) { super(props); this.state = { s...
node_modules/react-router/es6/Router.js
amybingzhao/savings-planner-web
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 = {...
src/svg-icons/image/photo-size-select-small.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectSmall = (props) => ( <SvgIcon {...props}> <path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H...
src/actions/GlobalActions.js
peragro/peragro-ui
import React from 'react' import Reflux from 'reflux' var GlobalActions = module.exports = Reflux.createActions(["tick"]);
app/containers/auftragsplanung/damen.js
danielstorch/PPS-Tool-Desk
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import Damen from '../../components/Damen' import { connect } from 'react-redux'; import { setCurrentPage, closeOpenNavLeft }...
src/server.js
remoteportal/widgets-spa-react
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/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....
stories/components/form/formInput/index.js
sethbergman/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormInput from 'shared/components/form/formInput/formInput'; storiesOf('shared/components/form/formInput', module) .add('Default input', () => ( <FormInput label="Input" ...
src/Day.js
tomkp/react-calendar-pane
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Day extends Component { render() { const { today, date, selected, classes, handleClick, children, } = this.props; const classNames = ['Day']; if (today.isSame(date, 'day')) { ...
src/svg-icons/device/battery-charging-full.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryChargingFull = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H...
pootle/static/js/auth/index.js
electrolinux/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import FluxComponent from 'flummox/componen...
client-react/src/components/Common/Footer.js
diman84/Welthperk
import React from 'react'; import { Grid, Col, Row } from 'react-bootstrap'; const PublicFooter = () => ( <div className="publicpage__footer"> <Grid> <Row> <Col md={6} mdOffset={3}> <div className="publicpage__footer--container"> <div className="publicpage__footer--socials tex...
packages/my-joy-instances/src/mocks/declarative-redux-form.js
geek/joyent-portal
import React from 'react'; export default ({ children, ...props }) => React.createElement(children, props);
tutorial/lesson-4/client/components/Header.js
reimagined/resolve
import React from 'react' // The react-helmet library allows you to manage the document *head* section. import { Helmet } from 'react-helmet' import { useStaticResolver } from '@resolve-js/react-hooks' const Header = ({ title, css }) => { // Use the *useStaticResolver* hook to obtain the full path to a static resour...
notebook/book/ecmascript/JavaScript-Application-Design/practice/React/react-redux-webpack/lesson1/components/TodoList/todoList.js
JMwill/wiki
import React, { Component } from 'react'; import TodoItem from '../TodoItem/todoItem'; class TodoList extends Component { constructor(props) { super(props); }; render() { return ( <ul> {this.props.todos.map((todo) => { return <TodoItem key={t...
src/index.js
Bryukh/random_figures
import React from 'react'; import {render} from 'react-dom'; import App from './components/App'; import { createStore } from 'redux' import { Provider } from 'react-redux' import figuresApp from './reducers' let store = createStore(figuresApp); render( <Provider store={store}> <App /> </Provider>, ...
test/fixtures/webpack-message-formatting/src/AppNoDefault.js
timlogemann/create-react-app
import React, { Component } from 'react'; import myImport from './ExportNoDefault'; class App extends Component { render() { return <div className="App">{myImport}</div>; } } export default App;
src/index.js
shirasudon/chat
// @format import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import { createLogger } from 'redux-logger' import reducer from './reducers' import './index.css' import App from './compo...
v8/development/node_modules/eslint-config-airbnb/test/test-react-order.js
BigBoss424/portfolio
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '..'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, rules: { // It is okay to import devDependencies in tests. ...
src/components/About/UserInfo.js
taken1994/big-demo
import React, { Component } from 'react'; class UserInfo extends Component { render() { const userInfo = this.props.userInfo; return ( <div className='user-info'> <img src={userInfo.avatar_url} /> <ul> <li> <b>{userInfo.followers}</b> <span>followers</s...
fields/types/html/HtmlField.js
vokal/keystone
import Field from '../Field'; import React from 'react'; import tinymce from 'tinymce'; import { FormInput } from '../../../admin/client/App/elemental'; import evalDependsOn from '../../utils/evalDependsOn'; /** * TODO: * - Remove dependency on underscore */ var lastId = 0; function getId () { return 'keystone-h...
Realization/frontend/czechidm-core/src/components/basic/Table/DateCell.js
bcvsolutions/CzechIdMng
import React from 'react'; import moment from 'moment'; // import DefaultCell from './DefaultCell'; /** * Renders cell with date content. * Parametrs are automatically propagated from table / row / column. * * @param number rowIndex * @param array[json] input data * @param property column key * @param props oth...
app/assets/javascripts/src/components/sharedComponents/IceCreamCone5.js
talum/creamery
import React from 'react' const IceCreamCone5 = () => ( <div className="button button--circle button--has-icon button--color-lavender"> <div className="button__icon"> <svg viewBox="800 -600 400 320"> <g transform="matrix(1,0,0,-1,0,1)" id="g10"> <g tran...
src/components/layout/header/index.js
LeoVitale/express-beer
import React from 'react'; import styles from './styles.scss'; import LogoImage from 'images/beer-logo.svg'; const Header = () => ( <div className={styles.header}> <img className={styles.logo} src={LogoImage} alt="logo" /> </div> ); export default Header;
javascript/Slide/Form.js
AppStateESS/carousel
'use strict' import React from 'react' import PropTypes from 'prop-types' import Dropzone from 'react-dropzone-uploader' import ratio from '../Extends/ratio' import BigCheckbox from '@essappstate/canopy-react-bigcheckbox' import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' import {faVideo} from '@fortawesome...
frontend/src/containers/App.js
AndrewPHunter/readable
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import {BrowserRouter, Switch, Route} from 'react-router-dom'; import {connect} from 'react-redux'; import sortBy from 'sort-by'; import Shell from '../components/Shell'; import LoadingDialog from '../components/LoadingDialog'; import HomeP...
src/components/CardView.js
MrToph/deck-builder
/* global componentHandler */ import React from 'react' import classes from './CardView.scss' export default class CardView extends React.Component { static propTypes = { addNew: React.PropTypes.bool, url: React.PropTypes.string, name: React.PropTypes.string, onNameChange: React.PropTypes.func, o...
app/containers/common/EditDistrict.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import FRC from 'formsy-react-components'; import Formsy from 'formsy-react'; import PropTypes from 'prop-types'; import isEmpty from 'lodash.isempty'; import { Confirm } from '../Modal'; const { Input } = FRC; class EditDistrictForm extends Component { constructor() { ...
src/routes.js
tanvip/hackPrinceton
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, Widgets, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (store) ...
app/components/ConnectDapp/ApproveConnection.js
CityOfZion/neon-wallet
// @flow import React from 'react' import classNames from 'classnames' import { isEmpty } from 'lodash-es' import { JsonRpcRequest } from '@json-rpc-tools/utils' import { SessionTypes, AppMetadata } from '@walletconnect/types' import { useWalletConnect } from '../../context/WalletConnect/WalletConnectContext' import ...
src/parser/paladin/retribution/modules/core/azeritetraits/RelentlessInquisitor.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { calculateAzeriteEffects } from 'common/stats'; import { formatNumber, formatPercentage } from 'common/format'; import TraitStatisticBox, { STATISTIC_ORDER } fro...
src/views/Public/DataApplication/DataApplication.js
giux78/daf-dataportal
import React from 'react' import { connect } from 'react-redux' import { fetchDataApplications } from './actions/dataApplicationsActionCreators' import DataApplicationsList from './components/DataApplicationsList.jsx' import { initialStateList } from './reducers/initialStates' const mapStateToProps = state => state.d...
app/jsx/files/ShowFolder.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
js/Header.js
dianafisher/FEM-complete-intro-to-react
import React from 'react' import { Link } from 'react-router' class Header extends React.Component { constructor (props) { super(props) this.state = { blah: '' } /* In React components declared as ES6 classes, methods follow the same semantics as regular ES6 classes. This means th...
nodejs/dist/template-app/node_modules/react-dropzone/index.js
darkcl/OTA-Helper
import accept from 'attr-accept'; import React from 'react'; const supportMultiple = (typeof document !== 'undefined' && document && document.createElement) ? 'multiple' in document.createElement('input') : true; class Dropzone extends React.Component { constructor(props, context) { super(props, context); ...
src/svg-icons/navigation/chevron-right.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronRight = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); NavigationChevronRight = pure(NavigationChevronRight); NavigationChevronRigh...
src/svg-icons/editor/insert-invitation.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertInvitation = (props) => ( <SvgIcon {...props}> <path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/> ...
ui/js/dfv/src/fields/boolean/index.js
pods-framework/pods
import React from 'react'; import Pick from '../pick'; import { toNumericBool } from 'dfv/src/helpers/booleans'; import { BOOLEAN_ALL_TYPES_OR_EMPTY, FIELD_COMPONENT_BASE_PROPS, } from 'dfv/src/config/prop-types'; const Boolean = ( props ) => { const { fieldConfig = {}, setValue, value, } = props; const ...
admin/client/components/ListColumnsForm.js
Ftonso/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import CurrentListStore from '../stores/CurrentListStore'; import Popout from './Popout'; import PopoutList from './PopoutList'; import { Button, InputGroup } from 'elemental'; var ListColumnsForm = React.createClass({ displayName: 'ListColumnsForm', prop...
src/client/assets/javascripts/app/index.js
yknx4/aleworld
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Redbox from 'redbox-react'; import Root from './Root'; import configureStore from './store/configureStore'; const store = configureStore(); // Get the DOM Element that will host our React applicatio...
scripts/components/ui/icon.js
evilfaust/lyceum9sass
import React from 'react'; class Icon extends React.Component { constructor(props) { super(props); this.displayName = 'Icon'; this.icon = "fa " + this.props.icon + " " + this.props.size; } render() { return ( <i className={this.icon}></i> ); } } export defa...
client/utils/chartUtils.js
Cellarise/cell-cycle
import R from 'ramda'; import React from 'react'; //eslint-disable-line import PropTypes from 'prop-types'; //eslint-disable-line const chartColors = ["#3366CC", "#DC3912", "#FF9900", "#109618", "#990099", "#3B3EAC", "#0099C6", "#DD4477", "#66AA00", "#B82E2E", "#316395", "#994499", "#22AA99", "#AAAA11", "#6633CC", "#...
web/index.js
sunkeyhub/jedi_monitor
/** * 前端入口文件 * * @author : Sunkey */ import './global/index'; import React from 'react'; import { render } from 'react-dom'; import { createStore, combineReducers, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory } from 'react-router'; import { syncHist...