path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/icons/src/md/image/LeakRemove.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdLeakRemove(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M20 6h-4c0 .73-.09 1.44-.24 2.13l3.19 3.19C19.62 9.67 20 7.88 20 6zM6 8.55l5.68 5.68A10.01 10.01 0 0 1 6 16v4c3.22 0 6.17-1.1 8.53-2.92l2.85 2.85A... |
Console/app/node_modules/rc-calendar/es/calendar/CalendarFooter.js | RisenEsports/RisenEsports.github.io | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import ReactDOM from 'react-dom';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import toFragment from 'rc-util/es/Children/mapSel... |
js/components/App.js | stefanfoulis/react-relay-experiment | import 'babel/polyfill';
import React from 'react';
import Relay from 'react-relay';
import Header from '../components/Header.js';
import AppList from '../components/AppList.js';
class App extends React.Component {
render() {
var apps = this.props.viewer.apps.edges.map(app => app.node);
return (
<div... |
app/components/SocialLogin/icons/FacebookIcon.js | juanda99/arasaac-frontend | import React from 'react'
import { white } from 'material-ui/styles/colors'
import Facebook from './svg/facebook'
const FacebookIcon = () => (
<Facebook color={white} />
)
export default FacebookIcon
|
src/app/container/util/form.js | all3dp/printing-engine-client | import React from 'react'
import memoize from 'lodash/memoize'
import get from 'lodash/get'
export const renderFormikField = memoize(
InputComponent => ({field, form, onChangeValue, ...props}) => (
<InputComponent
{...field}
{...props}
name={field.name}
checked={Boolean(field.value)}
... |
src/components/Form/FormLink.js | wkozyra95/react-boilerplate | /* @flow */
import React from 'react';
import { Link } from 'react-router';
import Style from 'styles';
import type { ApplicationRoute } from 'routes/model';
class FormLink extends React.Component {
props: {
url: ApplicationRoute,
text: string,
style?: Object,
}
render() {
return (
<Lin... |
docs/app/Examples/collections/Grid/Variations/GridVerticalAlignmentRowExample.js | jamiehill/stardust | import React from 'react'
import { Grid, Image } from 'stardust'
const { Column, Row } = Grid
const image = <Image src='http://semantic-ui.com/images/wireframe/image.png' />
const GridVerticalAlignmentRowExample = () => (
<Grid columns={4} centered>
<Row verticalAlign='top'>
<Column>{image}</Column>... |
src/js/shared/components/signin-well.js | akornatskyy/sample-blog-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom';
import {Card} from 'react-bootstrap';
const SignInWell = ({user}) => {
if (user) {
return null;
}
return (
<Card bg="light" className="mb-3">
<Card.Body>
<Card... |
blueocean-material-icons/src/js/components/svg-icons/notification/airline-seat-legroom-normal.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationAirlineSeatLegroomNormal = (props) => (
<SvgIcon {...props}>
<path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5z"/... |
app/javascript/mastodon/components/attachment_list.js | danhunsaker/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Icon from 'mastodon/components/icon';
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
export ... |
client/src/components/Auth/AuthenticatedRoute.js | hutchgrant/react-boilerplate | import React from 'react';
import { Route, Redirect } from 'react-router-dom';
export default ({ component: C, props: cProps, ...rest }) => {
if(rest.admin !== "true"){
return <Route {...rest} render={props => (
cProps.auth.token
? <div className="container"><C {...props} {...cProps} /></div>
... |
public/js/components/profile/visitor/profile.react.js | MadushikaPerera/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import FlatButton from 'material-ui/lib/flat-button';
import CardText from 'material-ui/lib/card/card-text';
import Divider fro... |
src/svg-icons/action/subject.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSubject = (props) => (
<SvgIcon {...props}>
<path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"/>
</SvgIcon>
);
ActionSubject = pure(ActionSubject);
ActionSubject.displayName = 'Acti... |
src/routes/contact/index.js | jhlav/mpn-web-app | /**
* 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 Layout from '../../co... |
src/svg-icons/editor/vertical-align-bottom.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignBottom = (props) => (
<SvgIcon {...props}>
<path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/>
</SvgIcon>
);
EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom);
EditorVertical... |
docs/app/Examples/elements/Button/Types/ButtonExampleLabeledProps.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Button, Label } from 'semantic-ui-react'
const ButtonExampleLabeledProps = () => (
<div>
<Button label={1048} icon='fork' labelPosition='left' />
<Button label='1,048' icon='fork' labelPosition='left' />
<Button label={{ content: '2,048' }} icon='heart' content='Like' l... |
public/js/components/admin/settings/NewAdminmodal.react.js | MadushikaPerera/Coupley | /**
* Created by Isuru 1 on 30/01/2016.
*/
import React from 'react';
import Dialog from 'material-ui/lib/dialog';
import FlatButton from 'material-ui/lib/flat-button';
import RaisedButton from 'material-ui/lib/raised-button';
import TextField from 'material-ui/lib/text-field';
import snack from './snackbar.react';
i... |
app/components/app/views/showcase/post/index.js | theChesCat/wordpress-decoupled | import React from 'react'
import striptags from 'striptags'
import { Link } from 'react-router-dom'
import styles from 'components/app/views/showcase/post/index.css'
export default class Post extends React.Component {
render () {
const post = this.props.post
return (
<Link to={`/post... |
docs/src/PageHeader.js | pieter-lazzaro/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className='bs-docs-header' id='content'>
<div className='container'>
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
js/components/common/MainBank.js | merodeadorNocturno/transfer | import React from 'react';
import ReactDOM from 'react-dom';
import { TransferForm } from '../transfers/TransferForm';
import Scheduler from '../transfers/Scheduler';
import { NavigationBar } from './NavigationBar';
class MainBank extends React.Component {
render () {
return (
<div>
... |
internals/templates/utils/injectReducer.js | romanvieito/ball-simpler | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './reducerInjectors';
/**
* Dynamically injects a reducer
*
* @param {string} key A key of the reducer
* @param {function} reducer A reducer that will be injected
*
... |
app/components/member/New.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import DocumentTitle from 'react-document-title';
import Button from 'app/components/shared/Button';
import FormRadioGroup from 'app/components/shared/FormRadioGroup';
import FormTextarea from 'app/components/shared... |
src/svg-icons/places/casino.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesCasino = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z... |
features/day/checkin.component.js | nlambert/checkin | // Contrib
import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from 'material-ui/FontIcon';
import IconButton from 'material-ui/IconButton';
const Checkin = ({ members, userId, userName, yesterday, today, blockers, handleDelete }) => (
<li>
<span className="user-name">{userName}</span>... |
react-flux-mui/js/material-ui/src/svg-icons/action/done.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDone = (props) => (
<SvgIcon {...props}>
<path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/>
</SvgIcon>
);
ActionDone = pure(ActionDone);
ActionDone.displayName = 'ActionDone';
ActionDone.mui... |
Other/styleguide/src/main.js | barretthafner/learning | /* @flow */
/* eslint-disable react/jsx-filename-extension, import/no-named-as-default-member */
import React from 'react';
import { render, TextStyles, View } from 'react-sketchapp';
import designSystem from './designSystem';
import type { DesignSystem } from './designSystem';
import Label from './components/Label';... |
examples/todos/src/components/Link.js | lifeiscontent/redux | import React from 'react'
import PropTypes from 'prop-types'
const Link = ({ active, children, onClick }) => {
if (active) {
return <span>{children}</span>
}
return (
<a href="#"
onClick={e => {
e.preventDefault()
onClick()
}}
>
{children}
</a>
)
}
Link.p... |
src/mui/list/FilterButton.js | marmelab/admin-on-rest | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import FlatButton from 'material-ui/FlatButton';
import Popover from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import ContentFilter from 'material-ui/svg-icons/content/filter-list';
import translate from '../../i18n/translat... |
src/components/Feedback/Feedback.js | hyptos/checkJobs | /*! 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... |
app/javascript/mastodon/components/admin/Retention.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { FormattedMessage, FormattedNumber, FormattedDate } from 'react-intl';
import classNames from 'classnames';
import { roundTo10 } from 'mastodon/utils/numbers';
const dateForCohort = cohort => {
switch(cohort.freque... |
src/svg-icons/action/extension.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExtension = (props) => (
<SvgIcon {...props}>
<path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V... |
src/index.js | Luanre/react-transform-boilerplate | import React from 'react';
import * as Router from 'react-router';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import { routes } from './routes';
function todos (state, action) {
state = state || [];
switch (action.type) {
case 'ADD_TODO':
return state.conc... |
screens/SolutionCategoriesScreen/Products.js | nattatorn-dev/expo-with-realworld | import React from 'react'
import {
Image,
ListView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native'
import PropTypes from 'prop-types'
import { object } from 'utilities'
const styles = StyleSheet.create( {
productContainer: {
padding: 5,
paddingBottom: 25,
width: '50%',
},
... |
definitions/npm/react-redux_v5.x.x/flow_v0.30.x-v0.52.x/test_Provider.js | doberkofler/flow-typed | // @flow
import React from 'react'
import { Provider } from 'react-redux'
// $ExpectError
const provider = <Provider />; // missing store
|
packages/material-ui/src/forgotPasswordComponents.js | js-accounts/react | import PropTypes from 'prop-types';
/* eslint-disable no-shadow */
import React from 'react';
import Flexbox from 'flexbox-react';
import getContext from 'recompose/getContext';
import Container from './Container';
import Content from './Content';
import FormError from './FormError';
import Header from './components/he... |
src/media/js/addon/components/version.js | mozilla/marketplace-content-tools | import classnames from 'classnames';
import moment from 'moment';
import React from 'react';
import {ReverseLink} from 'react-router-reverse';
import {Note, NoteSubmit} from './comm';
import ReviewActions from './reviewActions';
import * as constants from '../constants';
import ConfirmButton from '../../site/component... |
techCurriculum/ui/solutions/3.3/src/index.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 in writ... |
client/views/room/contextualBar/Info/RoomInfo/RoomInfo.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import VerticalBar from '../../../../../components/VerticalBar';
import RoomInfo from './RoomInfo';
export default {
title: 'room/contextualBar/RoomInfo',
component: RoomInfo,
};
const room = {
fname: 'rocketchat-frontend-team',
description:
'Lorem ipsum dolor sit amet, consectetur a... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | camillaborg/camillarne | 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'));
|
packages/material-ui-icons/src/CollectionsBookmark.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CollectionsBookmark = props =>
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10l-2.5-1.5L15 12V4h5v8z" />
... |
src/server.js | namelos/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
im... |
examples/huge-apps/app.js | bs1180/react-router | /*eslint-disable no-unused-vars */
import React from 'react'
import { render } from 'react-dom'
import { createHistory, useBasename } from 'history'
import { Router } from 'react-router'
import stubbedCourses from './stubs/COURSES'
const history = useBasename(createHistory)({
basename: '/huge-apps'
})
const rootRou... |
app/components/Video/index.js | TheTopazWombat/levt-2 | /**
*
* Video
*
*/
import React from 'react';
// import styled from 'styled-components';
const video = require('../../resources/home.mp4');
function Video() {
return (
<div style={style.videoContainer}>
<h1 style={style.videoText}>Light Electric Vehicle Technologies</h1>
<video autoPlay loop style=... |
src/components/common/statbar/SystemStatsContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import withAsyncData from '../hocs/AsyncDataContainer';
import StatBar from './StatBar';
import messages from '../../../resources/messages';
import { fetchSystemStats } from '..... |
app/components/gifTags.js | EmmaLa/GifScrapper | import React, { Component } from 'react';
import { Label } from 'semantic-ui-react';
export default function GitTags({ tags }){
return (
<div>
{
tags.map( tag => <Label key={tag}> { '#' + tag } </Label>)
}
</div>
)
} |
src/modules/dashboard/components/ScatterChart/index.js | burakince/d3js-react-examples | import React, { Component } from 'react';
import { ResponsiveContainer, ScatterChart, XAxis, YAxis, ZAxis, CartesianGrid, Tooltip, Legend, Scatter } from 'recharts';
import datas1 from './datas1';
import datas2 from './datas2';
class ScatterChartComponent extends Component {
render() {
return (
<Responsiv... |
examples/transitions/app.js | emmenko/react-router | import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import { Router, Route, Link, Navigation } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/dashboard">Dashboard</Link></li>
<li><Link to="/form"... |
src/js/components/Projects/New.js | appdev-academy/appdev.academy-react | import React from 'react'
import { browserHistory } from 'react-router'
import { inject, observer } from 'mobx-react'
import Form from './Form'
@inject('projectsStore')
@inject('tagsStore')
@observer
export default class New extends React.Component {
constructor(props) {
super(props)
this.state = {
... |
src/components/PageHeading.js | MartinP-C/my-site | import React from 'react';
import ReactDom from 'react-dom';
const PageHeading = (props) => (
<section className="row heading-row">
<div className="col-md-12">
<h1>
{props.children}
</h1>
</div>
</section>
)
export default PageHeading; |
lib/client/app-entry.js | chaos-adept/monkey-tournament | import 'babel-polyfill';
import injectTapEventPlugin from 'react-tap-event-plugin';
// Needed for onTouchTap
// Check this repo:
// https://github.com/zilverline/react-tap-event-plugin
injectTapEventPlugin();
import GameRouter from './app-router';
import { render } from 'react-dom';
import React from 'rea... |
app/react-icons/fa/bed.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaBed extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m5 22.5h33.5q0.5 0 0.9 0.4t0.3 0.8v8.7h-4.9v-4.9h-29.8v4.9h-5v-23.6q0-0.5 0.4-0.... |
src/docs/examples/TextInput/ExampleError.js | coryhouse/ps-react | import React from 'react';
import TextInput from 'ps-react/TextInput';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
onChange={() => ... |
client/containers/SmartComponent.js | s-thornton/pubg-fightClub | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getStarted } from '../actions';
import DumbComponent from '../components/DumbComponent';
class SmartComponent extends Component {
constructor(props) {
super(props);
}
componentWillMount() {
this.props.dispatch(getStarted()... |
client/components/infoCell.js | CodeWriterWriter/vidi-dashboard | 'use strict'
import React from 'react'
export default React.createClass({
render () {
const {title, value} = this.props
return (
<div className="col-xs-12 col-sm-6 col-md-3 col-lg-3 process-stats-container process-stats-floated">
<ul className="list-unstyled list-inline cf">
<li><h4... |
lib/component-library-slides/ComponentWrapper.js | RallySoftware/rally-present | import React from 'react';
import CodeBlock from '../components/CodeBlock';
const wrapperCode = `const ValidatingInput = withValidation(TextInput);
...
function withValidation(TargetComponent) {
return class WithValidation extends React.Component {
render() {
const props = Object.assign({
onChang... |
src/scenes/home/scholarshipApplication/body/body.js | tskuse/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { postBackend } from 'shared/utils/apiHelper';
import FormTextArea from 'shared/components/form/formTextArea/formTextArea';
import FormCheckBox from 'shared/components/form/formCheckBox/formCheckBox';
import FormButton from 'shared/com... |
examples/real-world/src/root/containers/DevTools.js | ioof-holdings/redux-dynamic-reducer | 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-w">
<LogMonitor />
... |
packages/material-ui-icons/legacy/BatteryCharging60Outlined.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9l1.87-3.5H7v9.67C7 21.4 7.6 22 8.33 22h7.33c... |
src/svg-icons/image/filter.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter = (props) => (
<SvgIcon {...props}>
<path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1... |
src/icons/IosShuffle.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosShuffle extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M362.121,207.146L352,194.854L413.784,144h-46.117c-93.327,0-129.147,74.511-163.787,138.832
c-1.62,3.008-3.233,6.... |
src/Timesheet.js | bcroden/timesheet-generator | import React from 'react';
import range from 'ramda/src/range';
import last from 'ramda/src/last';
import './index.css';
const formatDate = new Intl.DateTimeFormat(undefined, {
year: 'numeric',
month: '2-digit',
day: '2-digit'
});
const formatDay = new Intl.DateTimeFormat(undefined, {
weekday: 'shor... |
techCurriculum/ui/solutions/5.1/src/components/CardForm.js | jennybkim/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... |
projects/imbu/gui/browser/app.js | ywcui1990/htmresearch | /* -----------------------------------------------------------------------------
* Copyright © 2015, Numenta, Inc. Unless you have purchased from
* Numenta, Inc. a separate commercial license for this software code, the
* following terms and conditions apply:
*
* This program is free software: you can redistribute... |
assets/javascripts/kitten/components/graphics/icons/checked-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const CheckedIcon = ({ color, title, ...other }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 11 8"
width="11"
height="8"
fill={color}
{...other}
>
{title && <title>{title}</title>}
<path d="M.904 4.06l... |
src/svg-icons/action/delete.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDelete = (props) => (
<SvgIcon {...props}>
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/>
</SvgIcon>
);
ActionDelete = pure(ActionDelete);
ActionDelete.display... |
src/ReduxTable.js | moimikey/react-data-components | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import PartialTable from './PartialTable';
import {
initialize,
pageNumberChange,
pageSizeChange,
dataFilter,
} from './actions';
import { selectDataTable } from './selectors';
import { containsI... |
examples/NavigationPlayground/js/Drawer.js | Steviey/win-react-navigation | /**
* @flow
*/
import React from 'react';
import {
Button,
Platform,
ScrollView,
StyleSheet,
Text,
} from 'react-native';
import {
DrawerNavigator,
} from 'react-navigation';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import SampleText from './SampleText';
const MyNavScreen = (... |
src/index.js | NeversSync/gongfutea-v2 | import React from 'react';
import ReactDOM from 'react-dom';
import 'reset-css/reset.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
// import { composeWithDevTools } from 'redux-devtools-extension';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import i... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | x303597316/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
modules/RouteUtils.js | nickaugust/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
src/svg-icons/notification/event-available.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventAvailable = (props) => (
<SvgIcon {...props}>
<path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ... |
node_modules/react-router/es/Route.js | chenjic215/search-doctor | 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 _classCallCheck(instance, Constructor) { if (!(insta... |
packages/components/src/GridLayout/Tile/Footer/TileFooter.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import theme from './TileFooter.scss';
function Footer(props) {
return (
<div className={classnames(theme['tc-tile-footer'], 'tc-tile-footer')}>{props.children}</div>
);
}
Footer.propTypes = {
children: PropTypes... |
BuyDemo/Component/More/ZPMore.js | HAPENLY/ReactNative-Source-code-Demo | /**
* Created by zhaopengsong on 2016/12/19.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
Platform,
ScrollView,
} from 'react-native';
// 引入外部组件
var CommonCell = require('./ZPCommonCell');
var More = React.createCl... |
src/components/home/AddTodo.js | nightwolfz/mobx-starter | import React from 'react'
import { observable } from 'mobx'
import { observer, inject } from 'mobx-react'
@inject('store')
@observer
class AddTodo extends React.Component {
@observable inputText = ''
handleSubmit = (e) => {
e.preventDefault()
const { store } = this.props
store.todos.add(this.inputTex... |
node_modules/react-router/modules/Lifecycle.js | SlateRobotics/slate-website | import warning from './routerWarning'
import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On standard ... |
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/Wysiwyg/index.js | strapi/strapi-examples | /**
*
* Wysiwyg
*
*/
import React from 'react';
import {
ContentState,
EditorState,
getDefaultKeyBinding,
genKey,
Modifier,
RichUtils,
SelectionState,
} from 'draft-js';
import PropTypes from 'prop-types';
import { isEmpty, isNaN, replace, words } from 'lodash';
import cn from 'classnames';
import re... |
src/containers/layout/Hero/Hero.js | max-gram/react-saga-universal | import React from 'react'
import PropTypes from 'prop-types'
import { Grid, Row, Col } from 'react-flexbox-grid'
import css from './Hero.css'
const Hero = ({children, image, imgLeft=false, className}) => {
const styleClass = className ? (className + ' ' + css.hero) : css.hero
return (
<section className={st... |
src/svg-icons/navigation/expand-less.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationExpandLess = (props) => (
<SvgIcon {...props}>
<path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/>
</SvgIcon>
);
NavigationExpandLess = pure(NavigationExpandLess);
NavigationExpandLess.displa... |
src/svg-icons/maps/rate-review.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRateReview = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1... |
docs/app/Examples/collections/Menu/Content/MenuExampleInputs.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Input, Menu } from 'semantic-ui-react'
const MenuExampleInputs = () => {
return (
<Menu>
<Menu.Item>
<Input className='icon' icon='search' placeholder='Search...' />
</Menu.Item>
<Menu.Item position='right'>
<Input action={{ type: 'submit', co... |
app/containers/NavigationContainer/index.js | Generic35/ScalableReactRedux | /*
*
* NavigationContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectNavigationContainer from './selectors';
import styles from './styles.css';
import Navigation from '../../components/Navigation';
import { requestTopics, selectTopic, toggleDrawer } from './actions';
expo... |
src/encoded/static/components/PageTitle.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import url from 'url';
import memoize from 'memoize-one';
import { Alerts } from '@hms-dbmi-bgm/shared-portal-components/es/components/ui/Alerts';
import { LocalizedTime } from '@hms-dbmi-bgm/shared-portal-compone... |
app/javascript/mastodon/components/admin/Counter.js | yi0713/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { FormattedNumber } from 'react-intl';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import classNames from 'classnames';
import Skeleton from 'mastodon/components/skeleton';
const percIncrease = (a,... |
src/svg-icons/av/playlist-add-check.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAddCheck = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"/>
</SvgIcon>
);
AvPlaylistAddCheck = pure... |
src/components/Header.js | thinq4yourself/simply-social-in | import _ from 'lodash'
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom'
import faker from 'faker';
import {
LOGOUT
} from '../constants/actionTypes';
import {
Button,
Container,
Menu,
Segment,
Image,
Search,
Dropdown,
Icon,
Responsive
} from '... |
src/svg-icons/action/view-array.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewArray = (props) => (
<SvgIcon {...props}>
<path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/>
</SvgIcon>
);
ActionViewArray = pure(ActionViewArray);
ActionViewArray.displayName = 'ActionViewA... |
node_modules/rc-tooltip/es/Tooltip.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
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-runt... |
client/src/components/template/footer.js | mikelearning91/seeme-starter | import React, { Component } from 'react';
import { Link } from 'react-router';
const cookie = require('react-cookie');
class Footer extends React.Component {
renderFooter() {
let user = cookie.load('user');
if (user !== undefined) {
return (<span className="empty" />)
} else return (
<div cla... |
src/LoadGEXF.js | dunnock/react-sigma | // @flow
import React from 'react'
import '../sigma/parsers.gexf'
import { embedProps } from './tools'
type State = {
loaded: boolean
};
type Props = {
path: string,
onGraphLoaded?: () => void,
children?: mixed,
sigma?: Sigma
};
/**
LoadGEXF component, interface for parsers.json sigma plugin. Can be used with... |
src/components/gesture/index.js | ShinyLeee/React-PhotoSwipe | /* eslint-disable class-methods-use-this */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { delay, now, getEmptyPoint, isValidPoint, isClickableElement } from '../../utils/index';
import { rAF, cancelAnimation, cancelAllAnimations } from '../../utils/animation';
import {
MAX_TAP... |
app/components/ListItem/index.js | rlagman/raphthelagman | import React from 'react';
import PropTypes from 'prop-types';
import Item from './Item';
import Wrapper from './Wrapper';
function ListItem(props) {
return (
<Wrapper>
<Item>{props.item}</Item>
</Wrapper>
);
}
ListItem.propTypes = {
item: PropTypes.any,
};
export default ListItem;
|
src/components/users/users-default.js | johnamiahford/widgets-spa | 'use strict';
import React from 'react';
import Header from '../header';
import UsersCard from './users-card';
import UsersList from './users-list';
class UsersDefault extends React.Component {
render() {
let {users, usersCount, handleSearchFilter, isSearching} = this.props;
return (
<div>
<H... |
app/auth/components/AuthPage/SignupForm.js | ecellju/internship-portal | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import _ from 'lodash';
import { Message, Label, Form, Button, Grid } from 'semantic-ui-react';
import Page from '../../../assets/page.svg';
import User from '../../../assets/user.svg';
import './styles.scss';
con... |
app/dashboard/components/Metas.js | piratecb/up1and | import React from 'react'
import { Link } from 'react-router-dom'
import { inject, observer} from 'mobx-react'
import classNames from 'classnames'
import MetaEditor from './MetaEditor'
import { Section } from './Layout'
@inject('metaEditor')
@observer
class Tag extends React.Component {
constructor(props) {
s... |
node_modules/react-bootstrap/es/CarouselCaption.js | CallumRocks/ReduxSimpleStarter | 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 ... |
code/workspaces/web-app/src/containers/modal/CreateStacksModalWrapper.js | NERC-CEH/datalab | import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { get } from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import dataStorageActions from '../../actions/dataStorageActions';
class CreateStacksModalWrapper extends Component {
construc... |
src/Fade.js | tannewt/react-bootstrap | import React from 'react';
import Transition from './Transition';
class Fade extends React.Component {
render() {
return (
<Transition
{...this.props}
className='fade'
enteredClassName='in'
enteringClassName='in'
>
{this.props.children}
</Transition>
... |
src/index.js | midivitomi/ui | import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import Router from './containers/Router';
import configureStore from './configureStore';
const store = configureStore();
const RNBoilerplate = () => (
<Provider store={store}>
<Router />
</Provider>
... |
EventEmitter.Client/src/routes/Counter/components/Counter.js | Stelmashenko-A/EventEmitter | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.