path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/index.js | envyN/Algorithms | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in yo... |
.history/src/components/GKM/EtsyProduct_20170624130727.js | oded-soffrin/gkm_viewer | import React from 'react'
import '../../styles/gkm-item.scss';
import ProductItem from './ProductItem'
import Input from '../Common/Input'
import SearchBar from '../SearchBar';
import _ from 'lodash'
class EtsyProduct extends React.Component {
constructor(props, context) {
super(props, context);
this.edit... |
app/js/About.js | skratchdot/infinite-gradients | import React from 'react';
import Header from './Header';
var readmeHtml = require('../../lib/readme').getReadme();
module.exports = React.createClass({
render: function () {
return (
<div id="page-about">
<Header />
<div className="well" dangerouslySetInnerHTML={{__html: readmeHtml}}>
</div>
</di... |
web/src/components/Todo.js | jinghang/react-todo-demo | import React from 'react'
const ReactMotion = require('../lib/react-motion.js')
import '../style/Todo.css';
var TransitionMotion = ReactMotion.TransitionMotion;
var spring = ReactMotion.spring;
var presets = ReactMotion.presets;
const Todo = React.createClass({
getInitialState() {
return {
todos: {
... |
examples/with-immutable-redux-wrapper/pages/index.js | BlancheXu/test | import React from 'react'
import { bindActionCreators } from 'redux'
import { startClock, addCount, serverRenderClock } from '../store'
import Page from '../components/Page'
import { connect } from 'react-redux'
class Counter extends React.Component {
static getInitialProps ({ store, isServer }) {
store.dispatch... |
src/svg-icons/communication/rss-feed.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRssFeed = (props) => (
<SvgIcon {...props}>
<circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17... |
src/collections/BootNavs/BootNavDropdown.js | shengnian/shengnian-ui-react | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { mapToCssModules } from '../../lib/'
import Dropdown from '../../modules/BootDropdown/BootDropdown'
const propTypes = {
children: PropTypes.node,
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
classNam... |
src/components/source/mediaSource/SourceStatInfo.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import withAsyncData from '../../common/hocs/AsyncDataContainer';
import { fetchSourceStats } from '../../../actions/sourceActions';
import StatBar from '../../common/statbar/St... |
test/test_helper.js | johnnyvf24/hellochess-v2 | 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/App/shared/PokemonTable/index.js | wendywill25/node-api-server | /*** @jsx React.DOM */
import React from 'react';
var PokemonTable = React.createClass({
render: function() {
var rows = this.props.pokemon.map(function(pokemon) {
return (
<tr key={pokemon.id}>
<td>{pokemon.id}</td>
<td>{pokemon.name}</td... |
src/scripts/pages/FirstProject.page.js | ModuloM/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2016 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... |
src/svg-icons/maps/local-see.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalSee = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5... |
addons/options/.storybook/stories.js | enjoylife/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
storiesOf('Hello', module)
.add('Hello World', () => (
<pre>Hello World</pre>
))
.add('Hello Earth', () => (
<pre>Hello Earth</pre>
));
|
src/app/components/media/ItemHistoryDialog.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import CloseIcon from '@material-ui/icons/Close';
import Dialog from '@material-ui/core/Dialog';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core/DialogTit... |
src/components/App.js | jjeffreyma/ID3-React | import React, { Component } from 'react';
import { render } from 'react-dom';
import Header from '../containers/Header';
import { TextEditor, editor } from './editor/textEditor';
import AttributesPanel from '../containers/AttributesPanel';
import Footer from './footer/Footer';
const { ipcRenderer } = require('electron... |
src/pageComponents/lex/lexForm.js | nai888/langua | import React from 'react'
import PropTypes from 'prop-types'
import Form from '../../components/form'
// import sharedStyles from '../../components/form/sharedForm.module.sass'
const LexForm = () => <Form name='lex-form' />
LexForm.propTypes = {
styles: PropTypes.string
}
export default LexForm
|
src/client/container/quizz/ExportQuizzForm.js | JulienPradet/quizzALJP | import React from 'react'
export default class QuizzForm extends React.Component {
render() {
return <div>
Export a quizz in a JSON format.
</div>
}
}
|
src/components/common/story/StoryImages.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Row, Col } from 'react-flexbox-grid/lib';
import { fetchStoryImages } from '../../../actions/storyActions';
import withAsyncData from '../hocs/AsyncDa... |
src/routes.js | Kgiberson/welp | import React from 'react';
import { browserHistory, Router, Route, Redirect } from 'react-router';
import makeMainRoutes from './views/Main/routes';
export const makeRoutes = () => {
const main = makeMainRoutes();
return (
<Route path=''>
{main}
</Route>
)
}
export default makeRoutes; |
app/imports/ui/components/ItemEditor.js | ericvrp/GameCollie | /* eslint-disable max-len, no-return-assign */
import React from 'react';
import PropTypes from 'prop-types';
import { FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap';
import itemEditor from '../../modules/item-editor.js';
export default class ItemEditor extends React.Component {
componentDidM... |
node_modules/react-bootstrap/src/OverlayMixin.js | gitoneman/react-home | import React from 'react';
import CustomPropTypes from './utils/CustomPropTypes';
import domUtils from './utils/domUtils';
export default {
propTypes: {
container: CustomPropTypes.mountable
},
componentWillUnmount() {
this._unrenderOverlay();
if (this._overlayTarget) {
this.getContainerDOMNode... |
src/components/common/ratingStar/ratingStar.js | dejour/react-elm | import React, { Component } from 'react';
import './ratingStar.css'
class RatingStar extends Component {
constructor (props) {
super(props)
}
render() {
const num = [0,0,0,0,0]
return (
<div className="rating_container">
<section className="star_contain... |
src/slider.js | hangarlabs/hangar-react-slick | 'use strict';
import React from 'react';
import {InnerSlider} from './inner-slider';
import assign from 'object-assign';
import json2mq from 'json2mq';
import ResponsiveMixin from 'react-responsive-mixin';
import defaultProps from './default-props';
var Slider = React.createClass({
mixins: [ResponsiveMixin],
inne... |
src/routes/AuthenticatedLayout.js | gcanti/tcomb-spa-example | import React from 'react'
import { t, props } from 'tcomb-react'
import Header from '../components/Header'
@props({
app: t.Object,
children: t.Any
})
export default class AuthenticatedLayout extends React.Component {
onSignOut = () => {
this.props.app.signOut()
}
render() {
const app = this.props.a... |
packages/fyndiq-icons/src/cart.js | fyndiq/fyndiq-ui | import React from 'react'
import SvgWrapper from './svg-wrapper'
const Cart = ({ className, color }) => (
<SvgWrapper className={className} viewBox="0 0 25 22">
<path
d="M11 .7a.9.9 0 0 0-.6.3L5.2 7.5a.9.9 0 0 0 .2 1.2.9.9 0 0 0 .5.2.9.9 0 0 0 .7-.4l5.2-6.4.2-.6a.9.9 0 0 0-1-.8zm2.6 0a.9.9 0 0 0-.4.2A.9.9 ... |
src/components/StartAuction/StartAuctionInfo.js | PhyrexTsai/ens-bid-dapp | import React from 'react';
import {shortFormatHash, momentFromNow} from '../../lib/util';
import Button from 'material-ui/Button';
import Card from 'material-ui/Card';
import Divider from 'material-ui/Divider';
import './StartAuctionInfo.css';
const RevealAuctionOn = (props) =>
<div className="RevealAuctionOn">
... |
app/javascript/mastodon/features/account_timeline/components/limited_account_hint.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { revealAccount } from 'mastodon/actions/accounts';
import { FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
const mapDispatchToProps = (dispatch, { accountId }) => ({
... |
codes/chapter05/react-router-official/demo01/app/App.js | atlantis1024/react-step-by-step | import React from 'react';
import { BrowserRouter as Router, Link, Route } from 'react-router-dom';
const BasicExample = () => (
<Router>
<div>
<ul>
<li><Link to="/">首页</Link></li>
<li><Link to="/about">关于</Link></li>
<li><Link to="/topics">主题列表</Link></li>
</ul>
<hr/>
... |
app/renderer/presentational/generic/Tab.js | AbsoluteZero273/Deezic | import React from 'react'
const Tab = ({ children, tabID, active }) => {
return (
<div className={'mdl-tabs__panel custom-tabs__panel' + (active ? ' is-active' : '')} id={tabID}>
{ children }
</div>
)
}
export default Tab
|
src/components/FormFieldsIterator/index.js | iris-dni/iris-frontend | import React from 'react';
import { get } from 'lodash/object';
import FormField from 'components/FormField';
import styles from './form-field-iterator.scss';
const FormFieldsIterator = ({
reduxFormFields,
fieldsArray = [],
trustedFields = {}
}) => (
<div className={styles.root}>
{fieldsArray.map(field => ... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js | IgorKilipenko/KTS_React | import React, { Component } from 'react';
class Foo extends Component {
render() {}
}
|
docs/app/Examples/elements/Icon/Variations/IconExampleFitted.js | clemensw/stardust | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleFitted = () => (
<div>
<p>Tight spacing</p>
<Icon fitted name='help' />
<p>Tight spacing</p>
</div>
)
export default IconExampleFitted
|
examples/flux-utils-todomvc/js/app.js | jugend/flux | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'use s... |
src/window/data/view/toolbar/view.js | unkyulee/control-center | /******************************************************************************
Search Element
*******************************************************************************/
import React from 'react'
import { ipcRenderer } from 'electron'
import { ButtonToolbar, Button } from 'react-bootstrap'
///
///
///
export... |
test/specs/elements/List/ListList-test.js | mohammed88/Semantic-UI-React | import React from 'react'
import * as common from 'test/specs/commonTests'
import ListList from 'src/elements/List/ListList'
describe('ListList', () => {
common.isConformant(ListList)
common.rendersChildren(ListList)
describe('list', () => {
it('omitted when rendered as `ol`', () => {
shallow(<ListLi... |
app/components/ConList.js | Toreant/monster_web | /**
* Created by apache on 15-11-14.
*/
import React from 'react';
import {Link} from 'react-router';
import {isEqual} from 'underscore';
import ConListActions from '../actions/ConListActions';
import ConListStore from '../stores/ConListStore';
class ConList extends React.Component {
constructor(props) {
... |
app/components/Message/index.js | Ennovar/clock_it | /**
*
* Message
*
*/
import React from 'react';
// import styled from 'styled-components';
function Message(props) {
return (
<div>
<h3>{props.message}</h3>
</div>
);
}
Message.propTypes = {
message: React.PropTypes.string,
};
export default Message;
|
web/src/server/components/charts/projects-vs-organizations-chart.js | opendaylight/spectrometer | /**
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public L... |
src/parser/deathknight/unholy/CONFIG.js | sMteX/WoWAnalyzer | import React from 'react';
import { Khazak } from 'CONTRIBUTORS';
import retryingPromise from 'common/retryingPromise';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maint... |
src/connect.js | UniversalAvenue/react-compose | import React from 'react';
import _ from 'lodash';
import getDisplayName from './getDisplayName';
const defaultMergeProps = (stateProps, dispatchProps, parentProps) => ({
...parentProps,
...stateProps,
...dispatchProps,
});
function createDispatchProps(dispatchers, dispatch) {
if (_.isFunction(dispatchers)) {... |
docs/app/Examples/views/Statistic/Types/TopLabel.js | jcarbo/stardust | import React from 'react'
import { Statistic } from 'stardust'
const TopLabel = () => (
<div>
<Statistic>
<Statistic.Label>Views</Statistic.Label>
<Statistic.Value>40,509</Statistic.Value>
</Statistic>
</div>
)
export default TopLabel
|
js/components/layout/customRow.js | LetsBuildSomething/vmag_mobile |
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/createuser.js | conveyal/datatools-user-manager | import React from 'react'
import { Button, Modal, Input } from 'react-bootstrap'
import UserSettings from './usersettings'
import { UserPermissions } from 'datatools-common'
export default class CreateUser extends React.Component {
constructor (props) {
super(props)
this.state = {
showModal: false
... |
src/svg-icons/action/help.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHelp = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83... |
tests/components/Counter/Counter.spec.js | VitaliyGaliy/GroceryList | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'components/Counter/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter: 5,
...bindActionCre... |
src/components/Cart/updateQuantity.js | nikhilfusion/substitutionApp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
require('./updateQuantity.css');
export default class UpdateQuantity extends Component {
constructor(props) {
super(props);
this.updateQty.bind(this);
this.state = {
itemId: '',
quantity: 0
}
}
updateQty(it... |
index.ios.js | yamashiro0110/ReactNative | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, View, Navigator, TouchableHighlight, } from 'react-native';
import AwesomeSummary from './components/scenes/awesome_summary_scene';
// import AwesomeNavigat... |
app/javascript/mastodon/features/ui/components/actions_modal.js | honpya/taketodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
renderer/components/PrefillDialog.js | mjswensen/themer-gui | import React from 'react';
import { connect } from 'react-redux';
import Button from './Button';
import Radio from './Radio';
import Emoji from './Emoji';
import {
closeDialogs,
prefillColorSetSelectionChange,
prefillWithColorSet,
} from '../actions';
import { colors as colorsDefault } from 'themer-colors-default... |
components/Home/DisplayAlert.js | k97/node-slasher-app | import React, { Component } from 'react';
class DisplayAlert extends React.Component {
constructor(props) {
super(props);
}
render() {
var alertType = this.props.type.toLowerCase();
if (!this.props.msg) {
var msgVal = (alertType == 'success') ? 'Success' : 'Error';
}
return (
<d... |
screens/home/components/account-details.js | keuss/react-router-redux-sandbox | /**
* Created by Adrien on 17/04/2016.
*/
import React from 'react'
import Expense from './expense-line'
export default class AccountDetails extends React.Component {
render() {
return (
<div id="accDetails">
{this.props.expenses.map( (expense, i) => (<Expense key={i} data={expense} />))}
... |
src/component/VirtualGrid.js | kavithaLK/react-virtualgrid | import React, { Component } from 'react';
import { Nav, NavbarHeader, Navbar, NavItem, NavDropdown, MenuItem, FormGroup, FormControl,Button } from 'react-bootstrap';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import VerticalScrollbar from './virtual-scrollbar.js';
import {LRUCache} from 'js-lru/lru.j... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | cgrossde/react-router | import React from 'react';
class Grades extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments;
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment.grade} - {assi... |
src/svg-icons/action/lightbulb-outline.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLightbulbOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1... |
CompositeUi/src/views/component/TaskPreview.js | kreta/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 './../../scss/components/_task-pre... |
src/components/Navigation.js | chrisfitkin/cf-event-planner-3 | import React from 'react'
// import IconButton from 'material-ui/IconButton'
// import IconMenu from 'material-ui/IconMenu'
// import MenuItem from 'material-ui/MenuItem'
import FlatButton from 'material-ui/FlatButton'
// import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'
// import { IndexLink, Link ... |
app/components/Settings.js | mzanini/DeeMemory | import React from 'react'
import TablesSetup from '../containers/TablesSetup'
const Settings = () => (
<TablesSetup/>
)
export default Settings
|
src/components/todoApp.js | mobxjs/mobx-react-todomvc | import React from 'react';
import PropTypes from 'prop-types';
import {observer} from 'mobx-react';
import TodoEntry from './todoEntry';
import TodoOverview from './todoOverview';
import TodoFooter from './todoFooter';
import { ALL_TODOS, ACTIVE_TODOS, COMPLETED_TODOS } from '../constants';
import DevTool from 'mobx-... |
client/components/navigation/Navigation.js | jkettmann/relay-authentication | import React from 'react'
import PropTypes from 'prop-types'
import { createFragmentContainer, graphql } from 'react-relay'
import Drawer from 'material-ui/Drawer'
import IconButton from 'material-ui/IconButton'
import NavigationClose from 'material-ui/svg-icons/navigation/close'
import MenuItem from 'material-ui/Menu... |
src/PerfViewJS/spa/src/App.js | vancem/perfview | import React, { Component } from 'react';
import { Route } from 'react-router';
import { Layout } from './components/Layout';
import { Home } from './components/Home';
import { EventList } from './components/EventList';
import { ProcessList } from './components/ProcessList';
import { Hotspots } from './components/Hotsp... |
frontend/src/Activity/Blocklist/BlocklistConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import * as commandNames from 'Commands/commandNames';
import withCurrentPage from 'Components/withCurrentPage';
import * as blocklistActions from 'Store/Action... |
src/components/Text.js | twhite96/checkyoself | /* jshint ignore: start */
import React from 'react';
import SimpleMDEReact from 'react-simplemde-editor';
import 'simplemde/dist/simplemde.min.css';
import Popup from 'reactjs-popup';
import BurgerIcon from '../components/BurgerIcon';
import Menu from '../components/Menu';
import '../smde-editor.css';
import writeGood... |
src/ui/pages/common/settings/index.js | dhruv-kumar-jha/productivity-frontend | 'use strict';
import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import Heading from 'app/components/common/Heading';
import CommonLayout from 'app/components/layout/Common';
import { FormattedMessage } from 'react-intl';
import GeneralSettings from './General';
import GroupsSett... |
lib/js/apps/genetic-algorithms/Queens/Board.js | jneander/learning | import React from 'react';
import ChessBoard from 'js/apps/genetic-algorithms/shared/ChessBoard';
export default class Board extends React.PureComponent {
render () {
const board = [];
for (let row = 0; row < this.props.size; row++) {
board[row] = [];
for (let col = 0; col < this.props.size; co... |
src/svg-icons/notification/disc-full.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDiscFull = (props) => (
<SvgIcon {...props}>
<path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>
... |
src/svg-icons/content/redo.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRedo = (props) => (
<SvgIcon {...props}>
<path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/>
</Sv... |
client/portfolio2017/src/Components/TabMenu/TabMenu.js | corrortiz/portafolio2017 | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
//MUI Components
import Tabs, { Tab } from 'material-ui/Tabs';
import { withStyles } from 'material-ui/styles';
//HOC for global state
import GlobalsConnect from '../../HOC/GlobalsConnect/GlobalsConnec... |
src/slides/six/obj-literals.js | brudil/slides-es6andbeyond | import React from 'react';
import Radium from 'radium';
import Snippet from '../../Snippet';
import {bindShowHelper} from '../../utils';
const styles = {
inlinePre: {
display: 'inline'
},
slide: {
textAlign: 'center'
}
};
const sourceSteps = [
`
const obj = {
username: username
};
`,
`
const obj ... |
front_end/front_end_app/src/client/app/header.react.js | Horizon-Framework/horizon | import Component from '../components/component.react';
import React from 'react';
import {FormattedHTMLMessage} from 'react-intl';
import {Link} from 'react-router';
export default class Header extends Component {
static propTypes = {
msg: React.PropTypes.object.isRequired,
viewer: React.PropTypes.object
... |
src/components/Editor/Editor.js | zhangjingge/sse-antd-admin | import React from 'react'
import { Editor } from 'react-draft-wysiwyg'
import styles from './Editor.less'
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
const DraftEditor = (props) => {
return (<Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {..... |
src/index.js | nbuechler/studious-display | import 'babel-core/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import Root from './containers/Root';
ReactDOM.render(
<Root />,
document.getElementById('root')
);
|
src/routes/login/index.js | utage2002/mm | /**
* 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 { defineMessages } fr... |
test/containers/CounterPage.spec.js | mitchconquer/electron_cards | import { expect } from 'chai';
import React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import CounterPage from '../../app/containers/CounterPage';
import configureStore from '../../app/store/configureStore';
function setup(initialState) {
const store = configureStore(initi... |
actor-apps/app-web/src/app/components/DialogSection.react.js | alihalabyah/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
i... |
app/components/IssueIcon/index.js | rlagman/raphthelagman | import React from 'react';
import PropTypes from 'prop-types';
function IssueIcon(props) {
return (
<svg height="1em" width="0.875em" className={props.className} {...props}>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 ... |
src/common/loader/index.js | WhileTruu/peers-against-humanity-frontend | import React from 'react'
import './Loader.scss'
const Loader = () => (
<div className="loader-container d-flex justify-content-center">
<img className="loader-image" src="/boulder1.svg" alt="boulder" />
<div className="loader-text-container">
<h2 className="loader-text text-primary">Loading...</h2>
... |
src/Layout.js | sPyOpenSource/personal-website | import React, { Component } from 'react';
import Header from './components/header';
import Footer from './components/footer';
class Layout extends Component {
render() {
return (
<div>
<Header />
{this.props.children}
<Footer />
</div>
);
}
}
export default Layout;
|
app/containers/App.js | tidepool-org/chrome-uploader | /*
* == BSD2 LICENSE ==
* Copyright (c) 2014-2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This pro... |
docs/src/GettingStartedPage.js | yickli/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="getting-started"... |
src/components/PlayerSignupList.js | mjosh954/mtg-toolbox | import React from 'react';
import moment from 'moment';
export default class PlayerSignupList extends React.Component {
static propTypes = {
players: React.PropTypes.array
}
render () {
const Table = require('material-ui/lib/table/table');
const TableBody = require('material-ui/lib/table/table-body'... |
storybook/config.js | 3846masa/mastodon | import { configure, setAddon } from '@kadira/storybook';
import IntlAddon from 'react-storybook-addon-intl';
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import '../app/javascript/styles/applicat... |
src/header/AppToolbar.js | corbig/AfterWorkManager | import React from 'react';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import MenuItem from 'material-ui/MenuItem';
import DropDownMenu from 'material-ui/DropDownMenu';
import RaisedButton from 'material-ui/RaisedButton';
import {Toolbar, ToolbarGroup, ToolbarSeparator,... |
src/hoc/EntitysFetchData.js | sk-iv/iva-app | import React from 'react';
import PropTypes from 'prop-types';
import {graphql, compose} from 'react-apollo';
import { branch, renderComponent, withState } from 'recompose';
import Waypoint from 'react-waypoint';
import FETCH_ENTITY_LIST from '../queries/fetchEntityList';
// import queryString from 'query-string';
impo... |
src/components/HeartsGame.js | tgevaert/react-redux-hearts | import React from 'react';
import { connect } from 'react-redux';
import HeartsPlayer from './HeartsPlayer';
import CurrentTrick from './CurrentTrick';
import Toast from './Toast';
import { getPlayers, getPOVPlayerIndex } from '../reducers';
const HeartsGamePresentation = ({ players, POVindex }) => {
const pnum = pl... |
src/routes/post/index.js | Ozaroni/modestLifer | /**
* 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 Post from './Post';
i... |
src/js/components/subscribe__page/index.js | Arlefreak/arlefreakClient | import PropTypes from 'prop-types';
import React from 'react';
import Remarkable from 'remarkable';
import Page from '../../containers/page';
import Subscribe from '../subscribe';
import Social from '../social';
const Container = ({
id,
title,
isFetching,
items,
meta_url,
meta_title,
meta_description,
... |
src/components/App.js | simplebee/everyday | import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import MainLayout from './MainLayout';
function App() {
return (
<BrowserRouter>
<MainLayout />
</BrowserRouter>
);
}
export default App;
|
src/client/index.js | BhumiSukhadiya/React_Project_Repo | /**
* 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 ReactDOM from 'react-d... |
projects/plane-crashes/viz/src/viz/PlaneAge/index.js | ebemunk/blog | import React from 'react'
import { scaleBand, scaleLinear } from 'd3-scale'
import { max, mean } from 'd3-array'
import FlexPlot from '../../vizlib/FlexPlot'
import Axis from '../../vizlib/Axis'
import GridLines from '../../vizlib/GridLines'
import ChartTitle from '../../vizlib/ChartTitle'
import { blueRed } from '..... |
src/common/components/vanilla/table-interactive/body.js | canonical-ols/build.snapcraft.io | import PropTypes from 'prop-types';
import React from 'react';
import styles from './table.css';
export default function Body(props) {
return (
<main className={ styles.body }>
{ props.children }
</main>
);
}
Body.propTypes = {
children: PropTypes.node
};
|
src/parser/hunter/survival/modules/talents/WildfireInfusion/VolatileBomb.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import { encodeTargetString } from 'parser/shared/modules/EnemyInstances';
import Enemies from 'parser/shared/modules/Enemies';
import StatTr... |
source/components/Application.react.js | argaskins/ThinkReact-Jenkins | var React = require('react');
var logs = require("../utilities/logsMixin.js")
const Section = require('./Section.react.js');
const Banner = require('./Banner.react.js');
const Overview = require('./Overview.react.js');
// const header = require('./textHeader.react.js'); //Stateless (Static) component. Thats why it's ... |
packages/material-ui-icons/src/FeaturedPlayList.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><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 8H3V9h9v2zm0-4H3V5h9v2z" /></g>
, 'FeaturedPlayList');
|
src/parser/warlock/destruction/modules/features/ImmolateUptime.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import StatisticBar fr... |
src/@ui/Icon/icons/CircleOutlineCheckMark.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 60 61" {...otherProps}>
<Svg.Polygon fill={fill} points="25.9570657 ... |
client/src/todos/containers/ToDosView.js | Hypheme/harmonized.js-example | import React from 'react';
import TodoList from '../components/TodoList'
const TodosView = (props) => {
return (
<div>
<h2>TODOS</h2>
<TodoList {...props}/>
</div>
);
};
export default TodosView;
|
frontend/app/js/components/service/details/detailstab.js | serverboards/serverboards | import React from 'react'
import store from 'app/utils/store'
import {goto} from 'app/utils/store'
import {MarkdownPreview} from 'react-marked-markdown';
import {i18n} from 'app/utils/i18n'
import cache from 'app/utils/cache'
import ServiceLink from 'app/components/servicelink'
import {FutureLabel} from 'app/components... |
app/containers/LanguageProvider/index.js | acebusters/ab-web | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
src/frontend/components/buttons/GCalendarButton.js | gbgtech/gbgtechWeb | import React from 'react';
const GoogleCalendarButton = () => {
const urlPrefix = "https://calendar.google.com/calendar/embed?src=";
const googleCalendarId = "qvrnclm8e6ndipoki2hh6rtg1k@group.calendar.google.com&ctz=Europe/Stockholm#main_7";
return (
<a href={urlPrefix + googleCalendarId} className="main-fo... |
board/src/components/draft-js-highlight-plugin.js | google-research/fool-me-twice | // Copyright 2019 Google LLC.
//
// 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 to in ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.