path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
code/material/2-hierarchy/main.js | st-he/react-workshop | import React from 'react';
import ReactDOM from 'react-dom';
import GreetingController from './GreetingController';
const mountNode = document.getElementById('mount');
ReactDOM.render(<GreetingController />, mountNode);
|
src/components/HelloWorld/HelloWorld.js | Shuki-L/ps-react-shuki | import React from 'react';
import PropTypes from 'prop-types';
/** A super lame component that says Hello with a custom message. */
function HelloWorld({message}) {
return <div>Hello {message}</div>
}
HelloWorld.propTypes = {
/** Message to display */
message: PropTypes.string
};
HelloWorld.defaultProps ... |
login.js | Murad-Awad/PingIt | import React from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
Dimensions,
Button
} from 'react-native';
import * as firebase from 'firebase';
import reactCreateClass from 'create-react-class';
const FBSDK = require('react-native-fbsdk');
const {
LoginBut... |
client/src/components/ProfileScreen.js | wapjude/labify | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
font... |
src/Tabs/ExampleSimple.js | JohnCrash/react-tiku | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import Slider from 'material-ui/Slider';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
};
function handleActive(tab) {
alert(`A tab with this route property ${t... |
spec/javascripts/jsx/dashboard_card/DashboardOptionsMenuSpec.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/main.js | Teratologen/com.gritsos | /**
* App entry point
*/
// Polyfill
import 'babel-polyfill';
// Libraries
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
// Routes
import Routes from './common/components/Routes';
// Base styling
import './common/base.css';
// ID of the DOM e... |
src/components/Feedback/Feedback.js | bootcampcamp/givingbranch | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
examples/01 Dustbin/Single Target/index.js | zetkin/react-dnd | import React from 'react';
import Container from './Container';
export default class DustbinSingleTarget {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Single%20Target'>Browse the Source</a></b>
</p>
<p>
... |
src/svg-icons/image/dehaze.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageDehaze = (props) => (
<SvgIcon {...props}>
<path d="M2 15.5v2h20v-2H2zm0-5v2h20v-2H2zm0-5v2h20v-2H2z"/>
</SvgIcon>
);
ImageDehaze = pure(ImageDehaze);
ImageDehaze.displayName = 'ImageDehaze';
ImageDehaze... |
stalk-messenger/examples/ComponentExample/app/components/tabs/follows/index.js | JohnKim/stalk.messenger | /**
*
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
View,
StyleSheet,
Text
} from 'react-native';
class FollowsMain extends Component {
static propTypes = {
navigator: React.PropTypes.object.isRequired,
};
eventNavBarButton(key) {
console.log(key);
}
constr... |
examples/src/components/DisabledUpsellOptions.js | RassaLibre/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropType... |
docs/src/examples/elements/Header/Variations/HeaderExampleAttached.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Header, Segment } from 'semantic-ui-react'
const HeaderExampleAttached = () => (
<div>
<Header as='h2' attached='top'>
Attached Header
</Header>
<Segment attached>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididun... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | dads-software-brotherhood/sekc | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
js/App/Components/Premium/SubViews/PremiumInfoContent.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
*... |
blueocean-material-icons/src/js/components/svg-icons/navigation/expand-more.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationExpandMore = (props) => (
<SvgIcon {...props}>
<path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/>
</SvgIcon>
);
NavigationExpandMore.displayName = 'NavigationExpandMore';
NavigationExpandMore.muiName = 'SvgIcon';
export defa... |
app/packs/src/components/utils/quillToolbarSymbol.js | ComPlat/chemotion_ELN | import React from 'react';
const minusRender = name => (
<span key={`${name}_key`} id={`${name}_id`} style={{ marginRight: '10px', cursor: 'pointer' }}>
<i className="fa fa-minus" />
</span>
);
const reactionToolbarSymbol = [
{
name: 'ndash',
ops: [
{ insert: '–' },
],
render: minusRen... |
classic/src/scenes/mailboxes/src/Scenes/SettingsScene/GeneralSettings/UISettingsSection.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import settingsActions from 'stores/settings/settingsActions'
import modelCompare from 'wbui/react-addons-model-compare'
import partialShallowCompare from 'wbui/react-addons-partial-shallow-compare'
import { UISettings, ExtensionSettings } from 'shared/Models... |
page/Product.js | jimju/BNDemo | 'use strict'
import React, { Component } from 'react';
import {
Text,
View,
StyleSheet,
Image,TouchableOpacity,InteractionManager,
ListView
} from 'react-native';
import TitleProduct from '../component/TitleProduct';
import ProductSearch from './ProductSearch';
import ProductClassComponent from '../component... |
src/svg-icons/device/network-wifi.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkWifi = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0... |
examples/namespacing/src/components/Greet/Container.js | jas-chen/typed-redux | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'typed-redux'
import Greet from './Component'
const GreetContainer = ({ stateKey }) => {
const mapStateToProps = state => {
return {
name: state[stateKey]
}
}
const Container = connect(mapStateToProp... |
app/screens/social/profileSettings.js | it-surya/hack-jeninvest | import React from 'react';
import {
ScrollView,
View,
StyleSheet
} from 'react-native';
import {
RkText,
RkTextInput,
RkAvoidKeyboard,
RkTheme,
RkStyleSheet
} from 'react-native-ui-kitten';
import {data} from '../../data';
import {Avatar} from '../../components';
import {SocialSetting} from '../../compo... |
examples/material/src/router.js | prescottprue/redux-firebasev3 | import React from 'react' // eslint-disable-line
import { Route, IndexRoute, Router } from 'react-router'
import Account from './containers/Account/Account'
import App from './containers/App/App'
import Home from './containers/Home/Home'
import Login from './containers/Login/Login'
import NotFound from './containers/No... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-trigger/es/LazyRenderBox.js | bhathiya/test | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inheri... |
yycomponent/rate/Rate.js | 77ircloud/yycomponent | import React from 'react';
import { Rate as _Rate } from 'antd';
class Rate extends React.Component{
constructor(props){
super(props);
}
render(){
return (<_Rate {...this.props}/>);
}
}
export default Rate
|
src/svg-icons/action/history.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHistory = (props) => (
<SvgIcon {...props}>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ... |
src/svg-icons/content/low-priority.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLowPriority = (props) => (
<SvgIcon {...props}>
<path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.... |
presentation/paper.js | philipphenkel/awesome-cards | import React, { Component } from 'react';
import PropTypes from 'prop-types';
//import { getStyles } from '../utils/base';
import Radium from 'radium';
const paperStyle = {
backgroundColor: 'rgba(240,240,240,0.75)',
boxShadow: '10px 10px 5px rgba(0, 0, 0, 0.2)',
borderRadius: '0%',
display: 'flex',
flexDirec... |
__mocks__/react-addons-css-transition-group.js | Talend/react-talend-components | import React from 'react';
function ReactCSSTransitionGroup({children, ...props}) {
return (
<div className="react-addons-css-transition-group" {...props}>
{children}
</div>
);
}
ReactCSSTransitionGroup.propTypes = {
children: React.PropTypes.arrayOf(React.PropTypes.element),
};
export default ReactCSSTrans... |
src/components/footer/Footer.js | c764023940/reactDemo | import React from 'react';
import './footer.css';
const Footer = () => (
<footer className="footer">
<p className="text-xs-center text-muted">
欢迎来到我的主页
<a href="https://github.com/c764023940" target="_blank">github </a>
or call
<a target="_blank"> me(1820503XXXX)</... |
node_modules/react-router/es/Router.js | meetdheeraj/NewsAggregator | 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/index.js | mailofjordi/librarySJ | import React from 'react';
import ReactDom from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import promiseMiddleWare from 'redux-promise';
import App from "./components/App";
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddle... |
src/svg-icons/editor/insert-drive-file.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertDriveFile = (props) => (
<SvgIcon {...props}>
<path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/>
</SvgIcon>
);
EditorInsertDriveFile = pure... |
app/javascript/mastodon/features/ui/components/link_footer.js | lindwurm/mastodon | import { connect } from 'react-redux';
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import { Link } from 'react-router-dom';
import { invitesEnabled, limitedFederationMode, version, repository, source_url, profile_directory as ... |
src/browser/createRoutes.js | blueberryapps/este | import App from './app/App.react';
import Auth from './auth/Page.react';
import Home from './home/Page.react';
import Me from './me/Page.react';
import NotFound from './notfound/Page.react';
import Profile from './me/Profile.react';
import React from 'react';
import Settings from './me/Settings.react';
import Todos fro... |
src/components/UserItem/UserItem.js | Pamplemaus/raincloud | import React from 'react';
import styles from './UserItem.scss';
const UserItem = ({ selected, image, username, removeUser, togglePlaylist }) => {
let itemClass = [styles.userItem, selected ? styles.selected : ''].join(' ');
return (
<div className={itemClass} onClick={() => togglePlaylist(username)}>
<d... |
packages/wix-style-react/src/CheckToggle/test/CheckToggle.visual.js | wix/wix-style-react | import React from 'react';
import CheckToggle from '../CheckToggle';
import { storyOfAllPermutations } from '../../../test/utils/visual/utils';
const Story = props => <CheckToggle {...props} />;
const options = {
props: ['checked', 'size', 'skin', 'disabled'],
skipUndefinedValue: true,
};
export const runTests =... |
app/containers/LanguageProvider/index.js | Proxiweb/react-boilerplate | /*
*
* 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 PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
public/javascripts/components/TotalDonuts.js | raynux/nborg | 'use strict';
import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import AnalysisStore from '../stores/AnalysisStore';
import ReactHighCharts from 'react-highcharts/dist/bundle/highcharts';
import HighChartsTheme from '../highcharts/theme';
ReactHighCharts.Highcharts.setOptions(HighChartsTh... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | Havi4/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
components/datasets/metadata/form/SourcesContentModal.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
import { toastr } from 'react-redux-toastr';
// redux
import { connect } from 'react-redux';
// redactions
import { setTmpSources, setSources } from 'redactions/admin/sources';
// components
import ContentGroup from 'components/ui/ContentGroup';
import S... |
app/components/Home.js | geekmansam/Olive-Check-In | import React, { Component } from 'react';
import { Grid, Row, Col, FormGroup,
FormControl, HelpBlock, ControlLabel } from 'react-bootstrap';
import DialPad from './DialPad';
export default class Home extends Component {
constructor(props) {
super(props);
this.state = {
number: ''
};
}
render(... |
examples/js/style/td-class-function-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
... |
src/utils/ValidComponentChildren.js | gianpaj/react-bootstrap | import React from 'react';
/**
* Maps children that are typically specified as `props.children`,
* but only iterates over children that are "valid components".
*
* The mapFunction provided index will be normalised to the components mapped,
* so an invalid component would not increase the index.
*
* @param {?*} ... |
src/components/Header/Header.js | YumboRumbo/FlashCard | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import s from './Header.scss';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(s)
class Header extends Component {
... |
src/components/vertical-bar.js | ronlobo/building-os-charts | import React from 'react';
import classNames from 'classnames';
import Bar from 'components/bar';
import getActiveClassName from 'decorators/get-active-class-name';
import getHeight from 'decorators/get-height';
import getWidth from 'decorators/get-width';
import setStateFromProps from 'decorators/set-state-from-props'... |
frontend/components/send-to-tab.js | meandavejustice/min-vid | import React from 'react';
import ReactTooltip from 'react-tooltip';
import sendToAddon from '../client-lib/send-to-addon';
import sendMetricsEvent from '../client-lib/send-metrics-event';
function getView() {
if (window.AppData.error) return 'error_view';
return window.AppData.loaded ? 'player_view' : 'loading_vi... |
plot/src/index.js | tangr1/spark-log-analyzer | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
require('./favicon.ico'); // Tell webpack to load favicon.ico
import './styles/styles.scss'; // ... |
middlewares/render-middleware.js | shatyajeet/react-ssr-hmr-csp | import React from 'react';
import {renderToString} from 'react-dom/server';
import {match, RouterContext} from 'react-router';
import routes from '../src/routes';
import indexTemplate from '../index-template';
const env = process.env.NODE_ENV;
export default (req, res) => {
match({routes, location: req.url}, (err,... |
client/app/components/NewTodo.js | pho3nixf1re/fullstack-workshop | import React from 'react'
import store from '../store'
const todoSubmitted = event => {
const { value: description } = event.target
if (event.key !== 'Enter' || description === '') {
return
}
store.trigger('todos:create', { description })
event.target.value = ''
}
const NewTodo = () => (
<div>
<... |
src/Accordion.js | roderickwang/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
const Accordion = React.createClass({
render() {
return (
<PanelGroup {...this.props} accordion>
{this.props.children}
</PanelGroup>
);
}
});
export default Accordion;
|
react-ui/src/components/craft_containers/P5Craft.react.js | simonlimon/varsncrafts | import React from 'react';
import p5 from 'p5';
import $ from 'jquery';
//TODO Better back button
//TODO Preserve home scroll
class P5Craft extends React.PureComponent {
componentDidMount() {
var sketch = require('../../crafts/p5/' + this.props.title + '/Main');
//noinspection JSPotentiallyInvalidConstructo... |
packages/icons/src/md/action/AssignmentTurnedIn.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdAssignmentTurnedIn(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M38 8c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V12c0-2.21 1.79-4 4-4h8.37c.82-2.32 3.02-4 5.63-4s4.81 1.68 5.63 4H38zM2... |
src/scripts/components/ImportForm.js | arkon/crcmaker | import React, { Component } from 'react';
import Dialog from './Dialog';
export default class ImportForm extends Component {
constructor (props) {
super(props);
this.parseInput = this.parseInput.bind(this);
}
parseInput (text) {
const { onParsed } = this.props;
try {
onParsed(JSON.parse(... |
docs/app/Examples/views/Advertisement/Types/AdvertisementExampleLeaderboard.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Advertisement } from 'semantic-ui-react'
const AdvertisementExampleLeaderboard = () => (
<Advertisement unit='leaderboard' test='Leaderboard' />
)
export default AdvertisementExampleLeaderboard
|
src/components/ProductItem.js | mak4alex/unicorn-shop | import React, { Component } from 'react';
export default class ProductItem extends Component {
constructor(props) {
super(props);
this.state = {
count: 1,
};
this.addProductToCart = this.addProductToCart.bind(this);
this.changeCount = this.changeCount.bind(this);
}
addProductToCart(e)... |
example/src/components/Row.js | junedomingo/react-native-navigation | import React from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, View, Text, TouchableHighlight, Platform} from 'react-native';
function Row({title, onPress, platform, testID}) {
if (platform && platform !== Platform.OS) {
return <View />;
}
return (
<TouchableHighlight
onPress={... |
src/server.js | nicolabortignon/ReactTracklistMe | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import createLocation from 'history/lib/createLocation';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'pat... |
frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Button from 'Components/Link/Bu... |
app/components/containers/itemContainer.js | allecsro/dynotool | import React from 'react';
import { withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Item from '../elements/item';
import { clearItem, updateItem, saveItem } from '../../actions/dynamodb.action';
const ItemContainer = (props) => {
return <Item {.... |
src/components/Weather.js | daheim/daheim-app-ui | import React from 'react'
export default class Weather extends React.Component {
render () {
return <iframe type='text/html' frameBorder='0' height='245' width='100%' src='https://forecast.io/embed/#lat=51.064702&lon=10.656738&name=Deutschland&units=ca'></iframe>
}
}
|
src/svg-icons/navigation/more-vert.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreVert = (props) => (
<SvgIcon {...props}>
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"... |
packages/mineral-ui-icons/src/IconGif.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconGif(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
app/src/Frontend/modules/crm/containers/home/index.js | ptphp/ptphp | /**
* Created by jf on 15/12/10.
*/
//"use strict";
import React from 'react';
var Sentry = require('react-sentry');
import {
Panel,
PanelBody,
Toast
} from '../../../../index';
import TabBar from '../../components/tabbar/index';
import Page from '../../components/page/index';
import './index.less';
... |
docs/src/app/components/pages/components/Dialog/ExampleSimple.js | ichiohta/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Dialog with action buttons. The actions are passed in as an array of React objects,
* in this example [FlatButtons](/#/components/flat-button... |
src/routes/error/index.js | goldylucks/adamgoldman.me | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react'
import ErrorPage from './Err... |
src/components/customLegend/customLegend.js | govau/datavizkit |
import React from 'react';
import Marker from './../marker/marker.js';
import './customLegend.css';
const Legend = ({data, displayHighContrast}) => {
return (
<div className="D_CL">
<div className="D_CL_row">
{data[0].category === null ? <span dangerouslySetInnerHTML={{__html: ' '}} /> : da... |
src/components/Help/Index.js | hao123-fe/weeport | import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import help from './help.md'
export default class Help extends React.Component {
static contextTypes = {
theme: PropTypes.object
}
componentDidMount () {
ReactDOM.findDOMNode(this.refs.md).innerHTML = help
}
... |
src/svg-icons/action/motorcycle.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionMotorcycle = (props) => (
<SvgIcon {...props}>
<path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2... |
packages/example-phone/src/scripts/components/call/call-remote-view.js | Josh-Dykstra/spark-js-sdk | import React from 'react';
import Video from '../common/video';
export default function RemoteView({
receivingVideo,
remoteMediaStreamUrl,
...rest
}) {
let mediaElement;
if (receivingVideo) {
mediaElement = <Video src={remoteMediaStreamUrl} {...rest} />;
}
else {
// eslint-disable-next-line no-ex... |
packages/reactor-kitchensink/src/examples/FormFields/ContainerField/ContainerField.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { ContainerField, FormPanel, RadioField, Container, Panel, CheckBoxField, TextField } from '@extjs/ext-react';
export default class ContainerFieldExample extends Component {
render() {
return (
<Container layout="vbox" padding="10" maxWidth="660... |
src/components/swatches/SwatchesColor.js | Scratch-it/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import shallowCompare from 'react-addons-shallow-compare'
export class SwatchesColor extends ReactCSS.Component {
shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1])
classes(): any {
return {
... |
scripts/components/layout/footer.js | evilfaust/lyceum9sass | import React from 'react';
export default class Footer extends React.Component {
constructor(props) {
super(props);
this.render = this.render.bind(this);
}
render() {
const { hide } = this.props;
if (hide) return <span />;
return (
<div> </div>
);
}
}
|
styleguide/screens/Design/Typography.js | rdjpalmer/bloom | import React from 'react';
import cx from 'classnames';
import Specimen from '../../components/Specimen/Specimen';
import { H, D } from '../../components/Scaffold/Scaffold';
import css from './Typography.css';
const Typography = () => (
<div>
<H level={ 1 }>Typography</H>
<D>
<H level={ 2 }>Font Fami... |
src/svg-icons/image/brightness-4.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness4 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13... |
docs/app/Examples/addons/Radio/States/RadioExampleDisabled.js | koenvg/Semantic-UI-React | import React from 'react'
import { Form, Radio } from 'semantic-ui-react'
const RadioExampleDisabled = () => (
<Form>
<Form.Field>
<Radio label='Disabled' disabled />
</Form.Field>
<Form.Field>
<Radio toggle label='Disabled' disabled />
</Form.Field>
</Form>
)
export default RadioExamp... |
src/svg-icons/av/fiber-pin.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberPin = (props) => (
<SvgIcon {...props}>
<path d="M5.5 10.5h2v1h-2zM20 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-2zM9 11.5c0 .85-.65 1.5-1.5 1.5h-2v2H4V9h3.5c.85... |
src/List/ListItemText.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import Typography from '../Typography';
export const styles = (theme: Object) => ({
root: {
flex: '1 1 auto',
padding: '0 16px',
'&:first-child... |
client/node_modules/uu5g03/dist-node/forms-v3/time.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js';
import {Glyphicon, Button} from './../bricks/bricks.js';
import './time.less';
const FORMAT_AM = 'AM';
const FORMAT_PM = 'PM';
const FORMAT_12 = '12';
const FORMAT_24 = '24';
export const Time = React.createClass({
... |
js/App/Components/TabViews/SubViews/Navigational/DownButton.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/app/core/atoms/icon/icons/filter.js | blowsys/reservo | import React from 'react'; const Filter = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="8 14 16 14 16 12 8 12"/><polygon points="11 18 13 18 13 16 11 16"/><polygon points="5 10 19 10 19 8 5 8"/></g></g></svg>; export default Filter;
|
packages/react/components/actions-group.js | AdrianV/Framework7 | import React from 'react';
import Mixins from '../utils/mixins';
import Utils from '../utils/utils';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js';
class F7ActionsGroup extends React.Component {
... |
src/TheApp2017/obj/Release/netcoreapp1.0/win10-x64/PubTmp/Out/wwwroot/lib/react-dropzone/src/index.js | zzjaqwsx/TheApp2017 | /* eslint prefer-template: 0 */
import React from 'react'
import PropTypes from 'prop-types'
import accepts from 'attr-accept'
import getDataTransferItems from './getDataTransferItems'
const supportMultiple = typeof document !== 'undefined' && document && document.createElement
? 'multiple' in document.createElemen... |
app/client/src/lib/withAuthentication.js | uprisecampaigns/uprise-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import history from 'lib/history';
import {
promptLogin, hideLoginPrompt,
} from 'actions/NotificationsActions';
export default (WrappedComponent) => {
class WithAuthentication extends Component {... |
imports/ui/hocs/withModules/index.js | ShinyLeee/meteor-album-app | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { loadingModule, loadedModule, loadingModuleError } from '/imports/ui/redux/actions';
const withModules = (WrappedComponent) => {
let C = (props) => <WrappedComponent {...props} />;
const mapStateT... |
template/src/App.js | patrickmarabeas/react-docker-dev-env | import React from 'react';
const App = () => (
<div>
<h2>Hello, s</h2>
</div>
);
const add = (a, b) => {
return a + b;
};
export default App;
export { add }; |
client/containers/DevTools.js | AlexFrazer/site | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
>
<LogMonitor />
... |
client/src/js/components/Nav/Header.js | yassinej/oerk_v4 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions/userActions';
import logo from '../../../assets/backpack.png';
import { NavLink } from 'react-router-dom';
class Header extends Component {
handleSignOut() {
this.props.signOutUser();
}
renderL... |
src/components/Date.js | wanliu/DataSync | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
moment.locale('zh-cn');
export default class Date extends React.Component {
render() {
return <span>{moment(this.props.value).format("YYYY MMM Do")}</span>;
}
}
Date.propTypes = {
value: PropTypes.any
}; |
packages/icons/src/md/action/FavoriteBorder.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFavoriteBorder(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M33 6c6.17 0 11 4.83 11 11 0 7.55-6.8 13.72-17.1 23.07L24 42.7l-2.9-2.63C10.8 30.72 4 24.55 4 17 4 10.83 8.83 6 15 6c3.48 0 6.82 1.62 9 4.17C2... |
automatic-test-evaluation/src/Navigation/CustomSnack.js | hris11/AutomaticTestEvaluation | import React from 'react';
import {NotificationContainer, NotificationManager} from 'react-notifications';
const createNotification = (type, message) => {
return () => {
switch (type) {
case 'info':
NotificationManager.info(message);
break;
case 'succ... |
mobile-client/App.js | sunilkumarc/mutual-fund-tracker | import React, { Component } from 'react';
import { StyleSheet, Text, View, ActivityIndicator } from 'react-native';
import Root from './src/Root';
import { Toolbar, Card, COLOR, ThemeProvider } from 'react-native-material-ui';
import Exponent from 'expo';
import Expo from "expo";
import { fontAssets } from './helpers';... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Col.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 ... |
examples/gatsby-theme/src/pages/about.js | lgollut/material-ui | import React from 'react';
import Container from '@material-ui/core/Container';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
import { Link } from 'gatsby-theme-material-ui';
import ProTip from '../components/ProTip';
import Copyright from '../components/Copyright';
ex... |
src/components/utility/markdown-viewer/index.js | getguesstimate/guesstimate-app | import React from 'react'
import ReactMarkdown from 'react-markdown'
import './style.css'
export const MarkdownViewer = ({source}) => {
return (
<div className='MarkdownViewer'>
<ReactMarkdown skipHtml={true} source={source}/>
</div>
)
}
|
src/components/TrackList/TrackList.js | cnits/whattodo-redux | import React, { Component } from 'react';
import PropTypes from "prop-types";
export default class TrackList extends Component {
static propTypes = {
tracks: PropTypes.array
}
static defaultProps = {
tracks: []
}
render() {
return (
<div>
{
... |
src/components/frame/ImageZoom.js | golemfactory/golem-electron | import React from 'react';
/**
* @see http://openseadragon.github.io/docs/
*/
import OpenSeaDragon from 'openseadragon';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as Actions from '../../actions';
//carrying viewer information to other components
export let imageInfo... |
src/components/App.js | LeoAJ/react-iTunes-search | import React from 'react';
import Header from './Header';
import Container from './Container';
import Ribbon from './Ribbon';
import '../style/App.css';
const App = () => {
return (
<div>
<Header />
<Container />
<Ribbon />
</div>
);
};
export default App;
|
client/common/ImageHandler/index.js | JohannesAnd/SKWebsite | import React, { Component } from 'react';
import { connect } from '@cerebral/react';
import { state, sequences, props } from 'cerebral';
import { string } from 'prop-types';
import { ImageComponent } from './elements';
const dependencies = {
url: state`urls.${props`path`}`,
addUrl: sequences`app.addUrl`,
};
clas... |
react-ui/src/components/presentation/DeleteDialog.js | cajmyers/cydercup | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
/**
* A modal dialog can only be closed by selecting one of the actions.
*/
class DeleteDialog extends React.Component {
render() {
const actions = [
<FlatButton
label="Cancel"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.