path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
examples/official-storybook/stories/addon-a11y.stories.js
rhalff/storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { setOptions } from '@storybook/addon-options'; import { checkA11y } from '@storybook/addon-a11y'; import BaseButton from '../components/BaseButton'; import DelayedRender from '../components/DelayedRender'; const text = 'Testing the a11y ...
client/components/Todo/TodoContainer.js
marcocom/portfolio-react-webpack2
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import './todo.less'; import Todo from './Todo'; export default class TodoContainer extends Component { static propTypes = { id: PropTypes.number.isRequired, text: PropTypes.string.isRequired, compl...
src/helpers/connectData.js
ThatCheck/ReactProjectRaspberrySchool
import React, { Component } from 'react'; import hoistStatics from 'hoist-non-react-statics'; /* Note: When this decorator is used, it MUST be the first (outermost) decorator. Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods. */ export default function connectData(fetchData, fe...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/MediaHeading.js
Akkuma/npm-cache-benchmark
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 ...
docs/app/Examples/addons/Responsive/Types/ResponsiveExampleMinWidth.js
shengnian/shengnian-ui-react
import React from 'react' import { Responsive, Segment } from 'shengnian-ui-react' const ResponsiveExampleMinWidth = () => ( <Segment.Group> <Responsive as={Segment} minWidth={768}> Visible only if display has <code>768px</code> width and higher </Responsive> <Responsive as={Segment} minWidth={992}...
webpack/components/NewTemplateSync/components/TextButtonField/CheckboxField.js
theforeman/foreman_templates
import React from 'react'; import { Checkbox } from 'patternfly-react'; import PropTypes from 'prop-types'; const CheckboxField = ({ input, item, disabled }) => ( <Checkbox {...input} disabled={disabled} checked={input.value} /> ); CheckboxField.propTypes = { input: PropTypes.object.isRequired, item: PropTypes....
server/sonar-web/src/main/js/apps/account/components/GlobalNotifications.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import AvatarOverlay from '../../../components/avatar_overlay'; import DisplayNam...
app/components/Editor/TabUploadPost.js
dvm4078/dvm-blog
import React from 'react'; import PropTypes from 'prop-types'; import { Editor } from 'react-draft-wysiwyg'; export default class TabUploadPost extends React.Component { static propTypes = { state: PropTypes.object, onEditorStateChange: PropTypes.func, uploadImageCallBack: PropTypes.func, toggleChang...
js/ShowCard.js
takivlasakakis/complete-intro-to-react-v2
import React from 'react' import { Link } from 'react-router' const { string } = React.PropTypes const ShowCard = React.createClass({ propTypes: {//what i expect to get from my parent poster: string.isRequired, title: string.isRequired, year: string.isRequired, description: string.isRequired, imd...
src/app.js
jsconfcn/ningjs
import React from 'react' import ReactDOM from 'react-dom' import Index from 'Components/pages/Index' import Home from 'Components/pages/Home' import Speakers from 'Components/pages/Speakers' import Sponsors from 'Components/pages/Sponsors' import Coc from 'Components/pages/Coc' import Videos from 'Components/pages/Vid...
test/components/Counter.spec.js
ivanminutillo/Sankara
import { spy } from 'sinon'; import React from 'react'; import { shallow } from 'enzyme'; import { BrowserRouter as Router } from 'react-router-dom'; import renderer from 'react-test-renderer'; import Counter from '../../app/components/Counter'; function setup() { const actions = { increment: spy(), incremen...
app/containers/App/index.js
iPhaeton/Selectors-study
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'components/Header'; import F...
test/ItemList.js
literarymachine/crg-ui
import { describe, it } from 'mocha' import React from 'react' import assert from 'assert' import { mount } from 'enzyme' import testdata from './resources/ItemList.json' import ItemList from '../src/components/ItemList' import I18nProvider from '../src/components/I18nProvider' import EmittProvider from '../src/compon...
src/svg-icons/content/redo.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
src/components/Login.js
Phizzard/Reactbase-cms
import React, { Component } from 'react'; import Authentication from '../controllers/Authentication'; import {Card, CardActions, CardTitle, TextField, RaisedButton } from 'material-ui'; export default class Login extends Component { render(){ const inputStyle = { display: 'block' ...
src/Dialog/Dialog.spec.js
AndriusBil/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import Paper from '../Paper'; import Fade from '../transitions/Fade'; import Dialog from './Dialog'; describe('<Dialog />', () => { let shallow; let classes; before(() => { shallow ...
form/views/EmailFieldView.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import {html} from 'components'; import FieldWrapper from './FieldWrapper'; const bem = html.bem('EmailFieldView'); export default class EmailFieldView extends React.Component { static propTypes = { className: PropTypes.string, input...
V2-Node/esquenta.v2/UI/src/views/Widgets/Widget03.js
leandrocristovao/esquenta
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules } from 'reactstrap/lib/utils'; const propTypes = { children: PropTypes.node, className: PropTypes.string, cssModule: PropTypes.object, dataBox: PropTypes.func, }; const d...
src/svg-icons/image/vignette.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageVignette = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/> </SvgIcon>...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
fhchina/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstant...
node_modules/redux-form/es/__tests__/Form.spec.js
saltypaul/SnipTodo
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...
src/app/controllers/Moon.js
mazahell/eve-react-app
import React from 'react' import {connect} from 'react-redux' import {unmountMoon, getScheme, updFalse, updPrice, recalculate} from '../actions/moonActions' import {setHead} from '../actions/appActions' import {map} from 'lodash' // components import TableResourses from './../components/resourses/moon/Tables' import C...
imports/ui/pages/Login.js
themeteorchef/base
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import handleLogin from '../../modules/login'; export default class Login extends React.Component { componentDidMount() { handleLogin({ component: this }); }...
src/client/components/UserMenuWidget/UserMenuWidget.js
trippian/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' import store from '../../redux/store' import { FormattedMessage } from 'react-intl' const UserMenuWidget = ({ displayName, isAdmin, picture, isAuthed }) => { // const { // } = store.getState().appState.get('user') r...
client/src/components/Draft/DraftTeamList.js
BDiuguid/fantasy-fifa
import React from 'react'; import styled from 'styled-components'; const Flex = styled.div` display: flex; `; const Container = styled.div` padding: ${props => props.theme.spacing}px; width: 200px; line-height: 1.5; `; const SpaceBetween = styled.div` display: flex; justify-content: space-between; `; co...
docs/build.js
dozoisch/react-bootstrap
/* eslint no-console: 0 */ import fsp from 'fs-promise'; import path from 'path'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import {match, RouterContext} from 'react-router'; import Root from './src/Root'; import routes from './src/Routes'; import metadata from './generate-metadata'; ...
src/lib/scripts/components/DialogHost.js
ggarek/react-dialogista
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import Overlay from './Overlay'; import DialogsSummary from './DialogsSummary'; import ReactCSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import FirstChild from './FirstChild'; import { connect } from 'rea...
packages/react-error-overlay/src/components/Header.js
ConnectedHomes/create-react-web-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { red } from '../styles'; const headerStyle = { fontSize: '2em', fontFamily: 'sans-se...
src/components/handlers/InfoHandler.js
cpsubrian/redis-explorer
import React from 'react' import ImmutablePropTypes from 'react-immutable-proptypes' import autobind from 'autobind-decorator' import pureRender from 'pure-render-decorator' import connectToStores from 'alt/utils/connectToStores' import throttle from '../../utils/throttle' import hostsStore from '../../stores/hostsStor...
_experiment/react-fetch-github-repo/v3-stable/src/Repo.js
David-JC/react-testing
import React from 'react'; import {render} from 'react-dom'; // Single element const Repo = ({repo, item}) => ( <article> <div className='article-content'> {item} <a href={repo.svn_url}> <h3 className='title'>{repo.name}</h3> </a> <p className='description'>{repo.description}</p> <span className=...
src/app.js
PetrBuslyuk/_______________
import React from 'react'; import ReactDOM from 'react-dom'; import './css/main.css'; import { Header, Footer, Content } from './components'; ReactDOM.render( <div className="main"> <Header /> <Content /> <Footer /> </div>, document.getElementById('root') );
src/svg-icons/editor/format-indent-increase.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatIndentIncrease = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/> </SvgIcon> ); EditorFormatIndentIncrease...
contento/js-source/node_modules/react-sortable/example-real-world/js/App.js
inmagik/contento
import React from 'react'; import ReactDOM from 'react-dom'; import SortableListItem from './SortableListItem'; import SortableGridItem from './SortableGridItem'; import StateView from './StateView'; var App = React.createClass({ getInitialState: function() { return { items: [ "Gold", "Cri...
app/routes.js
liveyourheart/woke-electron
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CounterPage from './containers/CounterPage'; import PomodoroPage from './containers/PomodoroPage'; import StopWatchPage from './containers/StopWatchPage';...
DeleteBar.js
alangpierce/LambdaCalculusPlayground
/** * The "Delete bar" is the area at the top of the screen where you can drag * expressions to remove them. * * @flow */ import React from 'react'; import shallowCompare from 'react-addons-shallow-compare'; import { Text, } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; imp...
src/modules/editor/components/popovers/tooltip/TooltipItem/TooltipItem.js
CtrHellenicStudies/Commentary
import React from 'react'; import autoBind from 'react-autobind'; import { connect } from 'react-redux'; import { RichUtils, } from 'draft-js'; // redux import editorActions from '../../../../actions'; // components import TooltipItemButton from '../TooltipItemButton'; class TooltipItem extends React.Component { ...
src/client/components/Page.js
EdgeJay/web-starterkit
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const Container = styled.div` padding: 0 1rem; max-width: 100%; height: 100%; `; const Row = styled.div` height: 100%; `; const Page = props => ( <Container className="container"> <Row className="row"...
example/__tests__/App.js
flywingdevelopers/rn-naive
import 'react-native'; import React from 'react'; import App from '../App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <App /> ); });
src/index.js
ibsukru/pizzaStore
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' import registerServiceWorker from './registerServiceWorker' ReactDOM.render(<App />, document.getElementById('root')) registerServiceWorker()
tests/Rules-isLength-spec.js
meraki/mki-formsy-react
import React from 'react'; import TestUtils from 'react-dom/test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); class TestForm extends React.Component { render() { r...
src/common/notificator/create/list/CreateNotificationsList.js
fastmonkeys/respa-ui
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'react-bootstrap'; import moment from 'moment'; const CreateNotificationsList = (props) => { const { notifications, onClick } = props; return ( <div className="notification-list"> <h4>Notifications list</h4> <Table...
admin/client/App/screens/List/components/ListColumnsForm.js
creynders/keystone
import React from 'react'; import assign from 'object-assign'; import Popout from '../../../shared/Popout'; import PopoutList from '../../../shared/Popout/PopoutList'; import { FormField, FormInput } from 'elemental'; import ListHeaderButton from './ListHeaderButton'; import { setActiveColumns } from '../actions'; v...
src/svg-icons/image/image-aspect-ratio.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageImageAspectRatio = (props) => ( <SvgIcon {...props}> <path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H...
src/components/examples/constructorFunc.js
Jguardado/HiRproject
import React, { Component } from 'react'; /** * Class respresenting a Constructor Function * @constructor */ export default class Contructor extends Component { constructor(props) { super(props); /** intializing the state of the component */ this.state = { /** Anything assigned in the state obj...
shared/components/SubComponents/Question/Upload.js
KCPSoftware/KCPS-React-Starterkit
import React, { Component } from 'react'; import Dropzone from 'react-dropzone'; import { connect } from 'react-redux'; import { saveFileQuestion, deleteFileQuestion } from '../../../actions/questionActions'; import { getFile } from '../../../actions/userFileActions'; import Validation from '../../../utils/validation/V...
node_modules/react-router/es/Route.js
together-web-pj/together-web-pj
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 _classCallCheck(instance, Constructor) { if (!(insta...
src/ListItem/__tests__/ListItem_test.js
kmees/react-fabric
import React from 'react' import { render, mount } from 'enzyme' import test from 'tape' import ListItem from '..' import ListItemAction from '../ListItemAction.js' test('ListItem', t => { t.ok(ListItem, 'export') t.equal(ListItem.Action, ListItemAction, '.Action export') t.equal(ListItem.displayName, 'FabricCo...
js/common/Toolbar.android.js
BarberHour/barber-hour
import React, { Component } from 'react'; import { View, StyleSheet, ToolbarAndroid, } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; const Toolbar = (props) => { const border = props.border ? <View style={styles.border}/> : <View />; const content = props.backIcon ? ( ...
docs-site/src/components/FunctionDocumentation.js
brightinteractive/bright-js-framework
import React from 'react' import { Card, CardHeader, CardText } from 'material-ui' import { Subheader } from './Headers' import { Comment, FunctionSignature, ParameterListDoc, Type } from './api-documentation-components' /** * Render documentation for each signature of a free function */ const FunctionDocumentation ...
docs/server.js
yickli/react-bootstrap
import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development = process.env.NODE_ENV !== 'p...
src/Survey/Complex/Default/Samples/Edit.js
NERC-CEH/irecord-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { IonPage, IonList } from '@ionic/react'; import AppHeader from 'Components/Header'; import Footer from 'Components/PhotoPickerFooter'; import AppMain from 'Components/Main'; import DynamicMenuAttrs from 'Components/DynamicMenuAttrs'; ...
packages/react/src/components/InlineCheckbox/InlineCheckbox.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import { settings } from 'carbon-components'; import mergeRefs from '../../too...
test/specs/modules/Popup/Popup-test.js
koenvg/Semantic-UI-React
import _ from 'lodash' import React from 'react' import Portal from 'src/addons/Portal/Portal' import { SUI } from 'src/lib' import Popup, { POSITIONS } from 'src/modules/Popup/Popup' import PopupHeader from 'src/modules/Popup/PopupHeader' import PopupContent from 'src/modules/Popup/PopupContent' import * as common fr...
app/javascript/flavours/glitch/features/direct_timeline/components/conversation.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from 'flavours/glitch/components/status_content'; import AttachmentList from 'flavours/glitch/components/at...
featuring-react-gui/src/login/LogoutButton.js
ccortezia/featuring
import React from 'react'; import {destroySessionToken} from '../remote'; export function LogoutButton({onLogout}) { return ( <button className="btn btn-default" onClick={onClickHandler}>Logout</button> ); function onClickHandler() { destroySessionToken(); onLogout(); } }
UmbracoReactStarterKit/app/src/ServerApp.js
systempioneer/ReactUmbracoExample
import React, { Component } from 'react'; import './App.css'; import { StaticRouter as Router, Route } from 'react-router'; import ContentPage from './ContentPage'; class App extends Component { constructor(props) { super(props) } render() { const { initialState } = this.props const RoutedConte...
public/app/src/components/run.js
bikesharehawaii/hibikeshare
import React from 'react'; import App from './Main'; // Render the main component into the dom React.render(<App />, document.getElementById('app'));
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Jumbotron.js
Akkuma/npm-cache-benchmark
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/popup/components/Either/index.js
fluany/fluany
/** * @fileOverview A helper component to handler conditions * @name index.js<Either> * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' const Either = props => (props.when ? props.right : props.left) const { element, bool } = PropTypes /** * PropTypes *...
fields/types/numberarray/NumberArrayFilter.js
michaelerobertsjr/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label: 'Between', value: 'between'...
library_js/src/index.js
HoldYourBreath/Library
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import { BrowserRouter } from 'react-router-dom'; import registerServiceWorker from './registerServiceWorker'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import '../node_modules/bootstrap/dist/css/bootstrap-theme...
frontend/app/js/components/notifications/list.js
serverboards/serverboards
import React from 'react' import Loading from 'app/components/loading' import NotificationItem from './item' import {months} from 'app/utils' import {i18n} from 'app/utils/i18n' import {SectionMenu} from 'app/components' require('sass/table.sass') function Menu(props){ return ( <div className="ui secondary top ...
packages/react-interactions/events/src/dom/Scroll.js
flarnie/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactDOMResponderEvent, ReactDOMResponderContext, PointerType, } from 'shared/ReactDOMTypes'; impo...
pages/404.js
InnoD-WebTier/irc
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { config } from 'config'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; export default class NotFound extends Component { render () { return ( <div className="page page--not-found"> ...
client/components/LoginForm.js
homanbromand/node-react-bootstrap
import React from 'react' import { Link } from 'react-router' import { login } from 'client/actions/sessionActions' export default class Login extends React.Component { constructor() { super() this.handleLogin = this.handleLogin.bind(this) } handleLogin(e) { e.preventDefault() const email = this.emailIn...
src/components/MainContent/index.js
f74981743/f74981743.github.io
import React, { Component } from 'react'; export default class MainContent extends Component { render() { return ( <div className="main-content"> main page </div> ) } }
react/exercises/part_07/src/components/App.js
jsperts/workshop_unterlagen
import React from 'react'; import PropTypes from 'prop-types'; import './App.css'; import Header from './Header'; import NavBar from './NavBar'; import AddContactContainer from '../containers/AddContact'; import ContactsListContainer from '../containers/ContactsList'; function App({ showAddContact, onShowAddContact }...
src/FileMessage/__tests__/FileMessage.js
Detaysoft/react-chat-elements
import React, { Component } from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import FileMessage from '../FileMessage'; describe('FileMessage component', () => { it('should render without issues', () => { const component = shallow(<FileMessage />); expect(component.length)...
lib/Routes.js
davidbecker6081/ConnectME
import React, { Component } from 'react'; import { Route } from 'react-router'; // import firebase from 'firebase'; // import { signIn } from './firebase'; import FacebookContainer from './containers/FacebookContainer'; import MessageContainer from './containers/MessageContainer'; import NavHeaderContainer from './cont...
examples/js/style/inline-style-table.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; ...
src/shared/components/login/login.js
alexspence/operationcode_frontend
import Section from 'shared/components/section/section'; import React, { Component } from 'react'; import Form from 'shared/components/form/form'; import { Redirect } from 'react-router-dom'; import axios from 'axios'; import PropTypes from 'prop-types'; import config from 'config/environment'; import _ from 'lodash'; ...
src/components/List/ListItemText.js
sk-iv/iva-app
import React from 'react'; import type { Node } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; // import Typography from '../Typography'; export type Props = { /** * Useful to extend the style applied to components. */ classes?: Object, /** * @ignore */ cl...
src/components/Cta/Cta.js
FCCColumbus/F3C_Website
import React from 'react'; import styles from './styles.module.scss'; const Cta = () => ( <div className={styles.cta}> <div className={styles.wrap}> <div className={styles.title}> <h2>Here‘s why you should join our open source community right now:</h2> </div> <div className={styles.list...
Mung/__tests__/index.android.js
mochixuan/Mung
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
firstProject/index.android.js
gergob/reactNativeSamples
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class firstProject extends Component { render() { return ( <View style={styles.contai...
src/mui/input/LongTextInput.spec.js
azureReact/AzureReact
import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import LongTextInput from './LongTextInput'; describe('<LongTextInput />', () => { describe('error message', () => { it('should not be displayed if field is pristine', () => { const wrapper = shallow( ...
webpack/move_to_foreman/components/common/table/formatters/ellipsisCellFormatter.js
mccun934/katello
import React from 'react'; import EllipsisWithTooltip from 'react-ellipsis-with-tooltip'; import cellFormatter from './cellFormatter'; export default value => cellFormatter(<EllipsisWithTooltip>{value}</EllipsisWithTooltip>);
docs/app/Examples/elements/Button/index.js
aabustamante/Semantic-UI-React
import React from 'react' import Content from './Content' import Groups from './Groups' import GroupVariations from './GroupVariations' import States from './States' import Types from './Types' import Variations from './Variations' import Usage from './Usage' const ButtonExamples = () => ( <div> <Types /> <...
docs/pages/components/text-fields.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'components/text-fields'; const requireDemo = require.context('docs/src/pages/components/text-fields', false, /\.(js|tsx)$/); cons...
frontend/src/Settings/Profiles/Delay/DelayProfilesConnector.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { deleteDelayProfile, fetchDelayProfiles, reorderDelayProfile } from 'Store/Actions/settingsActions'; import createTagsSelector f...
src/components/add-book-pages.js
KoushikKumar/trade-a-book-client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { BOOK_TITLE, AUTHOR, IMAGE_URL, NO_OF_PAGES, PRICE, PUBLICATION_YEAR, DESCRIPTION } from '../constants/placeholder-constants'; import { ADD } from '../constants/content-const...
v2/src/App.js
nosnickid/orthogonal-automatons
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/...
test/ColSpec.js
RichardLitt/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Col from '../src/Col'; describe('Col', function () { it('Should set Offset of zero', function () { let instance = ReactTestUtils.renderIntoDocument( <Col xsOffset={0} smOffset={0} mdOffset={0} lgOffset={0} /> ); ...
src/utils/index.js
ericsonmichaelj/fear-the-repo
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import DevTools from 'containers/DevToolsWindow'; export function createConstants (...constants) { return constants.reduce((acc, constant) => { acc[constant] = constant; return acc; }, {}); } export functi...
main.js
bbailey-cando/agent11
import 'babel-polyfill'; import 'whatwg-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import FastClick from 'fastclick'; import { Provider } from 'react-redux'; import store from './core/store'; import router from './core/router'; import history from './core/history'; let routes = require('....
examples/react-router/src/App.js
joshblack/carbon-components-react
import React, { Component } from 'react'; import { Breadcrumb, BreadcrumbItem, Tabs, Tab } from 'carbon-components-react'; import { Switch, Route, Link, Redirect, withRouter } from 'react-router-dom'; import './App.scss'; const LandingPage = ({ children }) => ( <div> <h1>React Router & Carbon React Components</h...
src/swipedeck/__tests__/SwipeDeck.js
kosiakMD/react-native-elements
/*eslint-disable no-console */ import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import SwipeDeck from '../SwipeDeck'; // test data const DATA = [ { id: 1, text: 'Amanda', age: 28, uri: 'http://f9view.com/wp-content/uploads/2013/10/American-Beauti...
fields/types/embedly/EmbedlyField.js
tanbo800/keystone
import React from 'react'; import Field from '../Field'; import { FormField, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'EmbedlyField', // always defers to renderValue; there is no form UI for this field renderField () { return this.renderValue(); }, renderValue (path, label, ...
pages/api/bottom-navigation-button.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './bottom-navigation-button.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);...
src/containers/shared-assets/filters/redux-input-filter.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import Select from 'antd/lib/select'; import 'antd/lib/select/style/css'; const InputFilter = ({attribute, filter, multiple, handleSelect, value}) => { const Option = Select.Option; const options = attribute.map(a=> ( <Option instancePrefix={a} ...
src/components/mediabox/mediabox_body.js
woshisbb43/coinMessageWechat
import React from 'react'; import classNames from '../../utils/classnames'; /** * Content of Mediabox * */ export default class PanelBody extends React.Component { render() { const {children, className, ...others} = this.props; const cls = classNames({ 'weui-media-box__bd': true ...
src/Alert.js
mxc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel: React.PropTypes.string }, getD...
docs/app/Examples/modules/Dropdown/index.js
jcarbo/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'stardust' const DropdownExamples = () => ( <div> <ExampleSection title='Types'> <ComponentExample...
server/configs.js
MxMcG/malachi
import React from 'react'; import database from './database/index.js'; // import gutil from 'gulp-util'; import content from '../projects/wwf/content/content.json' import prodContent from '../projects/wwf/content/productionContent.json' export const setupConfigs = (env, activeProject, callback) => { const config = {...
client/src/components/appmenu/AppMenu.js
OpenSecTre/sword
import React, { Component } from 'react'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import classes from './_style.scss'; import IconSettings from 'material-ui/svg-icons/action/settings'; import IconScan from 'material-ui/svg-icons/actio...
src/components/containers/shen-wen-suo-board-market-container.js
HuangXingBin/goldenEast
import React from 'react'; import { Button, AutoComplete ,DatePicker } from 'antd'; import './user-list-container.css'; import UserListTable from '../views/user-details-board-market-table'; import { connect } from 'react-redux'; import SearchInput from '../views/SearchInput'; import store from '../../store'; import { u...
tests/views/SearchView.spec.js
franferdez/fuga-challenge
import React from 'react' describe('(View) Search', () => { it('should exist', () => { }) })
components/nav.js
kentcdodds/glamorous-website
import preval from 'preval.macro' import React from 'react' import glamorous from 'glamorous' import {algoliaSettings} from '../components/algolia-config' import {Anchor} from '../components/styled-links' import LipstickIcon from './lipstick-icon' import Separator from './separator' import LocaleChooser from './locale-...
react/src/components/App.js
rumbleyam/morty-api
import React from 'react'; import Switcher from './Switcher'; import {withTheme, withStyles} from 'material-ui/styles'; import Paper from 'material-ui/Paper'; import Tabs, {Tab} from 'material-ui/Tabs'; import Typography from 'material-ui/Typography'; import AppBar from 'material-ui/AppBar'; import {connect} from 'r...