path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
components/DashboardArticle.js
turntwogg/final-round
import React from 'react'; import dayjs from 'dayjs'; import classNames from 'classnames'; import { useTheme } from '@turntwo/react-ui'; import { MdOpenInNew } from 'react-icons/md'; import Typography from './Typography'; import Image from './Image'; const DashboardArticle = ({ article, hasBorder = 'true', ...rest })...
tests/react/useEffect_hook.js
popham/flow
// @flow import React from 'react'; { React.useEffect(); // Error: function requires another argument. } { // Ok variants without cleanup functions React.useEffect(() => {}); React.useEffect(() => {}, []); React.useEffect(() => {}, [1, 2, 3]); // Ok variants with cleanup functions React.useEffect(() =...
src/server.js
lemonCMS/react-redux-universal-hot-example
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; const history = require('history'); const historyObj = history.createMemoryHistory(); import createLocation from 'history/lib/createLocation'; import config from './config'; import favicon from 'serve-favicon'; import com...
source/containers/Privacy.js
mikey1384/twin-kle
import React from 'react'; export default function Privacy() { return ( <div style={{ padding: '1rem', margin: '1rem', background: '#fff', fontSize: '1.5rem' }} > <h1>Privacy Policy</h1> <p>Effective date: January 23, 2019</p> <p> {`Twin...
test/players/Facebook.js
CookPete/react-player
import React from 'react' import test from 'ava' import sinon from 'sinon' import { configure, shallow } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' import testPlayerMethods from '../helpers/testPlayerMethods' import * as utils from '../../src/utils' import Facebook from '../../src/players/Facebook' gl...
src/svg-icons/action/trending-up.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingUp = (props) => ( <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/> </SvgIcon> ); ActionTrendingUp = pure(ActionTrendingUp); ActionTrending...
dev/example-studio/parts/AuthorPreview.js
sanity-io/sanity
import React from 'react' import PropTypes from 'prop-types' import DefaultPreview from 'part:@sanity/components/previews/default' import previewStyles from './AuthorPreview.css' const staleThreshold = 3 * 24 * 60 * 60 * 1000 // 3 days const AuthorPreview = (props) => { if (!props.value) { return <DefaultPrevie...
app/javascript/mastodon/features/list_editor/components/account.js
codl/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/firstStep/entries/demo.js
JackZhangXL/virtual-dom-demo
import React, { Component } from 'react'; import { render } from 'react-dom'; import Element from '../lib/element'; import './demo.pcss'; export default class Demo extends Component { render() { return ( <div> <div id="realDom"> <div id="real-container"> ...
client/src/containers/DefaultLayout/DefaultFooter.js
dmod/fdcallstats.com
import React, { Component } from 'react'; import PropTypes from 'prop-types'; const propTypes = { children: PropTypes.node, }; const defaultProps = {}; class DefaultFooter extends Component { render() { // eslint-disable-next-line const { children, ...attributes } = this.props; return ( <Reac...
docs/app/Examples/elements/Icon/Variations/IconExampleCircular.js
shengnian/shengnian-ui-react
import React from 'react' import { Icon } from 'shengnian-ui-react' const IconExampleCircular = () => ( <div> <Icon circular name='users' /> <Icon circular color='teal' name='users' /> <Icon circular inverted name='users' /> <Icon circular inverted color='teal' name='users' /> </div> ) export defa...
source/init.js
jlengstorf/cost-of-living
// # Front-End Initialization import React from 'react'; import ReactDOM from 'react-dom'; import CostOfLiving from './js/components/CostOfLiving'; // Loads the stylesheet (via webpack) // require('./css/main.css'); ReactDOM.render( ( <CostOfLiving /> ), document.getElementById('cost-of-living') );
classic/src/scenes/mailboxes/src/Scenes/AppWizardScene/AppWizardTrayScene.js
wavebox/waveboxapp
import React from 'react' import { settingsStore } from 'stores/settings' import shallowCompare from 'react-addons-shallow-compare' import { TrayIconEditor } from 'Components/Tray' import { withStyles } from '@material-ui/core/styles' const styles = { container: { position: 'absolute', top: 0, left: 0, ...
src/components/Toolbar/inputs/rich.js
crossfield/react-drafts
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Modal from '../../shared/modal'; import InputControls from './controls'; class RichMediaInput extends Component { constructor(props) { super(props); this.state = { src: '', width: null, height: null, ...
fmi-2022-05-react-todos/src/App.js
iproduct/course-node-express-react
import React, { Component } from 'react'; import { BrowserRouter, Route, Routes } from 'react-router-dom'; import { About } from './About'; import './App.css'; import { Back } from './Back'; import Hello from './Hello'; import { Nav } from './Nav'; import { NotFound } from './NotFound'; import TodoFeature from './TodoF...
frontend/src/components/common/Costper.js
icedcoffeeallday/CostPers
import React, { Component } from 'react'; import { View, Text, } from 'react-native'; import UseButton from './UseButton'; import axios from 'axios'; class Costper extends Component { constructor(props) { super(props) this.state = { costper: this.props.costper} // this.addUse = this.addUse.bind(this...
src/main-views/home.js
spahvenn/react-api-front
import React, { Component } from 'react'; class Home extends Component { render(){ return( <div className="row"> <div className="col-md-12"> <h1>Home page</h1> <p>this is home page</p> </div> </div> ) } } export default Home
src/icons/IosArrowRight.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosArrowRight extends React.Component { render() { if(this.props.bare) { return <g> <polygon points="160,115.4 180.7,96 352,256 180.7,416 160,396.7 310.5,256 "></polygon> </g>; } return <IconBase> <pol...
src/SplitButton.js
mxc/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
src/Label.js
Lucifier129/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import bootstrapUtils, { bsStyles, bsClass } from './utils/bootstrapUtils'; import { State, DEFAULT, PRIMARY } from './styleMaps'; @bsClass('label') @bsStyles(State.values().concat(DEFAULT, PRIMARY), DEFAULT) class Label extends React.Component { rende...
client/src/Assistant/Presentation/RenovationCase.js
ciex/mietlimbo
// @flow import React from 'react' import { FormattedMessage, injectIntl, defineMessages } from 'react-intl' import { Card, CardTitle, CardText } from 'material-ui/Card' type RenovationCaseProps = { renovationInput: string, rent: number, mpbRent: number, intl: Object }; const RenovationCase = (props: Renova...
src/components/FilterByParty.js
bjacobel/cabinet
import React, { Component } from 'react'; import { Link } from 'react-router'; import { partyFilter } from '../stylesheets/filterByParty.css'; export default class FilterByParty extends Component { render() { return ( <p className={ partyFilter }> <span>Show: </span> <br /> <Link t...
src/components/BookList/index.js
romarioraffington/react-mybooks
// External Dependencies import React from 'react'; import PropTypes from 'prop-types'; // Our Dependencies import Book from '../Book'; const BookList = (props) => { const { books, isFetching, onShelfChange, onBookClick } = props; return ( <ol className="books-grid"> {isFetching ? <li className=...
src/NavItem.js
chilts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
src/Main.js
siiptuo/tiima-spa
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import CurrentActivity from './CurrentActivity'; import ActivitySwitcher from './ActivitySwitcher'; import ActivitySummary from './ActivitySummary'; import * as filters from './filters'; import { fetchActivities } f...
app/js/components/Header.js
theappbusiness/tab-hq
'use strict'; import React from 'react'; import SearchInputComponent from './search/SearchInputComponent'; require('../../styles/Header.sass'); const Header = React.createClass({ render() { return ( <nav className='navbar navbar-fixed-top'> <div className='navbar-header'> <butto...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
stonegithubs/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classnames from 'classnames'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; im...
src/components/TodoList.js
srossokha/shturman
import React from 'react'; import {TodoItem} from './TodoItem'; export function TodoList(props) { const { todos, toggleTodo, addTodo } = props; const onSubmit = (event) => { const input = event.target; const text = input.value; const isEnterKey = (event.which == 13); const isLongEnough = t...
src/containers/EmployeeList/index.js
ultimagriever/manager
import React, { Component } from 'react'; import { ListView } from 'react-native'; import _ from 'lodash'; import { connect } from 'react-redux'; import { employeesFetch } from '../../actions'; import { ListItem } from '../../components'; class EmployeeList extends Component { componentWillMount() { this.props.o...
src/svg-icons/places/pool.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesPool = (props) => ( <SvgIcon {...props}> <path d="M22 21c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78...
packages/material-ui-icons/src/PhonelinkErase.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PhonelinkErase = props => <SvgIcon {...props}> <path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2...
docs/src/Routes.js
mxc/react-bootstrap
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import SupportPage from './SupportPage'; import NotFoundPage from './NotFound...
app/views/Rsvp.js
mziemer21/wedding
import React, { Component } from 'react'; import { Grid, Row, Col, Input, ButtonInput, Alert } from 'react-bootstrap'; import RsvpForm from './components/RsvpForm'; import _ from 'lodash'; import data from '../data'; export default class Rsvp extends Component { constructor() { super(); this.renderRsvpForm =...
client/components/map/bottombar/HelpRequest.js
LintLions/Respondr
import { connect } from 'react-redux'; import React, { Component } from 'react'; import { View, Text, TouchableHighlight, StyleSheet, FlatList } from 'react-native'; import { drawRoute, updateBeacon, acceptBeacon, updateUser } from '../../../actions/actions'; import styles from '../../../styles/styles'; cla...
packages/core/admin/admin/src/pages/SettingsPage/components/SettingsNav/index.js
wistityhq/strapi
import React from 'react'; import { SubNav, SubNavHeader, SubNavSection, SubNavSections, SubNavLink, } from '@strapi/design-system/SubNav'; import { useIntl } from 'react-intl'; import PropTypes from 'prop-types'; import { getSectionsToDisplay } from '../../utils'; const SettingsNav = ({ menu }) => { const...
client/src/components/Layout.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { translate } from 'react-i18next'; import Col from 'react-bootstrap/lib/Col'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; import Grid from 'react-bootstrap/lib/Grid'; import MenuItem from 'react-bootst...
tests/utils/TestInputHoc.js
track0x1/formsy-react
import React from 'react'; import Formsy from './../..'; class TestComponent extends React.Component { methodOnWrappedInstance = (param) => { return param; } render() { return (<input />); } } export default Formsy.Wrapper(TestComponent);
admin/client/App/components/Navigation/Secondary/index.js
jacargentina/keystone
/** * The secondary navigation links to inidvidual lists of a section */ import React from 'react'; import { Container } from 'elemental'; import SecondaryNavItem from './NavItem'; var SecondaryNavigation = React.createClass({ displayName: 'SecondaryNavigation', propTypes: { currentListKey: React.PropTypes.str...
app/components/ParallaxComponent.js
pdelac01/ComicShopper
/** * Created by CharlieShi on 2/16/17. */ import React, { Component } from 'react'; import {throttle} from 'lodash'; // Component styles //import styles from './styles'; export default class ParallaxComponent extends Component { constructor(props) { super(props); const height= document.body.offsetHeigh...
node_modules/react-bootstrap/es/MediaRight.js
Chen-Hailin/iTCM.github.io
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/js/components/Cinema-Model.js
csepreghy/VR-Cinema-Website-with-React.js
import {Entity} from 'aframe-react'; import React from 'react'; export default class A14 extends React.Component { constructor(props) { super(props); } render() { return ( <Entity obj-model={{obj: '#cinema-obj', mtl: '#cinema-mtl'}} position={[0, 0, -150]} rotati...
src/App.js
thiagoc7/mp_parse
import React, { Component } from 'react'; import Parse from 'parse'; import './styles/normalize.css' import './styles/skeleton.css' Parse.initialize('hicvuvsjWekRiJGFdeK1GSUoTikmUDF85ilcopjt', 'cT8A4El4yQz3fEZ5V59MBrOanmv1jgmTo3K6xJFX') import Navbar from './components/Navbar' // redux import { createStore } from '...
blueocean-material-icons/src/js/components/svg-icons/device/sd-storage.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceSdStorage = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); DeviceSdStorage.displayName = 'DeviceSdStorage'; ...
src/svg-icons/action/assessment.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssessment = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); ActionA...
examples/todomvc-redux/src/index.js
Anaphalis/ds
import React from 'react' import { render } from 'react-dom' import {applyMiddleware,createStore,connect,bindActionCreators} from './dsadapter' import App from './containers/App' import 'todomvc-app-css/index.css' import createLogger from 'redux-logger'; import * as TodoActions from './actions' const store = applyMiddl...
src/index.js
codehangar/react-redux-rockstarter
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import store, { history } from './store'; import Root from './root/root'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import injectTapEventPlugin from 'react-t...
js/main.js
b4stien/simco
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore } from 'redux'; import { Provider, connect } from 'react-redux'; import * as actions from './actions'; import { SimcoGraph } from './graph'; import makeReducer from './reducer'; import SimcoWorker from 'worker!./worker'; class SimcoUnc...
packages/xo-web/src/common/xo-sparklines.js
vatesfr/xo-web
import PropTypes from 'prop-types' import React from 'react' import { Sparklines, SparklinesLine } from 'react-sparklines' import { computeArraysAvg, computeObjectsAvg } from './xo-stats' import { getMemoryUsedMetric } from './utils' const STYLE = {} const WIDTH = 120 const HEIGHT = 20 const STROKE_WIDTH = 0.5 // =...
src/Month.js
Incubity/react-big-calendar
import React from 'react'; import { findDOMNode } from 'react-dom'; import cn from 'classnames'; import dates from './utils/dates'; import localizer from './localizer' import chunk from 'lodash/chunk'; import { navigate, views } from './utils/constants'; import { notify } from './utils/helpers'; import getPosition fr...
src/components/MarkdownCard.js
steos/reactcards
import React from 'react' import showdown from 'showdown' import Card from './Card' import style from './style.less' const markdownToHtml = str => { const conv = new showdown.Converter() return conv.makeHtml(str) } export const Markdown = props => <div className={[style.markdown,props.className].join(' ')} ...
assets/js/pages/NewsPage.js
trappar/you-should
import React, { Component } from 'react'; import DocumentTitle from 'react-document-title'; import StandardAlerts from '../components/primitives/StandardAlerts'; import { observer } from 'mobx-react'; @observer(['posts', 'alerts']) export default class NewsPage extends Component { render() { return ( <div ...
app/javascript/mastodon/components/setting_text.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
actor-apps/app-web/src/app/index.js
darioajr/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import isMobile from 'utils/isMobile'; import ReactMixin from 'react-mixin'; import Intl from 'intl'; // eslint-disable-line import LocaleData from 'intl/locale-data/j...
app/main.js
ibjohansen/acando-react-boilerplate-extended
'use strict'; import '../public/styles/style.scss'; import React from 'react'; import {Router, Route, IndexRoute} from 'react-router'; import App from './pages/index'; import About from './pages/about'; import SimpleGetPage from './pages/simple-get'; import GoogleLoginPage from './pages/google-login'; import KnettFeed...
app/javascript/mastodon/features/compose/components/text_icon_button.js
Toootim/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.s...
app/javascript/mastodon/features/ui/components/columns_area.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import TabsBa...
src/app/containers/App.js
skratchdot/react-github-corner
import React, { Component } from 'react'; import { Grid } from 'react-bootstrap'; import pathGet from 'object-path-get'; import Header from '../components/Header'; import Footer from '../components/Footer'; import GithubCorner from '../../lib/GithubCorner'; import PropTypes from 'prop-types'; import stringToCssName fro...
app/components/Main.js
ElizabethMa/electron-mac-app
import React from 'react'; import Header from './Header' import HeaderContent from './HeaderContent' import Footer from './Footer' import MainContainer from './MainContainer' import '../main.css' // var ReactCssTransitionGroup = require('react-addons-css-transition-group'); class Main extends React.Component { re...
lens-ui/app/components/LoginComponent.js
sriksun/incubator-lens
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
node_modules/react-router/es6/Redirect.js
taylordaug/site
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
styleguide/screens/Patterns/Modals/Modals.js
NGMarmaduke/bloom
import React, { Component } from 'react'; import cx from 'classnames'; import dedent from 'dedent'; import Specimen from '../../../components/Specimen/Specimen'; import { D, H, T, C, Note, Placeholder } from '../../../components/Scaffold/Scaffold'; import ModalAnimator from '../../../../components/Modal/ModalAnimator'...
app/shortcode.js
gopangolin/wp-reactivate
/* global window, document */ if (! window._babelPolyfill) { require('@babel/polyfill'); } import React from 'react'; import ReactDOM from 'react-dom'; import Shortcode from './containers/Shortcode.jsx'; document.addEventListener('DOMContentLoaded', function() { const shortcode_containers = document.querySelector...
examples/counter-pair/Counter.js
rayshih/fun-react
// @flow import React from 'react' import { createTypes, caseOf, createView, } from '../../src' export const Msg = createTypes('INC', 'DEC') export const init = (count: number) => count export const update = caseOf({ INC: (_, count) => count + 1, DEC: (_, count) => count - 1 }) export default createView(...
src/App/components/ArticleCarousel/index.js
hajjiTarik/SolarNews
import React, { Component } from 'react'; import Carousel, { Pagination } from 'react-native-snap-carousel'; import { Dimensions, Text, View } from 'react-native'; import { connect } from 'react-redux'; import { Badge } from 'react-native-elements'; import ArticleItem from '../ArticleItem/index'; import { bindActionCr...
WasteAppMini/js/components/list/basic-list.js
airien/workbits
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text } from 'native-base'; import styles from './styles'; const { replaceAt, } = actions; clas...
src/components/react-native-calendars/src/calendar/day/multi-period/index.js
airingursb/two-life
import React, { Component } from 'react'; import { TouchableOpacity, Text, View } from 'react-native'; import PropTypes from 'prop-types'; import {shouldUpdate} from '../../../component-updater'; import styleConstructor from './style'; class Day extends Component { static propTypes = { // TODO: disabled props s...
src/svg-icons/communication/call.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCall = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-...
src/svg-icons/maps/local-see.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalSee = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5...
src/index.js
guruganeshm/react-js-sample
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <div...
src/client.js
zuban/edhunter
/** * 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 'whatwg-fetch'; import React from 'react'; impor...
react-flux-mui/js/material-ui/src/svg-icons/maps/directions-subway.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsSubway = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5...
src/code/components/loading.js
concord-consortium/geniblocks
import React from 'react'; import { shuffle } from 'lodash'; const loadingText = [ "Warming Up Chromoscope", "Hatching Drake Eggs", "Mucking Stables", "Freshening Breeding Rooms", "Digitizing Drake DNA", "Pipetting", "Scrubbing Drake Scales", "Trimming Drake Toenails", "Turning on Underground Base Mu...
src/admin/components/tabs/index.js
ccetc/platform
import React from 'react' import CSSTransitionGroup from 'react-addons-css-transition-group' import { connect } from 'react-redux' import _ from 'lodash' import Tab from './tab' import * as actions from './actions' export class Tabs extends React.Component { static propTypes = { tabs: React.PropTypes.arrayOf(Re...
app/containers/LocaleToggle/index.js
Frai/Events
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
client/index.android.js
wapjude/labify
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import App from './App';
app/components/Transactions/Transaction.js
kivo360/ECC-GUI
import React, { Component } from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import faker from 'faker'; import Wallet from '../../utils/wallet'; import CurrentAddresses from '../ReceiveTransaction/CurrentAddressTable'; import TransTable from './TransactionTable'; const wallet =...
example/pages/tab/navbar.js
woshisbb43/coinMessageWechat
import React from 'react'; import { Tab, TabBody, NavBar, NavBarItem, Article } from '../../../build/packages'; export default class NavBarDemo extends React.Component { state={ tab:0 }; render() { return ( <Tab> <NavBar> ...
examples/async/index.js
Lacerda/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
src/index.js
ObsidianCat/vacations-dashboard-app
/** * Created by Lula on 10/29/2016. */ 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'; require('./favicon.ico'); // Tell webp...
lib/src/newround.js
SerendpityZOEY/Solr-Search-React-UI
/** * Created by yue on 2/13/17. */ import React from 'react'; import SolrConnector from 'react-solr-connector'; import Visualize from './visualize.js'; class NewRound extends React.Component{ constructor(props) { super(props); this.state = { searchParams: null, } } d...
lib/cli/test/fixtures/react_native/index.android.js
rhalff/storybook
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class react_native extends Component { render() { return ( <View style={styles.contai...
src/components/HtmlPagesRenderer.js
rsamec/react-page-renderer
import React from 'react'; import HtmlPage from './HtmlPage.js'; import GraphicPrimitive from '../utilities/graphicUtil.js'; import WidgetRenderer from './WidgetRenderer.js'; import transformToPages from '../utilities/transformToPages'; var HtmlPagesRenderer = React.createClass({ render: function () { var pageOpti...
src/svg-icons/av/games.js
mmrtnz/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...
app/jsx/context_cards/Avatar.js
venturehive/canvas-lms
/* * Copyright (C) 2016 - 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...
app/containers/LanguageProvider/index.js
TeamVenu/venu
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/components/app.js
Vishakuday/Movies-to-watch
import React, { Component } from 'react'; import * as allactions from '../actions' import {connect} from 'react-redux' import Movielist from './movielist'; class App extends Component { constructor(props){ super(props); this.state={movie:''}; } submithandler=(e)=>{ e.preventDefault(); //call action creator..... ...
src/App.js
jzz4012650/react_starter
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div>Hello world.</div> ); } }
src/svg-icons/image/rotate-90-degrees-ccw.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotate90DegreesCcw = (props) => ( <SvgIcon {...props}> <path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.7...
app/containers/RepoListItem/index.js
Frai/Events
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } from 'containers/App/selectors'; import...
blueocean-material-icons/src/js/components/svg-icons/image/grid-on.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageGridOn = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4...
examples/confirming-navigation/app.js
djkirby/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link, withRouter } from 'react-router' import withExampleBasename from '../withExampleBasename' const App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/dashboard" ac...
src/containers/sign-up-container.js
orouvinen/mytype-frontend
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actions from '../actions/auth'; import FormWrapper from '../components/form-wrapper'; import SignUpForm from '../components/sign-up-form'; import SignUpComplete from '../components/s...
src/@ui/forms/ContributionForm/FrequencyInput.js
NewSpring/Apollos
import React from 'react'; import { get } from 'lodash'; import PropTypes from 'prop-types'; import * as Inputs from '@ui/inputs'; // NOTE: Id's are resolved to frequencies for // NMI at withGive export const FREQUENCY_IDS = [ { label: 'one time', id: 'once' }, { label: 'every week', id: 'weekly' }, { label: 'ev...
src/svg-icons/device/gps-fixed.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsFixed = (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...
examples/route-no-match/app.js
stshort/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link } from 'react-router' import withExampleBasename from '../withExampleBasename' class User extends React.Component { render() { let { userID } = this.props.params let { query } = this.props.location ...
lib/components/UploadPage.js
jekrb/filepizza
import DropZone from './DropZone' import React from 'react' import Spinner from './Spinner' import Tempalink from './Tempalink' import UploadActions from '../actions/UploadActions' import UploadStore from '../stores/UploadStore' import socket from 'filepizza-socket' import { formatSize } from '../util' export default ...
react-flux-mui/js/material-ui/src/svg-icons/action/visibility-off.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVisibilityOff = (props) => ( <SvgIcon {...props}> <path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.7...
src/App.js
maizy/kanbanrum-cards
/** * Copyright (c) Nikita Kovaliov, maizy.ru, 2017 * See LICENSE.txt for details. */ import React from 'react'; function App(props) { return ( <div> {props.children} </div> ); } App.propTypes = { children: React.PropTypes.element, }; export default App;
examples/full-example/src/isomorphic/base/components/toolbar.js
yahoo/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import React from 'react'; import Button from './button'; class Toolbar extends React.Component { render() { return ( <div> <div>Toolbar</div> ...
src/svg-icons/action/trending-up.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingUp = (props) => ( <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/> </SvgIcon> ); ActionTrendingUp = pure(ActionTrendingUp); ActionTrending...