path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
frontend/src/components/primitives/Nr/AnimatedNumber/AnimatedNumber.js | dreamyguy/gitinsight | /* eslint-disable react/destructuring-assignment */
/* eslint-disable react/state-in-constructor */
/* eslint-disable react/static-property-placement */
// Copied and modified from 'animated-number-react'
// Changes: Introduce 'animate' prop, which triggers animation conditionally
// See: https://github.com/Leocardoso... |
src/components/interlocutor/screens/InterlocutorAdd/containers/InterlocutorAddContainer.js | yasavbrain/yasav | import React from 'react';
import moment from 'moment';
import { connect } from 'react-redux';
import 'moment/locale/fr';
import { getInterlocutorList } from 'yasav/src/components/interlocutor/screens/InterlocutorList/actions';
import InterlocutorAddView from '../views/InterlocutorAddView';
moment.locale('fr');
clas... |
src/components/detailsComponents/Contacts.js | markgreenburg/acquisitiontracker | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import Contact from './Contact';
import AddContact from './AddContact';
const Contacts = (props) => {
const contactsList = props.contacts.map(contact => (
<Contact
key={contact.name + contact.role + contact.email + contact.phone}
... |
pootle/static/js/auth/components/AccountActivation.js | phlax/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 React from 'react';
import { PureRenderMixin } from... |
src/svg-icons/maps/local-atm.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1... |
dev/example-studio/components/ProteinInput/ProteinInput.js | sanity-io/sanity | import PropTypes from 'prop-types'
import React from 'react'
import Fieldset from 'part:@sanity/components/fieldsets/default'
import {PatchEvent, unset, set, setIfMissing} from 'part:@sanity/form-builder/patch-event'
import {io, Viewer} from 'bio-pv'
import Select from 'part:@sanity/components/selects/default'
import T... |
client/modules/questions/components/sessionRegister.js | johngonzalez/abcdapp | import React from 'react';
import {FormGroup, FormControl, ControlLabel, Button} from 'react-bootstrap';
import ReactDOM from 'react-dom';
class SessionRegisterCode extends React.Component {
static propTypes() {
return {
insert: React.propTypes.func.isrequired,
error: React.propTypes.string
};
... |
js/jqwidgets/demos/react/app/responsivepanel/defaultfunctionality/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxResponsivePanel from '../../../jqwidgets-react/react_jqxresponsivepanel.js';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
import JqxTree from '../../../jqwidgets-react/react_jqxtree.js';
import JqxButton from '../../../jqwidge... |
viewer/components/DiffLayers.js | geotrellis/geotrellis-osm-elevation | "use strict";
import React from 'react';
import _ from 'lodash';
import { PanelGroup, Panel, Input, Button, ButtonGroup } from 'react-bootstrap';
import ifAllDefined from '../utils/utils.js';
function updateInterLayerDiffMap (showLayerWithBreaks, showMaxState, hideMaxState, showMaxAverageState, hideMaxAverageState, ro... |
webpack/src/Router/routes.js | theforeman/foreman_plugin_template | import React from 'react';
import WelcomePage from './WelcomePage';
const routes = [
{
path: '/foreman_plugin_template/welcome',
exact: true,
render: (props) => <WelcomePage {...props} />,
},
];
export default routes;
|
src/svg-icons/notification/tap-and-play.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationTapAndPlay = (props) => (
<SvgIcon {...props}>
<path d="M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0 4v3h3c0-1.66-1.34-3-3-3zm0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11zM17 1.01L7 1c-1.1 0-2... |
src/controls/Embedded/index.js | jpuri/react-draft-wysiwyg | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AtomicBlockUtils } from 'draft-js';
import LayoutComponent from './Component';
class Embedded extends Component {
static propTypes = {
editorState: PropTypes.object.isRequired,
onChange: PropTypes.func.isRequired,
mod... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Listing/Listing.js | Minoli/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/components/video_detail.js | signalcat/UIportfolio | import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detial col-md-8">
<div className="embed-reponsive embed-reponsive-16by9">
... |
src/components/UI/toast/Toast.js | dopry/netlify-cms | import PropTypes from 'prop-types';
import React from 'react';
import { Icon } from '../index';
import styles from './Toast.css';
const icons = {
info: 'info',
success: 'check',
warning: 'attention',
danger: 'alert',
};
export default function Toast({ kind, message }) {
return (
<div className={styles[k... |
public/js/components/placeholder.js | MelanistOnca/bookList | import React from 'react';
import { render } from 'react-dom';
export default class Placeholder extends React.Component {
render(){
//i should probably revisit why i needed this
return(
<div id="placeholder">
</div>
)
}
}
|
app/components/TextField/index.js | elainewlin/Executive | /**
*
* TextField
*
*/
import React from 'react';
import { Field } from 'redux-form';
function TextField(props) {
return (
<div className={`form-group col-xs-${props.width}`}>
<Field type="text" name={props.name} placeholder={props.label} id={props.label} component="input" required={props.required} autoFo... |
src/components/Pips.js | codaco/Network-Canvas | import React from 'react';
import PropTypes from 'prop-types';
/**
* Renders a set of pips indicating the current `Prompt`.
*/
const Pips = (props) => {
const {
large,
count,
currentIndex,
} = props;
const pips = [];
for (let index = 0; index < count; index += 1) {
const classes = (curren... |
src/packages/@ncigdc/uikit/Banner/BannerLink.js | NCI-GDC/portal-ui | import React from 'react';
import { theme } from '@ncigdc/theme';
const BannerLink = ({
children,
href,
level,
}) => (
<a
className="banner-warning-link"
href={href}
style={level === 'WARNING' ? { color: theme.primaryHighContrast } : {}}
target="blank"
>
{children}
</a>
);
export de... |
docs/src/app/components/pages/components/Slider/ExampleControlled.js | barakmitz/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
export default class SliderExampleControlled extends React.Component {
state = {
firstSlider: 0.5,
secondSlider: 50,
}
handleFirstSlider(event, value) {
this.setState({firstSlider: value});
}
handleSecondSlider(event, value) {... |
src/main/js/my-app/src/containers/Container.js | myapos/ClientManagerSpringBoot | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as actions from '../actions/';
const Container = props => <div> {props.children} </div>;
Container.propTypes = {
children: PropTypes.element,
};
export default connect(state => state, actions)(Container);
|
app/javascript/mastodon/components/dropdown_menu.js | yi0713/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from './icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
imp... |
client/components/Navbar.js | escape-hatch/escapehatch | import React from 'react';
import { Link } from 'react-router';
module.exports = ({ loggedIn, handleClick }) =>
(
<div className="panel panel-default">
<div className="panel-heading nav navbar-default">
<div className="navBar row">
<div className="col-xs-4">
<h2 className="pan... |
clients/web-client/src/index.js | rlods/CodingChallenge | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { browserHistory, Router } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import configureStore from './store'
import getRoutes from './routes'
import './index.css'
const store = con... |
docs/app/Examples/modules/Progress/Content/ProgressExampleLabelProp.js | shengnian/shengnian-ui-react | import React from 'react'
import { Progress } from 'shengnian-ui-react'
const ProgressExampleLabelProp = () => (
<Progress percent={55} label='Label' />
)
export default ProgressExampleLabelProp
|
imports/ui/components/PwaInstallPopupIOS/ShareIcon.js | haraneesh/mydev | import React from 'react';
const ShareIcon = ({ className, modern = false }) => {
if (modern) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
className={className}
viewBox="0 0 566 670"
>
<path d="M255 12c4-4 10-8 16-8s12 3 16 8l94 89c3 4 6 7 8 12 2 6 0 14-5 19-7 8-... |
src/js/elasticslider.js | JamyGolden/React-ElasticSlider | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import ElasticSliderCore from 'elasticslider-core';
const ReactElasticSlider = React.createClass({
_disablePagi: false,
componentDidMount: function() {
this.elasticSlider = new ElasticSliderCore(
this.refs.container.... |
__tests__/components/Counter.spec.js | geekjuice/whiskey | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import Counter from '../../src/js/components/Counter';
const noop = () => {};
const props = {
counter: 0,
complete: false,
onAsyncIncrement: noop,
onAsyncDecrement: noop,
onIncrement: noop,
onDecrement: noop,
onComplete... |
src/components/posts-list.js | Dmidify/mlblog | import React, { Component } from 'react';
import { Link } from 'react-router';
import Post from './post';
import SamplePost from './sample-post';
import { postsData } from '../sample-data';
class PostsList extends Component {
state = {
posts: postsData,
}
render() {
return (
<div className="cont... |
frontend/src/profile.js | wadobo/socializa | import React from 'react';
import { withRouter } from 'react-router';
import { setUser, user, logout } from './auth';
import Loading from './loading';
import API from './api';
import Bucket from './bucket';
import { translate } from 'react-i18next';
class Profile extends React.Component {
state = {
user... |
src/svg-icons/navigation/menu.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMenu = (props) => (
<SvgIcon {...props}>
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/>
</SvgIcon>
);
NavigationMenu = pure(NavigationMenu);
NavigationMenu.displayName = 'NavigationMenu';... |
core/src/plugins/gui.ajax/res/js/ui/Workspaces/wslist/WorkspacesList.js | pydio/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... |
src/svg-icons/device/battery-charging-20.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging20 = (props) => (
<SvgIcon {...props}>
<path d="M11 20v-3H7v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17h-4.4L11 20z"/><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 ... |
internals/templates/containers/LanguageProvider/index.js | mhoffman/CatAppBrowser | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/Tabs/Tab.js | pradel/material-ui | import React from 'react';
import EnhancedButton from '../internal/EnhancedButton';
function getStyles(props, context) {
const {tabs} = context.muiTheme;
return {
root: {
color: props.selected ? tabs.selectedTextColor : tabs.textColor,
fontWeight: 500,
fontSize: 14,
width: props.width,... |
src/svg-icons/action/payment.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPayment = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/>
</SvgIcon>
);
ActionPay... |
src/components/ResistanceCalculator/OhmageIndicator.js | mtharrison/react-resistance-calculator | import React, { Component } from 'react';
const OhmageIndicator = ({ resistance }) => {
const formatResistance = () => {
const r = parseFloat(resistance);
const MILLION = 1000000;
const THOUSAND = 1000;
if (r > MILLION)
return(r / MILLION).toFixed(1) + "MΩ";
if(... |
src/containers/Asians/TabControls/Dashboard/TournamentSetUpGuide/3_SetNumberOfBreakRoundsPerBreakCategory/Instance.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import CreateBreakRounds from './CreateBreakRounds'
import ViewBreakRounds from './ViewBreakRounds'
export default connect(mapStateToProps)(({
breakCategory,
breakRounds
}) => {
const filterByBreakCategory = elementToMatch => elementToMatch.breakCa... |
examples/js/expandRow/expand-row-by-column.js | powerhome/react-bootstrap-table | /* eslint max-len: 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;
if (i < 3) {
products.push... |
test/lib/index.js | isnifer/valya | import test from 'tape';
import React from 'react';
import { spy } from 'sinon';
import Valya from '../../lib/index';
import Validator from '../validator';
import { createRender, renderOnce } from '../render';
import '../setup';
const validators = [
{
validator: (value, params) => {
if (value)... |
packages/logos/src/mariadb.js | geek/joyent-portal | import React from 'react';
export default props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" {...props}>
<title>Artboard 1 copy 18</title>
<path
fill="#1B3240"
d="M42 9c0-.6-.3-1-.9-.9-.6 0-.4.2-1.8.6s-3.1.2-4.7.9C30 11.5 29.05 18 25 20.4c-3.1 1.7-6.2 1.9-9 2.8a17.18 17.18 0 0... |
src/components/EditableText/EditableText.js | apasashkov/treasy-client | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './EditableText.scss';
class EditableText extends Component {
static propTypes = {
className: PropTypes.string,
onSave: PropTypes.func,
onSubmit: PropTypes.func,
... |
src/components/NavLink.js | SomeHats/somehats.github.io | import PropTypes from 'prop-types';
import React from 'react';
import { NavLink } from 'react-router-dom';
import cx from 'classnames';
import cxs from 'cxs';
import { ThemeNames } from '../lib/Themes';
import { primary, primaryLight, textColor, darkTextColor } from '../lib/colors';
import { headingsFont } from '../lib... |
stories/containers/channels/channel-count.stories.js | LN-Zap/zap-desktop | import React from 'react'
import { storiesOf } from '@storybook/react'
import { ChannelCount } from 'components/Channels'
import { Provider } from '../../Provider'
storiesOf('Containers.Channels', module)
.addDecorator(story => <Provider story={story()} />)
.addWithChapters('ChannelCount', {
chapters: [
... |
src/svg-icons/maps/local-see.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalSee = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5... |
js/Header.js | vipakun/react-workshop-Dec1_2_2016 | import React from 'react'
import {connect} from 'react-redux'
import { setSearchTerm } from './actionCreators'
import { Link } from 'react-router'
class Header extends React.Component {
constructor (props) {
super(props)
this.handleSearchTermChange = this.handleSearchTermChange.bind(this)
}
handleSearchT... |
src/svg-icons/av/featured-play-list.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFeaturedPlayList = (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-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/>
</SvgIcon>
);
AvFeaturedPlayList = pu... |
node_modules/react-router/es6/Router.js | rogerio-toledo/Weather-Forecast | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/components/Quiz/FetchErrorMessage.js | SirWinn3r/gauche-ou-droite-client | import React from 'react'
const FetchErrorMessage = ({ tryAgainFn }) => (
<div className="fetch-error-message-container">
<div className="logo">
<img src="images/logo.svg" />
</div>
<div className="fetch-error-message-text text">Il semble que quelque chose se soit mal passé ! Encore un coup des Ill... |
src/js/components/Header.js | tanaka0325/manday_web | import React from 'react'
const Header = () => {
return (
<section className="hero is-medium header">
<header className="nav">
<div className="container">
<div className="nav-left">
<a className="nav-item title">
manday
</a>
</div>
... |
packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/class-assign-unreferenced-param-deopt/input.js | maurobringolf/babel | import React from 'react';
// Regression test for https://github.com/babel/babel/issues/5552
class BugReport extends React.Component {
thisWontWork = ({ color }) => (data) => {
return <div color={ color }>does not reference data</div>;
};
thisWorks = ({ color }) => (data) => {
return <div ... |
src/components/header.js | lalitrhombus/mckinsey | import React from 'react';
import { Link } from 'react-router';
export default class header extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<header>
<div className="logo">
<img src="https://upload.wikimedia.org/wikipedia/en/e/e9/McKinsey_%26_Company... |
src/text/Text.js | martinezguillaume/react-native-elements | import PropTypes from 'prop-types';
import React from 'react';
import { Text, StyleSheet, Platform } from 'react-native';
import fonts from '../config/fonts';
import normalize from '../helpers/normalizeText';
const styles = StyleSheet.create({
text: {
...Platform.select({
android: {
...fonts.androi... |
client/app/scripts/components/matched-results.js | dilgerma/scope | import React from 'react';
import { connect } from 'react-redux';
import MatchedText from './matched-text';
const SHOW_ROW_COUNT = 2;
const MAX_MATCH_LENGTH = 24;
class MatchedResults extends React.Component {
renderMatch(matches, field) {
const match = matches.get(field);
const text = match.text;
re... |
node_modules/react-router/es6/Router.js | ddigioia/react_router_practice_1 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
app/shared/fontawesome-icon/FontAwesomeIcon.js | fastmonkeys/respa-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome';
function FAIcon({ className, ...rest }) {
return (
<Icon
className={classNames('app-fontAwesome', className)}
{...rest}
/>
... |
src/components/meetings/questions/dialog/QuestionsImportBtn.js | VGraupera/1on1tracker | import React from 'react';
import IconButton from 'material-ui/IconButton';
import AutoRenew from 'material-ui/svg-icons/action/autorenew';
import PropTypes from 'prop-types';
const propTypes = {
importQuestion: PropTypes.func.isRequired,
loading: PropTypes.bool.isRequired,
};
/**
* @function QuestionsImportBtn
... |
examples/react-native/components/TabIcon.js | aksonov/react-native-router-flux | import React from 'react';
import PropTypes from 'prop-types';
import {Text} from 'react-native';
const propTypes = {
focused: PropTypes.bool,
title: PropTypes.string,
};
const defaultProps = {
focused: false,
title: '',
};
const TabIcon = props => (
<Text style={{color: props.focused ? 'red' : 'black'}}>{... |
src/StagingAreaPanel.js | cynicaldevil/gitrobotic | import React from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import Checkbox from 'material-ui/Checkbox';
import FlatButton from 'material-ui/FlatButton';
import Snackbar from 'material-ui/Snackbar';
import StageSelective from './utils/StageSelective';... |
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/html/index.js | boquiabierto/wherever-content | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { compose, setStatic } from 'recompose';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import withStore from 'fields/decorators/with-store';
import withSetup from 'fields/dec... |
screens/SwingData.js | CyrusRoshan/TenOutOfTennis | import React from 'react';
import {
StyleSheet,
Text,
View,
Button,
Image,
Dimensions,
} from 'react-native';
import {
StackNavigator,
} from 'react-navigation';
class SwingdataScreen extends React.Component {
static navigationOptions = {
title: 'Swingdata'
};
render() {
const imageURI =... |
src/collections/Message/MessageContent.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A message can contain a content.
*/
function MessageContent(props) {
const { children, className } = props
const classes = ... |
src/components/__tests__/helpers/higherOrder/TabWrapper.js | rackt/react-tabs | import React from 'react';
import hoist from 'hoist-non-react-statics';
import Tab from '../../../Tab';
function TabWrapper(props) {
return <Tab {...props} />;
}
export default hoist(TabWrapper, Tab);
|
src/index.js | harpreetkhalsagtbit/react-test-proj | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import configureStore from './store/configureStore';
import {Provider} from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import {loadCustomers} from './actions/customerActions'... |
src/components/Header.js | coolshare/ReactReduxStarterKit | import React from 'react'
import { Grid, Row, Col } from 'react-bootstrap';
import {connect} from 'react-redux'
import cs from '../services/CommunicationService'
import style from './Top.css';
import { browserHistory } from 'react-router';
/**
*
*/
class _Header extends React.Component{
handleLink = (id, e)=> {
e.p... |
packages/bonde-admin/src/storybook/settings/layout/settings-page-menu-layout.js | ourcities/rebu-client | import React from 'react'
const headStyle = {
backgroundColor: 'rgb(255, 255, 255)',
borderBottomColor: 'rgb(238, 238, 238)',
borderBottomStyle: 'solid',
borderBottomWidth: '1px',
borderLeftColor: 'rgb(0, 0, 0)',
borderLeftStyle: 'none',
borderLeftWidth: '0px',
borderRightColor: 'rgb(0, 0, 0)',
borde... |
client/common/components/loading-resource-list.js | jmeas/moolah | import React from 'react';
import LoadingIndicator from './loading-indicator';
export default function LoadingResourceList() {
return (
<div className="loadingResourceList">
<LoadingIndicator/>
</div>
);
}
|
app/javascript/mastodon/features/ui/components/columns_area.js | mimumemo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { link... |
react/features/toolbox/components/ToolbarButton.native.js | parisjulien/arkadin-jitsimeet | import React from 'react';
import { TouchableHighlight } from 'react-native';
import { Icon } from '../../base/font-icons';
import AbstractToolbarButton from './AbstractToolbarButton';
/**
* Represents a button in Toolbar on React Native.
*
* @extends AbstractToolbarButton
*/
export default class ToolbarButton e... |
mobile/Item.js | nokia/LearningStore | /*
@author Gilles Gerlinger
Copyright Nokia 2017. All rights reserved.
*/
import React from 'react';
import { View, ActivityIndicator, Image, ScrollView, Linking, StyleSheet } from 'react-native';
import { Container, Header, Icon, Button, Text } from 'native-base';
import { Left, Body, Right, Title, Subtitle } f... |
node_modules/react-native-checkbox/checkbox.js | RahulDesai92/PHR | 'use strict';
import React, { Component } from 'react';
const PropTypes = require('prop-types');
import {
StyleSheet,
Image,
Text,
View,
TouchableHighlight
} from 'react-native';
const CB_ENABLED_IMAGE = require('./cb_enabled.png');
const CB_DISABLED_IMAGE = require('./cb_disabled.png');
class ... |
src/components/locations/location.js | bugdrip/omgr-admin | import React from 'react'
import { connect } from 'react-redux'
import { Table, Breadcrumb, Tooltip } from 'antd'
import request from 'superagent'
import TooltipLabel from '../commons/tooltipLabel'
const rowSelection = {
onChange(selectedRowKeys, selectedRows) {
console.log(`selectedRowKeys: ${selectedRo... |
client/screens/components/table/Components/ExactFilter.js | francixcoag/trace_packages | import React from 'react';
class ExactFilter extends React.Component {
constructor(props) {
super(props)
}
render() {
let { filter, removeFilter } = this.props;
return (
<span className="filter-item">
<span className="filter-item-title">
<span className="filter-item-remove" onClick=... |
src/icons/FilterVintageIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FilterVintageIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M37.39 24.8c-.56-.32-1.14-.58-1.72-.8.58-.22 1.16-.48 1.72-.8 3.84-2.22 5.98-6.25 5.99-10.39-3.59-2.... |
app/components/Tabs/AddressBlock/index.js | theterra/newsb | import React from 'react';
export default class AddressBlock extends React.Component { //eslint-disable-line
render() {
const { Title, name, phone, email, address } = this.props;
return (
<div className="ink-flex second-boxShadow tab-second-row">
<div className="all-100">
<div classNa... |
node_modules/react-icons/md/drafts.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdDrafts = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 21.6l13.8-8.6-13.8-8-13.7 8z m16.6-8.2v16.6c0 1.8-1.4 3.4-3.2 3.4h-26.8c-1.8 0-3.2-1.6-3.2-3.4v-16.6c0-1.2 0.6-2.4 1.5-2.9l15.1-8.9 15.1 8.9c0.9 0.5 1.5 1.7 1.5 2.... |
src/svg-icons/maps/transfer-within-a-station.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTransferWithinAStation = (props) => (
<SvgIcon {...props}>
<path d="M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 ... |
src/components/CbMap/CbMap.js | marinbgd/coolbeer | import React from 'react';
import PropTypes from 'prop-types';
import { Map, Marker } from 'google-maps-react';
const defaults = {
center: {
lat: 44.796437,
lng: 20.378094,
},
zoom: 10,
};
class CbMap extends React.Component {
constructor(props) {
super(props);
this.state = {
showingInfoWindow: false... |
src/components/Lobby/index.js | socialgorithm/ultimate-ttt-web | import React from 'react';
import { Icon, Container, Button, Message, Grid, Segment } from 'semantic-ui-react';
export default (props) => {
if (!props.socket) {
return (
<Message>
Please connect to the server first.
</Message>
);
}
const createTourna... |
shared/utils/validation/Validation.js | KCPSoftware/KCPS-React-Starterkit | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bsn, email, phone, textOnly, numberOnly, required, iban, optional, uploadRequired } from './ValidationTypes';
import { setQuestionErrorState } from '../../actions/questionActions';
import { validationType } from '../enums/validati... |
src/components/NavBar.js | danesparza/centralconfig-ui | // React and reactstrap
import React, { Component } from 'react';
import {
Collapse,
Navbar,
NavbarToggler,
NavbarBrand,
Nav,
NavItem,
NavLink,
Dropdown,
DropdownItem,
DropdownToggle,
DropdownMenu
} from 'reactstrap';
// Stylesheets & images
import './../App.css';
import 'bootstrap/dist/css/boo... |
app/containers/HomePage/index.js | DerelictLink/butt3r | /*
* 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/index.js | insin/react-filtered-multiselect | import t from 'prop-types'
import React from 'react'
function makeLookup(arr, prop) {
let lkup = {}
for (let i = 0, l = arr.length; i < l; i++) {
if (prop) {
lkup[arr[i][prop]] = true
}
else {
lkup[arr[i]] = true
}
}
return lkup
}
function getItemsByProp(arr, prop, values) {
let ... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | way1989/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... |
node_modules/react-bootstrap/es/Alert.js | Crisa221/Lista-Giocatori | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
spec/javascripts/jsx/due_dates/DisabledTokenInputSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/modules/articleInfo/index.js | zcfreestyle/moment-react | /**
* Created by dllo on 17/8/27.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import '../../assets/styles/read.styl'
import '../../assets/styles/Footer.styl'
import '../../assets/styles/Up.styl'
import '../../assets/styles/articleInfo.styl'
import '../../assets/styles/comment... |
src/docs/ComponentPage.js | alexcondorachi/ps-react-alexc | import React from 'react';
import PropTypes from 'prop-types';
import Example from './Example';
import Props from './Props';
const ComponentPage = ({component}) => {
const {name, description, props, examples} = component;
return (
<div className="componentpage">
<h2>{name}</h2>
<p>{description}</p... |
node_modules/gatsby/lib/utils/static-entry.js | aimanaiman/supernomadfriendsquad | /* @flow weak */
import React from 'react'
import { renderToString, renderToStaticMarkup } from 'react-dom/server'
import { match, RouterContext } from 'react-router'
import createRoutes from 'create-routes'
import Html from 'html'
const loadContext = require('.gatsby-context')
import { pages, config } from 'config'
im... |
samples/web/index.web.js | gtg092x/react-redux-universal | import React from 'react';
import App from './App';
import createStore from './redux';
import ReactDOM from 'react-dom';
const store = createStore(window.REDUX_STATE);
const element = (
<App
store={store}
/>
);
ReactDOM.render(
element,
document.getElementById('react-root')
); |
src/containers/ImageField.js | iris-dni/iris-frontend | import React from 'react';
import { stopSubmit, touch } from 'redux-form';
import { connect } from 'react-redux';
import { uploadImage } from 'actions/ImageActions';
import ImageField from 'components/ImageField';
const ImageFieldContainer = (props) => (
<ImageField {...props} />
);
const mapDispatchToProps = (disp... |
app/addons/activetasks/components/controller.js | apache/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... |
src/svg-icons/image/crop-rotate.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropRotate = (props) => (
<SvgIcon {...props}>
<path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81... |
client/src/components/shared/Info/Relations.js | verejnedigital/verejne.digital | // @flow
import React from 'react'
import RelationList from './RelationList'
import type {RelatedEntity} from '../../../state'
import ToggleBox from '../ToggleBox'
type RelationsProps = {
data: Array<RelatedEntity>,
name: string,
}
const Relations = ({data, name}: RelationsProps) => (
<ToggleBox buttonText="Vz... |
js/components/KeepAlive/KeepAlive.js | remypar5/mtg-lifecounter | import React from 'react';
import { KeepAliveModule } from '../../utils/modules';
export default class KeepAlive extends React.Component {
componentDidMount() {
KeepAliveModule.activate();
}
componentWillUnmount() {
KeepAliveModule.deactivate();
}
render() {
return null;
... |
components/admin/forms.js | wi2/sails-isomorphic-react-admin-example | "use strict";
import React from 'react'
import {Container, Row, Field} from 'newforms-bootstrap'
export const comment = (
<Container autoColumns="md">
<h1>special Commentaire</h1>
<hr />
<p className="text-right">
<button className="btn btn-default">Save</button>
</p>
<Row>
<Field na... |
lib/components/tabs.js | ekmartin/hyperterm | import React from 'react';
import Component from '../component';
import {decorate, getTabProps} from '../utils/plugins';
import Tab_ from './tab';
const Tab = decorate(Tab_, 'Tab');
const isMac = /Mac/.test(navigator.userAgent);
export default class Tabs extends Component {
template(css) {
const {
tabs... |
admin/client/App/shared/InvalidFieldType.js | snowkeeper/keystone | /**
* Renders an "Invalid Field Type" error
*/
import React from 'react';
const InvalidFieldType = function (props) {
return (
<div className="alert alert-danger">
Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong>
</div>
);
};
InvalidFieldType.propTypes = {
path: Reac... |
techCurriculum/ui/solutions/5.3/src/components/Message.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* 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... |
packages/wix-style-react/stories/VariableInput/index.story.js | wix/wix-style-react | import React from 'react';
import { storySettings } from './storySettings';
import {
header,
title as sectionTitle,
description,
table,
importExample,
columns,
example,
} from 'wix-storybook-utils/Sections';
import LinkTo from '@storybook/addon-links/react';
import * as examples from './examples';
impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.