path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
frontend/src/components/icons/PlayerClose.js | webrecorder/webrecorder | import React from 'react';
function Close() {
return (
<svg width="20px" height="10px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd" strokeLinecap="square">
<g id="About" transform="translate(-2367.... |
site/client.js | jgable/react-dnd | import React from 'react';
import { render } from 'react-dom';
import IndexPage from './IndexPage';
render(
<IndexPage
{...window.INITIAL_PROPS}
/>,
document
);
|
src/@ui/forms/BillingAddressForm/index.js | NewSpring/Apollos | import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
import { branch, renderComponent, compose, setPropTypes } from 'recompose';
import get from 'lodash/get';
import { withFormik } from 'formik';
import Yup from 'yup';
import withGive from '@data/withGive';
import withChe... |
app/containers/Account/Login/index.js | rayrw/skygear-apitable | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { push as changeRouteAction } from 'react-router-redux';
import { showNotification as showNotificationAction } from 'containers/Notification/actions';
import * as actions from './actions';
import AccountLogin from '../../../componen... |
src/containers/progress/Progress.js | UNumbervan/todo-shmodo | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
import {connect} from 'react-redux';
import {createSelector} from 'reselect';
class Progress extends React.Component {
render() {
return (
<LinearProgress mode="determinate" value={this.props.progress}/>
... |
src/app.js | scotchfield/react-rpg | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link } from 'react-router'
import Character from './components/Character'
import Dungeon from './components/Dungeon'
class App extends React.Component {
render () {
return (
<div className="Container">
<h1>R... |
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | NS-Kazuki/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import IconButton from '../../../components/icon_button';
import { changeComposeSensitivity } from '../../../actions/compose';
import Motion from '../../ui/util/optional_motion';
im... |
app/components/Footer.js | trussworks/DoDidDone | import React from 'react';
export const Footer = () => (
<div className="footer">
<p>Copyright TrussWorks, 2016</p>
</div>
);
export default Footer;
|
src/svg-icons/action/visibility-off.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibilityOff = (props) => (
<SvgIcon {...props}>
<path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.7... |
src/Components/Header/index.js | gronda-team/react-searchable-select | import React from 'react';
import styled from 'styled-components';
import logo from '../../../public/gronda_logo_side.png';
const styles = {
wrapper: {
height: 150,
background: "white",
margin: "0px auto",
color: "#102030",
marginBottom: 100,
fontWeight: "bold",
display: "flex",
justifyContent: "cente... |
examples/basic-board/src/App.js | Hellenic/react-hexgrid | import React, { Component } from 'react';
import { HexGrid, Layout, Hexagon, GridGenerator } from 'react-hexgrid';
import './App.css';
class App extends Component {
render() {
const hexagons = GridGenerator.parallelogram(-2, 3, -2, 1);
return (
<div className="App">
<h1>Basic example of HexGri... |
test/test_helper.js | RedZulu/ReduxArt | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/svg-icons/device/battery-60.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery60 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z"/><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
src/containers/Block.js | zachlevy/react-playground | import React from 'react'
import { connect } from 'react-redux'
import Content from '../containers/Content'
const mapStateToProps = (state) => ({
theme: state.theme
})
const templates = [
{
name: "sidebar-right",
contents: 2,
template: (
<div className="row">
<div className="col-xs-12 co... |
src/routes.js | GBLin5566/BackExchange | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
import App from './components/App';
import Home from './components/Home';
import Profile from './components/Profile';
import FriendList from './components/FriendList';
import NotFound from './components/NotFound';
export default (
... |
client/index.js | hankthewhale/reactexpress | import React from 'react';
import ReactDOM from 'react-dom';
import App from 'components/app'
ReactDOM.render(<App />, document.getElementById('app'));
|
src/app.js | kngroo/Kngr | import React, { Component } from 'react';
import Header from './header';
import Navbar from './navbar';
require('./styles/normalize.scss');
require('./styles/skeleton.scss');
require('./styles/app.scss');
export default class App extends Component {
constructor(props) {
super(props);
}
componentDidMount() ... |
lib/cli/test/snapshots/react_native/storybook/stories/Button/index.ios.js | rhalff/storybook | import React from 'react';
import PropTypes from 'prop-types';
import { TouchableHighlight } from 'react-native';
export default function Button(props) {
return <TouchableHighlight onPress={props.onPress}>{props.children}</TouchableHighlight>;
}
Button.defaultProps = {
children: null,
onPress: () => {},
};
But... |
client/src/components/Loader.js | redcom/pinstery | // @flow
import React from 'react';
import styled from 'styled-components';
const LoaderBox = styled.div`
background: url('../../assets/loader.svg');
background-repeat: no-repeat;
height: ${props => (props.type === 'small' ? '100px' : 'calc(50vh)')};
background-position: center center;
`;
type Props = {
lo... |
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js | liruqi/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class UserProfileContactInfo extends React.Component {
static propTypes = {
phones: React.PropTypes.arr... |
react/features/large-video/components/LargeVideoBackground.web.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import { connect } from '../../base/redux';
import { shouldDisplayTileView } from '../../video-layout';
/**
* Constants to describe the dimensions of the video. Landscape videos
* are wider than they are taller and portrait videos are taller than they
* are wider... |
front/app/app/rh-components/rh-Form.js | nudoru/React-Starter-2-app | import React from 'react';
import throttle from 'lodash/throttle';
import { getNextId } from '../utils/ElementIDCreator';
const NOOP = () => {
};
const ONCHANGE_THROTTLE = 500;
//------------------------------------------------------------------------------
// Groups
//-----------------------------------------------... |
src/components/Project/ProjectDetails.js | taiwoabegunde/developersmap | /**
* Created by Raphson on 10/8/16.
*/
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';
import ProjectActions from '../../actions/ProjectActions';
import ProjectStore from '../../stores/ProjectStore';
import NavBar from '../NavBar/index';
import Footer ... |
app/jsx/gradebook/default_gradebook/components/content-filters/SectionFilter.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... |
dispatch/static/manager/src/js/pages/Pages/PageIndexPage.js | ubyssey/dispatch | import React from 'react'
import { connect } from 'react-redux'
import ItemIndexPage from '../ItemIndexPage'
import pagesActions from '../../actions/PagesActions'
import { humanizeDatetime } from '../../util/helpers'
const mapStateToProps = (state) => {
return {
token: state.app.auth.token,
listItems: state... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-router/4.1.1/es/Redirect.js | JamieMason/npm-cache-benchmark | 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/daypicker/DayPicker.js | buildo/react-datepicker | import React from 'react';
import t from 'tcomb';
import { props } from 'tcomb-react';
import View from 'react-flexview';
import { pure, skinnable } from '../utils';
import { Value, Mode, MomentDate } from '../utils/model';
import DayPickerTop from './DayPickerTop';
import DayPickerBody from './DayPickerBody';
@pure
@... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | maxipad37/maxipad37.github.io | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/layout/Sidebar.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactTooltip from 'react-tooltip';
import { defineMessages, intlShape } from 'react-intl';
import { observer } from 'mobx-react';
import Tabbar from '../services/tabs/Tabbar';
import { ctrlKey } from '../../environment';
import { GA_C... |
src/svg-icons/av/featured-video.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFeaturedVideo = (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-2zm-9 9H3V5h9v7z"/>
</SvgIcon>
);
AvFeaturedVideo = pure(AvFeaturedVideo)... |
app/components/AddMemberModal/index.js | projectcashmere/admin | /**
*
* AddMemberModal
*
*/
import React from 'react';
import Modal from 'react-modal';
import colors from 'themes/colors';
import { FormattedMessage } from 'react-intl';
import { reduxForm, Field } from 'redux-form/immutable';
import CrosshairIcon from 'react-icons/lib/md/add';
import TrashIcon from 'react-icons/... |
docs/app/Examples/addons/TransitionablePortal/Usage/index.js | shengnian/shengnian-ui-react | import React from 'react'
import { Link } from 'react-router-dom'
import { Message } from 'shengnian-ui-react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const TransitionablePortalUsageExamples = () => (... |
src/media/js/site/components/subnav.js | diox/marketplace-content-tools | import React from 'react';
export class Subnav extends React.Component {
render() {
return (
<nav className="page--subnav">
<ul>
{this.props.children}
</ul>
</nav>
);
}
}
|
src/table-head.js | knledg/react-blur-admin | import React from 'react';
import cx from 'classnames';
export class TableHead extends React.Component {
static propTypes = {
blackMutedBackground: React.PropTypes.bool,
}
static defaultProps = {
blackMutedBackground: true,
}
render() {
const classes = cx({
'black-muted-bg': this.props.b... |
src/product/MobileProductContainer.js | eldavojohn/myRetail-practice-app | import React from 'react'
import { connect } from 'react-redux'
import { addToCart, pickupInStore, share, addToRegistry, addToList } from '../actions/ProductActions'
import MobileProduct from './MobileProduct'
let MobileProductContainer = ({ product, dispatch }) => {
return (
<MobileProduct
product={... |
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js | skarnecki/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
slide: {
... |
spec/components/checkbox.js | soyjavi/react-toolbox | import React from 'react';
import Checkbox from '../../components/checkbox';
class CheckboxTest extends React.Component {
state = {
checkbox_1: true,
checkbox_2: false,
checkbox_3: true
};
handleChange = (field, value) => {
this.setState({...this.state, [field]: value});
};
handleFocus = ()... |
new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/WizardSplash.js | naconner/lamassu-server | import { makeStyles } from '@material-ui/core'
import React from 'react'
import { Button } from 'src/components/buttons'
import { H1, P } from 'src/components/typography'
import { ReactComponent as CustomReqLogo } from 'src/styling/icons/compliance/custom-requirement.svg'
const styles = {
logo: {
maxHeight: 150... |
packages/material-ui-icons/src/SettingsBluetooth.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SettingsBluetooth = props =>
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4... |
src/components/summary_title.js | dbaronov/weather-widget-react-noredux | import React, { Component } from 'react';
class SummaryTitle extends Component {
render() {
return (
<div className="weather-widget__results-title col-lg-12">
<div className="weather-widget__results-city">
<h2> Weather in London as follows: </h2>
... |
packages/material-ui-icons/src/SignalWifi2BarLockRounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1 3.12 0l1.94-2.42V14.5z" /><path d="M15.5 1... |
app/components/SetNewPassword.js | klpdotorg/tada-frontend | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { confirmResetPassword } from '../actions';
import { routeActions, push } from 'react-router-redux';
import klplogo from '../css/images/KLP_logo.png';
class SetNewPasswordUI extends Component {
... |
addons/knobs/src/components/types/Color.js | jribeiro/storybook | import { document } from 'global';
import PropTypes from 'prop-types';
import React from 'react';
import { SketchPicker } from 'react-color';
const conditionalRender = (condition, positive, negative) => (condition ? positive() : negative());
const styles = {
swatch: {
background: '#fff',
borderRadius: '1px'... |
src/documentation/Colours/ColourList.js | wfp/ui | import React from 'react';
import { List, ListItem } from '../../components/List';
import Tooltip from '../../components/Tooltip';
import { Module, ModuleBody } from '../../components/Module';
import colors from '../../globals/data/colors';
import { hex, score } from 'wcag-contrast';
import './colours.scss';
export c... |
src/svg-icons/image/grain.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGrain = (props) => (
<SvgIcon {...props}>
<path d="M10 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12-8c1.... |
src/inputs/CurrencySelectors.js | gianjohansen/currency-conversion | import React from 'react';
import { findDOMNode } from 'react-dom';
import ReactSuperSelect from 'react-super-select';
import classNames from 'classnames';
require('../../vendor/react-super-select/react-super-select.scss');
require('../../www/assets/css/inputs/currency-selectors.scss');
var currencyList = require('js... |
packages/slate-react/src/components/text.js | 6174/slate |
import Debug from 'debug'
import ImmutableTypes from 'react-immutable-proptypes'
import React from 'react'
import SlateTypes from 'slate-prop-types'
import Types from 'prop-types'
import Leaf from './leaf'
/**
* Debug.
*
* @type {Function}
*/
const debug = Debug('slate:node')
/**
* Text.
*
* @type {Componen... |
envkey-react/src/components/assoc_manager/assoc_row/invite_actions.js | envkey/envkey-app | import React from 'react'
import h from "lib/ui/hyperscript_with_helpers"
import SmallLoader from "components/shared/small_loader"
export default function ({
assoc: {id: userId, relation: {accessStatus: {status}}},
revokeInvite,
regenInvite,
isRevokingInviteByUserId,
isRegeneratingInviteByUserId
}){
const
... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Table.js | mccun934/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table as PFtable } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import classNames from 'classnames';
import { createSubscriptionsTableSchema } from '../SubscriptionsTableSchema';
import { Table as ForemanTabl... |
src/svg-icons/action/alarm-on.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOn = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0... |
src/common/components/PrimaryNav/PrimaryNav.js | BeMacized/GrimoireWeb | // @Flow
import React from 'react'
import PropTypes from 'prop-types'
import { NavLink as RRNavLink } from 'react-router-dom'
import { Container, Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, NavLink, Button } from 'reactstrap'
import styled from 'styled-components'
import MediaQuery from 'react-responsiv... |
src/server.js | fkn/ndo | /**
* 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 path from 'path';
import fs from 'fs';
import { ... |
src/server/SSR/html.js | wearepush/redux-starter | /* eslint-disable react/no-danger */
import React from 'react';
import { object, node } from 'prop-types';
import serialize from 'serialize-javascript';
import { helmetContext } from './createSSR';
import { isEnvProduction } from '../../../config/consts';
const Html = ({ assets, component, store }) => {
const initia... |
client/src/component/common/link-button.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import * as UU5 from 'uu5g03';
import {browserHistory} from 'react-router';
import Utils from "../../utils.js";
import './link-button.css';
const LinkButton = React.createClass({
//@@viewOn:mixins
mixins: [
UU5.Common.BaseMixin,
UU5.Common.ElementaryMixin,
U... |
docs/src/components/usage-example.js | ridixcr/nuclear-js | import React from 'react'
import { Reactor, Store, toImmutable } from 'nuclear-js'
import Code from './code'
const storeCode = `import { Reactor, Store, toImmutable } from 'nuclear-js'
import React from 'react'
const reactor = new Reactor({ debug: true });
reactor.registerStores({
typeFilter: Store({
getInitia... |
server/index-view.js | phyllisstein/shannon.camp | import {createServerRenderContext, ServerRouter} from 'react-router';
import _ from 'lodash/fp';
import {App} from 'public/server';
import {AppContainer} from 'react-hot-loader';
import co from 'co';
import React from 'react';
import {Readable} from 'stream';
import {readFileSync} from 'fs';
import {renderToString} fro... |
client/modules/SharedComponents/Security.js | tranphong001/BIGVN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import VIP from './VIP';
import Adv from './Adv';
import { fetchCategories, setVisibleBlog, setPageHeader } from '../App/AppActions';
import { getId, getCategories, getBanners, getTopics, getVipAll } fro... |
src/scenes/home/resetPassword/setPassword/setPassword.js | tal87/operationcode_frontend | import React, { Component } from 'react';
import axios from 'axios';
import { Redirect } from 'react-router-dom';
import PropTypes from 'prop-types';
import Form from 'shared/components/form/form';
import FormPassword from 'shared/components/form/formPassword/formPassword';
import FormButton from 'shared/components/for... |
src/App.js | JamieCrisman/maru | import React, { Component } from 'react';
import './App.css';
import CircleOfFifths from './CircleOfFifths.js';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<h2>Circle of Fifths</h2>
</div>
<CircleOfFifths />
... |
dashboard/src/components/dashboard/StatusPanel.js | leapfrogtechnology/chill | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { withStatusInfo } from '../hoc/status';
import * as websocket from '../../services/websocket';
import * as statusService from '../../services/status';
import Panel from '../commons/Panel';
import ServiceList from './ServiceList';
i... |
src/universalRouter.js | davidmarkclements/react-redux-universal-hot-example | import React from 'react';
import Router from 'react-router';
import createRoutes from './views/createRoutes';
import { Provider } from 'react-redux';
const getFetchData = (component = {}) => {
return component.WrappedComponent ?
getFetchData(component.WrappedComponent) :
component.fetchData;
};
export func... |
actor-apps/app-web/src/app/components/ToolbarSection.react.js | gaolichuang/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import { IntlMixin } from 'react-intl';
import classnames from 'classnames';
import ActivityActionCreators from 'actions/ActivityActionCreators';
import DialogStore from 'stores/DialogStore';
import ActivityStore from 'stores/ActivityStore';
const getS... |
test/fixtures/mjs-support/src/index.js | Timer/create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
examples/counter/containers/CounterApp.js | wmertens/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
src/index.js | chisbug/Webpack2-For-React | /*
入口文件
*/
import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, hashHistory } from 'react-router'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import message from './reducers'
import { sendMsg } from 'Actions'
import { AppContainer } from 'react-hot-loade... |
src/workflows/nwchem/nwchem-exec/components/root/NewSimulation.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import { FileUploadEntry } from '../../../../../panels/ItemEditor';
// ----------------------------------------------------------------------------
export default function newSimulation(props) {
return (
<div>
<FileUploadEntry
name="g... |
src/routes/contact/index.js | tlin108/chaf | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/index.js | Jcook894/Blog_App | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
import promise from 'redux-promise';
import reducers from './reducers';
import routes from './routes';
const... |
src/views/Dashboard.js | DavidSGK/plan-me | import React, { Component } from 'react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import Paper from 'material-ui/Paper';
import ContentAdd from 'material-ui/svg-icons/content/add';
import { merge, slice } from 'ramda';
import AddEvent from '../components/AddEvent';
import { connect } from '... |
src/parser/warrior/fury/modules/azerite/UnbridledFerocity.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import StatTracker from 'parser/shared/modules/StatTracker';
import { formatNumber, formatPercentage, formatThousands } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import ca... |
src/routes/content/index.js | samerce/lampshade | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import fetch from '../../core/f... |
client/src/components/dashboard/profile/utils/trash-look-seven.js | mikelearning91/seeme-starter | import React, { Component } from 'react';
import Modal from 'react-modal';
import MdDelete from 'react-icons/lib/md/delete';
const cookie = require('react-cookie')
const axios = require('axios');
class TrashLookSeven extends React.Component {
constructor(props) {
super(props);
this.trashLook = this... |
app/components/Loading/Loading.js | RcKeller/STF-Refresh | import React from 'react'
import PropTypes from 'prop-types'
// import _ from 'lodash'
import { Spin, Alert } from 'antd'
class Loading extends React.Component {
static propTypes = {
// Render goes through a truthiness check
render: PropTypes.any.isRequired,
// Component title and loading prom... |
src/app/components/player-visual.js | pashist/soundcloud-like-player | import React from 'react';
import PlayerArtwork from './player-artwork';
import PlayerButton from './player-button';
import PlayerTitle from './player-title';
import MediaButtons from './media-buttons';
import PlayerWaveForm from './player-waveform';
import SharePanel from './share-panel';
import TracksTotal from './tr... |
src/components/tabs/Tabs.js | edgemesh/emui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM, { findDOMNode as $ } from 'react-dom';
import Radium from 'radium';
import { colors } from '../../utils/colors';
import Paper from '../paper/Paper';
import Icon from '../icon/Icon';
import View from '../view/View';
@Radium
e... |
src/modules/etfms-profile/components/FlightProfile/Trend.js | devteamreims/4me.react | import React, { Component } from 'react';
import TrendUp from 'material-ui/svg-icons/action/trending-up';
import TrendFlat from 'material-ui/svg-icons/action/trending-flat';
import TrendDown from 'material-ui/svg-icons/action/trending-down';
import {
blue500,
green500,
} from 'material-ui/styles/colors';
const c... |
examples/query-params/app.js | gdi2290/react-router | import React from 'react';
import HashHistory from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
retur... |
stories/LogoTitle/LogoTitle.js | medialab/hyphe-browser | import './LogoTitle.styl'
import React from 'react'
const LogoTitle = () => {
return (
<h1 className="logo-title">
<img src={ require('../../app/images/logos/hyphe.png') } />
<span>Hyphe <i>browser</i></span>
</h1>
)
}
export default LogoTitle |
node_modules/react-router/es/Redirect.js | AngeliaGong/AngeliaGong.github.io | 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 &... |
packages/core/admin/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/RequiredSign/index.js | wistityhq/strapi | import React from 'react';
import styled from 'styled-components';
const Required = styled.span`
color: ${({ theme }) => theme.colors.danger700};
padding-left: ${({ theme }) => theme.spaces[1]}px;
`;
const RequiredSign = () => <Required>*</Required>;
export default RequiredSign;
|
client/js/components/Navbar.js | micahp0506/jeeps | 'use strict';
import React from 'react';
import alt from '../utils/alt';
import {Route, Router, browserHistory, Link} from 'react-router';
import LoginStore from '../stores/LoginStore';
import SearchStore from '../stores/SearchStore';
import LoginActions from '../actions/LoginActions';
import MyPostsActions from '../... |
src/Components/CoverPage.js | himanshu8426/himanshu8426.github.io | import React from 'react'
import { Header, Image, Container } from 'semantic-ui-react'
import photo from '../images/pp.jpg'
function CoverPage() {
return (
<Container style={{padding: "20px", zIndex: "1"}}>
<div >
<Header as='h2'>
<Image circular src={photo} ... |
android/rn/src/app.js | skyujilong/native-rn | /**
* 入口文件
*/
import React from 'react';
import ReduxThunk from 'redux-thunk';
import {createStore,applyMiddleware} from 'redux';
import Router from './router';
import reducerM from './reducerM';
import {Provider} from 'react-redux';
import {View,Text} from 'react-native';
// let store = createStore(reducerM(),apply... |
saga/P/shopping-cart/src/components/ProductItem.js | imuntil/React | import React from 'react'
import PropTypes from 'prop-types'
import Product from './Product'
function ProductItem({product, onAddToCartClicked}) {
const addToCartAction = (
<button
onClick={onAddToCartClicked}
disabled={product.inventory > 0 ? '' : 'disabled'}
>
{product.inventory > 0 ? 'Ad... |
CompositeUi/src/views/composition/Projects.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import {Link} from 'react-router';
import... |
src/svg-icons/image/leak-add.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakAdd = (props) => (
<SvgIcon {...props}>
<path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-... |
client/src/containers/video-container.js | kat09kat09/GigRTC | import React, { Component } from 'react';
import StreamButtons from '../components/streamButtons';
import {connect} from 'react-redux';
import AuthenticateFacebook from '../components/auth/authenticatePage'
export class VideoContainer extends Component {
render() {
return (
<div id="videoBig... |
app/components/LoadingIndicator/index.js | w01fgang/react-boilerplate | import React from 'react';
import styles from './styles.css';
function LoadingIndicator() {
return (
<div>
<div className={styles['sk-fading-circle']}>
<div className={styles.skCircle}></div>
<div className={styles['sk-circle2']}></div>
<div className={styles['sk-circle3']}></div>
... |
app/containers/App.js | demory/marta-menu | import React from 'react'
import { connect } from 'react-redux'
import NavigationBar from '../components/NavigationBar'
import ProjectPane from '../components/ProjectPane'
import BudgetPane from '../components/BudgetPane'
import MapPane from '../components/MapPane'
import WelcomeModal from '../components/WelcomeModal'... |
src/svg-icons/action/dns.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDns = (props) => (
<SvgIcon {...props}>
<path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v... |
pages/events.js | Slava/zbt-website | import React from 'react'
import { Link } from 'react-router'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
import {
Row,
Splash,
Split,
} from './_sharedComponents'
import { prefixLink } from '../utils/urls.js'
import CoverImg from '../static/events-cover.jpg';
import DinnerIm... |
lib/components/Spike.js | Jeff-Duke/turing-fridays | import React from 'react';
import firebase from '../firebase';
import moment from 'moment';
const Spike = ({ spike, createSpike, updateCount, toggleForm, user, attending }, key, admin ) => {
if (spike) {
return (
<section className='SpikeCard' key={key}>
<p>Title: <span>{spike.title}</span></p>
... |
src/app/views/login.js | webcoding/soapee-ui | import React from 'react';
import { Link, Navigation, State } from 'react-router';
import Reflux from 'reflux';
import MediaSigninButtons from 'components/mediaSigninButtons';
import LocalLoginForm from 'components/localLoginForm';
import authStore from 'stores/auth';
export default React.createClass( {
mixins:... |
js/components/donut.js | monetario/web |
import React from 'react';
import Datetime from 'react-datetime';
import Formsy from 'formsy-react';
import Moment from 'moment';
const Donut = React.createClass({
getDefaultProps() {
return {
};
},
componentDidMount() {
Morris.Donut({
element: this.props.name,
data: this.props.data,
... |
src/components/viewer.js | DictumMortuum/dictum-dev | 'use strict';
import React from 'react';
import Doc from './doc';
import Paper from 'material-ui/Paper';
import Type from './type';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { Toolbar, ToolbarGroup } from 'material-ui/Toolbar';
import { SearchText } from './text';
import ... |
app/javascript/mastodon/components/status_list.js | riku6460/chikuwagoddon | import { debounce } from 'lodash';
import React from 'react';
import { FormattedMessage } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-p... |
src/components/HeaderPanel.js | olontsev/react-redux-bootcamp | import React from 'react';
import { Navbar, FormGroup, FormControl, Checkbox, Button, InputGroup, Glyphicon } from 'react-bootstrap';
class HeaderPanel extends React.Component {
render() {
return (
<Navbar>
<Navbar.Header>
<Navbar.Brand>
ToDo List
</Navbar.Brand>
<Navbar.Toggle... |
app/react-icons/fa/wpforms.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaWpforms extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m14.5 20.3v2.9h-5.6v-2.9h5.6z m0-5.7v2.9h-5.6v-2.9h5.6z m16.9 11.4v2.9h-7.6v... |
client/widget.js | dmichel76/epics.js | import React from 'react'
import ReactDOM from 'react-dom'
import EPICSCanvas from './epicscanvas.js'
import EPICSComponent from './epicscomponent.js'
module.exports = class Widget extends EPICSCcomponent {
constructor(props) {
super(props)
// property should be defined like so
this.myproperty = (ty... |
src/components/InvalidSub.js | houkah26/reddit-clone | import React from 'react';
const InvalidSub = () => (
<p className="invalid-sub">subreddit not found</p>
);
export default InvalidSub; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.