path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/vehicle-finder-spa/src/containers/navbar.js | Del7a/vehicle-finder | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { logout } from '../actions/user';
import NavbarComponent from '../components/navbar';
import { bindActionCreators } from 'redux';
import { Redirect } from 'react-router'
class Navbar extends Component {
render(){
co... |
src/master.js | m2wasabi/team_vote_milkcocoa | /**
* Created by m2wasabi on 2016/07/19.
*/
import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
// components
import masterApp from './reduces/masterApp';
import App from './components/master/App';
let store = ... |
node_modules/recompose/es/Recompose.js | firdiansyah/crud-req | import React, { Component } from 'react';
import shallowEqual from 'fbjs/lib/shallowEqual';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { createChangeEmitter } from 'change-emitter';
import $$observable from 'symbol-observable';
var getDisplayName = function getDisplayName(Component$$1) {
if (... |
client/modules/User/pages/UserSignUpPage.js | XuHaoJun/tiamat | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { compose } from 'recompose';
import { hot } from 'react-hot-loader';
import Paper from '@material-ui/core/Paper';
import SignUpForm from '../components/SignUp... |
src/components/ResultLoggerView.js | IUnknown68/karma-live-reporter | //==============================================================================
import React, { Component } from 'react';
import attachListener from 'attachListener';
import autoScroll from 'autoScroll';
import { SPEC_COMPLETED, BROWSER_START } from 'messages';
//======================================================... |
examples/js/column-filter/select-filter.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const qualityType = {
0: 'good',
1: 'Bad',
2: 'unknown'
};
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) ... |
apps/marketplace/components/Brief/Edit/AddSellerListItems.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
const AddSellerListItems = props => {
const { onSellerClick, sellers } = props
return sellers.map(seller => (
<li key={seller.code}>
<a
href={`#${seller.code}`}
onClick={e => {
e.preventDefault()
onSellerCli... |
fields/types/azurefile/AzureFileColumn.js | ligson/keystone | import React from 'react';
var AzureFileColumn = React.createClass({
renderValue () {
var value = this.props.data.fields[this.props.col.path];
if (!value) return;
return <a href={value.url} target='_blank'>{value.url}</a>;
},
render () {
return (
<td className="ItemList__col">
<div className="ItemLis... |
src/svg-icons/maps/directions-walk.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsWalk = (props) => (
<SvgIcon {...props}>
<path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-... |
example/src/components/SpacedSpan.js | ethanselzer/react-image-magnify | import React from 'react';
export default function SpacedSpan({ className, children }) {
return (
<span className={className}>
{' '}{children}{' '}
</span>
);
}
|
admin/client/App/screens/Home/index.js | brianjd/keystone | /**
* The Home view is the view one sees at /keystone. It shows a list of all lists,
* grouped by their section.
*/
import React from 'react';
import { Container, Spinner } from '../../elemental';
import { connect } from 'react-redux';
import Lists from './components/Lists';
import Section from './components/Secti... |
index.android.js | Hey2Li/RNGD | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import Main from './app/main/GDMain'
export default class RNGD extends Component {
render() {
return (
... |
components/index_section_02.js | MonkingStand/MS-blog-site-v3.0 | import React from 'react';
class IndexSection02 extends React.Component {
render() {
const css_tag_p = {
marginBottom: 20,
fontWeight : 300,
textAlign : 'center'
};
return (
<section id="main_content">
... |
docs/src/app/components/pages/components/FlatButton/ExampleComplex.js | pomerantsev/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import ActionAndroid from 'material-ui/svg-icons/action/android';
const styles = {
exampleImageInput: {
cursor: 'pointer',
position: 'absolute',
top: 0,
bottom: 0,
right: 0,
... |
src/js/tabscontrolled/index.js | HBM/md-components |
import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
class TabsControlled extends React.PureComponent {
static propTypes = {
tabs: PropTypes.array
}
static defaultProps = {
tabs: [
'germany',
'spain',
'sweden'
]
}
state = {
dire... |
src/js/components/icons/base/PlatformUnixware.js | linde12/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... |
lib/editor/components/editors/LogicalVariableForm.js | jirokun/survey-designer-js | /* eslint-env browser */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Panel, Button, Glyphicon, Form, Col, FormControl } from 'react-bootstrap';
import classNames from 'classnames';
import { List } from 'immutable';
import * as EditorActions from '../../actions';
class Logi... |
src/components/GuestsTable/GuestsTable.js | joyvuu-dave/comeals-ui-react | // rendered by Guests
import React from 'react'
import classes from './GuestsTable.scss'
// Schema
import type { GuestsSchema } from '../../redux/modules/Guests'
import type { ResidentsSchema } from '../../redux/modules/Residents'
type Props = {
ui: {
veg_checkbox_disabled: boolean,
remove_button_disabled: ... |
app/components/ShopPage/ShopPage.js | tenhaus/bbwelding | import React from 'react';
import Radium from 'radium';
import _ from 'lodash';
import RetinaImage from 'react-retina-image';
import isRetina from 'is-retina';
import Style from './_ShopPage.style.js';
import Page from '../Page/Page';
import ContentfulEntryStore from '../../stores/ContentfulEntryStore';
import ShopL... |
imports/ui/pages/ResetPassword/ResetPassword.js | lazygalaxy/lazybat-seed-meteorjs | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, Alert, FormGroup, ControlLabel, Button } from 'react-bootstrap';
import { Accounts } from 'meteor/accounts-base';
import { Bert } from 'meteor/themeteorchef:bert';
import validate from '../../../modules/validate';
class ResetPassword ext... |
app/src/GenericTable.js | CovertIII/hledger-node-server | import React from 'react';
import R from 'ramda';
const defaultArray = [];
const thStyle = {
'textAlign': 'left',
'verticalAlign': 'bottom',
'padding': '8px 8px 8px 0px',
'borderBottomStyle': 'solid',
'borderBottomWidth': '2px',
'borderColor': 'inherit'
};
const Header = ({header = defaultArray}) => (
... |
app/components/navigation/personality/PersonalityLinks.js | VasilyShelkov/Vasily | import React, { Component } from 'react';
import Letter from './Letter';
class PersonalityLinks extends Component {
render() {
var openCB='{';
var closedCB = '}';
var personalities = ['Developer,','Explorer, ','Early-Adopter, ','Anime-Lover'].map((personality, index) => {
var personalityLetters = personal... |
app/javascript/mastodon/features/ui/components/tabs_bar.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { debounce } from 'lodash';
import { isUserTouching } from '../../../is_mobile';
import Icon from 'mastodon/components/icon';
import No... |
service/client/src/index.js | lwoites/unq-cloudsystems | import Application from './Application';
import './index.css';
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<Application></Application>,
document.getElementById('root')
);
|
packages/material-ui-icons/src/VideogameAsset.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let VideogameAsset = props =>
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.... |
docs/app/Examples/modules/Search/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import Types from './Types'
import Variations from './Variations'
const SearchExamples = () => (
<div>
<Types />
<Variations />
</div>
)
export default SearchExamples
|
app/components/Link/index.js | minhnhat09/scalable-react | /**
*
* Link
*
*/
import React from 'react';
import styles from './styles.css';
function Link({link}) {
return (
<div className={styles.link}>
<div className={styles.votingContainer}>
<div className={styles.votingCount}>
{link.voteCount}
</div>
</div>
<div className... |
components/Input/stories.js | insane-ux/rebulma | // @flow
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import Label from 'components/Label'
import Input from './'
storiesOf('Input', module).add('all', () => (
<div className="box">
<Label>default</Label>
<Input />
<Label>small</Label>
<Input theme={{ input: 'is-small' }} ... |
tools/template/index/container/index.js | SteamerTeam/steamer-react | import React, { Component } from 'react';
import Connect from '../connect/connect';
import {
} from 'page/common/constants/cgiPath';
import {
} from '../constants/constants';
import './index.less';
class Wrapper extends Component {
constructor(props, context) {
super(props, context);
this.state = {};
}
c... |
tp-react/src/App.js | detienne11/imie | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import Test from './Test';
class App extends Component {
constructor(props){
super(props);
console.log("App : constructor");
console.log("App: props", props);
}
componentWillMount(){
console.log("App : componen... |
public/js/cat_source/es6/components/icons/Icon3Dots.js | matecat/MateCat | import React from 'react'
const Icon3Dots = () => {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="5 5 32 32">
<g fill="#fff" fillRule="evenodd" transform="translate(9 9)">
<circle cx="12.5" cy="2.5" r="2.5" />
<circle cx="12.5" cy="21.5" r="2.5" />
<circle cx="12.5" cy="... |
templates/rubix/rubix-bootstrap/src/Button.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import classNames from 'classnames';
import RButton from 'react-bootstrap/lib/Button';
var expectedTypes = ["success", "warning", "danger", "info", "default", "primary", "link"];
function isBtnOfType(type) {
for (var i = 0; i < expectedTypes.length; i++) {
if (expectedTypes[i] === ty... |
src/routes/UIElement/search/index.js | cuijiaxu/react-front | import React from 'react'
import { Search } from '../../../components'
import { Table, Row, Col, Card } from 'antd'
const SearchPage = () => <div className="content-inner">
<Row gutter={32}>
<Col lg={8} md={12}>
<Card title="默认">
<Search />
</Card>
</Col>
<Col lg={8} md={12}>
<C... |
app/react-icons/fa/maxcdn.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaMaxcdn extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m39.5 17.3l-3.7 17h-7.5l4-18.6q0.3-1.2-0.3-1.9-0.6-0.8-1.9-0.8h-3.8l-4.5 21.3... |
app/javascript/mastodon/components/intersection_observer_article.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import scheduleIdleTask from '../features/ui/util/schedule_idle_task';
import getRectFromEntry from '../features/ui/util/get_rect_from_entry';
// Diff these props in the "unrendered" state
const updateOnPropsForUnrendered = ['id', 'index', 'listLength', 'c... |
src/layouts/index.js | matchilling/com-matchilling | import React from 'react'
import { Container } from 'react-responsive-grid'
import Fullscreen from './../components/fullscreen/'
import { rhythm, scale } from './../utils/typography'
// Import typefaces
import 'typeface-montserrat'
import 'typeface-merriweather'
import './prism.css'
import './util.css'
export defau... |
src/components/SideBarNavigation.js | tofuness/Toshocat | import React from 'react';
import { Link } from 'react-router';
const SideBarNavigation = () => {
return (
<div className="sidebar-navigation">
<div className="sidebar-navigation-label">
Main
</div>
<div className="sidebar-navigation-link">
<Link to="/animelist" activeClassName=... |
src/js/components/plan/PlanFilesTab.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* 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... |
src/components/FAQ/List/List-story.js | Tarabyte/foodlr-web | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import List from './List'
const questions = [
{
question: 'sdfsdf',
answer: '<p>sdfsddsffd</p>',
id: '54dbb245f08e85d01b3ef0ec'
},
{
question: 'fds',
answer: '<p>sdfsdfsdffsfdsd</p>',
id: '54dbaf16f08e85d01b3ef0eb'
... |
src/js/components/Dashboard.js | varmais/spteefu | import React from 'react';
import Header from './Header';
import Sidebar from './Sidebar';
import AlbumList from './AlbumList';
import ArtistStore from '../stores/ArtistStore';
import ArtistService from '../services/ArtistService';
import AlbumStore from '../stores/AlbumStore';
import AlbumService from '../services/Alb... |
app/containers/HomePage/index.js | rhenderson07/react-lightning-talk | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
src/index.js | azimitina/post-list-redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import promise from 'redux-promise'
import reducers from './reducers'
import PostsIndex from './com... |
src/components/base/NotFoundPage.js | GHImplementationTeam/FrontEnd | import React from 'react';
const NotFoundPage = () => (
<div>
<div>
404 Page Not Found
</div>
</div>
);
export default NotFoundPage;
|
docs/app/Examples/elements/Label/Types/LabelExampleImageColored.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Label } from 'semantic-ui-react'
const LabelExampleImage = () => (
<div>
<Label as='a' color='blue' image>
<img src='http://semantic-ui.com/images/avatar/small/veronika.jpg' />
Veronika
<Label.Detail>Friend</Label.Detail>
</Label>
<Label as='a' col... |
blueocean-material-icons/src/js/components/svg-icons/image/rotate-right.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageRotateRight = (props) => (
<SvgIcon {...props}>
<path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 ... |
app/components/FacetList/index.js | interra/data-generate | import React from 'react';
import PropTypes from 'prop-types';
import List from 'components/List';
import ListItem from 'components/ListItem';
import LoadingIndicator from 'components/LoadingIndicator';
import SearchListItem from 'containers/SearchListItem';
import H3 from './H3';
import LI from './LI';
import StyledA... |
src/client/spinner.js | alihalabyah/hacker-menu | import React from 'react'
export default class Spinner extends React.Component {
render () {
return (
<div className='spinner'>
Loading...
</div>
)
}
}
|
src/BootstrapMixin.js | tannewt/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
src/svg-icons/editor/border-style.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderStyle = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/>
</SvgIcon>
);
E... |
src/Pages/LandingPage.js | ashwinath/personal-website-2.0 | import React from 'react';
const LandingPage = () => (
<div id="landing"
className="col-md-9 main-section center-vertical-parent">
<div id="landing-content" className="center-vertical">
<h1>I bring ideas to life with code.</h1>
</div>
</div>
);
export default LandingPage;
|
frontend/blueprints/dumb/files/__root__/components/__name__/__name__.js | qurben/mopidy-jukebox | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
src/index.js | lucaslago/baratinho-frontend | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import createLogger from 'redux-logger'
import thunkMiddleware from 'redux-thunk'
import App from './components/App'
import Home from './scene... |
consoles/my-joy-instances/src/containers/navigation/breadcrumb.js | yldio/joyent-portal | import React from 'react';
import paramCase from 'param-case';
import get from 'lodash.get';
import { Link } from 'react-router-dom';
import { Margin } from 'styled-components-spacing';
import { Breadcrumb, BreadcrumbItem } from 'joyent-ui-toolkit';
export default ({ match }) => {
const instance = get(match, 'param... |
node_modules/react-router/es6/Link.js | rekyyang/ArtificalLiverCloud | 'use strict';
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) {... |
yycomponent/locale-provider/LocaleProvider.js | 77ircloud/yycomponent | import React from 'react';
import { LocaleProvider as _LocaleProvider } from 'antd';
class LocaleProvider extends React.Component{
constructor(props){
super(props);
}
render(){
return (<_LocaleProvider {...this.props}/>);
}
}
export default LocaleProvider
|
src/routes/Login.js | Anteoy/lionreact | import React from 'react';
import { connect } from 'dva';
import styles from './Login.css';
// import PnoteIndex from '../components/login/Login';
function Login() {
return (
<div className={styles.normal}>
{/* extra={<PnoteIndex />}*/}
test
</div>
);
}
function mapStateToProps() {
return {}... |
src/svg-icons/communication/screen-share.js | owencm/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/NotFoundPage.js | Dynatos/personal-website | import React from 'react';
//import { Link } from 'react-router';
import { Link } from "react-router-dom";
import NavBar from './NavBar/NavBar';
const NotFoundPage = () => {
return (
<div>
<NavBar/>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>... |
app/javascript/mastodon/components/loading_indicator.js | salvadorpla/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
src/components/views/delegateProfile/components/Sidebar.js | LiskHunt/LiskHunt | import React from 'react';
import Description from './Description';
import BannerWrap from './BannerWrap';
import HeaderCard from './HeaderCard';
const Sidebar = () => {
return (
<div id="sidebar" className="column is-one-quarter">
<BannerWrap />
<HeaderCard />
<Description />
</div>
);
... |
modules/client.js | Scarysize/browserify-code-split | import React from 'react';
import { match, Router } from 'react-router';
import { render } from 'react-dom';
import { createHistory } from 'history';
import routes from './routes/RootRoute';
const { pathname, search, hash } = window.location;
const location = `${pathname}${search}${hash}`;
// calling `match` is simpl... |
src/utils/CustomPropTypes.js | IveWong/react-bootstrap | import React from 'react';
const ANONYMOUS = '<<anonymous>>';
const CustomPropTypes = {
isRequiredForA11y(propType){
return function(props, propName, componentName){
if (props[propName] === null) {
return new Error(
'The prop `' + propName + '` is required to make ' + componentName + ' ... |
blueocean-material-icons/src/js/components/svg-icons/av/games.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvGames = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
AvGames.displayName = 'AvGames';
AvGames.muiName = 'SvgIcon';
export... |
plugins/Files/js/components/downloadlist.js | NebulousLabs/Sia-UI | import PropTypes from 'prop-types'
import React from 'react'
import TransferList from './transferlist.js'
import { List } from 'immutable'
const DownloadList = ({ downloads, onDownloadClick, onClearClick }) => (
<div className='downloads'>
<h3> Downloads </h3>
<TransferList transfers={downloads} onTransferCl... |
src/svg-icons/av/snooze.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSnooze = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9... |
examples/real-world/containers/DevTools.js | tappleby/redux | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w">
<LogMonitor />
... |
src/lib/components/D3/ScatterPlotUI.js | as-me/Adapter | import "d3chart";
import React from 'react';
class D3ScatterPlot extends React.Component {
constructor(props) {
super(props);
this.sessionData = props.sessionData;
this.hook = props.hook;
this.state = this.sessionData.getSessionStateValue();
this.initialize = this.initialize... |
client/components/CodeEditor/index.js | Elektro1776/Project_3 | import React, { Component } from 'react';
import LanguageDropdown from './Language_Dropdown';
import EditorField from './Code_Editor';
class CodeEditorParent extends Component {
state = {
currentLanguage: 'javascript'
};
whatIsOurState(propVal) {
this.setState({ currentLanguage: propVal });
}
render() {
... |
app/routes/notFound/index.js | wojciech-panek/study-group-6-redux | import React from 'react';
import { IndexRoute } from 'react-router';
import { NotFound } from './notFound.component';
export default (
<IndexRoute component={NotFound} />
);
|
src/components/examples/constructorFunc.js | Jguardado/ComponentBase | import React, { Component } from 'react';
/**
* Class respresenting a Constructor Function
* @constructor
*/
export default class Contructor extends Component {
constructor(props) {
super(props);
/** intializing the state of the component
*/
this.state = {
/** Anything assigned in the state obj... |
app/assets/javascripts/NewNodeWidget/Section/NodeTypeSelect.js | sozialhelden/wheelmap | import React from 'react';
import sortBy from 'lodash.sortby';
import Form from '../../common/Form';
import I18n from '../../common/I18n';
import { Category, NodeType } from '../../common/models';
import { immutableMapOf } from '../../common/propTypes';
const { func, instanceOf, string } = React.PropTypes;
class Nod... |
tp-3/sebareverso/src/components/pages/about/AboutPage.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import Paper from 'material-ui/Paper';
import '../../app.scss';
import {Card, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
class AboutPage extends React.Component {
constructor(props) {
super(props);
this.state = {
expanded: false,
};
}
handle... |
src/containers/skill-tree/SkillTree.js | phodal/growth-ng | /* eslint-disable global-require */
/* global __DEV__, require */
import React, { Component } from 'react';
import { WebView, StyleSheet, Platform } from 'react-native';
import { Actions } from 'react-native-router-flux';
import AppSizes from '../../theme/sizes';
import AppStyles from '../../theme/styles';
import SKILL... |
src/index.js | kgosse/productapp | require('./styles/main.scss');
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/svg-icons/action/assignment-return.js | manchesergit/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/components/Match/Scoreboards/index.js | fooey/gw2w2w-cra | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import _ from 'lodash';
import classnames from 'classnames';
import numeral from 'numeral';
// import Card from 'src/components/Layout/Card';
import { getWorldBySlug, getWorld, getWorldLink } from 'src/lib/world';
// import { getTeamCo... |
client/views/admin/apps/CloudLoginModal.js | VoiSmart/Rocket.Chat | import { Button, ButtonGroup, Icon, Modal } from '@rocket.chat/fuselage';
import React from 'react';
import { useSetModal } from '../../../contexts/ModalContext';
import { useRoute } from '../../../contexts/RouterContext';
import { useTranslation } from '../../../contexts/TranslationContext';
const CloudLoginModal = ... |
examples/todomvc/containers/Root.js | jlongster/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return ... |
src/components/bet/BetFormModal.js | itjope/tipskampen | import React from 'react'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
const BetFormModal = (props) => {
const actions = [
<FlatButton
label='Cancel'
secondary={true}
onTouchTap={props.onCancel}
/>,
<FlatButton
label='Save'
primary=... |
src/components/Signin.js | ihenvyr/react-parse | import React from 'react';
import Form from './Form';
import Input from './Input';
import Button from './Button';
import Parse from 'parse';
import { withRouter } from 'react-router';
const Signin = ({ router }) => {
const handleSubmit = (event) => {
event.preventDefault();
const { username, password } = ev... |
app/components/Navbar/NavDropdownDivider/index.js | josueorozco/parlay | import React from 'react';
import classNames from 'classnames';
/*
|--------------------------------------------------------------------------
| NavDropdownDivider
|--------------------------------------------------------------------------
|
| Stateless component
|
*/
const NavDropdownDivider = () => (
<div
... |
client/app/containers/FeaturePage/index.js | jjt/ffsssshh | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import { connect } from 'react-redux';
import { routeActions } from 'react-router-redux';
import Button from 'Button';
import H1 from 'H1';
import A from 'A';
import styles from './styles.css';
class FeaturePage extends React.Component {
... |
src/svg-icons/notification/live-tv.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationLiveTv = (props) => (
<SvgIcon {...props}>
<path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8... |
components/Layout.js | Hardyng/weatherforecast-nextjs-redux-ssr | import React from 'react';
import cx from 'classnames';
import styled from 'styled-components';
// background-image: url('http://www.sciencemag.org/sites/default/files/styles/article_main_medium/public/images/ss-bird_honeycreeper.jpg?itok=eEm6TBrb');
import Header from './Header';
const Container = styled.div`
... |
src/stretchView.js | guoyuan94/react-native-stretchview | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
View,
Animated,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
export default class StretchView extends Component {
constructor(props, context) {
super(props... |
app/components/Main.js | luongthomas/React-Portfolio | import React from 'react';
import ReactCSSTtransitionGroup from 'react-addons-css-transition-group';
// we can do this syntax because of webpack loaders
import '../main.css';
// Key from react router. CloneElement lets us attach a key to the "would-be component"
// , aka new props
// React keeps track of keys (order... |
client/src/components/Task/TaskStepBaseClass.js | DemocracyGuardians/DGTeam |
import React from 'react';
import PropTypes from 'prop-types'
class TaskStepBaseClass extends React.Component {
render() {
return (<span></span>)
}
}
TaskStepBaseClass.propTypes = {
store: PropTypes.object.isRequired,
content: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
onStep... |
powerpiapp/elements/common/Header.js | Knapsacks/power-pi-v2 | // import library
import React from 'react';
import { Text, View } from 'react-native';
// create a component
const Header = (props) => {
const { textStyle, viewStyle } = styles;
return (
<View style={viewStyle}>
<Text style={textStyle}>{props.headerText}</Text>
</View>
);
}... |
src/components/Datepicker/Date.js | wiki1024/sam-bs | import React from 'react'
import classnames from 'classnames'
const Date = (props) => {
let {id, date, month, selectDate, selected} = props
let classes = classnames('date', {
'current': date.month() === month,
'future': date.month() > month,
'past': date.month() < month,
'selected': (date.... |
src/List/List.js | abouthiroppy/scuba | // @flow
import type { CommonProps } from '../CommonTypes';
import React from 'react';
import classnames from 'classnames';
import excludeProps from '../utils/excludeProps';
import styles from './style';
type Props= {
type: 'none' | 'circle' | 'square' | 'decimal';
};
const List = (props: CommonProps & Props) =>... |
src/encoded/static/components/form.js | T2DREAM/t2dream-portal | /* eslint-disable jsx-a11y/label-has-for */
import React from 'react';
import PropTypes from 'prop-types';
import jsonschema from 'jsonschema';
import _ from 'underscore';
import offset from '../libs/offset';
import { FetchedData, Param } from './fetched';
import { parseAndLogError, listingTitles } from './globals';
i... |
app/components/Settings.js | alfg/somafm | import React, { Component } from 'react';
import Nav from './common/Nav';
import SideNav from './common/SideNav';
import styles from './Settings.module.css';
export default class Settings extends Component {
static propTypes = {
};
constructor(props) {
super(props);
this.state = {
};
}
render(... |
basics/lib/root-component.js | zpratt/react-tdd-guide | import React from 'react';
import {PropTypes} from 'prop-types';
function Root(props) {
const {
users
} = props;
return (
<ul>
{users.map((user, index) => <li key={index}>{user.name}</li>)}
</ul>
);
}
Root.displayName = 'Root';
Root.propTypes = {
users: PropTyp... |
app/containers/LocaleToggle/index.js | andyzeli/Bil | /*
*
* LanguageToggle
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../... |
client/components/ChooseUserName.js | GO345724/pair-programming | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {Form, FormGroup, FormControl, Button, ControlLabel} from 'react-bootstrap';
class ChooseUserName extends Component {
constructor(props) {
super(props);
this.state = {
userName: ''
}
this.updateState = this.upd... |
components/animalNeighbourScene.js | marxsk/zobro | import React from 'react';
import {
View,
Text,
ListView,
TouchableHighlight, Alert, Image,
} from 'react-native';
import * as scenes from '../scenes';
import styles from '../styles/styles';
import animals from '../animals';
var navigator;
class Cell extends React.Component {
constructor(props) {
super... |
src/svg-icons/navigation/more-vert.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreVert = (props) => (
<SvgIcon {...props}>
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"... |
src/views/ArticleMain.js | fightingm/blog | import React from 'react';
import Markdown from 'react-markdown';
import ArticleData from './ArticleData';
import $ from 'jquery';
import hljs from 'highlight.js';
require ('../css/ArticleMain.css');
require ('highlight.js/styles/solarized-light.css');
export default class ArticleMain extends React.Component{
constr... |
src/js/components/App.js | designcreative/react-redux-template | import React, { Component } from 'react';
import ItemList from '../containers/item-list';
import ItemDetail from '../containers/item-detail';
require('../../scss/main.scss');
class App extends Component {
render() {
return (
<div>
<h2>Item List</h2>
<ItemList />
<hr/>
<h2>It... |
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js | hai-cea/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import Toggle from 'material-ui/Toggle';
const optionsStyle = {
maxWidth: 255,
marginRight: 'auto',
};
/**
* This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`.
*/
export default class DatePi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.