path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
react-flux-mui/js/material-ui/src/svg-icons/action/touch-app.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTouchApp = (props) => (
<SvgIcon {...props}>
<path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.... |
packages/mineral-ui-icons/src/IconFilterHdr.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFilterHdr(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
src/svg-icons/av/featured-play-list.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFeaturedPlayList = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/>
</SvgIcon>
);
AvFeaturedPlayList = pu... |
test/helpers/shallowRenderHelper.js | xincyang/test-gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/components/Dice.js | danialm/backgammon | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Dice extends Component {
render() {
const dice = [this.props.die1, this.props.die2].map((v, i) => {
return(
<li key={i} className={'die number-' + v}></li>
)
});
return(
<ul className='dice'>{di... |
src/components/Feedback/Feedback.js | solome/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedba... |
src/svg-icons/av/new-releases.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNewReleases = (props) => (
<SvgIcon {...props}>
<path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.1... |
app/static/js/components/ErrorPage.js | NordicSHIFT/NordicSHIFT | import React, { Component } from 'react';
class ErrorPage extends Component {
render() {
return (
<div>
<h1>Error!</h1>
<p>Either this page does not exist or you do not have authorization to be here.</p>
<img src={require("./../../img/goat1.png")} alt="Goat Image" />
</div>
... |
src/containers/square_grid.js | JAstbury/react-simple-game | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Square from './square';
import _ from 'lodash';
class SquareGrid extends Component {
renderSquares() {
var squares = [];
for (var i = 0; i < this.props.squares; i++) {
if (this.props.activeSquare == i) {
squ... |
shared/routes.js | ITJacob/glory | import { Route, IndexRoute } from 'react-router';
import React from 'react';
import App from './container/App';
import PostContainer from './container/PostContainer/PostContainer';
import PostDetailView from './container/PostDetailView/PostDetailView';
const routes = (
<Route path="/" component={App} >
<IndexRou... |
spa/pages/create-project.js | chadwilcomb/routemap2 | import React from 'react';
import app from 'ampersand-app'
import ampersandMixin from 'ampersand-react-mixin';
import MessagePage from './message';
export default React.createClass({
mixins: [ampersandMixin],
displayName: 'ProjectCreatePage',
onSubmitForm (event) {
event.preventDefault();
... |
src/index.js | kade042/kanban_board_app | import React from 'react';
import { render }from 'react-dom';
import App from './App';
const rootEl = document.getElementById('root');
render(
<App />,
rootEl
);
|
src/containers/AdminContainer.js | LondonCityAC/sprint-admin-app | import React from 'react'
export default class AdminContainer extends React.Component {
componentWillMount() {
console.log('will mount');
}
render() {
return(
<div>{this.props.children}</div>
)
}
}
|
src/components/topics/TopicCardGrid.js | zebras-filming-videos/streamr-web | import React from 'react'
import { TopicCard } from './TopicCard'
var listCards = (topics) => {
return topics.map((topic) => {
return (
<TopicCard className='grid-card' topic={topic} key={topic.id} />
)
})
}
export default ({
children,
className = '',
topics,
...rest
}) => (
<div classNam... |
packages/stockflux-launcher/src/free-text-search/SearchButton.js | ScottLogic/bitflux-openfin | import React from 'react';
import Components from 'stockflux-components';
export default ({ searchButtonRef, handleSearchClick }) => (
<span className="icon" ref={searchButtonRef}>
<Components.Buttons.Borderless onClick={handleSearchClick}>
<Components.Icons.Launcher.SearchIcon className="searchSVG" />
... |
src/svg-icons/av/branding-watermark.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
app/containers/EntitiesList/index.js | chenhunghan/deleuzian-affection-image | /*
*
* EntitiesList
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { selectEntitiesList, selectCluster } from './selectors';
import styles from './styles.css';
import {changeHighlightEntity} from './actions'
import {GET_EMOTION_REQUESTED} from '../EntitiesList/constants'
import flatt... |
src/app/_client.js | tuxsudo/react-starter | import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import routes from './routes.js';
import getStore from './store.js';
const store = getStore();
const hist... |
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js | hzy87email/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import classNames from 'classnames';
import DialogStore from 'stores/DialogStore';
export default React.createClass({
mixins: [PureRenderMixin],
getInitialState() {
return {
typing: null,
show: false
};
},
compon... |
app/js/wallet/components/ConfirmTransactionModal.js | blockstack/blockstack-browser | import React from 'react'
import PropTypes from 'prop-types'
import Modal from 'react-modal'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { AccountActions } from '../../account/store/account'
import { summarizeTransactionFromHex, satoshisToBtc } from '../../utils/bitcoin-utils... |
js/jqwidgets/demos/react/app/dropdownlist/fluidsize/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 {
render() {
let source = [
'Affogato',
'Americano',
'Bicerin',
'Breve',
... |
Examples/DashSample/index.vr.js | ichengde/react-vr | /**
* The examples provided by Oculus are for non-commercial testing and
* evaluation purposes only.
*
* Oculus reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* F... |
frontend/src/components/Report.js | Magomogo/space-oddity | import React from 'react';
import { Table } from 'react-bootstrap';
import Transaction from './Transaction';
import Money from './Money';
export default (props) => {
const {listOfTransactions} = props,
wallet = listOfTransactions[0] && listOfTransactions[0].wallet;
return (
<Table striped bo... |
app/javascript/mastodon/components/setting_text.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
components/animals/lemurBelocely.child.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/lemurBelocely/01.j... |
app/components/Dashboard/SettingsViews/General.js | cdiezmoran/AlphaStage-2.0 | import React from 'react';
import { bool, func, string } from 'prop-types';
import uuid from 'uuid/v4';
import styles from './styles.scss';
const releaseOptions = [
'Released - Game is ready.',
'Beta - Some aspects of the game need polishing.',
'Alpha - Some of the main features are yet to be added.',
'Demo - ... |
app/routes/Home/components/HomeView.js | ming-soon/mern-starter | import React from 'react'
import reactLogo from 'Public/react-logo.png'
import Style from '../style.scss'
export default () => (
<div>
<h1>Welcome to MERN Start!</h1>
<div className={Style.reactLogo}>
<img src={reactLogo} className="img-responsive" alt="react-logo" />
</div>
</div>
)
|
src/components/Address.js | jhkmjnhamster/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
import { Table } from 'antd'
@translate(['wallet'], { wait: true })
@inject('gui', 'wallet')
@observer
class Address extends React.Component {
constructor (props) {
super(props)
this.t = props.t
... |
src/svg-icons/communication/voicemail.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationVoicemail = (props) => (
<SvgIcon {...props}>
<path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3... |
src/react/LogMonitorEntryAction.js | madole/redux-devtools | import React from 'react';
import JSONTree from 'react-json-tree';
const styles = {
actionBar: {
paddingTop: 8,
paddingBottom: 7,
paddingLeft: 16
},
payload: {
margin: 0,
overflow: 'auto'
}
};
export default class LogMonitorAction extends React.Component {
renderPayload(payload) {
r... |
src/routes/Home/components/rating/Rating.js | stock-the-prices/frontend | import React from 'react'
import 'whatwg-fetch'
import {Line, defaults} from 'react-chartjs-2'
import RangeSelector from './rangeSelector'
function createDataSet (dataArray) {
return [{
fill: false,
lineTension: 0.1,
backgroundColor: 'rgba(75,192,192,0.4)',
borderColor: 'red',
borderCapStyle: 'bu... |
src/routes/main.js | yeso126/yesojs.com | import React from 'react';
import EasyTransition from 'react-easy-transition';
import {Link, IndexRoute} from 'react-router';
var Main = React.createClass ({
render(){
return (
<div>
<nav className="nav">
<ul>
<Link to="/">Home</Link>
<Link to="/posts">Posts</Link>... |
packages/material-ui-icons/src/RotateLeft.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let RotateLeft = props =>
<SvgIcon {...props}>
<path d="M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-... |
src/svg-icons/action/visibility.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibility = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-... |
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Experiment/Contests/ContestComponent.js | Zephyrrus/ubb | import React from 'react';
import {
View,
TouchableOpacity,
StyleSheet,
Text,
} from 'react-native';
import PropTypes from 'prop-types'
import ImageComponent from '../../common/ImageComponent';
export default ContestComponent = (props) => {
const {
name,
formattedTime,
im... |
src/PopupContainer.js | snario/react-mapbox-gl | import React from 'react';
import MapLayer from './MapLayer';
export default class PopupContainer extends MapLayer {
render() {
const children = this.getClonedChildrenWithMap({
popupContainer: this.leafletElement
});
return <div style={{display: 'none'}}>{children}</div>;
}
}
|
test/utilities/index.js | SUI-Components/sui-card | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
export function createComponent(component){
return class ChildComponent extends React.Component{
render() {
return(component);
}
};
}
export function shallowRender(component, props, ...children) {
const shallowRendere... |
src/routes/Login/components/Login.js | crackHu/react-kit | import React from 'react'
import { Form, Icon, Input, Button, Checkbox } from 'antd';
import './Login.scss'
import { login } from 'fetch'
import { setCookie } from 'utils'
const FormItem = Form.Item;
class NormalLoginForm extends React.Component {
static contextTypes = {
router: React.PropTypes.object.isRequired
... |
app/jsx/assignments_2/teacherIndex.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - 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... |
components/Modal/WithCross.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import cx from 'classnames';
import Window from './Window';
import m from '../../globals/modifiers.css';
import noop from '../../utils/noop';
import css from './WithCross.css';
import Icon from '../Icon/Icon';
import BtnContainer from '../Bt... |
packages/mineral-ui-icons/src/IconWidgets.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconWidgets(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
src/example/Example.js | cht8687/mingify | import React, { Component } from 'react';
import { render } from 'react-dom';
import Display from './Display';
class App extends Component {
constructor(props) {
super(props);
this.state = {
text: 'Angular'
}
}
render() {
const { text } = this.state;
return (
<div>
<in... |
src/components/Tabs.js | ryanwade/react-foundation-components | import React from 'react';
import { Tabs as featureSet } from '../utils/componentFeatures';
const Tabs = ({ children, ...props }) => {
return (
<ul className={featureSet.getClassNames(props, "tabs")}>
{children}
</ul>
);
};
Tabs.propTypes = featureSet.getPropTypes();
Tabs.defaultPr... |
src/server.js | philiplopez/webappjourney | import path from 'path'
import express from 'express'
import React from 'react'
import {renderToString, renderToStaticMarkup} from 'react-dom/server'
import {match, RouterContext} from 'react-router'
import Helmet from 'react-helmet'
import HtmlTemplate from './htmlTemplate'
import routes from './routes'
const app = e... |
pilgrim3/components/optionsPopover.js | opendoor-labs/pilgrim3 | import React from 'react'
import { OverlayTrigger, Popover, Glyphicon } from 'react-bootstrap'
import { isEmpty, forEach } from 'lodash'
export default class OptionsPopover extends React.Component {
renderOptionRows(opts, id) {
let rows = [];
forEach(opts, (val, name) => {
rows.push(
<tr key={... |
src/components/NoMatch.js | yyssc/ssc30-admin | import React from 'react';
export default class NoMatch extends React.Component {
render() {
return (
<div>404, 你要请求的内容未找到...</div>
);
}
};
|
docs/src/app/components/pages/components/List/ExampleSettings.js | andrejunges/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import Checkbox from 'material-ui/Checkbox';
import Toggle from 'material-ui/Toggle';
const style... |
src/js/components/video/ProgressBar.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Box from '../Box';
import CSSClassnames from '../../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.VIDEO;
export defa... |
fluxible-router/components/Html.js | ybbkrishna/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import ApplicationStore from '../stores/ApplicationStore';
class HtmlComponent extends React.Component {
render() {
return (
<html>
... |
src/ListItem/__tests__/ListItemAction_test.js | kmees/react-fabric | import React from 'react'
import { render } from 'enzyme'
import test from 'tape'
import ListItemAction from '../ListItemAction.js'
test('ListItemAction', t => {
t.ok(ListItemAction, 'export')
t.end()
})
test('ListItem#render - simple', t => {
const container = render(
<ListItemAction glyph="star" />
).... |
src/js/components/icons/base/Home.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
app/index.js | mohit181191/ixigo-board | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { AppContainer } from 'react-hot-loader';
import configureStore from './store/configureStore';
import Root from './cont... |
examples/dynamic-form-fields/app.js | bitgaming/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 ... |
src/components/Register/InstitutionSelector.js | TalentedEurope/te-app | import React from 'react';
import {
FlatList,
Modal,
Platform,
StyleSheet,
TextInput,
Text,
TouchableOpacity,
View,
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import I18n from '../../i18n/i18n';
import COMMON_STYLES from '../../styles/common';
import { normalizeTex... |
react/features/app/components/App.native.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import SplashScreen from 'react-native-splash-screen';
import { DialogContainer } from '../../base/dialog';
import { updateFlags } from '../../base/flags/actions';
import { CALL_INTEGRATION_ENABLED, SERVER_URL_CHANG... |
src/parser/warrior/fury/modules/items/PrePotion.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemLink from 'common/ItemLink';
import Analyzer from 'parser/core/Analyzer';
import SUGGESTION_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE';
const debug = false;
const PRE_POTIONS = [
SPELLS.POTION_OF_BURSTI... |
ajax/libs/react-instantsearch/4.5.1/Dom.js | sashberd/cdnjs | /*! ReactInstantSearch 4.5.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
client/app.js | chen844033231/react-workflow | import React from 'react'
import ReactDOM from 'react-dom'
import normalize from 'normalize.css'
import {Provider} from 'react-redux'
import {Router, browserHistory as history} from 'react-router'
import routes from './routes'
import configureStore from './store/configureStore'
const store = window.store = configureSt... |
components/list/ListItem.js | rubenmoya/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import { LIST } from '../identifiers';
import InjectListItemContent from './ListItemContent';
import InjectListItemLayout from './ListItemLayout';
import rippleFactory from '../ripple/Ripple';
const f... |
src/parser/priest/holy/modules/checklist/Component.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
// import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
// import ItemLink from 'common/ItemLink';
import ResourceLink from 'common/ResourceLink';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
... |
src/js/components/ui/Modals/Modal.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
app/containers/App/index.js | oliv37/vocab-front | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/components/loading/LoadingLemma/LoadingLemma.js | CtrHellenicStudies/Commentary | import React from 'react';
const LoadingLemma = () => (
<div className="comment-outer comment-lemma-comment-outer">
<article className="comment lemma-comment paper-shadow">
<div className="lemma-loading">
<div className="lemma-loading-top" />
<div className="lemma-loading-bottom" />
</div>
</articl... |
src/index.js | WaSa42/whatcolorisit | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import thunkMiddleware from 'redux-thunk'
import { createStore, applyMiddleware } from 'redux'
import App from './App';
import { reducer } from './Clock';
const store = createStore(
reducer,
applyMiddleware(
... |
src/svg-icons/editor/border-top.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderTop = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h... |
src/ButtonGroup.js | andrew-d/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... |
src/svg-icons/action/turned-in-not.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTurnedInNot = (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-2zm0 15l-5-2.18L7 18V5h10v13z"/>
</SvgIcon>
);
ActionTurnedInNot = pure(ActionTurnedInNo... |
node_modules/enzyme/src/ShallowTraversal.js | ajames72/MovieDBReact | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import {
coercePropValue,
propsOfNode,
isSimpleSelector,
splitSelector,
selectorError,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
} from './Utils';
export function childrenOfNode(n... |
src/App.js | Shereminskiy/reactReduxProJect | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
client/components/FormInput.js | dmolin/two-factor-auth | import React from 'react'
const FormInput = (props) => {
const { input, label, type, id, placeholder, className, meta: { touched, error, warning }} = props
const classes = `form-input ${className}`
return (
<div className={classes}>
<label htmlFor={id} className="form-label">{label}</label>
<inp... |
examples/ssr-caching/pages/blog.js | callumlocke/next.js | import React from 'react'
export default class extends React.Component {
static getInitialProps ({ query: { id } }) {
return { id }
}
render () {
return <div>
<h1>My {this.props.id} blog post</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tem... |
node_modules/react-bootstrap/es/MediaLeft.js | rblin081/drafting-client | 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/components/common/Bubbles.js | JoaoCnh/picto-pc | import React, { Component } from 'react';
import styles from './Common.css';
export default class Bubbles extends Component {
render() {
return (
<div className={styles.bubbles}>
<li />
<li />
<li />
<li />
<li />
... |
src/components/partials/LegacyCard.js | MattMcFarland/codepix-client | import React from 'react';
import { PastaLink, Expander, Icon } from './Elements';
const hljs = require('highlight.js');
function highlight(txt) {
return {__html: hljs.highlightAuto(txt).value};
}
function windowPath() {
return window.location.protocol + '//' +
window.location.host + '/';
}
export const Le... |
app/js/components/ManageRoot/UserManage.js | arcsecw/myfd | import React from 'react';
import {
Table,
Badge,
Dropdown,
Icon,
} from 'amazeui-react'
import PageContainer from '../PageContainer';
import auth from '../auth';
const UserManage = React.createClass({
getInitialState() {
return {
dataSource: {re:[{"user_name":"ffff","user_role"... |
test/client/app/components/pages/admin/test-admin.js | LINKIWI/apache-auth | import {shallow} from 'enzyme';
import React from 'react';
import test from 'tape';
import {Admin} from '../../../../../../src/client/app/components/pages/admin';
test('Admin wraps blacklist and fingerprints', (t) => {
const admin = shallow(
<Admin isLoading={true} />
);
t.equal(admin.find('AdminBlacklist'... |
client/src/Utils/enums.js | gfpaiva/socketpo | import React from 'react';
import Avatar from 'avataaars';
import {
Rock,
Paper,
Scissors,
} from '../Components/Icons/Icons';
const statusValues = {
0: 'Stand By',
1: 'In progress',
2: 'Finished'
};
const playValues = {
0: 'Miss Play',
1: 'Rock',
2: 'Paper',
3: 'Scissors'
};
const playIcons = {
1: <Rock... |
app/src/MovePicker.js | struz/smash-move-viewer | import React, { Component } from 'react';
import axios from 'axios';
// Order of regexes in this list is the order that moves will be placed
// into the move move picker
const RELEVANT_MOVE_REGEXES = {
'Ground Attacks': [
// Jabs
/^Attack(?!Air)1[1-9].*$/, // Jabs
/^Attack(?!Air)100Start.*$/, ... |
generators/app/templates/client/src/index.js | tbehrsin/generator-react-native-cross-platform |
import React from 'react';
import {
Button,
Image,
AppRegistry,
StyleSheet,
Text,
View,
Platform,
StatusBar
} from 'react-native';
import PropTypes from 'prop-types';
import { MemoryRouter, Route, Redirect } from 'react-router-native';
import UserService from './services/user-service';
import Logo fro... |
react/features/settings/components/web/ProfileTab.js | gpolitis/jitsi-meet | // @flow
import Button from '@atlaskit/button/standard-button';
import { FieldTextStateless } from '@atlaskit/field-text';
import React from 'react';
import UIEvents from '../../../../../service/UI/UIEvents';
import {
sendAnalytics,
createProfilePanelButtonEvent
} from '../../../analytics';
import { AbstractD... |
app/javascript/mastodon/components/icon.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Icon extends React.PureComponent {
static propTypes = {
id: PropTypes.string.isRequired,
className: PropTypes.string,
fixedWidth: PropTypes.bool,
};
render () {
const { id, c... |
redux-serial-effects/src/counter/Container.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import * as actions from './actions'
export const Component = ({ counterValue, inc, dec }) => (
<div>
<button style={{ width: '50px' }} onClick={() => inc(1)}>
+
</button>
<span style={{ paddi... |
src/Alert.js | thealjey/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
source/client/render.js | halt-hammerzeit/react-isomorphic-render | import React from 'react'
import ReactDOM from 'react-dom'
import { isServerSidePreloaded, isServerSideRendered } from './flags'
// Performs client-side React application rendering.
// Takes `render()` function which renders the actual page.
// Then this rendered page is rendered in a `container`
// (e.g. Redux state... |
src/js/components/Threads/Filters/ChoiceAndMultipleChoicesFilter.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import SelectMultiple from '../../ui/SelectMultiple/SelectMultiple.js';
import SelectInline from '../../ui/SelectInline/SelectInline.js';
export default class ChoiceAndMultipleChoicesFilter extends Component {
static propTypes = {
... |
src/js/pages/ProfilePage.js | stormpath/stormpath-express-react-example | import React from 'react';
import DocumentTitle from 'react-document-title';
import { UserProfileForm } from 'react-stormpath';
export default class ProfilePage extends React.Component {
render() {
return (
<DocumentTitle title={`My Profile`}>
<div className="container">
<div className="r... |
learn/react/react-simple/src/App.js | fengnovo/diary | import React from 'react';
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom';
import './app.css';
const Home = () => (
<div>
<h2>Home</h2>
</div>
);
const About = () => (
<div>
<h2>About</h2>
</div>
);
const Topic = ({ match }) => (
<div>
... |
src/components/LoginForm/index.js | cantonjs/re-admin | import styles from './styles';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import routerStore from 'stores/routerStore';
import localize from 'hocs/localize';
import { Icon } from 'antd';
import { Form, Input, Submit } from 'components/Form';
@lo... |
src/svg-icons/action/perm-phone-msg.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermPhoneMsg = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2... |
examples/02 Drag Around/Naive/index.js | jowcy/react-dnd | import React, { Component } from 'react';
import Container from './Container';
import { Link } from 'react-router';
export default class DragAroundNaive extends Component {
constructor(props) {
super(props);
this.handleHideSourceClick = this.handleHideSourceClick.bind(this);
this.state = {
hideSour... |
example/index.android.js | moschan/react-native-flip-card | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
ScrollView
} from 'react-native';
import FlipCard from 'react-native-flip-card';
export default class FlipCardE... |
app/containers/App/index.js | mrboomer/personal-projects | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
packages/cp-frontend/src/router.js | yldio/copilot | import React from 'react';
import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom';
import styled from 'styled-components';
import { Header, Breadcrumb, Menu } from '@containers/navigation';
import Manifest from '@containers/manifest';
import Environment from '@containers/environment';
import {
De... |
docs/src/app/components/pages/components/AutoComplete/ExampleSimple.js | spiermar/material-ui | import React from 'react';
import AutoComplete from 'material-ui/AutoComplete';
export default class AutoCompleteExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
dataSource: [],
};
}
handleUpdateInput = (value) => {
this.setState({
dataSourc... |
src/svg-icons/communication/mail-outline.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMailOutline = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"/>
</SvgIcon>
)... |
hello world/1.7 - router/src/components/style.js | wumouren/react-demo | import React from 'react';
const StyleInfo = require('../less/style.less');
export default class StyleComponent extends React.Component {
constructor(){
super();
this.state = {
changeStyle: true
}
}
changeStyle(){
this.setState({
changeStyle: !this.s... |
src/index.js | ericyd/gdrive-copy | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
if (typeof window !== undefined) {
ReactDOM.render(<App />, document.getElementById('root'));
}
|
src/components/CheckboxGroup/RadioButtonGroupWithoutControls.js | wfp/ui | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
export default class FormWizard extends React.Component {
static propTypes = {
/**
* Specify a custom css class
* which is added to the container
*/
className: PropTypes.string,
/**
* S... |
components/animals/vyrVelky.adult.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/vyrVelky/01.jpg'),... |
js/jqwidgets/demos/react/app/navbar/righttoleftlayout/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxNavBar from '../../../jqwidgets-react/react_jqxnavbar.js';
class App extends React.Component {
render() {
return (
<JqxNavBar height={40} selectedItem={0} rtl={true}>
<ul>
<li>1</li>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.