path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/containers/Platzner.js
uglybunnies/ub-react
import React from 'react' import { Head } from 'react-static' // var popPic = require('js/popPic.js') export default () => ( <div> <Head> <title>Ugly Bunnies -- Proposed Platzner &amp; Co. Website</title> </Head> <header className="splash lh0"> <img src="/assets/web-p...
src/interface/icons/Twitter.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const Icon = ({ colored, ...other }) => ( <svg viewBox="0 0 300.00006 244.18703" {...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.903 11.938-8.630...
examples/huge-apps/app.js
aastey/react-router
/*eslint-disable no-unused-vars */ import React from 'react' import { createHistory, useBasename } from 'history' import { Router } from 'react-router' import stubbedCourses from './stubs/COURSES' const history = useBasename(createHistory)({ basename: '/huge-apps' }) const rootRoute = { component: 'div', childR...
app/components/TypeaheadList/index.js
transparantnederland/browser
import React from 'react'; import ConceptTile from '../ConceptTile'; import './index.css'; const TypeaheadList = React.createClass({ render() { const { options, selectionIndex, onOptionSelected } = this.props; return ( <div className="TypeaheadList"> <ul className="TypeaheadList-list"> ...
src/chartfoundry/util/Renderer.js
RhoInc/webcharts-wrapper-boilerplate
import React from 'react'; import stringAccessor from './string-accessor'; import binding from '../binding'; import reactTemplate from './reactTemplate'; import defaultSettings, { syncSettings } from '../../default-settings'; import { version as d3Version } from 'd3'; import { version as wcVersion } from 'webcharts'; ...
src/SettingsSectionPersonal/index.js
DuckyTeam/ducky-components
import SectionHeaderGeneral from '../SectionHeaderGeneral'; import SettingsItemBirthday from '../SettingsItemBirthday'; import SettingsItemGender from '../SettingsItemGender'; import SettingsItemLocation from '../SettingsItemLocation'; import Spacer from '../Spacer'; import React from 'react'; import PropTypes from 'pr...
src/html.js
vitorbarbosa19/ziro-online
import React from 'react' import favicon from '../favicon.png' let stylesStr if (process.env.NODE_ENV === `production`) { try { stylesStr = require(`!raw-loader!../public/styles.css`) } catch (e) { console.log(e) } } module.exports = class HTML extends React.Component { render() { let css if (...
src/components/SidebarList/FailedList.js
SemaiCZE/perf-data-visualizer
import React from 'react'; import { WarningIcon } from '../../icons'; import './List.css'; const FailedList = ( <div className="Primary-loading-failed"> <WarningIcon size="2x" /> <span>Loading failed</span> </div> ); export default FailedList;
src/components/Feedback/Feedback.js
jhlav/mpn-web-app
/** * 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 withStyles from 'isom...
example/app/index.js
jhen0409/remotedev-extension
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
inventapp/src/Form/ActionPanel.js
ladanv/learn-react-js
import React from 'react'; import styles from './ActionPanel.scss'; const ActionPanel = ({ children }) => ( <div className={styles.actionPanel} > {children} </div> ); export default ActionPanel;
src/routes/Home/components/HomeView.js
Dankoda/react-unit-test
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
app/components/ProductInfoNOCAB.js
Byte-Code/lm-digital-store-private-test
import React, { Component } from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import glamorous from 'glamorous'; const Wrapper = glamorous.div({ width: '100%', display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', backgroundColor: '#efefef', padding: '69px 40px 57px', ...
src/js/pages/ThreadPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ThreadList from '../components/threads/ThreadList'; import TopNavBar from '../components/ui/TopNavBar'; import QuestionsBanner from '../components/questions/QuestionsBanner'; import EmptyMessage from '../components/ui/EmptyMessage/Empt...
src/containers/create_account_form.js
TedtheDev/Tic-Tac-Toe
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import TextField from 'material-ui/TextField'; import Paper from 'material-ui/Paper'; import RaisedButton from 'material-ui/RaisedButton'; const validate = (values, props) => { values = { email: props.email, username: pr...
imports/ui/pages/SampleMenu.js
hirdbluebird/recipe-app-react
import React from 'react'; import { Image } from 'react-bootstrap'; import { Router, Route, browserHistory } from 'react-router'; import { Link } from 'react-router'; const SampleMenu = () => ( <div className="sample-menu"> <p>Meatball Sliders</p> <Image src={'menu/1.jpg'} /> <p>This souce is, in one word...
public/javascripts/pages/dashboard.js
kenticny/CasualData
import React from 'react'; import { Datepicker } from 'antd'; module.exports = React.createClass({ render: function() { return ( <div> </div> ); } });
frontend/src/System/Tasks/Scheduled/ScheduledTasks.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import FieldSet from 'Components/FieldSet'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import Table from 'Components/Table/Table'; import TableBody from 'Components/Table/TableBody'; import ScheduledTaskRowConnector from './Schedule...
react/features/overlay/components/web/PageReloadOverlay.js
jitsi/jitsi-meet
// @flow import React from 'react'; import { translate } from '../../../base/i18n'; import { connect } from '../../../base/redux'; import AbstractPageReloadOverlay, { abstractMapStateToProps, type Props } from '../AbstractPageReloadOverlay'; import OverlayFrame from './OverlayFrame'; /** * Implements a Rea...
client/Components/ComponentParams/ParamSelector/ParamSelectorObject/index.js
myheritage/UiZoo.js
import React from 'react'; import _ from 'underscore'; import TextField from '../../../UI/TextField'; import ErrorIndicator from '../../../UI/ErrorIndicator'; const DEBOUNCE_AMOUNT = 300; /** * @description * open input for object values. will try to eval value and fallback to undefined. * * @param {function} o...
components/checkbox/Check.js
react-toolbox/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styleShape from 'react-style-proptype'; const factory = (ripple) => { const Check = ({ checked, children, onMouseDown, theme, style, }) => ( <div data-react-toolbox="check" className={clas...
step4-router/app/js/components/Profile.js
jintoppy/react-training
import React from 'react'; const Profile = (props) => { return ( < div > Profile Page { props.name } < /div>); } export default Profile;
src/components/JournalEntryTime.js
openbasement/openbasement
import { connect } from 'react-redux'; import { emojify } from 'react-emojione'; import React from 'react'; import mapDispatchToProps from '../actions'; import { mapStateToProps } from '../model/state'; import entryEmojiOptions from '../images/entryEmojiOptions'; @connect(mapStateToProps, mapDispatchToProps) export d...
app/javascript/mastodon/components/autosuggest_input.js
lynlynlynx/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
src/svg-icons/editor/multiline-chart.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMultilineChart = (props) => ( <SvgIcon {...props}> <path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
mohammed52/something.pk
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
docs/app/Examples/elements/Label/Content/index.js
ben174/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const LabelContent = () => ( <ExampleSection title='Content'> <ComponentExample title='Detail' description='A label ...
src/components/panel/graph/FunnelGraph.js
UncleYee/crm-ui
import React from 'react'; import WhitePanel from '../WhitePanel'; import Highcharts from 'highcharts'; import funnelGraph from 'highcharts/modules/funnel'; const styles = { root: { position: 'relative', overflow: 'hidden', width: 460, height: 400 }, tip: { position: 'absolute', left: 30,...
react-ui/src/DeletePollButton.js
Swoodend/pollster-heroku
import React, { Component } from 'react'; class DeletePollButton extends Component{ constructor(props){ super(props); this.handleClick = this.handleClick.bind(this); } handleClick(){ this.props.setModalState(this.props.pollTitle, this.props.pollId); } render(){ return ( <div onClick=...
docs/pages/TextField/index.js
collegepulse/material-react-components
import Colors from '../../../src/variables'; import Grid, {GridItem} from '../../../src/Grid'; import Page from '../Page'; import React from 'react'; import Switch from '../../../src/Switch'; import TextField from '../../../src/TextField'; class TextFieldDocs extends React.Component { constructor(props) { super...
src/svg-icons/maps/map.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMap = (props) => ( <SvgIcon {...props}> <path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ...
web/src/js/components/Settings/SettingsChildWrapperComponent.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' const SettingsChildWrapper = props => { const { children } = props return ( <div style={{ padding: 20, minHeight: 400, }} > {children} </div> ) } SettingsChildWrapper.propTypes = { children: PropTypes.el...
src/App.js
larsthorup/redux-weather-demo
import React from 'react'; import {connect} from 'react-redux'; import './App.css'; import Lock from './Lock'; import Weather from './Weather'; function App (props) { return ( <div className="App"> <div className="App-header"> <Lock/> </div> {props.isUnlocked ? <Weather/> : null} </...
app/components/Toggle/index.js
itimofeev/hustledb-ui
/** * * LocaleToggle * */ import React from 'react'; // import { FormattedMessage } from 'react-intl'; import styles from './styles.css'; import ToggleOption from '../ToggleOption'; function Toggle(props) { // eslint-disable-line react/prefer-stateless-function let content = (<option>--</option>); // If we hav...
src/svg-icons/image/hdr-strong.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrStrong = (props) => ( <SvgIcon {...props}> <path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ...
src/GridList/GridTile.js
skarnecki/material-ui
import React from 'react'; function getStyles(props, context) { const { baseTheme, gridTile, } = context.muiTheme; const actionPos = props.actionIcon && props.actionPosition; const styles = { root: { position: 'relative', display: 'block', height: '100%', overflow: 'hidden...
examples/basic/client.js
lionng429/react-file-uploader
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import * as FileUploader from '../../src/index'; class MyComponent extends Component { constructor(props) { super(props); this.state = { isPanelOpen: false, isDragOver: false, files: [], }; this.uploadPane...
app/partials/footer.js
Laastine/lukkarimaatti
import React from 'react' const Footer = () => <div className='footer-container'> <div className='footer'> <div id='disclaimer'>This site is not maintained anymore</div> <div id='versionInfo'>v1.5.12</div> <a id='release-notes' href='https://github.com/Laastine/lukkarimaatti/blob/master/CHANGEL...
src/containers/DevTools.js
KirillYoYo/Banks
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 /...
src/pages/Editor/components/UniformPanel/UniformPanel.js
Hellenic/fractalysis
import React, { Component } from 'react'; import { Segment, Tab } from 'semantic-ui-react'; import UniformPane from './UniformPane'; import withScene from '../../hocs/withScene'; import configurations from '../../configurations.json'; import './react-precision-slider.css'; import './UniformPanel.css'; class UniformPan...
src/external/react-google-analytics.js
Lokiedu/libertysoil-site
/* Originally taken from https://github.com/hzdg/react-google-analytics/blob/cba5239561220a3762885d28b04619cbf6cf65f7/src/index.coffee JavaScript version was generated by coffee-script 1.9.2 (http://js2.coffee/) */ import React from 'react'; const slice = Array.prototype.slice; let name, scriptIsAdded; const ga = ...
src/components/auth/require_auth.js
Peterrkang/Locals
import React, { Component } from 'react'; import { connect } from 'react-redux'; export default function(ComposedComponent) { class Authentication extends Component { static contextTypes = { router: React.PropTypes.object } componentWillMount() { if(!localStorage.getItem('user')){ t...
src/shared/element-react/dist/npm/es6/src/date-picker/basic/TimeSpinner.js
thundernet8/Elune-WWW
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _createClass from 'babel-runtime/helpers/createClass'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import debounce f...
app/javascript/mastodon/features/hashtag_timeline/index.js
3846masa/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../ui/components/column'; import { refreshTimeline, updateTimeline, deleteFromTimelines, } from '../../actions/timelin...
pootle/static/js/auth/components/RequestPasswordResetProgress.js
evernote/zing
/* * Copyright (C) Pootle contributors. * Copyright (C) Zing contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'rea...
WasteAppMini/js/App.js
airien/workbits
import React, { Component } from 'react'; import { StyleSheet, AppState } from 'react-native'; import { Container, Content, Text, View } from 'native-base'; import Modal from 'react-native-modalbox'; import AppNavigator from './AppNavigator'; import ProgressBar from './components/loaders/ProgressBar'; import theme ...
src/apps/expenses/components/ExpensesStatsWithData.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import { get } from 'lodash'; import withIntl from '../../../lib/withIntl'; import Link from '../../../components/Link'; import Currency f...
app/react-icons/fa/pencil-square.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaPencilSquare extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m12 24.7l3.4 3.4-1.1 1.2h-1.3v-2.2h-2.1v-1.2z m9.3-8.7q0.3 0.3-0.1 0.7l...
src/App.js
alaarmann/infracc
import React, { Component } from 'react'; import ActionFilter from './ActionFilter'; import ActionActivities from './ActionActivities'; import VisibleResources from './VisibleResources'; import MessagesContainer from './MessagesContainer'; import './App.css'; class App extends Component { render() { return ( ...
shared/components/SubComponents/Loading/Loading.js
KCPSoftware/KCPS-React-Starterkit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import {HashLoader} from 'react-spinners'; @connect(store => ({})) class Loading extends Component { componentDidMount() {} render() { return ( <div className="loaderContainer"> <HashLoader color="#2a5fac" ...
examples/src/app.js
urvashi01/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import Select from 'react-select'; import CustomRenderField from './components/CustomRenderField'; import MultiSelectField from './components/MultiSelectField'; import RemoteSelectField from './components/RemoteSelectField'; import SelectedValuesField from '...
src/encoded/static/components/browse/components/file-tables.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import memoize from 'memoize-one'; import url from 'url'; import DropdownButton from 'react-bootstrap/esm/DropdownButton'; import DropdownItem from 'react-bootstrap/esm/DropdownItem'; import { StackedBlockTable, S...
src/components/TitlePanel/TitlePanel.js
paulosznaider/paulosznaider.github.io
import React, { Component } from 'react'; import './TitlePanel.scss'; class TitlePanel extends Component { constructor(props) { super(props); } render() { return ( <div className="title-panel"> <img className="title-panel__image" /> <div className="title-panel__floating-title-box">...
src/components/video_list_item.js
asengardeon/react-video-player
import React from 'react'; const VideoListItem = ({video}) => { // colocar video dentro de chaves do parametro ao invés da prop é o mesmo que ter a props no parametro e ter a linha abaixo //const video = props.video; const imageUrl = video.snippet.thumbnails.default.url; return ( <li cla...
Example/components/lightbox/DemoLightbox.js
mcabs3/react-native-router-flux
import React from 'react'; import { View, Text, StyleSheet, Animated, Dimensions, Button } from 'react-native'; import { Actions } from 'react-native-router-flux'; import Lightbox from './BaseLightbox'; const styles = StyleSheet.create({ container: { position: 'absolute', top: 0, bottom: 0, left: 0, ...
app/static/scripts/layout/header/main.js
joshleeb/TobioPreRelease
import React from 'react'; require('./styles.scss'); export default class Header extends React.Component { constructor() { super(); } render() { return ( <header id="header"> <nav className="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div className="container-flu...
src/shared/handlers/sport/football/match.js
namroodinc/contentful-react-mobx-post
import React from 'react'; import { observer } from 'mobx-react'; import { observable } from "mobx"; import dataActions from '../../../actions/dataActions'; import dataStore from '../../../stores/dataStore'; import Loading from '../../../components/loading'; import { Grid, GridItem } from '../../../components/grid'; ...
src/main.js
jefferey/react-barb
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import MainView from './containers/MainView'; import AboutView from './components/A...
client/app/components/graphs/HierarchyGraph/index.js
bryanph/Geist
import _ from 'lodash' import React from 'react' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import ReactDOM from 'react-dom' import classNames from 'classnames' import { drag as d3Drag } from 'd3-drag' import { select as d3Select } from 'd3-selection' import { event as currentEv...
src/docs/components/chart/LayersDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Menu from 'grommet/components/Menu'; import Anchor from 'grommet/components/Anchor'; import DocsArticle from '../../../components/DocsArticle'; import BackControl from './BackControl'; export default ...
src/pages/404.js
sfoubert/cdsbf75
import React from 'react' import Layout from '../components/Layout' const NotFoundPage = () => ( <Layout> <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> </Layout> ) export default NotFoundPage
src/components/Layout/Layout.js
egut/react-docker-demo
/** * 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-...
examples/cordova/src/components/PageOne.js
devgeeks/react-animated-views
import React from 'react'; import animateView from 'react-animated-views'; import '../css/pageone.css'; const PageOne = React.createClass({ displayName: 'PageOne', propTypes: { push: React.PropTypes.func, style: React.PropTypes.object, }, goToPageTwo(e) { const { push } = this.props; e.prev...
src/js/containers/elements/lobe.js
nicksenger/JSchematic
import React, { Component } from 'react'; import ReactDOM from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { textHover, saveState } from '../../actions/index'; import { calcRotation } from '../../utilities/sharedFunctions'; require("../../../css/components/...
examples/counter/index.js
michaelcontento/redux
import React from 'react'; import App from './containers/App'; React.render( <App />, document.getElementById('root') );
index.ios.js
pcstl/app-saber
/** * index.ios.js: Ponto de entrada iOS * * Este arquivo define o primeiro componente carregado pelo aplicativo * quando ele é executado na plataforma iOS. * * O componente definido neste arquivo é responsável por realizar quaisquer * customizações necessárias para a plataforma iOS e passar o co...
src/components/Footer/FooterLink.js
contor-cloud/contor-cloud.github.io
import React from 'react' import Link from 'found/lib/Link' import { colors } from '../config' const FooterLink = ({children, target, to}) => ( <Link css={{ whiteSpace: 'nowrap', lineHeight: 2, ':hover': { color: colors.brand, }, }} to={to} target={target}> {child...
docs/src/components/example-step.js
bhamodi/nuclear-js
import React from 'react' export default React.createClass({ render() { var className = 'example-step'; let push = this.props.push if (push === 'right') { className += ' example-step__push-right' } return <div className={className}> {this.props.children} </div> } })
fixtures/blocks/src/index.js
mosoft521/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import {createRoot} from 'react-dom'; import './index.css'; import Router from './Router'; createRoot(...
cabbage-web/src/entries/index.js
sevnote/cabbage
import ReactDOM from 'react-dom'; import React from 'react'; import { Router, browserHistory, hashHistory } from 'react-router'; // page import App from '../page/App'; import DashBoard from '../page/DashBoard'; import Create from '../page/Create'; import Import from '../page/Import'; import Log from '../page/Log'; co...
app/javascript/mastodon/components/attachment_list.js
Toootim/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export default class AttachmentList extends ImmutablePureComponent { static propTypes...
client/index.js
CharGomez/GraphQL-React-Discovery
import './style/style.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, hashHistory, IndexRoute } from 'react-router'; import ApolloClient from 'apollo-client'; import { ApolloProvider} from 'react-apollo'; import App from './components/App' import ProjectList from './componen...
src/routes/index.js
vga-/react-redux-material-ui-boilerplate
import React from 'react' import { Route, IndexRoute } from 'react-router' import { App, MainPage, CounterPage, WolframPage } from '../containers' export default function getRoutes () { return ( <Route path='/' component={App}> <IndexRoute components={{content: MainPage}}/> <Route path='counter' comp...
example/src/routing.js
dailymotion/react-collider
import React from 'react' import {default as Router, Route, DefaultRoute} from 'react-router' import Html from './components/layout/html' // Import your pages import Home from './components/home/home' import Video from './components/video/video' // Declare your routes var routes = ( <Route handler={Html} path="/"...
src/server.js
sdiaz/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import _ from 'lodash'; import fs from 'fs'; import path from 'path'; import express from 'express'; import React from 'react'; import './core/Dispatcher'; import './stores/AppStore'; import db from './core/Database'; imp...
src/Parser/Monk/Brewmaster/Modules/Core/Stagger.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage, formatThousands } from 'common/format'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import StatisticBox, { STATISTIC...
src/PageHeader.js
apisandipas/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
templates/rubix/rails/rails-example/src/common/sidebar.js
jeffthemaximum/jeffline
import React from 'react'; import { Sidebar, SidebarNav, SidebarNavItem, SidebarControls, SidebarControlBtn, LoremIpsum, Grid, Row, Col, FormControl, Label, Progress, Icon, SidebarDivider } from '@sketchpixy/rubix'; import { Link } from 'react-router'; class ApplicationSidebar extends React.Component { h...
app/components/TodoList/NavTodo.js
longgame/koa-boilerplate
'use strict;' import React, { Component } from 'react'; import template from './NavTodo.rt'; module.exports = React.createClass({ render: template });
packages/web/examples/ssr/pages/rangeinput.js
appbaseio/reactivesearch
import React, { Component } from 'react'; import { ReactiveBase, RangeInput, SelectedFilters, ReactiveList } from '@appbaseio/reactivesearch'; import PropTypes from 'prop-types'; import initReactivesearch from '@appbaseio/reactivesearch/lib/server'; import Layout from '../components/Layout'; import BookCard from '../...
www/imports/mapPage/calc/Submap.js
terraswat/hexagram
// Logic and state for the creating a sub-map with data from another map. import { connect } from 'react-redux' import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux' import rx from '/imports/common/rx' import SubmapPres from '/imports/mapPage/calc/SubmapPres' const ge...
frontend/src/Activity/Blacklist/BlacklistConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import * as commandNames from 'Commands/commandNames'; import withCurrentPage from 'Components/withCurrentPage'; import * as blacklistActions from 'Store/Action...
test/test_helper.js
LucasCaixeta/ReduxSimpleStarter_2
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/components/settings/navigation/SettingsNavigation.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { defineMessages, intlShape } from 'react-intl'; import { inject, observer } from 'mobx-react'; import { ProBadge } from '@meetfranz/ui'; import Link from '../../ui/Link'; import { workspaceStore } from '../../../features/workspaces';...
src/components/A/index.js
zsxsoft/blog.zsxsoft.com
import React from 'react' export default ({ ...props }) => <a {...props} />
internals/templates/containers/LanguageProvider/index.js
andyfrith/weather.goodapplemedia.com
/* * * 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/svg-icons/action/account-balance-wallet.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBalanceWallet = (props) => ( <SvgIcon {...props}> <path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-...
auth/src/components/common/Spinner.js
sgcharameli/ReactNativeAndReduxCourse
import React from 'react'; import { View, ActivityIndicator } from 'react-native'; const Spinner = ({ size }) => { return ( <View style={styles.spinnerStyle}> <ActivityIndicator size={size || 'large'} /> </View> ); }; const styles = { spinnerStyle: { flex: 1, ju...
src/svg-icons/maps/local-play.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPlay = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4....
src/components/AmountLabel/AmountLabel.component.js
StevenGnt/chaney
import React from 'react'; import PropTypes from 'prop-types'; import './AmountLabel.css'; const AmountLabel = props => { const { amount, unit } = props; let className; if (amount === 0) { className = 'info'; } else if (amount > 0) { className = 'success'; } else { className = '...
src/svg-icons/av/slow-motion-video.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSlowMotionVideo = (props) => ( <SvgIcon {...props}> <path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1....
client/app/components/startpage.js
Terry-Breen/scrappedideas
import React from 'react'; import {Link} from 'react-router'; import {getRandomScrap} from '../server'; import {hashHistory} from 'react-router'; export default class StartPage extends React.Component { handleFindScrapToFinish(e){ e.stopPropagation(); getRandomScrap((scrapData)=>{ hashHistory.push("sc...
src/components/videos/VideosList.js
mg4tv/mg4tv-web
import React from 'react' import styled from 'styled-components' import VideoPreviewCard from '../videos/VideoPreviewCard' const List = styled.div` display: flex; flex-wrap: wrap; justify-content: center; ` const Card = styled(VideoPreviewCard)` display: flex; flex: 1; justify-content: center; margin...
app/imports/ui/client/layouts/Traceability/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; import TraceabilityBox from '../../components/Traceability'; class Traceability extends Component { constructor(props) { super(props); } render() { return ( <div className="traceability"> <TraceabilityBox {...this.props}/> </div> ); } ...
app/containers/App.js
Sebkasanzew/Electroweb
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; export default class App extends Component { props: { children: Children }; render() { return ( <div> {this.props.children} </div> ); } }
src/svg-icons/action/chrome-reader-mode.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChromeReaderMode = (props) => ( <SvgIcon {...props}> <path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"/> ...
app/components/team/TeamDelete.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import Button from 'app/components/shared/Button'; import Panel from 'app/components/shared/Panel'; import TeamDeleteMutation from 'app/mutations/TeamDelete'; class TeamDelete extends React.Component { static pr...
src/svg-icons/device/network-wifi.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkWifi = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0...
node_modules/react-router/es/RouteUtils.js
acalabano/get-committed
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; function isValidChild(object) { ...
webui/src/Navigation.js
evoja/docker-Github-Gitlab-Auto-Deploy
import React, { Component } from 'react'; import './Navigation.scss'; class Navigation extends Component { render() { return ( <div className="Navigation"> <p className="title">Git-Auto-Deploy</p> </div> ); } } export default Navigation;