path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/@lyra/form-builder/src/inputs/UrlInput.js
VegaPublish/vega-studio
//@flow import React from 'react' import TextInput from 'part:@lyra/components/textinputs/default' import FormField from 'part:@lyra/components/formfields/default' import PatchEvent, {set, unset} from '../PatchEvent' import type {Type, Marker} from '../typedefs' type Props = { type: Type, level: number, value: ?...
modules/Route.js
amsardesai/react-router
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './PropTypes'; import warning from 'warning'; var { string, bool, func } = React.PropTypes; /** * A <Route> is used to declare which components are rendered ...
src/index.js
skyline10101/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/svg-icons/action/perm-scan-wifi.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermScanWifi = (props) => ( <SvgIcon {...props}> <path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/> </SvgIcon> ); ActionPermScanWifi = pure(A...
storybook/stories/loading_indicator.story.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import { IntlProvider } from 'react-intl'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import en from 'mastodon/locales/en.json'; import LoadingIndicator from 'mastodon/components/loading_indicator'; storiesOf('LoadingIndicator', module) ...
src/pages/graph/Bfs/Bfs.js
hyy1115/react-redux-webpack3
import React from 'react' class Bfs extends React.Component { render() { return ( <div>Bfs</div> ) } } export default Bfs
app/index.js
thomasantony/budget-app-legacy
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.css'; import injectTapEventPlugin from 'react-tap-event-plugin'; // Needed for ...
docs/app/Examples/modules/Popup/index.js
aabustamante/Semantic-UI-React
import React from 'react' import Types from './Types' import Usage from './Usage' import Variations from './Variations' const PopupExamples = () => ( <div> <Types /> <Variations /> <Usage /> </div> ) export default PopupExamples
src/components/Post/Content/Content.js
wpioneer/gatsby-starter-lumen
// @flow strict import React from 'react'; import styles from './Content.module.scss'; type Props = { body: string, title: string }; const Content = ({ body, title }: Props) => ( <div className={styles['content']}> <h1 className={styles['content__title']}>{title}</h1> <div className={styles['content__bo...
fields/types/relationship/RelationshipField.js
pswoodworth/keystone
import async from 'async'; import Lists from '../../../admin/client/stores/Lists'; import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import xhr from 'xhr'; import { Button, InputGroup } from 'elemental'; function compareValues (current, next) { const currentLength = current ?...
pages/api/table-body.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './table-body.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
extensions/lesion-tracker/src/components/MeasurementComparisonTable.js
OHIF/Viewers
import React from 'react'; import { MeasurementTable } from '@ohif/ui'; import './MeasurementComparisonTable.css'; const overallWarnings = { warningList: [ 'All measurements should have a location', 'Nodal lesions must be >= 15mm short axis AND >= double the acquisition slice thickness by CT and MR', ], ...
app/javascript/mastodon/components/setting_text.js
mosaxiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
app/javascript/mastodon/features/compose/components/autosuggest_account.js
TootCat/mastodon
import React from 'react'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; class AutosuggestAccount extends ImmutablePureComponen...
node_modules/react-router/es6/IndexLink.js
wojtczat/WeatherApp
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'; /** *...
client/components/Profile.js
shin064/jimini
import React from 'react'; import Wishlist from './Wishlist.js'; import ItemForm from './ItemForm.js'; import LoginModal from './LoginModal.js'; import $ from 'jquery'; class Profile extends React.Component { constructor(){ super(); this.updateWishlist = this.updateWishlist.bind(this); this.fetchData = t...
examples/complex/src/components/app/index.js
vgno/roc-web-react
import React, { Component } from 'react'; import { IndexLink, Link } from 'react-router'; export default class App extends Component { static propTypes = { children: React.PropTypes.object }; render() { return ( <div> <nav> <ul> ...
src/MyComponent.js
kriasoft/react-component-starter
/** * Copyright (c) Your Company. All rights reserved. */ import React from 'react'; // eslint-disable-line no-unused-vars import './MyComponent.less'; class MyComponent { render() { return ( <div className="MyComponent">My Component</div> ); } } export default MyComponent;
src/svg-icons/image/camera.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCamera = (props) => ( <SvgIcon {...props}> <path d="M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4...
src/views/404/Page404.js
giux78/daf-dataportal
import React, { Component } from 'react'; import { Col, Container, Row } from 'reactstrap'; import { Link } from 'react-router-dom' class Page404 extends Component { render() { return ( <div className="flex-row align-items-center pt-5"> <Container className="pt-5"> <Row className="pt-5 j...
docs/src/PageHeader.js
aabenoja/react-bootstrap
import React from 'react'; const PageHeader = React.createClass({ render() { return ( <div className='bs-docs-header' id='content'> <div className='container'> <h1>{this.props.title}</h1> <p>{this.props.subTitle}</p> </div> </div> ); } }); export default Pag...
src/common/routes.js
canonical-ols/build.snapcraft.io
import React from 'react'; import { Route } from 'react-router'; import App from './containers/app.js'; import Builds from './containers/builds.js'; import BuildDetails from './containers/build-details.js'; import MyRepos from './containers/my-repos.js'; import Landing from './containers/landing.js'; import LoginFailed...
public/client/routes/groups/containers/groups.js
nearform/concorda-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import { pushPath } from 'redux-simple-router' import _ from 'lodash' // actions import {getGroups/*, deleteGroups, getGroup*/} from '../../../modules/group/actions/index' import Panel from '../../components/panel' export const Groups = Reac...
src/components/Dropdown/Option.react.js
6congyao/CGB-Dashboard
/* * Copyright (c) 2016-present, Parse, LLC * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ import React from 'react'; import styles from 'components/Dropdown/Dropdown.scss'; let Option = props => <div {...props} ...
examples/todomvc/containers/TodoApp.js
gbezyuk/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
docs/src/app/components/pages/components/GridList/Page.js
lawrence-yu/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/components/Header/Header.js
luisma1989/portfolio-react
import React from 'react' import $ from 'jquery' import './Header.scss' class Header extends React.Component { componentDidMount () { const widnowHeight = $(window).height() const containerHeight = $('.home-container').height() const padTop = widnowHeight - containerHeight $('.home-container').css({ ...
client/node_modules/react-error-overlay/lib/containers/StackFrame.js
bourdakos1/Visual-Recognition-Tool
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-ignore-inner-html.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin} from '../common/common.js'; import Span from './span.js'; import './ignore-inner-html.less'; export const IgnoreInnerHtml = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin ], //@@...
examples/auth-with-shared-root/components/Logout.js
mattkrick/react-router
import React from 'react' import auth from '../utils/auth' const Logout = React.createClass({ componentDidMount() { auth.logout() }, render() { return <p>You are now logged out</p> } }) export default Logout
fields/types/select/SelectFilter.js
lastjune/keystone
import React from 'react'; import { Checkbox, FormField, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/src/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; var SelectFilter = React.createClass({ getInitia...
src/components/MainPage/Maps/MapBox/MapBoxContainer.js
coolshare/ReactReduxPattern
import React, { Component } from 'react'; import ReactMapboxGl, { Layer, Feature } from "react-mapbox-gl"; export default class MapBoxContainer extends React.Component { render() { return ( <ReactMapboxGl style="mapbox://styles/mapbox/streets-v8" accessToken="pk.eyJ1IjoiY29vbHNoYX...
src/components/video_detail.js
darknight1983/React_Youtube_searchSite
import React from 'react' // This component does not have to be class-based because it does not have // to maintain any state. Any data the component uses can be passed to it // as props from the top-level component. const VideoDetail = ({video}) => { // Using es2016 syntax-grabing video property off of the props o...
frontend/src/components/dropdown-toggle.js
1905410/Misago
import React from 'react'; export default class extends React.Component { getClassName() { if (this.props.dropdown) { return "btn btn-default btn-aligned btn-icon btn-dropdown-toggle open hidden-md hidden-lg"; } else { return "btn btn-default btn-aligned btn-icon btn-dropdown-toggle hidden-md hid...
Sobiens.Web.Components.ReactTutorial/ClientApp/src/components/NavMenu.js
sobiens/webcomponents
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Glyphicon, Nav, Navbar, NavItem } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import './NavMenu.css'; export class NavMenu extends Component { displayName = NavMenu.name render() { ...
ui/src/containers/root/index.js
TransSponsor/trans-sponsor
import './root.scss'; import Login from 'containers/identity/login'; import PropTypes from 'prop-types'; import React from 'react'; import RoutePaths from 'constants/route_paths.js'; import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom'; import { Provider } from 'react-redux'; const Routes = () => ...
client/containers/Timer.js
marksanghoonkim/nimblecode
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import CountdownTimer from './CountdownTimer'; import StartButton from './StartButton'; import { leavePage, updateElapsedTime } from '../actions/index'; class Timer extends Component { constru...
src/routes.js
BonnWestCoast/Semantify.io
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Home, About, Login, LoginSuccess, NotFound, SchemaUpload, XMLVisualizer, SchemasList, Schema, Ontology, ...
js/jqwidgets/demos/react/app/treegrid/nestedxmldata/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.on('bindingComplete', () => { this.refs.myTreeGrid.expandRow(2); }); ...
js/src/views/Status/status.js
nipunn1313/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 // (at your option) any lat...
pollard/components/SearchSongDisplay.js
spncrlkt/pollard
import React, { Component } from 'react'; import classNames from 'classnames'; import config from '../../env.js'; import mergeStyles from '../lib/mergeStyles'; import AddSong from './AddSong'; import FoundSong from './FoundSong'; import SearchInput from './SearchInput'; import SearchSongButton from './SearchSongButto...
cheesecakes/plugins/content-manager/admin/src/containers/NotFoundPage/index.js
strapi/strapi-examples
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
stalk-messenger/examples/ComponentExample/app/components/tabs/chats/index.js
JohnKim/stalk.messenger
/** * * @flow */ 'use strict'; import React, { Component } from 'react'; import { View, StyleSheet, Text } from 'react-native'; class ChatsMain extends Component { static propTypes = { navigator: React.PropTypes.object.isRequired, }; eventNavBarButton(key) { console.log(key); } construc...
src/index.js
VincentVW/iati_bugs
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import createHistory from 'history/createBrowserHistory' import { ConnectedRouter } from 'react-router-redux' import configureStore from './configureStore' import './scss/app.css' import 'babel-polyfill' import App f...
packages/mineral-ui-icons/src/IconCloudDone.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 IconCloudDone(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
src/components/Schemes/TieUpElement/index.js
nobus/weaver
import React, { Component } from 'react'; import './style.css'; class TieUpElement extends Component { constructor() { super(); this.handleClick = this.handleClick.bind(this); } componentState() { const {row, col, currentState} = this.props; if (currentState[row]) { if (currentState[row]...
src/pages/semine.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Semine' /> )
src/renderer/windows/main.js
petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL-
import { remote } from 'electron'; import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import PlayerPage from '../ui/pages/PlayerPage'; injectTapEventPlugin(); ReactDOM.render(<PlayerPage />, document.querySelector('#main-window')); // minimize if ...
app/js/toolkit/LessThanLarge.js
JeffRisberg/RE03
import React from 'react'; import PropTypes from 'prop-types'; import MatchMedia from './MatchMedia'; import { LARGE } from '../constants/breakpoints'; const LessThanLarge = ({ children, mediaFeatures }) => ( <MatchMedia mediaQuery={`(max-width: ${LARGE - 1}px)`} mediaFeatures={mediaFeatures}> { children } </M...
examples/history-change/index.js
chentsulin/sweetalert-react
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render( <App />, document.getElementById('root') );
src/svg-icons/action/label.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabel = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/> </SvgIcon> ); A...
src/js/components/Home/partial/BuildYourOwnPlatform.js
ajainsyn/project
import React from 'react'; import ownPlatform from '../../../../assets/images/ownPlatform.png'; const BuildYourOwnPlatform = () => ( <section className="section bg-blue" id="ownPlatform"> <div className="container"> <div className="row align-items-center"> <div className="col-sm-6"> ...
src/svg-icons/av/explicit.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvExplicit = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h4v2h-4v2h4v2H9V7h6v2z"/> </SvgIcon> ); AvExplicit = pure(AvExplic...
src/index.js
rubenjoy/rms-cdc-bootcamp
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import AppBar from './scenes/main/scenes/AppBar'; import TabProfile from './scenes/main/scenes/AppBar/scenes/TabProfile'; import TabHistory from './scenes/main/scenes/AppBar/scenes/TabHistory'; import { Router, Route, IndexRoute, hashHis...
src/utils/devTools.js
MsZlets/Circles
import React from 'react'; import { createStore as initialCreateStore, compose } from 'redux'; export let createStore = initialCreateStore; if (__DEV__) { createStore = compose( require('redux-devtools').devTools(), require('redux-devtools').persistState( window.location.href.match(/[?&]debug_session=...
src/copalReact.js
tjdavies/RDX
import React, { Component } from 'react'; import {createStore} from './copal'; class CopalComponent extends Component { constructor(props) { super(props); this.state = {}; var devTools = window.devToolsExtension && window.devToolsExtension.connect(); let debuggerHook = (dispatch) => (name,...args) =...
admin/client/App/components/Navigation/Secondary/NavItem.js
benkroeger/keystone
/** * A navigation item of the secondary navigation */ import React from 'react'; import { Link } from 'react-router'; const SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropType...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js
0xaio/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() { return [ { id: 1, name: '1' }, ...
packages/mineral-ui-icons/src/IconSignalWifi4BarLock.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 IconSignalWifi4BarLock(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {.....
src/components/Genome3D/FileExporter/index.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import T from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { format } from 'url'; import { downloadSelector } from 'reducers/download'; import { downloadURL } from 'actions/creators'; import { FileButton } from 'components/F...
src/components/intellij/original-wordmark/IntellijOriginalWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './IntellijOriginalWordmark.svg' /** IntellijOriginalWordmark */ function IntellijOriginalWordmark({ width, height, className }) { return ( <SVGDeviconInline classNa...
fields/components/columns/CloudinaryImageSummary.js
trentmillar/keystone
import React from 'react'; const IMAGE_SIZE = 18; const linkStyle = { marginRight: 8, }; const boxStyle = { borderRadius: 3, display: 'inline-block', height: IMAGE_SIZE, overflow: 'hidden', verticalAlign: 'middle', width: IMAGE_SIZE, }; const imageStyle = { display: 'block', height: IMAGE_SIZE, left: '50%',...
public/javascripts/tinymce_plugins/instructure_external_tools/initializeExternalTools.js
djbender/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...
node_modules/react-bootstrap/es/Collapse.js
newphew92/newphew92.github.io
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
plugins/Wallet/js/components/rescandialog.js
NebulousLabs/New-Sia-UI
import React from 'react' const RescanDialog = () => ( <div className='rescan-dialog'> <i className='fa fa-circle-o-notch fa-spin fa-4x' aria-hidden='true' /> <h3> Scanning the Blockchain... </h3> </div> ) export default RescanDialog
src/components/signup/SignupForm.react.js
Space-Cadets/Titania-v2
// @flow import React from 'react' import { reduxForm } from 'redux-form' import Paper from 'material-ui/Paper' import TextField from 'material-ui/TextField' import RaisedButton from 'material-ui/RaisedButton' import { domOnlyProps } from '../../Utils.js' const SignupForm = (props: Object) => { const { fields: {...
data-async-table/src/components/App.js
krescruz/redux-component
import React from 'react' import LoadData from '../containers/LoadData' import DataTable from '../containers/DataTable' const App = () => ( <div> <LoadData /> <DataTable /> </div> ) export default App
app/loader.js
SynapseNetwork/Synapse-Desktop
/* ************************************************************** * Synapse - Desktop Client * @author Marco Fernandez Pranno <mfernandezpranno@gmail.com> * @licence MIT * @link https://github.com/SynapseNetwork/Synapse-Desktop * @version 1.0 * ****************************************************...
src/svg-icons/action/feedback.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFeedback = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); ActionFeedback = pure(Acti...
src/panels/OutputPanel/index.js
Kitware/HPCCloud
/* Output panel can display a simple list with a title TITLE name1 value1 name2 value2 --- or a table with headers TITLE headerA headerB headerC name1 someItem someValue name2 someItem someValue name3 someItem someValue */ import React from 'react...
src/svg-icons/action/hourglass-full.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHourglassFull = (props) => ( <SvgIcon {...props}> <path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/> </SvgIcon> ); ActionHourglassFull = pure(ActionHour...
actor-apps/app-web/src/app/components/Login.react.js
boneyao/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import LoginActionCreators from 'actions/LoginActionCreators'; import LoginStore from 'stores/LoginStore'; i...
code/frontend/src/components/AdminPanel/index.js
CPSC319-2017w1/coast.the-terminal
import React from 'react'; import PropTypes, { instanceOf } from 'prop-types'; import { connect } from 'react-redux'; import { withCookies, Cookies } from 'react-cookie'; import * as TABS from '../../constants/admin-tabs.js'; import AdminPanelComponent from './AdminPanel.jsx'; import FXTable from './Tabs/FXTable.jsx'; ...
src/components/Element/Element.js
fedebertolini/json-editor
import React from 'react'; import { connect } from 'react-redux'; import { isImmutable, isKeyed, isIndexed, is } from 'immutable'; import { selectData as selectEditedData } from '../../store/selectors/edited'; import { selectData as selectSavedData } from '../../store/selectors/saved'; import ArrayElement from './Array...
app/javascript/flavours/glitch/components/icon_button.js
im-in-space/mastodon
import React from 'react'; import Motion from 'flavours/glitch/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'flavours/glitch/components/icon'; import AnimatedNumber from 'flavours/glitch/components/animated...
projects/imbu/gui/browser/app.js
marionleborgne/nupic.research
/* ----------------------------------------------------------------------------- * Copyright © 2015, Numenta, Inc. Unless you have purchased from * Numenta, Inc. a separate commercial license for this software code, the * following terms and conditions apply: * * This program is free software: you can redistribute...
public/js/src/views/components/user.js
khalidhoffman/sc2
import React from 'react'; export default class UserView extends React.Component { render() { return ( <div> </div>); } }
app/app.js
AK33M/scalable-react
/** * 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'; /* eslint-disable import/no-unresolved */ // Load the favicon, the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!./...
src/parser/shared/modules/items/bfa/raids/crucibleofstorms/LegplatesOfUnboundAnguish.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS/index'; import SPELLS from 'common/SPELLS/index'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import ItemDamageTaken from 'interface...
draft-js-sticker-plugin/src/Sticker/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; export default class Sticker extends Component { remove = (event) => { // Note: important to avoid a content edit change event.preventDefault(); event.stopPropagation(); this.props.blockProps.onRemove(this.props.block.getKey()); }; render() { const...
entry_types/scrolled/package/src/frontend/Backdrop/BackgroundImage.js
tf/pageflow
import React from 'react'; import {Image} from './../Image'; import {MotifArea} from './../MotifArea'; import {useSectionLifecycle} from './../useSectionLifecycle'; export function BackgroundImage({image, onMotifAreaUpdate, containerDimension}) { const {shouldLoad} = useSectionLifecycle(); return ( <> ...
src/parser/mage/fire/modules/Checklist/Module.js
sMteX/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/Preparation...
src/_stories/LineChartLinearScaleStory.js
guzmonne/conapps-charts
import React from 'react' import uniqBy from 'lodash/uniqBy' import {text, boolean, number, object, color, select} from '@kadira/storybook-addon-knobs' import {BLUE, DARK_BLUE} from './variables.js' import LineChart from '../components/LineChart.js' import TooltipLinearScale from './components/TooltipLinearScale.js' c...
react-flux-mui/js/material-ui/src/svg-icons/image/rotate-right.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotateRight = (props) => ( <SvgIcon {...props}> <path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.7...
src/components/datepicker.js
xuan6/admin_dashboard_local_dev
import React from 'react'; import moment from 'moment'; import querystring from 'querystring'; import axios from 'axios'; import DatePicker from 'react-datepicker'; var baseUrl = 'http://localhost:3000/users/api/'; // var baseUrl = 'http://cap1.extrahop.com/users/api/'; //bootstrap import { Button } from 'react-boots...
examples/pinterest/app.js
neebz/react-router
import React from 'react'; import { Router, Route, IndexRoute, Link } from 'react-router'; var PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekitten.com/610/610' }, { id: 2, src: 'http://placekitten.com/620/620' } ]; var Modal = React.createClass({ styles: { posi...
App/node_modules/react-native/local-cli/templates/HelloNavigation/views/MainNavigator.js
Dagers/React-Native-Differential-Updater
'use strict'; /** * This is an example React Native app demonstrates ListViews, text input and * navigation between a few screens. * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import HomeScreenTabNavigator from './HomeS...
src/js/components/PostList.js
klapec/redditfetch
import React from 'react'; import Reflux from 'reflux'; import unescape from 'lodash.unescape'; import Post from './Post'; import Store from '../stores/Store'; import fetchItems from '../utils/fetchItems'; const PostList = React.createClass({ propTypes: { initialCategory: React.PropTypes.string.isRequired }, ...
docs/Documentation/ChipPage.js
reactivers/react-material-design
/** * Created by muratguney on 29/03/2017. */ import React from 'react'; import {Card, CardHeader,Icon,Chip,Table, TableRow, TableHeaderColumn, TableHeader, TableRowColumn, TableBody} from '../../lib'; import Highlight from 'react-highlight.js' export default class ChipPage extends React.Component { state = {d...
app/components/chat-message.js
merj4/merj
import React, { Component } from 'react'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar'; import {grey400, darkBlack, lightBlack} from 'material-ui/styles/colors'; import IconButton from '...
src/App.js
deco3500/dark
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <h1>Hello, world.</h1> ); } }
js/App.js
daninmotion/react-02
import React from 'react' import {Match} from 'react-router' import store from './store' import {Provider} from 'react-redux' import AsyncRoute from './AsyncRoute' import preload from '../public/data.json' if (global) { global.System = {import () {} } } const App = () => { return ( <Provider store={store}> {/*t...
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js
kittyjumbalaya/material-components-web
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; const TimePickerInternational = () => ( <div> <TimePicker hintText="Custom Labels" okLabel="确定" cancelLabel="取消" /> </div> ); export default TimePickerInternational;
src/svg-icons/hardware/smartphone.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSmartphone = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> ); HardwareSmartphone = p...
react/deploy/myapp/src/App.js
fishjar/gabe-study-notes
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
example/App.js
falcon-client/hawk
import React, { Component } from 'react'; import Hawk from '../src/'; // For your app, import Hawk like so // import Hawk from 'hawk-graph'; export default class App extends Component { state = { nodes: [ { nid: 1, type: 'Users', x: 200, y: 100, fields: { i...
tests/react_instance/class.js
jamesgpearce/flow
// @flow import React from 'react'; declare var any: any; class Foo extends React.Component<{}, void> {yep1: boolean} class Bar extends React.Component<{}, void> {yep2: boolean} (any: React$ElementRef<Class<Foo>>).yep1; // OK (any: React$ElementRef<Class<Foo>>).yep2; // Error (any: React$ElementRef<Class<Foo>>).nop...
web/src/components/Quill.js
nokia/LearningStore
/* @author Gilles Gerlinger Copyright Nokia 2017. All rights reserved. */ import React, { Component } from 'react'; import { FieldConnect } from 'react-components-form'; import ReactQuill from 'react-quill'; import '../../node_modules/react-quill/dist/quill.snow.css'; import '../css/Edit.css'; const toolbarOpti...
lib/views/clone-dialog.js
atom/github
import React from 'react'; import PropTypes from 'prop-types'; import {CompositeDisposable} from 'event-kit'; import {TextBuffer} from 'atom'; import url from 'url'; import path from 'path'; import TabGroup from '../tab-group'; import DialogView from './dialog-view'; import {TabbableTextEditor} from './tabbable'; exp...
app/components/member/Teams/row.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { Link } from 'react-router'; import Button from 'app/components/shared/Button'; import Emojify from 'app/components/shared/Emojify'; import Panel from 'app/components/shared/Panel'; import MemberRole from '...