path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
examples/complete/react-native/screens/LinksScreen.js | prescottprue/react-redux-firebase | import React from 'react';
import { ScrollView, StyleSheet } from 'react-native';
import { ExpoLinksView } from '@expo/samples';
export default class LinksScreen extends React.Component {
static navigationOptions = {
title: 'Links',
};
render() {
return (
<ScrollView style={styles.container}>
... |
src/Parser/Druid/Restoration/CombatLogParser.js | enragednuke/WoWAnalyzer | import React from 'react';
import Tab from 'Main/Tab';
import Mana from 'Main/Mana';
import CoreCombatLogParser from 'Parser/Core/CombatLogParser';
import LowHealthHealing from 'Parser/Core/Modules/LowHealthHealing';
import HealingDone from 'Parser/Core/Modules/HealingDone';
import WildGrowthNormalizer from './Norma... |
learning/index.js | YashdalfTheGray/talks | import React from 'react';
import { render } from 'react-dom';
import Presentation from './presentation';
render(<Presentation/>, document.querySelector('#root'));
|
frontend/src/components/on_boarding/ContributorPicker.js | OpenCollective/opencollective-website | import React from 'react';
import ContributorPickerItem from './ContributorPickerItem'
export default class ContributorPicker extends React.Component {
constructor(props) {
super(props);
}
renderChosenContributors() {
const { chosen, onRemove } = this.props;
return chosen.map((contributor, index) ... |
src/app/components/team/SmoochBot/SmoochBotMainMenu.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape, defineMessages, FormattedMessage } from 'react-intl';
import Typography from '@material-ui/core/Typography';
import { languageLabel } from '../../../LanguageRegistry';
import SmoochBotMainMenuSection from './SmoochBotMainMenu... |
src/icons/IosCog.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosCog extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M293.25,150.32L265.2,254.9l74.954,75C358.159,309.457,368,283.486,368,256c0-29.916-11.65-58.042-32.805-79.196
C323.1... |
src/ui/containers/account.js | redcom/aperitive | // @flow
import React from 'react';
import { withRouter } from 'react-router';
import { Row, Button } from 'react-bootstrap';
import { isNil } from 'ramda';
import LoginAuth0 from './LoginAuth0';
import { auth0Config } from '../../config';
type Props = {
loading: boolean,
};
class Account extends React.Component {
... |
modules/__tests__/element-test.js | slashtu/react-scroll | import { render, unmountComponentAtNode } from 'react-dom'
import expect from 'expect'
import React from 'react'
var Element = require('../components/Element.js');
var assert = require('assert');
describe('Element', function() {
let node
beforeEach(function () {
node = document.createElement('div')
})
... |
node_modules/react-select/examples/src/components/Creatable.js | rblin081/drafting-client | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
var CreatableDemo = createClass({
displayName: 'CreatableDemo',
propTypes: {
hint: PropTypes.string,
label: PropTypes.string
},
getInitialState () {
return {
mult... |
src/svg-icons/image/add-to-photos.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAddToPhotos = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/>
... |
client/extensions/woocommerce/app/reviews/review-reply-create.js | Automattic/woocommerce-connect-client | /**
* External depedencies
*
* @format
*/
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
import PropTypes from 'prop-types';
/**
* Internal dependencies
*/
... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_04/finish/src/index.js | yevheniyc/Autodidact | import React from 'react'
import { render } from 'react-dom'
import { SkiDayCount } from './components/SkiDayCount'
window.React = React
render(
<SkiDayCount total={50}
powder={20}
backcountry={10}
goal={100}/>,
document.getElementById('react-container')
) |
react-router-tutorial/lessons/08-index-routes/index.js | zerotung/practices-and-notes | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, hashHistory } from 'react-router'
import App from './modules/App'
import About from './modules/About'
import Repos from './modules/Repos'
import Repo from './modules/Repo'
render((
<Router history={hashHistory}>
<Route path="/" ... |
public/js/sequenceserver.js | elsiklab/sequenceserver | import 'jquery';
import 'jquery-ui';
import 'bootstrap';
import 'webshim';
import React from 'react';
import Router from 'react-router';
import {Page as Search} from './search';
import {Page as Report} from './report';
var Route = Router.Route;
var DefaultRoute = Router.DefaultRoute;
var RouteHandler = Router.RouteH... |
app/javascript/mastodon/features/list_timeline/index.js | mstdn-jp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../compon... |
admin/client/App/elemental/DropdownButton/index.js | snowkeeper/keystone | /* eslint quote-props: ["error", "as-needed"] */
import React from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import Button from '../Button';
function DropdownButton ({ children, ...props }) {
return (
<Button {...props}>
{children}
<span className={css(classes.arrow)} />
</Button>
... |
app/javascript/mastodon/components/dropdown_menu.js | dunn/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from './icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
imp... |
app/desktop/LiveUser/index.js | christianalfoni/webpack-bin | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import styles from './styles.css';
@Cerebral({
userName: 'live.userName',
controllingUser: 'live.controllingUser'
})
class LiveUser extends React.Component {
render() {
return (
<div className={styles.wrapper}>
... |
src/components/Portfolio.js | jerednel/jerednel.github.io | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { Card, CardContent, CardActionArea, CardMedia, Typography, Grid, Container } from '@material-ui/core/';
const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
backgroundColor: theme.palette.primar... |
node_modules/react-bootstrap/es/DropdownMenu.js | Crisa221/Lista-Giocatori | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _Array$from from 'babel-runtime/core-js/array/from';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtim... |
src/app.js | fkoester/tachograph-app | import React from 'react';
import { UIManager } from 'react-native';
import { Provider } from 'react-redux';
import store from './store';
import scenes from './scenes';
import './i18n';
UIManager.setLayoutAnimationEnabledExperimental(true);
export default class App extends React.Component {
componentDidMount() {
... |
src/pages/SignoutPage.js | ihenvyr/react-parse | import React from 'react';
import Helmet from 'react-helmet';
import { withRouter } from 'react-router';
import Parse from 'parse';
class SignoutPage extends React.Component {
static propTypes = {};
static defaultProps = {};
componentDidMount() {
Parse.User.logOut().then(() => {
this.props.router.push... |
src/routes.js | taoveweb/reactTemplate | //import React from 'react';
//import { Route, IndexRoute } from 'react-router';
import App from './components/App';
/*import Home from './containers/Home';
import About from './containers/About';
import New from './containers/New';
import New1 from './containers/New1';
import NotFound from './containers/NotFound';*/
... |
packages/node_modules/@webex/react-component-adaptive-card/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import {getAdaptiveCard, CARD_CONTAINS_IMAGE, replaceIndexWithBlobURL, API_ACTIVITY_VERB} from '@webex/react-component-utils';
import {connect} from 'react-redux';
import {bindActionCrea... |
src/forms/rentFields.js | codeforboston/cliff-effects | import React, { Component } from 'react';
import { MonthlyCashFlowRow } from './cashflow';
import {
isNonNegNumber,
hasOnlyNonNegNumberChars,
} from '../utils/validators';
const BLANK_FUNCTION = function () {};
class RentShareField extends Component {
state = { valid: true, message: null };
storeValidator... |
src/Button.js | mattBlackDesign/react-materialize | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import constants from './constants';
import cx from 'classnames';
import Icon from './Icon';
import idgen from './idgen';
class Button extends Component {
constructor (props) {
super(props);
this.renderIcon = this.renderIcon.bind(t... |
src/app/containers/index.js | blowsys/reservo | import React from 'react';
import thunk from 'redux-thunk';
import { createStore, applyMiddleware, compose } from 'redux';
import type { Store } from 'redux';
import { Provider } from 'react-redux';
import Router from 'react-router/HashRouter';
import { connect } from 'react-redux';
import MuiThemeProvider from 'materi... |
src/components/body/menu/options/AddModal.js | TechyFatih/Nuzlog | import React from 'react';
import { Modal, Media, Panel, Button, Row, Col, ControlLabel } from 'react-bootstrap';
import { actions } from 'react-redux-form';
import { connect } from 'react-redux';
import natures from 'data/natures.json';
import abilities from 'data/abilities.json';
import male from 'img/male.png';
im... |
Native/Learn_NavigationBox/index.android.js | renxlWin/React-Native_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button
} from 'react-native';
import { StackNavigator } from 'react-navigation'
class HomeScreen extends React.Component {... |
examples/tutorials/react-integration/front/src/index.js | softindex/datakernel | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
react_state/index.android.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import setup from './setup'
AppRegistry.registerComponent('react_state', () => setup);
|
src/containers/Launch/LaunchView.js | yursky/recommend | /**
* Launch Screen
* - Shows a nice loading screen whilst:
* - Preloading any specified app content
* - Checking if user is logged in, and redirects from there
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes... |
game-new/src/utils/Icon.js | d07RiV/d3planner | import React from 'react';
import classNames from 'classnames';
class Icon extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {visible: false};
}
onLoad = () => {
this.setState({visible: true});
}
componentWillReceiveProps(newProps) {
if (newProps.src ... |
app/routes.js | alexdibattista/no-noise | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { HashRouter as Router } from 'react-router-dom';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
export defa... |
src/sidebar/app/router.js | cedricium/notes | import React from 'react';
import { HashRouter, Route } from 'react-router-dom';
import ListPanel from './components/ListPanel';
import EditorPanel from './components/EditorPanel';
const styles = {
container: {
flex: '100%',
display: 'flex',
flexDirection: 'column'
}
};
class Router extends React.Co... |
src/sources/youtube/ImportPanel.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { IDLE, LOADING, LOADED } from '../../constants/LoadingStates';
import { addMediaMenu as openAddMediaMenu } from '../../actions/PlaylistActionCreators';
import { PLA... |
src/components/common/svg-icons/image/crop-din.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropDin = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/>
</SvgIcon>
);
ImageCropDin = pure(ImageCropDin);
Image... |
geonode/contrib/monitoring/frontend/src/components/organisms/ws-analytics/index.js | kartoza/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import HoverPaper from '../../atoms/hover-paper';
import HR from '../../atoms/hr';
import WSServiceSelect from '../../molecules/ws-service-select';
import ResponseTime from '../../cels/response-time';
import Throughput... |
src/components/App.js | dzwiedziu-nkg/books-collection-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import 'bootstrap';
import './basic/EditButton';
import '../styles/App.css';
import EditButton from "./basic/EditButton";
class AppComponent extends React.Component {
static propTypes = {
brand_name: PropType... |
src/components/Header.js | codevinsky/deep-ellum-jukebox-ui | import React from 'react';
import { Grid, Row, Col, Button, Glyphicon, Input } from 'react-bootstrap';
import FitterHappierText from 'react-fitter-happier-text';
import ReactFitText from 'react-fittext';
import { Hatchshow, FullScreenSearch, BigText } from './index';
class Header extends React.Component {
construc... |
javascript/src/containers/ViewToggleContainer.js | unclecheese/silverstripe-kickassets | import React from 'react';
import Reflux from 'reflux';
import Navigation from '../actions/Navigation';
import ViewToggle from '../views/ViewToggle';
const ViewToggleContainer = React.createClass({
mixins: [
React.addons.PureRenderMixin,
Reflux.ListenerMixin
],
propTypes: {
routerParams: React.PropTypes.obj... |
components/CheckboxGroup/index.js | azl397985856/ltcrm-components | import React from 'react';
import {Col} from 'antd';
import Checkbox from 'rc-checkbox';
const CheckboxGroup = React.createClass({
getDefaultProps() {
return {
prefixCls: 'ant-checkbox',
options: [],
defaultValue: [],
onChange() {},
span: 4,
};
},
propTypes: {
defaultVal... |
app/javascript/mastodon/components/__tests__/display_name-test.js | ambition-vietnam/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import DisplayName from '../display_name';
describe('<DisplayName />', () => {
it('renders display name + account name', () => {
const account = fromJS({
username: 'bar',
acct: 'bar@baz',
... |
pilgrim3/components/serviceBrowser.js | opendoor-labs/pilgrim3 | import React from 'react';
import state from './state';
import { Link } from 'react-router';
import { map } from 'lodash';
import { relativeName } from './utils';
import ProtoInfo from './protoInfo';
import DocBlock from './docBlock';
import OptionsPopover from './optionsPopover';
export default class ServiceBrowser e... |
webapp/src/containers/search/logList.js | nathandunn/agr | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Tooltip, OverlayTrigger } from 'react-bootstrap';
import style from './style.css';
const DEFAULT_LABEL = 'Homologs';
const HIGHLIGHT_EL = 'em';
import { selectQueryParams } from '../../selectors/searchSelectors';
class LogListCo... |
sourcestats/webpack/main.js | Fizzadar/SourceServerStats | // Source Server Stats
// File: sourcestats/webpack/main.jsx
// Desc: frontend entry-point
import React from 'react';
import ReactDOM from 'react-dom';
// Not included by default
import 'react-select/less/default.less';
import 'metrics-graphics/dist/metricsgraphics.css';
import './main.less';
import { App } from './... |
client/src/js/components/Nav/Footer.js | yassinej/oerk_v4 | import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<div className="container-fluid p-1 p-md-3 text-center bg-warning">
Footer
</div>
);
}
}
export default Footer;
|
src/scripts/modules/guest/forgot/UserForgotComponent.js | arikanmstf/userauth | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import InputText from '../../../common/input/InputText';
class UserForgotComponent extends Component {
constructor (props) {
super(props);
this.state = props;
this.submitForgotForm = this.submitForgotForm.bind(th... |
src/Divider/Divider.spec.js | lawrence-yu/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Divider from './Divider';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Divider />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {contex... |
ui/lib/search.js | Bit-Nation/BITNATION-Pangea | 'use babel'
import React from 'react'
import ssbref from 'ssb-ref'
import app from './app'
import u from 'patchkit-util'
import social from 'patchkit-util/social'
import t from 'patchwork-translations'
const MAX_CHANNEL_RESULTS = 3
const MAX_USER_RESULTS = 3
export function getResults (query) {
var results = []
... |
src/svg-icons/av/forward-10.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward10 = (props) => (
<SvgIcon {...props}>
<path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0... |
stories/list/index.js | JerryBerton/dh-component | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import withReadme from 'storybook-readme/with-readme';
import { List, Menu, Dropdown, Icon, Avatar} from '../../src';
import listReadme from './list.md';
const addWithInfoOptions = { inline: true, propTables: false };
const menu ... |
src/routes/appointment/EditAppointment.js | chunkiat82/rarebeauty-ui | import React from 'react';
import moment from 'moment';
import Appointment from './components/Individual';
import Layout from '../../components/Layout';
import {
listContacts,
getAppointment,
queryPastAppointments,
getServices,
cancelAppointment,
updateAppointment,
} from './common/functions';
import Cancel... |
public/components/tehtPage/tabsComponents/templates/KuvatVideotTemplate.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import MainContent from './MainContent';
const KuvatVideotTemplate = (props) => (
<div className="kuvatvideot-grid">
<MainContent component={props.component} className="kuvatvideotcontent" {...props} />
</div>
);
export default KuvatVideotTemplate; |
src/components/frankulator/Conductors.js | SashaKoro/reactulator | import React from 'react';
import styled from 'styled-components';
const LeftConductor = styled.span`
background-color: gray;
float: left;
color: red;
float: left;
height: 40px;
width: 40px;
margin-left: -47px;
margin-top: -55px;
-webkit-border-radius: 5px 0 0 5px;
`;
const RightConductor = styled(L... |
src/hello.js | GRT/react-example | import React from 'react';
export default React.createClass({
render: function() {
return <div>Hello {this.props.name}</div>;
}
}); |
pollard/components/Setlist.js | spencerliechty/pollard | import React, { Component } from 'react';
import SearchSong from './SearchSong';
import AddedSongs from './AddedSongs';
import NewPlaylistInstructions from './NewPlaylistInstructions.js';
export default class Setlist extends Component {
render() {
const {
songs,
} = this.props;
return (
<... |
static/src/components/RegisterView.js | PMA-2020/pma-translation-hub | /* eslint camelcase: 0, no-underscore-dangle: 0 */
import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import * as action... |
src/svg-icons/content/add-circle.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAddCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/>
</SvgIcon>
);
ContentAddCircle = pure(Cont... |
src/layouts/index.js | jameslutley/jameslutley.com | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Img from 'gatsby-image'
import Helmet from 'react-helmet'
import { injectGlobal } from 'emotion'
import { ThemeProvider } from 'emotion-theming'
import { normalize } from 'polished'
import t from 'tachyons-js'
import { t... |
src/app/components/loadingSpinner.js | nazar/sound-charts-react-spa | import React from 'react';
export default React.createClass({
render() {
return (
<div className="loading-spinner">
<i className="fa fa-cog fa-spin"></i>
</div>
);
}
}); |
packages/react-error-overlay/src/components/Collapsible.js | viankakrisna/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.
*/
/* @flow */
import React, { Component } from 'react';
import { black } from '../styles';
import type { Element as ReactElement } from '... |
src/components/BreadcrumbItem/BreadcrumbItem.js | wfp/ui | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import Link from '../Link';
import settings from '../../globals/js/settings';
const { prefix } = settings;
const newChild = (children, disableLink, href) => {
if (disableLink === true) {
return <span>{children}</... |
MadWare.Hathor.FrontEnd/src/js/components/server/PlayerControls.js | zvizdo/MadWare.Hathor | import React from 'react'
class PlayerControls extends React.Component {
onNewPlaylist(e) {
this.props.onNewPlaylistClick();
}
onCleanPlayed(e) {
this.props.onCleanPlayedClick();
}
onRepeatSettingChange (e) {
this.props.onRepeatChange(e.target.checked);
}
onShuffleSettingChange (e) {
... |
app/admin/dashboard/HomeNavigate.js | ecellju/internship-portal | import React from 'react';
import PropTypes from 'prop-types';
import { Route } from 'react-router-dom';
import HomeTab from './HomeTab';
import PostView from '../post/PostView';
const HomeNavigate = ({ match }) => (
<div>
<Route exact path={match.url} component={HomeTab} />
<Route path={`${match.url}/:id`}... |
admin/client/App/screens/Item/components/EditForm.js | w01fgang/keystone | import React from 'react';
import moment from 'moment';
import assign from 'object-assign';
import {
Form,
FormField,
FormInput,
Grid,
ResponsiveText,
} from '../../../elemental';
// import { css, StyleSheet } from 'aphrodite/no-important';
import { Fields } from 'FieldTypes';
import { fade } from '../../../../ut... |
node_modules/antd/es/breadcrumb/BreadcrumbItem.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
test/js/release_test/PhysicsGroupTest.js | viromedia/viro | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import {
ViroScene,
ViroBox,
ViroMaterials,
ViroNode,
ViroImage,
ViroVideo,
ViroFlexView,
V... |
lib/components/displayConversation.js | jksmall0631/shoot-da-breeze | import React from 'react';
import DisplayMessage from './DisplayMessage';
const DisplayConversation = ({messages, userMessages, reverse})=>{
if(userMessages) {
if(reverse){
return (
<ul className="message-container">
{userMessages.reverse().map((message) => {
return (<DisplayM... |
source/containers/ContentPage/index.js | mikey1384/twin-kle | import React from 'react';
import PropTypes from 'prop-types';
import { Route, Switch } from 'react-router-dom';
import NotFound from 'components/NotFound';
import { css } from 'emotion';
import { mobileMaxWidth } from 'constants/css';
import Content from './Content';
ContentPage.propTypes = {
match: PropTypes.objec... |
react-ui/src/components/shared/GenericLoader.js | EdwinJow/truthindata | import React, { Component } from 'react';
import '../../css/shared/generic-loader.min.css';
class GenericLoader extends Component {
constructor(props) {
super(props);
this.state = {
open: props.open
};
}
componentWillReceiveProps(nextProps) {
if (nextPro... |
src/svg-icons/notification/do-not-disturb.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturb = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13... |
beta/frontend-frameworks/calculator/src/main.js | GregoryGoncalves/freecodecamp | /*
Author: Selhar
Date: 2017
Contact: selhar@protonmail.com
License: GPL
*/
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import Index from './components/indexComponent';
import store from './store';
const css = require('./main.scss');
render(
<P... |
node_modules/react-router/es6/IndexRoute.js | laere/country-news | 'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e... |
src/js/ui/components/tabMenu.js | hiddentao/heartnotes | import _ from 'lodash';
import React from 'react';
import Classnames from 'classnames';
var Tab = React.createClass({
propTypes: {
data: React.PropTypes.object.isRequired,
onSelect: React.PropTypes.func.isRequired,
active: React.PropTypes.bool,
attention: React.PropTypes.object,
},
render: fun... |
src/components/LandingStatic/LandingNavItems.js | ortonomy/flingapp-frontend | import React from 'react';
// library dependencies
import { Link } from 'react-router-dom';
// styles
import styles from './LandingNav.module.css';
const LandingNavItems = ({ items, ...props}) => {
return (
<div className={styles.NavBarNavItems}>
{
items && items.map( (item, i) => {
ret... |
components/person-view.js | pho3nixf1re/followupboss-example | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import State from 'lib/state';
import {actions as peopleActions} from 'lib/reactions/people';
import Person from 'components/person';
const PersonView = React.createClass({
propTypes: {
state: React.PropTypes.object,
params: React.P... |
kitsune/sumo/static/sumo/js/tests/crashidtests.js | mythmon/kitsune | import {default as mochaJsdom, rerequire} from 'mocha-jsdom';
import {expect} from 'chai';
import React from 'react';
import mochaK from './fixtures/mochaK.js';
import mochaJquery from './fixtures/mochaJquery.js';
import mochaGettext from './fixtures/mochaGettext.js';
import mochaMarky from './fixtures/mochaMarky.js';... |
docs/src/app/components/pages/get-started/ServerRendering.js | mtsandeep/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import serverRenderingText from './server-rendering.md';
const ServerRendering = () => (
<div>
<Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} />
<MarkdownElemen... |
client/components/HomePage.js | GO345724/pair-programming | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as problemsActions from '../actions/problemsActions';
import * as userActions from '../actions/userActions.js';
import ChooseUserName from './ChooseUser... |
src/routes/hat/Hat.js | macdja38/pvpsite | /**
* 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 PropTypes... |
src/React/Widgets/NumberSliderWidget/example/index.js | Kitware/paraviewweb | import 'normalize.css';
import React from 'react';
import ReactDOM from 'react-dom';
import NumberSliderWidget from 'paraviewweb/src/React/Widgets/NumberSliderWidget';
class ColorField extends React.Component {
constructor(props) {
super(props);
this.state = {
r: 30,
g: 60,
b: 90,
};
... |
frontend/src/components/popup/ProductDetails.js | jirkae/BeerCheese | import React from 'react';
import { Modal, ModalBody, Container, Row, Col } from 'reactstrap';
export default props => {
return (
<Modal isOpen={true} toggle={props.hideModals}>
<ModalBody>
<Container>
<Row>
<Col>
<Row>
{props.data.name}
... |
resource/js/components/Page/PageBody.js | kyonmm/crowi | import React from 'react';
export default class PageBody extends React.Component {
constructor(props) {
super(props);
this.crowiRenderer = window.crowiRenderer; // FIXME
this.getMarkupHTML = this.getMarkupHTML.bind(this);
}
getMarkupHTML() {
let body = this.props.pageBody;
if (body === '')... |
packages/material-ui-icons/src/CheckCircle.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CheckCircle = props =>
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" />
</SvgIcon>;
CheckCircle = ... |
src/svg-icons/notification/sync.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSync = (props) => (
<SvgIcon {...props}>
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25... |
Realization/frontend/czechidm-core/src/components/basic/Table/LinkCell.js | bcvsolutions/CzechIdMng | import React from 'react';
import { Link } from 'react-router-dom';
import pathToRegexp from 'path-to-regexp';
import _ from 'lodash';
//
import { SecurityManager } from '../../../redux';
import DefaultCell from './DefaultCell';
import Popover from '../Popover/Popover';
import Button from '../Button/Button';
// TODO: L... |
geonode/contrib/monitoring/frontend/src/components/molecules/ws-service-select/index.js | timlinux/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
import actions from './actions';
const mapStateToProps = (state) => ({
services: state.wsServices.response,
select... |
src/components/SurveyPage/__tests__/surveypage-tests.js | mattroid/turboiep | /* global define, it, describe, expect */
jest.dontMock('../SurveyPage'); // eslint-disable-line no-undef
import React from 'react'
// import ReactDOM from 'react-dom'
import TestUtils from 'react-addons-test-utils'
const SurveyPage = require('../SurveyPage')
describe('profile page', () => {
it('should exist', () ... |
docs/src/CodeExample.js | HorizonXP/react-bootstrap | import React from 'react';
export default class CodeExample extends React.Component {
render() {
return (
<pre className="cm-s-solarized cm-s-light">
<code>
{this.props.codeText}
</code>
</pre>
);
}
componentDidMount() {
if (CodeMirror === undefined) {
ret... |
packages/mineral-ui-icons/src/IconNearMe.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconNearMe(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>... |
packages/cf-component-label/example/basic/component.js | mdno/mdno.github.io | import React from 'react';
import { Label } from 'cf-component-label';
const LabelComponent = () => (
<p>
<Label type="default">Default</Label>
<Label type="info">Info</Label>
<Label type="success">Success</Label>
<Label type="warning">Warning</Label>
<Label type="error">Error</Label>
</p>
);
... |
mla_game/front-end/javascript/components/partials/menu_footer.js | WGBH/FixIt | import React from 'react'
import Modal from 'react-modal'
import { PopupCenter } from '../../helpers'
import { patchData } from '../../helpers'
class MenuFooter extends React.Component {
constructor(){
super()
this.setModal = this.setModal.bind(this)
this.closeModal = this.closeModal.bind(this)
this.... |
src/routes/error/index.js | peeyush1234/react-nodejs-skeleton | /**
* 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/front/js/routes.js | raccoon-app/ui-kit | import React from 'react';
import { Route } from 'react-router';
import { IndexRoute } from 'react-router';
import Auth from './containers/Auth';
import ProjectSelection from './containers/ProjectSelection';
import Project from './containers/Project';
export default () => (
<Route path="/" >
<IndexRoute c... |
src/svg-icons/navigation/subdirectory-arrow-right.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowRight = pure(Navigat... |
src/containers/Asians/Published/Debaters/DebaterRoster/SmallDebaterRoster.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import List, {
ListItem,
ListItemText
} from 'material-ui/List'
import Paper from 'material-ui/Paper'
export default connect(mapStateToProps)(({
debaters,
teamsById,
institutionsById
}) => {
debaters.sort((a, b) => {
if (
teamsById[... |
src/svg-icons/editor/insert-link.js | mmrtnz/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... |
node_modules/react-router/es/RouteUtils.js | vietvd88/developer-crawler | 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';
function isValidChild(object) {
... |
project/src/pages/Page/components/PageLayout/PageLayout.js | boldr/boldr | // @flow
import React from 'react';
import type { Node } from 'react';
import { Footer, Container } from '@boldr/ui/Layout';
import styled from 'styled-components';
import View from '@boldr/ui/View';
import Navigation from '../Navigation';
import type { CurrentUser, RouterLocation, MenuType } from '../../../../types/bo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.