path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/routes/not-found/NotFound.js
louisukiri/react-starter-kit
/** * 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-...
src/js/containers/MapBox/index.js
waagsociety/ams.datahub.client
import React from 'react' import mapboxgl from 'mapbox-gl' import * as mapActions from './actions' export default class MapBox extends React.Component { componentDidMount() { console.log('Map it') mapboxgl.accessToken = 'pk.eyJ1IjoibWFydGlud2FhZyIsImEiOiJjaWo0NWt6ZWYwMDE0dXlrcm0yenVkNDR5In0.0I9xJzLu...
lib/src/app.js
SerendpityZOEY/Fixr-RelevantCodeSearch
import React from 'react'; import ReactDOM from 'react-dom'; import SolrConnector from 'react-solr-connector'; import Navbar from './navbar.js'; import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import injectTapEventPlugin from 'react-tap-eve...
app/javascript/mastodon/features/compose/components/search.js
palon7/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ placeholder: { id: 'search.placeholder', defaultMessage: 'Search' }, }); @injectIntl export default class Search extends React.PureComponent { static propTypes...
src/common/components/Heading.js
sikhote/davidsinclair
// @flow import type { TextProps } from './Text'; import type { Theme } from '../themes/types'; import Text from './Text'; import React from 'react'; type HeadingContext = { theme: Theme, }; const Heading = (props: TextProps, { theme }: HeadingContext) => { const { bold = true, fontFamily = theme.heading....
Demo/app/App.js
suffle/react-native-zoombox
/** * Zoom-Box example app * @flow */ import React, { Component } from 'react'; import { StyleSheet, TouchableHighlight, Navigator, Text, View } from 'react-native'; import Home from './Home'; import Demo1 from './Demo1'; import Demo2 from './Demo2'; import Demo3 from './Demo3'; class App extends Compone...
App/Components/CustomCallout.js
OUCHUNYU/Ralli
import Button from './Common/button' import Dimensions from 'Dimensions' var {height, width} = Dimensions.get('window'); import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, LinkingIOS } from 'react-native'; class CustomCallout extends Component { render()...
pootle/static/js/editor/components/SuggestionFeedbackForm.js
claudep/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import _ from 'underscore'; import React from 'react'; im...
src/components/Footer.js
mikeharty/react-redux-webpack
import React from 'react'; import FilterLink from '../containers/FilterLink'; const Footer = () => ( <p> Show: {' '} <FilterLink filter='SHOW_ALL'> All </FilterLink> {', '} <FilterLink filter='SHOW_ACTIVE'> Active </FilterLink> {', '} <FilterLink filter='SHOW_COMPLETED...
src/js/containers/bondSystems/cyclobutane.js
nicksenger/JSchematic
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { createElement, saveState } from '../../actions/index'; import { calcRotation } from '../../utilities/sharedFunctions'; import BasicBond from '../basicBond'; require("../../../css...
app/react-icons/fa/star-half-empty.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaStarHalfEmpty extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m28 21.4l5.7-5.6-9.4-1.4-0.7-1.3-3.5-7.2v21.5l1.3 0.7 7.1 3.7-1.4-7.9-...
app/features/vocab/Report.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { compose } from 'redux'; import { reduxForm, Field, propTypes as formPropTypes } from 'redux-form'; import { connect } from 'react-redux'; import { Fixed, Absolute, Modal, Flex } from 'rebass'; import { orang...
web/src/Login.js
cardigann/cardigann
import React, { Component } from 'react'; import { HelpBlock, Col, Modal, Button, Form, FormGroup, FormControl, ControlLabel} from 'react-bootstrap'; import xhrUrl from './xhr'; class Login extends Component { static defaultProps = { authUrl: "./xhr/auth", onAuthenticate: () => {}, } state = { show: ...
src/js/components/icons/base/PlatformAruba.js
odedre/grommet-final
/** * @description PlatformAruba SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. ...
node_modules/react-bootstrap/es/Glyphicon.js
jkahrs595/website
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 ...
node_modules/rc-time-picker/es/Combobox.js
prodigalyijun/demo-by-antd
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React, { Component } from 'react'; im...
src/pages/public/SignoutPage.js
ihenvyr/react-app
import React from 'react'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router'; class SignoutPage extends React.Component { static propTypes = {}; static defaultProps = {}; state = {}; componentDidMount() { setTimeout(() => { // if (this.props.location.pathname.indexOf('admi...
src/esm/components/structure/cards/manager-card/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["className", "children", "actionProps"], _excluded2 = ["className", "as"], _excluded3 = ["className", "style"], _excluded4 = ["className", ...
app/containers/MyFavoritesContainer.js
AlienStream/experimental-frontend
import React from 'react'; class MyFavoritesContainer extends React.Component { render() { return ( <div> MyFavoritesContainer </div> ); } } export default MyFavoritesContainer
src/server.js
gbezyuk/react-redux-universal-hot-example
import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; im...
stories/VisualPicker.js
propertybase/react-lds
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { boolean, select } from '@storybook/addon-knobs'; import { VisualPicker, VisualPickerTileCaption, VisualPickerTileIcon, VisualPickerTileText, VisualPickerContainer, VisualPicke...
node_modules/recompose/renderComponent.js
TarikHuber/react-redux-material-starter-kit
'use strict'; exports.__esModule = true; var _createHelper = require('./createHelper'); var _createHelper2 = _interopRequireDefault(_createHelper); var _createEagerFactory = require('./createEagerFactory'); var _createEagerFactory2 = _interopRequireDefault(_createEagerFactory); function _interopRequireDefault(obj...
src/login/config/routes.js
listingpass/cmmRepo
import React from 'react' import { Router, Route, IndexRoute, hashHistory } from 'react-router' // import requireAuth from '../utils/requireAuth' import { isAuthenticated, requireAuth } from '../../core/auth'; import App from '../../views/app'; import SignIn from '../../views/pages/sign-in'; import Tasks from '../../v...
src/components/input/textarea/consult.js
KleeGroup/focus-components
import PropTypes from 'prop-types'; import React, { Component } from 'react'; const propTypes = { value: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]) } const DisplayTextArea = ({ value }) => ( <div data-focus='display-textarea'> {value} </div> ); DisplayTextArea...
src/components/PlayerSearchForm/PlayerSearchForm.js
cheshire137/steam-palettes
import React, { Component } from 'react'; import s from './PlayerSearchForm.scss'; import cx from 'classnames'; import withStyles from '../../decorators/withStyles'; import Location from '../../core/Location'; import parsePath from 'history/lib/parsePath'; import Steam from '../../api/steam'; @withStyles(s) class Play...
src/svg-icons/av/music-video.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMusicVideo = (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 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0...
src/svg-icons/action/find-in-page.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFindInPage = (props) => ( <SvgIcon {...props}> <path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5...
src/components/beer/Tips.js
gribnoysup/diy-dog-search
import React from 'react' import {Card} from '../common/Card' import {IconWithContent} from '../common/Icon' export const Tips = ({tips}) => ( <Card title="Brewer's Tip"> <IconWithContent icon="insight"> {tips} </IconWithContent> </Card> )
test/regressions/tests/RadioGroup/SimpleRadioGroup.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { FormControlLabel } from 'material-ui/Form'; import Radio, { RadioGroup } from 'material-ui/Radio'; export default function SimpleRadioGroup() { return ( <div style={{ width: 100 }}> <RadioGroup selectedValue="home"> <FormControlLabel value="home" contro...
src/scenes/home/scholarshipApplication/body/body.js
miaket/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { postBackend } from 'shared/utils/apiHelper'; import FormTextArea from 'shared/components/form/formTextArea/formTextArea'; import FormCheckBox from 'shared/components/form/formCheckBox/formCheckBox'; import FormButton from 'shared/com...
src/svg-icons/communication/stop-screen-share.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
src/Datepicker.js
anytimecoder/3click-datepicker-react
import React from 'react' import classNames from 'classnames' import DataTable from'./DataTable' /** * displays datepicker in three separate stages for: * 1. Years * 2000 2001 2002 2003 2004 * 2005 2006 2007 2008 2009 * 2010 2011 2012 2013 2014 * 2015 2016 2017 2018 2019 * * 2. Months * * * Ja...
packages/mineral-ui-icons/src/IconNoteAdd.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconNoteAdd(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}...
examples/js/style/inline-style-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; ...
src/components/post/Preview.js
thibmaek/thibmaek.github.io
import React from 'react'; import { string, array, number } from 'prop-types'; import Link from 'gatsby-link'; import computeDateFormat from '../../lib/computeDateFormat'; import { ContinueReadingButton, Tags } from './'; import styles from './Preview.module.css'; const getTimeToRead = timeToRead => { // Thank yo...
src/components/renderField.js
FrozenTear7/student-life-organizer
import React from 'react' import PropTypes from 'prop-types' const renderField = ({ input, label, type, meta: { touched, error, invalid, warning } }) => ( <div className={`form-group ${touched && invalid ? 'has-error' : ''}`}> <label className='control-label text'><strong>{label}</strong></label> <...
src/components/TeslaCar/TeslaCar.js
shihlinlu/tesla-range-calculator
import React from 'react'; import './TeslaCar.css'; import PropTypes from 'prop-types'; const TeslaCar = (props) => ( <div className="tesla-car"> <div className="tesla-wheels"> <div className={`tesla-wheel tesla-wheel--front tesla-wheel--${props.wheelsize}`}></div> <div className={`tesla-wheel tesla-wheel--re...
src/svg-icons/action/assignment.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignment = (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 .45 1 1s-...
src/svg-icons/action/autorenew.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAutorenew = (props) => ( <SvgIcon {...props}> <path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ...
src/index.js
samhingu/SPLClientLite
import React from 'react' import { render } from 'react-dom' import { Router, Route, IndexRoute, browserHistory } from "react-router" import App from './containers/app' import Links from './containers/links' import AddLink from './containers/addLink' import LinkCard from './components/linkCard' import injectTapEventP...
components/HoverCard/positionUtils.js
iest/loggins
/* Pretty much ripped from react-bootstrap */ import React from 'react'; export function ownerDocument(componentOrElement) { const elem = React.findDOMNode(componentOrElement); return (elem && elem.ownerDocument) || document; } export function getComputedStyles(elem) { return ownerDocument(elem).defaultView.get...
UI/src/containers/CreateServerFormContainer.js
matas-valuzis/server-monitor
import React from 'react'; import { connect } from 'react-redux'; import CreateServerForm from '../domainComponents/forms/CreateServerForm.jsx' import {createUnresolvedAction as UA} from '../services/UnresolvedAction'; const mapStateToProps = (state) => { return { keys: state.servers.key_files, data...
src/components/Register/Register.js
devgeniem/silverbullet-kitchensink
import React from 'react'; import { connect } from 'react-redux'; import { Grid } from 'react-bootstrap'; import { translate } from 'react-i18next'; import { RegisterForm } from '../forms'; const mapStateToProps = state => ({ user: state.user, }); @connect(mapStateToProps) @translate(['login_register']) export defa...
node_modules/react-bootstrap/es/BreadcrumbItem.js
okristian1/react-info
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 ...
packages/cf-component-radio/src/RadioGroup.js
koddsson/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; const styles = ({ theme }) => ({ textAlign: theme.textAlign, display: theme.display, verticalAlign: theme.verticalAlign }); class RadioGroup extends React.Component { render() { return ( ...
src/icons/NetworkLockedIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class NetworkLockedIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M39 20c.34 0 .67.06 1 .1V2L2 40h26v-6c0-1.77.77-3.37 2-4.47V29c0-4.96 4.04-9 9-9zm5 12v-3c0-2.76-2.2...
assets/jqwidgets/demos/react/app/fileupload/righttoleftlayout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxFileUpload from '../../../jqwidgets-react/react_jqxfileupload.js'; class App extends React.Component { render() { return ( <JqxFileUpload width={300} uploadUrl={'upload.php'} fileInputName={'...
vendor/htmlburger/carbon-fields/assets/js/fields/components/complex/index.js
Apiki/gb-plugin-api
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { isEmpty, includes, filter, findIndex, fromPairs, map, pickBy, sortBy, values, every } from 'lodash'; import { compose, withHandlers, withState, setStatic, withProps }...
admin/client/App/shared/Popout/PopoutHeader.js
alobodig/keystone
/** * Render a header for a popout */ import React from 'react'; import Transition from 'react-addons-css-transition-group'; const PopoutHeader = React.createClass({ displayName: 'PopoutHeader', propTypes: { leftAction: React.PropTypes.func, leftIcon: React.PropTypes.string, title: React.PropTypes.string.is...
pages/error/index.js
zendesk/linksf
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/components/app.js
tmcw/docbox
import React from 'react'; import Navigation from './navigation'; import PropTypes from 'prop-types'; import Content from './content'; import RoundedToggle from './rounded_toggle'; import GithubSlugger from 'github-slugger'; import debounce from 'lodash.debounce'; import { brandNames, brandClasses } from '../custom'; i...
ukelonn.web.frontend/src/main/frontend/components/AdminJobtypesModify.js
steinarb/ukelonn
import React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Link } from 'react-router-dom'; import { MODIFY_TRANSACTION_TYPE_NAME, MODIFY_JOB_AMOUNT, SAVE_CHANGES_TO_JOB_TYPE_BUTTON_CLICKED, } from '../actiontypes'; import Locale from './Locale'; import JobtypesBox from './Jo...
src/renderer/Embedded/index.js
jpuri/react-draft-wysiwyg
import React from 'react'; import PropTypes from 'prop-types'; const Embed = ({ block, contentState }) => { const entity = contentState.getEntity(block.getEntityAt(0)); const { src, height, width } = entity.getData(); return (<iframe height={height} width={width} src={src} frameBorder="0" allowFullScreen title="...
.storybook/config.js
loremtest/skb5-with-storybook
import {configure, storiesOf, action } from '@kadira/storybook'; import React, { Component } from 'react'; import StyleWrapper from './utils/StyleWrapper'; import StoryWrapper from './utils/StoryWrapper'; function loadStories() { const storybook = { action: action, storiesOf: (...args) => { return sto...
app/javascript/mastodon/components/logo.js
cobodo/mastodon
import React from 'react'; const Logo = () => ( <svg viewBox='0 0 216.4144 232.00976' className='logo'> <use xlinkHref='#mastodon-svg-logo' /> </svg> ); export default Logo;
blueocean-material-icons/src/js/components/svg-icons/notification/drive-eta.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationDriveEta = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 15c-.83 0-...
src/templates/tags-list-template.js
renegens/blog
// @flow strict import React from 'react'; import { Link } from 'gatsby'; import kebabCase from 'lodash/kebabCase'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Page from '../components/Page'; import { useSiteMetadata, useTagsList } from '../hooks'; const TagsListTempl...
src/containers/Asians/TabControls/BreakRounds/CreateBreakRooms/4_AllocateVenues/_VenueComponents/VenueDropZone.js
westoncolemanl/tabbr-web
import React from 'react' import ItemTypes from './ItemTypes' import { DropTarget } from 'react-dnd' import moveVenue from './moveVenue' const venueTarget = { canDrop (props, monitor) { return true }, drop (props, monitor) { moveVenue(props, monitor) } } function collect (connect, monitor) { return...
frontend/app/components/pages/alias/alias-password.js
LINKIWI/linkr
import dottie from 'dottie'; import Helmet from 'react-helmet'; import React from 'react'; import Alert, {ALERT_TYPE_SUCCESS, ALERT_TYPE_ERROR} from '../../alert'; import Container from '../../container'; import Footer from '../../footer'; import Header from '../../header'; import Button from '../../ui/button'; impor...
src/svg-icons/av/fast-forward.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFastForward = (props) => ( <SvgIcon {...props}> <path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/> </SvgIcon> ); AvFastForward = pure(AvFastForward); AvFastForward.displayName = 'AvFastForward'; AvFastForw...
app/components/DeviceMock/sosia.js
wanbinkimoon/parmigiana
import React from 'react'; export const Sosia = () => { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1446.1 385.3"><defs></defs><title>pad_1</title><g id="Layer_2" data-name="Layer 2"><g data-name="Layer 2"><g id="Wrap"><rect id="Border" class="cls-1" x="1" y="1" width="1444.1" height="383.35" rx="3...
examples/with-redux-code-splitting/containers/about.js
nelak/next.js
import React from 'react' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import {namespaceConfig} from 'fast-redux' import Link from 'next/link' const DEFAULT_STATE = {version: 1} const {actionCreator, getState: getAboutState} = namespaceConfig('about', DEFAULT_STATE) const bumpVersion ...
geonode/monitoring/frontend/monitoring/src/containers/root.js
francbartoli/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
src/components/sideBarContainer/SideBarContainer.js
sanjay1909/WeaveReact
import React from 'react'; import ComponentManager from '../../ComponentManager'; import AbstractComponent from '../../AbstractComponent'; import Overlay from './Overlay'; import SideBar from "./SideBar"; import sideBarContainerConfig from "./Config"; class SideBarContainer extends AbstractComponent { constructor...
docs/src/app/components/pages/components/TextField/ExampleDisabled.js
tan-jerene/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleDisabled = () => ( <div> <TextField disabled={true} hintText="Disabled Hint Text" /><br /> <TextField disabled={true} id="text-field-disabled" defaultValue="Disabled Value" />...
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/DraggableAttr/index.js
strapi/strapi-examples
/** * * DraggableAttr */ /* eslint-disable react/no-find-dom-node */ import React from 'react'; import { findDOMNode } from 'react-dom'; import { DragSource, DropTarget, } from 'react-dnd'; import { getEmptyImage } from 'react-dnd-html5-backend'; import { flow } from 'lodash'; import PropTypes from 'prop-types...
src/components/AppRoutes.js
baker-natalie/lets-react
'use strict'; import React from 'react'; import { Router, browserHistory } from 'react-router'; import routes from '../routes'; export default class AppRoutes extends React.Component { render() { return ( <Router history={browserHistory} routes={routes} onUpdate={() => window.scrollTo(0, 0)}/> ); } ...
docs-site/src/components/SelectorDocumentation.js
brightinteractive/bright-js-framework
import React from 'react' import { Card, CardHeader, CardText } from 'material-ui' import { Subheader } from './Headers' import { Comment, Prototype, ParameterListDoc, Type } from './api-documentation-components' /** * Render documentation for a selector */ const SelectorDocumentation = ({ name, comment, type }) => ...
tests/react/createElement_string.js
AprilArcus/flow
// @flow import React from 'react'; class Bar extends React.Component {} class Foo extends React.Component { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); } }
src/svg-icons/image/brightness-7.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness7 = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69...
collect-webapp/frontend/src/common/components/LoadingSpinnerSmall.js
openforis/collect
import React from 'react' import PropTypes from 'prop-types' import { Spinner } from 'reactstrap' const LoadingSpinnerSmall = (props) => { const { alignRight } = props const style = alignRight ? { position: 'absolute', top: '10px', right: 0, marginRight: '20px' } : {} return <Spinner color="primary" size="sm" ...
src/ButtonsSpace.react.js
z-vr/react-popup
import React from 'react'; import PropTypes from 'prop-types'; import ActionButton from './ActionButton.react'; export default class ButtonsSpace extends React.Component { static displayName = 'PopupFooterButtons'; onOk() { return this.props.onOk(); } onClose() { return this.props.onC...
Libraries/Components/WebView/WebView.ios.js
jaggs6/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...
src/jsx/Grid.js
TiffanyLeeRusso/mypictures
import React, { Component } from 'react'; import $ from 'jquery'; import '../css/Grid.css'; // Grid export default class Grid extends Component { propTypes: { updateCheckedPictures: React.PropTypes.func } render() { var pics = this.props.pictureData.map(function(pic) { let checked = this.props.checkedPi...
node_modules/react-bootstrap/es/FormControlStatic.js
NickingMeSpace/questionnaire
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/Parser/Rogue/Subtlety/Modules/RogueCore/ComboPointDetails.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Tab from 'Main/Tab'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SPELLS from 'common/SPELLS'; import Icon from 'common/Icon'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; impo...
app/components/Quiz/index.js
Goodly/TextThresher
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { Map as ImmutableMap } from 'immutable'; import Color from 'color'; import Question from 'components/Question'; import Project from 'components/Project'; import Progress from 'components/Progress'; ...
src/svg-icons/action/view-module.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewModule = (props) => ( <SvgIcon {...props}> <path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/> </SvgIcon> ); ActionViewModule = pure(ActionViewModule)...
tests/react_native_tests/test_data/native_code/ToolbarWithActions/storybook/stories/index.js
ibhubs/sketch-components
import React from 'react' import { storiesOf } from '@storybook/react-native' import { action } from '@storybook/addon-actions' import { linkTo } from '@storybook/addon-links' import Artboard from 'storybook/stories/Artboard/index.js' import SvgComponent from 'storybook/stories/FilterIcon/index.js' import SvgComponent...
web/src/js/utils.js
ujjwal96/mitmproxy
import _ from 'lodash' import React from 'react' window._ = _; window.React = React; export var Key = { UP: 38, DOWN: 40, PAGE_UP: 33, PAGE_DOWN: 34, HOME: 36, END: 35, LEFT: 37, RIGHT: 39, ENTER: 13, ESC: 27, TAB: 9, SPACE: 32, BACKSPACE: 8, SHIFT: 16 }; // Add...
src/PaginationButton.js
asiniy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
UnSpiraTive/radio
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'));
frontend/src/containers/AddFund.js
OpenCollective/opencollective-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { pushState } from 'redux-router'; import formatCurrency from '../lib/format_currency'; import { getPaypalCard } from '../reducers/users'; import Content from './Content'; import TopBar from '../components/TopBar'; import Notifi...
src/components/__tests__/TableTest.js
ttrentham/Griddle
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import Table from '../Table'; test('renders', (t) => { const wrapper = shallow(<Table visibleRows={5} />); t.true(wrapper.matchesElement(<table />)); }); test('renders with style', (t) => { const style = { backgroundColor: '#...
ui/kirk/src/Finance/index.js
socx/Kirk
import React from 'react' const Finance = (props) => ( <div> <h1>Finance</h1> <p>{console.log(props)}</p> </div> ) export default Finance
app/view/society/recommend.js
uuom/aitribe
/** * Created by yangxp5 on 2017/1/10. */ import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableNativeFeedback, PixelRatio, Image } from 'react-native'; import GiftedListView from '../../component/GiftedListView'; export default class Recommend extends Comp...
src/components/Link/Link.js
willchertoff/Ben-Kinde
/** * 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-...
source/client/components/visitor/rsvp/form.js
lawshe/boda
import React from 'react'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import wedding from '../../../../../config/wedding.js'; import glob from 'styles/app'; import local from './_styles'; import PerGuestRsvp from './form-pieces/per-guest-rsvp'; import PlusGuests from './form-p...
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_03/finished/src/routes.js
yevheniyc/C
import React from 'react' import { Router, Route, IndexRoute, hashHistory } from 'react-router' import { App, Whoops404 } from './components' import SkiDayCount from './components/containers/SkiDayCount' import AddDayForm from './components/containers/AddDayForm' import SkiDayList from './components/containers/SkiDayLi...
Tests/Components/RoundedButtonTest.js
infinitered/ChainReactApp
// // https://github.com/airbnb/enzyme/blob/master/docs/api/shallow.md import test from 'ava' // import React from 'react' // import RoundedButton from '../../App/Components/RoundedButton' // import { shallow } from 'enzyme' // // Basic wrapper // const wrapper = shallow(<RoundedButton onPress={() => {}} text='howdy' ...
src/components/Group.js
TonyYang9527/my-app
import React from 'react'; import PropTypes from 'prop-types'; import {observer} from 'mobx-react'; class Group extends React.Component{ static propTypes = { type: PropTypes.string, className: PropTypes.string, }; static defaultProps = { type : '', clas...
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/containers/factory.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; /** * The internal dependencies. */ import { getContainerComponent } from 'lib/registry'; /** * Render a new container. * * @param {Object} store * @param {String} type *...
src/components/AlbumCard/AlbumCard.js
adisrini/personal-website
import { Classes } from '@blueprintjs/core'; import React, { Component } from 'react'; import './AlbumCard.css'; import Tilt from 'react-tilt' class AlbumCard extends Component { truncate(string, limit) { if (string.length > limit) return string.substring(0, limit) + '...' else return string }...
client/src/components/Menu.js
fmoliveira/rexql-boilerplate
import React from 'react' import { Link } from 'react-router' import { FormatMessage } from 'react-easy-intl' import NavLink from './NavLink' export const Nav = ({children}) => ( <div className='container'> <nav className='nav'> {children} </nav> </div> ) export const Brand = ({children}) => ( <L...
docs/app/Examples/elements/Input/Variations/InputExampleRightLeftLabeled.js
clemensw/stardust
import React from 'react' import { Input, Label } from 'semantic-ui-react' const InputExampleRightLeftLabeled = () => ( <Input labelPosition='right' type='text' placeholder='Amount'> <Label basic>$</Label> <input /> <Label>.00</Label> </Input> ) export default InputExampleRightLeftLabeled
app/components/DownloadedGames/UserGameListItem.js
cdiezmoran/AlphaStage-desktop
// @flow import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import type { UserGame } from '../../utils/globalTypes'; class UserGameListItem extends Component { props: { game: UserGame } render() { const { game } = this.props; const gameRoute = `/games/${game._id}`; ...
src/routes.js
dumbNickname/oasp4js-goes-react
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, Widgets, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (store) ...
lib-es/components/nav/nav.js
bokuweb/re-bulma
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; }; import React, { Component } from 'react'; import PropTypes fr...
src/js/Main/components/ProActiveProject.js
fr3nchN/proactive
import React from 'react' import { Link } from 'react-router-dom' import links from "./../links" import ContentProActiveProject from "./../../../content/homepage/ContentProActiveProject" const ProActiveProduct = ({ item }) => { return ( <div className="col-sm-5 background-verylightgray m-1 pt-2"> ...
frontend/src/components/DonationItem.js
OpenCollective/opencollective-website
import React from 'react'; import moment from 'moment'; import ProfilePhoto from './ProfilePhoto'; import Currency from './Currency'; export default ({donation, user, precision=0}) => { return ( <div className='TransactionItem'> <ProfilePhoto hasBorder={true} url={user && user.avatar} /> ...