path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/library/Menu/__tests__/MenuGroup.spec.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import { shallow } from 'enzyme'; import MenuGroup from '../MenuGroup'; import examples from '../../../website/app/demos/Menu/MenuGroup/examples'; import testDemoExamples from '../../../../utils/testDemoExamples'; function shallowMenuGroup(props = {}) { const menuGroupProps = {...
src/components/status.js
openregister/specification
import React from 'react'; import PropTypes from 'prop-types'; import { css } from 'emotion'; const wipStyle = css` background-color: tomato; color: ivory; text-transform: uppercase; line-height: 1.1; font-size: 16px; vertical-align: middle; padding: 0 2px; `; const expStyle = css` background-color: ...
app/config/routes.js
natac13/london-ontario-data
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from '../containers/App' import Search from '../components/Search/' import RouteTimesWrapper from '../components/RouteTimesWrapper/' export default ( <Route path='/' component={App}> <IndexRoute component={Search} /> <Rout...
packages/icons/src/md/navigation/ChevronRight.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdChevronRight(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <polygon points="19.83 12 17 14.83 26.17 24 17 33.17 19.83 36 31.83 24" /> </IconBase> ); } export default MdChevronRight;
tools/public-components.js
pivotal-cf/react-bootstrap
import React from 'react'; import * as index from '../src/index'; let components = []; Object.keys(index).forEach(function (item) { if (index[item] instanceof React.Component.constructor) { components.push(item); } }); export default components;
admin/client/components/ItemsTableRow.js
riyadhalnur/keystone
import React from 'react'; import classnames from 'classnames'; import Columns from '../columns'; import CurrentListStore from '../stores/CurrentListStore'; import ListControl from './ListControl'; import { DropTarget, DragSource } from 'react-dnd'; const ItemsRow = React.createClass({ propTypes: { columns: React...
src/svg-icons/editor/merge-type.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType = pure(Editor...
docs/app/Examples/addons/Radio/Types/RadioExampleToggle.js
shengnian/shengnian-ui-react
import React from 'react' import { Radio } from 'shengnian-ui-react' const RadioExampleToggle = () => ( <Radio toggle /> ) export default RadioExampleToggle
src/scripts/views/HomeView.js
IronNation/NCI-trial-search
import Header from './header' import React from 'react' import ResultsList from './map' class HomeView extends React.Component { render() { return ( <div className = 'homeView'> <Header /> <Home /> </div> ) } } class Home extends React.C...
Tutorial/ReactVersion/src/index.js
tableau/extensions-api
import React from 'react'; import ReactDOM from 'react-dom'; import App from './Main'; ReactDOM.render(<App />, document.getElementById('root'));
src/components/Menubar.js
r-portas/robogals-brisbane-pwa
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom'; import './Menubar.css'; class Menubar extends Component { parseLink(link) { if (link.object === 'page') { return link.object_slug; } return link.object; } renderSubLink...
packages/react-server-examples/bike-share/components/station-card.js
davidalber/react-server
import React from 'react'; import {logging} from 'react-server'; const logger = logging.getLogger(__LOGGER__); const timeSinceTimestamp = s => { const parsed = Date.parse(s); const timeSince = (new Date()) - parsed; const minutesSince = Math.floor(timeSince / 60000); const secondsSince = Math.floor((timeSince / 10...
app/javascript/mastodon/features/domain_blocks/index.js
salvadorpla/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/components/user/ChangePasswordSuccessMessage.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { FormattedMessage, injectIntl } from 'react-intl'; const localMessages = { title: { id: 'success.email', defaultMessage: 'Password Changed' }, intro: { id: 'success.emailInfo', defaultMes...
demo/component/Legend.js
scostaqb/recharts
import React from 'react'; import { Surface, Legend } from 'recharts'; const data = [ { value: 'Apple', color: '#ff7300' }, { value: 'Samsung', color: '#bb7300' }, { value: 'Huawei', color: '#887300' }, { value: 'Sony', color: '#667300' }, ]; const data2 = [ { value: 'Apple', type: 'scatter', color: '#ff730...
tests/views/HomeView.spec.js
obfk/buildmaster
import React from 'react' import TestUtils from 'react-addons-test-utils' import { bindActionCreators } from 'redux' import { HomeView } from 'views/HomeView/HomeView' import { mount } from 'enzyme' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) retur...
src/client/components/base/Share/Share.js
DBCDK/content-first
import React from 'react'; import facebook from './facebook.svg'; import './Share.css'; /** Social media share button - Currently only supporting facebook * @param {String} href (!Required) The url to the page you want the user to share * @param {String or Object} children The button text * @param {bool} p...
src/components/OptimisticSlider/OptimisticSlider.js
bhj/karaoke-forever
import React from 'react' import PropTypes from 'prop-types' import Slider from 'rc-slider' import { lockScrolling } from 'store/modules/ui' // depends on styles/global/rc-slider export default class OptimisticSlider extends React.Component { static propTypes = { className: PropTypes.string, handle: PropType...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxlayout.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxLayout = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes(); ...
src/components/ImportEpwing.js
rsimmons/immersion-player
import React, { Component } from 'react'; import './ImportEpwing.css'; import SecondaryScreen from './SecondaryScreen.js'; import SystemBrowserLink from './SystemBrowserLink.js'; import Button from './Button.js'; import { importEpwing } from '../dictionary'; const { ipcRenderer } = window.require('electron'); // use...
src/components/meetings/questions/QuestionsList.js
VGraupera/1on1tracker
import React from 'react'; import { List, ListItem } from 'material-ui/List'; import Paper from 'material-ui/Paper'; import QuestionAnswer from 'material-ui/svg-icons/action/question-answer'; import PropTypes from 'prop-types'; /** * @description PropTypes for QuestionsList * @type {{questions}} */ const propTypes ...
redux-form/src/index.js
murielg/react-redux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import promise from 'redux-promise'; import reducers from './reducers'; import routes from './routes'; const ...
test/ButtonInputSpec.js
deerawan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonInput from '../src/ButtonInput'; import {shouldWarn} from './helpers'; describe('ButtonInput', () => { it('renders an input button element with type=button', function () { const instance = ReactTestUtils.renderIntoDocu...
src/components/characterCard/CharacterCardEdit.js
Beardles/novelizr
import React from 'react' import { Button, Header, Icon, Modal } from 'semantic-ui-react' import CharacterCardForm from './CharacterCardForm' const CharacterCardEdit = ({ open, characters, selectedCharacterCard, updateSelectedCharacterCard, handleCreateComplete, handleEditCancel }) => { if (selectedCharacterCard =...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
dsopel94/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...
__tests__/index.ios.js
m7775223/MyRNProject
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/svg-icons/action/spellcheck.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpellcheck = (props) => ( <SvgIcon {...props}> <path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-...
blueprints/dumb/files/__test__/components/__name__.spec.js
nicolas-amabile/counter
import React from 'react' import <%= pascalEntityName %> from 'components/<%= pascalEntityName %>/<%= pascalEntityName %>' describe('(Component) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
packages/material-ui-icons/src/AirlineSeatReclineNormal.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5 5 5h6v-2H9c-1.66 0-3-1.34-3-3zm14 4.07L14.93 15H11.5v-3.68c1.4 1.15 ...
src/routes/dashboard/components/completed.js
hhj679/mybition-web
import React from 'react' import PropTypes from 'prop-types' import styles from './completed.less' import classnames from 'classnames' import { color } from '../../../utils' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' function Completed ({ data }) { r...
src/renderer/components/requests/request-stats.js
niklasi/halland-proxy
import React from 'react' import {CardText} from 'material-ui/Card' import prettyBytes from 'pretty-bytes' import prettyMs from 'pretty-ms' const RequestStats = ({ metadata = {} }) => { return <CardText> <div>Response time: {prettyMs(metadata.responseTime || 0)}</div> <div>Response size: {prettyBytes(metadat...
client/views/setupWizard/Pager.js
Sing-Li/Rocket.Chat
import { Button, ButtonGroup } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../contexts/TranslationContext'; export function Pager({ disabled, onBackClick, isContinueEnabled = true }) { const t = useTranslation(); return <ButtonGroup align='end'> {onBackClick ? <But...
src/components/flows/thirdPillar/ThirdPillarSetup/ThirdPillarSetup.js
TulevaEE/onboarding-client
import React from 'react'; import Types from 'prop-types'; import { Link, Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; export const ThirdPillarSetup = ({ nextPath, isThirdPillarActive }) => ( <div> {isThirdPillarActive && <Redirect to={...
src/cell/index.js
HVF/franchise
import React from 'react' import ReactDOM from 'react-dom' import * as State from '../state' import * as U from '../state/update' import ReactCodeMirror from '@skidding/react-codemirror' import CodeMirror from 'codemirror' // import 'codemirror/mode/sql/sql' import 'codemirror/mode/markdown/markdown' import 'codemir...
app/javascript/mastodon/features/ui/components/confirmation_modal.js
rutan/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; @injectIntl export default class ConfirmationModal extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, ...
src/components/Home.js
Jalissa/rss-feed-client
import React from 'react'; const Home = (props) => { return ( <div> <h1 className="text-center">Feedr</h1> <p className="text-center">Your offline rss reader</p> <div className="jumbotron"> {props.children} </div> </div> ); }; export default Home;
src/parser/demonhunter/havoc/modules/talents/Demonic.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import Events from 'parser/core/Events'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SpellLink...
src/mui/layout/Responsive.spec.js
matteolc/admin-on-rest
import assert from 'assert'; import { shallow } from 'enzyme'; import React from 'react'; import { Responsive } from './Responsive'; describe('<Responsive>', () => { const Small = () => <div />; const Medium = () => <div />; const Large = () => <div />; it('should render the small component on small ...
app/components/SignupForm.js
trussworks/DoDidDone
import React from 'react'; import TextField from 'material-ui/TextField'; const SignupForm = () => ( <div> <TextField hintText="Name" id="nameField" /><br /> <TextField hintText="Email" errorText="This field is required." id="emailField" type="email" /><br /> <...
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js
hsavit1/gosofi_webpage
// TODO: This module should be ElementChildren, and should use named exports. import React from 'react'; /** * Iterates through children that are typically specified as `props.children`, * but only maps over children that are "valid components". * * The mapFunction provided index will be normalised to the compone...
docs/src/app/components/pages/components/Snackbar/ExampleAction.js
w01fgang/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleSimple extends React.Component { constructor(props) { super(props); this.state = { autoHideDur...
client/components/App.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' import Routes from './routing/Routes' import UserDataContainer from 'client/containers/UserDataContainer' /* * The Provider component provides * the React store to all its child * components so we don't need to pass * it explicitly to all the components....
client/src/h.js
ChenH0ng/blog
import React from 'react'; export default React.createElement;
app/components/Institution/DeletePermissionMsg.js
klpdotorg/tada-frontend
import React from 'react'; const DeletePermissionMsg = () => { return ( <div className="alert alert-info"> <i className="fa fa-info-circle fa-lg" aria-hidden="true" /> You cannot delete this institution until its classes are deleted </div> ); }; export { DeletePermissionMsg };
fields/types/date/DateColumn.js
Freakland/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, ...
src/common/Socket/Channel.js
Syncano/syncano-dashboard
import React from 'react'; import { colors as Colors } from 'material-ui/styles/'; import SocketWrapper from './SocketWrapper'; export default React.createClass({ displayName: 'ChannelSocket', getDefaultProps() { return { tooltip: 'Create a Channel Socket' }; }, getStyles() { return { ...
app/javascript/components/HandoverAutocomplete.js
leihs/leihs_legacy
// TODO: cleanup /* eslint-disable react/no-string-refs */ /* global _ */ /* global _jed */ import React from 'react' import createReactClass from 'create-react-class' import PropTypes from 'prop-types' import Autocomplete from '@eins78/react-autocomplete' export const HandoverAutocomplete = createReactClass({ pro...
__tests__/index.ios.js
kharron/photoapp
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
docs/app/Examples/collections/Form/Types/FormExampleForm.js
aabustamante/Semantic-UI-React
import React from 'react' import { Button, Checkbox, Form } from 'semantic-ui-react' const FormExampleForm = () => ( <Form> <Form.Field> <label>First Name</label> <input placeholder='First Name' /> </Form.Field> <Form.Field> <label>Last Name</label> <input placeholder='Last Name' ...
app/classifier/tasks/combo/editor.spec.js
jelliotartz/Panoptes-Front-End
import { mount } from 'enzyme'; import React from 'react'; import assert from 'assert'; import ComboEditor from './editor'; import { workflow } from '../../../pages/dev-classifier/mock-data'; const task = { type: 'combo', loosen_requirements: true, tasks: ['write', 'ask', 'features', 'draw', 'survey', 'slider'] ...
components/SVG/FacebookSvg.js
numieco/numie
import React from 'react' export default class FacebookSvg extends React.Component { render () { return ( <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink"> <title>facebook-logo-button</title> <...
src/svg-icons/device/signal-cellular-no-sim.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
malte-wessel/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class AnnouncementsSidebar extends React.Component { render() { let { announcements } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcements....
__tests__/components/App-test.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import App from '../../src/js/components/App'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('App', () => { it('has...
packages/mcs-lite-ui/src/LandingHeader/LandingHeader.js
MCS-Lite/mcs-lite
/* global window */ import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import rafThrottle from 'raf-throttle'; import getScrollTop from '../utils/getScrollTop'; const ZINDEX = 1; export const Container = styled.header` height: ${props => props.theme.height.header...
test/store.spec.js
pavelivanov/redaction
import React from 'react' import Enzyme, { shallow } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' import { createStore, combineReducers, connect } from '../lib' Enzyme.configure({ adapter: new Adapter() }) describe('store', () => { it('connect', () => { const reducers = { me: { i...
ui/app.js
JamenMarz/cluster
import React, { Component } from 'react'; import { Bar } from '.'; class App extends Component { render() { return ( <div className="app"> <Bar /> <div>{this.props.children}</div> </div> ); } } export default App;
src/svg-icons/social/school.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSchool = (props) => ( <SvgIcon {...props}> <path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/> </SvgIcon> ); SocialSchool = pure(SocialSchool); SocialSchool.displayNa...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
v2tmobile/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import pureRender from 'pure-render-decorator'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions/AddContactActionCreators'...
packages/cf-builder-card/example/basic/component.js
koddsson/cf-ui
import React from 'react'; import { CardBuilder } from 'cf-builder-card'; import { Table, TableBody, TableRow, TableCell } from 'cf-component-table'; import { Button } from 'cf-component-button'; const EXAMPLE_CARD = 'EXAMPLE_CARD'; const MyButton = ( <Button type="default" onClick={() => console.log('Button clicke...
test/ImageSpec.js
egauci/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Image from '../src/Image'; describe('Image', () => { it('should be an image', () => { let instance = ReactTestUtils.renderIntoDocument( <Image /> ); let image = ReactDOM.findD...
PuppyPlayDate/UserEdit.js
Tooconfident/Puppy_PlayDate
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, TextInput, View, ListView, NavigatorIOS, Image, TouchableHighlight } from 'react-native'; import UserDogs from './UserDogs'; const styles = require('./style.js'); // URL to the API to get a specific user if you append...
src/components/List/ListItem.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import Icon from '../Icon'; export const ListItem = ({ children, className, title, kind, ...other }) => { const classNames = classnames('wfp--list__element', className, { 'wfp--list-item--checkmark': kind === 'che...
app/index.js
lachok/react-starter
import 'react-hot-loader/patch' import React from 'react' import { render } from 'react-dom' import './main.less' import App from './App' import { AppContainer } from 'react-hot-loader' const renderApp = (AppComponent) => { render(<AppContainer><AppComponent /></AppContainer>, document.getElementById('app')) } ren...
packages/material-ui-icons/src/Battery20Sharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7 17v5h10v-5H7z" /><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v13h10V4z" /></React.Fragment> , 'Battery20Sharp');
pages/_document.js
AptoGen/AptoGen-Website
import React from 'react'; import Document, { Head, Main, NextScript } from 'next/document'; import flush from 'styled-jsx/server'; import { COLORS } from '../lib/styles'; export default class MyDocument extends Document { static getInitialProps({ renderPage }) { const { html, head, errorHtml, chunks ...
src/app/homelessness/HomelessnessSummary.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import HomelessnessCounts from './HomelessnessCounts'; import HomelessnessDemographics from './HomelessnessDemographics'; import HomelessnessEnrollment from './HomelessnessEnrollment'; import PageHeader from '../../shared/PageHeader'; import ButtonGroup fro...
investninja-web-ui-admin/src/components/Header/Header.js
InvestNinja/InvestNinja-web-ui
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
frontend/src/Settings/Profiles/Metadata/ReleaseStatusItems.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FormGroup from 'Components/Form/FormGroup'; import FormInputHelpText from 'Components/Form/FormInputHelpText'; import FormLabel from 'Components/Form/FormLabel'; import ReleaseStatusItem from './ReleaseStatusItem'; import styles from '...
components/scenes/stairs.js
dbow/89-steps
import React from 'react'; class Stairs extends React.Component { render() { return ( <div> <h2>The Stairs</h2> <p>This will be good!!</p> </div> ); } } export default Stairs;
src/components/AnimatedWrapper/AnimatedWrapper.js
denichodev/personal-web
import React, { Component } from 'react'; import * as Animated from 'animated/lib/targets/react-dom'; const AnimatedWrapper = WrappedComponent => class AnimatedWrapper extends Component { constructor(props) { super(props); this.state = { animate: new Animated.Value(0) }; } compo...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/shared/Card.js
Brandon-J-Campbell/codemash
import React from 'react'; import classNames from 'classnames'; import theme from '../theme/static'; import styles from './Card.css'; export default function Card({ children }) { return ( <div className={classNames(styles.card, styles[theme])}>{children}</div> ); }
client/views/room/components/MessageTemplate/Header.js
VoiSmart/Rocket.Chat
import { Box, Margins } from '@rocket.chat/fuselage'; import React from 'react'; function Header({ children }) { return ( <Box rcx-message__header display='flex' flexGrow={0} flexShrink={1} withTruncatedText> <Box mi='neg-x2' display='flex' flexDirection='row' alignItems='baseline' withTrunca...
src/routes.js
dorono/wecansavedemocracy
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/app'; import ActivitiesList from './containers/ActivitiesList/activities_index'; import ActivitiesNew from './containers/ActivitiesNew/activities_new'; import FindRep from './containers/FindRep/findRepresentative...
src/views/DashboardManager/components/widgets/BtnControlWidget.js
giux78/daf-dataportal
import React from 'react'; import {Modal} from 'react-modal-bootstrap'; import App from '../InfinityScrollWidgets/App.js' class BtnControlWidget extends React.Component { constructor() { super(); this.state = { isModalAddOpen: false, isModalOpen: false } thi...
src/routes.js
yangli1990/Isomorphic-Universal-React-Template
import React from 'react'; import App from './Components/App'; import { Route } from 'react-router'; import Counter from './Components/Counter/Counter'; export default <Route path="/" component={App}> <Route path="counter" component={Counter} /> </Route>;
src/components/AbstractSystemComponent.js
brochington/Akkad
import React from 'react'; import _ from 'lodash'; // import Immutable from 'immutable'; class AbstractSystemComponent extends React.Component { constructor(props, context) { super(props, context); this.id = Math.floor((1 + Math.random()) * 10000000000).toString(16); this._propsChanged = t...
client/components/error/ServerError.js
andela-jmacharia/hati-DMS
import React from 'react'; import { Route } from 'react-router'; import AppError from './AppError'; const ServerError = () => ( <AppError> <center> <h2 className="title">The Proverbial Internal Server Error :/</h2> <div className="container-fluid"> <p>The minions broke something :(</p> ...
src/parser/rogue/shared/azeritetraits/SharpenedBlades.js
FaideWW/WoWAnalyzer
import React from 'react'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SPECS from 'game/SPECS'; import Analyzer from 'parser/core/Analyzer'; class SharpenedBlades extends Analyzer { constructor(...args) { super(...args); ...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
lzm854676408/big-demo
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
src/ButtonInput.js
xiaoking/react-bootstrap
import React from 'react'; import Button from './Button'; import FormGroup from './FormGroup'; import InputBase from './InputBase'; import childrenValueValidation from './utils/childrenValueInputValidation'; class ButtonInput extends InputBase { renderFormGroup(children) { let {bsStyle, value, ...other} = this.p...
scripts/components/App.js
LulzAugusto/catch-of-the-day
/* App */ import React from 'react'; import Rebase from 're-base'; const base = Rebase.createClass('https://catch-of-the-day-lulz.firebaseio.com/'); import Catalyst from 'react-catalyst'; import sampleFishes from '../sample-fishes'; import Inventory from './Inventory'; import Order from './Order'; import Head...
modules/Redirect.js
leeric92/react-router
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './URLUtils'; import { falsy } from './PropTypes'; var { string, object } = React.PropTypes; export var Redirect = React.createClass({ statics: { createRouteF...
local-cli/templates/HelloWorld/App.js
Bhullnatik/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', and...
src/Navigation.js
wangliguang/myRNTools
import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import { useAPIWeaver } from './tools/API/API.js'; import { initNetEventListener, } from './tools/API/NetManager.js'; import { registerNavigator, unRegisterNavigator, InitailRoute, getRouteMap, } from './Route'; ini...
fields/types/html/HtmlField.js
BlakeRxxk/keystone
import _ from 'underscore'; import Field from '../Field'; import React from 'react'; import tinymce from 'tinymce'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ var lastId = 0; function getId() { return 'keystone-html-' + lastId++; } module.exports = Field.create({ ...
packages/icons/src/md/image/SlideShow.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdSlideShow(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M20 16v16l10-8-10-8zM38 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h28zm0 32V10H10v28h28z" /> </IconBas...
home/app.js
trisys3/combook
import io from 'socket.io-client'; import React from 'react'; import ReactDOM from 'react-dom'; import {prevPage, nextPage, opened} from './app.css'; const Book = window.comBook.default; const socket = io(__dirname); const book = { author: { full: 'S. O. Meone', first: 's', last: 'meone', }, title:...
test/pages/search.js
MoveOnOrg/mop-frontend
import React from 'react' import { expect } from 'chai' import { shallow } from 'enzyme' import { createMockStore } from 'redux-test-utils' import SearchPage from '../../src/containers/search' describe('<SearchPage />', () => { const baseStore = createMockStore({ userStore: {} }) it('renders default values wit...
src/Parser/Warlock/Destruction/Modules/Features/DimensionalRift.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; import St...
examples/with-loading/components/Header.js
kevmannn/next.js
import React from 'react' import Head from 'next/head' import Link from 'next/link' import NProgress from 'nprogress' import Router from 'next/router' Router.onRouteChangeStart = (url) => { console.log(`Loading: ${url}`) NProgress.start() } Router.onRouteChangeComplete = () => NProgress.done() Router.onRouteChange...
src/svg-icons/social/public.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPublic = (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 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9...
react/pages/Signup.js
Seanskiver/b2b_application
import React from 'react'; //import { Table } from 'react-bootstrap'; import {Form, FormControl, FormGroup, ControlLabel, Button, Table, Carousel, Jumbotron, Panel, Col} from 'react-bootstrap'; import { HashRouter as Router, Route, Link, Redirect } from 'react-router-dom'; class Signup extends React.Component { ...
src/svg-icons/toggle/star.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStar = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ToggleStar = pure(ToggleStar); ToggleStar.disp...
src/Avatar/Avatar.spec.js
mmrtnz/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import Avatar from './Avatar'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Avatar />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallow(node, {context: ...
src/dummy-component.js
macropodhq/axolotl
import React from 'react'; export default class DummyComponent extends React.Component { render() { throw 'this test has no visual component'; } }
src/components/Loading.js
mangal49/HORECA
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', marginTop: 30, }, refresh: { display: 'inline-block', position: 'relative', }, }; const Loading = () => ( <div style={style.con...
src/components/Row/Row.js
aaronvanston/react-flexa
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { themeProvider } from '../../theme'; import { filterProps, mediaQuery, gutter, CSSProperty } from '../../helpers'; const Row = styled(props => React.createElement(props.elementType, filterProps(props, Row....
static/src/components/AirhornCounter.js
hammerandchisel/airhornbot
// @flow import React from 'react'; import Constants from '../Constants'; export default (): React.Element => ( <object data={Constants.Image.AIRHORN_COUNTER} /> );
app/src/pages/SignUp/index.js
fikrimuhal/animated-potato
import React from 'react' import {Link} from 'react-router' import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; const styles = { button: { marginRight: 12, }, contente: { width: '100%', marginLeft: 200 }, container: { displ...