path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/icons/IosInfinite.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosInfinite extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M456.821,182.377C436.782,162.788,410.062,152,381.585,152c-28.477,0-55.195,10.788-75.21,30.354l-39.106,37.885
l25.06,... |
examples/src/components/CustomComponents.js | Craga89/react-select | import React from 'react';
import Select from 'react-select';
import Gravatar from 'react-gravatar';
const USERS = require('../data/users');
const GRAVATAR_SIZE = 15;
const GravatarOption = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string,
isDisabled: React.Pro... |
docs/lib/examples/PlayerWithCaptions.js | video-react/video-react | import React from 'react';
import { Player, ControlBar, ClosedCaptionButton } from 'video-react';
export default function PlayerWithCaptions() {
return (
<Player videoId="video-1" autoPlay>
<source
src="//d2zihajmogu5jn.cloudfront.net/elephantsdream/ed_hd.mp4"
type="video/mp4"
/>
... |
src/js/components/CalculatorResult/CalculatorResultContainer.react.js | ali404/calculator-on-steroids | import React from 'react'
import Base from '../_helpers/BaseComponent'
import CalculatorResult from './CalculatorResult.react'
import CalculatorStore from '../../stores/CalculatorStore'
export default class CalculatorResultContainer extends Base {
constructor() {
super()
this._bind(
'... |
node_modules/react-bootstrap/es/Table.js | vitorgomateus/NotifyMe | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/basic/Fab.js | sampsasaarela/NativeBase | /* @flow */
import React, { Component } from 'react';
import { Button } from './Button';
import { Platform, Animated, TouchableOpacity } from 'react-native';
// import View from './View';
import { Icon } from './Icon';
// import Badge from './Badge';
import { IconNB } from './IconNB';
// import Text from './Text';
im... |
admin/client/Signin/index.js | joerter/keystone | /**
* The signin page, it renders a page with a username and password input form.
*
* This is decoupled from the main app (in the "App/" folder) because we inject
* lots of data into the other screens (like the lists that exist) that we don't
* want to have injected here, so this is a completely separate route and... |
app/components/ViewerComponent.js | openexp/OpenEXP | // @flow
import React, { Component } from 'react';
import { Subscription, Observable } from 'rxjs';
import { isNil } from 'lodash';
import {
MUSE_CHANNELS,
EMOTIV_CHANNELS,
DEVICES,
VIEWER_DEFAULTS
} from '../constants/constants';
const Mousetrap = require('mousetrap');
interface Props {
signalQualityObserv... |
src/static/containers/Login/index.js | KarimJedda/django-react-setup | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { push } from 'react-router-redux';
import t from 'tcomb-form';
import * as actionCreators from '../../actions/auth';
const Form = t.form.Form;
const Login = t.str... |
app/components/listItem.js | SunsetFrost/ReactMusicPlayer | import React from 'react';
import './listitem.less'
let PubSub = require('pubsub-js');
let ListItem = React.createClass({
deleteHandler(item, event) {
event.stopPropagation();
PubSub.publish('DEL_MUSIC', item);
},
playMusic(item, e) {
PubSub.publish('PLAY_MUSIC', item);
},
render() {
let item = this... |
source/containers/VideoPage/QuestionsBuilder/ChoiceListItem.js | mikey1384/twin-kle | import React from 'react';
import PropTypes from 'prop-types';
import { DragSource, DropTarget } from 'react-dnd';
import ItemTypes from 'constants/itemTypes';
import Icon from 'components/Icon';
import { Color } from 'constants/css';
const ListItemSource = {
beginDrag(props) {
return {
id: props.id,
... |
packages/mineral-ui-icons/src/IconQueueMusic.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 IconQueueMusic(props: IconProps) {
const iconProps = {
rtl: true,
...props
};
return (
<Icon {...iconProp... |
test/fixtures/webpack-message-formatting/src/AppAliasUnknownExport.js | ConnectedHomes/create-react-web-app | import React, { Component } from 'react';
import { bar as bar2 } from './AppUnknownExport';
class App extends Component {
componentDidMount() {
bar2();
}
render() {
return <div />;
}
}
export default App;
|
app/containers/App/index.js | IntAlert/chatplayer | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/js/components/common.js | otchy210/feedly-hatebu | import React from 'react';
import styled from 'styled-components';
import { hatenaBlue, feedlyGreen, alertRed, lineGrey } from './colors';
export const Section = styled.section`
`;
const H2 = styled.h2`
margin: 12px 0 0 0;
padding: 0 4px;
border-bottom: 2px solid;
border-image: linear-gradient(to righ... |
kamanni/src/SchoolIntroduction.js | jam-world/kanmanni | import React, { Component } from 'react';
import image from './image/frontPage.jpg';
import {slideStyle, slideTxtStyle} from './slideStyle';
class SchoolIntroduction extends Component {
render() {
return (
<div style={slideStyle}>
<img src={image} style={{height: "100%", wi... |
src/components/ProgressBar/ProgressBar.js | eliaslopezgt/ps-react-eli | import React from 'react';
import PropTypes from 'prop-types';
class ProgressBar extends React.Component {
getColor = () => {
if (this.props.percent === 100) return 'green';
return this.props.percent > 50 ? 'lightgreen' : 'red';
}
getWidthAsPercentOfTotalWidth = () => {
return parseInt(this.props.wi... |
lib/components/Contracts/index.js | gmtcreators/atom-solidity | 'use babel'
// Copyright 2018 Etheratom Authors
// This file is part of Etheratom.
// Etheratom is free software: 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
// (at your option) any la... |
src/NavItem.js | lo1tuma/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
linkId: React.PropTypes.string,
onSelect: React.PropTypes.func,
active: React.PropTypes.bool,
disabled: React.Pr... |
src/client/components/message/customerSuccess.js | uuchat/uuchat | import React, { Component } from 'react';
import { Row, Col, Modal, notification } from 'antd';
import io from 'socket.io-client';
import Header from '../user/header';
import ChatMenu from '../menu/chatMenu';
import ChatSend from './chatSend';
import ChatMessage from './chatMessage';
import ChatEmpty from './chatEmpty'... |
src/components/ContentWrapper/ContentWrapper.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
const ContentWrapper = ({children}) => {
return (
<div className='content-wrapper'>
{children}
</div>
)
}
ContentWrapper.propTypes = {
children: PropTypes.node
}
export default ContentWrapper
|
ide/static/js/content.js | Cloud-CV/IDE | import React from 'react';
import Canvas from './canvas';
import Pane from './pane';
import SetParams from './setParams';
import Tooltip from './tooltip'
import TopBar from './topBar';
import Tabs from './tabs';
import data from './data';
import netLayout from './netLayout_vertical';
import Modal from 'react-modal';
im... |
index.js | anthonator/react-contentable | import React from 'react';
/**
* This component provides contenteditable DIV functionality. This component
* encapsulates logic for managing a contenteditable value while taking changes
* within the property model into account.
*/
class Contentable extends React.Component {
constructor() {
super();
}
sh... |
client/App.js | trantuthien/React-Test | /**
* Root Component
*/
import React from 'react';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import IntlWrapper from './modules/Intl/IntlWrapper';
// Import Routes
import routes from './routes';
// Base stylesheet
require('./main.css');
export default function A... |
src/client/components/component.react.js | youprofit/este | import React from 'react';
import shallowEqual from 'react-pure-render/shallowEqual';
/**
* Purified React.Component. Goodness.
* http://facebook.github.io/react/docs/advanced-performance.html
*/
export default class Component extends React.Component {
static contextTypes = {
router: React.PropTypes.func
}... |
src/svg-icons/action/language.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLanguage = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 ... |
webapp/src/components/subsection.js | nathandunn/agr | import React, { Component } from 'react';
import style from './style.css';
class Subsection extends Component {
render() {
return (
<div className={style.subsection}>
{this.props.hardcoded && <span className='tag tag-danger'>Hardcoded Example Data</span>}
{this.props.title && <h3>{this.pro... |
ReactJS_Seed_Project/app/components/layouts/Main.js | huang6349/inspinia | import React from 'react';
import Progress from '../common/Progress';
import Navigation from '../common/Navigation';
import Footer from '../common/Footer';
import TopHeader from '../common/TopHeader';
import { correctHeight, detectBody } from './Helpers';
class Main extends React.Component {
render() {
le... |
src/components/stateless/HiddenField.js | thomas-p-wilson/react-form | import React from 'react'; // eslint-disable-line no-unused-vars
import BasicField from '../BasicField';
/**
* Produces an HTML input field with the type set to `hidden` and which performs
* just like its pure HTML counterpart in all respects.
*/
export default class HiddenField extends BasicField {
static disp... |
src/components/Field.js | jozaru/my-bank-app | import React from 'react';
import { FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap';
export class Field extends React.Component {
constructor() {
super();
this.handleChange = this.handleChange.bind(this);
this.input = null;
}
componentDidMount() {
this.props.setFieldVali... |
caseStudy/ui/src/components/Company.js | jennybkim/engineeringessentials | import React from 'react';
|
src/icons/Bonfire.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Bonfire extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M270.93,350.601C270.219,342.42,263.364,336,255,336c-7.635,0-14.01,5.352-15.605,12.506l-0.007-0.002l-15.612,92.502
... |
blueocean-material-icons/src/js/components/svg-icons/communication/call-missed-outgoing.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationCallMissedOutgoing = (props) => (
<SvgIcon {...props}>
<path d="M3 8.41l9 9 7-7V15h2V7h-8v2h4.59L12 14.59 4.41 7 3 8.41z"/>
</SvgIcon>
);
CommunicationCallMissedOutgoing.displayName = 'CommunicationCallMissedOutgoing';
Communica... |
src/components/posts_index.js | nicolasmsg/react-blog | import _ from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPosts } from '../actions';
class PostsIndex extends Component {
componentDidMount(){
this.props.fetchPosts();
}
renderPosts(){
console.log('cal... |
client/app/components/Home/Home.js | ejingfx/ews-mern-boiler | import React from 'react';
const Home = () => (
<div className="l-container">
<h1>Home</h1>
</div>
);
export default Home;
|
src/layouts/Frame.js | recharts/recharts.org | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import Helmet from 'react-helmet';
import { getLocaleType, localeGet } from '../utils/LocaleUtils';
import Affix from '../components/Affix';
import '../styles/app.scs... |
client/App.js | Pennsy/todolist | /**
* Root Component
*/
import React from 'react';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import IntlWrapper from './modules/Intl/IntlWrapper';
// Import Routes
import routes from './routes';
// Base stylesheet
import 'todomvc-app-css/index.css'
//require('./m... |
app/containers/BreadCrumbs/index.js | surzhik/coreola5 | /**
* Created by home on 19.09.2016.
*/
import React from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router';
import {push} from 'react-router-redux';
import {createStructuredSelector} from 'reselect';
import {selectCrumbs} from '../App/selectors';
import {Breadcrumb, Icon} from 'antd'... |
src/pages/About/index.js | jcarva/select_title | import React from 'react'
import { Layout, Row, Col } from 'antd';
const { Content } = Layout;
// Require About component style
require('./style.sass');
export default () => {
return(
<div id="about">
<Content style={{ padding: '0 50px' }}>
<Row>
<Col span={12} offset={6}>
<R... |
src/svg-icons/action/date-range.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDateRange = (props) => (
<SvgIcon {...props}>
<path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0... |
examples/CarouselBasic.js | chris-gooley/react-materialize | import React from 'react';
import Carousel from '../src/Carousel';
export default
<Carousel images={[
'https://lorempixel.com/250/250/nature/1',
'https://lorempixel.com/250/250/nature/2',
'https://lorempixel.com/250/250/nature/3',
'https://lorempixel.com/250/250/nature/4',
'https://lorempixel.com/250/250/na... |
src/client/story_box.js | uptownhr/hacker-menu | import React from 'react'
import _ from 'lodash'
import Client from 'electron-rpc/client'
import StoryList from './story_list.js'
import Spinner from './spinner.js'
import Menu from './menu.js'
import StoryType from '../model/story_type'
export default class StoryBox extends React.Component {
constructor (props) {
... |
src/pages/404.js | thibmaek/thibmaek.github.io | /* eslint-disable react/prop-types */
import React from 'react';
import { Preview as PostPreview } from '../components/post/';
import random from '../lib/pickRandom';
const NotFoundPage = ({ data }) => {
const { node: post } = random(data.allContentfulPost.edges);
return (
<div>
<header>
<h1>
... |
bayty/src/components/common/Spinner.js | Asmaklf/bayty | import React from 'react';
import { View, ActivityIndicator } from 'react-native';
const Spinner = ({ size }) => {
return (
<View style={styles.spinnerStyle}>
<ActivityIndicator size={size || 'large'} />
</View>
);
};
const styles = {
spinnerStyle: {
flex: 1,
justifyContent: 'center',
... |
app/javascript/mastodon/features/ui/components/actions_modal.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
src/Row.js | Cellule/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Row = React.createClass({
propTypes: {
componentClass: React.PropTypes.node.isRequired
},
getDefaultProps() {
return {
componentClass: 'div'
};
},
render() {
let ComponentClass = this.props.componentClass;
retu... |
modules/Query/index.js | mjoslyn/react-prismic-hocs | //@flow
import React from 'react'
import { query } from '../queries'
import type { APIOptions } from 'prismic.io'
type Props = {
url: string,
apiOptions: APIOptions,
query: any,
queryKey: string,
predicates: Predicates,
predicateOptions: Options,
children: any
};
export default class Query extends R... |
src/Parser/Paladin/Retribution/Modules/HolyPower/HolyPowerDetails.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Tab from 'Main/Tab';
import { formatPercentage, formatNumber } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import ResourceBreakdown from 'Parser/Core/Modules/ResourceTracker/ResourceBreakdown';
i... |
examples/js/selection/unselectable-table.js | rolandsusans/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;
products.push({
id: id,
... |
src/svg-icons/device/signal-wifi-1-bar-lock.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi1BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
src/components/Greeting.js | kesean/Dashboard-Frontend | import React from 'react'
import Paper from 'material-ui/Paper'
import {CardTitle} from 'material-ui/Card'
export default function Greeting(props) {
//Set greeting depending on hour of day
return(
<Paper zDepth={5} className="greeting">
<CardTitle>{getGreeting()}</CardTitle>
<CardTitle>{props.userFirs... |
data-browser-ui/public/app/components/tableComponents/td/numberTdComponent.js | CloudBoost/cloudboost | import React from 'react';
import ReactDOM from 'react-dom';
class NumberTdComponent extends React.Component {
constructor(){
super()
this.state = {}
}
componentDidMount(){
this.state = {
inputHidden:true
}
this.setState(this.state)
}
toggleInput(which,e){
if(which){
let string = this.props.elem... |
examples/simple/components/App.js | gaearon/library-boilerplate | import React, { Component } from 'react';
import { add } from 'library-boilerplate';
export default class App extends Component {
render() {
return (
<p>
2 + 2 = {add(2, 2)}
</p>
);
}
}
|
webapp-src/src/Admin/Navbar.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import messageDispatcher from '../lib/MessageDispatcher';
import apiManager from '../lib/APIManager';
class Navbar extends Component {
constructor(props) {
super(props);
this.state = {
config: props.config,
curNav: "users"... |
src/containers/AppContainer/index.js | pnicolli/demo-calculator | import React, { Component } from 'react';
import App from '../../views/App';
class AppContainer extends Component {
initialState = () => ({
negativeSign: false,
intValue: '0',
decimalValue: '',
showComma: false,
firstOperand: 0,
currentOperation: null,
resetNumberOnNextDigit: false,
})... |
src/components/modals/alert_modal.js | dcporter44/tunefest-frontend | import React, { Component } from 'react';
import { RaisedButton } from 'material-ui';
export default class AlertModal extends Component {
render () {
return (
<div className="modal modal-sm">
<div className="modal-content">
<div className="modal-body">
{this.props.text}
... |
pages/apply-now.js | aimanaiman/supernomadfriendsquad | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
import { prefixLink } from 'gatsby-helpers'
import { Link } from 'react-router'
import skype from '../icon/skype.png'
import pencil from '../icon/pencil.png'
import gift from '../icon/gift.png'
import businessman from ... |
src/index.js | simoneas02/contracts-list | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
packages/icons/src/md/action/List.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdList(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z" />
</IconBase>
);
}
export default MdList;
|
app/shared/wrapper.component.js | TPW-team/tpw_ui | import React from 'react';
export const Wrapper = ({component: Component, ...rest}) => (
<Component {...rest}></Component>
); |
src/components/decoline_item.js | lizarraldeignacio/personal-website | import React, { Component } from 'react';
/**
DecolineItem atomic element of DecoLine list
Params:
title: The title of the element
description: The description of the element
remove: A function to handle the removal of this item from the list
auth: A flag that indicates if the user is authenticate... |
app/components/map/footer/index.js | Vizzuality/forest-watcher | // @flow
import type { Alert, SelectedAlert } from 'types/alerts.types';
import type { MapItemFeatureProperties } from 'types/common.types';
import type { SelectedReport } from 'types/reports.types';
import type { LocationPoint } from 'types/routes.types';
import React, { Component } from 'react';
import { Animated, V... |
src/js/contexts/ResponsiveContext/ResponsiveContext.js | HewlettPackard/grommet | import React from 'react';
import { ResponsiveContextPropTypes } from './propTypes';
export const ResponsiveContext = React.createContext(undefined);
ResponsiveContext.propTypes = ResponsiveContextPropTypes;
|
app/javascript/mastodon/features/compose/components/character_counter.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
src/containers/NotFound/container/NotFound.js | WCCrazyCoder/react-redux-web-application | import React from 'react';
export default class NotFound extends React.Component {
render() {
return (
<div>
<h1>...喔噢... 404 not found.</h1>
</div>
)
}
}
|
src/TextField/TextField.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import type { Element } from 'react';
import Input, { InputLabel } from '../Input';
import FormControl from '../Form/FormControl';
import FormHelperText from '../Form/FormHelperText';
export type Props = {
/**
* This property helps users to fill forms faster, especially on mob... |
app/javascript/mastodon/features/notifications/components/clear_column_button.js | clworld/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return ... |
src/svg-icons/action/hourglass-full.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassFull = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/>
</SvgIcon>
);
ActionHourglassFull = pure(ActionHour... |
docs/app/Examples/elements/Loader/Variations/LoaderExampleInline.js | koenvg/Semantic-UI-React | import React from 'react'
import { Loader } from 'semantic-ui-react'
const LoaderExampleInline = () => (
<Loader active inline />
)
export default LoaderExampleInline
|
test/fixtures/bugfix-175/actual.js | oliviertassinari/babel-plugin-transform-react-remove-prop-types | import React from 'react';
import PropTypes from 'prop-types';
const sharedPropType = PropTypes.number;
export default class Foo extends React.Component {
static propTypes = {
bar: sharedPropType,
}
}
|
src/routes/x-axis-assembly/XAxisAssembly.js | bigearth/www.clone.earth | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './XAxisAssembly.css';
import { Grid, Row, Col, Image } from 'react-bootstrap';
import DocsTOC from '../../components/DocsTOC';
class XAxisAssembly extends React.Component {
r... |
src/svg-icons/communication/rss-feed.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRssFeed = (props) => (
<SvgIcon {...props}>
<circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17... |
client/portfolio2017/src/Components/Routs/ProjectsRoute/ProjectsRoute.js | corrortiz/portafolio2017 | import React from 'react';
//Internal Components
import ListOfProjects from '../../ListOfProjects/ListOfProjects';
import FooterApp from '../../FooterApp/FooterApp';
//locale Assest
import { Projects } from '../../../Assets/diccionary';
/**
* layout of the projects rout
*/
const ProjectsRoute = () => {
return (
... |
docs/app/Examples/elements/Header/Types/HeaderExampleContent.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleContent = () => (
<div>
<Header size='huge'>Huge Header</Header>
<Header size='large'>Large Header</Header>
<Header size='medium'>Medium Header</Header>
<Header size='small'>Small Header</Header>
<Header size=... |
src/components/storyComment/StoryComment.js | ummahusla/Hacker-Reader | import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
import Navigation from '../navigation/Navigation';
import ScoreLabel from '../shared-components/scoreLabel/ScoreLabel';
import AuthorLabel from '../shared-components/authorLabel/AuthorLabel';
import DateLabel from '../shared-components/... |
src/components/topic/MediaTableContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import MediaTable from './MediaTable';
import { isUrlSharingFocalSet } from '../../lib/topicVersionUtil';
/**
* Simple wrapper around MediaTable to pull in some stuff from state (so the components that use
* MediaTa... |
src/svg-icons/action/flip-to-back.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlipToBack = (props) => (
<SvgIcon {...props}>
<path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2... |
js/controls/AttributionControl.js | mekto/brouter-online | import React from 'react';
import Control from './Control';
class AttributionComponent extends React.Component {
state = { layerAttributions: [] }
componentDidMount() {
this.props.map.on('layerchange', ::this.updateLayerAttributions);
}
updateLayerAttributions(e) {
this.setState({
layerAttribu... |
src/layouts/index.js | xenotime-india/CV | import React from 'react'
import { siteMetadata } from '../../gatsby-config'
import './../styles/init.scss'
import 'font-awesome/css/font-awesome.css'
class Template extends React.Component {
componentDidMount() {}
componentDidUpdate() {}
render() {
const { location, children } = this.props
return <di... |
fields/types/password/PasswordField.js | linhanyang/keystone | import React from 'react';
import Field from '../Field';
import {
Button,
FormInput,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'PasswordField',
statics: {
type: 'Password',
},
getInitialState () {
return... |
examples/jenarMine/components/WindowOverlay.js | tatsuhino/reactPractice | import styles from '../css/main.css'
import React from 'react'
import {hashHistory} from 'react-router';
const WindowOverlay = () =>{
return (
<div className={styles.windowOverlay} onClick={linkTo}></div>
)
}
const linkTo = () =>{
hashHistory.push('/');
}
export default WindowOverlay
|
src/redux/utils/createDevToolsWindow.js | wwwiiilll/drinkstat | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
docs/app/Examples/collections/Message/Types/MessageMessagePropsExample.js | jcarbo/stardust | import React from 'react'
import { Message } from 'stardust'
const MessageMessagePropsExample = () => (
<Message
header='Changes in Service'
content='We updated our privacy policy here to better service our customers. We recommend reviewing the changes.'
/>
)
export default MessageMessagePropsExample
|
scripts/apps/translations/directives/TranslationReactDropdown.js | thnkloud9/superdesk-client-core | /* eslint-disable react/no-multi-comp */
import React from 'react';
/**
* @ngdoc directive
* @module superdesk.apps.translations
* @name TranslationReactDropdown
*
* @requires React
* @requires item
* @requires className
* @requires TranslationService
* @requires noLanguagesLabel
*
* @param {Object} [langug... |
packages/app/app/containers/MainContentContainer/index.js | nukeop/nuclear | import React from 'react';
import { Route, Switch, withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as SearchActions from '../../actions/search';
import MainLayout from '../../components/MainLayout';
import AlbumViewContainer from '../Al... |
src/interface/layout/Footer/index.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Tooltip, { TooltipElement } from 'common/Tooltip';
import DiscordLogo from 'interface/icons/DiscordTiny';
import GithubLogo from 'interface/icons/GitHubMarkSmall';
import PatreonIcon from 'interface/icons/Patre... |
examples/js/others/table-in-tabs.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { Tabs, Tab } from 'react-bootstrap';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = star... |
src/Repeat/index.js | pinebit/react-cr | import React from 'react';
import PropTypes from 'prop-types';
import Wrapper from '../Wrapper';
const Repeat = ({ count, children, ...wrapperProps }) => {
if (!children || count <= 0 || Array.isArray(children)) {
return null;
}
if (count === 1) {
return (
<Wrapper {...wrapperProps}>
{chil... |
src/common/containers/LocationPanel/LocationPanel.js | aarmour/my-denver | import React, { Component } from 'react';
import BasePanel from '../BasePanel';
export default class LocationPanel extends Component {
render() {
return (
<BasePanel>
</BasePanel>
);
}
}
|
src/components/Search/SearchStories.js | DeloitteDigitalUK/react-redux-starter-app | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Search from './index';
storiesOf('Search', module)
.addDecorator(story => (
<div className="col-xs-8 col-xs-offset-2">
{story()}
</div>
))
.add('Default State', () => (
<Search
heading="Search GitHub"
... |
src/pages/navbar.js | michaelnyu/michaelnyu.github.io | import React from 'react';
import House from '~/assets/house.svg';
import NavbarComponent from '~/src/components/navbar';
import Link from '~/src/components/link';
import { Heading, FONT_COLORS } from '~/src/shared/typography';
export const leftNavbar = (
<Link to="/">
<House css={{ width: 60, height: 'auto' }} ... |
src/ToggleButtonWithLabel/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Typography from '../Typography';
import SwitchToggleButton from '../SwitchToggleButton';
import styles from './styles.css';
function ToggleButtonWithLabel(props) {
return (
<div className={classNames(style... |
packages/material-ui-icons/src/Details.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Details = props =>
<SvgIcon {...props}>
<path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z" />
</SvgIcon>;
Details = pure(Details);
Details.muiName = 'SvgIcon';
export default Details;
|
src/organisms/cards/PolicyCard/Compare.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Text from 'atoms/Text';
import Hide from 'wrappers/Hide';
import Spacer from 'atoms/Spacer';
import CheckBoxField from 'molecules/formfields/CheckBoxField';
import styles from './policy_card.module.scss';
const C... |
client/node_modules/react-router/es/withRouter.js | bourdakos1/Visual-Recognition-Tool | 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 = {... |
js/src/dialogs/NewFolder.js | syslo/file_publisher | import React from 'react'
import {Button, Form, FormControl, FormGroup, InputGroup} from 'react-bootstrap'
import {Modal} from 'react-bootstrap'
const validator = new RegExp('^[_a-zA-Z0-9]+$')
export default class NewFolder extends React.Component {
create() {
const n = this.props.state.nodes[this.props.state.... |
components/form/FileImage.js | resource-watch/resource-watch | import 'isomorphic-fetch';
import React from 'react';
import PropTypes from 'prop-types';
// Components
import Dropzone from 'react-dropzone';
import Icon from 'components/ui/icon';
import FormElement from './FormElement';
class FileImage extends FormElement {
constructor(props) {
super(props);
const def... |
examples/js/custom/search/fully-custom-search-field.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i... |
stories/Transform.js | unruffledBeaver/react-animation-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import * as knobs from '@storybook/addon-knobs';
import { createCommonKnobs } from '../src/utilities';
import { Transform } from '../src/index';
storiesOf('Animations/Transform', module)
.addDecorator(knobs.withKnobs)
.add('default', (... |
src/js/index.js | Landerson352/rpga | import React from 'react';
import ReactDOM from 'react-dom';
import '../css/app.less';
import App from './components/App';
ReactDOM.render(<App/>,document.getElementById('app'));
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.