path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Layout/Layout.js | jessiepullaro414/kiwi | /**
* 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-... |
src/SafeAnchor.js | omerts/react-bootstrap | import React from 'react';
import createChainedFunction from './utils/createChainedFunction';
/**
* Note: This is intended as a stop-gap for accessibility concerns that the
* Bootstrap CSS does not address as they have styled anchors and not buttons
* in many cases.
*/
export default class SafeAnchor extends React... |
node_modules/react-router/es6/IndexRoute.js | SlateRobotics/slate-website | 'use strict';
import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './PropTypes';
var func = React.PropTypes.func;
/**
* An <IndexR... |
client/node_modules/react-error-overlay/lib/components/Header.js | bourdakos1/Visual-Recognition-Tool | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { red } from '../styles';
var headerStyle = {
fontSize: '2em',
fontFamily: 'sans-serif',
color:... |
actor-apps/app-web/src/app/utils/require-auth.js | guiquanz/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
app/public/src/js/App/Layouts/Main/Main.js | ShawnCC/magic-mirror | 'use strict';
import React from 'react';
import { connect } from 'react-redux';
import { getCssClasses } from './Actions';
class Main extends React.Component {
constructor() {
super();
}
/**
* Dispatch action to get css classes for component
*/
getCssClasses() {
this.contex... |
demo/src/ComplexDemo/UserForm.js | JoaoCnh/react-loki | import React from 'react';
import { withFormik } from 'formik';
import Yup from 'yup';
const UserForm = (props) => {
const {
// Formik HOC props
values,
touched,
errors,
isSubmitting,
handleChange,
handleBlur,
handleSubmit,
// Loki props
... |
src/parser/shared/modules/AlwaysBeCastingHealing.js | anom0ly/WoWAnalyzer | import { t, Trans } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import { ThresholdStyle } from 'parser/core/ParseResults';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
import Gauge from 'parser/ui/Gauge';
import Statistic from 'parser/ui/Statistic';
import { STATI... |
src/components/button.js | flootr/redux-login | import React from 'react'
export default props => (
<button
className='b ph3 pv2 input-reset ba b--black bg-transparent grow pointer f6 dib'
{...props}
/>
)
|
actor-apps/app-web/src/app/utils/require-auth.js | cnbin/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
src/decorate.js | colorjar/qs-component | import React from 'react';
export default function(component) {
return class extends component {
/*
* This needs to be overloaded to return an object
* representing the current query string, e.g.
* /page?foo=bar&page=1 should return
* {foo: bar, page: 1}
*/
... |
react-flux-mui/js/material-ui/src/svg-icons/action/opacity.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpacity = (props) => (
<SvgIcon {...props}>
<path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.... |
node_modules/react-icons/md/room.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdRoom = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 19.1c2.3 0 4.1-1.8 4.1-4.1s-1.8-4.1-4.1-4.1-4.1 1.8-4.1 4.1 1.8 4.1 4.1 4.1z m0-15.7c6.5 0 11.6 5.1 11.6 11.6 0 8.8-11.6 21.6-11.6 21.6s-11.6-12.8-11.6-21.6c0-6.5 5.... |
fields/types/number/NumberColumn.js | matthewstyers/keystone | import React from 'react';
import numeral from 'numeral';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var NumberColumn = React.createClass({
displayName: 'NumberColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTyp... |
examples/draft-0-9-1/tex/js/app.js | SciMts/draft-js | /**
* Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCL... |
src/parser/rogue/outlaw/modules/core/Energy.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import resourceSuggest from 'parser/shared/modules/resourcetracker/ResourceSuggest';
import EnergyTracker from '../../../shared/resources/EnergyTracker';
class Energy ... |
packages/web/examples/ssr-with-react-dom/common/BookCard.js | appbaseio/reactivesearch | import React from 'react';
import PropTypes from 'prop-types';
const BookCard = ({ data }) => (
<div className="flex book-content" key={data._id}>
<img src={data.image} alt="Book Cover" className="book-image" />
<div className="flex column justify-center" style={{ marginLeft: 20 }}>
<div className="book-header... |
src/Col.js | sheep902/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)
*
... |
node_modules/react-icons/io/social-javascript-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoSocialJavascriptOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m12.5 8.1h-3.7v15.3c0 2.4-0.5 3.9-1.4 5-0.8 1.1-2 1.6-3.7 1.6-0.7 0-1.4-0.1-2-0.2l-0.3 2.4c0.9 0.1 2 0.3 2.9 0.3 2.7 0 4.6-0.6 5.9-2 1.5-1.4 2.3-3.7 2... |
src/containers/PetitionRunningTime.js | iris-dni/iris-frontend | import React from 'react';
import { connect } from 'react-redux';
import settings from 'settings';
import PetitionRunningTime from 'components/PetitionRunningTime';
import getPetitionStartDate from 'helpers/getPetitionStartDate';
const PetitionRunningTimeContainer = (props) => (
<PetitionRunningTime {...props} />
);... |
src/components/layout.js | asunny72/IdeaNation | import React from 'react'
import '../assets/scss/main.scss'
import Footer from './Footer'
class Template extends React.Component {
constructor(props) {
super(props);
this.state = {
loading: 'is-loading'
}
}
componentDidMount () {
this.timeoutId = setTimeout(() => {
this.setState({... |
docs/lib/routes.js | Availity/react-block-ui | import React from 'react';
import { Route, IndexRoute, IndexRedirect } from 'react-router';
import Home from './Home';
import BlockUiPage from './Components/BlockUiPage';
import ReduxBlockUiPage from './Components/ReduxBlockUiPage';
import NotFound from './NotFound';
import Components from './Components';
import UI fro... |
src/svg-icons/av/web-asset.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvWebAsset = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/>
</SvgIcon>
);
AvWebAsset = pure(AvWebAsset);
AvWebAss... |
src/scripts/views/createGamePage.js | TayLang/IronPong | import React from 'react'
import ACTIONS from '../actions.js'
import STORE from '../store.js'
import NavBar from './components/navBar'
var CreateGamePage = React.createClass({
render: function(){
return(
<div className = 'create-game-page-wrapper'>
<NavBar />
<NewGame />
</div>
)
}
})
var NewGa... |
src/Parser/Core/Modules/Features/Images/Mana.js | hasseboulen/WoWAnalyzer | import React from 'react';
const icon = props => (
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" {...props}>
<g>
<path d="M44.584,43.126l-7.489-11.73v-4.722h0.425c1.753,0,3.335-1.432,3.335-3.29v-1.35 c0-1.857-1.582-3.328-3.335-3.328H26.736c-1.753,0-3.428,1.471-3.428,3.328v1.... |
src/svg-icons/action/exit-to-app.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExitToApp = (props) => (
<SvgIcon {...props}>
<path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c... |
client/extensions/woocommerce/woocommerce-services/views/service-settings/settings-form/index.js | Automattic/woocommerce-services | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
/**
* Internal dependencies
*/
import SettingsGroup from './settings-group';
import { successNotice, errorNotice } from 's... |
src/components/Footer/index.js | blitze/fcc-react-recipebox | import React from 'react';
import { Link } from 'react-router';
import { Row, Col } from 'react-flexbox-grid';
import Crud from '../../containers/Crud';
import './styles.scss';
const Footer = () => (
<div className="footer">
<Crud />
<div className="container">
<Row>
<Col xs>
<a href="https://github.... |
app/javascript/mastodon/features/status/components/detailed_status.js | RobertRence/Mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from... |
src/widget/parser.js | bebo-rooms/label | import Label from '../Label';
import React, { Component } from 'react';
export default class Parser extends Component {
requestedVariables = [];
requestVariable = variable => {
this.requestedVariables = [...this.requestedVariables, variable];
this.props.requestVariable(variable);
};
parseTemplate = ... |
Paths/React/06.Styling React Components/2-react-styling-components-m2-exercise-files/After/src/app.js | phiratio/Pluralsight-materials | import autobind from 'autobind-decorator'
import React from 'react'
import Carousel from './carousel'
import Frame from './frame'
import Nav from './nav'
import Slide from './slide'
import configStyles from './config-styles'
@autobind
export default class DriftApp extends React.Component {
state = {
showIndex:... |
src/index.js | PhaseFive/landing | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import 'typeface-roboto'
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/utils/domUtils.js | Cellule/react-bootstrap | import React from 'react';
/**
* Get elements owner document
*
* @param {ReactComponent|HTMLElement} componentOrElement
* @returns {HTMLElement}
*/
function ownerDocument(componentOrElement) {
let elem = React.findDOMNode(componentOrElement);
return (elem && elem.ownerDocument) || document;
}
/**
* Shortcut... |
src/index.js | qiulingwang/imageShow | 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/index.js | Lawton/react-testing-example | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
const rootEl = document.getElementById('root');
const render = Component =>
ReactDOM.render(
<Component />,
rootEl
);
render(App);
|
src/routes.js | Arunvirat/Logi-heroes | 'use strict';
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Layout from './components/Layout';
import IndexPage from './components/IndexPage';
import AthletePage from './components/AthletePage';
import NotFoundPage from './components/NotFoundPage';
import FixtureLayout from './compo... |
client/sources/ModalSource.js | springload/wagtaildraftail | import PropTypes from 'prop-types';
import React from 'react';
import { AtomicBlockUtils, RichUtils } from 'draft-js';
const $ = global.jQuery;
class ModalSource extends React.Component {
constructor(props) {
super(props);
this.onClose = this.onClose.bind(this);
this.onConfirm = this.onConfirm.bind(this... |
src/svg-icons/editor/insert-comment.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertComment = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
EditorInsertCom... |
src/components/meetings/questions/dialog/CategoriesQuestions.js | VGraupera/1on1tracker | import React, { Component } from 'react';
import { connect } from 'react-redux';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import PropTypes from 'prop-types';
import { getCategoriesQuestionsArray } from '../../../../selectors/categoriesQuestions';
import { setCateg... |
app/javascript/mastodon/components/extended_video_player.js | TheInventrix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class ExtendedVideoPlayer extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
time: PropTypes.number,
contr... |
assets/app/config/Root.js | chernyshof/react-phoenix-users-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Route, Switch } from 'react-router';
import { ConnectedRouter as Router } from 'react-router-redux';
import PropTypes from 'prop-types';
import { authenticate, unauthenticate } from 'actions/session';
import {
App,
ErrorMess... |
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js | IsenrichO/mui-with-arrows | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
const LinearProgressExampleSimple = () => (
<LinearProgress mode="indeterminate" />
);
export default LinearProgressExampleSimple;
|
src/containers/App/App.prod.js | copygof/go-ayutthaya | import React from 'react'
import { Provider } from 'react-redux'
import Routers from '../../routers'
import configureStore from '../../store/configureStore'
const store = configureStore()
const App = () => (
<Provider store={store}>
<Routers />
</Provider>
)
export default App |
Example/index.js | skv-headless/react-native-scrollable-tab-view | import React from 'react';
import {
StyleSheet,
Text,
View,
ScrollView,
TouchableOpacity,
} from 'react-native';
import createReactClass from 'create-react-class';
import { StackNavigator } from 'react-navigation';
import SimpleExample from './SimpleExample';
import ScrollableTabsExample from './ScrollableTab... |
src/components/Todo.js | pekkis/drupalcamp-helsinki-2015-11 | import React from 'react';
import classnames from 'classnames';
const Todo = (props) => {
const { todo, markTodo } = props;
const classes = classnames(
'todo',
{
done: todo.done,
}
);
return (
<li className={classes} onClick={markTodo.bind(null, todo.id)}>... |
client/src/pages/index.js | jonathanihm/freeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { graphql } from 'gatsby';
import Landing from '../components/landing';
import { AllChallengeNode } from '../redux/propTypes';
export const IndexPage = ({
data: {
allChallengeNode: { nodes }
}
}) => {
return <Landing nodes={nodes} />;
};
... |
examples/react-router/components/Application.js | pablolmiranda/fluxible | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import Nav from './Nav';
import Timestamp from './Timestamp';
import ApplicationStore from '../stores/ApplicationStore';
import {connectToStores, provideContex... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | NathanBWaters/website | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/pages/channels/index.js | feedcast/hurley | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { requestChannels } from 'app/actions/channels';
import FeedcastLoader from 'app/components/FeedcastLoader';
import ChannelList from './ChannelList';
class ChannelListContainer extends Component {
componentDidMount() {
this.... |
src/components/ButtonError.js | mikebarkmin/gestyled | import React from 'react';
import { withTheme } from 'styled-components';
import Button from './Button';
/**
* See Button for possible props.
*/
const ButtonError = props => {
const { theme } = props;
const bg = theme.colors.error;
const color = theme.colors.errorText;
return <Button bg={bg} color={color} {.... |
assets/javascripts/kitten/karl/pages/homepage/featured-projects/index.js | KissKissBankBank/kitten | import React from 'react'
import styled from 'styled-components'
import { Card } from './components/card'
import {
Title,
Grid,
GridCol,
Carousel,
pxToRem,
ScreenConfig,
mediaQueries,
} from 'kitten'
const StyledFeaturedProjects = styled(Grid)`
@media (min-width: ${pxToRem(ScreenConfig.L.min)}) {
.... |
front_end/front_end_app/src/client/me/index.react.js | carlodicelico/horizon | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import Logout from '../auth/logout.react';
import React from 'react';
import requireAuth from '../auth/requireauth.react';
import {format} from '../intl/store';
@requireAuth
export default class Index extends Compo... |
frontend/app/components/Repairs/RepairFilterView.js | sabbir044/AutoRepair | import React from 'react';
import PropTypes from 'prop-types';
import { FormGroup, FormControl, Form } from 'react-bootstrap';
export default function RepairFilterView(props) {
return (
<Form inline>
<FormGroup controlId="filterDate">
<FormControl type="text" placeholder="Date (yyyy-mm-dd)" onChang... |
examples/huge-apps/routes/Messages/components/Messages.js | batmanimal/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
components/Footer.js | efleurine/alumnus | import React from 'react'
function Footer() {
return (
<div className="fix-bottom">
<p className="tc f7">© 2017 All rigths reserved</p>
<style jsx>{`
.fix-bottom {
position: absolute;
bottom: 0;
width: 100%;
height: auto;
color: #094E62;
... |
fields/types/url/UrlField.js | tony2cssc/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'URLField',
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) {
href = 'http://' + href;
}
window.o... |
app/Components/common/Input.js | Moshikol/DaiabetesJournal | import React, { Component } from 'react';
import { View, TextInput, Text } from 'react-native';
const Input = ({ label, securetxt, maxlen, keytype, value, onChangeText, placeHolder }) => {
return (
<View style={styles.containerStyle}>
<Text style={styles.labelStyle}>{label}</Text>
... |
app/javascript/components/CallToolAnalytics/TargetsChart.js | SumOfUs/Champaign | //
import React, { Component } from 'react';
import c3 from 'c3';
class TargetsChart extends Component {
componentDidMount() {
this.createChart();
}
componentDidUpdate() {
this.createChart();
}
createChart() {
const chart = c3.generate({
bindto: '#call-tool-analytics-targets-chart',
... |
src/Parser/Paladin/Holy/Modules/Features/Checklist.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
import ItemLink from 'common/ItemLink';
import CoreChecklist, { Rule, Requirement } from 'Parser/Core/Modules/Features/Checklist';
import { P... |
src/views/components/ServiceCardBase.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import {withRouter} from 'react-router-dom';
import Toolbar from './Toolbar.js';
import Button from './Button.js';
import ServiceHeader from './ServiceHeader.js';
import './ServiceCardBase.css';
export const ServiceCardBase = (props) => {
const detailsPat... |
src/svg-icons/content/add-circle-outline.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAddCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.5... |
src/components/Provide/IntlProvider.js | OlegVitiuk/Majsternia | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { IntlProvider } from 'react-intl';
function ProvideIntl({ intl, children }) {
return (
<IntlProvider
{...intl}
messages={intl.messages[intl.locale]}
>
{children}
</IntlProvider>... |
server/sonar-web/src/main/js/app/components/nav/global/GlobalNavMenu.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
client/src/components/App.js | francoabaroa/happi | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Link, withRouter } from 'react-router';
import $ from 'jquery';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
import Inicio from '... |
src/svg-icons/action/settings-input-hdmi.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputHdmi = (props) => (
<SvgIcon {...props}>
<path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/>
</SvgIcon>
);
ActionSettingsInputHd... |
src/components/SEO.js | petecorreia/petecorreia | import React from 'react';
import Helmet from 'react-helmet';
import PropTypes from 'prop-types';
import { StaticQuery, graphql } from 'gatsby';
const query = graphql`
query GetSiteMetadata {
site {
siteMetadata {
title
author
description
siteUrl
social {
twitter
}
}
}
}
`;
co... |
src/parser/paladin/retribution/modules/talents/DivinePurpose.js | sMteX/WoWAnalyzer | import React from 'react';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/ot... |
sms_sponsorship/webapp/src/App.js | maxime-beck/compassion-modules | import React from 'react';
import TopAppBar from './components/TopAppBar';
import ChildCard from './components/ChildCard';
import { translate } from 'react-i18next';
import i18n from './i18n';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import CenteredLoading from './components/Centered... |
src/decorators/mapProps.js | buildo/revenge | import React from 'react';
import t from 'tcomb';
import isReactComponent from '../isReactComponent';
export default function mapProps(map) {
if (process.env.NODE_ENV !== 'production') {
t.assert(t.Function.is(map), `@mapProps requires a map fn`);
}
return function (Component) {
if (process.env.NODE_EN... |
src/components/shared/dropdown.js | ziagrosvenor/sound-machine | import React from 'react'
import './dropdown.scss'
export function DropDown(props) {
const options = props.options.map((value, i) => {
return (
<option
key={i}
value={value}
>{value.toUpperCase()}
</option>)
})
return (
<div className='dropdown dropdown-dark'>
<se... |
packages/layout/stories/index.stories.js | finnfiddle/number-picture | import React from 'react';
import { storiesOf, addDecorator } from '@storybook/react';
import { initScreenshot, withScreenshot } from 'storybook-chrome-screenshot';
import { Svg, Ribbon, Circle, Group, Rect, Arc } from '../../element/src/index';
import {
Chord,
Cluster,
Collection,
Grid,
Pack,
Partition,
... |
src/shared/components/socialMedia/socialMediaContainer/socialMediaContainer.js | sethbergman/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './socialMediaContainer.css';
const SocialMediaContainer = ({ children }) => (
<div className={styles.socialMediaContainer}>
{children}
</div>
);
SocialMediaContainer.propTypes = {
children: PropTypes.arrayOf(PropTypes.element... |
app/lib/main-container.js | bwiggs/boom-beach-hq | import React from 'react'
import UpgradesPage from 'upgrades/upgrades_page'
export default class MainContainer extends React.Component {
render() {
return <div className="main-container">
<UpgradesPage />
</div>
}
}
|
app/src/index.js | tafkanator/drupal-react | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import './gfx/main.scss';
// scroll top on page change
let prevLocation = {};
browserHistory.listenBefore(location => {
const pathChanged = prevLocation.pathname !== loca... |
docs/app/Examples/elements/Header/Types/HeaderExamplePage.js | clemensw/stardust | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExamplePage = () => (
<div>
<Header as='h1'>First Header</Header>
<Header as='h2'>Second Header</Header>
<Header as='h3'>Third Header</Header>
<Header as='h4'>Fourth Header</Header>
<Header as='h5'>Fifth Header</Head... |
fields/types/datearray/DateArrayField.js | qwales1/keystone | import ArrayFieldMixin from '../../mixins/ArrayField';
import DateInput from '../../components/DateInput';
import Field from '../Field';
import React from 'react';
import moment from 'moment';
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD';
const DEFAULT_FORMAT_STRING = 'Do MMM YYYY';
module.exports = Field.create({
dis... |
src/TextField/TextField.js | collegepulse/material-react-components | import makeClass from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import Animations from './TextFieldAnimations.css';
import Styles from './TextField.css';
class TextField extends React.Component {
constructor(props) {
super(props);
this.fixHeight = this.fixHeight.bind(this);... |
web/app/components/LoadingIndicator/index.js | agapic/TwitchChatStreaming | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
src/client/components/common/login.js | uuchat/uuchat | import React, { Component } from 'react';
import { Form, Icon, Input, Button } from 'antd';
import Tips from './tips';
import '../../static/css/login.css';
const FormItem = Form.Item;
class Login extends Component{
static defaultProps = {
fetchUrl: '/login',
redirect: '/chat'
};
handleSu... |
src/svg-icons/action/invert-colors.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInvertColors = (props) => (
<SvgIcon {...props}>
<path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1... |
src/components/Button/ButtonStartMenu.js | pumpost/pwa-bkk | import React from 'react'
export default ({btnName, icName, facebookLogin, imgSrc , btnid}) => {
return(
<div id={btnid} className="btn-start btn-startmenu" onClick={facebookLogin}>
<img src={imgSrc} className={`i-home i-${icName}`} alt={btnName} />
{ btnName }
</div>
)
}
|
src/svg-icons/file/cloud-circle.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79... |
src/svg-icons/navigation/menu.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMenu = (props) => (
<SvgIcon {...props}>
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/>
</SvgIcon>
);
NavigationMenu = pure(NavigationMenu);
NavigationMenu.displayName = 'NavigationMenu';... |
node_modules/react-router/es6/RouteContext.js | ajkhatibi/wheevy | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
src/svg-icons/action/theaters.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTheaters = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</SvgI... |
app/scripts/src/history-sync/history-sync.js | MrMamen/traktNRK | import React from 'react';
import ViewingActivityApp from './components/viewing-activity-app';
import NRKWebAPIUtils from './utils/nrk-web-api-utils';
NRKWebAPIUtils.getActivities();
React.render(<ViewingActivityApp />, document.getElementById('viewing-activity-app'));
|
fields/types/money/MoneyField.js | nickhsine/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'MoneyField',
valueChanged (event) {
var newValue = event.target.value.replace(/[^\d\s\,\.\$€£¥]/g, '');
if (newValue === this.props.value) return;
this.props.onChange(... |
app/components/SvgArrow.js | animalphase/bramble | // @flow
import React from 'react';
import utils from '../utils.js';
import { connect } from 'react-redux';
import stateReturn from '../store/state-return.js';
// import { Route } from 'react-router-dom';
class SvgArrow extends React.Component {
constructor(props) {
super(props);
}
render() {
// var tar... |
modules/Redirect.js | tylermcginnis/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './InternalPropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client ... |
src/Edit.js | mauchede/fork-api-platform-admin | import Api from '@api-platform/api-doc-parser/lib/Api';
import Resource from '@api-platform/api-doc-parser/lib/Resource';
import {DisabledInput, Edit as BaseEdit, SimpleForm} from 'react-admin';
import PropTypes from 'prop-types';
import React from 'react';
const hasIdentifier = fields => {
return (
undefined !=... |
app/containers/OtherPage.js | leofle/electron_manifesto | import React, { Component } from 'react';
import Other from '../components/Other';
export default class OtherPage extends Component {
render() {
return (
<Other />
);
}
}
|
src/svg-icons/action/label.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabel = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/>
</SvgIcon>
);
A... |
Agenda/src/components/tramitacao/tramitacaoPublicacaoAgenda.js | interlegis/agenda-evento | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getUsuario } from '../../actions';
import { RoleAwareComponent } from 'react-router-role-authorization';
import { Link } from 'react-router';
import Cookies from 'js-cookie';
class tramitacaoPublicacaoAgenda ... |
examples/todomvc/index.js | DLRandy/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
stories/slider.stories.js | isogon/material-components | import React from 'react'
import { storiesOf } from '@storybook/react'
import wrapStory from './decorators/wrapStory'
import Default from '../src/components/slider/demos/default.js'
import Disabled from '../src/components/slider/demos/disabled.js'
import StartingValue from '../src/components/slider/demos/startingValue... |
src/index.js | forstaathletics/webpack-basic | import { Map } from 'immutable'
import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, browserHistory } from 'react-router'
import { Provider } from 'react-redux'
import { syncHistory, routeReducer } from 'react-router-redux'
import makeStore, { addReducer, addMiddleware } from './store'
im... |
pootle/static/js/admin/components/AdminController.js | fabada/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import Backbone from 'backbone';
import Rea... |
docs-ui/components/textCopyInput.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import {action} from '@storybook/addon-actions';
import TextCopyInput from 'app/views/settings/components/forms/textCopyInput';
export default {
title: 'Utilities/TextCopyInput',
};
export const _TextCopyInput = withInfo('Description')(() =... |
app/components/page-title/index.js | kimurakenshi/caravanas | import React from 'react';
import styles from './style/page-title.scss';
import classNames from 'classnames';
export default function PageTitle(props) {
return (
<h2 className={classNames(styles['page-title'], props.className)} >
{props.title.toUpperCase()}
</h2>
);
}
|
frontend/src/components/Search.js | beelzebielsk/hoopla | import React, { Component } from 'react';
import { Input, Button, Icon } from 'react-materialize';
import '../styles/search.css';
import ResultList from './ResultList';
class Search extends Component {
constructor(props){
super(props);
try {
if (this.props.location.state.post.length !=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.