path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/index.js
ToniChaz/react-redux
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import configureStore from './store/configureStore' import AppPage from './containers/AppPage' import './index.css' const store = configureStore() ReactDOM.render( <Provider store={store}> <AppPage/> </Provider...
src/components/filter-list/FilterList.es6.js
widged/SOT-skills-report
/* jshint esnext: true */ import React from 'react'; let {Component} = React; export default class CheckList extends Component { constructor(props) { super(props); } render() { let {key, title, list} = this.props; return ( <div data-target={{key}}> <h3>{{tit...
public/components/visualize/visualize-top-menu.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for Visualize. * Copyright (C) 2015-2022 Wazuh, Inc. * * This program 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 2 of the License, or * (at your opti...
assets/registration_employer/components/BackComponent.js
janta-devs/nyumbani
import React, { Component } from 'react'; class BackComponent extends Component{ render() { return ( <div> <a className='btn btn-raised btn-info margin-bottom-1em' ref = "back"> Back to Search </a> </div> ); } }; export default BackComponent;
node_modules/react-bootstrap/es/MenuItem.js
joekay/awebb
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 ...
docs/src/PropTable.js
thealjey/react-bootstrap
import merge from 'lodash/object/merge'; import React from 'react'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); let capitalize = str => str[0].toUpperCase() + str....
docs/src/Root.js
andrew-d/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
src/cms/preview-templates/PortfolioPagePreview.js
tannerfiscus/tannerfisc.us
import React from 'react'; import { PortfolioItemTemplate } from '../../templates/portfolio-page'; const PortfolioPagePreview = ({ entry, getAsset }) => { const data = entry.getIn(['data']).toJS(); return ( <PortfolioItemTemplate content={data.content} featuredHeaderImage={getAsset(data.f...
src/app/crime/CrimesByAddress.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import L from 'leaflet'; import gql from 'graphql-tag'; import { Query } from 'react-apollo'; import moment from 'moment'; import LoadingAnimation from '../../shared/LoadingAnimation'; import Error from '../../shared/Error'; import PieChart from '../../shar...
src/docs/components/hero/HeroDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Hero from 'grommet/components/Hero'; import Heading from 'grommet/components/Heading'; import Button from 'grommet/components/Button'; import Box from 'grommet/components/Box'; import Image from 'gromm...
src/sources/soundcloud/PlayerWrapper.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import Player from './Player'; import PreviewPlayer from './PreviewPlayer'; const PlayerWrapper = ({ mode, ...props }) => { if (mode === 'preview') { return <PreviewPlayer {...props} />; } return <Player {...props} mode={mode} />; }; PlayerWrapp...
assets/javascripts/kitten/components/graphics/illustrations/kkbb-flash-illustration.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import { checkDeprecatedSizes } from '../../../helpers/utils/deprecated' export const KkbbFlashIllustration = ({ size, ...props }) => { checkDeprecatedSizes(size) if (size === 'small') { return ( <svg width="150" height="154" ...
oneoffs/joseki/src/index.js
tensorflow/minigo
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
src/components/loader.js
kanitsharma/general-js
import React from 'react' import PropTypes from 'prop-types' import { RotatingPlane } from 'better-react-spinkit' const Loader = ({ loading }) => <div> {loading && <div className='loader-overlay'> <RotatingPlane size={100} color='#fff' /> </div> } </div> Loader.propTypes = { loading:...
app/routes/index.js
willy-claes/django-react
import React from 'react' import Route from 'react-router/lib/Route' import IndexRoute from 'react-router/lib/IndexRoute' import CoreLayout from 'App/components/CoreLayout' import Home from './Home' import Login from './Login' export default () => ( <Route path="/" component={CoreLayout}> <IndexRoute component={...
app/javascript/mastodon/features/ui/util/reduced_motion.js
cybrespace/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
src/shared/element-react/dist/npm/es6/src/table/filter.js
thundernet8/Elune-WWW
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import ReactDOM from 'react-dom'; import enhanceWithClickOutside from 'react-cl...
src/components/verify.js
auth0/webtask-widget
import Decode from 'jwt-decode'; import { WEBTASK_CLUSTER_URL, WEBTASK_VERIFICATION_PATH, WEBTASK_SMS_EMAIL_TOKEN } from 'lib/constants'; import issueRequest from 'lib/issueRequest'; import React from 'react'; import Superagent from 'superagent'; export default class VerifyConfirmationCode extends React.Component { ...
examples/full-example/isomorphic/variations/feature_B/components/toolbar.js
stephanwlee/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import React from 'react'; import Button from './button'; class Toolbar extends React.Component { render() { return ( <div> <p>Toolbar B</p> ...
wail-ui/components/collections/viewCollection/addSeedFab.js
N0taN3rd/wail
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import Add from 'material-ui/svg-icons/content/add' import FloatingActionButton from 'material-ui/FloatingActionButton' const AddSeedFab = ({viewingCol, fabStyle}) => ( <Link to={`/addSeed/${viewingCol}`}> <Float...
src/components/jetbrains/original/JetbrainsOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './JetbrainsOriginal.svg' /** JetbrainsOriginal */ function JetbrainsOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'JetbrainsOrigina...
node_modules/react-router/es6/IndexLink.js
UpStage-Community/upstage-web
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import Link from './Link'; /** *...
src/components/NotFoundView.js
mg4tv/mg4tv-web
import React from 'react' const NotFoundView = () => ( <div>[not found]</div> ) export default NotFoundView
node_modules/react-native-form-generator/src/fields/DatePickerField.ios.js
paulunits/tiptap
'use strict'; import React from 'react'; import ReactNative from 'react-native'; let { View, StyleSheet, TextInput, Text, PickerIOS} = ReactNative; import {DatePickerComponent} from '../lib/DatePickerComponent'; export class DatePickerField extends React.Component{ setDate(date){ this.refs.datePickerComponent...
src/main.js
etiennetremel/minimalistic-react-boilerplate
import App from './components/App'; import React from 'react'; import ReactDOM from 'react-dom'; // Render Application ReactDOM.render( <App />, document.getElementById('main') );
client/src/components/Profile/profileSettings.js
Velocies/raptor-ads
import React from 'react'; import { Button, Form, Grid, Header, Image } from 'semantic-ui-react'; import DeleteProfileModal from './deleteProfileModal'; const ProfileSettings = ({ onDeleteClick, onUpdateClick, onChange, firstName, lastName, email, business, address, city, zip, state, profile_img_path, role, profileUpd...
js/jqwidgets/jqwidgets-react/react_jqxsortable.js
luissancheza/sice
/* jQWidgets v5.3.2 (2017-Sep) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxSortable extends React.Component { componentDidMount() { let options = this.manageA...
app/javascript/mastodon/features/ui/components/video_modal.js
masarakki/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from '../../video'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class VideoModal extends ImmutablePureComponent { static propTypes = { m...
src/components/App.js
cuebrick/TypeWriter
import React from 'react'; import Header from './Header'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import Main from '../pages/Main'; import Levels from '../pages/Levels'; import Typing from '../pages/Typing'; import NotFound from "../pages/NotFound"; import IEFix from '../lib/ie-fix'; ...
src/components/Post/Content/Content.js
Amine-H/Amine-H.github.io
// @flow strict import React from 'react'; import styles from './Content.module.scss'; type Props = { body: string, title: string }; const Content = ({ body, title }: Props) => ( <div className={styles['content']}> <h1 className={styles['content__title']}>{title}</h1> <div className={styles['content__bo...
src/index.js
cevherkarakoc/ImageToAscii
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App' ReactDOM.render(<App />,document.getElementById('root'));
front_end/src/main.js
oyiptong/splice
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { combineReducers } from 'redux'; import { Provider } from 'react-redux'; import _ from 'lodash'; import * as reducers from './reducers'; import Routes from './routes.js'; import * as config from 'helpers/config'; import { finalCreat...
react-flux-mui/js/material-ui/docs/src/app/app.js
pbogdan/react-flux-mui
import React from 'react'; import {render} from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; // Helpers for debugging window.React = React; window.Perf = req...
src/index.js
codenamekt/reactive-boiler
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tell webpack t...
tictactoe/src/routes/index.js
gethub102/full_stack_web_app
import React from 'react' import {Route, IndexRoute} from 'react-router' import Template from '../containers/Template' import Tictactoe from '../containers/Tictactoe' import Profile from '../containers/Profile' import Relay from 'react-relay' import auth from '../utils/auth' const ViewerQueries = { viewer: () => Rel...
src/components/App.js
taekungngamonosus/monoreact
import React from 'react'; import PropTypes from 'prop-types'; const ContextType = { // Enables critical path CSS rendering // https://github.com/kriasoft/isomorphic-style-loader insertCss: PropTypes.func.isRequired, // Universal HTTP client fetch: PropTypes.func.isRequired, }; /** * The top-level React co...
node_modules/react-bootstrap/es/ToggleButton.js
rblin081/drafting-client
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/Shared/containers/TermsAndPrivacyPage/index.js
Code-For-Change/GivingWeb
import React from 'react' import { Link } from 'react-router-dom' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import ReactHtmlParser, { processNodes, convertNodeToElement, htmlparser2 } from 'react-html-parser' import css from './TermsAndPrivacyPage.scss' class TermsAndPrivacyPage...
js/components/category_select.js
monetario/web
import React from 'react'; import Formsy from 'formsy-react'; import Select from 'react-select'; import CategoryIcon from './category_icon'; const CategorySelectField = React.createClass({ mixins: [Formsy.Mixin], changeValue(value) { if (value) { this.setValue(value.value, value.label); this.prop...
fixtures/ssr/server/render.js
tomocchino/react
import React from 'react'; import {pipeToNodeWritable} from 'react-dom/server'; import App from '../src/components/App'; let assets; if (process.env.NODE_ENV === 'development') { // Use the bundle from create-react-app's server in development mode. assets = { 'main.js': '/static/js/bundle.js', 'main.css':...
src/svg-icons/device/signal-wifi-0-bar.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/> </SvgIcon> ); DeviceSignalWifi...
packages/react-scripts/fixtures/kitchensink/src/index.js
Place1/create-react-app-typescript
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
Vargentum/react-redux-apps
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
website/src/pages/components/home/Hero.js
Pop-Code/keystone
import React from 'react'; import Container from '../../../../components/Container'; import { compose } from 'glamor'; import Link from 'gatsby-link'; import Header from '../../../../components/Header'; import { version } from '../../../../../package.json'; import theme from '../../../../theme'; import continental fro...
SmartDemo/ReactComponent/node_modules/react-native/local-cli/templates/HelloWorld/index.android.js
HarrisLee/React-Native-Express
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
src/components/Tabs/Tabs.stories.js
wfp/ui
import React from 'react'; import markdown from './README.mdx'; import Tabs from '.'; import Tab from '../Tab'; export default { title: 'Components/Content Related/Tabs', component: Tabs, parameters: { componentSubtitle: 'Component', status: 'released', mdx: markdown, }, }; const tab = { label: ...
Libraries/Components/MaskedView/MaskedViewIOS.ios.js
arthuralee/react-native
/** * 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. * * @format * @flow */ import * as React from 'react'; import StyleSheet from '../../StyleSheet/StyleSheet'; import View from '../...
src/svg-icons/av/snooze.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSnooze = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9...
src/components/comments/StreamComments.js
streamr-app/streamr-web
import React from 'react' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' import NewCommentContainer from './NewCommentContainer' import Bundle from '../Bundle' import loadCommentContainer from 'bundle-loader!./CommentContainer' export default ({ streamId, comments, isLoggedIn }) => ( ...
src/components/Header.js
richard-leagh/evolution-calc
import React from 'react'; const Header = () => ( <h1 className="centeredHeader">Evolution Optimizer</h1> ); export default Header;
app/js/dashboard.js
michaelbrewerdavis/gerrit-mobile
import React from 'react' import { connect } from 'react-redux' import Changes from './components/changes' import actions from './actions' import * as nav from './nav' require('../css/app.css') function DashboardHeader(props, state) { return ( <nav.Header {...props} content={ <div className='file-name fi...
src/components/GridRow.js
mattbilbow/gridster
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { GridSquare } from './'; import actions from '../actions'; class GridRow extends Component { renderSquares() { const { gridster: { grid, rows, cols }, idx } = this.props; c...
packages/webpack-walt-examples/src/Directory.js
ballercat/walt
import React from 'react'; import { Link } from 'react-router-dom'; export default function Directory() { return ( <ul> <li><Link to="/counter">Counter Example</Link></li> </ul> ); }
src/Badge.js
gianpaj/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
05_ES6/Code/fork-es6/app/components/App.js
sayar/ReactMVA
import React from 'react'; import InboxPane from './InboxPane'; import StorePane from './StorePane'; import autoBind from 'react-autobind'; import samples from '../sample-data'; class App extends React.Component { constructor(props) { super(props); autoBind(this); this.state = { "humans": {}, ...
src/components/codeigniter/plain/CodeigniterPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './CodeigniterPlain.svg' /** CodeigniterPlain */ function CodeigniterPlain({ width, height, className }) { return ( <SVGDeviconInline className={'CodeigniterPlain' +...
app/config/router.js
sarven/discover-places-app
import React from 'react'; import { StackNavigator } from 'react-navigation'; import MessageList from '../components/Message/List'; import MessageCreator from '../components/Message/Creator'; import { HEADER } from '../components/Utils/Header'; import Loader from '../components/Utils/Loader'; export const Root = Stack...
app/components/App.js
Casey1449/Jot
import React from 'react'; import NotebookList from './NotebookList'; import NoteLog from './NoteLog'; import NotesArea from './NotesArea'; const { Note, devDB, testDB } = require('../db'); let db = devDB; if (process.env.NODE_ENV === 'test') { db = testDB; } export default class App extends React.Component { co...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
TimurTarasenko/actor-platform
//import _ from 'lodash'; import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActions'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; //i...
client-src/pages/list/index.js
jgunnison/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import List from '../../components/list'; class ListPage extends Component { static propTypes = { listContent: PropTypes.array, }; static defaultProps = { listContent: [], }; render(...
admin/client/App/screens/Item/components/FooterBar.js
rafmsou/keystone
import React from 'react'; import blacklist from 'blacklist'; import assign from 'object-assign'; var FooterBar = React.createClass({ propTypes: { style: React.PropTypes.object, }, getDefaultProps () { return { style: {}, }; }, getInitialState () { return { position: 'relative', width: 'auto', ...
src/components/sideBar/index.js
PowerlineApp/powerline-rn
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Content, Text, ListItem, List, Left, Icon, Right } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { closeDrawer } from '../../actions/drawer'; import { logOut, logOutWithPrompt, unregis...
client/src/App.js
teamcrux/EmploymentOptions
import React, { Component } from 'react'; // import './App.css'; import MasterForm from './Components/oldMasterForm/MasterForm.js'; import NewClient from './Components/NewClient.js'; import ClientsData from './Components/ClientsData.js'; import LoginForm from './Components/LoginForm'; import Logout from './Components/L...
src/js/components/App/MessageBoard.js
scaphold-io/graphql-subscriptions-realtime-starter-kit
import React from 'react'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import {Row, Col} from 'react-bootstrap'; import Message from './Message'; import MessageForm from './MessageForm'; class MessageBoard extends React.Component { constructor(props) { super(props); this.state = {...
src/routes/index.js
abachuk/fullbag-react-redux-dashboard
import React from 'react' import { Route, IndexRoute } from 'react-router' import Firebase from 'firebase' import constants from 'utils/constants' import LoginLayout from 'layouts/LoginLayout' import LoginView from 'views/LoginView' import NewrecipeView from 'views/NewrecipeView' import AllrecipesView from 'views/Allre...
todo-app-context-api/src/App.js
pinoytech/react-playground
import React from 'react'; import './App.css'; import TodoList from './components/TodoList'; function App() { return ( <div className="App"> <div className="container-fluid"> <h2>Todo List</h2> <div className="col-md-12"> <TodoList /> </div> </div> </div> ); }...
index.js
zoofei/react-native-my-image-crop-picker
import React from 'react'; import {NativeModules} from 'react-native'; export default NativeModules.ImageCropPicker;
client/src/components/Header/components/NavLinks.js
jonathanihm/freeCodeCamp
import React from 'react'; import { Link } from '../../helpers'; import PropTypes from 'prop-types'; const propTypes = { displayMenu: PropTypes.bool }; function NavLinks({ displayMenu }) { return ( <div className='main-nav-group'> <ul className={'nav-list' + (displayMenu ? ' display-flex' : '')}> ...
actor-apps/app-web/src/app/components/SidebarSection.react.js
bunnyblue/actor-platform
import React from 'react'; import { Styles, Tabs, Tab } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; import ContactsSection from 'components/sidebar/ContactsSec...
src/main/viz/ScaleTrack.js
snaheth/pileup.js
/** * A track which shows a scale proportional to slice of the genome being * shown by the reference track. This track tries to show a scale in kbp, * mbp or gbp depending on the size of the view and also tries to round the * scale size (e.g. prefers "1,000 bp", "1,000 kbp" over "1 kbp" and "1 mbp") * * ...
docs/src/app/app.js
skarnecki/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; // Helpers for debugging window.React = React; window.Perf = req...
examples/todomvc/index.js
pairyo/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import 'todomvc-app-css/index.css'; React.render( <Root />, document.getElementById('root') );
client/src/main.js
matmoi/simple-share
import React from 'react'; import ReactDOM from 'react-dom'; import FileSharer from './components/filesharer.jsx'; import Options from '../../config/global.js'; import io from 'socket.io-client'; import io_wildcard from 'socketio-wildcard'; //Debugging window.myDebug = require("debug"); myDebug.enable("simple-share");...
client/components/lists/ErrorsList.js
zhakkarn/Mail-for-Good
import React, { Component } from 'react'; export default class ErrorsList extends Component { constructor(props) { super(props); this.state = { errors: this.props.errors || [] }; } componentWillReceiveProps(newProps) { this.setState({ errors: newProps.errors || [] }); } ren...
app/containers/ForgotPassword/EnterOTP.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; import { Modal } from '../../components/Modal'; import { enableSubmitForm, disableSubmitForm, goToEnterPassword, cha...
src/Panel/ItemArrow.js
szchenghuang/react-mdui
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import ClassNames from 'classnames'; import Icon from '../Icon'; class ItemArrow extends React.Component { render() { const { className, children, materialIcon, ...restProps } = this.props; const clx =...
src/svg-icons/action/opacity.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpacity = (props) => ( <SvgIcon {...props}> <path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c....
src/svg-icons/device/usb.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceUsb = (props) => ( <SvgIcon {...props}> <path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3....
node_modules/react-keydown/example/src/app/class_decorator/code.js
SpatialMap/SpatialMapDev
import React from 'react'; import ReactDOM from 'react-dom'; const code = `<code> import React from &#x27;react&#x27;; import keydown from &#x27;react-keydown&#x27;; @keydown class MyComponent extends React.Component { constructor( props ) { super( props ); this.state = { key: &#x27;n/a&#x27; };...
src/js/pages/ExplorePage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ExploreField from '../components/_registerFields/ExploreField'; import DetailPopup from '../components/_registerFields/DetailPopup'; import connectToStores from '../utils/connectToStores'; import AuthenticatedComponent from '../compone...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
allengaller/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const GroupProfileMembers = React.createClass(...
docs-ui/components/textOverflow.stories.js
looker/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import TextOverflow from 'app/components/textOverflow'; storiesOf('TextOverflow', module).add( 'default', withInfo( 'Simple component that adds "text-overflow: ellipsis" and "overflow: hidden...
src/components/App.js
hickeroar/the.iridium.dog
import React, { Component } from 'react'; import { Link } from 'react-router-dom' import Router from "./Router"; import logo from '../assets/logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="wrapper"> <header> <Link to="/"> <div ...
packages/material-ui-icons/src/BatteryCharging80.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L11.93 9H7v11.67C7 21.4 7.6 22 8.33 22h7.33c....
src/js/components/pages/items/ContainerSelector.js
athill/wimf
import React from 'react'; import { Nav, NavItem } from 'react-bootstrap'; import {Icon} from '../../common/common'; import { getSortedContainerArray } from '../../../util/ContainerOperations'; import IconMenu, { MenuItem } from '../../common/IconMenu'; const triggerLabel = <Icon icon="cog" style={{ fontSize: '1em' }...
src/components/video_list_item.js
manuelescamilla/youtube-browser
import React from 'react'; // step 3 props now has onVideoSelect property step4 add onclick const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; // const video = props.video; needs (props) above //console.log(video); return ( <li onClick={()...
src/components/Notification/Notification.js
NightFury2/react-test-req
import React from 'react'; import NotificationContainer from './NotificationContainer'; import IconButton from 'material-ui/IconButton'; import NotificationIcon from 'material-ui/svg-icons/social/notifications'; import NotificationNoneIcon from 'material-ui/svg-icons/social/notifications-none'; const styleIcon = { ...
client/src/components/dashboard/common/ListItem.js
FCC-Alumni/alumni-network
import propTypes from 'prop-types'; import React from 'react'; const ListItem = ({ icon, children }) => { return ( <div className="item"> { icon && <i className={icon} /> } <div className="content"> { children } </div> </div> ); } ListItem.propTypes = { children: propTypes.node...
react_native_frontend/src/components/nav/appSideMenu.js
CUNYTech/BudgetApp
import React, { Component } from 'react'; import { TouchableOpacity, View, Text, Dimensions, StyleSheet } from 'react-native'; import { List, ListItem } from 'react-native-elements'; import { Actions } from 'react-native-router-flux'; import Icon from 'react-native-vector-icons/FontAwesome'; const { height, width } = D...
src/containers/Hostgames.js
laminhtruong/sprite-mapping
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Grid from 'material-ui/Grid'; import HostgameIcon from '../components/hostgames/HostgameIcon' import { GetHostgames } from '../redux/actions/ActionHostgames' con...
client/modules/App/__tests__/components/Footer.spec.js
saltykovdg/mern-react-redux-nodejs-express-todo-list
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; import { intl } from '../../../../util/react-intl-test-helper'; import { FormattedMessage } from 'react-intl'; const enabledLanguages = ['en', 'ru']; const intlProp = { ...intl,...
lib/components/Login.js
davidbecker6081/ConnectME
import React, { Component } from 'react'; import { Route, Redirect } from 'react-router'; import firebase from 'firebase'; import { signIn, signOut, auth } from '../firebase'; class Login extends Component { constructor() { super(); this.state = { username: '', }; } login() { const { storeLoggedInUserDa...
src/views/AppCanvas.js
boyw165/react-vector-cross-product
import $ from 'jquery'; import React from 'react'; import Point from '../lib/Point'; export default class Canvas extends React.Component { constructor(props) { super(props); var pts = [new Point(400, 74), new Point(139, 343), new Point(721, 343)]; pts[2].isClosed = true; ...
public/javascripts/_components/DashboardTile.js
Algram/autocard
import React from 'react'; import ReactDOM from 'react-dom'; export default class DashboardTile extends React.Component { constructor(props) { super(props); // Operations usually carried out in componentWillMount go here } render() { return ( <div className="col-md-10"> <button onClick=...
src/Toolbar/ToolbarGroup.js
pradel/material-ui
import React from 'react'; function getStyles(props, context) { const { firstChild, lastChild, } = props; const { baseTheme, button, toolbar, } = context.muiTheme; const marginHorizontal = baseTheme.spacing.desktopGutter; const marginVertical = (toolbar.height - button.height) / 2; ...
my-app/src/components/helper/Pulse.js
sThig/jabbascrypt
import React from 'react'; import styled from 'styled-components'; const Starholder = styled.span` width: 40px; height: 40px; top: 45%; position: fixed; display: inline; animation: rot 120s infinite linear; ` const Star = styled.span` position: relative; display: block; width: 5px; height: 5px; ...
src/index.js
gramiro/react-infinite-masonry
import React from 'react'; import Masonry from 'react-masonry-component'; import InfiniteScroll from 'react-infinite-scroller'; class MasonryScroller extends React.Component { render() { const infiniteProps = { element: this.props.element, hasMore: this.props.hasMore, initialLoad: this.props...
pkg/interface/link/src/js/components/lib/icons/icon-spinner.js
ngzax/urbit
import React, { Component } from 'react'; export class Spinner extends Component { render() { let classes = !!this.props.classes ? this.props.classes : ""; let text = !!this.props.text ? this.props.text : ""; let awaiting = !!this.props.awaiting ? this.props.awaiting : false; if (awaiting) { ...
src/routes/SelectInsurance/components/SelectInsurance.js
dannyrdalton/example_signup_flow
import React from 'react' import { Link } from 'react-router' import { Field } from 'redux-form' import { FORM_FIELDS } from '../config/select_insurance_config' export const SelectInsurance = (props) => ( <div> <h2>Select Insurance</h2> <form> <div> {FORM_FIELDS.map(field => <Field ...
app/containers/HomePage/index.js
j921216063/chenya
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import BannerSection from 'components/BannerSection'; import HighlightSection...