path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
.storybook/components/FormStory.js | hellobrian/carbon-components-react | import React from 'react';
import { action, storiesOf } from '@storybook/react';
import Checkbox from '../../components/Checkbox';
import Form from '../../components/Form';
import FormGroup from '../../components/FormGroup';
import FileUploader from '../../components/FileUploader';
import NumberInput from '../../compon... |
client/modules/Post/__tests__/components/PostCreateWidget.spec.js | eantler/google | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
src/components/HelpContents/HelpContents.js | synchu/schema | import React from 'react'
import { FontIcon} from 'react-toolbox'
import SearchBox from './images/SearchBox_1.gif'
import ToggleMenu from './images/ToggleMenu.gif'
import FilterBox from './images/FilterBox.gif'
import AmplifiersBrandsList from './images/AmplifiersBrandsList.gif'
import TopMenu from './images/TopMenu.gi... |
definitions/npm/styled-components_v2.x.x/flow_v0.25.x-v0.41.x/test_styled-components_v2.x.x.js | splodingsocks/FlowTyped | // @flow
import {renderToString} from 'react-dom/server'
import styled, {ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager} from 'styled-components'
import React from 'react'
import type {Theme} from 'styled-components'
const Title = styled.h1`
font-size: 1.5em;
text-align: center;
color: ... |
musical/src/LandingPage.js | dmeredith96/MadHacks2017 | import React, { Component } from 'react';
import './LandingPage.css';
import logo from './logo.svg';
class LandingPage extends Component {
render() {
return (
<div>
<h1>
Welcome to Musical Simon!
</h1>
<div>
Cl... |
src/Flags/SierraLeone.js | runjak/css-flags | // @flow
import React from 'react';
import LinearFlag from './LinearFlag';
import gradient from '../utils/gradient';
const green = '#18B638';
const white = '#FFFFFF';
const blue = '#0073C7';
export default function SierraLeone() {
return (
<LinearFlag
gradient={`${gradient([green, white, blue])}`}
/>... |
js/components/splashscreen/index.js | CoulDracula/carrying |
import React, { Component } from 'react';
import { Image } from 'react-native';
const launchscreen = require('../../../images/shadow.png');
export default class SplashPage extends Component {
static propTypes = {
navigator: React.PropTypes.shape({}),
}
componentWillMount() {
const navigator = this.pr... |
test/components/Placeholder/Placeholder.js | sapegin/react-styleguidist | import React, { Component } from 'react';
import PropTypes from 'prop-types';
/**
* Image placeholders.
*
* @example ./examples.md
* @see {@link link}
* @link link
*/
export default class Placeholder extends Component {
static propTypes = {
type: PropTypes.oneOf([
'animal',
'bacon',
'beard',
'bear... |
src/routes/contact/Contact.js | lassegit/gitdude.com | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Contact.css';
class Contact extends React.Component {
static propTypes = {
title: PropTypes.string.isRequired,
};
render() {
return (
<div className={s.r... |
node_modules/react-router/es6/Link.js | Jaime691/ReactTube | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/components/SelectItemGroup/SelectItemGroup.js | wfp/ui | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import settings from '../../globals/js/settings';
const { prefix } = settings;
const SelectItemGroup = ({
children,
className,
disabled,
label,
...other
}) => {
const classNames = classnames(`${prefix}--sel... |
packages/core/admin/admin/src/pages/InternalErrorPage/index.js | wistityhq/strapi | /**
* InternalErrorPage
*
* This is the page we show when the user gets a 500 error
*
*/
import React from 'react';
import { useFocusWhenNavigate } from '@strapi/helper-plugin';
import { Main } from '@strapi/design-system/Main';
import { LinkButton } from '@strapi/design-system/LinkButton';
import { ContentLayout,... |
src/components/Footer/Footer.js | successkrisz/fx-rates-right | import React from 'react'
import './Footer.scss'
const github = 'https://github.com/successkrisz'
export const Footer = () => (
<footer className='footer__primary'>
Created by: <a href={github}>@krisztianballa</a>
</footer>
)
export default Footer
|
app/src/components/Header.js | mlang12/gameswipe | import React, { Component } from 'react';
import UserHeader from './UserHeader.js';
import GuestHeader from './GuestHeader.js';
import Search from './Search.js'
import { Link } from 'react-router-dom';
class Header extends Component {
constructor(props) {
super(props);
}
render() {
function Greeting(pro... |
app/components/AmountField/index.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import { Field } from 'redux-form/immutable';
import BigNumber from 'bignumber.js';
const AmountField = ({
maxAmount,
minAmount = 0,
...props
}) => {
const limitAmount = (value) => BigNumber.min(
BigNumber.max(minAmount, value || 0),
maxAmo... |
src/www/js/demos/chained_drop_down_with_state.js | training4developers/bootcamp_04112016 | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
class ChainedDropDown extends React.Component {
constructor(props) {
super(props);
const [ primaryItem, secondaryItem ] = props.value.split('|');
this.state = {
primaryItem: primaryItem,
secondaryItem: secondaryItem,
second... |
app/javascript/mastodon/components/status.js | ikuradon/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
src/views/Preview.react.js | Cron-J/CSV-Redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Link } from 'react-router';
import * as PreviewActions from 'actions/previewPage/PreviewActions';
import { connect } from 'react-redux';
class Preview extends Component {
constructor(props) {
super(props);
const { a... |
packages/reactor-kitchensink/src/examples/Charts/Line/BasicMarkers/BasicMarkers.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import generateData from './generateData';
export default class BasicMarkers extends Component {
constructor() {
super... |
app/javascript/flavours/glitch/components/notification_purge_buttons.js | glitch-soc/mastodon | /**
* Buttons widget for controlling the notification clearing mode.
* In idle state, the cleaning mode button is shown. When the mode is active,
* a Confirm and Abort buttons are shown in its place.
*/
// Package imports //
import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages,... |
app/components/NewCharacInfo/NewCharacInfo.js | Tetraib/player.rauks.org | import React from 'react'
import TextField from 'material-ui/TextField'
import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'
import SelectField from 'material-ui/SelectField'
import MenuItem from 'material-ui/MenuItem'
import {MaleIcon, MaleCheckedIcon, FemaleIcon, FemaleCheckedIcon} from 'components/... |
src/javascript/decorators/withDevTools.js | anilCSE/redux-react-router-example-app | import React from 'react'; // eslint-disable-line no-unused-vars
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
export default function withDevTools(store) {
return (ComposedComponent) => class WithDevTools {
render() {
const { context, ...other } = this.props;
return (
... |
src/components/pages/Admin/Contents/TypeForms/AdminContentsArticle.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import {FormattedMessage} from 'react-intl';
// Flux
import IntlStore from '../../../../../stores/Application/IntlStore';
// Required components
import FormLabel from '../../../../common/forms/FormLabel';
import InputField from '../../../../common/forms/InputField';
impor... |
src/components/button.js | markup-app/markup | 'use strict';
import React from 'react';
const propTypes = {
label: React.PropTypes.string.isRequired,
onClick: React.PropTypes.func.isRequired
};
class Button extends React.Component {
render () {
return (
<input
type="button"
className="-custom-button-style"
value={this.pro... |
client/components/PollCategory.js | gut-js/gut | import React from 'react';
class PollCategory extends React.Component {
constructor(){
super();
this.selectImage = this.selectImage.bind(this);
this.displayPoll = this.displayPoll.bind(this);
}
selectImage(e){
const { sendPollChoices, updatePoll, endPoll } = this.props.pollActions;
const { u... |
src/components/parties/party_index.js | dcporter44/tunefest-frontend | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchParties } from '../../actions/party_actions';
import { Link } from 'react-router';
class PartyIndex extends Component {
constructor(props) {
super(props);
this.state = {searchComplete: false};
this.fetch... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | Topolev/TimeCurrentCharacteristic | 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'));
|
maodou/wechat/client/containers/sign-in-button.js | wuyang910217/meteor-react-redux-base | import React from 'react';
import {composeAll, withTracker} from 'react-komposer-plus';
import {useDeps} from 'react-simple-di';
import SignInButton, {UIState} from '../components/sign-in-button'
function removeURLParameter(url, parameter) {
//prefer to use l.search if you have a location/link object
var urlparts... |
static/src/index.js | idahu29/payment-redis | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Redirect, browserHistory } from 'react-router';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { syncHistoryWithStore } from 'react-router-redux';
import configureStore from './store... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | anon5r/mastonon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
import { displaySensitiveMedia } from '../../../initial_state';
export default class MediaItem extends Immut... |
web/src/server.js | AcrylicInc/totalblu | import path from 'path'
import Express from 'express'
import React from 'react'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import counterApp from './reducers'
import App from './containers/App'
import { renderToString } from 'react-dom/server'
import Root from './router';
const app =... |
src/app/component/number-field/number-field.js | all3dp/printing-engine-client | import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import cn from '../../lib/class-names'
import Icon from '../icon'
import plusIcon from '../../../asset/icon/plus.svg'
import minusIcon from '../../../asset/icon/minus.svg'
const NumberField = ({
classNames,
val... |
src/styles/muiThemeable.js | kittyjumbalaya/material-components-web | import React from 'react';
import PropTypes from 'prop-types';
import getMuiTheme from './getMuiTheme';
let DEFAULT_THEME;
function getDefaultTheme() {
if (!DEFAULT_THEME) {
DEFAULT_THEME = getMuiTheme();
}
return DEFAULT_THEME;
}
export default function muiThemeable() {
return (Component) => {
const... |
src/components/sections/partials/SectionHeader.js | eddiesmithjr/eddiesmithjr.github.io | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const propTypes = {
data: PropTypes.shape({
title: PropTypes.string,
paragraph: PropTypes.string
}).isRequired,
children: PropTypes.node,
tag: PropTypes.oneOf(['h1', 'h2', 'h3'])
}
const defaultProps = ... |
node_modules/react-router/es6/withRouter.js | ArtixZ/LyingMan2 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import invariant from 'invariant';
import React from 'react';... |
src/routes/catalog/Catalog.js | Maryanushka/masterskaya | /**
* 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 Form from '../../comp... |
src/Col.js | dongtong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const Col = React.createClass({
propTypes: {
/**
* The number of columns you wish to span
*
* for Extra small devices Phones (<768px)
*
... |
app/jsx/developer_keys/ScopesMethod.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/docs/components/legend/LegendDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Legend from 'grommet/components/Legend';
import Anchor from 'grommet/components/Anchor';
import Button from 'grommet/components/Button';
import DocsArticle from '../../../components/DocsArticle';
cons... |
src/client/components/Widget.js | andrerpena/tr-workbench | import React from 'react';
var Widget = React.createClass({
render: function() {
return <div className="widget">
<div className="widget-header">
Widget
</div>
<div className="widget-body">
</div>
</div>;
}
});
export default Widge... |
node_modules/rc-calendar/es/full-calendar/CalendarHeader.js | yhx0634/foodshopfront | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React, { Component } from 'react';
im... |
src/svg-icons/notification/sync-disabled.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncDisabled = (props) => (
<SvgIcon {...props}>
<path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20... |
app/containers/Layout/ContentLong/index.js | hlex/vms | import React, { Component } from 'react';
class ContentGrid extends Component {
render() {
return (
<div className="content-long-wrapper">
{
this.props.children
}
</div>
);
}
}
export default ContentGrid;
|
src/index.js | ldimitrov/todo_react | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/components/PublicLayout/Layout.js | chunkiat82/rarebeauty-ui | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
fantasy-football/src/App.js | paulpooch/fantasy-football | import React, { Component } from 'react';
import { Button, Intent } from '@blueprintjs/core';
import { TagInput } from '@blueprintjs/labs';
import localforage from 'localforage';
import { times, DRAFTED_FLAGS, FILTER_TYPES, TAG_TYPES } from './utils';
import processed from './data/processed';
import Filters from './Fil... |
src/components/statistics.js | orouvinen/dnf-ranks-frontend | import React, { Component } from 'react';
import { Link } from 'react-router';
import EloDistribution from './elo-distribution';
import TournamentHistoryContainer from '../containers/tournament-history-container';
class Statistics extends Component {
render() {
return (
<div className="rating-s... |
js/components/Overlay.js | hihuz/mine-sweeper | import React from 'react';
import ModeDialog from './ModeDialog';
import HSDialog from './HSDialog';
import AboutDialog from './AboutDialog';
import CongratsDialog from './CongratsDialog';
const Overlay = ({
dialogOpened,
closeDialog,
highScores,
time,
mode
}) => {
function handleKeyDown(e) {
if (e.key... |
src/views/components/TextField.js | physiii/home-gateway | import React from 'react';
import PropTypes from 'prop-types';
import {getUniqueId} from '../../utilities.js';
import styles from './TextField.css';
const labelScale = 0.75;
export class TextField extends React.PureComponent {
constructor (props) {
super(props);
this.state = {
isFocused: false,
isOutlineS... |
techCurriculum/ui/solutions/6.1/src/components/Title.js | AnxChow/EngineeringEssentials-group | /**
* 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 agreed to... |
node_modules/eslint-config-airbnb/test/test-react-order.js | gioialab/APIHive | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
rules: {
// It is okay to import devDependencies in tests.... |
app/javascript/mastodon/features/list_timeline/index.js | Chronister/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnBackButton from '../../co... |
src/components/CircularIndeterminate.js | kazazor/coinsmarket | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles, createStyleSheet } from 'material-ui/styles';
import { CircularProgress } from 'material-ui/Progress';
const styleSheet = createStyleSheet((theme) => ({
root: {
display: 'flex',
justifyContent: 'center'
}
}));
const Circul... |
src/routes/endorsements/index.js | goldylucks/adamgoldman.me | import React from 'react'
import Endorsements from './Endorsements'
import Layout from '../../components/Layout'
const path = '/endorsements'
async function action() {
return {
chunks: ['endorsements'],
title: 'Endorsements',
path,
description: 'Endorsements',
component: (
<Layout path={... |
src/svg-icons/maps/rate-review.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRateReview = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1... |
packages/react-devtools-shared/src/devtools/views/Profiler/ChartNode.js | mjackson/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
import styles from './ChartNode.css';
type Props = {|
color: string,
height: number,
... |
amp-stories/src/component/base/AmpStoryIntro.js | ampproject/samples | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import {rem} from 'polished';
import AmpImage from '/component/amp/AmpImage';
import {omit} from 'ramda';
const Pill = styled((props) => {
const rest = omit(['color', 'backgroundColor'], props);
return <div {...r... |
docs/src/sections/GlyphiconSection.js | apkiernan/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/client/js/components/stockGraph.js | ethanjurman/WebEngProject | import React, { Component } from 'react';
import request from 'ajax-request';
import { Paper, TextField, RaisedButton } from 'material-ui';
import { StockHighGraph } from './stockHighGraph';
import { Wallet, getWallet } from './wallet';
import { TransactionHistory, getTransactionHistory } from './transactionhistory';
i... |
modules/react-documentation/src/components/Markdown.js | casesandberg/reactcss | 'use strict';
import React from 'react'
import reactCSS from 'reactcss'
import markdown from '../helpers/markdown'
import Code from './Code'
module.exports = class Markdown extends React.Component {
shouldComponentUpdate() {
return false;
}
render() {
const styles = reactCSS({
'default': {
... |
src/v2/stories/Cell.stories.js | aredotna/ervell | import uuidv4 from 'uuid/v4'
import React from 'react'
import { storiesOf } from '@storybook/react'
import { Query } from '@apollo/client/react/components'
import { gql } from '@apollo/client'
import identifiableCellFragment from 'v2/components/Cell/components/Identifiable/fragments/identifiableCell'
import konnectabl... |
blueocean-material-icons/src/js/components/svg-icons/action/card-travel.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionCardTravel = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V... |
src/components/icons/ReactIcon.js | dtjv/dtjv.github.io | import React from 'react'
export const ReactIcon = ({ className, ...props }) => (
<svg
{...props}
className={`text-react ${className}`}
role="img"
fill="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<title>React</title>
<path d="M14.23 12.004a2.236 2.236 0 0... |
packages/material-ui-icons/src/FiberDvr.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FiberDvr = props =>
<SvgIcon {...props}>
<path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8... |
src/components/Header/Header.js | SteveHoggNZ/Choice-As | import React from 'react'
import { IndexLink, Link } from 'react-router'
import { Navbar, NavbarBrand, Nav, NavItem, NavLink } from 'reactstrap'
import { Spinner } from 'components/Spinner'
import LoginFormContainer from 'containers/CognitoUsers/LoginFormContainer'
import './Header.scss'
export class Header extends Re... |
src/redux/utils/createDevToolsWindow.js | stevecrozz/test-directory-client | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
src/client/pages/examples.react.js | terakilobyte/esterethinksocketchat | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import Editable from '../components/editable.react';
import Promise from 'bluebird';
import React from 'react';
import {msg} from '../intl/store';
class Examples extends Component {
constructor(props) {
supe... |
app/layouts/app.js | gon250/personal-web | import React from 'react';
import Footer from 'layouts/footer';
import Header from 'layouts/header';
export default React.createClass({
render: function() {
return (
<div className="app">
<Header />
<main className="mdl-layout__content">
{this.props.children}
... |
app/javascript/mastodon/components/setting_text.js | WitchesTown/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
app/javascript/mastodon/components/column_header.js | masarakki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' },
hide: { id: 'column_header.h... |
src/routes/toolResponse/index.js | goldylucks/adamgoldman.me | import React from 'react'
import ToolResponse from './ToolResponse'
import Layout from '../../components/Layout'
async function action({ params, path }) {
return {
chunks: ['toolResponse'],
title: 'Tool process',
description: 'Tool process',
path,
component: (
<Layout path={path}>
... |
src/svg-icons/communication/email.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationEmail = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
CommunicationEmai... |
app/screens/other/splash.js | andry-baka/dapur-ngebul-app | import React from 'react';
import {
StyleSheet,
Image,
View,
Dimensions,
StatusBar
} from 'react-native';
import {
RkText,
RkTheme
} from 'react-native-ui-kitten'
import {ProgressBar} from '../../components';
import {
KittenTheme
} from '../../config/theme';
import {NavigationActions} from 'react-naviga... |
demos/frontend-react/app/src/components/AvailableServices.js | ITISFoundation/oSPARC_Test | import React, { Component } from 'react';
import { Button, ButtonGroup } from 'react-bootstrap';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { newServiceRequested } from '../actions';
import './AvailableServices.css';
class AvailableServices extends Component {
onServ... |
src/components/slider/SliderSwatches.js | casesandberg/react-color | import React from 'react'
import reactCSS from 'reactcss'
import SliderSwatch from './SliderSwatch'
export const SliderSwatches = ({ onClick, hsl }) => {
const styles = reactCSS({
'default': {
swatches: {
marginTop: '20px',
},
swatch: {
boxSizing: 'border-box',
width: '... |
src/components/teams/index.js | icodeninja/statr | import React, { Component } from 'react';
import { wobaFromStats,
sumValues,
sortArrayByKey,
ipToInt } from '../../lib/calc';
import Dispatcher from '../../lib/dispatcher';
import Tab from '../../lib/tab';
import {Table, TableHead, TableRow, TableCell } from 'react-toolbox/lib/table';
import ... |
src/scripts/app/redux/components/CartItem.js | vorobiovkirill/react-shopping-cart | import { Button, Card, Icon, Image } from 'semantic-ui-react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class CartItem extends Component {
constructor(props) {
super(props);
this.handleRemove = this.handleRemove.bind(this);
}
handleRemove(id) {
this.props.removeItemFrom... |
app/ui/widgets/background.js | vnovick/RNSpacePong | import React, { Component } from 'react';
import {
View,
Image
} from 'react-native';
import styles from '../../styles/shared';
export default function BackgroundScreen({ img, children, style }){
return (
<View style={[styles.container, style]}>
<Image source={img || require('../../assets/imgs/backgrou... |
node_modules/react-router/es6/Lifecycle.js | mrjkc/react-redux | import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On stan... |
redux-elm-tomkis1/src/gif-viewer-pair-of-pairs/view.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react';
import { view, forwardTo } from 'redux-elm';
import GifViewerPair from '../gif-viewer-pair/view';
export default view(({ model, dispatch }) => (
<div>
<div style={{ float: 'left' }}>
<GifViewerPair model={model.leftPair} dispatch={forwardTo(dispatch, 'LeftPair')} />
</div>
... |
src/components/Header/Header.js | dkmin/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.less';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
src/svg-icons/communication/ring-volume.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRingVolume = (props) => (
<SvgIcon {...props}>
<path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0... |
src/parser/warrior/protection/modules/talents/IntoTheFray.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatDuration, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import StatisticBox from 'interface/ot... |
app/javascript/mastodon/features/favourites/index.js | blackle/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourit... |
src/web/components/PatientSelect/index.js | asha-nepal/AshaFusionCross | /**
* Copyright 2017 Yuichiro Tsuchiya
*
* 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 agr... |
games/jab/game3/src/scripts/modules/Footer.js | jabrena/ReactLab | import React from 'react'
export default React.createClass({
render() {
return (
<div className="row">
<div className="col-xs-12">
<blockquote>
Olympic React Games 2016.
</blockquote>
</div>
</div>
)
}
}) |
app/components/HelpView/ValuesHelp.js | trevornelson/wld-frontend | /**
*
* ValuesHelp
*
*/
import React from 'react';
import styled from 'styled-components';
import MenuList from 'components/Sidebar/MenuList';
import MenuListItem from 'components/Sidebar/MenuListItem';
const Wrapper = styled.div`
`;
class ValuesHelp extends React.PureComponent { // eslint-disable-line react/prefer... |
src/routes/content/index.js | murphysierra/VinnyStoryPage | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Content from './Content'... |
demo/examples/Carousel.js | OnsenUI/react-onsenui | import React from 'react';
import ReactDOM from 'react-dom';
import MyToolbar from './MyToolbar';
import {
Page,
Button,
Navigator,
Toolbar,
List,
ListItem,
Ripple,
Carousel,
CarouselItem,
BottomToolbar,
ToolbarButton
} from '../../src/index.js';
export default class extends React.Component {
... |
src/components/InputTypeLocation.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Geosuggest from 'react-geosuggest';
import classNames from 'classnames';
import Location from './Location';
class InputTypeLocation extends React.Component {
static propTypes = {
value: PropTypes.object,
className: PropTypes.string,
on... |
springboot/GReact/src/main/resources/static/app/components/activities/components/Task.js | ezsimple/java | import React from 'react'
import classnames from 'classnames'
import Moment from '../../utils/Moment'
let Task = React.createClass({
render: function () {
let item = this.props.item;
return (
<span>
<div className="bar-holder no-padding">
<p className="margin-bottom-5... |
src/components/Footer/WhatsappIcon.js | Galernaya20/galernaya20.com | //@flow
import React from 'react'
import {Svg} from '../Svg/Svg'
export const WhatsappIcon = (props: Object) => (
<Svg {...props}>
<path d="M25,2C12.318,2,2,12.318,2,25c0,3.96,1.023,7.854,2.963,11.29L2.037,46.73c-0.096,0.343-0.003,0.711,0.245,0.966 C2.473,47.893,2.733,48,3,48c0.08,0,0.161-0.01,0.24-0.029l10.896... |
examples/NavigationPlayground/js/SampleText.js | kkamperschroer/react-navigation | /* @flow */
import React from 'react';
import {
StyleSheet,
Text,
} from 'react-native';
/**
* Used across examples as a screen placeholder.
*/
const SampleText = ({ children }) => (
<Text style={styles.sampleText}>{children}</Text>
);
export default SampleText;
const styles = StyleSheet.create({
sampleT... |
information/blendle-frontend-react-source/app/components/dialogues/ShareToEmail.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { STATUS_INITIAL, STATUS_OK, STATUS_ERROR, STATUS_PENDING, keyCode } from 'app-constants';
import { translate } from 'instances/i18n';
import Dialogue from 'components/dialogues/Dialogue';
import classNames from 'classnames';
import { isMultipleEmail... |
src/components/Feedback/Feedback.js | muriloreis/drfarm | /**
* 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 withStyles from 'isom... |
examples/todomvc/containers/TodoApp.js | clintonhalpin/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/todos';
class TodoApp extends Component {
render() {
... |
docs/app/Examples/modules/Search/Types/SearchExampleCategoryCustom.js | shengnian/shengnian-ui-react | import PropTypes from 'prop-types'
import React from 'react'
import { Label } from 'shengnian-ui-react'
import SearchExampleCategory from './SearchExampleCategory'
const categoryRenderer = ({ name }) => <Label as={'span'} content={name} />
categoryRenderer.propTypes = {
name: PropTypes.string,
}
const resultRende... |
test/e2e/getserversideprops/app/pages/catchall/[...path].js | azukaru/next.js | import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
export async function getServerSideProps({ params }) {
return {
props: {
world: 'world',
params: params || {},
time: new Date().getTime(),
random: Math.random(),
},
}
}
export default ({ ... |
source/patterns/00-atoms/forms/checkbox/docs/checkbox.example.js | apparena/patterns | import React from 'react';
import { Checkbox, ReactComponent } from 'apparena-patterns-react';
export default class CheckboxExample extends ReactComponent {
getInitState() {
return {
checked1: false,
checked2: false
};
}
handleCheckbox(event) {
this.setState({
[`checked${event.targ... |
AwesomeProject/index.android.js | mayank-mittal/Handson | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class AwesomeProject extends Component {
render() {
return (
<View style={styles.cont... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.