path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/parser/hunter/marksmanship/modules/features/AlwaysBeCasting.js | FaideWW/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
class AlwaysBeCasting extends CoreAlwaysBeCasting {
get suggestionThresholds() {
re... |
app/components/VendorList.js | stratigos/stormsreach | import React from 'react';
import PropTypes from 'prop-types';
import Vendor from './Vendor';
const VendorList = ({ vendors }) => {
return(
<div className='crafter-list-container'>
{vendors.map( (vendor) => {
return(<Vendor key={vendor.id} vendor={vendor} />);
})}
</div>
);
};
VendorLi... |
webvis/src/components/DeviceCams.js | kacperzuk/mldrive | import React, { Component } from 'react';
class DeviceCams extends Component {
handleRef(ref) {
if(this.unmounting || !ref) return;
ref.onload = () => {
this.handleRef(ref);
};
ref.onerror = () => {
setTimeout(() => {
this.handleRef(ref);
}, 500);
};
ref.src = this.p... |
packages/material-ui-icons/legacy/BatteryCharging20Sharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M11 20v-3H7v5h10v-5h-4.4L11 20z" /><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v13h4v-2.5H9L13 7v5.5h2L12.6 17H17V4z" /></React.Fragment>
, 'BatteryCharging20Sharp');
|
docs/src/HomePage.js | egauci/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageFooter from './PageFooter';
import Grid from '../../src/Grid';
import Alert from '../../src/Alert';
import Glyphicon from '../../src/Glyphicon';
import Label from '../../src/Label';
export default class HomePage extends React.Component {
render(... |
zwdemoRect/src/components/appBar.js | send2ocean/nodelearn | import React from 'react';
import AppBar from 'material-ui/AppBar';
import Drawer from 'material-ui/Drawer';
import RaisedButton from 'material-ui/RaisedButton';
import MenuItems from './menuItem.js'
import IconButton from 'material-ui/IconButton';
import NavigationClose from 'material-ui/svg-icons/navigation/arrow-b... |
src/components/pages/RawContentTitle/Page.js | Galernaya20/galernaya20.com | //@flow
import React from 'react'
import {Footer} from '../../Footer/Footer'
import Helmet from 'react-helmet'
import {defaultMeta} from '../../../defaultMeta'
import {Header} from '../../Header/Header'
export const Page = ({header}: {header: Object}) => (
<div>
<Header {...header} />
<Helmet meta={defaultM... |
example/src/components/3-ClassComposition/ClassCompositionDemo.js | knpwrs/css-modules-electron | import React, { Component } from 'react';
import ClassComposition from './ClassComposition';
import Snippet from '../shared/Snippet/Snippet';
import readFile from '../shared/readFile';
const js = readFile(__dirname, 'StyleVariantA/StyleVariantA.js');
const css = readFile(__dirname, 'StyleVariantA/StyleVariantA.css');... |
src/components/common/svg-icons/maps/directions-car.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsCar = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1... |
node_modules/react-bootstrap/es/Tab.js | acalabano/get-committed | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import PropTypes from 'pr... |
src/avatar/Avatar.js | martinezguillaume/react-native-elements | import PropTypes from 'prop-types';
import React from 'react';
import {
View,
Text,
Image,
Platform,
StyleSheet,
TouchableOpacity,
TouchableHighlight,
TouchableNativeFeedback,
TouchableWithoutFeedback,
} from 'react-native';
import ViewPropTypes from '../config/ViewPropTypes';
import Icon from 'reac... |
frontend/src/components/helper/LazyFadeIn.js | VitaC123/youTubeMixTape | import React from 'react';
import LazyLoad from 'react-lazyload';
import { CSSTransitionGroup } from 'react-transition-group';
const LazyFadeIn = props => (
<LazyLoad height={props.height || 400} offset={150} once={true}>
<CSSTransitionGroup
transitionName='fadeInOnLoad'
transitionAppear={true}
... |
src/index.js | f3rno/react-transition-manager | 'use strict';
import React from 'react';
import filter from 'lodash/collection/filter';
import remove from 'lodash/array/remove';
import findIndex from 'lodash/array/findIndex';
import cloneWithClasses from './clone-with-classes';
import isIn from './is-in';
import mergeChildren from './merge-children';
const Transi... |
modules/saldotuc-website/src/components/Header/index.js | nerdify/saldotuc | import queryString from 'query-string';
import React from 'react';
import { withRouter } from 'react-router-dom';
import Icon from 'components/Icon';
import { Link, Logo, Wrapper } from './style';
function Header(props) {
const query = queryString.parse(props.location.search);
if (query && query.ref === 'facebo... |
app/javascript/mastodon/features/public_timeline/index.js | Kirishima21/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
src/components/Dashboard/Workouts/workout.js | gperl27/liftr-v2 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../../actions';
import { Link } from 'react-router';
import ExerciseList from '../Exercises/exercise_list';
import AddExercise from '../Exercises/add_exercise';
import AddWorkout from './add_workout';
import Wo... |
shared/components/CategoryHome.js | AndrewGibson27/react-webpack-express-isomorphic-boilerplate | import React, { Component } from 'react';
import { connect, PromiseState } from 'react-refetch';
import { Route, NavLink } from 'react-router-dom';
import StoryList from './StoryList';
import asyncComponent from '../utils/asyncComponent';
import { GridRow, ColumnThree } from '../styles/grid';
function stripCategorySl... |
app/javascript/mastodon/features/mutes/index.js | Chronister/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/svg-icons/content/undo.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUndo = (props) => (
<SvgIcon {...props}>
<path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/>
</Svg... |
src/components/MidiFileInput.js | BenGoldstein88/MidiTester | import React from 'react';
import FileReaderInput from 'react-file-reader-input';
export default class MidiFileInput extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this)
}
handleChange(e, results) {
results.forEach(result => {
const [e, f... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter-none.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFilterNone = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/>
</SvgIcon>
);
ImageFilterNone.displayName = 'Image... |
packages/react-error-overlay/src/containers/StackFrame.js | maletor/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React, { Component } from 'react';
import CodeBlock from './StackFrameCodeBlock';
import { getPrettyURL } from '../ut... |
frontend/src/components/username-history/list-empty.js | 1905410/Misago | import React from 'react';
export default class extends React.Component {
getEmptyMessage() {
if (this.props.emptyMessage) {
return this.props.emptyMessage;
} else {
return gettext("No name changes have been recorded for your account.");
}
}
render() {
/* jshint ignore:start */
r... |
src/svg-icons/hardware/speaker-group.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeakerGroup = (props) => (
<SvgIcon {...props}>
<path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2... |
src/Courses/DeleteCourse/DeleteForm.js | esharp054/SwimmingFishWeb | import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import MenuItem from 'material-ui/MenuItem';
const styles = {
buttonStyle: {
marginBottom: 12,
marginTop: 12
},
dropStyle: {
width: '100%',
... |
src/index.js | erwaiyang/website-starter-kit | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import store from './store'
import App from './App'
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root'),
)
|
components/tooltip/Tooltip.js | rubenmoya/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import Portal from '../hoc/Portal';
import { getViewport } from '../utils/utils';
import { TOOLTIP } from '../identifiers';
import events from '../utils/events';
c... |
src/components/DataTable/DataTable.js | propertybase/react-lds | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import isEmpty from 'lodash-es/isEmpty';
import omit from 'lodash-es/omit';
import { Row, Table } from '../Table';
import { uniqueId } from '../../utils';
import { propTypes as tablePropTypes } from '../Table/Ta... |
pages/api/bottom-navigation-action.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './bottom-navigation-action.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
src/svg-icons/av/mic-none.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicNone = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ... |
src/utils/ValidComponentChildren.js | jontewks/react-bootstrap | import React from 'react';
/**
* Maps children that are typically specified as `props.children`,
* but only iterates over children that are "valid components".
*
* The mapFunction provided index will be normalised to the components mapped,
* so an invalid component would not increase the index.
*
* @param {?*} ... |
packages/@lyra/components/src/previews/CardPreview.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import formatDate from 'date-fns/format'
import {debounce, truncate} from 'lodash'
import styles from 'part:@lyra/components/previews/card-style'
import elementResizeDetectorMaker from 'element-resize-detector'
let index = 0
const svgStyles = {
position: ... |
src/components/express/original/ExpressOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './ExpressOriginal.svg'
/** ExpressOriginal */
function ExpressOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'ExpressOriginal' + ' '... |
src/docs/src/components/Blog/BlogList/BlogList.js | StarterInc/Ignite | import { window } from 'browser-monads';
import { Link, StaticQuery, withPrefix, graphql } from 'gatsby';
import React from 'react';
import CodeTabs from '../../CodeTabs';
import CodeClipboard from '../../CodeClipboard';
class BlogList extends React.Component {
componentDidMount() {
this._codeTabs = new Co... |
docs/src/app/components/pages/components/Slider/ExampleControlled.js | pradel/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
export default class SliderExampleControlled extends React.Component {
state = {
firstSlider: 0.5,
secondSlider: 50,
}
handleFirstSlider(event, value) {
this.setState({firstSlider: value});
}
handleSecondSlider(event, value) {... |
src/js/components/docImage.js | tohashi/css-typesetter | import React from 'react';
import DraggableText from './draggableText';
export default class DocImage extends React.Component {
get imageStyle() {
const setting = this.props.setting;
return {
width: `${setting.previewWidth}px`,
height: `${setting.previewHeight}px`,
backgroundImage: `url(${s... |
examples/real-world/src/index.js | ioof-holdings/redux-dynamic-reducer | import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import { Root, configureStore } from './root'
const store = configureStore()
const history = syncHistoryWithStore(browserHistory, store)
render(
<Root ... |
src/components/book/BookDetails.js | budiantotan/book-store | import React from 'react';
const BookDetails = ({book, addToCart}) => {
return (
<div className="media">
<div className="media-left">
<a href="#">
<img className="media-object" src="http://placehold.it/200/450" alt="Placehold" />
</a>
... |
sample/components/text.js | LINKIWI/react-elemental | import React from 'react';
import PropTypes from 'prop-types';
import { Spacing, Text, sizes } from 'react-elemental';
const Sizes = ({ secondary = false }) => (
<div>
{
Object.keys(sizes).map((size) => (
<Spacing key={size} bottom>
<Spacing size="micro" bottom>
<Text size="ki... |
src/containers/loading/error_state.js | zerilliworks/snax | import React from 'react'
import ReactDOM from 'react-dom'
import _ from 'lodash'
const isNotEmpty = _.negate(_.isEmpty)
const ErrorState = React.createClass({
render() {
if(isNotEmpty(this.props.children)) {
return this.props.children
}
else {
return (
<div className={this.props.cla... |
docs/website/src/templates/action.js | adaltas/node-mecano | // React
import React from 'react'
// Gatsby
import { graphql } from 'gatsby'
// MDX
import { MDXProvider } from "@mdx-js/react"
import { MDXRenderer } from "gatsby-plugin-mdx"
// Local
import Layout from '../components/Layout'
const Template = ({
data
}) => {
const { page } = data
return (
<Layout page={{
... |
frontend/App/BlogHeader.js | fdemian/Morpheus | import React from 'react'
//import cssModules from 'react-css-modules';
import { Link } from 'react-router-dom';
const headerImageStyles = {
'maxHeight': '1000px',
'width': '100%',
'maxWidth': '100%'
}
const imgSRC = "https://fb-s-a-a.akamaihd.net/h-ak-xtp1/v/t1.0-9/15036540_10211033285894206_4752209531205670470_n... |
docs/src/pages/components/snackbars/SimpleSnackbar.js | lgollut/material-ui | import React from 'react';
import Button from '@material-ui/core/Button';
import Snackbar from '@material-ui/core/Snackbar';
import IconButton from '@material-ui/core/IconButton';
import CloseIcon from '@material-ui/icons/Close';
export default function SimpleSnackbar() {
const [open, setOpen] = React.useState(false... |
src/app/components/AutoComplete/AutoComplete.js | xZarisx/react-rpg | import React from 'react';
import style from './auto-complete.css';
import classNames from 'classnames';
import strongify from './util/strongify.js';
// import throttle from '../../lib/throttle.js';
export default class AutoComplete extends React.Component {
constructor(props) {
super(props);
th... |
pages/navigation-components.js | pagesource/fusion | import React from 'react';
import { ThemeProvider } from 'theming';
import { Navbar, Pagination, StepperControl, Breadcrumb } from '../';
// --------page specific imports---------
import theme from '../theme';
// ---- global imports ----------
import Layout from './components/Layout';
const NavigationComponent = () =>... |
node_modules/react-router/es6/Router.js | NathanBWaters/jb_club | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
client/src/components/alert/Needs.js | 15thnight/15thnight | import React from 'react';
export default function Needs(props) {
let { needs, role } = props;
return (
<div>
{needs.map(need => {
let name = need.service.name;
return (
<div key={need.id}>
{need.resolved ?
... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch04/04_06/start/src/index.js | yevheniyc/C | import React from 'react'
import { render } from 'react-dom'
import './stylesheets/ui.scss'
import { App } from './components/App'
window.React = React
render(
<App />,
document.getElementById('react-container')
) |
node_modules/react-bootstrap/es/ModalBody.js | NathanBWaters/jb_club | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/action/alarm-off.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOff = (props) => (
<SvgIcon {...props}>
<path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6... |
components/illustrations/quicksort/intro.js | skidding/illustrated-algorithms | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import PureLayoutComponent from '../../../utils/pure-layout-component';
class Intro extends PureLayoutComponent {
render() {
const {
frame,
} = this.props;
const {
padding,
borderWidth,
... |
packages/icons/src/md/editor/BorderColor.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdBorderColor(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<g>
<path d="M35.5 13.995l-7.5-7.5-20 20v7.5h7.5l20-20zm5.91-5.91c.78-.78.78-2.05 0-2.83L36.74.585c-.78-.78-2.05-.78-2.83 0L30 4.495l7.5 7.5 3.91-... |
src/layout/section.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
import { getCallbacks } from '../helper/helper';
export default class Section extends Component {
static propTypes = {
children: PropTypes.any,
style: PropTypes.object,
className: PropTy... |
react/gameday2/gameday2.js | tsteward/the-blue-alliance | import 'babel-polyfill'
import React from 'react'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import { createStore, applyMiddleware, compose } from 'redux'
import ReactDOM from 'react-dom'
import queryString from 'query-string'
import injectTapEventPlugin from 'react-tap-event-plugin'
import ... |
src/browser/app/Header.js | xiankai/triple-triad-solver | /* @flow */
import type { State } from '../../common/types';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { FormattedMessage } from 'react-intl';
import { Link, Space, Toolbar } from '../app/components';
import { connect } from 'react-redux';
const styles = {
toolbar:... |
js/player/NameLabel.js | GyrosOfWar/podcaster-frontend | import React from 'react'
import { Label } from 'react-bootstrap'
const NameLabel = React.createClass({
render: function() {
return (
<span className="audio-name-label pull-left">{this.props.name}</span>
);
}
})
export default NameLabel |
index.android.js | rissch/Smart-Recipes-Mobile-App | // @flow
// Vendor.
import React, { Component } from 'react';
import { AppRegistry, View } from 'react-native';
import { NativeRouter } from 'react-router-native';
// App.
import App from './src/app';
export default function SmartRecipes(){
return (
<View>
<NativeRouter>
<App />
</NativeRou... |
src/components/Dialogs/index.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import EditMediaDialog from '../../containers/EditMediaDialog';
import LoginDialog from '../../containers/LoginDialog';
import PreviewMediaDialog from '../../containers/PreviewMediaDialog';
const Dialogs = () => (
<div className="Dialogs">
<EditMediaDialog />
<LoginDialog />
<... |
renderer/components/Channels/ChannelSummaryList.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { List, AutoSizer } from 'react-virtualized'
import { space as baseSpace } from 'themes/base'
import ChannelSummaryListItem from './ChannelSummaryListItem'
const StyledList = styled(List)`
outline: none;
over... |
src/ButtonInput.js | tonylinyy/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
packages/bundle/src/adaptiveCards/Attachment/VideoCardAttachment.js | billba/botchat | /* eslint react/no-array-index-key: "off" */
import PropTypes from 'prop-types';
import React from 'react';
import VideoCardContent from './VideoCardContent';
const VideoCardAttachment = ({ attachment: { content }, disabled }) => (
<VideoCardContent content={content} disabled={disabled} />
);
VideoCardAttachment.... |
blueocean-material-icons/src/js/components/svg-icons/action/thumb-up.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionThumbUp = (props) => (
<SvgIcon {...props}>
<path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14... |
src/svg-icons/editor/border-style.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderStyle = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/>
</SvgIcon>
);
E... |
platform/ui/src/components/ohifModal/OHIFModal.js | OHIF/Viewers | import React from 'react';
import PropTypes from 'prop-types';
import Modal from 'react-modal';
import classNames from 'classnames';
import './OHIFModal.styl';
const customStyle = {
overlay: {
zIndex: 1071,
backgroundColor: 'rgb(0, 0, 0, 0.5)',
display: 'flex',
alignItems: 'center',
justifyConte... |
src/svg-icons/file/cloud-done.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDone = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96... |
app/javascript/mastodon/features/account_gallery/index.js | esetomo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { refreshAccountMediaTimeline, expandAccountMediaTimeline } from '../../actions/timelines';
impo... |
src/svg-icons/av/games.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvGames = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
AvGames = pure(AvGames);
AvGames.dis... |
example/index.js | NdYAG/react-rater | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
function render() {
ReactDOM.render(<App />, document.getElementById('app'))
}
render()
|
Libraries/Components/Keyboard/Keyboard.js | cdlewis/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/scene/Nearby/NearbyCell.js | dudongge/DDGMeiTuan | /**
* Copyright (c) 2017-present, dudongge
* All rights reserved.
*
* https://github.com/dudongge/DDGMeiTuan
* copyright by dudodongge
*/
//import liraries
import React, { Component } from 'react';
import { View, Text, StyleSheet, TouchableOpacity, Image } from 'react-native';
import { Heading1, Heading2, Parag... |
src/icons/PersonStalker.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class PersonStalker extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M425.3,324.8c-41.4-15.7-38.9-9.4-38.9-38.5c0-18.8,9.3-11.9,15.2-47.7c2.3-14.1,4.2-4.7,9.1-27.3
c2.6-11.8-1.8... |
src/client/todos/index.react.js | obimod/este | import Buttons from './buttons.react';
import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import NewTodo from './newtodo.react';
import React from 'react';
import ToCheck from './tocheck.react';
import Todos from './todos.react';
export default class TodosIndex ext... |
src/index.js | DanFlavius/React-boilerplate-workshop | import React from 'react';
import ReactDOM from 'react-dom';
import reducers from './reducers';
import createSagaMiddleware from 'redux-saga';
import mySaga from './sagas';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router... |
pkg/interface/weather/tile/tile.js | jfranklin9000/urbit | import React, { Component } from 'react';
import classnames from 'classnames';
import moment from 'moment';
export default class WeatherTile extends Component {
constructor(props) {
super(props);
this.state = {
latlng: '',
manualEntry: false,
error: false
};
let api = window.api;
... |
src/components/Input/index.js | cowback/charcode-client | import React from 'react'
import cn from 'utils/cn'
import './input.css'
const Input = ({
placeholder,
value,
type,
name,
minlength,
maxlength,
required,
onChange,
}) => {
return (
<input
type={type}
value={value}
name={name}
placeholder={placeholder}
minLength={mi... |
src/Grid.js | mmarcant/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import elementType from 'react-prop-types/lib/elementType';
import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils';
const propTypes = {
/**
* Turn any fixed-width grid layout into a full-width layout by this property.
*
* Adds ... |
src/js/components/icons/base/SocialVisa.js | kylebyerly-hp/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... |
time-on-task/app/components/Report.js | ajaymore/time-on-task | import React, { Component } from 'react';
import { Text, View, StyleSheet, ScrollView } from 'react-native';
import moment from 'moment';
import range from 'lodash/range';
export default class Report extends Component {
render() {
const { starttime, endtime, readings } = this.props.observation;
const... |
src/ChallengeMeta7/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '../Icon';
import ChallengeMeta4 from '../ChallengeMeta4';
import styles from './styles.css';
function ChallengeMeta7(props) {
return (
<div className={classNames(styles.wrapper, {
[props.cl... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | Nedomas/react-router | /*globals COURSES:true */
import React from 'react'
class Assignment extends React.Component {
render() {
let { courseId, assignmentId } = this.props.params
let { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
... |
docs/app/Examples/views/Statistic/Variations/StatisticExampleInverted.js | koenvg/Semantic-UI-React | import React from 'react'
import { Segment, Statistic } from 'semantic-ui-react'
const StatisticExampleInverted = () => (
<Segment inverted>
<Statistic inverted value='54' label='inverted' />
<Statistic inverted color='red' value='27' label='red' />
<Statistic inverted color='orange' value='8' label='ora... |
public/js/components/activityfeed/Comment.react.js | IsuruDilhan/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import ListItem from 'material-ui/lib/lists/list-item';
import List from 'material-ui/lib/lists/list';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/lib/avatar';
var Comment = React.createClass({
render: fun... |
src/organisms/footer/stories.js | dsmjs/components | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import React from 'react';
import storyRouter from 'storybook-router';
import {linkTo} from '@storybook/addon-links';
import Footer from './index';
export default {
title: 'Organisms/Footer',
decorators: [
storyRouter({
... |
docs/app/Examples/elements/Divider/Variations/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DividerVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Inverted'
desc... |
src/svg-icons/device/signal-cellular-1-bar.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M12 12L2 22h10z"/>
</SvgIcon>
);
DeviceSignalCellular1Bar = pure(DeviceSignalCellular1Bar);
Device... |
src/GameMode.js | Brianzchen/tabletennis-handicap | import React from 'react';
import GameModePlayer from './GameModePlayer';
export default class GameMode extends React.Component {
render() {
const disableSumbit = (!this.state.playerOne || !this.state.playerTwo) ||
(this.state.playerOne === this.state.playerTwo);
return (
<div>
<GameMod... |
src/components/Iconfont/Iconfont.js | vincentdd/crm | import React from 'react'
import PropTypes from 'prop-types'
import './iconfont.less'
const Iconfont = ({ type, colorful }) => {
if (colorful) {
return (<span
dangerouslySetInnerHTML={{
__html: `<svg class="colorful-icon" aria-hidden="true"><use xlink:href="#${type.startsWith('#') ? type.replace(/#... |
src/pages/editEvent.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import EditEvent from '../components/EditEvent';
import ErrorPage from '../components/ErrorPage';
import { addEventCollectiveData } from '../graphql/queries';
import withData from '../lib/withData';
import withIntl from '../lib/withIntl';
import withLogg... |
app/auth/components/Navbar.js | sagnikm95/internship-portal | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route, Link, withRouter } from 'react-router-dom';
import { Menu } from 'semantic-ui-react';
import Auth from '../modules/Auth';
const Navbar = (props) => {
const LogoutFunction = () => {
Auth.deauthenticateUser();
props.history... |
node_modules/react-bootstrap/es/NavDropdown.js | rblin081/drafting-client | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/components/stepFour/index.js | oraclesorg/ico-wizard | import React from 'react'
import '../../assets/stylesheets/application.css'
import {
buildDeploymentSteps,
download,
getDownloadName,
handleConstantForFile,
handleContractsForFile,
handlerForFile,
scrollToBottom,
setupContractDeployment
} from './utils'
import { noContractDataAlert, successfulDeployment... |
app/components/movie.js | shrihari/moviemonkey |
import React from 'react'
import ReactDOM from 'react-dom'
const remote = require('electron').remote;
const app = remote.app;
const path = require('path');
export default class Movie extends React.Component {
constructor(props) {
super(props);
}
render() {
var movie = this.props.data;
return (
... |
src/routes/home/Home.js | yvanwangl/UniversalBlog | /**
* 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 PropTypes from 'prop-... |
client/components/lists/progress-bar.js | CommonActionForum/liqen-face | import React from 'react'
import styled, { keyframes } from 'styled-components'
import PropTypes from 'prop-types'
const growing = keyframes`
0% {
transform: scaleX(0);
}
100% {
transform: scaleX(1);
}
`
const disappearing = keyframes`
0% {
transform: scaleX(0)
}
50% {
transform: scale... |
websrc/cacti-user/src/WMUserApp.js | howardjones/network-weathermap | import React from 'react';
import {connect} from 'react-redux';
import {loadSettings} from './actions';
import './App.css';
import {HashRouter, Redirect, Route} from 'react-router-dom'
import SingleMap from './components/SingleMap';
import MapGroup from './components/MapGroup';
class WMUserApp extends React.Comp... |
src/DetailsBox.component.js | dhis2/datim-data-export-log | import React from 'react';
import classes from 'classnames';
import FontIcon from 'material-ui/FontIcon/FontIcon';
import RaisedButton from 'material-ui/RaisedButton';
import Divider from 'material-ui/Divider';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import Translate ... |
src/container/Root.js | coolday4me/react-starter-kit | import React from 'react';
import { connect } from 'react-redux';
import CRUD from '../libs/CRUD';
import Layout from './Layout';
const Container = props => <Layout {...props} />;
const mapStateToProps = state => ({ state });
const mapDispatchToProps = dispatch => ({
dispatch,
});
const mergeProps = (stateProps,... |
src/components/Profile/LastOffered.js | andresmechali/shareify | import React from 'react';
import PropTypes from 'prop-types';
import { withApollo } from 'react-apollo';
import LAST_OFFERED from '../../utils/queries/LAST_OFFERED';
import Image from '../Image';
class LastOffered extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
components/Footer.js | Belhalaribi/PFE | import React, { Component } from 'react';
import FontIcon from 'material-ui/FontIcon';
import {BottomNavigation, BottomNavigationItem} from 'material-ui/BottomNavigation';
import Paper from 'material-ui/Paper';
import IconLocationOn from 'material-ui/svg-icons/communication/location-on';
import {Tabs, Tab} from 'mater... |
app/containers/Players/components/MultiFormatTableRow/index.js | hugogrochau/rocketleaguesam-web | import TableRowColumn from 'material-ui/Table/TableRowColumn';
import TableRow from 'material-ui/Table/TableRow';
import React from 'react';
import { Link } from 'react-router';
import styled from 'styled-components';
const SmallTableRowColumn = styled(TableRowColumn)`
padding-left: 12px !important
padding-right: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.