path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
react-flux-mui/js/material-ui/src/svg-icons/communication/screen-share.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationScreenShare = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56... |
storybook/config.js | moeism/mastodon | import { configure, setAddon } from '@kadira/storybook';
import IntlAddon from 'react-storybook-addon-intl';
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import '../app/assets/stylesheets/compone... |
src/components/NeededEquipment.js | IAmPicard/StarTrekTimelinesSpreadsheet | import React from 'react';
import { getTheme } from '@uifabric/styling';
import { Input, Dropdown, Grid } from 'semantic-ui-react';
import { ItemDisplay } from './ItemDisplay';
import { ReplicatorDialog } from './ReplicatorDialog';
import { WarpDialog } from './WarpDialog';
import { CollapsibleSection } from './Colla... |
examples/browserify-gulp-example/src/app/app.js | xmityaz/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Main from './Main'; // Our custom react component
//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.com/zilverline/react-tap-event-plugin
injectT... |
js/src/component/DragAndDrop/Target.js | outeredge/edge-magento-module-menu | import React from 'react';
import { findDOMNode } from 'react-dom';
import ItemActions from './../../data/ItemActions';
import ItemStore from './../../data/ItemStore';
import Item from './../../data/Item';
import { api } from './../../helpers/api';
export const besideTarget = {
canDrop: (props, monitor) => props.i... |
admin/src/page/post-detail.js | grumoon/GruBlog | import React from 'react'
import {browserHistory} from 'react-router'
import {Constants, Utils} from '../lib/common.js'
import $ from 'jquery';
import * as showdown from 'showdown';
import {EditableTagGroup} from '../component/editable-tag-group'
import '../css/post-detail.css'
import {Form, Input, Tooltip, Icon, Cas... |
examples/Overlay.js | HPate-Riptide/react-overlays | import React from 'react';
import { findDOMNode } from 'react-dom';
import Overlay from 'react-overlays/Overlay';
import Button from 'react-bootstrap/lib/Button';
// Styles Mostly from Bootstrap
const TooltipStyle = {
position: 'absolute',
padding: '0 5px'
};
const TooltipInnerStyle = {
padding: '3px 8px',
co... |
src/main/resources/react/src/ssl-report/components/__ReportSheet__/__Certificates__/CertificateChain.js | marthie/SSLReport | /*
The MIT License (MIT)
Copyright (c) 2018 Marius Thiemann <marius dot thiemann at ploin dot de>
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 limi... |
MobileApp/node_modules/react-native-elements/src/rating/Rating.js | VowelWeb/CoinTradePros.com | import times from 'lodash.times';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import {
View,
Animated,
PanResponder,
Image,
StyleSheet,
Platform,
} from 'react-native';
import Text from '../text/Text';
const STAR_IMAGE = require('./images/star.png');
const HEART_IMAGE = r... |
src/components/Torrent/StatusDetails/Seeding.js | fcsonline/react-transmission | import React from 'react';
import { FormattedMessage } from 'react-intl';
import { formatUL } from 'util/formatters';
export default ({ torrent: { peersGettingFromUs, peersConnected, rateUpload } }) => (
<FormattedMessage
id='torrent.full.seeding'
defaultMessage={`Seeding to {peersGettingFromUs, number} of ... |
docs/src/examples/elements/Header/Variations/HeaderExampleInverted.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Header, Segment } from 'semantic-ui-react'
const HeaderExampleInverted = () => (
<Segment inverted>
<Header as='h4' inverted color='red'>
Red
</Header>
<Header as='h4' inverted color='orange'>
Orange
</Header>
<Header as='h4' inverted color='yellow'>... |
src/Materijal/components/PostList.js | zeljkoX/e-learning | import React from 'react';
import ReactDOM from'react-dom';
import {Paper} from 'material-ui';
class PostList extends React.Component {
render() {
return (
<div style={{height:'90%'}}>
{this.props.children}
</div>
)}
};
export default PostList;
|
test/do-not-focus-input-on-suggestion-click/AutosuggestApp.js | JacksonKearl/react-autosuggest-ie11-compatible | import React, { Component } from 'react';
import sinon from 'sinon';
import Autosuggest from '../../src/Autosuggest';
import languages from '../plain-list/languages';
import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js';
const getMatchingLanguages = value => {
const escapedValue = escapeR... |
src/components/Projects/TheRunners/TheRunners.js | NathanBWaters/website | import React, { Component } from 'react';
import Helmet from 'react-helmet';
// import ReactMarkdown from 'react-markdown';
// import Markdown2HTML from 'react-markdown-to-html';
export default class TheRunners extends Component {
render() {
const pStyles = require('../Projects.scss');
const rStyles = requi... |
blueocean-material-icons/src/js/components/svg-icons/av/fiber-manual-record.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvFiberManualRecord = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="8"/>
</SvgIcon>
);
AvFiberManualRecord.displayName = 'AvFiberManualRecord';
AvFiberManualRecord.muiName = 'SvgIcon';
export default AvFiberManualRecord;
|
src/interface/report/FightSelectionPanelList.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Trans } from '@lingui/macro';
import getFightName from 'common/getFightName';
import getWipeCount from 'common/getWipeCount';
import { formatDuration } from 'common/format';
import makeAnalyzerUrl from 'int... |
js/jqwidgets/demos/react/app/slider/rangeslider/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.shop().init(this.refs.priceSlider, this.ref... |
src/svg-icons/places/golf-course.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesGolfCourse = (props) => (
<SvgIcon {...props}>
<circle cx="19.5" cy="19.5" r="1.5"/><path d="M17 5.92L9 2v18H7v-1.73c-1.79.35-3 .99-3 1.73 0 1.1 2.69 2 6 2s6-.9 6-2c0-.99-2.16-1.81-5-1.97V8.98l6-3.06z"/>
... |
app/components/pipeline/teams/Index/chooser.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import shallowCompare from 'react-addons-shallow-compare';
import AutocompleteDialog from 'app/components/shared/Autocomplete/Dialog';
import Button from 'app/components/shared/Button';
import FlashesStore from 'ap... |
src/collections/Table/TableHeaderCell.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getUnhandledProps,
META,
useValueAndKey,
} from '../../lib'
import TableCell from './TableCell'
/**
* A table can have a header cell.
*/
function TableHeaderCell(props) {
const { as, classNam... |
src/routes.js | Padelas649/moralgram | 'use strict';
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Layout from './components/Layout';
import IndexPage from './components/IndexPage';
import AboutPage from './components/AboutPage';
import NotFoundPage from './components/NotFoundPage';
const routes = (
<Route path="/" comp... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | ea-zhongxiaochun/angularStudy | 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/scripts/pages/Login.page.story.js | kodokojo/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* This program 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 ... |
src/js/shared/components/media.js | akornatskyy/sample-blog-react | import React from 'react';
import PropTypes from 'prop-types';
const Media = ({src, heading, children}) => (
<div className="mt-2 d-flex">
<div className="flex-shrink-0">
<img className="me-3" src={src} />
</div>
<div>
<h5 className="mt-0">{heading}</h5>
... |
node_modules/semantic-ui-react/dist/es/views/Statistic/Statistic.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import _without from 'lodash/without';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey } from '../../lib';... |
packages/wix-style-react/src/MarketingLayout/components/Content.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import Description from './Description';
import Title from './Title';
import { SIZES } from '../constants';
import { APPEARANCES } from '../../Heading';
import { SIZES as TEXT_SIZES } from '../../Text';
import { classes } from '../MarketingLayout.st.css';
... |
dist/lib/carbon-fields/assets/js/fields/components/association/list-item.js | ArtFever911/statrer-kit | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { withHandlers } from 'recompose';
/**
* The internal dependencies.
*/
import { preventDefault } from 'lib/helpers';
/**
* Render an item that can be associated.
*
* @param {O... |
src/components/TodoTextInput.js | taggon/redux-example-todo | import React, { Component } from 'react';
class TodoTextInput extends Component {
constructor(props, context) {
super(props, context);
this.state = {
text: this.props.text || ''
};
}
handleChange(event) {
this.setState( {text: event.target.value} );
}
handleKeyUp(event) {
if (even... |
src/js/App.js | nirrattner/KnitPix | import React, { Component } from 'react';
import { Col, Grid, Row } from 'react-bootstrap';
import debounce from 'javascript-debounce';
import Sidebar from './container/Sidebar';
import OriginalImage from './container/OriginalImage';
import ModifiedImage from './container/ModifiedImage';
import * as DimensionCalculat... |
MusicPlayer/index.ios.js | hkhungit/react-native-sound-management | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class MusicPlayer extends Component {
render() {
return (
<View style={styles.container}>
<T... |
src/pages/Games/components/Pagination.js | iGameLab/teleport-client | import React from 'react'
import { Link } from 'react-router'
export default class Pagination extends React.Component{
render() {
return (
<div className="row text-center">
<div className="col-lg-12">
<ul className="pagination">
... |
examples/src/components/RemoteSelectField.js | alanrsoares/react-select | import React from 'react';
import Select from 'react-select';
var RemoteSelectField = React.createClass({
displayName: 'RemoteSelectField',
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
loadOptions (input, callback) {
input = input.toLowerCase();
var rtn = {
options: [
... |
src/about/index.js | BelwoodBakeryCafe/belwoodbakerycafe | /**
* 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';
... |
src/Focus.js | prometheusresearch/react-ui | /**
* @copyright 2016-present, Prometheus Research, LLC
* @flow
*/
import React from 'react';
import findHTMLElement from './findHTMLElement';
import {debounce} from './Utils';
export let contextTypes = {
focusable: React.PropTypes.object,
};
type FocusableProps = {
children: React.Element<*>,
inputRef: (HT... |
src/components/Grid/GridFlex.js | lebra/lebra-components | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const propsTypes = {
direction: PropTypes.oneOf(['row','row-reverse','column','column-reverse']),
wrap: PropTypes.oneOf(['nowrap','wrap','wrap-reverse']),
justify: PropTypes.oneOf(['start','end','c... |
src/Grid.js | Lucifier129/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import elementType from 'react-prop-types/lib/elementType';
const Grid = React.createClass({
propTypes: {
/**
* Turn any fixed-width grid layout into a full-width layout by this property.
*
* Adds `container-fluid` class.
*/
... |
public/js/components/visits/othersvisits.react.js | IsuruDilhan/Coupley | import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import CardMedia from 'material-ui/lib/card/card-media';
import CardTitle from 'ma... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | esetomo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func.isRequired,
ariaControls: PropTypes.s... |
packages/yam-vr/components/Login/index.vr.js | unindented/little-yam | import React from 'react'
import {
View,
asset
} from 'react-vr'
import Button from '../Button'
export default class Login extends React.PureComponent {
static propTypes = {
login: React.PropTypes.func
}
render () {
const {login} = this.props
return (
<View
style={{
layo... |
src/components/Post/CommentInput.js | thinq4yourself/simply-social-in | import React from 'react';
import api from '../../services/api';
import { connect } from 'react-redux';
import { ADD_COMMENT } from '../../constants/actionTypes';
import { Button, Form } from 'semantic-ui-react'
const mapDispatchToProps = dispatch => ({
onSubmit: payload =>
dispatch({ type: ADD_COMMENT, payload ... |
app/app.js | cbradley3/CharlieBradleyIII | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { applyRouterMiddleware, Router, brows... |
src/Button.js | BespokeInsights/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
import ButtonInput from './ButtonInput';
const Button = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
active: React.PropTypes.bool,... |
src/components/bylocation.js | rlaakkol/hsl-stopscreen | import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import DepartureList from './departurelist'
const DeparturesByLocation = props => (
<DepartureList loading={props.data.loading} stops={props.data.stopsByBbox} />
)
DeparturesByLocation.propTypes = {
data: React.PropTyp... |
src/admin/pages/Widgets/BoxItemAvailable.js | rendact/rendact | import React from 'react';
import {DragSource} from 'react-dnd';
import AddToWidgetAreaForm from './AddToWidgetAreaForm';
const dragSource = {
beginDrag(props, monitor, component){
return {widget: props.widget}
},
}
const dragCollect = (connect, monitor) => ({
connectDragToDom: connect.dragSource(),
isD... |
_templates/Header.js | williaumwu/mern-sample | import React from 'react';
import { Parallax } from 'react-parallax';
import styles from './Header.css';
import bgImage from '../../assets/writer.jpg';
import fbStyles from '../../../../styles/flexboxgrid.css';
const Header = () => (
<Parallax bgImage={bgImage} strength={400} >
<div style={{ position: 'relative'... |
src/App.js | sparty02/react-toolbox-demo | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import theme from './toolbox/theme';
import './toolbox/theme.css';
import ThemeProvider from 'react-toolbox/lib/ThemeProvider'
import DropdownDemo from './DropdownDemo';
class App extends Component {
render() {
return (
... |
src/svg-icons/maps/tram.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTram = (props) => (
<SvgIcon {...props}>
<path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h... |
src/App.js | jcampbellg/league-admin-app | import React, { Component } from 'react';
import { Route, Switch } from 'react-router-dom';
import Navigation from './Components/Navigation';
import Header from './Components/Header';
import Share from './Components/Share';
import Dashboard from './Components/Dashboard';
import NotFound from './Components/NotFound';
c... |
docs/app/Examples/collections/Message/Variations/MessageErrorExample.js | jcarbo/stardust | import React from 'react'
import { Message } from 'stardust'
const MessageErrorExample = () => (
<Message
error
header='There was some errors with your submission'
list={[
'You must include both a upper and lower case letters in your password.',
'You need to select your home country.',
]}... |
test/unit/client/wrapper-test.js | travi-org/admin.travi.org | /* eslint no-underscore-dangle: ["error", { "allow": ["__BOOM__"] }] */
import {parse} from 'url';
import React from 'react';
import {browserHistory} from 'react-router';
import ga from 'react-ga';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import sinon from 'sinon';
import any from '@travi/any';
impo... |
Youtuber-JS/src/components/video_list.js | victorditadi/IQApp | import React from 'react';
import VideoListItem from './video_list_item';
const VideoLista = (props) => {
const videos = props.videos;
const videoItems = videos.map((video) => {
return <VideoListItem onVideoSelect={props.onVideoSelect} key={video.etag} video={video} />
});
return(
<div className="row... |
app/screen/TweetList.js | shuiszhang/fanfou | /**
* Created by shuis on 2017/6/7.
*/
import React, { Component } from 'react';
import {
View,
FlatList,
} from 'react-native';
import {TweetSeparator} from '../component/base';
import Tweet from '../component/Tweet';
import {favorites, user_timeline} from '../api/api';
class TweetList extends Component{
stat... |
Libraries/Text/Text.js | disparu86/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/CarouselItem.js | brentertz/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
src/components/SecondaryButton/SecondaryButton.js | joshblack/carbon-components-react | /**
* 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 React from 'react';
import Button from '../Button';
const SecondaryButton = props => <Button kind="secondary" {...props} />;
export ... |
app/web/containers/Main.web.js | Nakan4u/pokemons-finder | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter } from 'react-router-dom';
import { ActionCreators } from '../../actions';
import MainPage from '../../containers/Main';
import { responsiveStyles } from '../../native/conta... |
src/examples/5/RandomGif.js | low-ghost/react-rx-elm-architecture | import React from 'react';
import R from 'ramda';
import fetch from 'isomorphic-fetch';
import { dispatch, forwardTo, createReducer, Effects } from './startApp';
//init : String -> (Model, Effects Action)
export let init = topic => () => [{
gifUrl: 'assets/waiting.gif',
topic,
}, getRandomGif(topic)];
//getRandom... |
node_modules/react-bootstrap/es/Accordion.js | yeshdev1/Everydays-project | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PanelGroup from '... |
CompositeUi/src/views/composition/LastUpdatedProjectsDashboardWidget.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import {Link} from 'react-router';
import... |
packages/node_modules/@webex/react-component-spaces-list/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {AutoSizer, List} from 'react-virtualized';
import {Spinner} from '@momentum-ui/react';
import SpaceItem from '@webex/react-component-space-item';
import {getBadgeState, getGlobalNotificationState, hasMentions}... |
Libraries/Image/Image.ios.js | browniefed/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/app/components/FormPopup/index.js | Krekotun/seat-booking | import React, { Component } from 'react';
import connect from './connect'
import cx from 'classnames'
import Form from './Form'
class FormPopup extends Component {
constructor(props) {
super(props);
this.popupHeight = 0;
}
componentDidMount() {
this.popupHeight = this.node.getBoundingClientRect().height;
}... |
src/svg-icons/navigation/expand-more.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationExpandMore = (props) => (
<SvgIcon {...props}>
<path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/>
</SvgIcon>
);
NavigationExpandMore = pure(NavigationExpandMore);
NavigationExpandMore.displayN... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js | picter/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.
*/
import React from 'react';
import logo from './assets/logo.svg';
export default () => <img id="feature-svg-inclusion" src={logo} alt="l... |
test/helpers/shallowRenderHelper.js | landerqi/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
examples/js/column-filter/select-filter-with-sort.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const qualityType = {
0: 'good',
1: 'bad',
2: 'unknown'
};
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) ... |
cheesecakes/plugins/content-type-builder/admin/src/containers/App/index.js | strapi/strapi-examples | /**
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators, compose } from 'redux';
// import { withRouter } from 'react-ro... |
src/helpers/Html.js | madeagency/reactivity | // @flow
import React from 'react'
import type { Node } from 'react'
import Helmet from 'react-helmet'
import serialize from 'serialize-javascript'
type Props = {
styles: Array<string>,
cssHash: {},
js: Array<string>,
component: Node,
state: {}
}
const Html = (props: Props) => {
const { styles, cssHash, ... |
app/javascript/mastodon/features/ui/components/block_modal.js | musashino205/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../../../selectors';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
impo... |
src/components/operation.js | LaserWeb/LaserWeb4 | // Copyright 2016 Todd Fleming
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distr... |
packages/cf-component-modal/src/ModalBody.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
class ModalBody extends React.Component {
render() {
return (
<div className="cf-modal__body">
{this.props.children}
</div>
);
}
}
ModalBody.propTypes = {
children: PropTypes.node
};
export default ModalBody;
|
lib/TextArea/stories/BasicUsage.js | folio-org/stripes-components | /**
* TextArea: Basic Usage
*/
import React from 'react';
import TextArea from '../TextArea';
const BasicUsage = () => (
<div>
<TextArea
label="Field with label"
placeholder="Placeholder Text"
required
/>
<TextArea
value="This field is disabled"
label="Disabled field"
... |
app/packs/src/components/structure_editor/StructureEditorContent.js | ComPlat/chemotion_ELN | import React from 'react';
import scriptLoader from 'react-async-script-loader';
class StructureEditorContent extends React.Component {
constructor(props) {
super(props);
const { completionCallback, errorCallback } = this.props;
this.state = {
completionCallback, errorCallback
}
this.attach... |
src/header/MobileHeader.js | sk1981/react-header | import React from 'react';
import Logo from '../Logo';
import NavigationList from '../navigation/NavigationList';
import VerticalSlider from '../sliders/VerticalSlider';
import ReactHelper from '../utils/ReactHelper'
/**
* Gets the child components for Mobile Menu
*
* It iterates over all child, filters out the log... |
apps/marketplace/components/Brief/SummaryComparison.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import AUheading from '@gov.au/headings/lib/js/react.js'
import PageHeader from 'marketplace/components/PageHeader/PageHeader'
import localStyles from './SummaryComparison.scss'
import styles from '../../main.scss'
... |
components/main/SidebarContent.js | HelloTangible/Rocket-Web | import React from 'react'
import { NavItem } from 'rebass'
import { FaTasks } from 'react-icons/lib/fa'
import { MdCloud, MdCreditCard, MdPerson, MdPhonelinkSetup, MdTimeline } from 'react-icons/lib/md'
export default (
<div className='sidebar-icons'>
<style jsx global>{`
.icon {
font-size: 3em;
... |
packages/material-ui-icons/src/PlayCircleFilled.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PlayCircleFilled = 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 14.5v-9l6 4.5-6 4.5z" />
</SvgIcon>;
PlayCircleFilled = pure(PlayCircleFi... |
app/components/Console.js | dikalikatao/fil | import _ from 'underscore';
import React from 'react';
import OutputLine from 'components/OutputLine';
import ConsoleToolbar from 'components/ConsoleToolbar';
import ErrorLine from 'components/ErrorLine';
export default class Console extends React.Component {
renderLine(line, i) {
return <OutputLine
... |
pages/404.js | ahw/superflash.cards | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Not Found</h1>
<p>The pag... |
src/containers/Gridboard/Gridboard.js | petorious/dmprov-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import PropTypes from 'prop-types';
import {Card, CardActions, CardHeader, CardTitle, CardText} from 'material-ui/Card';
import { setPersistentValue } from '../../store/persistentValues/actions';
import {Responsive,... |
src/components/Header.js | a-type/redux-data-table | import React from 'react';
import SortArrow from './SortArrow';
const Header = ({ columnKey, handleClick, sortOrder, sortable }) => (
<th style={{ cursor: sortable ? 'pointer' : 'default' }} onClick={handleClick}>
{columnKey}
{sortable ? <SortArrow order={sortOrder} /> : null}
</th>
);
export default Head... |
src/components/List/SkeletonList.js | flashrecruit/belay | import React from 'react';
import Loading from '../Loading/Loading.js';
class SkeletonList extends React.Component {
render() {
var skeletonItem = { height: '38px' };
return (
<div className="list-group">
<div className="list-group__item">
<div ... |
JS/Classes/Module/Navigator/NavigatorExampleWithNavigationBar1.js | joggerplus/ReactNativeRollingExamples | 'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
Image
} from 'react-native';
var NavigatorExampleWithThirdNavBar = require('./NavigatorExampleWithThirdNavBar');
var NavigationBarRouteMapper = {
LeftButton(route, navi... |
docs/app/Examples/elements/Segment/Types/SegmentExampleRaised.js | koenvg/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleRaised = () => (
<Segment raised>
Pellentesque habitant morbi tristique senectus.
</Segment>
)
export default SegmentExampleRaised
|
client/Contests/ContestNavigator.js | rystecher/senior-design | import React from 'react';
import { Link } from 'react-router';
import './contestnavigator.css';
import { logout } from './Login/actions/authActions';
import { connect } from 'react-redux';
import { getContestInfo } from './ContestActions';
class ContestNavigator extends React.Component {
constructor(props) {
... |
src/Idea/ConvertIdeaDialog.js | mkermani144/wanna | import React, { Component } from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import DatePicker from 'material-ui/DatePicker';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuI... |
src/svg-icons/av/closed-caption.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvClosedCaption = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5... |
electron/renderer/src/components/IsOnline.js | ConorIA/wire-desktop | /*
* Wire
* Copyright (C) 2017 Wire Swiss GmbH
*
* This program 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 later version.
*
* This progr... |
examples/Nav.js | ornl-sava/vis-react-components | import React from 'react'
import { NavLink } from 'react-router-dom'
// Topics need some upkeep, removing from the example until we can re-Factor
// should be to /topics
class Nav extends React.Component {
render () {
return (
<nav role='navigation'>
<ul>
<li><NavLink to='/histogram' activ... |
fusion/Typing.js | pagesource/fusion | import React from 'react';
import { keyframes } from 'emotion';
import styled from 'react-emotion';
import PropTypes from 'prop-types';
import { withTheme } from 'theming';
const type = keyframes`
from { width: 0; }
`;
const TypingDiv = styled('p')`
font-family: 'Courier';
font-size: 20px;
font-weight: bold;... |
examples/popular-products/index.js | cycgit/dva | import './index.html';
import React from 'react';
import dva from '../../src/index';
import { connect } from '../../index';
import { Router, Route, useRouterHistory } from '../../router';
import fetch from '../../fetch';
import ProductList from './components/ProductList/ProductList';
import styles from './index.less';
... |
lib/next/index.js | lukemorton/republic | import React from 'react'
import wrapPage from './wrapPage'
import Link from './Link'
import createRedirectTo from './createRedirectTo'
import RepublicBase, { route } from '../republic'
export { wrapPage, Link, route }
export default class Republic extends RepublicBase {
routes () {
return this._routes.map((rou... |
src/Parser/AfflictionWarlock/Modules/Talents/DeathsEmbrace.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import... |
src/components/Account/index.js | taiwoabegunde/developersmap | /**
* Created by Raphson on 9/28/16.
*/
import React from 'react';
import { Link, hashHistory } from 'react-router';
import NavBar from '../NavBar/index';
import Footer from '../Footer/Index';
import UserStore from '../../stores/UserStore';
import ProjectStore from '../../stores/ProjectStore';
import UserActions from... |
node_modules/react-bootstrap/es/ModalFooter.js | NickingMeSpace/questionnaire | 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 ... |
react-flux-mui/js/material-ui/src/svg-icons/action/important-devices.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionImportantDevices = (props) => (
<SvgIcon {...props}>
<path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.... |
examples/js/pagination/default-pagination-table.js | opensourcegeek/react-bootstrap-table | 'use strict';
import React from 'react';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
var products = [];
function addProducts(quantity) {
var startId = products.length;
for (var i = 0; i < quantity; i++) {
var id = startId + i;
products.push({
id: id,
name: "Item n... |
demos/loading/demos/indeterminate.js | isogon/styled-mdl-website | import React from 'react'
import { Progress } from 'styled-mdl'
const demo = () => <Progress indeterminate width="300px" />
const caption = 'Indeterminate Progress Bar'
const code = '<Progress indeterminate width="300px" />'
export default { demo, caption, code }
|
react_textInput/setup.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View
} from 'react-native';
import TextInputComponent from "./TextInputComponent";
export default class setup extends Component {
render()... |
src/svg-icons/image/music-note.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMusicNote = (props) => (
<SvgIcon {...props}>
<path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/>
</SvgIcon>
);
ImageMusicNote = pure(ImageMusicNote);
ImageM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.