path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/js/Control.js
skratchdot/infinite-gradients
import React from 'react'; import LockIcon from './LockIcon'; module.exports = React.createClass({ getDefaultProps: function () { return { onClick: function () {}, title: '', value: '', fill: null, smallAlign: 'right', showLock: false, locked: false }; }, render: function () { var lock = ...
app/scripts/index.js
lukasjuhas/lukasjuhas.com_v5
import React from 'react'; import { render } from 'react-dom'; import router from './router'; router.run((Handler, state) => { render(<Handler {...state} />, document.getElementById('app')); });
examples/huge-apps/components/GlobalNav.js
kevinsimper/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
frontend/src/app/public/Navbar/index.stories.js
djhi/boilerplate
import React from 'react'; import { text } from '@kadira/storybook-addon-knobs'; import storiesOf from '../../../lib/publicStoriesOf'; import Navbar from './Navbar'; storiesOf('Navbar', module, 'The main public navbar') .add('basic', () => ( <Navbar /> )) .add('active link', () => ( <Navbar...
server/public/js/app/stringTools/components/App.js
fendy3002/QzStringTools
import React from 'react' import AppTemplate from '../../sharedComponents/AppTemplate.js'; import StateToolPanel from '../containers/StateToolPanel.js'; var App = function(){ return <AppTemplate> <StateToolPanel /> </AppTemplate>; }; export default App;
src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/Text.js
me-box/iot.red
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import {camelise} from 'nodes/processors/uibuilder/utils'; import { actionCreators as canvasActions, selector } from '../..'; import { connect } from 'react-redux'; @connect(selector, (dispatch) => { return{ actions: bindActio...
src/routes.js
sseppola/react-redux-universal-hot-example
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, Widgets, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (store) ...
client/src/components/bios/Container.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import reactStringReplace from 'react-string-replace'; import Button from 'react-bootstrap/lib/Button'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; import Modal from 'react-bootstrap/lib/Modal'; import {...
src/components/Viewer/index.js
jacobwindsor/pathway-presenter
import '../../polyfills'; import React, { Component } from 'react'; import presentations from '../../data/presentations'; import './index.css'; import Diagram from '../Diagram'; import Controls from './components/Controls'; import Loading from '../Loading'; import ErrorMessage from '../ErrorMessage'; import PropTypes f...
docs/src/IntroductionPage.js
Lucifier129/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const IntroductionPage = React.createClass({ render() { return ( <div> <NavMain activePage="introduction" /> <...
src/ModalFooter.js
erictherobot/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalFooter extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalFooter....
BackUp FIrebase/IQApp/components/AboutPage.js
victorditadi/IQApp
import React, { Component } from 'react'; import { Text, View, Button} from 'react-native'; import HeaderIQMail from './Faixa'; export default class AboutPage extends Component{ constructor(){ super(); } render(){ return( <View> <HeaderIQMail></HeaderIQMail> <Text>About</Text> ...
src/svg-icons/notification/sync-disabled.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncDisabled = (props) => ( <SvgIcon {...props}> <path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20...
src/pages/todo/components/todo-item.js
mvtnghia/web-boilerplate
// @flow import classNames from 'classnames'; import React, { Component } from 'react'; import TodoTextInput from './todo-text-input'; import type { Todo } from '../types'; export type Props = { todo: Todo, onEditTodo: Function, onDeleteTodo: Function, onToggleTodo: Function, }; type State = { editing: bool...
app/javascript/mastodon/components/column_back_button_slim.js
Craftodon/Craftodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButtonSlim extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length ==...
app/components/NotFound.js
SecComm/redux-blog-example
import styles from './../global.styl'; import React from 'react'; import CSSModules from 'react-css-modules'; @CSSModules(styles) export default class NotFound extends React.Component { render() { return ( <div styleName="wrapper"> <h1>Not Found</h1> </div> ); } }
src/routes/login/index.js
arolla/Arollydays
/** * 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'; e...
src/components/History.js
SiDChik/redux-regexp-router
/** * Created by sidchik on 28.03.17. */ import React from 'react'; import { connect } from 'react-redux'; import { createHashHistory, createBrowserHistory, createMemoryHistory } from 'history'; import { _setRouting } from '../actions/routing'; const createHistory = (historyType) => { let historyCreator; swi...
src/components/widgets/widgets-list.js
johnamiahford/widgets-spa
'use strict'; import React from 'react'; import WidgetsListItem from './widgets-list-item'; import Search from '../search'; class WidgetsList extends React.Component { renderWidgets() { return ( <div className={'WidgetsList ' + this.props.widgetListClass}> <table className="table"> <thea...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/FormComponents/TextArea.js
dewmini/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
examples/demos/timeslots.js
elationemr/react-big-calendar
import React from 'react'; import BigCalendar from 'react-big-calendar'; import events from '../events'; class Timeslots extends React.Component { render() { return ( <BigCalendar {...this.props} events={events} step={15} timeslots={8} defaultView='week' defa...
docs/src/app/components/pages/components/Snackbar/ExampleAction.js
hai-cea/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...
test/test_helper.js
joakimremler/horse-project
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/routes.js
jlmonroy13/solvingbooks-poison
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import ObjectUtils from './utils/object'; import { setSolutionManuals } from './actions/solutionManuals'; import { getSolutionManual, setSelections } from './actions/searcher'; import { setStatusRequestTrue } from './actions/spinner'; import {...
lavalab/html/node_modules/react-bootstrap/es/DropdownButton.js
LavaLabUSC/usclavalab.org
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/svg-icons/device/signal-cellular-no-sim.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
BUILD/js/index.js
kevincaicedo/MyStore-Front-end
import React from 'react' import ReactDOM from 'react-dom' import ContentProduct from './components_js/content-product.js' import Footer from './components_js/foot.js' import RegisterUser from './components_js/form-user/register-user.js' import SesionUser from './components_js/form-user/sesion-user.js' // navegacion ...
wedding_site/frontend/App.js
JeffBain/wedding-website
import React from 'react'; import AppBar from 'material-ui/AppBar'; import { Toolbar, ToolbarTitle } from 'material-ui/Toolbar'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton/IconButton'; import MenuIcon from 'material-ui/svg-ico...
src/components/SinglePostArticle.js
numieco/patriot-trading
import React from 'react' import ArrowSVG from './../Svg/ArrowSVG' import { Link } from 'react-router-dom' export default class SinglePostArticle extends React.Component { constructor (props) { super (props) this.redirectUsingSlug = this.redirectUsingSlug.bind(this) } redirectUsingSlug = () => { windo...
src/js/dom-components/photo-upload.js
afs35mm/Schorr-Eats
import React, { Component } from 'react'; class PhotoUpload extends Component { constructor(props) { super(props); } deleteAlreadyUploadedImg(imgName, i) { this.props.deleteAlreadyUploadedImg(imgName, i); } deleteImg(i) { this.props.removeImg(i); } handleChange(e)...
websrc/components/ScriptList.js
Ricky-Nz/gear-website
import React from 'react'; import Relay from 'relay'; import { ListGroup } from 'react-bootstrap'; import ScriptItem from './ScriptItem'; import ListSearchHeader from './ListSearchHeader'; import ListLoadMoreFooter from './ListLoadMoreFooter'; class ScriptList extends React.Component { constructor(props) { super(pr...
frontend/src/components/auth/LoginForm.js
technoboom/it-academy
import React, { Component } from 'react'; import { Button, Checkbox, Form, Icon, Message } from 'semantic-ui-react'; /** * Form for log in */ export default class LoginForm extends Component { render() { return ( <div> <Message attached ...
src/examples/hello_world_react/hello_world_react.js
looker/custom_visualizations_v2
import Hello from './hello' import React from 'react' import ReactDOM from 'react-dom' looker.plugins.visualizations.add({ // Id and Label are legacy properties that no longer have any function besides documenting // what the visualization used to have. The properties are now set via the manifest // form within ...
albums/src/components/Button.js
DaveWJ/LearningReact
/** * Created by david on 2/23/17. */ import React from 'react'; import {Text, TouchableOpacity} from 'react-native'; const Button = ({onPress, children}) => { const {buttonStyle, textStyle} = styles; return ( <TouchableOpacity onPress={onPress} style={buttonStyle}> <Text style={textSty...
actor-apps/app-web/src/app/components/Main.react.js
boneyao/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
src/interface/icons/Twitter.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const Icon = ({ colored, ...other }) => ( <svg viewBox="0 0 300.00006 244.18703" className="icon" {...other}> <g transform="translate(-539.18 -568.86)"> <path d="m633.9 812.04c112.46 0 173.96-93.168 173.96-173.96 0-2.6463-0.0539-5.2806-0.1726-7...
app/server.js
browniefed/redux-blog-example
/* eslint-env node */ import express from 'express'; import cookieParser from 'cookie-parser'; import _ from 'lodash'; import path from 'path'; import fs from 'fs'; import React from 'react'; import { Router } from 'react-router'; import Location from 'react-router/lib/Location'; import { Provider } from 'react-redux';...
src/TabContent.js
karote00/todo-react
require('../stylesheets/content.scss'); import React, { Component } from 'react'; import FontAwesome from 'react-fontawesome'; import { tabStore } from './tabStore'; import { Item } from './Item'; let increament = 1; let all = JSON.parse(localStorage.getItem('ALL_LIST')); if (all[0] && all[0].length > 0) { for (var ...
pages/postcss.js
adjohnson916/site-gatsby
import React from 'react' import './example.css' export default class PostCSS extends React.Component { render () { return ( <div> <h1 className="the-postcss-class"> Hi PostCSSy friends </h1> <div className="postcss-nav-example"> <h2>Nav example</h2> <u...
src/components/series/index.js
yamalight/bpjs-electron
// npm packages import React from 'react'; import {withRouter} from 'react-router-dom'; // our packages import db from '../../db/index'; export default withRouter(({series, history}) => { const openSeriesPage = async () => { // but you can use a location instead const location = { pathname: `/series${...
src/scripts/app/components/AppLoadingError.js
nudoru/R-Media-Player
import React from 'react'; require('!style!css!sass!../../../sass/components/loadingmessage.sass'); export default class AppLoadingError extends React.Component { render() { return ( <div id="initialization__cover"> <div className="initialization__message"> <h1>Oh no ...</h1> <...
examples/create-react-app-starter/containers/App.js
jumpsuit/jumpsuit
import React from 'react' // import logo from './logo.svg' import './App.css' export default React.createClass({ render() { return ( <div className='App'> <div className='App-header'> <img src={logo} className='App-logo' alt='logo' /> <h2>Welcome to React + Jumpsuit!</h2> ...
src/CarouselItem.js
HPate-Riptide/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import ReactDOM from 'react-dom'; import TransitionEvents from './utils/TransitionEvents'; // TODO: This should use a timeout instead of TransitionEvents, or else just // not wait until transition end to trigger continuing animations. const propTypes = ...
Realization/frontend/czechidm-core/src/content/task/identityRole/DynamicTaskRoleDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; // import { connect } from 'react-redux'; import * as Basic from '../../../components/basic'; import * as Advanced from '../../../components/advanced'; import DecisionButtons from '../DecisionButtons'; import DynamicTaskDe...
src/script/App.js
dongseup/comms-component
import React, { Component } from 'react'; import {render} from 'react-dom'; import '../style/font.scss'; import '../style/entry.scss'; import WordContainer from './WordContainer'; render(<WordContainer />, document.getElementById('root'));
client/components/charts/in-out-chart.js
bnjbvr/kresus
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import c3 from 'c3'; import { get } from '../../store'; import { translate as $t, round2, getWellsColors } from '../../helpers'; import ChartComponent from './chart-base'; const CHART_SIZE = 600; const SUBCHART_SIZE...
src/components/voteDialog/voteDialog.js
slaweet/lisk-nano
import React from 'react'; import { authStatePrefill, authStateIsValid } from '../../utils/form'; import ActionBar from '../actionBar'; import AuthInputs from '../authInputs'; import Autocomplete from './voteAutocomplete'; import Fees from '../../constants/fees'; import InfoParagraph from '../infoParagraph'; import Vot...
src/icons/StrokeClock.js
ipfs/webui
import React from 'react' const StrokeClock = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M52.42 15.92A34.08 34.08 0 1 0 86.49 50a34.12 34.12 0 0 0-34.07-34.08zm0 65.16A31.08 31.08 0 1 1 83.49 50a31.11 31.11 0 0 1-31.07 31.08z' /> <path d='M76.78 57.91A4.6 4.6 0 0 0 74.61 56l-17.83-8v.06a4.16 ...
src/layouts/CoreLayout/CoreLayout.js
traptrilliams/kings
import React from 'react'; import classes from './CoreLayout.scss'; import '../../styles/core.scss'; export const CoreLayout = ({ children }) => ( <div className={classes.mainContainer}> {children} </div> ) CoreLayout.propTypes = { children: React.PropTypes.element.isRequired } export default CoreLayout
modules/RestoreWindowScroll.js
jshin49/react-router-restore-scroll
import React from 'react' import PropTypes from 'prop-types'; import createReactClass from 'create-react-class' const RestoreWindowScroll = createReactClass({ propTypes: { restoreWindow: PropTypes.func.isRequired, location: PropTypes.object.isRequired }, componentDidMount() { this.props.restoreWind...
spec/javascripts/jsx/blueprint_courses/components/LockBannerSpec.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - 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/javascript/mastodon/features/ui/components/columns_area.js
theoria24/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/components/Input/Input.stories.js
Mojja/Gojji
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import Input from './Input' storiesOf('Input', module).add('default', () => ( <Input label="label" placeholder="bonsoir" value="" onChange={action('onChange')} required /> ))
client/src/index.js
SillySalamanders/Reactivity
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import App from './components/app.jsx'; import NotFound from './components/NotFound.jsx'; ReactDOM.render( <Router history={browserHistory}> <Route path="/" component={App}> ...
test/test_helper.js
RaulEscobarRivas/client
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/svg-icons/av/web.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWeb = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/> </SvgIcon> ); AvWeb = pur...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
VikingDen/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ActorClient from 'utils/ActorClien...
imports/ui/components/DocumentsList.js
zarazi/movies-listie
import React from 'react'; import PropTypes from 'prop-types'; import { browserHistory } from 'react-router'; import { ListGroup, ListGroupItem, Alert } from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; import Documents from '../../api/documents/documents'; import container from '../../modules/container';...
src/svg-icons/image/timer-10.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer10 = (props) => ( <SvgIcon {...props}> <path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-...
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from '../../../components/permalink'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import IconButton from '../../../...
src/ui/components/views/Core/Icon.js
scrollback/pure
/* @flow */ import React, { Component } from 'react'; import ReactNative from 'react-native'; import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; import shallowCompare from 'react-addons-shallow-compare'; const { Text, } = ReactNative; type Props = { style?: any; } export default class Icon exten...
src/components/FriendsList.js
Tasemu/Simple-PGP
import React, { Component } from 'react'; import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react'; import { css, StyleSheet } from 'aphrodite'; import { Link } from 'react-router'; import { colours } from 'utils/constants'; import Friend from 'components/Friend'; import Menu from 'components/ui/Menu';...
src/components/app.js
nicolasthy/showify-electron
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchUser } from '../actions/index'; import Header from './header'; import Sidebar from './sidebar'; import Friends from './friends/friends_list'; class App extends Component { compo...
example/src/screens/transitions/sharedElementTransitions/Masonry/Item.js
MattDavies/react-native-navigation
import React from 'react'; import { StyleSheet, View, Text, Image } from 'react-native'; import { SharedElementTransition } from 'react-native-navigation'; const SHOW_DURATION = 240; const HIDE_DURATION = 200; class Item extends React.Component { static navigatorStyle = { navBarHidden: true, draw...
src/components/common/svg-icons/action/zoom-in.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
src/lib/subscribeTo.js
6congyao/CGB-Dashboard
/* * Copyright (c) 2016-present, Parse, LLC * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ import ParseApp from 'lib/ParseApp'; import React from 'react'; import * as StoreManager from 'lib/stores/StoreManager'; ...
app/javascript/mastodon/components/regeneration_indicator.js
masto-donte-com-br/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_working.svg'; const RegenerationIndicator = () => ( <div className='regeneration-indicator'> <div className='regeneration-indicator__figure'> <img src={illustration} alt='' /> ...
src/components/SideBar.js
numieco/patriot-trading
import React from 'react' import { Link } from 'react-router-dom' import axios from 'axios' import GooglePlay from './../Svg/GooglePlay' import ITunes from './../Svg/ITunes' import Podcasts from './../Svg/Podcasts' import YouTube from './../Svg/YouTube' import QuestionMarkLogo from './../Svg/QuestionMarkLogo' import {...
src/routes/Spots/components/SpotEditForm/SchoolsField.js
ZeusTheTrueGod/WindsurfingNetwork-client
// @flow import React from 'react'; import _ from 'lodash-es'; import { type SimpleSchool } from '../../modules/spots'; import { AddSchool } from './AddSchool'; import { ListGroup, ListGroupItem, Media, Button, Glyphicon } from 'react-bootstrap'; export type Option = {| id: number, name: string, disabled: boolean |}; ...
app/src/stories/card.js
Staffjoy/v2
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import DragDropContextMock from './mock/DragDropContextMock'; import Card from '../components/Scheduling/ShiftWeekTable/Section/Row/Card'; storiesOf('Card') .add('default', () => { return ( <DragDropContextMock> ...
src/App.js
QuackenbushDev/reactTodo
import React, { Component } from 'react'; import TodoList from './components/TodoList'; import TodoCounter from './components/TodoCounter'; import TodoFilter from './components/TodoFilter'; import TodoClearCompleted from './components/TodoClearCompleted'; export class App extends Component { constructor(props) { ...
src/CalculatorLabel1/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ProgressBar from '../ProgressBar'; import LabelSmall from '../LabelSmall'; import Spacer from '../Spacer'; import Tooltip from '../Tooltip'; import Typography from '../Typography'; import styles from './styles.css...
internals/templates/app.js
polymattic/nnsb-calculator
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/js/components/routes/Canvas.react.js
teamUndefined/creativity
import React from 'react'; import { FloatingActionButton, ActionGrade } from 'material-ui'; var Canvas = React.createClass({ componentDidMount() { var self = this; $('#canvas').attr('width', $('.canvas-wrapper').width()); $(window).resize(function() { $('#canvas').attr('width', $('.canvas-wrapper').widt...
app/javascript/mastodon/features/community_timeline/components/column_settings.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
react-flux-mui/js/material-ui/src/svg-icons/editor/show-chart.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart = pure(EditorShowChart); EditorShowChart.displayNa...
src/app/components/Main.js
arraqib/react-weather
import React from 'react'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Paper from 'material-ui/Paper' import AppBar from 'material-ui/AppBar'; import IconButt...
integration/azure/authentication/azure-v1/auth-code-pkce/WorkflowGenExample/components/AuthComponent.js
advantys/workflowgen-templates
import React, { Component } from 'react'; import { Text, Button } from 'react-native'; import PropTypes from 'prop-types'; import { Container } from '.'; import { CommonStyles } from './styles'; class AuthComponent extends Component { render () { return ( <Container style={CommonStyles.centerContent}>...
blueocean-material-icons/src/js/components/svg-icons/navigation/more-horiz.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NavigationMoreHoriz = (props) => ( <SvgIcon {...props}> <path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/> </SvgIcon> ); NavigationM...
src/options.js
chocolateorange/new-post.crx
// eslint-disable-next-line no-unused-vars import React from 'react'; import ReactDOM from 'react-dom'; import { combineReducers, createStore, } from 'redux'; import { Provider, } from 'react-redux'; import { loadValues, } from './modules/storage'; import { reducer as configReducer, } from './redux/config...
src/svg-icons/editor/money-off.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMoneyOff = (props) => ( <SvgIcon {...props}> <path d="M12.5 6.9c1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-.53.12-1.03.3-1.48.54l1.47 1.47c.41-.17.91-.27 1.51-.27zM5.33 4.06L4.06 ...
client/src/Assistant/ApartmentFeatureInputs/BuildingFeatures.js
ciex/mietlimbo
// @flow import React from 'react' import { injectIntl, defineMessages, FormattedMessage } from 'react-intl' import { CardText } from 'material-ui/Card' import FeatureInput from './FeatureInput' import CheckboxInput from './CheckboxInput' import type { RangeInputProps } from './RangeSelectionGroup' import EnergyClass...
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/components/app.js
patel344/Mr.Miner
import React from 'react' import LockScreen from '../containers/lockscreen.js' import Wallet from '../containers/wallet.js' const WalletApp = () => ( <div className="app"> <LockScreen /> <Wallet /> </div> ) export default WalletApp
src/views/Home.js
jomarquez21/resource_center
import React, { Component } from 'react'; import {Card, CardTitle, CardText} from 'material-ui/Card'; class Home extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col s12 m4"> <Card> <CardTitle title="Card ti...
src/component/ToDoListWithFlux/TodoBody.react.js
lyc-chengzi/reactProject
/** * Created by liuyc14 on 2016/9/26. */ import React from 'react'; import TodoAction from '../../flux/actions/TodoAction'; import TodoItem from './TodoItem.react'; export default class TodoBody extends React.Component{ constructor(props){ super(props); this.toggleAllCompleteHandler = this.toggl...
src/server.js
kla1nfun/reduxtodo
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/components/measurables.js
marcusdarmstrong/mockdraftable-web
// @flow import React from 'react'; import type { MeasurablePercentile } from '../types/graphing'; type DisplayableMeasurement = MeasurablePercentile & { display: string }; type Props = { measurements: DisplayableMeasurement[], }; export default ({ measurements }: Props) => ( <table className="table table-sm mb-...
src/pages/404.js
green-arrow/ibchamilton
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
src/components/video_list.js
iAmNawa/ReactJS
import React from 'react'; import VideoListItem from './video_list_item'; const VideoList = (props) => { const videoItems = props.videos.map((video) => { return ( <VideoListItem onVideoSelect={props.onVideoSelect} key={video.etag} video={video} /> ) }); return ( <ul class...
src/index.js
xyc/react-inspector
export { chromeLight, chromeDark } from './styles/themes'; export ObjectInspector from './object-inspector/ObjectInspector'; export TableInspector from './table-inspector/TableInspector'; export DOMInspector from './dom-inspector/DOMInspector'; export ObjectLabel from './object-inspector/ObjectLabel'; export ObjectPr...
packages/core/src/icons/components/InlineDropdown.js
iCHEF/gypcrete
import React from 'react'; export default function SvgInlineDropdown(props) { return ( <svg width="1em" height="1em" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M0 0l28 16L0 32V0z" fill="currentColor" /> </svg> ); }
src/organisms/layout/index.js
dsmjs/components
import React from 'react'; import {string, node} from 'prop-types'; import Header from '../../molecules/header'; import Footer from '../footer'; import {fontFamily, fontSize} from '../../styles'; import layoutStyles from '../../layoutStyles.json'; export default function Layout({sponsor, location, children}) { retur...
packages/material-ui-icons/src/NotificationsPaused.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.93 6 11v5l-2 2v1h16v-1l-2-2zm-3.5-6.2l-2.8 3.4h2.8V15h-5v-1.8l2.8...
app/js/app.js
hollandben/assets-monitor
import React from 'react'; import AssetList from './assetList'; const assetMonitor = React.createClass({ render() { return <AssetList />; } }); React.render(React.createElement(assetMonitor), document.getElementById('app'));
src/svg-icons/image/looks-one.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooksOne = (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-2zm-5 14h-2V9h-2V7h4v10z"/> </SvgIcon> ); ImageLooksOne = pure(ImageLooksOn...
react-flux-mui/js/material-ui/src/svg-icons/navigation/arrow-forward.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowForward = (props) => ( <SvgIcon {...props}> <path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/> </SvgIcon> ); NavigationArrowForward = pure(NavigationArrowForward); Navigation...
react_demo/app/components/detail/index.js
Zhang-xiaohui/react-demo
import React from 'react' import HeaderComponent from '../common/header/header.js' import FooterComponent from '../common/footer/footer.js' export default class DetailComponent extends React.Component { constructor(props) { super(props); this.state = { data: [] } } render() { return ( <div className...
src/svg-icons/content/content-paste.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentPaste = (props) => ( <SvgIcon {...props}> <path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s...
CounterList/Counter.js
xgrommx/elm-architecture-using-ramda-and-flyd
import React from 'react'; import R from 'ramda'; import flyd from 'flyd'; import {genActions} from '../ActionsGen/ActionsGen'; //Model const initialModel = 0; //-∆≣ type Action = Increment | Decrement //const action = { // increment() { // return { // type: 'Increment' // } // }, // decrement() { // ...
src/components/withViewport.js
wanchopen/vida
/** * 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, { Component } from 'react'; import EventEmit...