path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/views/routes.js
HeartRunner/danmu
import React from 'react'; import {Route} from 'react-router'; import App from 'views/App'; import Home from 'views/Home'; /* import Widgets from 'views/Widgets'; import About from 'views/About'; import Login from 'views/Login'; import Survey from 'views/Survey'; */ import NotFound from 'views/NotFound'; import Redirec...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
dalexand/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
heesong/src/App.js
hanheesong/hanheesong.github.io
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" /> <p> Edit <code>src/...
client/src/components/CurrentIterationComponent.js
krzysztofkolek/github-bugtracker
'use strict'; require('styles//CurrentIteration.css'); import React from 'react'; import { connect } from "react-redux" @connect((store) => { return { }; }) class CurrentIterationComponent extends React.Component { propTypes: { } defaultProps: { } constructor(props) { super(props); } r...
src/components/progress/Progress.js
isogon/styled-mdl
import { compose, setDisplayName } from 'recompose' import React from 'react' import { ProgressBaseStyle, ProgressBar, BufferBar, AuxBar, } from './Progress.style' import { proxyStyledStatics } from '../../hocs' export const ProgressBase = ({ indeterminate, percent, width, __StyledComponent__: Styled,...
client/seat-list.js
carpeliam/kriegspieljs
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import cx from 'classnames'; import { sitAs, stand, offerResignation } from './actions'; const oppositeColorOf = { white: 'black', black: 'white' }; export function Seat({ color, active, inProgress, winning, losing, ...
tests/baselines/reference/jsxDeclarationsWithEsModuleInteropNoCrash.js
kitsonk/TypeScript
//// [jsxDeclarationsWithEsModuleInteropNoCrash.jsx] /// <reference path="/.lib/react16.d.ts" /> import PropTypes from 'prop-types'; import React from 'react'; const propTypes = { bar: PropTypes.bool, }; const defaultProps = { bar: false, }; function Foo({ bar }) { return <div>{bar}</div>; } Foo.propTypes = ...
src/components/SEO/SchemaOrg.js
aravindballa/website2017
import React from 'react'; import { Helmet } from 'react-helmet'; export default React.memo( ({ author, siteUrl, datePublished, defaultTitle, description, image, isBlogPost, organization, title, url, }) => { const baseSchema = [ { '@context': 'http://schema...
src/components/MultiCheckboxFilter.js
NuCivic/react-dash
import React, { Component } from 'react'; import Registry from '../utils/Registry'; import BaseFilter from './BaseFilter'; import CheckboxFilter from '../ReactDashboard'; import { makeKey } from '../utils/utils'; import cx from 'classnames'; export default class MultiCheckboxFilter extends BaseFilter { constructor(p...
src/components/SilderDeco.js
Maryanushka/masterskaya
import React from 'react'; var React = require('react'); var Slider = require('react-slick'); class SimpleSlider extends React.Component { constructor(props) { super(props); this.state={ decoration: [] } } componentDidMount() { fetch('http://maysternja.dataroot.co/catalog/decoration/') .then(...
src/components/Authors/Author/Author.js
Okazari/react-rest-hoc
import React from 'react' class Author extends React.Component { constructor(props){ super(props) this.state = { editing: false, } this.toggleEdit = this.toggleEdit.bind(this) } toggleEdit(event) { event.preventDefault() const { author, updateResource } = this.props if (this.st...
src/components/AddStaff/AddStaff.js
TheModevShop/craft-app
import React from 'react'; import _ from 'lodash'; import StaffProfile from './components/StaffProfile/StaffProfile'; import StaffRole from './components/StaffRole/StaffRole'; import StaffEnrollmentNotifications from './components/StaffEnrollmentNotifications/StaffEnrollmentNotifications'; import StaffDisplayOptions fr...
src/modules/textNodes/components/MultilineDialog/MultilineDialog.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import { List, ListItem } from 'material-ui/List'; import { compose } from 'react-apollo'; import { editionsInsertMutation, editionsRemoveMutation, } from '../../gr...
src/components/auth/require_auth.js
juthatip/authentication-client
import React, { Component } from 'react'; import { connect } from 'react-redux'; export default function(ComposedComponent) { class Authentication extends Component { static contextTypes = { router: React.PropTypes.object } componentWillMount() { if (!this.props.authenticated) { this...
springboot/GReact/src/main/resources/static/app/routes/home/containers/Home.js
ezsimple/java
/** * Created by griga on 11/30/15. */ import React from 'react' import WidgetGrid from '../../../components/widgets/WidgetGrid' import JarvisWidget from '../../../components/widgets/JarvisWidget' export default class Home extends React.Component { render() { return ( <div id="content"> <Widg...
spec/components/button.js
denvey/reui
/** * Created by denvey on 16/4/19. */ import React from 'react'; import { Button, ButtonGroup } from '../../src/components/Button'; const ButtonTest = () => ( <section> <h5>Buttons</h5> <p>lorem ipsum...</p> <Button href="http://github.com/">Github</Button> <ButtonGroup> <Button href="http:...
app/components/footer.js
jorsh/react-seed
import React from 'react' export default (props) => (<footer> Footer </footer>)
examples/active-links/app.js
tkirda/react-router
import React from 'react' import { render } from 'react-dom' import { Router, Route, IndexRoute, Link, IndexLink } from 'react-router' import { createHistory, useBasename } from 'history' const ACTIVE = { color: 'red' } class App extends React.Component { render() { return ( <div> <h1>APP!</h1> ...
app/containers/AboutPage/TheToolbox.js
BeautifulTrouble/beautifulrising-client
/** * * AboutPageComponents * */ import React from 'react'; import styled from 'styled-components'; import Markdown from 'react-remarkable'; import ContentBlock from 'components/ContentBlock'; import LanguageThemeProvider from 'components/LanguageThemeProvider'; import ToolTypeAllFull from 'containers/ToolTypeAllFull'...
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/drive-eta.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationDriveEta = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 15c-.83 0-...
webpack/components/CommentForm.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class CommentForm extends Component { render() { return ( <form method="post" action="/comments" onSubmit={data => this.submit(data)}> <div className="form-group"> <label htmlFor={"com...
ui/src/js/main/LoadableMainPage.js
Dica-Developer/weplantaforest
import React, { Component } from 'react'; import Loadable from 'react-loadable'; const LoadableComponent = Loadable({ loader: () => import('./MainPage'), loading() { return <div>Loading...</div>; } }); export default class LoadableMainPage extends Component { render() { return <LoadableComponent />; ...
server/sonar-web/src/main/js/apps/overview/routes.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
app/components/Footer/index.js
guruganeshm/ReactJs
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
react/Header/components/UserAccountMenu/UserAccountMenu.js
seekinternational/seek-asia-style-guide
import styles from './UserAccountMenu.less'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Text, ChevronIcon, Card, Section, CardGroup } from 'seek-asia-style-guide/react'; const renderLinks = ({ userAccMenuItems, linkRenderer }) => { if (userAccMenuItems && userAccMenuItems....
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleSearchInMenuScrolling.js
vageeshb/Semantic-UI-React
import React from 'react' import { Dropdown, Input } from 'semantic-ui-react' import { tagOptions } from '../common' const DropdownExampleSearchInMenuScrolling = () => ( <Dropdown text='Filter Posts'> {/* <i class="filter icon"></i> */} <Dropdown.Menu> <Input icon='search' iconPosition='left' classNam...
src/svg-icons/editor/format-align-left.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignLeft = (props) => ( <SvgIcon {...props}> <path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignLeft = pure(EditorFormatAlignL...
Auth/website/src/components/SiteNav.js
awslabs/aws-serverless-workshops
/* * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * o...
client/src/components/settings/About.js
pahosler/freecodecamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormGroup, ControlLabel, FormControl } from '@freecodecamp/react-bootstrap'; import { FullWidthRow, Spacer } from '../helpers'; import ThemeSettings from './Theme'; import UsernameSettings from './Username'; import BlockSaveBu...
docs-ui/components/flowLayout.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import FlowLayout from 'app/components/flowLayout'; import SpreadLayout from 'app/components/spreadLayout'; export default { title: 'Deprecated/ComponentLayouts/FlowLayout', }; export const Row = withInfo('Horizontal row with vertical cente...
src/Migration/TableColumn.Component.js
baopham/react-laravel-generator
import React from 'react' import ColumnTypeSelect from 'Migration/ColumnTypeSelect.Component' import { BaseType as ColumnType, TYPES } from 'Migration/ColumnTypes' export default class TableColumn extends React.Component { static propTypes = { column: React.PropTypes.instanceOf(ColumnType).isRequired, update...
examples/counter/index.js
olegsxm/redux
import React from 'react'; import App from './containers/App'; React.render( <App />, document.getElementById('root') );
app/javascript/flavours/glitch/features/compose/components/warning.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from 'flavours/glitch/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { cons...
docs/src/shared/components/ReactMD/selection-controls/radios/index.js
lwhitlock/grow-tracker
import React from 'react'; import SimpleExamples from './SimpleExamples'; import SimpleExamplesRaw from '!!raw!./SimpleExamples'; import StatefulExample from './StatefulExample'; import StatefulExampleRaw from '!!raw!./StatefulExample'; export default [{ title: 'Simple Examples', code: SimpleExamplesRaw, child...
examples/with-jsxstyle/src/Home.js
jaredpalmer/react-production-starter
import { Block, InlineBlock } from 'jsxstyle'; import React, { Component } from 'react'; class Home extends Component { render() { return ( <Block textAlign="center"> <Block backgroundColor="#222"> <Block fontSize="3rem" color="#fff" padding="6rem 0" fontWeight="800"> Razzle x...
src/components/search_bar.js
zainxyz/VideoAppReact
/** * Forming a Connection to React */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; /** * SearchBar Component * @return {[type]} [description] */ ////////////////////////////////////////////// // A Functional Component // // -- Since it literally is a function. Du...
src/components/app.js
jessepatricio/react-weather
import React from 'react'; import { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); }...
app/javascript/mastodon/features/video/index.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { is } from 'immutable'; import { throttle, debounce } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../...
view/files/__root__/views/__name__View/__name__View.js
CurtisHumphrey/redux_blueprints_tedchef
import React from 'react' // import PropTypes from 'prop-types' import { connect } from 'react-redux' import Helmet from 'react-helmet' import { createStructuredSelector } from 'reselect' import './<%= pascalEntityName %>View.scss' export const selectors = {} export const actions = {} const mapStateToProps = createS...
app/components/Icons/icons/icon-police.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; function IconPolice() { return ( <svg version="1.1" id="icon-police" x="0px" y="0px" viewBox="-41 164.9 512 512"> <g> <g> <path d="M345.5,168c-67.5,0-122.5,54.9-122.5,122.5c0,13.7,2.4,26.8,6.5,39.2l-23.3,9.1c-9.2,3.6-10.1,11-1.9,16.6l52.7,32.3c-3.9,1-6.8,4.3-6.8...
learnyoureact(done)/08_isomorphic/app.js
bluewaitor/node-school
/** * Created by bluewaitor on 15/12/27. */ import React from 'react'; import ReactDOM from 'react-dom'; import TodoBox from './views/index.jsx'; let data = JSON.parse(document.getElementById('initial-data').getAttribute('data-json')); ReactDOM.render(<TodoBox data={data}/>, document.getElementById('app'));
app/components/sections/Contact.js
tbmelabs/tbmelabs.ch
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import Section from '../common/Section'; import FadeInOnScroll from '../common/FadeInOnScroll'; import Grid from 'react-bootstrap/lib/Grid'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import FontA...
dev/js/uiComponents/editor/editPanel/store/editPanel-container.js
artisnull/React-CMS
/* Filename: editPanel-container.js Author: Zach Lambert Last Updated: 17 Apr 2017 Description: Connects editPanel to store Props: activeElement, initCoords, newCoords, posEditOn,fontArr, fontObj PropMethods: addToCollection, removeFromCollection, editElement, selectNewElement, resetActive, enablePosEdit, disablePosEd...
src/components/HistoryLineItem.js
dominictracey/hangboard
import React from 'react' import PropTypes from 'prop-types' import {ListItem} from 'react-native-elements' class HistoryLineItem extends React.Component { static propTypes = { index: PropTypes.number.isRequired, title: PropTypes.string.isRequired, cb: PropTypes.func.isRequired, } onPress = () => { ...
app/packs/src/components/qc/components/substance/BlockConclusion.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; import { Label } from 'react-bootstrap'; import { iconByBool } from '../helper/icon'; const iconNmr = (ansNmr) => { const { conclusion, conclusionOwn } = ansNmr; if (!conclusion && conclusionOwn) { return ( <Label bsStyle="success" className...
client/src/components/AddBox.js
JetRunner/epictodo
import React, { Component } from 'react'; import jQuery from 'jquery'; import Cookies from 'js-cookie'; class AddBox extends Component { constructor(props) { super(props); this.state = { editing: true }; } handleDel() { this.props.onCloseAdd(); this.props.onReajax(); } handleSave() ...
modules/PropTypes.js
stanleycyang/react-router
import React from 'react'; import Location from './Location'; import History from './History'; var { func, object, arrayOf, instanceOf, oneOfType, element } = React.PropTypes; function falsy(props, propName, componentName) { if (props[propName]) return new Error(`<${componentName}> should not have a "${propName...
src/layouts/SplitContentLayout/FixedLayer/FixedLayer.js
Bandwidth/shared-components
import React from 'react'; import PropTypes from 'prop-types'; import { Consumer } from '../Context'; import * as styles from './styles'; /** * This is a floating layer above the rest of the layout which * is automatically resized to cover the visible area of the layout (it grows * as the user scrolls the page). It...
src/js/components/List/stories/Children.js
HewlettPackard/grommet
import React from 'react'; import { Gremlin } from 'grommet-icons'; import { Box, List, Text, Tip } from 'grommet'; const data = [ { city: 'Boise', state: 'Idaho' }, { city: 'Fort Collins', state: 'Colorado' }, { city: 'Bay Area', state: 'California' }, { city: 'San Diego', state: 'California' }, ]; export ...
src/screen/Home/components/Title.js
wavicles/fossasia-pslab-apps
import React from 'react'; import AppIcon from '../../../resources/app_icon.svg'; import { TitleContainer, TitleWrapper, TextLabel } from './Title.styles'; const Title = () => { return ( <TitleContainer> <TitleWrapper> <img style={{ height: '8em', width: 'auto', ...
src/js/components/icons/base/Schedule.js
odedre/grommet-final
/** * @description Schedule SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @p...
packages/icons/src/md/communication/PhonelinkSetup.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPhonelinkSetup(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M23.641 25l2.2 1.8c.2.2.4.4.2.6l-2 3.4c-.2.2-.4.2-.6.2l-2.6-1c-.6.4-1.2.8-1.8 1l-.4 2.6c-.2.2-.4.4-.6.4h-4c-.2 0-.6-.2-.4-.4l-.4-2.6c-.6-.2-1....
packages/core/upload/admin/src/components/MediaLibraryInput/Carousel/CarouselAssetActions.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { CarouselActions } from '@strapi/design-system/CarouselInput'; import { IconButton } from '@strapi/design-system/IconButton'; import { prefixFileUrlWithBackendUrl } from '@strapi/helper-plugin'; import { useIntl } from 'react-intl'; import PlusIcon ...
examples/01 Dustbin/Stress Test/index.js
globexdesigns/react-dnd
import React, { Component } from 'react'; import Container from './Container'; export default class DustbinStressTest extends Component { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Stress%20Test'>Browse the Source</a></...
app/static/src/diagnostic/ItemDetails.js
SnowBeaver/Vision
import React from 'react'; import ReactDOM from 'react-dom'; import * as d3 from "d3"; import EquipmentForm from './EquipmentForm'; var ItemDetails = React.createClass({ getInitialState: function () { return { isVisible: false, action: 'hide', equipment:{} } ...
information/blendle-frontend-react-source/app/components/moduleNavigation/NavLinkItem.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Link from 'components/Link'; import ModuleNavigationStore from 'stores/ModuleNavigationStore'; class NavLinkItem extends React.Component { static propTypes = { item: PropTypes.object.isRequired, onActiv...
es/components/catalog-view/catalog-breadcrumb.js
dearkaran/react-planner
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 PropTypes from 'prop-types'...
src/server/frontend/html.react.js
jaegerpicker/GLDice
import Component from '../../client/components/component.react'; import React from 'react'; export default class Html extends Component { static propTypes = { bodyHtml: React.PropTypes.string.isRequired, isProduction: React.PropTypes.bool.isRequired, title: React.PropTypes.string.isRequired, version...
src/library/OverflowContainer/OverflowContainer.js
mineral-ui/mineral-ui
/* @flow */ import React, { Component } from 'react'; import debounce from 'lodash.debounce'; import EventListener from '../EventListener'; import { OverflowContainerRoot as Root } from './styled'; import type { OverflowContainerProps, OverflowContainerState } from './types'; export default class OverflowContainer ex...
src/components/groups/AffectUnprocessedRowTableGroup.js
nbuechler/ample-affect-exhibit
import React from 'react'; import DivList from '../lists/DivList' export default class AffectUnprocessedRowTableGroup extends React.Component { constructor (props) { super(props); } render () { let data = this.props.data; let limitList = this.props.limitList; return ( <tr> <td> ...
src/react/LogMonitorButton.js
AnthonyWhitaker/redux-devtools
import React from 'react'; import brighten from '../utils/brighten'; const styles = { base: { cursor: 'pointer', fontWeight: 'bold', borderRadius: 3, padding: 4, marginLeft: 3, marginRight: 3, marginTop: 5, marginBottom: 5, flexGrow: 1, display: 'inline-block', fontSize: '...
webapp/app/components/Restore/Table/ModalInstantRestore/index.js
EIP-SAM/SAM-Solution-Server
// // Modal to create an instant save in save history page // import React from 'react'; import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap'; import LinkContainerButton from 'components/Button'; import styles from 'components/RestoreHistory/Table/ModalInstantRestore/styles.css'; /* eslint-disable react/...
src/svg-icons/image/collections.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollections = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/> ...
modules/Link.js
keathley/react-router
import React from 'react'; var { object, string, func } = React.PropTypes; function isLeftClickEvent(event) { return event.button === 0; } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); } /** * <Link> components are used to create an <a> element t...
packages/reactor-kitchensink/src/NavView.js
markbrocato/extjs-reactor
import React from 'react'; import { Container } from '@extjs/ext-react'; export default function NavView({ node }) { function onClick(e, path) { Ext.get(e.target).ripple(e, {}); requestAnimationFrame(() => location.hash = path, 50) } return ( <Container layout="center" padding="2...
sample-redux/src/App.js
arunkumar-s/react-training
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
src/routes/contact/index.js
jessiepullaro414/kiwi
/** * 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 Layout from '../../co...
src/containers/CityList/index.js
Cirych/WeatherApp
import React from 'react'; import { connect } from 'react-redux'; import { removeLocation, refreshLocation, selectLocation } from '../../actions'; import { City } from '../../components'; export const CityList = ({locations, ...props}) => <div> { locations.map(({id, ...location}) => <City key={id} ...
examples/with-babel-macros/pages/_document.js
arunoda/next.js
import React from 'react' import Document, {Head, Main, NextScript} from 'next/document' export default class MyDocument extends Document { render () { return ( <html> <Head> <title>With babel-macros</title> <style dangerouslySetInnerHTML={{__html: this.props.css}} /> </...
src/index.js
FRCTools/Attendance-Client
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; ReactDOM.render(<App />, document.getElementById('root'));
examples/js/remote/demo.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import RemoteStoreSorting from './remote-store-sorting'; import RemoteStoreFiltering from './remote-store-filtering'; import RemoteStoreSearch from './remote-store-search'; import RemoteStorePaging from './remote-store-paging'; import RemoteStoreInsertRow from './remot...
src/admin/client/modules/apps/head/index.js
cezerin/cezerin
import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import Buttons from './components/buttons'; const mapStateToProps = (state, ownProps) => { return {}; }; const mapDispatchToProps = (dispatch, ownProps) => { return {}; }; export default withRouter( connec...
Libraries/Components/WebView/WebView.ios.js
catalinmiron/react-native
/** * 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. * * @provides...
src/svg-icons/maps/tram.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTram = (props) => ( <SvgIcon {...props}> <path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h...
Initial/src/client/app/components/LifeCycleTest.js
Louis0503/TestRact
'use strict' import React from 'react'; // Mounting:已插入真實的 DOM // Updating:正在被重新渲染 // Unmounting:已移出真實的 DOM class LifeCycleTest extends React.Component{ constructor(props){ super(props); console.log('constructor'); this.handleClick = this.handleClick.bind(this); this.state = { name : 'Default' }; } hand...
src/shared/components/About/About.js
wcrowe/makeqachecklist
/* @flow */ import React from 'react'; import Helmet from 'react-helmet'; function About() { return ( <div style={{ textAlign: 'center' }}> <Helmet title="About" /> Produced with ❤️ by &nbsp; <a href="https://twitter.com/controlplusb" target="_blank" rel="noopener noreferrer"> ...
src/components/profile/reviews/MyReviews.js
simnau/event-scraper-ui
import React from 'react'; function MyReviews({ }) { return ( <div> My Reviews </div> ); } export default MyReviews;
src/renderer/components/Loader.js
digidem/ecuador-map-editor
import React from 'react' import styled from 'styled-components' const Styled = styled.div` display: inline-block; position: relative; width: 64px; height: 64px; div { position: absolute; top: 12px; width: 11px; height: 11px; border-radius: 50%; animation-timing-function: cubic-bezier...
src/components/userPanel/userPanel.js
BerndWessels/react-freezer-webpack
/** * Manapaho (https://github.com/manapaho/) * * Copyright © 2015 Manapaho. 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 Entities. */ import {getEntities, getE...
packages/react-error-overlay/src/index.js
reedsa/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. */ /* @flow */ import React from 'react'; import type { Element } from 'react'; import ReactDOM from 'react-dom'; import CompileErrorContai...
src/Calendar/Calendar.js
AbhiPrasad/vizi
import React from 'react'; import DatePicker from "react-datepicker"; import './Calendar.css'; import { Row, Col } from 'reactstrap'; const Calendar = ({ start_date, end_date, handleChangeStart, handleChangeEnd }) => { return ( <Row className="cals"> <Col sm={{ size: 4, offse...
src/components/app.js
dimaka77/ReduxSimpleStarter
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div>React simple starter</div> ); } }
app/javascript/src/components/conversations/triggersPanel.js
michelson/chaskiq
import React from 'react' import FormDialog from '../../components/FormDialog' import Button from '../../components/Button' import { withRouter } from 'react-router-dom' import { connect } from 'react-redux' import graphql from '../../graphql/client' import { BOT_TASKS } from '../../graphql/queries' import { SEND_TRIG...
src/compose/CameraPhotoList.js
Sam1301/zulip-mobile
/* @flow */ import React from 'react'; import { ActivityIndicator, Image, ListView, StyleSheet, View, groupByEveryN } from 'react-native'; const styles = StyleSheet.create({ container: { flexGrow: 1, height: 150, }, row: { flexDirection: 'row', flex: 1, }, image: { margin: 4, width: 1...
src/components/Notification.legacy/Notification.js
wfp/ui
import React from 'react'; /** dkjnslknkjfndn */ const CloseButton = ({ YouCanPassAnyProps, closeToast }) => ( <button ariaLabel="close" className="Toastify__close-button" onClick={closeToast}> <span></span> </button> ); /** huyhuyghu */ const notificationStyle = { position: 'bottom-right', cl...
website/src/components/tag.js
honnibal/spaCy
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { isString } from './util' import Icon from './icon' import classes from '../styles/tag.module.sass' const MIN_VERSION = 3 export default function Tag({ spaced = false, variant, tooltip, children }) { if (vari...
packages/mineral-ui-icons/src/IconArrowDownward.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 IconArrowDownward(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...icon...
docs/src/Root.js
chrishoage/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
app/index.js
asaeed/ReactNativeStarter
import React, { Component } from 'react'; import { StyleSheet, View } from 'react-native'; import Cats from './cats'; import Bars from './bars'; class App extends Component { render() { return ( <View> <Cats></Cats> <Bars></Bars> </View> ); } } export default App;
app/javascript/mastodon/features/ui/components/drawer_loading.js
yukimochi/mastodon
import React from 'react'; const DrawerLoading = () => ( <div className='drawer'> <div className='drawer__pager'> <div className='drawer__inner' /> </div> </div> ); export default DrawerLoading;
js/src/3rdparty/sms-verification/index.js
immartian/musicoin
// Copyright 2015, 2016 Ethcore (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 later version....
src/templates/not-found-template.js
Amine-H/Amine-H.github.io
// @flow strict import React from 'react'; import Sidebar from '../components/Sidebar'; import Layout from '../components/Layout'; import Page from '../components/Page'; import { useSiteMetadata } from '../hooks'; const NotFoundTemplate = () => { const { title, subtitle } = useSiteMetadata(); return ( <Layout...
node_modules/react-bootstrap/es/Clearfix.js
rblin081/drafting-client
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/app/components/Users/ListItem.js
sphinxominator/councils-feathers
import React from 'react' import styled from 'styled-components' export default ({ name = '' }) => <ListItem> <Placeholder> {name.charAt(0)} </Placeholder> <Name> {name} </Name> </ListItem> const ListItem = styled.div` box-sizing: border-box; display: flex; flex-direction: row; ...
src/svg-icons/action/alarm-off.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
client/app/scripts/components/embedded-terminal.js
kinvolk/scope
import React from 'react'; import { connect } from 'react-redux'; import { brightenColor, getNodeColorDark } from '../utils/color-utils'; import { DETAILS_PANEL_WIDTH, DETAILS_PANEL_MARGINS } from '../constants/styles'; import Terminal from './terminal'; class EmeddedTerminal extends React.Component { constructor(p...
client/src/components/forms/inputs/Slider.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { FormInput } from 'react-form'; import Col from 'react-bootstrap/lib/Col'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ReactBootstrapSlider from 'react-bootstrap-slider';...
fields/types/email/EmailField.js
webteckie/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; /* TODO: - gravatar - validate email address */ module.exports = Field.create({ displayName: 'EmailField', renderField () { return ( <FormInput name={this.props.path} ref="focusTarget" value={this.pr...
example/examples/MapStyle.js
wannyk/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions } from 'react-native'; import MapView, { ProviderPropType } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DELTA ...
examples/shopping-cart/src/main.js
optimizely/nuclear-js
'use strict'; import React from 'react' import App from './components/App' import reactor from './reactor' import actions from './actions' import CartStore from './stores/CartStore' import ProductStore from './stores/ProductStore' reactor.registerStores({ cart: CartStore, products: ProductStore, }) actions.fetc...