path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/index.js
ateev/starWars
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App/App.js'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
app/javascript/mastodon/features/ui/components/media_modal.js
dunn/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import classNames from 'classnames'; import { defineMessages, injectIntl, FormattedMessage } fr...
src/component/DeveloperOptions.js
BristolPound/cyclos-mobile-3-TownPound
import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { ListView, View, TouchableHighlight, Image } from 'react-native' import Colors from '@Colors/colors' import merge from '../util/merge' import { loadBusinessList, resetBusinesses } from '../store/reducer/bu...
src/components/video_detail.js
nik149/react_test
import React from 'react'; const VideoDetail = ({video}) => { if(!video) { return <div>Loading...</div>; } const url = `https://www.youtube.com/embed/${video.id.videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-responsive embed-responsive-16by9"> <iframe ...
docs/src/app/components/pages/components/Paper/ExampleCircle.js
rscnt/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleCircle = () => ( <div> <Paper style={style} zDepth={1} circle={true} /> <Paper style={style} zDepth={2} circle={...
ajax/libs/react-select/1.2.1/react-select.es.js
joeyparrish/cdnjs
import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { findDOMNode } from 'react-dom'; var arrowRenderer = function arrowRenderer(_ref) { var onMouseDown = _ref.onMouseDown; return React.createElem...
examples/js/selection/hide-selection-col-table.js
opensourcegeek/react-bootstrap-table
'use strict'; import React from 'react'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; var products = []; function addProducts(quantity) { var startId = products.length; for (var i = 0; i < quantity; i++) { var id = startId + i; products.push({ id: id, name: "Item n...
src/SafeAnchor.js
apkiernan/react-bootstrap
import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; const propTypes = { href: React.PropTypes.string, onClick: React.PropTypes.func, disabled: React.PropTypes.bool, role: React.PropTypes.string, tabIndex: React.PropTypes.oneOfType([ React.PropTypes.number, React.PropTyp...
src/js/pages/ResetPasswordPage.js
bikebaba/XcomponentsStormpath
import React from 'react'; import DocumentTitle from 'react-document-title'; import { ResetPasswordForm } from 'react-stormpath'; export default class ResetPasswordPage extends React.Component { render() { return ( <DocumentTitle title={`Login`}> <div className="container"> <div classNam...
src/svg-icons/image/collections.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollections = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/> ...
src/shared/components/socialMedia/socialMediaContainer/socialMediaContainer.js
tskuse/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './socialMediaContainer.css'; const SocialMediaContainer = ({ children }) => ( <div className={styles.socialMediaContainer}> {children} </div> ); SocialMediaContainer.propTypes = { children: PropTypes.arrayOf(PropTypes.element...
src/app.js
juliogreff/1001places
import React from 'react'; import ReactDOM from 'react-dom'; import createLogger from 'redux-logger'; import fetch from 'isomorphic-fetch'; import thunk from 'redux-thunk'; import { Provider } from 'react-redux'; import { Router } from 'director'; import { applyMiddleware, createStore, compose } from 'redux'; import *...
client/src/components/ResetPasswordForm.js
richb-hanover/reactathon
import React from 'react'; import ajax from 'superagent'; import { Link } from 'react-router'; import { FormErrors } from './partials'; import { AppActions } from '../actions/AppActions'; import { Input, ButtonInput } from 'react-bootstrap'; export class ResetPasswordForm extends React.Component { constructor()...
app/scripts/main.js
rgee/Game-Editor
import React from 'react'; import ReactDOM from 'react-dom'; import AuthActions from './actions/authActions'; import Main from './components/Main'; import Store from './store'; import injectTapEventPlugin from 'react-tap-event-plugin'; /*! * * Web Starter Kit * Copyright 2015 Google Inc. All rights reserved. * ...
app/components/Box/Box.js
celikmus/MathWise
import React, { Component } from 'react'; import { Text, View, Animated, PanResponder, LayoutAnimation } from 'react-native'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { addOperand, removeOperand } from '../../actions/interactions'; import styles from './styles'; class...
assets/js/components/Home.js
nicksergeant/leather
import Footer from './Footer'; import React from 'react'; const Home = () => { return ( <div> <div className="container is-fluid"> <div className="columns is-mobile is-centered" style={{ margin: '50px 0 60px 0' }} > <article className="message"> <di...
app/client.js
osenvosem/react-mobx-boilerplate
import { AppContainer } from 'react-hot-loader'; import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; const rootEl = document.getElementById('root'); render( <AppContainer> <Router routes={routes} history...
src/components/Authentication.js
nunoblue/ts-react
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; class Authentication extends Component { static propTypes = { mode: PropTypes.bool, onLogin: PropTypes.func, onRegister: PropTypes.func, } static defaultProps = { ...
client/src/components/LoginForm.js
richb-hanover/reactathon
import React from 'react'; import { Link } from 'react-router'; import { FormErrors } from './partials'; import { Center, LoginWith } from './partials/Elements'; import { Button, Input, ButtonInput } from 'react-bootstrap'; import { AppActions } from '../actions/AppActions'; import { AppStore } from '../stores/A...
src/screens/homeScreen.js
markup-app/markup
'use strict'; import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import Banner from '../components/banner'; import AppBody from '../components/appBody'; import DocumentTextSection from '../components/documentTextSection'; import Button from '../components/button';...
CreateButtons.js
alangpierce/LambdaCalculusPlayground
/** * @flow */ 'use strict'; import React from 'react'; import { ToastAndroid, View, } from 'react-native'; import DialogAndroid from 'react-native-dialogs'; import FloatingActionButton from './FloatingActionButton'; import StatelessComponent from './StatelessComponent'; import store from './store'; import ...
src/admin/views/navigation/teams.js
ccetc/platform
import React from 'react' import { connect } from 'react-redux' import * as actions from './actions' import { getActiveTeam } from 'admin/components/admin/selectors' import Logo from 'admin/components/logo' class Teams extends React.Component { static contextTypes = { admin: React.PropTypes.object, drawer: ...
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js
ArcanisCz/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; // From https://github.com/oliviertassinari/react-swipeable-views import SwipeableViews from 'react-swipeable-views'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, slide: { ...
src/components/eventplanner/Week.js
f0zze/rosemary-ui
import React from 'react'; import dates from './utils/dates'; import localizer from './localizer'; import { navigate } from './utils/constants'; import TimeGrid from './TimeGrid'; const PROPERTY_TYPES = TimeGrid.propTypes; const DEFAULT_PROPS = TimeGrid.defaultProps; class Week extends React.Component { construct...
src/client/components/nav-menu/nav-menu-list.js
adamgruber/mochawesome-report-generator
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import isEqual from 'lodash/isEqual'; import { NavMenuItem } from 'components/nav-menu'; import classNames from 'classnames/bind'; import styles from './nav-menu.css'; const cx = classNames.bind(styles); class NavMenuList extends Component ...
app/js/components/footer.js
pauloelias/simple-webpack-react
import React from 'react'; export default class Footer extends React.Component { render() { const currentYear = new Date().getFullYear(); return ( <div> <p><small>&copy {currentYear}.</small> This is the amazing <b>footer</b>.</p> </div> ) }; }
client/modules/app/routes.js
mantrajs/meteor-mantra-kickstarter
import React from 'react'; import {mount} from 'react-mounter'; import {Accounts} from 'meteor/accounts-base'; import { AuthCheck, LayoutDefault, Simplest, NotFound, } from '/client/configs/components.js'; import Register from './components/AccountRegister/Wrapper.jsx'; import Login from './components/Account...
src/components/App.js
calebhskim/kucc-react-boilerplate
import React from 'react'; const App = () => ( <div>Hello World!</div> ); export default App;
lts/deps/npm/docs/src/components/home/Footer.js
enclose-io/compiler
import React from 'react' import boxes from '../../images/background-boxes.svg' import styled from 'styled-components' import {Flex, Box} from 'rebass' const Container = styled(Flex)` background: center / cover no-repeat url(${boxes}); height: 380px; background-color: ${(props) => props.theme.colors.offWhite}; ...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
it33/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
src/CommentBox.js
JiLiZART/react-tutorial
'use strict'; import React from 'react'; import CommentList from './CommentList'; import CommentForm from './CommentForm'; var data = [ {author: "Pete Hunt", text: "This is one comment"}, {author: "Jordan Walke", text: "This is *another* comment"} ]; export default React.createClass({ displayName: 'Comme...
blueocean-material-icons/src/js/components/svg-icons/action/open-in-new.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionOpenInNew = (props) => ( <SvgIcon {...props}> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/> </SvgIcon> ); ActionOpenInNew.displayName = 'A...
client/src/components/Explorer/Explorer.js
takeflight/wagtail
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import * as actions from './actions'; import ExplorerPanel from './ExplorerPanel'; const Explorer = ({ isVisible, nodes, path, pushPage, popPage, onClose, }) => { const page = nodes[path[path.length - ...
src/svg-icons/av/forward-10.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward10 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0...
src/svg-icons/av/sort-by-alpha.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSortByAlpha = (props) => ( <SvgIcon {...props}> <path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ...
src/js/app/Navbar/Mobile.js
ludonow/ludo-beta-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import styled from 'styled-components'; import { baseUrl } from '../../baseurl-config'; import { StyledAnchor, StyledLink, } from '../../baseStyle'; import { cardSystemLinkInfoList, getMyC...
css-challenges-2/src/App.js
javcasas/css-challenges
import React from 'react'; import logo from './logo.svg'; import './App.css'; import {HyperspaceIn, HyperspaceOut} from './hw-hyperspace'; function App() { return ( <div className="App"> <header className="App-header"> <HyperspaceIn> adfsdfasdfasdgdfag </HyperspaceIn> <di...
src/Chat/ChatList/ChatList.js
DarthVictor/bank-chat
import React from 'react' import ChatMessage from '../ChatMessage' import './ChatList.scss' function formatDateHeader(date){ function twoDigits(n){ return (n < 10 ? '0' : '') + n } return `— ${twoDigits(date.getDate())}.${twoDigits(date.getMonth() + 1)}.${date.getFullYear()} —` } export default class Chat...
app/containers/NavigationContainer/index.js
rahsheen/scalable-react-app
/* * * NavigationContainer * */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import selectNavigationContainer from './selectors'; import styles from './styles.css'; import Navigation from '../../components/Navigation'; import { requestTopics, selectTopic, tog...
node_modules/semantic-ui-react/src/collections/Table/Table.js
SuperUncleCat/ServerMonitoring
import _ from 'lodash' import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useKeyOrValueAndKey, useTextAlignProp, useVerticalAlignProp, useWidthProp, } from '../...
frontend/component/EditTopic.js
caiklaus/first-node-project
import React from 'react'; import jQuery from 'jquery'; import {addTopic} from '../lib/client'; import {redirectURL} from '../lib/utils'; import {getTopicDetail, updateTopic} from '../lib/client'; import TopicEditor from './TopicEditor'; export default class EditTopic extends React.Component { constructor(props) { ...
docs/app/Examples/views/Statistic/Variations/StatisticExampleHorizontal.js
clemensw/stardust
import React from 'react' import { Statistic } from 'semantic-ui-react' const StatisticExampleHorizontal = () => <Statistic horizontal value='2,204' label='Views' /> export default StatisticExampleHorizontal
util/connect/index.js
marrus-sh/mastodon-go
/*********************************************************************\ | | | CONNECT | | ======= | | ...
js/AppNavigator.js
leehyoumin/asuraCham
'use strict'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import _ from 'lodash/core'; import { Drawer } from 'native-base'; import { BackAndroid, Platform, StatusBar } from 'react-native'; import { closeDrawer } from './actions/drawer'; import { popRoute } from './actions/route';...
src/browser/todos/Todos.js
robinpokorny/este
// @flow import type { State, Todo } from '../../common/types'; import React from 'react'; import todosMessages from '../../common/todos/todosMessages'; import { Box, Button, Text } from '../app/components'; import { compose, isEmpty, prop, reverse, sortBy, values } from 'ramda'; import { connect } from 'react-redux'; ...
src/components/auth/requireAuth.js
mdunnegan/ReactFrontEndAuthentication
import React, { Component } from 'react'; import { connect } from 'react-redux'; export default function(ComposedComponent) { class Authentication extends Component { static contextTypes = { router: React.PropTypes.object } componentWillMount() { // Just checking global redux state if ...
app/components/Input/Input.js
JSSolutions/Perfi
import React from 'react'; import T from 'prop-types'; import { TextInput, View, ViewPropTypes } from 'react-native'; import { MaterialCommunityIcons } from '@expo/vector-icons'; import Text from '../Text'; import { colors } from '../../styles'; import s from './styles'; const Input = ({ containerStyle, placeholde...
src/components/Feedback/Feedback.js
zhangtiny123/casa-achievement
import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedback-container"> <a className="Feedback-link" href="https://gitte...
src/router.js
yyjazsf/react-study
import React from 'react' import { Switch, Route, routerRedux } from 'dva/router' import PropTypes from 'prop-types' import dynamic from 'dva/dynamic' import App from './routes/app' import AuthorizedRoute from './components/authorizedRoute' import ManinLayout from './components/layout' const { ConnectedRouter } = rou...
src/components/app.js
ljones140/react_redux_weather_app
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
examples/huge-apps/routes/Course/components/Nav.js
sprjr/react-router
import React from 'react'; import { Link } from 'react-router'; import AnnouncementsRoute from '../routes/Announcements'; import AssignmentsRoute from '../routes/Assignments'; import GradesRoute from '../routes/Grades'; const styles = {}; styles.nav = { borderBottom: '1px solid #aaa' }; styles.link = { display: ...
src/Backoffice/ButtonLayout/ButtonLayout.js
skyiea/wix-style-react
import React from 'react'; import {any, bool, oneOf} from 'prop-types'; import classNames from 'classnames'; import styles from './ButtonLayout.scss'; const ButtonLayout = props => { const {theme, hover, active, disabled, height, children} = props; const className = classNames({ [styles.button]: true, [st...
src/components/Home/Home.js
ortonomy/flingapp-frontend
import React, { Component } from 'react'; import { Jumbotron, Button } from 'react-bootstrap'; import home from './Home.module.css' class Home extends Component { render() { return( <div className={home.Home}> <Jumbotron> <h1>Hello everyone!</h1> ...
web-ui/src/component/BoardComponent.js
azadbolour/boardgame
/* * Copyright 2017-2018 Azad Bolour * Licensed under GNU Affero General Public License v3.0 - * https://github.com/azadbolour/boardgame/blob/master/LICENSE.md */ /** @module Board */ import React from 'react'; import PropTypes from 'prop-types'; import BoardSquareComponent from './BoardSquareComponent'; import ...
packages/react-scripts/fixtures/kitchensink/src/features/env/ExpandEnvVariables.js
ConnectedHomes/create-react-web-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'; export default () => ( <span> <span id="feature-expand-env-1">{process.env.REACT_APP_BASIC}</span> ...
demo/src/index.js
nteract/notebook-preview
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRedirect, hashHistory } from 'react-router'; import NotebookPreview from 'notebook-preview'; import { fetchFromGist } from './fetchers'; const gistIDs = [ '53f2d7bbc69936bd7a4131c0890fc61d', 'ee778e32b8e62cf634929abe229a8...
src/index.js
steeeeee/udemy-react-redux-blog
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import promise from 'redux-promise' import reducers from './reducers'; import routes from './routes'; const ...
node_modules/redbox-react/examples/react-transform-catch-errors/index.js
jdl031/FHIR-test-app
import React from 'react' import App from './components/App' const root = document.getElementById('root') React.render(<App />, root)
packages/material-ui-icons/src/ViewArray.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ViewArray = props => <SvgIcon {...props}> <path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z" /> </SvgIcon>; ViewArray = pure(ViewArray); ViewArray.muiName = 'SvgIcon'; export default ViewArray;
src/main/components/Input.js
padcom/react-example-02
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import TitleActions from '../state/title'; import css from './Input.less'; /** * Input field * * @class Input * @ */ const Input = ({ /** * Title * @public * @property title * @type {stri...
views/decoration_toggle.js
skomski/black-screen
import React from 'react'; export default React.createClass({ getInitialState() { return {enabled: this.props.invocation.state.decorate}; }, handleClick(event) { stopBubblingUp(event); var newState = !this.state.enabled; this.setState({enabled: newState}); this.prop...
tagging_interface/src/views/NewProjectView/NewProjectAnnotators.js
Michael-Stewart-Webdev/annotation-tool
import React from 'react'; import {Component} from 'react'; import NewProjectFormHelpIcon from 'views/NewProjectView/NewProjectFormHelpIcon'; import ProfileIcon from 'views/SharedComponents/ProfileIcon'; import formatDate from 'functions/formatDate' import _fetch from 'functions/_fetch'; function strIsEmail(str) { r...
src/svg-icons/action/open-in-browser.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInBrowser = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/> </SvgIcon> ); ...
crowdpact/static/js/apps/pact/home/components/PactHomeApp.js
joshmarlow/crowdpact
import React from 'react'; class PactHomeApp extends React.Component { render() { return ( <div> <h1> Welcome to CrowdPact {this.props.pageData.get('user').get('username')}! </h1> <a href={this.props.pageData.get('logout_url')...
tutorials05/module/b.js
Ivanwangcy/webpack-tutorials
import React from 'react'; var Content = React.createClass({ render: function() { return ( <div>App Content <div className="container"></div> </div> ); } }) export default Content;
docs/src/app/components/pages/components/DropDownMenu/Page.js
hai-cea/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import dropDownMenuReadmeText from './README'; import DropDownMenuSimpleExample ...
app/javascript/mastodon/features/ui/components/media_modal.js
palon7/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ExtendedVideoPlayer from '../../../components/extended_video_player'; import { defineMessages, injectIntl } from 'react-intl'; import...
platform/ui/src/components/radioButtonList/RadioButtonList.js
OHIF/Viewers
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './RadioButtonList.css'; export class RadioButtonList extends Component { static className = 'RadioButtonList'; //TODO: Add fields to propTypes.description? //These would be label (required), id (required), and checked (optiona...
src/svg-icons/image/movie-filter.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMovieFilter = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 3h-3l-2-3h-2l2 3h-3l-2-3H8l2 3H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4zm-6.75 11.25L10 18l-1.25-2.75L6 14l2.7...
src/index.js
guanzhou-zhao/calculate-cabinet-plan
import React from 'react' import { render } from 'react-dom' import App from './components/App' // import App from './meta/App' // Try fs in electron // import fs from 'fs' // import path from 'path' // var filePath = path.resolve(__dirname, '..', 'README.md'); // fs.readFile(filePath, 'utf8', (err, data) => { // i...
frontend/src/pages/NetworkOverview.js
esarafianou/rupture
import React from 'react'; import { Link } from 'react-router'; import axios from 'axios'; import _ from 'lodash'; import AttackListDetails from '../containers/AttackListDetails'; import NotStartedVictims from '../containers/NotStartedVictims'; import WifiScan from '../containers/Wifiscan'; import GhostPc from '../im...
js/views/XAutosuggest.js
acthp/ucsc-xena-client
/** * UCSC Xena Client * http://xena.ucsc.edu * * Standard Xena autosuggest, with UI/UX based on Material Design's full-width inputs. Light wrapper around * react-autosuggest package. * * All props with the exception of the state and actions specified below, are passed directly to Autosuggest. * * State * ---...
intro-manager/src/main/resources/static/js/src/lib/view/Introduction.js
suzukiyo/ddd
import React from 'react'; export default class Introduction extends React.Component { constructor(props) { super(props); } componentWillMount() { } render() { } componentDidMount() { } }
src/parser/druid/feral/modules/racials/Shadowmeld.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import RACES from 'game/RACES'; import Analy...
app/assets/javascripts/components/EditorHeader.js
rnplay/rnplay-web
'use strict'; import React, { Component } from 'react'; import classNames from 'classnames'; import AppName from './AppName'; import MainMenu from './MainMenu'; import GitModal from './git_modal'; const maybeCallMethod = (obj, method, ...args) => { obj[method] && obj[method](...args); }; export default class Edit...
node_modules/eslint-config-airbnb/test/test-react-order.js
tausifmuzaffar/bisApp
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, rules: { // It is okay to import devDependencies in tests....
src/components/Panel/Panel.js
pavelsuraba/react-animations
/* eslint-disable no-unused-vars */ import React, { Component } from 'react'; import styled from 'styled-components'; /* eslint-enable no-unused-vars */ const Panel = styled.div` width: 300px; height: 100%; position: fixed; top: 0; right: ${props => props.direction === 'right' ? 0 : 'auto' }; l...
src/components/PageDropdownContainer.js
ttrentham/Griddle
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from '../utils/griddleConnect'; import compose from 'recompose/compose'; import mapProps from 'recompose/mapProps'; import getContext from 'recompose/getContext'; import { currentPageSelector, maxPageSelector, classNamesForComponentSelect...
packages/material-ui-icons/src/SignalCellular2BarTwoTone.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M14 10L2 22h12V10z" /></React.Fragment> , 'SignalCellular2BarTwoTone');
docs/pages/getting-started/example-projects.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'getting-started/example-projects'; const requireDemo = require.context( 'docs/src/pages/getting-started/example-projects', fa...
src/svg-icons/action/polymer.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPolymer = (props) => ( <SvgIcon {...props}> <path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/> </SvgIcon> ); ActionPolymer = pure(ActionPolymer); ActionPolymer.d...
app/jsx/grade_summary/SelectMenu.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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/svg-icons/action/note-add.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionNoteAdd = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </SvgIcon> );...
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-glow-2018-01-21/src/performance/dbmon/react/app.js
js-works/js-surface
/** @jsx React.createElement */ import ENV from '../shared/env.js'; import React from 'react'; import ReactDOM from 'react-dom'; export default class DBMon extends React.Component { constructor(props) { super(props); this.state = { databases: [] }; } loadSamples()...
test/appwraper-test.js
miktown/wordpress-reactjs
'use strict' import test from 'ava' import React from 'react' import { shallow, mount } from 'enzyme' import 'jsdom-global/register' import AppWrapper from '../app/containers/app' test('shallow unit component <AppWrapper />', t => { let mock = {} mock.name = 'moo' const wrapper = shallow(<AppWrapper />) con...
app/javascript/mastodon/features/keyboard_shortcuts/index.js
codl/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
src/svg-icons/notification/airline-seat-legroom-extra.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomExtra = (props) => ( <SvgIcon {...props}> <path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1....
app/javascript/mastodon/features/standalone/community_timeline/index.js
Arukas/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { refreshCommunityTimeline, expandCommunityTimeline, } from '../../../actions/timelines'; import Column from '../../../components/...
app/assets/javascripts/components/pages/EventsDetailPageView.js
loggingroads/onboarding
'use strict'; import React from 'react'; import DataTableView from './../DataTableView'; import Map from './../../containers/MapContainer'; class EventsDetailView extends React.Component { constructor(props) { super(props); const path = window.location.pathname.split('/'); this.eventId = path[path.leng...
docs/app/Examples/elements/List/Types/ListExampleOrderedValue.js
koenvg/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleOrderedValue = () => ( <List as='ol'> <List.Item as='li' value='*'>Signing Up</List.Item> <List.Item as='li' value='*'>User Benefits</List.Item> <List.Item as='li' value='*'> User Types <List.Item as='ol'> ...
src/Components/Header/index.js
arthurflachs/react-webpack-config
import React from 'react' import styles from './styles.css' import HomeIcon from '../HomeIcon' export default function Header() { return ( <div className={styles.Header}> <div className={styles.Title}> <HomeIcon /> </div> <div className={styles.Actions}> </div> </div> ) }
src/examples/TimeTravel.js
steos/elmar.js
import R from 'ramda' import React from 'react' import {forward, mapEffects, message, targetValue} from '../elmar' const init = component => (...args) => { const [model, effects] = component.init(...args) return [{ component: model, lastAction: performance.now(), history: [], future: [], ...
index.ios.js
mutualmobile/Brazos
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import StackNavigator from './src/components/app/StackNavigator'; AppRegistry.registerComponent('Brazos', () => StackNavigator);
src/redux/utils/createDevToolsWindow.js
llukasxx/school-organizer-front
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
src/svg-icons/notification/network-check.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkCheck = (props) => ( <SvgIcon {...props}> <path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28...
Tutorial/js/project/2.MeiTuan/Component/Main/XMGLaunchImage.js
onezens/react-native-repo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image } from 'react-native'; /**----导入外部的组件----**/ var Main = require('./XMGMain'); var Launch = React.createClass({ ...
docs-ui/components/iconSet.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import styled from '@emotion/styled'; import * as newIconset from 'app/icons'; export default { title: 'Core/Style/Icons', }; export const IconSet = withInfo('Replace `InlineSvg` with icon components')(() => { return ( <SwatchWrapper>...
src/containers/ImportReviews/individualsCrawlerForm/UpWorkForm.js
ChluNetwork/chlu-demo
import React from 'react' import { Grid } from '@material-ui/core' import { Field } from 'redux-form' import CustomInput from 'components/Form/CustomInput' import { InputAdornment, withStyles } from '@material-ui/core' import FaceIcon from '@material-ui/icons/Face'; import EmailIcon from '@material-ui/icons/Email'; im...
react-webpack/src/Comment.js
hzzly/react-getting-started
import React, { Component } from 'react'; class Comment extends Component { render() { return ( <div className="comment"> <div className="ui comments"> <div className="comment"> <a className="avatar"> ...
client/index.js
nextinnovation-corp/gacha
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import store from './store'; ReactDOM.render( <Provider store={store}> <App /> </Provider> , document.getElementById('app'));