path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/sidebar/app.js | cold-brew-coding/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{category.name}</h1>
{this.props.children || (
... |
admin/client/App/screens/List/components/ListControl.js | w01fgang/keystone | import React from 'react';
import classnames from 'classnames';
var ListControl = React.createClass({
propTypes: {
dragSource: React.PropTypes.func,
onClick: React.PropTypes.func,
type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired,
},
renderControl () {
var icon = 'octicon octicon-';
... |
ngiiedu-client/src/components/index.js | jinifor/branchtest | import React, { Component } from 'react';
import Header from './common/layout/Header.js';
import Footer from './common/layout/Footer.js';
import {BrowserRouter, Router, Route, Switch } from 'react-router-dom';
// 미인증 사용자
import UserJoinContainer from './users/join/MainContainer';
import UserLoginContainer from './u... |
src/svg-icons/hardware/memory.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareMemory = (props) => (
<SvgIcon {...props}>
<path d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 ... |
tests/flow/react_modules/es6class-types-callsite.js | azz/prettier | /* @flow */
import React from 'react';
import Hello from './es6class-types-module';
type Props = {name: string};
class HelloLocal extends React.Component<void, Props, void> {
props: Props;
render(): React.Element<*> {
return <div>{this.props.name}</div>;
}
}
class Callsite extends React.Component<void, Pr... |
demo/index.ios.js | KenHky/react-native-modal-date-picker |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import Picker from 'react-native-modal-date-picker'
import moment from 'moment'
export default class rndemo extends Component {
onChange (data) {
console.log("new date",data)
}
render() {
... |
app/components/dev-tools.js | KleeGroup/focus-demo-app | import React from 'react';
/**
* Here, this was imported for the history.handlers on backbone.
* Gotta find what can replace it on React-Router
*/
import history from 'focus-core/history';
import CoreStore from 'focus-core/store/CoreStore';
import FocusDevTools from 'focus-devtools';
const DevTools = props => {
... |
src/App.js | LaylaWang119/Star-Wars-Search | import React, { Component } from 'react';
import PropTypes from "prop-types";
//import { BrowserRouter, Route, Switch } from "react-router-dom";
import Home from "./Home";
import Films from "./Films";
import People from "./People";
import Search from "./Search";
//import logo from './logo.svg';
import './App.css';
... |
src/components/presentational/ProductsPreviewElements/ProductsGrid.js | AurimasSk/DemoStore | import React from 'react';
import PropTypes from 'prop-types';
import ProductsRow from './ProductsRow';
import { onlyUpdateForKeys } from 'recompose';
const ProductsGrid = onlyUpdateForKeys(['products'])(({ products}) => {
const rows = getRows(products);
return (
<div className="container-fluid">
{rows}... |
app/exerciseForm.js | kuychaco/lambdaHIIT | 'use strict';
import React from 'react';
import WorkoutModel from './WorkoutModel';
let ExerciseForm = React.createClass({
render () {
return (
<div>
<input type="text" placeholder="Exercise Name"/>
<input type="number" placeholder="Duration (sec)" />
</div>
);
}
});
export de... |
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | Ehesp/react-native | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
ListView,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends C... |
public/js/components/admin/settings/NewAdminmodal.react.js | TRomesh/Coupley | /**
* Created by Isuru 1 on 30/01/2016.
*/
import React from 'react';
import Dialog from 'material-ui/lib/dialog';
import FlatButton from 'material-ui/lib/flat-button';
import RaisedButton from 'material-ui/lib/raised-button';
import TextField from 'material-ui/lib/text-field';
import snack from './snackbar.react';
i... |
app/main.js | xiamu14/newdenfaces | import React from 'react';
import Router from 'react-router';
import routes from './routes';
Router.run(routes, Router.HistoryLocation, function(Handler) {
React.render( < Handler / > , document.getElementById('app'));
});
|
src/components/field/Email.js | redux-autoform/redux-autoform-material-ui | import React from 'react';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField/TextField';
import FormGroup from '../common/FormGroup';
import propTypes from '../../util/FieldPropTypes';
export default class Email extends React.Component {
static propTypes = propTypes;
render() {... |
es/Card/CardHeader.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
dapp/src/routes/dao/containers/module.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 } = props
const Module = Modules[module]
return (<Module address={address} />)
}
function mapStateToProps(store, props) {
... |
src/components/nodewebkit/line-wordmark/NodewebkitLineWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './NodewebkitLineWordmark.svg'
/** NodewebkitLineWordmark */
function NodewebkitLineWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'N... |
src/modules/core/client/components/FieldInput/DraftEditor.js | shibbir/gadget-catalog | import React from 'react';
import { Editor, RichUtils } from 'draft-js';
import "draft-js/dist/Draft.css";
import "./DraftEditor.css";
export default class DraftEditor extends React.Component {
constructor(props) {
super(props);
this.focus = () => this.refs.editor.focus();
this.onChange ... |
src/js/components/TeamMembers.js | hadnazzar/ModernBusinessBootstrap-ReactComponent | import React from 'react';
export default class Body extends React.Component {
render() {
return(
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2 class="page-header">Our Team</h2>
</div>
<div class="col-md-4 te... |
lens-ui/app/components/HeaderComponent.js | sushrutikhar/grill | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
blueocean-material-icons/src/js/components/svg-icons/maps/local-mall.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalMall = (props) => (
<SvgIcon {...props}>
<path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.34-3 3-3zm0 10c-2.76 0-5-2.24-5-5h... |
src/svg-icons/communication/present-to-all.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
templates/rubix/demo/src/common/sidebar.js | jeffthemaximum/jeffline | import React from 'react';
import {
Sidebar, SidebarNav, SidebarNavItem,
SidebarControls, SidebarControlBtn,
LoremIpsum, Grid, Row, Col, FormControl,
Label, Progress, Icon,
SidebarDivider
} from '@sketchpixy/rubix';
import { Link, withRouter } from 'react-router';
import ChatComponent from './chat';
import... |
app/components/ActualResultSection/index.js | j921216063/chenya | import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import Section1 from 'components/Section1';
import Container from 'components/Container';
import H1 from 'components/H1';
import Img from 'components/Img';
import result1 from './result1.png';
import result... |
examples/column-hiding/src/index.js | tannerlinsley/react-table | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
ReactDOM.render(<App />, document.getElementById('root'))
|
packages/showcase/plot/histogram.js | uber/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... |
app/index.js | RichardLilja/BMC | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './containers/Root';
import { configureStore, history } from './store/configureStore';
import './app.global.scss';
const store = configureStore();
render(
<AppContainer>
<Root store={... |
src/components/app.js | davidmferris/showhopper_v3_client | import React, { Component } from 'react';
import Sidebar from '../containers/sidebar';
import Map from '../containers/map';
export default class App extends Component {
render() {
return (
<div>
<Sidebar />
<Map />
</div>
);
}
}
|
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js | tateisu/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ConversationContainer from '../containers/conversation_container';
import ScrollableList from '../../../components/scroll... |
src/MessageBoard.js | chelsea-le/nastywoman | // import SignUp from './SignUp';
// import SignIn from './SignIn';
// import React from 'react';
// import ToggleAuth from './ToggleAuth'
// import FirebaseConfig from './FirebaseConfig'
//
// var MessageBoard = React.createClass({
// render:function() {
// console.log(this.props)
// // Determine whi... |
src/components/WhiteButton/WhiteButton.js | MarynaHapon/Data-root-react | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './WhiteButton.css';
class WhiteButton extends React.Component {
render() {
const { children } = this.props;
return <button className={s.btnWhite}>{children}</button>;... |
docs/src/app/components/pages/discover-more/Community.js | pancho111203/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import communityText from './community.md';
const Community = () => (
<div>
<Title render={(previousTitle) => `Community - ${previousTitle}`} />
<MarkdownElement text={communityText} />
... |
src/containers/NoteContainer.js | kimochg/react-native-githubnote-app | /*
* @Author: LIU CHENG
* @Date: 2017-02-24 23:06:26
* @Last Modified by: LIU CHENG
* @Last Modified time: 2017-02-25 11:06:35
*/
import React from 'react';
import { connect } from 'react-redux';
import * as actions from '../modules/actions';
import Note from '../components/Note';
import { getUsername, getNotes... |
src/pageComponents/frequen/frequenForm.js | nai888/langua | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import Form from '../../components/form'
import Button from '../../components/button'
import Control from '../../components/control'
import ControlSide from '../../components/control/side'
import ControlPiece from '../../c... |
src/Parser/HolyPaladin/Modules/Talents/AuraOfMercy.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber } from 'common/format';
import Module from 'Parser/Core/Module';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import Combatants f... |
examples/huge-apps/components/GlobalNav.js | ArmendGashi/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
src/forms/Predictions.js | knod/cliff-effects-1 | import React from 'react';
import {
Divider,
Header,
Tab,
Message,
Button,
Menu,
} from 'semantic-ui-react';
// PROJECT COMPONENTS
import { FormPartsContainer } from './FormPartsContainer';
import { IntervalColumnHeadings } from '../components/headings';
import { CashFlowInputsRow } from './cashflow';
impo... |
docs/app/Examples/elements/Rail/Variations/RailExampleClose.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Grid, Image, Rail, Segment } from 'semantic-ui-react'
const RailExampleClose = () => (
<Grid centered columns={3}>
<Grid.Column>
<Segment>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
<Rail close position='left'>
<Segmen... |
app/javascript/mastodon/components/dropdown_menu.js | RobertRence/Mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Dropdown, { DropdownTrigger, DropdownContent } from 'react-simple-dropdown';
import PropTypes from 'prop-types';
export default class DropdownMenu extends React.PureComponent {
static contextTypes = {
router: PropTypes... |
server/sonar-web/src/main/js/apps/project-admin/links/Table.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
client/pages/DemoNoRedux.js | briefguo/learn-js | /**
* 从组件层拿页面要的组件、ActionCreators
*
* 注意:
* 这一层,是页面层
* 这一层,尽量不写样式
* 这一层,当作页面入口,起总览把控作用
* 这一层,尽可能的在这一层,获取后台列表型数据
* 这一层,最好能看到一个页面的所有的组件
*
*/
import React from 'react'
// import fetchBy from 'lib/fetchBy'
export default class DemoNoRedux extends React.Component {
// props属性检测
static propTypes = {
model... |
app/containers/Sesizari/components/incident-row.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
import { Card, CardText } from 'material-ui/Card';
import Button from '../../../components/Button';
import styled from 'styled-components';
const ButtonSpacer = styled.div`
color:white;
margin-top: 10px;
margin-bottom: 10px;
`;
const BoldText = styled.span`
font-weight: bold;
`;
//... |
src/common/components/sidebar/SettingsSidebarMenu.js | GovTracker/GovTracker-frontend | import React from 'react';
import { Nav, Col, NavItem } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
class SettingsSidebarMenu extends React.Component {
render() {
return (
<Col sm={3} md={2} className="sidebar">
<Nav className="nav-sidebar">
<LinkContai... |
src/index.js | furkanpur/create-react-redux-app | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import App from './containers/app';
import registerServiceWorker from './registerServiceWorker';
import store, { history } from './store';
import './assets/styles/i... |
docs/src/pages/index.js | tapjs/node-tap | import React from 'react';
import Navbar from '../components/navbar';
import Hero from '../components/home/hero';
import Features from '../components/home/features';
import WhyTap from '../components/home/whyTap';
import Credits from '../components/home/credits';
import {ThemeProvider} from 'styled-components';
import ... |
assets/js/pages/homePage.js | camilaavilarinho/monitorador-twitter | import React from 'react';
import ReactDOM from 'react-dom';
import HomePageContainer from '../containers/HomePageContainer';
ReactDOM.render(<HomePageContainer />, document.getElementById('react-app'));
|
ui/src/main/js/components/UpdateInstanceSummary.js | thinker0/aurora | import React from 'react';
import InstanceViz from 'components/InstanceViz';
import { instanceSummary, updateStats } from 'utils/Update';
function UpdateStats({ update }) {
const stats = updateStats(update);
return (<div className='update-summary-stats'>
<h5>Instance Summary</h5>
<span className='stats'>... |
example/examples/CustomMarkers.js | wannyk/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView, { Marker, ProviderPropType } from 'react-native-maps';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = ... |
node_modules/enzyme/src/ShallowTraversal.js | vietvd88/developer-crawler | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import functionName from 'function.prototype.name';
import {
propsOfNode,
splitSelector,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
nodeHasProperty,
} from './Utils';
export function c... |
lib/ui/src/modules/ui/components/left_panel/header.js | enjoylife/storybook | import PropTypes from 'prop-types';
import React from 'react';
import { baseFonts } from '../theme';
const wrapperStyle = {
background: '#F7F7F7',
marginBottom: 10,
};
const headingStyle = {
...baseFonts,
textTransform: 'uppercase',
letterSpacing: '1.5px',
fontSize: '12px',
fontWeight: 'bolder',
color... |
src/components/footer/Footer.js | VBurroughs21/natASL | import React from 'react';
import './footer.css';
const Footer = () => (
<footer className="footer">
<p className="text-xs-center text-muted">
Have questions or suggestions? Please file them on the
<a href="https://github.com/cloudmu/react-redux-starter-kit/issues" target="_blank"> Github <... |
app/components/Counter.js | zackhall/ack-chat | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Counter.css';
class Counter extends Component {
props: {
increment: () => void,
incrementIfOdd: () => void,
incrementAsync: () => void,
decrement: () => void,
counter: number
};
rend... |
docs/app/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
// ----------------------------------------
// Rendering
// ----------------------------------------
const mountNode = document.createElement('div')
document.body.appendChild(mountNode)
const render = (NewApp) => ReactDOM.render(<NewA... |
information/blendle-frontend-react-source/app/modules/payment/components/SelectPaymentMethod.js | BramscoChill/BlendleParser | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Select from 'components/Select2';
import { translate } from 'instances/i18n';
class SelectPaymentMethod extends Component {
static propTypes = {
recurringContracts: PropTypes.array.isRequired,
selectedPaymentMethod: PropType... |
src/svg-icons/image/filter-tilt-shift.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterTiltShift = (props) => (
<SvgIcon {...props}>
<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62... |
examples/demo-react-native/storybook/stories/Button/index.android.js | infinitered/reactotron | import React from 'react'
import PropTypes from 'prop-types'
import { TouchableNativeFeedback } from 'react-native'
export default function Button (props) {
return (
<TouchableNativeFeedback onPress={props.onPress}>{props.children}</TouchableNativeFeedback>
)
}
Button.defaultProps = {
children: null,
onPr... |
app/javascript/mastodon/components/autosuggest_hashtag.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ShortNumber from 'mastodon/components/short_number';
import { FormattedMessage } from 'react-intl';
export default class AutosuggestHashtag extends React.PureComponent {
static propTypes = {
tag: PropTypes.shape({
name: PropTypes.string... |
services/ui/src/components/Breadcrumbs/Environment.js | amazeeio/lagoon | import React from 'react';
import { getLinkData } from 'components/link/Environment';
import Breadcrumb from 'components/Breadcrumbs/Breadcrumb';
const EnvironmentBreadcrumb = ({ environmentSlug, projectSlug }) => {
const linkData = getLinkData(environmentSlug, projectSlug);
return (
<Breadcrumb
header=... |
components/markdown-preview.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import {translate} from 'react-i18next'
import PlusIcon from 'react-icons/lib/fa/plus-circle'
import MinusIcon from 'react-icons/lib/fa/minus-circle'
import prune from '../lib/string/prune'
import Markdown from './markdown'
class MarkdownPreview extends R... |
src/svg-icons/maps/local-offer.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalOffer = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86... |
src/components/asynccontent/LoadingSpinner.js | dataloom/gallery | import React from 'react';
import styles from './loading.spinner.module.css';
export default function(props) {
const size = props.size || 50;
// https://github.com/SamHerbert/SVG-Loaders
return (
<div className={styles.loadingSpinnerWrapper}>
<svg
className={styles.loadingSpinner}
... |
src/components/itemGrid.js | cephalization/filehub | import React from 'react';
import { Grid } from 'semantic-ui-react';
class ItemGrid extends React.Component {
constructor() {
super();
this.state = {
items: []
};
}
componentWillReceiveProps(nextProps) {
if(this.props.items !== nextProps.items) {
co... |
src/Parser/ShadowPriest/Modules/Spells/VoidformsTab.js | mwwscott0/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import VoidformGraph from './VoidformGraph';
const VoidformsTab = ({ voidforms = [], insanityEvents, ...modules }) => {
if (voidforms.length === 0) return null;
return (<div className="voidforms">
{voidforms.map((voidform, i) =>
(<VoidformGra... |
packages/material-ui-icons/src/Slideshow.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" /></g>
, 'Slideshow');
|
node_modules/node_modules/recharts/demo/index.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import App from './container/App';
ReactDOM.render((
<Router history={browserHistory}>
<Route path="/" component={App} />
</Router>
), document.getElementById('root'));
|
src/svg-icons/places/spa.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSpa = (props) => (
<SvgIcon {...props}>
<path d="M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61zm10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64z"/><path d="M15.49 9.63c... |
src/components/MediaParserView/index.js | Reditr-Software/reditr | import React from 'react'
import { render } from 'react-dom'
import PropTypes from 'prop-types'
import ReactPlayer from 'react-player'
import { debounce } from 'lodash'
import MediaParser from '../../utilities/MediaParser'
import YoutubeView from '../YoutubeView'
import GalleryView from '../GalleryView'
import TweetVi... |
src/Main Pages/HomePage/CouponHomePageDataContainer/CouponHomePageDataContainer.js | millerman86/CouponProject | import React from 'react';
import DataBaseEndPoint from '../../../DataBaseEndPoint';
import {clipCoupon} from '../../../Redux/actions';
const getUser = () => {
return sessionStorage.getItem('username');
};
class CouponHomePageDataContainer extends React.Component {
state = {
featuredCoupons: [],
r... |
JotunheimenPlaces/node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | designrad/Jotunheimen-tracking | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
ListView,
Platform,
StyleSheet,
View,
} from 'react-native';
import ListItem from '../../components/ListItem';
import Backend from '../../lib/Backend';
export default class ChatListScreen extends Component {
stat... |
docs/app/Examples/elements/Button/Types/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ButtonTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Button'
description='A st... |
app/components/chart/stats.js | tidepool-org/blip | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import map from 'lodash/map';
import { components as vizComponents } from '@tidepool/viz';
import { useLocalStorage } from '../../core/hooks';
import utils from '../../core/utils';
const { Stat } = vizComponents;
const Stats ... |
src/components/CenterMidContainer/CenterMidContainer.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import $ from 'jquery'
class CenterMidContainer extends React.PureComponent {
componentDidMount () {
$('#divToAlignCenter').css('height', $(`#${this.props.rootId || 'main'}`).height() - (this.pr... |
node_modules/react-router/es/withRouter.js | morselapp/shop_directory | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/js/components/applicationWindow.js | GarrettEstrin/windows.garrettestrin.com | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Draggable from 'react-draggable';
import { closeApplicationWindow } from '../actions/icon_actions';
class ApplicationWindow extends Component {
constructor(props) {
super(props);
this.unmountMe = this.unmountMe.bind(this... |
src/index.js | cspenc/weather-app | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
js/components/leads/inlineedit.js | aditya-simplecrm/iosReactAppNoresha |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Actions, ActionConst } from 'react-native-router-flux';
import { Picker, Container, Header, Title, Content, Text, Button, Icon, Left, Body, Right, Form, Item, Label, Input,View, Thumbnail } from 'native-base';
import { TouchableO... |
src/ModalFooter.js | egauci/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import tbsUtils, { bsClass } from './utils/bootstrapUtils';
class ModalFooter extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, tbsUtils.prefix(this.props, 'footer'))... |
src/components/App.js | kevinchau321/TReactr | /**
* 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 PropTypes from 'prop-... |
test/integration/jsconfig-paths/components/hello.js | flybayer/next.js | import React from 'react'
export function Hello() {
return <>Hello</>
}
|
renderer/pages/preferences.js | wulkano/kap | import React from 'react';
import {Provider} from 'unstated';
import classNames from 'classnames';
import {ipcRenderer as ipc} from 'electron-better-ipc';
import PreferencesNavigation from '../components/preferences/navigation';
import WindowHeader from '../components/window-header';
import Categories from '../compone... |
src/Parser/Druid/Guardian/CONFIG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { faide } from 'CONTRIBUTORS';
import SPECS from 'common/SPECS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import CombatLogParser from './CombatLogParser';
import CHANGELOG from './CHANGELOG';
export default {... |
src/components/DailyWeather/index.js | Junicus/fcc-localweather | import React from 'react';
import { calculateCardinalDirection } from '../../utilities/cardinaldirection';
import { getWeatherIcon } from '../../utilities/getweathericon';
import './dailyweather.css';
import './css/weather-icons.css';
export function DailyWeather(props) {
const { styleId, day, icon, temp, summary... |
packages/expo-app-loading/build/AppLoadingNativeWrapper.js | exponentjs/exponent | import * as SplashScreen from 'expo-splash-screen';
import React from 'react';
export default class AppLoading extends React.Component {
static defaultProps = {
autoHideSplash: true,
};
constructor(props) {
super(props);
SplashScreen.preventAutoHideAsync();
}
componentWillUnm... |
src-web/js/view/Data.js | kwangkim/pigment | import Radium from 'radium';
import React from 'react';
import * as MaterialUI from 'material-ui';
import { getChildren, reactJoin } from './util';
const styles = {
dataConstructor: {
':hover': {
backgroundColor: '#ddd',
},
},
data: {
display: 'flex',
flexDirection: 'column',
},
info... |
src/trade/browser/TradesPage.js | binary-com/binary-next-gen | import React from 'react';
import WebPage from '../../containers/WebPage';
import TradesLayout from './TradesLayout';
export default props => (
<WebPage>
<TradesLayout {...props} />
</WebPage>
);
|
src/components/transactions/transactionsHeader.js | LiskHQ/lisk-nano | import React from 'react';
import { translate } from 'react-i18next';
import styles from './transactions.css';
const TransactionsHeader = ({ tableStyle, t }) => (
<thead>
<tr>
<th className={`${tableStyle.headCell} ${styles.centerText}`}>{t('Time')}</th>
<th className={`${tableStyle.headCell} ${style... |
src/layouts/CoreLayout/CoreLayout.js | Ealon/react-redux-starter-kit | import React from 'react'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div>
<Header />
{children}
</div>
)
CoreLayout.propTypes = {
children : React.PropTypes.element.isRequired
}
export default Co... |
packages/material-ui-icons/src/ArtTrack.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ArtTrack = props =>
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
src/helpers/htmlIndex/genDynamicIndex.js | retaxJS/retax-seed | import React from 'react';
import Helmet from 'react-helmet';
import { renderToString } from 'react-dom/server';
import { INITIAL_STATE_KEY } from 'retax';
export default function genDynamicIndex(assets) {
return (app, store) => {
const content = renderToString(app);
const head = Helmet.rewind();
retur... |
examples/src/components/StatesField.js | darrindickey/chc-select | import React from 'react';
import Select from 'react-select';
const STATES = require('../data/states');
var id = 0;
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var StatesField = React.createClass({
displayName: 'StatesField',
p... |
actor-apps/app-web/src/app/components/Login.react.js | HKMOpen/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
src/svg-icons/action/work.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWork = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"/>... |
winearb/static/react/js/index.js | REBradley/WineArb | import React from 'react';
import ReactDOM from 'react-dom';
import Grid from 'react-bootstrap/lib/Grid';
import Col from 'react-bootstrap/lib/Col';
import { ArticleList } from './article_list.js';
import { Base } from './home.js';
import { CustomJTron } from './articles.js';
import Title from './components/title.js... |
blueocean-material-icons/src/js/components/svg-icons/action/code.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionCode = (props) => (
<SvgIcon {...props}>
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/>
</SvgIcon>
);
ActionCode.displayName = 'ActionCode';
ActionCode.muiName = 'SvgIcon';
expor... |
src/components/Mdx/Code.js | aravindballa/website2017 | import React from 'react';
import theme from 'prism-react-renderer/themes/dracula';
import Highlight, { defaultProps } from 'prism-react-renderer';
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live';
const Code = ({ codeString, language, ...props }) => {
if (props['react-live']) {
retu... |
tests/react_imports/es-default.js | samwgoldman/flow | import React from 'react';
(React.Component: Object); // OK
(React.Component: number); // Error
('Hello, world!': React.Node); // Error: Not in default export.
({}: React.Node); // Error: Not in default export.
(null: React.Missing); // Error: Not in default export.
|
webapp/js/components/display/empty/EmptyArea.js | Stevenah/INF5750 | import React, { Component } from 'react';
import { ModeCommentIconWithText } from 'components/utils/Icons';
import Paper from 'material-ui/Paper';
import DisplayAreaHOC from 'components/hoc/DisplayAreaHOC';
import '../../../../style/display/display.scss';
export class EmptyArea extends Component {
render() {
... |
src/components/Square.js | kaicataldo/tonal-sequencer | // @flow
import React, { Component } from 'react';
import Sound from '../lib/Sound';
type Props = {
isActive: boolean,
isSelected: boolean,
coords: Array<number>,
type: WaveType,
scale: string,
toggleSquare: Function
};
export default class Square extends Component {
props: Props;
sound = this._crea... |
src/containers/HomePage.js | duwonyi/eng-box-react | import React from 'react'
import { Link } from 'react-router-dom'
import {
Jumbotron,
Button,
Container,
Row,
} from 'reactstrap'
const HomePage = () => (
<div>
<Jumbotron>
<h1 className='display-3'>English Box</h1>
<p className='lead'>This is a single page application for me to study English... |
src/components/signup.js | ScottDowne/donate.mozilla.org | import React from 'react';
import Email from './email-input.js';
import {PrivacyPolicyCheckbox} from './checkbox.js';
import {Country} from './address-input.js';
import SubmitButton from './submit-button.js';
var SIGNUP_SUBMITTING = 1;
var Signup = React.createClass({
mixins: [require('../mixins/form.js')],
conte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.