path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
node_modules/react-bootstrap/es/Form.js | superKaigon/TheCave | 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 ... |
definitions/npm/styled-components_v2.x.x/flow_v0.104.x-/test_styled-components_native_v2.x.x.js | flowtype/flow-typed | // @flow
import nativeStyled, {
ThemeProvider as NativeThemeProvider,
withTheme as nativeWithTheme,
keyframes as nativeKeyframes,
} from 'styled-components/native'
import React from 'react'
import type {
Theme as NativeTheme,
Interpolation as NativeInterpolation,
ReactComponentFunctional as NativeReactCompo... |
src/screens/About/About.js | frostney/react-app-starterkit | import React from 'react';
const About = () => (
<div styleName="container">
<div>About page</div>
</div>
);
export default About;
|
src/components/Header.js | byoigres/minutes | import React from 'react';
import styled from 'styled-components';
const Header = styled.h1`
margin: 0;
padding: 0;
z-index: 5;
@media only screen and (max-width: 62rem) { /** width < 62rem */
font-size: 2rem;
margin: 2rem 1rem;
}
`;
const Wrapper = ({ text }) => (
<Header>
{text}
</Header>... |
client/src/Components/UserProfile/UserProfile.js | teamcrux/EmploymentOptions | import React from 'react';
import { Field, FieldArray, reduxForm } from 'redux-form';
import UserHeader from '../UserHeader';
import UserNavBar from '../UserNavBar';
import ClientEdit from './ClientEdit';
import ClientPersonalEdit from './ClientPersonalEdit';
import ClientIncomeEdit from './ClientInsuranceEdit';
impor... |
lib/shared/screens/admin/shared/components/page-builder-menu/tabs/style/style-picker/index.js | relax/relax | import * as stylesActions from 'actions/styles';
import bind from 'decorators/bind';
import find from 'lodash/find';
import Component from 'components/component';
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import StyleP... |
src/docs/examples/PasswordInput/ExampleAllFeatures.js | nreoch25/react-package-dev | import React from 'react';
import PasswordInput from 'react-package-dev/PasswordInput';
/** All features enabled */
class ExampleAllFeatures extends React.Component {
constructor(props) {
super(props);
this.state = {
password: ''
};
}
getQuality() {
const length = this.state.password.leng... |
src/common/components/repositories-home/index.js | canonical-websites/build.snapcraft.io | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { hasSnaps, snapsWithNoBuilds } from '../../selectors';
import { fetchUserSnaps } from '../../actions/snaps';
import { fetchBuilds, requestBuilds } from... |
app/javascript/mastodon/features/ui/components/bundle.js | kibousoft/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const emptyComponent = () => null;
const noop = () => { };
class Bundle extends React.Component {
static propTypes = {
fetchComponent: PropTypes.func.isRequired,
loading: PropTypes.func,
error: PropTypes.func,
children: PropTypes.func.i... |
src/Gravatar.js | alayek/Instagur | import React, { Component } from 'react';
import md5 from 'md5';
import Avatar from './Avatar';
import Email from './Email';
export default class Gravatar extends Component {
constructor(props) {
super(props);
this.state = {
email: 'someone@example.com',
src: 'http://placehold.it/200x200',
}... |
app/javascript/mastodon/components/media_gallery.js | pointlessone/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
import class... |
shared/components/Equilab/Testimonials/Testimonials.js | thehink/equilab-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import image1 from 'assets/images/c.png';
import image2 from 'assets/images/s.png';
import image3 from 'assets/images/m.png';
import Card from 'Equilab/Card';
import styles from './Testimonials.scss';
const testimonials = [
{
descri... |
attic/gatsby/pages/index.js | staystatic/staystatic | import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
import links from 'data/links' // check rename to data.links - why? Why not? possible?
import PostList from 'components/PostLis... |
src/server.js | sfarthin/youtube-search | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
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';
import ApiC... |
src/main.js | peter-suggate/Vibrato-Assistant | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
src/client/assets/js/nodes/datastores/webcam/node.js | me-box/iot.red | import React from 'react';
import Textfield from 'components/form/Textfield';
import Cell from 'components/Cell';
import Cells from 'components/Cells';
import {configNode} from 'utils/ReactDecorators';
@configNode()
export default class Node extends React.Component {
render() {
const namep... |
fields/types/geopoint/GeoPointField.js | dvdcastro/keystone | import Field from '../Field';
import React from 'react';
import { FormRow, FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'GeopointField',
statics: {
type: 'Geopoint',
},
focusTargetRef: 'lat',
handleLat (event) {
const { value = [], path, onChange } = this.props;
c... |
src/pages/HomePage.js | ihenvyr/react-parse | import React from 'react';
import Helmet from 'react-helmet';
import { withRouter } from 'react-router';
import Welcome from '../components/Welcome';
import Grid from 'grid-styled';
const HomePage = () => {
return (
<div>
<Helmet
title="Home"
meta={[
{ name: "description", content... |
example/src/components/layout/html.js | dailymotion/react-collider | import React from 'react'
import {RouteHandler} from 'react-router'
import Head from './head/head'
import Header from './header/header'
import Footer from './footer/footer'
import Sidebar from './sidebar/sidebar'
import stringify from 'json-stable-stringify'
export default class Html extends React.Component {
stat... |
webapp/components/widgets/PlayerWidget.js | marinvvasilev/homeinfotainment | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import '../styles/player-widget.scss';
const io = require('socket.io-client');
const socket = io();
export default class PlayerWidget extends React.Component {
constructor(props) {
super(props);
}
... |
src/app/components/SnackbarExampleSimple.js | leoliew/react-webpack-example | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
import ShowCaseCard from './ShowCaseCard';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
... |
client/views/error/ErrorPage.js | kriasoft/AspNet-Server-Template | /**
* ASP.NET Core Starter Kit (https://dotnetreact.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 history from '../../his... |
src/components/categories/CategoryRenderables.js | ello/webapp | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import classNames from 'classnames'
import UserContainer from '../../containers/UserContainer'
import CategoryInfoTriggerContainer from '../../containers/CategoryInfoTriggerContainer'
import CategorySubscribeButtonContainer... |
src/components/PushOpenRate/PushOpenRate.example.js | 6congyao/CGB-Dashboard | /*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import React from 'react';
import Field from 'components/Field/Field.react';
import PushOpenRate from 'components/PushOpen... |
src/js/components/gallery__list/index.js | Arlefreak/web_client.afk | import PropTypes from 'prop-types';
import React from 'react';
import Image from '../gallery__row';
const ImageList = ({ images }) => {
return (
<section className="gallery">
{images.map(image => <Image key={image.id} {...image} />)}
</section>
);
};
ImageList.propTypes = {
images: PropTypes.array... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableRow.js | dryna/keystone-twoje-urodziny | import React from 'react';
import classnames from 'classnames';
import ListControl from '../ListControl';
import { Columns } from 'FieldTypes';
import { DropTarget, DragSource } from 'react-dnd';
import {
setDragBase,
resetItems,
reorderItems,
setRowAlert,
moveItem,
} from '../../actions';
const ItemsRow = Rea... |
examples/demos/timeslots.js | martynasj/react-big-calendar | import React from 'react';
import BigCalendar from 'react-big-calendar';
import events from '../events';
let Timeslots = React.createClass({
render(){
return (
<BigCalendar
{...this.props}
events={events}
step={15}
timeslots={8}
defaultView='week'
defaultDate... |
src/parser/warlock/affliction/modules/talents/ShadowEmbrace.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import { encodeTargetString } from 'parser/shared/modules/EnemyInstances';
import SPELLS from 'common/SPELLS';
impor... |
app/javascript/mastodon/containers/account_container.js | riku6460/chikuwagoddon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../selectors';
import Account from '../components/account';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
muteAc... |
react/features/filmStrip/components/native/DominantSpeakerIndicator.js | bickelj/jitsi-meet | import React, { Component } from 'react';
import { View } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import { styles } from './styles';
/**
* Thumbnail badge showing that the participant is the dominant speaker in
* the conference.
*/
export class DominantSpeakerIndicator extend... |
app/src/client/components/treemap/scales-utils.js | Astrolavos/THACO | // Copyright (c) 2016 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, merge... |
client/index.prod.js | schenedx/studentgarden | import 'babel-polyfill';
import React from 'react';
import routes from '../shared/routes';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { configureStore } from '../shared/redux/store/configureStore';
const store = configureSto... |
src/carousel/index.js | sadpig1993/react-mini-component | /**
* @file Carousl 跑马灯
* @author xijiawei@baidu.com
* @description
* react写的跑马灯组件
*/
import React from 'react';
import {InnerSlider} from './inner-slider';
import assign from 'object-assign';
import styles from './carousel.css'
var defaultProps = {
slidesToShow: 1,
slidesToScroll: 1,
touchThresh... |
src/components/DatabaseList/Databases/DatabaseSummary/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { getLinkObject } from 'shared/ContentfulLibs'
import { KIND } from 'actions/personal/favorites'
import Presenter from './presenter.js'
const DatabaseSummaryContainer = (props) => {
const linkObject = getLinkObj... |
app/javascript/mastodon/features/ui/components/column_link.js | robotstart/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
const ColumnLink = ({ icon, text, to, href, method, hideOnMobile }) => {
if (href) {
return (
<a href={href} className={`column-link ${hideOnMobile ? 'hidden-on-mobile' : ''}`} data-method={method}>
... |
examples/star-wars/src/components/StarWarsApp.js | denvned/isomorphic-relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
packages/react/src/components/DataTable/TableToolbar.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { settings } from 'carbon-components';
imp... |
docs/src/modules/components/AppDrawerNavItem.js | AndriusBil/material-ui | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import Link from 'docs/src/modules/components/Link';
import classNames from 'classnames';
import { withStyles } from 'material-ui/styles';
import { ListItem } from 'material-ui/List';
import Button from 'material-ui/Button';
import Collapse from '... |
src/components/error/e504/index.js | vshao/webapp | import React from 'react'
import Bundle from '@/router/bundle'
import load from 'bundle-loader?lazy&name=[E504]!./lazy'
const view = props => {
return (
<Bundle load={load}>
{View => {
return <View {...props} />
}}
</Bundle>
)
}
export { view }
|
src/containers/ImageModal.js | Hylozoic/hylo-redux | import React from 'react'
import Modal from '../components/Modal'
import Icon from '../components/Icon'
const { func, string } = React.PropTypes
const leftOffset = () => {
if (typeof window === 'undefined') return 0
const main = document.getElementById('main')
if (!main) return 0 // this should be the case only ... |
examples/Transition.js | jedverity/react-overlays | import React from 'react';
import Transition from 'react-overlays/Transition';
import Button from 'react-bootstrap/lib/Button';
import injectCss from './injectCss';
const FADE_DURATION = 200;
injectCss(`
.fade {
opacity: 0;
-webkit-transition: opacity ${FADE_DURATION}ms linear;
-o-transition: opacity ${FAD... |
client/trello/src/app/routes/home/routes/boardView/components/Cards/Cards.js | Madmous/Trello-Clone | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import PropTypes from 'prop-types';
import { CreateCard, Card } from '../index';
import './Cards.css';
const propTypes = {
isCreateCardFormOpen: PropTypes.bool.isRequired,
... |
src/components/header/CornerButton.js | samihda/pizza | import React from 'react';
const CornerButton = ({ step, onStartClick, onCancelClick }) => {
switch (step) {
case 0:
return (<button className="red pure-button button-large" onClick={onStartClick}>ORDER TODAY'S MEAL</button>);
case 4:
return (
<button className="green pure-button button-l... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | peperbol/PDTplanner | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/svg-icons/navigation/expand-less.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationExpandLess = (props) => (
<SvgIcon {...props}>
<path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/>
</SvgIcon>
);
NavigationExpandLess = pure(NavigationExpandLess);
NavigationExpandLess.displa... |
node_modules/react-router/modules/Route.js | NathanBWaters/website | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
const { string, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to the
* page when the URL matches a gi... |
router/route/project.js | jstogether/jstogether | import express from 'express';
import React from 'react';
import db from '../../db';
import isAdmin from '../../middleware/isAdmin';
const Project = db.model('Project');
const Team = db.model('Team');
const router = express.Router();
/**
*
*/
router.route('/')
.get((req, res) => {
// Get all projects
console.lo... |
packages/core/tocco-util/src/route/Router.js | tocco/tocco-client | import PropTypes from 'prop-types'
import React from 'react'
import {Router as ReactRouter} from 'react-router'
import RouteWithSubRoutes from './RouteWithSubRoutes'
const Router = ({history, routes}) => (
<ReactRouter history={history}>
<React.Fragment>
{routes.map((route, i) => (
<RouteWithSubRo... |
frontend/src/components/welcome/common/LoginForm.js | dimkarakostas/unimeet | import React, { Component } from 'react';
import {Form, FormGroup, FormControl, Button, Tooltip} from 'react-bootstrap';
import ForgotPasswordModal from './ForgotPasswordModal';
import * as config from '../../config';
import axios from 'axios';
axios.defaults.withCredentials = true;
class LoginForm extends Component ... |
src/client/components/Month/Period/Form/PeriodsFormRow.js | 25th-floor/ttrack | import PropTypes from 'prop-types';
/* eslint-disable jsx-a11y/label-has-for*/
import React from 'react';
import Immutable from 'immutable';
import moment from 'moment';
import _ from 'lodash';
import TimeInput from '../../../TimeInput';
import * as periodUtils from '../../../../../common/periodUtils';
import styles ... |
src/js/components/icons/base/RestroomWomen.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/components/exercises/IntroduceLetter.stories.js | cognostics/serlo-abc | import React from 'react';
import { storiesOf } from '@storybook/react-native';
import IntroduceLetter from './IntroduceLetter';
storiesOf('exercises/IntroduceLetter', module).add('A', () => (
<IntroduceLetter
images={[
require('../../assets/images/ananas.jpg'),
require('../../assets/images/apfel.jp... |
app/javascript/mastodon/features/list_editor/components/search.js | riku6460/chikuwagoddon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists';
import classNames from 'classnames';
const messages ... |
website/src/pages/components/home/WhereNext.js | Pop-Code/keystone | import React, { Component } from 'react';
import { compose } from 'glamor';
import Link from 'gatsby-link';
import Container from '../../../../components/Container';
import { Col, Row } from '../../../../components/Grid';
import { color } from '../../../../theme';
export default class ValueProps extends Component {
r... |
src/svg-icons/action/donut-small.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutSmall = (props) => (
<SvgIcon {...props}>
<path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 1... |
fields/types/textarea/TextareaField.js | jstockwin/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'TextareaField',
statics: {
type: 'Textarea',
},
renderField () {
const { height, path, style, value } = this.props;
const styles = {
height: height,
...style,
... |
fields/types/url/UrlColumn.js | giovanniRodighiero/cms | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var UrlColumn = React.createClass({
displayName: 'UrlColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
va... |
lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | dope93x/emoplay-2 | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
packages/reactor-kitchensink/src/examples/Tabs/BottomTabs/BottomTabs.js | markbrocato/extjs-reactor | import React from 'react';
import { TabPanel, Container } from '@extjs/ext-react';
export default function BottomTabsExample() {
return (
<TabPanel
shadow
tabBar={{ docked: 'bottom' }}
defaults={{
cls: "card",
layout: "center"
... |
app/javascript/draft/helpers.js | galahq/gala | /**
* Helper functions for manipulating the Draft.js EditorState data structure
*
* @flow
*/
import React from 'react'
import { RichUtils, Modifier, EditorState, SelectionState } from 'draft-js'
import getRangesForDraftEntity from 'draft-js/lib/getRangesForDraftEntity'
import { Intent } from '@blueprintjs/core'
i... |
pootle/static/js/admin/components/ItemTableRow.js | claudep/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import cx from 'classnames';
import React from 'react';
... |
src/index.js | bryankle/dungeoncrawler | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './containers/app';
import reducers from './reducers';
const store = createStore(reducers);
ReactDOM.render(
<Provider store={store}>
<App /... |
js/src/dapps/dappreg/Warning/warning.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
app/containers/Chat/message-box.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
class MessageBox extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
constructor(props) {
super(props);
this.handleSend = this.handleSend.bind(this);
}
handleSend(event) {
if (event.which === 13) {
... |
packages/bonde-admin/src/mobilizations/components/list/items/more/more.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
// Current module dependencies
if (require('exenv').canUseDOM) require('./more.scss')
export const More = ({ index, onClick, children }) => (
<div className='more right pr3'>
<i
className='fa fa-ellipsis-h'
onClick={(e) => {
if (e)... |
Scripts/server.js | gvas/subtitle-quality-checker | import React from 'react'
import ReactDOM from 'react-dom/server'
import { createMemoryHistory, match, RouterContext } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import { Provider } from 'react-redux'
import Routes from './components/Routes'
import configureStore from './store/config... |
transitions/app/Touchable.js | lintonye/react-native-diary | import React from 'react';
import {
TouchableNativeFeedback,
TouchableOpacity,
Platform,
} from 'react-native';
const Touchable = props => {
const Comp = (Platform.OS === 'android'
? TouchableNativeFeedback
: TouchableOpacity);
return <Comp {...props} />
}
export default Touchab... |
docs/app/Examples/modules/Popup/Variations/PopupExampleHideOnScroll.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button, Popup } from 'semantic-ui-react'
const PopupExampleHideOnScroll = () => (
<div>
<Popup
trigger={<Button icon>Click me</Button>}
content='Hide the popup on any scroll event'
on='click'
hideOnScroll
/>
<Popup
trigger={<Button icon>Hov... |
clients/packages/admin-client/src/subscriptions/forms/recurring-form.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
import { reduxForm } from 'redux-form';
import { FormGroup, ControlLabel, FormControl } from '../../components/forms';
import { Pagarme } from '../../components/external-services';
import * as validationHelper from '../../utils/validation-helper';
import * ... |
src/components/common/svg-icons/image/panorama-vertical.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaVertical = (props) => (
<SvgIcon {...props}>
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02... |
local-cli/templates/HelloWorld/index.ios.js | alin23/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
js/components/fab/index.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Button, Left, Right, Body, Icon, List, ListItem, Content, Text } from 'native-base';
import { Actions } from 'react-native-router-flux';
... |
solution/vanity-website/src/components/MonkeyList.js | aarongreenwald/rn-workshop | import React from 'react';
const images = [1, 2, 3, 4, 5, 6, 7, 8, 9];
const Image = ({src, index}) =>
<div className="monkey-image">
<a href={`#/monkeys/${index}`}>
<img src={src} width="120" />
</a>
</div>;
export const MonkeyList = () =>
<div className="monkey-list">
<a href="#/">Back to H... |
src/helpers/universalRouter.js | basselAlshK/react-redux-universal-hot-example | import React from 'react';
import Router from 'react-router';
import createRoutes from '../routes';
import {Provider} from 'react-redux';
const getFetchData = (component = {}) => {
return component.WrappedComponent ?
getFetchData(component.WrappedComponent) :
component.fetchData;
};
export function createTr... |
app/components/Stats.js | jeflores7/character-voting-app | import React from 'react';
import StatsStore from '../stores/StatsStore';
import StatsActions from '../actions/StatsActions';
class Stats extends React.Component {
constructor(props) {
super(props);
this.state = StatsStore.getState();
this.onChange = this.onChange.bind(this);
}
componentDidMount() {... |
client/src/components/Lightcycle.js | alecdwm/webtron | import useClassName from 'hooks/useClassName'
import useInterpolatedLightcyclePosition from 'hooks/useInterpolatedLightcyclePosition'
import useStore from 'hooks/useStore'
import PropTypes from 'prop-types'
import React from 'react'
import { colorToHexString } from 'utils/colors'
import lightcycleImages from 'utils/lig... |
mdbreact/components/Carousel.js | ryanwashburne/react-skeleton | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './CarouselFade.css';
class Carousel extends Component {
constructor(props) {
super(props);
this.state = {
activeItem: this.props.activeItem
};
}
componentDidMount() {
... |
src/app.js | nhoon2002/BookAppReboot | import React from 'react';
import ReactDOM from 'react-dom';
import theRoutes from './routes.jsx';
import Main from './containers/Main.jsx';
ReactDOM.render(
theRoutes,
document.getElementById('root')
);
|
Harddisk Browser/Flat-UI-master/ReactJS Browser/src/client/app/js/components/Media.js | tomjose92/Fun-Projects | import React from 'react'
import Header from './common/Header'
import Gap from './common/Gap'
import Link from './common/Link'
import Icon from './common/Icon'
class MediaHTML extends React.Component {
constructor(){
super();
document.body.className="mediaBG";
}
render(){
return (
<div className="med... |
bdocker/bnodejs/gatsby/web/pages/sass.js | waterbolik/prestudy | import React from 'react'
import './example.scss'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class Sass extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi sassy friends`}
/>
<h1
cla... |
js/jqwidgets/demos/react/app/kanban/multiplekanbans/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxKanban from '../../../jqwidgets-react/react_jqxkanban.js';
class App extends React.Component {
render() {
let staff = [
{ id: 0, name: 'No name', image: '../../jqwidgets/styles/images/common.png', common: true },
... |
renderer/components/Icon/Warning.js | LN-Zap/zap-desktop | import React from 'react'
const SvgWarning = props => (
<svg height="1em" viewBox="0 0 15 14" width="1em" {...props}>
<defs>
<path
d="M9.264 1.682l5.105 9.36A2 2 0 0 1 12.613 14H2.403a2 2 0 0 1-1.757-2.958l5.106-9.36a2 2 0 0 1 3.512 0zm-1.689 8.434a.706.706 0 1 0 0 1.412.706.706 0 0 0 0-1.412zm0-5.... |
examples/real-world/containers/Root.js | voidException/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from '../store/configureStore';
import App from './App';
import UserPage from './UserPage';
import RepoPage from './RepoPage';
const store = configureStore();
export de... |
lib/component.js | rickycodes/hyper | import React from 'react';
import {StyleSheet, css} from 'aphrodite-simple';
export default class Component extends React.PureComponent {
constructor() {
super();
this.styles_ = this.createStyleSheet();
this.cssHelper = this.cssHelper.bind(this);
}
createStyleSheet() {
if (!this.styles) {
... |
lib/routes.js | gramakri/filepizza | import React from 'react'
import { Route, DefaultRoute, NotFoundRoute, RouteHandler } from 'react-router'
import App from './components/App'
import DownloadPage from './components/DownloadPage'
import UploadPage from './components/UploadPage'
import ErrorPage from './components/ErrorPage'
export default (
<Route ha... |
mxcube3/ui/components/SampleChanger/SampleChangerState.js | meguiraun/mxcube3 | import React from 'react';
import { Panel, } from 'react-bootstrap';
import './SampleChanger.css';
import '../context-menu-style.css';
/* eslint-disable react/no-multi-comp */
export default class SampleChangerState extends React.Component {
render() {
let titleBackground;
let title;
if (this.props.st... |
src/components/Blitz/BlitzHeader.js | Anshul-HL/blitz-row | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Row, Col, Image, Grid } from 'react-bootstrap';
export default class BlitzHeader extends Component {
render() {
const styles = require('./BlitzHeader.scss');
const homelanelogo = require('../../resources/homelaneLogo.png'... |
frontend/src/components/organizationProfile/countryOfficesHeaderContainer.js | unicef/un-partner-portal | import R from 'ramda';
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ControlledModal from '../common/modals/controlledModal';
import CountryOfficesHeader from './countryOfficesHeader';
import CountryProfileList from './countryProfile/countryProfileList';
im... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch05/05_03/finish/src/index.js | yevheniyc/C | import React from 'react'
import { render } from 'react-dom'
import './stylesheets/ui.scss'
import { App } from './components/App'
import { Whoops404 } from './components/Whoops404'
import { Router, Route, hashHistory } from 'react-router'
window.React = React
render(
<Router history={hashHistory}>
<Route path="/"... |
src/svg-icons/social/people.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.... |
src/svg-icons/action/assessment.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssessment = (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-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
ActionA... |
src/svg-icons/av/sort-by-alpha.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSortByAlpha = (props) => (
<SvgIcon {...props}>
<path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ... |
docs/src/app/components/pages/components/Slider/ExampleAxis.js | manchesergit/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
const styles = {
root: {
display: 'flex',
height: 124,
flexDirection: 'row',
justifyContent: 'space-around',
},
};
/**
* The orientation of the slider can be reversed and rotated using the `axis` prop.
*/
const SliderExampleAxis... |
app/scripts/components/node-details/node-details-generic-table.js | hustbill/network-verification-ui | import React from 'react';
import sortBy from 'lodash/sortBy';
import { Map as makeMap } from 'immutable';
import { NODE_DETAILS_DATA_ROWS_DEFAULT_LIMIT } from '../../constants/limits';
import {
isNumber,
getTableColumnsStyles,
genericTableEntryKey
} from '../../utils/node-details-utils';
import NodeDetailsTabl... |
docs/app/Examples/elements/Segment/Types/SegmentPiledExample.js | jcarbo/stardust | import React from 'react'
import { Segment } from 'stardust'
const SegmentPiledExample = () => (
<Segment piled>
Pellentesque habitant morbi tristique senectus.
</Segment>
)
export default SegmentPiledExample
|
lib/app.js | Markcial/electro-corder | import React from 'react';
import {Slider, Button, Timer} from "./ui/core"
import {TabbedArea, TabPane} from 'react-bootstrap';
import Canvas from "./canvas"
import remote from 'remote';
import GIF from 'readwrite-gif';
var GIFEncoder = GIF.Encoder;
var fs = remote.require('fs');
class App extends React.Component {
... |
packages/mineral-ui-icons/src/IconBluetoothDisabled.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 IconBluetoothDisabled(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...... |
public/js/components/Popup/Action/Read/User/Profile/ReadOnlyLocation.js | RoberMac/Oneline | import React from 'react';
import Icon from 'components/Utils/Icon';
export default ({ location }) => (
location ? (
<span className="post__location">
<Icon className="post-action__icon" name="location" />
<span className="post__location__name">{location}</span>
</span>
... |
src/components/Scenes.js | StillLearnin/time-clock-ui | import React from 'react';
import { Component } from 'react';
// show/hide a child component based on a given scene
export class Scene extends Component {
render() {
if (this.props.scene === this.props.current ) {
return (
this.props.children
);
} else {
return null;
}
}
}
... |
client/modules/Post/__tests__/components/PostListItem.spec.js | zivkaziv/MazorTech | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import PostListItem from '../../components/PostListItem/PostListItem';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.