path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
source/components/TileGenerationUiControls.js | PitchInteractiveInc/hexagon-cartograms | import React from 'react'
import DatasetSelector from './DatasetSelector'
import ResolutionSlider from './ResolutionSlider'
import ImportControls from './ImportControls'
export default class TileGenerationUiControls extends React.Component {
constructor(props) {
super(props)
this._changeOption = this._chan... |
src/svg-icons/action/motorcycle.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionMotorcycle = (props) => (
<SvgIcon {...props}>
<path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2... |
packages/ringcentral-widgets-docs/src/app/pages/Components/ContactDetails/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
packages/core/admin/admin/src/content-manager/icons/Underline/index.js | wistityhq/strapi | import React from 'react';
const Underline = () => {
return (
<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<text
transform="translate(-10 -11)"
fill="#101622"
fillRule="evenodd"
fontSize="13"
fontFamily="Baskerville-SemiBold, Baskerville"
f... |
JavaProject/generatorBuilder/static/client.angular2/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | BBVA-CIB/APIRestGenerator | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/mui/layout/Notification.js | azureReact/AzureReact | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Snackbar from 'material-ui/Snackbar';
import { hideNotification as hideNotificationAction } from '../../actions/notificationActions';
import translate from '../../i18n/translate';
function getStyles(context) {
... |
src/routes.js | Gattermeier/hapi-react-transform-boilerplate | import React from 'react';
import App from './App';
import { Route, IndexRoute } from 'react-router';
const routes = (
<Route path="/">
<IndexRoute component={App}/>
</Route>
)
export default routes
|
ui/src/main/js/components/JobList.js | crashlytics/aurora | import React from 'react';
import Icon from 'components/Icon';
import JobListItem from 'components/JobListItem';
import Pagination from 'components/Pagination';
import { isNully } from 'utils/Common';
import { TASK_COUNTS } from 'utils/Job';
// VisibleForTesting
export function searchJob(job, query) {
const taskCo... |
app/javascript/mastodon/features/community_timeline/components/column_settings.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
src/containers/art/index.js | pixelass/pixelass-homepage | import React from 'react'
import {Grid, Column, fullWidth} from '../../components/layout'
import Slider from '../../components/slider'
import art from '../../data/art'
const Art = () => (
<section>
<Grid>
<Column s={fullWidth}>
<h3>Geometrical art and illusions.</h3>
<p>
Contre l... |
app/components/Icons/icons/icon-linkedin.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
function LogoLinkedin() {
return (
<svg
aria-hidden="true"
data-prefix="fab"
data-icon="linkedin"
className="svg-inline--fa fa-linkedin fa-w-14"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
>
<path
fill=... |
examples/src/components/CustomSingleValue.js | keppelen/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var SingleValue = React.createClass({
propTypes: {
placeholder: React.PropTypes.string,
value: React.PropTypes.object
},
render () {
var obj = this.props.value;
var size = 15;
var gravatarStyle = {
borderRadius: 3,
display: 'inline-bl... |
demos/forms-demo/src/index.js | bdjnk/cerebral | import React from 'react'
import {render} from 'react-dom'
import {Controller} from 'cerebral'
import {Container} from 'cerebral/react'
import Devtools from 'cerebral/devtools'
import Router from 'cerebral-router'
import app from './modules/app'
import simple from './modules/simple'
import checkout from './modules/chec... |
app/javascript/mastodon/features/status/index.js | codl/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '../../components/missing_indicator';
... |
pages/about/index.js | a76/eric | import React from 'react';
import s from './styles.css';
import { title, html } from './index.md';
class AboutPage extends React.Component {
componentDidMount() {
document.title = title;
}
render() {
return (
<div>
<h1>{title}</h1>
<div dangerouslySetInnerHTML={{ __html: html }} /... |
src/routes/not-found/index.js | AaronHartigan/DudeTruck | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/Context.js | robcalcroft/react-native-in-app-notification | import React from 'react';
const context = React.createContext(() => {});
export default context;
|
src/pages/classes.js | Syncano/syncano-dashboard | import React from 'react';
export default React.createClass({
displayName: 'Classes',
render() {
return this.props.children;
}
});
|
src/components/slider/SliderPointer.js | conorhastings/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import shallowCompare from 'react-addons-shallow-compare'
export class SliderPointer extends ReactCSS.Component {
shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1])
classes(): any {
return {
... |
src/components/Github/Logout.js | jseminck/react-native-github-feed | import React from 'react';
import { Text, View, TouchableHighlight } from 'react-native';
export default class Logout extends React.Component {
static propTypes = {
onLogout: React.PropTypes.func.isRequired
}
render() {
return (
<TouchableHighlight onPress={this.props.onLogout}... |
client/modules/core/components/chatlist.js | Entropy03/jianwei | import React from 'react';
import Paper from 'material-ui/Paper';
import Avatar from 'material-ui/Avatar';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import CommunicationChatBubble from 'material-ui/svg-icons/communication/c... |
src/app/core/atoms/icon/icons/add-topbar.js | blowsys/reservo | import React from 'react'; const AddTopbar = (props) => <svg {...props} viewBox="0 0 48 48"><g><g><path d="M23,23 L14.0024617,23 C13.4394583,23 13,23.4477153 13,24 C13,24.5561352 13.4488174,25 14.0024617,25 L23,25 L23,33.9975383 C23,34.5605417 23.4477153,35 24,35 C24.5561352,35 25,34.5511826 25,33.9975383 L25,25 L33.99... |
src/svg-icons/action/open-with.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenWith = (props) => (
<SvgIcon {...props}>
<path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/>
</SvgIcon>
);
ActionOpenWith = pure(Act... |
packages/material-ui-icons/src/Accessible.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><circle cx="12" cy="4" r="2" /><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V15c0 1.1.9 2 2 2... |
app/android/containers/movies/page.js | GilbertLS/MovieCircle | import React, { Component } from 'react';
import ScrollableTabView from 'react-native-scrollable-tab-view';
import {
StyleSheet,
View,
Text,
ScrollView,
Image,
} from 'react-native';
import {
MovieGridLogic,
MovieGrid,
} from '../../components';
export default class MoviesPage extends Component {
con... |
src/components/Thead.js | jayendra-sharan/json-grid-react | import React, { Component } from 'react';
class Thead extends Component {
constructor(props) {
super();
this.onClick = this.onClick.bind(this);
this.state = {
currHead: null,
prevHead: null
}
}
onClick(event) {
event.preventDefault();
if (this.state.currHead === null) {
... |
src/svg-icons/action/pregnant-woman.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPregnantWoman = (props) => (
<SvgIcon {...props}>
<path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"/>
</SvgIcon>
);
... |
website/src/components/readnext.js | honnibal/spaCy | import React from 'react'
import PropTypes from 'prop-types'
import Icon from './icon'
import Link from './link'
import { Label } from './typography'
import classes from '../styles/readnext.module.sass'
export default function ReadNext({ title, to }) {
return (
<div className={classes.root}>
... |
src/docs/utils/QueryDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Query from 'grommet-addons/utils/Query';
import DocsArticle from '../../components/DocsArticle';
let query = new Query('(a OR b) AND (n:v OR n:w) "big deal" NOT ' +
'01:23:45:67:89:ab 2016-01-31T16:... |
src/index.js | daysai/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './containers/App'
import stageApp from './reducers'
import { zoomStage } from './actions/actions'
... |
admin/client/App/screens/Item/index.js | andrewlinfoot/keystone | /**
* Item View
*
* This is the item view, it is rendered when users visit a page of a specific
* item. This mainly renders the form to edit the item content in.
*/
import React from 'react';
import { Center, Container, Spinner } from '../../elemental';
import { connect } from 'react-redux';
import { Link } from ... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | salvadorpla/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
src/main/resources/static/js/components/utils/UnitTestHelper.js | adioss/MyWebAppBootstrap | import React from 'react';
import {IntlProvider, intlShape} from 'react-intl';
import Enzyme, {mount, shallow} from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import locale from '../../i18n/en-US';
Enzyme.configure({adapter: new Adapter()});
const intlProvider = new IntlProvider({
locale: 'en',
... |
node_modules/react-bootstrap/es/MediaListItem.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 ... |
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js | mxw0417/actor-platform | import React from 'react';
import AvatarItem from 'components/common/AvatarItem.react';
class ContactItem extends React.Component {
static propTypes = {
contact: React.PropTypes.object,
onToggle: React.PropTypes.func
}
constructor(props) {
super(props);
this.onToggle = this.onToggle.bind(this)... |
app/javascript/mastodon/features/blocks/index.js | WitchesTown/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll-4';
import Column from '../ui/componen... |
ui/src/js/backOffice/BackOfficeOverview.js | Dica-Developer/weplantaforest | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import './backOfficeOverview.less';
class BackofficeLink extends Component {
constructor(props) {
super(props);
}
linkTo(url) {
browserHistory.push(url);
}
render() {
return (
<div className="col-md-4... |
src/browser/app/LoadingBar.js | chad099/react-native-boilerplate | // @flow
import React from 'react';
import defaultTheme from '../themes/defaultTheme';
import { createComponent } from 'react-fela';
const color = defaultTheme.colors.primary;
const LoadingBar = (props: any, { renderer }: any) => {
const opacity = renderer.renderKeyframe(() => ({
'0%': { opacity: 1 },
'100%... |
src/containers/async/components/LoadingSpinner.js | kryptnostic/gallery | import React from 'react';
import styles from './loading.spinner.module.css';
export default function() {
// https://github.com/SamHerbert/SVG-Loaders
return (
<div className={styles.loadingSpinnerWrapper}>
<svg
className={styles.loadingSpinner}
stroke="#455a64"
width="50"... |
tests/Rules-isExisty-spec.js | RMSAuto/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | idotnetsri/myh | 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/components/List.js | YouYII/EasyReader | //@flow
import React from 'react';
import {
ListView,
Text,
View,
Alert
} from 'react-native';
import Item from './Item';
export default class List extends React.Component {
props:{
ds:ListView.DataSource
};
render() {
return (<ListView
dataSource={this.props.ds}
render... |
src/components/About.js | NationalAssociationOfRealtors/SmartHomeChecklist | import React, { Component } from 'react';
import { Link } from 'react-router'
class About extends Component {
constructor(props) {
super(props);
window.scrollTo(0, 0);
}
render() {
var pStyle = { height: '100vh' };
return (
<div>
<div className="container-text-body">
<div class... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js | romaindso/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id, ...rest } = { id: 0, user: { id: 42, ... |
app/js/profiles/components/registration/UsernameResultSubdomain.js | blockstack/blockstack-browser | import React from 'react'
import { Link } from 'react-router'
const UsernameResultSubdomain = (props) => {
const {
name,
index
} = props
return (
<div className="username-search-result">
<h4>{name}</h4>
<Link
className="btn btn-primary btn-block"
to={`/profiles/i/add-user... |
MobileApp/node_modules/react-native-tab-navigator/Badge.js | VowelWeb/CoinTradePros.com | 'use strict';
import React from 'react';
import {
StyleSheet,
Text,
} from 'react-native';
import Layout from './Layout';
export default class Badge extends React.Component {
static propTypes = Text.propTypes;
constructor(props, context) {
super(props, context);
this._handleLayout = this._handleLay... |
react_app/src/components/Settings/SettingsInput/SettingsInput.js | morpheyesh/TeenyURL | // ==========================================
// SettingsInput.js
// ----
// Standard "text input" for various settings
// ==========================================
// ---- External Dependencies ----
import React, { Component } from 'react';
import TextareaAutosize from 'react-textarea-autosize';
// ---- Internal De... |
src/icons/DnsIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class DnsIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 26H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h32c1.1 0 2-.9 2-2V28c0-1.1-.9-2-2-2zM14 38c-2.21 0-4-1.79-4-4s1.79-4... |
src/svg-icons/action/track-changes.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrackChanges = (props) => (
<SvgIcon {...props}>
<path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s... |
assets/js/tools.js | voidpp/Marvin |
import React from 'react';
export function freeParamize(args) {
let params = {};
let contents = [];
args.forEach(arg => {
if (arg === null)
return;
if (typeof arg == 'object') {
if ('_isReactElement' in arg)
contents.push(arg);
else
... |
docs/app/Examples/elements/Image/States/ImageExampleDisabled.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleDisabled = () => (
<Image src='/assets/images/wireframe/image.png' size='medium' disabled />
)
export default ImageExampleDisabled
|
src/svg-icons/image/flash-off.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOff = (props) => (
<SvgIcon {...props}>
<path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/>
</SvgIcon>
);
ImageFlashOff = pure(ImageFlashOf... |
03-postcss/lib/info/index.js | samueleaton/approaches-to-styling | import React from 'react'
import styleable from 'react-styleable'
import StackItem from './components/stack-item'
@styleable(require('./index.css'))
export default class Layout extends React.Component {
getStackItemCss() {
return {
container: this.props.css.stackItem,
img: this.props.css.img
}
... |
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js | ArcanisCz/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* A basic vertical non-linear implementation
*/
class VerticalNonLinear extends React.Component {... |
packages/material-ui-icons/src/SignalWifi2BarLockTwoTone.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5l3.5-4.36V14.5z" /><path d="M15.5 14.5c0-1.34.51-2.53 1.34-... |
app/modules/common/layout/components/drawer.js | theseushu/runcai | import React from 'react';
import { Drawer } from 'react-mdl/lib/Layout';
export default () => (
<Drawer title="Title" />
);
|
src/withStore.js | mindhivenz/mobx | import React from 'react'
import shallowEqual from 'recompose/shallowEqual'
import { observer } from 'mobx-react'
import fromPairs from 'lodash/fromPairs'
import global from 'global'
// REVISIT: be reactive to observable changes used in constructor?
export default ({
storeClass,
propName = undefined,
mapPropsTo... |
src/components/signup/form.signup.js | guzmonne/mcp | import React from 'react'
import DivisibleInput from '../form/divisible_input.form.js'
import Radios from '../form/radios.form.js'
import RowColXS12 from '../bootstrap/row.col-xs-12.js'
const genderRadioOptions = [
{name: 'Hombre', value: 'male'},
{name: 'Mujer', value: 'female'}
]
export default class LoginForm ex... |
app/javascript/mastodon/features/direct_timeline/components/conversation.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from 'mastodon/components/status_content';
import AttachmentList from 'mastodon/components/attachment_list'... |
src/models/FallbackBlockType.js | vigetlabs/colonel-kurtz | /**
* A fallback block type
*/
import BlockType from './BlockType'
import React from 'react'
export default class FallbackBlockType extends BlockType {
constructor({ block }) {
super({
type: 'unsupported',
component: class FallbackBlock extends React.Component {
render() {
return... |
docs/app/Examples/elements/Divider/Variations/DividerExampleClearing.js | ben174/Semantic-UI-React | import React from 'react'
import { Segment, Button, Divider } from 'semantic-ui-react'
const DividerExampleClearing = () => (
<Segment>
<Button floated='right'>Floated Button</Button>
<Divider clearing />
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.... |
content/script.js | tkorakas/gmail-lists | import ReactDOM from 'react-dom';
import React from 'react';
import Content from './index';
import appID from './AppId'
InboxSDK.load('2', appID).then(function (sdk) {
// The SDK has been loaded.
sdk.Compose.registerComposeViewHandler(function (composeView) {
// A compose view has come into existence.
comp... |
frontend/components/statement/Statement.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {wrapLinkMouseEvent} from '../../util';
import styles from './Statement.less';
const Statement = ({children, onClick, href}) => (
<a
href={href}
onClick={wrapLinkMouseEvent(onClick)}
c... |
app/src/index.js | jluangphasy/shop | import React from 'react';
import ReactDOM from 'react-dom';
import Root from './components/Root';
import './index.css';
/**
* Mount <Root /> to <div id="root">
*/
ReactDOM.render(
<Root />,
document.getElementById('root')
);
|
examples/todos/src/containers/AddTodo.js | roth1002/redux | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
src/templates/category-template.js | wpioneer/gatsby-starter-lumen | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
import { useSiteMetadata }... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsConstructorNoArgs.js | MichaelDeBoey/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
constructor() {}
defaultProps: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
constructor() {}
defaultProps: T;
static state: T;
a: T;
... |
src/client/components/editable.react.js | sljuka/portfulio | import Component from '../components/component.react';
import React from 'react';
import Textarea from 'react-textarea-autosize';
import classnames from 'classnames';
import immutable from 'immutable';
import {msg} from '../intl/store';
const State = immutable.Record({
isEditing: false,
value: ''
});
const initia... |
src/components/Common/List/Components/Magazines4/index.js | LifeSourceUA/lifesource.ua | /**
* [IL]
* Library Import
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
/**
* [IV]
* View Import
*/
import Desktop from './Views/Desktop';
/**
* [IBP]
* Breakpoints
*/
import BP from 'lib/breakpoints';
/**
* [ICONF]
* Config Impor... |
app/javascript/packs/StatusPage.js | cohakim/clean_them_all | import React from 'react'
import { Provider } from 'react-redux'
import store from '../store/rootStore'
import StatusPageContainer from '../containers/StatusPageContainer.jsx'
const StatusPage = (props) => (
<Provider store={store}>
<StatusPageContainer progress_bar={props.progress_bar} operation={props.operati... |
app/main.js | joshthecoder/zygote | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import Root from './containers/root';
import { browserHistory } from 'react-router';
render(
<Root history={browserHistory} />,
document.getElementById('app')
);
|
src/components/LayerSubtitle/LayerSubtitle.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
import { DragSource } from 'react-dnd'
import HTML5Backend from 'react-dnd-html5-backend'
import Charts from '../Charts/Charts.js'
import DataTable from '../DataTable/DataTable.js'
import Sinalid from '../Sinalid/Sinalid.js'
import LayerStylesCarouselContainer from '../LayerStylesCarousel/Laye... |
src/components/Settings/WebChat/WebchatSettings.react.js | DravitLochan/accounts.susi.ai | import React, { Component } from 'react';
import { addUrlProps, UrlQueryParamTypes } from 'react-url-query';
import PropTypes from 'prop-types';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton'
const urlPropsQueryConfig = {
client: { type: UrlQueryParamTypes.string },
};
cla... |
app/components/Button/index.js | abakusbackup/abacash-client | // @flow
import React from 'react';
import classNames from 'classnames';
import Style from './Button.css';
import Buttons from './Buttons';
type Props = {
label: string,
icon?: string,
onClick: () => any,
disabled?: boolean,
notification?: boolean,
loading?: boolean,
square?: boolean,
confirm?: boolean... |
node_modules/semantic-ui-react/dist/es/collections/Message/MessageHeader.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _isNil from 'lodash/isNil';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
/**
* A message can conta... |
src/Fade.js | andrew-d/react-bootstrap | import React from 'react';
import Transition from './Transition';
class Fade extends React.Component {
render() {
return (
<Transition
{...this.props}
className='fade'
enteredClassName='in'
enteringClassName='in'
>
{this.props.children}
</Transition>
... |
content/src/scripts/components/app/StoryContainer.js | CaliAlec/ChromeIGStory | import React, { Component } from 'react';
import {connect} from 'react-redux';
import Story from '../../../../../utils/Story';
import LiveVideo from '../../../../../utils/LiveVideo';
import {getStorySlide} from '../../../../../utils/Utils';
class StoryContainer extends Component {
constructor(props) {
super(prop... |
examples/async/containers/Root.js | jackielii/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
customView/node_modules/react-native/Libraries/Text/Text.js | TheKingOfNorway/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... |
pootle/static/js/admin/components/AdminController.js | mail-apps/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import Backbone from 'backbone';
import Rea... |
src/js/components/Tip/stories/CustomThemed/SidebarTip.js | grommet/grommet | import React from 'react';
import {
Avatar,
Button,
Box,
Grommet,
Nav,
Sidebar,
Stack,
Tip,
} from 'grommet';
import {
Analytics,
Calculator,
Gremlin,
Notification,
Stakeholder,
} from 'grommet-icons';
const src = '//s.gravatar.com/avatar/b7fb138d53ba0f573212ccce38a7c43b?s=80';
const custo... |
packages/material-ui/src/SwipeableDrawer/SwipeArea.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import { capitalize } from '../utils/helpers';
import { isHorizontal } from '../Drawer/Drawer';
export const styles = theme => ({
root: {
position: 'fixed',
top: ... |
src/svg-icons/image/crop-16-9.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop169 = (props) => (
<SvgIcon {...props}>
<path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/>
</SvgIcon>
);
ImageCrop169 = pure(ImageCrop169);
ImageCr... |
src/components/pages/HomePage/HomePage.js | asukaleido/react-flux-example | import React from 'react';
import { Heading } from '../../ui/atoms';
import { Title } from '../../ui/molecules';
import s from './HomePage.css';
export default function HomePage() {
return (
<main className={s.root}>
<Title />
<div className={s.container}>
<Heading>HomePage</Heading>
</... |
fields/types/select/SelectColumn.js | webteckie/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var SelectColumn = React.createClass({
displayName: 'SelectColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () ... |
src/home/walkthroughs.component.js | CanopyTax/single-spa-examples | import React from 'react';
import {StyleSheet, css} from 'aphrodite';
export default class Walkthroughs extends React.Component {
constructor() {
super();
this.state = {
first: false,
second: false,
third: false,
};
}
render() {
return (
<ul className="collection">
... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/Form.js | GoogleCloudPlatform/prometheus-engine | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
children: PropTypes.node,
inline: PropTypes.bool,
tag: tagPropType,
innerRef: PropTypes.oneOfType([PropTypes.object, Pro... |
src/components/common/svg-icons/action/system-update-alt.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
server/sonar-web/src/main/js/apps/about/components/CodeSmellIconForSonarQubeDotCom.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/svg-icons/image/dehaze.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageDehaze = (props) => (
<SvgIcon {...props}>
<path d="M2 15.5v2h20v-2H2zm0-5v2h20v-2H2zm0-5v2h20v-2H2z"/>
</SvgIcon>
);
ImageDehaze = pure(ImageDehaze);
ImageDehaze.displayName = 'ImageDehaze';
ImageDehaze... |
components/card/cardMediaItem.js | react-material-design/react-material-design | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { cardMediaItemcssClasses as imgClasses } from '../classes';
import CardTitle from './cardTitle';
const cx = classNames.bind(imgClasses);
/** Card Media Item */
const CardMediaItem = ({ children, imgSrc, imgSize,... |
boxroom/archive/backup-js-surface-2018-01-28/boxroom/archive/2018-01-21/src/main/js-surface-react.js | js-works/js-surface | import adaptComponentClass from './adaption/adaptComponentClass';
import adaptCreateElement from './adaption/adaptCreateElement';
import adaptHyperscript from './adaption/adaptHyperscript';
import adaptReactifiedDefineComponent from './adaption/adaptReactifiedDefineComponent';
import adaptMount from './adaption/adaptMo... |
front/src/components/Graphs.js | ezeql/cf-test | import React from 'react';
import TransactionStore from '../stores/TransactionStore';
export default class Graphs extends React.Component {
constructor(props) {
super(props);
this.state = { };
this.change = this.change.bind(this);
}
render() {
return (
<div>TBD... |
assets/search-employee-view/components/PostJobComponent.js | janta-devs/nyumbani | import React, { Component } from 'react';
import BackComponent from './BackComponent';
var dataCollection = {};
import $ from 'jquery';
class PostJobComponent extends Component{
constructor(context, props){
super( context, props );
this.state = {
finalData: []
}
}
componentDidMount() {
console.log( t... |
example/components/PlatformTouchableHighlight.js | taxfix/native-navigation | /* eslint react/prop-types: 0 */
import React from 'react';
import {
ColorPropType,
TouchableHighlight,
} from 'react-native';
import {
createPlatformTouchableComponent,
touchablePropTypes,
} from '../util/platformTouchable';
const propTypes = {
...touchablePropTypes,
color: ColorPropType,
};
export defau... |
src/svg-icons/device/devices.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDevices = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
</Sv... |
src/parser/shared/modules/items/bfa/dungeons/BalefireBranch.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { formatDuration, formatNumber } from 'common/format';
import { calculatePrimaryStat } from 'common/stats';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interface/... |
packages/icons/src/network.js | yldio/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
client/components/contact/index.js | burgessa23/tiff-cv-site | import React, { Component } from 'react';
import Nav from '../nav';
export default class ContactComponent extends Component {
render() {
return(
<div>contact page</div>
);
}
}
|
client/index.js | rebeckag/freecodecamp | import Rx from 'rx';
import React from 'react';
import Fetchr from 'fetchr';
import debugFactory from 'debug';
import { Router } from 'react-router';
import { history } from 'react-router/lib/BrowserHistory';
import { hydrate } from 'thundercats';
import { Render } from 'thundercats-react';
import { app$ } from '../co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.