path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/action/alarm-off.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
client/components/Categories.js
carlbernardo/jimini
import React from 'react'; import $ from 'jquery'; class Categories extends React.Component { constructor(){ super(); this.setCategory = this.setCategory.bind(this); } setCategory(ref){ let category = ref.target.textContent ? ref.target.textContent : ref.target.alt this.props.getCategoryRef(cat...
src/views/components/github-logo/github-logo.js
r-park/todo-react-redux
import React from 'react'; export default function GitHubLogo() { return ( <svg viewBox="0 0 20 20"> <path d="M10 0C4.5 0 0 4.5 0 10c0 4.4 2.9 8.2 6.8 9.5.5.1.7-.2.7-.5v-1.9c-2.5.5-3.2-.6-3.4-1.1-.1-.3-.6-1.2-1-1.4-.4-.2-.9-.6 0-.7.8 0 1.3.7 1.5 1 .9 1.5 2.4 1.1 3 .9.1-.6.4-1.1.6-1.3-2.2-.3-4.6-1.2-4.6-5 ...
src/app/components/header.js
skratchdot/ble-midi
import React, { Component } from 'react'; import BluetoothIcon from './icons/bluetooth'; import GithubIcon from './icons/github'; import MidiIcon from './icons/midi'; import { blueA400 } from 'material-ui/styles/colors'; import { connect } from 'react-redux'; import pkg from '../../../package.json'; export class Heade...
src/components/Icon/Icon.storiesHelpers.js
helpscout/blue
import React from 'react' import styled from 'styled-components' import { getColor } from '../../styles/utilities/color' import { boolean, select } from '@storybook/addon-knobs' import iconList from './icons' import { Icon, Text } from '../' const IconGrid = styled('div')` display: flex; flex-wrap: wrap; ` const ...
app/containers/DialerPage.js
leesander1/hearmenow-electron
import React, { Component } from 'react'; import Dialer from '../components/Dialer'; export default class DialerPage extends Component { render() { return ( <div> <Dialer /> </div> ); } }
docs/app/Examples/collections/Table/Variations/TableExampleFixedLine.js
aabustamante/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleFixedLine = () => { return ( <Table celled fixed singleLine> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.He...
src/components/__tests__/createSmartComponent.spec.js
sdemjanenko/adrenaline
import test from 'tape'; import React, { Component } from 'react'; import createDumbComponent from '../createDumbComponent'; test('createDumbComponent should return React.Component', assert => { class TestComponent { render() { return <div></div>; } } const decorated = createDumbComponent(TestCompo...
springboot/GReact/src/main/resources/static/app/components/forms/inputs/Clockpicker.js
ezsimple/java
import React from 'react' import 'script-loader!clockpicker/dist/bootstrap-clockpicker.min.js' export default class Clockpicker extends React.Component { componentDidMount() { const element = $(this.refs.input); const options = { placement: 'top', donetext: 'Done' }; element.clockpicker(...
app/javascript/app/components/projects/filter.js
moisesnandres/mvp-miprimeraapp
import React from 'react'; import glamorous from 'glamorous'; import { Row, Col, FormControl } from 'react-bootstrap'; const FilterContainer = glamorous.div({ padding: '20px 10px', borderRadius: '5px', backgroundColor: '#fff', margin: '20px 0' }); const Filter = (props) => ( <FilterContainer> <Row...
src/shared/components/form/form.js
hollomancer/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './form.css'; const Form = ({ className, children }) => { const classes = classNames({ [`${styles.form}`]: true, [`${className}`]: className }); return ( <form className={classes}> ...
src/components/Inputs/Textarea.js
benceg/dani
import React from 'react'; import { HOC } from 'formsy-react'; import ReactAutosizeTextarea from 'react-autosize-textarea'; const Textarea = ({ name, label, showRequired, showError, getErrorMessage, getValue, setValue }) => <div className={(showRequired() ? 'required' : showError() ? 'error' : null)}> ...
src/pages/index.js
Darkensses/darkensses.github.io
import React from 'react' import { Link, graphql } from 'gatsby' import Layout from '../components/layout' const IndexPage = ({data}) => { console.log(data); return ( <div> <Layout> <h1>Hi people</h1> <p>Welcome to my new Gatsby site.</p> <p>Esta cosa aun esta en contrucción, le...
fields/types/number/NumberColumn.js
webteckie/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTypes.object, data: React.PropTyp...
src/dumb/editor/custom_field/form_templates/AssetSelectionFormTemplate.js
jeckhummer/wf-constructor
import React from 'react'; import {GenericTextFormTemplate} from "./GenericTextFormTemplate"; export const AssetSelectionFormTemplate = ({label, update}) => { const props = { onLabelChange: label => update({label}), label }; return ( <GenericTextFormTemplate {...props}/> ); };
mxcube3/ui/containers/TaskContainer.js
meguiraun/mxcube3
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Characterisation from '../components/Tasks/Characterisation'; import DataCollection from '../components/Tasks/DataCollection'; import Helical from '../components/Tasks/Helical'; import Mesh from '../comp...
app/javascript/mastodon/features/list_adder/index.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListAdder, resetListAdder } from '...
app/components/DateTimePicker.js
matthieuh/desktop-assistant
// @flow import React, { Component } from 'react'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import DatePicker from './DatePicker'; import TimePicker from './TimePicker'; import styles from './DateTimePicker.scss'; export default class DateTimePicker extends Component { props: { in...
common/user-app/add-post/BarcodeReader.js
gobble43/gobble-dist-web
import React, { Component } from 'react'; class BarcodeReader extends Component { constructor() { super(); this.state = { }; } componentDidMount() { this.startBarcodeScanner(); } startBarcodeScanner() { Quagga.init({ inputStream: { name: 'Live', type: 'LiveStream', ...
cruts-ui/src/index.js
darkowl91/cruts
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
app/javascript/mastodon/features/ui/components/confirmation_modal.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; export default @injectIntl class ConfirmationModal extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, ...
2021/src/pages/NotFound/index.js
sjamcsclub/jamhacks.ca
import React from 'react'; const NotFoundPage = () => { return ( <div style={{ textAlign: 'center', marginTop: '40vh' }}> <h1>Page Not Found</h1> <h3> <a rel="noopener noreferrer" href="/"> Return to Home </a> </h3> </div> ); }; export default NotFoundPage;
example/src/cells/TableViewExampleCell.js
q210/react-native-tableview
/* eslint-disable react/forbid-prop-types */ import React from 'react' import PropTypes from 'prop-types' import { View, Text } from 'react-native' const TableViewExampleCell = (props) => { const style = { borderColor: '#aaaaaa', borderWidth: 1, borderRadius: 3, flex: 1, } if (props.data.backgr...
examples/React-Native.js
Adrianteri/hello-worlds
import React, { Component } from 'react'; import { Text } from 'react-native'; export default class HelloWorldApp extends Component { render() { return ( <Text>Hello world!</Text> ); } }
webpack/components/TooltipButton/TooltipButton.js
snagoor/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Tooltip, OverlayTrigger } from 'patternfly-react'; import './TooltipButton.scss'; const TooltipButton = ({ disabled, title, tooltipText, tooltipId, tooltipPlacement, renderedButton, ...props }) => { if (!disabled) return renderedButton...
src/utils/interpolation.js
shp54/cliff-effects
/** Allows insertion of provided components at specified points in a translated text block. */ import React from 'react'; import { mapValues } from 'lodash'; /** Interpolate components into a single text block (specified as an array) */ const interpolateText = function (template, components) { return template.map((...
docs/src/components/item-filter-example.js
adrianleb/nuclear-js
import React from 'react' import { Reactor, Store, toImmutable } from 'nuclear-js' import StateViewer from './state-viewer' import ExampleStep from './example-step' import Browser from './browser' const reactor = new Reactor({ debug: true, expose: 'itemFilterReactor' }); reactor.registerStores({ typeFilter: Sto...
app/javascript/mastodon/components/media_gallery.js
ebihara99999/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; const messages = defineMessages({ toggle_...
src/components/SpaToolbar/ToolbarButton/ToolbarButton.js
IanChuckYin/IanChuckYin.github.io
import React, { Component } from 'react'; import styles from './ToolbarButton.module.scss'; import { appendStyles } from '../../../util/StyleAppender'; import selectors from '../../../util/Selectors'; class ToolbarButton extends Component { render() { const { buttonLabel, onClick, selected, isMobile } = ...
js/components/NotFound/index.js
mxstbr/postcss.parts
import React from 'react'; import Heading from './Heading'; import capitalize from '../../utils/capitalize'; import getTag from '../../utils/url'; const NotFound = ({ location }) => { const { pathname } = location; let tagText = ''; const tag = getTag(pathname); if (tag) { tagText = `Tag ${capitalize(ta...
app/component/NewsList.js
caoqianjie/react-webpack-demo1
import React from 'react'; import '../src/css/NewsList.css'; import NewsHeader from './NewsHeader'; import NewsItem from './NewsItem'; class NewsList extends React.Component { render(){ return ( <div className="newsList"> <NewsHeader/> <div className="newsList-new...
src/svg-icons/av/pause-circle-filled.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleFilled = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/> </SvgIcon> ); AvPauseCircleFilled = pure(AvP...
static/src/components/DetermineAuth.js
mortbauer/webapp
import React from 'react'; import {connect} from 'react-redux'; import {validate_token} from '../utils/http_functions' import * as actionCreators from '../actions/auth'; import { bindActionCreators } from 'redux'; import { browserHistory } from 'react-router' function mapStateToProps(state) { return { toke...
src/components/SecondaryPanes/EventListeners.js
rrandom/debugger.html
import React from 'react'; const { DOM: dom, PropTypes } = React; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import actions from '../../actions'; import { getEventListeners, getBreakpoint } from '../../selectors'; import CloseButton from '../shared/Button/Close'; import './EventL...
client/app.js
crosshj/nodeCents
//import React from 'react/cjs/react.production.min.js'; //import { render } from 'react-dom/cjs/react-dom.production.min.js'; import React from 'react'; import { render } from 'react-dom'; import { setup as setupStore } from './redux/store'; import { init as initActions } from './redux/actions'; import AppContainer...
transforms/__testfixtures__/class/class-flow2.output.js
reactjs/react-codemod
/* code taken from https://github.com/reactjs/react-router/blob/master/modules/IndexRoute.js */ /* @flow */ import React from 'react' import warning from './routerWarning' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './Intern...
client/extensions/woocommerce/woocommerce-services/views/live-rates-carriers-list/index.js
Automattic/woocommerce-connect-client
/** * External dependencies */ import React from 'react' import { localize } from 'i18n-calypso' /** * Internal dependencies */ import ExtendedHeader from 'woocommerce/components/extended-header' import CarriersList from './carriers-list' const supportedCarrierIds = [ 'wc_services_usps', 'wc_services_dhlexpress' ...
packages/@vega/layout/src/components/FourOhFour.js
VegaPublish/vega-studio
import React from 'react' const FourOhFour = () => <div>Not found</div> export default FourOhFour
packages/cf-component-code/src/CodeBlock.js
koddsson/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent, applyTheme } from 'cf-style-container'; import CodeUnstyled from './Code'; import CodeTheme from './CodeTheme'; const styles = ({ theme }) => ({ backgroundColor: theme.backgroundColor, border: theme.border, fontFamily: them...
docs/src/app/components/pages/components/Toolbar/ExampleSimple.js
andrejunges/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import IconButton from 'material-ui/IconButton'; import FontIcon from 'material-ui/FontIcon'; import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more'; import MenuItem from 'material-ui/MenuItem'; import DropDownMenu from...
src/auth-ui/AuthUiLogin.js
martintasker/cognito-manage
import React, { Component } from 'react'; import {connect} from 'react-redux'; import actions from '../app.actions'; const mapStateToProps = (state) => { return { isLoggedIn: state.getIn(['authUser', 'isLoggedIn']), cognitoAuth: state.getIn(['authUser', 'session']), }; }; const mapDispatchToProps = (disp...
201601react/李兰兰/3/app/index.js
zhufengreact/homework
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import Button from './components/Button/Button'; let root = document.getElementById('app'); ReactDOM.render(<Button />, root);
app/src/app/container/EventWriter.js
leonardiwagner/minibook
import React from 'react'; import { connect } from 'react-redux' import { addEvent } from '../actions/actions' import {render} from 'react-dom'; class EventWriter extends React.Component { constructor(props){ super(props); this.state = { value: '' }; this.onSaveEvent = ...
frontend/src/mobile/Login.js
purocean/yii2-template
import React from 'react'; import { Toast } from 'antd-mobile'; import Auth from '../auth/Auth'; import Http from '../utils/Http'; class Component extends React.Component { static contextTypes = { router: React.PropTypes.object.isRequired }; constructor(props) { super(props); Auth.setUser(''); ...
src/screens/authorized/home/contact/AddContact.js
anhtuank7c/simple-chat
import React, { Component } from 'react'; import { View, Text } from 'react-native'; class AddContact extends Component { static navigationOptions = { tabBar: { visible: false } } render() { console.log(this.props); return ( <View style={{ ...
frontend/src/containers/AttackListDetails.js
dimkarakostas/rupture
import React from 'react'; import AttackItem from './AttackItem'; import _ from 'lodash'; export default class AttackListDetails extends React.Component { constructor() { super(); this.state = { completed: [], runpaused: [] } } deleted = () => { t...
app/components/TouchableIcon.js
robcalcroft/edison
import React from 'react'; import PropTypes from 'prop-types'; import { TouchableHighlight } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; const TouchableIcon = ({ name, onPress }) => ( <TouchableHighlight onPress={onPress} underlayColor="transparent" activeOpacity={0.5}> <Icon name...
App/Client/node_modules/react-router/modules/Router.js
qianyuchang/React-Chat
import createHashHistory from 'history/lib/createHashHistory' import useQueries from 'history/lib/useQueries' import React from 'react' import createTransitionManager from './createTransitionManager' import { routes } from './PropTypes' import RouterContext from './RouterContext' import { createRoutes } from './RouteU...
app/javascript/mastodon/features/ui/index.js
alarky/mastodon
import React from 'react'; import Switch from 'react-router-dom/Switch'; import Route from 'react-router-dom/Route'; import Redirect from 'react-router-dom/Redirect'; import NotificationsContainer from './containers/notifications_container'; import PropTypes from 'prop-types'; import LoadingBarContainer from './contain...
src/module.js
Boughtmanatee5/webpack-example
// Bootstrapping module import React from 'react'; import Router from 'react-router'; import routes from 'routes'; Router.run(routes, Router.HistoryLocation, (Root, state) => { React.render(<Root {...state}/>, document.getElementById('content')); });
src/svg-icons/maps/local-post-office.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPostOffice = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); MapsLocalPostOff...
docs/app/Examples/modules/Accordion/Variations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const AccordionTypesExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Fluid' descriptio...
fields/types/file/FileColumn.js
linhanyang/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var LocalFileColumn = React.createClass({ renderValue: function () { var value = this.props.data.fields[this.props.col.path]; if (!value || !value.filename) ret...
fields/types/cloudinaryimage/CloudinaryImageColumn.js
rafmsou/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var CloudinaryImageColumn = React.createClass({ displayName: 'CloudinaryImageCo...
fiddles/react/fiddle-0011-SelectControl/src/index.js
bradyhouse/house
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/routes/Dashboard/components/ElectionList/ElectionDetailModal.js
imrenagi/rojak-web-frontend
import React from 'react' import { Modal, Header, Button, Icon, Form } from 'semantic-ui-react' const provinces = [ { key: '1', text: 'DKI Jakarta', value: '1' }, { key: '2', text: 'Jawa Barat', value: '2' }, { key: '3', text: 'Jawa Timur', value: '3' }, ] const cities = [ { key: '1', text: 'Jakarta Pusat', v...
examples/animations/app.js
brenoc/react-router
import React from 'react' import { render } from 'react-dom' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' require('./app.css') const history = useBasename(createHistory)({ basename: '/a...
examples/with-why-did-you-render/scripts/wdyr.js
azukaru/next.js
import React from 'react' if (process.env.NODE_ENV === 'development') { if (typeof window !== 'undefined') { const whyDidYouRender = require('@welldone-software/why-did-you-render') whyDidYouRender(React, { trackAllPureComponents: true, }) } }
src/app.js
ChronoBank/ChronoWAVES
import React from 'react'; import {connect} from 'react-redux'; import './app.css'; import {browserHistory} from 'react-router'; export class App extends React.Component { componentDidUpdate(prevProps) { const {dispatch, redirectUrl} = this.props; const isLoggingOut = prevProps.isLoggedIn && !this.props.is...
react-movies/src/index.js
Morhaus/hackathon
import React from 'react'; import App from './App'; // if (__DEV__ && __CORDOVA__) { // // Wait until we've opened our debugger // alert('Ready?'); // } if (__DEV__) { let warn = console.warn; // Have warnings cause errors console.warn = function(warning) { throw new Error(warning); }; } function re...
lib/shared/screens/admin/screens/schemas/shared/components/data-form/index.js
relax/relax
import * as schemaEntryActions from 'actions/schema-entry'; import Component from 'components/component'; import bind from 'decorators/bind'; import getContextFragment from 'helpers/page-builder/get-context-fragment'; import React from 'react'; import PropTypes from 'prop-types'; import {bindActionCreators} from 'redux...
src/index.js
ColeTownsend/Strava-Recent-Runs
import React from 'react'; import ReactDOM from 'react-dom'; var UserWeekRuns = React.createClass({ getInitialState: function() { this.state = {workouts: []}; return this.state; }, componentDidMount: function() { var request = this.props.source $.ajax({ url: request, dataType: 'jsonp...
classic/src/scenes/traypopout/src/Scenes/AppScene/AppScene.js
wavebox/waveboxapp
import { ipcRenderer } from 'electron' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { Tab, Tabs, AppBar } from '@material-ui/core' import SwipeableViews from 'react-swipeable-views' import NotificationScene from 'Scenes/NotificationScene' import UnreadScene from 'Scenes/Unr...
src/parser/warrior/arms/modules/spells/azeritetraits/StrikingTheAnvil.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS/index'; import TraitStatisticBox from 'interface/others/TraitStatisticBox'; import Events from 'parser/core/Events'; import SpellUsable from 'parse...
dist/lib/carbon-fields/assets/js/fields/components/media-gallery/edit-attachment.js
ArtFever911/statrer-kit
/** * The external dependencies. */ import $ from 'jquery'; import React from 'react'; import PropTypes from 'prop-types'; import { withHandlers } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import { preventDefault } from 'lib/helpers'; /** * Render a file u...
imports/ui/components/SubMaterialUI/DatePickerCN.js
ShinyLeee/meteor-album-app
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; // eslint-disable-line import/no-unresolved import warning from 'warning'; const dayAbbreviation = ['日', '一', '二', '三', '四', '五', '六']; const dayList = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']; const monthList = ['1月', '2月', '3月', '4月...
src/components/search.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) 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 License, o...
docs/app/Examples/collections/Form/GroupVariations/FormExampleEvenlyDividedGroup.js
koenvg/Semantic-UI-React
import React from 'react' import { Form, Input } from 'semantic-ui-react' const FormExampleEvenlyDividedGroup = () => ( <Form> <Form.Group widths='equal'> <Form.Field> <label>First name</label> <Input placeholder='First name' /> </Form.Field> <Form.Field> <label>Middle n...
src/app/common/UserInterface/components/Swipeable.js
toxzilla/app
import React from 'react'; import ReactDOM from 'react-dom'; import {classNames, combine as combineStyle, compose as composeStyle, ease} from 'react-dom-stylesheet'; import Control from './Control'; export default class Swipeable extends Control { static displayName = 'Swipeable' static props = { ...Control...
src/svg-icons/av/branding-watermark.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvBrandingWatermark = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/> </SvgIcon> ); AvBrandingWatermark = pure(AvBran...
src/svg-icons/communication/no-sim.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1....
src/svg-icons/maps/add-location.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
src/client/js/pages/newItemPage.jsx.js
codematix/agile
'use strict'; import React from 'react'; import Header from '../components/header.jsx'; import CreateProjectItemForm from '../components/createProjectItemForm.jsx'; export default function NewItemPage(props) { return ( <div className="new-item-page"> <Header/> <CreateProjectItemForm type={props.loc...
frontend/app/header.js
bow-fujita/jacc-halloween
/** * Copyright (C) 2018 Hiro Fujita <bow.fujita@gmail.com> */ 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import { Col , Grid , Row } from 'react-bootstrap'; class Header extends React.Component { render() { return ( <Grid> <Row> <Col xs={10}> ...
blueocean-material-icons/src/js/components/svg-icons/image/details.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageDetails = (props) => ( <SvgIcon {...props}> <path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/> </SvgIcon> ); ImageDetails.displayName = 'ImageDetails'; ImageDetails.muiName = 'SvgIcon'; export default ImageDetails;
src/svg-icons/action/assignment-returned.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentReturned = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 ....
web/src/js/components/Settings/Background/BackgroundSettingsView.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import QueryRendererWithUser from 'js/components/General/QueryRendererWithUser' import graphql from 'babel-plugin-relay/macro' import SettingsChildWrapper from 'js/components/Settings/SettingsChildWrapperComponent' import BackgroundSettings from 'js/componen...
.history/src/containers/EtsyProductItemsContainer_20170624111533.js
oded-soffrin/gkm_viewer
import React from 'react' import { connect } from 'react-redux' import ProductPageContainer from './ProductsContainer' import EtsyProduct from '../components/GKM/EtsyProduct' import { getItems, getCategories } from '../reducers/item' import { updateItem, addListingToProduct, resetDb, addCategory } from '../actions/item...
src/app/components/search/SaveList.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { commitMutation, graphql } from 'react-relay/compat'; import { Store } from 'react-relay/classic'; import { makeStyles } from '@material-ui/core/styles'; import { browserHistory } from 'react-router'; import TextField from '@material-ui/core/TextFie...
examples/counter/containers/CounterApp.js
ellbee/redux-devtools
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; class CounterApp extends Component { render() { const { counter, dispatch } = this...
src/containers/DirectMessageModal.js
Hylozoic/hylo-redux
import React from 'react' import { connect } from 'react-redux' import { get } from 'lodash' import { closeModal, navigate, showDirectMessage, findOrCreateThread } from '../actions' import { threadUrl } from '../routes' import Modal from '../components/Modal' import MessageToUserForm from '../components/MessageToUser...
imports/containers/IntroduceContainer.js
adderpositive/chat-app
/*================================================ IntroduceContainer ================== - is container takes control about data and functionality of introduce page @imports - react, Introduce ================================================ */ import React, { Component } from 'react'; import Introduce from '....
examples/huge-apps/routes/Grades/components/Grades.js
joeyates/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
docs/pages/components/popover.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'components/popover'; const requireDemo = require.context('docs/src/pages/components/popover', false, /\.(js|tsx)$/); const requir...
amp-stories/src/component/view/LinkComponentsStoryView/pages/StoryPage6.js
ampproject/samples
import React from 'react'; import styled from 'styled-components'; import { TextHighlightBannerLg as SharedTextHighlighBannerLg, TextLg, Button as SharedButton, } from '../shared'; import {BannerWrapper} from '/component/base/TextHighlight'; import AmpStoryPage from '/component/amp/AmpStoryPage'; const TextHigh...
app/jsx/shared/SpaceNameField.js
sfu/canvas-spaces
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import ICInputField from '../components/ICInputField'; const SpaceNameField = props => { const validate = event => { props.setError('name', ''); const space_name = event.target.value.trim(); // no empty names if (space_nam...
public/admin/build/BaseSetting.admin.chunk.js
dreamllq/koa-web-framework
webpackJsonp([6],{ /***/ 10: /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.warning = undefined; var _extends2 = __webpack_require__(2); var _extends3 = _interopRequireDefault(_extends2); var _typeof2 = __we...
app/react-icons/fa/level-up.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaLevelUp extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m31.2 13.5q-0.4 0.8-1.3 0.8h-4.3v19.3q0 0.3-0.2 0.5t-0.5 0.2h-15.7q-0.5 0-0....
packages/xo-web/src/xo-app/home/host-item.js
vatesfr/xo-web
import _ from 'intl' import Component from 'base-component' import InconsistentHostTimeWarning from 'inconsistent-host-time-warning' import Ellipsis, { EllipsisContainer } from 'ellipsis' import Icon from 'icon' import isEmpty from 'lodash/isEmpty' import Link, { BlockLink } from 'link' import map from 'lodash/map' imp...
blueocean-material-icons/src/js/components/svg-icons/image/add-a-photo.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageAddAPhoto = (props) => ( <SvgIcon {...props}> <path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-3.2-5c0 1.77 1.4...
src/js/jobs/components/skills/graph/ToolTip.js
tpucci/jobads-webapp
import React from 'react'; export default class ToolTip extends React.Component { render(){ let visibility="hidden"; let transform=""; let x=0; let y=0; let width=150,height=70; let transformText='translate('+width/2+','+(height/2-5)+')'; let transformArrow...
modules/ScrollManagementMixin.js
zhijiansha123/react-router
import React from 'react'; import { canUseDOM, setWindowScrollPosition } from './DOMUtils'; import NavigationTypes from './NavigationTypes'; var { func } = React.PropTypes; function getCommonAncestors(branch, otherBranch) { return branch.filter(route => otherBranch.indexOf(route) !== -1); } function shouldUpdateSc...
app/containers/PlayListEditor/index.js
fenderface66/spotify-smart-playlists
/** * PlaylistEditor * * Allows users to edit their smart playlists */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { makeSelectEditorState } from 'containers/HomePage/selectors'; import { toggleSmartEditor } from 'containers/HomePage...
app/components/dexcombanner/dexcombanner.js
tidepool-org/blip
/* * == BSD2 LICENSE == * Copyright (c) 2017, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
src/util/app.js
pekkis/web-development-with-js
import React from 'react'; import { Provider } from 'react-redux'; export function createApp(store, history, router) { const app = ( <Provider store={store}> {router} </Provider> ); return app; }
src/components/UIShell/SideNavItems.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'; co...
src/containers/AboutPage.js
knod/cliff-effects-1
import React from 'react'; import { Header, Message, } from 'semantic-ui-react'; // PROJECT COMPONENTS import { ExternalLink } from '../components/ExternalLink'; import { PageLayout } from '../components/PageLayout'; const AboutPage = ({ translations }) => { return ( <PageLayout> <Header ...
src/components/ResourcesList/ResourcesList.js
gReis89/sam-ovens-website
import React from 'react' import PropTypes from 'prop-types' import _map from 'lodash/map' import iconDownload from 'assets/imgs/icon-download.svg' import './ResourcesList.scss' export const ResourcesList = ({ data }) => ( <ul className='resource-list'> { _map(data, (item, i) => { return <li key={i...
pathfinder/vtables/csmservices/src/index.js
leanix/leanix-custom-reports
// 3rd party css files import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import '../node_modules/bootstrap/dist/css/bootstrap-theme.min.css'; import '../node_modules/react-bootstrap-table/dist/react-bootstrap-table.min.css'; // Import css declarations for the report import './assets/main.css'; import '@l...
public/javascripts/containers/AddTodo.js
InverseIntegral/NeverRESTing
import React from 'react' import {connect} from 'react-redux' import {addTodo} from '../actions' const mapStateToProps = (state) => { return { isFetching: state.isFetching }; }; let AddTodo = ({isFetching, dispatch}) => { let input; return ( <form onSubmit={e => { e.preven...