path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/components/Feed/presenter.js
plusbeauxjours/nomadgram
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles.scss'; import Loading from 'components/Loading'; import FeedPhoto from 'components/FeedPhoto'; const Feed = props => { if(props.loading){ return <LoadingFeed />; } else if (props.feed){ return <RenderFe...
src/app/components/TodoApp/TodoApp.js
batazor/LMap
import React from 'react' // eslint-disable-line no-unused-vars import Footer from './Footer' import AddTodo from '../../containers/AddTodo' import VisibleTodoList from '../../containers/VisibleTodoList' const Todo = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default Tod...
app/components/About.js
chena/kiminonawa-web
import React from 'react'; import Container from 'muicss/lib/react/container'; import Divider from 'muicss/lib/react/divider'; import Row from 'muicss/lib/react/row'; import Col from 'muicss/lib/react/col'; import styles from '../styles.css'; import taiwanIcon from '../images/taiwan_icon.png'; export default class A...
webpack/ForemanTasks/Components/TasksTable/SubTasksPage.js
adamruzicka/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import TasksTablePage from './'; export const SubTasksPage = props => { const parentTaskID = props.match.params.id; const getBreadcrumbs = actionName => ({ breadcrumbItems: [ ...
docs/app/Examples/elements/Image/Groups/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ImageTypesExamples = () => ( <ExampleSection title='Groups'> <ComponentExample title='Size' description='A grou...
src/parser/ui/Cooldown.js
anom0ly/WoWAnalyzer
import { Trans } from '@lingui/macro'; import { formatThousands, formatNumber, formatPercentage, formatDuration } from 'common/format'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { Icon, SpellLink } from 'interface'; import { TooltipElement } from 'interface'; import { ...
server/sonar-web/src/main/js/apps/overview/gate/gate-condition.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
src/components/events.js
Diane27/big-red-hacks-2017
import React from 'react'; import { Switch, Route } from 'react-router-dom' import AllEvents from './events/all_events'; import EventDetails from './events/event_details' const Events = () => ( <Switch> <Route exact path='/events' component={AllEvents}/> <Route path='/events/:eventId' component={Event...
src/component/dashboard-container/index.js
saidmattar/cloud-life-frontend
import './_dashboard-container.scss'; import React from 'react'; import {connect} from 'react-redux'; import DocumentForm from '../document-form'; import DocumentContainer from '../document-container'; import GroupContainer from '../group-container'; import {groupFetchRequest} from '../../action/group-actions.js'; imp...
app/javascript/mastodon/components/intersection_observer_article.js
pfm-eyesightjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import scheduleIdleTask from '../features/ui/util/schedule_idle_task'; import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; export default class IntersectionObserverArt...
src/components/Tos/Print/PrintView.js
City-of-Helsinki/helerm-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { withRouter, Link } from 'react-router-dom'; import { push } from 'connected-react-router'; import get from 'lodash/get'; import { fetchTOS }...
src/components/matchBets/MatchInfo.js
jahuk/bet-platform-react
import React from 'react'; const MatchInfo = ({home, away, result}) => { return ( <div className="alert alert-dismissible alert-info"> <strong>{home} VS {away}</strong> <br/>score: {result} </div> ); }; MatchInfo.propTypes = { home: React.PropTypes.string, away: React.PropTypes.string, r...
src/components/LanguageSwitcher/LanguageSwitcher.js
malinowsky/dataroot_03
/* eslint-disable no-shadow */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { setLocale } from '../../actions/intl'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './LanguageSwitcher.scss'; function LanguageSwitcher({ cur...
admin/client/App/elemental/Modal/body.js
ratecity/keystone
import React from 'react'; import { css } from 'glamor'; import theme from '../../../theme'; function ModalBody ({ className, ...props }) { return ( <div className={css(classes.body, className)} {...props} /> ); }; const classes = { body: { paddingBottom: theme.modal.padding.body.vertical, paddingL...
stories/decorators/wrapStory.js
isogon/material-components
import styled, { injectGlobal } from 'styled-components' import React from 'react' import { Theme, initGlobals, createTheme, colors } from '../../src' initGlobals({ fontObserver: 'Roboto' }) const theme = createTheme({ colorPrimary: colors.indigo[500], colorPirmaryDark: colors.indigo[700], colorAccent: colors....
src/components/Dashboard/PieGraphs/PieGraph.js
GovWizely/steel-search
import React from 'react'; import PropTypes from 'prop-types'; import { values, pickBy, has, omit, map, startCase, pick, remove } from '../../../utils/lodash'; import moment from 'moment'; import { Pie } from 'react-chartjs-2'; import { PieColors } from '../GraphColors'; import config from '../../../config'; const Pie...
src/view/dialog/resetPassword.js
VisitingLandmarks/visitingLandmarks
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {injectIntl, intlShape} from 'react-intl'; import DialogUserPassword from './userPassword'; import {resetPasswordThunk, resettingPassword} from '../../redux/action/thunk/resetPassword'; import {navigateTo} from ...
demo08/src/components/Topics/Topics.js
lxlneo/reactdemo
import React from 'react'; import { Spin } from 'antd'; import styles from './Topics.css'; import ListItem from './ListItem'; function Topics({ data }) { const topics = data; return ( <div className={styles.normal}> <div className={styles.list}> { topics.map((v, k) => ( <Li...
sms_sponsorship/webapp/src/components/ChildDescription.js
maxime-beck/compassion-modules
import React from 'react'; import Typography from '@material-ui/core/Typography'; export default class extends React.Component { getDescriptionJson = () => { let div = document.createElement('div'); div.innerHTML = this.props.appContext.state.child.description; let table = div.querySelector...
packages/veritone-react-common/src/components/DataPicker/HeaderBar/story.js
veritone/veritone-sdk
import React from 'react'; import { storiesOf } from '@storybook/react'; import { text } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import HeaderBar from './'; storiesOf('DataPicker', module) .add('HeaderBar: Basic', () => ( <HeaderBar pathList={[ { ...
app/index.js
JCombee/wallet
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
src/pages/NewSensor/NewSensorStepTwo.js
sussol/mobile
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import { View, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { TabContainer } from './TabContainer'; import { BreachConfigRow } from './BreachConfigRow'; import { Paper, FlexRow...
frontend/app/js/components/board/settings.js
serverboards/serverboards
import React from 'react' import i18n from 'app/utils/i18n' import Modal from 'app/components/modal' import HoldButton from 'app/components/holdbutton' import {map_get} from 'app/utils' import ExtractorSelect from 'app/containers/board/extractorselect' class Settings extends React.Component{ constructor(props){ ...
yycomponent/popconfirm/Popconfirm.js
77ircloud/yycomponent
import React from 'react'; import { Popconfirm as _Popconfirm } from 'antd'; class Popconfirm extends React.Component{ constructor(props){ super(props); } render(){ return (<_Popconfirm {...this.props}/>); } } export default Popconfirm
packages/containers/src/TreeView/TreeView.stories.js
Talend/ui
import React from 'react'; import TreeView from '.'; export default { title: 'TreeView', }; export const Default = () => ( <TreeView id="my-treeview" collection="with.data" nameAttr="label" onToggleActionCreator="object:view" onSelectActionCreator="object:view" noHeader /> );
app/javascript/mastodon/features/favourites/index.js
Arukas/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
example/examples/CustomTributeExample.js
BolsteDev/react-tribute
import React, { Component } from 'react'; import TextArea from 'react-textarea-autosize'; import options from './options'; import Tribute from '../../src/Tribute'; export default class CustomTributeExample extends Component { render() { return ( <div className="row"> <div className="large-8 column...
src/memo.js
Monar/react-immutable-pure-component
import React from 'react'; import { check } from './check'; export function immutableMemo(Component, updateOnProps) { return React.memo(Component, (prev, next) => check(updateOnProps, prev, next, 'immutableMemo'), ); }
packages/docs/components/Examples/alignment/SimpleAlignmentEditor/index.js
draft-js-plugins/draft-js-plugins
import React, { Component } from 'react'; import { convertFromRaw, DefaultDraftBlockRenderMap, EditorState, } from 'draft-js'; import Immutable from 'immutable'; import Editor, { composeDecorators } from '@draft-js-plugins/editor'; import createAlignmentPlugin from '@draft-js-plugins/alignment'; import createF...
src/app/core/atoms/icon/icons/calender.js
blowsys/reservo
import React from 'react'; const Calender = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M7,6 L7,5.0093689 C7,4.45190985 7.44386482,4 8,4 C8.55228475,4 9,4.44335318 9,5.0093689 L9,6 L15,6 L15,5.0093689 C15,4.45190985 15.4438648,4 16,4 C16.5522847,4 17,4.44335318 17,5.0093689 L17,6 L19,6 L19,18 L5,18 L5...
app/viewControllers/Auth/SendPasswordResetPage.js
Evyy/cffs-ui
'use strict'; import React from 'react'; import {Link} from 'react-router'; import classnames from "classnames"; import AuthPage from './AuthPage'; import SendResetForm from '../../forms/SendResetForm'; class SendPasswordResetPage extends React.Component { constructor (props) { super(props); } r...
src/routes/adminModify/index.js
oct16/Blog-FE
import React from 'react'; import Layout from 'components/Layout'; const title = 'Admin Modify'; const isAdmin = false; export default { path: '/admin/modify/:id', async action({ fetch, params }) { const AdminModify = await require.ensure([], require => require('./AdminModify').default, 'AdminModify') con...
src/index.js
tsaarikivi/goose
import React from 'react' import ReactDOM from 'react-dom' import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import { Provider } from 'react-redux' import { Router, hashHistory } from 'react-router' import routes from './routes' import store from './store' // create redux store and ...
vendor/assets/components/react-autosuggest/examples/src/Badges/Badges.js
UMNLibraries/ikidowinan
require('./Badges.less'); import React, { Component } from 'react'; export default class Badges extends Component { render() { return ( <div className="badges"> <a href="//codeship.com/projects/67868" target="_blank"> <img src="//img.shields.io/codeship/41810250-aa07-0132-fbf4-4e62e8945e...
src/components/Toggle/Toggle.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { settings } from 'carbon-componen...
src/svg-icons/action/description.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDescription = (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 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/> </SvgIcon> ); A...
code/L5/Component-Lifecycle/hello-world.js
santhoshthepro/reactjs
import React from 'react'; import LifecycleComponent from './lifecycle-component'; class HelloWorld extends React.Component{ render(){ return (<div> <h1>Welcome to Webpack!</h1> <LifecycleComponent/> </div> ); } } export default HelloWorld
demo/textfield/textfield.js
koorchik/react-mdl
import React from 'react'; import Textfield from '../../src/Textfield'; function linkToState(target, property) { return value => { target.setState({ [property]: value }); }; } class Demo extends React.Component { constructor(props) { super(props); this.state = {...
src/Parser/Druid/Restoration/Modules/Items/EssenceOfInfusion.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; import ItemHealingDone from 'Main/ItemHea...
src/course/curriculum.js
TJCU-Dev/tjcu-site-frontend
import React from 'react'; import {grey200, grey400, grey800, grey900, grey600, red900} from 'material-ui/styles/colors'; import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import IconButton from 'material-ui/IconButton'; export default class Curriculum exten...
frontend/components/confirm-view.js
meandavejustice/min-vid
import React from 'react'; import sendToAddon from '../client-lib/send-to-addon'; import sendMetricsEvent from '../client-lib/send-metrics-event'; export default class ConfirmView extends React.Component { cancel(ev) { ev.preventDefault(); ev.stopPropagation(); sendMetricsEvent('confirm_view', 'cancel')...
app/index.js
kentlan/sound-cloud-redux-app
import React from 'react' import {render} from 'react-dom' import App from './containers/app' import {Provider} from 'react-redux' import store from './store' import './style/scss/style.scss' const root = ( <Provider store={store}> <App/> </Provider> ) render(root, document.getElementById('app'))
node_modules/react-router/es/IndexRedirect.js
aalpgiray/react-hot-boilerplate-ts
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
src/components/ConnectedArray.js
mzvonar/modular-redux-form
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import getIn from '@mzvonar/getin'; import isEvent from './../utils/isEvent'; import deepEqual from 'react-fast-compare'; function deleteChildren(object, children) { let deleted = {}; for(let i = 0, length = ch...
src/app/js/Header.js
skratchdot/colorify
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Row, Col, Nav } from 'react-bootstrap'; class Header extends Component { isLinkActive = (name) => { return this.props.active === name ? 'active' : ''; }; render() { const { active } = this.props; const HeaderL...
examples/fiber/debugger/src/Fibers.js
claudiopro/react
import React from 'react'; import { Motion, spring } from 'react-motion'; import dagre from 'dagre'; import prettyFormat from 'pretty-format'; import reactElement from 'pretty-format/plugins/ReactElement'; function getFiberColor(fibers, id) { if (fibers.currentIDs.indexOf(id) > -1) { return 'lightgreen'; } i...
app/containers/CatKitDemo/BulkInput.js
mhoffman/CatAppBrowser
import _ from 'lodash'; import React from 'react'; import PropTypes, { instanceOf } from 'prop-types'; import { Link } from 'react-router'; import { withCookies, Cookies } from 'react-cookie'; import { compose } from 'recompose'; import { MenuItem } from 'material-ui/Menu'; import Select from 'material-ui/Select'; i...
src/components/BookmarksList.js
dan-f/mark
import React from 'react' import NewBookmark from './NewBookmark' import Bookmark from './Bookmark' import ListGroup from './ListGroup' import ListGroupItem from './ListGroupItem' import BookmarkEditor from '../containers/BookmarkEditor' export default function BookmarksList ({ bookmarks, handleCancelEditing, handleC...
src/components/HTMLEditor.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { upload } from '../lib/api'; import '../../node_modules/react-quill/dist/quill.snow.css'; /* * Simple editor component that takes placeholder text as a prop */ class HTMLEditor extends React.Component { st...
src/svg-icons/action/assignment-late.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentLate = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0...
desenvolvimento-plataformas-moveis/pocs/camera/App.js
mfklauberg/projetosacademicosfurb
import React from 'react'; import { StyleSheet, Text, View, Button, Alert, Image, CameraRoll } from 'react-native'; import { Permissions, ImagePicker } from 'expo' export default class App extends React.Component { render() { return ( <View style={styles.container}> <View style={styles.header}> ...
examples/huge-apps/app.js
hgezim/react-router
import React from 'react'; import { Router } from 'react-router'; import stubbedCourses from './stubs/COURSES'; var rootRoute = { component: 'div', childRoutes: [{ path: '/', component: require('./components/App'), childRoutes: [ require('./routes/Calendar'), require('./routes/Course'), ...
examples/components/Content.js
neilff/react-d3-examples
import React from 'react'; const Content = ({ children, isVisible }) => { const visibleClass = isVisible ? 'block' : 'hide'; return ( <div className={ `mt3 p1 ${ visibleClass }` } style={{ ...styles.base, styles }}> { children } </div> ); }; const styles = { base: {}, }; export def...
src/routes.js
civic-tech-lab/commonplace-frontend
// @flow import React from 'react'; import { Route, Switch } from 'react-router-dom'; import { App, Main } from './components'; // React router v4 - https://reacttraining.com/react-router/ const appRoutes = ( <Switch> <Route path="/" exact component={Main} /> <Route path="/about" exact com...
src/ModalHeader.js
egauci/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import tbsUtils, { bsClass } from './utils/bootstrapUtils'; import createChainedFunction from './utils/createChainedFunction'; class ModalHeader extends React.Component { render() { let { 'aria-label': label, ...props } = this.props; let onHide...
app/react-native/app/screens/StatsScreen.js
sping/abcd-epic-fussball
import React, { Component } from 'react'; import { StyleSheet, Text, Image, View, ScrollView } from 'react-native'; import { Card } from 'react-native-elements' import Constants from '../config/constants'; import Colors from '../config/colors'; import Player from '../models/player'; const GET_C...
004 - Logicless Components with Reselect/src/components/posts_list.js
StephenGrider/RallyCodingWeekly
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from 'actions'; class PostsList extends Component { componentWillMount() { this.props.fetchPosts(); } handlePostSelect({ id }, event) { const { selectPost, deselectPost } = this.p...
examples/todos/src/containers/AddTodo.js
ioof-holdings/redux-dynamic-reducer
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
lib/routes.js
conveyal/scenario-editor
// @flow /** * React Router container to be rendered by woonerf/mount. * @author mattwigway */ import React from 'react' import {IndexRoute, Router, Route} from 'react-router' import {load as loadProject} from './actions/project' import {load as loadRegion} from './actions/region' import Admin from './modules/admin...
react/app/Story.js
yogeshkhatri1989/hn
import React, { Component } from 'react'; import ReactFire from 'reactfire'; import { Route, Link } from 'react-router-dom'; import StoryComment from './StoryComment'; import UserProfile from './UserProfile'; class Story extends Component { constructor(props) { super(props); this.state = {}; } c...
src/svg-icons/action/book.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBook = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/> </SvgIcon> ); ActionBook = pure(ActionBook); Ac...
js/components/weather.js
stage88/react-weather
/** * @flow */ 'use strict'; import StatusBar from 'StatusBar'; import React, { Component } from 'react'; import { StyleSheet, View, Animated, Image, Text, Dimensions } from 'react-native'; import { connect } from 'react-redux'; import Swiper from '../dependencies/swiper'; import Header from './header...
components/Header/index.js
YongYuH/Ludo
import React from 'react'; import styled from 'styled-components'; import Avatar from './Avatar'; import HeaderLeft from './HeaderLeft'; const HeaderWrapper = styled.div` align-items: center; background-color: #717070; display: flex; height: 40px; position: relative; `; const Header = () => ( <HeaderWrapp...
src/components/Spinner/index.js
trebor/tsomi
// @flow import React from 'react' import { type Element } from 'react' require('./main.css') type SpinnerProps = { className: string, } const Spinner = (props: SpinnerProps): Element<'div'> => React.createElement('div', { className: `spinner ${props.className}` }) export default Spinner
src/svg-icons/maps/restaurant-menu.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRestaurantMenu = (props) => ( <SvgIcon {...props}> <path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2...
example/pages/page/index.js
woshisbb43/coinMessageWechat
import React from 'react'; import { Article, Page } from '../../../build/packages'; import srcArticle from '../article/pic_article.png'; const PageDemo = (props) => ( <Page transition={true} infiniteLoader={true} ptr={false}> <Article> <h1>Page Demo</h1> <section> <h...
source/components/Application.react.js
elliotk/thinkreact-kleiman
// Custom component import React from 'react' var logs = require('../utilities/logsMixin.js') const Section = require('./Section.react.js') const Banner = require('./Banner.react.js') const Header = require('./Header.react.js') const Overview = require('./Overview.react.js') const Bullets = require('./Bullets.react.js'...
examples/counter-1/src/index.js
rerx/rerx
import React from 'react'; import { render, unmountComponentAtNode } from 'react-dom'; import { select, run } from 'rerx/core'; import { Counter } from './Counter'; const mountNode = document.getElementById("root"); const component$ = select(components => components); // Mounting components are observable. component...
src/svg-icons/navigation/close.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationClose = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); NavigationClose = pure(Navig...
src/screen/LogicAnalyser/LogicAnalyser.js
wavicles/fossasia-pslab-apps
import React, { Component } from 'react'; import { connect } from 'react-redux'; import debounce from 'lodash/debounce'; import GraphPanelLayout from '../../components/GraphPanelLayout'; import Graph from './components/Graph'; import ActionButtons from './components/ActionButtons'; import Settings from './components/Se...
src/renderer/app.js
marcus-sa/Venobo
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { AppContainer } from 'react-hot-loader' import { IntlProvider } from './components/react-multilingual' import config from '../config' export default function createApp(store, appState, translations) { const des...
src/svg-icons/content/backspace.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentBackspace = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12...
app/Pages/SettlementViewNew/ReceiptAddress/AddressDetail.js
jd-daojia/DaojiaRN
/* @flow */ import React, { Component } from 'react'; import { View, Text, StyleSheet, Image } from 'react-native'; import SettlePosition from '../../../images/settlement/SettlePosition.png' import AddressUser from './AddressUser' import AddressText from './AddressText' import IconArrow from '../IconArrow' e...
lib/components/narrative/save-trip-button.js
opentripplanner/otp-react-redux
import React from 'react' import { OverlayTrigger, Tooltip } from 'react-bootstrap' import { FormattedMessage, useIntl } from 'react-intl' import { connect } from 'react-redux' import { LinkContainerWithQuery } from '../form/connected-links' import { CREATE_TRIP_PATH } from '../../util/constants' import Icon from '../...
fixtures/dom/src/components/fixtures/input-change-events/RangeKeyboardFixture.js
maxschmeling/react
import React from 'react'; import Fixture from '../../Fixture'; class RangeKeyboardFixture extends React.Component { constructor(props, context) { super(props, context); this.state = { keydownCount: 0, changeCount: 0, }; } componentDidMount() { this.input.addEventListener('keydown'...
app/jsx/gradebook-history/GradebookHistoryApp.js
venturehive/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...
react-flux-mui/js/material-ui/src/svg-icons/content/drafts.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDrafts = (props) => ( <SvgIcon {...props}> <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>...
Console/app/node_modules/rc-notification/es/Notification.js
RisenEsports/RisenEsports.github.io
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/help...
13-styling-css/src/Overlay.js
dtanzer/react-basic-examples
import React from 'react'; import { connect } from 'react-redux'; export class Overlay extends React.Component { render() { const display = this.props.overlay? "block" : "none"; const style = { background: "rgba(0, 0, 0, 0.5)", display: display, position: "absolute", top: 0, b...
src/components/CarCreate.js
brianyamasaki/rideshare
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { carCreate } from '../actions'; import { Card, CardSection, Button } from './common'; import CarForm from './CarForm'; class CarCreate extends Component { onButtonPress() { const { name, seats } = this.props; this.props...
components/APP.js
endziu/game-init
'use strict' import React from 'react' import io from 'socket.io-client' import Header from './parts/Header' import Game from './game/Game' class APP extends React.Component { constructor () { super() this.state = { status: 'disconnected', error: '', currentUser: 'none', currentTeam...
app/containers/TrackPlayer/index.js
sedubois/belong
import React from 'react'; import Relay from 'react-relay'; import ReactPlayer from 'react-player'; import styles from './styles.css'; class TrackPlayer extends React.Component { // eslint-disable-line react/prefer-stateless-function static propTypes = { viewer: React.PropTypes.shape({ Track: React.PropT...
src/components/TransactionTableContainer.js
chatch/stellarexplorer
import React from 'react' import {compose} from 'recompose' import {withPaging} from './shared/Paging' import {withDataFetchingContainer} from './shared/DataFetchingContainer' import {withDataFetchingAllContainer} from './shared/DataFetchingAllContainer' import {isPublicKey} from '../lib/stellar/utils' import {isDefInt...
src/renderer/components/bell-icon.js
sirbrillig/gitnews-menubar
import React from 'react'; export default function BellIcon({ className }) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88.516 88.516" className={className}> <path d="M67.512 36.822C56.11 12.287 50.184 2.97 31.553 3.355c-6.635.137-5.041-4.805-10.1-2.93-5.055 1.876-.717 4.62-5.889 ...
src/components/RegisterForm.js
jamez14/jams-tweeter
import React from 'react'; class RegisterForm extends React.Component { constructor(props) { super(props); } propTypes: { user: React.PropTypes.object.isRequired, errors: React.PropTypes.object.isRequired, onSave: React.PropTypes.func.isRequired, onChange: React.PropTypes.func.isRequired }...
client/node_modules/uu5g03/dist-node/common/lsi-mixin.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import Tools from './tools.js'; import $ from 'jquery'; export const LsiMixin = { //@@viewOn:statics statics: { UU5_Common_LsiMixin: { requiredMixins: ['UU5_Common_BaseMixin'], lsiEvent: Tools.events.lsi } }, //@@viewOff:statics //@@viewOn:propTypes propType...
src/components/Guidelines/index.js
goodjoblife/GoodJobShare
import React from 'react'; import { Section, Wrapper } from 'common/base'; import PageBanner from 'common/PageBanner'; import editorStyles from 'common/Editor.module.css'; import StaticHelmet from 'common/StaticHelmet'; const GuideLines = () => ( <main> <StaticHelmet.Guidelines /> <PageBanner heading="發文留言規則...
client/src/components/landing/components/Testimonials.js
raisedadead/FreeCodeCamp
import PropTypes from 'prop-types'; import React from 'react'; import { Trans, useTranslation } from 'react-i18next'; import emmaImg from '../../../assets/images/landing/Emma.png'; import sarahImg from '../../../assets/images/landing/Sarah.png'; import shawnImg from '../../../assets/images/landing/Shawn.png'; import {...
src/svg-icons/content/add.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAdd = (props) => ( <SvgIcon {...props}> <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/> </SvgIcon> ); ContentAdd = pure(ContentAdd); ContentAdd.displayName = 'ContentAdd'; ContentAdd.muiName = 'SvgIcon...
src/esm/components/structure/cards/reward-card/components/info.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["className", "legend", "value", "fullWidth"]; import React from 'react'; import classNames from 'classnames'; import { Text } from '../../../../typogra...
app/components/Pagination/index.js
54vanya/ru-for-you-front
import React from 'react'; import Page from './Page'; import styled from 'styled-components'; const Wrapper = styled.div` display:flex; flex-wrap:wrap; margin:8px; &>*{ margin:0 8px; } `; const Pagination = ({ pages, page, onClick }) => { const elements = pages ? [] : null; if (pages > 1) { for ...
src/app/_server.js
coltpini/react-demo-site
import React from 'react'; import docTemplate from './HTML.js'; import { renderToString } from 'react-dom/server'; import { match, RouterContext } from 'react-router'; import { Provider } from 'react-redux'; import Helmet from 'react-helmet'; import routes from './routes.js'; import getStore from './store/index.js'; im...
app/javascript/mastodon/features/ui/components/video_modal.js
RobertRence/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...
node_modules/rc-animate/es/ChildrenUtils.js
ZSMingNB/react-news
import React from 'react'; export function toArrayChildren(children) { var ret = []; React.Children.forEach(children, function (child) { ret.push(child); }); return ret; } export function findChildInChildrenByKey(children, key) { var ret = null; if (children) { children.forEach(function (child) { ...
packages/frontend/src/App.js
ehawk61/AngularJSApp
import React from 'react'; import logo from './logo.svg'; import './App.css'; function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/App.js</code> and save to reload. </p> ...
src/modules/chat/chatMain/components/PostConnect.js
Florenz23/sangoo_04
import React from 'react' import { StyleSheet , Text } from 'react-native' const PostConnect = (props) => { return ( <Text> Connect </Text> ) } export default PostConnect
src/svg-icons/av/art-track.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvArtTrack = (props) => ( <SvgIcon {...props}> <path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1...
packages/recon-engine/src/engine/__tests__/__fixtures__/basic-app/src/notes.js
recon-js/recon
/* eslint-disable */ import React from 'react'; import List, {ListItem} from './list'; import {createContainer, query as q} from 'api/recall'; import {Note} from 'api/resources'; function NoteItem({note}) { return ( <ListItem type="grid"> <Avatar src={note.created_by.img} /> <p>{note.content}</p> ...
node_modules/@material-ui/core/es/CardMedia/CardMedia.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import warning from 'warning'; import withStyles from '../styles/withStyles'; ex...
app/scripts/components/soundItem/soundItem.js
bluedaniel/Kakapo-app
import React from 'react'; import { prop } from 'ramda'; import { soundActions } from 'actions/'; import { cx, handleStopPropagation, openLink } from 'utils/'; import './soundItem.css'; export default ({ sound, themes, dispatch }) => { const handleToggle = () => dispatch(soundActions.play(sound)); const handleDel...