path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/icons/InvertColorsIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class InvertColorsIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M35.31 15.86L24 4.54 12.69 15.86c-6.25 6.25-6.25 16.38 0 22.63 3.12 3.12 7.22 4.69 11.31 4.69s8.19-1.... |
docs/src/app/components/pages/components/Stepper/HorizontalLinearStepper.js | barakmitz/material-ui | import React from 'react';
import {
Step,
Stepper,
StepLabel,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* Horizontal steppers are ideal when the contents of one step depend on an earlier step.
* Avoid using long step ... |
src/common/components/Layout/index.js | ufocoder/redux-universal-boilerplate | import React from 'react'
import PropTypes from 'prop-types'
import Header from './Header'
import Footer from './Footer'
import 'semantic-ui-css/semantic.css'
const Layout = (props) => (
<div>
<div className='layout-container'>
<Header loggedIn={props.loggedIn} />
<div className='ui text container'... |
src/smif/app/src/components/Welcome.js | nismod/smif | import React from 'react'
import IntroBlock from 'components/ConfigForm/General/IntroBlock.js'
const Welcome = () => (
<IntroBlock title="Welcome to smif" intro="smif (a simulation modelling integration framework) is designed to support the creation and running of system-of-systems models.">
<div>
... |
src/packages/@ncigdc/modern_components/CaseCounts/CaseCountsDataCategory.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import { compose, branch, renderComponent } from 'recompose';
import { makeFilter, mergeQuery } from '@ncigdc/utils/filters';
import SummaryCard from '@ncigdc/components/SummaryCard';
import Link from '@ncigdc/components/Links/Link';
import SampleSize from '@ncigdc/components/Sample... |
stories/examples/apollo.js | codiemullins/downshift | import React from 'react'
import {
ApolloClient,
ApolloProvider,
createNetworkInterface,
gql,
graphql,
} from 'react-apollo'
import Autocomplete from '../../src'
export default Examples
const networkInterface = createNetworkInterface({
uri: 'https://api.graph.cool/simple/v1/cj5k7w90bjt2i0122z6v0syvu',
})
... |
admin/src/components/Lightbox.js | wustxing/keystone | import React from 'react';
import blacklist from 'blacklist';
import Portal from './Portal';
const Transition = React.addons.CSSTransitionGroup;
const BODY = document.getElementsByTagName('body')[0];
var Lightbox = React.createClass({
displayName: 'Lightbox',
propTypes: {
backdropClosesModal: React.PropTypes.bool... |
information/blendle-frontend-react-source/app/modules/item/components/RestoreReadingProgressNotification/index.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { pure } from 'recompose';
import {
Notification,
NotificationBody,
NotificationTitle,
NotificationFooter,
Button,
ButtonGroup,
} from '@blendle/lego';
import { translate } from 'instances/i18n';
import CSS from './style.scss';
const Res... |
src/index.js | johny/react-redux-todo-app | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import todoApp from './reducers/reducers';
import App from './components/App';
let store = createStore(todoApp);
ReactDOM.render(
<Provider store={store}>
<App />
</Provid... |
analysis/warlockdestruction/src/modules/talents/ReverseEntropy.js | anom0ly/WoWAnalyzer | import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import UptimeIcon from 'interface/icons/Uptime';
import Analyzer from 'parser/core/Analyzer';
import BoringSpellValueText from 'parser/ui/BoringSpellValueText';
import Statistic from 'parser/ui/Statistic';
import STATISTIC_CATEGORY fr... |
client/src/components/Header/Header.js | ungs-pp1g2/delix | import React from 'react';
import AppBar from 'material-ui/AppBar';
import { Link } from 'react-router';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import IconButton from 'material-ui/IconButton';
cons... |
app/javascript/mastodon/features/ui/components/image_loader.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ZoomableImage from './zoomable_image';
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
src: PropTypes.string.isRequired,
previewSrc: PropT... |
actor-apps/app-web/src/app/components/common/Fold.React.js | amezcua/actor-platform | /* eslint-disable */
import React from 'react';
import classnames from 'classnames';
class Fold extends React.Component {
static PropTypes = {
icon: React.PropTypes.string,
iconClassName: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
state = {
isOpen: false
};
construc... |
pages/location.js | subvisual/2017.mirrorconf.com | import React from 'react';
import '../css/Components/LocationPage';
import Tabs from '../Components/Tabs';
import Venue from '../Components/Venue';
import Moving from '../Components/Moving';
import Sleeping from '../Components/Sleeping';
import Footer from '../Components/Footer';
import Mirror from '../Components/Mir... |
client/App/Competition/Presentation/index.js | JohannesAnd/SKWebsite | import React from 'react';
import { connect } from '@cerebral/react';
import { state, sequences } from 'cerebral';
import {
faArrowCircleLeft,
faArrowCircleRight,
faTimesCircle,
} from '@fortawesome/free-solid-svg-icons';
import {
Wrapper,
Title,
Image,
Photographer,
ImageCounter,
HeaderWrapper,
Ar... |
src/app/components/ApplicationBar.js | DmitryKorlas/js-test-recorder | import React from 'react';
import {Icon} from './Icon';
export class ApplicationBar extends React.Component {
static propTypes = {
onSettingsClick: React.PropTypes.func
};
renderSettingsLink() {
return (
<a onClick={this.props.onSettingsClick}>
<Icon style={{co... |
packages/ui-toolkit/src/table/index.js | geek/joyent-portal | import React from 'react';
import { Broadcast, Subscriber } from 'joy-react-broadcast';
import isBoolean from 'lodash.isboolean';
import isNaN from 'lodash.isnan';
import styled, { css } from 'styled-components';
import is, { isOr } from 'styled-is';
import remcalc from 'remcalc';
import Baseline from '../baseline';
i... |
examples/official-storybook/stories/addon-viewport.stories.js | rhalff/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { baseFonts } from '@storybook/components';
import { Viewport, withViewport } from '@storybook/addon-viewport';
import EventEmitter from 'eventemitter3';
import Logger from './Logger';
// eslint-disable-next-line react/prop-types
const Pa... |
apps/marketplace/components/Onboarding/OnboardingContainer.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { withRouter, Switch, Route } from 'react-router-dom'
import NotFound from 'marketplace/components/NotFound'
import BuyerOnboarding from './BuyerOnboarding'
import SellerOnboarding from './SellerOnboarding'
const OnboardingContainer = props => {
con... |
src/App/components/AddToFav/index.js | hajjiTarik/SolarNews | import React, { Component } from 'react';
import { StyleSheet, TouchableOpacity, View } from 'react-native';
import { Icon } from 'react-native-elements';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { omit } from 'lodash';
import { getFromStorage, setInStorage } from '../.... |
src/components/InputTypeDropzone.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Dropzone from 'react-dropzone';
import { get } from 'lodash';
import { imagePreview } from '../lib/utils';
import { upload } from '../lib/api';
import withIntl from '../lib/withIntl';
import { defineMessages } from 'react-intl';
import { colors } fro... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | salvadorpla/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func.isRequired,
ariaControls: PropTypes.s... |
src/components.js | andreypopp/reactdown | /**
* @copyright 2016-present, Reactdown team
* @flow
*/
import React from 'react';
export let Root = 'div';
export let Paragraph = 'p';
export let Strikethrough = 'del';
export let Image = 'img';
export let Break = 'br';
export let Emphasis = 'em';
export let Strong = 'strong';
export let InlineCode = 'co... |
src/svg-icons/action/polymer.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPolymer = (props) => (
<SvgIcon {...props}>
<path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/>
</SvgIcon>
);
ActionPolymer = pure(ActionPolymer);
ActionPolymer.d... |
JotunheimenPlaces/src/components/TagList.js | designrad/Jotunheimen-tracking | import React, { Component } from 'react';
import ReactNative from 'react-native';
const {
StyleSheet,
Text,
View,
TouchableOpacity,
TextInput,
TouchableHighlight
} = ReactNative;
import InputText from './InputText';
import update from 'react-addons-update';
/**
* TagList component
*/
export default cl... |
src/App.js | leecade/react-transform-boilerplate | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
analysis/druidferal/src/modules/spells/PredatorySwiftness.js | anom0ly/WoWAnalyzer | import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import BoringSpellValueText from 'parser/ui/BoringSpellValueText';
import Statistic from 'parser/ui/Statistic';
import STATISTI... |
pollard/components/SongSingleLine.js | spencerliechty/pollard | import React, { Component } from 'react';
import classNames from 'classnames';
import mergeStyles from '../lib/mergeStyles';
import MarkPlayedBtn from './MarkPlayedBtn';
import TitleArtistLine from './TitleArtistLine';
export default class SongSingleLine extends Component {
render() {
let songStyle= mergeSty... |
web/src/routes/about/index.js | kriasoft/Web-App-Boilerplate | /**
* 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/js/Results.js | jwmickey/memory-game | import React from 'react';
function calcScore(cards) {
return cards.reduce((score, card) => {
if (card.numFlips === 1) {
score += 10;
} else if (card.numFlips === 2) {
score += 5;
} else if (card.numFlips === 3) {
score += 3;
} else {
score -= 5;
}
return score;
}, 0... |
assets/javascripts/sso/components/AdminIndexCard.js | wchaoyi/sso | import StyleSheet from 'react-style';
import React from 'react';
import {History} from 'react-router';
let AdminIndexCard = React.createClass({
mixins: [History],
render() {
const buttons = [
{ title: "我的应用管理", target: "apps" },
{ title: "我的群组管理", target: "groups" },
{ title: "用户管理-管理员特供",... |
lib/frontend/router/nav-link.js | latteware/marble-seed | import React from 'react'
import env from '~base/env-variables'
import { NavLink } from 'react-router-dom'
const AppNavLink = (props) => {
var to = props.to
if (env.PREFIX) {
to = env.PREFIX + to
}
return <NavLink {...props} to={to} />
}
export default AppNavLink
|
tests/Rules-isNumeric-spec.js | bitgaming/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... |
web/react360/src/pages/HomeWebvr.js | JamesMillercus/Portfolio-Website | import React from 'react';
import { asset, Environment, View } from 'react-360';
import { connect } from 'react-redux';
import { compose } from 'redux';
import HeroContainer from './../components/locs/Hero/HeroContainer';
// import ItemContainer from './../components/locs/Item/ItemContainer';
import config from './../c... |
src/components/options/OptionsImageText.js | m0sk1t/react_email_editor | import React from 'react';
const OptionsImageText = ({ block, language, onFileChange, onPropChange }) => {
const fontSize = block.options.container.fontSize.match(/\d+/)?block.options.container.fontSize.match(/\d+/)[0]: '16';
return (
<div>
<div>
<label>{language["Custom style"]}: <input type="checkbox" che... |
src/renderer/components/tweets.js | r7kamura/retro-twitter-client | import React from 'react'
import Retweet from './retweet'
import Tweet from './tweet'
export default class Tweets extends React.Component {
getClassName() {
return `tweets${this.props.selected ? '' : ' tweets-hidden'}`;
}
render() {
return(
<div className={this.getClassName()}>
{this.rende... |
src/svg-icons/notification/airline-seat-individual-suite.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatIndividualSuite = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.65 0 3-1.35 3-3S8.65 7 7 7s-3 1.35-3 3 1.35 3 3 3zm12-6h-8v7H3V7H1v10h22v-6c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
Noti... |
src/index.js | louise-r-blue/reacting | {/*global.Ω = require('lomega')*/}
import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App.js'
const render = () => {
ReactDOM.render(<App />,
document.getElementById('app'))
}
console.log("here I am")
render()
{/*import React from 'react'
import ReactDom from 'react-dom'
im... |
app/components/PresetList.js | aidatorajiro/Ultimate-Development | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './PresetList.css';
export default class PresetList extends Component {
props : {
functions: Array<{
id: number,
name: string,
func: () => void
}>,
style : { [key: string]: string ... |
docs/src/pages/components/snackbars/ConsecutiveSnackbars.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
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';
const useStyles = makeStyles((them... |
docs/src/PageFooter.js | wjb12/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className="bs-docs-footer" role="contentinfo">
<div c... |
frontend/src/components/Content.js | mathemage/urednicci | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { Dashboard, History, MyCity } from '../containers';
const Content = () =>
<Switch>
<Route exact path="/" component={Dashboard} />
<Route path="/history/" component={History} />
<Route path="/my-city/" compone... |
src/svg-icons/device/dvr.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDvr = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 ... |
src/elements/Step/StepContent.js | Semantic-Org/Semantic-UI-React | import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
} from '../../lib'
import StepDescription from './StepDescription'
import StepTitle from './StepTitle'
/**
* A step can cont... |
packages/wix-style-react/src/Sidebar/Sidebar.js | wix/wix-style-react | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './Sidebar.st.css';
import { SidebarItem } from './SidebarItem';
import { SidebarPersistentHeader } from './SidebarPersistentHeader';
import { SidebarPersistentFooter } from './SidebarPersistentFooter';
import { Si... |
docs/app/Examples/collections/Form/Variations/index.js | ben174/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const FormFormVariationsExamples = () => (
<ExampleSection title='Form Variations'>
<ComponentExample
title='Size'
de... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | MKCapitalSAS/corporativo | 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/Transition/Node.js | codaco/Network-Canvas | import React from 'react';
import PropTypes from 'prop-types';
import { Transition } from 'react-transition-group';
import anime from 'animejs';
import { getCSSVariableAsObject, getCSSVariableAsNumber } from '@codaco/ui/lib/utils/CSSVariables';
const Node = ({ children, index, stagger, ...props }) => {
const delay =... |
src/js/components/welcome/Welcome.component.js | katie-day/we_do | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getWindowHeight } from '../../utils';
class Welcome extends Component {
renderNames() {
const { guest } = this.props;
const names = guest.names;
let punctuation = [' '];
if (guest.size === 1) pun... |
docs/src/app/components/navigation.js | ButuzGOL/constructor | import React from 'react';
import { Link } from 'react-router';
export default class Navigation extends React.Component {
static contextTypes = {
router: React.PropTypes.func
};
render() {
const router = this.context.router;
return (
<nav className="tm-navbar uk-navbar uk-navbar-attached">
... |
app/static/src/diagnostic/app.js | vsilent/Vision | import React from 'react';
import {Router, Route, IndexRoute, Link, hashHistory} from 'react-router'
import {Component} from 'react'
import {render} from 'react-dom'
import Equipment from './Components/Equipment';
import Home from './Components/Home';
import Campaign from './Components/Campaign';
import AddEquipmentFo... |
client/components/Matrix/Quadrants.js | Elektro1776/Project_3 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import UserStory from './UserStory';
import styles from './matrix.css';
class Quadrants extends Component {
state = {}
toggleCheckbox = (title) => {
// console.log(title);
}
render() {
return (
<div className={styles... |
frontend/app_v2/src/common/categoryIcons/Hash.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary Hash
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function Hash({ styling }) {
return (
<svg className={styling} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 100 100" stroke="currentColor"... |
src/js/components/icons/Pulse.js | linde12/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Add from './base/Add';
import CSSClassnames from '../../utils/CSSClassnames';
import classnames from 'classnames';
const CLASS_ROOT = CSSClassnames.PULSE;
export d... |
MapField/GeolocateInput.js | derniercri/react-components | import React from 'react'
import { View } from 'react-native'
import MapView from 'react-native-maps'
import defaultStyles from './styles'
const getRegion = (region = {}, currentRegion = {}) => {
const defaultRegion = {
latitude: 46.8104242,
longitude: 1.5360035,
latitudeDelta: 10,
longitudeDelta: 1... |
src/components/lineWidget/lineWidget.js | govau/datavizkit |
import React from 'react';
import PropTypes from 'prop-types';
import LineChart from './lineChart';
import Tooltip from './../tooltip/tooltip';
import {dateFormats} from './../../utils/displayFormats';
import './lineWidget.css';
const LineWidget = ({
chartTitle,
chartDescription,
chartUpdatedDate,
series,... |
src/giraffe-ui/conversation/errors.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
const Errors = ({
errors
}) => (
<div className={cx('convo-error-message', 'red', errors.length ? 'show' : '')}>
<span>{errors}</span>
</div>
)
Errors.propTypes = {
errors: PropTypes.array
}
export default Error... |
src/components/ShareExperience/common/Region.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import Select from 'common/form/Select';
import InputTitle from './InputTitle';
import styles from './Region.module.css';
import shareStyles from './share.module.css';
import { regionOptions } from './optionMap';
const Regio... |
packages/web/src/components/shared/CustomSvg.js | appbaseio/reactivesearch | import React from 'react';
import types from '@appbaseio/reactivecore/lib/utils/types';
import SearchSvg from './SearchSvg';
const CustomSvg = ({
iconId, className, icon, type,
}) => {
if (icon) {
return React.createElement('div', { className }, [
React.cloneElement(icon, { key: iconId }),
]);
}
if (type ==... |
packages/netlify-cms-backend-git-gateway/src/AuthenticationPage.js | netlify/netlify-cms | import PropTypes from 'prop-types';
import React from 'react';
import styled from '@emotion/styled';
import { partial } from 'lodash';
import {
AuthenticationPage,
buttons,
shadows,
colors,
colorsRaw,
lengths,
zIndex,
} from 'netlify-cms-ui-default';
const LoginButton = styled.button`
${buttons.button}... |
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleAutoHeight.js | koenvg/Semantic-UI-React | import React from 'react'
import { Form, TextArea } from 'semantic-ui-react'
const TextAreaExampleAutoHeight = () => (
<Form>
<TextArea placeholder='Try adding multiple lines' autoHeight />
</Form>
)
export default TextAreaExampleAutoHeight
|
src/scenes/tracksFeed/components/Track/PlayOverlay.js | niekert/soundify | import React from 'react';
import PropTypes from 'prop-types';
import PlayIcon from 'components/icons/Play';
import Pause from 'components/icons/Pause';
import styled, { css } from 'styled-components';
import QueueButton from 'components/buttons/QueueButton';
import LikeButton from 'components/buttons/LikeButton';
impo... |
packages/react-native-renderer/src/ReactNativeComponent.js | silvestrijonathan/react | /**
* Copyright (c) 2013-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
* @format
*/
import type {
MeasureInWindowOnSuccessCallback,
MeasureLayoutOnSuccessCallback,
MeasureOnSuccessCallback,
... |
src/components/SearchAutocomplete/index.js | hasibsahibzada/quran.com-frontend | // TODO: Should be handled by redux and not component states.
import React, { Component } from 'react';
import styled from 'styled-components';
import * as customPropTypes from 'customPropTypes';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { push } from 'react-router-redux';
import... |
src/d3Charts/stack.js | livingston/react-chart-spikes | import React, { Component } from 'react';
import { stack } from 'd3-shape';
import { scaleLinear, scaleBand, scaleOrdinal, schemeCategory20b } from 'd3-scale';
import FlexibleWrapper from '../ui/flexibleWrapper.js';
// Test data
require('chance');
const data = [{
label: 'Competitor 1',
electronics: chance.intege... |
shared/components/DemoApp/AsyncAbout/About.js | kennethtruong/react-webapp | import React from 'react';
import Helmet from 'react-helmet';
export default function About() {
return (
<article>
<Helmet title="About" />
This is a react starter kit with MongoDB, Express, React, Mobx.
</article>
);
}
|
src/svg-icons/image/hdr-strong.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrStrong = (props) => (
<SvgIcon {...props}>
<path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ... |
src/main/jsx/client/BuildPageActions.js | suryagaddipati/DotCi | import ReactDOM from 'react-dom';
import React from 'react';
import {build as fetchBuild, buildLog as fetchBuildLog,cancelBuild as cancelBuildApi} from './../api/Api.jsx';
import BuildPage from './../pages/BuildPage.jsx';
import Drawer from './../Drawer.jsx';
import page from 'page';
import {Build as AutoRefreshCompone... |
src/icons/StrokePen.js | ipfs/webui | import React from 'react'
const StrokePen = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M83.6 19.57l-.44-.44a8.09 8.09 0 0 0-8.42-1.89c-2.19-1.68-4.93-1.81-6.56-.17l-23 23c-1.46 1.46-1.51 3.8-.31 5.84L24.35 66.43A1.51 1.51 0 0 0 24 67l-5.84 15a1.49 1.49 0 0 0 1.4 2 1.59 1.59 0 0 0 .44 0l15.68-5.26... |
caseStudy/ui/src/components/charts/LineChart.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
src/components/Layout.js | verkstedt/react-amp-components | import React from 'react'
import { Helmet } from 'react-helmet'
import PropTypes from 'prop-types'
const Layout = ({ children }) => (
<Helmet>
<html lang="en" amp="" />
<meta charSet="utf-8" />
<script async="" src="https://cdn.ampproject.org/v0.js" />
<meta name="viewport" content="width=device-widt... |
example/posts.js | azureReact/AzureReact | import React from 'react';
import {
BooleanField,
BooleanInput,
CheckboxGroupInput,
ChipField,
Create,
Datagrid,
DateField,
DateInput,
DisabledInput,
Edit,
EditButton,
Filter,
FormTab,
ImageField,
ImageInput,
List,
LongTextInput,
NumberField,
N... |
src/Parser/DemonologyWarlock/Modules/Features/AlwaysBeCasting.js | mwwscott0/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import Icon from 'common/Icon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellLink from 'common/Spell... |
src/components/app/routes.js | philholden/omysoul | import React from 'react'
import {
Route, IndexRoute
} from 'react-router'
import SongStoreNavScreen from '../song-store/song-store-nav-screen'
import SongStoreSongsNavScreen from '../song-store-songs/song-store-songs-nav-screen'
let App = require('./app').default
const routes = (
<Route path="/" component={App}>... |
src/index.js | Trachifab/React-Redux-Weather | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
fixtures/dom/src/components/fixtures/input-change-events/RadioClickFixture.js | maxschmeling/react | import React from 'react';
import Fixture from '../../Fixture';
class RadioClickFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
changeCount: 0,
};
}
handleChange = () => {
this.setState(({changeCount}) => {
return {
chan... |
app/components/PropertyTools/index.js | koofka/singleproperty_redux | import React from 'react';
import PropTypes from 'prop-types';
import { scrollToWhen } from 'react-redux-scroll';
import MortgageCalculator from 'components/MortgageCalculator';
import Wrapper from './Wrapper';
let ScrollableWrapper;
class PropertyTools extends React.Component { // eslint-disable-line react/prefer-st... |
app/screens/components/seller/view-refund-goods.js | yiyinsong/react-native-example-jdh | import React, { Component } from 'react';
import {
View,
ScrollView,
Image,
Text,
Modal,
TouchableOpacity,
DeviceEventEmitter
} from 'react-native';
import styles from '../../../css/styles';
export default class ViewRefundGoods extends Component {
constructor(props) {
super(pro... |
packages/components/src/ResourcePicker/ResourcePicker.component.js | Talend/ui | import React from 'react';
import { getTheme } from '../theme';
import ResourceList from '../ResourceList';
import { SORT_OPTIONS, ORDERS, STATE_FILTERS } from '../ResourceList/Toolbar';
import cssModule from './ResourcePicker.scss';
import ResourceListPropTypes from '../ResourceList/ResourceList.propTypes';
const ... |
src/components/Login/LoginForm.js | arimaulana/rest-api-frontend-in-react | import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import PropTypes from 'prop-types';
const styleForm = {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
};
class LoginForm extends Component {
construct... |
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | mironiasty/react-native | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
ListView,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends C... |
src/components/privateRoute/index.js | LiskHQ/lisk-nano | import React from 'react';
import { Route, Redirect, withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
export const PrivateRouteRender = ({ render, isAuthenticated, ...rest }) => (
<Route {...rest} render={ matchProps => (
isAuthenticated ? render(matchProps) : <Redirect to={`/?referre... |
src/components/Sidebar/Author/Author.js | hb-gatsby/gatsby-starter-lumen | // @flow strict
import React from 'react';
import { withPrefix, Link } from 'gatsby';
import styles from './Author.module.scss';
type Props = {
author: {
name: string,
bio: string,
photo: string
},
isIndex: ?boolean
};
const Author = ({ author, isIndex }: Props) => (
<div className={styles['author... |
src/containers/about-page.js | JamesHageman/rangle-elm-starter | import React from 'react';
import { connect } from 'react-redux';
import Container from '../components/container';
function mapStateToProps() {
return {};
}
function mapDispatchToProps() {
return {};
}
function AboutPage() {
return (
<Container size={4} center>
<h2 className="caps">About Us</h2>
... |
src/components/Account/ResetPassword/ResetPassword.component.js | shayc/cboard | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import { Formik } from 'formik';
import classNames from 'classnames';
import Typography from '@material-ui/core/Typography';
import B... |
modules/RouteUtils.js | rdjpalmer/react-router | import React from 'react'
import warning from './warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName,... |
voting-web-views/src/js/Components/Layouts/VotingPage/VotingPage.js | joaolrpaulo/eletronic-voting-system | import React from 'react';
import Card from 'Components/Card/Card.js';
import VotingPageStore from 'Stores/votingPageStore.js';
import * as VotingPageActions from 'Actions/votingPageActions.js';
import VotingPageTemplate from './VotingPage.rt';
export default class VotingPage extends React.Component {
constructor... |
src/client/components/UserListItem.js | avrj/slack-clone | import React from 'react'
import classNames from 'classnames'
import MenuItem from 'material-ui/MenuItem'
import PersonOutline from 'material-ui/svg-icons/social/person-outline'
import FontIcon from 'material-ui/FontIcon'
import { green500 } from 'material-ui/styles/colors'
import { func, string, bool } from 'prop-type... |
src/components/Home/Home.js | gavinpatkinson/gavspace_2 | import React from 'react';
import CSSTransitionGroup from 'react-addons-css-transition-group';
import Interactive from 'react-interactive';
import { Link } from 'react-router';
import Splash from '../Splash/Splash';
import ProjectHeadingMetadata from '../ProjectHeadingMetadata/ProjectHeadingMetadata';
import project... |
frontend/src/components/DisqusComment/index.js | moyuyc/isomorphic-blog | import React from 'react'
import {Map} from 'immutable'
import {isBrowser} from '../../common/utils'
var parser = require('ua-parser-js');
const tmp = {}
export default class extends React.Component {
constructor(props) {
super(props);
this.resetComment = this.resetComment.bind(this)
}
c... |
src/js/components/tables/table-row/table-row-data-operation-list.js | ucev/blog | import React from 'react'
import './table-row.style.scss'
export default ({ children }) => (
<ul className="content-operation-ul">{children}</ul>
)
|
admin/src/components/ListHeader.js | davibe/keystone | import classNames from 'classnames';
import React from 'react';
import utils from '../utils.js';
import { Button, Container, Dropdown, FormInput, InputGroup, Pagination } from 'elemental';
import CreateForm from './CreateForm';
import ListColumnsForm from './ListColumnsForm';
import ListDownloadForm from './ListDownlo... |
src/clincoded/static/components/dbxref.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import createReactClass from 'create-react-class';
import { dbxref_prefix_map } from './globals';
var Dbxref = module.exports.Dbxref = function (props) {
var value = props.value || '';
var sep = value.indexOf(':');
var prefix = props.prefix;
var l... |
src/start-game.js | paulbevis/tic-tac-toe-client | import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
function StartGame({mutate, gameInProgress, onJoined, browserId, playerName, playerId}) {
return (
<button disabled={gameInProgress ? 'disabled' : ''} style={{fontSize: '20px', margin: '10px'}} onClick={() => {
... |
src/components/MyInfoBox.js | fredrikku/rikku-grommet-react-sample | import React from 'react';
import PropTypes from 'prop-types';
import Box from 'grommet/components/Box';
import CloseIcon from 'grommet/components/icons/base/Close';
import Heading from 'grommet/components/Heading';
import { spaceToNBSP } from '../myTags';
const MyInfoBox = (props) => {
return (
<div classNa... |
src/svg-icons/action/note-add.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionNoteAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/>
</SvgIcon>
);... |
src/test/setup.js | padcom/react-example-02 | 'use strict';
// Require all the necessary objects
require('./setup.less');
// Make React globally available
import React from 'react';
global.React = React;
// Make chai globally available
import { expect } from 'chai';
global.expect = expect;
// Make Enzyme globally available
import { mount, shallow, render } fro... |
src/svg-icons/image/transform.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTransform = (props) => (
<SvgIcon {...props}>
<path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/>
</SvgIcon>
);
ImageTransform = pure(I... |
imports/ui/components/surveyBuilder/formFields/VariableField.js | ctagroup/home-app | import React from 'react';
import AutoField from 'uniforms-bootstrap3/AutoField';
import connectField from 'uniforms/connectField';
const VariableField = () =>
<div className="col-xs-11">
<div className="col-xs-8">
<AutoField name="name" label="" placeholder="variable name" />
</div>
<div className... |
information/blendle-frontend-react-source/app/modules/kiosk/KioskRouterContainer.js | BramscoChill/BlendleParser | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Auth from 'controllers/auth';
import AltContainer from 'alt-container';
import NewsStandStore from 'stores/NewsStandStore';
import IssuesStore from 'stores/IssuesStore';
import KioskActions from 'actions/KioskActions';
import Analytics... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.