path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/components/shared/ShowMoreFooter.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import classNames from 'classnames'; import Button from './Button'; import Spinner from './Spinner'; class ShowMoreFooter extends React.PureComponent { static propTypes = { connection: PropTypes.shape({ ...
src/footer/footer.js
codehangar/react-redux-rockstarter
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'connected-react-router'; import { BottomNavigation, BottomNavigationItem } from 'material-ui/BottomNavigation'; import Paper from 'material-ui/Paper'; import FontIcon from 'material...
packages/material-ui-icons/src/LocalHospital.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z" /></g> , 'LocalHospital');
test/specs/polar/RadarSpec.js
sdoomz/recharts
import React from 'react'; import { expect } from 'chai'; import { Surface, Radar, Sector } from 'recharts'; import { mount, render } from 'enzyme'; describe('<Radar />', () => { const data = [ { x: 200, y: 230, cx: 250, cy: 250, angle: 30, radius: 60, value: 4 }, { x: 300, y: 405, cx: 250, cy: 250, angle: 9...
src/parser/deathknight/unholy/modules/features/Abilities.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import CoreAbilities from 'parser/core/modules/Abilities'; class Abilities extends CoreAbilities { spellbook() { const combatant = this.selectedCombatant; return [ // roational { spe...
fields/types/cloudinaryimage/CloudinaryImageFilter.js
michaelerobertsjr/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var CloudinaryImageFilter = React.createClass({ propTypes: { filter: React.PropTyp...
docs/app/Examples/elements/Rail/Variations/RailExampleCloseVery.js
ben174/Semantic-UI-React
import React from 'react' import { Grid, Image, Rail, Segment } from 'semantic-ui-react' const RailExampleCloseVery = () => ( <Grid centered columns={3}> <Grid.Column> <Segment> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> <Rail close='very' position='left'> ...
src/client/containers/Root.dev.js
barretthafner/hafnerindustries
import React from 'react'; import { Provider } from 'react-redux'; import ProfileApp from './profileApp' import DevTools from './DevTools'; export default class Root extends React.Component { render() { const { store } = this.props; return ( <Provider store={store}> <div> <ProfileApp...
app/javascript/mastodon/features/community_timeline/index.js
clworld/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
index.android.js
chenvan/RoteVocabApp
/** *app name:透析单词 *author:陈旺 *1.00 finish date:2016-10-20 */ import React from 'react' import { Provider } from 'react-redux' import { AppRegistry } from 'react-native' import { StackNavigator } from 'react-navigation' import HomeScene from './lib/Components/HomeScene' import SearchCoverImageScene from './lib/C...
rules/frontend/src/containers/App/App.spec.js
rdowinton/auth0-rules-viewer
import React from 'react' import { expect } from 'chai' import { shallow } from 'enzyme' import App from './App' import styles from './styles.module.css' describe('<App />', () => { let wrapper; let history = {}; beforeEach(() => { wrapper = shallow(<App history={history}/>) }) it('has a Router c...
markbin/client/components/header.js
tpechacek/learn-react-native
import React, { Component } from 'react'; import Accounts from './accounts'; import { Link, browserHistory } from 'react-router'; class Header extends Component { onBinClick() { event.preventDefault(); Meteor.call('bins.insert', (error, binId) => { browserHistory.push(`/bins/${binId}`); }); } ...
src/index.js
fhelwanger/bayesjs-editor
import 'normalize.css'; import 'font-awesome/css/font-awesome.css'; import App from 'components/App'; import Modal from 'react-modal'; import { Provider } from 'react-redux'; import React from 'react'; import { render } from 'react-dom'; import configureStore from './store/configureStore'; import { loadState } from '....
docs/src/components/Document.js
Semantic-Org/Semantic-UI-React
import PropTypes from 'prop-types' import React from 'react' import siteData from '../utils/docTypes/siteData' const Document = ({ Body, children, Head, Html, siteData: { dev, versions } }) => ( <Html lang='en-US'> <Head> <meta charSet='UTF-8' /> <meta name='viewport' content='width=device-width, in...
frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Alert from 'Components/Alert'; import FieldSet from 'Components/FieldSet'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ModalBody from 'Components/Modal/ModalBo...
src/interface/report/Results/StatisticsSectionTitle.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; class StatisticsSectionTitle extends React.PureComponent { static propTypes = { children: PropTypes.node, rightAddon: PropTypes.node, }; static defaultProps = { premium: false, }; render() { const { children, rightAddon } = this....
src/routes/index.js
balintsoos/brickland
import React from 'react' import { Router, Route, IndexRoute, browserHistory } from 'react-router' import App from 'components/App' import Main from 'components/Main' import About from 'components/About' import Projects from 'components/Projects' const routes = ( <Router history={browserHistory}> <Route path="/...
frontend/src/components/Routes.js
pahomovda/victorious-pirate
import React from 'react'; import { Router, Route, IndexRedirect, IndexRoute } from 'react-router'; import UserManager from 'components/pages/users/UserManager'; import Terms from 'components/pages/journal/Terms'; import Courses from 'components/pages/journal/Courses'; import Journal from 'components/pages/journal/Jou...
src/scenes/home/about/about.js
OperationCode/operationcode_frontend
import React from 'react'; import { Link } from 'react-router-dom'; import Section from 'shared/components/section/section'; import commonUrl from 'shared/constants/commonLinks'; import WhatWeDo from './whatWeDo/whatWeDo'; import ValueCard from './valueCard/valueCard'; import styles from './about.css'; const About = (...
lens-ui/app/app.js
archanah24/lens
/** * 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 not...
src/components/WhatIsLibertySoil.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) 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 License, o...
admin/client/App/components/Navigation/Secondary/index.js
joerter/keystone
/** * The secondary navigation links to inidvidual lists of a section */ import React from 'react'; import { Container } from 'elemental'; import SecondaryNavItem from './NavItem'; var SecondaryNavigation = React.createClass({ displayName: 'SecondaryNavigation', propTypes: { currentListKey: React.PropTypes.str...
src/FloatingActionButton/FloatingActionButton.spec.js
frnk94/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import FloatingActionButton from './FloatingActionButton'; import FontIcon from '../FontIcon'; import getMuiTheme from '../styles/getMuiTheme'; import ContentAdd from '../svg-icons/content/add'; describe('<Fl...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleSection.js
ben174/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleSection = () => ( <Breadcrumb> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider /> <Breadcrumb.Section active>Search</Breadcrumb.Section> </Breadcrumb> ) export default BreadcrumbExamp...
src/components/A.js
Hylozoic/hylo-redux
import React from 'react' import { IndexLink, Link } from 'react-router' export default function A (props) { return <Link activeClassName='active' {...props}>{props.children}</Link> } export const IndexA = props => <IndexLink activeClassName='active' {...props}>{props.children}</IndexLink>
test/TabbedAreaSpec.js
leozdgao/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import TabbedArea from '../src/TabbedArea'; import NavItem from '../src/NavItem'; import TabPane from '../src/TabPane'; import ValidComponentChildren from '../src/utils/ValidComponentChildren'; describe('TabbedArea', function () { it('...
client/js/donate.js
charitycollective/charitytree
import React from 'react'; import { Link, History } from 'react-router'; import { DonateNeeds } from './needs.js'; exports.Donate = React.createClass({ getInitialState: function () { return { project: {}, needs_list: [], quantityTotal: 0, donationTotal: 0 }; }, updateNumberPurcha...
src/components/Menu.js
taylord65/taylord65.github.io
import React from 'react' import { CSSTransitionGroup } from 'react-transition-group' import { animateCSS } from '../helpers/animateCSS' import { goToRoute } from '../helpers/goToRoute' class Menu extends React.Component { constructor(props) { super(props); this.state = { features: [ {...
src/components/ButtonAddModule.js
dominic-blain/viper-visualizer
import React from 'react'; class ButtonAddModule extends React.Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); } handleChange(event) { const type = event.target.value; this.props.onChange(type); } render() { const modulesSchema = this.props.schema; va...
src/svg-icons/action/restore-page.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestorePage = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3....
src/authentication/Login.spec.js
VasilyShelkov/ClientRelationshipManagerUI
import React from 'react'; import { fireEvent, wait, waitForElement, waitForElementToBeRemoved, } from 'react-testing-library'; import userEvent from 'user-event'; import Login from './Login'; import { renderWithProviders } from '../testUtils'; const renderLogin = () => { return renderWithProviders(<Login /...
src/svg-icons/hardware/phonelink.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhonelink = (props) => ( <SvgIcon {...props}> <path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/> ...
src/components/Comments/EmbeddedCommentForm.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { injectIntl, FormattedMessage } from 'react-intl'; import { Input, Icon } from 'antd'; import Dropzone from 'react-dropzone'; import Body, { remarkable } from '../Story/Body'; import './EmbeddedCommentForm.less'; @...
mobile/App/Navigation/NavItems.js
JasonQSong/SoulDistance
// @flow import React from 'react' import { TouchableOpacity } from 'react-native' import styles from './Styles/NavItemsStyle' import { Actions as NavigationActions } from 'react-native-router-flux' import Icon from 'react-native-vector-icons/FontAwesome' import { Colors, Metrics } from '../Themes' const openDrawer =...
actor-apps/app-web/src/app/components/common/MessageItem.react.js
changjiashuai/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import memoize from 'memoizee'; import classNames from 'classnames'; import emojify from 'emojify.js'; import hljs from 'highlight.js'; import marked from 'marked'; import emojiCharacters from 'emoji-named-characters'; ...
app/entry/index.js
czy0729/react-alumni
/** * 路由表 * @Date: 2017-01-20 15:58:37 * @Last Modified by: Administrator * @Last Modified time: 2017-03-31 08:38:59 */ 'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, hashHistory } from 'react-router' //import 'whatwg-fetch'; ReactDOM.render(( ...
docs/src/ButtonsPage.js
15lyfromsaturn/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import store from './store'; import Samples from './Samples'; import raisedButton from '../../examples/RaisedButton'; import fixedActionButto...
src/pages/NewSensor/ScanRow.js
sussol/mobile
import React from 'react'; import { ActivityIndicator } from 'react-native'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import * as Animatable from 'react-native-animatable'; import { LightbulbIcon, ChevronRightIcon, FlexRow, IconButton, WifiIcon } from '../../widgets'; import { LIGHT_G...
tests/routes/Home/components/HomeView.spec.js
alukach/react-map-app
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
packages/bonde-admin/src/mobrender/components/widget.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import classnames from 'classnames' import { intlShape } from 'react-intl' import { Loading } from '@/components/await' import WidgetOverlay from './widget-overlay.connected' import widgets from '../widgets/config' const Widget = ({ saving, mobilization, bl...
Libraries/index.js
brainpoint/febs-react-web
/** * Copyright (c) 2015-present, Alibaba Group Holding Limited. * All rights reserved. * * @providesModule ReactWeb */ 'use strict'; import React from 'react'; import {extendCreateElement} from 'ReactStyleSheet'; // window.requestAnimationFrame / window.cancelAnimationFrame var lastTime = 0; window.requestAnima...
src/containers/Asians/TabControls/_components/InstitutionsAddMany/EvaluateComponent/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Button from 'material-ui/Button' import Instance from './Instance' import onSubmit from './onSubmit' import findRegisteredInstitutions from './findRegisteredInstitutions' export default connect(mapStateToProps)(({ draft, onChange, institut...
Libraries/Utilities/throwOnWrongReactAPI.js
Swaagie/react-native
/** * 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. * * @provides...
src/components/signin.js
MrAbalogu/oversight
import React from 'react'; import FontIcon from 'material-ui/FontIcon'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import TextField from 'material-ui/TextField'; class SignIn extends React.Component { constructor(props) { super(props); this.handleEmail = this.ha...
src/components/DashboardDetector.js
PsychoLlama/luminary
import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import React from 'react'; import R from 'ramda'; // eslint-disable-next-line import/named import { KeepAwake } from 'expo'; import { DASHBOARD_MODE } from '../reducers/switches'; import * as actions from '../actions/groups'; import { selector...
src/server.js
WendellLiu/GoodJobShare
/* global webpackIsomorphicTools */ import Express from 'express'; import favicon from 'serve-favicon'; import path from 'path'; import ReactDOMServer from 'react-dom/server'; import { match, createMemoryHistory, RouterContext } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { Pr...
app/jsx/index.js
sfu/canvas_spaces
import React from 'react'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import MySpaces from './pages/MySpaces'; import CreateSpace from './pages/CreateSpace'; import NotFound from './pages/NotFound'; const App = () => ( <Router basename="/canvas_spaces"> <div> <Switch> ...
src/components/flash/flash_message.js
trihpham/flashcard-webapp
import React, { Component } from 'react'; import classnames from 'classnames'; import { Message } from 'semantic-ui-react'; class FlashMessage extends Component { constructor(props) { super(props); this.onClick = this.onClick.bind(this); } onClick() { this.props.deleteFlashMessage(t...
src/Input.js
jontewks/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'); ...
src/svg-icons/content/text-format.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentTextFormat = (props) => ( <SvgIcon {...props}> <path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/> </SvgIcon> ); ContentTextFormat = pure(C...
src/client/post/Write/Drafts.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import _ from 'lodash'; import { Checkbox } from 'antd'; import Loading from '../../components/Icon/Loading'; import { reloa...
app/components/Main.js
milankarunarathne/CouchDB-ReactJS-Patient-Dashboard
import React from 'react'; class TODO extends React.Component { render() { return ( <div><p>Hello Iswan!</p></div> ); } } export default TODO;
packages/hello-world-example/pages/World.js
wangzuo/cxx
import React from 'react'; import Layout from '../components/layout'; export const query = graphql`query WorldQuery { world }`; export default ({ props }) => <Layout title="World"> <h1>{props.world}</h1> <img src={require('../images/react.svg')} width="100" height="100" /> </Layout>;
web/src/js/components/Settings/Profile/ProfileInviteFriendView.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import QueryRendererWithUser from 'js/components/General/QueryRendererWithUser' import graphql from 'babel-plugin-relay/macro' import SettingsChildWrapper from 'js/components/Settings/SettingsChildWrapperComponent' import ProfileInviteFriend from 'js/compone...
mobile/__tests__/App-test.js
AbrahamShubApps/OccasionMe
import 'react-native'; import React from 'react'; import App from '../App'; import renderer from 'react-test-renderer'; it('renders the loading screen', async () => { const tree = renderer.create(<App />).toJSON(); expect(tree).toMatchSnapshot(); }); it('renders the root without loading screen', async () => { c...
web/src/main/webapp_source/src/components/Home.js
mschvarc/PB138-Inventory-Management
import React, { Component } from 'react'; import {Link} from 'react-router'; class Home extends Component { render() { var items = this.props.items; var categories = this.props.categories; return <div className="page-home row"> <div className="small-12 columns"> <h2>Welcome to Inventory Managem...
src/containers/ShowCollection/ShowCollection.js
stphnem/NBCUniversal_Assessment
import React, { Component } from 'react'; import Show from 'components/Show/Show'; import './ShowCollection.css'; import axios from 'axios'; class ShowCollection extends Component { constructor(props) { super(); this.state = { apiUrl: `https://api.nbc.com/v3.11.2/shows?derivatives=landscape.widescree...
app/javascript/mastodon/features/public_timeline/index.js
tateisu/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/svg-icons/action/lightbulb-outline.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLightbulbOutline = (props) => ( <SvgIcon {...props}> <path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1...
client/src/index.js
dagobahtech/acit2910
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
src/index.js
jozanza/pixels
import React from 'react'; import { render } from 'react-dom'; import { createStore } from 'redux'; import { injectGlobal } from 'styled-components'; import fastclick from 'react-fastclick'; import reducer from './reducers'; import initKeyboard from './keyboard'; import createInitialState from './store/state'; import A...
src/interface/icons/People.js
yajinni/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=people&i=1458757 // people by Manohara from the Noun Project const Icon = ({ ...others }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...others}> <path d="M47.7,36.5A14.5,14.5,0,1,0,33.2,51,14.5,14.5,0,0,0...
.storybook/components/FormStory.js
hellobrian/carbon-components-react
import React from 'react'; import { action, storiesOf } from '@storybook/react'; import Checkbox from '../../components/Checkbox'; import Form from '../../components/Form'; import FormGroup from '../../components/FormGroup'; import FileUploader from '../../components/FileUploader'; import NumberInput from '../../compon...
client/modules/Post/__tests__/components/PostCreateWidget.spec.js
eantler/google
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { FormattedMessage } from 'react-intl'; import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const props = { ...
src/components/HelpContents/HelpContents.js
synchu/schema
import React from 'react' import { FontIcon} from 'react-toolbox' import SearchBox from './images/SearchBox_1.gif' import ToggleMenu from './images/ToggleMenu.gif' import FilterBox from './images/FilterBox.gif' import AmplifiersBrandsList from './images/AmplifiersBrandsList.gif' import TopMenu from './images/TopMenu.gi...
definitions/npm/styled-components_v2.x.x/flow_v0.25.x-v0.41.x/test_styled-components_v2.x.x.js
splodingsocks/FlowTyped
// @flow import {renderToString} from 'react-dom/server' import styled, {ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager} from 'styled-components' import React from 'react' import type {Theme} from 'styled-components' const Title = styled.h1` font-size: 1.5em; text-align: center; color: ...
test/components/AppTest.js
mosen/micromdm-ui
import React from 'react'; import {shallow} from 'enzyme'; import chai, {expect} from 'chai'; import chaiEnzyme from 'chai-enzyme'; import App from '../../src/js/components/App'; chai.use(chaiEnzyme()); describe('<App />', () => { 'use strict'; it('Basically doesnt explode', () => { const props = { sn...
musical/src/LandingPage.js
dmeredith96/MadHacks2017
import React, { Component } from 'react'; import './LandingPage.css'; import logo from './logo.svg'; class LandingPage extends Component { render() { return ( <div> <h1> Welcome to Musical Simon! </h1> <div> Cl...
src/Flags/SierraLeone.js
runjak/css-flags
// @flow import React from 'react'; import LinearFlag from './LinearFlag'; import gradient from '../utils/gradient'; const green = '#18B638'; const white = '#FFFFFF'; const blue = '#0073C7'; export default function SierraLeone() { return ( <LinearFlag gradient={`${gradient([green, white, blue])}`} />...
js/components/splashscreen/index.js
CoulDracula/carrying
import React, { Component } from 'react'; import { Image } from 'react-native'; const launchscreen = require('../../../images/shadow.png'); export default class SplashPage extends Component { static propTypes = { navigator: React.PropTypes.shape({}), } componentWillMount() { const navigator = this.pr...
test/components/Placeholder/Placeholder.js
sapegin/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; /** * Image placeholders. * * @example ./examples.md * @see {@link link} * @link link */ export default class Placeholder extends Component { static propTypes = { type: PropTypes.oneOf([ 'animal', 'bacon', 'beard', 'bear...
src/routes/contact/Contact.js
lassegit/gitdude.com
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Contact.css'; class Contact extends React.Component { static propTypes = { title: PropTypes.string.isRequired, }; render() { return ( <div className={s.r...
node_modules/react-router/es6/Link.js
Jaime691/ReactTube
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/components/SelectItemGroup/SelectItemGroup.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import settings from '../../globals/js/settings'; const { prefix } = settings; const SelectItemGroup = ({ children, className, disabled, label, ...other }) => { const classNames = classnames(`${prefix}--sel...
packages/core/admin/admin/src/pages/InternalErrorPage/index.js
wistityhq/strapi
/** * InternalErrorPage * * This is the page we show when the user gets a 500 error * */ import React from 'react'; import { useFocusWhenNavigate } from '@strapi/helper-plugin'; import { Main } from '@strapi/design-system/Main'; import { LinkButton } from '@strapi/design-system/LinkButton'; import { ContentLayout,...
src/components/Footer/Footer.js
successkrisz/fx-rates-right
import React from 'react' import './Footer.scss' const github = 'https://github.com/successkrisz' export const Footer = () => ( <footer className='footer__primary'> Created by: <a href={github}>@krisztianballa</a> </footer> ) export default Footer
app/src/components/Header.js
mlang12/gameswipe
import React, { Component } from 'react'; import UserHeader from './UserHeader.js'; import GuestHeader from './GuestHeader.js'; import Search from './Search.js' import { Link } from 'react-router-dom'; class Header extends Component { constructor(props) { super(props); } render() { function Greeting(pro...
test/ColSpec.js
jsbranco/react-materialize
/* global describe, it */ import React from 'react'; import { shallow } from 'enzyme'; import { assert } from 'chai'; import Col from '../src/Col'; let wrapper = shallow( <Col /> ); describe('<Col />', () => { it('should render', () => { assert.ok(wrapper.find('.col'), 'a column'); }); it('accepts sizes...
app/components/AmountField/index.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import { Field } from 'redux-form/immutable'; import BigNumber from 'bignumber.js'; const AmountField = ({ maxAmount, minAmount = 0, ...props }) => { const limitAmount = (value) => BigNumber.min( BigNumber.max(minAmount, value || 0), maxAmo...
src/www/js/demos/chained_drop_down_with_state.js
training4developers/bootcamp_04112016
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; class ChainedDropDown extends React.Component { constructor(props) { super(props); const [ primaryItem, secondaryItem ] = props.value.split('|'); this.state = { primaryItem: primaryItem, secondaryItem: secondaryItem, second...
app/javascript/mastodon/components/status.js
ikuradon/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import AvatarComposite from './avatar_composite'; import RelativeTimestamp from './relative_timestamp'; import DisplayNa...
src/views/Preview.react.js
Cron-J/CSV-Redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Link } from 'react-router'; import * as PreviewActions from 'actions/previewPage/PreviewActions'; import { connect } from 'react-redux'; class Preview extends Component { constructor(props) { super(props); const { a...
packages/reactor-kitchensink/src/examples/Charts/Line/BasicMarkers/BasicMarkers.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; import generateData from './generateData'; export default class BasicMarkers extends Component { constructor() { super...
test/RowSpec.js
cgvarela/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Row from '../src/Row'; describe('Row', () => { it('uses "div" by default', () => { let instance = ReactTestUtils.renderIntoDocument( <Row /> ); assert.equal(React.findDOMNode(instance).nodeName, 'DIV'); }); ...
app/javascript/flavours/glitch/components/notification_purge_buttons.js
glitch-soc/mastodon
/** * Buttons widget for controlling the notification clearing mode. * In idle state, the cleaning mode button is shown. When the mode is active, * a Confirm and Abort buttons are shown in its place. */ // Package imports // import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages,...
app/components/NewCharacInfo/NewCharacInfo.js
Tetraib/player.rauks.org
import React from 'react' import TextField from 'material-ui/TextField' import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton' import SelectField from 'material-ui/SelectField' import MenuItem from 'material-ui/MenuItem' import {MaleIcon, MaleCheckedIcon, FemaleIcon, FemaleCheckedIcon} from 'components/...
src/javascript/decorators/withDevTools.js
anilCSE/redux-react-router-example-app
import React from 'react'; // eslint-disable-line no-unused-vars import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export default function withDevTools(store) { return (ComposedComponent) => class WithDevTools { render() { const { context, ...other } = this.props; return ( ...
test/pods/template/components/Item.js
slightlytyler/mocksy
import { expect, assert } from 'chai'; import { stub, spy } from 'sinon'; import React from 'react'; import { findWithRef } from 'react-shallow-testutils'; import shallowRender from '../../../test-utils/shallow-render'; import TemplateItem from 'pods/template/components/Item'; import { iPhone_6 } from 'constants/base-...
src/components/sketch/spec.js
casesandberg/react-color
/* global test, jest, expect */ import React from 'react' import renderer from 'react-test-renderer' import { mount } from 'enzyme' import * as color from '../../helpers/color' // import canvas from 'canvas' import Sketch from './Sketch' import SketchFields from './SketchFields' import SketchPresetColors from './Sket...
src/components/pages/Admin/Contents/TypeForms/AdminContentsArticle.js
ESTEBANMURUZABAL/bananaStore
/** * Imports */ import React from 'react'; import {FormattedMessage} from 'react-intl'; // Flux import IntlStore from '../../../../../stores/Application/IntlStore'; // Required components import FormLabel from '../../../../common/forms/FormLabel'; import InputField from '../../../../common/forms/InputField'; impor...
src/components/button.js
markup-app/markup
'use strict'; import React from 'react'; const propTypes = { label: React.PropTypes.string.isRequired, onClick: React.PropTypes.func.isRequired }; class Button extends React.Component { render () { return ( <input type="button" className="-custom-button-style" value={this.pro...
client/components/PollCategory.js
gut-js/gut
import React from 'react'; class PollCategory extends React.Component { constructor(){ super(); this.selectImage = this.selectImage.bind(this); this.displayPoll = this.displayPoll.bind(this); } selectImage(e){ const { sendPollChoices, updatePoll, endPoll } = this.props.pollActions; const { u...
src/components/parties/party_index.js
dcporter44/tunefest-frontend
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchParties } from '../../actions/party_actions'; import { Link } from 'react-router'; class PartyIndex extends Component { constructor(props) { super(props); this.state = {searchComplete: false}; this.fetch...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Topolev/TimeCurrentCharacteristic
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'));
maodou/wechat/client/containers/sign-in-button.js
wuyang910217/meteor-react-redux-base
import React from 'react'; import {composeAll, withTracker} from 'react-komposer-plus'; import {useDeps} from 'react-simple-di'; import SignInButton, {UIState} from '../components/sign-in-button' function removeURLParameter(url, parameter) { //prefer to use l.search if you have a location/link object var urlparts...
static/src/index.js
idahu29/payment-redis
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, Redirect, browserHistory } from 'react-router'; import injectTapEventPlugin from 'react-tap-event-plugin'; import { syncHistoryWithStore } from 'react-router-redux'; import configureStore from './store...
app/javascript/mastodon/features/account_gallery/components/media_item.js
anon5r/mastonon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Permalink from '../../../components/permalink'; import { displaySensitiveMedia } from '../../../initial_state'; export default class MediaItem extends Immut...
web/src/server.js
AcrylicInc/totalblu
import path from 'path' import Express from 'express' import React from 'react' import { createStore } from 'redux' import { Provider } from 'react-redux' import counterApp from './reducers' import App from './containers/App' import { renderToString } from 'react-dom/server' import Root from './router'; const app =...
src/app/component/number-field/number-field.js
all3dp/printing-engine-client
import PropTypes from 'prop-types' import React from 'react' import propTypes from '../../prop-types' import cn from '../../lib/class-names' import Icon from '../icon' import plusIcon from '../../../asset/icon/plus.svg' import minusIcon from '../../../asset/icon/minus.svg' const NumberField = ({ classNames, val...
src/styles/muiThemeable.js
kittyjumbalaya/material-components-web
import React from 'react'; import PropTypes from 'prop-types'; import getMuiTheme from './getMuiTheme'; let DEFAULT_THEME; function getDefaultTheme() { if (!DEFAULT_THEME) { DEFAULT_THEME = getMuiTheme(); } return DEFAULT_THEME; } export default function muiThemeable() { return (Component) => { const...