path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/image/looks.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks = (props) => ( <SvgIcon {...props}> <path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1...
src/components/index.js
Vision100IT/v100it-template
import React from 'react'; import PropTypes from 'prop-types'; import TransitionGroup from 'react-transition-group/TransitionGroup'; import CSSTransition from 'react-transition-group/CSSTransition'; import content from '../content'; import Header from './header'; import SearchBar from './search-bar'; import MainMenu fr...
app/components/icons/twitter.js
flocks/deeprun-front
import React from 'react'; const Twitter = () => { const text = 'Check your chances on @Deeprun_Poker before you call'; const url = 'https://twitter.com/intent/tweet?text=' + text; return ( <div> <a className="twitter-share-button" href={url} > ...
src/www/js/forms/race-form.js
nickolusroy/react_dnd
import React from 'react'; import raceData from '../../json/races.json'; import * as utilities from "../utilities.js"; import { DropDown } from '../form-fields/drop-down.js'; import { TextInput } from '../form-fields/text-input.js'; import { CheckBoxGroup } from '../form-fields/checkbox-group.js'; import { SubmitButton...
src/components/PostList/index.js
tomasz-szymanek/yet-another-boilerplate
import React from 'react'; import PostLink from '../PostLink'; const PostList = ({ posts, children }) => ( <div className="content"> <div className="posts-list"> { posts.map( (post, index) => (<PostLink key={index} nr={index} text={post} />) ) } </div> <div><br /><br /> {childre...
docs/src/app/components/pages/components/Slider/ExampleDisabled.js
kittyjumbalaya/material-components-web
import React from 'react'; import Slider from 'material-ui/Slider'; const SliderExampleDisabled = () => ( <div> <Slider disabled={true} /> <Slider disabled={true} value={0.5} /> <Slider disabled={true} value={1} /> </div> ); export default SliderExampleDisabled;
docs/build.js
HPate-Riptide/react-bootstrap
/* eslint no-console: 0 */ import fsp from 'fs-promise'; import path from 'path'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import {match, RouterContext} from 'react-router'; import Root from './src/Root'; import routes from './src/Routes'; import metadata from './generate-metadata'; ...
client/src/utils/index.js
kat09kat09/GigRTC
import React from 'react'; import ReactDOM from 'react-dom'; export function createReducer(initialState,allSwitches){ return (state = initialState,action) =>{ const reduceSelection = allSwitches[action.type]; return reduceSelection ? reduceSelection(state,action.payload) : state; } } export f...
web/src/server/frontend/render.js
Brainfock/este
import DocumentTitle from 'react-document-title'; import Html from './html.react'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import config from '../config'; import createLocation from 'history/lib/createLocation'; import createRoutes from '../../client/createRoutes'; import createStore f...
src/svg-icons/notification/sync-problem.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z...
src/app/utils/createElement.js
zalmoxisus/remotedev-app
import React from 'react'; const createElement = (originalProps) => (ChildComponent, props) => ( <ChildComponent {...props} {...originalProps} /> ); export default createElement;
app/app.js
ASH-khan/advanced-react
/** * 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/components/InfiniteCarouselArrow.js
leaffm/react-infinite-carousel
import React from 'react'; import PropTypes from 'prop-types'; import './InfiniteCarousel.css'; const InfiniteCarouselArrow = function ({ carouselName, next, onClick }) { const arrowClassName = 'InfiniteCarouselArrow'; let typeClassName; if (next) { typeClassName = 'InfiniteCarouselArrowNext'; } else { ...
src/components/LoadingContainer/LoadingContainer.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import Loading from '../Loading' import ContentContainer from '../ContentContainer' import CenterMidContainer from '../CenterMidContainer' class LoadingContainer extends React.PureComponent { render () { const { text } = this.props return ( ...
app/components/List/index.js
itimofeev/hustlesa-ui
import React from 'react'; import styles from './styles.css'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender key={`item-${index}`} item...
src/common/components/Page.js
barolab/razzle-complete-example
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { TransitionGroup } from 'react-transition-group'; import { Container, Segment, Image } from 'semantic-ui-react'; import Error from './Error'; import Block from './Block'; import Pop from '../animations/Pop'; impor...
src/ModalHeader.js
wjb12/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
client/extensions/woocommerce/woocommerce-services/views/service-settings/settings-form/settings-item.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import NumberField from 'woocommerce/woocommerce-services/components/number-field'; import Text from 'woocommerce/woocommerce-service...
website/src/pages/bar/canvas.js
plouc/nivo
import React from 'react' import { ResponsiveBarCanvas } from '@nivo/bar' import { ComponentTemplate } from '../../components/components/ComponentTemplate' import meta from '../../data/components/bar/meta.yml' import { generateHeavyDataSet } from '../../data/components/bar/generator' import mapper from '../../data/comp...
src/pages/GoldIRA.js
numieco/patriot-trading
import React from 'react' import Header from '../components/Header' import SideBar from './../components/SideBar' import Footer from './../components/Footer' export default class GoldIRA extends React.Component { render () { return ( <div> <Header /> <div className='wrapper'> <...
app/containers/HomePage/index.js
gerbilsinspace/babynames
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
ui/src/js/backOffice/articleManager/ArticleEditor.js
Dica-Developer/weplantaforest
import axios from 'axios'; import React, { Component } from 'react'; import DatePicker from 'react-16-bootstrap-date-picker'; import FileChooser from '../../common/components/FileChooser'; import IconButton from '../../common/components/IconButton'; import Notification from '../../common/components/Notification'; impor...
src/app/shared/header/index.js
kristjanpikk/things-to-do
import React from 'react'; import {Link} from 'react-router'; import Icon from '~shared/icon'; import Logo from '~images/logo'; import './header.scss'; // Create Header component export default class Header extends React.Component{ render() { return( <header className="header" role="banner"> <Link to={'/'} c...
app/vue/src/client/manager/provider.js
jribeiro/storybook
/* global location */ import qs from 'qs'; import React from 'react'; import { Provider } from '@storybook/ui'; import addons from '@storybook/addons'; import createChannel from '@storybook/channel-postmessage'; import Preview from './preview'; export default class ReactProvider extends Provider { constructor() { ...
src/Parser/RestoDruid/Modules/Traits/Grovewalker.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import Combatants from 'Parser/Core/Modules/Combatants'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellL...
src/components/Footer/Footer.js
machix/mm-inventory
/** * 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...
src/Badge.js
pieter-lazzaro/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
src/components/meteor/plain/MeteorPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './MeteorPlain.svg' /** MeteorPlain */ function MeteorPlain({ width, height, className }) { return ( <SVGDeviconInline className={'MeteorPlain' + ' ' + className} ...
src/app/AppBar.js
DictumMortuum/dictum
import React from 'react' import AppBar from 'material-ui/AppBar' import DatePicker from 'material-ui/DatePicker' const styles = { title: { cursor: 'pointer', }, } export default class DictumAppBar extends React.Component { constructor(props) { super(props) this.state = {open: false} } render(...
packages/lore-react-forms-material-ui/src/actions/flat.js
lore/lore-forms
import React from 'react'; import { FlatButton } from 'material-ui'; export default function(form, props) { return ( <FlatButton {...props} /> ) }
www/imports/mapPage/shortlist/BarChartPres.js
terraswat/hexagram
/* * Presentational component for the bar chart in the shortlist. */ import React from 'react'; import PropTypes from 'prop-types'; import { XYPlot, VerticalBarSeries, } from 'react-vis'; const BarChartPres = ({ data }) => ( <div> <XYPlot xDomain={[0, 2]} width={240} ...
app/assets/scripts/components/ticket-duplication-modal.js
ASL-19/civicdr
'use strict'; import React from 'react'; var TicketDuplicationModal = React.createClass({ propTypes: { onClose: React.PropTypes.func, onSubmit: React.PropTypes.func, implementingPartners: React.PropTypes.array }, render: function () { return ( <section className='modal modal--medium'> ...
react/lib/app.js
tomarus/gosyslogd
console.log('Launching app..') import React from 'react' import ReactDOM from 'react-dom' import {Route, Router} from 'react-router' import {Provider} from 'react-redux' import store from 'lib/store/store' import Homepage from 'lib/home' import 'css/main.less!less' import { useRouterHistory } from 'react-router' i...
main.js
mastermoo/rn-emoji-feedback
import Exponent from 'exponent'; import React from 'react'; import App from './src/app'; Exponent.registerRootComponent(App);
app/addons/documents/mangolayout.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
app/utils/map-utils.js
pandemic-1707/pandemic-1707
import React from 'react' import cities from '../../functions/data/cities' import L, { divIcon } from 'leaflet' import { Marker, Polyline, Tooltip } from 'react-leaflet' export function mapDataToMarkers(cities) { return Object.keys(cities).map(key => { const city = cities[key] // only render a number of the ...
docs/app/Examples/collections/Table/Variations/index.js
ben174/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const Variations = () => { return ( <ExampleSection title='Variations'> <Compon...
src/templates/tags-list-template.js
bapti/blog
// @flow strict import React from 'react'; import { Link } from 'gatsby'; import kebabCase from 'lodash/kebabCase'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Page from '../components/Page'; import { useSiteMetadata, useTagsList } from '../hooks'; const TagsListTempl...
src/client/components/EventList/index.js
mweslander/veery
// Imports import React from 'react'; import PropTypes from 'prop-types'; // Components import Event from '../Event'; import Footer from '../Footer'; // CSS import './index.scss'; // PropTypes const propTypes = { events: PropTypes.array, focusedVenue: PropTypes.object, updateFocusedVenue: PropTypes.func }; /*...
src/svg-icons/action/list.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionList = (props) => ( <SvgIcon {...props}> <path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/> </SvgIcon> ); ActionList = pure(ActionList); ActionList.displa...
src/svg-icons/action/assignment-turned-in.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-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-7 0c.55 0 1 ....
src/icons/WifiLockIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class WifiLockIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M41 19c.56 0 1.09.08 1.63.16L48 12c-6.69-5.02-15-8-24-8S6.69 6.98 0 12l24 32 7-9.33V29c0-5.52 4.48-10 10-...
app/src/js/components/settings/button.js
tahnik/devRantron
import React from 'react'; import PropTypes from 'prop-types'; const Button = props => ( <div className="setting button"> <span className="setting_label">{props.setting.text}</span> <div className="setting_option"> <button onClick={() => props.handleChange()} disabled={!props.setting.va...
src/components/Weui/dialog/confirm.js
ynu/res-track-wxe
/** * Created by jf on 15/10/27. */ import React from 'react'; import classNames from 'classnames'; import Mask from '../mask/index'; class Confirm extends React.Component { static propTypes = { buttons: React.PropTypes.array, show: React.PropTypes.bool, title: React.PropTypes.string ...
examples/browserify-gulp-example/src/app/Main.js
xmityaz/material-ui
/** * In this file, we create a React component * which incorporates components providedby material-ui. */ import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Dialog from 'material-ui/Dialog'; import {deepOrange500} from 'material-ui/styles/colors'; import FlatButton from 'materia...
src/containers/settings/SettingsBase.js
mikebarkmin/react-to-everything
import React from 'react'; import { List, ListItem } from 'material-ui/List'; import Toggle from 'material-ui/Toggle'; import I18n from '../../locales/I18n'; export default class Base extends React.Component { render() { return ( <div> <List> <ListItem primaryText={I18n.t('...
src/svg-icons/av/videocam-off.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideocamOff = (props) => ( <SvgIcon {...props}> <path d="M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3...
src/components/Footer.js
maria-robobug/resume_viewer
import React from 'react'; class Footer extends React.Component { render () { return ( <footer> <div className="row"> <div className="twelve columns"> <ul className="social-links"> <li><a href="#"><i className="fa fa-facebook"></i></a></li> ...
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js
dut3062796s/actor-platform
import { assign } from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, Snackbar } from 'material-ui'; import ReactZeroClipboard from 'reac...
platform/viewer/src/components/SidePanel.js
OHIF/Viewers
import './SidePanel.css'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const SidePanel = ({ from, isOpen, children, width }) => { const fromSideClass = from === 'right' ? 'from-right' : 'from-left'; const styles = width ? { maxWidth: width, ...
client/components/Post.js
raymestalez/vertex
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { Panel, Label } from 'react-bootstrap'; import Remarkable from 'remarkable'; /* import FontAwesome from 'react-fontawesome';*/ import { deletePost, fetchSettings } from '../actions/index'; im...
node_modules/react-taco-table/site/src/components/ExampleRowClassName.js
premcool/getmydeal
import React from 'react'; import { TacoTable, DataType, SortDirection, Formatters } from 'react-taco-table'; import cellLinesData from '../data/cell_lines.json'; import './ExampleRowClassName.scss'; /** * An example demonstrating how to use rowClassName */ const columns = [ { id: 'name', value: rowData ...
js/jqwidgets/demos/react/app/datatable/pagingapi/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; import JqxInput from '../../../jqwidgets-react/react_jqxinput.js'; import JqxButton from '../../../jqw...
imports/ui/components/CourseListToRegister.js
hanstest/hxgny
import React from 'react' import { Grid, Table, Icon, Message, Header, Button } from 'semantic-ui-react' const renderCourse = (course, removeCourse) => ( <Table.Row textAlign='center' key={course._id}> <Table.Cell>{course.course}</Table.Cell> <Table.Cell>{course.teacher}</Table.Cell> <Table.Cell>{course....
app/client.js
shilu89757/redux-blog-example
/* eslint-env browser */ /* global process */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import HashHistory from 'react-router/lib/HashHistory'; import Root from './Root'; const history = (process.env.NODE_ENV === 'production') ? new BrowserHisto...
app/main.js
pt-br/faustosbomb2
// import React from 'react'; // import ReactDOM from 'react-dom'; // import App from './App.js'; // ReactDOM.render(<App />, document.getElementById('root'));
admin/client/components/ItemsTable/ItemsTableDragDrop.js
tony2cssc/keystone
import React from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { Sortable } from './ItemsTableRow'; import DropZone from './ItemsTableDragDropZone'; var ItemsTableDragDrop = React.createClass({ displayName: 'ItemsTableDragDrop', propTypes: { colum...
client/src/components/App.js
uramen/apartments
import React from 'react'; import Navbar from '../containers/NavbarContainer'; import Sidebar from '../containers/SidebarContainer'; export default ({authenticated, children, pathname }) => ( <div className={authenticated ? 'without-bg' : 'with-bg'}> <div className={authenticated ? '' : 'black-bg'}> {auth...
assets/javascripts/main.js
simonhildebrandt/redact
import $ from 'jquery' import React from 'react' import ReactDOM from 'react-dom' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import getMuiTheme from 'material-ui/styles/getMuiTheme' import {teal700} from 'material-ui/styles/colors'; import FontIcon from 'material-ui/FontIcon' import IconMenu fro...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_03/finish/src/components/SkiDayCount.js
yevheniyc/Autodidact
import React from 'react' import '../stylesheets/ui.scss' export const SkiDayCount = React.createClass({ render() { return ( <div className="ski-day-count"> <div className="total-days"> <span>{this.props.total}</span> <span>days</span> </div> <div className="powder-days"> <span>{this.p...
app/ErrorPage.js
jamesburton/newsappreactnative
import React from 'react'; import styles from './styles'; import { Text, View } from 'react-native'; export var ErrorPage = (props) => <View style={styles.container}><Text style={styles.welcome} style={{color: '#f00'}}>News App (React-Native)</Text><Text>Error: {props.ex}</Text></View>; module.exports = ErrorPage;
docs/src/sections/PageHeaderSection.js
apkiernan/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function PageHeaderSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
example/src/pages/Catalog.js
ethanselzer/react-lazy-tree
import React, { Component } from 'react'; import { Col, Grid, Jumbotron, Row } from 'react-bootstrap'; import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/dist/light'; import solarized from 'react-syntax-highlighter/dist/styles/solarized-light'; import js from 'highlight.js/lib/languag...
src/components/FormButton/FormButton.react.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 Button from 'components/Button/Button.react'; import PropTypes from 'lib/PropTypes'; import React from 'react'; imp...
src/interface/others/Feeding.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Icon from 'common/Icon'; // import Toggle from 'react-toggle'; function formatThousands(number) { return (`${Math.round(number || 0)}`).replace(/(\d)(?=(\d{3})+(?!\d))/...
app/containers/App/index.js
scribeklio/audora-io
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * */ import React from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles...
packages/material-ui-icons/src/Theaters.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Theaters = props => <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z" /> </SvgIcon...
src/components/app/app.js
HendrikThePendric/webpack-demo
import React, { Component } from 'react'; import './app.scss'; import AddContact from '../add-contact/add-contact'; import SortContacts from '../sort-contacts/sort-contacts'; import FilterContacts from '../filter-contacts/filter-contacts'; import FavoritesToggler from '../favorites-toggler/favorites-toggler'; import Co...
project-my-demos/src/pages/Home.js
renhongl/Summary
import React from 'react'; import { view as Header } from '../header'; import { view as Navigation } from '../navigation'; import { view as Breadcrumb } from '../breadcrumb'; import { view as Content } from '../content'; import Layout from 'antd/lib/layout'; export default () => { return ( <Layout classN...
src/svg-icons/navigation/first-page.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFirstPage = (props) => ( <SvgIcon {...props}> <path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/> </SvgIcon> ); NavigationFirstPage = pure(NavigationFirstPage); NavigationFirstPag...
app/components/AvailabilityBox/index.js
seanng/web-server
import React from 'react'; // import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import Button from '../Button' import InputSelector from '../InputSelector' export default class AvailabilityBox extends React.Component { constructor (props) { ...
src/plot/series/bar-series.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/components/FlexItem.js
bhargav175/react-layouts
/** * Flex Item */ import React from 'react'; export default class FlexItem extends React.Component{ render(){ let {style,flexVal} = this.props; let defaultStyle = { flex : flexVal || '1' } style = Object.assign({},defaultStyle,style || {}); return <div style={style} className="flex-box__flex-item">{t...
test/fixtures/react/pureComponent-react-fragment/actual.js
davesnx/babel-plugin-transform-react-qa-classes
import React from 'react'; class PureComponentName extends React.PureComponent { render() { return <React.Fragment> <h1>Hello world</h1> </React.Fragment>; } } export default PureComponentName;
public/app/components/player/play-button.js
feedm3/unhypem
/** * @author Fabian Dietenberger */ 'use strict'; import React from 'react'; import songDispatcher from '../../dispatcher/song-dispatcher'; import ACTION from '../../constants/action'; import SONG_STATE from '../../constants/song-state'; import SvgIcon from '../common/svg-icon'; export default class PlayButton ex...
app/config/routes.js
betofigueiredo/base-jump-logbook
import React from 'react'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import store, { history } from '../store'; // Import Components import App from '../components/App'; import Jumps from '../components/Jumps'; import Jump from '../compone...
src/components/Home/Home.js
danagilliann/travel_log
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Home.scss'; import Login from '../Login'; class Home extends React.Component { constructor(props) { super(); } render() { return ( <div> <Login /> <p>If you don't have an ac...
RNApp/app/routes/Home/HomeContainer.js
abhaytalreja/react-native-telescope
import React from 'react'; import Home from './Home'; import Routes from '../../config/routes'; const HomeContainer = (props) => { return ( <Home onDetailsPress={() => props.navigator.push(Routes.getDetailsRoute())} /> ); }; HomeContainer.propTypes = { navigator: React.PropTypes.object, }; export...
src/components/Call.react.js
EaglesoftZJ/iGem_Web
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { shouldComponentUpdate } from 'react-addons-pure-render-mixin'; import { Container } from 'flux/utils'; import { PeerTypes } from '../constants/ActorAppConstants'; import PeerUtils from '../utils/PeerUtil...
node_modules/react-bootstrap/es/ModalFooter.js
FoxMessenger/nyt-react
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
packages/material-ui-icons/src/AlarmAdd.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 ...
src/components/SchedulePage/MeetingPanel/MeetingEditor/MeetingEditor.js
deltaidea/planning-app
import React, { Component } from 'react'; import classNames from 'classnames'; import { parseDate } from '../../../../redux/calendar'; import BleedContainer from '../../../BleedContainer'; import { ContentPanel, PanelHeader, PanelContent } from '../../../ContentPanel'; import { PrimaryButton, SecondaryButton, IconButto...
local-cli/generator/templates/index.android.js
mrspeaker/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class <%= name %> extends Component { render() { return ( <View style={styles.container}> <T...
modules/gui/src/app/home/body/process/saveRecipe.js
openforis/sepal
import {Form, form} from 'widget/form/form' import {Layout} from 'widget/layout' import {Panel} from 'widget/panel/panel' import {activatable} from 'widget/activation/activatable' import {closeRecipe} from './recipe' import {compose} from 'compose' import {msg} from 'translate' import {saveRecipe} from './recipe' impor...
src/js/components/icons/base/Upload.js
odedre/grommet-final
/** * @description Upload SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @pro...
20161210/RN-test/src01/index.android-02.js
fengnovo/react-native
import React, { Component } from 'react'; import { Text, View, TouchableHighlight, StyleSheet, AppRegistry } from 'react-native'; import { createMemoryHistory, Router, IndexRoute, Route } from 'react-router'; import { createNavigatorRouter } from 'react-native-navigator-router'; class Home extends Component { stati...
src/components/antd/progress/progress.js
hyd378008136/olymComponents
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ...
packages/utils/src/client.js
jcua1/numenta-web
// Numenta Web Platform and Sites source code // MIT License (see LICENSE.txt) // Copyright © 2005—2017 Numenta <http://numenta.com> import browserSize from 'browser-size' import root from 'window-or-global' import url from 'url' import React from 'react' import {prefixLink} from 'gatsby-helpers' /** * Utils for the...
js/jqwidgets/demos/react/app/scheduler/contextmenu/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { componentDidMount() { this.refs.myScheduler.ensureAppointmentVisible('id1'); } render() { let appointments = new Array...
src/client/containers/HeroesListContainer.js
alexandrebodin/graphql-heroes-app
import React from 'react'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import HeroesList from '../components/HeroesList'; const HeroesListContainer = ({ data, onHeroClick }) => { if (data.loading || data.error) return ( <p style={{ color: 'white', textAlign: 'center' }}> Loading ...
src/pages/linny.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Linny' /> )
src/svg-icons/action/stars.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionStars = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53...
admin/client/index.js
webteckie/keystone
/** * This is the main entry file, which we compile the main JS bundle from. It * only contains the client side routing setup. */ import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { Provider } from 'react-redux'; import { sy...
src/modules/notfound/index.js
mtrabelsi/universal-javascript-boilerplate
import React from 'react' export default React.createClass({ render() { return <div>Page not Found!</div> } })
components/AppView.js
sdumetz/sam
import React from 'react'; import AppIcon from './AppIcon'; import AppTitle from './AppTitle'; export default class AppView extends React.Component{ constructor(props){ super(props) } render() { var divStyle={ width:"25%", margin: 2, cursor:"pointer" } if(this.props.active){ ...
website/modules/examples/Basic.js
d-oliveros/react-router
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' const BasicExample = () => ( <Router> <div> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/about">About</Link></li> <li><Link to="/topics">Topics</Link></li> </ul> ...
examples/with-scss-options/src/client.js
jaredpalmer/razzle
import React from 'react'; import { hydrate } from 'react-dom'; import App from './App'; hydrate(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept(); }
src/user/LoginPage.js
whitescape/react-admin-components
import React from 'react' import PageMeta from '../pages/PageMeta' import LoginForm from './LoginForm' export default React.createClass({ render() { return <PageMeta title="Вход"> <div style={{ margin: '0 auto', width: 400 }}> <h1>Вход</h1> <div style={{ padding: 20 }} className="mdl-shadow...
webclient/src/about/AboutView.js
jadiego/bloom
import React, { Component } from 'react'; import { Header, Container, Segment, Image, Grid, Menu, Divider } from 'semantic-ui-react'; import ScrollToTop from '../components/ScrollToTop'; import { NavLink } from 'react-router-dom'; import './About.css'; import { Route } from 'react-router-dom'; import lotus from '../img...
src/App.js
kmark1625/Game-of-Life
import React, { Component } from 'react'; import './App.css'; import Game from './components/game'; class App extends Component { render() { return ( <div className="App"> <h2>The Game of Life</h2> <Game></Game> </div> ); } } export default App;