path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/View.js
omeid/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/Components/View/View.js */ import React from 'react'; import StyleSheetPropType from '../propTypes/StyleSheetPropType'; import ViewStylePropTypes from '../propTypes/ViewStylePropTypes'; import NativeMethodsMixin from '../mixins/NativeMethodsMixin'; ...
index.js
pieterjansas/react-webpack-dev-server-starter
import * as functions from 'firebase-functions'; import React from 'react'; import { renderToString } from 'react-dom/server'; import App from './src/App'; import getFacts from './src/facts'; import express from 'express'; import fs from 'fs'; const index = fs.readFileSync(__dirname + '/index.html', 'utf8'); const ap...
react-router-demo/lessons/04-nested-routes/modules/App.js
zhangjunhd/react-examples
import React from 'react' import { Link } from 'react-router' export default React.createClass({ render() { return ( <div> <h1>React Router Tutorial</h1> <ul role="nav"> <li><Link to="/about">About</Link></li> <li><Link to="/repos">Repos</Link></li> </ul> <...
examples/async/index.js
charlespwd/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
Frontend/navigator.js
TomGijselinck/aja
import React from 'react' import { TabNavigator, addNavigationHelpers } from 'react-navigation' import { connect } from 'react-redux' import Challenges from './components/Challenges' import Friends from './components/Friends' import CameraScreen from './components/CameraScreen' import PostChallengeScreen from './compon...
src/routes/recentwins/index.js
zsu13579/pinterest-apollo
/** * 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...
app/javascript/flavours/glitch/features/getting_started/components/announcements.js
glitch-soc/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'flavours/glitch/components/icon_button'; import...
client/modules/core/routes.js
pstuart/Open-Dash
import React from 'react'; import { mount } from 'react-mounter'; import MainLayout from './containers/main_layout'; import LoginLayout from './containers/login_layout'; import Login from './components/login'; import Dashboard from './components/dashboard'; import NotFound from './components/not_found'; export default...
admin/src/components/ListFiltersAdd.js
lojack/keystone
import React from 'react'; import Transition from 'react-addons-css-transition-group'; import classnames from 'classnames'; var CurrentListStore = require('../stores/CurrentListStore'); var ListFiltersAddForm = require('./ListFiltersAddForm'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList');...
app/components/LoadingIndicator/index.js
FlorianVoct/monPropreMix
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
js/src/views/Status/components/RpcDocs/RpcDocs.js
kushti/mpt
// 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/components/App.js
bcgodfrey91/git-in-the-game
import React from 'react'; import userSettings from '../containers/userSettings'; import userEvents from '../containers/userEvents'; class App extends React.Component { constructor() { super(); } fetchUserCommits(page = 0, user) { fetch(`https://api.github.com/users/${user}/events?page=${page}&callback`) ...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
stephaniejn/stephaniejn.github.io
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
examples/with-redux/pages/other.js
nelak/next.js
import React from 'react' import { bindActionCreators } from 'redux' import { initStore, startClock, addCount, serverRenderClock } from '../store' import withRedux from 'next-redux-wrapper' import Page from '../components/Page' class Counter extends React.Component { static getInitialProps ({ store, isServer }) { ...
server/sonar-web/src/main/js/components/controls/Tooltip.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info 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, o...
src/svg-icons/maps/local-phone.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-...
demo/index.js
jl-/react-slide-deck
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; //import Deck from '../src/deck'; import './index.scss'; let Deck; if (process.env.NODE_ENV === 'production') { Deck = require('../dist/deck').default; } else { Deck = require('../src/deck').default; } class Demo extends Component { cons...
ui/node_modules/react-bootstrap/src/Glyphicon.js
bpatters/eservice
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import constants from './constants'; const Glyphicon = React.createClass({ mixins: [BootstrapMixin], propTypes: { glyph: React.PropTypes.oneOf(constants.GLYPHS).isRequired }, getDefaultProps() { ...
src/svg-icons/places/free-breakfast.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesFreeBreakfast = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/> </SvgIcon> ); PlacesFre...
src/js/components/icons/base/Bundle.js
kylebyerly-hp/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...
examples/shopping-cart/src/components/ProductsContainer.js
colindresj/nuclear-js
import React from 'react' import ProductItem from '../../common/components/ProductItem' import ProductsList from '../../common/components/ProductsList' import reactor from '../reactor' import getters from '../getters' import actions from '../actions' const ProductItemContainer = React.createClass({ onAddToCartCli...
src/components/GithubButton/GithubButton.js
anorudes/react-redux-universal-hot-example
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
fetchingFGH_index_backup.js
mawansui/ForTests
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, Image, NavigatorIOS } from 'react-native'; import Sidebar from 'react-native-sidebar'; var array; var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); class menuNavigator extends Compon...
admin/client/App/shared/InvalidFieldType.js
dvdcastro/keystone
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: Reac...
public/assets/js/index3.js
ngocson8b/6jar
/** * Created by ngocsontran on 3/30/17. */ import React from 'react' import ReactDOM from 'react-dom' import { render } from 'react-dom' var TestInput = React.createClass({ getInitialState(){ return {text: "NST"}; }, show(){ this.setState({text: this.refs.txt.value}); }, ...
src/views/pages/page500/Page500.js
mrholek/CoreUI-React
import React from 'react' import { CButton, CCol, CContainer, CFormInput, CInputGroup, CInputGroupText, CRow, } from '@coreui/react' import CIcon from '@coreui/icons-react' import { cilMagnifyingGlass } from '@coreui/icons' const Page500 = () => { return ( <div className="bg-light min-vh-100 d-flex...
packages/icons/src/md/editor/Functions.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFunctions(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <polygon points="36 8 12 8 12 12 25 24 12 36 12 40 36 40 36 34 22 34 32 24 22 14 36 14" /> </IconBase> ); } export default MdFunctions;
src/components/TodoListComponent.js
abasallo/to-do-front
import React from 'react' import { Component, PropTypes } from 'react' import { List, ListItem, Checkbox, IconButton } from 'material-ui' import ActionGrade from 'material-ui/svg-icons/action/delete' import config from '../config' class TodoListComponent extends Component { render() { return ( <List styl...
src/app.js
gj262/noaa-coops-viewer
import React from 'react' import ReactDOM from 'react-dom' import { connectRouter, routerMiddleware } from 'connected-react-router' import thunkMiddleware from 'redux-thunk' import { createBrowserHistory } from 'history' import { applyMiddleware, compose, createStore, combineReducers } from 'redux' import 'utils/loggin...
node_modules/react-router/es6/Lifecycle.js
Shwrndasink/btholt-react-tutorial
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
app/javascript/flavours/glitch/containers/admin_component.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from 'mastodon/locales'; const { localeData, messages } = getLocale(); addLocaleData(localeData); export default class AdminComponent extends React.PureComponent { static pr...
packages/icons/src/md/content/Reply.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdReply(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M20 17V9L6 23l14 14v-8.2c10 0 17 3.2 22 10.2-2-10-8-20-22-22z" /> </IconBase> ); } export default MdReply;
geonode/monitoring/frontend/src/components/cels/errors/index.js
ppasq/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import HoverPaper from '../../atoms/hover-paper'; import actions from '../../organisms/error-list/actions'; import styles from './styles'; const mapStateToProps = (state) => ({ errorList: state.errorList.response, ...
src/index.js
channingbreeze/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/components/Edit/index.js
Apozhidaev/terminal.mobi
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { update } from 'store/app/book/model/actions'; import currentSlot from '../wrappers/currentSlot'; import EditForm from '../EditForm'; class Edit extends Component { constructor(props) { super(props); this.handleSave = t...
latest/src/components/AppContainer.js
nathan-k/GamePainter
import React from 'react'; import {connect} from 'react-redux'; import App from './App'; import {addObjectToWorld} from '../actions'; /* AppContainer provides data from state as properties to App */ const mapStateToProps = (state) => ({ activeDrawTool: state.AppReducer.activeDrawTool, contextMenu: state.AppR...
app/src/components/Skills/SkillItemBarChart.js
RyanCCollins/ryancollins.io
import React from 'react'; import { Column } from 'react-foundation'; import { Motion, spring } from 'react-motion'; import elementInViewport from '../../../lib/isVisible'; class SkillItemBarChart extends React.Component { constructor(props) { super(props); this.setWidthStyle = this.setWidthStyle.bind(this);...
page/src/Components/Field/index.js
DevUtils/jQuerySimpleMask
import React from 'react'; import { Form, Col } from 'react-bootstrap'; export default class Header extends React.Component { render(){ return ( <Col md="6"> <Form.Group controlId={this.props.controlId}> <Form.Label>{this.props.caption}</Form.Label> <Form.Control type="text" placeholder={...
modules/TransitionHook.js
sleexyz/react-router
import React from 'react'; import warning from 'warning'; var { object } = React.PropTypes; var TransitionHook = { contextTypes: { router: object.isRequired }, componentDidMount() { warning( typeof this.routerWillLeave === 'function', 'Components that mixin TransitionHook should have a rou...
lib/components/GasInput/index.js
0mkara/etheratom
'use babel' // Copyright 2018 Etheratom Authors // This file is part of Etheratom. // Etheratom 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 la...
src/components/commentstextfield.js
GamerZUnited/GamerZUninted-FrontEnd
import React from 'react'; import TextField from 'material-ui/lib/text-field'; let selectedInputText = ''; // let textChange = function(event) { selectedInputText = event.target.value; }; class CommentField extends React.Component { getSelectedItem() { // let idx = this.refs.dropDownMenu.selectedIndex; ...
app/javascript/mastodon/features/list_timeline/index.js
foozmeat/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../compon...
example/index.ios.js
ali-alamine/react-native-maps
import React from 'react'; import { AppRegistry } from 'react-native'; import App from './App'; class AirMapsExplorer extends React.Component { render() { return <App />; } } AppRegistry.registerComponent('AirMapsExplorer', () => AirMapsExplorer);
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Checkbox.js
Akkuma/npm-cache-benchmark
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 ...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-v3-text.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin} from './../common/common.js'; import TextInput from './internal/text-input.js'; import TextInputMixin from './mixins/text-input-mixin.js' import ItemList from './internal/item-list.js'; import Backdrop from './../bricks/backdrop.js'; import './text.les...
frontend/src/components/frame/components/SearchPres.js
jf248/scrape-the-plate
import React from 'react'; import classNames from 'classnames'; import * as Mui from '@material-ui/core'; import Search from '@material-ui/icons/Search'; import { fade } from '@material-ui/core/styles/colorManipulator'; // eslint-disable-line import/no-internal-modules const styles = theme => ({ wrapper: { displ...
techCurriculum/ui/solutions/6.1/src/App.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
examples/master-detail/app.js
stshort/react-router
import React from 'react' import { render, findDOMNode } from 'react-dom' import { browserHistory, Router, Route, IndexRoute, Link, withRouter } from 'react-router' import withExampleBasename from '../withExampleBasename' import ContactStore from './ContactStore' import './app.css' const App = React.createClass({ ...
src/routes/PublicPages/HomePage/HeroLogo/index.js
venturedinternational/ventured.one
import React from 'react' import './HeroLogo.scss' import Logo from './logo.svg' export default () => ( <div className='hero-logo'> <Logo className='logo-background' /> </div> )
pwa/src/components/activities/toolbar/index.js
cmilfont/biohacking
import React from 'react'; import { withStyles } from 'material-ui/styles'; import { MuiPickersUtilsProvider } from 'material-ui-pickers'; import MomentUtils from 'material-ui-pickers/utils/moment-utils'; //import DateFnsUtils from 'material-ui-picker/utils/date-fns-utils' import ListSubheader from 'material-ui/List/L...
app/main.js
alexbooker/pusher-realtime-chat
import React from 'react' import ReactDOM from 'react-dom' import Chat from './containers/Chat' import Layout from './components//Layout' import About from './components/About' import { Router, Route, hashHistory, IndexRoute, Redirect } from 'react-router' import '../node_modules/bootswatch/yeti/bootstrap.css...
src/svg-icons/action/settings.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettings = (props) => ( <SvgIcon {...props}> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l...
src/js/components/icons/base/Dashboard.js
kylebyerly-hp/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/svg-icons/av/add-to-queue.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAddToQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/> ...
plum/src/components/groups/groups.js
jbkaplan/plum-app
'use strict' import React, { Component } from 'react'; import { Text, View, StatusBar, StyleSheet, ScrollView, Navigator, TouchableHighlight } from 'react-native'; var Button = require('../common/button'); var GroupItem = require('../common/groupItem'); module.exports = React.createClass({ getInitialState: function...
ui/src/main/js/components/CronJobPreview.js
thinker0/aurora
import React from 'react'; import moment from 'moment'; import { RelativeTime } from 'components/Time'; export default function CronJobPreview({ cronJob }) { return (<div className='cron-job-preview'> <strong>Cron job</strong>, next run will be at <span> {moment(cronJob.nextCronRunMs).utc().format('MMMM D...
frontend/src/components/organizationProfile/edit/projectImplementation/partnerProfileProjectImplementationFinancialControls.js
unicef/un-partner-portal
import React from 'react'; import { formValueSelector, FormSection } from 'redux-form'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Grid from 'material-ui/Grid'; import RadioForm from '../../../forms/radioForm'; import SelectForm from '../../../forms/selectForm'; import TextFieldFo...
examples/src/components/MultiSelectFieldWithLimit.js
darrindickey/chc-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var MultiSelectField = React.createClass({ displayName: 'MultiSelectField', propTypes: { label: React.PropTypes.string, ...
source/client/components/MobilePaymentSuccess.js
NAlexandrov/yaw
import React from 'react'; import styled from 'react-emotion'; import PropTypes from 'prop-types'; import { Island } from './'; const MobilePaymentLayout = styled(Island)` width: 440px; background: #108051; position: relative; color: #fff; `; const SuccessIcon = styled.div` width: 48px; height: 48px; backgrou...
frontend/src/MovieFile/Quality/SelectQualityModal.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Modal from 'Components/Modal/Modal'; import SelectQualityModalContentConnector from './SelectQualityModalContentConnector'; class SelectQualityModal extends Component { // // Render render() { const { isOpen, o...
node_modules/native-base/Components/Widgets/View.js
crod93/googlePlacesEx-react-native
/* @flow */ 'use strict'; import React from 'react'; import {View} from 'react-native'; import NativeBaseComponent from '../Base/NativeBaseComponent'; export default class ViewNB extends NativeBaseComponent { render() { return( <View style={{padding: (this.props.padder) ? this.getTheme().contentPadding : 0, f...
src/components/PlaylistManager/Menu/NewPlaylist.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { translate } from '@u-wave/react-translate'; import MenuItem from '@mui/material/MenuItem'; import CreatePlaylistIcon from '@mui/icons-material/Add'; import PromptDialog from '../../Dialogs/PromptDialog'; const enhance = tra...
src/Main/DevelopmentTab.js
mwwscott0/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPECS from 'common/SPECS'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Icon from 'common/Icon'; import ItemLink from 'common/ItemLink'; import SpellLink from 'common/SpellLink'; import getItemQualityLabel from 'commo...
docs/app/Examples/elements/Button/Variations/ButtonExampleColored.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleColored = () => ( <div> <Button color='red'>Red</Button> <Button color='orange'>Orange</Button> <Button color='yellow'>Yellow</Button> <Button color='olive'>Olive</Button> <Button color='green'>Green</Button>...
client/src/js/components/characterDetails/comment.js
nicksenger/marvelous
import React, { Component } from 'react'; export default class Comment extends Component { constructor(props) { super(props); this.state = { date: null }; } componentWillMount() { this.setState({ date: new Date(this.props.info.time) }); } render() { const info = this.pro...
src/SnackBarPanel1/index.js
christianalfoni/ducky-components
import Wrapper from '../Wrapper'; import Typography from '../Typography'; import Button from '../Button'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function SnackBarPanel1(props) { let opt = ''; if (props.button) { ...
src/pages/404.js
abeaclark/www.abeclark.com
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
packages/react/src/components/atoms/buttons/ButtonToggle/ButtonToggle.stories.js
massgov/mayflower
import React from 'react'; import { StoryPage } from 'StorybookConfig/preview'; import { action } from '@storybook/addon-actions'; import ButtonToggle from './index'; import ButtonToggleDocs from './ButtonToggle.md'; import buttonToggleOptions from './ButtonToggle.knobs.options'; export default { title: 'atoms/but...
combook/app.js
trisys3/combook
import React from 'react'; import {page1, pageMiddle, pageLast} from './app.css'; const Page = window.page.default; export default class Book extends React.Component { render() { let {startPage = 0, endPage} = this.props || {}; if(startPage < this.firstPage) { startPage = this.firstPage; } i...
blog/src/components/posts_new.js
williampuk/ReduxCasts
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { createPost } from '../actions'; class PostsNew extends Component { renderField(field) { const { meta: { touched, error } } = field; ...
src/svg-icons/action/dashboard.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDashboard = (props) => ( <SvgIcon {...props}> <path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/> </SvgIcon> ); ActionDashboard = pure(ActionDashboard); ActionDashboard.displayName...
packages/theme-patternfly-org/components/autoLinkHeader/autoLinkHeader.js
patternfly/patternfly-org
import React from 'react'; import { Title } from '@patternfly/react-core'; import LinkIcon from '@patternfly/react-icons/dist/esm/icons/link-icon'; import { Link } from '../link/link'; import { slugger } from '../../helpers/slugger'; import './autoLinkHeader.css'; // "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | ...
src/components/editor/index.js
szymonkaliski/SDF-UI
import React, { Component } from 'react'; import autobind from 'react-autobind'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import EditorEdges from './editor-edges'; import EditorNodes from './editor-nodes'; import NewNode from './new-node'; import nodeSpecs from '../../engine/...
app/javascript/mastodon/features/video/index.js
blackle/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { fromJS } from 'immutable'; import { throttle } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/uti...
src/index.js
brentsowers1/coordinatecommons-frontend
import React from 'react'; import { render } from 'react-dom'; import './index.css'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import NavHeader from './components/NavHeader'; import MyPage from './components/MyPage'; import Places from './components/Places'; import About from './components/Abou...
src/svg-icons/image/colorize.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorize = (props) => ( <SvgIcon {...props}> <path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3...
examples/with-react-intl/components/Nav.js
arunoda/next.js
import React from 'react' import {FormattedMessage} from 'react-intl' import Link from 'next/link' export default () => ( <nav> <li> <Link href='/'> <a><FormattedMessage id='nav.home' defaultMessage='Home' /></a> </Link> </li> <li> <Link href='/about'> <a><FormattedMessa...
client/components/duplicates/item.js
jankeromnes/kresus
import React from 'react'; import { connect } from 'react-redux'; import { get, actions } from '../../store'; import { translate as $t, formatDate } from '../../helpers'; export default connect((state, ownProps) => { let categoryA = get.categoryById(state, ownProps.a.categoryId); let categoryB = get....
src/client/components/TripsTableWidget/TripsTableWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' import { Table } from 'react-bootstrap' import { Link } from 'react-router' const tripsList = [{ "summary": "Beijin summary goes here", "netVote": 0, "totalVotes": 0, "destination": "Beijing", "details": "Lorem Ipsum is simply dummy text of the prin...
docs/app/Examples/modules/Dropdown/States/index.js
ben174/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DropdownStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Loading' description=...
stories/Button.js
tskuse/operationcode_frontend
import PropTypes from 'prop-types'; import React from 'react'; const buttonStyles = { border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3px 10px', margin: 10, }; const Button = ({ children, onClick }) => ( <button style={buttonStyles}...
Fire/src/components/common/Card.js
deepmehtait/React-Native-Firebase-Auth
import React from 'react'; import { View } from 'react-native'; const Card = (props) => { return ( <View style={styles.containerStyle}> {props.children} </View> ); }; const styles = { containerStyle: { borderWidth: 1, borderRadius: 2, borderColor: '#ddd', borderBottomWidth: 0, ...
services/ui/src/pages/stories/project.stories.js
amazeeio/lagoon
import React from 'react'; import { PageProject as Project } from '../project'; export default { component: Project, title: 'Pages/Project', } export const Default = () => ( <Project router={{ query: { projectName: 'Example', }, }} /> );
frontend/src/components/thread/moderation/posts/split.js
1905410/Misago
/* jshint ignore:start */ import React from 'react'; import Button from 'misago/components/button'; // jshint ignore:line import Form from 'misago/components/form'; import FormGroup from 'misago/components/form-group'; // jshint ignore:line import CategorySelect from 'misago/components/category-select'; // jshint ignor...
JotunheimenPlaces/src/components/ButtonRedFlat.js
designrad/Jotunheimen-tracking
import React, { Component } from 'react'; import ReactNative from 'react-native'; const { StyleSheet, Text, View, TouchableOpacity } = ReactNative; /** * ButtonRedFlat component */ export default class ButtonRedFlat extends Component { /** * Render ButtonRedFlat * @return {jsxresult} result in js...
src/svg-icons/notification/phone-paused.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
cielly/cielly.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/Components/Input.js
herman113/workouts
import React, { Component } from 'react'; // myObject = { // someProperty: 'Blah' // }; // myObject.someProperty = 'Bleh'; // do NOT do this with state export default class PlaceholderInput extends Component { constructor(props) { super(props); this.state = {inputText: ''}; this.handleChange = this.ha...
docs/app/Examples/elements/Input/Variations/InputExampleSize.js
clemensw/stardust
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleSize = () => ( <div> <Input size='mini' icon='search' placeholder='Search...' /> <br /> <br /> <Input size='small' icon='search' placeholder='Search...' /> <br /> <br /> <Input size='large' icon='search'...
app/javascript/mastodon/features/audio/index.js
abcang/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { formatTime } from 'mastodon/features/video'; import Icon from 'mastodon/components/icon'; import classNames from 'classnames'; import { throttle } from 'lodash'; import { getPointerPosition, ...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js
ro-savage/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { abstract } from './assets/abstract.json'; export default () => <summary id="feature-json-inclusion"...
packages/material-ui-icons/src/Reorder.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Reorder = props => <SvgIcon {...props}> <path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z" /> </SvgIcon>; Reorder = pure(Reorder); Reorder.muiName = 'SvgIcon'; export default Reorde...
spec/components/slider.js
rubenmoya/react-toolbox
import React from 'react'; import Slider from '../../components/slider'; class SliderTest extends React.Component { state = { slider2: 5, slider3: 1, }; handleChange = (slider, value) => { this.setState({ ...this.state, [slider]: value }); }; render() { return ( <section> <h5>...
src/features/ViewControls/index.js
erhathaway/cellular_automata
import React from 'react'; import styled from 'react-emotion'; import PlayButton from './PlayButton'; import MenuContainer from './MenuContainer'; import ProgressBar from './ProgressBar'; import ReverseButton from './ReverseButton'; const Container = styled('aside')` position: fixed; bottom: 20px; left: 250px; ...
src/js/components/containers/ExampleContainer/index.js
tektonlabs/front-end-skeleton
import React from 'react'; import ReactDOM from 'react-dom'; import ExampleContainer from './ExampleContainer'; export default (function() { const mount_point = document.getElementById('mount-point'); if(mount_point) { ReactDOM.render( <ExampleContainer />, mount_point ); } }());
src/components/MainSection.js
taggon/redux-example-todo
import React, { Component } from 'react'; import TodoItem from './TodoItem'; import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE } from '../constants/TodoFilters'; const TODO_FILTERS = { [SHOW_ALL]: () => true, [SHOW_ACTIVE]: todo => !todo.completed, [SHOW_COMPLETED]: todo => todo.completed }; class MainSection exte...
modules/RouteContext.js
sprjr/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
src/svg-icons/action/view-array.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewArray = (props) => ( <SvgIcon {...props}> <path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/> </SvgIcon> ); ActionViewArray = pure(ActionViewArray); ActionViewArray.displayName = 'ActionViewA...
dashboard/components/status.js
vinnyhuang/fw-dev-dashboard
import React, { Component } from 'react'; export default class Log extends Component { render() { return ( <div className="status"> <div className="title"> <strong>{ this.props.name }</strong> </div> <div className="container"> <div className="bigStatusContainer"...
lib/components/UserInput.js
devinmarieb/budget-app
import React, { Component } from 'react'; import Input from './Input'; import Button from './Button'; export default class UserInput extends Component { constructor() { super(); this.state = { draft: '', }; this.handleSubmit = this.handleSubmit.bind(this); } updateState(e) { this.setS...