path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
node_modules/react-bootstrap/es/Alert.js | Technaesthetic/ua-tools | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
src/svg-icons/social/notifications.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotifications = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 ... |
src/routes/error/ErrorPage.js | 24v/player-sankey | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/client/index.js | afazio/pixi-prime-viewer | import React from 'react';
import { Provider } from 'react-redux';
import { render } from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import { combineReducers } from 'redux-immutablejs';
import reducers from 'reducers';
im... |
examples/async/index.js | tthew/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
src/components/RequestType.js | KozlovDmitriy/Pos.Hierarchy.Net | import React from 'react'
import PropTypes from 'prop-types'
const lang = {
'16': 'STATUS',
'32': 'DOWNLOAD',
'48': 'UPLOAD'
}
/**
* Виджет для отрисовки типа реквеста в зависимости от кода
* @param {[type]} { code } [description]
* @return {[type]} [description]
*/
const RequestType = ({ code }... |
src/svg-icons/action/bookmark.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBookmark = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionBookmark = pure(ActionBookmark);
ActionBookmark.displayName = 'Ac... |
docs/src/NotFoundPage.js | lo1tuma/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const NotFoundPage = React.createClass({
render() {
return (
<div>
<NavMain activePage='' />
<PageHeader
title='404'
subT... |
app/components/Stats.js | csreyes/TLCJournal | import React from 'react';
import StatsStore from '../stores/StatsStore'
import StatsActions from '../actions/StatsActions';
class Stats extends React.Component {
constructor(props) {
super(props);
this.state = StatsStore.getState();
this.onChange = this.onChange.bind(this);
}
componentDidMount() {
... |
node_modules/react-bootstrap/es/Breadcrumb.js | vietvd88/developer-crawler | 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 ... |
app/js/pages/Page1.js | amazeui/react-starter-kit | import React from 'react';
import {
Container,
Input,
FormGroup,
ButtonToolbar,
} from 'amazeui-react';
class Page1 extends React.Component {
render() {
return (
<Container className="am-padding-vertical-lg">
<h2>页面 1</h2>
<hr />
<form className="am-form" target="_blank">
... |
src/App.js | stjanis/simple-redux | import React from 'react';
import ItemList from './components/ItemList';
const App = () => <ItemList />;
export default App; |
src/index.js | szymonkaliski/SDF-UI | /* global firebase */
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import thunk from 'redux-thunk';
import { connect, Provider } from 'react-redux';
import { createStore, applyMiddleware, bindActionCreators } from 'redux';
import get from 'lodash.get';
import querystring from 'querystr... |
src/components/pages/home.js | xavier-besson/react-playground | import React from 'react';
import Page from 'components/page';
import Section from 'components/ui/section';
import Title from 'components/ui/title';
/**
* @class HomePage
* @extends Page
*/
class HomePage extends Page {
/**
* Meta properties that will be injected in the page
* @type {Object}
*/
meta = {
... |
app/components/Devices/ScanMethodBtn.js | TheCbac/MICA-Desktop | // @flow
/* **********************************************************
* File: components/Devices/ScanMethodBtn.js
*
* Brief: Select the scan method based on this button
*
* Author: Craig Cheney
*
* 2017.09.25 CC - Document Created
*
********************************************************* */
import React, { Component... |
examples/conversation-custom-adapter/components/App.js | cef62/react-pubsub | import React, { Component } from 'react';
import { createPubSub, PubSubProvider } from 'react-pubsub';
import createPostalAdapter from '../adapters/createPostalAdapter';
import ConnectedUser from './ConnectedUser';
import Conversation from './Conversation';
import User from './User';
const adapter = createPostalAdapte... |
src/components/pages/Home.js | migueliriano/react-anime-project | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Header } from 'style/base';
import Logo from 'components/modules/Logo';
import AnimeGrid from 'components/modules/AnimeGrid';
const HomePageContainer = styled.div``;
const Home = (props) => {
const { ani... |
src/client.js | gregsabo/beanstalk-tractor-trailer | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
imp... |
react/features/device-selection/components/DeviceSelector.web.js | KalinduDN/kalindudn.github.io | import AKDropdownMenu from '@atlaskit/dropdown-menu';
import ExpandIcon from '@atlaskit/icon/glyph/expand';
import React, { Component } from 'react';
import { translate } from '../../base/i18n';
/**
* React component for selecting a device from a select element. Wraps
* AKDropdownMenu with device selection specific... |
services/web/client/components/header.js | apparatus/mu-app | 'use strict'
import React from 'react'
import { pushPath } from 'redux-simple-router'
export const Header = React.createClass({
propTypes: {
dispatch: React.PropTypes.func.isRequired,
login: React.PropTypes.object.isRequired,
routing: React.PropTypes.object.isRequired
},
handleLogIn() {
const {... |
src/views/RegisterView.js | mbarth/user-auth-react-redux-example | import React from 'react';
import ReactDOM from 'react-dom';
import linkedState from 'react-link';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import * as actionCreators from '../actions';
export class RegisterView extends React.Component {
componentDidMount() {
ReactDOM... |
src/Progress/Bar.js | fengshanjian/react-native-komect-uikit | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Animated,
Easing,
View,
} from 'react-native';
const INDETERMINATE_WIDTH_FACTOR = 0.3;
const BAR_WIDTH_ZERO_POSITION = INDETERMINATE_WIDTH_FACTOR / (1 + INDETERMINATE_WIDTH_FACTOR);
export default class ProgressBar extends Co... |
internals/templates/containers/LanguageProvider/index.js | gihrig/react-boilerplate-logic | /*
*
* 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 { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
MovieApp/app/components/containers/App.js | Ronny25/Ronny25.github.io | import React, { Component } from 'react';
export default class App extends Component {
render() {
return <main>
{this.props.children}
</main>
}
}
|
app/js/samples/component/HelloWorldComponent.js | h-iwata/react-babel-reflux-tutorial-for-blog | import React from 'react';
class HelloWorldComponent extends React.Component {
static get propTypes() {
return {
message: React.PropTypes.string
};
}
static get defaultProps() {
return {
message: ''
}
}
constructor(props) {
super(props);
this.state = {
count: 0
... |
src/views/code/react-filter.js | smart-table/www | import React from 'react';
import st from './smart-table.js';
import {debounce} from './helpers'; // a debounce function
export const FilterTextInput = st.filter(class FilterInput extends React.Component {
constructor (props) {
const {stDirective} = props;
super(props);
this.onChange = this.onChange.bin... |
src/Card/Card.js | tleunen/react-mdl | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import clamp from 'clamp';
import shadows from '../utils/shadows';
const propTypes = {
className: PropTypes.string,
shadow: PropTypes.number
};
const Card = (props) => {
const { className, shadow, children,... |
src/components/typing-test-input.js | orouvinen/mytype-frontend | import React from 'react';
const style = {
float: "left",
textAlign: "center",
width: "60%",
margin: "3px 0 3px",
borderRadius: "2px",
border: "none",
height: "1.8em",
fontSize: "1.3em",
background: "white",
color: "black",
};
const TypingTestInput = ({typingTest, onKeyPress}) =>
<input
type... |
src/Parser/MistweaverMonk/Modules/Traits/CoalescingMists.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
i... |
docs/components/components/ButtonDocumentation.js | nikgraf/belle | import React, { Component } from 'react';
import { Button } from 'belle';
import Code from '../Code';
import { propertyNameStyle, propertyDescriptionStyle } from '../../style';
const basicCodeExample = `<!-- primary button -->
<Button primary>Follow</Button>
<!-- default button -->
<Button>Follow</Button>`;
const cu... |
app/javascript/src/index.js | michelson/chaskiq | // src/index.js
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
// import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'))
// serviceWorker.unregister();
|
stalk-messenger/app/components/common/S5Header.js | JohnKim/stalk.messenger | /**
*
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
Platform,
Text,
StyleSheet,
TouchableOpacity,
View,
Image,
ToolbarAndroid,
} from 'react-native';
import S5Colors from './S5Colors';
import S5Icon from './S5Icon';
export const Item = {
title: React.PropTypes.stri... |
examples/counter/containers/Root.js | heymind/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
src/js/components/ui/BottomNotificationBar/BottomNotificationBar.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './BottomNotificationBar.scss';
import ProgressBar from "../ProgressBar/ProgressBar";
import connectToStores from "../../../utils/connectToStores";
import WorkersStore from "../../../stores/WorkersStore";
import translate f... |
client/views/omnichannel/directory/Skeleton.js | VoiSmart/Rocket.Chat | import { Box, Skeleton } from '@rocket.chat/fuselage';
import React from 'react';
export const FormSkeleton = (props) => (
<Box w='full' pb='x24' {...props}>
<Skeleton mbe='x8' />
<Skeleton mbe='x4' />
<Skeleton mbe='x4' />
<Skeleton mbe='x8' />
<Skeleton mbe='x4' />
<Skeleton mbe='x8' />
</Box>
);
|
node_modules/react-icons/md/wifi-lock.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdWifiLock = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m36.6 26.6v-2.5c0-1.4-1.1-2.5-2.5-2.5s-2.5 1.1-2.5 2.5v2.5h5z m1.8 0c0.9 0 1.6 0.8 1.6 1.8v6.6c0 0.9-0.7 1.6-1.6 1.6h-8.4c-0.9 0-1.6-0.7-1.6-1.6v-6.6c0-1 0.7-1.8 1.6... |
website/src/components/seo.js | spacy-io/thinc | import React from 'react'
import Helmet from 'react-helmet'
import { StaticQuery, graphql } from 'gatsby'
import socialImage from '../images/social.jpg'
const SEO = ({ title, description, lang = 'en' }) => (
<StaticQuery
query={query}
render={data => {
const site = data.site.siteMetada... |
node_modules/react-bootstrap/es/Popover.js | jkahrs595/website | 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/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | StrangerMdj/angular2-jsonserver-starter | 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/helpers/routing.js | Apozhidaev/ergonode | import React from 'react';
import { Redirect } from 'react-router-dom';
// eslint-disable-next-line
export const checkAuth = store => Component => props => (store.getState().app.context.profile
? <Component {...props} />
: <Redirect to="/sign-in" />);
|
src/html.js | softwareniagara/softwareniagara.com | import React from 'react'
import PropTypes from 'prop-types'
export default function HTML (props) {
return (
<html lang="en" {...props.htmlAttributes}>
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta
name="viewport"
co... |
app/javascript/mastodon/components/media_gallery.js | hugogameiro/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
import class... |
src/modules/texts/components/ReadingHeader/ReadingHeader.js | cltk/cltk_frontend | import React from 'react';
// components
import ReadingHeaderNavBar from './ReadingHeaderNavBar';
import LeftMenu from '../../../../components/navigation/LeftMenu';
const ReadingHeader = ({ work }) => (
<div>
<LeftMenu />
<ReadingHeaderNavBar
work={work}
/>
</div>
);
export default ReadingHeader;
|
app/javascript/mastodon/features/ui/components/report_modal.js | gol-cha/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { submitReport } from 'mastodon/actions/reports';
import { expandAccountTimeline } from 'mastodon/actions/timelines';
import { fetchRules } from 'mastodon/actions/rules';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-im... |
app/routes.js | ericwooley/StreamTor | /*eslint-disable no-unused-vars*/
import React from 'react'
/*eslint-enable no-unused-vars*/
import {Route, DefaultRoute, NotFoundRoute} from 'react-router'
import Application from './components/App/App'
import Broadcast from './components/BroadcastSection/Broadcast'
import watch from './components/WatchSection... |
docs/src/demo.js | docccdev/react-overflow-scrolling | import React from 'react';
import ReactDOM from 'react-dom';
import OverflowScrolling from '../../dist/index.js';
const element = (
<>
<OverflowScrolling className='side-left overflow-scrolling'>
<ul class='list'>
{Array.from(Array(100).keys()).map(() => <li>↑</li>)}
... |
pootle/static/js/editor/components/SuggestionFeedbackForm.js | JohnnyKing94/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import _ from 'underscore';
import React from 'react';
im... |
src/app.js | sballesteros/image-gallery | require('babel/polyfill');
import React from 'react';
import ReactDOM from 'react-dom';
import ImageGallery from './components/image-gallery';
import PouchDB from 'pouchdb';
import pouchdbUpsert from 'pouchdb-upsert';
import history from './history';
PouchDB.plugin(pouchdbUpsert);
var db = window.db = new PouchDB('... |
app/pages/Character/CharacterSheet/Injury.js | Technaesthetic/ua-tools | import React from 'react';
import * as CharacterActions from '../../../actions/CharacterActions';
import { Label, Panel, ListGroup, ListGroupItem } from 'react-bootstrap';
export default class Injury extends React.Component {
constructor() {
super();
this.state = {
edit: false
}
this.setEdit = ... |
wagtail/wagtailadmin/static_src/wagtailadmin/app/wagtailadmin.entry.js | gogobook/wagtail | import React from 'react';
import ReactDOM from 'react-dom';
import Explorer from 'components/explorer';
document.addEventListener('DOMContentLoaded', e => {
const top = document.querySelector('.wrapper');
const div = document.createElement('div');
const trigger = document.querySelector('[data-explorer-menu-url... |
Js/Backend/Modules/I18N/index.js | Webiny/Webiny | import Webiny from 'webiny';
import Views from './Views/Views';
import React from 'react';
/**
* @i18n.namespace Webiny.Backend.I18n
*/
class Module extends Webiny.App.Module {
init() {
this.name = 'I18N';
const Menu = Webiny.Ui.Menu;
this.registerMenus(
<Menu label={Webiny.I... |
actor-apps/app-web/src/app/utils/require-auth.js | mxw0417/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
node_modules/rc-tabs/es/SwipeableInkTabBar.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import createReactClass from 'create-react-class';
import InkTabBarMixin from './InkTabBarMixin';
import SwipeableTabBarMixin from './SwipeableTabBarMixin';
import TabBarMixin from './TabBarMixin';
var SwipeableInkTabBar = createReactClas... |
src/components/common/svg-icons/editor/insert-invitation.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertInvitation = (props) => (
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/>
... |
docs/app/Examples/collections/Breadcrumb/Types/BreadcrumbPropExample.js | jcarbo/stardust | import React from 'react'
import { Breadcrumb } from 'stardust'
const sections = [
{ text: 'Home', link: true },
{ text: 'Store', link: true },
{ text: 'T-Shirt', active: true },
]
const BreadcrumbPropExample = () => (
<Breadcrumb icon='right angle' sections={sections} />
)
export default BreadcrumbPropExamp... |
client/authentication/components/templates/PageWrapper.js | Haaarp/geo | import React from 'react';
import FooterHelper from '../../utils/FooterHelper';
import Logo from 'konux/common/components/Logo';
import Image from 'konux/common/components/Image';
import Label from 'konux/common/components/Label';
import FormWrap from 'konux/common/components/FormWrap';
import FormGroup from 'konux/c... |
docs/src/app/components/pages/components/FlatButton/ExampleComplex.js | igorbt/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import ActionAndroid from 'material-ui/svg-icons/action/android';
const styles = {
uploadButton: {
verticalAlign: 'middle',
},
uploadInput: {
cursor: 'pointer',
position: 'absolute... |
src/containers/Asians/TabControls/BreakAdjudicators/ViewBreaks/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Card, {
CardContent,
CardActions
} from 'material-ui/Card'
import Button from 'material-ui/Button'
import Table, {
TableBody,
TableCell,
TableHead,
TableRow
} from 'material-ui/Table'
import onCancel from './onCancel'
export default c... |
src/components/footer.js | baltazarparra/modal | import React from 'react'
import PropTypes from 'prop-types'
const Footer = ({
handleSteps,
handleDone,
isDisabled,
nextStep,
pageActive,
validateCard,
validateDate,
validateName,
validateCode
}) => (
<footer className="footer">
{pageActive === 'home' &&
<button classN... |
docs/src/Routes.js | HPate-Riptide/react-bootstrap | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import ComponentsPage from './ComponentsPage';
import GettingStartedPage from './GettingStartedPage';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import NotFoundPage from './NotFoundPage';
import Root f... |
src/AddJob.js | anatdagan/jobsafterforty | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import { FormErrors } from './FormErrors';
import { database } from './firebaseApp';
import { auth } fr... |
examples/js/remote/remote-alternative.js | powerhome/react-bootstrap-table | import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
export default class RemoteAlternative extends React.Component {
constructor(props) {
super(props);
}
remote(remoteObj) {
// Only cell editing, insert and delete row will be handled by remote store
... |
src/index.js | keyanzhang/code-only-hacker-news | require('fetch-xhr'); // polyfill for loadin
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import 'normalize.css';
import './styles/global.css';
import React from 'react';
... |
src/components/common/App.js | hui-w/events-vanilla | import React from 'react';
import PropTypes from 'prop-types';
import { Link, IndexLink } from 'react-router';
import Header from '../../containers/Header';
import '../../styles/app.css';
export default function App({ children }) {
return (
<div>
<Header>
<IndexLink to="/" activeClassName="active-i... |
src/components/pages/Home/sections/SafetySection/index.js | humaniq/humaniq-pwa-website | import React from 'react'
import A_Title from 'A_Title_H'
import SectionCounter from '../common/SectionCounter/index.js'
import InfoColumns from '../common/InfoColumns'
import './styles.scss'
import { cssClassName } from 'utils'
const cn = cssClassName('SE_Home_Safety')
const SE_Home_Safety = ({ mix }) => (
<sectio... |
app/src/containers/Root.dev.js | civa86/web-synth | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import App from './App';
import DevTools from './DevTools';
class Root extends Component {
render () {
const { store } = this.props;
return (
<Provider store={store}>
<div>
... |
src/svg-icons/image/monochrome-photos.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMonochromePhotos = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-3.2L15 3H9L7.2 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14h-8v-1c-2.8 0-5-2.2-5-5s2.2-5 5-5V7h8v12zm-3... |
node_modules/react-taco-table/site/src/components/ExampleHeatmap.js | Sweetgrassbuffalo/ReactionSweeGrass-v2 | import React from 'react';
import { TacoTable, DataType, SortDirection, Formatters,
Plugins } from 'react-taco-table';
import cellLinesData from '../data/cell_lines.json';
import * as d3 from 'd3-scale';
/**
* An example demonstrating how to add heatmap to cells via
* the Heatmap plugin.
*/
const columns = [
{... |
src/parser/monk/brewmaster/modules/spells/HighTolerance.js | fyruna/WoWAnalyzer | import React from 'react';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { formatPercentage, formatThousands } from 'common/format';
import Analyzer from 'parser/core/... |
news/components/Nav/LargeNav.js | FreeCodeCampQuito/FreeCodeCamp | import React from 'react';
import Media from 'react-media';
import { Col, Navbar, Row } from 'react-bootstrap';
import FCCSearchBar from 'react-freecodecamp-search';
import NavLogo from './components/NavLogo';
import NavLinks from './components/NavLinks';
import propTypes from './navPropTypes';
function LargeNav({ cl... |
components/admin/playerdata/PlayerDataEdit.js | nvbf/pepper | import React from 'react';
import styled from 'styled-components';
import { transparentize } from 'polished';
import TableHeadEdit from './TableHeadEdit';
import PlayerLineEdit from './PlayerLineEdit';
import TableSubHeader from './TableSubHeader';
import color from '../../../libs/color';
import type { Team } from '../... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | summoners-riftodon/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
import { displaySensitiveMedia } from '../../../initial_state';
export default class MediaItem extends Immut... |
assets/js/app.js | Subash/Sundar-Nepal | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import 'whatwg-fetch';
import * as util from './util.js';
import 'babel-polyfill';
import Container from './container';
class App {
constructor() {
this.initializeSDK();
this.userData = {};
this.render();
}
async updateUserD... |
app/node_modules/eslint-config-airbnb/test/test-react-order.js | minakodoi/final-project-mockup | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: { indent: 0 },
});
function lint(text) {
// @see http://e... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/TabPane.js | JamieMason/npm-cache-benchmark | 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 ... |
app/containers/About/index.js | scribeklio/audora-io | /*
*
* About
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import {Link} from 'react-router';
import Header from 'components/Header';
import Footer from 'components/Footer';
import Paper from 'material-ui/Paper';
import Responsive from 'react-responsive';
import glamorous from 'glamorous';
const ... |
ui/src/js/backOffice/eventManager/EventOverview.js | Dica-Developer/weplantaforest | import axios from 'axios';
import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import IconButton from '../../common/components/IconButton';
import Notification from '../../common/components/Notification';
import { getConfig } from '../../common/RestHelper';
require('./eventO... |
src/ModalTitle.js | gianpaj/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
app/javascript/mastodon/features/standalone/compose/index.js | MitarashiDango/mastodon | import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
import ModalContainer from '../../ui/containers/mo... |
src/components/ButtonLine/index.js | adammockor/fridge | import React from 'react';
import styles from './styles.scss';
export default function Button ({children}) {
return (
<div className={styles.root}>{children}</div>
);
};
|
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js | Just-D/actor-platform | import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, Snackbar } from 'material-ui';
import ReactZeroClipboard from 'react-zeroclipboard';
import { KeyCo... |
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js | owencm/material-ui | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
const LinearProgressExampleSimple = () => (
<LinearProgress mode="indeterminate" />
);
export default LinearProgressExampleSimple;
|
geonode/contrib/monitoring/frontend/src/pages/alerts/index.js | MapStory/geonode | import React, { Component } from 'react';
import Header from '../../components/organisms/header';
import AlertList from '../../components/organisms/alert-list';
import styles from './styles';
class Alerts extends Component {
render() {
return (
<div style={styles.root}>
<Header back="/" />
... |
src/StopButton.js | rpazyaquian/stopwatch-challenge | import React, { Component } from 'react';
export default class StopButton extends Component {
render () {
return (
<button onClick={this.props.onClick}>Stop</button>
);
}
}
|
node_modules/react-icons/fa/frown-o.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaFrownO = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.3 27.4q0.2 0.6-0.1 1.1t-0.8 0.7-1.1-0.1-0.7-0.8q-0.6-1.8-2.1-2.9t-3.4-1.1-3.3 1.1-2.1 2.9q-0.2 0.6-0.7 0.8t-1.1 0.1q-0.6-0.2-0.8-0.7t-0.1-1.1q0.8-2.7 3.1-4.3t5-1.7... |
client/entry.js | datyayu/raji-react | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import Router from './Router';
import Store from './store';
const $mountPoint = document.querySelector('#app');
const baseComponent = (
<Provider store={Store}>
<Router />
</Provider>
);
render(baseCompo... |
src/routes/algorithms/parser.js | loganfreeman/react-is-fun | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import {GridList, GridTile} from 'material-ui/GridList';
import FlatButton from 'material-ui/FlatButton';
const CardExampleWithAvatar = (parseCallback) => (
<Card key="parser">
<CardHeader ... |
src/pages/portfolio.js | Oluwasetemi/Oluwasetemi.github.io | import Bio from 'components/Bio'
import PortfolioCard from 'components/PortfolioCard'
import SEO from 'components/seo'
import { graphql } from 'gatsby'
import React from 'react'
import styled from 'styled-components'
const PortfolioStyles = styled.div`
color: var(--color);
`
const AllPortfolioStyles = styled.div`
... |
src/admin/routes.js | jasonthomas/addons-frontend | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import LoginRequired from 'core/containers/LoginRequired';
import HandleLogin from 'core/containers/HandleLogin';
import App from './containers/App';
import AddonPage from './containers/AddonPage';
import SearchPage from './containers/Search... |
src/components/head/head.js | growcss/docs | import React from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet';
import { StaticQuery, graphql } from 'gatsby';
import { Location } from '@reach/router';
const Head = ({
siteTitle,
siteDescription,
siteUrl,
pageTitle,
pageTitleFull = pageTitle ? `${siteTitle}: ${pageTitle... |
src/svg-icons/action/bug-report.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBugReport = (props) => (
<SvgIcon {...props}>
<path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7... |
src/Collab.js | RobertMcCoy/CodeCollaborator | import React, { Component } from 'react';
import './Collab.css';
import $ from 'jquery';
import axios from 'axios';
import { subscribeToRoom, submitCodeUpdate, leaveExistingLastRoom, submitModeChange } from './Api';
import { ToastContainer, toast } from 'react-toastify';
import RoomInfo from './RoomInfo';
import CodeMi... |
src/index.js | caligin/netronner-ui | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want your app to work offline and load f... |
app/jsx/course_settings/components/CourseImageSelector.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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... |
wrappers/toml.js | jmcorona/jmcorona-netlify | import React from 'react'
import toml from 'toml-js'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
... |
src/routes/home/index.js | nagucc/jkef-wxe | /**
* 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 Home from './Home';
exp... |
src/components/app.js | JunyuChen-0115/ReactWithRedux | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>React simple starter</div>
);
}
}
|
exemplos/ExemploVerMaisTexto.js | vitoralvesdev/react-native-componentes | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet
} from 'react-native';
import { VerMaisTexto } from 'react-native-componentes';
export default class ExemploVerMaisTexto extends Component {
render() {
return(
<View style={estilos.corpo}>
... |
app/dashboard/main.js | lisakuli/la-vie | import React from 'react';
var Dashboard = React.createClass({
render: function() {
return(
<div>
<h1>Dashboard View</h1>
</div>
)
}
});
export default Dashboard;
|
packages/veritone-widgets/src/widgets/UserProfile/story.js | veritone/veritone-sdk | import React from 'react';
import { storiesOf } from '@storybook/react';
import { boolean } from '@storybook/addon-knobs';
import BaseStory from '../../shared/BaseStory';
import UserProfile, { UserProfileWidget } from './';
storiesOf('UserProfile', module).add('Base', () => {
const sharedProps = {
passwordUpdat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.