path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/video_detail.js | vishalpandey2192/React | import React from 'react';
const VideoDetail = ({video}) => {
if(!video){
return <div>Loading...</div>
}
const videoId = video.id.videoId;
const url = "https://www.youtube.com/embed/"+ videoId;
return (
<div className="video-detail col-md-8">
<div className="embed-resp... |
react-vr/v3-forest/index.vr.js | nikgraf/webvr-experiments | import React from 'react';
import {
AppRegistry,
asset,
StyleSheet,
Pano,
View,
Model,
AmbientLight,
PointLight,
DirectionalLight,
} from 'react-vr';
import Forest from './components/Forest';
import Tree from './components/Tree';
export default class HelloWorld extends React.Component {
render() {
... |
src/js/components/icons/base/StreetView.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
docs/src/app/components/pages/get-started/ServerRendering.js | pradel/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import serverRenderingText from './serverRendering.md';
const ServerRendering = () => (
<div>
<Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} />
<MarkdownElemen... |
src/svg-icons/action/visibility.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibility = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-... |
nailgun/static/views/cluster_page_tabs/nodes_tab_screens/cluster_nodes_screen.js | eayunstack/fuel-web | /*
* Copyright 2014 Mirantis, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
src/svg-icons/editor/format-color-reset.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatColorReset = (props) => (
<SvgIcon {...props}>
<path d="M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31zm-.88 3.12L12.5 12.5 5.27 5.27 4 6.55l3.32 3.32C6.55 11.32 6 12... |
src/app/components/team/TeamTags/SaveTag.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { commitMutation, graphql } from 'react-relay/compat';
import { Store } from 'react-relay/classic';
import { FormattedMessage } from 'react-intl';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typogr... |
components/GMap/GMap.js | jamesrf/weddingwebsite | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
client/js/components/MessageList.js | bmacheski/tech-connect | 'use strict';
import React from 'react';
import MessageListActions from '../actions/MessageListActions';
import MessageListStore from '../stores/MessageListStore';
import UserStore from '../stores/UserStore';
import MessageListItem from './MessageListItem';
import Loading from './Loading';
import cookie from 'react-co... |
js/components/layout/customRow.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Button, Icon, Left, Right, Body } from 'native-base';
import { Grid, Row } from 'react-native-easy-grid';
import { Actions } from 'react-n... |
app/src/Login.js | subnotes/gemini | // import node packages
import React from 'react';
import styled from 'styled-components'
const LoginContainer = styled.div`
display:flex;
justify-content: center;
flex-direction: column;
align-items: center;
margin: 90px;
`
const Title = styled.h1`
font-weight: bold;
flex: 1;
align-self: flex-end;
`... |
app/App.js | webbushka/github-notetaker | 'use strict';
import React from 'react';
import Router from 'react-router';
import routes from './config/routes';
Router.run(routes, Router.HistoryLocation, (Handler) => {
React.render(
// jshint ignore:start
<Handler/>,
// jshint ignore:end
document.getElementById('app'));
});
|
docs/src/examples/elements/Input/Variations/InputExampleActionLabeledButton.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleActionLabeledButton = () => (
<Input
action={{
color: 'teal',
labelPosition: 'right',
icon: 'copy',
content: 'Copy',
}}
defaultValue='http://ww.short.url/c0opq'
/>
)
export default InputExampl... |
src/modules/Map.js | ted-humpal/pensive | //TODO the esthetic need is pretty high, attempt to create an attractive Africa and see how it looks
//TODO output the entire animation construct
//TODO start animation
//TODO reset to an animation stage
import React from 'react';
import Arboreal from 'arboreal';
let TIMESTEP = 100;
let ANIMATE = true;
ANIMATE = fals... |
packages/icons/src/start.js | geek/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
stories/ButtonSelection/index.js | skyiea/wix-style-react | import React from 'react';
import {storiesOf} from '@storybook/react';
import Markdown from '../utils/Components/Markdown';
import CodeExample from '../utils/Components/CodeExample';
import TabbedView from '../utils/Components/TabbedView';
import Readme from '../../src/ButtonSelection/README.md';
import ReadmeTestKit f... |
addons/themes/minimaxing/layouts/Blog.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Blog = React.createClass({
componentDidMount(){
require('../assets/css/main.c... |
src/svg-icons/device/battery-60.js | manchesergit/material-ui | 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/Router.js | sloppylopez/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
site/src/components/nav.js | ajfisher/ajfisher.me | import React from 'react';
import styled from 'styled-components';
import { Link } from 'gatsby';
import { OutboundLink } from 'gatsby-plugin-google-analytics';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faTwitter, faInstagram, faGithub } from '@fortawesome/free-brands-svg-icons';
impo... |
app/index.js | defektive/photo-thing | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
import './app.css';
const store = configureStore();
render(
<Provider store={store}>
<R... |
src/svg-icons/editor/mode-edit.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorModeEdit = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"... |
source/conversation-steps.js | sandcha/cout-embauche | import React from 'react'
import { percentage, euro } from './formValueTypes.js'
let today = new Date()
let smic_tnd = 338
export default {
// DEFAULTS : These inputs do not exist, but the API needs them
'defaults': {
adapt: () => ({
//allegement_fillon_mode_recouvrement: 'anticipe_regularisation_fin_de_perio... |
src/routes.js | annamaz/pokedex | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './components/App';
import HomePage from './components/pages/HomePage';
import AboutPage from './components/pages/AboutPage';
import NotFoundPage from './components/pages/NotFoundPage';
import PokemonsPage from './components/pag... |
app/javascript/mastodon/features/ui/components/embed_modal.js | imas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
import api from 'mastodon/api';
import IconButton from 'mastodon/components/icon_button';
const messages = defin... |
EventEmitter.Client/src/main.js | Stelmashenko-A/EventEmitter | import React from 'react'
import ReactDOM from 'react-dom'
import 'react-mdl/extra/material.css'
import 'react-mdl/extra/css/material.blue_grey-green.min.css'
import 'react-mdl/extra/material.js'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
import { connect } from '... |
app/javascript/mastodon/components/setting_text.js | blackle/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
src/containers/Map.js | IgorSzyporyn/wwiionline-webmap | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import MapHOC from '../HOC/MapHOC';
import * as uiActions from '../actions/ui';
const handleMapLoad = _map => window._map = _map;
const Map = props => {
const handleMapZoom... |
src/adapter/material/MaterialAdapter.js | flexicious/react-redux-datagrid |
import { Constants, ToolbarAction, TypedObject } from '../../js/library'
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import MaterialExportOptionsView from './MaterialExportOptionsView'
i... |
src/Glyphicon.js | herojobs/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Glyphicon = React.createClass({
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: React.PropTypes.string,
/**
* An icon name. See e.g. http://getbootstrap.com/components/#glyphicons
*/
glyph: Re... |
app/javascript/mastodon/features/compose/components/upload_form.js | esetomo/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import UploadProgressContainer from '../containers/upload_progress_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import UploadContainer from '../containers/upload_container';
export default class U... |
app/jsx/rubrics/RubricAddCriterionPopover.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/js/pages/VerifyEmailPage.js | stormpath/stormpath-express-react-example | import React from 'react';
import DocumentTitle from 'react-document-title';
import { VerifyEmailView } from 'react-stormpath';
export default class VerifyEmailPage extends React.Component {
render() {
var spToken = this.props.location.query.sptoken;
return (
<DocumentTitle title={`Verify Email`}>
... |
src/js/components/destroyer.js | VitorHP/TI3 | import React from 'react';
export default function Destroyer(props) {
return (
<svg>
<g className="unit destroyer" {...props}>
<g transform="translate(215.3293,12.8199)">
<path d="m -191.04085,-11.319888 0,5.5210908 -5.10452,8.5548247 -0.0665,8.5548235 -1.1682,0.138852 -0.1449,11.730433 ... |
src/svg-icons/communication/call-split.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallSplit = (props) => (
<SvgIcon {...props}>
<path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/>
</SvgIcon>
);
CommunicationCallS... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/CardHeader.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
tag: tagPropType,
className: PropTypes.string,
cssModule: PropTypes.object,
};
const defaultProps = {
tag: 'div'
};
const CardHeader ... |
src/index.js | jide/react-wrapchildren | import React from 'react';
const getDisplayName = Component => Component.displayName || Component.name || 'Component';
export default WrappedComponent => class extends WrappedComponent {
static displayName = `wrapChildren(${getDisplayName(WrappedComponent)})`;
traverse(element) {
console.log(element, element... |
src/components/shared-components/scoreLabel/ScoreLabel.js | ummahusla/Hacker-Reader | import React from 'react';
import { Label } from 'react-bootstrap';
import './ScoreLabel.css';
const ScoreLabel = (props) => {
return (
<Label><i className="fa fa-caret-square-o-up" aria-hidden="true"></i> {props.score}</Label>
);
};
ScoreLabel.propTypes = {
score: React.PropTypes.number
};
export defaul... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/mic.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvMic = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
src/svg-icons/image/leak-remove.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakRemove = (props) => (
<SvgIcon {...props}>
<path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24... |
frontend/node_modules/recharts/demo/component/CustomLineDot.js | justdotJS/rowboat | import React, { Component } from 'react';
export default class Demo extends Component {
static displayName = 'CustomLineDotDemo';
render() {
const { cx, cy, stroke, payload } = this.props;
if (cx !== +cx || cy !== +cy) { return null; }
if (payload.value > 250) {
return (
<svg x={cx - ... |
src/asset-index/AssetIndexPage.js | nuruddeensalihu/binary-next-gen | import React from 'react';
import WebPage from '../containers/WebPage';
import AssetIndexContainer from './AssetIndexContainer';
export default (props) => (
<WebPage>
<AssetIndexContainer {...props} />
</WebPage>
);
|
js/jqwidgets/demos/react/app/bulletchart/defaultfunctionality/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxBulletChart from '../../../jqwidgets-react/react_jqxbulletchart.js';
class App extends React.Component {
render() {
let ranges =
[
{ startValue: 0, endValue: 200, color: '#000000', opacity: 0.5 },
... |
src/widgets/ActivityIndicator.js | airloy/objective | /**
* Created by Layman(http://github.com/anysome) on 16/4/22.
*/
import React from 'react'
import {View, StyleSheet} from 'react-native'
import RootSiblings from 'react-native-root-siblings'
import Spinner from 'react-native-spinkit';
import {colors} from '../views/styles'
import util from '../libs/Util';
const s... |
src/components/extensions/bosses/boss-blocks/overview.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import ExtensionBossImg from "../../../images/adventure-boss";
const Overview = ({extension, wing, boss}) => {
return (
<div className="container__blocks--block-content overview">
<ExtensionBossImg extension={extension} wing={wing.url} boss={bo... |
src/@ui/ModalView/index.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet } from 'react-native';
import FlexedView from '@ui/FlexedView';
import SecondaryNav from '@ui/SecondaryNav';
import { compose, pure, setPropTypes, nest } from 'recompose';
import ModalContainer from './ModalContainer';
const enhance = ... |
ui/app.js | danjac/go-react-seed | import React from 'react';
import Router from 'react-router';
import Routes from './Routes';
import alt from './alt';
const initData = window.initData;
if (initData) {
alt.bootstrap(initData);
}
Router.run(Routes, Router.HistoryLocation, (Handler) => {
React.render(<Handler />, document.body);
});
|
src/svg-icons/image/filter-5.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter5 = (props) => (
<SvgIcon {...props}>
<path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-... |
src/svg-icons/content/content-cut.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCut = (props) => (
<SvgIcon {...props}>
<path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-... |
Project 09 - TutorialSwiper/src/App.js | DCKT/30DaysofReactNative | import '../reactotron.config'
import React from 'react'
import { Provider } from 'react-redux'
import store from './store'
import { StackNavigator } from 'react-navigation'
import Home from './containers/Home'
const Router = StackNavigator({
Home: { screen: Home }
})
export default class App extends React.Componen... |
test/integration/basic/pages/async-props.js | sedubois/next.js | import React from 'react'
export default class AsyncProps extends React.Component {
static async getInitialProps () {
return await fetchData()
}
render () {
return <p>{this.props.name}</p>
}
}
function fetchData () {
const p = new Promise(resolve => {
setTimeout(() => resolve({ name: 'Diego Mil... |
app/jsx/bundles/account_settings.js | venturehive/canvas-lms | /*
* Copyright (C) 2011 - 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... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js | ontruck/create-react-app | /**
* 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, { Component } from 'react';
import PropTypes from 'prop-types';
function* load(limit) {
let i = 1;
while (i <= limit)... |
src/index.js | hummlas/react-redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, connect } = createAll(React);
|
app/javascript/mastodon/features/blocks/index.js | ambition-vietnam/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll-4';
import Column from '../ui/componen... |
client/index.js | vladmokryi/Nation-Forecast | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import { configureStore } from './store';
// Initialize store
const store = configureStore(window.__INITIAL_STATE__);
const mountApp = document.getEleme... |
src/ui/molecules/button-loading/button-loading.js | comicchisel/frontend | import React from 'react'
import PropTypes from 'prop-types'
import { Button, LoadingIndicator } from 'ui/atoms'
export const ButtonLoading = ({ loading, children, ...props }) => (
<Button {...props}>
{loading
? <LoadingIndicator size={6} />
: children}
</Button>
)
ButtonLoading.propTypes = {
... |
src/js/main.js | kukua/dashboard | import _ from 'underscore'
import s from 'underscore.string'
import moment from 'moment-timezone'
import assign from 'es6-object-assign'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk... |
src/index.js | hzburki/innexiv-front-end | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk';
import { BrowserRouter } from 'react-router-dom';
import app from './components/app';
import reducers from './reducers';
cons... |
src/components/Banner/Banner.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
import BannerElement from './BannerElement';
import './Banner.scss';
class Banner extends React.Component {
static Element = BannerElement;
render () {
const { children } = this.props;
return (
<div className='helerm-banner'>
<d... |
app/containers/Root.js | azlyth/redub | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Routes from '../routes';
type RootType = {
store: {},
history: {}
};
export default function Root({ store, history }: RootType) {
return (
<Provider store={store}>
<... |
src/components/Shuttle.js | ev-ui/ev-ui | import React from 'react'
import {render} from 'react-dom'
import styled from 'styled-components'
import Tree from '__public/component/Tree'
import {Button} from 'antd'
const Root=styled.div`
border:1px solid #aaa;
max-width:500px;
&>.content{
display:flex;
flex-direction:row!important;
... |
lib/manager/components/FeedFetchFrequency.js | conveyal/datatools-manager | // @flow
import React from 'react'
import {
DropdownButton
} from 'react-bootstrap'
import {FREQUENCY_INTERVALS} from '../../common/constants'
import MenuItem from '../../common/components/MenuItem'
import {getComponentMessages} from '../../common/util/config'
import type {FetchFrequency} from '../../types'
type P... |
src/svg-icons/av/stop.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvStop = (props) => (
<SvgIcon {...props}>
<path d="M6 6h12v12H6z"/>
</SvgIcon>
);
AvStop = pure(AvStop);
AvStop.displayName = 'AvStop';
AvStop.muiName = 'SvgIcon';
export default AvStop;
|
client/routes/Logs/components/LogsPanel.js | patzj/ims | import React from 'react';
import LogsTable from '../containers/LogsTable';
import { exportLogs } from '../../../actions/logs-action';
export const LogsPanel = () => {
return (
<div className="col-xs-10 col-xs-offset-1">
<h2 className="pull-left"><span className="glyphicon glyphicon-pencil"></s... |
app/App.js | NervosaX/cerebral-website | import React from 'react';
import menu from './menu';
import {Decorator as Cerebral} from 'cerebral-react';
import toPath from './toPath';
import classnames from 'classnames';
@Cerebral({
showOverlay: ['showOverlay'],
displayMenu: ['displayMenu'],
content: ['content'],
subContent: ['subContent'],
videoSrc: [... |
app/user/dashboard/ApplicationsTab.js | sagnikm95/internship-portal | import React from 'react';
import { Card, Container } from 'semantic-ui-react';
import Axios from 'axios';
import PostItem from '../post/PostItem';
import Auth from '../../auth/modules/Auth';
import User from '../../auth/modules/User';
export default class ApplicationsTab extends React.Component {
constructor() {
... |
client/src/app/routes/settings/containers/Students/PreviousSchoolsForm.js | zraees/sms-project | import React from 'react'
import { reset } from 'redux-form'
import axios from 'axios'
import classNames from 'classnames'
import { Field, reduxForm } from 'redux-form'
import WidgetGrid from '../../../../components/widgets/WidgetGrid'
import Datatable from '../../../../components/tables/Datatable'
import {RFField,... |
app/ui/about.js | gon250/personal-web | import React from 'react';
export default React.createClass({
render: function() {
return (
<div className="mdl-grid portfolio-max-width">
<div className="mdl-cell mdl-cell--12-col mdl-card mdl-shadow--4dp">
<div className="mdl-card__title">
... |
index.js | lowsky/spectacle | import React from 'react';
import { render } from 'react-dom';
import Presentation from './example/src';
render(<Presentation/>, document.getElementById('root'));
|
node_modules/redux-devtools-log-monitor/src/LogMonitorEntryAction.js | Maxwelloff/react-football | import React, { Component } from 'react';
import JSONTree from 'react-json-tree';
const styles = {
actionBar: {
paddingTop: 8,
paddingBottom: 7,
paddingLeft: 16
},
payload: {
margin: 0,
overflow: 'auto'
}
};
export default class LogMonitorAction extends Component {
renderPayload(payload)... |
source/app/lib/livestream.js | Vuanjun/meep-toy | import React from 'react';
import css from '../meeptv-style';
import {merge as m} from 'meepworks/styles';
const Livestream = React.createClass({
render: function() {
return (
<div style={css.livestream}>
<LivestreamVideo />
<LivestreamNav />
</div>
);
}
});
const LivestreamVid... |
src/components/wrapper/standalone-modal-decrypt.js | josuerangel/signandencrypt | import React from 'react'
// import 'babel-polyfill';
import ModalDecrypt from '../modal-decrypt/index.jsx';
function renderModalDecrypt(options, container, callback){
let modal = null;
ReactDOM.render(<ModalDecrypt options={options} ref={ _modal => { modal = _modal; }} />, container, callback);
return modal;
}
... |
modules/Route.js | ryardley/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
var { string, bool, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to the... |
app/containers/App.js | experimentalDataAesthetics/play-splom | /* eslint global-require: 0 */
import React from 'react';
import styles from './App.css';
/**
* App is the parent top level component which just wraps the main content.
*/
export default function App({ children }) {
return (
<div className={styles.app}>
{children}
</div>
);
}
|
stories/checkbox.stories.js | isogon/styled-mdl | import React from 'react'
import { storiesOf } from '@storybook/react'
import wrapStory from './decorators/wrapStory'
import Checkbox from '../src/components/checkbox/demos/Checkbox.js'
storiesOf('Checkbox', module)
.addDecorator(wrapStory)
.add('Checkbox', () => <Checkbox />)
|
src/react/LaundrySettings.js | laundree/laundree | // @flow
import React from 'react'
import { Modal, Label, Submit, Meta } from './intl'
import ValueUpdater from './helpers/ValueUpdater'
import { ValidationForm, ValidationElement } from './validation'
import sdk from '../client/sdk'
import { FormattedMessage } from 'react-intl'
import Switch from './Switch'
import typ... |
fixtures/attribute-behavior/src/App.js | ArunTesco/react | import React from 'react';
import {createElement} from 'glamor/react'; // eslint-disable-line
/* @jsx createElement */
import {MultiGrid, AutoSizer} from 'react-virtualized';
import 'react-virtualized/styles.css';
import FileSaver from 'file-saver';
import {
inject as injectErrorOverlay,
uninject as uninjectError... |
client/src/components/Profile/components/DetailAssets.js | verejnedigital/verejne.digital | // @flow
import React from 'react'
import './DetailAssets.css'
import {Table} from 'reactstrap'
import ExternalLink from '../../shared/ExternalLink'
import {branch, compose, withState} from 'recompose'
import {withDataProviders} from 'data-provider/dist/withDataProviders'
import {imageSrcProvider} from '../../../dataPr... |
doc/src/pages/index.js | mapillary/mapillary-js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusauru... |
src/components/AdminDocOrder.js | aurigadl/EnvReactAsk | import React from 'react'
import { Button, Select, Form } from 'antd';
const FormItem = Form.Item;
const ButtonGroup = Button.Group;
const Option = Select.Option;
const AdminDocDate = React.createClass({
render: function () {
const formItemLayout = {
labelCol: {
sm: { span: 6 },
},
... |
app/containers/Home/index.js | rebeccavl/Rebecca-van-Loenen | /*
*
* Home
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import Responsive from 'react-responsive';
import {Link} from "react-router";
import NavBar from "components/NavBar";
import Footer from "components/Footer";
import Notification from "material-ui/svg-icons/notification/live-tv";
export ... |
blueocean-material-icons/src/js/components/svg-icons/hardware/keyboard-tab.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareKeyboardTab = (props) => (
<SvgIcon {...props}>
<path d="M11.59 7.41L15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6-6-6-1.41 1.41zM20 6v12h2V6h-2z"/>
</SvgIcon>
);
HardwareKeyboardTab.displayName = 'HardwareKeyboardTab';
HardwareKeyboardTab... |
src/join.js | TJCU-Dev/tjcu-site-frontend | import React from 'react';
import { Router, Route, Link, browserHistory, hashHistory, IndexLink, IndexRoute } from 'react-router'
import Snackbar from 'material-ui/Snackbar';
import {grey200, grey50, green700,grey800} from 'material-ui/styles/colors';
import TextField from 'material-ui/TextField';
import RaisedButton f... |
js/jqwidgets/jqwidgets-react/react_jqxtabs.js | luissancheza/sice | /*
jQWidgets v5.3.2 (2017-Sep)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxTabs extends React.Component {
componentDidMount() {
let options = this.manageAttri... |
app/javascript/mastodon/features/ui/components/media_modal.js | hyuki0000/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import { defineMessages, injectIntl } from 'react-intl';
import... |
src/routes.js | merrettr/school-ui | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import AppContainer from './containers/AppContainer';
import LoginPage from './containers/LoginPage';
import AcceptInvitePage from './containers/AcceptInvitePage';
import StudentPage from './containers/StudentPage';
import BehaviourCategoryPag... |
app/javascript/mastodon/features/status/components/detailed_status.js | NS-Kazuki/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... |
react-flux-mui/js/material-ui/src/svg-icons/editor/format-align-justify.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignJustify = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignJustify = pure(EditorFormatAl... |
src/Table.js | zanjs/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
src/utils/createContextWrapper.js | modulexcite/react-bootstrap | import React from 'react';
/**
* Creates new trigger class that injects context into overlay.
*/
export default function createContextWrapper(Trigger, propName) {
return function (contextTypes) {
class ContextWrapper extends React.Component {
getChildContext() {
return this.props.context;
}... |
examples/src/TrackLinks/TrackLinks.js | vezetvsem/react-autosuggest | import React, { Component } from 'react';
export default class TrackLinks extends Component {
componentDidMount() {
if (typeof analytics !== 'object') {
return;
}
const links = this.refs.children.querySelectorAll('a');
const linksCount = links.length;
for (let i = 0; i < linksCount; i++) ... |
src/components/Note/NoteItem.js | josedigital/koala-app | import React from 'react'
export default class NoteItem extends React.Component {
render () {
return (
<div>
<p>Category = {this.props.note.category}</p>
<p>The Note = {this.props.note.noteText}</p>
<hr />
</div>
)
}
} |
server/client/src/components/App.js | gsarpy/campaigner | import React, { Component } from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
import { connect } from 'react-redux';
import * as actions from '../actions';
import Header from './Header';
import Landing from './Landing';
import Dashboard from './Dashboard';
import SurveyNew from './surveys/SurveyNe... |
client/Pages/Locations.js | codybarr/GoMobileCT | import React from 'react';
import Navbar from '../components/Navbar';
import MapContainer from '../components/MapContainer';
export default class Locations extends React.Component {
render() {
return (
<div>
<Navbar />
<MapContainer />
</div>
);
}
}
|
src/components/grids/Decade/index.js | WEACOMRU/react-plain-calendar | import React from 'react'
import PropTypes from 'prop-types'
import ViewMode from '~constants/ViewMode'
const Decade = props => {
const {
theme,
date,
activeDate,
changeMode,
renderYearEntry
} = props
activeDate.setMonth(0, 1)
const activeTime = activeDate.getTime()
let year = date.getF... |
docs/src/pages/demos/snackbars/FabIntegrationSnackbar.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import IconButton from 'material-ui/IconButton';
import MenuIcon from '@material-ui/ico... |
src/client/components/Favorite/index.js | mweslander/veery | // Imports
import React from 'react';
// CSS
import './index.scss';
/*
Favorite
<Favorite/>
*/
function Favorite() {
return (
<div className="c-favorite">
<svg width="24px" height="23px" viewBox="0 0 24 23">
<g id="Welcome" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.