path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/UserAvatar.js
afonsobarros/reactnd-project-readable
import React, { Component } from 'react'; import { Avatar } from 'material-ui'; import themeDefault from '../theme-default'; class UserAvatar extends Component { render() { const { username, small } = this.props; let firstLetters = username.substring(0, 1).toUpperCase(); if (username.split(" ").length >...
src/components/MainIngredient.js
ataylorme/hazels-heritage-frontend
import React from 'react'; import axios from 'axios'; import Recipe from './Recipe'; import Config from '../Config'; import GoHomeButton from './GoHomeButton'; class MainIngredient extends React.Component { constructor() { super(); // Set initial state this.state = { data: {} ...
src/svg-icons/action/accessibility.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility = pure(ActionAccessib...
client/components/MultiplayerInfo.js
jordanallen98/nimblecode
import React, { Component } from 'react'; class MultiplayerInfo extends Component { constructor(props) { super(props); this.link = "http://nimblecode.io/#/multigame/" + this.props.gameId; } render() { return ( <div className="col-sm-12"> <h3 className="text-center no-top-margin">Multi...
src/svg-icons/image/camera-front.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....
src/components/App.js
lmammino/judo-heroes-2
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import { Layout } from './Layout'; import { IndexPage } from './IndexPage'; import { AthletePage } from './AthletePage'; import { NotFoundPage } from './NotFoundPage'; import athletes from '../data/athletes'; const renderIndex = () => <IndexP...
docs/src/BrowserRouter.js
seekinternational/seek-asia-style-guide
import React from 'react'; import { BrowserRouter } from 'react-router-dom'; import App from 'App/App'; export default () => ( <BrowserRouter basename={process.env.BASE_HREF}> <App /> </BrowserRouter> );
app/components/Header/index.js
pavel06081991/SPWorld
/** * * Header * */ import React from 'react'; import styles from './styles.css'; class Header extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <header className={styles.header}> <div className="container"> <div className="row"> ...
electron/renderer/src/components/Webviews.js
ConorIA/wire-desktop
/* * Wire * Copyright (C) 2017 Wire Swiss GmbH * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This progr...
src/js/components/icons/base/PlatformSkype.js
codeswan/grommet
import React from 'react'; import SocialSkype from './SocialSkype'; export default (props) => { console.warn( 'PlatformSkype has been renamed to SocialSkype.' + ' Plese update your import statement.' ); return <SocialSkype {...props} />; };
src/js/components/blog/articlepaging.js
axuebin/react-blog
import React from 'react'; import PropTypes from 'prop-types'; import { Pagination } from 'antd'; export default class ArticlePaging extends React.Component { constructor() { super(); this.onChangePage = this.onChangePage.bind(this); } onChangePage(pageNumber) { this.props.handlePageChange(pageNumbe...
public/src/user/Profile.js
thomasjosephgreco/rejection
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router' import UserInfo from './UserInfo'; import IterateQuestions from '../questions/components/IterateQuestions'; import * as Selectors from '../questions/state/selectors'; class Profile extends Component { ...
src/js/app.js
heymexa/react-test
import React from 'react'; import ReactDOM from 'react-dom'; import App from './Components/App'; let data = [ ['A', 'B', 'C'], ['1', '2', '3'], ['X', 'Y', 'Z'] ]; ReactDOM.render( <App data={data} />, document.getElementById('app') );
example/react-native-camera-roll-picker/camera-roll-picker.js
jnuine/react-native-photos-framework
import React, { Component } from 'react'; import { CameraRoll, Platform, StyleSheet, View, Text, ListView, ActivityIndicator } from 'react-native'; import ImageItem from './ImageItem'; import RNPhotosFramework from '../react-native-photos-framework'; var simple_timer = require('simple-timer') class Camer...
src/components/overview-table/overview-table.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { intlShape, FormattedMessage } from 'react-intl'; import Pluralize from 'pluralize'; import EmptyOverview from 'components/empty-overview'; import Header, { HeaderType } from 'primitives/text/header'; import...
public/js/components/admin/Cards.react.js
IsuruDilhan/Coupley
/** * Created by Isuru 1 on 21/01/2016. */ import React from 'react'; import { Link } from 'react-router'; import Tabs from './graphs/tab.react'; import CustomerGraph from './graphs/customers.react'; import PieGraph from './graphs/pieChartCustomers.react'; import GraphActions from './../../actions/admin/GraphActions'...
docs/src/app/components/pages/components/IconMenu/ExampleNested.js
pomerantsev/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import Divider from 'material-ui/Divider'; import Download from 'material-ui/svg-icons/file/file-download'; import ArrowDropRight from 'material-ui/svg-ic...
src/ModalFooter.js
JimiHFord/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalFooter extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalFooter....
app/packs/src/components/generic/FieldSelect.js
ComPlat/chemotion_ELN
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import PropTypes from 'prop-types'; import GridSelect from './GridSelect'; const FieldSelect = (props) => { const { allLayers, selField, types, node, tableText } = props; const allFileds = ((allLayers.find(e => e.key === node.data.layer) || {}...
node_modules/react-bootstrap/es/Jumbotron.js
skinsshark/skinsshark.github.io
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 ...
src/parser/priest/shadow/modules/spells/VampiricTouch.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import SmallStatisticBo...
src/store/provider.js
growcss/docs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Provider } from './createContext'; // The provider, which holds the page-wide store and its actions. // Feel free to abstract actions and state away from this file. class AppProvider extends Component { state = { open: false, ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js
christiantinauer/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() { return [[1, '1'], [2, '2'], [3, '3'],...
src/routes/User/Register.js
ascrutae/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
packages/slate-react/src/components/default-placeholder.js
6174/slate
import React from 'react' import SlateTypes from 'slate-prop-types' import Types from 'prop-types' /** * Default placeholder. * * @type {Component} */ class DefaultPlaceholder extends React.Component { /** * Property types. * * @type {Object} */ static propTypes = { editor: Types.object.isR...
analysis/paladinprotection/src/modules/features/WordOfGloryTiming.js
anom0ly/WoWAnalyzer
import SPELLS from 'common/SPELLS'; import SelfHealTimingGraph from 'parser/shared/modules/features/SelfHealTimingGraph'; import React from 'react'; class WordOfGloryTiming extends SelfHealTimingGraph { constructor(...args) { super(...args); this.selfHealSpell = SPELLS.WORD_OF_GLORY; this.tabTitle = 'Sel...
src/components/CurrentWeather/index.js
Junicus/fcc-localweather
import React from 'react'; import './currentweather.css'; export function CurrentWeather(props) { const { temp, city, summary, apparentTemp } = props; return ( <div className="currentweather"> <div className="currentweather-weather-container"> <div className="currentweather...
src/components/date-picker/index.js
summerstream/react-practise
import React, { Component } from 'react'; import styles from './styles.js'; import Mask from '../mask/index' import DateUtil from '../../util/date.js'; import DatePickerCore from './core.js'; class DatePicker extends Component{ constructor(props){ super(props); this.state={ hidden:th...
src/App.js
sansetty2510/bootStrap
import React from 'react'; import { Button, ButtonToolbar, Modal } from 'react-bootstrap'; import Child from './ChildPopUp'; import ButtonGroups from './ButtonGroups'; import MultiSelect from './MultiSelect'; import StatusMenuBar from './StatusMenuBar'; import BootStrapSwitch from './BootStrapSwitch'; import style f...
docs/src/app/components/pages/components/Menu/ExampleSimple.js
ichiohta/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; const style = { display: 'inline-block', margin: '16px 32px 16px 0', }; const MenuExampleSimple = () => ( <div> <Paper style={style}> <Menu> <Menu...
src/components/app.js
priyankasarma/ReduxPart2SimpleStarter
import React, { Component } from 'react'; import BookList from './../containers/book-list'; import BookDetail from './../containers/book-detail'; export default class App extends Component { render() { return ( <div> <BookList /> <BookDetail /> </div> ); } }
example/Example.js
ClearScholar/react-native-htmlview
import React from 'react'; import {StyleSheet, View, Text, ScrollView} from 'react-native'; import HTMLView from '../'; function renderNode(node, index) { if (node.name == 'iframe') { return ( <View key={index} style={{width: 200, height: 200}}> <Text> {node.attribs.src} </Text> ...
higher-demo/dva-antd/todo-list/src/router.js
CFshuming/react-demo-gather
import React from 'react'; import { Router, Route } from 'dva/router'; import IndexPage from './routes/IndexPage'; import List from './routes/List.js'; function RouterConfig({ history }) { return ( <Router history={history}> <Route path="/" component={IndexPage} /> <Route path="/list" component={Lis...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
olhakhomyak/cvMaker
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
app/javascript/mastodon/features/notifications/components/notification.js
esetomo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { FormattedMessage } from 'react-intl'; import Perma...
src/main/js/builder/views/components/SponsorAssetsForm.js
Bernardo-MG/dreadball-toolkit-webpage
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import Columns from 'grommet/components/Columns'; import FormField from 'grommet/components/FormField'; import CheerleadersInput from 'builder/assets/containers/CheerleadersInput'; import CoachingDiceInput from '...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/settings.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSettings = (props) => ( <SvgIcon {...props}> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2...
app/javascript/mastodon/features/account_timeline/index.js
masarakki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines'; import ...
node_modules/react-bootstrap/src/SplitButton.js
gitoneman/react-home
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import DropdownStateMixin from './DropdownStateMixin'; import Button from './Button'; import ButtonGroup from './ButtonGroup'; import DropdownMenu from './DropdownMenu'; const SplitButton = React.createClass({ ...
src/Input.js
deerawan/react-bootstrap
import React from 'react'; import InputBase from './InputBase'; import * as FormControls from './FormControls'; import deprecationWarning from './utils/deprecationWarning'; class Input extends InputBase { render() { if (this.props.type === 'static') { deprecationWarning('Input type=static', 'StaticText'); ...
packages/wix-style-react/src/Grid/docs/ExampleTwoHalfWidthRows.js
wix/wix-style-react
import React from 'react'; import { Container, Row, Col, Card, Box } from 'wix-style-react'; export default () => ( <Container> <Row> <Col span={6}> <Card showShadow> <Card.Header title="Card Title" /> <Card.Content> <Box height="100px" /> </Card.Content> ...
app/javascript/packs/app.js
tamouse/r5api-react-starter
import React from 'react' import {render} from 'react-dom' import Main from './app/' const App = () => (<div><Main /></div>) document.addEventListener('DOMContentLoaded', () => (render(<App/>, document.body.appendChild(document.createElement('div')))))
app/javascript/mastodon/features/lists/index.js
lynlynlynx/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compo...
templates/webapp/client/scripts/router.js
pwlmaciejewski/slush-fragphace-webapp
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import App from './containers/App.jsx'; export default function router(store) { return ( <Route path="/" component={ App }> </Route> ); }
src/neuralNetwork/networkModals/DigitModal.js
csenn/nn-visualizer
import _ from 'lodash'; import React from 'react'; import Dialog from 'material-ui/lib/dialog'; import RaisedButton from 'material-ui/lib/raised-button'; import { connect } from 'react-redux'; import { setDigitModal } from '../data/neuralNetworkActions'; import DigitModalChart from './DigitModalChart'; class LayerModa...
app/containers/FeaturePage/index.js
jwarning/react-ci-test
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
src/svg-icons/hardware/gamepad.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareGamepad = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); HardwareGamepad = pure(Hardw...
src/js/components/icons/base/FormUpload.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/js/components/navigation/right-menu.js
v3rt1go/jsse-client
'use strict'; import React from 'react'; import LanguageNavItem from './language-nav-item'; import UserNavItem from './user-nav-item'; import CartNavItem from './cart-nav-item'; const LeftMenu = () => { return ( <div className="right menu"> <LanguageNavItem /> <UserNavItem /> <CartNavItem /> ...
src/mSupplyMobileApp.js
sussol/mobile
/* eslint-disable react/forbid-prop-types */ /* eslint-disable no-undef */ /** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import React from 'react'; import PropTypes from 'prop-types'; import DeviceInfo from 'react-native-device-info'; import { connect } from 'react-redux'; import { BluetoothStatus ...
app/containers/UGTourPage/AttendantImportPopover.js
perry-ugroop/ugroop-react-dup2
/** * Created by yunzhou on 26/11/2016. */ import React from 'react'; import A from 'components/A'; import { OverlayTrigger, Popover } from 'react-bootstrap'; import messages from './messages'; function AttendantImportpopover(props) { const tourId = props.tourId; const attendType = props.attendType; let title ...
modules/gui/src/app/home/body/process/recipe/opticalMosaic/sceneAreaMarker.js
openforis/sepal
import {MapObject} from 'app/home/map/mapLayer' import {RecipeActions} from 'app/home/body/process/recipe/opticalMosaic/opticalMosaicRecipe' import {compose} from 'compose' import PropTypes from 'prop-types' import React from 'react' import styles from './sceneAreasLayer.module.css' class _SceneAreaMarker extends Reac...
src/routes/app/routes/xdashboard/components/AquisitionChart.js
ahthamrin/kbri-admin2
import React from 'react'; import ReactEcharts from 'components/ReactECharts'; import CHARTCONFIG from 'constants/ChartConfig'; const data = [{ value: 350, name: 'Display', }, { value: 560, name: 'Social' }, { value: 980, name: 'Direct' }, { value: 760, name: 'Search' }, { value: 320, name: 'Referr...
src/views/ContractBusiness/Payment/PaymentDetails.js
bruceli1986/contract-react
import React from 'react' import PageHeader from 'components/PageHeader' import PaymentBasicInfo from 'components/PaymentBasicInfo' import PaymentDetailsInfo from 'components/PaymentDetails' import FileListTable from 'components/FileListTable' import TaskHistory from 'components/TaskHistory' import WithdrawButton from ...
src/client/react/user/views/Challenge/ResponsePhrase.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import autobind from 'core-decorators/es/autobind'; import { connect } from 'react-redux'; import { graphql } from 'react-apollo'; import { Button, Dialog } from '@blueprintjs/core'; import FormInput from '../../../../../../lib/react/components/forms/FormIn...
src/Components/Header/Menu/index.js
AdamSoucie/Ignis
import React from 'react'; import MenuItem from './MenuItem'; import './style.css'; class Menu extends React.Component { render() { return( <nav className="menu-container"> <ul className="menu"> <MenuItem text="About" link="/about" /> <MenuItem text="Blog" link="/blog" /> <MenuItem text="Con...
src/app/components/TestCardNumber.js
blobor/buka
import React from 'react' import { IconMenu, MenuItem, IconButton } from 'material-ui' import { NavigationMoreVert } from 'material-ui/svg-icons' const TEST_CARD_NUMBERS = [ '01-2167-30-92545', '26-2167-19-35623', '29-2167-26-31433' ] const renredCardNumbers = () => { return TEST_CARD_NUMBERS .map((number...
examples/todomvc/index.js
dsimmons/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import 'todomvc-app-css/index.css'; React.render( <Root />, document.getElementById('root') );
docs/src/app/components/pages/components/Slider/ExampleAxis.js
w01fgang/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; const styles = { root: { display: 'flex', height: 124, flexDirection: 'row', justifyContent: 'space-around', }, }; /** * The orientation of the slider can be reversed and rotated using the `axis` prop. */ const SliderExampleAxis...
amp-stories/src/component/view/MediaComponentsStoryView/pages/StoryPage5.js
ampproject/samples
import React from 'react'; import styled from 'styled-components'; import AmpStoryPage from '/component/amp/AmpStoryPage'; import AmpImage from '/component/amp/AmpImage'; import {TextHighlightBanner} from '../shared'; import {BannerWrapper} from '/component/base/TextHighlight'; const PhotoPileWrapper = styled.div` ...
admin/client/App/shared/Popout/PopoutPane.js
trentmillar/keystone
/** * Render a popout pane, calls props.onLayout when the component mounts */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: Re...
apps/mk-app-home/apps/mk-app-home-shortcuts/action.js
ziaochina/mk-demo
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' import funImg from './img/photo.png' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current } onInit = ({ component, injec...
src/components/Loading/Loading.js
markwylde/react-demo
import React from 'react'; const Loading = () => <div className="container text-center loading"> <i className="fa fa-spinner fa-spin"></i> Loading... </div>; Loading.displayName = 'Loading'; module.exports = Loading;
client/modules/Post/__tests__/components/PostListItem.spec.js
thanhdatvo/tuoihoctro.react
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/Post/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', c...
pages/home/index.js
lifeiscontent/OpenPoGoUI
import React from 'react'; import io from 'socket.io-client'; import Map from '../../components/Map'; import { ConfigModal, PokemonModal } from '../../components/Modal'; import './style.css'; let noop = () => { console.log('no op'); }; class HomePage extends React.Component { constructor(props) { super(props)...
src/parser/shaman/restoration/modules/talents/AncestralVigor.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import fetchWcl from 'common/fetchWclApi'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Icon from 'common/Icon'; import { formatDuration, formatPercentage } from 'common/format'; import SPECS from 'game/SPECS';...
examples/basic/src/App.js
azuqua/react-dnd-scrollzone
import React, { Component } from 'react'; import HTML5Backend from 'react-dnd-html5-backend'; import { DragDropContextProvider } from 'react-dnd'; import withScrolling from 'react-dnd-scrollzone'; import DragItem from './DragItem'; import './App.css'; const ScrollingComponent = withScrolling('div'); const ITEMS = [1,...
app/javascript/mastodon/features/list_adder/index.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListAdder, resetListAdder } from '...
wail-ui/loadingScreens/notFirstTime/notFirstLoad.js
N0taN3rd/wail
import 'babel-polyfill' import 'react-flex/index.css' import '../../css/wail.css' import React from 'react' import { render } from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import NotFirstTime from './containers/notFirstTime' import configureStore from '../store/notFirstTime' window.React =...
src/higherOrders/Pagination.js
Lobos/react-ui
import React from 'react' import { objectAssign } from '../utils/objects' import PropTypes from '../utils/proptypes' import PureRender from '../mixins/PureRender' export default function (Component) { class Pagination extends React.Component { constructor (props) { super(props) this.state = { page: ...
src/FAB/NewTaskDialog.js
mkermani144/wanna
import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import DatePicker from 'material-ui/DatePicker'; import TextField from 'material-ui/TextField'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuI...
src/bundles/SellerRegistration/components/DisclosuresForm/DisclosuresForm.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react'; import PropTypes from 'prop-types' import {connect} from 'react-redux'; import { Form } from 'react-redux-form'; import { required } from '../../../../validators'; import Layout from '../../../../shared/Layout'; import BaseForm from '../../../../shared/form/BaseForm'; import Submi...
src/table/TableGroup.js
HarvestProfit/harvest-profit-ui
import React from 'react'; import PropTypes from 'prop-types'; /** * Renders a table group used in condensing tables down to smaller screens. */ const TableGroup = (props) => { const classList = ['group', `group-${props.group}`, props.className, props.align, props.size, `grp-${props.condensedSize}`]; return ( ...
src/entypo/Dribbble.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Dribbble'; let EntypoDribbble = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M9.565,7.421C8.207,5.007,6.754,3.038,6.648,2.893C4.457,3.929,2.822,5.948,2.311,8.38C2.517,8.384,5...
webapp/app/components/Save/Table/index.js
EIP-SAM/SAM-Solution-Node-js
// // Table page save // import React from 'react'; import { Table } from 'react-bootstrap'; import SaveInstantSaveModal from 'containers/Save/Table/ModalInstantSave'; import SaveInstantRestoreModal from 'containers/Save/Table/ModalInstantRestore'; import ButtonPopover from 'components/ButtonPopover'; import Tr from '...
src/svg-icons/editor/format-underlined.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatUnderlined = (props) => ( <SvgIcon {...props}> <path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/> </SvgIcon> ); EditorF...
src/App.js
henriqueadonai/flux
import React, { Component } from 'react'; import logo from './logo.svg'; import TopicsScreen from './containers/TopicsScreen'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <TopicsScreen /> <div className="App-header"> <img src={logo} cl...
src/svg-icons/action/swap-vertical-circle.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVerticalCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"/> ...
lib/components/Uploader.js
Ribeiro/filepizza
import Arrow from '@app/components/Arrow'; import React from 'react'; import UploadActions from '@app/actions/UploadActions'; export default class UploadPage extends React.Component { uploadFile(file) { UploadActions.uploadFile(file); } render() { switch (this.props.status) { case 'ready': ...
InstitutionalApp/index.ios.js
michelmarcondes/ReactNativeStudies
import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import App from './app'; export default class InstitutionalApp extends Component { render() { return ( <App /> ); } } AppRegistry.registerComponent('InstitutionalApp', () => InstitutionalApp);
src/js/components/icons/base/LocationPin.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...
ui/app/components/PfIcon/index.js
StamusNetworks/scirius
/** * * PfIcon * */ import React from 'react'; import PropTypes from 'prop-types'; // import styled from 'styled-components'; import './style.css'; export const PfIcon = ({ type, style }) => <i className={`pficon-${type}`} style={style} />; PfIcon.defaultProps = { style: {}, }; PfIcon.propTypes = { style: Pr...
src/components/Collection/Entries/EntriesCollection.js
Aloomaio/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { loadEntries as actionLoadEntries } from 'Actions/entries'; import { selectEntries } from 'Reducers'; import Entries from './Entries'; class EntriesC...
app/javascript/mastodon/components/status.js
esetomo/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 RelativeTimestamp from './relative_timestamp'; import DisplayName from './display_name'; import StatusContent fro...
examples/basic/src/index.js
tannerlinsley/react-table
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
web/src/components/Loading.js
slice/dogbot
import React from 'react' import styled, { keyframes } from 'styled-components' const loadingAnimation = keyframes` 0% { transform: scale(1); } 50% { transform: scale(0.5); } 100% { transform: scale(1); } ` export const Pulser = styled.div` display: inline-block; width: 2rem; height: 2r...
client/app/components/ContentEditor/customPlugins/link-plugin/Link.js
bryanph/Geist
import React from 'react'; import { Entity } from 'draft-js'; const Link = (props) => { const { href } = props.contentState.getEntity(props.entityKey).getData(); return ( <a href={href} target="_blank"> {props.children} </a> ); }; export default Link;
resources/assets/javascript/components/calendarAddBox.js
colinjeanne/garden
import React from 'react'; import SelectBox from './selectBox'; export default class CalendarAddBox extends React.Component { static get propTypes() { return { onAdd: React.PropTypes.func.isRequired, plantNames: React.PropTypes.arrayOf( React.PropTypes.string).isRequ...
jsx/todo_list_redux/src/components/Footer.js
NickTaporuk/webpack_starterkit_project
import React from 'react' import FilterLink from '../containers/FilterLink' const Footer = () => ( <p> Show: {" "} <FilterLink filter="SHOW_ALL"> All </FilterLink> {", "} <FilterLink filter="SHOW_ACTIVE"> Active </FilterLink> {...
src/components/icons/TagsIcon.js
austinknight/ui-components
import React from 'react'; import PropTypes from 'prop-types'; import { generateFillFromProps } from '../styles/colors.js'; const TagsIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} {...props.color || {...generateFillFromProps(props, '#FFFFFF')}} viewBox="0 0 24 24" xmlns="htt...
src/containers/Equate/Equate.js
sadafk831/React-Native-Simple-Calculator
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import store from '../../redux/store'; import { equate } from '../../redux/modules/calculator'; import NormalButton from '../../components/NormalButton/NormalButton'; export default class Equate ext...
example/src/pages/Lens.js
ethanselzer/react-image-magnify
import React, { Component } from 'react'; import { Col, Grid, Jumbotron, Row } from 'react-bootstrap'; import Helmet from 'react-helmet'; import Header from '../components/Header'; import Lens from '../components/Lens'; import 'bootstrap/dist/css/bootstrap.css'; import '../styles/app.css'; export default cla...
src/containers/Login/container/WeChatLoginTransition.js
MeetDay/dreampark-web
import React from 'react' import { asyncConnect } from 'redux-async-connect' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { push } from 'react-router-redux' import * as Constant from '../../../utils/constant' import { jumpToWeChatAuthorizationUrl } from '../../../utils/wechat'...
react/Apps/todolist-app/src/components/app.js
rcapde/reactjs-Apps
import React, { Component } from 'react'; import TodoList from './todolist'; export default class App extends Component { render() { return ( <TodoList /> ); } }
node_modules/@exponent/ex-navigation/src/ExNavigationConnect.js
Helena-High/school-app
/** * @flow */ import React from 'react'; import { connect } from 'react-redux'; import storeShape from 'react-redux/lib/utils/storeShape'; import hoistStatics from 'hoist-non-react-statics'; import invariant from 'invariant'; function getDisplayName(WrappedComponent: ReactClass<*>) { return WrappedComponent.disp...
packages/react-ui-components/src/Headline/index.story.js
grebaldi/PackageFactory.Guevara
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withKnobs, select} from '@storybook/addon-knobs'; import {StoryWrapper} from './../_lib/storyUtils'; import Headline from '.'; storiesOf('Headline', module) .addDecorator(withKnobs) .addWithInfo( 'default', () => { ...
packages/es-components/src/components/controls/DismissButton.js
TWExchangeSolutions/es-components
import React from 'react'; import styled from 'styled-components'; import screenReaderOnly from '../patterns/screenReaderOnly/screenReaderOnly'; import Icon from '../base/icons/Icon'; const DismissButtonBase = styled.button` background-color: transparent; border: 0; cursor: pointer; display: flex; font-weigh...
src/components/common/svg-icons/notification/confirmation-number.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationConfirmationNumber = (props) => ( <SvgIcon {...props}> <path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2...
src/app/containers/app.js
skratchdot/ble-midi
import React, { Component } from 'react'; import { blueA400, blueA700 } from 'material-ui/styles/colors'; import Footer from '../components/footer'; import Header from '../components/header'; import Main from '../components/main'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import NoBluetoothSup...
public/src/games/lobby/lobby.container.js
MaciejSzaflik/CharadesAndStuff
import React from 'react'; import {Table, TableBody, TableFooter, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import TextField from 'material-ui/TextField'; import Toggle from 'material-ui/Toggle'; import RaisedButton from 'material-ui/RaisedButton'; const WEBSOCKET_URL = "ws://...