path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/idyll-template-projects/templates/article/components/custom-component.js
idyll-lang/idyll
import React from 'react'; class CustomComponent extends React.Component { render() { const { hasError, idyll, updateProps, ...props } = this.props; return ( <div {...props}> <svg width={300} height={50} style={{ display: 'block', margin: '20px auto', background: '...
src/components/ui/container/index.js
boxal/boxal
import React from 'react'; import classNames from 'classnames'; function Container({ children, size = 1, center }) { const containerClasses = classNames('clearfix', 'px1', { 'max-width-1': size === 1, 'max-width-2': size === 2, 'max-width-3': size === 3, 'max-width-4': size === 4, 'mx-auto': cent...
examples/simple/pages/dummy.page.js
Strikersoft/poa
// @ts-check import React from 'react'; import { Link } from '@poa/router'; class DummyRouter extends React.Component { render() { return ( <React.Fragment> Another route.. <Link to="/"> go back</Link> </React.Fragment> ); } } export default DummyRouter;
src/routes.js
th3hunt/observatory
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ServersList from './components/ServersL...
src/components/IncrementalNumber/index.js
orionsoft/parts
import React from 'react' import PropTypes from 'prop-types' export default class IncrementalNumber extends React.Component { static propTypes = { number: PropTypes.number, format: PropTypes.string, duration: PropTypes.number, steps: PropTypes.number } static defaultProps = { format: '0,0',...
src/components/Footer.js
danielzy95/mechanic-finder
import React from 'react'; import Separator from './Separator'; import { FaFacebookOfficial, FaTwitter, FaGooglePlus, FaInstagram, FaYoutubePlay, FaPinterest, FaLinkedin } from 'react-icons/fa'; import styles from './Footer.css'; const PrimarySection = props => ( <div className={styles["primary-section"...
src/components/PetitionResponseTokenError/index.js
iris-dni/iris-frontend
import React from 'react'; import ButtonLink from 'components/ButtonLink'; import Container from 'components/Container'; import Header from 'components/Header'; import PageTitle from 'components/PageTitle'; import Notice from 'components/Notice'; import Paragraph from 'components/Paragraph'; import IconBullet from 'com...
client/src/components/common/CheckBox.js
yegor-sytnyk/contoso-express
import React from 'react'; const CheckBox = ({name, label, onChange, value}) => { return ( <div className="col-xs-4"> <input type="checkbox" name={name} checked={value} onChange={onChange} /> <label htmlFo...
Inspector/js/tree.js
calabash/WebDriverAgent
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
app/javascript/mastodon/features/compose/components/character_counter.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
src/svg-icons/action/view-stream.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewStream = (props) => ( <SvgIcon {...props}> <path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/> </SvgIcon> ); ActionViewStream = pure(ActionViewStream); ActionViewStream.displayName = 'ActionViewStream'; Acti...
docs/app/Examples/modules/Popup/Usage/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 PopupUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Hover' description='A popu...
pootle/static/js/user/components/UserProfileEdit.js
translate/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import Dialog from 'components...
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js
mironiasty/react-native
'use strict'; import React, { Component } from 'react'; import { Image, Platform, StyleSheet, } from 'react-native'; import ListItem from '../../components/ListItem'; import WelcomeText from './WelcomeText'; export default class WelcomeScreen extends Component { static navigationOptions = { title: 'Welc...
js/App/Components/Device/AddDevice/ExcludeScreen.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
pootle/static/js/admin/components/LanguageForm.js
mail-apps/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import React from 'react'; import { FormEl...
src/components/NotFound.js
cagedtornado/centralconfig-ui
// React import React from 'react'; const NotFound = () => ( <div> 404 NOT FOUND </div> ) export default NotFound;
app/containers/HomePage.js
knpwrs/electron-react-boilerplate
import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
frontend/src/Components/Form/RootFolderSelectInputOption.js
Radarr/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import formatBytes from 'Utilities/Number/formatBytes'; import EnhancedSelectInputOption from './EnhancedSelectInputOption'; import styles from './RootFolderSelectInputOption.css'; function RootFolderSelectInputOption(p...
node_modules/react-router/modules/RouteUtils.js
NathanBWaters/website
import React from 'react' import warning from './routerWarning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componen...
src/components/Table/TableHeader/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' function TableHeader(props) { return ( <thead> <tr> {props.columns.map(column => ( <th width={column.width} scope='col' role='columnheader' key={column.key || column.path}>{column.label}</th>))} </tr> </thead> ) } ex...
src/index.js
connorwalsh/loopchat-client
import React from 'react' import { Router, Route, browserHistory } from 'react-router' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import ...
src/Header/header.js
jasongforbes/jforbes.io
import React from 'react'; import { NavLink } from 'react-router-dom'; import PropTypes from 'prop-types'; import Grid from '@material-ui/core/Grid'; import { withStyles } from '@material-ui/core/styles'; import headshot from '../images/headshot_wide.jpg'; import { TwitterInner, InstagramInner, EmailInner } from '../ic...
lib/controllers/multi-file-patch-controller.js
atom/github
import React from 'react'; import PropTypes from 'prop-types'; import path from 'path'; import {autobind, equalSets} from '../helpers'; import {addEvent} from '../reporter-proxy'; import {MultiFilePatchPropType} from '../prop-types'; import ChangedFileItem from '../items/changed-file-item'; import MultiFilePatchView f...
docs/src/app/components/pages/components/FontIcon/Page.js
verdan/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 iconCode from '!raw!material-ui/FontIcon/FontIcon'; import iconReadmeText...
src/js/components/Target.js
HAZARDU5/aframe-test
import React from 'react'; import { Entity } from 'aframe-react'; const { Component, PropTypes, } = React; export class Target extends Component { constructor(props) { super(props); } render() { return ( <Entity class="clickable" rotation="90 0 0"> ...
app/javascript/mastodon/components/missing_indicator.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_disappointed.svg'; import classNames from 'classnames'; const MissingIndicator = ({ fullPage }) => ( <div className={classNames('regeneration-indicato...
src/router.js
mberneti/ReactAdmin
import React from 'react'; import { Router, Route, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import store from './store'; import * as loginApi from './api/identity-api'; import mainLayoutContainer from './components/containers/main-layout-container'; import pageLa...
react-webpack/src/CommentList.js
hzzly/react-getting-started
import React, { Component } from 'react'; import Comment from './Comment' class CommentList extends Component { constructor() { super() } render() { console.log(this.props.comments) let commentsNode = this.props.comments.map((comment, index) => { return <Comm...
frontend/src/Activity/Queue/QueueStatusCell.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Icon from 'Components/Icon'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import Popover from 'Components/Tooltip/Popover'; import { icons, kinds, tooltipPositions } from 'Helpers/Props'; import translate from 'Utilities/String/tra...
internals/templates/homePage/homePage.js
AK33M/scalable-react
/* * HomePage * * This is the first thing users see of our App, at the '/' 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 it and remove * the ...
packages/create-subscription/src/createSubscription.js
flarnie/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import invariant from 'shared/invariant'; import warningWithoutStack from 'shared/warningWi...
client/components/TestView.js
Frostimage/Frostimage
import React from 'react'; import ReactDOM from 'react-dom'; import * as THREE from 'three'; const OrbitControls = require('three-orbit-controls')(THREE); class TestView extends React.Component { constructor( props ) { super( props ); this.state = { data: [] } this.animate = this.animate.bind(...
ZWRNProject/app/src/views/UI/DrawerLayoutAndroid/ZWDrawerLayoutAndroidView.js
MisterZhouZhou/ReactNativeLearing
/** * desription 封装了平台DrawerLayout(仅限安卓平台)的React组件。抽屉(通常用于导航切换) 是通过renderNavigationView方法渲染的,并且DrawerLayoutAndroid的直接子视图会成为主视图(用于放置你的内容)。 导航视图一开始在屏幕上并不可见,不过可以从drawerPosition指定的窗口侧面拖拽出来,并且抽屉的宽度可以使用drawerWidth 属性来指定。 */ import React, { Component } from 'react'; import {DrawerLayoutAndroid, View, Text} from 'r...
src/components/video_list_item.js
rexicq/react_redux
/** * Created by shitman on 18.01.2017. */ import React from 'react' import VideoDetail from './video_detail' const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div ...
node_modules/react-bootstrap/es/ModalTitle.js
saltypaul/SnipTodo
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 ...
src/components/Chat/DeleteButton.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; const DeleteButton = ({ onDelete }) => ( <button type="button" className="ChatMessage-delete" onClick={onDelete} > Delete </button> ); DeleteButton.propTypes = { onDelete: PropTypes.func.isRequired, }; export default DeleteButton;...
demo/src/index.js
Utzel-Butzel/react-virtual-keyboard
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; require('../../lib/scss/style.scss'); require('../scss/demo.scss'); ReactDOM.render(<App />, document.getElementById('root'));
src/app/component/loading-container/loading-container.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import LoadingContainer from '.' storiesOf('LoadingContainer', module).add('default', () => <LoadingContainer />)
client/app/components/Footer.js
ParadeTo/dataguru-nodejs
import React from 'react'; const footerStyle = { marginTop: 50, paddingTop: 20 } export default class Footer extends React.Component { constructor(props) { super(props); } render() { return ( <footer className="text-center" style={footerStyle}> &copy;CopyRight Ayou </f...
src/components/HomePage.js
coryhouse/react-slingshot
import React from 'react'; import { Link } from 'react-router-dom'; const HomePage = () => { return ( <div> <h1>React Slingshot</h1> <h2>Get Started</h2> <ol> <li>Review the <Link to="/fuel-savings">demo app</Link></li> <li>Remove the demo and start coding: npm run remove-demo<...
docs/app/Examples/views/Card/Variations/Fluid.js
jcarbo/stardust
import React from 'react' import { Card } from 'stardust' const FluidCards = () => ( <Card.Group> <Card fluid color='red' header='Option 1' /> <Card fluid color='orange' header='Option 2' /> <Card fluid color='yellow' header='Option 3' /> </Card.Group> ) export default FluidCards
src/views/StartLocation.js
alexras/narpassword
import React, { Component } from 'react'; import './StartLocation.css'; class StartLocation extends Component { constructor(props) { super(props); this.setStartLocation = this.setStartLocation.bind(this); this.getLocationClassName = this.getLocationClassName.bind(this); } setStartLocation(location) ...
app/react-icons/fa/youtube-play.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaYoutubePlay extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m28.6 20q0-0.8-0.7-1.2l-11.4-7.1q-0.7-0.5-1.5-0.1-0.7 0.4-0.7 1.3v14.2q0...
codes/chapter05/react-router-v4/basic/demo02/app/routes.js
atlantis1024/react-step-by-step
import React from 'react'; import { HashRouter as Router, Route, Switch } from 'react-router-dom'; import App from './components/App'; import About from './components/About'; import Topics from './components/Topics'; const Routes = () => ( <Router> <Switch> <Route exact path="/" component={App}/> <Ro...
packages/vue-styleguidist/src/client/rsg-components/SlotsTable/SlotsTableRenderer.js
vue-styleguidist/vue-styleguidist
/* eslint-disable react/prop-types */ import React from 'react' import PropTypes from 'prop-types' import map from 'lodash/map' import Styled from 'rsg-components/Styled' import Markdown from 'rsg-components/Markdown' import Name from 'rsg-components/Name' import Table from 'rsg-components/Table' import Arguments from ...
examples/src/components/StatesField.js
reynolek/react-select
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var id = 0; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var StatesField = React.createClass({ displayName: 'StatesField', p...
local-cli/templates/HelloNavigation/views/MainNavigator.js
tsjing/react-native
'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...
examples/huge-apps/routes/Calendar/components/Calendar.js
cgrossde/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
src/components/range/RangeSlider.js
pjkarlik/ReactUI
import React from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import CustomDragLayer from './CustomDragLayer'; import Container from './Container'; import ComponentStyles from './styles/RangeSlider.less'; /** Range Slider base component that calls in Cust...
src/components/PropsNewPanel.js
GeorgioWan/Oi
import React, { Component } from 'react'; import {Row, Col, ControlLabel} from 'react-bootstrap'; import Toggle from 'react-toggle'; import TinymceEditor from './TinymceEditor'; import PropsItem from './PropsItem'; export default class PropsNewPanel extends Component { constructor(props){ super(props); } ...
app/Components/SignUp/Steps/StepOne/FamilyName.js
martinvarelaaaa/tintina
import React from 'react'; import { View, TextInput } from 'react-native'; import PropTypes from 'prop-types'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import styles from '../../styles'; import theme from '../../../../theme'; const { color } = theme; const FamilyName = ({ handlerValues, f...
modules/frontend/src/js/components/widgets/Overlay.js
fleximaps/fleximaps
import styles from './Overlay.css'; import React from 'react'; import CSSModules from 'react-css-modules'; export default CSSModules(class Overlay extends React.Component { render() { return ( <div> <div styleName='underlay' onClick={this._handleClose.bind(this)}></div> ...
docs-ui/components/lineChart.stories.js
ifduyue/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import LineChart from 'app/components/charts/lineChart'; // eslint-disable-next-line storiesOf('Charts/LineChart', module).add( 'default', withInfo('Line Chart')(() => { return ( <Line...
packages/retabulate-react/src/components/Variable.js
jasonphillips/retabulate
import React from 'react'; import QueryClosure from '../classes/QueryClosure'; import gatherChildConfig from '../utils/gatherChildConfig'; import makeRenderers from '../utils/makeRenderers'; class Variable extends React.Component { static serialize(props, index, context) { const { column, columns, label, ...
lib/main.js
jupyter/atom-notebook
'use babel'; import React from 'react'; import ReactDOM from 'react-dom'; import {CompositeDisposable} from 'atom'; import path, {delimiter} from 'path'; import Dispatcher from './dispatcher'; import NotebookEditor from './notebook-editor'; import NotebookEditorView from './notebook-editor-view'; export default { ...
src/ExportPlaylist.js
shaneosullivan/spotlist
import React, { Component } from 'react'; import Modal from './Modal'; import states from './states'; export default class ExportPlaylist extends Component { constructor() { super(); this.state = { playlistName: '' }; } render() { let content; switch (this.props.state) { case sta...
js/App/Components/TabViews/SubViews/DimmerPopup.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
internals/templates/notFoundPage/notFoundPage.js
AK33M/scalable-react
/** * 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...
demos/buttons/demos/flat-accent.js
isogon/styled-mdl-website
import React from 'react' import { Button } from 'styled-mdl' const demo = () => <Button accent>Accent</Button> const caption = 'Accent Colored Button' const code = '<Button accent>Accent</Button>' export default { demo, caption, code }
client/pages/index.js
pradel/octon
import React, { Component } from 'react'; import Router from 'next/router'; import { injectGlobal } from 'styled-components'; import Lock from '../utils/lock'; import auth from '../utils/auth'; import withData from '../lib/with-data'; import Header from '../home/header'; import Hero from '../home/hero'; import Features...
docs/app/Examples/elements/Input/Types/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const InputTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Input' description='A stan...
node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatScreen.js
hpdmitriy/Bjj4All
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Button, ListView, StyleSheet, Text, TextInput, View, } from 'react-native'; import KeyboardSpacer from '../../components/KeyboardSpacer'; import Backend from '../../lib/Backend'; export default class ChatScreen extends C...
packages/react-scripts/fixtures/kitchensink/src/index.js
bttf/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
src/native/auth/SignInPage.js
robinpokorny/este
// @flow import type { State } from '../../common/types'; import Email from './Email'; import React from 'react'; import Social from './Social'; import theme from '../app/themes/initial'; import { Container } from '../app/components'; import { Redirect } from 'react-router'; import { ScrollView, StyleSheet } from 'reac...
examples/components/Placeholder.js
GGGGino/react-event-layer
import React from 'react'; export default function Placeholder() { return ( <div className="placeholder"> <div className="spinner"> <div className="rect1"></div> <div className="rect2"></div> <div className="rect3"></div> <div className="rect4"></div> <div className=...
js/components/TodoApp.js
orionwei/mygit
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNE...
app/assets/scripts/components/results-panel.js
worldbank-cdrp/disaster-risk-explorer
import React from 'react' import multiDownload from 'multi-download' import { showModalCalc, newCalcId } from '../actions' import { graphCols, calcDropItems } from '../constants' import { getMapId } from '../utils/map-id' import { shortenNumber } from '../utils/format' import { t } from '../utils/i18n' import c from '...
src/components/Footer/Footer.js
niketpathak/npk-website
/** * @author Niket Pathak. (http://www.niketpathak.com/) * * Copyright © 2014-present. 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 withStyles from 'isomorphic-style-lo...
packages/xo-web/src/xo-app/dashboard/health/index.js
vatesfr/xo-web
import _ from 'intl' import Component from 'base-component' import decorate from 'apply-decorators' import fromCallback from 'promise-toolbox/fromCallback' import { get as getDefined } from '@xen-orchestra/defined' import Icon from 'icon' import Link from 'link' import NoObjects from 'no-objects' import React from 'rea...
src/index.js
vmandic/ReduxBlogEntries
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import routes from "./routes"; import reducers from './reducers'; import promise from "redux-promise"; const ...
src/filter.js
bla3e316/React-Leaflet-Kiev-Urban-Map
import React from 'react'; // the UI component for filtering the subway entrances by subway line export default (props) => { const { lines, filterLines } = props; // this is the JSX that will become the Filter UI in the DOM, notice it looks pretty similar to HTML // notice in the select element onChange is set ...
lavalab/html/node_modules/react-bootstrap/es/Radio.js
LavaLabUSC/usclavalab.org
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 ...
blueocean-material-icons/src/js/components/svg-icons/editor/format-textdirection-r-to-l.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatTextdirectionRToL = (props) => ( <SvgIcon {...props}> <path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/> </SvgIcon> ); EditorFormatTextdirectionRToL.displayName = 'EditorFormatText...
frontend/src/components/chat/navigation/InterestedInSettingContent.js
dimkarakostas/unimeet
import React, { Component } from 'react'; import {Col, Form, FormControl, FormGroup, Button} from 'react-bootstrap'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; import axios from 'axios'; import * as config from '../../config'; class InterestedInSettingContent extends Component { const...
src/client/modules/home/homeContainer.js
arnold-iakab/universal-mern
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { generateRandomNumber, getWelcomeMessage, getApiInfo } from './homeActions'; import HomeComponent from './homeComponent'; import { getRandomNumber, retrieveWelcomeMessage, retrieveApiInfo } from './selectors'; import { ...
docs/app/Examples/collections/Grid/Variations/GridExampleFloated.js
aabustamante/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleFloated = () => ( <Grid> <Grid.Column floated='left' width={5}> <Image src='/assets/images/wireframe/paragraph.png' /> </Grid.Column> <Grid.Column floated='right' width={5}> <Image src='/assets/images/w...
client/js/components/Landing.js
bmacheski/tech-connect
'use strict'; import React from 'react'; import UserStore from '../stores/UserStore'; class Landing extends React.Component { render() { let loggedIn = UserStore.getState().user; { return loggedIn ? ( <div className="home-container"> <div className="ui container"> <h1 c...
frontend/components/timeline/TimelineLegend.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import {Popover} from 'react-bootstrap'; import styles from './TimelineLegend.less'; const TimelineLegend = ({year, positive, negative, neutral, msgPositive, msgNegative, msgNeutral}) => ( <Popover id="timeline-legend" title={<strong>{year}</strong>}> ...
src/PaginationButton.js
dozoisch/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import SafeAnchor from './SafeAnchor'; import createChainedFunction from './utils/createChainedFunction'; // TODO: This should be `<Pagination.Item>`. // TODO: This should use `componentClass` ...
app/jsx/due_dates/StudentGroupStore.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...
client/containers/Root.js
nurpax/snap-reactjs-todo
import React from 'react' import { Provider } from 'react-redux' import { Route, Switch } from 'react-router-dom' import { ConnectedRouter } from 'react-router-redux' import { userIsNotAuthenticatedRedir, userIsAuthenticatedRedir } from '../auth' import Main from './Main' import TodoList from './TodoList' import Login...
blueprints/smart/files/__root__/containers/__name__.js
bingomanatee/ridecell
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render() { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const ...
src/index.js
bugdrip/omgr-admin
import React from 'react' import ReactDOM from 'react-dom' import update from 'react-addons-update' import { Router, Route, Link, IndexLink, hashHistory, browserHistory, IndexRoute } from 'react-router' import injectTapEventPlugin from 'react-tap-event-plugin' injectTapEventPlugin() import { createStore, compose, ap...
practice/a02.14/antd-demo/index.js
GBKstc/test
import React from 'react'; import ReactDOM from 'react-dom'; import { DatePicker, message ,Button} from 'antd'; class App extends React.Component { constructor(props) { super(props); this.state = { date: '', }; } handleChange(date) { message.info('您选择的日期是: ' + date.toString()); this.setState({ date:dat...
themes/genius/Genius 2.3.1 Bootstrap 4/React_Starter/src/routes.js
davidchristie/kaenga-housing-calculator
import React from 'react'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; // Containers import Full from './containers/Full/' // import Simple from './containers/Simple/' import Dashboard from './views/Dashboard/' export default ( <Router history={hashHistory}> <Route path="/" name="Hom...
packages/ringcentral-widgets/components/ConversationList/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import MessageItem from '../MessageItem'; import styles from './styles.scss'; import i18n from './i18n'; export default class ConversationList extends Component { constructor(props) { super(props); ...
src/containers/Product/Product.js
kingpowerclick/kpc-web-backend
import React, { Component } from 'react'; import classNames from 'classnames'; import { FilterPage, ProductFilters, ProductColumes, ProductManageDynamicAttribute, FilterActionSelect, FilterId, ProductTable } from 'components'; export default class Product extends Component { render() { const styles...
src/components/ManageDisabled.js
ayastreb/bandwidth-hero
import React from 'react' import { Form, TextArea } from 'semantic-ui-react' export default ({ disabledHosts = [], onChange }) => { return ( <Form> <Form.Field control={TextArea} rows={4} value={disabledHosts.join('\n')} onChange={onChange} /> </Form> ) }
node_modules/react-router/es/Link.js
mohammed52/door-quote-automator
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/DropdownStateMixin.js
aparticka/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; /** * Checks whether a node is within * a root nodes tree * * @param {DOMElement} node * @param {DOMElement} root * @returns {boolean} */ function isNodeInRoot(node, root) { while (node) { ...
app/containers/HomePage.js
jaytrepka/kryci-jmena
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
app/javascript/mastodon/features/compose/components/upload_form.js
tootsuite/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import UploadProgressContainer from '../containers/upload_progress_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import UploadContainer from '../containers/upload_container'; import SensitiveButtonC...
src/shared/FilterRenderer.js
cityofasheville/simplicity2
import React from 'react'; import { CellFocusWrapper } from 'accessible-react-table'; // eslint-disable-next-line react/prop-types const createFilterRenderer = (placeholderText, extraProps) => ({ filter, onChange }) => ( <CellFocusWrapper> {(focusRef, focusable) => ( <input onChange={event => onCha...
src/route/profit/Profit.js
simors/yjbAdmin
/** * Created by yangyang on 2017/10/18. */ import React from 'react' import {connect} from 'react-redux' import { Row, Col, Tabs } from 'antd' import {withRouter} from 'react-router-dom' import WalletBar from './WalletBar' import InvestProfitChart from './InvestProfitChart' import ParticipationProfitChart from './Pa...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Applications/Create/ApplicationCreate.js
dewmini/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
src/helpers/svgs.js
nadavspi/UnwiseConnect
import React from 'react'; export const darkModeIcon = ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M525.3 989.5C241.2 989.5 10 758.3 10 474.1c0-196.8 109.6-373.6 285.9-461.4 7.9-3.9 17.5-2.4 23.7 3.8 6.2 6.2 7.9 15.8 4 23.7-32.2 65.4-48.5 135.7-48.5 208.9 0 261.4 212.7 474.1 474.1 474....
pages/getting-started/supported-platforms.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 'docs/src/pages/getting-started/supported-platforms.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export...
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spr...
assets/js/pages/homePage.js
lucabezerra/DjangoTodoList
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, browserHistory, Link } from 'react-router'; import axios from 'axios'; import ShowLists from './showLists'; import EditList from './editList'; import EditItem from './editItem'; class Home extends React.Component { ren...