path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/containers/searchGifContainer.js | EmmaLa/GifScrapper | import { connect } from 'react-redux';
import { push } from 'react-router-redux'
import { bindActionCreators } from 'redux';
import SearchGif from '../components/searchGif';
import { searchGif } from '../actions/giphy';
import React, { Component } from 'react';
function mapStateToProps(state){
return {
searchRes... |
src/js/components/PaaS/partial/DeveloperTools.js | ajainsyn/project | import React from 'react';
import javaIcon from '../../../../assets/images/java_icon.png';
import azureIcon from '../../../../assets/images/azure_icon.png';
import dockerIcon from '../../../../assets/images/docker.png';
import cfIcon from '../../../../assets/images/cf_icon.png';
import synbaasLogo from '../../..... |
src/icons/CreateIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class CreateIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 34.5V42h7.5l22.13-22.13-7.5-7.5L6 34.5zm35.41-20.41c.78-.78.78-2.05 0-2.83l-4.67-4.67c-.78-.78-2.05-.78-... |
common/containers/ArticleBrowser/ArticleList/ArticleList.js | kherrick/postpress | import React from 'react'
import PropTypes from 'prop-types'
import Article from '../Article'
const ArticleList = ({ items }) => <div>{items.map(article => <Article key={article.id} {...article} />)}</div>
ArticleList.propTypes = {
items: PropTypes.arrayOf(Article).isRequired
}
export default ArticleList
|
example/utils.js | Cap32/react-wormhole-hoc | /* eslint-disable react/prop-types */
import React from 'react';
import fakeData from './fakeData';
export const getLocation = () => window.location.hash.slice(1) || '/';
export const Box = ({ color = 'red', style, title, children }) =>
<div
style={{
border: `1px solid ${color}`,
padding: 20,
...style,
... |
src/svg-icons/av/videocam-off.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideocamOff = (props) => (
<SvgIcon {...props}>
<path d="M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3... |
src/components/Buttons/Checkbox.js | instacart/Snacks | import React from 'react'
import PropTypes from 'prop-types'
import RadioCheckboxBase from '../../base/RadioCheckboxBase'
import checkboxBaseSvg from '../../assets/checkboxBase.svg'
import checkboxSelectedSvg from '../../assets/checkboxSelected.svg'
import checkboxIndeterminateSvg from '../../assets/checkboxIndetermina... |
src/components/Page/Pagination/Pagination.stories.js | auth0-extensions/auth0-extension-ui | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import Pagination from './';
function renderField(field) {
return (
<Pagination
handlePageChange={action('handlePageChange')}
totalItems={field.totalItems}
perPage={field.perPage}
/>
);
}
storiesOf('Pagina... |
app/components/PlatformTouchableHighlight.js | lelandrichardson/react-native-in-depth | /* eslint react/prop-types: 0 */
import React from 'react';
import {
ColorPropType,
TouchableHighlight,
} from 'react-native';
import {
createPlatformTouchableComponent,
touchablePropTypes,
} from './platformTouchable';
const propTypes = {
...touchablePropTypes,
color: ColorPropType,
};
export default cre... |
test/test_helper.js | sfordjasiri/ReduxSimpleStarter_Blog | import jquery 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';
im... |
src/svg-icons/image/flare.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlare = (props) => (
<SvgIcon {...props}>
<path d="M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-... |
src/mobile/containers/ServerList.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import Overlay from '../../components/Overlay';
import OverlayContent from '../../components/Overlay/Content';
import OverlayHeader from '../../components/Overlay/Header';
import ServerList from '../../components/S... |
lib/ui/src/modules/ui/components/search_box.js | shilman/storybook | import PropTypes from 'prop-types';
import React from 'react';
import FuzzySearch from '@storybook/react-fuzzy';
import { features } from '../../../libs/key_events';
import { baseFonts } from './theme';
const searchBoxStyle = {
position: 'absolute',
backgroundColor: '#FFF',
top: '100px',
left: '50%',
margin... |
web/src/scripts/actions/dialogActions.js | gdowens/deco-ide | /**
* Copyright (C) 2015 Deco Software Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be... |
js/components/Column.js | matthewbdaly/react-kanban | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
export default React.createClass({
mixins: [PureRenderMixin],
render() {
return (
<div className="column">
<h2 ref="column">{this.props.column}</h2>
</div>
);
}
});
|
client/app/partials/tweet/index.js | jl-/r- | import React, { Component } from 'react';
import styles from './style.scss';
class Tweet extends Component {
render() {
const { tweet } = this.props;
return (
<div className={styles.tweet}>
<div className={styles.brands}>
</div>
<div className={styles.metas}>
<img cla... |
app/javascript/mastodon/containers/mastodon.js | theoria24/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-scroll-4';
import UI from '../features/ui';
import { fetchCust... |
src/svg-icons/content/reply.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReply = (props) => (
<SvgIcon {...props}>
<path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReply = pure(ContentReply);
ContentReply.displayName = 'ContentReply'... |
src/components/hero_stats/HeroStatsPro.js | byronsha/open_dota | import React from 'react'
import {
Table,
TableBody,
TableHeader,
TableRow
} from 'material-ui/Table'
import HeroRowPro from './HeroRowPro'
import SortButtonPro from './SortButtonPro'
const styles = {
header: {
textAlign: 'center',
fontSize: '1.5em',
margin: '50px'
},
subheader: {
color: ... |
src/svg-icons/file/cloud-circle.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79... |
client/src/Components/Facet/Facet.js | CrashsLanding/petfinder-searcher | import React from 'react';
import './Facet.css';
import _ from 'lodash';
class FacetEntry extends React.Component {
render() {
return <div className="FacetEntry">
<label>
<input type="checkbox" value={this.props.selected} onClick={this.props.onClick} />
{this.props.name}
</label>
... |
node_modules/react-bootstrap/es/DropdownButton.js | cmccandless/SolRFrontEnd | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/screens/authorized/home/chat/EditChat.js | anhtuank7c/simple-chat | import React, { Component } from 'react';
import { View, Text } from 'react-native';
class EditContact extends Component {
render() {
return (
<View style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}}>
... |
packages/enzyme-adapter-react-16.3/src/ReactSixteenThreeAdapter.js | airbnb/enzyme | /* eslint no-use-before-define: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
// eslint-disable-next-line import/no-unresolved
import ReactDOMServer from 'react-dom/server';
// eslint-disable-next-line import/no-unresolved
import ShallowRenderer from 'react-test-renderer/shallow';
// eslint-disable-... |
web/src/components/public/detail/Content.js | caicloud/cyclone | import React from 'react';
import PropTypes from 'prop-types';
const DetailContent = props => {
const { children } = props;
return <div className="detail-content">{children}</div>;
};
DetailContent.propTypes = {
children: PropTypes.node,
};
export default DetailContent;
|
src/components/Sidebar/Menu/Menu.js | saegeullee/saegeullee.github.io | // @flow strict
import React from 'react';
import { Link } from 'gatsby';
import styles from './Menu.module.scss';
type Props = {
menu: {
label: string,
path: string
}[]
};
const Menu = ({ menu }: Props) => (
<nav className={styles['menu']}>
<ul className={styles['menu__list']}>
{menu.map((ite... |
public/js/src/component/icons/Cloud.js | Lucifier129/isomorphism-react-file-system | import React from 'react'
import Icon from './Icon'
export default class Cloud extends React.Component {
render() {
return <Icon {...this.props} type="icon-cloud" name="Cloud" />
}
} |
gh-page/src/Components/Contacts.js | metodiobetsanov/metodiobetsanov.github.io | import React from 'react';
import { Divider } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import Card from '@material-ui/core/Card';
import CardHeader from '@material-ui/core/CardHeader';
import CardContent from '@material-ui/core/CardCont... |
src/components/forms/LoginForm/LoginForm.js | devgeniem/silverbullet-kitchensink | import React from 'react';
import { connect } from 'react-redux';
import { translate } from 'react-i18next';
import { withRouter } from 'react-router';
import { FormControl, FormGroup, Button, Form, Row, Col, Alert } from 'react-bootstrap';
import { UserActions } from '../../../actions';
@connect()
@withRouter
@transl... |
src/SelectAllHeader.js | sematext/sematable | import PropTypes from 'prop-types';
import React, { Component } from 'react';
const propTypes = {
onSelectAllChange: PropTypes.func.isRequired,
selectAll: PropTypes.bool.isRequired,
selectedRows: PropTypes.array.isRequired,
CheckboxComponent: PropTypes.func,
};
class SelectAllHeader extends Component {
rend... |
example/RNApp/app/components/GenericTextInput/InputWrapper.js | DesignmanIO/react-native-meteor-redux | import React from 'react';
import { View } from 'react-native';
import styles from './styles';
const InputWrapper = (props) => {
return (
<View style={styles.inputWrapper}>
{props.children}
</View>
);
};
InputWrapper.propTypes = {
children: React.PropTypes.array,
};
export default InputWrapper;
|
services/ui/src/pages/stories/_error.stories.js | amazeeio/lagoon | import React from 'react';
import Error from '../_error';
export default {
component: Error,
title: 'Pages/Error',
}
export const Error404 = () => (
<Error
statusCode={404}
/>
);
Error404.story = {
name: '404 Error',
};
export const KnownError = () => (
<Error
statusCode={500}
errorMessage={`... |
docs/src/PageHeader.js | chilts/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... |
dapp/src/routes/dao/containers/action.js | airalab/DAO-IPCI | import React from 'react'
import { connect } from 'react-redux'
import _ from 'lodash'
import * as Modules from '../../../shared/dao'
const Container = (props) => {
const { address, module, action, query, param } = props
const Module = Modules[module + 'Action']
return (<Module address={address} action={action} ... |
packages/ringcentral-widgets/components/Modal/index.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './styles.scss';
import i18n from './i18n';
function FlatButton({
className,
disabled,
onClick,
children,
}) {
return (
<div
classN... |
react/exercises/part_05/src/components/NavBar.js | jsperts/workshop_unterlagen | import React from 'react';
import PropTypes from 'prop-types';
import Button from './Button';
function NavBar({ onAddContact }) {
return (
<nav className="navbar navbar-default">
<div className="collapse navbar-collapse">
<ul className="nav navbar-nav navbar-form btn-group">
<li classNam... |
src/svg/Icon.js | timarney/react-faq | import React from 'react'
const ReactIcon = () => {
return (
<svg id="icon" xmlns="http://www.w3.org/2000/svg" width="34.964" height="31.136" viewBox="12.521 14.346 34.964 31.136"><g fill="#61DAFB"><path d="M47.485 29.918c0-2.316-2.9-4.51-7.348-5.872 1.026-4.533.57-8.14-1.44-9.293-.463-.27-1.004-.4-1.596-.4v1.59c... |
app/components/FooterComponent.js | tjinauyeung/customization-requests-app | import React from 'react';
import _ from 'lodash';
class Footer extends React.Component {
render() {
return (
<footer className={this.props.scrollDirection === 'bottom' ? 'is-hidden' : ''}>
{
_.isEmpty(this.props.activeRequest)
? 'Search for customization or type `all` to get list of... |
src/icons/SocialDesignernewsOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialDesignernewsOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="290.9,145.9 226.5,96 291.1,198.8 "></polygon>
<g>
<path d="M32.5,260"></path>
<path ... |
src/controller/front.js | sepal/ReactiveBoilerplate | import React from 'react';
import Hello from '../components/Hello';
module.exports = function(req, res) {
var state = {
who: "World"
};
var element = <Hello who={state.who} />;
var markup = React.renderToString(element);
res.render('home', {
markup: markup,
state: JSON.stringify(state)
});
};... |
app/Home/Life/LifeResults.js | idperez/mytopia | import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import todoSearchResults from './../../../lib/todoSearchResults';
import LifeCard from './LifeCard';
let results = "";
class LifeResults extends Component {
constructor(props) {
super(props);
this.st... |
components/QuickBenchButton.js | FredTingaud/quick-bench-front-end | import React from 'react';
import InteropHelper from 'components/InteropHelper';
import { Button, Tooltip, OverlayTrigger } from 'react-bootstrap';
import svg from 'components/resources/ico/qb.svg';
class QuickBenchButton extends React.Component {
openCodeInQB(text, options) {
let clientstate = { text: te... |
src/svg-icons/image/colorize.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageColorize = (props) => (
<SvgIcon {...props}>
<path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3... |
client/components/annotator/highlighter.js | exacs/liqen-face | /* global document */
import React from 'react'
import PropTypes from 'prop-types'
import zip from 'lodash/zipWith'
import split from './lib/split'
/**
* Highlight a text and handles the highlighting action
*
* Inputs
* - fragment to select (prefix, suffix, exact)
*
* Outputs
* - onHighlight(fragment, position)... |
src/components/TopicEntry/index.js | Perspicere/PerspicereMagazine | import React from 'react'
import imgSrc from '../../docs/卷首语/1.jpg'
import styles from './styles'
function TopicEntry() {
return (
<div style={styles.container}>
<img src={imgSrc} style={styles.image} />
</div>
)
}
export default TopicEntry
|
src/scripts/components/App.js | fantasywind/React-Todo | import React from 'react';
import {Locations, Location, NotFound} from 'react-router-component';
// Components
import SiteHeader from './SiteHeader.js';
// Views
import WelcomePage from './WelcomePage.js';
const App = React.createClass({
render() {
return (
<div id='site'>
<SiteHeader />
... |
frontend/app_v2/src/components/WidgetStats/WidgetStatsContainer.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import WidgetStatsPresentation from 'components/WidgetStats/WidgetStatsPresentation'
import WidgetStatsData from 'components/WidgetStats/WidgetStatsData'
function WidgetStatsContainer() {
const { data } = WidgetStatsData()
return <WidgetStatsPresentation data={data} />
}
export default ... |
src/decorators/router.js | HackathonTaiwan/Website | import React from 'react';
export default function(target) {
var Component = target;
if (target.isInitializer)
Component = target.component;
if (!Component.contextTypes)
Component.contextTypes = {};
Component.contextTypes.history = React.PropTypes.object;
Component.prototype.__defineGetter__('history', fu... |
src/svg-icons/hardware/watch.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareWatch = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2.... |
app/react-icons/fa/microphone.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaMicrophone extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m32.7 15.7v2.9q0 4.9-3.3 8.6t-8.1 4.1v3h5.7q0.6 0 1 0.4t0.4 1-0.4 1-1 0.4... |
app/javascript/mastodon/features/standalone/compose/index.js | theoria24/mastodon | import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
import ModalContainer from '../../ui/containers/mo... |
src/pages/App.js | azedo/freelancer-calculator | // pages/App.js
// main imports
import React, { Component } from 'react';
import DocumentTitle from 'react-document-title';
// components import
import Menu from '../components/Menu';
// data import
import data from '../assets/data';
// create an object for default data
const defaultState = {
user: data,
income: ... |
src/Main.js | severnsc/brewing-app | import React from 'react'
import { Switch, Route } from 'react-router-dom'
import './App.css'
import TimerSceneContainer from './containers/TimerSceneContainer'
import InventoryScene from './Scenes/InventoryScene'
import MaltInventoryScene from './Scenes/MaltInventoryScene'
import HopsInventoryScene from './Scenes/Hops... |
test/integration/basic/pages/nav/querystring.js | arunoda/next.js | import React from 'react'
import Link from 'next/link'
export default class AsyncProps extends React.Component {
static async getInitialProps ({ query: { id = 0 } }) {
return { id }
}
render () {
return (
<div className='nav-querystring'>
<Link href={`/nav/querystring?id=${parseInt(this.pr... |
node_modules/react-dnd/examples/_nesting-sources/Container.js | asm-products/notello | 'use strict';
import React from 'react';
import makeSource from './makeSource';
import Colors from './Colors';
import Target from './Target';
const Container = React.createClass({
render() {
const YellowSource = makeSource(Colors.YELLOW);
const BlueSource = makeSource(Colors.BLUE);
return (
<div ... |
public/js/components/admin/users/friends.react.js | rajikaimal/Coupley | /**
* Created by Isuru 1 on 26/01/2016.
*/
import SearchItem from './friends/friend.react';
import SearchStore from '../../../stores/admin/SearchStore';
import UserActions from '../../../actions/admin/UsersActions';
import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import FileFolder from 'mate... |
client/src/containers/ForgotPassword.js | DemocracyGuardians/DGTeam |
import React from 'react';
import { connect } from "react-redux";
import { LocalForm, Control } from 'react-redux-form'
import { Link, withRouter } from 'react-router-dom'
import PropTypes from 'prop-types'
import { Button, Container, Input, Message } from 'semantic-ui-react'
import { resetPasswordEmailSent } from '..... |
packages/fyndiq-icons/src/atm.js | fyndiq/fyndiq-ui | import React from 'react'
import SvgWrapper from './svg-wrapper'
const Atm = ({ className, color }) => (
<SvgWrapper className={className} viewBox="0 0 22 20">
<path
stroke={color}
fill="none"
d="M3.6 3.5h14.6m-4.8 7.9a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zm-7 4.1v2.1h2.2m6.8-2.1v2.1h-2.2m-8.7 1.... |
src/data.js | waxmansgym/ratio-calculator | /* Waxman's Gym Ratio Calculator Copyright (C) 2017 Waxman's Gym
This program 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 later version.
This program ... |
src/svg-icons/action/check-circle.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCheckCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</SvgIcon>
);
ActionChec... |
src/App.js | patitonar/personal-website | import React, { Component } from 'react';
import Presentation from './components/Presentation';
import AboutMe from './components/AboutMe';
class App extends Component {
render() {
return (
<div>
<Presentation />
<AboutMe />
</div>
);
}
}
export default App;
|
app/components/Container/Container.js | celikmus/MathWise | import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import styles from './styles';
const Container = ({ children, backgroundColor }) => {
const containerStyles = [styles.container];
if (backgroundColor) {
containerStyles.push({ backgroundColor });
}
return (
... |
public/components/Login.js | rolandfung/project-ipsum | import React from 'react';
import actions from '../actions/ipsumActions.js';
import { connect } from 'react-redux';
import maps from '../mappingFunctions.js';
import NavigationBarLogin from './NavigationBarLogin.js';
import { Grid, Panel, Col, Row, Jumbotron } from 'react-bootstrap';
import { LinkContainer } from 'reac... |
packages/cf-component-pagination/example/basic/component.js | jroyal/cf-ui | import React from 'react';
import { Pagination, PaginationItem } from 'cf-component-pagination';
import { Icon } from 'cf-component-icon';
class PaginationComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
pages: 4,
active: 1
};
}
handleClickItem(page) ... |
src/views/containers/login/index.js | dilansri/smart-note-taker | import React from 'react'
import Login from '../../components/login'
import { connect } from 'react-redux'
import { startLogin } from '../../../core/actions'
const mapDispatchToProps = function(dispatch){
return {
providerLogin : (provider) => {
dispatch(startLogin(provider))
}
}
}
... |
node_modules/react-bootstrap/es/ModalFooter.js | xuan6/admin_dashboard_local_dev | 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/components/Home.js | gabrielzzarate/portfolio-2017 | import React, { Component } from 'react';
import CardContainer from './CardContainer';
import { CSSTransitionGroup } from 'react-transition-group';
class Home extends Component {
render() {
return (
<div className="home view">
<section className="standard-section-padding home-section">
<div className="c... |
app/containers/HomePage.js | irc-moo/electron-client | import React, { Component } from 'react';
export default class HomePage extends Component {
render() {
return (
<div></div>
);
}
}
|
docs/src/app/components/pages/components/SelectField/ExampleError.js | nathanmarks/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const items = [
<MenuItem key={1} value={1} primaryText="Never" />,
<MenuItem key={2} value={2} primaryText="Every Night" />,
<MenuItem key={3} value={3} primaryText="Weeknights" />,
<Menu... |
app/src/components/signUp/form.js | tom-s/3d-ears | import React from 'react'
import {reduxForm} from 'redux-form'
import {validate} from './validate'
import FormError from '../common/FormError'
let SignUpForm = (props) => {
const { fields: { email, password, passwordConfirmation }, handleSubmit, invalid } = props
return (
<form className="Form" onSubmit={hand... |
tictactoe/src/components/AuthButton.js | gethub102/full_stack_web_app | import React from 'react'
import RaisedButton from 'material-ui/RaisedButton'
const AuthButton = (props) => {
if (props.authenticated) {
return (
<RaisedButton
label='Logout'
onTouchTap={props.auth.logout}
fullWidth={true}
secondary
/>
)
} else {
return (
<RaisedButton
label={'Logi... |
packages/showcase/plot/line-series-canvas-nearest-xy-example.js | uber/react-vis | // Copyright (c) 2016-2018 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, ... |
app/components/IconSystem/Icons/Tank.js | cdiezmoran/AlphaStage-2.0 | import React from 'react';
import propTypes from '../iconPropTypes';
const Tank = ({ fill, styles }) => (
<svg
version="1.1"
id="Capa_1"
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
viewBox="0 0 466.63 466.63"
style={{ ...styles, enableBackground: 'new 0 0 466.63 466.63' }}
>
... |
src/containers/Root.js | todvora/extrade | import React from 'react'
import { Provider } from 'react-redux'
import { Router } from 'react-router'
export default class Root extends React.Component {
static propTypes = {
history: React.PropTypes.object.isRequired,
routes: React.PropTypes.element.isRequired,
store: React.PropTypes.object.isRequired
... |
client/reactComponents/WikiPage.js | iandeboisblanc/wikiMuseumVR | import React from 'react';
import MuseumScene from './MuseumScene'
const $ = require('jquery');
require('./../styles.css');
class WikiPage extends React.Component {
constructor(props) {
super(props);
let page = parsePage(window.location);
//could set vrMode state based on url
this.state = {
pag... |
assets/jqwidgets/demos/react/app/dropdownlist/defaultfunctionality/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
class App extends React.Component {
render() {
let source = [
'Affogato',
'Americano',
'Bicerin',
'Breve',
... |
src/parser/paladin/retribution/modules/features/Checklist/Component.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist';
import Rule from 'parser/shared/modules/features/Checklist/Rule';
import Requirement from 'parser/shared/modules... |
examples/react-router/src/components/Home.js | ericf/react-intl | import React from 'react';
import { FormattedDate } from 'react-intl';
const Home = () => (
<div>
<h2>Home</h2>
<p>
Today is {' '}
<FormattedDate value={Date.now()} />
</p>
</div>
);
export default Home;
|
src/main.js | CarlTheLandlord/spotify-checker | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
src/svg-icons/places/free-breakfast.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesFreeBreakfast = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/>
</SvgIcon>
);
PlacesFre... |
lib/encoding/XSS_Url.js | waynecraig/encoding-present | require('./sass/fullpage.sass');
require('./sass/code.sass');
import React, { Component } from 'react';
import CodeBlock from '../components/CodeBlock';
import ArtTemplate from 'art-template/dist/template';
export default class Slide extends Component {
constructor() {
super();
this.state = {};
this.state.... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsNotDefined.js | gabelevi/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
defaultProps: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
defaultProps: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
... |
src/client/assets/javascripts/app/DevTools.js | liesislukas/geekystats.com_ui | import React from 'react';
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
import SliderMonitor from 'redux-slider-monitor';
// createDevTools t... |
src/js/components/Basket.js | marcelaraujo/ECMAScript6_architecture | 'use strict';
import React from 'react';
import {cursors, shoppingCart} from '../services/ShoppingCart.js';
/**
* Basket Component
* @extends {React.Component}
*/
export default class BasketComponent extends React.Component {
/**
* @desc sets initial state from shoppingCart items
*/
constructor () {
... |
actor-apps/app-web/src/app/components/Main.react.js | boyley/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import VisibilityActionCreators from '../actions/VisibilityActionCreators';
import FaviconActionCreators from 'actions/FaviconActionCreators';
import FaviconStore from 'stores/FaviconStore';
import ActivitySection from 'components/ActivitySecti... |
docs/src/app/components/pages/components/Tabs/ExampleIconText.js | ArcanisCz/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import FontIcon from 'material-ui/FontIcon';
import MapsPersonPin from 'material-ui/svg-icons/maps/person-pin';
const TabsExampleIconText = () => (
<Tabs>
<Tab
icon={<FontIcon className="material-icons">phone</FontIcon>}
label="RE... |
src/components/Main.js | limited626/Study-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
//获取图片数据
var imageDatas=require('../data/imagesData.json')
//将图片信息转换为路径
function genImageURL(imgArr){
for(var i=0,j=imgArr.length;i<j;i++){
var single=imgArr[i];
single.imageURL... |
src/svg-icons/editor/format-bold.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatBold = (props) => (
<SvgIcon {...props}>
<path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1... |
src/svg-icons/hardware/watch.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareWatch = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2.... |
lib/common/components/InfoModal.js | conveyal/datatools-manager | // @flow
import React from 'react'
import { Modal, Button } from 'react-bootstrap'
type Props = {
body?: string,
title?: string
}
type State = {
body: string,
showModal: boolean,
title: string
}
export default class InfoModal extends React.Component<Props, State> {
state = {
body: '',
showModal:... |
devmgmtui/src/components/VerifyAuthentication.js | projectOpenRAP/OpenRAP | import React, { Component } from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authentication extends Component {
componentWillMount() {
if (!this.props.verify.authenticated) {
this.props.history.push('/');
} else ... |
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js | rscnt/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* A basic vertical non-linear implementation
*/
class VerticalNonLinear extends React.Component {... |
entry_types/scrolled/package/src/frontend/PlayerControls/ClassicPlayerControls/index.js | codevise/pageflow | import React from 'react';
import classNames from 'classnames';
import {PlayPauseButton} from '../PlayPauseButton'
import {BigPlayPauseButton} from './BigPlayPauseButton'
import {ProgressIndicators} from './ProgressIndicators'
import {TimeDisplay} from '../TimeDisplay'
import {QualityMenu} from './QualityMenu';
import... |
docs/src/app/components/pages/components/Paper/ExampleCircle.js | IsenrichO/mui-with-arrows | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleCircle = () => (
<div>
<Paper style={style} zDepth={1} circle={true} />
<Paper style={style} zDepth={2} circle={... |
STAR.Originations.MegaRunbook.Website/app/components/common/SortHeader.js | DaveStoneDotNet/React.MegaRunbookCreator | import React from 'react'
import './SortHeader.css'
class SortHeader extends React.Component {
constructor(props, context) {
super(props, context)
this.state = {
sortIndicator: 'sort-indicator-hidden',
icon: 'fa fa-sort-asc'
... |
src/svg-icons/action/assignment-late.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentLate = (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-6 15h-2v-2h2v2zm0... |
src/icons/SocialLinkedinOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialLinkedinOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<style type="text/css">
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<g>
<g>
<path class="st0" d="M182.... |
src/components/Select/index.js | indec-it/react-native-form-builder | import React from 'react';
import PropTypes from 'prop-types';
import {Picker, View} from 'react-native';
import {mergeStyles, stylePropType} from '@indec/react-native-commons/util';
import {map} from 'lodash';
import {TextWithBadge} from '..';
import {handleChange} from '../../util';
import {types} from '../../enums'... |
Agenda/src/components/configuracoes.js | interlegis/agenda-evento | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { reduxForm } from 'redux-form';
import { Link } from 'react-router';
import _ from 'lodash';
import { getUsuario, updateUsuario, signinUser } from '../actions';
import { FIELD_USUARIO_CADASTRO } from './forms/fields_types';
class Con... |
src/svg-icons/image/palette.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePalette = (props) => (
<SvgIcon {...props}>
<path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.4... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.