path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/Panel/index.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from './Wrapper'; import Overlay from './Overlay'; import Content from './Content'; class Panel extends React.PureComponent { render() { const { onClick, children, isLeft, isOpen } = this.props; if (isOpen) { return ( ...
fixtures/blocks/src/index.js
billfeller/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import {unstable_createRoot as createRoot} from 'react-dom'; import './index.css'; import Router from '...
src/modules/AttachmentWebm/component.js
svmn/ace-rx
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import IconButton from 'material-ui/IconButton'; import { fullWhite, lightBlack } from 'material-ui/styles/colors'; import { getExtWebmThumbnail } from '../../utils'; export default class AttachmentWebm extends Component { c...
node_modules/react-bootstrap/es/CarouselCaption.js
superKaigon/TheCave
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
frontend/src/components/layout/menuLink.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import { ListItem, ListItemText, ListItemIcon } from 'material-ui/List'; import Hidden from 'material-ui/Hidden'; import { withStyles } from 'material-ui/styles'; const styleSheet = theme => ({ default: { paddingTop: theme.spacing.unit, paddingBo...
lib/index.js
wilsontayar/hyper
import {webFrame} from 'electron'; import forceUpdate from 'react-deep-force-update'; import {Provider} from 'react-redux'; import React from 'react'; import {render} from 'react-dom'; import rpc from './rpc'; import init from './actions/index'; import * as config from './utils/config'; import * as plugins from './uti...
src/svg-icons/maps/add-location.js
tan-jerene/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/components/Spinner.js
duongdev/unsplash-web-screensaver
import React from 'react'; import PropTypes from 'prop-types'; import { Spinner as zIndex } from 'zIndexes'; const Spinner = ({ percent }) => ( <div className="Spinner" style={{ position: 'fixed', top: 0, left: 0, right: 0, height: 3, zIndex }}> <div style={{ backgroundColor: 'orange', ...
app/containers/HomePage.js
azlyth/redub
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
packages/es-components/src/components/controls/buttons/features/withLoadingStateWhileRunning.js
TWExchangeSolutions/es-components
import React from 'react'; import PropTypes from 'prop-types'; import { useLoadingState } from '../../../../hooks/useLoadingState'; export const withLoadingStateWhileRunning = ButtonComponent => { const ButtonWithLoadingState = React.forwardRef( ( { showWhileRunning: runningContent, childre...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/ButtonToolbar.js
Akkuma/npm-cache-benchmark
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/app/core/atoms/icon/icons/injury.js
blowsys/reservo
import React from 'react'; const Injury = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M3,21 C3,17.134 7.029,14 12,14 C16.971,14 21,17.134 21,21 L3,21 Z"/><path d="M13,8 L13.658,5.369 C13.151,5.137 12.593,5 12,5 C9.791,5 8,6.791 8,9 C8,11.209 9.791,13 12,13 C14.209,13 16,11.209 16,9 C16,8.407 15.863,7....
src/Parser/Druid/Balance/Modules/ResourceTracker/AstralPowerDetails.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Tab from 'Main/Tab'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Analyzer from 'Parser/Core/Analyzer'; import ResourceBreakdown from 'Parser/Core/Modules/ResourceTracker/ResourceBreakdown'; import { formatPercentage } from 'common/format'; import Icon fro...
docs/src/HomePage.js
thealjey/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageFooter from './PageFooter'; import Grid from '../../src/Grid'; import Alert from '../../src/Alert'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; export default class HomePage extends React.Component { render(...
src/__tests__/fileMocks/componentNamespace/App.js
react-cosmos/fs-playground
// @flow import React from 'react'; const App = () => <span />; export default App;
content/gocms/src/admin/containers/devTools/DevTools.js
gocms-io/gocms
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // DOCS: https://github.com/gaearon/redux-devtools // createDevTools takes a monitor and produces a DevTools component const DevTools ...
admin/client/views/list.js
nickhsine/keystone
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import classnames from 'classnames'; import CurrentListStore from '../stores/CurrentListStore'; import ConfirmationDialog from '../components/ConfirmationDialog'; import CreateForm from '../components/CreateForm'; import FlashMessages from '../...
src/browser/app/App.js
VigneshRavichandran02/3io
/* @flow */ import type { State } from '../../common/types'; import './App.css'; import * as themes from './themes'; import Footer from './Footer'; import Header from './Header'; import Helmet from 'react-helmet'; import R from 'ramda'; import React from 'react'; import favicon from '../../common/app/favicon'; import s...
components/ButtonSpinner.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { View, ActivityIndicator } from 'react-native' import PropTypes from 'prop-types' const styles = { spinnerStyle: { alignItems: 'center', justifyContent: 'center', }, } const ButtonSpinner = ( { containerStyle, size } ) => ( <View style={[ containerStyle, styles.spinnerS...
Example/index.ios.js
tlenclos/react-native-audio-streaming
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from './App'; AppRegistry.registerComponent('Example', () => App);
src/components/Display/ProductLoading.js
CoreyDH/product-finder
import React from 'react'; export default class ProductLoading extends React.Component { render() { // console.log('row props', this.props); return ( <div className={`product-finder-loader ${this.props.loading ? 'show' : 'hidden'}`}> <div className="product-finder-loader-modal"> <div classNam...
src/components/small-print.js
ScottDowne/donate.mozilla.org
import React from 'react'; import Link from './link.js'; import { FormattedHTMLMessage, FormattedMessage } from 'react-intl'; var Footer = React.createClass({ contextTypes: { intl: React.PropTypes.object }, render: function() { var bitcoinLink = (<Link to={'/' + this.context.intl.locale + '/give-bitcoin/...
modules/dreamview/frontend/src/components/StatusBar/DrivingMode.js
ycool/apollo
import React from 'react'; import classNames from 'classnames'; import UTTERANCE from 'store/utterance'; export default class DrivingMode extends React.PureComponent { componentWillUpdate() { UTTERANCE.cancelAllInQueue(); } render() { const { drivingMode, isAutoMode } = this.props; UTTERANCE.speak...
src/components/LoginForm/LoginForm.js
ames89/keystone-react-redux
import React, { Component } from 'react'; import { reduxForm, Field, propTypes } from 'redux-form'; import loginValidation from './loginValidation'; @reduxForm({ form: 'login', validate: loginValidation }) export default class LoginForm extends Component { static propTypes = { ...propTypes } renderInput...
docs/app/Examples/views/Statistic/Variations/Size.js
jamiehill/stardust
import React from 'react' import { Statistic } from 'stardust' const Size = () => ( <div> <Statistic size='mini' label='Views' value='2,204' /> <Statistic size='tiny' label='Views' value='2,204' /> <Statistic size='small' label='Views' value='2,204' /> <Statistic label='Views' value='2,204' /> <S...
docs/src/components/MarkdownElement.js
sghall/resonance
// @flow /* eslint no-div-regex: "off" */ import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { withStyles } from '@material-ui/core/styles' import marked from 'marked' import prism from 'docs/src/utils/prism' const renderer = new marked.Renderer() renderer.heading...
components/reminder-item.js
lyahdav/qreminders-rn
// @flow import React from 'react'; import {ListItem} from 'react-native-elements'; import {StyleSheet, Text, View} from 'react-native'; import moment from 'moment'; import type {Alarm, Reminder} from './types'; import {PriorityView} from './priority-view'; import {ReminderUtils} from '../utilities/reminder-utils'; i...
client/components/TodoCreateForm.js
homanbromand/node-react-bootstrap
import React from 'react' import { create } from 'client/actions/todoActions' export default class CreateTodo extends React.Component { constructor() { super() this.handleCreateTodo = this.handleCreateTodo.bind(this) } handleCreateTodo(e) { e.preventDefault() const text = this.createTodoInput.value if...
dashboard-ui/app/components/dashboardproject/project.js
CloudBoost/cloudboost
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ProjectName from './projectname.js'; import Progressbar from './progressbar.js'; import Dropzone from 'react-dropzone'; import { toggleDrawer, cancelPlan } from '../../actions'; import IconDelet...
src/routes/content/catalog/Filter.js
muidea/magicSite
import React from 'react' import PropTypes from 'prop-types' import { Form, Button, Row, Col, Input, Popconfirm } from 'antd' const { Search } = Input const ColProps = { xs: 24, sm: 12, style: { marginBottom: 16 }, } const TwoColProps = { ...ColProps, xl: 96, } const Filter = ({ onAdd, onFilterChange, ...
src/components/AddDatePage.js
gregorysl/date-minder
import React from 'react'; import { Button, Checkbox, DatePicker } from 'antd'; const CheckboxGroup = Checkbox.Group; import moment from 'moment'; import 'moment/locale/en-gb'; moment.locale('en-gb'); class AddDatePage extends React.Component { constructor(props, context) { super(props, context); this.stat...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
suxinde2009/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const ContactsSectionItem = React.createClass({ propTypes: { contact: React.PropTypes.object }, mixins: [...
test/TestSigma.js
dunnock/react-sigma
import React from 'react' import sigma from '../sigma/main' /** * * Test wrapper running test on sigma instance right from the sigma compoenent * * @param {testConstruct} (sigma)=>void * @param {testRender} (sigma)=>void **/ class TestSigma extends React.PureComponent { constructor(props) { super(props) ...
client/app/components/Button/SaveButton.js
sfabrizio/bloggy
import React from 'react'; export default class SaveButton extends React.Component { constructor() { super(); } SaveItem () { this.props.action(); } render() { return ( <a className="button button__edit" onClick={this.SaveItem.bind(this)}> Save...
app/containers/HomePage/index.js
torvalde/mjolfjell-homepage
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/form/index.js
wmzy/formsy-antd
import React from 'react'; import PropTypes from 'prop-types'; import Formsy from 'formsy-react'; import classNames from 'classnames'; const Form = React.forwardRef(({ prefixCls = 'ant-form', layout, className, ...props }, ref) => { return ( <Formsy ref={ref} {...props} className={classNames({[...
examples/webpack-example/src/app/Main.js
xmityaz/material-ui
/** * In this file, we create a React component * which incorporates components providedby material-ui. */ import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Dialog from 'material-ui/Dialog'; import {deepOrange500} from 'material-ui/styles/colors'; import FlatButton from 'materia...
src/svg-icons/action/change-history.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChangeHistory = (props) => ( <SvgIcon {...props}> <path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/> </SvgIcon> ); ActionChangeHistory = pure(ActionChangeHistory); ActionChangeHistory.display...
Example/index.ios.js
Tredsite/react-native-camera
import React from 'react'; import { AppRegistry } from 'react-native'; import Example from './Example'; AppRegistry.registerComponent('Example', () => Example);
app/javascript/mastodon/components/icon_button.js
mhffdq/mastodon
import React from 'react'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class IconButton extends React.PureComponent { static propTypes = { className: PropTypes.stri...
src/routes/Customisable/components/plugins/matrix-products/matrix-products.plugin.js
codingarchitect/react-counter-pair
import React from 'react' import { connect } from 'react-redux' import MatrixProducts from './matrix-products.rt' export const pluginMetadata = { name : "react-counter/soe/items/matrix-products", displayName : 'Matrix Products', sequence : 5, active : true, childPlugin...
src/public/components/toolbox/item/file/remove.js
Lunik/tcloud
import React from 'react' import $ from 'jquery' import Notify from '../../../notification' import Color from '../../../../style/theme' import Loading from '../../../loading' import ListItem from '../default' import { CrossIcon } from '../../../image/svg' import DialogWindow from '../../../dialog/default' export def...
app/packs/src/components/generic/SegmentDetails.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findIndex, cloneDeep } from 'lodash'; import { Panel, Button, ButtonToolbar, OverlayTrigger, Tooltip, Tab } from 'react-bootstrap'; import UserStore from '../stores/UserStore'; import { LayersLayout, UploadInputChange } from './Gener...
src/routes/home/index.js
murphysierra/VinnyStoryPage
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Home from './Home'; impo...
src/svg-icons/places/all-inclusive.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAllInclusive = (props) => ( <SvgIcon {...props}> <path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.7...
src/components/common/cover/BackgroundImage/BackgroundImage.js
CtrHellenicStudies/Commentary
import React from 'react'; import Textures from '../Textures'; import './BackgroundImage.css'; const BackgroundImage = ({ src }) => { const styles = { backgroundSize: 'cover', backgroundPosition: 'center', backgroundRepeat: 'no-repeat', }; if (src) { styles.backgroundImage = `url(${src})`; } else { s...
src/components/AthletePage.js
yahorzhylinski/zhylinski-me-cliend-side
'use strict'; import React from 'react'; import { Link } from 'react-router'; import NotFoundPage from './NotFoundPage'; import AthletesMenu from './AthletesMenu'; import Medal from './Medal'; import Flag from './Flag'; import athletes from '../data/athletes'; export default class AthletePage extends React.Component ...
src/svg-icons/action/remove-shopping-cart.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRemoveShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.8...
src/components/App.js
bayun2/edict
import React from 'react'; import ShareWeixin from '../lib/shareWeixin'; class App extends React.Component { constructor(props) { super(props); // reply:0|1|2, 未回复,回复,拒绝 this.state = { addParam: url => { const str = location.search; return str.indexOf('?') < 0 ? url : url+str; ...
src/server.js
gabrielbull/react-router-server-complex-example
import React from 'react'; import App from '../build/server/app'; import { renderToString, extractModules } from 'react-router-server'; import { StaticRouter } from 'react-router'; import express from 'express'; import path from 'path'; import stats from '../build/public/stats.json'; const app = express(); app.use(exp...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
public/jspm_packages/npm/react-router@2.0.0/modules/IndexRoute.js
nayashooter/ES6_React-Bootstrap
/* */ "format cjs"; import React from 'react' import warning from './routerWarning' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './PropTypes' const { func } = React.PropTypes /** * An <IndexRoute> is used to specify its pa...
blueocean-material-icons/src/js/components/svg-icons/action/settings-brightness.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSettingsBrightness = (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 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8...
src/svg-icons/image/nature-people.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNaturePeople = (props) => ( <SvgIcon {...props}> <path d="M22.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H6v-3h1v-4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v4h1v5h16v-2h-3v-3.88c3.47-.41 ...
SmartDemo/ReactComponent/node_modules/react-native/Libraries/Components/WebView/WebView.ios.js
HarrisLee/React-Native-Express
/** * 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/js/components/PusherConnectionList.js
jaedb/Iris
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as pusherActions from '../services/pusher/actions'; import { indexToArray } from '../util/arrays'; import { I18n } from '../locale'; class PusherConnectionList extends React.Component { comp...
src/components/Chart/WordCloudChart.js
yangdongMC/kaola
import React from 'react'; import 'echarts-wordcloud'; import ReactEcharts from 'echarts-for-react'; const WordCloud = ({data}) => { console.log(data) function getOption() { var option = { tooltip: {}, series: [{ type: 'wordCloud', gridSize: 20, ...
ReactJS/04.React-Form-Exercise/demoToday/src/components/form/formFields/Input.js
Martotko/JS-Web
import React from 'react' import Valid from './../validationComponents/Valid' import Invalid from './../validationComponents/Invalid' let Input = props => { return ( <div> <label htmlFor={props.data}>{props.name}</label> <div> <input style={{ width: '300px' }} onChange...
src/dumb/buttons/AddButton.js
jeckhummer/ebidding-commercial
import React from 'react'; import {LabeledIconButton} from "./LabeledIconButton"; export class AddButton extends React.Component{ render() { return ( <LabeledIconButton icon="plus" {...this.props} /> ); } }
packages/material-ui-icons/src/FlightLand.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-.39v5.17l1.6.43 5.31 1.43z" /></g> , 'Fl...
src/components/MainRouteContainer.js
coolshare/ReactReduxStarterKit
import React from 'react'; import MainContainer from './MainPage/MainContainer' import Header from './Header' /** * */ export default class MainRouteContainer extends React.Component{ /** * render * @return {ReactElement} markup */ render(){ return ( <div> <Header/> <MainContainer/> ...
admin/client/App/screens/Item/components/EditFormHeader.js
naustudio/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import EditFormHeaderSearch from './EditFormHeaderSearch'; import { Link } from 'react-router'; import Drilldown from './Dr...
src/components/Header/index.js
luigiplr/Ulterius
import React from 'react'; import { History } from 'react-router'; import HeaderStore from './store'; import HeaderActions from './actions'; export default React.createClass({ mixins: [History], getInitialState() { return { maximized: false }; }, componentWillMount() ...
lib/Timepicker/Timepicker.js
folio-org/stripes-components
import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import { deprecated } from 'prop-types-extra'; import moment from 'moment-timezone'; import contains from 'dom-helpers/query/contains'; import debounce from 'lodash/debounce'; import uniqueId from '...
client/screens/components/DonutChart.js
francixcoag/trace_packages
'use strict'; 'use strict'; import React from 'react'; // Note that Highcharts has to be required separately import ReactHighcharts from 'react-highcharts'; import Highlight from 'react-highlight'; import ReactDOM from 'react-dom'; class TatDonut extends React.Component { constructor(props) { super(prop...
src/js/pages/selection/SequentDisplayer.js
jackdeadman/Natural-Deduction-React
import React from 'react'; import LogicExpressionParser from '../../classes/Parse/LogicExpressionParser' class SequentDisplayer extends React.Component { constructor() { super(); this.logicExpressionParser = new LogicExpressionParser(); } addValid = (string) => { var valid = this.logicExpressionPar...
js/App/Components/SensorDetails/SettingsTab.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
src/components/NeuralVerifyShield/NeuralVerify.stories.js
InsideSalesOfficial/insidesales-components
import React from "react"; import { storiesOf } from "@storybook/react"; import styled from "styled-components"; import NeuralVerifyShield from "./index.js"; import { renderThemeIfPresentOrDefault, colors, wrapComponentWithContainerAndTheme } from "../styles"; const Wrapper = styled.div` height: 30px; back...
example/index.android.js
moschan/react-native-pull-to-refresh
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import PTRView from 'react-native-pull-to-refresh' export default class PullToRefreshExample extends Component...
app/app.js
TrishAllin/electron-quick-start
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <h1>Yo!</h1>, document.getElementById('root') );
src/react/Login.js
laundree/app
// @flow /** * Main login page with social * login buttons */ import React from 'react' import { Text, Image, TouchableOpacity, View, ScrollView } from 'react-native' import FancyGoogleButton from './input/FancyGoogleButton' import FancyFacebookButton from './input/FancyFacebookButton' import FancyEmailB...
example/UndoRedo.js
nkbt/react-debounce-input
import React from 'react'; import {DebounceInput} from '../src'; export class UndoRedo extends React.Component { state = { value: '', history: [''], historyIndex: 0 }; onChange = ({target: {value}}) => { const {historyIndex, history} = this.state; this.setState({ value, history...
src/components/Reload/Reload.js
BastienAlvez/ReactNativeHue
import React from 'react'; import { View, StyleSheet, TouchableHighlight, Text, AppRegistry, Image, Animated, Easing } from 'react-native'; import styles from './Styles' var TIMES = 400; var Reload = React.createClass({ getInitialState: function() { return { opacity: 1, angle: new Animated.Value(0) ...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
src/js/admin/articles/filters/filter-item/filter-item-input.js
ucev/blog
import React from 'react' import './filter-item.style.scss' class FilterItemInput extends React.Component { constructor (props) { super(props) this.onChange = this.onChange.bind(this) this.refHandle = this.refHandle.bind(this) } onChange () { let value = this.input.value this.props.change(va...
docs/src/app/components/pages/components/BottomNavigation/Page.js
manchesergit/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 bottomNavigationReadmeText from './README'; import BottomNavigationExampl...
app/addons/fauxton/appwrapper.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
index.js
atesoriero2000/scout-project
import React, { Component } from 'react'; import { AppRegistry, Platform, StyleSheet, Text, View } from 'react-native'; import App from './App'; AppRegistry.registerComponent('scout_project', () => App);
src/svg-icons/action/all-out.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAllOut = (props) => ( <SvgIcon {...props}> <path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1...
src/components/MLHBanner/MLHBanner.react.js
HackCWRU/HackCWRU-Website
import React from 'react'; import styles from 'components/MLHBanner/MLHBanner.scss'; export default class MLHBanner extends React.Component { render() { return ( <div className={styles.MLHBanner}> <a id="mlh-trust-badge" href="https://mlh.io/seasons/na-2018/events?utm_source=na-2018&utm_m...
src/index.js
luoshi0429/express-plus-web
import React from 'react' import ReactDOM from 'react-dom' import { Router, browserHistory } from 'react-router' import './styles/index.css' import routers from './routers' import store from './store/configuraStore' import { Provider } from 'react-redux' import { getCheckedEp, getCheckedAuto, getSearchInterval, getHist...
js/components/home/item.js
Rebaiahmed/Alchaaer
import React, { Component } from 'react'; import { TouchableOpacity,Image,ListView ,Animated,TouchableHighlight, AsyncStorage,View } from 'react-native'; import { connect } from 'react-redux'; import { Actions, ActionConst } from 'react-native-router-flux'; import { Container, Header, Title, Content, Card, CardIt...
packages/editor/src/components/Dropdown/DropdownOption.js
strues/boldr
/* eslint-disable react/no-unused-prop-types */ /* @flow */ import React from 'react'; import type { Node } from 'react'; import cn from 'classnames'; export type Props = { children: Node, value?: any, onClick?: Function, onSelect?: Function, setHighlighted?: Function, index?: number, disabled?: boolean...
client/src/entrypoints/admin/wagtailadmin.js
wagtail/wagtail
import React from 'react'; import ReactDOM from 'react-dom'; import { Icon, Portal, initUpgradeNotification, initSkipLink } from '../..'; import { initModernDropdown, initTooltips } from '../../includes/initTooltips'; import { initTabs } from '../../includes/tabs'; if (process.env.NODE_ENV === 'development') { // Ru...
src/svg-icons/image/texture.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTexture = (props) => ( <SvgIcon {...props}> <path d="M19.51 3.08L3.08 19.51c.09.34.27.65.51.9.25.24.56.42.9.51L20.93 4.49c-.19-.69-.73-1.23-1.42-1.41zM11.88 3L3 11.88v2.83L14.71 3h-2.83zM5 3c-1.1 0-2 .9-2 ...
src/svg-icons/av/library-music.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57...
app/main.js
myk5000/DashAnalytics
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('root'));
docs/app/Examples/modules/Dropdown/Types/DropdownExampleInline.js
vageeshb/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' import { friendOptions } from '../common' // friendOptions = [ // { // text: 'Jenny Hess', // value: 'Jenny Hess', // image: { avatar: true, src: '/assets/images/avatar/small/jenny.jpg' }, // }, // ... // ] const DropdownExampleI...
www/src/components/survey/SurveyPage.js
cygwin255/SimpleSurvey
import React from 'react' import { Field } from 'redux-form' import QuestionByType from './QuestionByType' class SurveyPage extends React.Component { render () { let { fields, meta, showcase, arrayIndex, ...props } = this.props let error if (!showcase && fields.length === 0) { error = ( <d...
src/components/Nav/index.js
neikvon/react-tmpl
/* * @Author: inman * @Date: 2015-11-08 02:43:50 * @Last Modified by: inman * @Last Modified time: 2015-11-09 01:26:02 */ import React from 'react' require('./style.scss') require('./logo.png') class Nav extends React.Component { render() { return ( <div className="nav"> <ul> <...
src/components/NewsFeed.js
Joel-Raju/SpaceExplorer
import React, { Component } from 'react'; import { FlatList, Text, View, } from 'react-native'; import { connect } from 'react-redux'; import { fetchNewsFeed } from '../actions'; import NewsItem from './NewsItem'; class NewsFeed extends Component { componentWillMount() { this.props.fetchNewsFeed(); t...
node_modules/react-dimensions/index.js
Alex-Shilman/Drupal8Node
'use strict'; 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; }; var _createClass = function () { function defi...
src/interface/home/SpecListing/Spec.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Contributor from 'interface/contributor/Button'; import ReadableList from 'interface/common/ReadableList'; class Spec extends React.PureComponent { static propTypes = { spec: PropTypes.shape({ id: PropTypes.number.isRequired, clas...
src/components/Login/Login.js
andrew-filonenko/habit-tracker
import React from 'react'; import bem from '../../utils/bem-helper'; import TextInput from '../inputs/TextInput'; import Button from '../inputs/Button'; import Ribbon from '../Ribbon'; export default function Login({ errorMessage, onLogin, onUsername, onPassword }) { const { block, elem } = bem('b', 'login'); cons...
client/modules/Post/__tests__/components/PostListItem.spec.js
suchostone/ekinder
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
src/components/Weui/cell/cell_footer.js
ynu/res-track-wxe
/** * Created by jf on 15/11/12. */ import React from 'react'; import classNames from 'classnames'; export default class CellFooter extends React.Component { render() { const {className, children, ...others} = this.props; const cls = classNames({ weui_cell_ft: true, [cl...
src/svg-icons/av/slow-motion-video.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSlowMotionVideo = (props) => ( <SvgIcon {...props}> <path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1....
server/sonar-web/src/main/js/app/components/extensions/GlobalAdminPageExtension.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/js/components/TableHeader.js
odedre/grommet-final
// (C) Copyright 2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; import Box from './Box'; import AscIcon from './icons/base/LinkDown'; import DescIcon from './icons/base/LinkUp'; /** * @description A table hea...
react-components/src/library/components/standards/standards-row.js
concord-consortium/rigse
import React from 'react' import TextPreview from './text-preview' export default class StandardsRow extends React.Component { constructor (props) { super(props) this.state = { updating: false } this.handleButton = this.handleButton.bind(this) } handleButton (e) { const { statement, ma...