path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/action/assignment-return.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45... |
src/svg-icons/communication/screen-share.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationScreenShare = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56... |
src/components/SettingsMenu/Sections/Pairing.js | codaco/Network-Canvas | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { push } from 'react-router-redux';
import { motion } from 'framer-motion';
import { withHandlers, compose } from 'recompose';
import { Text } from '@codaco/ui/lib/components/Fields';
import { actionCrea... |
examples/sections/src/components/Button/Button.js | bluetidepro/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import './Button.css';
/**
* The only true button.
*/
export default function Button({ color, size, children }) {
const styles = {
color,
fontSize: Button.sizes[size],
};
return (
<button className="button" style={styles}>
{children}
</bu... |
pkg/interface/chat/src/js/components/new.js | jfranklin9000/urbit | import React, { Component } from 'react';
import classnames from 'classnames';
import { InviteSearch } from './lib/invite-search';
import { Spinner } from './lib/icons/icon-spinner';
import { Route, Link } from 'react-router-dom';
import { uuid, isPatTa, deSig } from '/lib/util';
import urbitOb from 'urbit-ob';
export... |
packages/node_modules/@ciscospark/react-component-day-separator/src/index.js | Altocloud/alto-react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import {FormattedDate, FormattedMessage} from 'react-intl';
import ListSeparator from '@ciscospark/react-component-list-separator';
function DaySeparator(props) {
const {fromDate, now, toDate} = props;
return (
<div>... |
app/javascript/mastodon/features/ui/components/compare_history_modal.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { closeModal } from 'mastodon/actions/modal';
import emojify from 'mastodon/features/emoji/emoji';
impor... |
app/js/containers/account-list.js | ue/electra | import React from 'react';
import ReactDOM from 'react-dom';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {
addAccount,
accountItemUpdate,
deleteAccount,
addToFavorites,
accountPasswordUpdate,
accountTagUpdate
} from '../actions/index';
// Id
import uuid from 'node... |
components/Tree.js | GitSchooled/git-started | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import d3 from 'd3';
// Import the d3 functions we'll use to visualize our trees.
import treeVisualization from './../visualizations/tree-visualization';
export default class Tree extends Component {
componentDidMount() {
// This funct... |
test/test_helper.js | marcinwojtera/boiler | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
openex-front/src/private/components/players/Players.js | Luatix/OpenEx | import React from 'react';
import { makeStyles } from '@mui/styles';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemIcon from '@mui/material/ListItemIcon';
import ListItemText from '@mui/material/ListItemText';
import ListItemSecondaryAction from '@mui/material/List... |
smartSILS/usermains/AboutUser.ios.js | wangleibeckham/iPRED | 'use strict'
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
StatusBar,
ScrollView,
Image,
Dimensions,
ActivityIndicator,
PixelRatio,
Switch,
TouchableOpacity
} from 'react-native';
/*
PixelRatio.get() === 2
iPhone 4, 4S
iPhone 5, 5c, 5s
iPhone ... |
node_modules/react-bootstrap/es/Clearfix.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/containers/CommuteImport.js | vnguyen94/react-commute | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Row, Col } from 'react-bootstrap';
import { CommuteDataInput } from '../components';
@connect(state => ({ commuteData: state.commuteData }))
export default class CommuteImport extends Component {
constructor(props) {
supe... |
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js | chengjunjian/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import CreateGroupActionCreators from 'actions/CreateGro... |
UtopiaTargetFinder/Content/js/containers/application.js | RJSchmertz/utopia-target-finder | import React from 'react';
import PropTypes from 'prop-types';
const Application = ({ children }) =>
(
<div>
{children}
</div>
);
Application.propTypes = {
children: PropTypes.object.isRequired
};
export default Application;
|
node_modules/react-bootstrap/es/InputGroupAddon.js | Chen-Hailin/iTCM.github.io | 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 ... |
docs/src/examples/elements/Header/Variations/HeaderExampleDividing.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleDividing = () => (
<Header as='h3' dividing>
Dividing Header
</Header>
)
export default HeaderExampleDividing
|
app/src/components/Splash.js | alpcanaydin/github-stats-for-turkey | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MoveTo from 'moveto';
import './Splash.css';
class Splash extends Component {
constructor(props) {
super(props);
this.handleMove = this.handleMove.bind(this);
}
componentDidMount() {
if (/cities/gi.test(this.props... |
fields/types/markdown/MarkdownField.js | riyadhalnur/keystone | import Field from '../Field';
import React from 'react';
import ReactDOM from 'react-dom';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on jQuery
*/
// Scope jQuery and the bootstrap-markdown editor so it will mount
var $ = require('jquery');
require('./lib/bootstrap-markdown');
// App... |
app/javascript/mastodon/components/autosuggest_emoji.js | 5thfloor/ichiji-social | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
const assetHost = process.env.CDN_HOST || '';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequired,
... |
examples/shopping-cart/index.js | camsong/redux | import React from 'react'
import { render } from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import logger from 'redux-logger'
import thunk from 'redux-thunk'
import reducer from './reducers'
import { getAllProducts } from './actions'
import App from './contai... |
js/components/pages/RegisterPage.react.js | cs2340-titans/RoastWeb | /**
* Created by andy on 3/6/16.
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
import RegisterCard from '../RegisterCard.react';
class RegisterPage extends Component {
render() {
return (
<RegisterCard />
);
}
}
export default RegisterPage; |
src/entry.js | CristiScheye/text-shadow-playground | import React from 'react'
import View from './view/index.jsx'
React.render(<View />, document.getElementById('view-target'))
|
docs/app/Examples/elements/Image/Types/ImageExampleWrapped.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleWrapped = () => (
<Image src='/assets/images/wireframe/image.png' size='small' wrapped />
)
export default ImageExampleWrapped
|
src/svg-icons/av/web-asset.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvWebAsset = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/>
</SvgIcon>
);
AvWebAsset = pure(AvWebAsset);
AvWebAss... |
src/svg-icons/av/shuffle.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvShuffle = (props) => (
<SvgIcon {...props}>
<path d="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.... |
public/js/10D.js | ritchieanesco/frontendmastersreact | /* Abstract reusable component and loop through data */
import React from 'react'
// type annotataions for data
const {string} = React.PropTypes
const ShowCard = React.createClass({
propTypes: {
poster: string,
title: string,
year: string,
description: string
},
render () {
// destructuring ... |
lib/connect_floox.js | fatfisz/floox | import React from 'react';
import Floox from './floox_class';
function getComponentName(Component) {
if (typeof Component === 'string') {
return Component;
}
return Component.displayName || Component.name || 'anonymous';
}
function getState(floox, mapping, keys, passFloox) {
const { state } = floox;
... |
src/index.js | weitaiting/jstrainingproject | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App initialData={window.initialData} />,
document.getElementById('root')
);
|
Team4of5/src/Team4of5_App/BugTracking/IssueUpdate.js | Team4Of5/Project | import React from 'react';
import ReactDOM from 'react-dom';
//Connect Firebase
import * as Config from '../../Team4of5_Service/Config.js';
import * as Issues from '../../Team4of5_Service/Issues.js';
//import css
import './IssueTracker.css'
//import react-bootstrap
import {
Form,
FormGroup,
FormControl,
... |
app/components/material/Material_6.js | tw00089923/kcr_bom | import React from 'react';
import style from './Material.css';
import cx from 'classname';
import _ from 'lodash';
export default class Material_6 extends React.Component {
constructor(props) {
super(props);
this.state ={
index_a:"material_b_1",
show_first:false,
show_3_2_1:true,
show... |
client/app/components/Form.AddMaterial.js | jfanderson/KIM | import React from 'react';
import sign from '../services/sign.js';
const PropTypes = React.PropTypes;
class AddMaterialForm extends React.Component {
constructor() {
super();
this.state = {
description: '',
item: ''
};
}
render() {
let props = this.props;
let state = this.stat... |
docs/app/Examples/modules/Popup/Variations/index.js | ben174/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const PopupVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Basic'
descripti... |
packages/core/tocco-ui/src/Layout/Layout.js | tocco/tocco-client | import React from 'react'
/**
* Use <Layout.Container/> to apply grid and gutter on <Layout.Box>.
* Define how many cells are displayed per row and breakpoint.
*/
// This is a dummy component only for showcase.
export class Layout extends React.Component {
render() {
return <React.Fragment />
}
}
export d... |
src/svg-icons/places/airport-shuttle.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAirportShuttle = (props) => (
<SvgIcon {...props}>
<path d="M17 5H3c-1.1 0-2 .89-2 2v9h2c0 1.65 1.34 3 3 3s3-1.35 3-3h5.5c0 1.65 1.34 3 3 3s3-1.35 3-3H23v-5l-6-6zM3 11V7h4v4H3zm3 6.5c-.83 0-1.5-.67-1.5-1.... |
app/jsx/grading/CourseTabContainer.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/modules/SelfAvatar/component.js | svmn/ace-fnd | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import { fullWhite, lightBlack } from 'material-ui/styles/colors';
import { Component as Avatar } from '../Avatar';
export default function SelfAvatar(props) {
return (
<div ... |
src/index.js | webrain/watermelon | import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App/App';
// First thing to do during the initialization:
// programmatically create a div into the body of the html file
// to attach the main container component.
//
// Remember that there isn't an html file actually, it's gen... |
amartonline-ui/src/components/home/home.js | gruberchris/AmartOnline | import React, { Component } from 'react';
import axios from 'axios';
import { Button, ListGroup, ListGroupItem, Glyphicon, Col, Row, Grid } from 'react-bootstrap';
class Home extends Component {
constructor(props) {
super(props);
this.axios = axios;
this.state = {
inventory:[],
isAuthenticate... |
lib/components/MapView.js | zigbang/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
EdgeInsetsPropType,
Platform,
Animated as RNAnimated,
requireNativeComponent,
NativeModules,
ColorPropType,
findNodeHandle,
ViewPropTypes,
View,
} from 'react-native';
import MapMarker from './MapMarker';
import MapPolyline from '... |
docs/src/app/components/pages/components/Checkbox/ExampleSimple.js | ichiohta/material-ui | import React from 'react';
import Checkbox from 'material-ui/Checkbox';
import ActionFavorite from 'material-ui/svg-icons/action/favorite';
import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border';
import Visibility from 'material-ui/svg-icons/action/visibility';
import VisibilityOff from 'materi... |
fixtures/packaging/systemjs-builder/dev/input.js | yungsters/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
src/notebook/components/cell/markdown-cell.js | 0u812/nteract | // @flow
import React from 'react';
import CommonMark from 'commonmark';
import MarkdownRenderer from 'commonmark-react-renderer';
import Editor from '../../providers/editor';
import LatexRenderer from '../latex';
type Props = {
cell: any,
id: string,
theme: string,
focusAbove: () => void,
focusBelow: () =>... |
src/components/DataTable/defaultSelectRenderer.js | propertybase/react-lds | import React from 'react';
import { CheckboxRaw } from '../Form';
/* eslint-disable react/prop-types */
export default ({
dataKey, rowId, selected, onSelect, tableId
}) => {
const checkboxId = `${tableId}-${dataKey}-${rowId}`;
return (
<td
className="slds-text-align--right"
key={dataKey}
... |
Example/fadetoogle/index.android.js | franfran/react-native-fade-toogle | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class fadetoogle extends Component {
render() {
return (
<View style={styles.containe... |
app/javascript/mastodon/components/column.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import detectPassiveEvents from 'detect-passive-events';
import { scrollTop } from '../scroll';
export default class Column extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
label: PropTypes.string,
bindToDocument:... |
src/Main/MonkSpreadsheet.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
class MonkSpreadsheet extends React.Component {
static propTypes = {
parser: PropTypes.object.isRequired,
};
render() {
const { parser } = this.props;
const abilityTracker = parser.modules.abilityTra... |
src/js/components/icons/base/Action.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
node_modules/react-keydown/src/decorators/class_decorator.js | SpatialMap/SpatialMapDev | /**
* @module componentWrapper
*
*/
import React from 'react';
import store from '../store';
import { onMount, onUnmount } from '../event_handlers';
/**
* componentWrapper
*
* @access public
* @param {object} WrappedComponent React component class to be wrapped
* @param {array} [keys] The key(s) bound to the ... |
react-router-demo/src/components/Show.js | hzzly/react-getting-started | import React, { Component } from 'react';
class Show extends Component {
constructor(props) {
super(props)
}
render() {
return (
<div>
<h3>节目 {this.props.params.id}</h3>
</div>
);
}
}
export default Show; |
packages/icons/src/dv/RaspberryPi.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function DvRaspberryPi(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M29.477 43.546c-3.145 3.245-7.752 3.299-10.954 0-1.819-.638-3.161-1.55-4.422-2.51-.86-.215-4.122-2.032-4.622-5.91-.335-.964-.711-1.833-.934-3.044... |
ajax/libs/react-instantsearch/3.3.2/Dom.js | froala/cdnjs | /*! ReactInstantSearch 3.3.2 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
app/javascript/mastodon/components/autosuggest_textarea.js | RobertRence/Mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import ImmutablePureComponent from 'react-immutable-pure-comp... |
good-old-react-authentication-flow/src/components/ImgPreviewHint/index.js | strapi/strapi-examples | /**
*
* ImgPreviewHint
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import './styles.scss';
function ImgPreviewHint(props) {
let pStyle;
switch (true) {
case props.showWhiteHint:
pStyle = { zIndex: 999, color: '#fff' };
break;
case props.displayHint:
pStyle ... |
pages/index.js | coderplex/coderplex | import React from 'react';
import styled from 'react-emotion';
import { space } from 'styled-system';
import { Flex, Box } from 'grid-styled/emotion';
import take from 'lodash.take';
import Link from 'next/link';
import Hide, { Container, Button, Title, SubTitle, breakpoints } from '../utils/base.styles';
import { lis... |
src/index.js | jessemartin/boilerplate | 'use strict';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './components/app.jsx';
import configureStore from './store/configureStore';
const store = configureStore();
const container = document.createElement('div');
container.className = 'con... |
lib/components/ProgressBar.js | nickstanish/reprogressbars | import React from 'react';
import PropTypes from 'prop-types';
import ProgressProvider from './ProgressProvider';
import Bar from './Bar';
function only(originalObject, keys) {
var newObject = {};
keys.forEach(function (key) {
if (originalObject[key] !== undefined) {
newObject[key] = originalObject[key];... |
src/scenes/home/gala/gala.js | NestorSegura/operationcode_frontend | import React from 'react';
import ReactRevealText from 'react-reveal-text';
import commonUrl from 'shared/constants/commonLinks';
import LinkButton from 'shared/components/linkButton/linkButton';
import styles from './gala.css';
class Gala extends React.Component {
constructor() {
super();
this.state = { sho... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | batimiasu/angular-tour-of-heroes | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
information/blendle-frontend-react-source/app/modules/payment/containers/TopUpOptionsContainer.js | BramscoChill/BlendleParser | import React from 'react';
import Analytics from 'instances/analytics';
import AltContainer from 'alt-container';
import TopUpOptions from 'modules/payment/components/TopUpOptions';
import PaymentStore from 'stores/PaymentStore';
import PaymentActions from 'actions/PaymentActions';
import TopUpActions from 'actions/Top... |
components/Layout/Navigation.js | a76/eric | import React from 'react'
import Link from '../Link'
import { resolveRoute } from '../../routes'
import s from './Navigation.css'
const Navigation = ({hubs}) => {
let hubsUi = null
if (hubs && hubs.size > 0) {
hubsUi = hubs.valueSeq().map(hub => {
const id = hub.get('id')
const to = resolveRoute('... |
docs/src/SupportPage.js | mengmenglv/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="support" />
<PageHeader
title="Nee... |
docs/src/app/components/pages/components/Menu/Page.js | skarnecki/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import menuReadmeText from './README';
import MenuExampleSimple from './ExampleS... |
app/components/Chunk.js | mfrohberg/fil | import _ from 'underscore-contrib';
import React from 'react';
import classNames from 'classnames';
import {parseOrFallback} from 'helpers';
class List extends React.Component {
render() {
let block = "console__chunk--list",
output = this.props.chunk;
let classes = classNames(block, {
"consol... |
app/components/Loading/index.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
client/index.js | glenrage/another-chance | import ReactDOM from 'react-dom';
import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import App from './components/App';
import store from './store';
import Home from './components/Home';
import Login from './components/Login';
impor... |
examples/todos/components/App.js | leoasis/redux | import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
</div>
)
export default App
|
packages/react/src/components/ToolbarSearch/ToolbarSearch.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Search16 } from '... |
src/pages/charlize.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Charlize' />
)
|
packages/elza-react/src/ErrorAlert.js | octree-gva/elzajs | import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import {getForm} from 'elza-core';
/**
* ErrorAlert
*/
class ErrorAlert extends React.Component {
static displayName = 'ErrorAlert';
static propTypes = {
htmlFor: PropTypes.string.isRequired,
children: PropTypes.any,
... |
src/svg-icons/action/change-history.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionChangeHistory = (props) => (
<SvgIcon {...props}>
<path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/>
</SvgIcon>
);
ActionChangeHistory = pure(ActionChangeHistory);
ActionChangeHistory.display... |
js/components/profile/index.js | Rebaiahmed/Alchaaer |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import { Container,Content, Header, Title, Form, Item, Input,Label,Button,Left,Right
,Card, CardItem,Footer, FooterTab, Text,Body,Badge,InputGroup,
View, List, ListItem } from 'native-ba... |
webpack/move_to_foreman/components/common/table/components/CollapseSubscriptionGroupButton.js | adamruzicka/katello | import React from 'react';
import PropTypes from 'prop-types';
import { noop } from 'foremanReact/common/helpers';
import { Icon } from 'patternfly-react';
const CollapseSubscriptionGroupButton = ({
collapsed, onClick, ...props
}) => {
const iconName = collapsed ? 'angle-right' : 'angle-down';
return (
<Ico... |
seeds/node_modules/react-router/es/IndexRoute.js | Vincent-yz/react-creater | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
src/images/Hats.svg.js | dkadrios/zendrum-stompblock-client | import React from 'react';
export default () => (
<svg version="1.1" id="Layer_1" x="0px" y="0px"
viewBox="0 0 512 512">
<g>
<g>
<path d="M442.514,210.831c-7.106-1.448-14.575-2.801-22.32-4.061c-46.076,9.44-102.01,16.097-160.96,19.039
c-21.975,1.098-43.591,1.641-64.477,1.641c-4... |
src/InputBase.js | mengmenglv/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import FormGroup from './FormGroup';
import Glyphicon from './Glyphicon';
class InputBase extends React.Component {
getInputDOMNode() {
return React.findDOMNode(this.refs.input);
}
getValue() {
if (this.props.type === 'static') {
retu... |
chapter-05/todo_with_selector/src/todos/views/todos.js | mocheng/react-and-redux | import React from 'react';
import AddTodo from './addTodo.js';
import TodoList from './todoList.js';
import './style.css';
export default () => {
return (
<div className="todos">
<AddTodo />
<TodoList />
</div>
);
}
|
src/svg-icons/communication/screen-share.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationScreenShare = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56... |
app/components/Header/index.js | SenyOrg/kekecmed-frontend | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
examples/react-router/app/boot.js | leobauza/microcosm | import React from 'react'
import DOM from 'react-dom'
import Router from 'react-router-dom/BrowserRouter'
import Debugger from 'microcosm-debugger'
import { AppContainer } from 'react-hot-loader'
import Repo from './repo'
import Layout from './views/layout'
const el = document.getElementById('app')
const repo = new Re... |
src/index.js | kpsroka/splendid | /*
* Copyright 2017 K. P. Sroka
*
* 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 wr... |
admin/client/App/screens/List/components/UpdateForm.js | vokal/keystone | import React from 'react';
import Select from 'react-select';
import { findDOMNode } from 'react-dom';
import assign from 'object-assign';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '../../../shared/InvalidFieldType';
import { plural } from '../../../../utils/string';
import { BlankState, Button,... |
showcase/axes/dynamic-crosshair-scatterplot.js | Apercu/react-vis | // Copyright (c) 2016-2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, ... |
src/fields/bound-field.js | surikaterna/formr | import React from 'react';
/**
* BoundField act as a bridge between a {expression} and the regular react widgets
*/
const BoundField = Field => props =>
<Field {...props} value={props.value.get() } onChange={(v) => props.onChange(props.value.set(v)) }/>;
export default BoundField;
|
generators/app/templates/app/src/components/SOHot/SOHot.js | hasura/generator-hasura-web | import React from 'react';
import { connect } from 'react-redux';
import { load as loadResults } from './Actions';
import SOQuestionsList from '../SOQuestionsList/SOQuestionsList';
class SOHot extends React.Component {
static propTypes = {
questions: React.PropTypes.array.isRequired,
dispatch: React.PropTyp... |
docs/src/components/ComponentDoc.js | tannerlinsley/react-move | // @flow
import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import PropsDescription from 'docs/src/components/PropsDescription'
import MarkdownElement from 'docs/src/components/MarkdownElement'
const styles = {
root: {
marginBottom: 100,
},
hea... |
components/loader.js | kalicki/WhatsAppLike | import React from 'react'
export default () =>
<div>
<svg
width="33px"
height="33px"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid">
<rect x="0" y="0" width="100" height="100" fill="none" />
<circle
cx="50"
cy="50"... |
src/components/Header/Header.js | amaurisquezada/battleship | import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<div>
<h1>Battleship</h1>
<IndexLink to='/' activeClassName='route--active'>
Home
</IndexLink>
{' · '}
<Link to='/board' activeClassName='route--active'>
Board... |
React Native/Demos/address_book/Views/manager/deleteUser.js | AngryLi/note | /**
* Created by Liyazhou on 16/8/28.
*/
import React from 'react';
import {
View, Text, ScrollView, StyleSheet, TouchableOpacity, TextInput, AlertIOS, AsyncStorage,
} from 'react-native';
import Util from './../util';
import Service from './../service';
export default class DeleteUser extends React.Component ... |
app/routes.js | xdrt81y/newedenfaces-react | import React from 'react';
import {Route} from 'react-router';
import App from './components/App';
import Home from './components/Home';
import Stats from './components/Stats';
import Character from './components/Character';
import CharacterList from './components/CharacterList';
import AddCharacter from './components/... |
app/react-icons/fa/arrows-h.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaArrowsH extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m40 20q0 0.6-0.4 1l-5.7 5.7q-0.5 0.4-1 0.4t-1-0.4-0.5-1v-2.8h-22.8v2.8q0 0.6... |
packages/material-ui-icons/src/LockOpen.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LockOpen = props =>
<SvgIcon {...props}>
<path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 ... |
docs/src/examples/collections/Table/Variations/TableExampleVerticalAlign.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleVerticalAlign = () => (
<Table striped>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Table.HeaderCell>
... |
client/src/components/signup/LoginPage.js | no-stack-dub-sack/alumni-network | import APP_HOST from '../../assets/helpers/defineHost';
import { connectScreenSize } from 'react-screen-size';
import { mapScreenSizeToProps } from '../Navbar';
import React from 'react';
import styled from 'styled-components';
class LoginPage extends React.Component {
state = {
flashMessageCleared: false
}
... |
src/routes/runners/update.js | tonimoeckel/lap-counter-react | /**
* 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/checkout/invalid-code.js | bhongy/react-components | import React from 'react';
import s from './invalid-code.css';
const InvalidCode = () => (
<div className={s.page}>
<p className={s.graphic}>(╯°□°)╯︵ ┻━┻</p>
<p className={s.caption}>The offer code you're looking for doesn't exist.</p>
</div>
);
export default InvalidCode;
|
packages/material-ui-icons/src/Clear.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /></g>
, 'Clear');
|
src/client.js | tinwaisi/take-home | /**
* 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 ReactDOM from 'react-... |
src/components/AddNew.js | tantv/testReact | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import FbConfig from '../components/FbConfig';
import UploadImage from '../components/UploadIma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.