path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/main/webapp/resources/modules/table/MyCards.js | cwoolner/flex-poker | import React from 'react'
import CardData from './CardData'
export default ({myLeftCardId, myRightCardId}) => {
return (
<div>
<img className={"my-cards"} src={CardData[myLeftCardId]} />
<img className={"my-cards"} src={CardData[myRightCardId]} />
</div>
)
}
|
src/svg-icons/hardware/gamepad.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareGamepad = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
HardwareGamepad = pure(Hardw... |
app/app.js | shuiszhang/fanfou | /**
* Created by shuis on 2017/5/22.
*/
import React, { Component } from 'react';
import { StackNavigator, TabNavigator, TabBarBottom } from 'react-navigation';
import {getAuthToken} from './util/storage';
import {Home, Detail, Message, Mine, Login, Favorite, FeedBack, FriendRequest, LookAround, Edit, PeopleList, Twe... |
node_modules/react-bootstrap/es/FormGroup.js | ProjectSunday/rooibus | 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 ... |
client/modules/polls/VoteForm/VoteDialog.js | ncrmro/ango | import React from 'react'
import Dialog from 'react-mdc-web/lib/Dialog/Dialog'
import DialogHeader from 'react-mdc-web/lib/Dialog/DialogHeader'
import DialogTitle from 'react-mdc-web/lib/Dialog/DialogTitle'
import DialogBody from 'react-mdc-web/lib/Dialog/DialogBody'
import Button from 'react-mdc-web/lib/Button/Button'... |
src/styles/style.js | swapnilabnave/swapnilabnave.github.io | import React from 'react';
import PropTypes from 'prop-types';
|
src/components/Loading.js | atixlabs/atm-mobileapp | import React from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
Loading = () => {
return(
<View>
<Text>
Loading
</Text>
</View>
);
}
export default Loading; |
src/components/albums/Albums.js | archistackt/kts | import React from 'react';
import ListGroup from 'react-bootstrap/lib/ListGroup';
import Album from './Album';
class Albums extends React.Component {
constructor(props) {
super(props);
this.state = {
selected: null
};
this.handleAlbumSelect = this.handleAlbumSelect.bind(this);
}
handl... |
app/components/Assessments/Assessment.js | klpdotorg/tada-frontend | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
import { dateParser } from '../../utils';
import { checkPermissions } from '../../checkPermissions';
const AssessmentRow = (props) => {
const { assessment, url, selectedAssessments, groups, isAdmin } = props;
const checke... |
src/server.js | maxcnunes/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
im... |
src/svg-icons/action/view-list.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewList = (props) => (
<SvgIcon {...props}>
<path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/>
</SvgIcon>
);
ActionViewList = pure(ActionViewList);
Actio... |
src/svg-icons/notification/airline-seat-legroom-reduced.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomReduced = (props) => (
<SvgIcon {...props}>
<path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 1... |
src/index.js | ImposterInc/impostersyndrome | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import {BrowserRouter as Router, Route, Link} from 'react-router-dom';
import Home from './components/Home';
import LoggedIn from './components/HomeL... |
dashboard/bin/generate.js | chain/chain | import { cd, mkdir, echo, ShellString, cat, test } from 'shelljs'
import commandLineCommands from 'command-line-commands'
import commandLineArgs from 'command-line-args'
const validCommands = [ 'component' ]
const { command, argv } = commandLineCommands(validCommands)
function template(strings, ...keys) {
return (f... |
client/components/Flass/Grid/GridItem.js | Nexters/flass | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import color from '~/css/base/colors.scss';
import { DeleteIcon } from './icons';
const Item = styled.div`
position: relative;
display: block;
width: 23.44rem;
height... |
app/javascript/mastodon/features/blocks/index.js | lynlynlynx/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
src/renderer/components/main.js | babie/retro-twitter-client | import Editor from './editor'
import Header from './header'
import React from 'react'
import Tweets from './tweets'
export default class Main extends React.Component {
get list() {
return this.props.lists.filter((list) => {
return list.id_str === this.props.channelId;
})[0];
}
get title() {
sw... |
client/extensions/woocommerce/app/store-stats/store-stats-referrer-widget-base/index.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
import classnames from 'classnames';
/**
* Internal dependencies
*/
import Table from 'woocommerce/components... |
src/components/quote/quote.js | Conservationist/HexNow | import React from 'react';
import {DIV, P} from './quote.style'
import quotes from '../../quotes.json';
function Quote(){
function GetQuote(){
const quoteArr = quotes.quotes;
const random_number = Math.round(Math.random() * quoteArr.length);
let selected_quote = quoteArr[random_number];
... |
client/src/GithubLogin.js | clembou/github-requests | import React from 'react';
import { Grid, Row, Col, Button } from 'react-bootstrap';
import githubClient from './shared/githubClient';
import { LoadingWithMessage } from './shared/Loading';
import qs from 'qs';
class GithubAuthorisation extends React.Component {
state = {
error: ''
};
componentDidMount() {
... |
lib/Select/Select.js | folio-org/stripes-components | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import uniqueId from 'lodash/uniqueId';
import formField from '../FormField';
import css from './Select.css';
import formStyles from '../sharedStyles/form.css';
import sharedInputStylesHelper from '../sha... |
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxnavigationbar.js | dhawal9035/WebPLP | /*
jQWidgets v4.5.0 (2017-Jan)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
let jqxNavigationBar = React.createClass ({
getInitialState: function () {
return { value: '' };
},
componentDidMount: function () {
let options = this.manageAttributes... |
src/interface/icons/More.js | fyruna/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=Misc&i=932100
// more by K Ξ L L Ξ R from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" className="icon" {...other}>
<path d="M470,36 C461.163444,36 454,28.836556 454,20 C454,11.1634... |
components/ErrorMessage.js | tendotosystems/lunchblast-client | import React from 'react'
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'
const ErrorMessage = ({message, onClose}) => (
message !== '' ? (
<View style={styles.container}>
<Text style={styles.messageText}>{message}</Text>
<TouchableOpacity onPress={onClose} style={styles.close... |
src/parser/warlock/destruction/modules/talents/RoaringBlaze.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import Statistic from 'interface/statistics/Statistic';
import Bor... |
docs/app/Examples/modules/Checkbox/Variations/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const CheckboxVariationsExamples = () => (
<ExampleSection title='Variations'>
<Compo... |
src/components/shared/CSVExport.js | chatch/stellarexplorer | import React from 'react'
import {FormattedMessage} from 'react-intl'
import has from 'lodash/has'
import ExportButton from './ExportButton'
class CSVExport extends React.Component {
static defaultProps = {
limit: 100,
page: 0,
refresh: false,
usePaging: false,
}
state = {
cursor: 0,
w... |
web/js/containers/App.js | kozko2001/existentialcomics | import React from 'react';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
const lightMuiTheme = getMuiTheme(lightBaseTheme);
export default class extends React.Com... |
src/pages/404.js | adenj/blog | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
src/Info/BRCApproved/index.js | NERC-CEH/irecord-app | import React from 'react';
import AppHeader from 'Components/Header';
import { IonList, IonLabel, IonItem, IonPage } from '@ionic/react';
import AppMain from 'Components/Main';
import './styles.scss';
import './BRC_approved_logo.png';
export default () => (
<IonPage>
<AppHeader title={t('Help')} />
<AppMain ... |
YEAR 3/SEM 1/MOBILE/non-native/PhotoReact/screens/lesson/submission/SubmissionScreen.js | Zephyrrus/ubb | import React from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
ActivityIndicator,
StatusBar,
InteractionManager,
KeyboardAvoidingView,
} from 'react-native';
import { WebBrowser } from 'expo';
import { NetInfo } from 'react-native';
import { FullWidthIm... |
src/containers/BulbsList.js | dolchi21/web-lifx | import React from 'react'
import { connect } from 'react-redux'
import * as API from '../api/lifx'
import Bulb from './Bulb'
function loadLights(dispatch) {
return API.listLights().then(bulbs => {
dispatch({
type: 'BULBS',
payload: bulbs
})
})
}
class BulbsList extend... |
src/routes/login/index.js | fustic/here-hackaton | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Login from './Login';
e... |
stories/DayPicker.js | allanpope/react-dates | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import DayPicker from '../src/components/DayPicker';
import {
VERTICAL_ORIENTATION,
VERTICAL_SCROLLABLE,
} from '../constants';
const TestPrevIcon = props => (
<span style={{
border: '1px solid #dce0e0',
backgroundColor: '#fff... |
packages/xo-web/src/xo-app/xoa/licenses/xosan.js | vatesfr/xo-web | import _ from 'intl'
import ActionButton from 'action-button'
import Component from 'base-component'
import Link from 'link'
import React from 'react'
import renderXoItem, { Pool } from 'render-xo-item'
import SortedTable from 'sorted-table'
import { connectStore } from 'utils'
import { createSelector, createGetObjects... |
server/client/components/NewExperiment.js | stevenlundy/agnition | import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import React from 'react';
import Hypothesis from './Hypothesis';
import { Link } from 'react-router';
// function mapStatetoProps (state) {
// return {
// name: state.NewExperiment.get('name'),
// };
// }
// function mapDispat... |
app/javascript/mastodon/components/picture_in_picture_placeholder.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'mastodon/components/icon';
import { removePictureInPicture } from 'mastodon/actions/picture_in_picture';
import { connect } from 'react-redux';
import { debounce } from 'lodash';
import { FormattedMessage } from 'react-intl';
export defau... |
app/javascript/mastodon/components/status_action_bar.js | Ryanaka/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenuContainer from '../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from ... |
src/interface/icons/Login.js | sMteX/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/login/214301/
// Login by Yaroslav Samoylov from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" className="icon" {...other}>
<path d="M24,90h-3c-4.962,0-9-4.037-9-9V14c0-4.963,4.038-9,9-9h... |
src/encoded/static/components/static-pages/components/HomePageCarousel.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import Carousel from 'nuka-carousel';
import { console, ajax, layout, object } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { BasicStaticSectionBody } from '@hms-dbmi-bgm/shared-portal-c... |
src/client/components/login/loginContainer.component.js | DBCDK/dbc-ufo | import React from 'react';
import request from 'superagent';
// Components
import LoginForm from './loginForm.component';
export default class LoginContainer extends React.Component {
constructor(props) {
super(props);
this.state = {
error: null
};
}
onSubmit = (fields) => {
const agency... |
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js | TryKickoff/create-kickoff-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.
*/
/* @flow */
import React from 'react';
import CodeBlock from '../components/CodeBlock';
import { applyStyles } from '../utils/dom/css';
... |
src/components/UI/PauseScreen.js | lgrqvst/ravr | import React from 'react';
import ScreenTransition from './ScreenTransition';
import ScreenWrapper from './ScreenWrapper';
import Title from './Title';
import Prompt from './Prompt';
const PauseScreen = props => {
return (
<ScreenTransition show={props.show} timeout={200} type="fade">
<ScreenWrapper>
... |
client/modules/core/components/.stories/language_select.js | kaibagoh/PitchSpot | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import LanguageSelect from '../language_select.jsx';
storiesOf('core.LanguageSelect', module)
.add('default view', () => {
return (
<LanguageSelect />
);
})
|
src/screen/WaveGenerator/WaveGenerator.js | wavicles/fossasia-pslab-apps | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import debounce from 'lodash/debounce';
import { Container, Wrapper } from './styles';
import AnalogController from './components/AnalogController';
import DigitalController from './components... |
app/javascript/mastodon/components/column.js | ambition-vietnam/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import detectPassiveEvents from 'detect-passive-events';
import { scrollTop } from '../scroll';
export default class Column extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
};
scrollTop () {
const scrollable = th... |
src/utils/utils.js | libeanim/sundew-notes | import _ from 'lodash';
import React from 'react';
import NoteFolder from '../components/note_folder';
import NoteElement from '../components/note_element';
import { ElementType } from './CONSTANTS';
import mime from 'mime-types';
import fs from 'fs';
import path from 'path';
export function renderElement(element){
... |
app/javascript/mastodon/features/followers/index.js | rekif/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
src/app/modules/Preferences/components/forms/PrivacyForm.js | toxzilla/app | import React from 'react';
import {connect} from 'cerebral-view-react';
import {TOX_ID_NOSPAM_LENGTH, TOX_ID_CHECKSUM_LENGTH} from './../../../../../shared/tox';
import {Button, ButtonGroup, Fieldset, Icon, Form, Spinner, Text} from './../../../../common/UserInterface';
import profile from './../../../../store/compute... |
node_modules/react-router-dom/node_modules/react-router/es/StaticRouter.js | NickingMeSpace/questionnaire | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
public/js/cat_source/es6/components/modals/DQFModal.js | matecat/MateCat | import React from 'react'
import DQFCredentials from './DQFCredentials'
import {ModalWindow} from './ModalWindow'
class DQFModal extends React.Component {
constructor(props) {
super(props)
this.state = {
dqfOptions: this.props.metadata.dqf_options,
dqfCredentials: {
dqfUsername: this.pr... |
index.android.js | odapplications/WebView-with-Lower-Tab-Menu |
import React, { Component } from 'react';
import {
AppRegistry,LayoutAnimation,StatusBar,
StyleSheet,Image,ScrollView,ListView,Alert,
Text,TouchableOpacity,TouchableHighlight,
View,WebView,Dimensions,Platform,BackAndroid,ActivityIndicator
} from 'react-native';
import { Container, Content, Footer, FooterTab, B... |
src/components/PlaylistManager/Panel/Meta.js | u-wave/web | /* eslint-disable jsx-a11y/label-has-for */
import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import { useTranslator } from '@u-wave/react-translate';
import Checkbox from '@mui/material/Checkbox';
import ActiveIcon from '@mui/icons-material/CheckBox';
import ActivateIcon from '@mui/... |
frontend/node_modules/recharts/src/shape/Sector.js | justdotJS/rowboat | /**
* @fileOverview Sector
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import pureRender from '../util/PureRender';
import { PRESENTATION_ATTRIBUTES, getPresentationAttributes,
filterEventAttributes } from '../util/ReactUtils';
import { polar... |
src/components/Header/Header.js | cbellino/roster | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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, { Component } from 'react';
import withStyle... |
src/components/common/NavBarDone.js | jinqiupeter/mtsr | import React from 'react';
import {StyleSheet, Platform, View, Text} from 'react-native';
import {Actions} from 'react-native-router-flux';
import {COLOR} from '../../config';
import * as components from '../';
export default ({onPress, disabled}) => {
return <components.NavBarRightButton
textStyle={disab... |
rn-16-platformModule/App.js | KyoungRan/react-native-ex-NDH | import React from 'react';
import {
StyleSheet,
Text,
View,
Platform,
ListView,
Alert
} from 'react-native';
export default class App extends React.Component {
render() {
const osName = Platform.OS === 'android' ? 'android' : 'ios';
Alert.alert(osName + '. Version is: ' + Platform.Version);
r... |
packages/material-ui-icons/src/BugReport.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H... |
docs/pages/blog/2020-introducing-sketch.js | lgollut/material-ui | import React from 'react';
import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'blog/2020-introducing-sketch';
const requireRaw = require.context('!raw-loader!./', false, /2020-introducing-sketch\.md$/);
ex... |
src/ModalHeader.js | nickuraltsev/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalHeader extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.closeButton &&
<button
cla... |
ajax/libs/react-select/1.0.0-rc.9/react-select.es.js | sufuf3/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
className: ... |
src/SuperAdmin.js | HimanshuBCS/mt2414ui | /**
* @module src/SupperAdmin
*
* Component that display List of registered e-mails
* Accepts the following properties:
* - Email : registered e-mails
* - admin : boolean value if True then admin, if False then Member
* Also in Header accepts authenticaton token
*/
import React, { Component } from 'react';
i... |
src/routes/contact/index.js | danagilliann/travel_log | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Contact from './Contact'... |
app/containers/BootStrap/UGLogo/index.js | perry-ugroop/ugroop-react-dup2 | /**
* Created by Ber on 24/11/16.
*/
import React from 'react';
const UGLogo = (props) => <img {...props}alt="" />;
UGLogo.propTypes = {
className: React.PropTypes.any,
children: React.PropTypes.any,
};
export default UGLogo;
|
src/client.js | birkir/react-starter-kit-rdb | import _extend from 'lodash/extend';
import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory, Router } from 'react-router';
import { DefaultSession as session } from 'react-rethinkdb';
import routes from './routes';
// Extract properties from config
const location = window.location;
const ... |
client/containers/routes.js | viatsko/codingbox | import React from 'react';
import { Router, Route } from 'react-router';
import Main from './Main';
import Signin from './Signin';
import Signup from './Signup';
import ErrorNotFound from './ErrorNotFound';
/**
* The React Router 1.0 routes for both the server and the client.
*/
module.exports = (
<Router>
<Rout... |
src/components/explorer/builder/SavedSearchControls.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import QueryPickerLoadUserSearchesDialog from './QueryPickerLoadUserSearchesDialog';
import QueryPickerSaveUserSearchesDialog from './QueryPickerSaveUserSearchesDialog';
const SavedSearchControls = (props) => {
c... |
resources/js/lib/recruitment/ui/MyProfile.js | pimolo/gesdiw2017 | import React from 'react';
import TextField from 'material-ui/TextField';
const styles = {
"p": {
"margin": "10px 0"
},
"select-domain": {
display: "block",
margin: "0 auto"
},
"launch-test-button" : {
"color": "white",
"text-transform": "upperca... |
src/svg-icons/action/view-headline.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewHeadline = (props) => (
<SvgIcon {...props}>
<path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/>
</SvgIcon>
);
ActionViewHeadline = pure(ActionViewHeadline);
ActionViewHeadline.d... |
form/src/index.js | howtoclient/react-evix-examples | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
docs/app/Examples/elements/Flag/Types/FlagExampleTable.js | shengnian/shengnian-ui-react | import React from 'react'
import { Table, Flag } from 'shengnian-ui-react'
const countries = [
{ name: 'Afghanistan', countryCode: 'af' },
{ name: 'Aland Islands', countryCode: 'ax' },
{ name: 'Albania', countryCode: 'al' },
{ name: 'Algeria', countryCode: 'dz' },
{ name: 'American Samoa', countryCode: 'as' ... |
app/javascript/mastodon/features/lists/components/new_list_form.js | Nyoho/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
cmd/elwinator/src/components/NewNamespace.js | 13scoobie/choices | // @flow
import React from 'react';
import { browserHistory } from 'react-router';
import { connect } from 'react-redux';
import { namespaceURL } from '../urls';
import { namespaceAdd } from '../actions';
const nameLength = 7;
const alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
const ra... |
docs/app/Examples/elements/Segment/Groups/SegmentExampleStackedSegments.js | ben174/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleStackedSegments = () => (
<Segment.Group stacked>
<Segment>Top</Segment>
<Segment>Middle</Segment>
<Segment>Bottom</Segment>
</Segment.Group>
)
export default SegmentExampleStackedSegments
|
Step2/index.android.js | soulmachine/react-native-starter-kit | // @flow
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import Counter from './app/components/Counter';
import rootStore from './app/store/index';
import { Provider } from 'mobx-react/native';
export default class Step2 extends Component {
render() {
return (
<Provide... |
src/TabPane.js | HorizonXP/react-bootstrap | import React from 'react';
import deprecationWarning from './utils/deprecationWarning';
import Tab from './Tab';
const TabPane = React.createClass({
componentWillMount() {
deprecationWarning(
'TabPane', 'Tab',
'https://github.com/react-bootstrap/react-bootstrap/pull/1091'
);
},
render() {
... |
src/routes/PublicRoute.js | TimothyBom/react-redux-instagram | import React from 'react'
import { Route, Redirect } from 'react-router-dom'
const PublicRoute = ({ component: Component, ...rest, isAuthenticated }) => (
<Route
{...rest}
render={props =>
isAuthenticated
? <Redirect to={{ pathname: '/' }}/>
: <Component {...props}/>}
/>... |
node_modules/react-bootstrap/es/InputGroupAddon.js | FoxMessenger/nyt-react | 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/app/utils/NotificationUtils.js | orcinustools/dashboard | import React from 'react'
const notificationOpts = (title, message, action, children, autoDismiss = 0) => {
return {
// uid: 'once-please', // you can specify your own uid if required
title: `${ title }`,
message: `${ message }`,
position: 'tr',
autoDismiss: autoDismiss,
action: action ? {
... |
docs/app/Examples/elements/Icon/IconSet/IconExampleMap.js | ben174/Semantic-UI-React | import React from 'react'
import { Grid, Icon } from 'semantic-ui-react'
const IconExampleMap = () => (
<Grid columns='5' doubling>
<Grid.Column>
<Icon name='bicycle' />
<p>bicycle</p>
</Grid.Column>
<Grid.Column>
<Icon name='building' />
<p>building</p>
</Grid.Column>
<Gr... |
src/js/ui/cell-editor.js | SpaceHexagon/pylon | import React from 'react';
export default class CellEditor extends React.Component {
constructor() {
super();
this.state = {filterText: ''}
}
render () {
return (
<div className="cell-editor">
</div>
);
}
}
CellEditor.defaultProps = {
}
|
src/filters/Select.js | AllenFang/react-bootstrap-table | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classSet from 'classnames';
import Const from '../Const';
function optionsEquals(options1, options2) {
const keys = Object.keys(options1);
for (const k in keys) {
if (options1[k] !== options2[k]) {
return false;
}
... |
src/index.js | Cheffheid/ghibli-react | import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './components/App';
const Root = () => {
return (
<BrowserRouter>
<App />
</BrowserRouter>
)
}
render( <Root/>, document.getElementById('root') );
|
src/common/components/App/index.js | micahroberson/node-boilerplate | import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import UserStore from '../../stores/UserStore';
import User from '../../models/User';
import Navigation from '../Navigation';
class App extends React.Component {
static contextTypes = {
getStore: React.PropTypes.func,... |
src/js/components/icons/Help.js | samogami/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
export default class Help extends Component {
componentDidMount () {
console.warn('This icon has been deprecated. Please check http://www.grommet.io/docs/develop/icon for the new set of icons.');
}
... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet3Bar.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8z" /><path d="M17 22V7L2 22h15zm3-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></React.Fragment>
, 'SignalCellularConnectedNoInternet3Bar');
|
app/assets/scripts/components/header/header-message.js | openaq/openaq.org | 'use strict';
import React from 'react';
import { PropTypes as T } from 'prop-types';
import createReactClass from 'create-react-class';
/*
* create-react-class provides a drop-in replacement for the outdated React.createClass,
* see https://reactjs.org/docs/react-without-es6.html
* Please modernize this code using... |
src/client/components/Device.js | hara-io/realtime-react-client | import React from 'react';
import Module from './Module';
import constants from '../../configs/constants';
import Error from '../components/Error';
import DeviceActions from '../actions/DeviceActions';
import DeviceStore from '../stores/DeviceStore';
class Device extends React.Component {
constructor(props) {
s... |
client/node_modules/react-router/es6/Link.js | ronniehedrick/scapeshift | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
client/src/SearchBox.js | panter/mykonote | import React, { Component } from 'react';
import { debounce } from 'throttle-debounce';
import EventHive from './EventHive';
import { ReactComponent as SearchIcon } from './icons/material/search_black_24dp.svg';
import './SearchBox.css';
class SearchBox extends Component {
constructor(props, context) {
super(p... |
resources/_model/GetCode.js | AndrewTJohnston/andrewtjohnston.com | import React from 'react'
import Logo from './../_assets/svg/LogoGithub'
export default React.createClass({
render() {
return (
<a className="getcode-button" href={ this.props.url }>
<div className="getcode-button-content getcode-button-icon">
<div className="svg-container">
<... |
packages/icon-builder/tpl/SvgIcon.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '{{{ muiRequireStmt }}}';
let {{className}} = (props) => (
<SvgIcon {...props}>
{{{paths}}}
</SvgIcon>
);
{{className}} = pure({{className}});
{{className}}.displayName = '{{className}}';
{{className}}.muiName = 'SvgIcon';
expor... |
src/modules/banner/SlideView.js | TheOne1006/TheOne1006-theone-io-app | /**
* @flow
*/
import React from 'react';
import {
Image,
View,
} from 'react-native';
const loading = require('./imgs/loading.gif');
type SideProps = {
i: number,
loadHandle: Function,
styles: Object,
uri: string,
loaded: boolean
}
const Slide = ({ i, loadHandle, styles, uri, loaded }: SideProps) =... |
src/pages/Project/Project.js | analogrithems/react-sandbox | import React from 'react';
import ReactDOM from 'react-dom';
import { Row } from 'react-bootstrap';
const Project = React.createClass({
render() {
return (
<Row>
<p>Project Page</p>
</Row>
)
}
})
export default Project
|
docs/app/Examples/views/Statistic/Types/index.js | jcarbo/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Types = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Statistic'
description='A statistic ca... |
front/components/player.js | ssig33/pig-media-server | import React from 'react';
export default class Player extends React.Component {
constructor(props){
super(props);
this.current_url = '';
}
close(){ playing.set(null); }
dom(){ return this.refs.video; }
video(){ return playing.item; }
video_url(){
var url = null;
if(!!this.video()){ url =... |
src/svg-icons/maps/directions-bike.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsBike = (props) => (
<SvgIcon {...props}>
<path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.... |
src/index.js | DaveJump/online-reader | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/main';
import Controller from './components/controller';
function render(dataArr){
// Render the main component into the dom
ReactDOM.render(<App dataArr={dataArr}/>, document.getElementBy... |
src/svg-icons/maps/local-taxi.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalTaxi = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4... |
src/components/Main.js | wangjinqing123/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom'
import ImgFigure from './ImgFigure';
import ControllerUnit from './ControllerUnit';
//获取图片相关数据
let imageDatas = require('../data/imageDatas.json');
//利用自执行函数,将图片名信息转化成图片URL路径信息
imageDatas =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.