path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/device/signal-wifi-2-bar.js | hai-cea/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... |
src/RaisedButton/RaisedButton.js | rscnt/material-ui | import React from 'react';
import transitions from '../styles/transitions';
import ColorManipulator from '../utils/colorManipulator';
import {createChildFragment} from '../utils/childUtils';
import EnhancedButton from '../internal/EnhancedButton';
import Paper from '../Paper';
function validateLabel(props, propName, c... |
src/images/github.js | jcmnunes/josenunesxyz | import React from 'react';
import PropTypes from 'prop-types';
const Github = ({ color, width, height }) => {
return (
<svg width={width} height={height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 440 440">
<path
fill={color}
d="M409.9,115.3a218.14,218.14,0,0,0-79.8-79.8Q279.7,6.1,220,... |
src/index.js | phelipemaia/react-course | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/Select/story.js | rontav/material-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs } from '@storybook/addon-knobs';
import Select from './index.jsx';
import '../_story.scss';
import './_story.scss';
var stories = storiesOf('Select', module);
stories.addDecor... |
src/components/Player/index.js | u-wave/web | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import { useMediaSources } from '../../context/MediaSourceContext';
function Player({
enabled,
size,
volume,
isMuted,
media,
seek,
onPlay,
}) {
const { getAllMediaSources } = useMediaSources();
if (!media) {
re... |
test/integration/production-swcminify/components/hello-context.js | JeromeFitz/next.js | import React from 'react'
import PropTypes from 'prop-types'
export default class extends React.Component {
static contextTypes = {
data: PropTypes.object,
}
render() {
const { data } = this.context
return <div>{data.title}</div>
}
}
|
App/Views/Profile/index.js | BelinChung/react-native-hiapp | import React from 'react'
import connect from 'redux-connect-decorator'
import config from '@Config'
import styles from '@Styles'
import HeaderButton from '@Components/HeaderButton'
import { View, StyleSheet } from 'react-native'
import t from '@Localize'
import {
Header,
ListItem
} from 'react-native-elements'
@... |
stories/DateRangePicker_day.js | intwarehq/react-dates | import React from 'react';
import moment from 'moment';
import { storiesOf } from '@kadira/storybook';
import isSameDay from '../src/utils/isSameDay';
import isInclusivelyAfterDay from '../src/utils/isInclusivelyAfterDay';
import DateRangePickerWrapper from '../examples/DateRangePickerWrapper';
const datesList = [
... |
src/components/d3charts/BarChart.js | nbuechler/studious-display | import React from 'react';
import d3 from 'd3';
import _ from 'underscore';
import DataSeries from '../d3components/DataSeries';
import Wrapper from '../d3components/Wrapper';
export default class BarChart extends React.Component {
static defaultProps = {
width: 500,
height: 500
}
constructor (props) {... |
services/ui/src/components/Box/index.stories.js | amazeeio/lagoon | import React from 'react';
import Box from './index';
import Lipsum from 'storybook/components/Lipsum';
export default {
component: Box,
title: 'Components/Box',
};
export const Default = () => (
<Box>
<Lipsum />
</Box>
);
|
app/src/Gallery/container/Gallery.js | rmonnier/hypertube | import React, { Component } from 'react';
import axios from 'axios';
import { connect } from 'react-redux';
import queryString from 'query-string';
import InfiniteScroll from 'react-infinite-scroller';
import MovieList from '../components/MovieList.js';
import SearchBar from '../components/SearchBar.js';
import Filter ... |
src/forms/output/Summary.js | codeforboston/cliff-effects | /** @module */
// REACT COMPONENTS
import React from 'react';
import {
Header,
Button,
} from 'semantic-ui-react';
// DATA
// Colors and text for parts of the chart
import { BENEFIT_CHART_VALUES } from './BENEFIT_CHART_VALUES';
// DATA MANIPULATION
import { cloneDeep } from 'lodash';
import { toMoneyStr } from '... |
src/components/Home/Home.js | prashanth-cpaul/ReactReduxSample | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Home.css';
const largeBanner = require('../../images/mainBanner_large.jpg');
const mediumBanner = require('../../images/mainBanner_medium.jpg');
const smallBanner = require('../../images/mainBanner_small.jpg');
co... |
docs/src/app/components/pages/components/List/ExampleNested.js | ruifortes/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import ContentInbox from 'material-ui/svg-icons/content/inbox';
import ContentDrafts from 'material-ui/svg-icons/content/draft... |
packages/material-ui-icons/src/PlayCircleOutline.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PlayCircleOutline = props =>
<SvgIcon {...props}>
<path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 ... |
src/common/containers/builds.js | canonical-websites/build.snapcraft.io | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import BuildsList from '../components/builds-list';
import Notification from '../components/vanilla-modules/notification';
import { IconSpinner } from '../components/v... |
ui/src/main/js/components/UpdateStatus.js | thinker0/aurora | import React from 'react';
import UpdateTime from 'components/UpdateTime';
import { UPDATE_STATUS } from 'utils/Thrift';
import { isInProgressUpdate } from 'utils/Update';
export default function UpdateStatus({ update }) {
const time = isInProgressUpdate(update) ? '' : <UpdateTime update={update} />;
return (<di... |
src/js/pages/VerifyEmailPage.js | MichaelFKogan/project3 | import React from 'react';
import DocumentTitle from 'react-document-title';
import { VerifyEmailView } from 'react-stormpath';
export default class VerifyEmailPage extends React.Component {
render() {
var spToken = this.props.location.query.sptoken;
return (
<DocumentTitle title={`Verify Email`}>
... |
public/js/13.js | ritchieanesco/frontendmastersreact | /* Details page */
import React from 'react'
import { render } from 'react-dom'
import { BrowserRouter, Match } from 'react-router'
import Landing from './13B'
import Search from './13C'
import Details from './13E'
// centralise data to share with components
import preload from '../../public/data.json'
import '../norm... |
src/js/components/icons/base/Catalog.js | odedre/grommet-final | /**
* @description Catalog SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pr... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | 9618211/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//assignments: COURSES[params.courseId].assignments
//});
//}
render () {
//var { assignments } = this.props;
var assignments = COURSES[th... |
docs/src/sections/GlyphiconSection.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 GlyphiconSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/index.js | andrei-cacio/nuclear-github-explorer | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
import { reactor } from './modules/core';
import { Provider } from 'nuclear-js-react-addons';
import UserStore from './modules/user-management/stores/user';
import RepoStore from './modules/repos/stores/repos';
import './st... |
src/svg-icons/editor/format-indent-decrease.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentDecrease = (props) => (
<SvgIcon {...props}>
<path d="M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentDecre... |
app/javascript/mastodon/features/ui/components/bundle_modal_error.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from '../../../components/icon_button';
const messages = defineMessages({
error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp... |
src/NavItem.js | brentertz/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
linkId: React.PropTypes.string,
onSelect: React.PropTypes.func,
active: React... |
src/pages/Detail.js | fachilles/headlines | import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
export default class Detail extends React.Component {
render() {
return (
<View>
<Text>Detail Page</Text>
</View>
)
}
}
const styles = StyleSheet.create({
}) |
src/routes/Counter/components/Counter.js | rwade628/react-redux-starter-kit | import React from 'react'
import PropTypes from 'prop-types'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default'... |
src/series/SeriesComponent.js | heikela/react-redux-immutable-trial | import React, { Component } from 'react';
import {List} from '../../immutable-js/dist/immutable'; // for proptypes
class SeriesSegment extends Component {
render() {
const { node, offset, walkFunc } = this.props;
/* eslint-disable no-use-before-define */
const elements = seriesElementsFromNode(node, offs... |
packages/@sanity/color-input/src/schemas/color.js | sanity-io/sanity | /* eslint-disable react/display-name */
import React from 'react'
import ColorInput from '../ColorInput'
const round = (val) => Math.round(val * 100)
export default {
name: 'color',
type: 'object',
title: 'Color',
inputComponent: ColorInput,
fields: [
{
title: 'Hex',
name: 'hex',
type:... |
styleguide/sections/Blocks.js | PactCoffee/loggins | import React, { Component } from 'react';
import Section from '../components/Section';
import Btn from 'components/Btn/Btn';
import PhotoHero from 'components/Blocks/PhotoHero';
import PHH from 'components/Blocks/PhotoHero.css';
import PlainHero from 'components/Blocks/PlainHero';
import PLH from 'components/Blocks/... |
src/data-fields/number-data-field.js | apconic/aos-forms | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField';
export default class NumberDataField extends Component {
static propTypes = {
disabled: PropTypes.bool,
errorText: PropTypes.string,
errorStyle: PropTypes.object,
floatingLabel... |
src/components/manage/ManageTierBlock.js | oraclesorg/ico-wizard | import React from 'react'
import { CrowdsaleStartTime } from './../Common/CrowdsaleStartTime'
import { CrowdsaleEndTime } from './../Common/CrowdsaleEndTime'
import { CrowdsaleRate } from './../Common/CrowdsaleRate'
import { CrowdsaleSupply } from './../Common/CrowdsaleSupply'
import { TEXT_FIELDS } from '../../utils/c... |
src/parser/rogue/subtlety/modules/core/Energy.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import resourceSuggest from 'parser/shared/modules/resourcetracker/ResourceSuggest';
import EnergyTracker from '../../../shared/resources/EnergyTracker';
import E... |
src/views/TimeView.js | YouCanBookMe/react-datetime | import React from 'react';
const timeConstraints = {
hours: {
min: 0,
max: 23,
step: 1
},
minutes: {
min: 0,
max: 59,
step: 1
},
seconds: {
min: 0,
max: 59,
step: 1
},
milliseconds: {
min: 0,
max: 999,
step: 1
}
};
function createConstraints( overrideTimeConstraints ) {
let constraint... |
src/React/Widgets/Coordinate2DWidget/example/index.js | Kitware/paraviewweb | import 'normalize.css';
import React from 'react';
import ReactDOM from 'react-dom';
import Coordinate2DWidget from 'paraviewweb/src/React/Widgets/Coordinate2DWidget';
const height = 100;
const width = 100;
ReactDOM.render(
React.createElement(Coordinate2DWidget, {
height,
width,
onChange: console.log... |
src/svg-icons/device/nfc.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNfc = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2... |
src/containers/Home/Home.js | daviferreira/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
const logoImage = ... |
app/assets/javascripts/webpack/controllers/feedback_modal.js | pathwaysmedical/frasernw | import React from 'react';
import _ from "lodash";
import { submitFeedback, closeFeedbackModal } from "action_creators";
const FeedbackModal = ({model, dispatch}) => {
if(_.includes(["PRE_SUBMIT", "SUBMITTING"], modalState(model))){
return(
<PreSubmitModal model={model} dispatch={dispatch}/>
);
}
e... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/LifeCycle/TransitionStateButton.js | harsha89/carbon-apimgt | import React from 'react';
import Button from '@material-ui/core/Button';
const TransitionStateButton = (props) => {
return (
<Button raised value={props.state.targetState}>{props.state.event}</Button>
);
};
export default TransitionStateButton;
|
src/client/prod.client.js | budarin/budarin-app-server | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app.jsx';
const render = () => {
ReactDOM.render(
<App />,
document.getElementById('root')
);
};
render();
|
test/integration/css-fixtures/multi-global-reversed/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global2.css'
import '../styles/global1.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/Components/SubjectItemContainer/ShowExerciseDialog.js | omrisk/mta-hack-project | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
class ShowExerciseDialog extends React.Component {
state = {
open: false
};
handleOpen = () => {
this.setState({open: ... |
meteor/imports/ui/components/Footer.js | globeandmail/chart-tool | import React, { Component } from 'react';
import { app_version, app_build } from '../../modules/settings';
export default class Footer extends Component {
render() {
return (
<footer>
<p className='version'><a href="http://www.github.com/globeandmail/chart-tool">Chart Tool {`${app_version} build ${... |
src/shared/services/avatares/index.js | dannegm/danielgarcia | /* eslint-disable camelcase */
import React from 'react';
import moment from 'moment';
import avatare_default from '@/assets/images/avatares/avatare.png';
import avatare_noir from '@/assets/images/avatares/avatare-noir.png';
import avatare_covid19 from '@/assets/images/avatares/avatare-covid19.png';
import avatare_vad... |
examples/react-pokedex/src/App.js | SmartImpulse/dispersive | import React, { Component } from 'react';
import { createModel, createAction } from 'dispersive';
import { withField } from 'dispersive/field';
import { withOne, withMany } from 'dispersive/relation';
import { Watcher } from 'react-dispersive';
import request from 'request-promise-json';
const MAX_NUM = 151; // limit... |
app/javascript/mastodon/features/picture_in_picture/components/footer.js | im-in-space/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import classNames from 'classna... |
app/javascript/mastodon/components/icon.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Icon extends React.PureComponent {
static propTypes = {
id: PropTypes.string.isRequired,
className: PropTypes.string,
fixedWidth: PropTypes.bool,
};
render () {
const { id, c... |
fields/types/datetime/DatetimeField.js | asifiqbal84/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'DatetimeField',
focusTargetRef: 'dateInput',
// d... |
src/views/containers/root_container.js | michaelBenin/react-ssr-spa | import React from 'react';
import PropTypes from 'prop-types';
import renderRoutes from 'react-router-config/renderRoutes';
import ConnectedRouter from 'react-router-redux/ConnectedRouter';
import { Provider } from 'react-redux';
import routes from '../../react_router/react_router';
import Head from '../components/head... |
packages/material-ui-icons/src/Directions.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.55.45-1 1-1h5V7.5l3.5 3.5-3.5 3.5z" /></g>
, 'D... |
docs/pages/system/spacing.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'system/spacing';
const requireDemo = require.context('docs/src/pages/system/spacing', false, /\.(js|tsx)$/);
const requireRaw = r... |
react-flux-mui/js/material-ui/src/svg-icons/image/camera.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCamera = (props) => (
<SvgIcon {...props}>
<path d="M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4... |
docs/src/Routes.js | andrew-d/react-bootstrap | import React from 'react';
import Root from './Root';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import GettingStartedPage from './GettingStartedPage';
import ComponentsPage from './ComponentsPage';
import SupportPage from './SupportPage';
import NotFoundPage from './NotFound... |
examples/simple/index.js | bs1180/library-boilerplate | import React from 'react';
import App from './components/App';
React.render(
<App />,
document.getElementById('root')
);
|
src/ReactElementAdapter.js | bruderstein/unexpected-htmllike-jsx-adapter | import React from 'react';
import ObjectAssign from 'object-assign';
import getIteratorFn from './getIteratorFn';
const REACT_ELEMENT_TYPE =
(typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element')) ||
0xeac7;
function isRawType(value) {
var type = typeof value;
return type === 'stri... |
client/src/modules/Register.js | showmethewei/tuna-io | import React from 'react';
import { browserHistory } from 'react-router';
export default class Register extends React.Component {
constructor(props) {
super(props);
this.state = {
username: '',
email: '',
password: '',
};
this.handleChange = this.handleChange.bind(this);
this.... |
src/client/components/JumbotronDestinationWidget/JumbotronDestinationWidget.js | trippian/trippian | import log from '../../log'
import React from 'react'
import {
StarRatingWidget
}
from '../../components/index'
const JumbotronDestinationWidget = ({
name, slogan = 'Awesome City', feature = 'http://lorempixel.com/800/600/city/', averageRating = 5
}) => {
const styles = {
backgroundImage: {
backgro... |
jest/utils.js | CarlaCrandall/DoItNow | import React from 'react';
/**
* Returns whether an element instance is of a particular type.
* @param {ReactElement} element the element to check
* @param {Function|String} componentType the type of element to check against
* @return {Boolean} whether the element is the supplie... |
src/svg-icons/av/fast-rewind.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFastRewind = (props) => (
<SvgIcon {...props}>
<path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/>
</SvgIcon>
);
AvFastRewind = pure(AvFastRewind);
AvFastRewind.displayName = 'AvFastRewind';
AvFastRewin... |
docs/app/Examples/collections/Table/States/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const States = () => {
return (
<ExampleSection title='States'>
<ComponentExample
title='Positive / Negative'
... |
src/components/Resume/Resume.js | IanChuckYin/IanChuckYin.github.io | import React, { Component } from 'react';
import styles from './Resume.module.scss';
import { connect } from 'react-redux';
import PageTitle from '../PageTitle/PageTitle';
import Timeline from '../Timeline/Timeline';
import TimelineContainer from '../Timeline/TimelineContainer/TimelineContainer';
import ExperiencePane... |
src/components/notes.js | boonier/piano-rolla-two | import React from 'react';
import Note from './note'
export default class Notes extends React.Component {
constructor(props) {
super(props);
this.notes = props.state.notes;
this.noteInt = props.w / props.patternLength;
};
render() {
return (
<g className={this.props.className}>
{this.renderNotes(th... |
app/containers/NotFoundPage/index.js | kamil-mrzyglod/AosArmyBuilder | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/components/GroupHeader.js | TonyYang9527/my-app | import React from 'react';
import PropTypes from 'prop-types';
import {observer} from 'mobx-react';
class GroupHeader extends React.Component{
static propTypes = {
id: PropTypes.string,
type: PropTypes.string,
title: PropTypes.string,
onOpenGroup : PropTypes.func ,
};
static defaultProps = {
i... |
src/Parser/Warlock/Demonology/CONFIG.js | enragednuke/WoWAnalyzer | import React from 'react';
import { Chizu } from 'MAINTAINERS';
import SPECS from 'common/SPECS';
import SPEC_ANALYSIS_COMPLETENESS from 'common/SPEC_ANALYSIS_COMPLETENESS';
import CombatLogParser from './CombatLogParser';
import CHANGELOG from './CHANGELOG';
export default {
spec: SPECS.DEMONOLOGY_WARLOCK,
main... |
src/pages/index.js | chtefi/golb | import React from 'react'
import Layout from '../components/Layout'
import Bio from '../components/Bio'
import Article from '../components/Article'
import groupBy from 'lodash/groupBy'
import { Helmet } from 'react-helmet'
import { graphql } from 'gatsby'
import { css } from 'react-emotion'
import Color from 'color'
im... |
www/app/containers/Home/HomeContainer.js | benmratner/react-boilerplate | import React from 'react'
import { Home } from 'components'
class HomeContainer extends React.Component{
render () {
return (
<Home />
)
}
}
export default HomeContainer |
src/components/AthletePreview.js | DavidGuben/overwatchcharacterdatabase | import React from 'react';
import { Link } from 'react-router-dom';
export const AthletePreview = props => (
<Link to={`/athlete/${props.id}`}>
<div className="athlete-preview">
<img src={`img/${props.image}`} alt={`${props.name}'s profile`} />
<h2 className="name">{props.name}</h2>
<span class... |
src/app/components/golos-ui/Tabs/Tabs.stories.js | GolosChain/tolstoy | import React from 'react';
import { storiesOf } from '@storybook/react';
import Tabs from './Tabs';
const items = [
{value: 'Посты'},
{value: 'Ответы'},
{value: 'Избранное'},
{value: 'Уведомления'},
{value: 'Сообщения'},
{value: 'Мои ключи'},
{value: 'Кошелек', active: true},
]
storiesOf('Tabs', module... |
src/routes.js | kazandzhiro/react_mobx | import React from 'react';
import Home from './pages/Home';
import Login from './pages/Login';
import NotFound from './pages/NotFound';
export default {
'/': <Home />,
'/login': <Login />,
'/404': <NotFound />
}
|
app/javascript/mastodon/features/ui/components/onboarding_modal.js | increments/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'cl... |
examples/Example/pages/template.js | thegamenicorus/react-native-timeline-listview | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import Timeline from 'react-native-timeline-listview'
export default class Example extends Component {
constructor(){
sup... |
docs/app/Examples/elements/Label/Types/LabelExamplePointingColored.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Divider, Form, Label } from 'semantic-ui-react'
const LabelExamplePointing = () => (
<Form>
<Form.Field>
<input type='text' placeholder='First name' />
<Label basic color='red' pointing>Please enter a value</Label>
</Form.Field>
<Divider />
<Form.Field>... |
src/app/views/LegendItem.js | anvaka/unpmchart | import React, { Component } from 'react';
import noop from 'nop';
import formatNumber from '../utils/formatNumber.js';
import getHeight from '../utils/getItemHeight.js';
class LegendItem extends Component {
render() {
const { model, onClick } = this.props;
let height = getHeight() - 2;
let iconStyle = {
... |
client/src/templates/Challenges/components/VideoModal.js | jonathanihm/freeCodeCamp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Modal } from '@freecodecamp/react-bootstrap';
import { closeModal, isVideoModalOpenSelector } from '../redux';
import { executeGA } from '../../../re... |
docs/src/sections/ListGroupSection.js | Sipree/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 ListGroupSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/svg-icons/image/adjust.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAdjust = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.3... |
app/components/Page/faelligeGeschaefte/Header.js | barbalex/kapla3 | import React from 'react'
import styled from 'styled-components'
const StyledHeader = styled.div`
border-bottom: 2px solid #717171;
`
const StyledRow = styled.div`
display: flex;
padding: 3px;
`
const StyledId = styled.div`
flex: 1;
padding: 2px;
min-width: 65px;
max-width: 65px;
`
const StyledGegenstand... |
ajax/libs/react-instantsearch/4.0.0-beta.4/Dom.js | BenjaminVanRyseghem/cdnjs | /*! ReactInstantSearch 4.0.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
src/components/onsen/ons-alert-dialog/index.js | c58/onsenui-react | import React from 'react';
import ReactDOM from 'react-dom';
import DoorLock from '../doorlock';
import AnimatorFactory from '../animator-factory';
import {AlertDialogAnimator, IOSAlertDialogAnimator, AndroidAlertDialogAnimator} from './animator';
import deviceBackButtonDispatcher from '../device-back-button-dispa... |
src/components/Header/Header.js | AlanDeLonga/portfolio | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Header.css';
import Link from '../Link';
import Navigation from '../Navigation';
import logoUrl from './ADLogo.png';
class Header extends React.Component {
render() {
return (
<div className={s.root... |
components/public/ActiveNavItem.js | hustlzp/react-redux-example | import React from 'react'
import Radium from 'radium'
import { Link } from 'react-router'
@Radium
export default class ActiveNavItem extends React.Component {
static propTypes = {
path: React.PropTypes.string.isRequired,
text: React.PropTypes.string.isRequired,
currentPath: React.PropTypes.... |
src/containers/test.js | tmslav/project1 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types'
const propTypes = {
};
class Test extends Component {
render() {
return (
<div></div>
);
}
}
const mapStateToProps = (state) => {
return ... |
client/pages/AppPage.js | phoenixmusical/membres | import React from 'react';
import Page from '../components/Page';
import NavBar from '../components/NavBar';
import SideBar from '../components/SideBar';
export default class AppPage extends Page {
constructor (props) {
super(props);
this.state = {
comities: [],
user: {
... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js | TrungSpy/React-Native-SampleProject | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
reactjs-nuclearjs/src/index.js | hawkup/github-stars | import { AppContainer } from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
const rootEl = document.getElementById('root');
ReactDOM.render(
<AppContainer>
<App />
</AppContainer>,
rootEl
);
if (module.hot) {
module.hot.accept('./App', () => {
... |
app/containers/circles.js | bartoszkrawczyk2/react-redux-canvas | import React, { Component } from 'react';
import { connect } from 'react-redux';
import ToolbarItem from '../components/toolbarItem';
import { toggleCircle, moveCircle } from '../actions/circles';
let mapStateToProps = (state) => state;
let mapDispatchToProps = (dispatch) => ({
toggleCircle: index => dispatc... |
src/views/LoginView.js | mbarth/user-auth-react-redux-example | import React from 'react';
import ReactDOM from 'react-dom';
import linkedState from 'react-link';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import * as actionCreators from '../actions';
import {Link} from 'react-router';
export class LoginView extends React.Component {
compon... |
src/svg-icons/image/lens.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (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 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
Ima... |
src/icons/IosRecordingOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosRecordingOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M386.2,144c-60.6,0-109.8,50.1-109.8,112c0,40.4,21,75.7,52.5,95.4H183.1c31.5-19.7,52.5-55,52.5-95.4
c0-61.9-4... |
packages/generator-react-server/generators/app/templates/components/hello-world.js | doug-wade/react-server | import React from 'react';
import {logging} from 'react-server';
const logger = logging.getLogger(__LOGGER__);
export default class HelloWorld extends React.Component {
constructor(props) {
super(props);
this.state = {exclamationCount: 0};
this.handleClick = () => {
logger.info(`Getting more excited! previo... |
CompositeUi/src/views/page/project/TaskList.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 SettingsIcon from './../../../svg/... |
src/StageIndicator.js | glennflanagan/react-stage-indicator | import React from 'react';
var StageIndicator = React.createClass({
render: function () {
return(
<div>
StageIndicator
</div>
);
}
});
export default StageIndicator;
|
app/containers/BusinessPage/index.js | j921216063/chenya | import React from 'react';
import Helmet from 'react-helmet';
import LargeWindSection from 'components/LargeWindSection';
import TTWindSection from 'components/TTWindSection';
import GreenEnergySection from 'components/GreenEnergySection';
import HybridSystemSection from 'components/HybridSystemSection';
export defau... |
src/components/DraggableItem.js | clariussystems/react-orderable | import clamp from 'lodash.clamp';
import classNames from 'classnames';
import React from 'react';
import styles from './DraggableItem.scss';
class DraggableItem extends React.Component {
static propTypes = {
animated: React.PropTypes.bool,
children: React.PropTypes.node,
className: React.PropTypes.string... |
renderer/vectors/dropdown-arrow.js | wulkano/kap | import React from 'react';
import Svg from './svg';
const DropdownArrowIcon = props => (
<Svg {...props}>
<path d="M7 10l5 5 5-5H7z"/>
</Svg>
);
export default DropdownArrowIcon;
|
packages/react-instantsearch-dom-maps/src/Redo.js | algolia/react-instantsearch | import React from 'react';
import PropTypes from 'prop-types';
import { createClassNames, translatable } from 'react-instantsearch-dom';
import GeoSearchContext from './GeoSearchContext';
import withGoogleMaps from './withGoogleMaps';
const cx = createClassNames('GeoSearch');
const RedoPropTypes = {
googleMapsInstan... |
client/node_modules/uu5g03/dist-node/forms-v3/internal/item-list.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, SectionMixin, Tools} from './../../common/common.js';
import './item-list.less';
export default React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin,
SectionMixin
],
//@@viewOff:mixins
//@@viewOn:statics
s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.