path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/containers/HomePage/index.js
jshumakerpruitt/ContactsClient
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { Flex } from 'reflexbox'; import { Button } from 'rebass'; // TODO: consider moving auth DUCKS to Home...
demo/app/App.js
brentertz/react-component-library-starter-kit
'use strict'; import React, { Component } from 'react'; import { Hello } from '../../components/index'; class App extends Component { static displayName = 'App'; render() { return ( <div> <h1>Demo</h1> <hr /> <Hello /> <Hello name="Kitty" /> </div> ); } } ex...
src/client/post/Write/DeleteDraftModal.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Modal } from 'antd'; import { injectIntl, FormattedMessage } from 'react-intl'; import { deleteDraft } from './editorActions'; import { notify } from '../../app/Notification/notificationActions'; @injectIntl ...
client/src/components/underConstruction.js
JoeDou/wesayidou
import React from 'react' export default () => ( <div className="wrapper height100"> <div className="title"> <h2>Building a Happily Ever After...</h2> <h2>Please Check Back</h2> </div> <img src={'/assets/images/underConstruction.jpg'} className="img-responsive"> </img> </div> )
EEG101/src/interface/WaveGraphView.js
tmcneely/eeg-101
// WaveGraphView.js // Same as PSDGraphView, but also draws colored bands representing different brain waves import { PropTypes } from 'react'; import { requireNativeComponent, View, StyleSheet, Text } from 'react-native'; import React, { Component } from 'react'; import Svg, { Rect, Line } from 'react-native-svg'; im...
react-ui/src/containers/Settings/Settings.js
hokustalkshow/find-popular
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import UpdateEmail from '../../components/UpdateEmail/UpdateEmail'; import UpdatePayment from '../../components/UpdatePayment/UpdatePayment'; import { updateEmail, updateStripeCard, togglePayment...
docs/app/Examples/modules/Popup/Variations/PopupExampleFlowing.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Header, Button, Popup, Grid } from 'semantic-ui-react' const PopupExampleFlowing = () => ( <Popup trigger={<Button>Show flowing popup</Button>} flowing hoverable > <Grid centered divided columns={3}> <Grid.Column textAlign='center'> <Header as='h4'>B...
src/error/index.js
guokeke/image-editor
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/views/Tutorial.js
randyf99/resource-center
import React, { Component } from 'react'; class Tutorial extends Component { render() { return <h1>Tutorial View</h1>; } } export default Tutorial;
src/svg-icons/navigation/more-horiz.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMoreHoriz = (props) => ( <SvgIcon {...props}> <path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-...
gifbox-ui/src/components/GifGridList.js
timmygee/gifbox
import React from 'react'; import GifCard from '/components/GifCard'; import styles from '/styles.scss'; const GifGridList = ({ payload }) => ( <div className={ styles['gif-grid'] }> { payload.results.map(item => <GifCard key={ item.id } data={ item } />) } </div> ); GifGridList.propTypes = { p...
SQL/client/src/components/smart/Header/index.js
thebillkidy/MERGE-Stack
import React from 'react'; import Head from 'next/head' import Link from 'next/link' import NProgress from 'nprogress' import Router from 'next/router' import { gql, graphql, withApollo } from 'react-apollo'; import Container from '../../dumb/Container'; import { authenticate, logout, getToken } from '../../../utils/Au...
components/Canvas/StagesCanvasManager.js
priley86/labs-console
import React from 'react' import { DragDropContext } from 'react-dnd' import MouseBackEnd from 'react-dnd-mouse-backend' import {mockContainerNodes} from './containerNodes' import update from 'immutability-helper' import {deepClone} from '../../core/helpers' import {infraImage} from './CanvasHelpers' import {emptyStage...
public/js/components/profile/visitor/profile.react.js
rajikaimal/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import CardActions from 'material-ui/lib/card/card-actions'; import CardHeader from 'material-ui/lib/card/card-header'; import FlatButton from 'material-ui/lib/flat-button'; import CardText from 'material-ui/lib/card/card-text'; import Divider fro...
src/decorators/withViewport.js
nithinpeter/nightpecker
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
client/react/panel/PanelLinksNavbar.js
uclaradio/uclaradio
// PanelLinksNavbar.js import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; const linksURL = '/panel/api/userlinks'; /** * Navbar which loads links available to the current user logged * into the DJ panel */ const PanelLinksNavbar = React.createClass({ getInitialState() { return...
docs/src/components/navbar.js
isaacs/node-tap
import React from 'react'; import {Flex} from 'rebass'; import styled from 'styled-components'; import {theme, breakpoints} from '../theme'; import hamburgerIcon from '../images/hamburger.svg'; import MobileNavbar from './mobileNavbar'; import NavLinks from './NavLinks'; import {Link as GatsbyLink} from 'gatsby'; cons...
src/svg-icons/social/cake.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialCake = (props) => ( <SvgIcon {...props}> <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l...
src/components/About.js
brentsowers1/coordinatecommons-frontend
import React from 'react'; import { Container } from 'react-bootstrap'; const About = () => ( <Container> <h1>Coordinate Commons</h1> <p>Welcome to Coordinate Commons! This is a very early stage application to keep track of places you've visited. Places can be anything that can be represented geographically...
src/svg-icons/image/transform.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTransform = (props) => ( <SvgIcon {...props}> <path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/> </SvgIcon> ); ImageTransform = pure(I...
src/server.js
gaearon/react-redux-universal-hot-example
import Express from 'express'; import React from 'react'; import Router from 'react-router'; import Location from 'react-router/lib/Location'; import routes from './views/routes'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy...
examples/js/manipulation/insert-row-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-alert: 0 */ /* eslint guard-for-in: 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...
src/components/Footer.js
react-puzzle-games/15-puzzle
import React from 'react'; import styled from 'styled-components'; import GitHubIcon from './GitHubIcon'; const FooterContent = styled.div` flex:none; background-color: rgb(232, 232, 232); color: rgb(0, 0, 0); padding-top: 10px; text-align: center; & .footerheart { color: #D4726A; } & .footerlink...
src/icons/SocialTumblrOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SocialTumblrOutline extends React.Component { render() { if(this.props.bare) { return <g> <path d="M321.2,396.3c-11.8,0-22.4-2.8-31.5-8.3c-6.9-4.1-11.5-9.6-14-16.4c-2.6-6.9-3.6-22.3-3.6-46.4V224h96v-64h-96V48...
src/components/nav.js
renamos/traderjoes-db
import React, { Component } from 'react'; import { slide as Menu } from 'react-burger-menu'; class Nav extends Component { render() { return (<div id="nav-container"> <Menu right> <a id="home" className="menu-item" href="/">Home</a> <a id="about" class...
src/subPages/InteractionsSubPage/index.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import T from 'prop-types'; import FullyLoadedTable from 'components/Table/FullyLoadedTable'; import loadable from 'higherOrder/loadable'; import Link from 'components/generic/Link'; import Loading from 'components/SimpleCommonComponents/Loading'; import f from 'styles/foundation';...
src/index.js
AnisaIshmail/IdeaZone
import React from 'react'; import ReactDOM from 'react-dom'; import { Route, Router, IndexRoute, hashHistory } from 'react-router'; import './css/main.css'; import App from './components/App'; import IdeaPage from './components/idea-page/IdeaPage'; import SearchPage from './components/search-page/SearchPage'; import ...
components/warning/index.js
dotKom/glowing-fortnight
import React from 'react'; const Warning = () => { return ( <div id="warning" className="component"> <h1>Har du opplevd noe ugreit?</h1> <p> Online har to kontaktpersoner som kan hjelpe under fadderukene, Thea Karin Fladby (21) og Sindre Langaard (23). Vi ønsker at alle skal ha det br...
blueocean-material-icons/src/js/components/svg-icons/av/closed-caption.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvClosedCaption = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v1zm7...
src/routes/savoringYourChild/index.js
goldylucks/adamgoldman.me
import React from 'react' import SavoringYourChild from './SavoringYourChild' import Layout from '../../components/Layout' import SavoringToolResponseContainer from '../../components/SavoringToolResponseContainer' function action({ path }) { return { chunks: ['savoringYourChild'], title: 'Savoring Your Chi...
src/App.js
alexfigtree/CoreID
import React, { Component } from 'react'; import { BrowserRouter as Router, Route, } from 'react-router-dom'; import Index from './Dashboard/index'; import Sandbox from './components/Sandbox'; import Profile from './components/Profile'; import Documents from './components/Documents'; import Signatures from '....
src/containers/ReviewsContainer.js
orballo/orballo.github.io
import React, { Component } from 'react'; import Reviews from '../components/Reviews'; import reviews from '../data/reviews.json'; class ReviewsContainer extends Component { constructor() { super(); this.state = { reviews: reviews, }; } render() { return <Reviews reviews={this.state.revie...
node_modules/react-router/es6/IndexRoute.js
danshapiro-optimizely/bandwidth
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
webApp/src/Components/NoStream.js
s-law/silent-disco
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { History } from 'react-router'; import reactMixin from 'react-mixin'; // MATERIAL UI import List from '../../node_modules/material-ui/lib/lists/list'; import Card from '../../node_modules/material-ui/lib/card/card'; import CardText fr...
src/svg-icons/editor/insert-link.js
barakmitz/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...
src/svg-icons/maps/streetview.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsStreetview = (props) => ( <SvgIcon {...props}> <path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d...
src/pages/resume/education/index.en.js
angeloocana/angeloocana
import React from 'react'; import EducationsPage from '../../../components/Resume/EducationsPage'; import graphql from 'graphql'; export default (props) => <EducationsPage {...props} />; export const pageQuery = graphql` query ResumeEducationEn { site { siteMetadata { resume { me...
src/containers/PetitionLinksField.js
iris-dni/iris-frontend
import React from 'react'; import { stopSubmit, touch } from 'redux-form'; import { connect } from 'react-redux'; import { fetchOpenGraph, removeOpenGraph } from 'actions/OpenGraphActions'; import PetitionLinksField from 'components/PetitionLinksField'; const PetitionLinksFieldContainer = (props) => ( <PetitionLinks...
app/components/GameShow/Header.js
cdiezmoran/AlphaStage-2.0
import React from 'react'; import { string } from 'prop-types'; import styles from './Header.scss'; const Header = ({ coverImage, modalId }) => { const openModal = () => { document.getElementById(modalId).style.display = 'block'; }; return ( <div className={styles.Header} style={{ background...
src/components/swatches/SwatchesColor.js
casesandberg/react-color
import React from 'react' import reactCSS from 'reactcss' import * as colorUtils from '../../helpers/color' import { Swatch } from '../common' import CheckIcon from '@icons/material/CheckIcon' export const SwatchesColor = ({ color, onClick = () => {}, onSwatchHover, first, last, active }) => { const styles = reac...
packages/reactor-kitchensink/src/examples/FormFields/FieldSet/FieldSet.js
sencha/extjs-reactor
import React from 'react'; import { FieldSet, TextField, FormPanel } from '@extjs/ext-react'; export default function FieldSetExample() { return ( <FormPanel shadow> <FieldSet title="About You" instructions="Tell us about yourself." width={300}> <TextField label="First Name" lab...
src/app/icons.js
VasilyShelkov/ClientRelationshipManagerUI
import React from 'react'; import LockOpenIcon from 'material-ui/svg-icons/action/lock-open'; import LockClosedIcon from 'material-ui/svg-icons/action/lock-outline'; import MeetingIcon from 'material-ui/svg-icons/places/business-center'; import BusinessIcon from 'material-ui/svg-icons/social/group'; export const Unpr...
src/routes/daily-report/index.js
ynu/ecard-wxe
import React from 'react'; import Report from './Report'; export default { path: '/shop/:shopId/daily-bill/:accDate', async action({ params }) { return { title: '云南大学一卡通日结账单', component: <Report {...params} />, }; }, };
fields/types/datearray/DateArrayField.js
ratecity/keystone
import ArrayFieldMixin from '../../mixins/ArrayField'; import DateInput from '../../components/DateInput'; import Field from '../Field'; import React from 'react'; import moment from 'moment'; const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'; const DEFAULT_FORMAT_STRING = 'Do MMM YYYY'; module.exports = Field.create({ dis...
app/src/components/SearchInput.js
quiaro/chunches
import React from 'react' import StyledSearchInput from './styled/SearchInput'; export default () => ( <StyledSearchInput className="pv3"> <i className="material-icons">search</i> <input type="text" className="db pa2 ba b--black-40 br-pill" placeholder="Buscar ..." /> </StyledSearchInput> )
examples/ModalNoTrigger.js
mattBlackDesign/react-materialize
import React from 'react'; import Modal from '../src/Modal'; import Button from '../src/Button'; export default <div> <Button onClick={() => { $('#foo').modal('open'); }}>Show Modal</Button> <Modal id='foo' header='Modal Header'> Lorem ipsum dolor sit amet </Modal> </div>;
src/main/resources/static/bower_components/jqwidgets/demos/react/app/editor/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxEditor from '../../../jqwidgets-react/react_jqxeditor.js'; class App extends React.Component { render () { return ( <JqxEditor width={800} height={400}> &lt;b&gt;jqxEditor&lt;/b&gt; is a HTML text editor designed to simplify we...
src/svg-icons/notification/adb.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAdb = (props) => ( <SvgIcon {...props}> <path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14...
app/jsx/assignments/ModeratedStudentList.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/svg-icons/action/settings-power.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPower = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-...
dev/react-subjects/subjects/Redux/exercise.js
AlanWarren/dotfiles
/* The goal of this exercise is to gain some hands-on experience using Redux to manage the state of a React application. In the process, we'll also learn how to use Redux to communicate changes to a real API server. - Make the <App> update its state so it displays the contacts when the store changes (hint: use s...
node_modules/enzyme/src/version.js
dramaking/planner
import React from 'react'; export const VERSION = React.version; export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = VERSION.slice(0, 3) === '15.';
src/js/components/ui/CheckboxRounded/CheckboxRounded.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './CheckboxRounded.scss'; import RoundedIcon from "../RoundedIcon/RoundedIcon"; export default class CheckboxRounded extends Component { static propTypes = { onClickHandler : PropTypes.func, checked ...
src/components/FetchButton.js
aastein/crypto-trader
import React from 'react'; import PropTypes from 'prop-types'; import Loader from './Loader'; const FetchButton = props => ( ( <button className={props.className} onClick={props.onClick} disabled={props.isFetching}> { props.isFetching ? <Loader color={props.loaderColor} classNam...
node_modules/react-router/es6/RouterContext.js
narmeen12/ecan
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < argum...
app/renderer/presentational/layout/PrimaryRoot.js
AbsoluteZero273/Deezic
import React from 'react' import Header from './Header' import Library from './../pages/library' const PrimaryRoot = () => { return ( <div className='primary-root'> <Header /> <Library /> </div> ) } export default PrimaryRoot
lib/admin/admin/admin.js
DemocraciaEnRed/vicentelopez
import bus from 'bus' import React from 'react' import { render } from 'react-dom' import page from 'page' import dom from 'component-dom' import config from 'lib/config' import urlBuilder from 'lib/url-builder' import Sidebar from '../admin-sidebar/admin-sidebar' import TopicsListView from '../admin-topics/view' impor...
client/app/scripts/terminal-main.js
alban/scope
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../styles/main.scss'; import '../images/favicon.ico'; import configureStore from './stores/configureStore'; const store = configureStore(); function renderApp() { const TerminalApp ...
src/ButtonToolbar.js
nickuraltsev/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); ...
frontend/src/cms/index.js
tsurupin/portfolio
import 'shared/styles/vendors'; import 'shared/styles/globals'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { applyRouterMiddleware, Router, browserHistory } from 'react-router'; import useScroll from 'react-router-scroll'; import { createStore, applyMidd...
src/router.js
kaushik94/react-starter
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/http'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactPage'; ...
app/javascript/flavours/glitch/features/ui/components/compose_panel.js
Kirishima21/mastodon
import React from 'react'; import SearchContainer from 'flavours/glitch/features/compose/containers/search_container'; import ComposeFormContainer from 'flavours/glitch/features/compose/containers/compose_form_container'; import NavigationContainer from 'flavours/glitch/features/compose/containers/navigation_container'...
src/redux/utils/createDevToolsWindow.js
zzhero/tomatoTime
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from 'containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `width=...
public/assets/scripts/components/common/tags.js
luisfbmelo/reda
'user strict'; import React, { Component } from 'react'; import Tags from 'react-tagsinput' const TagsInput = (props) => { let inputProps={ className: 'react-tagsinput-input', placeholder: props.placeholder } return ( <div className={props.className}> <Tags ...
server/modules/render-entry.js
jl-/r-
'use strict'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { RoutingContext, match } from 'react-router'; import { Provider } from 'react-redux'; import createHistory from 'history/lib/createMemoryHistory'; import serialize from 'serialize-javascript'; import fs from 'fs'; impor...
src/js/index.js
wangwii/iseeu
import styles from '../sass/app.scss'; import React from 'react'; import _ from 'lodash'; console.log("hello React");
app/src/components/common/Loading.js
templatetools/trace
/** * Created by zhongfan on 2017/5/25. */ import React from 'react'; import { Toast } from 'react-weui/build/packages'; class Loading extends React.Component { render() { return ( <Toast icon="loading" show>加载中...</Toast> ); } } export default Loading;
fields/types/text/TextFilter.js
BlakeRxxk/keystone
import React from 'react'; import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; const MODE_OPTIONS = [ { label: 'Contains', value: 'contains' }, { label: 'Exactly', value: 'exactly'...
src/collections/Table/TableBody.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' function TableBody(props) { const { children, className } = props const classes = cx(className) const rest = getUnhandledProps(Ta...
packages/carbon-react/src/components/Breadcrumb/Breadcrumb.stories.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { Breadcrumb, BreadcrumbItem } from 'carbon-components-react'; import React from 'react'; export default { title: 'Components/Bread...
src/components/seo.js
radibit/radibit.com
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { StaticQuery, graphql } from 'gatsby'; const detailsQuery = graphql` query DefaultSEOQuery { site { siteMetadata { title description author siteUrl } } } `; ...
docs/app/Examples/elements/Label/Content/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const LabelContent = () => ( <ExampleSection title='Content'> <ComponentExample title='Detail' description='A label ...
src/svg-icons/action/system-update-alt.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSystemUpdateAlt = (props) => ( <SvgIcon {...props}> <path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/> ...
src/views/QuotesNew.js
abachuk/quotes
import React from 'react' import 'styles/core.scss' import Firebase from 'firebase' import { connect } from 'react-redux' import constants from 'utils/constants' import { actions as quoteActions } from '../redux/modules/quote' import {reduxForm} from 'redux-form' const ref = new Firebase(constants.FIREBASE) const quot...
layouts/react-redux/client/containers/pages/_Page.js
nfour/js-structures
import React from 'react' import Header from '../../components/Header' export default class Page extends React.Component { render() { return ( <div className="page"> <Header drawer={this.props.drawer} location={this.props.location} /> {this.props.children} ...
source/common/components/Main/Main.js
shery15/react
// import React from 'react'; // import TodoHeaderContainer from '../../containers/TodoHeaderContainer'; // import TodoListContainer from '../../containers/TodoListContainer'; // // const Main = () => ( // <div> // <TodoHeaderContainer /> // <TodoListContainer /> // </div> // ); // // export default Main; ...
new-lamassu-admin/src/pages/Maintenance/MachineDetailsCard.js
naconner/lamassu-server
import { Grid /*, Divider */ } from '@material-ui/core' import { makeStyles } from '@material-ui/core/styles' import BigNumber from 'bignumber.js' import React from 'react' // import { Status } from 'src/components/Status' // import { ReactComponent as LinkIcon } from 'src/styling/icons/button/link/zodiac.svg' import ...
examples/3-complex/src/index/Router.js
chikara-chan/react-power
import React from 'react' import { HashRouter, Route, Redirect, Switch } from 'react-router-dom' import loadable from 'react-loadable' import Layout from './shared/components/Layout' function Router() { return ( <HashRouter> <Layout> <Switch> <Route exact path="/" render={() => <Redirect ...
src/parser/druid/guardian/modules/spells/Pulverize.js
FaideWW/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS';...
www/src/components/PropTable.js
glenjamin/react-bootstrap
import { graphql } from 'gatsby'; import sortBy from 'lodash/sortBy'; import capitalize from 'lodash/capitalize'; import React from 'react'; import PropTypes from 'prop-types'; import Badge from 'react-bootstrap/lib/Badge'; import Table from 'react-bootstrap/lib/Table'; import styled from 'astroturf'; const Code = ...
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js
rhaedes/material-ui
import React from 'react'; import { Step, Stepper, StepButton, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * A basic vertical non-linear implementation */ class VerticalNonLinear extends React.Component {...
react_export_input_sample/index.android.js
devSC/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import setup from './setup'; AppRegistry.registerComponent('react_export_input_sample', () => setup);
client/src/App.js
jzizzo/JEM
import React, { Component } from 'react'; import Nav from './components/nav/Nav' import Home from './components/home/Home' import Signup from './components/signup/Signup' import Login from './components/login/Login' import Stream from './components/stream/Stream' import './App.css'; // home // signup // login class A...
src/client/assets/js/components/Cell.js
me-box/iot.red
import React, { Component } from 'react'; import './styles/cells.scss'; class Cell extends React.Component { constructor(props){ super(props); } render() { return (<div> <div className="flexrow" style={{flexBasis:0, overflow:'auto'}}> {this.props.title && <div className="title"> <div className="...
client/modules/polls/VoteForm/VoteDialog.js
ncrmro/reango
import React from 'react' import Dialog from 'react-mdc-web/lib/Dialog/Dialog' import DialogHeader from 'react-mdc-web/lib/Dialog/DialogHeader' import DialogTitle from 'react-mdc-web/lib/Dialog/DialogTitle' import DialogBody from 'react-mdc-web/lib/Dialog/DialogBody' import Button from 'react-mdc-web/lib/Button/Button'...
src/svg-icons/image/hdr-weak.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrWeak = (props) => ( <SvgIcon {...props}> <path d="M5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm12-2c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4...
taskflow-front-end/src/UserArea.js
maikowtesch/task-flow
import React, { Component } from 'react'; import { Container, Grid, Menu, Segment, Button, Header } from 'semantic-ui-react' import 'semantic-ui/dist/semantic.min.css'; import TaskBoard from './TaskBoard' import ManagedTasks from './ManagedTasks' import NewTask from './NewTask' class UserArea extends Component { con...
src/svg-icons/communication/phonelink-lock.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkLock = (props) => ( <SvgIcon {...props}> <path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ...
src/routes.js
ManYang/react-yelp-web
import React from 'react' import {browserHistory, Router, Route, Redirect} from 'react-router' import makeMainRoutes from './views/routes' export const makeRoutes = () => { const main = makeMainRoutes(); return ( <Route path=''> {main} </Route> ) } export default makeRoutes
src/TeamPage/TeamPage.js
velesin/retroinator
import React from 'react'; import './TeamPage.css'; import { ICONS } from '../shared'; import { PendingActions } from './PendingActions/PendingActions'; import { SelectedTeamPageHeader } from './SelectedTeamPageHeader/SelectedTeamPageHeader'; import { SelectedTeamMembers } from './SelectedTeamMembers/SelectedTeamMemb...
src/lib/reactors/Bookmarks/Bookmark.js
EsriJapan/photospot-finder
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // 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 us...
blueocean-material-icons/src/js/components/svg-icons/editor/format-color-reset.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatColorReset = (props) => ( <SvgIcon {...props}> <path d="M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31zm-.88 3.12L12.5 12.5 5.27 5.27 4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6 1.52 0...
app/javascript/mastodon/features/ui/components/column_subheading.js
Toootim/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
src/SelectorWithPanel/Panel/BlockList/Row.js
quadas/ui-components
import React from 'react'; import classNames from 'classnames'; import CloseButton from './CloseButton'; const Row = ({ r, onClick, children, reserved, noTip, text }) => { const klassNames = classNames(['callout', 'text-hidden', { 'callout-success': [true, 'included'].includes(r.sele...
app/components/global/PreferredNode.js
aaroncox/vessel
// @flow import React, { Component } from 'react'; import { Form, Input } from 'formsy-semantic-ui-react' import { Divider, Grid, Header, Label, Segment, Select } from 'semantic-ui-react'; export default class RPC extends Component { onValidSubmit = ( e: SyntheticEvent ) => { const { setPreference } = this...
src/app/plugins/InfoIcon.js
lili668668/lili668668.github.io
import React from 'react' import { withStyles } from '@material-ui/core/styles' import Typography from '@material-ui/core/Typography' import compose from '../utils/compose' import InfoIconBase from '../templates/InfoIconBase' import InfoIconButton from '../components/InfoIconButton' import FrameOfInfoIcon from '../com...
packages/expo-checkbox/build/ExpoCheckbox.android.js
exponent/exponent
import React from 'react'; import CheckboxUnavailable from './CheckboxUnavailable'; function maybeRequireNativeCheckbox() { try { // Temporary for SDK 40 until we make our own native implementation return require('react-native/Libraries/Components/CheckBox/CheckBox'); } catch (error) { ...
src/components/UIShell/SideNavLinkText.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { settings } from 'carbon-components'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; co...
packages/bonde-styleguide/src/assets/BrazilMap/BrazilMap.js
ourcities/rebu-client
import React from 'react' const applyMargin = (margin) => ({ marginLeft: margin.left || margin.x || 0, marginRight: margin.right || margin.x || 0, marginTop: margin.top || margin.y || 0, marginBottom: margin.bottom || margin.y || 0 }) const BrazilMap = ({ size, width, height, margin }) => ( <svg xmlns='...
src/containers/Ecommerce/algolia/instantSearch.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { connect } from 'react-redux'; import DesktopView from './desktopView'; import MobileView from './mobileView'; class InstantSearch extends Component { render() { const { view } = this.props; const View = view !== 'MobileView' ? DesktopView : MobileView; r...