path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
js/components/sideBar/index.js
kondoSoft/que_hacer_movil
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Content, Text, List, ListItem, Icon, Thumbnail, View } from 'native-base'; import { setIndex, resetState } from '../../actions/list'; import navigateTo from '../../actions/sideBarNav'; import myTheme from '../../themes/base-them...
client/src/components/Home/ActivityList.js
seripap/darkwire.io
import React from 'react'; import PropTypes from 'prop-types'; import ChatInput from 'components/Chat'; import Activity from './Activity'; import T from 'components/T'; import { defer } from 'lodash'; import styles from './styles.module.scss'; const ActivityList = ({ activities, openModal }) => { const [focusChat, ...
docs/src/app/components/pages/components/AppBar/ExampleIcon.js
kittyjumbalaya/material-components-web
import React from 'react'; import AppBar from 'material-ui/AppBar'; /** * A simple example of `AppBar` with an icon on the right. * By default, the left icon is a navigation-menu. */ const AppBarExampleIcon = () => ( <AppBar title="Title" iconClassNameRight="muidocs-icon-navigation-expand-more" /> ); e...
docs/src/IntroductionPage.js
chilts/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const IntroductionPage = React.createClass({ render() { return ( <div> <NavMain activePage="introduction" /> <...
src/routes/dashboard/index.js
zhouchao0924/SLCOPY
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Row, Col, Card } from 'antd' import { NumberCard, Quote, Sales, Weather, RecentSales, Comments, Completed, Browser, Cpu, User } from './components' import styles from './index.less' import { color } from '../../utils' c...
src/js/components/icons/base/Bookmark.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/routes.js
hdngr/mantenuto
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import { App, Home, Profile, Talk, Listen, Register, Registered, Login, Rooms, NotFound, Password } from 'modules'; import { TryAuth, RequireLoggedIn, RequireNotLoggedIn } from 'modules/Auth'; const Routes = () => ( ...
app/javascript/mastodon/components/status.js
pixiv/mastodon
import React from 'react'; import Immutable from 'immutable'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import RelativeTimestamp from './relative_timestamp'; import DisplayName from './disp...
src/docs/examples/Promotion/ExamplePromotion.js
undefinedist/sicario
import React from 'react' import Promotion from 'sicario/Promotion' /** With a custom message: */ export default function ExamplePromotion() { return ( <div> {promotions.map((props, index) => ( <Promotion {...props} {...promotionAttr} key={`promotion-${index}`} index={index} /> ))} </div>...
src/components/auth/signup.js
camboio/ibis
import React from 'react'; import { reduxForm } from 'redux-form'; import * as actions from '../../actions'; class Signup extends React.Component { handleFormSubmit(formProps){ this.props.signupUser(formProps); } renderAlert(){ if(this.props.errorMessage){ return ( <div class...
react/features/base/react/components/web/Text.js
bgrozev/jitsi-meet
import React, { Component } from 'react'; /** * Implements a React/Web {@link Component} for displaying text similar to React * Native's {@code Text} in order to faciliate cross-platform source code. * * @extends Component */ export default class Text extends Component { /** * Implements React's {@link C...
React.WebPack.Init/src/main.js
yodfz/JS
// ๆ ธๅฟƒ import React from 'react'; import ReactDom from 'react-dom'; // UI import HelloWorld from './components/HelloWorld'; // class App extends React.Component { // render() { // return (<h1>hello world</h1>); // }; // } // const App = () => <h1>hello world,const!</h1>; // export default helloworld; console.log(...
packages/veritone-react-common/src/components/DelayedProgress/index.js
veritone/veritone-sdk
// https://material-ui.com/demos/progress/#delaying-appearance // when props.loading is set to true, will delay for props.delay ms before // showing a loading indicator. import React from 'react'; import { number, bool, objectOf, any } from 'prop-types'; import Fade from '@material-ui/core/Fade'; import CircularProgre...
src/frontend/src/components/LegislatorList.js
open-austin/influence-texas
import React from 'react' import PaginatedList from 'components/PaginatedList' import { ImageSquare } from 'styles' import { capitalize } from 'utils' import Typography from '@material-ui/core/Typography' const PARTIES = { R: 'Republican', D: 'Democrat', I: 'Independent', } export default function LegislatorsL...
src/components/layer/layer.js
miaoji/guojibackend
import { Modal, message } from 'antd' import React from 'react' import ReactDOM from 'react-dom' import classnames from 'classnames' import styles from './layer.less' const { info, success, error, warning, confirm } = Modal const layer = { prefixCls: 'ant-layer', index: 1, info, success, error, warning, ...
js/__tests__/helper.js
erik-sn/webapp
import chai from 'chai'; // eslint-disable-line no-unused-vars import { JSDOM } from 'jsdom'; import React from 'react'; import { Provider } from 'react-redux'; import { applyMiddleware, createStore } from 'redux'; import reducers from '../src/reducers/root_reducer'; // jsdom configuration const jsdom = new JSDOM('<...
src/widgets/ReactApp/index.js
cncjs/cncjs-widget-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; export default () => { ReactDOM.render( <App />, document.getElementById('viewport') ); };
recipe-server/client/control/components/NoMatch.js
Osmose/normandy
import React from 'react'; import { Link } from 'react-router'; /** * 404-ish view shown for routes that don't match any valid route. */ export default function NoMatch() { return ( <div className="no-match fluid-8"> <h2>Page Not Found</h2> <p>Sorry, we could not find the page you're looking for.</...
src/components/MainHeader/GenericDropdown.js
falmar/react-adm-lte
import React from 'react' import PropTypes from 'prop-types' import Link from '../../utils/Link' import Dropdown from './Dropdown' import DropdownToggle from './DropdownToggle' import DropdownMenu from './DropdownMenu' const GenericDropdown = (props) => { const {className, open, onToggle, children} = props const ...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
tateisu/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
src/components/FuelSavingsResults.js
redsheep-io/redsheep.io
import React from 'react'; import PropTypes from 'prop-types'; import NumberFormatter from '../utils/numberFormatter'; // This is a stateless functional component. (Also known as pure or dumb component) // More info: https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html#stateless-functional-components // A...
app/screens/MatchesValidation/index.js
mbernardeau/Road-to-Russia-2018
import React from 'react' // eslint-disable-next-line react/prefer-stateless-function export default class MatchesValidation extends React.PureComponent { render() { return <h1>Ceci sera la page de validation des matches.</h1> } }
examples/01 Dustbin/Single Target/__tests__/Box-test.js
arnif/react-dnd
import React from 'react'; import TestUtils from 'react/lib/ReactTestUtils'; import wrapInTestContext from '../../../shared/wrapInTestContext'; import expect from 'expect'; import Box from '../Box'; describe('Box', () => { it('can be tested independently', () => { // Obtain the reference to the component before ...
node_modules/react-bootstrap/es/Tabs.js
mohammed52/something.pk
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 ...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
rafser01/installer_electron
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/svg-icons/communication/phonelink-erase.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkErase = (props) => ( <SvgIcon {...props}> <path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0...
test/components/Counter.spec.js
r24y/delta-calibration
/* eslint no-unused-expressions: 0 */ import { expect } from 'chai'; import { spy } from 'sinon'; import jsdom from 'mocha-jsdom'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Counter from '../../src/components/Counter'; function setup() { const actions = { increment: spy()...
src/modules/universal-discovery/components/tab-content/tab.content.panel.component.js
sunpietro/react-udw
import React from 'react'; import PropTypes from 'prop-types'; import './css/tab.content.panel.component.css'; const TabContentPanelComponent = (props) => { const attrs = { id: props.id, className: 'c-tab-content-panel' }; if (!props.isVisible) { attrs.hidden = true; } re...
src/js/components/icons/base/Target.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
stories/Stagger.js
unruffledBeaver/react-animation-components
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, boolean, number } from '@storybook/addon-knobs'; import { Fade, Stagger } from '../src/index'; const exampleArray = ['Example', 'Example', 'Example', 'Example', 'Example']; storiesOf('Wrappers/Stagger', module) .addDeco...
examples/03 Nesting/Drag Sources/Container.js
arnif/react-dnd
import React from 'react'; import SourceBox from './SourceBox'; import TargetBox from './TargetBox'; import Colors from './Colors'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; @DragDropContext(HTML5Backend) export default class Container { render() { ...
src/pages/index.js
ScottDowne/donate.mozilla.org
import fs from 'fs'; import React from 'react'; import Optimizely from '../components/optimizely.js'; import OptimizelySubdomain from '../components/optimizelysubdomain.js'; import Path from 'path'; import Pontoon from '../components/pontoon.js'; var Index = React.createClass({ render: function() { var metaData ...
docs/src/app/components/pages/components/RadioButton/Page.js
ArcanisCz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import radioButtonReadmeText from './README'; import RadioButtonExampleSimple fr...
addons/themes/solid-state/layouts/Home.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import Menu from '../includes/Menu'; let Home = React.createClass({ componentDidMount(){ require('../assets/css/main.css') }, ...
src/renderer/controllers/preferences.js
marcus-sa/Venobo
import {ipcRenderer} from 'electron' import React from 'react' import {dispatch} from '../lib/dispatcher' import PreferencesPage from '../pages/preferences' // Controls the Preferences page export default class PreferencesController extends React.Component { constructor(props) { super(props) this.state = ...
components/base/TopNavigation/TopNavigation.js
CarbonStack/carbonstack
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { actions as sessionActions } from '../../../lib/redux/modules/session' import NewButton from './NewButton' import LogoLink from './LogoLink' import Profile from './Profile' import SignInButton from './Si...
ui/src/pages/Results_test.js
google/personfinder
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
app/components/Contact.js
leckman/chapterbot
import React from 'react'; import { connect } from 'react-redux' import { submitContactForm } from '../actions/contact'; import Messages from './Messages'; class Contact extends React.Component { constructor(props) { super(props); this.state = { name: '', email: '', message: '' }; } handleChange(event) ...
src/components/svg/Goose.js
JoeTheDave/onitama
import PropTypes from 'prop-types'; import React from 'react'; export const Goose = ({ fillColor }) => ( <svg width="210px" height="130px" viewBox="0 0 380 229" preserveAspectRatio="xMidYMid meet"> <g transform="translate(0, 229) scale(0.1, -0.1)" fill={fillColor} stroke="none"> <path d="M2775 2260 c-3 -5 ...
src/web/components/Footer.js
TeodorKolev/Help
import React from 'react'; import { Row, Col } from 'reactstrap'; const Footer = () => ( <footer className="mt-5"> <Row> <Col sm="12" className="text-right pt-3"> <p> Learn More on the <a target="_blank" rel="noopener noreferrer" href="https://github.com/mcnamee/react-native-starter-kit">...
src/index.js
jsk7/personal-web
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tell webpack t...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Base/Footer/Footer.js
lakmali/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
webpack/containers/Application/index.js
johnpmitsch/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { orgId } from '../../services/api'; import * as actions from '../../scenes/Organizations/Or...
src/__tests__/ArrayCapture-test.js
networknt/react-schema-form
import React from 'react' import { render, configure } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' import utils from '../utils' import SchemaForm from '../SchemaForm' configure({ adapter: new Adapter() }) jest.dontMock('../ComposedComponent') jest.dontMock('../utils') jest.dontMock('lodash') function...
src/interface/icons/ViralContent.js
yajinni/WoWAnalyzer
import React from 'react'; // Viral Content by Edwin Prayogi M from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}> <g> <path d="M49.9931641,18.8754883c0.6904297,0,1.25-0.5595703,1.25-1.25V12.5c0-0.6904297-0.559570...
src/components/Todo/Form.js
elemus/react-redux-todo-example
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Form extends Component { constructor(props) { super(props); this.state = { description: '' }; this.onInput = this.onInput.bind(this); this.onSubmit = this.onSubmit.bind(this); } onInput(e) { this.setState({...
client/app/components/Input/index.js
bryanph/Geist
import _ from 'lodash' import React from 'react' import './styles.css' export function controlled(InputComponent) { /* * HOF for creating a controlled input * // TODO: should this also merge in value prop if set? - 2016-08-05 */ class ControlledInput extends React.Component { constructor...
examples/search-form/modules/SearchForm.js
alexeyraspopov/react-coroutine
import React from 'react'; import Coroutine from 'react-coroutine'; import SearchAPI from './SearchAPI'; /* A coroutine becomes a React component via this wrapper. */ export default Coroutine.create(SearchForm); /* Async generator is used as a component that represents a stateful component with search results. The...
pages/showcase.js
styled-components/styled-components-website
import { withRouter } from 'next/router'; import React from 'react'; import { CSSTransition, TransitionGroup } from 'react-transition-group'; import styled, { css, keyframes } from 'styled-components'; import { sortedProjects } from '../companies-manifest'; import Footer from '../components/Footer'; import Image from '...
client/src/components/post/EditPost.js
adityasharat/react-readable
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchAllPosts, updatePost } from '../../actions/PostActions'; import { fetchCommentForPost } from '../../actions/CommentActions'; class EditPost extends Component ...
example/App.js
ksincennes/react-native-maps
import React from 'react'; import { Platform, View, StyleSheet, TouchableOpacity, ScrollView, Text, Switch, } from 'react-native'; import { PROVIDER_GOOGLE, PROVIDER_DEFAULT } from 'react-native-maps'; import DisplayLatLng from './examples/DisplayLatLng'; import ViewsAsMarkers from './examples/ViewsAsMark...
docs/src/stories/implementations.js
rhalff/storybook
import React from 'react'; import { values } from 'lodash'; import Homepage from '../components/Homepage'; import Header from '../components/Header'; import Heading from '../components/Homepage/Heading'; import Demo from '../components/Homepage/Demo'; import Platforms from '../components/Homepage/Platforms'; import Ma...
src/components/Reset/Reset.js
Zoomdata/nhtsa-dashboard
import React, { Component } from 'react'; import Circle from '../Circle/Circle'; import Label from '../Label/Label'; export default class Reset extends Component { render() { return ( <button className="reset"> <Circle /> <Label /> </button> ); } }
src/common/Socket/Schedule.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: 'ScheduleSocket', getDefaultProps() { return { tooltip: 'Create a Schedule Socket' }; }, getStyles() { return { ...
src/App.js
wescleymatos/iRango
import React, { Component } from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import Home from './components/Home'; import Restaurantes from './components/Restaurantes'; import Sobre from './components/Sobre'; import Login from './components/Login'; import NovoRestaurante from './compone...
client/src/app/components/forms/inputs/MaskedInput.js
zraees/sms-project
import React from 'react' import 'script-loader!jquery.maskedinput/src/jquery.maskedinput.js' export default class MaskedInput extends React.Component { componentDidMount() { var options = {}; if (this.props.maskPlaceholder) options.placeholder = this.props.maskPlaceholder; $(this.refs.input).mask(th...
actor-apps/app-web/src/app/components/common/MentionDropdown.react.js
WangCrystal/actor-platform
import React from 'react'; import classnames from 'classnames'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import { KeyCodes } from 'constants/ActorAppConstants'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; const DROPDOWN_I...
src/pages/system/index.js
pprimm/ds-contest-material
import React from 'react' import {Divider} from 'material-ui' import AppWrapper from '../../components/AppWrapper' import SystemTitleBar from '../../components/SystemTitleBar' import StatusList from '../../components/StatusList' import StatusPanel from '../../components/StatusPanel' import SystemButtonPanel from '../.....
docs/app/Examples/collections/Table/States/TableExampleActive.js
clemensw/stardust
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleActive = () => { return ( <Table celled> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Notes</Tabl...
geonode/contrib/monitoring/frontend/src/components/organisms/error-list/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import HoverPaper from '../../atoms/hover-paper'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table'; import styles from './styles'; import actio...
src/components/card.js
nfcortega89/nikkotoonaughty
import React from 'react'; export default function Card(props) { return ( <div className="card pic-card"> <div className="image"> <img src={props.image.images.standard_resolution.url} /> </div> <div className="card-details"> </div> </div> ) }
src/containers/organizations/components/IntegrationConfigGenerator.js
dataloom/gallery
import React from 'react'; import styled from 'styled-components'; import StyledInput from '../../../components/controls/StyledInput'; import StyledSelect from '../../../components/controls/StyledSelect'; import InfoButton from '../../../components/buttons/InfoButton'; import { DATA_SQL_TYPES, exportTemplate } from '...
src/index.js
easyCZ/react-2048
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
packages/icons/src/md/image/CropPortrait.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdCropPortrait(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M34 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H14c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h20zm0 32V10H14v28h20z" /> </IconBase> ); } export...
src/components/App.js
Tori1810/Task3
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright ยฉ 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/js/components/EndButton.js
BavoG/onesupportdocu
import React from 'react'; import Up from 'grommet/components/icons/base/Up'; import Button from 'grommet/components/Button'; import Box from 'grommet/components/Box'; const CLASS_ROOT = 'infographic__button'; export default function EndButton (props) { return ( <Button plain={true} className={`${CLASS_ROOT} ${...
packages/lore-hook-forms-material-ui/src/blueprints/update/Wizard/index.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Wizard from './Wizard'; export default createReactClass({ render: function() { const { modelName } = this.props; const { model, schema, fieldMap, actionMap, steps, data, validators, ...
app/components/Common/PageLoader/index.js
VineRelay/VineRelayStore
import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.div` `; const PageLoader = () => ( <Wrapper> Loading ... </Wrapper> ); PageLoader.propTypes = { }; export default PageLoader;
src/containers/Header/index.js
Guseff/services-on-map-demo
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import LoginMenu from '../../components/LoginMenu'; import { showLoginMenu, closeLoginMenu, } from '../../actions...
examples/LinkingExample/__tests__/index.ios.js
half-shell/react-navigation
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/components/slider/slide/templates/video-overlay.js
adrienhobbs/redux-glow
import React from 'react'; import styles from './video-slide.css'; import {primaryColor} from 'constants/colors'; const VideoOverlay = () => { return ( <div id='video-home-overlay'> <div className={styles.video_intro}></div> <div className={styles.copy_wrap}> <div className={styles.featured_h...
Native/Learn_TextInput/__tests__/index.ios.js
renxlWin/React-Native_Demo
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 /> ); });
Realization/frontend/czechidm-core/src/components/advanced/Icon/ContractGuaranteeRemoveIcon.js
bcvsolutions/CzechIdMng
import React from 'react'; import { faUserTie, faMinusSquare } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; // import AbstractIcon from './AbstractIcon'; import Icon from '../../basic/Icon/Icon'; /** * Remove assigned identity role. * * @author Ondrej H...
src/svg-icons/image/flash-off.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashOff = (props) => ( <SvgIcon {...props}> <path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/> </SvgIcon> ); ImageFlashOff = pure(ImageFlashOf...
examples/real-world/routes.js
gajus/redux
import React from 'react' import { Route } from 'react-router' import App from './containers/App' import UserPage from './containers/UserPage' import RepoPage from './containers/RepoPage' export default ( <Route path="/" component={App}> <Route path="/:login/:name" component={RepoPage} /> <Route p...
information/blendle-frontend-react-source/app/modules/timeline/components/UpgradeBulletin/Message.js
BramscoChill/BlendleParser
import React from 'react'; import { string, number } from 'prop-types'; function Message({ name, daysLeft }) { // Last day, with name if (daysLeft === 0 && name) { return ( <div className={CSS.message}> <strong>{name}</strong>, let op! Dit is je <strong>laatste dag</strong> gratis Blendle ...
app/Resources/js/containers/home.js
ryota-murakami/daily-tweet
import React from 'react' import { connect } from 'react-redux' import ImportModal from '../components/import/importModal' import Timeline from '../components/timeline' import Header from '../components/header' import '../../sass/common/common.scss' import '../../sass/page/home.scss' class App extends React.Component...
packages/frint-react/src/components/getMountableComponent.js
Travix-International/frint
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import Provider from './Provider'; export default function getMountableComponent(app) { const Component = app.get('component'); const providerProps = { app }; const ComponentInProvider = (componentProps) => { return ( <P...
src/components/EmployeeList.js
amir5000/react-native-manager-app
import _ from 'lodash'; import React, { Component } from 'react'; import { ListView } from 'react-native'; import { connect } from 'react-redux'; import { employeeFetch } from '../actions'; import ListItem from './ListItem'; class EmployeeList extends Component { componentWillMount() { this.props.employeeF...
docs/src/app/components/pages/components/TimePicker/ExampleSimple.js
matthewoates/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; const TimePickerExampleSimple = () => ( <div> <TimePicker hintText="12hr Format" /> <TimePicker format="24hr" hintText="24hr Format" /> <TimePicker disabled={true} format="24hr" hintTex...
src/Stepper/StepLabel.spec.js
manchesergit/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import StepLabel from './StepLabel'; import getMuiTheme from '../styles/getMuiTheme'; describe('<StepLabel />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node, context = {}) => {...
client/fragments/quizzes/debris/index.js
yeoh-joer/synapse
/** * External dependencies */ import React from 'react' import PropTypes from 'prop-types' import page from 'page' /** * Internal dependencies */ import './style.scss' import Button from 'client/components/button' import Card from 'client/components/card' export default class Debris extends React.Component { s...
src/main/js/builder/assets/containers/MediBotInput.js
Bernardo-MG/dreadball-toolkit-webpage
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setMediBot } from 'builder/assets/actions'; import ObservableNumberInput from 'components/ObservableNumberInput'; import { selectMediBots } from 'builder/assets...
spec/javascripts/jsx/blueprint_courses/components/BlueprintModalSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
packages/react/components/block.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '.....
web/src/components/Button/Button.js
gianksp/warbots
import React from 'react' import PropTypes from 'prop-types' import 'bulma/css/bulma.css' export const Button = (props) => { var throwAlert = () => alert("Copy and paste is a design error") return ( <div> <div className="columns"> <div className="column is-half"> ...
src/views/discover/Feedback.js
airloy/objective
/** * Created by Layman(http://github.com/anysome) on 16/3/4. */ import React from 'react'; import {StyleSheet, ScrollView, View, Text, TouchableOpacity, ListView, LayoutAnimation} from 'react-native'; import Button from 'react-native-button'; import moment from 'moment'; import {styles, colors, airloy, api, L, toas...
es6/Radio/Radio.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
modules/components/Students/components/Student/index.js
hmltnbrn/classroom-library
import React from 'react'; import {Link} from 'react-router'; import DocumentTitle from 'react-document-title'; import Paper from 'material-ui/Paper'; import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import Divider from 'material-ui/Divider'; import moment f...
actor-apps/app-web/src/app/components/common/State.react.js
fengshao0907/actor-platform
import React from 'react'; import { MessageContentTypes } from 'constants/ActorAppConstants'; class State extends React.Component { static propTypes = { message: React.PropTypes.object.isRequired }; render() { const { message } = this.props; if (message.content.content === MessageContentTypes.SERVI...
actor-apps/app-web/src/app/components/dialog/messages/Document.react.js
dut3062796s/actor-platform
import React from 'react'; import classnames from 'classnames'; class Document extends React.Component { static propTypes = { content: React.PropTypes.object.isRequired, className: React.PropTypes.string }; constructor(props) { super(props); } render() { const { content, className } = this....
app/components/about_page.js
laynemcnish/personal-site
import React from 'react'; import PureComponent from 'react-pure-render/component'; import ShapeTween from './shape_tween'; export default class AboutPage extends PureComponent { render () { return ( <div className="row"> <div className="col-md-4 shape-container"> <div id="shape-tween">...
node_modules/react-native/Libraries/Text/Text.js
Ten-Wang/hackfoldr-android
/** * 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/containers/toputilizers/containers/TopUtilizersSelectionRowContainer.js
kryptnostic/gallery
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Immutable from 'immutable'; import * as actionFactory from '../TopUtilizersActionFactory'; import TopUtilizersSelectionRow from '../components/TopUtilizersSelectionRo...
app/javascript/mastodon/features/ui/components/drawer_loading.js
imas/mastodon
import React from 'react'; const DrawerLoading = () => ( <div className='drawer'> <div className='drawer__pager'> <div className='drawer__inner' /> </div> </div> ); export default DrawerLoading;
client/src/components/HistoricElementView/HistoricElementView.js
dnadesign/silverstripe-elemental
import React from 'react'; import i18n from 'i18n'; import classnames from 'classnames'; const ElementalAreaHistoryFactory = (FieldGroup) => class HistoricElementView extends FieldGroup { getClassName() { const classlist = [super.getClassName()]; if (this.props.data.ElementID) { classlist.uns...
src/svg-icons/maps/local-play.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPlay = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4....
src/components/Hero/Hero.js
webpack/analyse-tool
import React from 'react'; import styles from './Hero.scss'; import classNames from 'classnames'; export default class Hero extends React.Component { static displayName = 'Hero'; static propTypes = { children: React.PropTypes.node, displayUnderNavbar: React.PropTypes.bool, small: React.PropTypes.bool, ...
src/svg-icons/maps/local-gas-station.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGasStation = (props) => ( <SvgIcon {...props}> <path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.4...
packages/react/components/messagebar-attachment.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '.....