path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/docs/components/animate/AnimateSlideExample.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Animate from 'grommet/components/Animate'; import Box from 'grommet/components/Box'; import Button from 'grommet/components/Button'; import Paragraph from 'grommet/components/Paragraph'; import Example...
src/store/shared/app.js
cezerin/cezerin
import React from 'react'; import { Route } from 'react-router'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { animateScroll } from 'react-scroll'; import IndexContainer from './containers/index'; import SharedContainer from './containers/shared'; import CategoryContainer fro...
app/templates/src/app.js
jermspeaks/generator-react-vertical
import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import FastClick from 'fastclick'; import Dispatcher from './core/Dispatcher'; import getRoutes from './routes' import Location from './core/Location'; import ActionTypes from './common/constants/ActionTypes'; import { addEventListene...
src/svg-icons/av/pause.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPause = (props) => ( <SvgIcon {...props}> <path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/> </SvgIcon> ); AvPause = pure(AvPause); AvPause.displayName = 'AvPause'; AvPause.muiName = 'SvgIcon'; export default AvP...
src/svg-icons/communication/call-end.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallEnd = (props) => ( <SvgIcon {...props}> <path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-....
features/common/components/searchInput.js
zymokey/mission-park
import React from 'react'; import { connect } from 'react-redux'; import { searchInput } from '../actions'; class SearchInput extends React.Component { constructor(props){ super(props); this.state = { search: '' } } handleInputChange(event){ const { model, attr, parentId } = this.props; const targe...
apps/wmb/priv/www/static/js/src/containers/filters/index.js
black13ua/wmb
import React from 'react'; import FiltersMenuView from '../../view/filters/main'; // import RandomButtonContainer from './random-button'; import FiltersContainer from './filters/main-filter'; const RightSidebarContainer = () => <FiltersMenuView> {/* <RandomButtonContainer />*/} <FiltersContainer ...
definitions/npm/styled-components_v2.x.x/flow_v0.42.x-v0.52.x/test_styled-components_native_v2.x.x.js
orlandoc01/flow-typed
// @flow import nativeStyled, { ThemeProvider as NativeThemeProvider, withTheme as nativeWithTheme, keyframes as nativeKeyframes, } from 'styled-components/native' import React from 'react' import type { Theme as NativeTheme, Interpolation as NativeInterpolation, // Temporary ReactComponentFunctional as ...
src/interface/report/Results/Character/PlayerInfo/Gear.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'common/Icon'; import ItemLink from 'common/ItemLink'; import ITEM_QUALITIES from 'game/ITEM_QUALITIES'; const EPIC_ITEMS_ILVL = 340; class Gear extends React.PureComponent { static propTypes = { gear: PropTypes.array.isRequired, ...
src/parser/druid/guardian/modules/features/FrenziedRegenGoEProcs.js
FaideWW/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import GuardianOfElune from './GuardianO...
lib/Highlighter/stories/Highlighter.stories.js
folio-org/stripes-components
import React from 'react'; import { storiesOf } from '@storybook/react'; import withReadme from 'storybook-readme/with-readme'; import readme from '../readme.md'; import BasicUsage from './BasicUsage'; storiesOf('Highlighter', module) .addDecorator(withReadme(readme)) .add('Basic Usage', () => <BasicUsage />);
src/modules/keywords/routes/index.js
CtrHellenicStudies/Commentary
import React from 'react'; import { Route } from 'react-router'; import PrivateRoute from '../../../routes/PrivateRoute'; import EditKeywordLayout from '../layouts/EditKeywordLayout'; import KeywordPage from '../components/KeywordPage'; import KeywordDetailContainer from '../containers/KeywordDetailContainer'; const...
app/javascript/mastodon/components/relative_timestamp.js
primenumber/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ today: { id: 'relative_time.today', defaultMessage: 'today' }, just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time...
src/svg-icons/action/event.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEvent = (props) => ( <SvgIcon {...props}> <path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/> </SvgIcon> ...
fields/types/relationship/RelationshipField.js
helloworld3q3q/keystone
import async from 'async'; import Field from '../Field'; import { listsByKey } from '../../../admin/client/utils/lists'; import React from 'react'; import Select from 'react-select'; import xhr from 'xhr'; import { Button, InputGroup } from 'elemental'; import _ from 'lodash'; function compareValues (current, next) { ...
css-modules-demo/demo01/index.js
zhangjunhd/react-examples
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App/>, document.body.appendChild(document.createElement('div')) );
packages/react/components/block.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentEl from '../runtime-helpers/react-component-el.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-...
src/native/todos/Todos.js
skallet/este
// @flow import type { State, Todo } from '../../common/types'; import Checkbox from './Checkbox'; import Footer from './Footer'; import React from 'react'; import todosMessages from '../../common/todos/todosMessages'; import { Box, Text, TextInput } from '../../common/components'; import { FormattedMessage } from 'rea...
src/components/Start/Start.js
foglerek/yn-mafia
import React from 'react' import { IndexLink, Link } from 'react-router' // import classes from './Start.scss' import { FormGroup, FormControl, ControlLabel, ButtonToolbar, Button } from 'react-bootstrap'; import { connect } from 'react-redux'; import { addUser } from '../../redux/modules/UserActions'; import { bindAct...
app/components/Header/index.js
gihrig/react-boilerplate
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.jpg'; import messages from './messages'; class Header extends React.Component { // eslint-disable-l...
src/svg-icons/communication/stay-current-landscape.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
src/svg-icons/image/filter-tilt-shift.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterTiltShift = (props) => ( <SvgIcon {...props}> <path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62...
web/src/viewer/DateLabel.js
bolddp/pixerva
import React, { Component } from 'react'; export default class DateLabel extends Component { toDate(timestamp) { return new Date(timestamp * 1000).toISOString().substring(0,10); } render() { return ( this.props.dateTaken ? ( <label id="imageDate" style={{ fontSize: '20px', float: 'right' }...
packages/showcase/axes/custom-axes-orientation.js
uber/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...
app/src/index.js
grantrules/bikeindustryjobs
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/common/components/Routes.js
suttonj/topshelf
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import LoginPage from '../../pages/login/page'; import HomePage from '../../pages/home/page'; import TopicPage from '../../pages/topic/page'; import BookListPage from '../../pages/booklist/page'; export default ( <R...
node_modules/semantic-ui-react/src/views/Item/ItemImage.js
mowbell/clickdelivery-fed-test
import React from 'react' import { createShorthandFactory, getUnhandledProps, META, } from '../../lib' import Image from '../../elements/Image' /** * An item can contain an image. */ function ItemImage(props) { const { size } = props const rest = getUnhandledProps(ItemImage, props) return <Image {...re...
analysis/warriorarms/src/modules/core/Execute/EarlyDotRefresh.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import React from 'react'; import EarlyDotRefreshesCore from './EarlyDotRefreshes'; const MINOR_THRESHOLD = 0.9; const AVERAGE_THRESHOLD = 0.8; const MAJOR_TH...
src/pages/organize/list.js
yiweimatou/admin-antd
import React, { Component } from 'react'; import { Table, message, Button } from 'antd' import { Link } from 'react-router' import { info, list } from 'services/organize' import SearchInput from '../../components/SearchInput' class OrganizeList extends Component { constructor(props) { super(props) ...
src/client/js/components/App.js
dstaver/greedy-alligator
import React, { Component } from 'react'; import Header from '../containers/Header'; export default class App extends Component { render() { return ( <div> <Header /> {this.props.children} </div> ); } }
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/story-parameters.input.js
storybooks/react-storybook
/* eslint-disable */ import React from 'react'; import Button from './Button'; import { storiesOf } from '@storybook/react'; storiesOf('Button', module) .add('with story parameters', () => <Button label="The Button" />, { header: false, inline: true, }) .add('foo', () => <Button label="Foo" />, { ba...
app/src/chart/chart.js
tmlewallen/PongPing
import React from 'react'; import 'whatwg-fetch'; import d3 from './d3'; import moment from 'moment'; import * as _ from 'lodash'; export default class Chart extends React.Component { constructor() { super(); this.state = { data: [], maxPoints : 1000, pollPeriod ...
test/PageItemSpec.js
jakubsikora/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageItem from '../src/PageItem'; describe('PageItem', function () { it('Should output a "list item" as root element, and an "anchor" as a child item', function () { let instance = ReactTestUtils.renderIntoDocument( <Pa...
src/js/components/icons/base/Multiple.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/Components/Header/index.js
gabriel-lopez-lopez/gll-billin-code-challenge
/** * Componente cabecera principal de navegación de la aplicación * */ import React, { Component } from 'react'; import { Link, withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; // Logo import image from '../../assets/images/logo-billin.png'; // Estilos personalizados import './navbar...
test/unit/lib/static/components/error-boundary.js
gemini-testing/html-reporter
import React from 'react'; import ErrorBoundary from 'lib/static/components/error-boundary'; describe('<ErrorBoundary />', () => { const sandbox = sinon.sandbox.create(); beforeEach(() => { sandbox.stub(console, 'error'); }); afterEach(() => sandbox.restore()); it('should render child co...
node_modules/react-router/es6/Link.js
jwilkinson/tiff16-films
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
client/test/components/homePage/Footer.spec.js
EricDav/PostIt
import React from 'react'; import { shallow } from 'enzyme'; import expect from 'expect'; import Footer from '../../../components/Footer.jsx'; describe('Footer Component', () => { it('should render footer component', () => { const wrapper = shallow(<Footer/>); expect(wrapper.node.props.className) .toE...
fixtures/attribute-behavior/src/App.js
aickin/react
import React from 'react'; import {createElement} from 'glamor/react'; // eslint-disable-line /* @jsx createElement */ import {MultiGrid, AutoSizer} from 'react-virtualized'; import 'react-virtualized/styles.css'; import FileSaver from 'file-saver'; import { inject as injectErrorOverlay, uninject as uninjectError...
client/src/app/components/navigation/components/BigBreadcrumbs.js
zraees/sms-project
import React from 'react' import _ from 'lodash' // import NavigationStore from '../stores/NavigationStore' export default class BigBreadcrumbs extends React.Component { // mixins: [Reflux.listenTo(NavigationStore, 'onNavigationChange')], constructor(props) { super(props); this.state = { items: th...
app/components/Header/components/SessionInfo.js
kme211/srt-maker
import React from 'react'; import getRelativeTimeAgo from '../../../utils/getRelativeTimeAgo'; import styles from './SessionInfo.css'; const SessionInfo = ({ name, status, lastSaved }) => ( <div className={styles.session}> <div className={styles.session__name}>{name}</div> <div className={ last...
src/components/companies/companies-edit.js
Xabadu/VendOS
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { reduxForm } from 'redux-form'; import { getCompany, updateCompany } from '../../actions/companies'; class CompaniesEdit extends Component { constructor(props) { super(props); this.s...
react-flux-mui/js/material-ui/src/svg-icons/action/verified-user.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVerifiedUser = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/> </SvgIcon> ); ActionVerif...
nailgun/static/views/cluster_page.js
huntxu/fuel-web
/* * Copyright 2015 Mirantis, Inc. * * 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 ...
tests/routes/Counter/components/Counter.spec.js
GreGGus/MIMApp
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
config/routes.js
dkfann/cinesythesia
import React from 'react'; import {Route, Router, IndexRoute, hashHistory} from 'react-router'; import MainContainer from '../containers/MainContainer'; import HomeContainer from '../containers/HomeContainer'; export default ( <Router history={hashHistory}> <Route path="/" component={ MainContainer }> ...
mobile/Simplenote/src/components/screen-activity-indicator.js
abhaydgarg/Simplenote
import React from 'react'; import PropTypes from 'prop-types'; import { ActivityIndicator, View } from 'react-native'; const ScreenActivityIndicator = (props) => { return ( <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> <ActivityIndicator animating color={props.col...
ui/js/components/Image.js
ericsoderberg/pbc-web
import React from 'react'; import PropTypes from 'prop-types'; const Image = (props) => { const { avatar, className, full, image, style } = props; const classes = ['image']; if (avatar) { classes.push('image--avatar'); } if (full) { classes.push('image--full'); } if (className) { classes.push...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/data/ScopeValidation.js
thusithak/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
app/components/About.js
kdemoya/seriesly
import React, { Component } from 'react'; import { Text, View } from 'react-native'; class About extends Component { static navigationOptions = { title: 'About', }; render() { return ( <View> <Text> This is an awesome app! Nothing to watch here... Yet. </Text> ...
node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbSeparator.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; var styles = { root: { display: 'flex...
DevTools.js
mattkrick/redux-operations-counter-example
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q'> <LogMonitor /...
blueocean-material-icons/src/js/components/svg-icons/action/settings-ethernet.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSettingsEthernet = (props) => ( <SvgIcon {...props}> <path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5...
app/javascript/mastodon/components/column.js
nonoz/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import detectPassiveEvents from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, }; scrollTop () { const scrollable = th...
milestones/05-webpack-intro-css/After/src/index.js
jaketrent/react-drift
import React from 'react' import ReactDOM from 'react-dom' import DriftApp from './app.js' ReactDOM.render(<DriftApp />, document.getElementById('app'))
src/svg-icons/toggle/radio-button-checked.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleRadioButtonChecked = (props) => ( <SvgIcon {...props}> <path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
andrewmaudsley/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
components/react-semantify/src/collections/table.js
react-douban/douban-book-web
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; let defaultClassName = 'ui table'; const Table = React.createClass({ mixins: [ClassGenerator], render: function () { let {className, ...other} = this.props; return ( <table {...other} className={this.getClassName(d...
packages/vx-glyph/src/glyphs/Square.js
Flaque/vx
import React from 'react'; import cx from 'classnames'; import { symbol, symbolSquare } from 'd3-shape'; import Glyph from './Glyph'; import additionalProps from '../util/additionalProps'; export default function GlyphSquare({ children, className, top, left, size, ...restProps }) { const path = symbol();...
src/svg-icons/device/access-alarm.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessAlarm = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-...
src/svg-icons/social/sentiment-very-satisfied.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVerySatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.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 8zm1...
examples/week.js
react-component/calendar
/* eslint react/no-multi-comp:0, no-console:0 */ import '../assets/index.less'; import React from 'react'; import moment from 'moment'; import Calendar from '../src'; import DatePicker from '../src/Picker'; import zhCN from '../src/locale/zh_CN'; import enUS from '../src/locale/en_US'; import 'moment/locale/zh-cn'; i...
app/components/Work/ToolsSection/index.js
yasserhennawi/yasserhennawi
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'utils/styled-components'; import WorkSection from '../WorkSection'; import Tool from '../Tool'; const StyledTool = styled(Tool)` margin: 10px 20px 0 0; `; const ToolsWrapper = styled.div` display: flex; flex-wrap: wrap; `; const g...
src/components/Surrounder.js
codeforboston/cliff-effects
import React from 'react'; const Surrounder = function ({ Top, Left, Right, Bottom, children }) { let contents = { top: null, left: null, right: null, bottom: null }; if (Top) { contents.top = (<div className={ `top horizontal` }>{ Top }</div>); } if (Left) { contents.left = (<div className={ `left ...
src/components/App.js
sivael/simpleBlogThingie
import React from 'react' import Header from 'components/Header' import { Link } from 'react-router' class App extends React.Component { render() { return ( <div> <Header /> { this.props.children } </div> ) } } export default App;
app-course-sync/containers/PageContainer.js
globant-ui-rosario/progress-tracker
import React, { Component } from 'react'; class PageContainer extends Component { render () { return ( <div>{this.props.children}</div> ); } }; export default PageContainer;
src/components/searchbar.js
ShaneFairweather/React-iTunes
import React, { Component } from 'react'; export default class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' } this.onInputChange = this.onInputChange.bind(this); } onInputChange(term) { this.setState({term}) this.props....
src/resources/assets/react-app/components/PreHeader.js
darrenmerrett/ruf
import React, { Component } from 'react'; class PreHeader extends Component { render() { return null; } } export default PreHeader;
src/components/TabIcon.js
phodal/growth-ng
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text } from 'react-native'; import { Icon } from 'react-native-elements'; import AppColors from '../theme/colors'; class TabIcon extends React.Component { componentName = 'TabIcon'; render() { return ( <View> <Icon name...
test/components/Counter.spec.js
Andrew-Hird/bFM-desktop
/* eslint-disable no-unused-expressions */ import { spy } from 'sinon'; import React from 'react'; import { shallow } from 'enzyme'; import Counter from '../../app/components/Counter'; function setup() { const actions = { increment: spy(), incrementIfOdd: spy(), incrementAsync: spy(), decrement: spy(...
pages/product.js
NigelEarle/SSR-shopping
import React, { Component } from 'react'; import { Provider } from 'mobx-react'; import { initProductStore } from '../store/product'; import { SingleProduct } from '../components'; class Product extends Component { static async getInitialProps(context) { const isServer = !!context.req; const store = initProd...
src/Table.js
kwnccc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, getDefaultProps() { ...
demo/src/demo-components/user-list.js
Strikersoft/striker-store
import React from 'react'; import { shape, func, number, arrayOf } from 'prop-types'; import { observer } from 'mobx-react'; import Status from './indicators'; import UserItem from './user-item'; const UserList = observer(({ users, isReloading, isLoading, ...rest }) => ( <div> {users.map( user => ( ...
src/components/shared/import-geometry/import-geometry.component.js
GeoTIFF/geotiff.io
import React from 'react'; const ImportGeometryComponent = ({ geometry, importGeometry }) => ( <div className='import-geojson'> <p>Import Geometry from file</p> <div className='content-row'> <label className='gt-button-secondary' htmlFor="import-geojson-input" > Import Geo...
exemplos/ExemploMenuItem.js
vitoralvesdev/react-native-componentes
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; import { MenuItem } from 'react-native-componentes'; const ITENS = [ {nome: 'Criar'}, {nome: 'Atualizar'}, {nome: 'Deletar'}, ] export default class ExemploMenuItem extends Componen...
src/svg-icons/content/drafts.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDrafts = (props) => ( <SvgIcon {...props}> <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>...
components/link/Link.js
showings/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { LINK } from '../identifiers'; import { FontIcon } from '../font_icon/FontIcon'; const Link = ({ active, children, className, count, icon, label, theme, ...others }) => {...
lib/Components/IdeaInput.js
DanGrund/Daily-Bullet
import React from 'react'; export default class IdeaInput extends React.Component{ constructor(props){ super(props); this.state = { newTask: {value: ''}, } } handleChange(e){ let task = this.state.newTask task.value = e.target.value this.setState({newTask: task}) } handleSave(...
app/views/STF/Voting/Panels/Vote/Vote.js
RcKeller/STF-Refresh
import React from 'react' import PropTypes from 'prop-types' import { compose, bindActionCreators } from 'redux' import { connect } from 'react-redux' import { Form, Alert, Switch, Button, message } from 'antd' const FormItem = Form.Item const connectForm = Form.create() import { layout } from '../../../../....
client/modules/App/components/DevTools.js
mygithub1216/MERN_SelfCar_Dashboard
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
src/components/buttons/CreateButton.js
shrimpliu/shradmin
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'antd'; import { actions } from 'mirrorx'; import { translate } from '../../i18n'; const CreateButton = ({ translate, model }) => ( <Button type="primary" icon="plus" onClick={() => actions.routing.push(`/${model}/create`)}> {t...
node_modules/react-bootstrap/es/DropdownMenu.js
firdiansyah/crud-req
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _Array$from from 'babel-runtime/core-js/array/from'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtim...
src/svg-icons/hardware/keyboard.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboard = (props) => ( <SvgIcon {...props}> <path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v...
local-cli/templates/HelloWorld/index.android.js
tadeuzagallo/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'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
docs/app/Components/ComponentDoc/ComponentProps/ComponentPropsHeader.js
shengnian/shengnian-ui-react
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { Header, Icon } from 'shengnian-ui-react' import { updateForKeys } from 'docs/app/HOC' const headerStyle = { cursor: 'pointer', display: 'inline-flex', margin: '1em 0.5em', marginLeft: 0, } const linkStyle = { co...
app/index.js
feijihn/lotto
require('smoothscroll-polyfill').polyfill(); import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import configureStore from './store/configureStore'; import {Router, hashHistory} from 'react-router'; import routes from './routes'; const initialState = window.__INITIAL_S...
stories/AutoComplete/ExampleStandard.js
skyiea/wix-style-react
import React from 'react'; import AutoComplete from 'wix-style-react/AutoComplete'; const style = { display: 'inline-block', padding: '0 5px 0', width: '200px', lineHeight: '22px' }; const options = [ {id: 0, value: 'First option'}, {id: 1, value: 'Unselectable option', unselectable: true}, {id: 2, valu...
admin/client/Signin/index.js
danielmahon/keystone
/** * The signin page, it renders a page with a username and password input form. * * This is decoupled from the main app (in the "App/" folder) because we inject * lots of data into the other screens (like the lists that exist) that we don't * want to have injected here, so this is a completely separate route and...
node_modules/react-bootstrap/es/MediaBody.js
superKaigon/TheCave
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/@lyra/imagetool/src/ImageLoader.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' export default class ImageLoader extends React.Component { static propTypes = { src: PropTypes.string.isRequired, children: PropTypes.func.isRequired } state = { isLoading: true, image: null, error: null } componentWillMount()...
src/components/DoneFooter.js
rollo-zhou/look
import React from 'react'; import { ActivityIndicator, StyleSheet, Image, Text, View, ListView, TouchableOpacity } from 'react-native'; import Dimensions from 'Dimensions'; const {width, height} = Dimensions.get('window'); import globalVariables from '../globalVariables.js'; const DoneFooter = React.cre...
src/Fade.js
brynjagr/react-bootstrap
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; class Fade extends React.Component { render() { let timeout = this.props.timeout || this.props.duration; retu...
packages/mineral-ui-icons/src/IconFolderShared.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 IconFolderShared(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
docs/src/app/components/pages/components/Menu/ExampleDisable.js
w01fgang/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; const style = { display: 'inline-block', margin: '16px 32px 16px 0', }; const MenuExampleDisable = () => ( <div> <Pap...
src/components/Root.js
kmcarter/karaoke-song-lister
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ConnectedRouter } from 'react-router-redux'; import { Provider } from 'react-redux'; import App from './App'; export default class Root extends Component { render() { const { store, history } = this.props; return ( <...
src/scripts/NavBar.js
lixmal/keepass4web
import React from 'react' import Timer from './Timer' window.$ = window.jQuery = require('jquery') var Bootstrap = require('bootstrap') export default class NavBar extends React.Component { constructor() { super() this.onLogout = this.onLogout.bind(this) this.onCloseDB = this.onCloseDB.bin...
src/js/containers/LoginContainer/LoginContainer.js
shane-arthur/react-redux-and-more-boilerplate
import React, { Component } from 'react'; // eslint-disable-line import/first import LoginPanel from '../../components/LoginPanel/LoginPanel'; export default class LoginContainer extends Component { render(){ return ( <div><LoginPanel /></div> ); } }
src/popup/components/PackEdit/Time.js
fluany/fluany
/** * @fileOverview A component to change interval of the package * @name Time.js * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' import InputRange from 'react-input-range' import { connect } from 'react-redux' import { changeTimePackage } from 'actions/pa...
src/routes/home/Home.js
bobbybeckner/ha-catalyst-test
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/components/LoadingIndicator.js
davendesai/twitchcast
import React, { Component } from 'react'; import { CircularProgress } from 'material-ui'; import '../styles/LoadingIndicator.css'; export default class LoadingIndicator extends Component { render() { return( <div id="twitchcast-loadingindicator"> {this.props.show ? <CircularProgress size={35} colo...