path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/App.js
joshsalom/quarrelofcuties
import React from 'react'; import Header from './Header'; import Main from './Main'; class App extends React.Component { render() { return ( <div> <Header /> <div className="container"> <Main /> </div> </div> ); } } export default App;
src/experiences.js
VoxelDavid/voxeldavid-website
// Contains data for past work experience import React from 'react'; import { Link } from 'react-router-dom'; import Company from './Company'; import urls from './urls'; const novaly = new Company('Novaly Studios', urls.novaly); const roblox = new Company('Roblox Corporation', urls.roblox); // const bitsquid = new Co...
src/components/productivity/boards/Show.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React from 'react'; import translate from 'app/global/helper/translate'; import { browserHistory } from 'react-router'; import { Col, Spin } from 'antd'; const Board = (props) => { const { data } = props; const handleClick = () => { browserHistory.push(`/boards/${ data.id }`); } // co...
src/components/PaymentReadonlyForm/index.js
bruceli1986/contract-react
import React from 'react' import { Collapse } from 'react-bootstrap' import { Link } from 'react-router' import FileListItem from 'components/FileListItem' import './style.scss' /** 新版审批合同表单*/ class PaymentReadOnlyForm extends React.Component { static propTypes = { invoice: React.PropTypes.shape({ poNo: Re...
lib/components/term.js
martinvd/hyper
/* global Blob,URL,requestAnimationFrame */ import React from 'react'; import Color from 'color'; import uuid from 'uuid'; import hterm from '../hterm'; import Component from '../component'; import getColorList from '../utils/colors'; import terms from '../terms'; import notify from '../utils/notify'; export default c...
packages/core/src/icons/components/Printer.js
iCHEF/gypcrete
import React from 'react'; export default function SvgPrinter(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32" {...props} > <path fill="none" d="M0 0h32v32H0z" /> <path d="M22 25H10a3 3 0 01-3-3v-9a3 3 0 0...
src/utils/defaultClearRenderer.js
foxbroadcasting/react-select
import React from 'react'; export default function clearRenderer () { return ( <span className="Select-clear" dangerouslySetInnerHTML={{ __html: '&times;' }} /> ); };
src/containers/ProtocolScreen.js
codaco/Network-Canvas
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { TransitionGroup } from 'react-transition-group'; import { get } from 'lodash'; import { Fade } from '@codaco/ui/lib/components/Transitions'; import { getCSSVariableAsNumber } from '@codaco/ui/li...
src/server.js
ames89/keystone-react-redux
import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import favicon from 'serve-favicon'; import compression from 'compression'; import cookieParser from 'cookie-parser'; import httpProxy from 'http-proxy'; import path from 'path'; import PrettyError from 'pretty-error'; im...
components/ui/settings/SettingsSwitch.js
Jack3113/edtBordeaux
import React, { Component } from 'react'; import { StyleSheet, Switch, Text, View, ViewPropTypes } from 'react-native'; import PropTypes from 'prop-types'; export default class SettingsSwitch extends Component { constructor() { super(); this.state = { isInEditMode: false, }; ...
src/interface/others/CooldownOverview.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Cooldown from './Cooldown'; const CooldownOverview = ({ fightStart, fightEnd, cooldowns, applyTimeFilter }) => ( <ul className="list"> {cooldowns.map(cooldown => ( <li key={`${cooldown.spell.id}-${cooldown.start}`} className="item clear...
client/ComponentLibrary.js
CGamesPlay/hterminal
import React from 'react'; import classnames from 'classnames'; import CSS from './ComponentLibrary.css'; function basicTag(name, attributes) { var tag = { name: name }; if (attributes) { tag.propTypes = attributes; } return tag; } var allowedTags = [ 'div', 'span', 'strong', 'b', 'i', 'em', 'u', 'strik...
public/js/pages/WorkshopSetsPage.js
JasonShin/HELP-yo
/** * Created by Shin on 24/09/2016. */ import React from 'react'; import WorkshopSetsStore from '../stores/WorkshopSetsStore'; import WorkshopSetList from '../components/WorkshopSetList'; import config from '../../config/config'; const ReactCSSTransitionGroup = require('react-addons-css-transition-group'); export ...
src/components/Navbar.js
jamez14/jams-tweeter
import React, { Component } from 'react'; export class Navbar extends Component { render() { return ( <nav className="navbar navbar-fixed-top navbar-dark bg-primary"> <button className="navbar-toggler hidden-sm-up" type="button"> &#9776; </button> <div className="collapse ...
srcjs/main.js
wlainer/react-redux-tutorial
import React from 'react' import { render } from 'react-dom' import { Router, Route, IndexRoute, Link } from 'react-router' import { Provider } from 'react-redux' import store from './store' import { history } from './store' import App from './components/app'; import BookPanel from './components/BookPanel'; import A...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.js
amido/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(baseUser) { return [ { id: 1, name: '...
app/js/components/loading/loading.component.js
milk-shake/electron-pokemon
import React from 'react'; import ReactDOM from 'react-dom'; export default class LoadingComponent extends React.Component { constructor(props) { super(props); } render() { return <div class="loading"> <span class="ion ion-load-b"></span> </div> } }
src/svg-icons/file/file-upload.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFileUpload = (props) => ( <SvgIcon {...props}> <path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/> </SvgIcon> ); FileFileUpload = pure(FileFileUpload); FileFileUpload.displayName = 'FileFileUpload'; FileFil...
assets/js/app.js
ryo33/mytwitter
import "phoenix_html" import socket from "./socket" import React from 'react' import { connect, Provider } from 'react-redux' import { createReducer } from 'redux-act' import { render } from 'react-dom' import { combineReducers, applyMiddleware, createStore } from 'redux' import logger from 'redux-logger' import { Ic...
docs/src/app/components/pages/components/GridList/Page.js
ngbrown/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import gridListReadmeText from './README'; import gridListExampleSimpleCode from...
src/svg-icons/editor/format-align-justify.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignJustify = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignJustify = pure(EditorFormatAl...
src/svg-icons/image/leak-add.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLeakAdd = (props) => ( <SvgIcon {...props}> <path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-...
app/components/LocationSelector.js
Imaflora/atlasagropecuario
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Select from './Select' import Option from './Option' class LocationSelector extends Component { render() { return ( <div id="location-selector" className="align-center row-fluid"> ...
src/index.js
FranckCo/Operation-Explorer
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './components/root'; import registerServiceWorker from './registerServiceWorker'; import './css/style.css'; ReactDOM.render(<Root />, document.getElementById('base')); registerServiceWorker();
index.ios.js
mikecousins/moviechoices-mobile
/* @flow */ import React from 'react'; import { AppRegistry, } from 'react-native'; import MovieScene from './src/scenes/MovieScene.react'; class MovieChoices extends React.Component { render() { return ( <MovieScene /> ); } } AppRegistry.registerComponent('moviechoices', () => MovieChoices); exp...
test/fixtures/memo-function/expected.js
layershifter/babel-plugin-transform-react-handled-props
import PropTypes from 'prop-types'; import React from 'react'; const Example = React.memo(function Example() { return <div />; }); Example.handledProps = ["active", "children", "className"]; Example.defaultProps = { active: true }; Example.propTypes = { children: PropTypes.node, className: PropTypes.string }; e...
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_01/start/src/index.js
yevheniyc/Autodidact
import C from './constants' import React from 'react' import { render } from 'react-dom' import routes from './routes' import sampleData from './initialState' const initialState = (localStorage["redux-store"]) ? JSON.parse(localStorage["redux-store"]) : sampleData const saveState = () => localStorage["re...
packages/showcase/plot/width-height-margin.js
uber-common/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...
src/components/Markdown/Quote.js
jonahjoughin/blog.jough.in
import React from 'react'; import addFirstLastProps from '../../utilities/addFirstLastProps'; import addBooleanProp from '../../utilities/addBooleanProp'; const Quote = ({children}) => ( <div className = {"pv4 mb5 br3-ns bg-near-white tracked lh-copy tl"}> {addBooleanProp("inQuote",addFirstLastProps(children))} ...
src/svg-icons/communication/invert-colors-off.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationInvertColorsOff = (props) => ( <SvgIcon {...props}> <path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5...
src/parser/warlock/demonology/modules/talents/DemonicCalling.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { STATISTIC_ORDER } from 'interface/o...
app/javascript/mastodon/main.js
musashino205/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { setupBrowserNotifications } from './actions/notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = requ...
src/Components/NavBarDrawer.js
abhishekdhaduvai/readable_react
import React from 'react'; import PropTypes from 'prop-types'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import NavBar from './Utils/NavBar'; import Divider from 'material-ui/Divider'; class NavBarDrawer extends React.Component { PropTypes = { categories: PropTypes.ob...
client2/src/components/Video/index.js
frolicking-ampersand/CodeOut
import _ from 'underscore'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import SearchBar from './components/search_bar'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; import Navbar from './...
modules/dreamview/frontend/src/components/PNCMonitor/PlanningMonitor.js
jinghaomiao/apollo
import React from 'react'; import { inject, observer } from 'mobx-react'; import _ from 'lodash'; import SETTING from 'store/config/PlanningGraph.yml'; import ScatterGraph, { generateScatterGraph } from 'components/PNCMonitor/ScatterGraph'; import PlanningScenarioTable from 'components/PNCMonitor/PlanningScenarioTable...
src/client.js
JRF-tw/law_in_social_movement
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
src/routes/login/index.js
ben-miller/adddr.io
/** * adddr (https://www.adddr.io/) * * 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 Layout from '../../components/Layout'; impor...
src/components/Navbar.js
byoigres/minutes
import React from 'react'; import { Link as A } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; const Navbar = styled.div` position: fixed; width: 100%; box-shadow: 0 0.0625rem 1rem 0.25rem ${p => p.theme.minBlack}; /* var(--min-black) */ top: 0; ...
client/components/Main.js
escape-hatch/escapehatch
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { logout } from '../reducer/user'; import Navbar from './Navbar'; import Footer from './Footer'; import scssMain from './scss/Main.scss'; class Main extends React.Component { constructor(props) { super...
packages/ringcentral-widgets-docs/src/app/pages/Components/RegionSettingsPanel/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import RegionSettingsPanel from 'ringcentral-widgets/components/RegionSettingsPanel'; import styles from './styles.scss'; const props = {}; props.currentLocale = 'en-US'; props.availableCountries = [ { id: '1', isoCode: 'US', callingCode: '1' }, { id: '224', i...
src/client/components/Posts/MarkdownEditor.js
josh--newman/blog
import React from 'react'; import marked from 'marked'; import Editor from 'react-codemirror'; import '!style-loader!css-loader!codemirror/lib/codemirror.css'; import '!style-loader!css-loader!codemirror/theme/3024-day.css'; import 'codemirror/mode/markdown/markdown'; import styles from './MarkdownEditor.css'; const o...
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js
liuzwei/actor-platform
import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, Snackbar } from 'material-ui'; import ReactZeroClipboard from 'react-zeroclipboard'; import { KeyCo...
app/views/SearchNavigatorView.js
hippothesis/Recipezy
/* * Copyright 2017-present, Hippothesis, 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. */ 'use strict'; import React, { Component } from 'react'; import { Icon } from 'native-base'; import { StackN...
friday-ui/src/Components/PipeLines/index.js
freekbrinkhuis/friday
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class PipeLines extends Component { state = {pipelines:[]}; componentDidMount(){ fetch('/api/pipelines') .then(res => res.json()) .then(pipelines => this.setState({pipelines})) } render(){ ...
react/CareerLevelIcon/CareerLevelIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './CareerLevelIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function CareerLevelIcon(props) { return <Icon markup={svgMarkup} {...props} />; } CareerLevelIcon.displayName = 'CareerLevelIcon';
src/components/typography/index.js
adrienlozano/stephaniewebsite
import React from 'react'; import { PropTypes } from 'react' import styled, { css } from 'styled-components' import { compose, setDisplayName, componentFromProp, defaultProps, mapProps } from 'recompose'; import withStyle from "~/enhancers/with-style"; import { space, color, fontSize, removeProps } from 'styled-system'...
src/index.js
ezetreezy/reactTesting
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
app/App.js
mrtnzlml/native
// @flow import React from 'react'; import { type DimensionType, Dimensions } from '@kiwicom/mobile-shared'; import Navigation from './core/src/navigation'; import HotelsContextForm from './core/src/screens/hotelsStack/HotelsFormContext'; type initialProps = {| +dimensions: DimensionType, |}; export default funct...
packages/material-ui-icons/legacy/BatteryCharging90TwoTone.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L12.47 8H7v12.67C7 21.4 7.6 22 8.33 22h7.33c....
src/Table.js
erictherobot/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() { ...
public/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
gFelicio/agenda
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
integration/azure/authentication/ms-identity-v2/implicit-grant/ClientApp/src/components/NavMenu.js
advantys/workflowgen-templates
import React from 'react'; import { connect } from 'react-redux'; import { Collapse, Container, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink, Button } from 'reactstrap'; import './NavMenu.css'; class NavMenu extends React.Component { constructor (props) { super(props); this.toggle =...
app/javascript/mastodon/features/account_gallery/index.js
pfm-eyesightjp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { refreshAccountMediaTimeline, expandAccountMediaTimeline } from '../../actions/timelines'; impo...
src/client/components/Base/VenueForm/index.js
mweslander/veery
// Imports import React from 'react'; import PropTypes from 'prop-types'; // CSS import './index.scss'; // Components import LabelGroup from '../LabelGroup'; // PropTypes const propTypes = { handleChange: PropTypes.func, venue: PropTypes.object }; /* VenueForm <VenueForm/> */ function VenueForm({ handleCha...
src/routes/error/index.js
tinwaisi/take-home
/** * 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 ErrorPage from './Err...
packages/react/src/components/TextArea/TextArea.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 PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { WarningFilled16 } from '@carbon/...
src/components/PhotoDetail.js
debiasej/react-native-learning
import React from 'react'; import { Text, View, Image } from 'react-native'; import Card from './Card'; import CardSection from './CardSection'; const PhotoDetail = ({ photo }) => { const { title, author, thumbnail_image } = photo; const { thumbnailStyle, headerContentStyle, thumbnailContainerStyle, h...
docs/src/sections/FormSection.js
pombredanne/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function FormSection() { return ( <div className="bs-docs-section"> <h1 className="page-header"> <Anch...
pages/speakers.js
subvisual/2017.mirrorconf.com
import React from 'react'; import Footer from '../Components/Footer'; import SectionTitle from '../Components/SectionTitle'; import Section from '../Components/Section'; import SpeakerDetails from '../Components/SpeakerDetails'; import '../css/Components/SpeakersPage'; import SpeakerData from '../data/speakers'; con...
examples/demos/dnd.js
elationemr/react-big-calendar
import React from 'react' import events from '../events' import HTML5Backend from 'react-dnd-html5-backend' import { DragDropContext } from 'react-dnd' import BigCalendar from 'react-big-calendar' import withDragAndDrop from 'react-big-calendar/lib/addons/dragAndDrop'; import 'react-big-calendar/lib/addons/dragAndDrop...
src/example/config.js
get-focus/focus-redux
import moment from 'moment'; import React from 'react'; import {loadCivility} from './services/load-civility'; const format = ['DD/MM/YYYY', 'DD-MM-YYYY', 'D MMM YYYY']; //import AutoCompleteSelect from 'focus-components/components/input/autocomplete-select/field'; const _querySearcher = query => { let data = [ ...
src/modals/BhModal.js
emfmesquita/beyondhelp
import "./BhModal.scss"; import React, { Component } from 'react'; import { Modal } from 'react-bootstrap'; class BhModal extends Component { renderFooter = () => { return this.props.footer ? <Modal.Footer>{this.props.footer}</Modal.Footer> : null; } renderHeader = () => { if (!this.prop...
react/features/participants-pane/components/web/LobbyParticipantItems.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { LobbyParticipantItem } from './LobbyParticipantItem'; type Props = { /** * Opens a drawer with actions for a knocking participant. */ openDrawerForParticipant: Function, /** * If a drawer with actions should be displayed. */ overflowD...
packages/web/examples/ssr/pages/dynamicrangeslider.js
appbaseio/reactivesearch
import React, { Component } from 'react'; import { ReactiveBase, DynamicRangeSlider, SelectedFilters, ReactiveList, } from '@appbaseio/reactivesearch'; import PropTypes from 'prop-types'; import initReactivesearch from '@appbaseio/reactivesearch/lib/server'; import Layout from '../components/Layout'; import BookC...
app/components/SearchHeader.js
EleTeam/Shop-React-Native
/** * ShopReactNative * * @author Tony Wong * @date 2016-08-13 * @email 908601756@qq.com * @copyright Copyright © 2016 EleTeam * @license The MIT License (MIT) */ import React from 'react'; import { StyleSheet, View, Text, TouchableOpacity, Image, } from 'react-native'; import Common from '...
source/demo/ContentBox.js
edulan/react-virtualized
import React from 'react' import cn from 'classnames' import styles from './ContentBox.css' export function ContentBox ({ className, children, style }) { return ( <div className={cn(styles.ContentBox, className)} style={style} > {children} </div> ) } export function ContentBoxHeader ...
packages/material-ui-icons/src/ExitToApp.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ExitToApp = props => <SvgIcon {...props}> <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....
examples/basic/app.js
orokos/react-tabs
import React from 'react'; import { Tab, Tabs, TabList, TabPanel } from '../../lib/main'; const App = React.createClass({ render() { return ( <div> <p> <em>Hint:</em> <ul> <li>use keyboard tab to focus tabs</li> <li>use arrow keys to navigate focused tabs</li> </ul> </p> ...
app/javascript/mastodon/features/ui/components/list_panel.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchLists } from 'mastodon/actions/lists'; import { connect } from 'react-redux'; import { createSelector } from 'rese...
src/svg-icons/image/filter-vintage.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterVintage = (props) => ( <SvgIcon {...props}> <path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9...
app/components/LoadingIndicator/index.js
fascinating2000/productFrontend
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
src/components/DeviceAddButton.js
brnewby602/kinects-it
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import { NavLink } from './NavLink'; export const DeviceAddButton = () => ( <div> <NavLink to="/add-device"> <RaisedButton label="Add Device" /> </NavLink> </div> );
src/App.js
AlanMorel/aria
import React from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import Axios from 'axios'; import Config from './Config'; import About from './components/about/About'; import AdminPanel from './components/adminpanel/AdminPanel'; import Disclaimer from './components/disclaimer/Disclaimer';...
src/svg-icons/maps/local-taxi.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalTaxi = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4...
client/routes/routes.js
alexpalombaro/react-redux-starter-kit
import {Route} from 'react-router'; import React from 'react'; import {CoreLayout} from 'layouts'; import {HomeView, UserEditView, NotFoundView} from 'views'; export default ( <Route component={CoreLayout}> <Route name='home' path='/' component={HomeView}/> <Route path='edit' component={UserEditView}/> <...
src/routes/decisionDestroyer/MobileNav.js
goldylucks/adamgoldman.me
// @flow import React from 'react' import ClickOutside from 'react-click-outside' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import faBars from '@fortawesome/free-solid-svg-icons/faBars' import cx from 'classnames' import withStyles from 'isomorphic-style-loader/lib/withStyles' import history fr...
stories/Pagination.stories.js
algolia/react-instantsearch
import React from 'react'; import { storiesOf } from '@storybook/react'; import { boolean, number } from '@storybook/addon-knobs'; import { Panel, Pagination, SearchBox } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('Pagination', module); stories .add('default', (...
src/components/shapes/index.js
cgrinker/Akkad
import React from 'react'; import ShapeFactory from './ShapeFactory'; // import Sphere from "./Sphere"; // import Box from "./Box"; // import Disc from "./Disc"; // import Ground from "./Ground"; // import GroundFromHeightMap from "./GroundFromHeightMap"; // import Cylinder from "./Cylinder"; // import Torus from "./T...
src/client/routes.js
MizzKii/redux-todo
import React from 'react' import { Route, Redirect } from 'react-router' import { App, TodoList, TodoForm } from './components' export default ( <Route component={App} > <Route path="/view" component={TodoList} /> <Route path="/add" component={TodoForm} /> <Route path="/edit/:id" component={TodoFor...
src/snack-overflow/emcit/client/desktop/src/components/views/analyze/ReportTablePage.js
civiclee/Hack4Cause2017
import React from 'react' import { connect } from 'react-redux' import { Table, TableHead, TableRow, TableCell } from 'react-toolbox'; import { getReports } from 'api'; const ReportModel = { date: { type: String }, location: { type: String }, room_number: { type: String } } class ReportTablePage extends...
components/StructuredList.js
hellobrian/carbon-components-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import uid from '../lib/uniqueId'; class StructuredListWrapper extends Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, border: PropTypes.bool, sel...
actor-apps/app-web/src/app/components/JoinGroup.react.js
way1989/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
extensions/chat/client.js
axax/lunuc
import React from 'react' import Hook from 'util/hook' import Async from 'client/components/Async' import {CHAT_BASE_URL} from './constants' const ChatContainer = (props) => <Async {...props} load={import(/* webpackChunkName: "admin" */ './containers/ChatContainer')} /> const ChatIcon = (props) => <Async {...props} e...
src/container/profilePopup.js
thipokKub/Clique-WebFront-Personnal
/* eslint-disable */ import React, { Component } from 'react'; import autoBind from '../hoc/autoBind'; class profilePopup extends Component { // constructor(props) { // super(props); // } onExit() { this.props.toggle_pop_item(); } render() { return ( <div> ...
src/components/StructuredList/StructuredList-story.js
joshblack/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 React from 'react'; import { storiesOf } from '@storybook/react'; import CheckmarkFilled16 from '@carbon/icons-react/lib/checkmark--fi...
src/svg-icons/maps/place.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPlace = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"...
src/components/wrapper/index.js
chuckharmston/testpilot-contribute
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './index.css'; export class Wrapper extends Component { static propTypes = { extraClass: PropTypes.string.isRequired }; render() { const { children, extraClass, innerStyles } = this.props; return ( <div class...
templates/frontOffice/modern/components/React/SubmitButton/index.js
Lucanis/thelia
import Loader from '../Loader'; import React from 'react'; export default function SubmitButton({ label, isSubmitting, onClick = () => {}, className, ...props }) { return ( <button className={`btn relative ${className ? className : ''}`} onClick={onClick} type="button" {...props} > {isSubmitti...
app/app.js
thecodingwhale/conduit-clone
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/js/components/ui/reduxForm/Fieldset.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/radio/index.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, branch, renderComponent, setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import NoOptions from 'fields/components/no...
src/TextField/TextFieldHint.js
IsenrichO/mui-with-arrows
import React from 'react'; import PropTypes from 'prop-types'; import transitions from '../styles/transitions'; function getStyles(props) { const { muiTheme: { textField: { hintColor, }, }, show, } = props; return { root: { position: 'absolute', opacity: show ? 1 ...
demo/src/components/App/components/Examples/Examples.js
JacksonKearl/react-autosuggest-ie11-compatible
import styles from './Examples.less'; import React from 'react'; import Basic from 'Basic/Basic'; import MultipleSections from 'MultipleSections/MultipleSections'; import CustomRender from 'CustomRender/CustomRender'; import ScrollableContainer from 'ScrollableContainer/ScrollableContainer'; const Examples = () => ...
packages/mineral-ui-icons/src/IconLocalLibrary.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconLocalLibrary(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
src/main.js
LEINWAND/cordova-react-redux-app
/* @flow */ import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { Router, Route, browserHistory, IndexRoute } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import configureStore from './store/configureStore' import App from './con...
src/components/Navigation.js
Montana-Code-School/LifeCoach
import React from 'react'; import { Link } from 'react-router'; import { observer, inject } from 'mobx-react'; import { Navbar, Nav, NavItem, NavDropdown } from 'react-bootstrap'; import { NavbarHeader, NavbarToggle, NavbarCollapse, NavbarBrand } from 'react-bootstrap/lib/NavbarHeader'; import { LinkContainer } from 'r...
chapter-11/react_router_chunked/src/pages/App.js
mocheng/react-and-redux
import React from 'react'; import {view as TopMenu} from '../components/TopMenu'; const App = ({children}) => { return ( <div> <TopMenu /> <div>{children}</div> </div> ); }; export default App;
src/js/components/chart/Axis.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../utils/CSSClassnames'; import Intl from '../../utils/Intl'; const CLASS_ROOT = CSSClassnames.CHART_AXI...
blocks/dangerously-set-inner-html.js
UXtemple/panels
import React from 'react' const DangerouslySetInnerHTML = props => ( <div dangerouslySetInnerHTML={{ __html: props.html, }} data-block={props['data-block']} ref={props._ref} style={props.style} /> ) export default DangerouslySetInnerHTML
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/LifeCycle/LifeCycleHistory.js
thusithak/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...