path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
node_modules/react-icons/ti/point-of-interest.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiPointOfInterest = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m27.5 18.3c3.2 0 5.8-2.6 5.8-5.8s-2.6-5.8-5.8-5.8-5.8 2.6-5.8 5.8v2.5h-3.4v-2.5c0-3.2-2.6-5.8-5.8-5.8s-5.8 2.6-5.8 5.8 2.6 5.8 5.8 5.8h2.5v3.4h-2.5c-3.2 0-5.8...
[4]. Project/DianShang/index.android.js
knightsj/RN_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; var Main = require('./Component/Main/SJMain') export default class DianShang extends Component { render() { ...
src/Info/index.js
NERC-CEH/irecord-app
import React from 'react'; import { Route } from 'react-router-dom'; import appModel from 'app_model'; import userModel from 'user_model'; import savedSamples from 'saved_samples'; import Credits from './Credits'; import About from './About'; import Menu from './Menu'; import Help from './Help'; import BRCApproved from...
admin/client/App/elemental/DropdownButton/index.js
ONode/keystone
/* eslint quote-props: ["error", "as-needed"] */ import React from 'react'; import { css } from 'glamor'; import Button from '../Button'; function DropdownButton ({ children, ...props }) { return ( <Button {...props}> {children} <span className={css(classes.arrow)} /> </Button> ); }; // NOTE // 1: take a...
src/routes/error/index.js
jackygrahamez/react-starter-kit
/** * 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 ErrorPage from './Err...
src/svg-icons/action/assignment-ind.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentInd = (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-7 0c.55 0 1 .45 1 ...
docs/src/app/components/pages/components/Badge/ExampleContent.js
mmrtnz/material-ui
import React from 'react'; import Badge from 'material-ui/Badge'; import IconButton from 'material-ui/IconButton'; import UploadIcon from 'material-ui/svg-icons/file/cloud-upload'; import FolderIcon from 'material-ui/svg-icons/file/folder-open'; const BadgeExampleContent = () => ( <div> <Badge badgeContent...
app/components/ProgressBar/index.js
Third9/mark-one
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
packages/icons/src/md/notification/PhoneForwarded.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPhoneForwarded(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M34 24l10-10L34 4v6h-8v8h8v6zm4 9c-2.49 0-4.89-.4-7.14-1.14-.69-.22-1.48-.06-2.03.49l-4.4 4.41a30.171 30.171 0 0 1-13.18-13.17l4.4-4.41c.55-.5...
client/components/data/Growth.stories.js
Sing-Li/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import Growth from './Growth'; export default { title: 'components/data/Growth', component: Growth, decorators: [(fn) => <Box children={fn()} margin='x16' />], }; export const Positive = () => <Growth>{3}</Growth>; export const Zero = () =>...
src/containers/sampleInputsContainer.js
Amit-Kolambikar/Maverick
import React from 'react'; export default class sampleInputsContainer extends React.Component { constructor(props) { super(props); } fillInput(value) { this.props.fillInput(value.target.textContent); } render() { const sampleInput = this.props.config.sampleInput; const elements = sampleInput...
app/assets/js/app.js
decode-wiki-game/wiki-game
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, IndexRoute } from 'react-router' import App from './components/App'; import Pregame from './components/Pregame'; import Endgame from './components/Endgame'; import Game from './components/Game'; imp...
lib/components/ErrorPage.js
jekrb/filepizza
import ErrorStore from '../stores/ErrorStore' import React from 'react' import Spinner from './Spinner' export default class ErrorPage extends React.Component { constructor() { super() this.state = ErrorStore.getState() this._onChange = () => { this.setState(ErrorStore.getState()) } } co...
src/components/comment_list.js
AikChun/react-redux-testing
import React, { Component } from 'react'; import { connect } from 'react-redux'; class CommentList extends Component { constructor(props) { super(props); } render() { const commentList = this.props.comments.map(comment => { return (<li key={ comment }>{ comment }</li>); }); return( <ul className="comment-...
docs/src/_bilprospekt_searchable_select_component.js
Bilprospekt/bilprospekt-ui
import React from 'react'; import _ from 'underscore'; import {SearchableSelect} from 'bilprospekt-ui'; const SearchableSelectDoc = React.createClass({ onSave(a) { console.log('save', a); }, getInitialState() { return { search: '', }; }, _onChange(value) { ...
src/components/NotFoundPage.js
akataz/theSite
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
src/svg-icons/communication/invert-colors-off.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationInvertColorsOff = (props) => ( <SvgIcon {...props}> <path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5...
src/FingeringChart.js
bwasty/ewi
import React, { Component } from 'react'; import { OverlayTrigger, Tooltip } from 'react-bootstrap' import { prettyAccidental, adjustOctave } from './Util' import { isStandardFingering } from './Fingering' export default class FingeringChart extends Component { constructor() { super() this.state = { hovered...
node_modules/react-bootstrap/es/PagerItem.js
lucketta/got-quote-generator
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/MediaHeading.js
jmanday/Master
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/async-component.js
aspyrx/audiovisual
/** * Implements a React component for wrapping functions that asynchronously load * React components. * * @module src/async-component */ import React from 'react'; /** * Callback for the asynchronously-fetched React component. * * @callback getComponentCB * @param {Object} module - The component's module. ...
client/src/components/Question.js
blusclips/zonaster
import React, { Component } from 'react'; import {Header, Button, Title, Left, Right} from 'native-base'; import Icon from 'react-native-vector-icons/FontAwesome'; import {action, observable} from 'mobx'; import {observer} from 'mobx-react/native'; import {autobind} from 'core-decorators'; @observer @autobind export d...
js/server/routes/testRoutes.js
mitel/rnative-test1
/** * Created by mitel on 01/05/15. */ /*eslint-disable*/ var FalcorServer = require('falcor-hapi'); var Router = require('falcor-router'); // import React from 'react'; module.exports = [ { method: 'GET', path: '/', handler: function (request, reply) { var response = reply...
src/components/ErrorLoggerView.js
IUnknown68/karma-live-reporter
//============================================================================== import React, { Component } from 'react'; import attachListener from 'attachListener'; import autoScroll from 'autoScroll'; import { BROWSER_ERROR, BROWSER_START } from 'messages'; //=======================================================...
app/javascript/mastodon/features/ui/components/onboarding_modal.js
mecab/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Permalink from '../../../components/permalink'; import TransitionMotion from...
src/components/helpers/difficulty.js
serlo-org/serlo-abc
import React from 'react'; export const createWithDifficulty = generateDifficulty => C => { const difficulty = generateDifficulty(); const WithDifficultyComponent = props => ( <C {...props} difficulty={difficulty} /> ); return WithDifficultyComponent; }; // TODO: fancy logic const difficultyGenerator = ...
src/parser/shared/modules/items/bfa/raids/azsharaseternalpalace/BloodthirstyUrchin.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import ItemHealingDone from 'interface/ItemHealing...
public/js/components/suggestions/Suggestion.react.js
rajikaimal/Coupley
import React from 'react'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Paper from 'material-ui/lib/paper'; import GridList from 'material-ui/lib/grid-list/grid-list'; import GridTile from 'material-ui/lib/...
lib/editor/components/flows/NodeInFlow.js
jirokun/survey-designer-js
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { DragSource, DropTarget } from 'react-dnd'; import { DND_NODE } from '../../../constants/dnd'; import * as Actions from '../../actions'; /** * Flowの中に描画される各No...
src/routes/Parties/Parties.js
ziedAb/PVMourakiboun
/** * 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 withStyles from 'isom...
src/main.js
RnbWd/lrload-chronic
import React from 'react' import App from './components/app' window.onload = () => { React.render(<App />, document.getElementById('app')) }
src/resolve-mixin.js
Brogency/baobab-react-resolver
import React from 'react'; import _ from 'lodash'; /* [ { cursor: [required] cursor, service: [required] Function: which returns promise, alwaysLoad: [optional, default=false] Boolean: always load data via promise call, initialData: [optional, default=null] Any, merge...
examples/transitions/app.js
andreftavares/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link, History, Lifecycle } from 'react-router' const history = useBasename(createHistory)({ basename: '/transitions' }) const App = React.createClass({ render() { return ( <div> <ul> ...
examples/counter/containers/App.js
Creamov/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
src/AppContainer.dev.js
gaearon/react-hot-loader
import React from 'react'; import PropTypes from 'prop-types'; import defaultPolyfill, { polyfill } from 'react-lifecycles-compat'; import logger from './logger'; import { get as getGeneration, hotComparisonOpen } from './global/generation'; import configuration from './configuration'; import { EmptyErrorPlaceholder, l...
src/svg-icons/action/class.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionClass = (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> ); ActionClass = pure(ActionClass);...
docs/src/NotFoundPage.js
yyssc/ssc-grid
import React from 'react'; import createReactClass from 'create-react-class'; import { addLocaleData, IntlProvider } from 'react-intl'; import en from 'react-intl/locale-data/en'; import fr from 'react-intl/locale-data/fr'; import zh from 'react-intl/locale-data/zh'; import NavMain from './NavMain'; import PageHeader...
docs/src/components/Author/index.js
jpuri/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import './styles.css'; export default class Demo1 extends Component { render() { return ( <div className="author-root"> I am <a target="_blank" href="https://twitter.com/jyopur" rel="noopener noreferrer">Jyoti Puri</a>, software developer base...
src/components/SearchComponentMat.js
sani-banani/photo-location
'use strict'; import React from 'react'; import Actions from '../actions/Action'; import appStore from '../stores/AppStore'; import AutoComplete from 'material-ui/lib/auto-complete'; import MapsPlace from 'material-ui/lib/svg-icons/maps/place'; import Search from 'material-ui/lib/svg-icons/action/search'; import Avata...
client/components/Logo.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import Logo from './Logo'; export default { title: 'components/Logo', component: Logo, }; export const AsPlaceholder = () => <Logo />;
docs/app/Examples/elements/Reveal/States/RevealExampleActive.js
vageeshb/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleActive = () => ( <Reveal active animated='move'> <Reveal.Content visible> <Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> ...
src/svg-icons/av/music-video.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMusicVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0...
packages/showcase/axes/empty-chart.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
docs/src/app/components/pages/components/IconMenu/ExampleNested.js
owencm/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import Divider from 'material-ui/Divider'; import Download from 'material-ui/svg-icons/file/file-download'; import ArrowDropRight from 'material-ui/svg-ic...
src/sentry/static/sentry/app/views/settings/components/forms/field/fieldDescription.js
ifduyue/sentry
import React from 'react'; import styled, {css} from 'react-emotion'; import space from 'app/styles/space'; const inlineStyle = p => p.inline ? css` width: 50%; padding-right: 10px; flex-shrink: 0; ` : css` margin-bottom: ${space(1)}; `; const FieldDescription = ...
app/javascript/mastodon/features/ui/components/boost_modal.js
pso2club/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; import StatusContent from '../../../components/status_content'; import Av...
java/socnet/ui/js/components/app.js
vy-nguyen/tvntd
import React from 'react' export default class App extends React.Component{ render(){ return( <div> <h1 className="title">Hi world</h1> <p>If you see this, you're ready to get started with React + Reflux + Webpack :)</p> <p>Have you read the <a href="https://github.com/codeocelot/re...
src/components/Games.js
Breta01/MemoryKing
import React from 'react'; import Gamecard from './Gamecard'; var defaultGames = [ { title: "Numbers", desc: "Description of Numbers game", image: "./src/games/img/cards.jpg" }, { title: "Cards", desc: "Description of Cards game", image: "./src/games/img/cards.jpg" } ]; var games = []; const Games = R...
packages/react-examples/src/pages/zoom/index.js
ustbhuangyi/better-scroll
import React from 'react' import './index.styl' const Zoom = (props) => <>{props.children}</> export default Zoom
frontend/src/Components/Form/MovieMonitoredSelectInput.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import translate from 'Utilities/String/translate'; import SelectInput from './SelectInput'; const monitorTypesOptions = [ { key: 'true', value: translate('Yes') }, { key: 'false', value: translate('No') } ]; function MovieMonitoredSelectInput(props) ...
src/routes/SalesView/components/SalesView.js
sohamnakhare/Market-Movement-Visualization
import React from 'react'; import SalesMapView from './SalesMapView'; var citymap = { AB: { center: {lat: 33.976168, lng: -118.167642}, population: 3200, destinations: [ { "lat": 49.210623, "lng": -123.099183 }, { "lat": 43.336616, "lng": -79.799835 }, { "lat":...
react/features/unsupported-browser/components/NoMobileApp.js
KalinduDN/kalindudn.github.io
/* @flow */ import React, { Component } from 'react'; import HideNotificationBarStyle from './HideNotificationBarStyle'; declare var interfaceConfig: Object; /** * React component representing no mobile app page. * * @class NoMobileApp */ export default class NoMobileApp extends Component { /** * Rende...
examples/passing-props-to-children/app.js
samidarko/react-router
import React from 'react'; import { Router, Route, Link, History } from 'react-router'; var App = React.createClass({ mixins: [ History ], getInitialState() { return { tacos: [ { name: 'duck confit' }, { name: 'carne asada' }, { name: 'shrimp' } ] }; }, addTaco() {...
src/images/IconWhimsical.js
benjaminmodayil/modayilme
import React from 'react'; export default function Icon({ width, height }) { return ( <svg width={width} height={height}> <path fill="#6B0FB5" fillRule="evenodd" d="M.169 14.514c.863-7.455 6.61-13.302 13.958-14.2 2.527-.314 5.116 0 7.49.89 4.53 1.715 8.052 5.37 9.564 9.924 1.13 3.41...
src/views/molecules/labelsList/labelsList.js
Metaburn/doocrate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { I18n } from 'react-i18next'; import './labelsList.css'; import Label from 'src/views/atoms/label'; class LabelsList extends Component { constructor() { super(...arguments); this.state = {}; } render() { if (!this...
test/test-init.js
toddlemoine/tasks
import chai, { expect, assert } from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; import testdom from 'testdom'; import React from 'react'; chai.use(sinonChai); global.expect = expect; global.assert = assert; global.sinon = sinon; global.__DEV__ = true; testdom('<!doctype html><html><bo...
node_modules/semantic-ui-react/src/modules/Popup/PopupHeader.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A PopupHeader displays a header in a Popover. */ export default function PopupHeader(props) { const...
src/utils/infoFormatHelper.js
kristyjy/battleplan
import React from 'react'; import { Table, CardText } from 'reactstrap'; export function getTypeString(creature) { let type = creature.size + ' ' + creature.type; type = creature.subtype ? type + ' (' + creature.subtype + ')' : type; return type + ', ' + creature.alignment; } export function getModifierFromAbil...
app/javascript/mastodon/features/ui/components/columns_area.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import TabsBa...
app/components/CardPadded/index.js
tqn/tqn.github.io
/** * * CardPadded * */ import React from 'react'; import { Paper } from 'material-ui'; import styles from './styles.css'; export default class CardPadded extends React.Component { constructor(props) { super(props); this.props = props; } render() { return ( <Paper className={styles.cardPadd...
src/svg-icons/image/filter-drama.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterDrama = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4...
examples/redux-saga/counter/src/index.js
ioof-holdings/redux-subspace
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import { subspace, applyMiddleware } from 'redux-subspace' import createSagaMiddleware from 'redux-subspace-saga' import Counter from './components/Counter' import reducer from './reducers' import rootSaga from './sagas' co...
test/integration/client-navigation/pages/nav/as-path-using-router.js
flybayer/next.js
import React from 'react' import Router from 'next/router' export default class extends React.Component { constructor(...args) { super(...args) this.state = {} } componentDidMount() { const asPath = Router.asPath this.setState({ asPath }) } render() { return <div className="as-path-cont...
step-capstone/src/App.js
googleinterns/step98-2020
import React from 'react'; import { BrowserRouter as Router, Switch, Route, Redirect, } from "react-router-dom"; import './styles/App.css'; import {FirebaseContext} from './components/Firebase'; import Home from './components/Pages/Home' import SignOutButton from './components/Firebase/SignOutButton'; import T...
docs/src/examples/elements/Icon/Variations/IconExampleSize.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleSize = () => ( <div> <Icon name='home' size='mini' /> <Icon name='home' size='tiny' /> <Icon name='home' size='small' /> <Icon name='home' size='small' /> <br /> <Icon name='home' /> <br /> <Icon name=...
node_modules/react-bootstrap/es/Thumbnail.js
mohammed52/something.pk
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
voting-web-views/src/js/Components/Layouts/MainPage/MainPage.js
joaolrpaulo/eletronic-voting-system
import React from 'react'; import { hashHistory } from 'react-router'; import NodeRSA from 'node-rsa'; import MainPageStore from 'Stores/mainPageStore.js'; import User from 'Models/User.js'; import MainPageTemplate from './MainPage.rt'; import { SERVER_PUBLIC_KEY, SERVER_PRIVATE_KEY } from 'Utils/globals.js'; export ...
components/react-semantify/src/modules/dropdown.js
react-douban/douban-book-web
import React from 'react'; import ReactDOM from 'react-dom'; import ClassGenerator from '../mixins/classGenerator'; import StateSelector from '../mixins/stateSelector'; import {Unit} from '../commons/unit'; let defaultClassName = 'ui dropdown'; const Dropdown = React.createClass({ mixins: [ClassGenerator, StateSel...
packages/material-ui-icons/src/FileDownload.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" /></g> , 'FileDownload');
packages/cf-component-card/src/CardContent.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; class CardContent extends React.Component { render() { return ( <div className="cf-card__content"> <h3 className="cf-card__title"> {this.props.title} </h3> {this.props.children} {this.props.footerMessa...
src/components/Landing.js
5-gwoap/adopt-a-family
// Landing page for AAF. import React from 'react'; import { Link } from 'react-router-dom'; const Landing = (props) => ( <div> <h1>Landing page</h1> <ul> <li> <Link to="/dashboard">Click me for dashboard</Link> </li> <li> <Link to="/secure/pairing">Click me for secure/pair...
src/components/demo/wizard/WizardFormFirstPage.js
tedyuen/react-redux-form-v6-example
import React from 'react' import { Field, reduxForm } from 'redux-form' import validate from './validate' import inputField from '../../utils/validation/inputField' const WizardFormFirstPage = props => { const { handleSubmit } = props return ( <form onSubmit={handleSubmit}> <Field name="firstName...
cra-memory-considerate-loading-sketchfab/src/containers/MemoryConsiderateMedia/index.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
test/integration/custom-error/pages/_error.js
JeromeFitz/next.js
import React from 'react' class Error extends React.Component { static getInitialProps({ res, err }) { const statusCode = res ? res.statusCode : err ? err.statusCode : null return { statusCode } } render() { return ( <> <h3>Custom error!!</h3> <p> {this.props.statusCo...
src/components/Home.js
edwinvrgs/instareact
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { setTokenAccess } from '../actions/actionCreators'; class Home extends Component { componentDidMount() { var { location } = this.props; var token = location.hash.split('#access_token=')[1]; //let code = new URLSear...
client/components/AsyncComponent/index.js
andreiconstantinescu/project-viper
import React from 'react' const asyncComponent = (getComponent) => class AsyncComponent extends React.Component { static Component = null state = { Component: AsyncComponent.Component } componentWillMount() { if (!this.state.Component) { getComponent().then(Component => { AsyncCo...
src/js/components/icons/base/Run.js
odedre/grommet-final
/** * @description Run SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @proper...
src/components/detail.js
yihan940211/WTFSIGTP
/* * @Author: guangled * @Date: 2017-03-25 17:59:37 * @Last Modified by: guangled * @Last Modified time: 2017-03-26 03:45:48 */ import React, { Component } from 'react'; class Detail extends Component { render() { return ( <h4 className="title">{this.props.msg}</h4> ); }...
app/views/Watches/Watches.js
herereadthis/redwall
import React from 'react'; import {RouteHandler} from 'react-router'; import FluxComponent from 'flummox/component'; //import AddMoreFlux from 'components/AddMoreFlux.js'; import AppActions from 'AppActions'; import WatchTable from './WatchTable'; import WatchFlux from './WatchFlux.js'; import WatchStore from './Watc...
src/views/LoginView.js
abachuk/fullbag-react-redux-dashboard
import React from 'react' import 'styles/core.scss' import Firebase from 'firebase' import constants from 'utils/constants' import { actions as authActions } from '../redux/modules/auth' import { connect } from 'react-redux' // import { createHistory } from 'history' // import { pushPath } from 'redux-simple-router' /...
examples/with-styled-components/pages/index.js
kevmannn/next.js
import React from 'react' import styled from 'styled-components' const Title = styled.h1` color: red; font-size: 50px; ` export default () => <Title>My page</Title>
primeiro-componente/src/Clock.js
brenoqueiroz/get-started-react
import React from 'react'; import Welcome from './Welcome'; class Clock extends React.Component { constructor(props) { super(props); this.state = { date: new Date() }; } componentDidMount() { this.timerID = setInterval( () => this.tick(), 1000 ); ...
src/__tests__/utils/router-stub.js
ecasilla/flux-starter
import objectAssign from 'react/lib/Object.assign'; import React from 'react'; export default (Component, props, stubs) => { function RouterStub() {} objectAssign(RouterStub, { makePath () {}, makeHref () {}, transitionTo () {}, replaceWith () {}, goBack () {}, getCurrentPath () {}, ge...
lib/zoomableMap/zoomableMap.js
team-parsnips/ReD3
import React from 'react'; import * as d3 from 'd3'; import * as topojson from 'topojson'; import usamap from './../assets/usamap.json'; class ZoomableMap extends React.Component { constructor(props) { super(props); this.state = { centered: null, options: { // 'polyFill': this.props.pol...
src/components/app.js
wongjenn/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> ); } }
client/views/omnichannel/directory/chats/contextualBar/RoomEditWithData.js
VoiSmart/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../../../../contexts/TranslationContext'; import { AsyncStatePhase } from '../../../../../hooks/useAsyncState'; import { useEndpointData } from '../../../../../hooks/useEndpointData'; import { FormSkeleton } from...
packages/material-ui/src/BottomNavigation/BottomNavigation.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = theme => ({ root: { display: 'flex', justifyContent: 'center', height: 56, backgroundColor: theme.palette.background.paper, }, });...
app/javascript/mastodon/features/compose/components/reply_indicator.js
Kirishima21/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import { defineMessages, injec...
src/AsyncCreatable.js
matroid/react-select
import React from 'react'; import Select from './Select'; const AsyncCreatable = React.createClass({ displayName: 'AsyncCreatableSelect', render () { return ( <Select.Async {...this.props}> {(asyncProps) => ( <Select.Creatable {...this.props}> {(creatableProps) => ( <Select {...as...
tests/baselines/reference/jsDeclarationsReactComponents.js
kpreisser/TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts] //// //// [jsDeclarationsReactComponents1.jsx] /// <reference path="/.lib/react16.d.ts" /> import React from "react"; import PropTypes from "prop-types" const TabbedShowLayout = ({ }) => { return ( <div /> ); }; Tab...
src/index.js
pleaobraga/blog-react
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import promise from 'redux-promise'; import reducers from './reducers'; import PostIndex from './co...
src/front-end/js/components/helpers/FontAwesome.js
aleksey-gonchar/emmofret
import React from 'react' export class Icon extends React.Component { render () { let className = `fa ${this.props.className} fa-${this.props.name}` className += this.props.inverse ? ' fa-inverse' : '' className += this.props.fw ? ' fa-fw' : '' className += this.props.spin ? ' fa-spin' : '' class...
example/src/components/DriveTheLine.js
bsudekum/react-native-mapbox-gl
import React from 'react'; import MapboxGL from '@mapbox/react-native-mapbox-gl'; import {View, StyleSheet} from 'react-native'; import {Button} from 'react-native-elements'; import {lineString as makeLineString} from '@turf/helpers'; import RouteSimulator from '../utils/RouteSimulator'; import MapboxClient from '../M...
docs/app/Examples/elements/Label/Variations/LabelExampleBasic.js
ben174/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleBasic = () => ( <div> <Label as='a' basic>Basic</Label> <Label as='a' basic pointing>Pointing</Label> <Label as='a' basic image> <img src='http://semantic-ui.com/images/avatar/small/elliot.jpg' /> Elliot ...
pages/work/sony-music-app.js
k97/node-slasher-app
import React from 'react'; import axios from 'axios'; import ReactMarkdown from 'react-markdown'; import mediumZoom from 'medium-zoom'; import Layout from '../../components/Layout/index'; import ProjectTitle from '../../components/Work/ProjectTitle'; import EditProject from '../../components/Work/EditProject'; import ...
src/components/card.js
sfordjasiri/TT
import React from 'react'; class Card extends React.Component { /* render() { console.log("Card.render() this.props: ", this.props); return( <div className="card"> </div> ); }; */ } export default Card;
src/parser/deathknight/blood/modules/spells/azeritetraits/BonesOfTheDamned.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatNumber, formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; im...
src/routes/Home/components/Home/Home.js
taforyou/testtesttest-yo
import React from 'react' import Theme from 'theme' import { Link } from 'react-router' import { paths } from 'constants' import classes from './Home.scss' const authWrapperUrl = 'https://github.com/mjrussell/redux-auth-wrapper' const reactRouterUrl = 'https://github.com/ReactTraining/react-router' export const Home =...
packages/@vega/review-tool/src/index.js
VegaPublish/vega-studio
import React from 'react' import {route} from 'part:@vega/core/router' import routerParams from '@vega/utils/routerParams' import ReviewTool from './components/ReviewTool' const icon = () => <span /> const isCreateReviewProcess = (intentName, params) => intentName === 'create' && params.type === 'reviewProcess' &&...
client/App.js
caleb272/PollIt
/** * Root Component */ import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import IntlWrapper from './modules/Intl/IntlWrapper'; // Import Routes import routes from './routes'; // Base stylesheet require('./main.css'); export default function Ap...