path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/main.js
prescottprue/devshare-site
import React from 'react' import ReactDOM from 'react-dom' import { initScripts } from 'utils' import createStore from './store/createStore' import AppContainer from './containers/App/App' import { version } from '../package.json' import config, { env } from './config' // ==============================================...
app/react-icons/fa/barcode.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaBarcode extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m1.4 34.3h-1.4v-31.4h1.4v31.4z m1.4 0h-0.7v-31.4h0.7v31.4z m2.1 0h-0.7v-31.4...
node_modules/react-bootstrap/es/InputGroup.js
rblin081/drafting-client
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 ...
definitions/npm/styled-components_v2.x.x/flow_v0.53.x-v0.74.x/test_styled-components_v2.x.x.js
flowtype/flow-typed
// @flow import {renderToString} from 'react-dom/server' import styled, { ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager } from 'styled-components' import React from 'react' import type { Theme, Interpolation, ReactComponentFunctional, ReactComponentFunctionalUndefinedDefault...
src/components/recording/StreamRenderer.js
streamr-app/streamr-web
import React from 'react' const WIDTH = 1920 const HEIGHT = 1080 export default class StreamRenderer extends React.Component { constructor (props) { super(props) this.lineFunction = d3.svg.line().x(d => d.x * WIDTH).y(d => d.y * HEIGHT).interpolate('cardinal') this.state = { currentPath: null ...
actor-apps/app-web/src/app/components/common/Fold.React.js
webwlsong/actor-platform
/* eslint-disable */ import React from 'react'; import classnames from 'classnames'; class Fold extends React.Component { static PropTypes = { icon: React.PropTypes.string, iconClassName: React.PropTypes.string, title: React.PropTypes.string.isRequired }; state = { isOpen: false }; construc...
docs/src/app/components/pages/components/FlatButton/ExampleSimple.js
skarnecki/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; const FlatButtonExampleSimple = () => ( <div> <FlatButton label="Default" /> <FlatButton label="Primary" primary={true} /> <FlatButton label="Secondary" secondary={true} /> <FlatButton label="Disabled" disabled={true} /> </...
client/components/Tasks/formHelpers.js
Waiyaki/provisioning-scheduler
import React from 'react'; // eslint-disable-next-line import/no-unresolved import { TextField } from 'redux-form-material-ui'; import { Field } from 'redux-form'; import TimePicker from 'material-ui/TimePicker'; import inlineStyles from './inlineStyles'; export const validate = requiredFields => values => { const ...
src/components/Footer/index.js
MelindaHasselbring/XtremeValue
import React from 'react' import { Grid, Header, Image } from 'semantic-ui-react' import { observer } from 'mobx-react' import './Footer.scss' const Footer = () => ( <footer> <div className="footer-inner"> <Grid> <Grid.Row> <Grid.Column width={4}> <Image size="tiny" src="/imag...
imports/ui/components/Orders/ProductsSlideView/ProductsSlideView.js
haraneesh/mydev
import React from 'react'; import PropTypes from 'prop-types'; import Product from '../Product'; import Slider from './Slider'; import './ProductSlideView.scss'; // All items component // Important! add unique key /* <div className="main-carousel" data-flickity='{ "cellAlign": "left", "contain": true }'> {...
src/helpers/__tests__/getDataDependencies-test.js
simonedesordi/configuration-ms-ui
import { expect } from 'chai'; import React from 'react'; import { div } from 'react-dom'; import getDataDependencies from '../getDataDependencies'; describe('getDataDependencies', () => { let getState; let dispatch; let location; let params; let CompWithFetchData; let CompWithNoData; let CompWithFetchDa...
source/js/components/expander.js
mehan/nsf-challenge
import React from 'react'; import classnames from "classnames"; var Expander = React.createClass({ render: function() { return ( <div className="expander"> {this.props.children} </div> ); } }); var Panel = React.createClass({ propTypes: { children: React.PropTypes.any.isRequired,...
fields/types/password/PasswordFilter.js
cermati/keystone
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const EXISTS_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ propTypes:...
IQApp/src/components/screens/NoteScreen.js
victorditadi/IQApp
import React, { Component } from 'react'; import { Text, View, AsyncStorage } from 'react-native'; import { Actions } from 'react-native-router-flux'; import { NotificacoesLista, NotificacoesDetalhes} from '../notificacoes'; import { ButtonHome } from '../common'; class NoteScreen extends Component { deslogarClient...
src/components/AppBarIcon.js
addi90/redux-todo
import AppBar from 'material-ui/lib/app-bar'; import React from 'react' const AppBarIcon = (props) => { return ( <AppBar title="Redux Todo app" iconClassNameRight="muidocs-icon-navigation-expand-more" /> ) } export default AppBarIcon;
docs/app/Examples/elements/Input/Variations/InputExampleRightLabeled.js
clemensw/stardust
import React from 'react' import { Dropdown, Input } from 'semantic-ui-react' const options = [ { text: '.com', value: '.com' }, { text: '.net', value: '.net' }, { text: '.org', value: '.org' }, ] const InputExampleRightLabeled = () => ( <Input label={<Dropdown defaultValue='.com' options={options} />} ...
resources/react/components/parts/schedule/Schedule.js
fetus-hina/stat.ink
import Heading from './Heading'; import React from 'react'; import ScheduleDisplay from './ScheduleDisplay'; export default function Schedule () { return ( <aside className='mb-3'> <Heading /> <ScheduleDisplay /> </aside> ); } Schedule.propTypes = { };
app/containers/App/index.js
sarea-alkebaly/way-finding
/** * * 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) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/routes/Async/index.js
TriPSs/react-esc-example
import React from 'react' import AsyncContainer from './AsyncContainer' export AsyncReducer from './AsyncReducer' export * as AsyncActions from './AsyncActions' export * as AsyncConstants from './AsyncConstants' export default { path : '/async', exact : true, component: AsyncContainer, }
src/AppBar/AppBar.spec.js
mmrtnz/material-ui
/* eslint-env mocha */ import React from 'react'; import {spy} from 'sinon'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import AppBar, {getStyles} from './AppBar'; import getMuiTheme from '../styles/getMuiTheme'; import IconButton from '../IconButton'; import FlatButton from '../FlatButton'; describe...
packages/cf-component-tabs/test/Tabs.js
manatarms/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import { Tabs, TabsPanel } from 'cf-component-tabs'; test('should render', () => { const component = renderer.create( <Tabs active="2" tabs={[{ id: '1', label: 'One' }, { id: '2', label: 'Two' }]} onChange={() => {}} > ...
app/components/PostWrapper/components/Bio/index.js
jakubrohleder/aurelius
import React from 'react' import styles from './styles.scss' export default function Bio(props) { const { author } = props return ( <div> <div className={styles.wrapper}> <div className={styles.image}> <img src={`/${author.photo}`} alt={author.name} /> </div> <div class...
src/native/auth/SignInPage.js
xiankai/triple-triad-solver
/* @flow */ import type { State } from '../../common/types'; import Email from './Email'; import React from 'react'; import Social from './Social'; import theme from '../app/themes/initial'; import { Container } from '../app/components'; import { Redirect } from 'react-router'; import { ScrollView, StyleSheet } from 'r...
src/pages/404.js
Darkensses/darkensses.github.io
import React from 'react' import Layout from '../components/layout' const NotFoundPage = () => ( <Layout> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundPage
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
Antontsyk/react_vk
import React from 'react' function load(id = 0) { return [ { id: id + 1, name: '1' }, { id: id + 2, name: '2' }, { id: id + 3, name: '3' }, { id: id + 4, name: '4' } ]; } export default class extends React.Component { constructor(props) { super(props); this.done = () => {}; this.pro...
src/svg-icons/maps/local-hospital.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHospital = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"/> </SvgIcon> ); MapsLocal...
web/app/source/submit-link.js
bitemyapp/serials
// @flow import React from 'react' import {Link} from 'react-router' import {Routes, transitionTo} from '../router' import {Users} from '../model/user' export class SubmitLink extends React.Component { onClick(e:Event) { if (!Users.isLoggedIn()) { transitionTo(Routes.login, {}, {to: Routes.source, id: 'ne...
client/views/room/contextualBar/Info/EditRoomInfo/EditChannelWithData.js
VoiSmart/Rocket.Chat
import React from 'react'; import { useUserRoom } from '../../../hooks/useUserRoom'; import { useTabBarClose } from '../../../providers/ToolboxProvider'; import EditChannel from './EditChannel'; function EditChannelWithData({ rid, onClickBack }) { const room = useUserRoom(rid); const onClickClose = useTabBarClose()...
test/citypicker.js
n7best/react-weui
/*global before*/ import React from 'react'; import sinon from 'sinon'; import { mount, shallow } from 'enzyme'; import assert from 'assert'; import WeUI from '../src/index'; var jsdom = require('jsdom'); const { CityPicker, Picker, PickerGroup, Mask } = WeUI describe('<CityPicker></CityPicker>', ()=>{ const data...
src/browser/ticket/svg/LogoImage.js
glaserp/Maturita-Project
import Component from 'react-pure-render/component' import React from 'react' export default class LogoImage extends Component { constructor(props) { super(props) } render() { return ( <svg className="logo-image" width="500pt" height="100pt" viewBox="40 0 500 100" version="1.1" xmlns="http://www.w3.org...
src/svg-icons/action/accessible.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessible = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19...
src/mui/detail/Edit.js
matteolc/admin-on-rest
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Card, CardText } from 'material-ui/Card'; import compose from 'recompose/compose'; import inflection from 'inflection'; import ViewTitle from '../layout/ViewTitle'; import Title from '../layout/...
my-app/src/index.js
LuisGVV/TestGroundJS
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js
forcedotcom/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Button, ListView, StyleSheet, Text, TextInput, View, } from 'react-native'; import KeyboardSpacer from '../../components/KeyboardSpacer'; import Backend from '../../lib/Backend'; export default class ChatScreen extends C...
src/containers/BlogPostContainer.js
mrozilla/mrozilla.cz
// ───────────────────────────────────────────────────────────────────────────── // import // ───────────────────────────────────────────────────────────────────────────── import React from 'react'; import { graphql } from 'gatsby'; import { MDXRenderer } from 'gatsby-plugin-mdx'; import { RootContainer, SEOContainer...
app/client/components/Appbar/index.js
bhargav175/dictionary-offline
import React from 'react'; import {isClient} from '../../../utils/helpers'; var styles = {}; if(isClient()){ styles = require('./style.scss'); } class Appbar extends React.Component{ constructor(props){ super(props); } render(){ return <div className={styles.root}> Offline Dictionary, Built with Montana...
src/components/letterhead.js
sanoofp/fcc-res
import React, { Component } from 'react'; import LetterheadCard from './letterheadcard'; class Letterhead extends Component{ render(){ return( <div className="container"> <div className="row"> <div className="col s12"> <p>Lorem ipsum d...
src/stories/2016-05-17-lanzarote-beaches.js
danpersa/remindmetolive-react
import React from 'react'; import PostImage from '../components/story/PostImage'; import TwoPostImages from '../components/story/TwoPostImages'; import StoryPage from '../components/story/StoryPage'; import StoryTextBlock from '../components/story/StoryTextBlock'; import StoryImages from '../components/story/StoryImage...
src/routes/Blog/components/BlogView.js
jhash/jhash
import './BlogView.scss' import React from 'react' export class BlogView extends React.Component { static propTypes = {} render () { return ( <div className='view--blog row' /> ) } } export default BlogView
src/svg-icons/image/broken-image.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrokenImage = (props) => ( <SvgIcon {...props}> <path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ...
src/svg-icons/communication/message.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationMessage = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Commun...
src/lib/reactors/ListGroups/ListGroupItems.js
ynunokawa/react-webmap
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // 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 us...
src/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z"/> </SvgIcon> ); Devi...
examples/real-world/index.js
axross/redux
import 'babel-core/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage from './co...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
Kgiberson/welp
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/routes/Girlip/components/TripFooter.js
markkong318/Girlip
import React from 'react'; import { connect } from 'react-redux' import TripItem from './TripItem' class TripFooter extends React.Component { render() { return ( <div className="bottom"> <div></div> </div> ); } } const mapStateToProps = (state, props) ...
awsmobilecognitocustomui/src/screens/TaskDetailsScreen.js
adrianhall/blog-code
import React from 'react'; import { Platform, StyleSheet, View } from 'react-native'; import NavBar from 'react-native-navbar'; import BackButton from '../components/BackButton'; import TaskForm from '../components/TaskForm'; import colors from '../theme/colors'; const styles = StyleSheet.create({ container: { ...
app/components/FooBar/FooBar.js
nisheedj/webpack-react-starter
import React from 'react'; import './FooBar.scss'; class FooBar extends React.Component { render() { return <div className="foo-bar">FOOO BAAR</div>; } }; export default FooBar;
examples/huge-apps/components/App.js
chrisirhc/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { render() { var courses = COURSES; return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={co...
src/app/components/DataList/DataList.js
xZarisx/react-rpg
import React from 'react'; import hasher from 'string-hash'; const uniqId = data => `dl-${hasher(JSON.stringify(data))}`; export default ({options=[], className="", label="", value="", placeholder="", onChange=()=>{} }) => { let id = uniqId(options), Options = options .map( (o, i) => ( ...
examples/real-world/index.js
kentor/redux
import 'babel-core/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage from './co...
client/components/Browse.js
lendr2/lendr2
import React, { Component } from 'react'; import FlipCard from 'react-flipcard'; import Tile from './Tile'; class Browse extends Component { componentDidMount() { this.props.getData(); } render() { console.log("Browse Username is", this.props.state.username) const tiles = []; const length = this...
packages/node_modules/@ciscospark/react-component-icon/src/index.js
Altocloud/alto-react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; export const ICON_TYPE_ADD = `icon-cisco-add`; export const ICON_TYPE_DELETE = `icon-cisco-exit-outline`; export const ICON_TYPE_DOCUMENT = `icon-cisco-document-outline`; export cons...
app/javascript/mastodon/components/extended_video_player.js
blackle/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ExtendedVideoPlayer extends React.PureComponent { static propTypes = { src: PropTypes.string.isRequired, alt: PropTypes.string, width: PropTypes.number, height: PropTypes.number, time: PropTypes.number, contr...
app/javascript/mastodon/components/__tests__/avatar_overlay-test.js
mimumemo/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import AvatarOverlay from '../avatar_overlay'; describe('<AvatarOverlay', () => { const account = fromJS({ username: 'alice', acct: 'alice', display_name: 'Alice', avatar: '/animated/alice.gif',...
src/containers/projects.js
ereide/home_page_react
import React from 'react'; import DetailedBox from './../components/detailedbox.js'; import blackbox_proj from './../assets/hackmiteivind.jpg'; import m3nevada_proj from './../assets/nevada.jpg'; import m3avionics_proj from './../assets/m3avionics.jpg'; import woodchuck_proj from './../assets/woodchuck.jpg'; import ...
src/routes/dashboard/components/completed.js
vincentdd/crm
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { color } from 'utils' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' import styles from './completed.less' function Completed ({ data }) { return ( ...
src/js/LudoPage/ReportDialog/ErrorMessage.js
ludonow/ludo-beta-react
import React from 'react'; const ErrorMessage = () => ( <div> ErrorMessage </div> ); export default ErrorMessage;
packages/ringcentral-widgets-docs/src/app/pages/Components/MessageStoreAlert/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import MessageStoreAlert from 'ringcentral-widgets/components/MessageStoreAlert'; const props = {}; props.currentLocale = 'en-US'; props.message = { message: 'test string' }; /** * A example of `MessageStoreAlert` */ const MessageStoreAlertDemo = () => ( <M...
app/javascript/mastodon/features/account/components/account_note.js
tootcafe/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Textarea from 'react-textarea-autosize'; impor...
mobile/app/module/Sidebar/Drawer.js
liyangwood/DreamCup
import React from 'react'; import {Drawer} from 'native-base'; import Sidebar from './SidebarContainer'; import {Cache} from 'app/lib'; export default class extends React.Component{ getProps(){ return { ref : (ref)=>(this.drawer = ref), content : (<Sidebar />), onClose : this.close.bind(this),...
src/svg-icons/image/movie-filter.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMovieFilter = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 3h-3l-2-3h-2l2 3h-3l-2-3H8l2 3H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4zm-6.75 11.25L10 18l-1.25-2.75L6 14l2.7...
app/components/song_info.js
paulinoj/newRockus
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import styles from '../css/song_info.css'; import MusicController from './music_controller'; class SongInfo extends Component { constructor(props) { super(props); } renderMusicControl...
actor-apps/app-web/src/app/components/Deactivated.react.js
nguyenhongson03/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
app/javascript/mastodon/components/media_gallery.js
masto-donte-com-br/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
react/reactRouterPractice/app/routeConfig.js
huxinmin/PracticeMakesPerfect
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' // Some folks find value in a centralized route config. // A route config is just data. React is great at mapping // data into components, and <Route> is a component. ///////////////////////////////////////////////...
src/web/TransactionParseForm.js
BeerOnBeard/go-save-money
import React, { Component } from 'react'; import Papa from 'papaparse'; import { TransactionBuilder } from 'money-tracker'; import TransactionTable from './TransactionTable'; import LoadingDistractor from './LoadingDistractor'; import { bulkUploadTransactions } from './TransactionDataAccess'; /* * Form that takes a s...
app/containers/Root.js
tylergraf/react-twitter
import React from 'react'; import HomeTimelinePage from './HomeTimelinePage'; // import Cart from './cart/app-cart'; // import CatalogDetail from './product/app-catalogdetail'; import Template from './Template'; import { Router, Route, IndexRoute } from 'react-router'; export default () => { // <Route path="item/:it...
src/components/Navigation/Navigation.js
kirsty-forrester/react-photo-collage
/** * 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...
app/javascript/mastodon/features/ui/components/media_modal.js
gol-cha/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import classNames from 'classnames'; import { defineMessages, injectIntl } from 'react-intl'; i...
client/components/AttributeForm/index.js
romelperez/jobsity-test
import './_index.scss'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { Row, Col } from 'react-flexbox-grid'; import TextField from 'material-ui/TextField'; import SelectField from 'material-ui/SelectField'; import Toggle from 'material-ui/Toggle'; im...
docs/app/Examples/elements/Image/Variations/ImageExampleFloated.js
shengnian/shengnian-ui-react
import React from 'react' import { Segment, Image } from 'shengnian-ui-react' const src = '/assets/images/wireframe/image-text.png' const ImageExampleFloated = () => ( <Segment> <Image src={src} size='small' floated='left' /> <p> Te eum doming eirmod, nominati pertinacia argumentum ad his. Ex eam alia...
techCurriculum/ui/solutions/6.1/src/App.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * 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 writ...
server/sonar-web/src/main/js/app/components/nav/global/__tests__/GlobalNavMenu-test.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
Exocortex/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id, ...rest } = { id: 0, user: { id: 42, ...
front-end/src/components/index.js
longshuicy/custom-graphiql-bind-graphql
import React from 'react'; import ReactDOM from 'react-dom'; import MyGraphiQL from './MyGraphiQL'; var endpoint = "http://" + window.location.hostname + ':8080/graphql'; console.log(endpoint); function graphQLFetcher(graphQLParams) { return fetch(endpoint, { method: 'post', headers: { 'Content-Type': 'appl...
fields/types/markdown/MarkdownColumn.js
woody0907/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var MarkdownColumn = React.createClass({ displayName: 'MarkdownColumn', propTypes: { col: React.PropTypes.object, data: React.PropType...
src/mui/layout/AppBarMobile.js
RestUI/rest-ui
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import MuiAppBar from 'material-ui/AppBar'; import muiThemeable from 'material-ui/styles/muiThemeable'; import compose from 'recompose/compose'; import { toggleSidebar as toggleSidebarAction } from '../../redux/actions...
linksa/leave.js
liuhui219/linksa
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, Modal, TextInput, ScrollView, ActivityIndicator, InteractionManager, Dimensions, DatePickerAndroid, TimePickerAndroid, ToastAndroid, BackAndroid, Image, RefreshControl, ListView, } from '...
app/components/CardMedia/view.js
kelsonic/react-redux-material-ui-boilerplate
/** * * CardMedia view * */ import React from 'react'; import { CardMedia } from 'material-ui/Card'; export default function render() { return ( <CardMedia actAsExpander={this.props.actAsExpander} expandable={this.props.expandable} mediaStyle={this.props.mediaStyle} overlay={this.props.o...
source/client/components/Button.js
NAlexandrov/yaw
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'react-emotion'; const StyledButton = styled.button` height: 36px; width: 120px; font-size: 13px; font-weight: 600; border: none; border-radius: 3px; cursor: pointer; background-color: ${({ bgColor }) => bgColor}; ...
tests/components/CommTable/CommTable.spec.js
MattCGao/reactjs
import React from 'react' import { CommTable, CommTableHeader, CommTableBody } from 'components/CommTable' import { render } from 'enzyme' describe('(Components) CommTableHeader', () => { let _component beforeEach(() => { _component = render(<CommTableHeader titles={['col1', 'col2']} />) }) it...
tests/routes/Home/components/HomeView.spec.js
YanlongLai/pofa-redux
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
tests/Frontend/cell_footer.js
ptphp/ptphp
/** * Created by jf on 15/12/9. */ "use strict"; import React from 'react'; import { shallow } from 'enzyme'; import assert from 'assert'; import WeUI from '../src/index'; const {CellFooter} = WeUI; describe('<CellFooter></CellFooter>', ()=> { ['cell footer wording', <img src="http://mmrb.github.io/avatar/be...
src/plantsearch/MinPlantList.js
BushrootPDX/app
import React, { Component } from 'react'; export default class MinPlantList extends Component { render() { const { plants, selectPlant } = this.props; return ( <ul> {plants && plants.map((plant, index) => (<li key={index} ...
app/index.js
JedWatson/picture-tour-app
import './css/main.css'; import React from 'react'; import ReactDOM from 'react-dom'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import StepStore from './stores/step'; import Start from './components/Start'; import Step from './components/Step'; const App = React.createClass({ getInitialSt...
app/js/pages/Home.js
arcsecw/myfd
import React from 'react'; import PageContainer from '../components/PageContainer'; import { Grid, Col, AvgGrid, Icon, Table, Badge, Dropdown, Panel, List, ListItem, Progress, ButtonGroup, Button, ButtonToolbar, } from 'amazeui-react'; const Home = React.createClass({ renderIntroList() { ...
src/Parser/DemonHunter/Havoc/Modules/Statistics/Spells/Momentum.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } fro...
ajax/libs/react-instantsearch/4.1.2/Connectors.js
him2him2/cdnjs
/*! ReactInstantSearch 4.1.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
webclient/src/index.js
jadiego/bloom
import React from 'react'; import ReactDOM from 'react-dom'; //css import 'semantic-ui-css/semantic.min.css'; import './index.css'; //app import App from './components/App'; //redux import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; ...
socket-chat/src/components/Messages/MessageList.js
Zyst/learning-react
import React from 'react'; import Message from './Message'; class MessageList extends React.Component { render() { let placeholder = ''; if (this.props.messages.length === 0) { placeholder = ( <div className="well"> <p className="lead"> There doesn't seem to be anything h...
src/containers/edm/components/propertytype/PropertyTypeDefaultShow.js
kryptnostic/gallery
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; function getIsChecked(value) { // force the value to be a boolean if (value !== true && value !== false) { return true; } return value; } export default class PropertyTypeDefaultShow extends React.Component { ...
src/js/components/icons/base/Pin.js
odedre/grommet-final
/** * @description Pin 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. * @proper...
src/routes.js
dongtong/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
packages/mineral-ui-icons/src/IconLibraryMusic.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconLibraryMusic(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
frontend/src/components/on_boarding/OnBoardingHero.js
OpenCollective/opencollective-website
import React from 'react'; import env from '../../lib/env'; export default ({ utmSource }) => ( <div className='OnBoardingHero'> <div className='-title'> Apply to create an open collective for your <strong>open source</strong> project. </div> <div className='-subtitle'> We are accepting new o...
src/js/containers/DevTools.js
loki951753/slider_with_react
import React from 'react'; import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import SliderMonitor from 'redux-slider-monitor'; // createDevTools t...
template/src/components/main/fake-title-bar.js
quanglam2807/webcatalog
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import connectComponent from '../../helpers/connect-component'; const titleBarHeight = 22; const { remote } = window.require('electron'); const styles = (theme) => ({ root: { background: theme.palette.type === ...
src/components/rows.js
Greynight/Grid
import React from 'react'; import BodyRow from './row-body'; import TitleRow from './row-title'; import HeaderRow from './row-header'; import FooterRow from './row-footer'; class Rows extends React.Component { /*constructor(props) { super(props); }*/ getOrderDir = () => { return this.props.sorting.orde...
src/components/user/user.js
ogoss/react-contacts-demo
import React from 'react'; export default class User extends React.Component { render() { return ( <p>This is user</p> ); } }