path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
examples/tms/app.js
bartvde/sdk
/** TMS SDK application example. * */ import {createStore, combineReducers, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import SdkZoomControl from '@boundlessgeo/sdk/components/map/zoom...
src/index.dev.js
DeepBlueCLtd/lesco
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import {Provider} from 'react-redux'; import {syncHistoryWithStore} from 'react-router-redux'; import {browserHistory} from 'react-router'; import initialState from './reducers/ini...
ui/star_wars/src/Ship.js
iporaitech/pwr2-docker
import React from 'react'; import Relay from 'react-relay'; class StarWarsShip extends React.Component { render() { const {ship} = this.props; return <div>{ship.name}</div>; } } export default Relay.createContainer(StarWarsShip, { fragments: { ship: () => Relay.QL` fragment on Ship { i...
examples/js/custom/delete-button/fully-custom-delete-button.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { con...
client/modules/App/components/DevTools.js
lordknight1904/bigvnadmin
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 /> ...
example/examples/CustomOverlay.js
amitv87/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; import XMarksTheSpot from './CustomOverlayXMarksTheSpot'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LO...
fields/types/text/TextColumn.js
geminiyellow/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var TextColumn = React.createClass({ displayName: 'TextColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object...
app/containers/Assessments/Assessments.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import isEmpty from 'lodash.isempty'; import { AssessmentTable } from '../../components/Assessments'; import { getAssessments, openDeactivateAssessmentsModal, deactivateAssessments, openDeleteAs...
client/components/surveys/results/ResultsPage.js
AnatolyBelobrovik/itechartlabs
import React from 'react'; import PropTypes from 'prop-types'; import ResultsSummary from './summary/ResultsSummary'; import ResultsIndividual from './individual/ResultsIndividual'; import classnames from 'classnames'; const ResultsPage = ({ id, currentPage, showSummary, answers, totalAnswers, questions, hasMandatoryL...
src/components/RadioInput.js
andresilveira/stendebach_pillows
import React from 'react'; import Input from './Input'; import '../bootstrap.min.css' const RadioInput = ({ label, ...inputProps}) => ( <div className="form-check"> <label className="form-check-label"> <Input className="form-check-input" type="radio" {...inputProps} /> { label || inputProps.value } </...
src/svg-icons/editor/vertical-align-bottom.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignBottom = (props) => ( <SvgIcon {...props}> <path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom); EditorVertical...
src/components/app.js
abramin/reduxStarter
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div className='foo'>React simple starter</div> ); } }
addons/docs/src/frameworks/react/__testfixtures__/8428-js-static-prop-types/input.js
kadirahq/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; // eslint-disable-next-line react/prefer-stateless-function export default class Test extends React.Component { static propTypes = { /** * Please work... */ test: PropTypes.string, }; render() { return <div>test</div>; } } e...
packages/wix-style-react/src/TableToolbar/TableToolbar.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { Toolbar, ItemGroup, Item, Label, Divider } from './Toolbar'; import Heading from '../Heading'; import Text from '../Text'; export const Title = props => { const { dataHook } = props; return ( <Heading dataHook={dataHook} appearance="H3"> ...
src/svg-icons/content/create.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentCreate = (props) => ( <SvgIcon {...props}> <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/...
src/components/topic/summary/export/DownloadMapFilesContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import withFilteredAsyncData from '../../FilteredAsyncDataContainer'; import { fetchTopicMapFiles } from '../../../../actions/topicActions'; import DownloadMapFiles from './DownloadMapFiles'; const DownloadMapFilesCon...
ui/src/components/RollupRuleEditor.js
m3db/m3ctl
// Copyright (c) 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, merge...
src/components/multiple.js
cyranosky/rrtimes_hlj
import React from 'react' import PropTypes from 'prop-types' const multiple = ({onAChange, onBChange, a, b, c}) => ( <div> <input onChange={onAChange} value={a} /> * <input onChange={onBChange} value={b} /> = <input value={c} /> </div> ) export default multiple
packages/cf-component-form/test/FormLabel.js
mdno/mdno.github.io
import React from 'react'; import { FormLabel } from '../src/index'; import { felaSnapshot } from 'cf-style-provider'; test('should render', () => { const snapshot = felaSnapshot(<FormLabel>FormLabel</FormLabel>); expect(snapshot.component).toMatchSnapshot(); expect(snapshot.styles).toMatchSnapshot(); }); test(...
src/routes/chart/Container.js
shaohuawang2015/goldbeans-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './Container.less' import { ResponsiveContainer } from 'recharts' const Container = ({ children, ratio = 5 / 2, minHeight = 250, maxHeight = 350 }) => <div className={styles.container} style={{ minHeight, maxHeight }}> <div style={{ marg...
webapp/src/Congratulation.js
gocaine/go-dart
import React from 'react'; const Congratulation = ({game, player}) => { if (game.Ongoing == 4) { return ( <div className="card horizontal"> <div className="card-stacked"> <div className="card-content"> Congratulations {player.Name} ...
web/static/js/components/mainform.js
ottolin/txportal
import React from 'react'; import {connect} from 'react-redux'; import {mainformTabSelected} from '../actions/mainform'; // UI import Navbar from 'react-bootstrap/lib/Navbar'; import NavItem from 'react-bootstrap/lib/NavItem'; import NavDropdown from 'react-bootstrap/lib/NavDropdown'; import Nav from 'react-bootstrap/...
node_modules/react-router/es/MemoryRouter.js
amiechen/amiechen.github.io
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/Header/Header.js
aTseniklidou/Randix-Game
import React from 'react'; import { IndexLink, Link } from 'react-router'; import classes from './Header.scss'; import Soundtrack from 'components/Game/assets/Wallpaper.mp3'; import { styles } from './Styles'; import VolumeOn from 'material-ui/svg-icons/AV/volume-up'; import VolumeOff from 'material-ui/svg-icons/AV/vol...
index.ios.js
vinicius-ov/Livefy
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TextInput, ListView, Button, ActivityIndicator, Image, TouchableHighlight, Alert } from 'react-native'; export default class Livefy...
src/components/detail/index.js
lopesdasilva/trakt-it
/* Components */ import React, { Component } from 'react'; import { Container, Header, Title, Content, Card, CardItem, Icon, Button } from 'native-base'; import ReactNative, { StyleSheet, View, Text, ListView, Image } from 'react-native'; var ResponsiveImage = require('react-native-responsive-imag...
front_end/front_end_app/src/server/frontend/render.js
Horizon-Framework/horizon
import DocumentTitle from 'react-document-title'; import Html from './html.react'; import Promise from 'bluebird'; import React from 'react'; import Router from 'react-router'; import config from '../config'; import immutable from 'immutable'; import initialState from '../initialstate'; import routes from '../../client...
sms_sponsorship/webapp/src/components/ChildDetails.js
ecino/compassion-modules
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import ListItem from '@material-ui/core/ListItem'; import ChildDescription from './ChildDescription'; import Collapse from '@material-ui/core/Collapse'; import ExpandLess from '@material-ui/icons/Expand...
imports/ui/layouts/App.js
KyneSilverhide/expense-manager
import React from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import createPalette from 'material-ui/styles/palette'; import createMuiTheme from 'material-ui/styles/theme'; import { green, brown, red } from 'material-ui/styles/c...
src/utils/index.js
brancusi/lingo-client-react
import React from 'react'; import ReactDOM from 'react-dom'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createConstants (...constants) { return constants.reduce((acc, constant) => { acc[constant] = constant; return acc; }, {}); } export function createRedu...
react-release/dominion-js/src/index.js
ExplosiveHippo/Dominion.js
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
src/svg-icons/action/accessibility.js
rscnt/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...
test/WellSpec.js
xsistens/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Well from '../src/Well'; describe('Well', function () { it('Should output a well with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Well> <strong>Content</strong> </Well> ...
front_end/front_end_app/src/client/lib/validation.js
Horizon-Framework/horizon
/* Simple serial sync/async chriso/validator.js validation wrapper with promises. */ import Promise from 'bluebird'; import React from 'react'; import validator from 'validator'; export class ValidationError extends Error { constructor(message, prop) { super(); this.message = message; this.prop = prop;...
src/pages/tree/Searchtree/Searchtree.js
hyy1115/react-redux-webpack2
import React from 'react' class Searchtree extends React.Component { render() { return ( <div>Searchtree</div> ) } } export default Searchtree
src/icons/font/AttachmentIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * Attachment button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const AttachmentIcon = (props, context) => { let t...
app/javascript/mastodon/components/column.js
alarky/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import scrollTop from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, }; scrollTop () { const scrollable = this.node.querySelector('.scrollable'); if (!scrollable) {...
src/svg-icons/notification/sync-problem.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z...
app/javascript/mastodon/components/status_action_bar.js
ambition-vietnam/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenuContainer from '../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureCompo...
frontend/component/CommentEditor.js
plusse7en/practice-node-project
import React from 'react'; import jQuery from 'jquery'; import {addTopic} from '../lib/client'; import {redirectURL} from '../lib/utils'; import MarkdownEditor from './MarkdownEditor'; export default class CommentEditor extends React.Component { constructor(props) { super(props); this.state = props.comment ...
src/hooks/useReduxContext.js
rackt/react-redux
import { useContext } from 'react' import { ReactReduxContext } from '../components/Context' /** * A hook to access the value of the `ReactReduxContext`. This is a low-level * hook that you should usually not need to call directly. * * @returns {any} the value of the `ReactReduxContext` * * @example * * import...
src/svg-icons/action/power-settings-new.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPowerSettingsNew = (props) => ( <SvgIcon {...props}> <path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 ...
app/javascript/flavours/glitch/features/report/thanks.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import Button from 'flavours/glitch/components/button'; import { connect } from 'react-redux'; import { unfollowAccount, muteAccount, blockAccou...
app/jsx/components/ICRadioButton.js
sfu/canvas_spaces
import React from 'react'; import PropTypes from 'prop-types'; const ICRadioButton = props => ( <div className="ic-Radio"> <input id={props.id} type="radio" name={props.name} value={props.value} checked={props.checked} onChange={props.onChange} /> <label htmlFor={props...
src/index.js
surce2010/react-webpack-gallery
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/js/components/Heading/stories/Color.js
HewlettPackard/grommet
import React from 'react'; import { Heading } from 'grommet'; export const Color = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Heading color="accent-1">Colored Heading</Heading> // </Grommet> ); export default { title: 'Type/Heading/Color', };
examples/column-ordering/src/App.js
tannerlinsley/react-table
import React from 'react' import styled from 'styled-components' import { useTable, useColumnOrder } from 'react-table' import makeData from './makeData' const Styles = styled.div` padding: 1rem; table { border-spacing: 0; border: 1px solid black; tr { :last-child { td { bord...
app/components/Window.js
josser/pickler
import React, { Component } from 'react'; import photon from "photon/sass/photon.scss"; export default class Window extends Component { render () { return ( <div className="window"> {this.props.children} </div> ) } }
client/src/components/ListOfProjects/ListOfProjects.js
karthijey/calltocode.org
import React from 'react' import PropTypes from 'prop-types' import styles from './ListOfProjects.css' import projects from '../../data/projects.json' import emailApiClient from '../../api/email' import { connect } from 'react-redux' function ListOfProjects (props) { const liClassName = props.loggedIn ? styles.lis...
test/H3.js
BinaryThumb/react-email-blueprints
import React from 'react'; import { expect } from 'chai'; import { render, shallow } from 'enzyme'; import { H3, Textbox } from '../dist/react-email-blueprints.js'; describe('<H3 />', () => { it('is instantiable', () => { const wrapper = render(<H3 />); expect(wrapper).to.not.equal(null); }); it('has co...
docs/src/app/components/pages/get-started/Examples.js
rhaedes/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import examplesText from './examples.md'; const Examples = () => ( <div> <Title render={(previousTitle) => `Examples - ${previousTitle}`} /> <MarkdownElement text={examplesText} /> </...
react/gameday2/utils/layoutUtils.js
phil-lopreiato/the-blue-alliance
/* eslint-disable import/prefer-default-export */ import React from 'react' import SvgIcon from 'material-ui/SvgIcon' import { NUM_VIEWS_FOR_LAYOUT, LAYOUT_SVG_PATHS } from '../constants/LayoutConstants' // Convenience wrapper around NUM_VIEWS_FOR_LAYOUT that has bounds checking and // a sensible default. export funct...
node_modules/react-router/es6/Lifecycle.js
rakshitmidha/Weather_App_React
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
web/src/Home/Banner/Banner.js
ncpierson/soundoftext
import React, { Component } from 'react'; import { OutboundLink } from 'react-ga'; const NAME = 'HEARLING_REMINDER_20210419'; class Banner extends Component { constructor() { super(); const dismissedBanner = localStorage.getItem('dismissedBanner') || ''; const hasDismissed = dismissedBanner === NAME; ...
packages/react-example/src/index.js
ilkkahanninen/petiole
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-petiole'; import store from './store'; import App from './components/App'; import './index.css'; ReactDOM.render( ( <Provider store={store}> <App /> </Provider> ), document.getElementById('root') );
src/fields/picker/index.js
bietkul/react-native-form-builder
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { View, Text } from 'native-base'; import { Platform, Picker, TouchableOpacity } from 'react-native'; import Panel from '../../components/panel'; import styles from './../../styles'; const Item = Picker.Item; export default class Pick...
src/components/Team/FourButtons.react.js
madhavrathi/chat.susi.ai
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import IconButton from 'material-ui/IconButton'; import { CardActions } from 'material-ui/Card'; class FourButtons extends Component { render() { const flatButtonStyle = { minWidth: '25%', fontSize: '25...
ajax/libs/react-instantsearch/5.4.0/Connectors.js
joeyparrish/cdnjs
/*! React InstantSearch 5.4.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) ...
modules/__tests__/transitionTo-test.js
RobertKielty/react-router
import expect from 'expect'; import React from 'react'; import createHistory from 'history/lib/createHashHistory'; import resetHash from './resetHash'; import execSteps from './execSteps'; import Router from '../Router'; import Route from '../Route'; describe('transitionTo', function () { beforeEach(resetHash); v...
src/main.js
availabs/weather-enterprise
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import { Provider } from 'react-redux' import { browserHistory, Router } from 'react-router' // ======================================================== // Store Instantiation // ===================================...
gatsby-strapi-tutorial/cms/admin/admin/src/containers/AdminPage/index.js
strapi/strapi-examples
/* * AdminPage * * This is the first thing users see of our AdminPage, 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 neccessity for you then you can refactor it and remove ...
src/GoogleAddressInputWithLabel/GoogleAddressInputWithLabel.js
skyiea/wix-style-react
import React from 'react'; import {children, optional, once} from '../Composite'; import Label from '../Label'; import GoogleAddressInput from '../GoogleAddressInput'; import InputAreaWithLabelComposite from '../Composite/InputAreaWithLabelComposite/InputAreaWithLabelComposite'; const GoogleAddressInputWithLabel = ({....
webapp/app/components/ImageManagement/ListImage/index.js
EIP-SAM/SAM-Solution-Node-js
// // Image List main components // import React from 'react'; import { Table } from 'react-bootstrap'; import Tr from 'components/Tr'; import Th from 'components/Th'; import Td from 'components/Td'; import ButtonPopover from 'components/ButtonPopover'; import styles from './styles.css'; const columns = ['#', 'Name'...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/LifecycleMethodsNone.js
jamesgpearce/flow
// @flow import React from 'react'; class MyComponent1 extends React.Component { componentWillReceiveProps() {} } class MyComponent2 extends React.Component { shouldComponentUpdate() {} } class MyComponent3 extends React.Component { componentWillUpdate() {} } class MyComponent4 extends React.Component { co...
src/Footer.js
myflwq/big-demo
import React from 'react'; class Footer extends React.Component { getStyles() { return { footer: { padding: '30px 0', color: '#fff', backgroundColor: '#212121', textAlign:'center', lineHeight:'200px', fontSize: '30px' }, img: { display: 'bl...
__tests__/components/fields/object.js
zapier/formatic
/*global describe, it, beforeEach, expect*/ 'use strict'; import React from 'react'; import TestUtils from 'react-dom/test-utils'; import ReactDOM from 'react-dom'; import Formatic from '@/src/formatic'; import ObjectClass from '@/src/components/fields/object'; import { renderFieldsToHtml } from '@/src/FormaticTestUti...
src/mobile/components/UsersDrawer/UserList.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import withProps from 'recompose/withProps'; import { translate } from 'react-i18next'; import List from '@material-ui/core/List'; import ListSubheader from '@material-ui/core/ListSubheader'; import Divider from '@material-ui/core/Divider'; import Button fr...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
BrandyMint/uvedomi-proto
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
app/components/Curtain/index.js
acebusters/ab-web
import React from 'react'; import styled from 'styled-components'; import { gray, curtainStickyWidth, curtainWidth, menuClose, } from '../../variables'; import { Logo } from '../Logo'; import Link from '../Link'; export const CurtainWrapper = styled.div` width: ${curtainWidth}; max-width: 100%; backgro...
app/components/ProgressBar/index.js
sasidharkanumuri/Lambda
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
newclient/scripts/components/admin/disclosure-filter-by-status/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/components/ChatApp/Settings/Settings.react.js
RMCoder198/chat.susi.ai
import './Settings.css'; import $ from 'jquery'; import RaisedButton from 'material-ui/RaisedButton'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; import PropTypes from 'prop-types'; import UserPreferencesStore from '../../../stores/UserPreferencesStore'; import User...
app/javascript/mastodon/features/ui/components/columns_area.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import TabsBa...
app/javascript/mastodon/features/status/components/action_bar.js
res-ac/mstdn.res.ac
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; i...
client/src/Camembert.js
iwazaru/all-stereotypes-are-wrong
import React from 'react'; import { Pie } from 'react-chartjs-2'; import './Camembert.css'; export default function Camembert({ counts, otherColor }) { const total = counts.reduce((total, current) => total + current, 0); const colors = counts.map((count) => count >= total / 2 ? '#46BFBD' : '#F7464A' ); i...
docs/app/Examples/elements/Loader/States/LoaderExampleIndeterminate.js
clemensw/stardust
import React from 'react' import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react' const LoaderExampleIndeterminate = () => ( <div> <Segment> <Dimmer active> <Loader indeterminate>Preparing Files</Loader> </Dimmer> <Image src='http://semantic-ui.com/images/wireframe/short-par...
src/components/Circle.js
gabergg/react-scene-graph
import React, { Component } from 'react'; export default class Circle extends Component { render() { return <circle {...this.props}>{this.props.children}</circle>; } }
lib/Navigation/Tabs/tabSix/views/TabSixNavigation.js
Ezeebube5/Nairasense
// React import React from 'react'; // Redux import { connect } from 'react-redux'; // Icon import Icon from 'react-native-vector-icons/FontAwesome'; // Navigation import { addNavigationHelpers } from 'react-navigation'; import { NavigatorTabSix } from '../navigationConfiguration'; class TabSixNavigation extends Reac...
app/components/IssueIcon/index.js
joegattnet/joegatt.net-client
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
src/components/ToggleSlider/ToggleSlider.js
austinknight/ui-components
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { colors, renderThemeKeyOrDefaultValue, renderThemeIfPresentOrDefault, ifThemeInPropsIsPresentUse } from '../styles'; const SliderBase = styled.label` cursor: ${props => props.disabled ? 'not-allowe...
node_modules/react-bootstrap/es/FormGroup.js
ivanhristov92/bookingCalendar
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 ...
example/examples/FitToCoordinates.js
carleryd/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, TouchableOpacity, Text, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
node_modules/rc-tabs/es/utils.js
prodigalyijun/demo-by-antd
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import React from 'react'; export function toArray(children) { // allow [c,[a,b]] var c = []; React.Children.forEach(children, function (child) { if (child) { c.push(child); } }); return c; } export function getActiveIndex(chi...
src/entypo/Baidu.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Baidu'; let EntypoBaidu = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M17.4116364,6.9370399c-0.3587151-0.2830696-0.923996-0.4004283-1.4627256-0.3652954c-0.4163361,0.0265503-...
src/components/DictList/Toolbar.js
GuramDuka/reorders
//------------------------------------------------------------------------------ import React from 'react'; import PropTypes from 'prop-types'; import * as Mui from 'material-ui'; import { Autorenew, Refresh, ViewList } from 'material-ui-icons'; import disp from '../../store'; //----------------------------------...
app/routes.js
danielstorch/PPS-Tool-Desk
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/index'; import AnleitungPage from './containers/anleitung'; import DownloadPage from './containers/download'; import KapazitaetsplanungPage from './containers/kapazitaetsp...
src/svg-icons/editor/drag-handle.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorDragHandle = (props) => ( <SvgIcon {...props}> <path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/> </SvgIcon> ); EditorDragHandle = pure(EditorDragHandle); EditorDragHandle.displayName = 'EditorDragHandle'; Edi...
source/components/groups/pages.js
phorque/ac2-frontend
import React from 'react'; import PureRenderMixin from 'components/pure-render-mixin'; import browserHistory from 'react-router/lib/browserHistory'; import PagesContainer from 'components/pages/pages-container'; import PageCreateForm from 'components/pages/page-create-form'; import Groups from 'components/groups/grou...
site/src/pages/404.js
LastCallMedia/Mannequin
import React from 'react' import Page from '../components/Page' import PageWrapper from '../components/PageWrapper' export default function NotFoundPage() { const menu = [{ to: '/', title: 'Home', below: [] }] return ( <Page title="Not Found" menu={menu}> <p>Oops! We couldn't find the page you were looki...
src/decorators/withViewport.js
keshavnandan/react-starter-kit
/*! 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 '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height:...
example/index.js
thedgbrt/react-native-masonry
/** * Masonry demo app * @flow */ import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Masonry from '../lib/Masonry'; const data = [ { text: "Hello" }, { text: "GoodBye" }, { text: "How are you doing today? I'm fine thank you" }, { text: "Who's a good boy?" } ]; let lot...
src/components/suggest/box.js
Erliz/DS61-food-searcher
import React from 'react'; import $ from 'jquery'; import Code from '../input/code'; import Title from '../input/title'; import SuggestList from './list'; class SuggestBox extends React.Component { constructor(props) { super(props); this.state = { codeValue: '', titleValue: ...
test/FormGroupSpec.js
laran/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import FormGroup from '../src/FormGroup'; import {shouldWarn} from './helpers'; describe('FormGroup', () => { it('renders children', () => { let instance = ReactTestUtils.renderIntoDocument( <FormGroup> <span classNam...
app/javascript/mastodon/components/permalink.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
src/svg-icons/maps/local-taxi.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalTaxi = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4...
packages/ringcentral-widgets-docs/src/app/pages/Components/DropdownNavigationItem/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import DropdownNavigationItem from 'ringcentral-widgets/components/DropdownNavigationItem'; // eslint-disable-next-line import dynamicsFont from 'ringcentral-widgets/assets/DynamicsFont/DynamicsFont.scss'; const props = {}; props.icon = (<span className={dynamicsF...
src/Dialog/DialogTitle.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const DialogTitle = (props) => { const { className, component, children, ...otherProps } = props; return React.createElement(component || 'h4', { className: classNames('mdl-dialog__title', className), ...
src/svg-icons/notification/mms.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/> </SvgIcon> ); NotificationMms = ...
client/signup/controller.js
tinkertinker/wp-calypso
/** * External Dependencies */ import ReactDom from 'react-dom'; import React from 'react'; import { Provider as ReduxProvider } from 'react-redux'; import page from 'page'; import qs from 'qs'; import isEmpty from 'lodash/isEmpty'; import i18n from 'i18n-calypso'; /** * Internal Dependencies */ import config from...
app/components/UsernameField/index.js
WCLDN/WordCamp-Contribution-Wall
import React from 'react'; // noinspection JSUnresolvedVariable import styles from './username.css'; export default class UsernameField extends React.Component { constructor(props) { super(props); this.state = { 'value': '', 'showValidation': false, 'valid': false }; } componentWillMount() { this....