path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/radar/RadarChartBasic.js
marzolfb/rn-art-d3-examples
/* Copyright 2016 Capital One Services, 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
blueocean-material-icons/src/js/components/svg-icons/action/remove-shopping-cart.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionRemoveShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.83 1.62 0 1.1.89 2 1.99 2 .67 0 1....
app/javascript/client_messenger/giphy.js
michelson/chaskiq
import React from 'react' import axios from 'axios' import styled from '@emotion/styled' import attribution from './icons/Poweredby_100px-White_VertText.png' const GiphyBlock = styled.div` position: absolute; left: 128px; bottom: 48px; z-index: 10000; height: 251px; background: white; border: 1px solid #...
node_modules/react-bootstrap/es/Form.js
CallumRocks/ReduxSimpleStarter
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 ...
src/containers/ThankyouPage.js
nickeblewis/walkapp
import React from 'react' import { withRouter } from 'react-router' import { graphql } from 'react-apollo' import gql from 'graphql-tag' // import BusinessSection from './BusinessSection' class ThankyouPage extends React.Component { static propTypes = { router: React.PropTypes.object, data: React.PropT...
app/static/src/diagnostic/ElectricalProfileForm.js
SnowBeaver/Vision
import React from 'react'; import Checkbox from 'react-bootstrap/lib/Checkbox'; import Panel from 'react-bootstrap/lib/Panel'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import...
components/tree/demo/filter.js
TDFE/td-ui
import React from 'react'; import Tree from '../index'; const TreeNode = Tree.TreeNode; export default class Filter extends React.Component { render() { return ( <Tree checkable defaultExpandedKeys={['0-0-0', '0-0-1']} defaultSelectedKeys={['0-0-0', '0-0-1']} defaultCheckedK...
stories/components/common/loader/Loader.js
tidepool-org/viz
import React from 'react'; import { storiesOf } from '@storybook/react'; import Loader from '../../../../src/components/common/loader/Loader'; const props = {}; const BackgroundDecorator = (story) => ( <div style={{ backgroundColor: '#ddd', width: '100%', height: '96vh' }}> {story()} </div> ); storiesOf('L...
LaGou/views/Me.js
MisterZhouZhou/ReactNativeLearing
import React, { Component } from 'react'; import {StyleSheet, Text, View, ScrollView, Image, TouchableHighlight} from 'react-native'; export default class Home extends Component { static navigationOptions = { header: {visible: false}, tabBar: { label: '我', icon: ({ focused, tintColor }) => { ...
src/containers/FriendListApp.js
Barakar/FriendList
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Provider,connect } from 'react-redux'; import * as FriendsActions from '../action/friendsActions'; import FriendList from './FriendList'; @connect(state => { return { friendlist: state.friends }}) export default class ...
src/components/auth/LoginPage.js
juniorconsulting/internarena
import React from 'react'; import LoginFormComponent from './LoginFormComponent'; import AuthPage from './AuthPage'; class LoginPage extends React.Component { render() { return ( <AuthPage form={LoginFormComponent} next={this.props.location.query.next || '/'} /> ); } } export default LoginPage;
src/components/Skyline/Skyline.js
justincdalton/iso-birchbox
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; class Skyline { render() { return ( <div className="carousel-skyline"> <div className="carousel-skyline-section loaded skyline skyline-birchbox-man-summer-shop" data-asset-broker-slot="62" data-ass...
src/components/Summary.js
hunt-genes/gwasc
import RaisedButton from 'material-ui/RaisedButton'; import { Toolbar, ToolbarGroup } from 'material-ui/Toolbar'; import React from 'react'; import theme from '../theme'; import Link from './Link'; export default class Summary extends React.Component { static propTypes = { term: React.PropTypes.string, ...
node_modules/react-bootstrap/es/Tabs.js
nikhil-ahuja/Express-React
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 ...
docs-ui/components/text.stories.js
ifduyue/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import Text from 'app/components/text'; storiesOf('Text', module).add( 'default', withInfo('On-demand styling for native dom elements')(() => ( <div style={{padding: 20, backgroundColor: '#ff...
src/interface/common/CyclingVideo.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; class CyclingVideo extends React.PureComponent { static propTypes = { videos: PropTypes.arrayOf(PropTypes.string).isRequired, randomValue: PropTypes.number, }; constructor(props) { super(props); const randomValue = props.randomValue ...
demo/routes/about/components/About.js
flybears/component-react
/** * Created by flybear on 15/11/18. */ import React from 'react' class About extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); this.state = {click: false}; } handleClick(event){ this.setState({click: !this.stat...
src/components/organisms/projects-section.js
raulfdm/cv
import React from 'react'; import styled from 'styled-components'; import Linkify from 'linkifyjs/react'; import { MainContext } from 'src/contexts/main'; import { stringToArrayOfParagrahs } from 'src/utils/string.utils'; import ExperienceDescription from 'molecules/experience-description'; import RangeDate from 'mole...
app/javascript/mastodon/features/notifications/components/notification.js
Kirishima21/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/components/editors/PlainTextEditor.js
ReactPoland/react-community
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Editor } from 'slate'; /** * Define a schema. * * @type {Object} */ /* eslint-disable */ const schema = { nodes: { 'block-quote': props => <blockquote {...props.attributes}>{props.children}</blockquote>, 'bulleted-lis...
docs/src/app/AppRoutes.js
igorbt/material-ui
import React from 'react'; import { Route, Redirect, IndexRoute, } from 'react-router'; // Here we define all our material-ui ReactComponents. import Master from './components/Master'; import Home from './components/pages/Home'; import RequiredKnowledge from './components/pages/get-started/RequiredKnowledge'; i...
example/scripts/layouts/index.js
amiuhle/webpack-react-compiler-plugin
import React from 'react' export default (props) => { const { children, title } = props return ( <html> <head> <meta charSet='utf-8'></meta> <meta httpEquiv='x-ua-compatible' content='ie=edge'></meta> <link rel='stylesheet' href='/styles.css' /> <title>{title}</t...
page/src/components/Table.js
swpark6/Dumbledore
import React from 'react'; import { Table as STable, Label, Icon, Grid } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import './Table.css'; const Table = ({ data }) => { const [first, second, third] = data.slice(0, 3); const firstRow = first ? ( <STable.Row> <STable.Cell><Label classNam...
src/client/calendar/NcncaCalendar.js
AlexanderKapelyukhovskiy/rcn.io
import React from 'react' import Component from 'react-pure-render/component' import Calendar from './Calendar.jsx' import Grid from 'styles/grid' const sizesMaxWeekends = [1, 1, 1, 1, 2, 4, 4] const sizesEqual = [2, 2, 2, 2, 2, 2, 2] //if starts from 'cal-' we assume it's a valid id, otherwise it's a "name" //so by ...
src/corrections/mainPracticeCorrection/artistCard.js
AugustinLF/react-training
import PropTypes from 'prop-types'; import React from 'react'; import {getArtistInfoPromise} from '../../practice/main/libs/actionsHelpers'; import Card from './components/card'; import ThemeContext from './components/theme'; import useDataFetcher from './hooks.js'; import {formatNumberToString, getSimilarArtistsNames...
transitions/app/PhotoGrid.js
lintonye/react-native-diary
// @flow import React, { Component } from 'react'; import { ListView, Image, View, Text, Dimensions, StyleSheet, } from 'react-native'; import faker from 'faker'; import _ from 'lodash'; import SharedView from './SharedView'; import Touchable from './Touchable'; const ds = new ListView.DataSou...
src/svg-icons/device/battery-std.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryStd = (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 4z"/> </SvgIcon> ); D...
_deprecated/src/components/PageNotFound.js
paigekehoe/paigekehoe.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { Code } from '../styles/style'; import s from '../styles/pageNotFound.style'; const propTypes = { location: PropTypes.object.isRequired, }; export default function PageNotFound({ location }) { return ( <p style={s.p}> Page not found ...
docs/app/Examples/elements/Image/Variations/ImageExampleAvatar.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleAvatar = () => ( <div> <Image src='/assets/images/wireframe/square-image.png' avatar /> <span>Username</span> </div> ) export default ImageExampleAvatar
node_modules/node_modules/recharts/demo/component/Sector.js
SerendpityZOEY/Fixr-RelevantCodeSearch
import React from 'react'; import { Surface, Sector } from 'recharts'; export default React.createClass({ render () { return ( <Surface width={500} height={500}> <Sector fill="#ff7902" cx={200} cy={300} innerRadius={150} outerRadius={200} endAngle={90} /> </Surface> ); } });
app/js/components/chrome.js
michaelbrewerdavis/gerrit-mobile
import React from 'react' import { connect } from 'react-redux' import actions from '../actions' import Loading from './loading' function Error(props, state) { return ( <div className='modal error-modal' role='dialog'> <div className='alert alert-danger'>{props.error}</div> </div> ) } function Chrome...
packages/material-ui-icons/src/GridOff.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2H8zm8 0h4v4h-4V4zM1.27 1.27L0 2.55l2 2V20c0 1.1.9 2 2 2h15.46l2 2 1.27-1.27L1.27 1.27zM10 12.55L11.45...
client/components/PostTitle.js
christiantownsend/jstate
import React from 'react' class PostTitle extends React.Component { constructor(props) { super(props) this.state = { title: '', editing: false } } componentWillMount() { this.setState({title: this.props.initialTitle, loading: false}); } componentWillReceiveProps(newProps) { ...
src/svg-icons/maps/my-location.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMyLocation = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1...
stories/helpers/customComponents.js
intljusticemission/react-big-calendar
import React from 'react' import { action } from '@storybook/addon-actions' const customComponents = { dateCellWrapper: dateCellWrapperProps => { // Show 'click me' text in arbitrary places by using the range prop const hasAlert = dateCellWrapperProps.range ? dateCellWrapperProps.range.some(date => { ...
src/pages/eternal-archives/music/index.js
jumpalottahigh/blog.georgi-yanev.com
import React from 'react' import { Link } from 'gatsby' import { Helmet } from 'react-helmet' import Layout from '../../../components/structure/layout' const MusicPage = () => ( <Layout> <Helmet title="Jumpalottahigh & Blink E Music" /> <section> <h1>Jumpalottahigh &amp; Blink E music</h1> <div...
docs/app/Examples/elements/List/Variations/ListExampleHorizontalOrdered.js
mohammed88/Semantic-UI-React
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleHorizontalOrdered = () => ( <List horizontal ordered> <List.Item> <Image avatar src='http://semantic-ui.com/images/avatar/small/tom.jpg' /> <List.Content> <List.Header>Tom</List.Header> Top Cont...
src/components/post/toolbar.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...
client/src/_components/form/editableForm/index.js
bpowers1215/MoneyMap
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class EditableForm extends Component { constructor(props) { super(props); this.state = { editEnabled: props.editEnabled }; this.submitFormAction = this.submitFormAction.bind(this); } componentWillReceiveProps(nextProps){ let...
src/GeneralNavbar.js
TutorFox/TutorFox
import React from 'react'; import Router from 'react-router'; let {Link} = Router; export default class GeneralNavbar extends React.Component { render() { var namepad = { paddingRight: '21px' } const name = (<p className="navbar-text navbar-right" style={namepad}><u><small>Logged in as: {this.prop...
app/javascript/mastodon/components/icon_button.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; import AnimatedNumber from 'mastodon/components/animated_number'; export default class IconButton extends React.PureComponent { static propTypes = { className: PropTyp...
app/components/List/index.js
brobey8/toomanynotes
import React from 'react'; import styles from './styles.css'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender key={`item-${index}`} item...
src/index.js
kst404/kanasanaban
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
app/javascript/mastodon/components/display_name.js
anon5r/mastonon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, }; render () { const displayNameHtml = { __html: this.props.account.get('display_name_ht...
docs/src/app/components/pages/components/Snackbar/ExampleAction.js
verdan/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleSimple extends React.Component { constructor(props) { super(props); this.state = { autoHideDur...
ozwillo-datacore-web/src/main/webapp/dc-ui/src/components/reading/serverConfiguration.js
ozwillo/ozwillo-datacore
import React from 'react'; import LinkPlayground from '../linkPlayground.js'; export default class serverConfiguration extends React.Component{ render() { return ( <div className="center"> <h2>Server Configuration</h2> <div className="ui segment"> <p> ## Development m...
src/components/FormControlAdapter.js
oglimmer/linky
import React from 'react'; import PropTypes from 'prop-types'; import { FormControl } from 'react-bootstrap'; import { connect } from 'react-redux'; const FormControlAdapter = ({ className, type, value, onChange, autoFocus, placeholder, autoComplete, componentClass }) => (<FormControl className={className} ...
client/pages/admin/exportResults.js
cubing/ccm
import React from 'react'; import ReactDOM from 'react-dom'; const ExportResultsView = React.createClass({ getInitialState() { return { wcaResults: null, exportProblems: [] }; }, wcaResultsJson: function() { let template = Template.instance(); let wcaResults = template.wcaResultsReac...
src/svg-icons/image/crop-portrait.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/> </SvgIcon> ); ImageCropPortrait = pure(ImageCropP...
js/jqwidgets/demos/react/app/tabs/keyboardnavigation/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; class App extends React.Component { componentDidMount() { this.refs.myTabs.focus(); } render() { let tabsHTML = ` <ul style="margin-left: 30px;"> ...
src/components/SocialNav/SocialNav.js
samerce/lampshade
import React from 'react'; import cx from 'classnames'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './SocialNav.css'; @withStyles(s) export default class SocialNav extends React.Component { render() { return ( <div className={cx(s.navArea, s.navButton, s.navSocialNetwo...
node_modules/react-router/es/Router.js
charmainetham/charmainetham.github.io
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 _classCallCheck(instance, Constructor) { if (!(insta...
src/routes/login/index.js
CronosMax/firsttryreack
/** * 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 Login from './Login'; c...
egghead.io/react_fundamentals/lessons/07-child-properties/main.js
andrisazens/learning_react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
src/js/components/input/radiobutton/input_radio.js
working-minds/realizejs
import React from 'react'; import PropTypes from '../../../prop_types'; import { mixin } from '../../../utils/decorators'; import InputBase from '../input_base'; import { CssClassMixin } from '../../../mixins'; import { Label } from '../../../components'; @mixin(CssClassMixin) export default class InputRadio extends ...
src/components/app/PasswordRecovery.js
metasfresh/metasfresh-webui-frontend
import React, { Component } from 'react'; import counterpart from 'counterpart'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import classnames from 'classnames'; import { push } from 'react-router-redux'; import { resetPasswordRequest, getResetPasswordInfo, resetPasswordComplete, ...
node_modules/react-bootstrap/es/Tab.js
saltypaul/SnipTodo
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import TabContainer from...
js/src/ParityBar/parityBar.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 lat...
src/Accordion.js
BespokeInsights/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
public/app/components/main-title.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import * as mui from 'material-ui'; import muiThemeable from 'material-ui/styles/muiThemeable'; const styles = { titleContainer : { textAlign : 'center', marginLeft : '25px', marginRight : '25px', marginTop : '10px', marginBottom : '10px', }, ...
tests/lib/rules/vars-on-top.js
joakimbeng/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
workshop-es6/client/js/index.js
synasius/playground-react
import React from 'react'; import ReactDOM from 'react-dom'; import HelloComponent from './components/hello/hello.js'; import '../sass/main.scss'; const root = document.querySelector('.container'); ReactDOM.render( <HelloComponent initialText="boooo" />, root );
src/create-account/SignupMobile.js
nuruddeensalihu/binary-next-gen
import React from 'react'; import MobilePage from '../containers/MobilePage'; import VerifyEmailCard from './VerifyEmailCard'; export default (props) => ( <MobilePage toolbarShown={false} inverse> <VerifyEmailCard {...props} /> </MobilePage> );
src/components/Navbar/Navbar.js
mjchamoures/personalPortfolio
import React from 'react'; import { IndexLink, Link } from 'react-router'; import classes from './Navbar.scss'; export const Navbar = (props) => ( <div className="text-center"> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <IndexLink to='/about' activeClassName=...
app/scripts/components/search-item.js
hustbill/autorender-js
import React from 'react'; import { connect } from 'react-redux'; import { unpinSearch } from '../actions/app-actions'; class SearchItem extends React.Component { constructor(props, context) { super(props, context); this.handleClick = this.handleClick.bind(this); } handleClick(ev) { ev.preventDefa...
tests/react_native_tests/test_data/native_code/ReusableComponents/app/components/UserConnect/index.js
ibhubs/sketch-components
/** * @flow */ import React from 'react' import PropTypes from 'prop-types' import { observer } from 'mobx-react/native' import styles from './styles' import UserConnect from './component' @observer class UserConnectWrapper extends React.Component { render() { return ( <UserConnect {...this.prop...
src/sentry/static/sentry/app/icons/icon-laptop.js
gencer/sentry
import React from 'react'; import Icon from 'react-icon-base'; function IconLaptop(props) { return ( <Icon viewBox="0 0 24 24" {...props}> <g fill="currentColor"> <path d="M5.14285714,5.14285714 C4.19608329,5.14285714 3.42857143,5.910369 3.42857143,6.85714286 L3.42857143,15.4285714 C3.428...
app/addons/documents/index-results/components/results/ResultsScreen.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/preSite/js/modules/notes/noteEditor.js
Hoglar/hoglarblog
'use strict'; import React from 'react'; import capitalizeFirstLetter from '../../functionality/capitalizeFirstLetter.js'; import updateNote from './noteFunctions/updateNote.js'; import deleteNote from './noteFunctions/deleteNote.js'; import notesUpdateLikes from './noteFunctions/notesUpdateLikes.js'; import EditorLine...
src/routes/admin/Admin.js
tonimoeckel/lap-counter-react
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
app/scenes/index.js
jcarva/cursos_ufpb_client
import React from 'react'; import { Route, Switch } from 'react-router-dom'; // Import scenes import FlowchartView from './FlowchartView'; import NoMatch from './NoMatch'; export default () => ( <div> <h1>Cursos UFPB</h1> <div> <Switch> <Route path="/flowchart" component={FlowchartVi...
app/components/children/openFemale.js
pnavo/group-project-3
import React from 'react'; import ReactDOM from 'react-dom'; import rd3 from 'rd3'; import axios from 'axios'; const LineChart = rd3.LineChart; var lineData = [ { name: 'series1', values: [ { x: 17, y: 0 }], strokeWidth: 3, strokeDashArray: "5,5" } ]; class OpenFemale...
docs/components/Homepage/MainLinks/index.js
enjoylife/storybook
import React from 'react'; import { Link } from 'react-router'; import './style.css'; const MainLinks = () => <div id="main-links" className="row"> <div className="col-md-12"> <div className="row"> <div className="main-links-container"> <div className="col-xs-6 try-now"> <h2>T...
pyxis/views/course/all.js
gtkatakura/furb-desenvolvimento-plataformas-moveis
import React from 'react'; import { Alert, Text, View, Button, StyleSheet, ScrollView } from 'react-native'; import Components from './../../components'; const styles = StyleSheet.create({ base: { padding: 24, flex: 1 }, name: { fontSize: 24 }, header: { flexWrap: 'wrap', flexDirection: '...
src/containers/Home/home.js
zhangsichu/HybridAppReduxVsIonic
import React from 'react' import { Subheader, Button } from '../../components' import styles from './styles.scss' class Home extends React.Component { render () { return ( <div className={styles.home}> <Subheader title='Home' /> <div className={styles.item}> ...
packages/reactor-modern-boilerplate/src/About/About.js
markbrocato/extjs-reactor
import React from 'react'; import { Container } from '@extjs/reactor/modern'; export default function About() { return ( <Container padding="20"> <h1>About this App</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget leo sed mi imperdiet dictum a id turpis. ...
node_modules/expo/src/Modal/ModalHost.js
jasonlarue/react-native-flashcards
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet } from 'react-native'; import PureContainer from './PureContainer'; type Layout = { height: number, width: number }; type Renderer = (layout: Layout, key: number) => any; type Props = { children?: a...
source/components/DropdownList.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import ErrorBoundary from 'components/Wrappers/ErrorBoundary'; import { Color } from 'constants/css'; import { css } from 'emotion'; DropdownList.propTypes = { children: PropTypes.node, className: PropTypes.string, direction: PropTypes.string, styl...
app/components/ButtonOffer/index.js
Ratholien/JobReact
import React from 'react'; import PropTypes from 'prop-types'; import { FlatButton } from 'material-ui'; const ButtonOffer = ({ label }) => ( <FlatButton label={label} /> ); ButtonOffer.propTypes = { label: PropTypes.string, }; export default ButtonOffer;
src/decorators/withViewport.js
bsy/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/js/routes.js
FBDevCLagos/hiddenwisdom-react-js
import React from 'react'; // eslint-disable-line no-unused-vars import { Router, Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/home/Index'; import AboutPage from './components/about/Index'; import ProfilePage from './components/profile/Index'; import Pr...
src/layouts/Header/menu.js
aberkow/gatsby-blog
import React, { Component } from 'react'; import MenuContainer from './menuContainer'; import MenuToggle from './menuToggle'; export default class Menu extends Component { constructor(props) { super(props); } render() { return ( <div> <MenuToggle onClick={this.props.onClick} ...
src/containers/DevTools.js
Hortomatic/app-web
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </Dock...
src/frontend/components/Blog/BlogPage.js
BaranovNikita/Page-About-Me
import React from 'react'; import { FloatingActionButton } from 'material-ui'; import ContentAdd from 'material-ui/svg-icons/content/add'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory } from 'react-router'; import { getBlogItems, addBlogRecord } from '../../...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxlistbox.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxListBox = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes(); ...
src/packages/@ncigdc/modern_components/Lolliplot/Lolliplot.relay.js
NCI-GDC/portal-ui
/* @flow */ import React from 'react'; import { graphql } from 'react-relay'; import { compose, withPropsOnChange } from 'recompose'; import Query from '@ncigdc/modern_components/Query'; import significantConsequences from '@ncigdc/utils/filters/prepared/significantConsequences'; import withFilters from '@ncigdc/utils...
pages/versions/v20.0.0/sdk/magnetometer.js
ccheever/expo-docs
import markdown from 'markdown-in-js' import withDoc, { components } from '~/lib/with-doc' import { expoteam } from '~/data/team' import { Code } from '~/components/base/code' // prettier-ignore export default withDoc({ title: 'Magnetometer', authors: [expoteam], })(markdown(components)` Access the device mag...
src/client/components/list/templates/bookcase/BookcaseList.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; import scrollToComponent from 'react-scroll-to-component'; import {withList} from '../../../hoc/List'; import AddToList from '../../addtolist/AddToList.container'; import ListElement from '../../element/ListElement'; import ListInfo from './ListInfo'; impo...
src/main.js
arcsin037/RGPP-React
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
src/modules/users/containers/UserInviteContainer/UserInviteContainer.js
CtrHellenicStudies/Commentary
import React from 'react'; import { compose } from 'react-apollo'; import autoBind from 'react-autobind'; import { withRouter } from 'react-router'; import projectListQuery from '../../../projects/graphql/queries/list'; import projectDetailQuery from '../../../projects/graphql/queries/detail'; import userInviteMutatio...
examples/sections/src/components/MyLabel/Label.js
sapegin/react-styleguidist
import React from 'react'; /** * Simple text label. */ export default function Label() { return <span>I am a duplicate Label component!</span>; }
app/components/Header/index.js
ESTEBANMURUZABAL/bananaCatReact
import React from 'react'; import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router'; import './index.scss'; import LocaleToggle from 'containers/LocaleToggle'; import messages from './messages'; export default class Header extends React.Component { // eslint-disable-line react/prefer-stateles...
submissions/arqex/src/components/SithList.js
gterzian/flux-challenge
import React from 'react'; import Sith from './Sith'; export default class SithList extends React.Component { render(){ return ( <ul className="css-slots"> { this.props.siths.map( (s) => <Sith sith={ s } atHome={ s.homeworld && s.homeworld.id === this.props.currentPlanet.id } /> ) } </ul> ); } }
app/components/MessageToolbar.js
danjamin/react-fluxlike-mail-demo
import React from 'react'; import MessageRecord from '../records/MessageRecord.js'; import Pull from './Pull.js'; export default React.createClass({ displayName: 'MessagesToolbar', propTypes: { // required message: React.PropTypes.instanceOf(MessageRecord).isRequired, // optional onDelete: React...
OleksiiOnSoftware.Apps.Blog/client/components/ScrollToTop/index.js
boades/PpmSystem
import React from 'react' import { withRouter } from 'react-router' @withRouter export class ScrollToTop extends React.Component { componentDidUpdate (prevProps) { if (this.props.location !== prevProps.location) { window.scrollTo(0, 0) ga('set', 'page', this.props.location.pathname); ga('send',...
components/Footer/Footer.js
bangarang/a-soldiers-song
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; ...
news/components/Nav/Nav.js
FreeCodeCampQuito/FreeCodeCamp
import React from 'react'; import { Navbar } from 'react-bootstrap'; import LargeNav from './LargeNav'; import MediumNav from './MediumNav'; import SmallNav from './SmallNav'; const allNavs = [ LargeNav, MediumNav, SmallNav ]; export default function FCCNav() { const withNavProps = Component => ( <Compon...
app/containers/SignUp/index.js
Oscar-21/austin-conder
/* * * SignUp * */ import React from 'react'; import Helmet from 'react-helmet'; import Responsive from 'react-responsive'; import ArticleStyle from 'components/ArticleStyle'; import RaisedButton from 'material-ui/RaisedButton'; export default class SignUp extends React.PureComponent { constructor(props) { su...
app/components/helper/Footer.js
DeividasK/my-future-ai
import React from 'react' import LanguageSwitcher from 'components/helper/LanguageSwitcher' export default class Footer extends React.Component { changeLanguage () { localStorage.setItem('locale', (this.props.intl.locale === 'en') ? 'lt' : 'en') window.location.reload() } render () { return ( ...
client/app/scripts/components/time-control.js
alban/scope
import React from 'react'; import moment from 'moment'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { trackAnalyticsEvent } from '../utils/tracking-utils'; import { pauseTimeAtNow, resumeTime, startTimeTravel } from '../actions/app-actions'; const className = isSelected => ( ...