path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
pkg/interface/dbug/src/index.js
urbit/urbit
import React from 'react'; import ReactDOM from 'react-dom'; import { Root } from '/components/root'; import { api } from '/api'; import { store } from '/store'; import { subscription } from "/subscription"; api.setAuthTokens({ ship: window.ship }); window.urb = new window.channel(); subscription.start(); ReactDOM...
src/svg-icons/action/note-add.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionNoteAdd = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </SvgIcon> );...
imports/ui/components/AuthenticatedNavigation/Menu.js
haraneesh/mydev
// import React, { Component } from 'react'; import React, { useState, useEffect } from 'react'; import { Button, Row } from 'react-bootstrap'; import PropTypes from 'prop-types'; /* export default class Menu extends Component { constructor(props) { super(props); this.state = { visible: false, }; ...
WasteAppMini/js/components/recipe/cheese.js
airien/workbits
import React, { Component } from 'react'; import { Image,View, ListView,BackAndroid } from 'react-native'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, DeckSwiper } from ...
src/components/EditGearForm.js
tommydx/front2
import React, { Component } from 'react'; import axios from 'axios'; import { browserHistory } from 'react-router'; class EditGearForm extends Component { constructor(props) { super(props); this.state = { name: "", item_category: "", item: "", manufacturer: "", year: "", ...
src/index.js
dkryaklin/aviasales_test
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import './css/index.css'; import './css/media.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/Portal.js
cesarandreu/react-overlays
import React from 'react'; import mountable from 'react-prop-types/lib/mountable'; import ownerDocument from './utils/ownerDocument'; import getContainer from './utils/getContainer'; /** * The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy. * You can think of i...
app/components/ShowJob/index.js
dijahmac/JobWeasel-FrontEnd
/** * * ShowJob * */ import React from 'react'; import './style.css'; import './styleM.css'; export default class ShowJob extends React.PureComponent { constructor(props) { super(props); this.state = { job: {}, links: [] } } componentWillMount() { this.getJob(this.props.jobId); ...
app/config/routes.js
khaiphan/react-server-boilerplate
import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import App from '../components/App'; import Main from '../components/Main'; import Home from '../components/Home'; import User from '../components/User'; export default( <Router> <Route component={Main}> <Route...
packages/react/src/components/organisms/TabContainer/context.js
massgov/mayflower
import React from 'react'; // Used by @Organisms/TabContainer and Tab to share data. const TabContext = React.createContext({ activeTab: null, activeContent: null, setActiveTab: () => {} }); export default TabContext;
pages/designs/signinform/components/form.js
DarcyChan/darcychan.com
import React from 'react'; import { Motion, spring } from 'react-motion'; export default class Form extends React.Component { render() { const { formRef, activeRef, info, isActive, isSubmitted, motion, reverse, ...
src/components/common/svg-icons/editor/format-align-center.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignCenter = pure(EditorFormatAli...
docs/src/pages/elements/NavigationPage.js
gocreating/react-tocas
import React from 'react'; import DemoPageLayout from '../../utils/DemoPageLayout'; import CardList from '../../utils/CardList'; let NavigationPage = () => ( <DemoPageLayout title="Elements" description="Uncategorized elements" > <CardList title="Elements" cards={[{ to: '/elements/b...
src/components/TodoApp/Header.js
Capgemini/react-scaffold
import React, { Component } from 'react'; import TodoActions from '../../actions/TodoActions'; import TodoTextInput from './TodoTextInput'; export default class Header extends Component { /** * Event handler called within TodoTextInput. * Defining this here allows TodoTextInput to be used in multiple places ...
src/svg-icons/maps/local-shipping.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalShipping = (props) => ( <SvgIcon {...props}> <path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/Resources/Resources.js
abimarank/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
src/svg-icons/device/battery-charging-60.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1...
indico/web/client/js/jquery/widgets/jinja/duration_widget.js
ThiefMaster/indico
// This file is part of Indico. // Copyright (C) 2002 - 2021 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import React from 'react'; import ReactDOM from 'react-dom'; import {WTFDurationField} from 'indico/...
lib/ui/src/components/preview/preview.stories.js
storybooks/react-storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { types } from '@storybook/addons'; import { Preview } from './preview'; export const previewProps = { id: 'string', api: { on: () => {}, emit: () => {}, off: () => {}, }, storyId: 'string', path: 'string', viewMod...
assets/jqwidgets/demos/react/app/complexinput/validation/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxComplexInput from '../../../jqwidgets-react/react_jqxcomplexinput.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { this.refs.myButton.on('click', () =>...
src/TabBar.js
LHoin/react-native-router-redux-plus
import React, { Component } from 'react'; import Tabs from 'react-native-tabs'; import { Image, StyleSheet, Text, View } from 'react-native'; const onSelect = props => el => { props.actions.changeTab({ from: props.activeTab, name: el.props.name, navigator: props.navigator, }); return { selection...
src/components/Alert.js
Grilados/site
import React, { Component } from 'react'; import './css/Alert.css'; export class Alert extends Component { render() { return( <div className="alert"> <div className="text-center title"> {this.props.title} </div> <div className="text-center body"> {this.props.body...
src/components/Router/TabIcon/index.js
topguru/React-Equiaction
import React from 'react'; import {Text, View, Image} from 'react-native'; import { Scene, Router, Actions, TabBar } from 'react-native-router-flux'; import { images } from '../../../theme'; import styles from './style'; const HomeTabIcon = (props) => ( <View style={styles.tabIconView}> <Image source={props.selecte...
example/TestLibQuickblox/IndicatorDialog.js
ttdat89/react-native-video-quickblox
/** * Created by Dat Tran on 1/25/17. */ import React from 'react' import {View, Text, StyleSheet, Modal, TouchableOpacity} from 'react-native' import Spinner from 'react-native-spinkit' import PropTypes from 'prop-types' export default class IndicatorDialog extends React.Component { static propTypes = { messa...
src/svg-icons/action/pregnant-woman.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPregnantWoman = (props) => ( <SvgIcon {...props}> <path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"/> </SvgIcon> ); ...
app/components/Keys/Add.js
soosgit/vessel
// @flow import React, { Component } from 'react'; import { Redirect } from 'react-router'; import { Button, Divider, Grid, Header, Segment } from 'semantic-ui-react'; import KeysGenerate from './Generate'; import KeysImport from './Import'; import KeysLogin from './Login'; import KeysCreate from './Create'; export d...
node_modules/react-router/es6/IndexLink.js
igMartin/Redux-Tinder
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; }; import React from 'react'; import Link from './Link'; /** *...
packages/core/__deprecated__/Grid/index.js
romelperez/arwes
import React from 'react'; import withStyles from '../tools/withStyles'; import Grid from './Grid'; import styles from './styles'; const GridWithStyles = withStyles(styles)(Grid); export const Row = props => <GridWithStyles row {...props} />; export const Col = props => <GridWithStyles col {...props} />; export defa...
src/svg-icons/av/mic-none.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMicNone = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ...
examples/flux-utils-todomvc/js/app.js
kiopl/flux
/** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */ 'use s...
src/Slider/index.js
szchenghuang/react-mdui
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import ClassNames from 'classnames'; import mdui from '../index'; class Slider extends React.Component { componentDidMount() { mdui.updateSliders( this.root ); } render() { const { className, step, min, ...
packages/material-ui-icons/src/ExitToApp.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /></g> , 'ExitToApp');
app/src/components/achievements/AchievementsOverview.js
kort/kort-native
import React, { Component } from 'react'; import { View, ListView, RefreshControl } from 'react-native'; import { connect } from 'react-redux'; import _ from 'lodash'; import I18n from 'react-native-i18n'; import AchievementItem from './AchievementItem'; import { downloadAchievements, clearErrorMsg } from '...
client/src/index.js
ASU-CodeDevils/DemonHacks2017
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/index.js
Gertrido/test-task-hypermethod
import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' import configureStore from './store/configureStore' import App from './containers/App' const store = configureStore() render( <Provider store={store}> <App /> </Provider>, document.getElementById('root'...
test/js/AR/arNodeTest.js
viromedia/viro
/** * Copyright (c) 2017-present, Viro Media, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import R...
src/index.js
JonKruger/openspaces-react
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './app/store/configureStore'; require('./favicon.ico'); // Tell web...
src/layouts/index.js
adrienlozano/stephaniewebsite
import React from 'react'; import Header from '~/components/header'; import Footer from '~/components/footer'; import { setDisplayName, compose, defaultProps } from 'recompose'; import { injectGlobal } from 'styled-components' import Head from 'react-helmet'; import { ThemeProvider } from 'styled-components'; import ...
definitions/npm/@kadira/storybook_v1.x.x/test_storybook_v1.x.x.js
mkscrg/flow-typed
// @flow import React from 'react'; import { action, storiesOf } from '@kadira/storybook'; storiesOf('div', module) .add('empty', () => ( <div onClick={action('click')} /> )) // $ExpectError .aad('empty', () => ( <div /> ));
src/containers/camper.js
chrischavarro/CamperLeaderboard
import React from 'react'; export default (props) => { return ( <tr> <td>{props.index+1}</td> <td> <img src={props.data.img} className="camperAvatar" /> <a href={props.data.camperURL}>{props.data.username}</a> </td> <td>{props.data.recent}</td> <td>{props.data.alltim...
src/esm/components/graphics/icons-next/people-icon-next/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var PeopleIconNext = function PeopleIconNext(_ref) { var col...
stories/Slider/index.js
nirhart/wix-style-react
import React from 'react'; import {storiesOf} from '@kadira/storybook'; import Markdown from '../utils/Components/Markdown'; import CodeExample from '../utils/Components/CodeExample'; import Readme from '../../src/Slider/README.md'; import ExampleStandard from './ExampleStandard'; import ExampleStandardRaw from '!raw!...
src/components/fragment/Header/index.js
luanhaipeng/coolpeng-react
import React from 'react' import './index.less' import {Link} from 'react-router' export default class Header extends React.Component { constructor(props) { super(props) } renderRightLogin(){ const {user} = this.props; var userInfo = user.user; if(userInfo && user.isLogge...
example/screens/TrumpSortScreen.js
GantMan/useless-things
import React from 'react' import { StyleSheet, Text, View } from 'react-native' import { TrumpSort } from 'useless-things' const LENGTH = 15 const randomArray = () => [...new Array(LENGTH)] .map(() => Math.round(Math.random() * 99)) export default class App extends React.Component { render () { const currentA...
es/Input/InputAdornment.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 = {...
packages/callout/src/js/react.js
govau/uikit
/*! [replace-name] v[replace-version] */ /*************************************************************************************************************************************************************** * * Callout function * * Use callout to notify and alert users of important snippets of information. * *********...
src/svg-icons/content/markunread.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMarkunread = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); ContentMarkunread ...
components/TodoForm.js
bobbyangelov/3things
import React from 'react'; import ReactDOM from 'react-dom'; class TodoForm extends React.Component { constructor() { super(); this.state = { text: '' }; } handleSubmit(e) { e.preventDefault(); this.props.addItem(this.refs.todoField.value); this.setState({text: ''}); this.refs....
src/app/routes.js
mischlecht/HackWeekend2017-react-app
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './app.jsx'; import HomeController from '../home/home.controller.jsx'; import ImagesController from '../images/images.controller.jsx'; import NotFoundPage from '../shared/components/not-found-page.jsx'; export default ( <Ro...
tests/react_modules/es6class-proptypes-module.js
samwgoldman/flow
/* @flow */ import React from 'react'; import type {Node} from 'react'; class Hello extends React.Component<{name: string}> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): Node { return <div>{this.props.name}</div>; } } module.exports = Hello;
src/svg-icons/editor/insert-link.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3...
examples/gatsby/src/pages/index.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import Button from 'material-ui/Button'; import Dialog, { DialogTitle, DialogContent, DialogContentText, DialogActions, } from 'material-ui/Dialog'; import Typography from 'material-ui/Typography'; import { withStyles } from 'material-ui/styles'; im...
lib/components/Voter.js
pguth/puddin
import React from 'react' export default class Voter extends React.Component { onUpvote(e) { this.props.onVote(1) } onDownvote(e) { this.props.onVote(-1) } render() { return <div className="voter"> {this.props.vote > 0 ? <div className="up-vote" /> : null} {this.props.vote === 0 ? ...
src/svg-icons/social/plus-one.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPlusOne = (props) => ( <SvgIcon {...props}> <path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/> </SvgIcon> ); SocialPlusOne = pure(SocialPlusOne); SocialPlusOne.displayName = 'Social...
src/docs/Docs.js
thomashoggard/ps-react-tom
import React from 'react'; import Navigation from './Navigation'; import ComponentPage from './ComponentPage'; import componentData from '../../config/componentData'; export default class Docs extends React.Component { constructor(props) { super(props); this.state = { route: window.location.hash.substr...
Examples/src/components/InputExamples.js
sitb-software/ReactNativeComponents
import React from 'react'; import { View } from 'react-native'; import AbstractComponent from './AbstractComponent'; import Input from 'react-native-components/form/Input'; import Button from 'react-native-components/bootstrap/Button'; let dataSource = [ { placeholder: 'Default Input', }, { placeholder:...
src/components/sourcetree/original/SourcetreeOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './SourcetreeOriginal.svg' /** SourcetreeOriginal */ function SourcetreeOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'SourcetreeOri...
src/index.js
ambershen/ambershen.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import App from './components/App'; ReactDOM.render( <BrowserRouter> <App /> </BrowserRouter>, document.getElementById('root'), );
src/SplitButton.js
JimiHFord/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
src/components/widgets/RichTextEditorToolbox.js
rsamec/react-designer
import React from 'react'; import _ from 'lodash'; const TooltipStyle = { position: 'absolute', padding: '0 5px' }; const TooltipInnerStyle = { padding: '3px 8px', color: '#fff', textAlign: 'center', borderRadius: 3, backgroundColor: '#000', opacity: .75 }; const TooltipArrowStyle = { position: 'absolute', w...
src/main.js
denn1s/nanoreno
import 'babel-polyfill' import 'whatwg-fetch' import React from 'react' import ReactDOM from 'react-dom' import FastClick from 'fastclick' import { Provider } from 'react-redux' import store from './store' import history from './history' import Scene from './Scene' import Start from './Start' import Credits from './...
src/components/board/Table.js
josephquested/plainscreen
import React from 'react' import Row from './Row' import Cell from './Cell' export default React.createClass({ generateTable: function () { let rows = new Array(Number(this.props.height)).fill() rows = rows.map((row, index) => { return <Row gameState={this.props.gameState} id={index} width={this...
geonode/monitoring/frontend/monitoring/src/components/organisms/ws-analytics/index.js
francbartoli/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # 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 # ...
packages/type/examples/styled-components/src/App.js
carbon-design-system/carbon-components
import { display04 } from '@carbon/type'; import React, { Component } from 'react'; import styled from 'styled-components'; import logo from './logo.svg'; import './App.css'; const Title = styled.h1(display04); class App extends Component { render() { return ( <div className="App"> <header classNa...
docs/src/app/pages/components/PanelGroup/ExamplePanelGroupMultiStep.js
GetAmbassador/react-ions
import React from 'react' import {PanelGroup, Panel, PanelHeader, PanelContent} from 'react-ions/lib/components/PanelGroup' import Badge from 'react-ions/lib/components/Badge' import style from './style.scss' const content = { lorum1: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vehicula finibus p...
node_modules/@material-ui/styles/esm/styled/styled.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import clsx from 'clsx'; import warning from 'warning'; import PropTypes from 'prop-types'; import { chainPropTypes, getDisplayName } from '@material-u...
responsive-visualizations-with-react/presentation.js
okonet/slides
import React, { Component } from 'react'; import Deck from "components/Deck.react"; import Slide from "components/Slide.react"; import Code from "components/Code.react"; import DocumentTitle from "react-document-title"; import demo1 from 'babel!./examples/demo1'; import demo1Code from 'raw!./examples/demo1'; import d...
src/svg-icons/action/all-out.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAllOut = (props) => ( <SvgIcon {...props}> <path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1...
src/views/HomeView.js
mjosh954/mtg-toolbox
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; // import Paper from 'material-ui/lib/paper'; import FlatButton from 'material-ui/lib/flat-button'; import CardTitle from 'material-ui/lib/card/card-title'; import GitHubForkRibbon from 'react-github-fork-ribbon'; imp...
src/components/Root/index.js
Apozhidaev/ergonode.com
import React, { Component } from 'react'; import moment from 'moment'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { search, showMore } from 'store/app/book/root/actions'; import { navigate } from 'store/services/history/actions'; import Layout from '../Layout'; import StatePa...
src/Table.js
sheep902/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, getDefaultProps() { ...
front/src/components/App/Video/index.js
MichaelKostin/mars-rover
import React, { Component } from 'react'; import WebSocketSignalingChannel from '../../../rwsClient/WebSocketSignalingChannel'; import './style.css'; export default class Video extends Component { constructor(props) { super(props); this.video = null; this.connect = null; this.disconnect = null; t...
docs/src/examples/elements/Loader/Variations/LoaderExampleInlineCentered.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Loader } from 'semantic-ui-react' const LoaderExampleInlineCentered = () => <Loader active inline='centered' /> export default LoaderExampleInlineCentered
ui/src/components/SmallSpinner/index.js
LearningLocker/learninglocker
import React from 'react'; import styled from 'styled-components'; import { rotation } from 'ui/utils/styled/animations'; const SmallSpinner = styled.div` height: 1.5em; width: 1.5em; margin: auto; animation: ${rotation} .6s infinite linear; border-left: 4px solid rgba(245, 170, 53, 0.15); border-right: 4...
client/src/MagicModeMarker.js
jghibiki/Doc
import React from 'react'; import AllInclusiveIcon from '@material-ui/icons/AllInclusive'; import Chip from '@material-ui/core/Chip'; import Avatar from '@material-ui/core/Avatar'; import MagicModeMarkerDialog from './MagicModeMarkerDialog.js' const MagicModeMarker = (props) => { const [dialogOpen, setDialogOpen...
app/containers/LinkFormContainer/index.js
GeertHuls/react-async-saga-example
/* * * LinkFormContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectLinkFormContainer from './selectors'; import LinkForm from '../../components/LinkForm'; import { addLink, addLinkCancelled } from './actions'; export class LinkFormContainer extends React.Component { // es...
app/scripts/routes.js
shawnrmoss/rsk
import React from 'react'; import { Router, Route } from 'react-router'; import createHistory from 'history/lib/createHashHistory' import App from './pages/app.jsx'; import Home from './pages/home.jsx'; import Info from './pages/info.jsx'; import NotFound from './pages/notFound.jsx'; import Login from './pages/Login/...
examples/js/style/table-class-table.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; ...
client/src/components/layout/Header.js
anarinya/feedback-panda-server
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { Checkout } from '../billing'; class Header extends Component { renderContent() { const { auth } = this.props; const { credits } = auth || 0; switch (auth) { case false...
js/components/blocks/EmptyUserBlock.js
Sacret/githubify
'use strict'; import React from 'react'; /** * Empty user block contains message and links */ const EmptyUserBlock = React.createClass({ render() { return ( <div className="empty-user-block"> <div className="empty-user-block-content text-center"> <h3> Github user {this.pr...
src/Badge.js
kwnccc/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
components/Tutorial/Article.stories.js
cofacts/rumors-site
import React from 'react'; import Article from './Article'; import { withKnobs, text, select } from '@storybook/addon-knobs'; export default { title: 'Tutorial/Article', component: 'Article', decorators: [withKnobs], }; export const Normal = () => ( <div style={{ padding: '20px' }}> <Article label={...
examples/composable-components/redux/src/composable-component/index.js
Mercateo/component-check
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import DynamicComponent from '../dynamic-component'; import * as actionCreators from '../action-creators'; import styles from './composable-component.css'; class ComposableComponent extends Comp...
node_modules/react-headroom/www/html.js
aimanaiman/supernomadfriendsquad
import React from 'react' import DocumentTitle from 'react-document-title' import { prefixLink } from 'gatsby-helpers' import { GoogleFont, TypographyStyle } from 'typography-react' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ render () { ...
app/src/components/content/UserPage/GroupStatus/index.js
ouxu/NEUQ-OJ
/** * Created by out_xu on 17/5/16. */ import React from 'react' import { Card, Table } from 'antd' import './index.less' const GroupStatus = (props) => { const columns = [ { title: 'avatar', dataIndex: 'avatar', width: 48 }, { title: 'content', dataIndex: 'content', rend...
app/src/containers/Library.js
wtfil/google-music-unofficial-client
import React from 'react'; import {connect} from 'react-redux'; import {loadPlaylists} from '../actions'; import Row from '../components/Row'; @connect(state => state) export default class Library extends React.Component { static onEnter(dispatch) { return dispatch(loadPlaylists()); } render() { const {music} =...
docs/app/Examples/collections/Grid/Variations/GridStretchedExample.js
jamiehill/stardust
import React from 'react' import { Grid, Segment } from 'stardust' const { Column, Row } = Grid const GridStretchedExample = () => ( <Grid columns={3} divided> <Row stretched> <Column> <Segment>1</Segment> </Column> <Column> <Segment>1</Segment> <Segment>2</Segment> ...
docs/src/app/components/pages/components/Card/ExampleWithAvatar.js
w01fgang/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleWithAvatar = () => ( <Card> <CardHeader title="URL Avatar" subtitle="Subtitle" avatar="images/jsa-128.jpg"...
assets/js/components/Truncate.js
mlapierre/Winds
import React from 'react' var Entities = require('html-entities').AllHtmlEntities, entities = new Entities(), normalizeWhitespace = require('normalize-html-whitespace') const truncate = (text, length = 15) => { if (text.length < length) return text return text.substring(0, length) + '...' } export de...
app/containers/LanguageProvider/index.js
keithalpichi/NobleNote
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/components/FlashMessage/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './flash-message.scss'; const TIMEOUT = 2000; const FlashMessage = React.createClass({ beginTimeout () { const duration = this.props.duration || TIMEOUT; return setTimeout(() => this.props.hideFlashMessage(), duration); }, componentDidMount () { this.t...
stories/Breadcrubms/ExampleWithOnClick.js
skyiea/wix-style-react
import React from 'react'; import styles from './ExampleBreadcrumbs.scss'; import Breadcrumbs from '../../src/Breadcrumbs/Breadcrumbs'; const items = [{id: '1', value: 'first item'}, {id: '2', value: 'second item'}, {id: '3', value: 'third item'}]; export default () => <div> <div className={`${styles.onGrayBac...
components/preview/preview.js
DarcyChan/darcychan.com
/* Preview Component. The preview link component with a preview image, name, and category of the project. */ // External components import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; // Internal components import { Icon, Glyph, Image } from 'components...
docs/src/stories/CustomWidths.js
byumark/react-table
/* eslint-disable import/no-webpack-loader-syntax */ import React from 'react' import _ from 'lodash' import namor from 'namor' import ReactTable from '../../../lib/index' class Story extends React.PureComponent { render () { const data = _.map(_.range(5553), d => { return { firstName: namor.gener...
src/js/components/Calendar/stories/SundayFirstDay.js
HewlettPackard/grommet
import React from 'react'; import { Box, Calendar, Grommet } from 'grommet'; import { grommet } from 'grommet/themes'; // When the first day of the month is Sunday, and the request of firstDayOfWeek // is Monday, we are verifing we are not missing a week, issue 3253. export const SundayFirstDayCalendar = () => ( <G...
app/components/AssignedProblem.js
jmpressman/REACTO-platform
import React from 'react'; import { connect } from 'react-redux'; import Carousel from 'nuka-carousel'; const AssignedProblem = (props) => { console.log('PROBLEM PROPS', props); const assignedProblem = props.assignedProblem; return ( <div className="col-lg-10"> <h3>{assignedProblem.name}</h3> ...
app/javascript/mastodon/features/followers/index.js
tootsuite/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
NewsDemoNavTab/Component/ZPFind.js
HAPENLY/ReactNative-Source-code-Demo
/** * Created by zhaopengsong on 2016/12/13. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; var ZPFind = React.createClass({ render() { ...
examples/src/components/MultiSelectField.js
webcoding/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var MultiSelectField = React.createClass({ displayName: 'MultiSelectField', propTypes: { label: React.PropTypes.string, ...
stories/Button.js
schneckentempo/ClicksAndImpressions
import React from 'react'; const buttonStyles = { border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3px 10px', margin: 10, }; const Button = ({ children, onClick }) => ( <button style={buttonStyles} onClick={onClick} > {chil...