path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/app/Auth/Auth.js
harsh376/Hector
import React from 'react'; import LayoutBootstrap from '../containers/LayoutBootstrap/LayoutBootstrap'; import imageUrl from './static/google_signin.png'; export default class Auth extends React.Component { componentDidMount() { if (this.props.enableAuth) { this.props.fetchAccountDetails(); } } re...
src/components/search/SearchResults.js
katima-g33k/blu-react-desktop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Glyphicon, } from 'react-bootstrap'; import i18n from '../../lib/i18n'; import SearchColumns from '../../lib/TableColumns'; import { Spinner, Table } from '../general'; export default class Search extends Component { ...
.history/src/components/InstaCelebs/index_20171001005004.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' const imgMap = { d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg', e: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/12071219_1640349196212432...
src/containers/GoogleBooksPage.js
great-design-and-systems/cataloguing-app
import '../images/search-header.jpg'; import * as headerActions from '../actions/HeaderActions'; import * as actions from '../actions/GoogleBookActions'; import * as alertActions from '../actions/NotificationActions'; import { IFrame, PageBody, PageHeader, ResponsiveButton } from '../components/common/'; import { LAB...
client/components/position-table/PositionTable.js
kanehara/yostock
import React from 'react'; import { PositionSymbol } from './position-row'; import { PositionRow } from "./position-row/PositionRow"; export function PositionTable(props) { const positionRows = props.positions.map(position => { return <PositionRow position = { position } key = { position.symbol }/> }) retu...
src/svg-icons/editor/space-bar.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; EditorSpaceBar.muiName ...
src/route/dashboard/MpUserStat.js
simors/yjbAdmin
/** * Created by yangyang on 2017/10/30. */ import React from 'react' import {connect} from 'react-redux' import {Row, Col, Card} from 'antd' import {dashboardAction, dashboardSelector} from './redux' class MpUserStat extends React.PureComponent { constructor(props) { super(props) } componentWillMount() {...
_docs_website/pages/index.js
danibram/mocker-data-generator
import Head from 'next/head' import Router from 'next/router' import React from 'react' import Doc from '../components/Doc' export default class Index extends React.Component { state = { ready: false } componentDidMount() { Router.onRouteChangeComplete = () => this.setState({ ready: true }...
js/TopNav.react.js
Sable/McLab-Web
import AT from './constants/AT'; import classnames from 'classnames'; import Dispatcher from './Dispatcher'; import KindAnalysisActions from './actions/KindAnalysisActions'; import OnLoadActions from './actions/OnLoadActions'; import React from 'react'; const {PropTypes, Component} = React; const fortranOnClick = fun...
src/components/MyArticlePreview.js
Seeingu/medium-demo
/* 用于article 和 favorited articles */ import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { notify, Modal } from 'see-common-components'; import { connect } from 'react-redux'; import { unLikeArticle, setCurrSlug, updateMyArticle, deleteMyArticle } fro...
src/index.js
lancespears/profile-maker
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { combineReducers, createStore, applyMiddleware, compose } from 'redux'; import { Router, browserHistory } from 'react-router'; import thunk from 'redux-thunk'; import promise from 'redux-promise'; import createL...
examples/using-preact/pages/about.js
giacomorebonato/next.js
import React from 'react' export default () => ( <div>About us</div> )
common/route/AdminRoutes.js
ebertmi/webbox
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; import AdminApp from '../containers/admin/AdminApp'; import UserOverview from '../containers/admin/UserOverview'; import CourseOverview from '../containers/admin/CourseOverview'; import LogOverview from '../containers/admin/LogOverv...
lib/site/layout/component.js
democracy-os-fr/democracyos
import React from 'react' import Header from 'lib/header/component' export default ({ children }) => ( <div id='outer-layout'> <Header /> {children} </div> )
app/containers/HomePage.js
jkup/starter-kit
import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
react-dev/pages/default.js
DeryLiu/DeryLiu.github.io
import React, { Component } from 'react'; export default class Default extends Component { render() { return ( <html lang="en"> {'{% include head.html %}'} <body> { '{{ content }}'} <div id="root" /> </body> <script src="{{site.url}}/assets/js/b...
docs/src/app/components/pages/components/TextField/ExampleError.js
spiermar/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleError = () => ( <div> <TextField hintText="Hint Text" errorText="This field is required" /><br /> <TextField hintText="Hint Text" errorText="The error text can be as long as you want, i...
public/js/components/profile/visitor/activityfeed/activityListComp.react.js
MadushikaPerera/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import CardMedia from 'material-ui/lib/card/card-media'; import CardText from 'material-ui/lib/card/card-text'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/...
src/svg-icons/maps/local-hotel.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsLocalHotel = pu...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js
mironiasty/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
javascript/app.js
kdoran/moriana-react
// starting point for the frontend import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import store from 'store/store' import { parseHash } from 'utils/routing' import {initExpiryWatcher} from 'utils/expiry-watcher' import SiteHeader from 'containers/site-header' import Shi...
app/javascript/mastodon/features/account_timeline/index.js
ebihara99999/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount, fetchAccountTimeline, expandAccountTimeline, } from '../../actions/accounts'; import StatusList from '../../components/status_lis...
pages/_error.js
alivelee/NextTech
import React from 'react' import { OAUTH_USER_URL,USER_API_KEY,REDIRECT_URL } from '../utility/api' import { AnimatedButton } from '../styles/components/Button'; import { Wrapper,Info } from '../styles/components/Error'; import { Heading } from '../styles/components/Headings'; export default class Error extends React.C...
frontend/src/components/icons/Snapshot.js
webrecorder/webrecorder
import React from 'react'; function Snapshot() { return ( <svg xmlns="http://www.w3.org/2000/svg" id="svg2" style={{ enableBackground: 'new 0 0 40 40' }} viewBox="0 0 40 40" y="0px" x="0px" version="1.1"> <g id="Layer_1"> <g id="g5"> <path id="path7" d="m 35.7,3.4 -25.2,0 c -1,0 -1.8,0.8 ...
src/svg-icons/editor/insert-link.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3...
react-flux-mui/js/material-ui/src/svg-icons/av/sort-by-alpha.js
pbogdan/react-flux-mui
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/browser/app/Logo.js
redcom/doctori-romani-in-berlin
// @flow import React from 'react'; import { Box, Image } from '../../common/components'; import { Link } from '../components'; const getWebsiteLogo = () => require('./doctori-romani-in-berlin.jpg'); const clipPathStyle = () => ({ 'clip-path': 'polygon(3% 5px, 100% 0%, 92% 60%, 62% 75%, 46% 110%, 50% 82%, 0% 75%)',...
src/windowFocus.js
gabrielbull/react-desktop
import { windowIsFocused } from './monitor'; import React, { Component } from 'react'; function WindowFocus(options, ComposedComponent) { return class extends Component { constructor() { super(); this.state = { isWindowFocused: windowIsFocused() }; } componentDidMount() { ...
packages/example-react/client.js
RafalFilipek/fela
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-fela' import App from './app' import createRenderer from './renderer' const renderer = createRenderer() render( <Provider renderer={renderer}> <App /> </Provider>, document.getElementById('app') )
node_modules/react-images/src/components/Icon.js
ed1d1a8d/macweb
import PropTypes from 'prop-types'; import React from 'react'; import icons from '../icons'; const Icon = ({ fill, type, ...props }) => { const icon = icons[type]; return ( <span dangerouslySetInnerHTML={{ __html: icon(fill) }} {...props} /> ); }; Icon.propTypes = { fill: PropTypes.string, type: PropT...
src/frontend/screens/Invoice/not-found.js
Koleso/invoicer
import React from 'react'; // Components import { Grid, GridColumn } from 'components/Grid'; import Screen from 'components/Screen'; import Box from 'components/Box'; import EmptyState from 'components/EmptyState'; const Invoice = () => ( <Screen title="Faktury" pageTitle="Faktura nenalezena"> <Grid> <GridColum...
src/js/components/Home/partial/MicroservicesFoundationKit.js
ajainsyn/project
import React from 'react'; import microservices from '../../../../assets/images/microservices.png'; const MicroservicesFoundationKit = () => ( <section className="section" id="microservices"> <div className="container"> <div className="row align-items-center"> <div className="col-sm...
packages/react-cookie-demo/src/server.js
eXon/react-cookie
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { CookiesProvider } from 'react-cookie'; import Html from './components/Html'; import App from './components/App'; export default function middleware(req, res) { const markup = ReactDOMServer.renderToString( <CookiesProvider cookie...
src/routes/home/index.js
lassegit/gitdude.com
import React from 'react'; import Home from './Home'; import Dashboard from './Dashboard'; import Layout from '../../components/Layout'; export default { path: ['/', '/frontpage'], async action({ fetch, isAuthenticated, user, path }) { if (isAuthenticated && path !== '/frontpage') { const resp = await f...
src/components/FloatingActionButton/FloatingActionButton.js
markdyousef/zen-editor
// @flow import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import styled from 'styled-components'; import ImageButton from '../ImageButton'; import EmbedButton from '../EmbedButton'; import { getSelectedBlockNode } from '../../utils/display'; import Icon from '../../icons/plus'; import D...
src/js/components/icons/base/DivideFour.js
codeswan/grommet
import React from 'react'; import Columns from './Columns'; export default (props) => { console.warn( 'DivideFour has been renamed to Columns.' + ' Plese update your import statement.' ); return <Columns {...props} />; };
docs/client/components/pages/Mention/CustomComponentMentionEditor/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; // eslint-disable-line import/no-unresolved import createMentionPlugin, { defaultSuggestionsFilter } from 'draft-js-mention-plugin'; // eslint-disable-line import/no-unresolved import editorSt...
client/modules/App/components/Footer/Footer.js
sethkaufee/TherapyApp
import React from 'react'; import { FormattedMessage } from 'react-intl'; // Import Style import styles from './Footer.css'; // Import Images import bg from '../../header-bk.png'; export function Footer() { return ( <div style={{ background: `#FFF url(${bg}) center` }} className={styles.footer}> <p>&copy...
actor-apps/app-web/src/app/components/common/ConnectionState.react.js
hzy87email/actor-platform
import React from 'react'; import classnames from 'classnames'; import ConnectionStateStore from 'stores/ConnectionStateStore'; const getStateFromStore = () => { return { connectionState: ConnectionStateStore.getState() }; }; class ConnectionState extends React.Component { constructor(props) { super(pro...
edit/reactSample/react-sample/src/components/edit.js
WhenHub/dev-samples
import React, { Component } from 'react'; import { Form, Text, Textarea } from 'react-form'; import { Link } from 'react-router-dom' class Edit extends Component { constructor(props) { super(props); this.state = { whencast: { name: "", ...
frontend/advocate/samename/Container.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import {List} from 'immutable'; import {Alert} from 'react-bootstrap'; import {connect} from 'react-redux'; import {If} from '../../util'; import {RichText, RouterLink} from '../../containers'; import {ADVOCATE_DETAIL} from '../../routes'; import {getIds} f...
src/js/components/Title.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Box from './Box'; import Intl from '../utils/Intl'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSC...
app/js/profiles/components/PhotoModal.js
blockstack/blockstack-browser
import React from 'react' import PropTypes from 'prop-types' import Modal from 'react-modal' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import CameraIcon from 'mdi-react/CameraIcon' import CloudUploadIcon from 'mdi-react/CloudUploadIcon' import CheckIcon from 'mdi-react/CheckIcon' ...
node_modules/react-router/es/IndexLink.js
Snatch-M/fesCalendar
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/routes.js
danieloliveira079/healthy-life-app
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, Widgets, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (store) ...
app/javascript/scoreboard/index.js
jbhannah/zenpong
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './components/App' import reducer from './reducers' const store = createStore(reducer) document.addEventListener("DOMContentLoaded", e => { ReactDOM.render( <Prov...
app/jsx/shared/helpers/SelectPosition.js
djbender/canvas-lms
/* * Copyright (C) 2019 - 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/components/Example/stories/index.js
hwclass/fe-as-microservices
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import Example from './'; storiesOf('Example', module) .add('with text', () => <div><span>Example Component</span></div>)
SpinningIcon.js
rturk/react-native-fontawesome
import React, { Component } from 'react'; import { Animated, Easing } from 'react-native'; import Icon from './Icon'; class SpinningIcon extends Component { spinValue = new Animated.Value(0); componentDidMount(){ this.spin(); }; spin = () => { this.spinValue.setValue(0); An...
docs/src/app/components/pages/customization/StylesOverridingInlineExample.js
pancho111203/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; const StylesOverridingInlineExample = () => ( <Checkbox name="StylesOverridingInlineExample" label="Checked the mail" style={{ width: '50%', margin: '0 auto', border: '2px solid #FF9800', backgroundColor: '#ff...
src/entypo/GithubWithCircle.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--GithubWithCircle'; let EntypoGithubWithCircle = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10.015,9.949c0,0-0.01,0-0.015,0H9.985c-1.191,0-2.24-0.303-2.861,0.268c-0.371,0.3...
client/components/fields/ConfirmPasswordField.js
yacoma/auth-boilerplate
import React from 'react' import { connect } from '@cerebral/react' import { state, props, signal } from 'cerebral/tags' import { field } from '@cerebral/forms' import { Form, Input, Icon, Label } from 'semantic-ui-react' import { hasError, showError } from './utils' export default connect( { field: field(state`...
examples/counter/index.js
boneyao/redux
import React from 'react'; import App from './containers/App'; React.render( <App />, document.getElementById('root') );
analysis/warlockdestruction/src/modules/talents/Inferno.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import Statistic from 'parser/ui/Statistic'; import BoringSpellValueText from 'parser/ui/Bori...
src/components/RefreshIcon/index.js
emadalam/mesmerized
import React from 'react'; import MdRefresh from 'react-icons/lib/md/refresh'; import IconButton from 'react-toolbox/lib/button/IconButton'; import * as Actions from '@actions'; const RefreshIcon = () => ( <div className="control__icon"> <IconButton icon={ <MdRefresh /> } inverse={ ...
blueocean-material-icons/src/js/components/svg-icons/action/bookmark-border.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionBookmarkBorder = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionBookmarkBorder.displayName = 'ActionBookmarkBorder'; ActionBookma...
src/widgets/modalChildren/ToggleSelector.js
sussol/mobile
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import React from 'react'; import PropTypes from 'prop-types'; import { ToggleBar } from '../ToggleBar'; import globalStyles from '../../globalStyles'; /** * A selector based on |ToggleBar|, will highlight currently selected. * * @prop {array} ...
client/src/components/settings/SectionHeader.js
otavioarc/freeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import FullWidthRow from '../helpers/FullWidthRow'; const propTypes = { children: PropTypes.oneOfType([ PropTypes.string, PropTypes.element, PropTypes.node ]) }; function SectionHeader({ children }) { return ( <FullWidthRow> <...
components/Balance.js
rbardini/bandeco
import React from 'react' import {connectToStores} from 'fluxible-addons-react' import getBalance from '../actions/getBalance' import BalanceStore, {STATUS} from '../stores/BalanceStore' class Balance extends React.Component { constructor (props, context) { super(props, context) this.state = { usernam...
modules/experimental/AsyncProps.js
Jastrzebowski/react-router
import React from 'react'; import invariant from 'invariant'; var { func, array, shape, object } = React.PropTypes; var contextTypes = { asyncProps: shape({ reloadComponent: func, propsArray: array, componentsArray: array }) }; var _serverPropsArray = null; function setServerPropsArray(array) { inv...
docs/src/app/pages/components/Buttons/ExampleButtonConfirmationLoader.js
GetAmbassador/react-ions
import React from 'react' import ButtonConfirmation from 'react-ions/lib/components/Button/ButtonConfirmation' import style from './style' class ExampleButtonConfirmationLoader extends React.Component { constructor(props) { super(props) } state = { loading: false } handleConfirmation = event => { ...
src/components/Beta.js
kyledavid/rock-genius
import PropTypes from 'prop-types' import React from 'react' import Boulders from '../utils/boulders.json' const Beta = props => { if (props.routeName && props.boulderData["the-pearl"].routes[props.routeName].beta) { return (<div className="beta" id="beta"> <h3>Problem Beta</h3> <p> {props.bo...
server/server.js
Investnaira/in
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
examples/custom-server-fastify/pages/index.js
giacomorebonato/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
node_modules/react-native-vector-icons/lib/tab-bar-item-ios.js
jasonlarue/react-native-flashcards
import isEqual from 'lodash/isEqual'; import pick from 'lodash/pick'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { TabBarIOS } from './react-native'; export default function createTabBarItemIOSComponent( IconNamePropType, getImageSource ) { return class TabBarItemIOS ext...
src/svg-icons/action/date-range.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDateRange = (props) => ( <SvgIcon {...props}> <path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0...
src/pages/index.js
holdonnn/holdonnn.github.io
import React from 'react' import { graphql } from 'gatsby' import Layout from '../component/Layout' import PostList from '../component/PostList' class IndexPage extends React.Component { render() { return ( <Layout> <PostList markdownNodes={this.props.data.allMarkdownRemark.edges.map( ...
templates/rubix/demo/src/routes/Social.js
jeffthemaximum/jeffline
import React from 'react'; import { Row, Col, Icon, Grid, Panel, Image, Button, PanelBody, PanelHeader, PanelFooter, FormControl, PanelContainer, } from '@sketchpixy/rubix'; class SocialBanner extends React.Component { constructor(props) { super(props); this.state = { follow: '...
src/svg-icons/image/panorama.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanorama = (props) => ( <SvgIcon {...props}> <path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePanora...
src/components/Header.js
soyguijarro/magic-web
import React from 'react'; import { Link } from 'react-router'; import Icon from './Icon'; import { APP, EXPERIMENT_IDS_BY_ORDER } from '../constants'; const Header = ({ experimentId }) => { const currentIndex = EXPERIMENT_IDS_BY_ORDER.indexOf(experimentId); const lastIndex = EXPERIMENT_IDS_BY_ORDER.length; cons...
data-viz/react/roughlike-dungeon-crawler-game/src/HudContainer.js
mkermani144/freecodecamp-projects
import React, { Component } from 'react'; import Hud from './Hud'; class HudContainer extends Component { render() { return ( <Hud health={this.props.health} damage={this.props.damage} level={this.props.level} xp={this.props.xp} dungeon={this.props.dungeon} /> ...
app/frontend/components/RegisterForm/RegisterForm.js
mpakus/sinum
import React from 'react'; import PropTypes from 'prop-types'; import axios from 'axios'; class RegisterForm extends React.Component { state = { submitBtnEnabled: true }; handleSubmit = (e) => { e.preventDefault(); this.setState({ submitBtnEnabled: false }); console.log(this.props.registration_url); ...
app/javascript/mastodon/features/status/index.js
kagucho/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchStatus } from '../../actions/statuses'; import MissingIndicator from '../../components/missing_indicator'; import DetailedStatus from './compone...
fixtures/packaging/systemjs-builder/prod/input.js
tomocchino/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
client-web/client-web/src/components/Loader.js
ppsari/final
import React from 'react' export default class Transaction extends React.Component { render () { return ( <div className="flex-loader"> <div className="loader"></div> </div> ) } }
Realization/frontend/czechidm-core/src/components/advanced/RoleGuaranteeInfo/RoleGuaranteeInfo.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // import * as Basic from '../../basic'; import { RoleGuaranteeManager, SecurityManager } from '../../../redux'; import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo'; import EntityInfo from '../EntityInfo/...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js
picter/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import aFileWithExtUnknown from './assets/aFileWithExt.unknown'; const text = aFileWithExtUnknown.includes('...
packages/lightning-core/settings/index.js
DaReaper/lightning-app
import React from 'react' import _ from 'lodash' import reactCSS from 'reactcss' import { connect } from 'react-redux' import { store } from 'lightning-store' import { remote } from 'electron' import { Box, Text } from 'lightning-components' import { Head, Page } from '../common' import { InfiniteScroll } from '../comm...
src/containers/CreditsContainer.js
ZephyrPlace/criminal
import React, { Component } from 'react'; /** * * * @class CreditsContainer * @extends {Component} */ class CreditsContainer extends Component { componentDidMount = () => { this.props.setScreen("Créditos", 4); } render() { return ( <section> <ul> ...
src/svg-icons/action/restore.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestore = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
app/containers/LanguageProvider/index.js
tarioto/Portfolio
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
renderer/components/Home/Home.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Redirect, Route, Switch, withRouter } from 'react-router-dom' import { Box, Flex } from 'rebass/styled-components' import { Bar, MainContent, Panel, Sidebar } from 'components/UI' import ZapLogo from 'components/Icon/ZapLogo' import CreateWalletButto...
src/stories/TransitionWithOptions.js
chenqingspring/react-lottie
import React from 'react'; import Lottie from '../index'; import * as animationDataA from './TwitterHeart.json'; import * as animationDataB from './beating-heart.json'; /** * TransitionWithOptions: demonstrates how you can switch to a * new animation with different options. For example, you can start * with a loope...
components/ui/customtable/actions/EditAction.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; class EditAction extends React.Component { parseHref() { const { action, data } = this.props; const { id } = data; const { path } = action; return path.replace(':id', id); } render() { return ( <span> <a href={this...
fields/types/date/DateColumn.js
frontyard/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obj...
src/index.js
wpmk2/node-api-server
import './styles/main.scss'; import React from 'react'; import Router from 'react-router'; import routes from './config/routes'; Router.run(routes, function(Handler) { React.render(<Handler />, document.getElementById('app')); });
src/components/About/Repos.js
taken1994/big-demo
import React, { Component } from 'react'; import map from 'lodash/map'; class Repos extends Component { render() { const repoList = map(this.props.repos, (repo) => { return ( <li key={repo.id}> <div> <p className='name'>{repo.name}</p> <p className='lang'>{repo.la...
app/containers/Sign/index.js
coocooooo/webapp
/** * SignupPage * * Email Sign Up */ import React from 'react'; // components import { Grid, Container } from 'semantic-ui-react'; import SubMenu from './SubMenu.js'; function Sign(props) { return ( <Grid columns="equal"> <Grid.Row> <Grid.Column only="computer"> </Grid.Column> ...
src/scenes/home/jobs/featuredJob/featuredJob.js
OperationCode/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import FontAwesomeIcon from '@fortawesome/react-fontawesome'; import { faMapMarkerAlt, faBuilding, faCloudUploadAlt } from '@fortawesome/fontawesome-free-solid'; import OutboundLink from 'shared/components/outboundLink/outboundLink'; import styles from './f...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
ThibWeb/react-router
import React from 'react'; class Assignment extends React.Component { render () { var { courseId, assignmentId } = this.props.params; var { title, body } = COURSES[courseId].assignments[assignmentId] return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } export d...
src/components/Chat/Markup/Emoji.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import Tooltip from '@mui/material/Tooltip'; import emojiUrl from '../../../utils/emojiUrl'; const shortcode = (name) => `:${name}:`; function Emoji({ name, image, isCustom }) { return ( <Tooltip title={shortcode(name)} placement="top"> <span ...
src/client/lib/validation.js
youprofit/este
/* Simple serial sync/async chriso/validator.js validation wrapper with promises. */ import Promise from 'bluebird'; import React from 'react'; import validator from 'validator'; export class ValidationError extends Error { constructor(message, prop) { super(); this.message = message; this.prop = prop;...
src/components/Grid/Row.js
aos2006/tesDeploy
import React from 'react'; import { Row } from 'react-flexbox-grid'; export default props => <Row {...props} />;
react/reactRedux/redux-master/examples/real-world/src/components/Repo.js
huxinmin/PracticeMakesPerfect
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' const Repo = ({ repo, owner }) => { const { login } = owner const { name, description } = repo return ( <div className="Repo"> <h3> <Link to={`/${login}/${name}`}> {name} </Link> ...
js/BaseComponents/BlockIcon.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
node_modules/material-ui/src/muiThemeable.js
aykutyaman/meteor1.3-react-flowrouter-demo
import React from 'react'; import DefaultRawTheme from './styles/raw-themes/light-raw-theme'; import ThemeManager from './styles/theme-manager'; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; } export default function muiThemeable(WrappedComp...
src/components/Page/Page.js
jtiscione/redux-chess
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/js/components/icons/base/PlatformCloudlinux.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter-tilt-shift.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilterTiltShift = (props) => ( <SvgIcon {...props}> <path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62l1.42-1.43zM19.93 11h2.02c-.2-2.0...
react-flux-mui/js/material-ui/src/svg-icons/file/attachment.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileAttachment = (props) => ( <SvgIcon {...props}> <path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-....