path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/help.js
7022Andre/kitti
import React from 'react'; import { Link } from 'react-router-dom'; import Header from './common/kittiHeader'; import '../css/help.css'; export default () => { return ( <div className="Help"> <Header title={'Help'} /> <div className="help-content"> <div> <h3>How does it work?</h3> ...
src/entry/client_render.js
abcrun/craftsman
import 'babel-polyfill'; import 'es5-shim'; import 'es5-shim/es5-sham'; import 'console-polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import { render } from 'react-dom'; import Root from '../container/client_render'; import configureStore from '../configureStore'; import './reset.css'...
packages/reactor-conference-app/src/App.js
markbrocato/extjs-reactor
import React from 'react' import { HashRouter as Router, Switch, Route, Redirect } from 'react-router-dom' import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux' import { store, history } from './store'; import Layout from './Layout'; import Schedule from './schedule/Schedule'; i...
src/routes/index.js
chengjianhua/templated-operating-system
import React from 'react'; import { Route, Switch, } from 'react-router-dom'; import Home from '../pages/home'; import Build from '../pages/build'; import Components from '../pages/components'; const routes = ( <Switch> <Route exact path="/" component={Home} /> <Route path="/components" component={Compo...
src/components/options/index.js
macpie/Gif-Chrome-Extension
import React from 'react'; import {Col} from 'react-flexbox-grid/lib'; import Divider from 'material-ui/Divider'; import Import from './Import'; import Export from './Export'; class Options extends React.Component { constructor(props) { super(props); this.importSuccess = this.importSuccess.bind(th...
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js
imDangerous/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...
src/client/components/SignupButtonsWidget/SignupButtonsWidget.js
trippian/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' import { routeConfig as appRouteConfig } from '../../config/appConfig' import { SignupButtonsWidget as appConfig } from '../../config/appConfig' const SignupButtonsWidget = ({ isHorizontal = false, googleAuth = appRouteCo...
src/component/MixerOptions.js
evanram/evan-dot-coffee
import React, { Component } from 'react'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Checkbox from 'react-bootstrap/lib/Checkbox'; class MixerOptions extends Component { render() { const checkboxes = this.props.values.map((value) => { return <Checkbox onClick={() => this.props.handleUpda...
src/components/list/ListPage.react.js
phuoctuong285/smartMeter_v1
import React from 'react' import {Page,List,ListHeader,Toolbar,ListItem,BackButton,Row,Col,Input,AlertDialog,Select,ProgressCircular} from 'react-onsenui' import {notification,modal} from 'onsenui' import {BootstrapTable,TableHeaderColumn} from 'react-bootstrap-table' import {Glyphicon,Button,DropdownButton} from 'reac...
src/routes.js
golgistudio/website
import React from 'react'; import {IndexRoute, Route} from 'react-router'; // import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Home, NotFound, } from 'containers'; /* eslint-disable no-unused-vars */ export default (store) => { // const requireLogin = (next...
src/layouts/CoreLayout/CoreLayout.js
uraway/stt-app
import React from 'react' import PropTypes from 'prop-types' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {...
src/components/Select.js
gabrielrotbart/memorx
import React from 'react'; class Select extends React.Component { constructor(props) { super(props); this.state = { value: this.props.value } this.handleChange = this.handleChange.bind(this) } handleChange(event) { this.props.handleStateChange(event.target.value) } render() { ...
client/js/organization.js
charitycollective/charitytree
"use strict"; import React from 'react'; import { History } from 'react-router'; var LocalStorageMixin = require('react-localstorage'); import moment from 'moment'; moment().format(); var Organization = exports.Organization = React.createClass({ displayName: 'Organization', mixins: [ History, LocalStorageMixin ], ...
src/modules/todo/components/TodoForm.js
scubism/react_todo_web
import React from 'react' import { provideHooks } from 'redial' import { reduxForm } from 'redux-form' import autobind from 'autobind-decorator' import Loader from 'react-loaders' import moment from 'moment' import DayPicker, { DateUtils } from 'react-day-picker' import { CompactPicker } from 'react-color'; import { up...
src/components/video_detail.js
silky098/Youtube-React-Search
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return ( <div>Loading...</div> )}; const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; const title = video.snippet.title const description = video.snippet.description return ( ...
src/components/d3components/Node.js
nbuechler/friendly-finder
import React from 'react'; import ReactDOM from 'react-dom'; import d3 from 'd3'; import _ from 'underscore'; export default class Node extends React.Component { constructor (props) { super(props); this.state = { }; } _handleOver(d) { var shifter = 30; // This gets the whole tooltip away from the n...
src/interface/report/RaidCompositionDetails.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'interface/Icon'; const RaidCompositionDetails = props => { const { tanks, healers, dps, ranged, ilvl } = props; return ( <div className="raid-composition"> <div className="bar"> <div className="panel-body" style={{...
src/components/ChartInfo.js
BenGoldstein88/redux-chartmaker
import React from 'react'; import TitleDisplay from './TitleDisplay'; import ComposerDisplay from './ComposerDisplay'; import ArrangerDisplay from './ArrangerDisplay'; export default class ChartInfo extends React.Component { // static propTypes = { // name: React.PropTypes.string, // }; constructor(props) {...
src/modules/header/HeaderRenderer.js
kuzzmi/rmndrz
import React from 'react'; import './Header.scss'; export default () => <div className="HeaderComponent"> <div className="text"> <span className="name"> rmndrz </span> <span className="version"> v1.0.0 </span> </div> ...
app/scripts/components/nodes-resources/node-resources-layer.js
hustbill/autorender-js
import React from 'react'; import { connect } from 'react-redux'; import { Map as makeMap } from 'immutable'; import NodeResourcesMetricBox from './node-resources-metric-box'; import NodeResourcesLayerTopology from './node-resources-layer-topology'; import { layerVerticalPositionByTopologyIdSelector, layoutNodesBy...
admin/src/page/post-list.js
grumoon/GruBlog
import React from 'react' import {Table, Button, Modal, message} from 'antd'; import {Link} from 'react-router' import $ from 'jquery'; import {Utils, Constants} from '../lib/common.js' export class PostListPage extends React.Component { columns = [ { title: '名称', dataIndex: 'title...
src/components/main.js
elcsiga/logo-game
require('normalize.css/normalize.css'); window.decomp = require('poly-decomp'); console.log (window.decomp); import React from 'react'; import Scene from './scene'; import LandingPage from './LandingPage'; // const LandingPage = createFactory(LandingPageClass); class AppComponent extends React.Component { rende...
modules/gui/src/widget/form/buttons.js
openforis/sepal
import {Buttons} from 'widget/buttons' import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' export class FormButtons extends React.Component { render() { const {chromeless, look, shape, size, air, className, input, label, multiple, options, tooltip, tooltipPlacement, ...
packages/react/components/list-button.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '.....
blueocean-material-icons/src/js/components/svg-icons/action/shop.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionShop = (props) => ( <SvgIcon {...props}> <path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"/> </SvgIcon> ); ActionShop.displayName = 'ActionShop'; ...
Example/index.ios.js
usergyt/react-native-camera-fork
import React from 'react'; import { AppRegistry } from 'react-native'; import Example from './Example'; AppRegistry.registerComponent('Example', () => Example);
dawn/renderer/components/peripherals/GameValues.js
pioneers/PieCentral
/* eslint-disable camelcase */ import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; /** * Generic Peripheral for General Case */ const GameValues = ({ device_name, param, }) => ( <div style={{ overflow: 'auto', width: '100%' }}> <h4 style={{ float: 'left' }}> <div>{dev...
Redux/0/public/components/Layout.react.js
hugonasciutti/Exercises
import React from 'react'; import { Link } from 'react-router'; class Layout extends React.Component { render() { return ( <div> <ul className="Links"> Links: <li><Link to="index">Index</Link></li> <li><Link to="about">About</Link></li> </ul> <h1 class...
12-route-to-modal-gallery/components/App.js
nodeyu/jason-react-router-demos-v4
import React from 'react'; import { BrowserRouter, Route } from 'react-router-dom'; import ModalSwitch from './ModalSwitch/ModalSwitch'; import './App.css'; class App extends React.Component { render() { return ( <BrowserRouter> <div> <h1>Fantastic Gallery</...
client/js/components/Profile.js
bmacheski/tech-connect
'use strict'; import React from 'react'; import UserStore from '../stores/UserStore'; import TechProfileActions from '../actions/TechProfileActions'; import TechProfileStore from '../stores/TechProfileStore'; import TechProfile from './TechProfile'; import ProfileEdit from './ProfileEdit'; class Profile extends React...
test/regressions/index.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import ReactDOM from 'react-dom'; import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles'; import vrtest from 'vrtest/client'; import webfontloader from 'webfontloader'; import TestViewer from './TestViewer'; // Get all the tests specifically written for preventing re...
web/src/js/components/Authentication/MissingEmailMessage.js
gladly-team/tab
import React from 'react' import Paper from '@material-ui/core/Paper' import Typography from '@material-ui/core/Typography' import Button from '@material-ui/core/Button' import { logout } from 'js/authentication/user' import { goTo, loginURL } from 'js/navigation/navigation' class MissingEmailMessage extends React.Com...
packages/idyll-docs/pages/docs/configuration-and-styles.js
idyll-lang/idyll
import React from 'react'; import Link from 'next/link'; import markdown from 'markdown-in-js'; import Layout from '../../components/layout'; import Highlight from 'react-highlight'; const Content = () => markdown` ## Themes and page layout Idyll exposes two options to help you style your project, \`layout\` and \`th...
docs/src/sections/tabs.js
ricsv/react-leonardo-ui
import React, { Component } from 'react'; import Example from '../example'; import Section from '../section'; import { Tab, Tabset, Icon } from '../../../src/react-leonardo-ui'; class TabsSection extends Component { constructor() { super(); this.state = { activeTab: 0, }; this.onClick = this.o...
src/encoded/static/components/glossary.js
ENCODE-DCC/encoded
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import * as globals from './globals'; const GlossaryTerm = (props) => { const { term, definition } = props.glossaryEntry; return ( <div className="glossary-element"> <h4 className="glossary-term">{ter...
src/js/components/icons/base/Escalator.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/Parser/Hunter/Survival/Modules/Items/FrizzosFingertrap.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; /** * Frizzo's Fingertrap * Equip: Wh...
src/routes/details/components/details.petrol-consumption.js
jackinf/skynda.me
/** * Created by zekar on 9/15/2016. */ import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './../details.css'; import image_gas_station_2x from './../../../public/images/standard/gas_station@2x.png'; import Skblock from './details.skblock'; class PetrolConsum...
packages/node_modules/@webex/react-component-chip-base/src/index.js
adamweeks/react-ciscospark-1
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {Icon} from '@momentum-ui/react'; import styles from './styles.css'; const propTypes = { children: PropTypes.node.isRequired, id: PropTypes.string.isRequired, onRemove: PropTypes.func }; const defaultPro...
app/containers/Home/Header.js
danielmoraes/invoices-web-client
import { LinkContainer } from 'react-router-bootstrap' import { Navbar, Nav, NavItem } from 'react-bootstrap' import React from 'react' import { signIn, signUp } from 'routes' const PublicHeader = () => ( <Navbar> <Navbar.Header> <Navbar.Brand> <LinkContainer to='/'> <a>Invoices</a> ...
docs/0.6304d3bec3c1efe374c4.js
quark-ui/quark-ui
webpackJsonp([0],{"0h7d":function(e,t){e.exports="import { Component } from 'react';\nimport Icon from '../../icon';\nimport Radio from '../../radio';\nimport Button from '../../button';\nimport Tabs from '../Tabs';\nimport Panel from '../Panel';\n\nTabs.Panel = Panel;\n\nclass TabsDemo1 extends Component {\n construc...
src/js/pages/common/Components/IconButton.js
furgat/mtg-lifewarden
'use strict' import React from 'react'; export default class IconButton extends React.Component { constructor() { super(); } render() { const { clickCallback, buttonClass, labelText, iconClass } = this.props; return( <button class={buttonClass} onClick={ (event) => {...
node_modules/react-select/examples/src/app.js
together-web-pj/together-web-pj
/* eslint react/prop-types: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import Creatable from './components/Creatable'; import Contributors from './components/Contributors'; import GithubUsers from './components/GithubUsers'; import CustomComponents from './com...
app/src/routes.js
RyanCCollins/restaurant-reviewer
import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import { Provider } from 'react-redux'; import store, { history } from './store'; /* eslint-disable */ import App from 'components/App'; import * as Pages from 'pages'; /* eslint-enable */ const routes = ( <Provider store={store}> ...
frontend/src/Settings/Indexers/Indexers/EditIndexerModalContentConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { saveIndexer, setIndexerFieldValue, setIndexerValue, testIndexer } from 'Store/Actions/settingsActions'; import createProviderSettingsSelector from 'Sto...
react/features/overlay/components/web/OverlayFrame.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; declare var interfaceConfig: Object; /** * The type of the React {@code Component} props of {@link OverlayFrame}. */ type Props = { /** * The children components to be displayed into the overlay frame. */ children: React$Node, /** * In...
src/sentry/static/sentry/app/icons/icon-support.js
gencer/sentry
import React from 'react'; import Icon from 'react-icon-base'; function IconSupport(props) { return ( <Icon viewBox="0 0 24 24" {...props}> <g fill="currentColor" transform="translate(0, 2)"> <path d="M8,15.9620708 L8,15.5 C8,14.6715729 8.67157288,14 9.5,14 L14.5,14 C15.3284271,14 16,14.6715729 16,...
webapp/app/components/SoftwaresByUser/Table/ModalAddSoftware/index.js
EIP-SAM/SAM-Solution-Node-js
// // Modal to add a software in softwares by user page // import React from 'react'; import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap'; import LinkContainerButton from 'components/Button'; import styles from 'components/SoftwaresByUser/styles.css'; /* eslint-disable react/prefer-stateless-function */...
src/svg-icons/places/hot-tub.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesHotTub = (props) => ( <SvgIcon {...props}> <circle cx="7" cy="6" r="2"/><path d="M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12...
src/scenes/about/profile-photo.js
mattmischuk/m1x
// @flow import React from 'react' import styled from 'styled-components' import { myTheme } from '../../styles' import assets from './assets' const { color, breakpoint, borderRadii } = myTheme // Profile Photo // ---------------------------------------- const StyledProfilePhoto = styled.img` width: 100%; obje...
js/jqwidgets/demos/react/app/treegrid/pagingbyrootrecords/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.expandRow(1); } render () { // prepare the data let source = { ...
components/app.js
hanxzi/react-redux
/** * Created by hanxzi on 17/4/20. */ import React from 'react'; export default function App() { return <h1>Hello World </h1>; }
src/components/stuff-groups-list/stuff-groups-list.story.js
dima-bu/b2b.core
import React from 'react'; import {storiesOf, action} from '@kadira/storybook'; import StuffGroupsList from './stuff-groups-list'; const styles = { padding: '20px', 'backgroundColor': '#deecee', 'height': '80vh' }; const title = "Тарифы"; const items = [ { name: 'Эконом', id: 23 }, { name: 'С...
src/screens/Shared/UserBookmarkNovels.js
alphasp/pxview
import React, { Component } from 'react'; import { InteractionManager } from 'react-native'; import { connect } from 'react-redux'; import NovelList from '../../components/NovelList'; import * as userBookmarkNovelsActionCreators from '../../common/actions/userBookmarkNovels'; import { makeGetUserBookmarkNovelsItems } f...
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/dialer-sip.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationDialerSip = (props) => ( <SvgIcon {...props}> <path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.5...
packages/mineral-ui-icons/src/IconAssistantPhoto.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 IconAssistantPhoto(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...ico...
src/parser/deathknight/unholy/modules/features/AlwaysBeCasting.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellLink from 'common/SpellLink'; class AlwaysBeCasting ex...
view/admin/components/common/Forms.js
salesforce/refocus
/** * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or * https://opensource.org/licenses/BSD-3-Clause */ /** * view/admin/components/common/Forms.js * * Returns form component, given fie...
src/components/RegisterForm/RegisterForm.js
Rosita13/react-redux
import React, { Component } from 'react'; import { reduxForm, Field, propTypes } from 'redux-form'; import registerValidation from './registerValidation'; @reduxForm({ form: 'register', validate: registerValidation }) export default class RegisterForm extends Component { static propTypes = { ...propTypes }...
src/components/NotFoundPage/NotFoundPage.js
josedigital/koala-app
import React from 'react' const NotFoundPage = () => <div> <h2>404</h2> </div> export default NotFoundPage
libraries/react.js
vanHeemstraDesigns/CreationsEcosystemStatic
//import React from 'react'; // //export default React; module.exports = require('react');
src/containers/app/CreateAppType.js
kryptnostic/gallery
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import Select from 'react-select'; import { Models } from 'lattice'; import { FormControl, FormGroup, ControlLabel, Button, Alert } from 'react-bootstrap'; import { connect } from 'react-redux'; import { bindActionCreator...
app/containers/Acasa/MainContainer/index.js
code4romania/monitorizare-vot-votanti-client
/** * Created by dcorde on 08.11.2016. */ import React from 'react'; import LeftContainer from './components/LeftContainer/index'; import RightContainer from './components/RightContainer/index'; export function MainContainer(props) { // eslint-disable-line react/prefer-stateless-function return ( <section cl...
src/routes/Counter/components/Counter.js
ligangwolai/blog
import React from 'react' import PropTypes from 'prop-types' export const Counter = ({ counter, increment, doubleAsync }) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {counter}</h2> <button className='btn btn-primary' onClick={increment}> Increment </button> {' '} <button className...
app/containers/Defunct - HomePage/index.js
Jan-Jan/react-hackathon-boilerplate
/* * 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 necessity for you then you can refactor it and remove * the l...
src/js/admin/photos/photo-flow/photo-flow/photo-flow.js
ucev/blog
import React from 'react' import { connect } from 'react-redux' import PhotoFlowOperationBar from '../photo-flow-operation-bar' import PhotoItem from '../photo-item' import './photo-flow.style.scss' const PhotoFlow = ({ photos }) => { const items = photos.map(photo => ( <PhotoItem key={photo.id} ph...
slides/src/App.js
saksham/ml-overview
import './App.css' import React from 'react' let App = React.createClass({ render() { return <div className="App"> <div className="App-heading App-flex"> <h2>Welcome to <span className="App-react">React</span></h2> </div> <div className="App-instructions App-flex"> <img classNa...
ReactJS/04.React-Form-Exercise/demoToday/src/components/form/validationComponents/Invalid.js
Martotko/JS-Web
import React from 'react' let Valid = prop => { return ( <span role='img' aria-label='valid' style={{ display: prop.display ? 'none' : '', marginLeft: '-23px' }} > ❌ </span> ) } export default Valid
app/components/center_piece.js
bdunams/neo-veg
// Import React import React from 'react'; // Import Top Vegetables Component import TopVegetables from './top_vegetables'; // Returns Component JSX const CenterPiece = () =>{ return( <div> <div id="carouselExampleIndicators" className="carousel slide" data-ride="carousel"> <ol className="carousel...
src/components/Paginator.js
longyarnz/WelFurnish-E-Commerce
import React from 'react'; export default function Paginator(props) { return ( <div className="paginator"> <span className="paginator" onClick={(e)=>props.onClick(false)}></span> <span className="paginator" onClick={(e)=>props.onClick(true)}></span> <span className="paginator"> <input classN...
app/react/src/demo/Button.js
rhalff/storybook
import PropTypes from 'prop-types'; import React from 'react'; import glamorous from 'glamorous'; const Button = glamorous(({ children, ...rest }) => <button {...rest}>{children}</button>)({ border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3p...
app/javascript/mastodon/components/load_pending.js
maa123/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadPending extends React.PureComponent { static propTypes = { onClick: PropTypes.func, count: PropTypes.number, } render() { const { count } = this.props; return ...
docs/src/NotFoundPage.js
westonplatter/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage="" /> <PageHeader title="404" subT...
CompositeUi/src/views/page/Register.js
kreta-io/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import {connect} from 'react-redux'; impo...
packages/ringcentral-widgets/components/RemoveButton/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import rcFont from '../../assets/RcFont/RcFont.scss'; import styles from './styles.scss'; function RemoveButton(props) { let className = null; if (props.visibility) { className = classnames(styles.containner, pr...
examples/layer-list/app.js
bartvde/sdk
/** Demo of layer list in an SDK map. * * Contains a Map and demonstrates adding many types of layers * And a layer list component to manage the layers * */ import {createStore, combineReducers} from 'redux'; import React from 'react'; import ReactDOM from 'react-dom'; import {DragSource, DropTarget} from 'rea...
src/src/components/Header/Header.js
alexberriman/local-deals
import React from 'react' import {IconBack, IconMenu} from 'components/Icons' import classes from './Header.scss' class Header extends React.Component { /** * Sets up the component. * * @param props */ constructor(props) { super(props) this._onDrawerClick = ::this._onDrawerClick } /** ...
src/components/BaseFigures.js
nickgreengithub/mortgagecalc
import React from 'react'; import { connect } from 'react-redux'; import * as actions from '../ducks/mortgage'; export default connect(({ mortgage }) => ({ mortgage }))( ({ mortgage: { initial, years, rate }, className, dispatch }) => ( <div className={ className }> <div> <h2>Initial</h2>...
examples/with-graphql-hooks/components/post-upvoter.js
zeit/next.js
import React from 'react' import { useMutation } from 'graphql-hooks' const UPDATE_POST = ` mutation votePost($id: String!) { votePost(id: $id) { id votes __typename } } ` export default function PostUpvoter({ votes, id, onUpdate }) { const [updatePost] = useMutation(UPDATE_POST) re...
app/javascript/src/components/conversations/Sidebar.js
michelson/chaskiq
import React from 'react' import { withRouter, Link } from 'react-router-dom' import { connect } from 'react-redux' import Moment from 'react-moment' import { LabelIcon, LeftArrow } from '../icons' import { updateApp } from '../../actions/app' import AppInserter from './AppInserter' import Button from '../Button' i...
webapp/src/containers/layout/menu.js
alliance-genome/agr_prototype
import React, { Component } from 'react'; import { Link } from 'react-router'; import style from './style.css'; import SubMenu from './subMenu'; import { MENU, WP_PAGES } from '../../constants'; class Menu extends Component { render() { let container=[]; for(var index in MENU){ let page=MENU[index]; ...
examples/official-storybook/stories/addon-measure/BoxModel.stories.js
storybooks/storybook
import React from 'react'; import { Visualization } from '../../components/addon-measure/Visualization'; export default { title: 'Addons/Measure/BoxModel', parameters: { layout: 'fullscreen', }, }; const Template = (args) => <Visualization {...args} />; export const MarginUniform = Template.bind({}); Margi...
examples/official-storybook/stories/core/layout.stories.js
storybooks/storybook
import React from 'react'; // eslint-disable-next-line react/prop-types const Box = ({ children, display = 'block', width, height }) => ( <div style={{ display, border: '2px solid #FF4785', padding: 10, width, height }}>{children}</div> ); export default { title: 'Core/Layout', }; export const Default = () => <B...
src/components/Navbar/index.js
orionsoft/parts
import React from 'react' import Container from '../Container' import {Link} from 'react-router-dom' import Margin from './Margin' import PropTypes from 'prop-types' export default class Navbar extends React.Component { static propTypes = { logo: PropTypes.string } renderLogo() { return ( <Link to...
src/components/Today.js
kosmologist/andromeda-web
import React from 'react' import {colors} from "../res/Colors"; import CircularProgressbar from "react-circular-progressbar"; import {Work, WorkOff} from "@material-ui/icons"; import {Grid, Typography, Card, CardContent} from "@material-ui/core"; import {store} from "../store/DataStore"; export default class Today ext...
smsgw/static/js/outbox/form.react.js
VojtechBartos/smsgw
'use strict'; import React from 'react'; import moment from 'moment'; import {Map} from 'immutable'; import {trim} from 'lodash'; import LaddaButton from 'react-ladda'; import {Grid, Row, Col, Input, Well} from 'react-bootstrap'; import DateTimeField from 'react-bootstrap-datetimepicker'; import ReactTagsInput from 'r...
client-src/js/components/app-component.js
MatthewNichols/ThePickupList
import React, { Component } from 'react'; import { Router, Route, Link, browserHistory } from 'react-router' export default class App extends Component{ render() { return ( <div> <h1>Site Title</h1> <div>{this.props.children}</div> </div> ); ...
node_modules/react-native/Libraries/Image/Image.ios.js
vinicius-ov/Livefy
/** * 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...
react/src/components/toggle/SprkToggle.stories.js
sparkdesignsystem/spark-design-system
import React from 'react'; import SprkToggle from './SprkToggle'; import { markdownDocumentationLinkBuilder } from '../../../../storybook-utilities/markdownDocumentationLinkBuilder'; export default { title: 'Components/Toggle', component: SprkToggle, decorators: [(story) => <div className="sprk-o-Box">{story()}<...
setup/src/universal/features/common_ui/form/AddressForm/index.js
ch-apptitude/goomi
/** * * AddressForm * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { Form } from 'react-form'; import { Row, Col } from 'react-flexbox-grid'; import countries from 'services/countries'; import Field from 'features/common_ui/form/Field'; impo...
components/date_picker/Calendar.js
rubenmoya/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CssTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import { range, getAnimationModule } from '../utils/utils'; import time from '../utils/time'; import CalendarMonth from './CalendarMonth'; const DIRECTION_STEPS = { ...
src/components/template.js
YMFL/reactNews
//这个文件在项目中没有用到,只是作为一个模板文件 import React from 'react'; class AppComponent extends React.Component { render() { return ( <div> </div> ); } } AppComponent.defaultProps = {}; export default AppComponent; //api 获取的文件结构 //http://newsapi.gugujiankong.com/Handler.ashx?action=getnews&type=top&count=10; ...
src/components/recording/sidebar/UndoButton.js
zebras-filming-videos/streamr-web
import React from 'react' import cx from 'classnames' import Mousetrap from '../../Mousetrap' import Tooltip from 'rc-tooltip' export default ({ onClick, disabled }) => ( <Tooltip placement='right' overlay='Undo (⌘-Z)'> <div className={cx('sidebar-button undo-button', { disabled })} {...{ onClick }}> ...
src/components/app.js
marcusdarmstrong/mockdraftable-web
// @flow import React from 'react'; import type { Dispatch } from 'redux'; import { connect } from 'react-redux'; import type { Action } from '../redux/actions'; import Nav from './nav'; import PositionSelector from './position-selector'; import Modal from './modal'; import PlayerPage from './player-page'; import Hom...
demo/population-choropleth.js
joelburget/d4
import React from 'react'; import {quantile} from 'd3-array'; import {scaleLog} from 'd3-scale'; import {interpolateHcl} from 'd3-interpolate'; import {geoPath} from 'd3-geo'; import topojson from 'topojson'; import us from '../data/us-albers.json'; const width = 960; const height = 500; const color = scaleLog() ....
src/app/modules/Chat/components/Conversations.js
toxzilla/app
import React from 'react'; import {connect} from 'cerebral-view-react'; import { Badge, Button, Form, Icon, Input, List, ListItem, ScrollBar, Text, Toolbar } from './../../../common/UserInterface'; import {User} from './../../../common/User'; import {hasConversations} from './../computed'; export ...
src/svg-icons/action/track-changes.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrackChanges = (props) => ( <SvgIcon {...props}> <path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s...
packages/native/src/components/screens/budget/BudgetList.js
hwaterke/inab-native
import React from 'react'; import PropTypes from 'prop-types'; import {Text, View, SectionList, StyleSheet} from 'react-native'; import {connect} from 'react-redux'; import { BudgetItemResource, CategoryResource, CategoryGroupResource, getSortedCategoryGroups, selectCategoriesByGroupId, selectSelectedMonthA...
client/src/containers/SignUp.js
richb-hanover/reactathon
import React from 'react'; import { SignupForm } from '../components'; export const SignUp = () => ( <section> <div style={{ maxWidth: '440px', padding: '8px', background: 'white', margin: '1em auto 2em auto', borderRadius: '2px', boxShadow: '0 3px 10px rgba(0...
Example/app/HomeScreen.js
cuttingsoup/react-native-firebase-local-cache
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { NavigationActions } from 'react-navigation'; import ItemList from './components/ItemList' import ChildAddedList from ...