path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/test/search_bar.js
jperez10/RobinHoodAutoTrader
import React, { Component } from 'react'; class SearchBar extends Component { // sets inital state for this component constructor(props) { super(props); this.state = { term: '' }; } render() { return ( <div className="search-bar"> Stocks: <input ...
project-templates/reactfiber/externals/react-fiber/fixtures/ssr/src/index.js
ItsAsbreuk/itsa-cli
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render(<App assets={window.assetManifest} />, document);
packages/benchmarks/styled-components/simple/client/Table.js
A-gambit/CSS-IN-JS-Benchmarks
import React from 'react'; import styled from 'styled-components'; const Table = styled.div` display: table; margin-top: 10px; `; const Row = styled.div` display: table-row; `; const Cell = styled.div` display: table-cell; padding: 10px; background: rgba(74, 174, 53, ${props => props.value}); `; export ...
src/pages/paypal-donate.js
ScottDowne/donate.mozilla.org
import React from 'react'; import MozillaFooter from '../components/mozilla/footer.js'; import Header from '../components/header.js'; import AmountButtons from '../components/amount-buttons.js'; import Frequency from '../components/donation-frequency.js'; import SubmitButton from '../components/submit-button.js'; impor...
app/components/Dashboard/TestingSessions/index.js
cdiezmoran/AlphaStage-2.0
import React, { Component } from 'react'; import { array, object, string, func } from 'prop-types'; import Sessions from './Sessions'; import Empty from './Empty'; import Tests from './Tests'; class Index extends Component { state = { page: this.props.sessions.length > 0 ? 0 : 1, selectedIndex: 0 }; co...
client/ssr.js
kieusonlam/feathers-react-mobx-starter
import React from 'react' import ReactDOMServer from 'react-dom/server' import { match, RouterContext } from 'react-router' import { Provider } from 'mobx-react' import fetchData from '../client/utils/fetchData' import Html from '../client/utils/Html' import {createServerState} from '../client/state' import createRo...
modules/gui/src/app/home/footer/footer.js
openforis/sepal
import {Button} from 'widget/button' import {ButtonGroup} from 'widget/buttonGroup' import {Layout} from 'widget/layout' import {UsageButton} from '../user/usage' import {UserDetailsButton} from '../user/userDetails' import {UserMessagesButton} from '../user/userMessages' import {compose} from '../../../compose' import...
WeexRNBench/LoadBenchmarkApp.js
gubaojian/trylearn
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View, FlatList, ScrollView } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or ...
packages/xo-web/src/xo-app/host/tab-general.js
vatesfr/xo-web
import * as CM from 'complex-matcher' import _ from 'intl' import Copiable from 'copiable' import Icon from 'icon' import map from 'lodash/map' import React from 'react' import store from 'store' import HomeTags from 'home-tags' import { addTag, removeTag } from 'xo' import { BlockLink } from 'link' import { Container,...
node_modules/react-router/es6/withRouter.js
HK8383/react_project_imooc
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; }; import invariant from 'invariant'; import React from 'react';...
src/routes/private/layerExample.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import Button from '../../components/Button/Button'; import Layer from '../../components/Layer'; import Box from '../../components/Box'; class LayerExample extends React.Component { constructor() { super(); this.state = { openA: false, openB: fal...
admin/src/components/ListSort.js
wustxing/keystone
import { FormNote } from 'elemental'; import classNames from 'classnames'; import React from 'react'; import Popout from './Popout'; import PopoutList from './PopoutList'; import vkey from 'vkey'; import CurrentListStore from '../stores/CurrentListStore'; const Transition = React.addons.CSSTransitionGroup; var ListS...
examples/server/client.js
reactjs/react-router-redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { Router, browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import { configureStore, DevTools } from './store' import routes from './routes' ...
docs/app/Examples/elements/Segment/States/SegmentExampleDisabled.js
clemensw/stardust
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleDisabled = () => ( <Segment disabled> Disabled content </Segment> ) export default SegmentExampleDisabled
src/services/DocumentObject.js
webcerebrium/ec-react15-lib
// import React from 'react'; //import { Logger } from './Logger'; const getObjectField = (obj, field) => { const myRegexp = /^(.*)\[(.*)\]$/g; const match = myRegexp.exec(field); if (match) { const f = match[1]; const index = match[2]; return obj[f][index]; } return obj[field]; }; export const ...
src/packages/@ncigdc/modern_components/AnnotationSummary/AnnotationSummary.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { compose, branch, renderComponent } from 'recompose'; import Column from '@ncigdc/uikit/Flex/Column'; import EntityPageVerticalTable from '@ncigdc/components/EntityPageVerticalTable'; import Card from '@ncigdc/uikit/Card'; import CaseLink from '@ncigdc/components/Links/CaseL...
src/components/search_bar.js
RobGThai/ReduxTutorial
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } render() { return ( <div className="search-bar"> <input value={this.state.term} onChange={ event => this.onInputC...
examples/js/complex/app.js
AllenFang/react-bootstrap-table
/* eslint no-unused-vars: 0 */ /* eslint no-console: 0 */ /* eslint space-infix-ops: 0 */ /* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; function addJobs(quantity) { const startId = jobs.length; for (let i = 0; i < qu...
04-simple/src/Counter.js
iproduct/course-node-express-react
import React from 'react'; import PropTypes from 'prop-types'; export class Counter extends React.Component { constructor(props) { super(props); this.state = {count: props.initialCount}; this.tick = this.tick.bind(this); } tick() { this.setState({count: this.state.count + 1}); } ...
docs/app/src/components/ConditionalLanguage.js
tercenya/compendium
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import CodeExample from './CodeExample'; const ConditionalLanguage = (props, context) => { var lang = context.lang || props.lang || 'ruby' const children = props.children; const target = _.find(children, (c) => { return c.prop...
src/parser/shared/modules/items/bfa/raids/uldir/DiscOfSystematicRegression.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import ItemDamageDone from 'interface/ItemDamageDone'; import {formatNumber} from 'common/format'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import BoringItemValueText from 'interface/statistics/compo...
src/index.js
dominicfallows/todo-app-react-redux-aws
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import store from './root/store'; import Root from './root'; ReactDOM.render( <Root store={store} />, document.getElementById('root') );
src/charts/ingress-egress/story.js
DensityCo/charts
import React from 'react'; import {storiesOf} from '@storybook/react'; import {chartAsReactComponent} from '../index'; import ingressEgress from './index'; const IngressEgress = chartAsReactComponent(ingressEgress); function generateRandomMillisecondPosition() { const time = Math.floor(Math.random() * 500000) + 10...
example/pages/tab/navbar_auto.js
n7best/react-weui
import React from 'react'; import { Tab, NavBarItem, Article } from '../../../build/packages'; export default class NavBarAutoDemo extends React.Component { render() { return ( <Tab type="navbar"> <NavBarItem label="Nav1"> <Article> <h...
packages/react-error-overlay/src/containers/StackTrace.js
gutenye/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import StackFrame from './StackFrame'; import Collapsible from '../components/Coll...
src/components/Testimonials.js
arthur-cen/arthur-cen.github.io
import React, { Component } from 'react'; export default class Testimonials extends Component { render() { let resumeData = this.props.resumeData; return ( <section id="testimonials"> <div className="text-container"> <div className="row"> <div className="two columns header-...
docs/src/sections/ListGroupSection.js
pombredanne/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ListGroupSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
web/client/configdev/src/config/NasManager.js
project-owner/Peppy
/* Copyright 2021 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any la...
app/javascript/mastodon/features/follow_recommendations/components/account.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import { makeGetAccount } from 'mastodon/selectors'; import Avatar from 'mastodon/compone...
services/storeservice.js
cackharot/fbeazt-admin-react-native
import React from 'react'; import Config from 'react-native-config'; import {BaseService} from './baseservice'; import {Product} from '../model/product'; import {Restaurant} from '../model/restaurant'; export class StoreService extends BaseService { getStores(nextUrl, searchModel) { let sm = Object.assign({}, ...
packages/core/helper-plugin/lib/src/components/LoadingIndicatorPage/index.js
wistityhq/strapi
import React from 'react'; import { Loader } from '@strapi/design-system/Loader'; import { Flex } from '@strapi/design-system/Flex'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const Wrapper = styled(Flex)` height: 100vh; `; const LoadingIndicatorPage = ({ 'data-testid': dataTestId, ...
node_modules/semantic-ui-react/src/modules/Modal/ModalDescription.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A modal can have a header. */ function ModalDescription(props) { const { children, className } = props const classes = cx('...
src/routes/banner/index.js
ykx456654/hr_admin
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import cookies from 'cookiesjs' import { message } from 'antd' import { Link,routerRedux } from 'dva/router' import MyUpload from '../../components/MyUpload' import style from './index.less' import { Button, Icon, F...
src/docs/examples/ProgressBar/Example70Percent.js
wsherman67/UBA
import React from 'react'; import ProgressBar from 'ps-react/ProgressBar'; /** 70% progress */ export default function Example70Percent() { return <ProgressBar percent={70} width={150} /> }
src/ContentBlocks/BlockCarousel/BlockCarouselPreview.js
grommet/grommet-cms-content-blocks
import PropTypes from 'prop-types'; import React from 'react'; import Box from 'grommet/components/Box'; import Carousel from 'grommet/components/Carousel'; import Image from 'grommet/components/Image'; export default function BlockCarouselPreview ({ carousel }) { const slides = carousel.map((slide, index) => <B...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
hishammk/monthley.com
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/Logo.js
thanhiro/techmatrix
import React from 'react'; const Logo = () => ( <a className='logo' href='#'> <i className='icon-cog-outline'/> <span>Tech</span>matrix</a> ); export default Logo;
src/client/components/PostSummaryList.js
jmhill/justinmhill-site
import React from 'react'; import PostSummary from './PostSummary.js'; export default class PostSummaryList extends React.Component { render() { let posts = this.props.posts; return ( <div> {posts.map( post => { return ( <PostSummary key={post._id}...
src/containers/about/About.js
c764023940/reactDemo
import React from 'react'; const About = () => { return ( <div className="container"> <h1 className="display-3">关于我们</h1> <p> 欢迎光临。。。。。。。。。。。 </p> </div> ); }; export default About;
node_modules/react-bootstrap/es/CarouselItem.js
yeshdev1/Everydays-project
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
plugins/PostFeed/components/PostFeed.js
synthesis-js/react-synthesis
// Content.js import React from 'react'; import Post from './PostItem'; class PostFeed extends React.Component { constructor(props) { super(props); this.state = { posts: [] } this.getAllPost = this.getAllPost.bind(this); } componentDidMount() { this.getAllPost(); } getAllPost() { c...
js/react/generics/dialogue_box.js
nCoda/julius
// -*- coding: utf-8 -*- // ------------------------------------------------------------------------------------------------ // Program Name: Julius // Program Description: User interface for the nCoda music notation editor. // // Filename: js/react/generics/dialogue_box.js // Purpose: ...
addons/ondevice-knobs/src/index.js
storybooks/react-storybook
import React from 'react'; import addons from '@storybook/addons'; import Panel from './panel'; export { withKnobs } from '@storybook/addon-knobs'; export function register() { addons.register('RNKNOBS', () => { const channel = addons.getChannel(); addons.addPanel('RNKNOBS', { title: 'Knobs', //...
src/svg-icons/action/view-day.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewDay = (props) => ( <SvgIcon {...props}> <path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"/> </SvgIcon> ); ActionViewDay = pure(A...
client/components/Animal/AnimalForm.js
glenrage/another-chance
import ListErrors from '../ListErrors'; import React from 'react'; import agent from '../../agent'; import { connect } from 'react-redux'; const mapStateToProps = state => ({ ...state.animalForm }); const mapDispatchToProps = dispatch => ({ onLoad: payload => dispatch({ type: 'ANIMALFORM_LOADED', payload }), on...
packages/bonde-styleguide/src/form/InputAdornment/InputAdornment.spec.js
ourcities/rebu-client
import test from 'ava' import React from 'react' import { mount } from 'enzyme' import InputAdornment from './InputAdornment' test('render exclamation icon when `invalid` is true', t => { const node = mount(<InputAdornment invalid />) t.is(node.find('Icon').get(0).props.name, 'exclamation') }) test('render tick i...
src/index.js
hiiamyes/tw-100-mountain
/*eslint-disable import/default*/ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import './styles/styles.scss'; //Yep, that's ...
blueocean-material-icons/src/js/components/svg-icons/av/slow-motion-video.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvSlowMotionVideo = (props) => ( <SvgIcon {...props}> <path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zM5.69 7...
src/index.js
gios/intime
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, Link } from 'react-router'; import history from './history'; import { Login } from './login/Login.js'; import { Registration } from './registration/Registration.js'; import { NoMatch } from './NoMatch.js'; import { CheckIsLogined } fro...
fields/types/password/PasswordFilter.js
andrewlinfoot/keystone
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const EXISTS_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ propTypes:...
docs/app/Examples/views/Item/Variations/ItemExampleRelaxed.js
koenvg/Semantic-UI-React
import React from 'react' import { Item } from 'semantic-ui-react' const ItemExampleRelaxed = () => ( <Item.Group relaxed> <Item> <Item.Image size='tiny' src='http://semantic-ui.com/images/wireframe/image.png' /> <Item.Content verticalAlign='middle'> <Item.Header as='a'>12 Years a Slave</Ite...
examples/react-router/src/components/Inbox.js
ericf/react-intl
import React from 'react'; import { FormattedNumber, FormattedPlural, } from 'react-intl'; const Inbox = () => ( <div> <h2>Inbox</h2> <p> You have {' '} <FormattedNumber value={1000} /> {' '} <FormattedPlural value={1000} one="message" ...
src/js/practice/App_state_props.js
mirandagithub/Egg
import React from 'react'; //import MessageBox from './components/MessageBox'; var App = React.createClass( { getInitialState: function(){ return { txt: '', id: 0 }; }, updateTxt: function(e){ this.setState({txt: e.target.value}); }, /* getDefaultProps() { ...
src/tdd/button.js
jonnyohjonnyo/TDD_LunchAndLearn_HDQC_April_2017
import React from 'react'; const getRandomString = () => { let link = 'http://www.google.com'; const randomNumber = Math.floor((Math.random() * 3) + 1); if (randomNumber === 1) { link = 'http://www.pinterest.com'; } if (randomNumber === 2) { link = 'http://www.instagram.com'; } if (randomNumber ===...
src/routes/SingleEvent/SingleEvent.js
peksi/ilmomasiina
import React from 'react'; import PropTypes from 'prop-types'; import nl2br from 'react-nl2br'; import _ from 'lodash'; import moment from 'moment'; import { toast } from 'react-toastify'; import { connect } from 'react-redux'; import * as SingleEventActions from '../../modules/singleEvent/actions'; import SignupButton...
blueprints/smart/files/__root__/containers/__name__/__name__.js
pawelniewie/czy-to-jest-paleo
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const...
src/component/App/index.js
Goblinlordx/cv-gen
import React from 'react'; import ContentLayout from 'component/ContentLayout'; import HeaderSection from 'component/HeaderSection'; import CareerSection from 'component/CareerSection'; import TechSkillSection from 'component/TechSkillSection'; import CertSection from 'component/CertSection'; const spacerStyle = { h...
src/routes/charts_page/components/pie.js
chaoming56/react-blog
import React from 'react' import { qnfetch, pvURL } from 'assets/utils/request' import ReactEcharts from 'echarts-for-react' export default class Pie extends React.Component { state = { data: [] } defaultOption = (data) => { const os = data.map(x => x._id), total = data.map(x =...
src/svg-icons/hardware/developer-board.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDeveloperBoard = (props) => ( <SvgIcon {...props}> <path d="M22 9V7h-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2v-2h-2V9h2zm-4 10H4V5h14v14zM6 13h5v4H6zm6-6h4...
src/svg-icons/editor/format-strikethrough.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatStrikethrough = (props) => ( <SvgIcon {...props}> <path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/> </SvgIcon> ); EditorFormatStrikethrough = pure(EditorFormatStrikethrough); Edit...
src/svg-icons/device/signal-wifi-1-bar.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M6.67 14.86L12 21.49v.01...
packages/icons/src/md/alert/AddAlert.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdAddAlert(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M20.02 41.02c0 2.2 1.78 3.98 3.98 3.98s3.98-1.78 3.98-3.98h-7.96zm17.74-8.38L42 36.88V39H6v-2.12l4.24-4.24V21c0-6.5 4.5-11.94 10.58-13.38V6.18C20.82...
src/Stories/TagList.stories.js
sashasushko/moira-front
// @flow import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import TagList from '../Components/TagList/TagList'; const tags = ['abonentsErrors', 'dmitry:ReplicaClusterError.ReplicaClusterWarn', 'test']; storiesOf('TagList', module) .add('Def...
blueocean-material-icons/src/js/components/svg-icons/maps/person-pin-circle.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsPersonPinCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0-3.14-.85-4-2.15.02-1.32 2.67-2.0...
docs/app/Examples/views/Comment/index.js
clemensw/stardust
import React from 'react' import Content from './Content' import Types from './Types' import States from './States' import Variations from './Variations' const CommentExamples = () => ( <div> <Types /> <Content /> <States /> <Variations /> </div> ) export default CommentExamples
src/components/forms/Textarea.js
taiwoabegunde/developersmap
/** * Created by Raphson on 9/24/16. */ import React from 'react'; import Formsy from 'formsy-react'; const MyTextarea = React.createClass({ // Add the Formsy Mixin mixins: [Formsy.Mixin], // setValue() will set the value of the component, which in // turn will validate it and the rest of the form ...
src/svg-icons/action/supervisor-account.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSupervisorAccount = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 ...
docs/src/pages/IconsPage.js
chris-gooley/react-materialize
import React from 'react'; import Row from 'Row'; import Col from 'Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import Samples from './Samples'; import iconSimple from '../../../examples/IconSimple'; import iconSizes from '../../../examples/IconSizes'; import Code from '!r...
docs/app/Examples/collections/Grid/Types/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const GridTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Grid' description='A basic...
test/fixtures/webpack-message-formatting/src/AppLintError.js
jdcrensh/create-react-app
import React, { Component } from 'react'; function foo() { const a = b; } class App extends Component { render() { return <div />; } } export default App;
blueocean-material-icons/src/js/components/svg-icons/content/send.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentSend = (props) => ( <SvgIcon {...props}> <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/> </SvgIcon> ); ContentSend.displayName = 'ContentSend'; ContentSend.muiName = 'SvgIcon'; export default ContentSend;
src/components/video_list_item.js
daveprochazka/ReduxSimpleStarter
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) =>{ const imageUrl = video.snippet.thumbnails.default.url; const videoTitle = video.snippet.title; // const video = props.video; console.log(video); return( <li className="list-group-item" onClick={() => onVi...
examples/03 Nesting/Drop Targets/index.js
konce/react-dnd
import React from 'react'; import Container from './Container'; export default class NestingDropTargets { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drop%20Targets'>Browse the Source</a></b> </p> <p> ...
src/components/ErrorAlert.js
qandobooking/booking-frontend
import React from 'react'; import { Alert } from 'react-bootstrap'; export default class ErrorAlert extends React.Component { render() { const { status, statusText, title } = this.props; return ( <Alert bsStyle="danger"> <h4>{title}</h4> { typeof status !== 'undefined' ...
packages/wix-style-react/src/PageFooter/test/PageFooter.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import PageFooter from '../PageFooter'; import { Button } from '../..'; import Pagination from '../../Pagination'; import Box from '../../Box'; import ArrowLeft from 'wix-ui-icons-common/ArrowLeft'; const tests = [ { describe: 'PageFooter',...
lib/components/Glyph.js
boldkhuu/uikit-with-react
import { classNames } from '../utils'; import React from 'react'; const Glyph = React.createClass({ propTypes: { icon: React.PropTypes.string.isRequired, className: React.PropTypes.string, }, render() { const props = this.props; const { className } = props; const attr = { className: ...
src/common/ColumnList/ItemColumn.js
Syncano/syncano-dashboard
import React from 'react'; import Radium from 'radium'; export default Radium(React.createClass({ displayName: 'ItemColumn', getStyles() { return { display: 'flex', flexDirection: 'column', justifyContent: 'center' }; }, render() { const styles = this.getStyles(); return (...
docs/src/index.js
paul-pagnan/react-swipe-away
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
app/components/chat-list/index.js
cpselvis/chatroom
import React, { Component } from 'react'; import './index.scss'; class ChatList extends Component { render() { return ( <div className="chat-list"> <div className="contact-item"> <div className="avatar"> <img src="https://avatars0.githubusercontent.com/u/2594636?v=4&s=100" />...
dynamic/react/api-app/index.js
ted-spence-avalara/developer-dot
import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import {createStore, applyMiddleware} from 'redux'; import createLogger from 'redux-logger'; import {Provider} from 'react-redux'; import userManager from './user-manager'; import Oidc from 'oidc-client'; import reducer from './redu...
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/LayoutViewer.js
jzmq/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import styles from './LayoutViewer.css'; import type {Layout} from './types'; type Props ...
app/components/Pages/Dashboard.js
alexpell00/FRCUltimateManager
/* * @Author: alexpelletier * @Date: 2016-03-20 15:57:08 * @Last Modified by: alexpelletier * @Last Modified time: 2016-03-20 16:06:19 */ import React from 'react'; var Dashboard = React.createClass({ render: function() { return ( <div className="content container"> <h2 className="page-title">Dashb...
client/views/setupWizard/steps/FinalStep.stories.js
Sing-Li/Rocket.Chat
import React from 'react'; import FinalStep from './FinalStep'; export default { title: 'views/setupWizard/steps/FinalStep', component: FinalStep, }; export const _default = () => <FinalStep logoSrc='https://open.rocket.chat/images/logo/logo.svg' />;
src/components/PluginContainer.js
metasfresh/metasfresh-webui-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Container from '../components/Container'; const pluginWrapper = function pluginWrapper(WrappedComponent, Chi...
src/svg-icons/av/games.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvGames = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); AvGames = pure(AvGames); AvGames.dis...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsConstructor.js
samwgoldman/flow
// @flow import React from 'react'; class MyComponent1 extends React.Component { constructor(props: Props) {} defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } class MyComponent2 extends React.Component { props: Props; constructor(props: Props) {} defaul...
src/modules/dashboard/components/DateSelection/index.js
burakince/d3js-react-examples
import React, { Component } from 'react'; import Select from 'react-select'; import 'react-select/dist/react-select.css'; class DateSelection extends Component { constructor(props) { super(props); this.state = { value: 'today' }; } updateState(newValue) { this.setState({ value: new...
demos/reactnative/App.js
tus/tus-js-client
/* eslint-disable no-console */ import React from 'react' import { StyleSheet, Text, View, Button, Image, Linking } from 'react-native' import { ImagePicker, Permissions } from 'expo' import tus from 'tus-js-client' const styles = StyleSheet.create({ container: { flex : 1, backgroundCo...
app/js/pages/Latest.js
niksoc/srmconnect
import React from 'react'; import QuestionList from '../components/QuestionList'; class Latest extends React.Component{ render(){ return ( <div> <QuestionList /> </div> ); } }; export default Latest;
src/App.js
cadesalaberry/salomon
import React, { Component } from 'react'; export default class App extends Component { constructor(props) { super(props); this.state = { opened: false, tab: 'home', }; } clickHome() { console.log('Clicked Home'); this.setState({ opened: true }); } clickVilla() { console....
app/components/user/NewChangelogsBadge.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import classNames from 'classnames'; import PusherStore from '../../stores/PusherStore'; class NewChangelogsBadge extends React.PureCompon...
examples/official-storybook/components/addon-a11y/Form/Row.js
storybooks/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; import Label from './Label'; import Input from './Input'; function Row({ label, input }) { return ( <div> {label} {input} </div> ); } Row.propTypes = { label: PropTypes.shape({ type: PropTypes.oneOf([Label]) }), input: PropTyp...
docs/app/Examples/elements/Step/States/StepExampleDisabled.js
ben174/Semantic-UI-React
import React from 'react' import { Step } from 'semantic-ui-react' const StepExampleDisabled = () => ( <Step.Group> <Step disabled>Billing</Step> </Step.Group> ) export default StepExampleDisabled
src/svg-icons/notification/folder-special.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationFolderSpecial = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29...
app/components/Tree/Tree.js
adamsome/electron-nav
// @flow import React from 'react' import Node from './Node' // import type { NodeType } from './Node' import styles from './Tree.css' type NodeType = { name: string, toggled?: boolean, active?: boolean, children?: Array<NodeType> } type Props = { data: NodeType | Array<NodeType>, onToggle: (node: NodeType...
fields/types/geopoint/GeoPointField.js
Freakland/keystone
import Field from '../Field'; import React from 'react'; import { FormRow, FormField, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'GeopointField', focusTargetRef: 'lat', valueChanged (which, event) { this.props.value[which] = event.target.value; this.props.onChange({ path: t...
src/routes/Home/components/HomeView.js
ethcards/react-redux-starter-kit
import React from 'react' import './HomeView.scss' export const HomeView = () => ( <div> <h1>Welcome to Taipei Ethereum Meetup</h1> <h4>We are going to use a smart contract for people to vote our new Logo.</h4> <p></p> <h2>Please use <a href="https://www.google.com/chrome/browser/desktop/index.html">...
fields/components/ItemsTableValue.js
everisARQ/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import { Link } from 'react-router'; var ItemsTableValue = React.createClass({ displayName: 'ItemsTableValue', propTypes: { className: React.PropTypes.string, exterior: React.PropTypes.bool, field: React.PropType...
styleguide/routes.js
tomgatzgates/loggins
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Styleguide from './Styleguide'; import Home from './sections/Home'; import Type from './sections/Type'; import Icons from './sections/Icons'; import Grids from './sections/Grids'; import Forms from './sections/Forms'; import Panels fr...
plugins/Files/js/components/dragoverlay.js
NebulousLabs/Sia-UI
import React from 'react' const DragOverlay = () => ( <div className='drag-overlay'> <span> <i className='fa fa-cloud-upload fa-3x' /> <h3>Drag to Upload</h3> </span> </div> ) export default DragOverlay