path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
test/regressions/tests/Badge/Badge.js
AndriusBil/material-ui
// @flow import React from 'react'; import Badge from 'material-ui/Badge'; import Icon from 'material-ui/Icon'; export default function SimpleBadge() { return ( <Badge badgeContent={1} color="primary"> <Icon>mail</Icon> </Badge> ); }
src/pages/minimum/Prim/Prim.js
hyy1115/react-redux-webpack3
import React from 'react' class Prim extends React.Component { render() { return ( <div>Prim</div> ) } } export default Prim
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
hak59/hak59.github.io
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/alert-container/AlertContainer.spec.js
NaomiFPassarelli/react-alert
import React from 'react' import renderer from 'react-test-renderer' import {shallow} from 'enzyme' import AlertContainer from './AlertContainer' describe('AlertContainer', () => { test('should set its position based on the given position prop', () => { let props = { position: 'top left' } let comp...
app/javascript/mastodon/features/favourited_statuses/index.js
hyuki0000/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
javascript/components/modal.js
kdoran/moriana-react
import React from 'react' import ClickOutHandler from 'react-onclickout' export default function Modal ({ show, onClose, heading, children }) { return show ? <ClickOutHandler onClickOut={onClose}> <div className='modal'> <div> <button className='close' onClick={onClose}><span>×</span></bu...
app/javascript/flavours/glitch/components/status.js
vahnj/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusPrepend from './status_prepend'; import StatusHeader from './status_header'; import StatusIcons from './status_icons'; import StatusContent from './status_content'; import StatusAction...
components/RSVPForm/AttendanceInfo.js
jamesrf/weddingwebsite
import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group' // ES6 import s from './RSVPForm.css'; import TextField from '../TextField/TextField'; class AttendanceInfo extends React.Component { constructor(props){ super(props); this.state = {isAttending: true}; thi...
src/components/video_list.js
stewarea/React-Youtube
import React from 'react'; import VideoListItem from './video_list_item' const VideoList = (props) => { const videoItems = props.videos.map((video) => { return (<VideoListItem onVideoSelect={props.onVideoSelect} key={video.etag} video={video} /> ) }); return ( <ul className="col-md...
src/components/App.spec.js
Kinectsit/kinects-it
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { App } from './App'; describe('<App />', () => { it('should have the app container', () => { const actual = shallow(<App />).find('.app-container').length; expect(actual).to.equal(1); }); });
packages/react-interactions/events/src/dom/PressLegacy.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 type { ReactDOMResponderEvent, ReactDOMResponderContext, PointerType, } from 'shared/ReactDOMTypes'; impo...
app/javascript/mastodon/features/ui/components/bundle.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const emptyComponent = () => null; const noop = () => { }; class Bundle extends React.PureComponent { static propTypes = { fetchComponent: PropTypes.func.isRequired, loading: PropTypes.func, error: PropTypes.func, children: PropTypes.fu...
aplicaciones_informaticas/frontendCentrosSalud/src/components/Feed/Feed.js
awainer/7539
import React, { Component } from 'react'; import { hospitalService, feedService } from '../../services'; import Dropdown from 'react-toolbox/lib/dropdown'; import styles from './styles.css' let data = [ { key: "dataSource1", values: [ {label: "A", value: 3}, {label: "B", value: 4} ] }, ...
app/jsx/shared/components/Paginator.js
djbender/canvas-lms
/* * Copyright (C) 2018 - 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...
src/App.js
MichelLosier/cardspace
import React, { Component } from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; import './App.css'; import Main from './components/main.component'; class App extends Component { render() { return ( <div className="App"> <Router> <Main/> </Router> ...
src/icons/Forward10Icon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class Forward10Icon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M8 26c0 8.8 7.2 16 16 16s16-7.2 16-16h-4c0 6.6-5.4 12-12 12s-12-5.4-12-12 5.4-12 12-12v8l10-10L24 2v8c-8...
app/javascript/mastodon/components/autosuggest_textarea.js
imas/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
client/components/DeleteChannelWarning.js
iiet/iiet-chat
import React from 'react'; import { Button, ButtonGroup, Icon, Modal } from '@rocket.chat/fuselage'; import { useTranslation } from '../contexts/TranslationContext'; const DeleteChannelWarning = ({ onConfirm, onCancel, ...props }) => { const t = useTranslation(); return <Modal {...props}> <Modal.Header> <Icon...
docs/src/app/components/pages/components/IconButton/ExampleSimple.js
pancho111203/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; const IconButtonExampleSimple = () => ( <div> <IconButton iconClassName="muidocs-icon-custom-github" /> <IconButton iconClassName="muidocs-icon-custom-github" disabled={true} /> </div> ); export default IconButtonExampleSimple;
apps/wmb/priv/www/static/js/src/containers/app.js
black13ua/wmb
import React, { Component } from 'react'; import { Button, Layout, NavDrawer, Panel, Sidebar } from 'react-toolbox'; import isBrowser from 'react-toolbox/lib/utils/is-browser'; import breakpoints from 'react-toolbox/lib/utils/breakpoints'; import { getViewport } from 'react-toolbox/lib/utils/utils'; import ScrollUp fro...
frontend/component/Footer.js
hhmpro/node-practice-project
import React from 'react'; const footerStyle = { marginTop:50, padding:20 }; export default class Footer extends React.Component { render() { return ( <div className="text-center" style={footerStyle}> @copy; CopyRight Node.js实战 </div> ) } }
src/svg-icons/toggle/star-half.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarHalf = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15....
src/js/components/LayeredAreaChart.js
lianwangtao/shanelian.com
import React, { Component } from 'react'; import Box from 'grommet/components/Box'; import Legend from 'grommet/components/Legend'; import Chart, { Area, Base, Layers, Marker, HotSpots } from 'grommet/components/chart/Chart'; export default class LayeredAreaChart extends Component { constructor(props) { supe...
ui-react/src/components/Signin.js
agliznetsov/sputnik
import React from 'react'; import userService from '../services/UserService'; class Signin extends React.Component { constructor() { super(); this.state = {}; this.handleInputChange = this.handleInputChange.bind(this); } handleInputChange(event) { const target = event.targ...
src/svg-icons/navigation/last-page.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationLastPage = (props) => ( <SvgIcon {...props}> <path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/> </SvgIcon> ); NavigationLastPage = pure(NavigationLastPage); NavigationLastPage.di...
src/routes/lossSection/index.js
goldylucks/adamgoldman.me
import React from 'react' import GriefSection from './GriefSection' import Layout from '../../components/Layout' async function action({ params }) { const path = `/grief/${params.section}` const section = await import(`./${params.section}.js`) .then(module => module.default) // use an object from `export def...
src/search-filter-box.js
MortalFlesh/react-search-filter-example
import React from 'react'; import * as store from './store'; import * as actions from './actions'; import SearchFilter from './search-filter'; import SearchFilterTitle from './search-filter-title'; import state from './state'; import {reloadFilters as load} from './state'; import Loading from './loading'; load('./api/...
src/svg-icons/action/settings-input-composite.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComposite = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2....
src/not-found.react.js
smashercosmo/redux-react-router-issue
import React from 'react'; export default class NotFound extends React.Component { static propTypes = { test: React.PropTypes.object.isRequired }; render() { return ( <div> Not Found {this.props.test.hello} </div> ); } }
examples/pagination-controlled/src/App.js
react-tools/react-table
import React from 'react' import styled from 'styled-components' import { useTable, usePagination } from 'react-table' import makeData from './makeData' const Styles = styled.div` padding: 1rem; table { border-spacing: 0; border: 1px solid black; tr { :last-child { td { borde...
src/client/components/MessagesSent.js
djmill0326/node-random-stuff
import React from 'react'; import {connect} from 'react-redux'; class MessagesSent extends React.Component { constructor(props) { super(props); } render() { return ( <div className="message-count"> <span>You have sent {this.props.messagesSent}&nbsp;message{this.props.messagesSent === 1 ? '...
src/js/components/icons/base/Navigate.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/public/components/notification/default/index.js
Lunik/tcloud
import React from 'react' import classNames from 'classname' import { InfoIcon, WarningIcon, ErrorIcon } from '../../image/svg' export default class Notification extends React.Component { constructor (props) { super(props) this.state = {} this.initState(props) if (this.state.timeout) { this....
js/components/Timelines/Navigation.js
furgat/sabertoot
'use strict'; import React from 'react'; export default class Navigation extends React.Component { render() { return ( <nav className="navigation"> <button className="user-button"></button> <button className="toot-button"></button> <button className="settings-button"></button> ...
Components/Display.js
Some-Subhra/MovieSearch-React
import React from 'react'; class Display extends React.Component { constructor(props, context) { super(props, context); this.state = { data :[], error:"" }; }; componentDidMount() { {this.props.source.Search ? this.state.data = this.props.source.Search: t...
src/parser/shaman/restoration/modules/talents/Downpour.js
FaideWW/WoWAnalyzer
import React from 'react'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticListBoxItem from 'interfac...
client/src/components/TradeHistory/TradeHistory.js
moxon6/html5-training
import React from 'react' import SectionHeader from 'components/shared/SectionHeader' import ScrollTable from 'components/shared/ScrollTable/ScrollTable' import './TradeHistory.css' export default() => ( <div className='flex-columns trade-history'> <SectionHeader>Trade History</SectionHeader> <ScrollTable> ...
packages/netlify-cms-core/src/components/Workflow/WorkflowCard.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import { css } from '@emotion/core'; import styled from '@emotion/styled'; import { translate } from 'react-polyglot'; import { Link } from 'react-router-dom'; import { components, colors, colorsRaw, transitions, buttons } from 'netlify-cms-ui-default'; co...
src/components/IconButton/IconButton.js
fkn/ndo
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Glyphicon } from 'react-bootstrap'; const IconButton = ({ onClick, glyph, ...rest }) => ( <Button onClick={onClick} {...rest}> <Glyphicon glyph={glyph} /> </Button> ); IconButton.propTypes = { onClick: PropTypes.func.isRequired,...
test/PageHeaderSpec.js
simonliubo/react-ui
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageHeader from '../src/PageHeader'; describe('PageHeader', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <PageHeader> <strong>Content</str...
src/components/MainPage/Maps/MapBox/MapBoxContainer.js
coolshare/ReactReduxStarterKit
import React, { Component } from 'react'; import ReactMapboxGl, { Layer, Feature } from "react-mapbox-gl"; export default class MapBoxContainer extends React.Component { render() { return ( <ReactMapboxGl style="mapbox://styles/mapbox/streets-v8" accessToken="pk.eyJ1IjoiY29vbHNoYX...
examples/redux/src/js/components/CommentForm.js
cpsubrian/hipley
import React from 'react' import autobind from 'autobind-decorator' @autobind class CommentForm extends React.Component { static propTypes = { addComment: React.PropTypes.func } state = { name: '', message: '' } onChangeName (e) { this.setState({name: e.currentTarget.value}) } onChang...
blueocean-dashboard/src/test/js/pipelines-spec.js
kzantow/blueocean-plugin
import React from 'react'; import { assert } from 'chai'; import { shallow } from 'enzyme'; import { Pipelines } from '../../main/js/components/Pipelines.jsx'; import { pipelines } from './data/pipelines/pipelinesSingle'; import { pipelinesDupName } from './data/pipelines/pipelinesTwoJobsSameName'; import { mockExten...
src/interface/report/Results/About.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Trans, Plural } from '@lingui/macro'; import isLatestPatch from 'game/isLatestPatch'; import ReadableList from 'interface/common/ReadableList'; import Warning from 'interface/common/Alert/Warning'; import Contributor from 'interface/contributor/Bu...
src/components/body/landingpage.js
ericaporter/trending-hashtags
import React from 'react'; import Results from './results'; import Map from './map'; class LandingPage extends React.Component { render() { return ( <div className="container"> <div className="row"> <div className="col-md-8"> <div className="jumbotron awf-header"> ...
packages/wix-style-react/src/Proportion/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, example, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from './storySettings'; import Proportion from '..'; import * as examples from './examples'; cons...
packages/material-ui-icons/src/ArrowUpward.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" /></g> , 'ArrowUpward');
client/test/components/role/RoleCard.spec.js
andela-eefekemo/DMS
/* global expect jest test */ import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import RoleCard from '../../../components/role/RoleCard'; jest.dontMock('../../../components/role/RoleCard'); describe('RoleCard Component', () => { test('should match the role card snapsh...
app/pages/logisticsPage.js
shiyunjie/scs
/** * Created by shiyunjie on 16/12/6. */ import React, { Component } from 'react'; import { StyleSheet, Text, View, TextInput, ActivityIndicator, ActivityIndicatorIOS, ProgressBarAndroid, Platform, NativeAppEventEmitter, TouchableOpacity, Image, } from 'react-native'; im...
src/api/Animated/createAnimatedComponent.js
omeid/react-native-mock
import React from 'react'; function createAnimatedComponent(Component) { var refName = 'node'; class AnimatedComponent extends React.Component { render() { return ( <Component {...this._propsAnimated.__getValue()} ref={refName} /> ); } } return Animated...
src/Introduction.js
beaudavenport/regex-cafe
import React from 'react'; import NextLessonButton from './NextLessonButton'; class Introduction extends React.Component { constructor(props) { super(props); } render() { return ( <div className="intro"> <div className="intro-cell"> <div className="row"> <div classNam...
src/react-view-models.js
BigAB/can-react
/* eslint react/prop-types: 0 */ import React from 'react'; import compute from 'can-compute'; import DefineMap from "can-define/map/"; export function connect( MapToProps, ComponentToConnect ) { if ( typeof MapToProps !== 'function' ) { throw new Error('Setting the viewmodel to an instance or value is not supp...
packages/node_modules/@ciscospark/react-component-button/src/index.js
bzang/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from '@ciscospark/react-component-icon'; import styles from './styles.css'; export default function Button(props) { const { accessibilityLabel, buttonClassName, children, label, label...
src/partials/share-buttons.js
getinsomnia/insomnia.rest
import React from 'react'; import Link from '../components/link'; export const Twitter = ({title}) => ( <Link to="#" onClick={e => { e.preventDefault(); const href = `http://twitter.com/share?url=${encodeURIComponent(window.location.href)}&text=${encodeURIComponent(title || document.title)}&via=GetInsomnia`;...
src/svg-icons/av/fiber-dvr.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberDvr = (props) => ( <SvgIcon {...props}> <path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8...
stories/examples/NavbarProps.js
reactstrap/reactstrap
import React from 'react'; import { Navbar, NavbarToggler, NavbarBrand, NavbarText } from 'reactstrap'; import Props from './Props'; const Example = () => ( <Props components={[Navbar, NavbarToggler, NavbarBrand, NavbarText]} /> ); export default Example;
src/Form/Field.js
MGrin/mgr-form-react
import React from 'react'; import PropTypes from 'prop-types'; const Field = ({ name, label, value, error, disabled, hidden, className, render, validate, onValueChange, ...fieldRendererProps }) => { const fieldNameAsCss = name.replace(/\s/g, ''); const Input = render; return ( <div className={`${className} ...
src/svg-icons/action/reorder.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReorder = (props) => ( <SvgIcon {...props}> <path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"/> </SvgIcon> ); ActionReorder = pure(ActionReorder); ActionReorder.displayName = 'Action...
demo/static/js/src/components/data.js
jonashagstedt/django-jsx
import React from 'react'; import wildjs from 'wildjs' import Nav from './nav' export default class Data extends React.Component { constructor (props) { super(props); this.state = props; this.click = this.click.bind(this); } componentDidMount() { if (this.state.data.data_l...
src/sidemenu/SideMenu.js
kosiakMD/react-native-elements
/*eslint-disable no-console */ import React from 'react'; import SideMenu from 'react-native-side-menu'; const Menu = props => { console.warn( `Warning: SideMenu has been deprecated and will be removed in a future version of React Native Elements. For a complete navigation solution that includes SideMenu(Drawer)...
app.js
rpowis/pusscat.lol
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; import Location from '....
app/components/pipeline/teams/Index/index.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import DocumentTitle from 'react-document-title'; import Emojify from '../../../shared/Emojify'; import Panel from '../../../shared/Panel'; import Chooser from './chooser'; import Row from './row'; class PipelineT...
Depmon.Server.Portal.React/app/views/report.js
devmankz/Depmon
import React from 'react'; import Component from '../base/component'; import Layout from './layout'; export default class ReportsView extends Component { render () { return <Layout> <div className="pure-u-1">Reports</div> </Layout>; } }
src/components/footer/footer.js
woshisbb43/coinMessageWechat
import React from 'react'; import classNames from '../../utils/classnames'; /** * consists of `footer_links`, `footer_link` and `footer_text` * */ const Footer = (props) => { const { className, children, ...others } = props; const cls = classNames({ 'weui-footer': true, [className]: classNam...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/grid-on.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageGridOn = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4...
stories/examples/AlertColors.js
reactstrap/reactstrap
import React from 'react'; import { Alert } from 'reactstrap'; import { ArgsTable } from '@storybook/addon-docs'; const Example = (props) => { return ( <div> <Alert color="primary"> This is a primary alert — check it out! </Alert> <Alert color="secondary"> This is a secondary al...
src/server/renderer.js
rentpath/react-redux-starter-kit
import React from 'react' // Provider makes the store available to all connect() calls in the // component hierarchy below. (connect() is what connects a React // component to a Redux store.) import { Provider } from 'react-redux' // match is a function that compares a given path to a set of routes // and calls your ...
src/routes.js
wasong/hackr_matchr
import React from 'react' import { Router, Route, browserHistory } from 'react-router' import { Provider } from 'react-redux' import AuthService from './utils/auth' import App from './components/App' import Auth from './components/Auth' import Login from './components/Login' import config from '../config/auth' const ...
src/components/ReduxFormFields/TimeField.js
zerkedev/zerke-app
import React, { Component } from 'react'; import { TimePicker } from '../../components/ReduxFormFields'; import { Field } from 'redux-form'; import { TextField } from 'redux-form-material-ui'; import muiThemeable from 'material-ui/styles/muiThemeable'; import FontIcon from 'material-ui/FontIcon'; import IconButton fro...
v2/src/pages/Contact/Contact.js
LordDashMe/LordDashMe.github.io
import React from 'react'; import NavigationBar from '../../components/NavigationBar/NavigationBar'; function Contact () { document.title = 'Contact'; return ( <div className="Contact"> <NavigationBar /> <div className="page-wrapper"> <h1>Contact</h1> </div> </div> ); } export...
client/components/Routes.js
jacquesuys/HireOrbit
import React from 'react'; import { Router, Route, IndexRoute, hashHistory, browserHistory } from 'react-router'; import AppContainer from '../containers/AppContainer'; import HomeContainer from '../containers/HomeContainer'; import Home from '../components/Home'; import SearchContainer from '../containers/SearchContai...
client/src/containers/RequireAuth.js
JasonProcka/venos
import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; export default function(WrappedComponent) { class Auth extends React.Component { componentWillMount() { if(!this.props.authenticated) { let hasLocalStorageUser = false; for(let...
maodou/bizplans/client/components/admin/index.js
ShannChiang/meteor-react-redux-base
import React from 'react' export default (props) => { return ( <div> {props.children} </div> ) }
src/containers/Chr/index.js
zerocoolkiller/Eve-Swagger-Api
import React from 'react' import Table from './table' export default () => ( <div className = 'page'> <Table /> </div> )
src/js/index.js
tanaka0325/nippo-web
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render( <App />, document.getElementById('content') );
src/containers/NotFound/NotFound.js
aleksUIX/ultraInput
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/components/keyboard-shortcuts.js
LaserWeb/lw.controller
// Copyright 2017 Todd Fleming // // This program 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, either version 3 of the License, or // (at your option) any later version. // // This program is dist...
react/redux-start/counter/src/components/Counter.js
kobeCan/practices
import React from 'react'; class Counter extends React.Component { constructor (props) { super(props); this.state = {}; } incrementIfOdd = () => { const { value, increment } = this.props; if (value % 2 !== 0) { increment(); } } incrementAsync = () => { setTimeout(this.props.increment, 1000); } ...
src/decoders/jwt.js
emil-mi/token-crack
import React from 'react'; import JSONPretty from 'react-json-pretty'; import {crackJWT} from './common.js'; export function cracker(token) { try { let crackedToken = crackJWT(token); return crackedToken && <div key="JWT-result"> <aside>JWT</aside> <table> ...
lib/widgets/CrudForm/views/ModelAttributeRow.js
ExtPoint/yii2-gii
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {formValueSelector} from 'redux-form'; import {Field} from 'redux-form'; import {html} from 'components'; const bem = html.bem('ModelAttributesArrayField'); @connect( (state, props) => ({ name: form...
Video.js
louislai/react-native-video
import React from 'react'; import ReactNative from 'react-native'; import VideoResizeMode from './VideoResizeMode.js'; const { Component, PropTypes, } = React; const { StyleSheet, requireNativeComponent, NativeModules, View, } = ReactNative; const styles = StyleSheet.create({ base: { overflow: 'hid...
src/containers/dropDown.js
martinkwan/HNGRY
/** |========================================================================================== | This is a container that displays the list of filters. | It needs to dispatch to redux state. | Does not need to access to redux state. | | A. When a filter is selected: | 1. The updateFilter action is dispatched t...
components/card/Card.js
showings/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import { CARD } from '../identifiers'; const Card = ({ children, className, raised, theme, ...other }) => { const classes = classnames(theme.card, { [theme.raised]: raised,...
client/components/Markdown/elements/_blockquote.js
LetAmericaVote/strikeout
import React from 'react'; const blockquote = (props) => { const { children } = props; return ( <blockquote>{ children }</blockquote> ); }; export default blockquote;
src/svg-icons/communication/contact-phone.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactPhone = (props) => ( <SvgIcon {...props}> <path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-...
src/components/activity/screens/ActivityDisplay/views/ActivityDisplayError.js
yasavbrain/yasav
import React from 'react'; import { Container, Content, Text } from 'native-base'; import I18n from 'yasav/locales/i18n'; import { GenericHeader } from 'yasav/src/viewElements/shared/Header'; export default class ActivityDisplayError extends React.Component { render() { return ( <Container> <Gen...
web/src/components/Notify.js
ajmalafif/ajmalafif.com
import React from 'react' import { globalHistory } from '@reach/router' import tw, { css, theme } from 'twin.macro' function encode(data) { return Object.keys(data) .map(key => encodeURIComponent(key) + '=' + encodeURIComponent(data[key])) .join('&') } const Notify = class extends React.Component { c...
blueocean-material-icons/src/js/components/svg-icons/content/add-box.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentAddBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/> </SvgIcon> ); ContentAddBox.displayName = 'ContentAddBox'; Conten...
src/settings/editor/JsonEditor.stories.js
ipfs/webui
import React from 'react' import { storiesOf } from '@storybook/react' import { checkA11y } from '@storybook/addon-a11y' // Components import JsonEditor from './JsonEditor' // Fixtures import config from './fixtures/example-config.json' storiesOf('JSON Editor', module) .addDecorator(checkA11y) .add('Default', ()...
src/view/react/Wrappers.js
MetaSolutionsAB/rdforms
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Presenter from '../Presenter'; import Editor from '../Editor'; import ValidationPresenter from '../ValidationPresenter'; const fixIt = (Cls) => { const FixCls = class extends Cls { render() { this.domNode.clear(); supe...
screens/Settings.js
tendotosystems/lunchblast-client
import React from 'react' import { connect } from 'react-redux' import { View, Text, Button, StyleSheet, TouchableOpacity } from 'react-native' import { NavigationActions } from 'react-navigation' import { logout } from '../store/actions' import fontStyles from '../styles/fonts' import Footer from '../components/Footer...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
dashed/react-router
import React from 'react'; class Grades extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignments: COURSES[params.courseId].assignments //}); //} render () { //var { assignments } = this.props; var assignments = COURSES[this.props.params.courseId].assignments...
src/main/app/src/containers/DataView/DataView.js
p632-sp-2017/microservice-catalog-frontend
import React from 'react'; import {connect} from 'react-redux'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import { Table } from 'react-bootstrap/lib'; import { LinkContainer } from 'react-router-bootstrap'; import { Alert } from 'react-bootstrap'; import SearchBox from...
app/lib/pages/Contact.js
msikma/react-hot-boilerplate
// React Hot Boilerplate (replace this copyright notice with your own) // (C) 2015, Michiel Sikma <michiel@sikma.org> // MIT License import React from 'react'; import ClickMe from 'components/ClickMe/ClickMe'; export default class Contact extends React.Component { render() { return ( <div> <h2>Co...
src/components/ErrorPage.js
saurshaz/express-universal-redux
import React from 'react'; import Radium from 'radium'; @Radium export default class ErrorPage extends React.Component { render() { return ( <div> ERROR </div> ); } } const styles = { base: { paddingBottom: 25 }, counter: { fontSize: '5em', color: 'white', m...
src/components/ArrowKey.js
SSARCandy/colorblocks-react
import React, { Component } from 'react'; import '../style/ArrowKey.css'; export default class ArrowKey extends Component { constructor(props) { super(props); } render() { const {handleKeyDown} = this.props; return ( <div className='arrow-wrap'> <button onClick={() => {handleKeyDown(3...
src/ModalDialog.js
snadn/react-bootstrap
/*eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ModalDialog = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * A Callback fired when the header closeButton or non-static backdrop is c...
src/components/WorkTeamPanel/WorkteamRow.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import TableRow from '../TableRow'; import Image from '../Image'; import Button from '../Button'; import Box from '../Box'; import UserThumbnail from '../UserThumbnail'; import { ICONS } from '../../constants'; function WorkteamTableRow({ displayName, ...
src/pages/03-firefox-devtools.js
MozillaDevelopers/playground
import React from 'react'; import Redirect from '../components/Redirect'; export default () => { return ( <Redirect url="/css-grid/03-firefox-devtools" /> ); };
src/components/attributes/scatter-plot/local-attributes/ToolTip.js
crp2002/ID3-React
import React, { Component } from 'react'; class ToolTip extends Component { constructor(props) { super(props); this.state = { checkbox: false } this.handleCheckbox = this.handleCheckbox.bind(this); this.onSubmit = this.onSubmit.bind(this); } onSubmit(event) { event.preventDefault()...