path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
examples/js/selection/unselectable-table.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 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; products.push({ id: id, ...
src/svg-icons/device/signal-wifi-1-bar-lock.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
test/BadgeSpec.js
15lyfromsaturn/react-materialize
import 'es5-shim'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import Badge from '../src/Badge'; describe('Badge', () => { it('should output a badge with the className of `badge`', () => { let badge = TestUtils.renderIntoDocument(<Badge>4</Badge>)...
src/components/Greeting.js
kesean/Dashboard-Frontend
import React from 'react' import Paper from 'material-ui/Paper' import {CardTitle} from 'material-ui/Card' export default function Greeting(props) { //Set greeting depending on hour of day return( <Paper zDepth={5} className="greeting"> <CardTitle>{getGreeting()}</CardTitle> <CardTitle>{props.userFirs...
src/components/form/__tests__/DatePickerFormField.spec.js
bcongdon/EachDay
import React from 'react' import { mount } from 'enzyme' import toJson from 'enzyme-to-json' import DatePickerFormField from '../DatePickerFormField' const onChange = jest.fn() describe('DatePickerFormField component', () => { beforeEach(() => { jest.resetAllMocks() Date.now = jest.fn(() => 1495984743025) ...
src/mui/list/DatagridCell.spec.js
azureReact/AzureReact
import assert from 'assert'; import React from 'react'; import { shallow } from 'enzyme'; import DatagridCell from './DatagridCell'; describe('<DatagridCell />', () => { it('should render as a mui <TableRowColumn /> component', () => { const wrapper = shallow( <DatagridCell field={{ type: 'foo...
data-browser-ui/public/app/components/tableComponents/td/numberTdComponent.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; class NumberTdComponent extends React.Component { constructor(){ super() this.state = {} } componentDidMount(){ this.state = { inputHidden:true } this.setState(this.state) } toggleInput(which,e){ if(which){ let string = this.props.elem...
app/javascript/mastodon/components/__tests__/display_name-test.js
blackle/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import DisplayName from '../display_name'; describe('<DisplayName />', () => { it('renders display name + account name', () => { const account = fromJS({ username: 'bar', acct: 'bar@baz', ...
examples/simple/components/App.js
gaearon/library-boilerplate
import React, { Component } from 'react'; import { add } from 'library-boilerplate'; export default class App extends Component { render() { return ( <p> 2 + 2 = {add(2, 2)} </p> ); } }
webapp-src/src/Admin/Navbar.js
babelouest/glewlwyd
import React, { Component } from 'react'; import i18next from 'i18next'; import messageDispatcher from '../lib/MessageDispatcher'; import apiManager from '../lib/APIManager'; class Navbar extends Component { constructor(props) { super(props); this.state = { config: props.config, curNav: "users"...
src/containers/AppContainer/index.js
pnicolli/demo-calculator
import React, { Component } from 'react'; import App from '../../views/App'; class AppContainer extends Component { initialState = () => ({ negativeSign: false, intValue: '0', decimalValue: '', showComma: false, firstOperand: 0, currentOperation: null, resetNumberOnNextDigit: false, })...
src/components/modals/alert_modal.js
dcporter44/tunefest-frontend
import React, { Component } from 'react'; import { RaisedButton } from 'material-ui'; export default class AlertModal extends Component { render () { return ( <div className="modal modal-sm"> <div className="modal-content"> <div className="modal-body"> {this.props.text} ...
pages/apply-now.js
aimanaiman/supernomadfriendsquad
import React from 'react' import Helmet from 'react-helmet' import { config } from 'config' import { prefixLink } from 'gatsby-helpers' import { Link } from 'react-router' import skype from '../icon/skype.png' import pencil from '../icon/pencil.png' import gift from '../icon/gift.png' import businessman from ...
src/index.js
simoneas02/contracts-list
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
packages/icons/src/md/action/List.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdList(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z" /> </IconBase> ); } export default MdList;
app/shared/wrapper.component.js
TPW-team/tpw_ui
import React from 'react'; export const Wrapper = ({component: Component, ...rest}) => ( <Component {...rest}></Component> );
src/components/decoline_item.js
lizarraldeignacio/personal-website
import React, { Component } from 'react'; /** DecolineItem atomic element of DecoLine list Params: title: The title of the element description: The description of the element remove: A function to handle the removal of this item from the list auth: A flag that indicates if the user is authenticate...
app/components/map/footer/index.js
Vizzuality/forest-watcher
// @flow import type { Alert, SelectedAlert } from 'types/alerts.types'; import type { MapItemFeatureProperties } from 'types/common.types'; import type { SelectedReport } from 'types/reports.types'; import type { LocationPoint } from 'types/routes.types'; import React, { Component } from 'react'; import { Animated, V...
src/js/contexts/ResponsiveContext/ResponsiveContext.js
HewlettPackard/grommet
import React from 'react'; import { ResponsiveContextPropTypes } from './propTypes'; export const ResponsiveContext = React.createContext(undefined); ResponsiveContext.propTypes = ResponsiveContextPropTypes;
app/javascript/mastodon/features/compose/components/character_counter.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
src/containers/NotFound/container/NotFound.js
WCCrazyCoder/react-redux-web-application
import React from 'react'; export default class NotFound extends React.Component { render() { return ( <div> <h1>...喔噢... 404 not found.</h1> </div> ) } }
src/TextField/TextField.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import type { Element } from 'react'; import Input, { InputLabel } from '../Input'; import FormControl from '../Form/FormControl'; import FormHelperText from '../Form/FormHelperText'; export type Props = { /** * This property helps users to fill forms faster, especially on mob...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
clworld/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ...
src/svg-icons/action/hourglass-full.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHourglassFull = (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-.01H18V2H6z"/> </SvgIcon> ); ActionHourglassFull = pure(ActionHour...
src/generator/Component/__tests__/Component.web.js
Fineighbor/ui-kit
/* eslint-env jest */ import 'jest-styled-components' import React from 'react' import { shallow } from 'enzyme' import Component from '../index.js' describe('Component.web', () => { it('renders a snapshot', () => { const wrapper = shallow( <Component>Apple</Component> ) expect(wrapper).toMatchSnap...
test/SplitButtonSpec.js
xiaoking/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import SplitButton from '../src/SplitButton'; import MenuItem from '../src/MenuItem'; import Button from '../src/Button'; describe('SplitButton', function() { const simple = ( <SplitButton title='Title' id='test-id'> <MenuIte...
docs/app/Examples/elements/Loader/Variations/LoaderExampleInline.js
koenvg/Semantic-UI-React
import React from 'react' import { Loader } from 'semantic-ui-react' const LoaderExampleInline = () => ( <Loader active inline /> ) export default LoaderExampleInline
test/fixtures/bugfix-175/actual.js
oliviertassinari/babel-plugin-transform-react-remove-prop-types
import React from 'react'; import PropTypes from 'prop-types'; const sharedPropType = PropTypes.number; export default class Foo extends React.Component { static propTypes = { bar: sharedPropType, } }
src/routes/x-axis-assembly/XAxisAssembly.js
bigearth/www.clone.earth
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './XAxisAssembly.css'; import { Grid, Row, Col, Image } from 'react-bootstrap'; import DocsTOC from '../../components/DocsTOC'; class XAxisAssembly extends React.Component { r...
src/svg-icons/communication/rss-feed.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationRssFeed = (props) => ( <SvgIcon {...props}> <circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17...
tests/routes/Counter/components/Counter.spec.js
pptang/ggm
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
client/portfolio2017/src/Components/Routs/ProjectsRoute/ProjectsRoute.js
corrortiz/portafolio2017
import React from 'react'; //Internal Components import ListOfProjects from '../../ListOfProjects/ListOfProjects'; import FooterApp from '../../FooterApp/FooterApp'; //locale Assest import { Projects } from '../../../Assets/diccionary'; /** * layout of the projects rout */ const ProjectsRoute = () => { return ( ...
docs/app/Examples/elements/Header/Types/HeaderExampleContent.js
vageeshb/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExampleContent = () => ( <div> <Header size='huge'>Huge Header</Header> <Header size='large'>Large Header</Header> <Header size='medium'>Medium Header</Header> <Header size='small'>Small Header</Header> <Header size=...
src/components/storyComment/StoryComment.js
ummahusla/Hacker-Reader
import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; import Navigation from '../navigation/Navigation'; import ScoreLabel from '../shared-components/scoreLabel/ScoreLabel'; import AuthorLabel from '../shared-components/authorLabel/AuthorLabel'; import DateLabel from '../shared-components/...
src/components/topic/MediaTableContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import MediaTable from './MediaTable'; import { isUrlSharingFocalSet } from '../../lib/topicVersionUtil'; /** * Simple wrapper around MediaTable to pull in some stuff from state (so the components that use * MediaTa...
src/svg-icons/action/flip-to-back.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlipToBack = (props) => ( <SvgIcon {...props}> <path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2...
js/controls/AttributionControl.js
mekto/brouter-online
import React from 'react'; import Control from './Control'; class AttributionComponent extends React.Component { state = { layerAttributions: [] } componentDidMount() { this.props.map.on('layerchange', ::this.updateLayerAttributions); } updateLayerAttributions(e) { this.setState({ layerAttribu...
src/layouts/index.js
xenotime-india/CV
import React from 'react' import { siteMetadata } from '../../gatsby-config' import './../styles/init.scss' import 'font-awesome/css/font-awesome.css' class Template extends React.Component { componentDidMount() {} componentDidUpdate() {} render() { const { location, children } = this.props return <di...
test/utils/CustomPropTypesSpec.js
jontewks/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import CustomPropTypes from '../../src/utils/CustomPropTypes'; import {shouldWarn} from '../helpers'; function isChainableAndUndefinedOK(validatorUnderTest) { it('Should validate OK with undefined or null values', function() { asse...
fields/types/password/PasswordField.js
linhanyang/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput, InlineGroup as Group, InlineGroupSection as Section, } from '../../../admin/client/App/elemental'; module.exports = Field.create({ displayName: 'PasswordField', statics: { type: 'Password', }, getInitialState () { return...
examples/jenarMine/components/WindowOverlay.js
tatsuhino/reactPractice
import styles from '../css/main.css' import React from 'react' import {hashHistory} from 'react-router'; const WindowOverlay = () =>{ return ( <div className={styles.windowOverlay} onClick={linkTo}></div> ) } const linkTo = () =>{ hashHistory.push('/'); } export default WindowOverlay
src/redux/utils/createDevToolsWindow.js
wwwiiilll/drinkstat
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
docs/app/Examples/collections/Message/Types/MessageMessagePropsExample.js
jcarbo/stardust
import React from 'react' import { Message } from 'stardust' const MessageMessagePropsExample = () => ( <Message header='Changes in Service' content='We updated our privacy policy here to better service our customers. We recommend reviewing the changes.' /> ) export default MessageMessagePropsExample
scripts/apps/translations/directives/TranslationReactDropdown.js
thnkloud9/superdesk-client-core
/* eslint-disable react/no-multi-comp */ import React from 'react'; /** * @ngdoc directive * @module superdesk.apps.translations * @name TranslationReactDropdown * * @requires React * @requires item * @requires className * @requires TranslationService * @requires noLanguagesLabel * * @param {Object} [langug...
packages/app/app/containers/MainContentContainer/index.js
nukeop/nuclear
import React from 'react'; import { Route, Switch, withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as SearchActions from '../../actions/search'; import MainLayout from '../../components/MainLayout'; import AlbumViewContainer from '../Al...
src/interface/layout/Footer/index.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Tooltip, { TooltipElement } from 'common/Tooltip'; import DiscordLogo from 'interface/icons/DiscordTiny'; import GithubLogo from 'interface/icons/GitHubMarkSmall'; import PatreonIcon from 'interface/icons/Patre...
examples/js/others/table-in-tabs.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import { Tabs, Tab } from 'react-bootstrap'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = star...
code/workspaces/web-app/src/components/modal/ConfirmationDialog.spec.js
NERC-CEH/datalab
import React from 'react'; import { shallow } from 'enzyme'; import ConfirmationDialog from './ConfirmationDialog'; describe('ConfirmationDialog', () => { const shallowRender = props => shallow( <ConfirmationDialog {...props} />, ); it('renders to match snapshot', () => { const render = shallowRender({ ...
src/Repeat/index.js
pinebit/react-cr
import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from '../Wrapper'; const Repeat = ({ count, children, ...wrapperProps }) => { if (!children || count <= 0 || Array.isArray(children)) { return null; } if (count === 1) { return ( <Wrapper {...wrapperProps}> {chil...
src/common/containers/LocationPanel/LocationPanel.js
aarmour/my-denver
import React, { Component } from 'react'; import BasePanel from '../BasePanel'; export default class LocationPanel extends Component { render() { return ( <BasePanel> </BasePanel> ); } }
src/components/Search/SearchStories.js
DeloitteDigitalUK/react-redux-starter-app
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Search from './index'; storiesOf('Search', module) .addDecorator(story => ( <div className="col-xs-8 col-xs-offset-2"> {story()} </div> )) .add('Default State', () => ( <Search heading="Search GitHub" ...
web/src/js/__tests__/components/ContentView/ShowFullContentButtonSpec.js
zlorb/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import { Provider } from 'react-redux' import ConnectedComponent, { ShowFullContentButton } from '../../../components/ContentView/ShowFullContentButton' import { TStore } from '../../ducks/tutils' describe('ShowFullContentButton Component', () => { ...
src/pages/navbar.js
michaelnyu/michaelnyu.github.io
import React from 'react'; import House from '~/assets/house.svg'; import NavbarComponent from '~/src/components/navbar'; import Link from '~/src/components/link'; import { Heading, FONT_COLORS } from '~/src/shared/typography'; export const leftNavbar = ( <Link to="/"> <House css={{ width: 60, height: 'auto' }} ...
src/ToggleButtonWithLabel/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Typography from '../Typography'; import SwitchToggleButton from '../SwitchToggleButton'; import styles from './styles.css'; function ToggleButtonWithLabel(props) { return ( <div className={classNames(style...
packages/material-ui-icons/src/Details.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Details = props => <SvgIcon {...props}> <path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z" /> </SvgIcon>; Details = pure(Details); Details.muiName = 'SvgIcon'; export default Details;
src/organisms/cards/PolicyCard/Compare.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Text from 'atoms/Text'; import Hide from 'wrappers/Hide'; import Spacer from 'atoms/Spacer'; import CheckBoxField from 'molecules/formfields/CheckBoxField'; import styles from './policy_card.module.scss'; const C...
client/node_modules/react-router/es/withRouter.js
bourdakos1/Visual-Recognition-Tool
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
js/src/dialogs/NewFolder.js
syslo/file_publisher
import React from 'react' import {Button, Form, FormControl, FormGroup, InputGroup} from 'react-bootstrap' import {Modal} from 'react-bootstrap' const validator = new RegExp('^[_a-zA-Z0-9]+$') export default class NewFolder extends React.Component { create() { const n = this.props.state.nodes[this.props.state....
components/form/FileImage.js
resource-watch/resource-watch
import 'isomorphic-fetch'; import React from 'react'; import PropTypes from 'prop-types'; // Components import Dropzone from 'react-dropzone'; import Icon from 'components/ui/icon'; import FormElement from './FormElement'; class FileImage extends FormElement { constructor(props) { super(props); const def...
examples/js/custom/search/fully-custom-search-field.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i...
stories/Transform.js
unruffledBeaver/react-animation-components
import React from 'react'; import { storiesOf } from '@storybook/react'; import * as knobs from '@storybook/addon-knobs'; import { createCommonKnobs } from '../src/utilities'; import { Transform } from '../src/index'; storiesOf('Animations/Transform', module) .addDecorator(knobs.withKnobs) .add('default', (...
src/js/index.js
Landerson352/rpga
import React from 'react'; import ReactDOM from 'react-dom'; import '../css/app.less'; import App from './components/App'; ReactDOM.render(<App/>,document.getElementById('app'));
src/svg-icons/notification/wifi.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWifi = (props) => ( <SvgIcon {...props}> <path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9...
app/client/src/routes/manageCampaignVolunteers/index.js
uprisecampaigns/uprise-app
import React from 'react'; import ManageCampaignVolunteers from 'scenes/ManageCampaignVolunteers'; import Layout from 'components/Layout'; import organizeCampaignPaths from 'routes/organizeCampaignPaths'; export default organizeCampaignPaths({ path: '/organize/:slug/volunteers', component: campaign => ( <Lay...
src/svg-icons/image/broken-image.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrokenImage = (props) => ( <SvgIcon {...props}> <path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ...
packages/carbon-react/src/components/Layer/index.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 React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { usePrefix } from '../../internal/usePref...
src/containers/EditPetition.js
iris-dni/iris-frontend
import React from 'react'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import { fetchPetition } from 'actions/PetitionActions'; import { updateSuggestionInputValue } from 'actions/AutocompleteActions'; import settings from 'settings'; import cityS...
src/components/App.js
migueliriano/react-anime-project
import React from 'react'; import { Provider } from 'react-redux'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { Switch, Route } from 'react-router-dom'; import Home from 'containers/Home'; import SingleAnimePage from 'containers/SingleAnimePage'; import configureStore from 'configureSt...
examples/example4.js
gabrielbull/react-tether2
import React, { Component } from 'react'; import Target from './example4/target'; import Source from './example4/source'; class Example4 extends Component { getTarget = () => this.refs.target; render() { return ( <div style={{ background: 'red', position: 'relative', padding: '20px' }}> <div sty...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
Bogala/create-react-app-awesome-ts
/** * 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. */ import React from 'react'; import './assets/style.css'; export default () => <p id="feature-css-inclusion">We love useless text.</p>;
src/components/ADAGUC/CanvasComponent.spec.js
maartenlterpstra/GeoWeb-FrontEnd
import React from 'react'; // eslint-disable-next-line no-unused-vars import { default as CanvasComponent } from './CanvasComponent'; import { shallow } from 'enzyme'; describe('(Component) CanvasComponent', () => { it('Renders a canvas', () => { const _component = shallow(<CanvasComponent />); expect(_compo...
examples/with-algolia-react-instantsearch/components/app.js
arunoda/next.js
import React from 'react' import PropTypes from 'prop-types' import { RefinementList, SearchBox, Hits, Configure, Highlight, Pagination } from 'react-instantsearch/dom' import { InstantSearch } from './instantsearch' const HitComponent = ({ hit }) => <div className='hit'> <div> <div className='...
src/redux/components/App.js
davidraleigh/universal-redux-starter-todo
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default App
admin/client/App/screens/Item/components/EditFormHeader.js
benkroeger/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import EditFormHeaderSearch from './EditFormHeaderSearch'; import { Link } from 'react-router'; import Drilldown from './Dr...
app/javascript/spec/catalog-form/catalog-form.spec.js
ManageIQ/manageiq-ui-classic
import React from 'react'; import toJson from 'enzyme-to-json'; import fetchMock from 'fetch-mock'; import { shallow } from 'enzyme'; import CatalogForm from '../../components/catalog-form/catalog-form'; import '../helpers/miqSparkle'; import '../helpers/miqAjaxButton'; import '../helpers/addFlash'; import { mount } f...
src/Table/TableRow.spec.js
und3fined/material-ui
// @flow weak /* eslint-env mocha */ import React from 'react'; import { assert } from 'chai'; import { createShallowWithContext } from 'test/utils'; import TableRow, { styleSheet } from './TableRow'; describe('<TableRow />', () => { let shallow; let classes; before(() => { shallow = createShallowWithConte...
app/views/Resume.js
sysrex/sysrex
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { withRouter } from 'react-router'; import Helmet from 'react-helmet'; import axios from 'axios'; import Main from '../layouts/Main'; import Education from '../components/Resume/Education'; import Experience from '../components...
src/svg-icons/action/zoom-in.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
react-components/src/library/components/site-notices/notices.js
concord-consortium/rigse
import React from 'react' import Notice from './notice' import css from './style.scss' export default class Notices extends React.Component { constructor (props) { super(props) this.renderNoNotices = this.renderNoNotices.bind(this) } renderNoNotices () { return ( <div className={css.adminSite...
client/tests/components/layouts/AdminSidebar.spec.js
andela-iukwuoma/docman
import React from 'react'; import expect from 'expect'; import { shallow } from 'enzyme'; import enzymify from 'expect-enzyme'; import AdminSidebar from '../../../components/layouts/AdminSidebar'; expect.extend(enzymify()); function setup(roleId = 1) { const props = { access: { user: { roleId } } }; return...
static/src/containers/Group.js
cas-x/cas-server
/** * @Author: BingWu Yang <detailyang> * @Date: 2016-03-14T10:30:11+08:00 * @Email: detailyang@gmail.com * @Last modified by: detailyang * @Last modified time: 2016-04-21T17:23:02+08:00 * @License: The MIT License (MIT) */ import React, { Component } from 'react'; import Antd, { Table, Button, Row, Col, Input, ...
src/components/Promises/promises_categories_tabs.js
Betree/democracy-watcher
import React from 'react' import TabsView from '../Utils/tabs_view' import PromisesList from './promises_list' const PromisesCategoriesTabs = ({categories, promises}) => { // Categorize promises in an object const promisesTabs = [] for(let category of categories) { const promisesList = <PromisesList promi...
src/index.js
chasm/react-redux-base
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App.jsx' const app = document.createElement('div') document.body.appendChild(app) ReactDOM.render(<App/>, app)
newclient/scripts/components/user/sidebar-step/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
frontend/src/AddMovie/AddNewMovie/AddNewMovieConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { clearAddMovie, lookupMovie } from 'Store/Actions/addMovieActions'; import { clearQueueDetails, fetchQueueDetails } from 'Store/Actions/queueActions'; i...
test/TooltipSpec.js
laran/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Tooltip from '../src/Tooltip'; describe('Tooltip', () => { it('Should output a tooltip with content', () => { let instance = ReactTestUtils.renderIntoDocument( <Tooltip positionTop={10} positionLeft={20}> <stro...
js/src/components/Editor/__test__/editorTest.js
andresin87/react-draft-wysiwyg
/* @flow */ import React from 'react'; import { expect, assert } from 'chai'; import { shallow, mount } from 'enzyme'; import Editor from '..'; describe('Editor menu test suite', () => { it('should have a div when rendered', () => { expect(shallow(<Editor />).node.type).to.equal('div'); }); it('should have...
stories/Dropdown/ExampleWithCustomValue.js
skyiea/wix-style-react
import React from 'react'; import Dropdown from 'wix-style-react/Dropdown'; import Checkbox from 'wix-style-react/Checkbox'; const style = { display: 'inline-block', padding: '0 5px 0', width: '200px', lineHeight: '22px', marginBottom: '350px' }; class CustomValuesInDropdown extends React.Component { con...
src/components/App/index.js
mvaldas9/wallscreen
import './styles.css'; import React from 'react'; import Background from '../Background'; import Clock from '../Clock'; import Board from '../Board'; import Settings from '../Settings'; class App extends React.Component { render() { return ( <div className="app"> <Background /> <Clock /> ...
src/components/Main.js
bjhan/mytesthome
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; //获取图片的信息 var imageDatas = require('../data/imageDatas.json'); //利用自执行函数,返回图片的URL信息 imageDatas = (function getImageURL(imageDatasArr) { for(var i = 0;i < imageDatasArr.length; i++){ var singleImageData = imageDatasArr[i...
packages/reactor-tests/src/App.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Router, Route, IndexRoute, Link, hashHistory } from 'react-router' import * as tests from './tests'; import Layout from './Layout'; import TestIndex from './TestIndex'; export default class App extends Component { render() { return ( <Router h...
src/Tooltip.js
adampickeral/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Tooltip = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * An html id attribute, necessary for accessibility * @...
packages/watif-display/src/components/display.js
jwillesen/watif
import React from 'react' import {func, string} from 'prop-types' import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' import {faBook, faEye, faSearch, faHandHoldingBox} from '@fortawesome/pro-regular-svg-icons' import {Tabs, TabPanel} from './tabs' import InteractiveDescription from './interactive-descriptio...
src/svg-icons/editor/vertical-align-center.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignCenter = pure(EditorVerticalAlig...
node_modules/react-bootstrap/es/Badge.js
ProjectSunday/rooibus
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 ...
frontend/assets/js/layout/GenreSlide.js
fga-verival/2017-1Grupo2
import React from 'react'; import Slider from 'react-slick' require("slick-carousel/slick/slick.css"); require("slick-carousel/slick/slick-theme.css"); import GameCard from "../components/cards/GameCard"; import { gameListApi } from '../resource/GameApi'; import { Link } from 'react-router-dom' import { Grid } from 'se...
app/containers/App.js
lumibloc/tabloc
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; export default class App extends Component { props: { children: Children }; render() { return ( <div> {this.props.children} </div> ); } }
docs/src/Anchor.js
roderickwang/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className="anchor"> <span className="anchor-ic...
imports/ui/pages/reset-password.js
irvinlim/free4all
import React from 'react'; import { Grid, Row, Col, Alert, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import { handleResetPassword } from '../../modules/reset-password'; export class ResetPassword extends React.Component { componentDidMount() { handleResetPassword({ component: t...
src/index.js
GiacomoSorbi/8-form-elements
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );