path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/Main/FullscreenError.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import AppBackgroundImage from './AppBackgroundImage';
import DiscordButton from './DiscordButton';
import GithubButton from './GithubButton';
import PatreonButton from './PatreonButton';
const FullscreenError = ({ error, details, background, children }) ... |
stories/article.js | CommonActionForum/liqen-face | import React from 'react'
import { storiesOf } from '@storybook/react'
import ArticleBackground from '../client/components/annotators/article-background'
storiesOf('ArticleBackground', module)
.add('An array of paths and nodes', () => {
const paths = [
{
nodes: [
{x: 20, y: 30},
... |
src/svg-icons/device/signal-wifi-2-bar.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi2Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M4.79 12.52l7.2 8.98H12l... |
client/src/index.js | QuizChatbot/quiz-chatbot | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import store from './store'
import firedux from './store/firedux'
import * as Actions from './actions'
import App from './containers/App'
// import 'todomvc-app-css/index.css'
firedux.watch('Developer').then(() => {
s... |
src/lib/components/tips/toast.js | lighter-cd/ezui_react_one | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import injectSheet from 'react-jss';
import classNames from 'classnames';
const styles = {
wrap: {
position: 'fixed',
bottom: props => props.bottom,
left: props => props.side,
right: props => props.side,
color: '#fff',
... |
src/components/App.js | chengjianhua/templated-operating-system | import React from 'react';
import Layout from './Layout';
import routes from '../routes';
class App extends React.Component {
render() {
return (
<Layout>
{routes}
</Layout>
);
}
}
export default App;
|
app/javascript/mastodon/components/status_list.js | mosaxiv/mastodon | import { debounce } from 'lodash';
import React from 'react';
import { FormattedMessage } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-p... |
src/svg-icons/image/flash-off.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOff = (props) => (
<SvgIcon {...props}>
<path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/>
</SvgIcon>
);
ImageFlashOff = pure(ImageFlashOf... |
HomeRange/app/pages/coupons/Coupons.js | Onlyjson/yanShu_Project | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
Platform,
TouchableOpacity,
StatusBar,
AsyncStorage
} from 'react-native';
import { Toast,ActivityIndicator } from 'antd-mobile'
import Coupons_Item from './component/List_Item_Coupons'
import config from... |
app.js | annamalai-saro/react-floating-label | import React from 'react';
import FloatingLabel from './main.js';
const target = document.getElementById('content');
React.render(<FloatingLabel autoComplete={false} errorMsg='Full name can contain only the alphabets and space'
pattern={/^[a-z\s]+$/i}/>,target);
|
core/router.js | wasap/beauty_salon | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
js/views/NotFound/index.js | c-h-/universal-native-boilerplate | import React from 'react';
import {
View,
Text,
} from 'react-native';
import styles from './styles';
const NotFound = () => {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Nothing found here
</Text>
</View>
);
};
export default NotFound;
|
app/javascript/mastodon/features/direct_timeline/index.js | amazedkoumei/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandDirectTimeline } from '.... |
tests/components/Header/Header.spec.js | nnti3n/pc-checker-client | import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header/>)
})
it('Renders a welcome message', () => {
c... |
src/index.js | Shuki-L/ps-react-shuki | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Docs from './docs/Docs';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<Docs />, document.getElementById('root'));
registerServiceWorker();
|
react/src/routes/register/index.js | Blackbaud-BethRichardson/skywalker | /**
* 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 Register from './Registe... |
src/containers/UpdateUserDataForm.js | onlinebooking/booking-frontend | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import Spinner from '../components/Spinner';
import { rejectFormErrorsFromResponse } from '../utils/form';
import { updateUserData } from '../actions/user-profile';
import {
createValidator,
required,
email as emailValidationRule
} ... |
tests/components/purseComponentTest.js | mordrax/cotwmtor | import React from 'react';
import ReactDom from 'react-dom';
import {shallow} from 'enzyme';
import * as cotw from '/core/cotwContent.js';
import * as map from '/core/maps.js';
import * as Item from '/core/item.js';
import _ from 'lodash';
import * as actions from '/actions/index.js';
import {storeSetup, dispatch, ge... |
client/internals/templates/containers/LanguageProvider/index.js | KamillaKhabibrakhmanova/postcardsforchange-api | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
node_modules/react-bootstrap/es/Popover.js | ivanhristov92/bookingCalendar | 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 ... |
docs/src/sections/ModalSection.js | mmarcant/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ModalSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
src/components/StatsBar.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
class StatsBar extends React.Component {
static propTypes = {
collective: PropTypes.object.isRequired,
};
render() {
return (
<div className="StatsBar">
<style jsx>
{`
.StatsBar {
background-... |
src/components/FilterList.js | guryanov-a/react-search | import React from 'react';
import FilterItem from './FilterItem';
const FilterList = ({
filters,
onFilterItemClick,
}) => (
<ul className="filter-group__list filter-list">
{
filters.map((filter, i) =>
<FilterItem
key={i}
{...filter}
onChange={onFilterItemClick}
... |
Web Developer Skills/Learn ReactJS Part II/Unit 10 Updating & Unmounting Lifecycle Methods/05 componentDidUpdate/App.js | ummahusla/codecademy-exercise-answers | import React from 'react';
import ReactDOM from 'react-dom';
import { TopNumber } from './TopNumber';
import { Display } from './Display';
import { Target } from './Target';
import { random, clone } from './helpers';
const fieldStyle = {
position: 'absolute',
width: 250,
bottom: 60,
left: 10,
height: '60%',
... |
src/sites/stars.js | cosmowiki/cosmowiki | import React from 'react';
import StarsComponent from '../components/stars';
import Grouper from './helper/grouper';
export default class Stars {
static componentWithData(stars) {
const groups = new Grouper(stars).byName();
const constellations = allConstellationsSorted(stars);
return <StarsComponent gr... |
src/components/navbar.js | goldenyz/hackernews | import React from 'react';
import { Link } from 'react-router';
import '../res/styles/navbar.less';
const NavBar = () => (
<div id="navbar">
<ul>
<li>
<Link to="/new" activeClassName="active">
New
</Link>
</li>
<li>
<Link to="/show" activeClassName="active">
... |
docs/src/table.js | primer/primer-css | import {Box} from '@primer/components'
import PropTypes from 'prop-types'
import React from 'react'
import styled from 'styled-components'
import {fontSize} from 'styled-system'
const Table = styled.table`
display: table !important;
width: 100%;
border-collapse: separate;
border-spacing: ${props => props.borde... |
lib/components/itemListItem.js | tombenke/react-ui-archetype | import React from 'react';
import { Router, Link } from 'react-router';
import { Grid, Row, Col, Button, Glyphicon, ListGroupItem } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
class ItemListItem extends React.Component {
render() {
return (
<ListGroupItem>
... |
src/components/marketingMarker/MarketingMarker.js | teamleadercrm/teamleader-ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';
class MarketingMarker extends Component {
render() {
const { children, className, ...others } = this.props;
const classNames = cx(theme['marke... |
src/components/MainHeader/DropdownToggle.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
import Link from '../../utils/Link'
const DropdownToggle = ({children, onToggle}) => {
return (
<Link href='#' onClick={onToggle} className='dropdown-toggle'>
{children}
</Link>
)
}
DropdownToggle.propTypes = {
children: PropTypes.node,... |
redux-react/client/components/Main.js | mayank-mittal/Handson | import React from 'react';
import {Link} from 'react-router';
const Main = React.createClass({
render(){
return(
<div>
<h1>
<Link to="/">ReduxStagram</Link>
</h1>
{React.cloneElement(this.props.children, this.props)}
... |
node_modules/semantic-ui-react/src/views/Comment/CommentGroup.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
} from '../../lib'
/**
* Comments can be grouped.
*/
function CommentGroup(props) {
const {
className,... |
client/lib/components/pages/Home.js | noxee/reddit-fantasy | import React from 'react';
import wizardImage from 'images/reddit-fantasy-wizard.png';
import 'stylesheets/components/pages/home.scss';
export default () => {
return (<div className="jumbotron clearfix">
<img className="pull-left reddit-fantasy-logo" src={wizardImage} alt="Reddit Fantasy" />
<h1 c... |
src/routes/not-found/index.js | 24v/player-sankey | /**
* 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 Layout from '../../co... |
views/Business/home/bbsWebView.js | leechuanjun/TLRNProjectTemplate | /**
* Created by licj on 16/05/26.
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ListView,
Linking
} from 'react-native';
import HTMLView from 'react-native-htmlview';
export default class BBSWebView extends Component {
render() {
var htmlContent = '<p><a href="http:... |
demo/DemoItem.js | xadn/react-jumbo-list | import React from 'react';
import Chance from 'chance';
const chance = new Chance();
const style = {
border: '1px solid black',
};
class DemoItem extends React.Component {
constructor(props) {
super(props);
this.state = {
text: chance.sentence({words: chance.natural({min: 1, max: 40})})
};
}
... |
client/admin/info/InstancesSection.js | iiet/iiet-chat | import React from 'react';
import Subtitle from '../../components/basic/Subtitle';
import { useTranslation } from '../../contexts/TranslationContext';
import { useFormatDateAndTime } from '../../hooks/useFormatDateAndTime';
import { DescriptionList } from './DescriptionList';
export function InstancesSection({ instan... |
imports/client/ui/pages/EditDocument.js | mgscreativa/base | import { Meteor } from 'meteor/meteor';
import React from 'react';
import { withRouter } from 'react-router-dom';
import { PropTypes } from 'prop-types';
import Documents from '../../../api/documents/documents';
import DocumentEditor from '../components/DocumentEditor';
import NotFound from './NotFound';
import contain... |
src/svg-icons/action/pets.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPets = (props) => (
<SvgIcon {...props}>
<circle cx="4.5" cy="9.5" r="2.5"/><circle cx="9" cy="5.5" r="2.5"/><circle cx="15" cy="5.5" r="2.5"/><circle cx="19.5" cy="9.5" r="2.5"/><path d="M17.34 14.86c-.8... |
src/svg-icons/action/label.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabel = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/>
</SvgIcon>
);
A... |
webapp/app/components/SoftwaresByUser/Buttons/ModalDeleteAllSoftwares/index.js | EIP-SAM/SAM-Solution-Server | //
// Modal to delete a software in softwares by user page
//
import React from 'react';
import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from 'components/SoftwaresByUser/styles.css';
/* eslint-disable react/prefer-stateless-function... |
packages/flow-runtime-docs/src/components/Example.js | codemix/flow-runtime | /* @flow */
import React, { Component } from 'react';
import {observable} from 'mobx';
import {observer} from 'mobx-react';
import CodeMirror from './CodeMirror';
import FakeConsole from './FakeConsole';
import Compiler from '../Compiler';
type Props = {
inline?: boolean;
inputTitle?: *;
outputTitle?: *;
h... |
react/features/video-quality/components/VideoQualityLabel.native.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { translate } from '../../base/i18n';
import { Label } from '../../base/label';
import { connect } from '../../base/redux';
import { combineStyles, type StyleType } from '../../base/styles';
import AbstractVideoQualityLabel, {
_abstractMapStateToProps,
type Props as... |
benchmarks/src/implementations/react-native-web/Tweet/GridView.js | rofrischmann/fela | import PropTypes from 'prop-types';
import { StyleSheet, View, ViewPropTypes } from 'react-native';
import React, { Component } from 'react';
import theme from './theme';
class GridView extends Component {
static displayName = 'GridView';
static propTypes = {
children: PropTypes.node,
hasGap: PropTypes.bo... |
src/svg-icons/communication/no-sim.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationNoSim = (props) => (
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1.... |
app/src/components/Map/Map.js | WoundedPixels/us-population | // @flow
import React, { Component } from 'react';
import * as d3 from 'd3';
import Tooltip from '../Tooltip/Tooltip';
import './Map.css';
const defaultCalculateFill = d => '#D3D3D3';
const defaultcalculateStroke = d => '#333';
const defaultcalculateStrokeWidth = d => 1.5;
class Map extends Component {
init: Fun... |
assets/jqwidgets/demos/react/app/treegrid/columnshierarchy/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js';
class App extends React.Component {
componentDidMount() {
this.refs.myTreeGrid.expandRow(1);
this.refs.myTreeGrid.expandRow(2);
}
render () {
// pre... |
src/Feed.js | radding/trough-app | import React, { Component } from 'react';
import {User} from './Models';
import {
AppRegistry,
StyleSheet,
Text,
View,
TextInput,
Button,
Alert
} from 'react-native';
export default class Feed extends Component {
constructor(props) {
super(props);
}
render() {
const { navigate } = this.p... |
qbot/ui/components/polarGrid.js | dennisdunn/botlab | import React from 'react'
/**
* Draw a polar coordinate grid, aka a "radar Screen"
*/
export default class PolarGrid extends React.Component {
constructor(props) {
super(props)
}
// size of the width and height of the canvas
// radius of the outer grid line
// spacing between grid lines
... |
lib/index.js | rickycodes/hyper | import {webFrame} from 'electron';
import forceUpdate from 'react-deep-force-update';
import {Provider} from 'react-redux';
import React from 'react';
import {render} from 'react-dom';
import rpc from './rpc';
import init from './actions/index';
import * as config from './utils/config';
import * as plugins from './uti... |
node_modules/react-parallax/src/kitchensink/PageOne.js | aggiedefenders/aggiedefenders.github.io | import React from 'react';
import { Link } from 'react-router';
import { Parallax } from '../modules/index';
import image1 from '../assets/4.jpg';
import image2 from '../assets/sw.jpg';
import image3 from '../assets/air.jpg';
import image4 from '../assets/4.jpg';
const style = {
backgroundColor: '#efefef',
co... |
src/svg-icons/action/view-list.js | frnk94/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/components/App.js | VuongVu/React_Training | import React, { Component } from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import Nav from './Nav';
import Home from './Home';
import Battle from './Battle';
import Popular from './Popular';
import Results from './Results';
class App extends Component {
render() {
return(... |
test/components/Counter.spec.js | yangshun/linguist | /* eslint no-unused-expressions: 0 */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import Counter from '../../app/components/Coun... |
app/classifier/drawing-tools/generic-tests.spec.js | amyrebecca/Panoptes-Front-End | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import drawingTools from '../drawing-tools';
const x = 200;
const y = 400;
const cursors = [
{
x: 300,
y: 400
},
{
x: 250,
y: 450
},
{
x: 200,
y: 500
}
];
const props = {
color: 'red',
c... |
example/examples/AnimatedViews.js | jrichardlai/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
Animated,
} from 'react-native';
import MapView from 'react-native-maps';
import PanController from './PanController';
import PriceMarker from './AnimatedPriceMarker';
const screen = Dimensions.get('window');
const ASPECT_RATIO = screen.width ... |
src/index.js | Philin-Anton/prototypeApp | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
ReactDOM.render(<App />, document.getElementById('app'));
|
src/routes.js | OSBI/saiku-react-starter | /**
* Copyright 2017 OSBI Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
src/mobile/shared/Header.js | Perslu/rerebrace | import React from 'react';
class Header extends React.PureComponent {
render() {
return (
<div className="f1">Header też działa! yooupi!
</div>
);
}
}
export default Header;
|
modules/components/Admin/components/UpdateBook/index.js | hmltnbrn/classroom-library | import React from 'react';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import FlatButton from 'material-ui/FlatButton';
import Snackbar from 'material-ui/Snackbar';
import AutoComplete from 'material-ui/AutoComplete';
import Checkbox from 'material-ui/Checkbox';
import * as li... |
docs/src/app/components/pages/components/TextField/ExampleError.js | rscnt/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleError = () => (
<div>
<TextField
hintText="Hint Text"
errorText="This field is required"
/><br />
<TextField
hintText="Hint Text"
errorText="The error text can be as long as you want, i... |
src/svg-icons/notification/phone-forwarded.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneForwarded = (props) => (
<SvgIcon {...props}>
<path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/redux-form/6.6.3/es/__tests__/FieldArray.spec.js | Akkuma/npm-cache-benchmark | 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; };
var _createClass = function () { function defineProperties(ta... |
app-reflux/test.js | Orientsoft/borgnix-cloud-ide | import React from 'react'
// import TestApp from './components/test'
// import TestApp from './test/test-app'
import ApiDemo from './test/api-demo'
// import './stores/arduino-store'
import './stores/project-store'
React.render(
<ApiDemo />
// <h1>hello</h1>
, document.body
)
|
node_modules/react-bootstrap/es/Pagination.js | nikhil-ahuja/Express-React | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
app/src/components/Tooltip/Tips.js | WoundedPixels/us-population | import React from 'react';
import './Tips.css';
function Tips(props) {
return (
<div className="Tips">
{props.children}
</div>
);
}
export default Tips;
|
packages/react-error-overlay/src/components/Footer.js | lolaent/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 from 'react';
import { darkGray } from '../styles';
const footerStyle = {
fontFamily: 'sans-serif',
color:... |
packages/wix-style-react/src/SegmentedToggle/ToggleIcon/ToggleIcon.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { withFocusable } from 'wix-ui-core/dist/src/hocs/Focusable/FocusableHOC';
import Tooltip from '../../Tooltip';
import { st, classes } from './ToggleIcon.st.css';
const Icon = ({
'data-click': dataClick,
selected,
onClick,
focusableOnFocus,... |
src/components/AboutPage.spec.js | luanatsainsburys/road-runner | import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';
import AboutPage from './AboutPage';
describe('<AboutPage />', () => {
it('should have a header called \'About\'', () => {
const wrapper = shallow(<AboutPage />);
const actual = wrapper.find('h2').text();
const expect... |
src/containers/Motions/Motions.js | dongxiaofen/react-redux-motion | import React, { Component } from 'react';
import { MotionCont } from 'components';
export default class Motions extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<div>
<MotionCont />
</div>
);
}
}
|
assets/javascript/components/propTypes.js | colinjeanne/learning-site | import React from 'react';
export const activityLinkPropType = React.PropTypes.shape({
title: React.PropTypes.string.isRequired,
uri: React.PropTypes.string.isRequired
});
export const activityLinksPropType =
React.PropTypes.arrayOf(activityLinkPropType);
export const activityPropType = React.PropTypes.s... |
client/components/Head.js | marioguerriero/opengram | import React from 'react';
import Head from 'next/head';
export default class extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (<Head>
<title>Opengram</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstra... |
app/components/BillListItem/Table.js | balintsoos/app.rezsi.io | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import {
Table as MuiTable,
TableHeader,
TableBody,
TableFooter,
TableRow as MuiTableRow,
TableRowColumn,
TableHeaderColumn,
} from 'material-ui/Table';
import TableRow from './TableRow';
impor... |
featuring-react-gui/src/header/Header.js | ccortezia/featuring | import React from 'react';
import './Header.css';
import {LogoutButton} from '../login';
import {Link} from 'react-router-dom';
export default function Header({onLogout, profile}) {
return (
<header className="primary">
<Link to="/" className="logo">FEATURING</Link>
<div className="auth-box">
... |
src/components/users/ProfileInfo.js | AleksandrRogachev94/chat-vote-go-frontend | import React from 'react'
import PropTypes from 'prop-types';
import { formatDate } from '../../lib/shared'
const ProfileInfo = ({ email, avatar_url, nickname, first_name, last_name, created_at }) => {
return (
<div className="content has-text-centered">
<img src={avatar_url} alt="avatar" id="avatar" />
... |
App.js | Madadata/MDButton | import React from 'react';
import MDButton from './src/MDButton.jsx';
const App = () => (
<div>
<MDButton
type='reset'
>
hello world!!
</MDButton>
</div>
);
export default App;
|
jenkins-design-language/src/js/components/material-ui/svg-icons/action/book.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionBook = (props) => (
<SvgIcon {...props}>
<path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/>
</SvgIcon>
);
ActionBook.displayName = 'ActionBook';
ActionBook.muiName = 'SvgIc... |
app/components/Layout/ContentLong/index.js | hlex/vms | import React, { Component } from 'react';
class ContentGrid extends Component {
render() {
return (
<div className="content-long-wrapper">
{
this.props.children
}
</div>
);
}
}
export default ContentGrid;
|
examples/huge-apps/routes/Course/components/Dashboard.js | chf2/react-router | import React from 'react'
class Dashboard extends React.Component {
render() {
return (
<div>
<h3>Course Dashboard</h3>
</div>
)
}
}
export default Dashboard
|
react/exercises/part_02/src/NavBar.js | jsperts/workshop_unterlagen | import React from 'react';
import Button from './Button';
function NavBar() {
return (
<nav className="navbar navbar-default">
<div className="collapse navbar-collapse">
<ul className="nav navbar-nav navbar-form btn-group">
<li className="btn-group">
<Button label="All" />
... |
src/components/ui/Tabs/Tabs.js | GustavoKatel/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import classnames from 'classnames';
import { oneOrManyChildElements } from '../../../prop-types';
export default @observer class Tab extends Component {
static propTypes = {
children: oneOrManyC... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/index.js | jamesgpearce/flow | /**
* @format
* @flow
*/
const path = require('path');
const Styled = require('../../../Styled');
exports.kind = 'codemod';
exports.title =
'Move inferred React.Component type arguments to their generic positions.';
exports.description = `
The recommended way to write React components used to be:
${Styled.cod... |
Paths/React/05.Building Scalable React Apps/3-react-boilerplate-building-scalable-apps-m3-exercise-files/After/app/app.js | phiratio/Pluralsight-materials | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
app/javascript/mastodon/features/favourites/index.js | ikuradon/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 LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourit... |
app/javascript/mastodon/containers/status_container.js | increments/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Status from '../components/status';
import { makeGetStatus } from '../selectors';
import {
replyCompose,
mentionCompose,
} from '../actions/compose';
import {
reblog,
favourite,
unreblog,
unfavourite,
pin,
unpin,
} from '../actions... |
imports/ui/components/Messages/MessageImageUpload.js | haraneesh/mydev | import { Meteor } from 'meteor/meteor';
import React from 'react';
import { Cloudinary } from 'meteor/socialize:cloudinary';
import { Image, Placeholder, Transformation } from 'cloudinary-react';
const config = {
options: {
tags: 'message',
folder: 'messages',
overwrite: true, // only 1 image per message... |
src/entypo/FolderVideo.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--FolderVideo';
let EntypoFolderVideo = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18.405,2.799C18.293,2.359,17.749,2,17.195,2H2.805c-0.555,0-1.099,0.359-1.21,0.799L1.394,4h... |
packages/bonde-admin-canary/src/scenes/Logged/scenes/Home/components/CommunitiesGadget/CommunitiesGadget.js | ourcities/rebu-client | import React from 'react'
import { Text } from 'bonde-styleguide'
import { Queryset } from 'components'
import ImageColumn from '../ImageColumn'
import TableCardGadget from '../TableCardGadget'
import Filter from './Filter'
import allUserCommunities from './query.graphql'
import { authSession } from 'services/auth'
imp... |
src/svg-icons/social/group-add.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialGroupAdd = (props) => (
<SvgIcon {...props}>
<path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91.... |
actor-sdk/sdk-web/src/components/common/ConnectionState.react.js | y0ke/actor-platform | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import React, { Component } from 'react';
import { Container } from 'flux/utils';
import { FormattedMessage } from 'react-intl';
import SharedContainer from '../../utils/SharedContainer';
import { appName, ConnectionStates } from '../../constants/ActorApp... |
src/components/views/delegatesList/components/delegate-list/ProfilePicture.js | LiskHunt/LiskHunt | import React from 'react';
import ReactImageFallback from 'react-image-fallback';
const ProfilePicture = ({ url }) => {
return (
<div className="image delegatecard-image">
<ReactImageFallback
src={url}
fallbackImage="https://dummyimage.com/50x50/aaaaaa/aaaaaa.png"
alt="cool image sh... |
src/components/NotFoundPage.js | git-okuzenko/react-redux | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
node_modules/react-router/es6/Router.js | superKaigon/TheCave | 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 = {... |
src/components/PreviousButton.js | GriddleGriddle/Griddle | import React from 'react';
const PreviousButton = ({ hasPrevious, onClick, style, className, text }) => hasPrevious ? (
<button type="button" onClick={onClick} style={style} className={className}>{text}</button>
) :
null;
export default PreviousButton;
|
react/redux-start/react-redux-todos/src/index.js | kobeCan/practices | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux';
import reducers from './reducers';
import { Provider } from 'react-redux';
import App from './components/App';
const store = createStore(reducers);
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
doc... |
server/sonar-web/src/main/js/apps/sessions/components/Unauthorized.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/javascripts/config/layers/scubaDiving.js | aAXEe/online_chart_ol3 | /**
* @license AGPL-3.0
* @author aAXEe (https://github.com/aAXEe)
*/
'use strict'
import React from 'react'
import ol from 'openlayers'
import ChartLayer from '../chartlayer'
import { ClickOnMarkersMessage } from 'utils'
import {TabSidebarDetails} from 'features/tabs'
import controlIds from '../../controls/ol3/contro... |
src/views/ProjectStoriesView/OwnersFilter/index.js | asidiali/pivotal.press | import {
DropDownMenu,
MenuItem,
} from 'material-ui';
import {
Icon,
} from '../../../components';
import React from 'react';
import ls from 'local-storage';
function sortOwners(a,b) {
return (a.person.name <= b.person.name) ? -1 : 1;
};
const OwnersFilter = props => (
<div style={{
flex: '0 0 auto',
... |
src/components/Footer/Footer.js | kaynenh/ReactBudget | /**
* 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 withStyles from 'isomorp... |
app/javascript/mastodon/components/autosuggest_textarea.js | mimumemo/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import Im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.