path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
modules/frontend/src/js/components/widgets/MapsListPaginator.js
fleximaps/fleximaps
import Paginator from './Paginator'; import React from 'react'; import { Link } from 'react-router'; export default class MapsListPaginator extends React.Component{ render(){ return <Paginator page={this.props.page} totalCount={this.props.totalCount} createNumberCb={fun...
src/parser/shaman/shared/maelstromchart/MaelstromDetails.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Panel from 'interface/statistics/Panel'; import Analyzer from 'parser/core/Analyzer'; import ResourceBreakdown from 'parser/shared/modules/resourcetracker/ResourceBreakdown'; import { formatPercentage } fro...
src/Board.js
HJBowers/drunk-grenadier-120-Set-Game
import React, { Component } from 'react'; import _ from 'lodash' import Card from './Card' import Deck from './Deck' import compareSet from './compare' import './App.css'; export default class Board extends Component { constructor(props) { super(props) this.state= { deck: {}, grid: [], car...
docs/app/components/preview/index.js
rubenmoya/react-toolbox
/* eslint-disable no-eval*/ import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { transform } from 'babel-standalone'; import * as ReactToolbox from 'react-toolbox'; import style from './style.css'; const ERROR_TIMEOUT = 500; const Preview = React.createClass({ pr...
app/javascript/mastodon/components/status.js
masto-donte-com-br/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import AvatarComposite from './avatar_composite'; import RelativeTimestamp from './relative_timestamp'; import DisplayNa...
src/components/Section/Section.js
sjchmiela/inspirowani.pl
import React from 'react'; import classnames from 'classnames'; import './Section.scss'; export default ({ zIndex, children, className, backLayerClassName, wrapperClassName, id }) => ( <div className={classnames('Section', wrapperClassName)} style={{ zIndex: zIndex }} id={id}> {backLayerClassName && <div classN...
src/components/TerminalListItem.js
williamcabrera4/chrome-app-websocket-tester
import React from 'react'; import PropTypes from 'prop-types'; import Row from './Row'; import Column from './Column'; const TerminalListItem = ({ messageItem }) => { const messageStyle = `selectable-text ${messageItem.type}`; const dateString = new Date(messageItem.date).toTimeString(); return ( <Row classN...
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/border-top.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorBorderTop = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h2v-2h-2v2zM3 3v2h18V3H3zm16 14h2v...
assets/js/browser.js
basarevych/webfm
import './polyfills'; import utf8 from 'utf8'; import { byteDecode } from 'base64util'; import socketIOClient from 'socket.io-client'; import sailsIOClient from 'sails.io.js/sails.io'; import './lib/i18n'; import Breakpoints from 'breakpoints-js'; import React from 'react'; import { hydrate } from 'react-dom'; import c...
paraviewweb/src/React/CollapsibleControls/PlotlyChartControl/PieChart.js
CordyChen/VisMechan
import React from 'react'; import style from 'PVWStyle/ReactWidgets/PlotlySelectionWidgets.mcss'; const PlotlyPieChartWidget = (props) => { function handleChange(event) { const rootContainer = event.target.parentNode.parentNode.parentNode; const newLabelArray = rootContainer.querySelector('.jsLabels').value;...
src/pages/muse.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Muse' /> )
app/containers/App.js
joshuef/peruse
// @flow import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './app.css'; import nessieStyles from 'nessie-ui/dist/styles.css'; import { SpriteMap } from 'nessie-ui'; export default class App extends Component { static propTypes = { children : PropTypes.element....
examples/forms-bootstrap/src/components/dialogs-update-wizard/Hook.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; export default createReactClass({ displayName: 'Hook', propTypes: { model: PropTypes.object.isRequired }, render: function() { const { model } = this.props; return ( <div style...
src/svg-icons/file/cloud-download.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudDownload = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-...
src/forms/CheckAgeForm/CheckAgeForm.js
davecarlson/reacty
import React from 'react' import { reduxForm } from 'redux-form' import classes from './CheckAgeForm.scss' export const fields = ['dobDay', 'dobMonth', 'dobYear', 'rememberDob'] const validate = (values) => { const errors = {} if (!values.dobDay || values.dobDay.length > 2 || values.dobDay > 31 || isNaN(Number(va...
public/js/components/activityfeed/activityContainer.react.js
MadushikaPerera/Coupley
import React from 'react'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import RaisedButton from 'material-ui/lib/raised-button'; import ActivityfeedAction from '../../actions/ActivityFeed/ActivityfeedAction'; import StatusStore from '../../stores/StatusStore'; ...
src/svg-icons/editor/border-top.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderTop = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h...
shared/components/Admin/Employee/Employee.js
KCPSoftware/KCPS-React-Starterkit
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import ActionBar from '../../SubComponents/ActionBar'; import { getAllEmployees, deleteEmployee } from '../../../actions/employeeAction'; @connect(store => ({ isLoggedIn: store.user.isLoggedIn, isLoa...
imports/ui/components/commentary/CommentaryPanel/CommentaryPanel.js
pletcher/cltk_frontend
import React from 'react'; import PropTypes from 'prop-types'; import { createContainer } from 'meteor/react-meteor-data'; import FlatButton from 'material-ui/FlatButton'; import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Commentary f...
command-reference-files/initial/spec/client/setup.js
argosity/hippo
// Code included here will be ran to setup your specs. // it's a usefull spot to setup globals or custom matchers import matchers from 'hippo/testing/matchers'; import { shallow, mount } from 'enzyme'; import { fetch } from 'hippo/testing/mocks/fetch'; import React from 'react'; import 'hippo/testing'; global.expect.e...
packages/docs/src/pages/components.js
Availity/availity-uikit
import React from 'react'; import ReactHtmlParser from 'react-html-parser'; import groupBy from 'lodash.groupby'; import map from 'lodash.map'; import slugify from 'slugify'; import { graphql } from 'gatsby'; import PropTypes from 'prop-types'; import 'holderjs'; import PrismCode from 'react-prism'; import Layout from ...
src/routes/index.js
ashelkov/hexa
import React from 'react' import { Route, IndexRoute } from 'react-router' // views, layouts import CoreLayout from 'layouts/CoreLayout/CoreLayout' import GameView from 'views/GameView/GameView' export default (store) => ( <Route path='/'component={CoreLayout}> <IndexRoute component={GameView} /> </Route> )
app/containers/ProfileFormContainer/components/ProfileForm.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { reduxForm, Field } from 'redux-form'; import Paper from 'material-ui/Paper'; import { TextField } from 'redux-form-material-ui'; import styles from './styles.css'; import RaisedButton from 'material-ui/RaisedButton'; // import send ...
src/decorators/withViewport.js
jhines2k7/react-starter-typescript
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/router/index.js
friasdesign/hotel-app--front-end
import React from 'react' // VENDOR DEPENDENCIES _________________________________________________________ import { Router, Route, IndexRoute, browserHistory } from 'react-router' import {Provider} from 'react-redux' // COMPONENTS __________________________________________________________________ import AppContainer ...
examples/website/src/parsers/js/acorn.js
w-y/ecma262-jison
import React from 'react'; import defaultParserInterface from './utils/defaultESTreeParserInterface'; import pkg from 'acorn/package.json'; const ID = 'acorn'; export default { ...defaultParserInterface, id: ID, displayName: ID, version: `${pkg.version}`, homepage: pkg.homepage, locationProps: new Set(['...
reprise-client/src/App.js
yurivital/reprise
import React, { Component } from 'react'; import './App.css'; import 'jquery' import 'bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/js/bootstrap.min.js'; import 'font-awesome/css/font-awesome.min.css'; import 'font-awesome/fonts/fontawesome-webfont.eot'; import 'font-awesome/fonts/fo...
src/modules/remindersList/RemindersListRenderer.js
kuzzmi/rmndrz
import React from 'react'; import FlipMove from 'react-flip-move'; import './RemindersList.scss'; import { RemindersListItem } from '../remindersListItem'; export default props => <div className="RemindersListComponent"> <FlipMove staggerDurationBy={ 10 } duration={ 120 } ...
src/components/typography/P.js
typical000/paveldavydov
import React from 'react' import PropTypes from 'prop-types' import cn from 'classnames' import injectSheet from '../../utils/jss' const styles = { paragraph: { margin: [0, 0, 30, 0], '&:last-child': { margin: 0, }, }, } const P = ({classes, className, children}) => ( <p className={cn(classes....
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
stonegithubs/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...
src/DropdownMenu.js
brynjagr/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
test/integration/image-component/default/pages/index.js
zeit/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Home Page</p> <Image id="basic-image" src="/test.jpg" width="400" height="400"></Image> <p id="stubtext">This is the index page</p> </div> ) } export default Page
src/index.js
kzerga/apollo-design-docs
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/widgets/PortWidget.js
woodenconsulting/react-js-diagrams
import React from 'react'; export class PortWidget extends React.Component { constructor(props) { super(props); this.state = { selected: false }; } render() { const { name, node } = this.props; return ( <div className={`port${(this.state.selected ? ' selected' : '')}`} ...
src/modules/notification/components/Notifications.js
prescottprue/portfolio
import React from 'react' import PropTypes from 'prop-types' import { size } from 'lodash' import { connect } from 'react-redux' import { pure, compose, renderNothing, branch } from 'recompose' import Snackbar from 'material-ui/Snackbar' import CloseIcon from 'material-ui/svg-icons/navigation/close' import * as actions...
src/containers/ProductBestSeller/ProductBestSeller.js
kingpowerclick/kpc-web-backend
import React, { Component } from 'react'; import classNames from 'classnames'; import { FilterPage, Breadcrumb } from 'components'; import { DropdownButton, MenuItem, Modal } from 'react-bootstrap'; export default class ProductBestSeller extends Component { state = { displayCompleteModal: false, displayLinePro...
src/scripts/index.js
ziflex/react-app-starter
import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import get from 'lodash/get'; import AppComponent from './ui/components/app'; import App from './ui/application'; const container = document.createElement('div'); container.style.width = '100%'; container....
app/components/Profile.js
devacto/notetaker
import React from 'react'; import Repos from './Github/Repos'; import UserProfile from './Github/UserProfile'; import Notes from './Notes/Notes'; import getGithubInfo from '../utils/helpers'; import Rebase from 're-base'; const base = Rebase.createClass('https://radiant-heat-7824.firebaseio.com'); class Profile exten...
src/svg-icons/action/view-week.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewWeek = (props) => ( <SvgIcon {...props}> <path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4...
src/js/components/ImageUploadAndPreview.js
ludonow/ludo-beta-react
import React, { Component } from 'react'; import styled from 'styled-components'; import DropZone from 'react-dropzone'; import LightBox from 'react-image-lightbox'; import cameraIconSrc from '../../images/camera-icon.png'; import { withMaybe } from '../components/higher-order-components/index'; import axios from '../...
ui/src/js/ranking/RankingItemLarge.js
Dica-Developer/weplantaforest
import Accounting from 'accounting'; import counterpart from 'counterpart'; import he from 'he'; import React, { Component } from 'react'; import { Link } from 'react-router'; export default class RankingItem extends Component { constructor(props) { super(props); } render() { return ( <div classNa...
src/svg-icons/device/access-time.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessTime = (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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-1...
app/components/views/todo-list.js
joawan/todo-ui-react
import React from 'react'; import style from 'todomvc-app-css/index.css'; import TodoItemContainer from '../containers/todo-item-container'; function TodoList(props) { return ( <div className={style.main}> <ul className={style.todoList}> {props.todos.map(todo => ( <TodoItemContainer...
src/common/routes.js
adamarthurryan/personal-database
import {Route, IndexRout, Redirect } from 'react-router' import React from 'react'; import Main from './components/Main' var routes = [ <Route path="/**" component={Main}/>, /* <Route path="/tag/*" component={TagFilter}/> */ ] export default routes // <Route path="**" component={Entrie...
client/modules/App/__tests__/Components/Header.spec.js
leranf/hotwireCarRentalSearch
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { FormattedMessage } from 'react-intl'; import { Header } from '../../components/Header/Header'; import { intl } from '../../../../util/react-intl-test-helper'; const intlProp = { ...intl, enabledLang...
app/components/icon.js
garth/material-components
import React from 'react'; export default ({ name, style = {} }) => ( <i style={Object.assign( { lineHeight: 'inherit' }, style )} className={`icon-${name}`} /> );
src/components/pages/demoPage/EchoView.js
guangqiang-liu/OneM
import React from 'react'; import {View, Text, StyleSheet} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; export default class extends React.Component { render(){ return ( <View style={[styles.container, this.props.sceneStyle]}>...
addons/storyshots/storyshots-core/stories/required_with_context/Async.stories.js
kadirahq/react-storybook
import React from 'react'; export const EXPECTED_VALUE = 'THIS IS SO DONE'; export const TIMEOUT = 5; class AsyncTestComponent extends React.Component { constructor(props) { super(props); this.state = { value: '', }; } componentDidMount() { setTimeout(() => { this.setState({ ...
src/containers/RealProductList/RealProductList.js
unam3/oshop
import React from 'react'; import { Ring } from '../../components/Ring/Ring'; import { Filters } from '../../components/Filters/Filters'; import { ProductTable } from '../../components/ProductTable/ProductTable'; export default class ProductList extends React.Component { constructor(props) { super(props); } ...
src/views/Playlist/components/Header.js
Gouthamve/BINS-FRONT
import React from 'react' import { Jumbotron, Button, Image, Grid, Row, Col } from 'react-bootstrap' import alart from 'img/coverart1.jpg' const Header = ({onPlayNow}) => { return <Jumbotron> <Grid fluid> <Row> <Col xs={2}> <Image src={alart} responsive /> </Col> <Col xs=...
src/components/Separator.js
alphasp/pxview
import React from 'react'; import { StyleSheet, View } from 'react-native'; const styles = StyleSheet.create({ separatorContainer: { paddingHorizontal: 10, }, separator: { height: StyleSheet.hairlineWidth, backgroundColor: '#8E8E8E', }, }); const Separator = ({ noPadding }) => ( <View style={!no...
src/svg-icons/av/library-music.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57...
app/containers/HomePage/index.js
samousavih/torang
/* * 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...
client/client.js
ErosZZH/gallery
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import createRoutes from 'routes'; import configureStore from 'stores/...
src/App.js
karatechops/grommet-docs
import React from 'react'; import { IntlProvider, addLocaleData } from 'react-intl'; import en from 'react-intl/locale-data/en'; import routes from './routes'; import { Router, useRouterHistory } from 'react-router'; import { createHistory } from 'history'; addLocaleData(en); import { getCurrentLocale, getLocaleData ...
demos/1_quickstart/Demo.js
woltapp/react-geoinput
import React, { Component } from 'react'; import { createGeoInput, DefaultGeoInput } from 'react-geoinput'; import styles from './Demo.css'; const DemoInput = createGeoInput(DefaultGeoInput); class DemoView extends Component { state = { address: '', geoDestination: '', } onAddressChange = value => thi...
spec/index.js
rubenmoya/react-toolbox
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './root'; ReactDOM.render(<Root />, document.getElementById('spec'));
client/app/scripts/components/app.js
alban/scope
import debug from 'debug'; import React from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { debounce } from 'lodash'; import { ThemeProvider } from 'styled-components'; import theme from 'weaveworks-ui-components/lib/theme'; import Logo from './logo'; import Footer from ...
src/svg-icons/content/add-box.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/> </SvgIcon> ); ContentAddBox = pu...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
kagucho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.Component { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-header...
src/svg-icons/av/surround-sound.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSurroundSound = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.76 16.24l-1.41 1.41C4.78 16.1 4 14.05 4 12c0-2.05.78-4.1 2.34-5.66l1.4...
src/svg-icons/action/camera-enhance.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCameraEnhance = (props) => ( <SvgIcon {...props}> <path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.2...
src/svg-icons/action/http.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttp = (props) => ( <SvgIcon {...props}> <path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-...
app/javascript/mastodon/features/compose/components/search_results.js
pointlessone/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/sta...
src/components/Entry/Integration/index.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import T from 'prop-types'; import Link from 'components/generic/Link'; import loadable from 'higherOrder/loadable'; import { foundationPartial } from 'styles/foundation'; import ipro from 'styles/interpro-new.css'; import local from './style.css'; import loadData from 'higherOrd...
src/js/ui/menu.js
SpaceHexagon/pylon
import React from 'react'; import Icon from './icon.js'; import EventEmitter from 'events'; export default class Menu extends React.Component { constructor() { super(); // Initial state of the component this.state = { applet: null, resized: false }; } componentDidM...
src/svg-icons/hardware/scanner.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareScanner = (props) => ( <SvgIcon {...props}> <path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/> </...
react-router-tutorial/lessons/08-index-routes/modules/About.js
zerotung/practices-and-notes
import React from 'react' export default React.createClass({ render() { return <div>About</div> } })
app/components/Toastr/Toastr.js
danielzy95/oaa-chat
import React from 'react' import styles from './Toastr.css' const DEFAULT_TIMEOUT = 5 const getStyles = (str, def) => { if (str) { const style = styles[str] if (style) return style } return styles[def] } const getTypeStyles = type => getStyles(type, 'success') const getPosStyles = pos => getStyles(pos, '...
src/molecules/formfields/DateField/index.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import BaseDateField from '../util/BaseDateField'; class DateField extends BaseDateField { render() { const { children } = this.props; return ( this.wrapper(React.Children.map(children, this.wrapChild)) ); } } DateField.propTypes =...
src/components/ui/Card.js
npdat/Demo_React_Native
/** * Cards * <Card></Card> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Card } from 'react-native-elements'; // Consts and Libs import { AppSizes, AppColors, AppStyles } from '@th...
src/svg-icons/action/face.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFace = (props) => ( <SvgIcon {...props}> <path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-...
examples/huge-apps/routes/Profile/components/Profile.js
nauzethc/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
app/components/ListItem/ListItem.js
zhrkian/SolarDataApp
import React from 'react' import { Link } from 'react-router' import s from './ListItem.css' import Paper from 'material-ui/Paper' import FloatingActionButton from 'material-ui/FloatingActionButton' import ActionDelete from 'material-ui/svg-icons/action/delete' import Spinner from '../Spinner/Spinner' const ListItem ...
works/react-native/redux/TodoList/index.android.js
JoelPub/wordpress-amazon
/** * 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 TodoList extends Component { render() { return ( <View style={styles.container}> <Text...
packages/bonde-admin-canary/src/scenes/Logged/scenes/Home/components/MobilizationsGadget/MobilizationsGadget.js
ourcities/rebu-client
import React from 'react' import { Text, Pagination } from 'bonde-styleguide' import { Queryset } from 'components' import ImageColumn from '../ImageColumn' import TableCardGadget from '../TableCardGadget' import Filter from './Filter' import allUserMobilizationsQuery from './query.graphql' import { authSession } from ...
ui/containers/Root.dev.js
yih-en/data-triangulation-tool
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import App from './App'; import DevTools from './DevTools'; export default class Root extends Component { render() { const { store } = this.props; return ( <Provider store={store}> <div> <App /> ...
src/parser/warlock/affliction/modules/talents/DrainSoul.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import Enemies from 'parser/shared/modules/Enemies'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import { formatPercentage, f...
src/components/StaticPageContent.js
dawsonbotsford/vimrcBuilder
// @flow import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.div` padding: 6vw 10vw; /* light pink */ background-color: #fff5f5; /* near-black pink */ color: 1px solid #1f0200; @media (max-width: 900px) { padding: 10vh 4vw; } `; const StaticPageContent = () => ...
app/containers/CatKitDemo/CalculationsView.js
mhoffman/CatAppBrowser
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import JSZip from 'jszip'; import { saveAs } from 'file-saver'; /* import IconButton from 'material-ui/IconButton';*/ import Table, { TableBody, TableCell, TableHead, TableRow, } from 'material-ui/Table'; import Button fro...
frontend/components/player-controls.js
meandavejustice/min-vid
import React from 'react'; import cn from 'classnames'; import Progress from './progress'; import SoundControl from './sound-control'; import PlaybackControl from './playback-control'; export default class PlayerControls extends React.Component { constructor(props) { super(props); this.state = {exited: false...
fields/types/list/ListColumn.js
matthewstyers/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; import { plural } from '../../../admin/client/utils/string'; var ListColumn = React.createClass({ displayName: 'ListColumn', propTypes: { col: React.PropTypes.obj...
admin/client/components/Popout/PopoutBody.js
suryagh/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, scrollable: React.PropTypes.bool, }, render () { cons...
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/src/main/js-surface-react.js
js-works/js-surface
import adaptReactLikeRenderEngine from './adaption/adaptReactLikeRenderEngine'; import React from 'react'; import ReactDOM from 'react-dom'; function reactMount(content, targetNode) { ReactDOM.render(content, targetNode); return () => ReactDOM.unmountComponentAtNode(targetNode); } const { createElement,...
src/routes/dashboard/components/recentSales.js
zhangjingge/sse-antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Table, Tag } from 'antd' import styles from './recentSales.less' import { color } from '../../../utils' const status = { 1: { color: color.green, text: 'SALE', }, 2: { color: color.yellow, text: 'REJECT', }, 3: { color:...
app/javascript/mastodon/features/status/components/action_bar.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMess...
src/components/RestaurantDecision/RestaurantDecision.js
labzero/lunch
import PropTypes from 'prop-types'; import React from 'react'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import Tooltip from 'react-bootstrap/lib/Tooltip'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './RestaurantDecision.scss'; // TODO return null when upgradi...
app/components/Home.js
wilomgfx/code-push-gui
// @flow import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styles from './Home.css'; export default class Home extends Component { render() { return ( <div> <div className={styles.container} data-tid="container"> </div> </div> ); } }
node_modules/semantic-ui-react/src/views/Feed/FeedLike.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Icon from '../../elements/Icon' /** * A feed can contain a like element. */ function FeedLike(props) { ...
app/containers/App/Loading.js
CityOfZion/neon-wallet
// @flow import React from 'react' import classNames from 'classnames' import themes from '../../themes' import Loader from '../../components/Loader' import styles from './Loading.scss' type Props = { theme: ThemeType, nobackground?: boolean, } export default function Loading(props: Props) { const { theme, nob...
server/sonar-web/src/main/js/apps/component-measures/details/drilldown/ListView.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
frontend/js/components/details/table.js
mcallistersean/b2-issue-tracker
/** * Created by sean on 22/12/16. */ import React from 'react' class DetailTable extends React.Component { render() { let items = this.props.items || []; let rows = items.map(i => { return <tr key={i[0]}> <th>{i[0]}</th> <td>{i[1]}</td> </t...
fields/types/embedly/EmbedlyField.js
woody0907/keystone
import React from 'react'; import Field from '../Field'; import { FormField, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'EmbedlyField', // always defers to renderValue; there is no form UI for this field renderField () { return this.renderValue(); }, renderValue (path, label, ...
src/Location/Html4.js
gaearon/component-router
import React from 'react'; import url from 'url'; import Store from '../Store'; import ActionCreator from '../ActionCreator'; const Html4 = React.createClass({ componentWillMount() { this.restoreUrl(); }, componentDidMount() { this.paramsUnsubscribe = Store.addChangeListener(this.onChange); window...
client/components/lists/ManageLists.js
zhakkarn/Mail-for-Good
import React from 'react'; import ManageListsBox from '../../containers/lists/ManageListsBox'; const ManageLists = () => { return ( <div> <div className="content-header"> <h1>Manage lists <small>Edit, delete and segement your lists here</small> </h1> </div> <section ...
frontend/src/MovieFile/Editor/MovieFileRowCellPlaceholder.js
Radarr/Radarr
import React from 'react'; import styles from './MovieFileRowCellPlaceholder.css'; function MovieFileRowCellPlaceholder() { return ( <span className={styles.placeholder} /> ); } export default MovieFileRowCellPlaceholder;
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js
viankakrisna/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 from 'react'; import './assets/style.css'; import { test, version } from 'test-integrity'; export default () => { const ...
flex.js
aarongoin/react-flex-component
import React from 'react'; class Box extends React.Component { static defaultProps = { prefix: (navigator.userAgent.indexOf('AppleWebKit') > -1) ? 'Webkit' : (navigator.userAgent.indexOf('MSIE') > -1) ? 'ms' : null, justifyContent: 'flex-start', alignItems: 'stretch' }; constructor(props) { super(props); ...
app/stories/PostSummary.js
manavsehgal/reactspeedcoding
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import PostSummary from '../components/PostSummary.jsx'; storiesOf('PostSummary', module) .add('default', () => ( <PostSummary /> ));
app.js
ygpark2/react-img-component
/*! * React Component Starter Kit * https://github.com/kriasoft/react-component-starter * Copyright (c) KriaSoft, LLC. All rights reserved. See LICENSE.txt */ import React from 'react'; import Component from './src'; React.render(<Component />, document.getElementById('component'));