path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Logo.js | blwoosky/DigCSS-Theme-v4-Redesign | import React, { Component } from 'react';
export default class Logo extends Component {
render() {
return (
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px"
y="0px"
viewBox="0 0 248.1 77" enable-background=... |
api/app/components/toolbar/menu.js | cmilfont/zonaextrema | import React from 'react';
import { Link } from 'react-router';
export default class Menu extends React.Component {
render() {
return (
<nav className="mdl-navigation zx-toolbar-menu">
<Link activeClassName="actived" className="mdl-navigation__link fa fa-search" to="/filter">Fil... |
src/components/List.js | polinazolotukhina/redux-movieDB | import React, { Component } from 'react';
import FavouritesButton from './FavouritesButton';
export default class List extends Component {
render() {
const { movieprops, hoverprops } = this.props;
return (
<div className>
<div className="row">
{
movieprops.data.res... |
src/server/controllers/api/signin.js | jclabrand/FisLab |
/****************************************************************************************
Copyright (c) 2016-2017, Juan Carlos Labrandero.
For conditions of distribution and use, see copyright notice in LICENSE
****************************************************************************************/
import React ... |
src/svg-icons/social/plus-one.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPlusOne = (props) => (
<SvgIcon {...props}>
<path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/>
</SvgIcon>
);
SocialPlusOne = pure(SocialPlusOne);
SocialPlusOne.displayName = 'Social... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleDivider.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleDivider = () => (
<Dropdown text='Filter' icon='filter' floating labeled button className='icon'>
<Dropdown.Menu>
<Dropdown.Header icon='tags' content='Filter by tag' />
<Dropdown.Divider />
<Dropdown.It... |
app/containers/HomePage/index.js | SilentCicero/react-boilerplate | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import messages from './messages';
import { createStructuredSelector } from 'reselect';
import {
selectRepos,
select... |
app/jsx/assignments_2/teacher/components/TeacherQuery.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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... |
examples/01 Dustbin/Multiple Targets/index.js | randrianov/react-dnd | import React from 'react';
import Container from './Container';
export default class DustbinMultipleTargets {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the Source</a></b>
</p>
... |
src/main/js/apps/logout.js | haniotak/oscars-frontend | import React from 'react'
import {observer, inject} from 'mobx-react'
import {observable, whyRun} from 'mobx'
import {Redirect} from 'react-router-dom'
@inject('accountStore')
@observer
export default class Logout extends React.Component {
componentDidMount() {
this.props.accountStore.clearAttempt();
... |
src/components/case-study/single/templates/syfy/hunters.js | adrienhobbs/redux-glow | import React from 'react';
import BaseTemplate from '../base-study-template';
import AboutSection from '../../../content-modules/about.js';
import classes from './hunters.css';
import LoopingVideo from 'components/video/looping-video.js';
import ResponsiveVideo from 'components/video/responsive';
export class ClientTe... |
assets/javascripts/sso.js | laincloud/sso | import 'es5-shim';
import 'whatwg-fetch';
import _ from 'lodash';
window._ = _;
import StyleSheet from 'react-style';
import React from 'react';
import {Router, Route} from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory'
import {createElement} from './sso/app';
import Homepage from... |
src/views/LogoutView.js | orbitdb/orbit-web | 'use strict'
import React from 'react'
import { hot } from 'react-hot-loader'
import { Redirect } from 'react-router-dom'
import RootContext from '../context/RootContext'
function LogoutView () {
const { sessionStore } = React.useContext(RootContext)
React.useEffect(() => {
sessionStore.logout()
}, [])
... |
react/StarIcon/StarIcon.js | seek-oss/seek-style-guide | import styles from './StarIcon.less';
import svgMarkup from './StarIcon.svg';
import svgMarkupFilled from './StarIconFilled.svg';
import svgMarkupHalf from './StarIconHalf.svg';
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from '../private/Icon/Icon'... |
examples/_nesting-sources/Target.js | RallySoftware/react-dnd | 'use strict';
import React from 'react';
import Colors from './Colors';
import { DragDropMixin } from 'react-dnd';
function makeDropTarget(color) {
return {
acceptDrop(component) {
component.setState({
lastDroppedColor: color
});
}
};
}
const style = {
border: '1px dashed gray',
h... |
spec/index.js | showings/react-toolbox | import React from 'react';
import ReactDOM from 'react-dom';
import Root from './root';
ReactDOM.render(<Root />, document.getElementById('spec'));
|
app/app.js | paulsonnentag/qwery-me | import React from 'react';
import QueryEditor from './query-editor.js';
export default class App extends React.Component {
render () {
return (
<div>
<header className="header">
<h1 className="header-title">qwery.me <span className="header-tag">alpha</span></h1>
</header>
<QueryEdit... |
src/parser/hunter/shared/modules/talents/BornToBeWild.js | sMteX/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import React from 'react';
import SPECS from 'game/SPECS';
import { formatNumber } from 'common/format';
/**
* Reduces the cooldowns of Aspect of the Cheetah and Aspec... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_04/start/src/index.js | yevheniyc/C | import React from 'react'
import { render } from 'react-dom'
import { SkiDayCount } from './components/SkiDayCount'
window.React = React
render(
<SkiDayCount total={50}
powder={20}
backcountry={10}
goal={100}/>,
document.getElementById('react-container')
) |
src/components/fullscreen.js | lowsky/spectacle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled from 'react-emotion';
import FullscreenButton from './fullscreen-button';
import {
requestFullscreen,
exitFullscreen,
getFullscreenElement
} from '../utils/fullscreen';
const StyledFullscreen = styled(FullscreenButton)`... |
src/svg-icons/notification/event-busy.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventBusy = (props) => (
<SvgIcon {...props}>
<path d="M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V... |
examples/shared-root/app.js | jeffreywescott/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the url,
when routes have no pa... |
src/index.js | robertorb21/ReduxSimpleStarter | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import VideoDetail from './components/video_detail';
const API_KEY = 'AIzaSyBDRIX7Lb6EIkm-BSAUPw-P9Xgl... |
client/src/app.js | Siyanda-Mzam/hire-grad | import React from 'react';
import { Route } from 'react-router-dom';
import Home from './containers/home';
import Employer from './containers/employer';
import SignUp from './containers/sign-up';
import Footer from './components/shared/footer';
import SignIn from './containers/sign-in';
import Dashboard from './contain... |
lib/index.js | mlimberg/shoot-the-breeze | import React from 'react';
import { render } from 'react-dom';
import Application from './components/Application';
import firebase from './firebase';
require('./scss/style.scss');
render(<Application/>, document.getElementById('application'));
|
src/js/components/meter/Spiral.js | nickjvm/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import classnames from 'classnames';
import { baseUnit, translateEndAngle, arcCommands } from '../../utils/Graphics';
import CSSClassnames from '../../utils/CSSClassnames';
import { baseDimension } from './utils';
import Gr... |
client/modules/App/components/Footer/Footer.js | zivkaziv/MazorTech | import React from 'react';
import { FormattedMessage } from 'react-intl';
// Import Style
import styles from './Footer.css';
// Import Images
import bg from '../../header-bk.png';
export function Footer() {
return (
<div style={{ background: `#FFF url(${bg}) center` }} className={styles.footer}>
<p>©... |
src/components/Cite/Cite.js | alexeiaccio/moscowriver | import React from 'react'
import styled from 'styled-components'
import { color, fontSize, lineHeight } from 'styled-system'
import { getParagraphsFromProps } from 'Helpers'
const Cite = styled.cite`
${color}
${fontSize}
${lineHeight}
`
export default ({
color,
fontSize,
data: { cite }
}) => (
<Cite co... |
src/components/marketingStatusLabel/marketingStatusLabel.stories.js | teamleadercrm/teamleader-ui | import React from 'react';
import { addStoryInGroup, MARKETING } from '../../../.storybook/utils';
import MarketingStatusLabel from './MarketingStatusLabel';
export default {
component: MarketingStatusLabel,
title: addStoryInGroup(MARKETING, 'MarketingStatusLabel'),
parameters: {
design: {
type: 'figm... |
app/javascript/mastodon/features/ui/components/modal_loading.js | riku6460/chikuwagoddon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
node_modules/react-router/es6/RouterContext.js | caughtclean/but-thats-wrong-blog | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
src/pages/report.js | AlbinOS/book-keeper-ui | import React from 'react';
import {Table} from 'reactstrap';
import LoadingGif from './../images/loading.gif';
class Loader extends React.Component {
render() {
return (
<div>
<img className="img-fluid mx-auto d-block" alt="Loading ..." src={LoadingGif}/>
</div>
... |
src/components/django/line/DjangoLine.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './DjangoLine.svg'
/** DjangoLine */
function DjangoLine({ width, height, className }) {
return (
<SVGDeviconInline
className={'DjangoLine' + ' ' + className}
... |
client/components/RestaurantPref.js | carlbernardo/gut | import React from 'react';
import { Modal, Button } from 'react-bootstrap';
import magellan from 'magellan-coords';
import config from './../../server/config.js';
//Components
import Map from './Map';
import UberInfo from './UberInfo';
class RestaurantPref extends React.Component {
constructor(){
super();
t... |
app/views/Player/states/Done.js | thomasboyt/bipp | import React from 'react';
import { connect } from 'react-redux';
const Done = React.createClass({
propTypes: {
judgements: React.PropTypes.object.isRequired,
},
renderJudgements() {
return this.props.judgements.map((v, k) => {
return (
<tr key={k}>
<td>{k}</td>
<td>{v}... |
archimate-frontend/src/main/javascript/components/view/edges/model/associationRelationship.js | zhuj/mentha-web-archimate | import React from 'react'
import { ModelLinkWidget } from '../BaseLinkWidget'
export const TYPE='associationRelationship';
export class AssociationRelationshipWidget extends ModelLinkWidget {
getBaseClassName(link) { return TYPE; }
drawTitle(link) {
const conceptInfo = this.getConceptInfo(link);
if (conce... |
src/modules/Repos.js | yabadabu/react-playground | import React from 'react'
export default class Repos extends React.Component {
handleSubmit(event) {
event.preventDefault()
const userName = event.target.elements[0].value
const repo = event.target.elements[1].value
const path = `/repos/${userName}/${repo}`
console.log(path)
this.c... |
src/components/Main/Footer.js | RichardTianke/react-ant-design-demo-blog | import React from 'react';
import {Layout} from 'antd';
class Footer extends React.Component{
render(){
return (
<Layout.Footer style={{ textAlign: 'center' }}>
Ant Design ©2016 Created by Ant UED
</Layout.Footer>
);
}
}
export default Footer; |
src/ContentEditable.js | menduz/ebnf-highlighter | import React from 'react';
export default class ContentEditable extends React.Component {
constructor() {
super();
this.emitChange = this.emitChange.bind(this);
}
render() {
var { tagName, html, onChange, ...props } = this.props;
return React.createElement(
tagName || 'div',
{
... |
frontend/src/containers/online/connection/websocket.js | linea-it/qlf | import React, { Component } from 'react';
import Websocket from './connection';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
updateLastProcessAndMonitor,
updateCameraState,
updateQA,
updateNotifications,
} from '../online-store';
class Connection extends Component {
sta... |
src/pages/collabs.js | mrozilla/mrozilla.cz | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import React from 'react';
import { graphql } from 'gatsby';
import { RootContainer, SEOContainer } from '~containers';
import { Main, Section, H... |
node_modules/react-router-dom/node_modules/react-router/es/Prompt.js | firdiansyah/crud-req | 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 &... |
node_modules/react-bootstrap/es/Checkbox.js | acalabano/get-committed | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
node_modules/react-bootstrap/es/FormControlFeedback.js | geng890518/editor-ui | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/helpers/typeOf.js | sdjidjev/prop-types | import React from 'react';
export default function typeOf(child) {
if (child === null) {
return 'null';
}
if (Array.isArray(child)) {
return 'array';
}
if (typeof child !== 'object') {
return typeof child;
}
if (React.isValidElement(child)) {
return child.type;
}
return child;
}
|
src/svg-icons/communication/chat.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChat = (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 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/>
</SvgIcon>
);
Communicatio... |
docs/src/sections/PagerSection.js | Terminux/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 PagerSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
src/svg-icons/action/restore-page.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestorePage = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.... |
src/components/artboard/Board.js | justinyueh/express-react | import { Router, Route, IndexRoute, Redirect, Link, browserHistory } from 'react-router'
import React from 'react'
import ContentEditable from 'react-contenteditable'
import update from 'react/lib/update';
import Card from './board/Card';
import Modal from '../ui/Modal';
class BoardTemplate extends React.Component {
... |
public/js/cat_source/es6/components/segments/footer-tab-issues/SegmentFooterTabIssues.js | riccio82/MateCat | import React from 'react'
import SegmentConstants from '../../../constants/SegmentConstants'
import SegmentStore from '../../../stores/SegmentStore'
import SegmentFooterTabIssuesListItem from './SegmentFooterTabIssuesListItem'
import TextUtils from '../../../utils/textUtils'
class SegmentFooterTabIssues extends React.... |
src/svg-icons/maps/local-dining.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDining = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.... |
app/containers/LanguageProvider/index.js | andresol/homepage | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
examples/basic/src/components/CounterButton/CounterButton.js | sapegin/react-styleguidist | import React, { Component } from 'react';
/**
* Button that counts how many times it was pressed and exposes a `@public` method to reset itself.
*/
export default class CounterButton extends Component {
constructor() {
super();
this.state = {
value: 0,
};
}
/**
* Sets the counter to a particular value... |
src/index.js | sombreroEnPuntas/trust-builder | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root') || document.createElement('div')
);
|
node_modules/react-router/es6/RouteContext.js | aimanaiman/supernomadfriendsquad | 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... |
Example/app/ViewItemScreen.js | cuttingsoup/react-native-firebase-local-cache | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
View,
Text,
StyleSheet
} from 'react-native';
import { NavigationActions } from 'react-navigation';
import * as firebase from 'firebase';
import * as Helpers from './Helpe... |
js/components/developer/create-job-screen/placeCard.js | justarrived/p2p-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Grid, Col, Form, Item, Label, Input, Card, CardItem } from 'native-base';
import CardHeader from '../../common/card-header/cardHeader';
import I18n from '../../../i18n';
import { setStreet, setZip, setCity } from '../../../action... |
manager/src/App.js | diegopoli/sample-react-native-projects | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import firebase from 'firebase';
import ReduxThunk from 'redux-thunk';
import reducers from './reducers';
import Router from './Router';
class App extends Component {
componentWillM... |
src/components/CardFooter/CardFooter.js | Landish/react-spectre-css | import React from 'react';
//import {} from 'prop-types';
import classNames from 'classnames';
const CardFooter = ({ children, ...rest }) => {
return (
<div className={classNames('card-footer')} {...rest}>
{children}
</div>
);
};
/**
* CardFooter property types.
*/
CardFooter.propTypes = {};
/**
... |
examples/01 Dustbin/Multiple Targets/Container.js | arnif/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend, { NativeTypes } from 'react-dnd/modules/backends/HTML5';
import Dustbin from './Dustbin';
import Box from './Box';
import ItemTypes from './ItemTypes';
import update from 'react/lib/update';
@DragDropContext(HTM... |
src/components/PhotoshopPicker.js | JedWatson/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import merge from 'merge'
import isPlainObject from 'lodash.isplainobject'
import debounce from 'lodash.debounce'
import color from '../helpers/color'
import Photoshop from './photoshop/Photoshop'
class ColorPicker extends ReactCSS.Co... |
Example/components/Login.js | Wondermall/react-native-router-flux | import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-flux";
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgr... |
src/index.dev.js | jeetiss/magazfr | // import 'react-hot-loader/patch'
import { AppContainer } from 'react-hot-loader'
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import { Provider } from 'react-redux'
import createStore from './createStore'
const mountPoint = document.getElementById('root')
const store = createSto... |
fixtures/packaging/systemjs-builder/dev/input.js | leexiaosi/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
map/src/containers/Details/tabs/ContactTabContainer.js | teikei/teikei | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { sendPlaceMessage } from '../duck'
import ContactForm from './ContactForm'
const ContactTab = ({ onContactSubmit, initialValues }) => (
<div id="contact">
<div id="place-message-form-container">
<Con... |
src/icons/HearingIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class HearingIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M34 40c-.57 0-1.13-.12-1.53-.3-1.41-.75-2.43-1.77-3.42-4.77-1.03-3.11-2.94-4.58-4.79-6.01-1.58-1.22-3.22-2... |
packages/vx-demo/pages/arcs.js | Flaque/vx | import React from 'react';
import Show from '../components/show';
import Arc from '../components/tiles/arc';
export default () => {
return (
<Show
events
margin={{
top: 10,
left: 40,
right: 30,
bottom: 80,
}}
component={Arc}
title="Arcs"
>
{... |
src/svg-icons/image/flash-off.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOff = (props) => (
<SvgIcon {...props}>
<path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/>
</SvgIcon>
);
ImageFlashOff = pure(ImageFlashOf... |
src/svg-icons/maps/train.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTrain = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
src/components/Chatbot/lib/VoiceRecognition.js | jainvabhi/PWD | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class VoiceRecognition extends Component {
constructor (props) {
super(props);
const SpeechRecognition = window.SpeechRecognition
|| window.webkitSpeechRecognition
|| window.mozSpeechRecognition
|| window.msSpeec... |
src/Parser/BalanceDruid/Modules/Spells/HalfMoon.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import SPELLS from 'common/SPELLS';
import isMoonMo... |
app/pages/index/Album/index.js | czy0729/react-alumni | /**
* 相册
* @Date: 2017-03-24 22:15:32
* @Last Modified by: Administrator
* @Last Modified time: 2017-03-28 02:36:13
*/
'use strict';
import React from 'react';
import { observer } from 'decorators';
import { $alumni, $album, $popout } from 'stores';
import { Spin, Upload, Img, AppListView } from 'components';
i... |
client/complete/src/ui/posts/Form.js | fernandoxu/react-express-api-demo | import React, { Component } from 'react';
import {Link} from 'react-router';
import Radium from 'radium';
class Form extends Component {
handleSubmit(e) {
e.preventDefault();
const category = this.refs.category.value;
const title = this.refs.title.value;
const content = this.refs.content.value;
t... |
client/scripts/components/user/revise/check-link/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... |
app/javascript/mastodon/features/direct_timeline/index.js | kazh98/social.arnip.org | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... |
client/components/client/NavigationBar.js | Kamill90/Dental | import React, { Component } from 'react';
import gql from 'graphql-tag';
import { graphql, compose } from 'react-apollo';
import { Link, hashHistory } from 'react-router';
import {Dropdown, NavItem, Button, Icon, Input} from 'react-materialize';
//queries
import fetchDoctors from '../../queries/fetchDoctors';
import Cu... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | gol-cha/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
src/app.js | claygifford/claygifford-Task | /*! claygifford-Task | MIT License | https://github.com/claygifford/claygifford-task/ */
import 'babel/polyfill';
import React from 'react';
import FastClick from 'fastclick';
import App from './components/App';
import Dispatcher from './core/Dispatcher';
import AppActions from './actions/AppActions';
import ActionType... |
packages/react/src/inputs/Image.js | wq/wq.app | import React from 'react';
import File from './File';
export default function Image(props) {
return <File accept="image/*" {...props} />;
}
|
packages/knapsack-kitchensink/src/index.js | brandonjpierce/knapsack | import React from 'react';
import {render} from 'react-dom';
const App = () => <div>Hello, world!</div>;
render(<App/>, document.body);
|
src/js/components/Widget.js | holderdeord/hdo-cards | import React, { Component } from 'react';
import VoteWidget from './VoteWidget';
import PromisesWidget from './PromisesWidget';
export default class Widget extends Component {
render() {
let content = null;
switch (this.props.type) {
case 'vote':
content = <VoteWidget {... |
packages/slate-react/src/components/content.js | ashutoshrishi/slate | import Debug from 'debug'
import React from 'react'
import Types from 'prop-types'
import getWindow from 'get-window'
import logger from 'slate-dev-logger'
import throttle from 'lodash/throttle'
import EVENT_HANDLERS from '../constants/event-handlers'
import Node from './node'
import findDOMRange from '../utils/find-d... |
src/components/MaintainSources/DisplayLoadData.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import DatePicker from 'react-datepicker';
import { Panel, Button } from 'react-bootstrap';
class DisplayLoadData extends Component {
constructor(props) {
super(props);
this.state = {
selectedFile: null,
businessDate: null,
... |
client/src/components/contact/ContactPage.js | BrianLusina/Arco | /**
* Created by lusinabrian on 05/05/17.
*/
import React from 'react';
import ContactForm from './ContactForm';
import Map from './Map';
const ContactPage = () =>{
return(
<div className="page" id="page-contact">
<header className="bp-header cf">
<h1 className="bp-header__title">Contact</h1>
... |
src/react-shallow-output.js | jasonbellamy/react-shallow-output | import React from 'react';
import TestUtils from 'react-addons-test-utils';
/**
* Renders and returns the output of a shallow react component
*
* @param {string|React} component string or React component
* @param {object} props component props
* @param {array} children component children
* @return {object} Objec... |
node_modules/native-base/Components/Widgets/ProgressBar.android.js | mk007sg/threeSeaShells | /* @flow */
'use strict';
import React from 'react';
import ProgressBar from 'ProgressBarAndroid';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps() {
var ty... |
node_modules/react-bootstrap/es/Navbar.js | NickingMeSpace/questionnaire | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
docs/src/app/components/pages/components/Drawer/ExampleSimple.js | owencm/material-ui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerSimpleExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
handl... |
index.js | Swaagie/assume-react | /* eslint no-invalid-this: 0 */
import TestUtils from 'react-dom/test-utils';
import React from 'react';
export default function pluginAssumeReact(assume, util) {
const a = assume().a;
/**
* Is the value allowed for the React Component.propTypes.
*
* @param {String} prop Propety name
* @param {String}... |
thingmenn-frontend/src/widgets/piechart/index.js | baering/thingmenn | import React from 'react'
import PropTypes from 'prop-types'
import ReactHighcharts from 'react-highcharts'
import { formatPercentage } from '../../utils'
import './styles.css'
// drilldown WIP
const buildDrillDown = () => {
return {
series: [],
}
}
const chartConfig = (voteSummary) => {
return {
chart... |
mobile_app/src/components/views/userProfile/MyProfile.js | youennPennarun/agorask | /* @flow*/
import React from 'react';
import { View, Text, Image, Dimensions, StyleSheet } from 'react-native';
import { connect } from 'react-redux';
import {MKTextField, MKColor} from 'react-native-material-kit';
import TopBar from '../../commons/TopBar';
import ProfilePic from '../../commons/ProfilePic';
const { w... |
src/svg-icons/editor/format-textdirection-l-to-r.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionLToR = (props) => (
<SvgIcon {...props}>
<path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/>
</SvgIcon>
);
EditorFormatTextdirectionLToR = p... |
src/svg-icons/action/view-quilt.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewQuilt = (props) => (
<SvgIcon {...props}>
<path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/>
</SvgIcon>
);
ActionViewQuilt = pure(ActionViewQuilt);
ActionViewQuilt.displayN... |
src/js/components/MaterialInput.js | mmagr/gui | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
class MaterialInput extends Component {
constructor(){
super();
this.isValid = this.isValid.bind(this);
this.getName = this.getName.bind(this);
}
isValid() {
if (this.props.valid !== undefined) {
return this.props... |
src/index.js | wu0792/gallery-by-react | 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/svg-icons/action/line-style.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLineStyle = (props) => (
<SvgIcon {...props}>
<path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h... |
lesson-6/todos/src/components/editNotesPage/EditNotesPage.js | msd-code-academy/lessons | import React from 'react'
import NoteList from './NoteList'
import { actionTypes } from '../../Reducer'
import { connect } from 'react-redux'
class EditNotesPage extends React.Component {
editNote = editedNote => {
this.props.dispatch({ type: actionTypes.NOTE_UPDATED, editedNote })
}
removeNot... |
src/components/article/Audio.js | garfieldduck/twreporter-react | /* eslint no-unused-vars:0 */
'use strict'
import { Image } from './Image'
import { replaceStorageUrlPrefix } from '../../utils/index'
import CircleProgressButton from './CircleProgressButton'
import CSSTransitionGroup from 'react-addons-css-transition-group'
import Player from 'react-howler'
import React from 'react' ... |
app/containers/tutorial/step-3.js | DeividasK/my-future-ai | import React from 'react'
import { connect } from 'react-redux'
import SimpleList from 'components/lists/simple'
import TutorialCollapse from './collapse'
import { updateGoal, setGoalPrimary } from '../../actions/FirebaseActions'
import { updateStep, updateHeading, updateActions, disableNext, enableNext } from '../..... |
examples/todomvc/containers/TodoApp.js | iam4x/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'redux/react';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
export default class TodoApp extends Comp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.