path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/javascript/app/components/app.js
moisesnandres/mvp-miprimeraapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; export class App extends Component { render() { return ( <h1>Rails 5.1 - React 15.5 Boilerplate</h1> ) } } export default connect()(App);
test/regressions/site/src/tests/RadioGroup/SimpleRadioGroup.js
und3fined/material-ui
// @flow weak import React from 'react'; import { RadioGroup, LabelRadio as Radio } from 'material-ui/Radio'; export default function SimpleRadioGroup() { return ( <div style={{ width: 100 }}> <RadioGroup selectedValue="home"> <Radio label="Home" value="home" /> <Radio label="Work" value="...
app/components/Charts/StackedChart/index.js
prudhvisays/newsb
import React from 'react'; class StackedChart extends React.Component { //eslint-disable-line constructor(props) { super(props); } render() { return ( <div id="chart"></div> ); } } export default StackedChart;
fixtures/ssr/server/render.js
kaushik94/react
import React from 'react'; import {renderToString} from 'react-dom/server'; import App from '../src/components/App'; let assets; if (process.env.NODE_ENV === 'development') { // Use the bundle from create-react-app's server in development mode. assets = { 'main.js': '/static/js/bundle.js', 'main.css': '',...
docs/src/Routes.js
bvasko/react-bootstrap
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import SupportPage from './SupportPage'; import NotFoundPage from './NotFound...
fields/types/number/NumberColumn.js
ligson/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTypes.obj...
src/components/Slideshow/app.js
Caldis/react-image-slideshow
// Libs import React from 'react'; import TWEEN from 'tween.js'; import Portal from'react-portal'; // Style import styles from './app.css'; import jsStyles from './appStyle.js'; // Polyfill import polyfill from '../../utils/polyfill.js'; class Slideshow extends React.Component { constructor(props) { super(...
src/components/FAQ.js
gumbyscout/fireemblem-cipher-utils
import React from 'react'; import CSSModules from 'react-css-modules'; import Paper from 'material-ui/Paper'; import ExternalLink from './ExternalLink'; import styles from './FAQ.pcss'; @CSSModules(styles) class FAQ extends React.Component { render () { return ( <div styleName="wrapper"> <Paper>...
docs/pages/api-docs/image-list.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 = 'api/image-list'; const requireRaw = require.context('!raw-loader!./', false, /\/image-list\.md$/); export default function Page(...
client/pages/viewerpage/org_viewer.js
mickael-kerjean/nuage
import React from 'react'; import { StickyContainer, Sticky } from 'react-sticky'; import { Modal, Container, NgIf, Icon, Dropdown, DropdownButton, DropdownList, DropdownItem } from '../../components/'; import { extractEvents, extractTodos } from '../../helpers/org'; import { leftPad } from '../../helpers/common'; imp...
app/components/Toggle/index.js
activedecay/musical-meme
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
src/CheckButton.js
benhowell/react-grid-gallery
import PropTypes from 'prop-types'; import React, { Component } from 'react'; class CheckButton extends Component { constructor (props) { super(props); this.state = { hover: this.props.hover }; this.fill = this.fill.bind(this); this.visibility = this.visibility...
src/svg-icons/communication/phonelink-setup.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkSetup = (props) => ( <SvgIcon {...props}> <path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1...
app/javascript/mastodon/features/notifications/index.js
ikuradon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotificati...
app/user/post/PostView.js
ecellju/internship-portal
import React from 'react'; import axios from 'axios'; import _ from 'lodash'; import { Button, Menu, Container } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import DisplayPost from '../../common/post/DisplayPost'; import Auth from '../../auth/modules/Auth'; import User from '../../auth/modules/User'; ...
src/routes/home/Home.js
24v/player-sankey
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
node_modules/react-router/es/IndexRedirect.js
saniko/Universal-React
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.string, object = _React$PropTypes.object; /** * An <IndexRedir...
variations/debuggable/src/components/Button.js
xaviervia/tessellation
import React from 'react' export default function Button ({children, title, ...props}) { return <button className='b--none bg-navy' {...props}> {children} <span className='below'>{title}</span> </button> }
src/svg-icons/alert/error-outline.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertErrorOutline = (props) => ( <SvgIcon {...props}> <path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 ...
frontend/src/components/eois/modals/completeAssessment/completeAssessmentModal.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import ControlledModal from '../../../common/modals/controlledModal'; import { completeAssessmentRequest } from '../../../../reducers/completeAssessment'; impor...
Example/Example.js
mcabs3/react-native-router-flux
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Launch from './components/Launch'; import Register from './components/Register'; import Login from './components/Login'; import Login2 from './components/Login2'; import Login3 from './components/Login3'; import CardStackStyleInter...
demo/src/App.js
Utzel-Butzel/react-virtual-keyboard
import React, { Component } from 'react'; import Keyboard from '../../lib/Keyboard'; export default class App extends Component { constructor() { super(); this.state = { textarea: "This is some sample textarea input", inputfield: "Input field" }; this.onTextareaChanged = this.onTextareaCha...
test/featureLoader.js
jcoreio/react-redux-features
import React from 'react' import { expect } from 'chai' import { createStore } from 'redux' import { Provider } from 'react-redux' import { mount } from 'enzyme' import { configure as configureEnzyme } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' configureEnzyme({ adapter: new Adapter() }) import sinon f...
analytics-ui/dev/js/index.js
CloudBoost/cloudboost
require('../../src/assets/css/style.scss'); import 'babel-polyfill'; import React from 'react'; import ReactDOM from "react-dom"; import Routes from './routes'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import {blue500} from 'material-ui/styles/colors'; import MuiThemeProvider from 'material-ui/styles/M...
admin/client/components/ListSort.js
Ftonso/keystone
import { FormNote } from 'elemental'; import React from 'react'; import Popout from './Popout'; import PopoutList from './PopoutList'; import vkey from 'vkey'; import CurrentListStore from '../stores/CurrentListStore'; var ListSort = React.createClass({ displayName: 'ListSort', getInitialState () { return { alt...
src/js/tests/routes.spec.js
gonebusy/sample-react-app
import { expect } from 'chai'; import React from 'react'; import renderShallow from 'render-shallow'; import { Route, IndexRoute } from 'react-router'; import { spy, stub } from 'sinon'; import { findAll, findAllWithType } from 'react-shallow-testutils'; import * as staffActions from 'src/js/actions/staff'; import { ...
src/docs/components/map/MapExamplesDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Map from 'grommet/components/Map'; import Box from 'grommet/components/Box'; import InteractiveExample from '../../../components/InteractiveExample'; Map.displayName = 'Map'; const PROPS_SCHEMA = { ...
src-new/pages/homePage.js
binkpitch/reactor
import React from 'react' const styles = { mainContainer: { display: 'flex', justifyContent: 'center', alignItems: 'center' } } const IntroPage = () => { return ( <div style={styles.mainContainer}> <h2>Reactor</h2> </div> ) } export default IntroPage
20200300-js-spa-react-node-sql/client/src/components/GameMap.js
DamienFremont/blog
/** * @see https://taylor.callsen.me/using-reactflux-with-openlayers-3-and-other-third-party-libraries/ */ import React from 'react'; import 'ol/ol.css'; import { Map, View } from 'ol'; import TileLayer from 'ol/layer/Tile'; import OSM from 'ol/source/OSM'; import * as layer from 'ol/layer'; import * as source from '...
src/admin/client/modules/customerGroups/head/components/buttons.js
cezerin/cezerin
import React from 'react'; import messages from 'lib/text'; import DeleteConfirmation from 'modules/shared/deleteConfirmation'; import FontIcon from 'material-ui/FontIcon'; import IconMenu from 'material-ui/IconMenu'; import IconButton from 'material-ui/IconButton'; import MenuItem from 'material-ui/MenuItem'; import D...
imports/startup/client/routes.js
E1kCityscapes/cityscape_client
import React from 'react'; import { FlowRouter } from 'meteor/kadira:flow-router'; import { mount } from 'react-mounter'; import MainLayout from '../../common-ui/layouts/MainLayout'; import Home from '../../common-ui/pages/Home'; // import MenuContainer from '../../common-ui/containers/Menu'; import Perf from 'react-ad...
docs/app/Examples/elements/Icon/Groups/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const IconGroupsExamples = () => ( <ExampleSection title='Groups'> <ComponentExample title='Icons' description='Sever...
src/components/NavBar/index.js
galsen0/hair-dv-front
/** * Created by diop on 06/05/2017. */ import { Button, Menu } from 'semantic-ui-react' import React, { Component } from 'react'; export default class NavBarComponent extends Component { constructor(){ super(); this.state = { activeItem: 'home' }; this.handleItemClick = this.handleItemC...
src/components/About/Switcher.js
typical000/paveldavydov
import React from 'react' import PropTypes from 'prop-types' import cn from 'classnames' import {translateY} from 'css-functions' import injectSheet from '../../utils/jss' import {transition} from '../../utils/css' import ToggleArrow from '../ToggleArrow' import ParallaxLayer from '../ParallaxMousemove' const styles =...
react-ui/src/index.js
michalsindelar/generace
import React from 'react'; import 'normalize.css'; import Root from './Root'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import store, { history } from './services/store'; import '../styles/fonts.css'; // Fonts const app = docum...
packages/material-ui-icons/src/AccessTime.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AccessTime = props => <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11...
14/notes-fa/src/App.js
nanohop/hop_into_react
import React, { Component } from 'react'; import './App.css'; import Notes from './Notes'; class App extends Component { render() { return ( <Notes /> ) } } export default App;
client/scripts/client.js
amitava82/radiole
/** * Created by amitava on 30/01/16. */ import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, Link, useRouterHistory } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import useScroll from 'scroll-behavior/lib/useStandardScroll'; import { Provi...
uis/mp-react/src/components/Player.js
andrew-hai/bdgt
import React from 'react'; import PropTypes from 'prop-types' import { connect } from 'react-redux' import RaisedButton from 'material-ui/RaisedButton'; import IconButton from 'material-ui/IconButton'; import PlayArrow from 'material-ui/svg-icons/av/play-arrow'; import Pause from 'material-ui/svg-icons/av/pause'; i...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
johnslay/create-react-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. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(id = 0) { return [ { id: id + 1, name...
app/packs/src/components/List.js
ComPlat/chemotion_ELN
import Immutable from 'immutable'; import React from 'react'; import { Col, Nav, NavItem, Row, Tab, OverlayTrigger, Tooltip } from 'react-bootstrap'; import KeyboardActions from './actions/KeyboardActions'; import UIActions from './actions/UIActions'; import UserActions from './actions/UserActions'; import MatrixCheck ...
src/svg-icons/device/signal-cellular-4-bar.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular4Bar = (props) => ( <SvgIcon {...props}> <path d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar); DeviceSignalCellular4Bar.displayName = 'DeviceSign...
src/library/alerts/index.js
zdizzle6717/react-flux-arc
'use strict'; import React from 'react'; import classNames from 'classnames'; import Animation from 'react-addons-css-transition-group'; import AlertStore from './stores/AlertStore'; import AlertBox from './components/AlertBox' export default class Alerts extends React.Component { constructor(props, context) { sup...
src/svg-icons/image/crop-rotate.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropRotate = (props) => ( <SvgIcon {...props}> <path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81...
example/src/components/GetCenter.js
bsudekum/react-native-mapbox-gl
import React from 'react'; import {Text} from 'react-native'; import MapboxGL from '@mapbox/react-native-mapbox-gl'; import BaseExamplePropTypes from './common/BaseExamplePropTypes'; import Page from './common/Page'; import Bubble from './common/Bubble'; class GetCenter extends React.Component { static propTypes = ...
src/svg-icons/av/play-arrow.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlayArrow = (props) => ( <SvgIcon {...props}> <path d="M8 5v14l11-7z"/> </SvgIcon> ); AvPlayArrow = pure(AvPlayArrow); AvPlayArrow.displayName = 'AvPlayArrow'; AvPlayArrow.muiName = 'SvgIcon'; export defau...
SQL/client/src/components/dumb/Header/UserDropdown.js
thebillkidy/MERGE-Stack
import React from 'react'; import Link from 'next/link'; import Dropdown, { DropdownItem, DropdownDivider } from '../Dropdown'; const propTypes = { user: React.PropTypes.object } export default (props) => { const trigger = (<div>{props.user.name}</div>); return ( <div className="Dropdown-User"> ...
src/App.js
Commander-lol/burger-time
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Slice from './builder/Slice' import color from 'color' const defs = { bun: { color: '#c99e67', height: 1.5 }, bread: { color: '#c99e67' }, tomato: { color: '#ee775e' }, beef: { color: '#936037' }, lettuce: { color:...
src/views/HotpatchManage/index.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Button, Table, Spin, Icon, Popconfirm } from 'antd' import WaitSpin from 'COMPONENT/effects/Spin' import { platformFilter, releaseFilter, releaseStatusFilter } from 'UTIL/filters' import * as hotpatchMana...
src/components/Forms/Elements/ProductFilterTitle.js
CoreyDH/product-finder
import React from 'react'; export default class ProductFilterTitle extends React.Component { constructor() { super(); this.state = { id: null, format: 'decimal', title: null, collapsed: false } this.toggleDimClass = this.toggleDimClass.bind(this); this.toggleCollapsed = this.toggleCollapsed.b...
test/helpers/shallowRenderHelper.js
CharlesGFYu/gallery-by-react
/** * 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'...
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedMobileVertically.js
ben174/Semantic-UI-React
import React from 'react' import { Grid } from 'semantic-ui-react' const GridExampleReversedMobileVertically = () => ( <Grid reversed='mobile vertically'> <Grid.Row> <Grid.Column>Mobile Row 4</Grid.Column> </Grid.Row> <Grid.Row> <Grid.Column>Mobile Row 3</Grid.Column> </Grid.Row> <Gri...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
Default-Value/defaultvalue.info
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/index.js
Chalarangelo/mock-pwa
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; // Send a 'GET' request to the specified url and run the callback function when it completes. function httpGetAsync(url, callback) { var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function() { if (xmlHttp.ready...
src/components/appbar.js
chaoming56/react-blog
import React from 'react' import { connect } from 'react-redux' import AppBar from 'material-ui/AppBar' import Drawer from 'material-ui/Drawer' import List from 'material-ui/List/List' import ListItem from 'material-ui/List/ListItem' import { openLink } from 'assets/utils/tool' import Account from 'material-ui/svg-icon...
src/components/NavigationBar/NavigationBar.js
rocket-internet-berlin/RocketDashboard
/* eslint-disable jsx-a11y/href-no-hash */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { refreshAll, showWidgetModal } from '../../actions'; import './NavigationBar.scss'; import logo from './Images/logo.png'; export class NavigationBar ex...
examples/real-world/index.js
jaredly/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
src/modules/NotFound.js
liekkas/bd-platform
import React from 'react'; class NotFound extends React.Component { render() { return ( <div style={{ color: '#fff', padding: '50px', }}> <h1>建设中...</h1> </div> ); } } export default NotFound;
packages/page-click/example/Modal.js
nkbt/react-works
import React from 'react'; import PropTypes from 'prop-types'; import {ReactPageClick} from '../src/Component'; export const Modal = ({onClose, notifyOnTouchEnd, ...rest}) => ( <div> <div className="shade" /> <ReactPageClick notify={onClose} notifyOnTouchEnd={notifyOnTouchEnd}> <div className="popup...
test/CollapsibleNavSpec.js
gianpaj/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Navbar from '../src/Navbar'; import CollapsibleNav from '../src/CollapsibleNav'; import Nav from '../src/Nav'; import NavItem from '../src/NavItem'; describe('CollapsibleNav', function () { it('Should create div and add collapse...
src/svg-icons/action/play-for-work.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPlayForWork = (props) => ( <SvgIcon {...props}> <path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/> </SvgIcon> ); ActionPlayForWork ...
js/jqwidgets/demos/react/app/scheduler/agendaview/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { componentDidMount() { this.refs.myScheduler.ensureAppointmentVisible('id1'); } render() { let appointments = new Array...
src/components/Categories.js
Iktwo/readable
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import * as Styles from '../utils/styles'; class Categories extends Component { render() { const ROW_ELEMENTS = 3; const arrayData = this.props.categories || []; let cards = new Array(arrayData.length + parseInt...
docs/src/pages/demos/selection-controls/CheckboxesGroup.js
cherniavskii/material-ui
import React from 'react'; import { FormLabel, FormControl, FormGroup, FormControlLabel, FormHelperText, } from 'material-ui/Form'; import Checkbox from 'material-ui/Checkbox'; class CheckboxesGroup extends React.Component { state = { gilad: true, jason: false, antoine: true, }; handleChan...
client/src/components/PopoverOptionSet/tests/PopoverOptionSet-story.js
silverstripe/silverstripe-admin
import React from 'react'; // eslint-disable-next-line import/no-extraneous-dependencies import { storiesOf, setAddon } from '@storybook/react'; // eslint-disable-next-line import/no-extraneous-dependencies import { action } from '@storybook/addon-actions'; import { withKnobs, boolean } from '@storybook/addon-knobs'; i...
archimate-frontend/src/main/javascript/components/view/nodes/model_b/businessService.js
zhuj/mentha-web-archimate
import React from 'react' import _ from 'lodash' import { ModelNodeWidget } from '../BaseNodeWidget' export const TYPE='businessService'; export class BusinessServiceWidget extends ModelNodeWidget { getClassName(node) { return 'a-node model_b businessService'; } }
components/DropdownItem.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; const propTypes = { value: PropTypes.string.isRequired, itemText: PropTypes.string.isRequired, className: PropTypes.string, onClick: PropTypes.func, }; const defaultProps = { onClick: /* istanbul ignore next ...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/layers-clear.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLayersClear = (props) => ( <SvgIcon {...props}> <path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-1.63 1.43 1.43L12 18.54l-7.37-5.7...
demo/client/components/DemoEditor/components/FilePlaceholder.js
oneteam-dev/draft-js-oneteam-rte-plugin
import React from 'react'; import Icon from 'react-fa'; const FilePlaceholder = (props) => ( <div style={{ border: '1px solid #ddd', borderRadius: 5, maxWidth: 400, padding: 8, color: '#999', position: 'relative' }} > <Icon name="download" style={{ ...
client/modules/App/__tests__/Components/Header.spec.js
denistakeda/botboard
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { FormattedMessage } from 'react-intl'; import { Header } from '../../components/Header/Header'; import { intl } from '../../../../util/react-intl-test-helper'; const intlProp = { ...intl, enabledLang...
src/routes/Home/components/Home/Home.js
skylus/tom-rrf
import React from 'react' import Theme from 'theme' import { Link } from 'react-router' import { paths } from 'constants' import classes from './Home.scss' const authWrapperUrl = 'https://github.com/mjrussell/redux-auth-wrapper' const reactRouterUrl = 'https://github.com/ReactTraining/react-router' export const Home =...
js/jqwidgets/demos/react/app/splitter/verticalsplitter/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxSplitter from '../../../jqwidgets-react/react_jqxsplitter.js'; class App extends React.Component { render() { return ( <JqxSplitter ref='mainSplitter' width={850} height={480} panels={[{ size...
es/components/style/form-submit-button.js
vovance/3d-demo
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/App/Components/Location/Common/Name.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
js/ClientApp.js
takivlasakakis/complete-intro-to-react-v2
import React from 'react' import { render } from 'react-dom' import { BrowserRouter, Match } from 'react-router' // these are HOCs import { Provider } from 'react-redux' import store from './store' import Landing from './Landing' import Search from './Search' import Details from './Details' import preload from '../publ...
src/svg-icons/device/wallpaper.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWallpaper = (props) => ( <SvgIcon {...props}> <path d="M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-...
website/core/SnackPlayer.js
skevy/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
app/javascript/mastodon/features/ui/components/modal_root.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Base from '../../../components/modal_root'; import BundleContainer from '../containers/bundle_container'; import BundleModalError from './bundle_modal_error'; import ModalLoading from './modal_loading'; import ActionsModal from './actions_modal'; imp...
test/test_helper.js
ravindraranwala/piglatinconverterapp
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/components/UIShell/Header.js
joshblack/carbon-components-react
/** * 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 { settings } from 'carbon-components'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; imp...
src/svg-icons/action/settings-input-antenna.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputAntenna = (props) => ( <SvgIcon {...props}> <path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 ...
src/svg-icons/navigation/subdirectory-arrow-right.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationSubdirectoryArrowRight = (props) => ( <SvgIcon {...props}> <path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/> </SvgIcon> ); NavigationSubdirectoryArrowRight = pure(Navigat...
webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js
theforeman/foreman_remote_execution
import React from 'react'; export const ActionButtons = () => <div />;
src/ui/components/views/LoadingItem.js
Anup-Allamsetty/pure
/* @flow */ import React, { Component } from 'react'; import ReactNative from 'react-native'; import shallowEqual from 'shallowequal'; import LoadingFancy from './LoadingFancy'; const { StyleSheet, View, } = ReactNative; const styles = StyleSheet.create({ container: { alignSelf: 'stretch', alignItems: 'center...
src/icons/IosThunderstorm.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosThunderstorm extends React.Component { render() { if(this.props.bare) { return <g> <style type="text/css"> .st0{fill:#010101;} </style> <g> <polygon class="st0" points="272,272 288,224 216,224 201,304 ...
react-ui/src/components/Course/CourseConceptDetail.js
michaelcheng429/bestactprep
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import CourseConceptQuestion from 'app/components/Course/CourseConceptQuestion'; class CourseConceptDetail extends Component { render() { const { email, example, questions, rule, title } = this.props; return ( ...
src/js/components/icons/base/Music.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
packages/expo-dev-menu/vendored/react-native-gesture-handler/src/GestureComponents.web.js
exponentjs/exponent
import React from 'react'; import { DrawerLayoutAndroid as RNDrawerLayoutAndroid, FlatList as RNFlatList, Switch as RNSwitch, TextInput as RNTextInput, ScrollView as RNScrollView, } from 'react-native'; import createNativeWrapper from './createNativeWrapper'; export const ScrollView = createNativeWrapper(RN...
webpack/components/TemplateSyncResult/components/SyncedTemplate/InfoItem.js
mmoll/foreman_templates
import React from 'react'; import { ListView, OverlayTrigger, Tooltip } from 'patternfly-react'; import PropTypes from 'prop-types'; const InfoItem = ({ itemId, children, tooltipText }) => { const overlay = ( <OverlayTrigger overlay={tooltipText ? <Tooltip id={itemId}>{tooltipText}</Tooltip> : ''} pl...
src/main/resources/static/js/editor_components.js
NVIvanov/web_project
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import ReactDOM from 'react-dom'; export class Editor extends Component { render() { const style = {border: '1px dashed', width: '80%', height: '500px'}; return...
client/src/javascript/components/modals/ModalFormSectionHeader.js
jfurrow/flood
import React from 'react'; class ModalFormSectionHeader extends React.PureComponent { render() { return <h2 className="h4">{this.props.children}</h2>; } } export default ModalFormSectionHeader;
src/components/Header/Header.js
peter-suggate/Vibrato-Assistant
import React from 'react' import classes from './Header.scss' export const Header = () => ( // <h3>Violin Tutor</h3> <div className={classes.container}> </div> ) export default Header
lib/components/modifications-map/__tests__/pattern-stops-layer.js
conveyal/scenario-editor
// @flow import React from 'react' import {Map} from 'react-leaflet' import renderer from 'react-test-renderer' import PatternStopsLayer from '../pattern-stops-layer' import {mockFeed, mockModification} from '../../../utils/mock-data' describe('Project-Map > PatternStopsLayer', () => { it('renders correctly', () =...
test/integration/scss-fixtures/invalid-global-with-app/pages/_app.js
flybayer/next.js
import React from 'react' import App from 'next/app' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
test/test_helper.js
mcekiera/hangman
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/__tests__/TabOption.js
kirankalyan5/react-native-segmented-control-tab
/* @flow */ import 'react-native' import React from 'react' import renderer from 'react-test-renderer' import TabOption from '../TabOption' describe('<TabOption />', () => { it('should render TabOption', () => { const tree = renderer.create(<TabOption text="Tab value" />).toJSON() expect(tree).toMatchSnapsho...
src/__tests__/fileMocks/singleNamed/Italics.js
react-cosmos/fs-playground
// @flow import React from 'react'; const Italics = ({ name }: { name: string }) => <em>{name}</em>; export default Italics;
docs/src/app/components/pages/components/RadioButton/ExampleSimple.js
verdan/material-ui
import React from 'react'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; import ActionFavorite from 'material-ui/svg-icons/action/favorite'; import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; const styles = { block: { maxWidth: 250, }, radioButton: { ...
client/src/utils/index.js
AuggieH/GigRTC
import React from 'react'; import ReactDOM from 'react-dom'; export function createReducer(initialState,allSwitches){ return (state = initialState,action) =>{ const reduceSelection = allSwitches[action.type]; return reduceSelection ? reduceSelection(state,action.payload) : state; } } export f...
app/components/ProgressBar/index.js
singaporesamara/SOAS-DASHBOARD
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...