path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/app.js | mortondev/rapport | import ReactDOM from 'react-dom';
import React from 'react';
import Router from 'react-router';
import { DefaultRoute, Link, Route, RouteHandler } from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import App from './components/App.jsx';
import Login from './components/Login.jsx'... |
packages/core/src/components/Form/InputRange/InputRange.js | appearhere/bloom | // @flow
import React, { Component } from 'react';
import ReactInputRange from '@appearhere/react-input-range';
import noop from '../../../utils/noop';
import css from './InputRange.css';
export const defaultClassNames = {
component: css.input,
labelContainer: css.labelContainer,
labelMax: css.labelMax,
label... |
src/components/listOfMatch/listOfMatchAgentBuyPropertys.js | gordongordon/hom | import React from 'react';
//import { List , Card, Stepper, Picker, SwipeAction, DatePicker, Badge, Flex, InputItem, WhiteSpace, Button, SegmentedControl} from 'antd-mobile';
//import { createForm } from 'rc-form';
import moment from 'moment';
//import 'moment/locale/zh-cn';
//import {propertys} from 'userModelView'
i... |
components/Layout/Header.js | migelleluigi/dota2teams | /**
* 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';
... |
src/svg-icons/navigation/cancel.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationCancel = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7... |
src/server.js | keshan3262/weather | 'use strict';
import path from 'path';
import { Server } from 'http';
import Express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import routes from './routes';
import NotFoundPage from './components/NotFoundPage';
im... |
app/components/TableMenu/index.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import onClickOutside from 'react-onclickoutside';
import MenuItem from './MenuItem';
import { MenuContainer } from './styles';
// Note: sitout value possibilities
// sitout > 0, for enabled "play"
// sitout === 0, for disabled "play"
// sitout === unde... |
src/client/index.js | DocNow/docnow | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'connected-react-router'
import store, { history } from './store'
import App from './containers/App'
if (module.hot) {
module.hot.accept()
}
render(
<Provider store={store}>
<Co... |
src/components/Settings/NightModeToggle/index.js | hasibsahibzada/quran.com-frontend | /* global document */
import React, { Component } from 'react';
import LocaleFormattedMessage from 'components/LocaleFormattedMessage';
import { MenuItem } from 'quran-components/lib/Menu';
import PropTypes from 'prop-types';
class NightModeToggle extends Component {
componentDidMount() {
const { isNightMode } =... |
src/packages/stylesV1/src/withStyles.js | mindhivenz/packages | import React from 'react'
import { computed, observable } from 'mobx'
import { observer } from 'mobx-react'
import { app } from '@mindhive/di'
const copyProps = themeDomain => ({
theme: themeDomain.muiTheme,
prepareStyles: themeDomain.prepareStyles,
})
export default (mapThemeToStyles) => {
if (! mapThemeToSt... |
src/components/ethereum/BlockInfoTable.js | AlanVerbner/lightweight-eth-explorer | import React from 'react';
import { Link } from 'react-router-dom';
import { bigNumber, formatTimestamp } from '../../utils/format-utils';
const BlockInfoTable = ({ block, latestBlockNumber }) => {
return (
<table className="pure-table pure-table-horizontal">
<thead>
<tr>
<th colSpan=... |
admin/client/App/screens/Home/index.js | rafmsou/keystone | /**
* The Home view is the view one sees at /keystone. It shows a list of all lists,
* grouped by their section.
*/
import React from 'react';
import { Container, Spinner } from '../../elemental';
import { connect } from 'react-redux';
import Lists from './components/Lists';
import Section from './components/Secti... |
app/components/Buttons/index.js | wenpengfei/react-boilerplate | /**
*
* Buttons
*
*/
import React from 'react'
// import styled from 'styled-components'
import { FormattedMessage } from 'react-intl'
import messages from './messages'
function Buttons() {
return (
<div>
<FormattedMessage {...messages.header} />
</div>
)
}
Buttons.propTypes = {
}
export default... |
packages/material-ui-icons/src/FileUpload.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z" /></g>
, 'FileUpload');
|
src/App.js | SmarterServices/twilio-sync-browser | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import 'whatwg-fetch';
import JSONPretty from 'react-json-pretty';
class App extends Component {
constructor() {
super()
this.state = {
items:[],
showDetails:false,
details:[],
username: local... |
src/svg-icons/action/assignment.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignment = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-... |
packages/material-ui-icons/src/SpeakerPhone.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SpeakerPhone = props =>
<SvgIcon {...props}>
<path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 4.21l1.41 1... |
components/LoginArea.js | pigflymoon/geo-app | import React from 'react';
import {FormErrors} from './FormErrors';
export default class LoginArea extends React.Component {
constructor(props) {
super(props);
this.state = {
username: '',
email: '',
password: '',
formErrors: {email: '', username: ''... |
app/javascript/mastodon/features/account_timeline/components/header.js | kazh98/social.arnip.org | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import MovedNote from './moved_note';
import { FormattedMessage } fro... |
src/svg-icons/device/battery-charging-30.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging30 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M11 20v-5.5H7... |
src/routes/Home/components/HomeView.js | fhassa/my-react-redux-start-ki | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img alt='This is a duck, because Redux!' className='duck' src={DuckImage} />
</div>
)
export default HomeView
|
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js | in2core/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 from 'react';
import logo from './assets/logo.svg';
export default () => <img id="feature-svg-inclusion" src={logo} alt="l... |
public/containers/ApplicationPage/UserNotFoundModal.js | ninjiangstar/hackSChedule | import React from 'react';
import { Link } from 'react-router';
import classnames from 'classnames';
const UserNotFoundModal = props => (
<section className={classnames('modal')}>
<h1 style={{ textAlign: 'center', margin: 100 }}>
User does not exist. <Link to={`/`}>Go back.</Link>
</h1>
</section>
);
export ... |
src/svg-icons/action/get-app.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGetApp = (props) => (
<SvgIcon {...props}>
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</SvgIcon>
);
ActionGetApp = pure(ActionGetApp);
ActionGetApp.displayName = 'ActionGetApp';
ActionGetApp.... |
blueocean-material-icons/src/js/components/svg-icons/action/lock.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionLock = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-... |
src/parser/hunter/beastmastery/modules/spells/MultiShotSingleTarget.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
/**
* Tracks the amount of multi-shot casts that did not trigger any beast cleave damage
*
* Example log: https://www.warcraftlogs.com/reports/zjgLyKdZnhMkPJDq#fight=... |
src/svg-icons/maps/local-library.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLibrary = (props) => (
<SvgIcon {...props}>
<path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-... |
app/components/widgets/SecondsToGo.js | wbowling/deciderer | import React from 'react'
const SecondsToGo = React.createClass({
propTypes: {
end: React.PropTypes.number.isRequired
},
getInitialState() {
return this.getNewState(this.props.end)
},
componentDidMount() {
this.interval = setInterval(this.tick, 1000)
},
componentWillUnmount() {
clearIn... |
examples/material/src/index.js | prescottprue/redux-firebasev3 | import React from 'react' // eslint-disable-line
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from './store/configureStore'
import { browserHistory } from 'react-router'
import { Route, IndexRoute, Router } from 'react-router'
import Account from './containers/Account/Ac... |
app/components/Header/index.js | mmaedel/react-boilerplate | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
app/containers/AdminCommunication/containers/CommunicationsHistorique.js | Proxiweb/react-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { List, ListItem } from 'material-ui/List';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import TrashIcon... |
src/js/components/icons/base/Ascend.js | odedre/grommet-final | /**
* @description Ascend SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pro... |
app/javascript/mastodon/features/compose/containers/warning_container.js | robotstart/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import Warning from '../components/warning';
import { createSelector } from 'reselect';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { OrderedSet } f... |
app/javascript/mastodon/features/blocks/index.js | masto-donte-com-br/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
src/app/src/assets/specializations/Tutorial.js | istreight/eggbeatr | /**
* FILENAME: Tutorial.js
* AUTHOR: Isaac Streight
* START DATE: May 28th, 2018
*
* This file contains the Tutorial class, a specialization class for the
* tutorial descriptions of the application.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
i... |
src/svg-icons/navigation/first-page.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFirstPage = (props) => (
<SvgIcon {...props}>
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
</SvgIcon>
);
NavigationFirstPage = pure(NavigationFirstPage);
NavigationFirstPag... |
client/components/settings/emails/report-list.js | bnjbvr/kresus | import React from 'react';
import { connect } from 'react-redux';
import { translate as $t } from '../../../helpers';
import { get, actions } from '../../../store';
import { MODAL_SLUG } from './report-form-modal';
import ReportItem from './report-item';
const ShowReportCreationModal = connect(
null,
dispatc... |
src/uic/Icon.js | ajaycheenath/earthquake | import React, { Component } from 'react';
class Icon extends Component {
static propTypes = {
styleClass: React.PropTypes.string.isRequired,
onClick: React.PropTypes.func,
name: React.PropTypes.string.isRequired,
};
handleClick = ()=> {
const {onClick} = this.props;
if(onClick) {... |
examples/js/complex/demo.js | echaouchna/react-bootstrap-tab | require('./demo.css');
import React from 'react';
import App from './app';
class Demo extends React.Component {
render() {
return (
<div className='col-md-offset-1 col-md-8'>
<div className='panel panel-default'>
<div className='panel-heading'>A Complex Example</div>
<h5>Source ... |
examples/shared-root/app.js | cgrossde/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the URL.
When routes have no path, they never match themselves but their
chil... |
src/config/routes.js | quickerchan/quicker | import React from 'react'
import auth from './auth'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import App from '../App'
import Introduction from '../modules/Introduction'
import SignIn from '../modules/SignIn'
import Dashboard from '../modules/Dashboard'
import CreateGroup from '../modules... |
packages/node_modules/@webex/react-component-add-file-button/src/index.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon, {ICONS} from '@webex/react-component-icon';
import styles from './styles.css';
const propTypes = {
onChange: PropTypes.func
};
const defaultProps = {
onChange: () => {}
};
function AddFileButton(prop... |
src/Parser/DeathKnight/Frost/Modules/Items/Tier21_2p.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber } from 'common/format';
import ItemDamageDone f... |
src/names/selected/comments/CommentsList.js | VasilyShelkov/ClientRelationshipManagerUI | import React, { Component } from 'react';
import Subheader from 'material-ui/Subheader';
import IconButton from 'material-ui/IconButton';
import InsertCommentIcon from 'material-ui/svg-icons/editor/insert-comment';
import { green500 } from 'material-ui/styles/colors';
import LoadingSpinner from '../../../shared/Loading... |
web-server/v0.4/src/pages/RunComparison/index.js | atheurer/pbench | import React from 'react';
import { connect } from 'dva';
import jschart from 'jschart';
import {
Row,
Col,
Card,
Select,
Tabs,
Spin,
Tag,
Table,
Button,
Form,
Modal,
Input,
Switch,
message,
} from 'antd';
import { ResponsiveBar } from '@nivo/bar';
import DescriptionList from 'ant-design-pro... |
src/Popup.js | dantman/react-leaflet | import React from 'react';
import { popup } from 'leaflet';
import latlngType from './types/latlng';
import MapComponent from './MapComponent';
export default class Popup extends MapComponent {
static propTypes = {
position: latlngType
};
componentWillMount() {
super.componentWillMount();
const { c... |
src/components/Descriptor.js | kyledavid/rock-genius | import PropTypes from 'prop-types'
import React from 'react'
const Descriptor = props => (props.active ? <div className="description">
<p><span className="descriptor-label">Hold Description </span>{props.description}</p>
<p><span className="descriptor-label">Used as foothold? </span>
{props.isFoot ? 'Yes' : 'N... |
examples/sites/index.js | NE-LOAN-FED/NE-Component | import React from 'react'
import ReactDom from 'react-dom'
import routes from './routes.js'
console.log(routes)
import { Router, Route, IndexRoute, hashHistory } from 'react-router'
const root = document.getElementById('root')
ReactDom.render((
<Router history={hashHistory} routes={routes} >
</Router>
), root)
|
JS/Classes/Module/Invoke/text-cursor-pos-example.js | joggerplus/ReactNativeRollingExamples | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
TextInput,
TouchableOpacity
} from 'react-native';
var Invoke = require('../../../Vendor/react-native-invoke/');
export default class TextCursorPosExample extends Component {
constructor(props) {
super(props);
this.... |
examples/with-apollo-and-redux/components/PostUpvoter.js | giacomorebonato/next.js | import React from 'react'
import { gql, graphql } from 'react-apollo'
function PostUpvoter ({ upvote, votes, id }) {
return (
<button onClick={() => upvote(id, votes + 1)}>
{votes}
<style jsx>{`
button {
background-color: transparent;
border: 1px solid #e4e4e4;
c... |
blog-post-4/src/www/js/index.js | training4developers/react-flux-blog | 'use strict';
const demos = [
{
name: 'React.js Render Demo',
description: 'Demonstrates how React renders the DOM for the purposes of unit testing.',
url: 'render-demo.html'
},
{
name: 'React.js Event Demo',
description: 'Demonstrates how React handles events for the purposes of unit testing.',
url: 'e... |
examples/dynamic-form-fields/app.js | christianalfoni/formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import { Form } from 'formsy-react';
import MyInput from './../components/Input';
import MySelect from './../components/Select';
import MyRadioGroup from './../components/RadioGroup';
import MyMultiCheckboxSet from './../components/MultiCheckboxSet';
const ... |
app/containers/root.js | mersocarlin/connect-4 | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, PropTypes as RouterPropTypes } from 'react-router';
import configureStore from '../store/configureStore';
import routes from '../routes';
const store = configureStore();
export default class Root extends Component {
... |
web-server/v0.4/src/components/SiderMenu/index.js | gurbirkalsi/pbench | import 'rc-drawer/assets/index.css';
import React from 'react';
import DrawerMenu from 'rc-drawer/lib';
import SiderMenu from './SiderMenu';
const SiderMenuWrapper = props => {
const { isMobile, collapsed } = props;
return isMobile ? (
<DrawerMenu
getContainer={null}
level={null}
handleChild=... |
app/components/LoginForm.js | rick-maclean/dbl-upldr-electron-react-simmering | // @flow
import React, { Component } from 'react';
// import PropTypes from 'prop-types';
// import { Link } from 'react-router-dom';
// import styles from './LoginForm.css';
class LoginForm extends Component {
props: {
onTryText: () => void,
subHandleLogin: () => void,
onChangeTextToHome: () => void,
... |
src/components/UpdateButton/UpdateButton.js | jeffdowdle/l-systems | import React from 'react';
import './update-button.scss';
const UpdateButton = ({
onClick,
label,
}) => (
<button
styleName="update-button"
onClick={onClick}
>
{label}
</button>
);
export default UpdateButton;
|
src/svg-icons/editor/insert-link.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3... |
src/game/game.js | JithuTholoor/Tic-Tac | import React, { Component } from 'react';
import Board from './../board/board';
class Game extends Component {
render() {
return (
<section className="game">
<Board/>
</section>
);
}
}
export default Game;
|
websocket/client/Client/index.ios.js | prayuditb/tryout-01 | import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import App from './app';
export default class Client extends Component {
render() {
return (
<App />
);
}
}
AppRegistry.registerComponent('Client', () => Client); |
src/svg-icons/navigation/cancel.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationCancel = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7... |
examples/components/RadioGroup.js | aesopwolf/formsy | import React from 'react';
import Formsy from 'formsy-react';
const MyRadioGroup = React.createClass({
mixins: [Formsy.Mixin],
componentDidMount() {
const value = this.props.value;
this.setValue(value);
this.setState({ value });
},
changeValue(value) {
this.setValue(value);
this.setState(... |
api/app/components/activities/tags.js | cmilfont/zonaextrema | import React from 'react';
import TagEdit from './tagedit.js'
export default function TagsCard( {description='',editHandler} ) {
const createTag = (tag, index) =>
<TagEdit key={`tag${index}`} description={tag} editHandler={editHandler} />;
const list = description.split(' ')
.map( cre... |
src/components/Graphics.js | cannc4/Siren | // import React from 'react';
// import {
// inject,
// observer
// } from 'mobx-react';
// import _ from 'lodash';
// // CSS Imports
// import '../styles/App.css';
// import '../styles/Layout.css';
// import '../styles/Home.css';
// import {
// shaders
// } from './shaders/shaders';
// import ... |
client/src/containers/AppView.js | scandalouswool/rally | import React, { Component } from 'react';
import io from 'socket.io-client';
import NavbarView from '../components/NavbarView';
import Promise from 'bluebird';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { createdSocket,
updateProjects,
updateWorkers,
... |
src/components/Movies.js | apvilkko/redux-selectors-demo | import React from 'react';
import {connect} from 'react-redux';
import {loadMovies} from '../actions/loader';
import {getIds, isMoviesLoading} from '../selectors/movies';
import Actions from './Actions';
import Movie from './Movie';
const MovieList = ({ids}) => (
<div className="movies">
{ids.map((id, i... |
src/components/Minefield.js | LukeGeneva/react-sweeper | import React from 'react';
import {connect} from 'react-redux';
import Cell from './Cell';
import {sweepCell} from '../actions/gameActions';
class Minefield extends React.Component {
onCellSweep(cell) {
this.props.sweepCell(cell);
}
render() {
return (
<div>
{this.props.field.map((row, in... |
packages/web/examples/ReactiveListWithAggregation/src/index.js | appbaseio/reactivesearch | import React from 'react';
import ReactDOM from 'react-dom';
import {
ReactiveBase,
DataSearch,
ReactiveList,
ResultCard,
SelectedFilters,
} from '@appbaseio/reactivesearch';
import './index.css';
const Main = () => (
<ReactiveBase
app="carstore-dataset"
url="https://a03a1cb71321:75b6603d-9456-4a5a-af6b-a4... |
app/src/pages/SkillTestReport/AnswersWidget.js | fikrimuhal/animated-potato | /**
* Created by MYigit on 27.9.2016.
*/
import React from 'react'
import * as s from '../../layouts/style'
import log2 from '../../utils/log2'
import * as _ from 'lodash'
import colors from '../../utils/material-colors'
const log = log2("AnswersWidget")
const styles = {
userLabel: {
fontSize: "9px",
... |
src/svg-icons/places/room-service.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRoomService = (props) => (
<SvgIcon {...props}>
<path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z"... |
packages/next/shared/lib/loadable.js | zeit/next.js | /**
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, c... |
src/containers/Asians/Published/Debaters/DebaterRoster/LargeDebaterRoster.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Card, {
CardContent
} from 'material-ui/Card'
import Table, {
TableHead,
TableCell,
TableRow,
TableBody
} from 'material-ui/Table'
export default connect(mapStateToProps)(({
debaters,
teamsById,
institutionsById
}) => {
debaters.... |
src/svg-icons/image/assistant.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistant = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11... |
src/index.js | jtegtmeier/react-comment-hub | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/MasonryComp.js | user1990/react-resource-center | import filter from 'lodash/filter'
import React from 'react'
import Masonry from 'react-masonry-component'
import { GenericCard } from './../components/GenericCard'
import FlatButton from 'material-ui/FlatButton'
import DownloadIcon from './DownloadIcon'
import { logEvent } from '../utils/analytics'
const MasonryComp ... |
components/Board/Board.js | vasco3/puzzles-from-brussles | import HTML5Backend from 'react-dnd-html5-backend';
import Piece from '../Piece/Piece'
import React from 'react'
import Square from '../Square/Square'
import { DragDropContext } from 'react-dnd';
function Board(props) {
// Collection of pieces indexed by their position for quicker access.
const piecesByPosition =... |
packages/veritone-react-common/src/components/DataPicker/FolderViewContainer/FolderGridView/index.js | veritone/veritone-sdk | import React from 'react';
import { arrayOf, func, objectOf, bool } from 'prop-types';
import cx from 'classnames';
import { makeStyles } from '@material-ui/styles';
import itemShape from '../itemShape';
import GridviewItem from './GridViewItem';
import styles from './styles';
const useStyles = makeStyles(styles);
... |
ajax/libs/react-instantsearch/4.1.0-beta.4/Connectors.js | pvnr0082t/cdnjs | /*! ReactInstantSearch 4.1.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
src/index.js | samlawrencejones/react-starter | import React from 'react'
import {render} from 'react-dom'
import {Provider} from 'react-redux'
import {createStore} from 'redux'
import './index.scss'
import App from './components/app'
import todoApp from './reducers'
let reactElement = document.getElementById('root')
let store = createStore(todoApp)
render(
<Pr... |
src/utils/createContextWrapper.js | lo1tuma/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;
}... |
src/parser/warrior/arms/modules/features/RageDetails.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Panel from 'interface/others/Panel';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatPercentage } from 'common/format';
import Icon from 'common/Icon';
import ResourceBreakdown from 'parser/share... |
js/jqwidgets/demos/react/app/dropdownlist/saveloadselectionusingcookies/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
class App extends React.Component {
componentDidMount() {
this.refs.myDropDownList.on('select', (event) => {
// save the index in cookie.
$.... |
client/src/app/admin/panel/articles/admin-panel-list-articles.js | opensupports/opensupports | import React from 'react';
import i18n from 'lib-app/i18n';
import ArticlesList from 'app-components/articles-list';
import Header from 'core-components/header';
class AdminPanelListArticles extends React.Component {
render() {
return (
<div className="admin-panel-list-articles">
... |
src/index.js | FIL1994/MusicGame | /**
* @author Philip Van Raalte
* @date 2017-10-07.
*/
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 {startSession, getDateTime, initSession} from './ng/NG_Connect';
i... |
docs/app/Examples/elements/Button/Variations/ButtonExampleVerticallyAttachedGroup.js | clemensw/stardust | import React from 'react'
import { Button, Segment } from 'semantic-ui-react'
const ButtonExampleVerticallyAttachedGroup = () => (
<div>
<Button.Group attached='top'>
<Button>One</Button>
<Button>Two</Button>
</Button.Group>
<Segment attached>
<img src='http://semantic-ui.com/images/wir... |
website/core/WebPlayer.js | Purii/react-native | /**
* Copyright (c) 2015-present, 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.
*
* @provides... |
src/svg-icons/action/view-module.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewModule = (props) => (
<SvgIcon {...props}>
<path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/>
</SvgIcon>
);
ActionViewModule = pure(ActionViewModule)... |
src/routes/index.js | slightlytyler/bernie-tax-viz | /* eslint no-unused-vars: [2, {"argsIgnorePattern": "store"}] */
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import IndexLayout from 'pods/index/layout';
import ShareLayout from 'pods/share/layout';
export default (store) => (
<Route path="/">
<IndexRoute component={IndexLayout... |
client/scripts/components/config/customize-notifications/cancel-button/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your ... |
admin/client/App/shared/Popout/index.js | giovanniRodighiero/cms | /**
* A Popout component.
* One can also add a Header (Popout/Header), a Footer
* (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane).
*/
import React from 'react';
import Portal from '../Portal';
import Transition from 'react-addons-css-transition-group';
const SIZES = {
arrowHeight: 12,
arrowWidth: ... |
src/components/Row.js | csreyes/tic-tac-toe | import React from 'react'
const Row = ({columns}) => (
<div className="row">
{columns}
</div>
)
export default Row |
examples/universal/client/index.js | actano/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
const rootElement = do... |
src/PaginationButton.js | cgvarela/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import createSelectedEvent from './utils/createSelectedEvent';
import CustomPropTypes from './utils/CustomPropTypes';
const PaginationButton = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
... |
js/components/smartListView/smartListView.js | dima11221122/63pokupki-react-native | import React, { Component } from 'react';
import { ListView, View } from 'react-native';
import { Button } from 'native-base';
import { Map } from 'immutable';
import listViewStyle from '../../themes/list-view';
import Loading from '../loading';
import { connect } from 'react-redux';
class SmartListView extends Compon... |
src/templates/articles/components/ArticleContent.js | PatrickHai/react-client-changers | import React from 'react';
class ArticleContent extends React.Component{
render(){
return (
<article className='W_innerWrap'>
<div dangerouslySetInnerHTML={{__html: this.props.content}} />
</article>
)
}
}
export default ArticleContent; |
1/App.js | roylee0704/petulant-turtle | import React from 'react';
class App extends React.Component {
render() {
return (
<div>Hello World</div>
);
}
}
export default App;
|
app/javascript/mastodon/features/ui/components/report_modal.js | tri-star/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { expandAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pro... |
src/svg-icons/action/view-day.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewDay = (props) => (
<SvgIcon {...props}>
<path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"/>
</SvgIcon>
);
ActionViewDay = pure(A... |
packages/material-ui-icons/legacy/FormatColorText.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".36" d="M0 20h24v4H0z" /><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z" /></React.Fragment>
, 'FormatColorText');
|
client/index.js | 08martinm/Personal-Site | import 'babel-polyfill'
import { trigger } from 'redial'
import React from 'react'
import ReactDOM from 'react-dom'
import Router from 'react-router/lib/Router'
import match from 'react-router/lib/match'
import browserHistory from 'react-router/lib/browserHistory'
import { Provider } from 'react-redux'
import { StyleS... |
src/svg-icons/action/loyalty.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLoyalty = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.