path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/index.js | marconi/consul-ux | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import thunkMiddleware from 'redux-thunk'
import createLogger from 'redux-logger'
import reducers from './reducers'
import App from './components/App.jsx'
import rootRed... |
src/svg-icons/navigation/fullscreen-exit.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFullscreenExit = (props) => (
<SvgIcon {...props}>
<path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/>
</SvgIcon>
);
NavigationFullscreenExit = pure(NavigationF... |
src/Main/SuggestionsTab.js | enragednuke/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Toggle from 'react-toggle';
import Icon from 'common/Icon';
import Wrapper from 'common/Wrapper';
import ISSUE_IMPORTANCE from 'Parser/Core/ISSUE_IMPORTANCE';
import Suggestion from './Suggestion';
import './SuggestionsTab.css';
class SuggestionsT... |
src/routes/AuthContainer/components/LoginMenu.js | availabs/auth_container | import React from 'react'
import UserStore from '../modules/UserStore.js'
import UserActions from '../modules/UserActions.js'
import { IndexLink, Link,Router, withRouter } from 'react-router'
import $ from 'jquery'
import LoginSignupContainer from '../components/LoginSignupContainer'
var AUTH_HOST = require('../../..... |
src/page/OtherPage.js | jerryshew/react-uikits | import React, { Component } from 'react';
import {CN, TitleBlock} from '../util/tools';
import {NS, COLORS} from '../constant';
import CodeView from './CodeView';
export class OtherPage extends Component {
render() {
return (
<div>
{TitleBlock('其他', '其他部分内容')}
<u... |
src/commons/content.js | jessy1092/react-semantify |
import React from 'react';
import filter from '../filter';
import Div from './div';
const stateArray = ['active'];
const defaultClassName = 'content';
const componentName = 'Content';
const Content = new filter(Div)
.stateFilter(stateArray)
.classGenerator(defaultClassName)
.getComposeComponent(co... |
src/Parser/Hunter/BeastMastery/Modules/Talents/WayOfTheCobra.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import getDamageBonus from 'Parser/Hunter/Shared/Modules/getDamageBonu... |
packages/xo-web/src/xo-app/home/vm-item.js | vatesfr/xo-web | import _ from 'intl'
import Component from 'base-component'
import Ellipsis, { EllipsisContainer } from 'ellipsis'
import Icon from 'icon'
import Link, { BlockLink } from 'link'
import React from 'react'
import renderXoItem from 'render-xo-item'
import SingleLineRow from 'single-line-row'
import HomeTags from 'home-tag... |
src/spa/components/chat/add-contact.react.js | NYCSwan/whats-up | import React from 'react';
import RequestSubmitButton from '../common/request-submit-button.react';
import RequestMessage from '../common/request-message.react';
import {requestStates} from '../../enums/request-states';
import {SecureAjaxRequest} from '../../utils/ajax-request';
import {ApiUrls} from '../../utils/api-u... |
fields/types/boolean/BooleanColumn.js | lojack/keystone | import React from 'react';
import classnames from 'classnames';
import Checkbox from '../../../admin/src/components/Checkbox';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var BooleanColumn = React.createClass({
... |
storybook/config.js | infinimatix/infinimatix.net | import { configure, setAddon } from '@kadira/storybook';
import IntlAddon from 'react-storybook-addon-intl';
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import '../app/assets/stylesheets/compone... |
src/client/js/admin/match/actions/PlayerSelector.js | GoodBoy123/crendorianinvitational | import React from 'react';
class PlayerSelector extends React.Component {
constructor(props) {
super(props)
}
render() {
let players = [];
if (this.props.team === 'Coxpocalypse Now') {
players = ['The Cattleclysm', 'Morgoth Mindslasher', 'HoleHead the Deathinator', 'Iron-Face Slashass', 'Billy... |
app/javascript/mastodon/components/status_action_bar.js | tootsuite/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenuContainer from '../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from ... |
src/components/GmeBottom.js | PLopezD/groupme-playlist | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
export const GmeBottom = (props) => (
<section role='banner' style={{
fontFamily:'Roboto, sans-serif',
paddingBottom:'20px',
paddingTop:'20px'
}}>
{props.fetch ? <aside>Wait one second...<LinearProgress mode="indet... |
fields/types/url/UrlField.js | frontyard/keystone | import React from 'react';
import Field from '../Field';
import { FormInput } from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'URLField',
statics: {
type: 'Url',
},
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\/\/)/.test(hr... |
modules/RouteUtils.js | dmitrigrabov/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, p... |
src/routes/EightBall/components/EightBall.js | dontexpectanythingsensible/random-utils | import React from 'react';
import { getRandomInt } from 'services/utils';
import Ad from 'components/Ad';
const strings = [
'It is certain',
'Absolutely',
'Without a doubt',
'Yes, definitely',
'You may rely on it',
'As I see it, yes',
'Most likely',
'Outlook good',
'Yes',
'Signs point to yes',
'R... |
examples/with-redux-wrapper/pages/index.js | BlancheXu/test | import React from 'react'
import { bindActionCreators } from 'redux'
import { startClock, addCount, serverRenderClock } from '../store'
import { connect } from 'react-redux'
import Page from '../components/Page'
class Counter extends React.Component {
static getInitialProps ({ store, isServer }) {
store.dispatch... |
src/components/__tests__/helpers/higherOrder/TabPanelWrapper.js | reactjs/react-tabs | import React from 'react';
import hoist from 'hoist-non-react-statics';
import TabPanel from '../../../TabPanel';
function TabPanelWrapper(props) {
return <TabPanel {...props} />;
}
export default hoist(TabPanelWrapper, TabPanel);
|
PixelatedDesigns.Arena.Api/Scripts/app.js | pedrotheexplorer/Arena | import React from 'react';
import ReactDOM from 'react-dom';
import GraphiQL from 'graphiql';
import fetch from 'isomorphic-fetch';
import 'graphiql/graphiql.css';
import '../Styles/app.css';
function graphQLFetcher(graphQLParams) {
return fetch(window.location.origin + '/graphql', {
method: 'post',
headers: { 'C... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | hong1012/FreePay | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/scenes/Root/Root.js | marksauter/reactd3 | // @flow
import React from 'react';
import cx from 'classnames';
type Props = {
className: string,
}
export const Root = (props: Props) => {
const { className, ...rest } = props;
const classes = cx('Root', className);
return (
<div {...rest} className={classes}>
</div>
);
}
export default Root;
... |
examples/src/components/StatesField.js | PetrGlad/react-select | import React from 'react';
import Select from 'react-select';
const STATES = require('../data/states');
var id = 0;
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var StatesField = React.createClass({
displayName: 'StatesField',
p... |
modux-js-pcreations/src/root.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react'
import moduxFactory from 'modux-js'
import newGifCounterAndButtonModux from './newGifCounterAndButton';
import gifViewerModux, { init as initGifViewer, types as gifViewerTypes } from './gif-viewer';
import gifViewerPairModux, { init as initGifViewerPair } from './gif-viewer-pair';
import gifV... |
app/javascript/mastodon/features/status/index.js | vahnj/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';
... |
docs/app/Examples/elements/Reveal/Types/RevealExampleRotate.js | ben174/Semantic-UI-React | import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleRotate = () => (
<Reveal animated='rotate'>
<Reveal.Content visible>
<Image shape='circular' size='small' src='http://semantic-ui.com/images/wireframe/square-image.png' />
</Reveal.Content>
<Reveal.Conten... |
client/react/Macweb.js | Firescar96/macweb | import React, { Component } from 'react';
import Navbar from './Navbar.js'
class Macweb extends Component {
render() {
//Image map created by jtwright
let map = (
<map name="macg">
<area href="/entry-pages/a-entry.pdf" shape="poly" coords="285,68,329,92,417,42,417,93,329,144,285,119" alt="Lin... |
public/js/components/profile/FileUpload.react.js | MadushikaPerera/Coupley | import React from 'react';
const FormUpload = React.createClass({
uploadFile: function (e) {
var fd = new FormData();
fd.append( 'file', this.refs.file.getDOMNode().files[0] );
$.ajax({
type: 'POST',
url: 'http://localhost:3000/api/profile/profilepic',
... |
src/svg-icons/action/speaker-notes.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotes = (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-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-... |
src/interface/report/PlayerLoader.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
import { Trans, t } from '@lingui/macro';
import SPECS from 'game/SPECS';
import ROLES from 'game/ROLES';
import getAverageItemLeve... |
app/javascript/controllers/events/teams_competition_controller.js | skyderby/skyderby | import { Controller } from 'stimulus'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from 'redux/store'
import TeamStandingsPage from 'pages/events/TeamStandings'
export default class extends Controller {
connect() {
const eventId = this.element.ge... |
docs/app/Examples/elements/Input/Variations/InputExampleLeftActionLabeledButton.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleLeftActionLabeledButton = () => (
<Input
action={{ color: 'teal', labelPosition: 'left', icon: 'cart', content: 'Checkout' }}
actionPosition='left'
placeholder='Search...'
defaultValue='52.03'
/>
)
export default... |
tests/Rules-isAlpha-spec.js | yesmeck/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... |
src/svg-icons/hardware/headset.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadset = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/>
</SvgIcon>
... |
src/containers/Asians/BreaksCalculator/MatchUps/RoundInstance/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Table, {
TableBody,
TableHead,
TableCell,
TableRow
} from 'material-ui/Table'
import returnTableRow from './returnTableRow'
export default ({
roundMatchUps,
minBreak,
sureBreak,
numberOfRounds,
roundIndex
}) =>
<Table>
<TableHead>
<TableRow>
<Tabl... |
src/routes/Home/components/HomeView.js | yoshiyoshi7/react2chv2 | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img alt='This is a duck, because Redux!' className='duck' src={DuckImage} />
</div>
)
export default HomeView
|
app/components/AmenitiesModal/index.js | projectcashmere/admin | import React from 'react';
import Modal from 'react-modal';
import { FormattedMessage } from 'react-intl';
import amenities from 'data/amenities';
import CheckIcon from 'react-icons/lib/md/check';
import modalStyle from './modalStyle';
import messages from './messages';
import Header from './Header';
import Body from '... |
src/components/auth/signout.js | cynthiacd/capstone-factoring-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions';
class Signout extends Component {
componentWillMount() {
this.props.signoutUser();
}
render() {
return <div className="row goodbye-message">Sorry to see you go - see you soon</div>;... |
app/jsx/epub_exports/CourseList.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - 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/components/FlexTest.js | flyfei/react-starter | import React, { Component } from 'react';
import { Demo1, Demo2 } from './FlexUse';
class FlexTest extends Component{
render() {
return (
<div>
aaa
<Demo1/>
<Demo2/>
</div>
);
}
}
export default FlexTest;
|
elogy/frontend/src/search.js | Erikun/elogy | import React from 'react';
import { Route } from 'react-router-dom';
import { parseQuery } from "./util.js";
import "./search.css";
class QuickSearch extends React.Component {
constructor () {
super();
this.state = {
content: null,
title: null,
authors: null,
... |
src/client/components/pure/Friend.js | megmatty/letsplay-fullstack | import React, { Component } from 'react';
import { Link } from 'react-router';
import Contact from './Contact';
class Friend extends Component {
constructor() {
super();
this.state = {
contactOpen: false
}
}
clickContact = () => {
this.setState({
contactOpen: !this.state.contactOpen
... |
src/gm3/components/visibleLayers.js | geomoose/gm3 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 Dan "Ducky" Little
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
src/components/Navbar.js | caspg/datamaps.co | import React from 'react'
import Link from 'next/link'
import PropTypes from 'prop-types'
import routes from '@src/config/routes'
import { grey100, greyDark } from '@src/styles/colors';
Navbar.propTypes = {
className: PropTypes.string,
children: PropTypes.element,
}
function Navbar(props) {
const renderLinnks ... |
src/components/containers/FullFeed.js | planlodge/soundmix | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as APIService from '../../api/APIService';
import Loader from '../helpers/loader';
import IssueHandler from '../helpers/IssueHandler';
import ReactPaginate from 'react-paginate';
import DocumentTitle from 'react-document-title';
i... |
src/svg-icons/image/crop-3-2.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop32 = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z"/>
</SvgIcon>
);
ImageCrop32 = pure(ImageCrop32);
ImageCro... |
docs/examples/Input/Example1.js | romagny13/react-form-validation | import React from 'react';
import { Input, Label } from 'romagny13-react-form-validation';
class Example1 extends React.Component {
constructor(props) {
super(props);
this.state = {
model: {
firstname: 'Marie'
},
touched: {}
};
t... |
newclient/scripts/components/vertical-slider/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
client/src/components/dashboard/Landing.js | no-stack-dub-sack/alumni-network | import React from 'react';
const link = (
<a
href="https://github.com/FCC-Alumni/alumni-network"
rel="noopener noreferrer"
target="_blank" >
{'open-source on GitHub'}
</a>
);
const image = (source, position) => (
<img
alt='FCC logo'
className={`ui small image floated ${position}`}
sr... |
src/components/C3/c3.js | manapaho/react-reporting | /**
* React-C3 Chart
* Copyright 2015 - Cody Reichert <codyreichert@gmail.com>
*/
import c3 from 'c3';
import React from 'react';
const ChartComponent = React.createClass({
propTypes: {
config: React.PropTypes.object.isRequired
},
chart: null,
shouldComponentUpdate: function (nextProps) {
retu... |
Components/filter.js | jpb12/tree-viewer | import PropTypes from 'prop-types';
import React from 'react';
import { setFilter } from '../Reducers/actions';
export default class Filter extends React.PureComponent {
static propTypes = {
filter: PropTypes.string.isRequired
};
handleChange(e) {
setFilter(e.target.value);
}
render() {
return (
<input... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js | shrynx/react-super-scripts | /**
* 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.
*/
import Rea... |
src/svg-icons/action/shopping-cart.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionShoppingCart = (props) => (
<SvgIcon {...props}>
<path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11... |
information/blendle-frontend-react-source/app/modules/signup/views/verify/VerifyRequired.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { translate, translateElement } from 'instances/i18n';
class VerifyRequired extends React.Component {
static propTypes = {
isResend: PropTypes.bool,
user: PropTypes.object.isRequired,
onResend: PropTypes.func.isRequired,
};
_onRes... |
ceephax/components/head/index.js | mrceephax/ceephax.com.frontend | import React from 'react';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
class Head extends React.Component {
render() {
const { title } = this.props.pageTitle;
return (
<Helmet>
<meta charSet="utf-8" />
<title>{title}</tit... |
src/helpers/test/createMock.js | retaxJS/retax-seed | import React from 'react';
export function id(x) { return x; }
export default function createMock(name) {
const Component = (props) => <div {...props} />;
Component.displayName = name;
return Component;
}
|
examples/using-wordpress/src/components/Footer.js | okcoker/gatsby | import React from 'react';
import { Page, Row } from './styled';
const Footer = props =>
<footer>
<Page>
<Row height={5}>
This is a sample footer.
</Row>
</Page>
</footer>
export default Footer; |
app/javascript/mastodon/features/follow_recommendations/index.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { fetchSuggestions } from 'mastodon... |
client/modules/core/components/table/nodes_table.js | bompi88/grand-view | // //////////////////////////////////////////////////////////////////////////////
// Document Table Component
// //////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Concept
//
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file ... |
src/components/block-types/block-types-controls.js | xutou12/draft-richer |
import React from 'react';
import PropTypes from 'prop-types';
import { RichUtils, EditorState } from 'draft-js';
import { blockTypes } from './block-types';
import { prefixCls } from '../../config';
// 块元素控制器
function BlockTypesControls( props ) {
const
{ editorState } = props,
selection = editorState.g... |
src/editors/editorWrapper.js | diogofcunha/react-data-grid-extensions | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
const columnShape = {
key: PropTypes.string.isRequired
};
const editorWrapper = WrappedEditor => {
return class Wrapper extends Component {
static prop... |
app/javascript/mastodon/features/ui/components/navigation_panel.js | h3zjp/mastodon | import React from 'react';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
import { profile_directory, showTrends } from 'mastodon/initial_state';
import NotificationsCounterIcon from './notifications_counter_icon';
impo... |
packages/showcase/plot/mixed-stacked-chart.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/js/components/PushNotificationService/partial/EmailNotification.js | ajainsyn/project | import React from 'react';
import emailNotification from '../../../../assets/images/email-notification.jpg';
const EmailNotification = ({...props}) => (
<section className="section bg-blue" id="emailNotification">
<div className="container">
<div className="row align-items-center">
... |
docs/src/pages/customization/JssRegistry.js | dsslimshaddy/material-ui | // @flow weak
import React, { Component } from 'react';
import { JssProvider, SheetsRegistry } from 'react-jss';
import { createMuiTheme, MuiThemeProvider } from 'material-ui/styles';
import CssInJs from './CssInJs';
const sheetsRegistry = new SheetsRegistry();
const theme = createMuiTheme();
class JssRegistry exten... |
src/components/layout.js | kingchun1991/ballshoesguide | import React from 'react'
import { Link } from 'gatsby'
import { StaticQuery, graphql } from 'gatsby'
import BackgroundImage from 'gatsby-background-image'
import cosmicjsLogo from '../../static/cosmicjs.svg'
import gatsbyLogo from '../../static/gatsby.png'
import { rhythm, scale } from '../utils/typography'
// Impor... |
src/routes/Login/login.js | Mesamo/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Row, Col } from 'antd'
import LoginForm from '../../components/LoginForm'
import ChangeLanguage from '../../components/ChangeLanguage'
import { noticeSuccess, noticeError } from '../../utils/notice'
import styles from '... |
src/components/Element/ArrayElement.js | fedebertolini/json-editor | import React, { Component } from 'react';
import { Icon } from 'semantic-ui-react';
import Element from './Element';
import Actions from '../Actions';
import withEmitter from '../EventEmitter/withEmitter';
const getPropertyName = (path) => {
return path.length ? `${path[path.length - 1]}` : 'array';
}
class Array... |
client/containers/TimerMulti.js | LinearAtWorst/cogile | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import CountdownTimerMulti from './CountdownTimerMulti';
import StartButtonMulti from './StartButtonMulti';
import { endGame, leavePage, updateElapsedTime } from '../actions/index';
class TimerM... |
docs/src/components/Footer/index.js | storybooks/react-storybook | import React from 'react';
import slackIcon from './images/slack-icon.png';
import githubIcon from './images/github-icon.png';
import './style.css';
const Footer = () => (
<div id="footer" className="row">
<div className="col-md-12">
<div className="logos">
<div className="col-xs-12">
<ce... |
src/components/byline.js | marcusdarmstrong/cloth-io | // @flow
import React from 'react';
import TimeAgo from './time-ago';
import previewer from '../util/previewer';
import type { Post } from '../entities/post';
type Props = {
post: Post,
};
// This is pretty poorly named. I should work on the dom structure here.
const Byline = ({ post }: Props) => {
const { body,... |
docs/src/components/DynamicChart.js | bcbcarl/react-c3js | import React from 'react';
import PropTypes from 'prop-types';
import LineChart from './LineChart';
class DynamicChart extends React.Component {
static get displayName() {
return 'DynamicChart';
}
static get propTypes() {
return {
initData: PropTypes.object.isRequired,
newData: PropTypes.ob... |
packages/icons/src/md/social/SentimentNeutral.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSentimentNeutral(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M18 28h12v3H18v-3zm13-12c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm-11 3c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3zm3.9... |
wisewit_front_end/node_modules/react-router/modules/Route.js | emineKoc/WiseWit | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
const { string, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to the
* page when the URL matches a gi... |
src/parser/shared/modules/items/bfa/dungeons/IgnitionMagesFuse.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { formatNumber, formatPercentage } from 'common/format';
import { calculateSecondaryStatDefault } from 'common/stats';
import SPELLS from 'common/SPELLS/index';
import ITEMS from 'common/ITEMS/index';
import Abilities from 'parser/core/modules/Abilities';
import Analyzer, { SELECTED... |
src/svg-icons/action/tab.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTab = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/>
</SvgIcon>
);
ActionTab = pure(ActionTab);
ActionTab.... |
src/client/components/loadChart.js | dvorakjan/noderunner-gui | import React from 'react';
import AmCharts from 'amcharts3-react';
var colors = ['#f0e68c','#fbc165','#fb9a5b','#f37459','#e25153','#cb3044','#ad102a','#8b0000']
export default React.createClass({
getInitialState: function() {
return {dataProvider: []}
},
parseLoadData: function(d) {
d.d... |
example/examples/MapStyle.js | parkling/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.0922;
const... |
app/components/H2/index.js | shinetimes/web-storm | import React from 'react';
import styles from './styles.css';
function H2(props) {
return (
<h2 className={styles.heading2} { ...props } />
);
}
export default H2;
|
src/components/common/svg-icons/action/extension.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExtension = (props) => (
<SvgIcon {...props}>
<path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V... |
Redux/src/index.js | FillInjava/react-redux-webpack | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/Mailman.Server/ClientApp/src/components/merge-template/Hint.js | coe-google-apps-support/Mailman | import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import HelpIcon from '@material-ui/icons/Help'
import { Tooltip } from '@material-ui/core'
const styles = theme => ({
// https://material-ui.com/demos/tooltips/#variable-width - change width
customTo... |
src/components/Article.js | suranartnc/react-tutorial | import React from 'react';
import { Link } from 'react-router';
export default function(props) {
return (
<article>
<Link to={`/${props.article.id}`}>{ props.article.title }</Link>
</article>
);
} |
examples/src/components/CustomRenderField.js | iLikeKoffee/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var CustomRenderField = React.createClass({
displayName: 'CustomRenderField',
propTypes: {
delimiter: React.PropTypes.st... |
src/components/Header/Header.js | mywentu/react-blog | import React from 'react'
import './Header.scss'
import '../../static/iconfont/iconfont.css'
class Header extends React.Component {
render () {
return (
<header className='header'>
<a onClick={() => this.props.handleVisible()}
className='menu'><i className='iconfont icon-category' />
... |
src/scripts/pages/contact.js | modesty/react2html | import React from 'react';
import Main from '../components/Main';
const Contact = ({chrome, page}) => {
return (
<Main chrome={chrome} page={page} >
<>
<h1>Contact Me</h1>
<p>email the author: <a href="mailto:modestyz@hotmail.com?subject=About%20CoeProject%20Article">modestyz@hotmail.com</a></p>
</>
... |
private/Components/Footer.js | Bartoshko/occasion-jitsu | import React from 'react'
// Footer component is a developer
const Footer = props => {
return(
<div>
<div className='row'>
<div className='columns'>
<p className='center-text animated pulse'><b>Bartoshko Web Astronaut ®</b></p>
</div>
</div>
</div>
)
}
// --- -... |
src/components/Pill/Pill.example.js | 6congyao/CGB-Dashboard | /*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import React from 'react';
import Pill from 'components/Pill/Pill.react';
export const component = Pill;
export const d... |
components/chip/Chip.js | showings/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { CHIP } from '../identifiers';
import InjectAvatar from '../avatar/Avatar';
const factory = (Avatar) => {
const Chip = ({ children, className, deletable, onDeleteClick,... |
app.js | comp307/speakup | import React from 'react';
import Alert from 'sweetalert';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, hashHistory } from 'react-router'
// Core
import Header from './components/Header';
import Footer from './components/Footer';
// Page contents
import Main from './components/Main';
import C... |
app/routes.js | kamidipreetham/Easymove | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
export default () => (
<App>
<Switch>
<Route path="/coun... |
node_modules/react-router/es/Switch.js | paul-brabet/tinkerlist | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/components/PillowModal.js | andresilveira/stendebach_pillows | import React from 'react';
import ReactModal from 'react-modal';
import loading from '../assets/loading.gif';
import '../bootstrap.min.css';
const PillowModal = ({ showModal, onCloseModalClick, pillow }) => (
<ReactModal isOpen={showModal} contentLabel="Mein perfektes kissen">
<button className='btn btn-outli... |
examples/js/column-format/demo.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import HtmlColumnFormatTable from './html-column-format-table';
import ReactColumnFormatTable from './react-column-format-table';
import ExtraDataColumnFormatTable from './extra-data-column-format-table';
import GetRowIndexTable from './get-row-index-table';
class Dem... |
src/team-raid.js | FederationOfFathers/ui | import React, { Component } from 'react';
class RaidMember extends Component {
click = () => {
this.props.state.hasher.replace({main: "members", member: this.props.id})
}
leave = () => {
var body = new URLSearchParams()
body.set('channel', this.props.state.vars.chan)
body.set('raid', this.props.data.name)
... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import Immuta... |
MARVELous/client/src/js/components/characterScroller/index.js | nicksenger/StackAttack2017 | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class CharacterScroller extends Component {
constructor(props) {
super(props);
this.state = {
pointer: 0
};
this.backShift = this.backShift.bind(this);
this.frontShift = this.frontShift.bind(this);... |
src/app/component/app.component.js | irfanandriansyah1997/Kopi-Gayo | import React, { Component } from 'react';
import HeaderWidgetComponent from './widget/header'
import LoadingWidgetComponent from './widget/loading'
import WritterWidgetComponent from './widget/writter'
import DetailWidgetComponent from './widget/detail'
import { Router, Route, IndexRoute, HashRouter, Switch, Redirect ... |
app/javascript/mastodon/features/ui/components/tabs_bar.js | primenumber/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { debounce } from 'lodash';
import { isUserTouching } from '../../../is_mobile';
import Icon from 'mastodon/components/icon';
import No... |
client/src/legacy/entwine/TagField.js | kinglozzer/silverstripe-tagfield | /* global window */
import React from 'react';
import ReactDOM from 'react-dom';
import { loadComponent } from 'lib/Injector';
window.jQuery.entwine('ss', ($) => {
$('.js-injector-boot .ss-tag-field').entwine({
onmatch() {
const cmsContent = this.closest('.cms-content').attr('id');
const context = (c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.