path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
react-semi-theme/src/widgets/Confirm.js
tsupol/semi-starter
/* eslint-disable import/default */ import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; class Confirm extends Component { constructor(props, context) { super(props, context); this.state = { open: false, ...
client/admin/info/RocketChatSection.js
iiet/iiet-chat
import { Skeleton } from '@rocket.chat/fuselage'; import React from 'react'; import Subtitle from '../../components/basic/Subtitle'; import { useTranslation } from '../../contexts/TranslationContext'; import { useFormatDateAndTime } from '../../hooks/useFormatDateAndTime'; import { useFormatDuration } from '../../hook...
example/Example.js
quocnguyenvan/react-native-animated-message
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableOpacity, Picker } from 'react-native'; import Message from 'react-native-animated-message'; export default class Example extends Component { constructor(props) { super(props); this.state = { position: 'top', ...
src/internal/__tests__/Selection-test.js
jzhang300/carbon-components-react
import React from 'react'; import Selection from '../Selection'; import { mount } from 'enzyme'; describe('Selection', () => { let mockProps; beforeEach(() => { mockProps = { initialSelectedItems: [], render: jest.fn(() => <div />), }; }); it('should render', () => { const wrapper = m...
js-old/src/modals/VaultSelector/vaultSelector.spec.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
app/containers/BattleContainer.js
paladinze/testSemantic
import React from 'react' import BattlePrompt from '../components/BattlePrompt' import CourseHelpers from '../utils/CourseHelpers' class BattleContainer extends React.Component { static contextTypes = { router: React.PropTypes.object.isRequired } state = { isLoading: true, coursesInfo: [] } comp...
pkg/interface/publish/src/js/components/lib/comment-item.js
jfranklin9000/urbit
import React, { Component } from 'react'; import moment from 'moment'; import { Sigil } from './icons/sigil'; import { CommentInput } from './comment-input'; import { uxToHex, cite } from '../../lib/util'; export class CommentItem extends Component { constructor(props) { super(props); this.state = { c...
src/RouteContainer.js
devknoll/relay-nested-routes
import PropTypes from 'prop-types'; import React from 'react'; import StaticContainer from 'react-static-container'; import mergeRouteParams from './utils/mergeRouteParams'; const propTypes = { queries: PropTypes.object.isRequired, routerProps: PropTypes.object.isRequired, children: PropTypes.element.isRequired...
Redux-Async/test/helpers/shallowRenderHelper.js
FillInjava/react-redux-webpack
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
features/app/components/App.native.js
jitsi/jitsi-meet-react
import React from 'react'; import { Linking, Navigator } from 'react-native'; import { Provider } from 'react-redux'; import { _getRouteToRender } from '../functions'; import { AbstractApp } from './AbstractApp'; /** * Root application component. * * @extends AbstractApp */ export class App extends AbstractApp { ...
src/Survey/Complex/Default/Edit/Main/components/SpeciesList/components/SubSample/index.js
NERC-CEH/irecord-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { IonItemOption, IonItemOptions, IonItem, IonItemSliding, IonButton, } from '@ionic/react'; import './styles.scss'; @observer class index extends Component { static propTypes = { ...
scripts/client/components/Main.js
antca/antca.github.io
import Header from './Header'; import Footer from './Footer'; import DrawerMenu from './DrawerMenu'; import {mainStore} from '../MainFlux'; import React from 'react'; import Reflux from 'reflux'; import {RouteHandler} from 'react-router'; var Main = React.createClass({ mixins: [Reflux.listenTo(mainStore, "onStoreEve...
src/components/TextInput.js
mitchgavan/got-your-money
import React, { Component } from 'react'; import styled from 'styled-components'; import { space, width, fontSize, color } from 'styled-system'; import theme from '../theme'; import Block from './Block'; const Label = styled.label` display: block; position: relative; margin: 0; font-size: 0.875rem; font-weig...
internals/templates/notFoundPage/notFoundPage.js
huahuaxiong/console
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
app/jsx/external_apps/components/TextInput.js
djbender/canvas-lms
/* * Copyright (C) 2014 - 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...
examples/js/pagination/demo.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import DefaultPaginationTable from './default-pagination-table'; import CustomPaginationTable from './custom-pagination-table'; import PaginationHookTable from './pagination-hook-table'; class Demo extends React.Component { render() { return ( <div> ...
app/app.js
filso/react-components-graph
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
client/app/components/ImpresionesContador/ImpresionesContador.js
krouw/T.SIA-electron-blueprint
// @flow import React, { Component } from 'react'; import { Row, Col } from 'react-flexbox-grid'; class ImpresionesContador extends Component { constructor(props){ super(props); this.state = { first: 0, } } onChange(e){ this.setState({[e.target.name]: e.target.value}); } addFristConta...
src/routes/error/index.js
egut/react-docker-demo
/** * 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 ErrorPage from './Err...
examples/react-router/app/views/lists/parts/item-form.js
leobauza/microcosm
import React from 'react' import ActionForm from 'microcosm/addons/action-form' import { addItem } from '../../../actions/items' class ItemForm extends React.PureComponent { state = { name: '' } reset = () => { this.setState({ name: '' }) } setName = e => { this.setState({ name: e.target.value...
src/js/components/Bloglist.js
Zmingg/qcblog-react
import React, { Component } from 'react'; import style from '../../scss/blog.scss'; import { Link } from 'react-router-dom'; const defaultImg = require('../../img/thumb_default.jpg'); export default class Bloglist extends Component { constructor(props){ super(props); this.state = { blogs:[], ...
docs-ui/components/pagination.stories.js
beeftornado/sentry
import React from 'react'; import PropTypes from 'prop-types'; import {withInfo} from '@storybook/addon-info'; import Pagination from 'app/components/pagination'; export default { title: 'Core/Pagination', }; const withBoth = `<https://sentry.io/api/0/organizations/sentry/issues/?cursor=1603798246000:0:1>; rel="pr...
ui/effects/use-combined-refs.js
lbryio/lbry-app
import React from 'react'; export default function useCombinedRefs(...refs) { const targetRef = React.useRef(); React.useEffect(() => { refs.forEach(ref => { if (!ref) return; if (typeof ref === 'function') { ref(targetRef.current); } else { ref.current = targetRef.current; ...
app/components/events/JoinEventButton.js
alexko13/block-and-frame
import React, { Component } from 'react'; // import eventHelpers from '../../utils/eventHelpers'; // This component needs id of event as a prop class JoinEventButton extends Component { constructor(props) { super(props); this.onJoinEventWithContributions = this.onJoinEventWithContributions.bind(this);...
packages/wix-style-react/src/VerticalTabsItem/test/VerticalTabsItem.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import Add from 'wix-ui-icons-common/Add'; import VerticalTabsItem from '../VerticalTabsItem'; const tests = [ { describe: 'type', its: [ { it: 'tab', props: { type: 'tab', }, }, { ...
client/views/setupWizard/steps/SettingsBasedStep.stories.js
iiet/iiet-chat
import { boolean, select, text } from '@storybook/addon-knobs'; import React from 'react'; import SettingsBasedStep from './SettingsBasedStep'; export default { title: 'views/setupWizard/steps/SettingsBasedStep', component: SettingsBasedStep, }; export const _default = () => <SettingsBasedStep step={select('ste...
docs/app/Examples/views/Statistic/Content/StatisticExampleValueShorthand.js
shengnian/shengnian-ui-react
import React from 'react' import { Statistic } from 'shengnian-ui-react' const StatisticExampleValueShorthand = () => ( <Statistic.Group> <Statistic label='Saves' value='22' /> <Statistic label='Signups' value='Three Thousand' text /> <Statistic label='Flights' value='5' /> <Statistic label='Team Mem...
src/router.js
vincentdd/crm
import React from 'react' import PropTypes from 'prop-types' import { Router } from 'dva/router' import App from 'routes/app' const registerModel = (app, model) => { if (!(app._models.filter(m => m.namespace === model.namespace).length === 1)) { app.model(model) } } const Routers = function({ history, a...
src/plot/series/polygon-series.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/components/NotFoundPage.js
rak2112/movie-base
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
src/utils/withWidth.spec.js
ichiohta/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow, mount} from 'enzyme'; import {assert} from 'chai'; import withWidth, {MEDIUM, LARGE} from './withWidth'; describe('utils/withWidth', () => { const Dumb = () => <div />; const DumbWithWidth = withWidth()(Dumb); describe('server side rendering', ...
docs/app/Examples/elements/Header/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import Types from './Types' import Content from './Content' import States from './States' import Variations from './Variations' const HeaderExamples = () => ( <div> <Types /> <Content /> <States /> <Variations /> </div> ) export default HeaderExamples
node_modules/rc-calendar/es/decade/DecadePanel.js
prodigalyijun/demo-by-antd
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-run...
src/TableBody.js
prince1809/react-grid
import React from 'react'; class TableBody extends React.Component{ constructor(props){ super(props); } } export default TableBody;
docs/app/Examples/elements/Label/Types/LabelExamplePointingColored.js
koenvg/Semantic-UI-React
import React from 'react' import { Divider, Form, Label } from 'semantic-ui-react' const LabelExamplePointing = () => ( <Form> <Form.Field> <input type='text' placeholder='First name' /> <Label basic color='red' pointing>Please enter a value</Label> </Form.Field> <Divider /> <Form.Field>...
src/loader/Loader.js
ipfs/webui
import React from 'react' import './Loader.css' export const Loader = ({ color = 'light', ...props }) => { const className = `dib la-ball-triangle-path la-${color} la-sm` return ( <div {...props}> <div className={className} style={{ width: 20, height: 20 }}> <div /> <div /...
stories/Slider.js
ecmadao/light-ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import SliderWrapper from '../examples/SliderWrapper'; storiesOf('Slider', module) .add('basical', () => ( <SliderWrapper /> ));
packages/core/src/icons/components/RadioSelected.js
iCHEF/gypcrete
import React from 'react'; export default function SvgRadioSelected(props) { return ( <svg width="1em" height="1em" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" {...props} > <rect x={7} y={7} width={18} height={18} rx={9} ...
app/utils/injectSaga.js
pauleonardo/demo-trans
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {function} saga A r...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
TootCat/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ColumnCollapsable from '../../../components/column_collapsable'; import SettingToggle from '../../notifications/com...
src/components/RowContainer.js
ttrentham/Griddle
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from '../utils/griddleConnect'; import compose from 'recompose/compose'; import mapProps from 'recompose/mapProps'; import getContext from 'recompose/getContext'; import { columnIdsSelector, rowDataSelector, rowPropertiesSelector, ...
src/components/common/TextEditor/Nodes/ParagraphNode.js
anztrax/simple-image-server-frontend
import React from 'react'; export default class ParagraphNode extends React.Component{ constructor(props){ super(props); } render(){ return ( <p>{this.props.children}</p> ) } }
src/svg-icons/editor/format-color-fill.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorFill = (props) => ( <SvgIcon {...props}> <path d="M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 ...
src/Eventplanner/Calendar.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; import uncontrollable from 'uncontrollable'; import cn from 'classnames'; import { accessor, elementType, dateFormat, views as componentViews } from './utils/propTypes'; import localizer from './localizer'; import { notify } from './utils/helpers'; import ...
src/PredefinedRanges.js
trueanthem/react-date-range
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import parseInput from './utils/parseInput.js'; import { defaultClasses } from './styles.js'; class PredefinedRanges extends Component { constructor(props, context) { super(props, context); this.style...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js
josephfinlayson/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
src/deprecated/Navbar.js
Sipree/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import deprecated from 'react-prop-types/lib/deprecated'; import elementType from 'react-prop-types/lib/elementType'; import Grid from '../Grid'; import NavBrand from '../NavBrand'; import tbsUtils, { bsClass, bsStyles } from '../utils/bootstrapUtils'; i...
Example/App.js
rayshih/react-native-image-picker
import React from 'react'; import { AppRegistry, StyleSheet, Text, View, PixelRatio, TouchableOpacity, Image, } from 'react-native'; import ImagePicker from 'react-native-image-picker'; export default class App extends React.Component { state = { avatarSource: null, videoSource: null }; ...
src/svg-icons/hardware/developer-board.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDeveloperBoard = (props) => ( <SvgIcon {...props}> <path d="M22 9V7h-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2v-2h-2V9h2zm-4 10H4V5h14v14zM6 13h5v4H6zm6-6h4...
src/svg-icons/toggle/star-border.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
tests/components/Header/Header.spec.js
chenyang0424/initial-project
import React from 'react' import { Header } from 'components/Header/Header' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header />) }) it('Renders a welcome message', () => { ...
src/components/AddStockButton/AddStockButton.js
pvijeh/stock-tracking-app-reactjs
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; import withStyle...
packages/cf-component-box/src/Box.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; import propertiesSpec from './propertiesSpec'; const propertyNames = Object.keys(propertiesSpec); // Generates styles given the provided props. // // This is driven by the metadata provided in properti...
test/lists/list-item-spec.js
tomrosier/material-ui
import React from 'react'; import ListItem from 'lists/list-item'; import Checkbox from 'checkbox'; import injectTheme from '../fixtures/inject-theme'; import TestUtils from 'react-addons-test-utils'; describe('ListItem', () => { let ThemedListItem; beforeEach(() => { ThemedListItem = injectTheme(ListItem); ...
node_modules/react-router/es/Switch.js
bburnett-cpf/react-intro
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/svg-icons/device/devices.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDevices = (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"/> </Sv...
src/svg-icons/action/hourglass-empty.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHourglassEmpty = (props) => ( <SvgIcon {...props}> <path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/> ...
test/SafeAnchorSpec.js
herojobs/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import SafeAnchor from '../src/SafeAnchor'; describe('SafeAnchor', function() { it('renders an anchor tag', function() { const instance = ReactTestUtils.renderIntoDocument(<SafeAnchor />); const node = React.findDOMNode(instanc...
tests/lib/rules/vars-on-top.js
mathiasbynens/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
app/react-icons/fa/history.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaHistory extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m37.3 20q0 3.5-1.4 6.7t-3.6 5.4-5.5 3.7-6.7 1.3q-3.8 0-7.3-1.6t-5.8-4.5q-0.2...
src/main.js
RequestTimeout408/alba-task
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
src/containers/pages/decks/deck/right-container/sections/comments/comment/header.js
vFujin/HearthLounge
import React from 'react'; import MoreOptions from "../../../../../../../../components/more-options/more-options"; import {wrapDate} from "../../../../../../../../utils/wrap-date"; export const CommentHeader = ({authenticated, activeUserId, comment, handleCommentOptionsClick}) =>{ const {created, patch, commentId, a...
tests/components/SideNav.spec.js
longseespace/quickflix
import React from 'react' import { shallow, mount } from 'enzyme' import sinon from 'sinon' import SideNav, { SideNavActivator } from 'components/SideNav' describe('(Component) SideNav', () => { it('renders as a <div>', () => { const wrapper = shallow(<SideNav />) expect(wrapper.type()).to.equal('div') }) ...
assets/javascripts/kitten/components/navigation/header-nav/components/centered.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' export const Centered = ({ children, className, display, ...props }) => { const classNameProps = classNames( 'k-HeaderNav__centered', { 'k-HeaderNav__column': display === 'column' }, className, ) return ...
app/javascript/mastodon/components/autosuggest_input.js
koba-lab/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
src/controls/FullscreenControl.js
gribnoysup/react-yandex-maps
import React from 'react'; import PropTypes from 'prop-types'; import { withParentContext } from '../Context'; import withYMaps from '../withYMaps'; import { BaseControl } from './BaseControl'; export function FullscreenControl(props) { return <BaseControl {...props} name="FullscreenControl" />; } if (process.env...
client/src/components/dashboard/Error.js
PCGeekBrain/TruckTrack
import React from 'react'; import { Alert } from 'react-bootstrap' /** * A wrapper for the error alert * @param {error: {key, message}, onDismiss: (key) => {} } props */ const Error = props => { const dismiss = (event) => { props.onDismiss(props.error.key) } return ( <Alert bsStyle="danger" onDismis...
browser/app/js/components/Dropzone.js
hackintoshrao/minio
/* * Minio Cloud Storage (C) 2016 Minio, Inc. * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
docs/src/app/components/pages/components/FlatButton/ExampleIcon.js
ruifortes/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import {fullWhite} from 'material-ui/styles/colors'; const style = { margin: 12, }; const FlatButtonExampleIcon = () => ( <div>...
src/parser/warlock/affliction/CONFIG.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Chizu } from 'CONTRIBUTORS'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a ...
src/containers/card.story.js
francisl/baer-toolkit
import React from 'react'; import { containerSizeStyles } from '../../stories/config'; import Card from './card'; import Layout from '../layouts/layout'; import Button from '../widgets/button'; import Label from '../widgets/label'; import Input from '../widgets/input'; export default () => ( <div> <h2>Sim...
src/svg-icons/maps/local-hospital.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHospital = (props) => ( <SvgIcon {...props}> <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"/> </SvgIcon> ); MapsLocal...
src/components/App.js
CTumminaro/memory-game
import React from 'react'; import _ from 'lodash'; import Card from './Card'; import Header from './Header'; import sampleData from '../sample-data'; class App extends React.Component { constructor() { super(); this.flipCard = this.flipCard.bind(this); const gameCards = _.chain(sampleData) .reduc...
src/components/title.js
MichaelMansourati/earCamera
import React from 'react' import '../styles/title.css' const Title = () => ( <h1 id="title"> <a href="http://ear.camera">ear camera</a> </h1> ) export default Title
server/sonar-web/tests/apps/overview/components/legend-test.js
joansmith/sonarqube
import { expect } from 'chai'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { Legend } from '../../../../src/main/js/apps/overview/components/legend'; const DATE = new Date(2015, 3, 7); const LABEL = 'since 1.0'; describe('Legend', function () { it('should render', function ...
packages/material-ui-shell/src/providers/VirtualLists/Context.js
TarikHuber/react-most-wanted
import React from 'react' export const Context = React.createContext(null) export default Context
docs/components/DocMenu.js
tianyingchun/docs
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as DocActions from '../actions/DocActions'; import { Link } from 'react-router'; import UI, { Menu, Icon } from '../../shared/react'; import classNames from 'classnames'; @connect((stat...
src/ui/Button.js
lysfibe/host-cold-adventures
// @flow import React from 'react' import { TouchableOpacity, TouchableWithoutFeedback, TouchableHighlight, Text } from 'react-native' type Props = { onPress?: () => void, onLongPress?: () => void, containerStyle?: Object | Array, style?: Object | Array, highlight?: boolean, noFeedback?: boolean, } const Button...
node_modules/semantic-ui-react/src/views/Statistic/Statistic.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey, } from '../../lib' import StatisticGroup from './StatisticGroup' import StatisticLabel from '...
internals/templates/containers/LanguageProvider/index.js
react-boilerplate/react-boilerplate
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'...
src/containers/UserSongs.js
kellhellia/vkReduxLast
import React, { Component } from 'react'; import { connect } from 'react-redux'; import store from '../store'; import { getUserTracks } from '../actions'; class UserSongs extends Component { componentDidMount() { this.getTracks(); } getTracks() { VK.api('audio.get',{ owner_id: ...
src/internal/BeforeAfterWrapper.js
skarnecki/material-ui
import React from 'react'; /** * BeforeAfterWrapper * An alternative for the ::before and ::after css pseudo-elements for * components whose styles are defined in javascript instead of css. * * Usage: For the element that we want to apply before and after elements to, * wrap its children with BeforeAf...
app/src/components/WaitingDisplay.js
joshlevy89/pinclone
import React, { Component } from 'react'; require('../../styles/WaitingDisplay.scss') class WaitingDisplay extends Component { render() { const { request_status } = this.props return ( <div> {request_status==='REQUESTING_RESULTS' ? <div className="loading"></div>:null } </div> ...
blueprints/smart/files/__root__/containers/__name__/__name__.js
mjasinski5/dashboardWookiees
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const...
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Terminal/js/components/commandline.js
patel344/Mr.Miner
import React from 'react' import CommandHistoryList from '../containers/commandhistorylist.js' import CommandInput from '../containers/commandinput.js' import WalletPasswordPrompt from '../containers/walletpasswordprompt.js' import WalletSeedPrompt from '../containers/seedprompt.js' const CommandLine = ({showCommandOv...
static/src/containers/DevTools/DevTools.dev.js
detailyang/cas-server
/** * @Author: BingWu Yang <detailyang> * @Date: 2016-04-20T23:43:35+08:00 * @Email: detailyang@gmail.com * @Last modified by: detailyang * @Last modified time: 2016-04-21T00:34:39+08:00 * @License: The MIT License (MIT) */ import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMon...
techCurriculum/ui/solutions/5.3/src/components/User.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
packages/react-server-examples/bike-share/components/network-card.js
szhou8813/react-server
import React from 'react'; import {logging, Link} from 'react-server'; const logger = logging.getLogger(__LOGGER__); const NetworkCard = ({id, name, location, company}) => { logger.info(`rendering card for network ${name}`); return ( <div><Link path={`/network?network=${id}`}>{name}</Link> in {location.city}, {lo...
webapp/src/containers/search/filterSelector/filterSelector.js
nathandunn/agr
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import style from './style.css'; import SingleFilterSelector from './singleFilterSelector'; import { getQueryParamWithValueChanged } from '../../../lib/searchHelpers'; import CategoryLabel from '../cat...
client/component/schema/filter/index.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; import classnames from 'classnames'; /** * Internal dependencies */ import apiFetch from 'wp-plugin-lib/api-fetch'; import { Select, Button, Badge } from 'wp-plugin-components'; import SearchRegexApi from 'l...
src/components/WrapperLayers.js
GGGGino/react-event-layer
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { Motion } from 'react-motion'; import { getAnimation } from '../helpers/animations'; class WrapperLayers extends React.Component { constructor(props) { super(props); this.state = { left: 0, y...
src/app/components/item/ItemView.js
mazahell/eve-react-app
import React from 'react'; import Helper from '../../helpers'; import './ItemView.css'; const ItemView = props => { const { typeID, name, quantity, price } = props; const sum = Helper.price(price * quantity); return ( <li> <div className="item-view-cont"> <div className="img-box"> <...
src/shared/components/socialMedia/socialMedia.js
NestorSegura/operationcode_frontend
import React from 'react'; import fbImage from 'images/icons/Facebook-Icon.svg'; import ghImage from 'images/icons/GitHub-Icon.svg'; import twtImage from 'images/icons/Twitter-Icon.svg'; import liImage from 'images/icons/LinkedIn-Icon.svg'; import SocialMediaContainer from './socialMediaContainer/socialMediaContainer';...
app/scripts/views/UserEffectivePermissionsModal.react.js
darbio/auth0-roles-permissions-dashboard-sample
import _ from 'lodash'; import React from 'react'; import Router from 'react-router'; import BS from 'react-bootstrap'; import BaseView from '../components/BaseView.react'; import UserActions from '../actions/UserActions'; import ApplicationActions from '../actions/ApplicationActions'; import ApplicationStore from '....
app/components/Geschaeft/KontakteExternItems.js
barbalex/kapla3
import React from 'react' import PropTypes from 'prop-types' import { Glyphicon } from 'react-bootstrap' import _ from 'lodash' import Linkify from 'react-linkify' import styled from 'styled-components' import { observer, inject } from 'mobx-react' import compose from 'recompose/compose' const verantwortlichData = (gK...
ui/src/main/js/components/__tests__/StateMachine-test.js
apache/aurora
import React from 'react'; import { shallow } from 'enzyme'; import StateMachine, { StateMachineToggle } from '../StateMachine'; describe('StateMachineToggle', () => { it('Should toggle the display state when clicked', () => { const states = [{ state: 'One', timestamp: 0 }, { state: 'Two',...
packages/react-ui-components/src/TextArea/index.story.js
neos/neos-ui
import React from 'react'; import {storiesOf, action} from '@storybook/react'; import {withKnobs, boolean} from '@storybook/addon-knobs'; import {StoryWrapper} from './../_lib/storyUtils'; import TextArea from '.'; storiesOf('TextArea', module) .addDecorator(withKnobs) .addWithInfo( 'default', ...
client/src/components/topicselector.js
HenrikGr/redux-book
/*! * Description: TopicSelector component * * The component renders an input field to enter search terms * * The app component hierarchy looks like this: * * App * - ControlsContainer * - TopicSelectorContainer * - TopicSelector (*) * - DisplayModeContainer * - DisplayMode * - HistoryContaine...
src/svg-icons/editor/border-left.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderLeft = (props) => ( <SvgIcon {...props}> <path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2z...
tests/site6/src/blocks/feedback.js
dominikwilkowski/cuttlebelle
import PropTypes from 'prop-types'; import React from 'react'; /** * The Feedback component to be used after all content blocks */ const Feedback = ( page ) => { const HeadingTag = `h${ page.level }`; return ( <div className="uikit-body uikit-grid feedback"> <div className="container"> <div className="...