path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/parser/shared/modules/spells/bfa/azeritetraits/BlightborneInfusion.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; const blightbor...
docs/app/Examples/elements/Label/Variations/LabelExampleCircularEmpty.js
vageeshb/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const colors = [ 'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black', ] const LabelExampleCircularEmpty = () => ( <div> {colors.map(color => <Label circular color={color} empty k...
src/svg-icons/action/spellcheck.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpellcheck = (props) => ( <SvgIcon {...props}> <path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-...
src/components/TextInput/TextInput.js
wsherman67/UBA
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold...
client/src/app/containers/sidebar/SidebarSearch.js
mtiger2k/graphql-tutorial
import React from 'react'; import SidebarSearch from '../../../lib/sidebar/SidebarSearch'; function onSubmit(text) { // eslint-disable-next-line no-alert alert(`search: ${text}`); } export default function () { return ( <SidebarSearch onSubmit={onSubmit} /> ); }
src/client/pages/tocheck.react.js
sljuka/portfulio
import Component from '../components/component.react'; import React from 'react'; import {Link} from 'react-router'; import ToCheckItem from './tocheckitem.react'; import {msg, msgs} from '../intl/store'; class ToCheck extends Component { render() { return ( <div className="tocheck"> <h3> ...
docs/app/Examples/elements/Image/Variations/ImageExampleBordered.js
ben174/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const src = 'http://semantic-ui.com/images/wireframe/white-image.png' const ImageExampleBordered = () => ( <Image src={src} size='medium' bordered /> ) export default ImageExampleBordered
src/Login.js
angustas/company
import React, { Component } from 'react'; import { Input,Button,message} from 'antd'; import $ from 'jquery'; require('es6-promise').polyfill(); require('isomorphic-fetch'); import { hashHistory } from 'react-router'; export default class Login extends Component { constructor(props) { super(props); ...
app/javascript/mastodon/features/ui/components/column_link.js
8796n/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; const ColumnLink = ({ icon, text, to, href, method, hideOnMobile }) => { if (href) { return ( <a href={href} className={`column-link ${hideOnMobile ? 'hidden-on-mobile' : ''}`} data-method={method}> ...
Console/app/node_modules/antd/es/grid/row.js
RisenEsports/RisenEsports.github.io
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
frontend/src/Settings/Indexers/Indexers/AddIndexerModalContentConnector.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { fetchIndexerSchema, selectIndexerSchema } from 'Store/Actions/settingsActions'; import AddIndexerModalContent from './AddIndexe...
blueocean-material-icons/src/js/components/svg-icons/av/movie.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvMovie = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/> </SvgIcon> ); AvMovie.displayName = 'AvMovie'; AvMovie.muiName = 'SvgIcon'...
src/svg-icons/maps/local-car-wash.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCarWash = (props) => ( <SvgIcon {...props}> <path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2...
src/components/common/icons/Company.js
WendellLiu/GoodJobShare
import React from 'react'; /* eslint-disable */ const Company = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <g transform="translate(5)"> <path d="M48.4044336 147.763501L80.0395603 147.763501 80.0395603 114.790382 99.0548489 114.790382 99.0548489 147.763501 130.689976 147.76...
src/svg-icons/communication/phone.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61...
public/js/components/trends/trendComment.react.js
MadushikaPerera/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import ListItem from 'material-ui/lib/lists/list-item'; import List from 'material-ui/lib/lists/list'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; let style1={ width: 800, }; var Comment = React....
example/src/index.js
bokuweb/re-bulma
import React from 'react'; import { render } from 'react-dom'; import Example from './example'; import insertCss from 'insert-css'; import css from '../../build/css'; try { if (typeof document !== 'undefined' || document !== null) insertCss(css, { prepend: true }); } catch (e) {} render(<Example />, document.queryS...
app/shared_features/set_card/expanded/TimerProgressBar.js
squatsandsciencelabs/OpenBarbellApp
import React, { Component } from 'react'; import { View, Text, Animated, Easing } from 'react-native'; class TimerProgressBar extends Component { constructor(props) { super(props); this.state = { barAnimations: new Animated.Value(0), }; } shouldComponen...
src/v2/stories/Styles.stories.js
aredotna/ervell
import React from 'react' import { storiesOf } from '@storybook/react' import theme from 'v2/styles/theme' import ColorSwatch from 'v2/stories/__components__/ColorSwatch' import Measurement from 'v2/stories/__components__/Measurement' import Text from 'v2/components/UI/Text' import Pre from 'v2/components/UI/Pre' im...
modules/Router.js
limarc/react-router
import React from 'react' import warning from 'warning' import createHashHistory from 'history/lib/createHashHistory' import { createRoutes } from './RouteUtils' import RoutingContext from './RoutingContext' import useRoutes from './useRoutes' import { routes } from './PropTypes' const { func, object } = React.PropTyp...
packages/icons/src/md/hardware/LaptopWindows.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLaptopWindows(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 37h8v4H0v-4h8v-2c-2.21 0-4-1.79-4-4V11c0-2.21 1.79-4 4-4h32c2.21 0 4 1.79 4 4l-.02 20c0 2.21-1.77 4-3.98 4v2zM8 11v20h32V11H8z" /> </Ic...
es/catalog/properties/property-enum.js
cvdlab/react-planner
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;...
src/routes.js
arqex/react-router-boilerplate
'use strict'; import React from 'react'; import Router, {Route, NotFoundRoute, DefaultRoute} from 'react-router'; import App from './App'; import Home from './ui/Home'; var routes = ( <Route name="app" path="/" handler={ App } > <DefaultRoute name="home" handler={ Home } /> </Route> ); export default routes;
public/client/routes/editUser/components/officeAddressFields.js
nearform/concorda-dashboard
'use strict' import React from 'react' module.exports = { render: function () { return ( <div className="row"> <div className="col-xs-12 col-sm-6"> <input placeholder="office address" className="input-large"/> </div> <div className="col-xs-12 col-sm-6"> <input p...
dashboard/components/Section.js
MEDIGO/laika
import React from 'react' import { string, node } from 'prop-types' import './Section.css' export default function Section({ title, children }) { const items = children.map((c, i) => ( <div key={i.toString()} className='lk-section__item'> {c} </div> )) return ( <div className='lk-section'> ...
src/static/routes.js
dhruv-kumar-jha/react-static-complete-website
'use strict'; import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Home from 'app/content/Home'; import Features from 'app/content/Features'; import About from 'app/content/About'; import ContactUs from 'app/content/ContactUs'; import PageNotFound from 'app/content/PageNotFound'; cons...
electron/app/components/Sidebar.js
zindlerb/motif
import React from 'react'; import classnames from 'classnames'; import { SIDEBAR_WIDTH } from '../constants'; const Sidebar = function (props) { const { children, direction } = props; return ( <div className={classnames('sidebar h-100 flex-none', direction)} style={{ width: SIDEBAR_WIDTH }} ...
react/tic-tac-toe/src/index.js
saramic/learning
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; const times = x => f => { if (x > 0) { f(); times (x - 1) (f); } } const Square = ({value, onClick}) => ( <button className="square" onClick={onClick}> {value} </button> ); class Board exte...
src/interface/PremiumPage.js
anom0ly/WoWAnalyzer
import { t, Trans } from '@lingui/macro'; import { logout } from 'interface/actions/user'; import DocumentTitle from 'interface/DocumentTitle'; import GitHubButton from 'interface/GitHubButton'; import DiscordIcon from 'interface/icons/DiscordTiny'; import PremiumIcon from 'interface/icons/Premium'; import ViralContent...
docs/src/app/components/pages/components/AutoComplete/Page.js
hai-cea/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import autoCompleteReadmeText from './README'; import autoCompleteCode from '!ra...
src/notebook/components/cell/cell.js
0u812/nteract
/* @flow */ import React from 'react'; import { List as ImmutableList, Map as ImmutableMap } from 'immutable'; import CodeCell from './code-cell'; import MarkdownCell from './markdown-cell'; import Toolbar from './toolbar'; import { focusCell, focusPreviousCell, focusNextCell, focusCellEditor, focusPrevious...
node_modules/react-height/src/ReactHeight.js
dgferreira/demo
/* eslint "react/no-did-mount-set-state":0 */ /* eslint "react/no-did-update-set-state":0 */ import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import {shouldComponentUpdate} from 'react/lib/ReactComponentWithPureRenderMixin'; const getElementHeight = el...
frontend-dev/src/containers/Editor/Editor.js
akeating14/data-viz
import React from 'react'; import CodeMirror from 'react-codemirror'; import 'codemirror/lib/codemirror.css'; import 'codemirror/mode/sql/sql'; class Editor extends React.Component { render() { return ( <div className="row"> <div className="col-md-1"></div> <div...
examples/with-sentry/components/withSentry.js
callumlocke/next.js
import React from 'react' import Raven from 'raven-js' const SENTRY_DSN = '' function withSentry (Child) { return class WrappedComponent extends React.Component { static getInitialProps (context) { if (Child.getInitialProps) { return Child.getInitialProps(context) } return {} } ...
lib/components/user/monitored-trip/trip-status-rendering-strategies/inactive-renderer.js
opentripplanner/otp-react-redux
import React from 'react' import { FormattedMessage } from 'react-intl' import baseRenderer from './base-renderer' /** * Calculates various data for monitored trips that are have been set to an * inactive state by a user. */ export default function inactiveRenderer (monitoredTrip) { const data = baseRenderer(mon...
src/components/Velocity.js
stewest/react-sprint-graph
import React, { Component } from 'react'; import styled from 'styled-components'; const VeloWrapper = styled.div` display: block; margin: 2rem auto; text-align: center; width: 100%; ` class Velocity extends Component { render() { let days = this.props.vDays - 1; let points = this.props.dPoints[0]; ...
src/components/donutWidget/withDonut.js
govau/datavizkit
import React from 'react'; import merge from 'lodash/merge'; import PureComponentWithStaticProps from './../../classes/pureComponentWithStaticProps'; import {makeHighcontrastPatterns} from './../../utils/highcontrastPatterns'; import {createPolarCustomLegendData} from './../../utils/chartOptionsHelpers'; const BASE...
src/svg-icons/action/view-stream.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewStream = (props) => ( <SvgIcon {...props}> <path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/> </SvgIcon> ); ActionViewStream = pure(ActionViewStream); ActionViewStream.displayName = 'ActionViewStream'; Acti...
frontend/src/components/NotificationList/container.js
plusbeauxjours/nomadgram
import React, { Component } from 'react'; import NotificationList from './presenter'; class Container extends Component { state = { loading: true }; componentDidMount() { const { notificationList } = this.props; if (notificationList) { this.setState({ lo...
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
wangkang0627/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...
src/Toolbar.js
Incubity/react-big-calendar
import React from 'react'; import cn from 'classnames'; import message from './utils/messages'; import { navigate } from './utils/constants'; class Toolbar extends React.Component { static propTypes = { view: React.PropTypes.string.isRequired, views: React.PropTypes.arrayOf( React.PropTypes.string, ...
src/components/right-display-component.js
sota1235/Kakitama
/** * @description 右メイン画面 */ import React from 'react'; import MusicList from '../containers/music-list-container'; import MusicDropzone from '../containers/dropzone-container'; import CommonToolbar from './toolbar-component'; const RightDisplay = () => ( <div style={{ paddingLeft: 256 }}> <CommonToolbar /> ...
app/javascript/mastodon/features/ui/components/confirmation_modal.js
NS-Kazuki/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, ...
components/button.js
yeso126/Mapapp
import React, { Component } from 'react'; import { StyleSheet, View, Animated, TouchableNativeFeedback, } from 'react-native'; import { NavigationActions } from 'react-navigation'; // const {width, height} = Dimensions.get('window'); const navigateAction = NavigationActions.navigate({ routeName: 'Easy', ...
app/containers/HomePage/ListView.js
BeautifulTrouble/beautifulrising-client
/* ListView */ import React from 'react'; import styled from 'styled-components'; import { ThemeProvider } from 'styled-components'; const theme = { bgColor: 'none', listItemWidth: '48%', listItemHeight: '200px', //Spiel spielFontSize: '12px', spielColor: '#000000', padding: '0 10px 0 50p...
client/pages/Dashboard.js
mmazzarolo/numvalidate
/* @flow */ import React, { Component } from 'react'; import _ from 'lodash'; import PageHead from '../components/PageHead'; import Button from '../components/Button'; import Spinner from '../components/Spinner'; import Snackbar from '../components/Snackbar'; import Toolbar from '../components/Toolbar'; import backendS...
imports/ui/pages/GroceryList.js
hirdbluebird/recipe-app-react
import React from 'react'; import { Jumbotron } from 'react-bootstrap'; import { Router, Route, browserHistory } from 'react-router'; import { Link } from 'react-router'; const Index = () => ( <div className="Index"> <Jumbotron className="text-center"> <h2>Welcome to recipe-app!</h2> <p>Chose your ow...
src/components/DataPane.js
sel129/lofter
import React, { Component } from 'react'; import Nav from 'react-bootstrap/Nav' import Button from 'react-bootstrap/Button'; import DropdownButton from 'react-bootstrap/DropdownButton'; import Dropdown from 'react-bootstrap/Dropdown'; import Table from './TableContainer'; class DataPane extends Component { construct...
app/javascript/mastodon/features/status/components/detailed_status.js
8796n/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...
project-templates/reactfiber/externals/react-fiber/fixtures/fiber-debugger/src/Fibers.js
ItsAsbreuk/itsa-cli
import React from 'react'; import { Motion, spring } from 'react-motion'; import dagre from 'dagre'; // import prettyFormat from 'pretty-format'; // import reactElement from 'pretty-format/plugins/ReactElement'; function getFiberColor(fibers, id) { if (fibers.currentIDs.indexOf(id) > -1) { return 'lightgreen'; ...
components/Indicators/IndicatorGroup.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import warning from 'warning'; import Indicator from './Indicator'; const IndicatorGroup = (props) => { const { children, activeIndicator, Component, ...parentProps, } = props; return ( <div { ...parentProps }> { children ...
src/routes/Home/MB_index/MB_list.js
markwang2764/react-ant
import React from 'react' import {Row, Col} from 'antd' import {Router, Route, Link, browserHistory} from 'react-router' export default class MBList extends React.Component{ constructor(){ super() this.state = { news: '' } } componentWillMount() { var myFetchOptions = { method: 'GET' }; f...
public/js/components/IdentificationChronicPain.js
Vabrins/CadernetaDoIdoso
import React from 'react'; import $ from 'jquery'; import { Link } from 'react-router-dom'; const initialState = { do_you_have_pain_last_same_more_than_3_mon_2_10:'', the_pain_is_like_a_shock_or_a_burning_2_10:'', does_the_pain_get_worse_when_walking_2_10:'', does_pain_improve_with_rest_2_10:'' }; class Id...
client/src/pages/room.js
SivanMehta/chatroom
// React import React from 'react' import { render } from 'react-dom' import { Router, Route, Link, hashHistory } from 'react-router' // additional components import Message from './message' // Material UI import { List, ListItem } from 'material-ui/List' import Divider from 'material-ui/Divider' import Avatar from '...
fields/components/DateInput.js
codevlabs/keystone
import moment from 'moment'; import DayPicker from 'react-day-picker'; import React from 'react'; import ReactDOM from 'react-dom'; import Popout from '../../admin/client/components/Popout'; import { FormInput } from 'elemental'; let lastId = 0; module.exports = React.createClass({ displayName: 'DateInput', propT...
src/issue/screens/issue-settings.screen.js
Antoine38660/git-point
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ScrollView, StyleSheet } from 'react-native'; import { ListItem } from 'react-native-elements'; import ActionSheet from 'react-native-actionsheet'; import { ViewContainer, SectionLi...
src/component/Skills/SkillList.js
dentemple/developer-portfolio
import React from 'react' import PropTypes from 'prop-types' import Skill from './Skill' const SkillList = ({ list }) => { return ( <ul> {list.map(function (skill, index) { return <Skill key={index}>{skill}</Skill> })} </ul> ) } SkillList.propTypes = { list: PropTypes.array.isRequire...
Neos.Media.Browser/packages/neos-media-browser/src/Variants/Variant.js
neos/neos-development-collection
import React from 'react'; export default class Variant extends React.PureComponent { render() { const {persistenceIdentifier, previewUri, presetIdentifier, width, height, presetVariantName, hasCrop, cropInformation, onRequestCrop} = this.props; const aspect = cropInformation.width / cropInformatio...
js/jqwidgets/demos/react/app/tabs/loadingtabcontentswithxhr/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; class App extends React.Component { componentDidMount() { let loadPage = (url, tabIndex) => { let request = new XMLHttpRequest(); request.open('GET', url, f...
fields/types/select/SelectColumn.js
jacargentina/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () ...
frontend/src/components/showpicker/ShowPicker.js
tdv-casts/website
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { red500, grey50 } from 'material-ui/styles/colors'; import withWidth from 'material-ui/utils/withWidth'; import RaisedButton from 'material-ui/RaisedButton'; import ShowPickerDatePicker from './ShowPickerDatePicker'; import ShowPickerLis...
examples/forms-bootstrap/src/components/dialogs-create-optimistic/Layout.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Hook from './Hook'; import hookCode from '!raw-loader!./Hook'; export default createReactClass({ displayName: 'Layout', render: function() { return ( <div className="example"> <h3> Dialog: Create - Opt...
src/components/images/Login.react.js
DravitLochan/accounts.susi.ai
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; ...
packages/material-ui-icons/src/Voicemail.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Voicemail = props => <SvgIcon {...props}> <path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3.04 0 5.5-2...
src/components/fuel/FuelSavingsTextInput.js
Opelvectra/hello.react.redux
import React from 'react'; import PropTypes from 'prop-types'; const FuelSavingsTextInput = (props) => { const handleChange = (e) => { props.onChange(props.name, e.target.value); }; return ( <input className="small" type="text" placeholder={props.placeholder} value={props.value} ...
components/GoogleAnalytics/GoogleAnalytics.js
markhker/newCyK
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; import { googleAnalyticsId } from '../../config'; const trackingCode = { __html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':...
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/Form/RowText.js
KlusterKite/KlusterKite
import React from 'react'; import { Row } from 'formsy-react-components'; import './styles.css'; export default class RowText extends React.Component { // eslint-disable-line react/prefer-stateless-function static propTypes = { label: React.PropTypes.string.isRequired, text: React.PropTypes.string.isRequire...
app/javascript/mastodon/features/compose/components/text_icon_button.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const iconStyle = { height: null, lineHeight: '27px', width: `${18 * 1.28571429}px`, }; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, ...
test/helpers.js
chrishoage/react-bootstrap
import React from 'react'; import { cloneElement } from 'react'; export function shouldWarn(about) { console.warn.called.should.be.true; console.warn.calledWithMatch(about).should.be.true; console.warn.reset(); } /** * Helper for rendering and updating props for plain class Components * since `setProps` is de...
packages/node_modules/@webex/react-component-md-text-input/src/index.js
ciscospark/react-ciscospark
/* eslint no-underscore-dangle: 0 */ import React from 'react'; import {Input} from '@momentum-ui/react'; import * as AdaptiveCard from 'adaptivecards'; import classnames from 'classnames'; import {renderCardElement} from '@webex/react-component-utils'; /** * Replaces Text Input of adaptive Card with MD(Momentum De...
src/components/header.js
MRmac1/blog
import React from 'react' import Link from 'gatsby-link' const Header = ({ siteTitle }) => ( <div style={{ background: 'rebeccapurple', marginBottom: '1.45rem', }} > <div style={{ margin: '0 auto', maxWidth: 960, padding: '1.45rem 1.0875rem', }} > ...
src/components/activity/screens/ActivityDisplay/ActivityDisplayScreen.js
yasavbrain/yasav
import React from 'react'; import ActivityDisplayContainer from './containers/ActivityDisplayContainer'; export default class ActivityDisplayScreen extends React.Component { constructor(props) { super(props); this.navigateToEditActivity = this.navigateToEditActivity.bind(this); this.navigateToGraphActivi...
src/icons/VpnLockIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class VpnLockIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M44 8V7c0-2.76-2.24-5-5-5s-5 2.24-5 5v1c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h10c1.11 0 2-.9 2-2v-8c0-1.1-.89-...
stories/Snippet.stories.js
algolia/react-instantsearch
import PropTypes from 'prop-types'; import React from 'react'; import { storiesOf } from '@storybook/react'; import { text } from '@storybook/addon-knobs'; import { Snippet, Hits, Configure } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('Snippet', module); const Def...
5.2.3/src/components/DevTools.js
erikras/redux-form-docs
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' import { toggleVisibilityKey, changePositionKey } from './devToolsConfig' export default createDevTools( <DockMonitor {...{ toggleVis...
src/nmr/containers/App.js
maybeShuo/netease-music-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PlayList from "../components/PlayList"; import SearchBar from "../components/SearchBar"; import PlayListDetail from "../components/PlayListDetail"; import TrackTable from "../components/TrackTable"; import Player from "../component...
server/priv/js/components/BenchOverview.react.js
alinpopa/mzbench
import React from 'react'; import Duration from './Duration.react'; import BenchSummary from './BenchSummary.react'; import BenchOverviewGraphs from './BenchOverviewGraphs.react'; class BenchOverview extends React.Component { render() { return ( <div> <Duration bench={this.prop...
src/components/VmIcon/index.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import style from './style.css' /** * Large or small icon (image) associated with the VM * or default when icon not provided */ const VmIcon = ({ icon, className, missingIconClassName }) => { if (icon) { const data = icon.get('data') const type...
src/PaginationButton.js
wjb12/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: { ...
src/svg-icons/action/add-shopping-cart.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAddShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-...
src/components/ui/DropDown.js
yaswanthsvist/openCexTrade
import React from 'react'; import {connect} from 'react-redux'; import { StyleSheet, Text,Button, View,ScrollView,StatusBar,Image } from 'react-native'; import { TouchableHighlight, TouchableWithoutFeedback,List,ListItem,Animated,Easing,FlatList} from 'react-native'; import Triangle from 'react-native-triangle'; import...
app/components/MarketInfo/index.js
kevyu/ctp_demo
import React, { Component } from 'react'; import cx from 'classnames'; import styles from './MarketInfo.scss'; class MarketInfo extends Component { render() { const { marketInfo } = this.props; let color = styles.green; if (marketInfo.zhangfu > 0) { color = styles.red; } return ( <d...
src/RPage.js
crongjie/npm-rjn-demo
/* RPage - Page Component */ import React from 'react' import data_mainmenu from './data/mainmenu.js' import {pages} from './data/pages.js' import RDesc from './RDesc.js' import RExample from './RExample.js' import RMemo from './RMemo.js' import RSource from './RSource.js' import RNavBar from './RNavBar.js' let ...
addons/viewport/src/manager/components/RotateViewport.js
rhalff/storybook
import React from 'react'; import PropTypes from 'prop-types'; import * as styles from './styles'; export function RotateViewport({ active, ...props }) { const disabledStyles = props.disabled ? styles.disabled : {}; const actionStyles = { ...styles.action, ...disabledStyles, }; return ( <div style=...
src/routes.js
cape-io/boiler
import React from 'react' import { IndexRoute, Route } from 'react-router' import { App, Counter, Explore, GithubUserPage, List, LoginForm, RepoPage, User, // UserPage, } from './containers' /** * Please keep routes in alphabetical order */ export default function createRoutes(...
docs/app/Examples/modules/Accordion/Types/AccordionExamplePanelsProp.js
clemensw/stardust
import React from 'react' import { Accordion } from 'semantic-ui-react' import faker from 'faker' import _ from 'lodash' const panels = _.times(3, () => ({ title: faker.lorem.sentence(), content: faker.lorem.paragraphs(), })) const AccordionExamplePanelsProp = () => ( <Accordion panels={panels} /> ) export def...
react-ui/src/modules/Login/index.js
bhefty/nightlife-app
import React, { Component } from 'react'; import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import * as actions from '../../actions/auth' import LoginForm from './components/LoginForm' import RegisterForm from './components/RegisterForm' import './Login.css' class Login extends Comp...
src/client/routes/routes.js
ottomajik/react-demo
'use strict'; import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import { createHistory } from 'history'; import HomePage from './HomePage.js'; export default function() { const history = createHistory(); return ( <Router history={ history }> <Route path="...
src/routes/Home/components/HomeView.js
DaveSpringer/bmg-rap-sheets
import React from 'react' import { Link } from 'react-router' import './HomeView.scss' export const HomeView = () => ( <div className='hidden-print'> <h4>Welcome!</h4> <p> Bruce's Utility Belt is a collection of tools for the Batman Miniature Game. It is intended to be a resource to help players ...
app/static/scripts/user/emailForm/main.js
joshleeb/TobioPreRelease
import User from '../user.js'; import UserStore from '../store.js'; import userConsts from '../constants.js'; import React from 'react'; require('./styles.scss'); export default class UserEmailForm extends React.Component { constructor() { super(); this.state = { email: '', loading: false, ...
src/components/SetItem.js
JasonLunsford/LEGO_Tracker
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink as Link } from 'react-router-dom'; import _ from 'lodash'; import CloseIcon from 'react-icons/lib/fa/close'; import { partial } from '../lib/utils'; import { extractThemeName } from '../lib/helpers'; export const SetItem = (props) => {...
src/components/LanguageSwitcher/LanguageSwitcher.js
fkenk/Majsternia
/* eslint-disable no-shadow */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { setLocale } from '../../actions/intl'; function LanguageSwitcher({ currentLocale, availableLocales, setLocale }) { const isSelected = locale => locale === currentLocale; co...
docs/app/Examples/collections/Message/Variations/MessageAttachedExample.js
jcarbo/stardust
import React from 'react' import { Button, Checkbox, Form, Icon, Message } from 'stardust' const MessageAttachedExample = () => ( <div> <Message attached header='Welcome to our site!' content='Fill out the form below to sign-up for a new account' /> <Form className='attached fluid segme...
extensions/cms/client-admin.js
axax/lunuc
import React from 'react' import Hook from 'util/hook' import config from 'gen/config-client' const {ADMIN_BASE_URL, PRETTYURL_SEPERATOR} = config import CmsViewContainer from './containers/CmsViewContainer' import {Link} from 'client/util/route' import {_t, registerTrs} from '../../util/i18n' import { Button, ...
stories/components/clipPathImage/index.js
sethbergman/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import ClipPathImage from 'shared/components/clipPathImage/clipPathImage'; import jamesBondJpg from '../../asset/james-bond.jpg'; storiesOf('shared/components/clipPathImage', module) .add('Default', () => ( <ClipPathImage image={j...
src/items/components/edit.js
rek/grammar-notes
import React from 'react' import {connect} from 'react-redux' import {ajax} from '../../utils' import { FormGroup, ControlLabel, FormControl, Button, ButtonToolbar } from 'react-bootstrap' import Actions from '../actions' class App extends React.Component { componentDidMount() { ajax().get('/api/item/' + thi...
src/components/common/story/StoryDetails.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import Link from 'react-router/lib/Link'; import { FormattedMessage, FormattedHTMLMessage, injectIntl } from 'react-intl'; import DataCard from '../DataCard'; import { safeStoryDate } from '../StoryTable'; import messages from '../../../resources/messages';...
frontend/src/Components/Error/ErrorBoundary.js
Radarr/Radarr
import * as sentry from '@sentry/browser'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; class ErrorBoundary extends Component { // // Lifecycle constructor(props, context) { super(props, context); this.state = { error: null, info: null }; } compone...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
BerkeleyTrue/react-router
/*globals COURSES:true */ import React from 'react' class Announcement extends React.Component { render() { let { courseId, announcementId } = this.props.params let { title, body } = COURSES[courseId].announcements[announcementId] return ( <div> <h4>{title}</h4> <p>{body}</p> ...
client/src/components/Main.js
jondcoleman/book-trader
import React from 'react' import BookSearch from './BookSearch' import AllBooks from '../containers/AllBooksCont' import MyBooks from '../containers/MyBooksCont' import Trades from '../containers/TradesCont' import ProfileContainer from '../containers/profileContainer' import OfferBook from '../containers/OfferBo...