path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
modules/RoutingContext.js | taion/rrtr | import React from 'react'
import RouterContext from './RouterContext'
import warning from './routerWarning'
const RoutingContext = React.createClass({
componentWillMount() {
warning(false, '`RoutingContext` has been renamed to `RouterContext`. Please use `import { RouterContext } from \'react-router\'`. http://t... |
client/modules/Post/__tests__/components/PostListItem.spec.js | Trulsabe/reactLinuxMern | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import PostListItem from '../../components/PostListItem/PostListItem';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | bunnyblue/actor-platform | import React from 'react';
import mixpanel from 'utils/Mixpanel';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'actions/LoginActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
import MyProfileModal from 'components/modals/MyProfile.react';
import ... |
app/graph/crosshairComponent.js | also/lead.js | import React from 'react';
import moment from 'moment';
import CursorPositionMixin from './cursorPositionMixin';
export default React.createClass({
mixins: [CursorPositionMixin],
contextTypes: {
params: React.PropTypes.object.isRequired,
sizes: React.PropTypes.object.isRequired
},
render() {
if ... |
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js | ruikong/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... |
src/components/NavBar.js | sseureki/kanamemo |
import React, { Component } from 'react';
import Link from 'react-router/Link';
const NavLink = ({ to, children }) => {
return (
<Link to={to}>{
({isActive, location, href, onClick, transition}) => (
<li className={`nav-item${isActive ? ' active' : ''}`}>
<a className="nav-link" href={href} onClick={on... |
server/dashboard/js/components/MZBenchApp.react.js | machinezone/mzbench | import React from 'react';
import Timeline from './Timeline.react';
import Details from './Details.react';
import Auth from './Auth.react';
class MZBenchApp extends React.Component {
render() {
return (
<div className="fluid-container">
<Auth title="Sign In">
... |
packages/react-scripts/template/src/SignUpPage/SignUpPage.js | dsopel94/create-react-app | import React from 'react';
import PropTypes from 'prop-types';
import SignUpForm from './SignUpForm';
import axios from 'axios';
import { connect } from 'react-redux';
import * as actions from '../actions/index';
class SignUpPage extends React.Component {
/**
* Class constructor.
*/
constructor(props) {
... |
packages/editor/src/core/decorators/Link/Link.js | boldr/boldr | /* eslint-disable react/no-array-index-key */
/* @flow */
import React from 'react';
import type { Node } from 'react';
import type { ContentBlock, ContentState } from 'draft-js';
import { ExternalLink } from '../../../components/Icons';
import type { LinkConfig } from '../../config';
type Props = {
children: Node,... |
docs/app/Examples/views/Card/Variations/ColumnCount.js | jamiehill/stardust | import React from 'react'
import { Card } from 'stardust'
const src = 'http://semantic-ui.com/images/wireframe/image.png'
const ColumnCountCards = () => (
<Card.Group itemsPerRow={6}>
<Card raised image={src} />
<Card raised image={src} />
<Card raised image={src} />
<Card raised image={src} />
... |
docs/app/Examples/collections/Grid/Variations/GridExampleEqualWidthColumn.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Grid, Segment } from 'semantic-ui-react'
const GridExampleEqualWidthColumn = () => (
<Grid columns='equal'>
<Grid.Column>
<Segment>1</Segment>
</Grid.Column>
<Grid.Column width={8}>
<Segment>2</Segment>
</Grid.Column>
<Grid.Column>
<Segment>3</... |
src/class/history-sync/ViewingActivityApp.js | MrMamen/traktflix | import 'material-design-lite';
import React from 'react';
import BrowserStorage from '../BrowserStorage';
import NetflixApiUtils from '../NetflixApiUtils';
import Select from '../Select';
import TmdbImageContainer from '../tmdb/TmdbImageContainer';
import ActivityList from './ActivityList';
import ActivityStore from '.... |
docs/app/Examples/elements/Divider/Variations/DividerExampleClearing.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Segment, Button, Divider } from 'semantic-ui-react'
const DividerExampleClearing = () => (
<Segment>
<Button floated='right'>Floated Button</Button>
<Divider clearing />
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.... |
src/routes/index.js | balmbees/overwatch | import React from 'react';
import App from '../components/App';
// Child routes
import home from './home';
import error from './error';
export default {
path: '/',
// keep in mind, routes are evaluated in order
children: [
home,
error,
],
async action({ next, render, context }) {
const component... |
teletobit/src/containers/routes/SinglePostRoute.js | edenpark/teletobit | import React, { Component } from 'react';
import SinglePost, {
LeftColumn,
CenterColumn,
RightColumn,
Post,
PostDeleted
} from 'components/SinglePost/SinglePost';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as single from 'redux/modules/single';
impo... |
src/containers/Settings.js | sseureki/kanamemo |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { SettingsForm, Footer } from 'components/KanamemoSettings';
import * as actions from 'actions/kanamemoSettings';
class Settings extends Component {
handleClick = () => {
this.props.resetSettings();
};
render(){
return (
... |
src/FormControls/Static.js | RichardLitt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import InputBase from '../InputBase';
import childrenValueValidation from '../utils/childrenValueInputValidation';
class Static extends InputBase {
getValue() {
const {children, value} = this.props;
return children ? children : value;
}
ren... |
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js | rscnt/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleTwice extends React.Component {
constructor(props) {
super(props);
this.state = {
message: 'Event 1 added to your calendar',
open: fals... |
src/_common/LoadingView.js | qingweibinary/binary-next-gen | import React from 'react';
import LogoSpinner from '../_common/LogoSpinner';
export default () => (
<div className="mobile-page">
<LogoSpinner />
</div>
);
|
app/components/Graph.js | jakkra/OneAppToRuleThemAll | 'use-strict';
import React from 'react';
import {
StyleSheet,
View,
Picker,
Dimensions,
Text,
InteractionManager,
PanResponder,
} from 'react-native';
import {
MKRangeSlider,
MKProgress,
} from 'react-native-material-kit';
import { connect } from 'react-redux';
import { fetchTemperatures, fetchTemp... |
src/pages/login/components/form.js | sqdron/sqdron.UI | import React from 'react'
import classes from './form.css'
import TextField from 'material-ui/TextField'
export default () => (
<div className={classes.form}>
<div className={classes.container}>
<form>
<TextField className={classes.loginInput} hintText='Hint Text'/>
</form>
</div>
</div... |
examples/Simple/app/routes.js | jmurzy/react-router-native | /* @noflow */
import React from 'react';
import {
Header,
Link,
nativeHistory,
Route,
Router,
StackRoute,
withRouter,
} from 'react-router-native';
import {
ScrollView,
StyleSheet,
View,
} from 'react-native';
const styles = StyleSheet.create({
component: {
backgroundColor: '#FFFFFF',
fle... |
ajax/libs/react-instantsearch/4.1.2/Connectors.js | jonobr1/cdnjs | /*! ReactInstantSearch 4.1.2 | ยฉ 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' && define.... |
app/Components/help.js | bobkingof12vs/tayplayer | import React, { Component } from 'react';
export const Help = (props) => {
return <div style={{opacity: props.fade ? "" : "1"}} className="help_text">
<pre className="description">
the twitch and youtube player
<br />
<br />currently in beta, so please be kind
<br />issues should go to th... |
src/routes/BarmenOrder/containers/BarmenOrdersContainer.js | hrnik/roofbar | import React from 'react'
import { connect } from 'react-redux'
import { fetchAllCustomerOrders, completeOrder, cancelOrder, toogleEditMode, notNeedDingDong } from 'store/orders'
import BarOrdersView from '../components/BarOrdersView'
import { getCompetedOrders, getPednignOrders, getCanceledOrders } from 'selectors/or... |
src/main/web/app/components/Calendar.js | dhbw-timetable/rablabla | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import TimeView from './TimeView';
import Day from './Day';
export default class Calendar extends Component {
constructor(props) {
super(props);
this.state = { backdrop: false, backdropTargetHandler: ()... |
client/src/Assistant/GenericInputs/AutoSave.js | ciex/mietlimbo | // @flow
import React from 'react'
import autoBind from 'react-autobind'
import { FormattedMessage } from 'react-intl'
import { pinkA200 } from 'material-ui/styles/colors'
import { RadioButtonGroup, RadioButton } from 'material-ui/RadioButton'
import { Card, CardText, CardTitle } from 'material-ui/Card'
import Raised... |
app/jsx/components/GradesTable.js | instructure/analytics | import React from 'react'
import ReactBootstrapTable from '../../../public/javascripts/react-bootstrap-table'
import { useScope as useI18nScope } from '@canvas/i18n';
import helpers from '../helpers'
const I18n = useI18nScope('analytics');
const {BootstrapTable, TableHeaderColumn} = ReactBootstrapTable
const tableOp... |
app/components/AreaInfo/AreaInfo.js | zhrkian/SolarDataApp | import s from './AreaInfo.css'
import React from 'react'
import { Table, TableBody, TableFooter, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'
import * as Coordinates from '../../utils/coordinates'
import * as Draw from '../../utils/draw'
import IconButton from '../IconButton/Ico... |
src/index.js | rgdelato/instantly-lunch | require('./styles/styles.scss');
import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import reducer from './reducers/index';
import base from './firebase';
import { Actio... |
app/javascript/mastodon/features/compose/components/compose_form.js | kagucho/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
test/specs/views/Item/ItemHeader-test.js | aabustamante/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import ItemHeader from 'src/views/Item/ItemHeader'
import * as common from 'test/specs/commonTests'
describe('ItemHeader', () => {
common.isConformant(ItemHeader)
common.rendersChildren(ItemHeader)
common.implementsCreateMethod(ItemHeader)
describe('conten... |
src/js/shared/components/header.js | akornatskyy/sample-blog-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import {LinkContainer} from 'react-router-bootstrap';
import {Navbar, NavbarBrand, Nav} from 'react-bootstrap';
const Header = ({children}) => (
<Navbar bg="dark" variant="dark" expand="md" fixed="top" className="px-3">
<LinkContainer to="/">
... |
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js | dsopel94/create-react-app | /**
* 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.
*/
import Rea... |
scripts/formElements/Url.js | ButenkoT/react-practice- | import React from 'react';
import url from 'url';
import styles from '../Form.less';
import querystring from 'querystring';
import path from 'path';
import request from 'browser-request';
//const isValid = url => /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(url);
function isValid(videoUrl) {
let urlObjec... |
client/react/frontpage/components/ShowPage.js | uclaradio/uclaradio | // ShowPage.js
// shows full description of a show
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import Loader from './Loader';
import RectImage from '../../common/RectImage';
import './ShowPage.scss';
import { fetchUpdatedShows } from '../actions/shows';
cons... |
src/scenes/home/informationForm/informationForm.js | tskuse/operationcode_frontend | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import Section from 'shared/components/section/section';
import FormButton from 'shared/components/form/formButton/formButton';
import { patchBackend } from 'shared/utils/apiHelper';
import Identifier from './formComponents/identifie... |
packages/extra/src/Axis.js | finnfiddle/number-picture | // import React from 'react';
// import PropTypes from 'prop-types';
// import * as d3Axis from 'd3-axis';
// import { interpolate } from 'd3-interpolate';
// import { cap, omit } from './util';
// import SelectSelf from './mixins/SelectSelf';
// export default class Axis extends SelectSelf {
// constructor(props)... |
tp-3/juan-pablo-gonzalez/src/components/pages/notFound/NotFoundPage.js | solp/sovos-reactivo-2017 | import React from 'react';
import { Link } from 'react-router-dom';
const NotFoundPage = () => {
return (
<div>
<h4>
La estas <b>SECANDO</b>!!
</h4>
<Link to="/"> uhh si, quiero volver! </Link>
</div>
);
};
export default NotFoundPage;
|
app/javascript/mastodon/features/ui/components/focal_point_modal.js | Kirishima21/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { changeUploadCompose, uploadThumbnail, onCha... |
src/svg-icons/device/battery-charging-full.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryChargingFull = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H... |
src/components/Home.js | neetuktoor/tossUP | import React from 'react';
class Home extends React.Component {
render() {
return <div>Homepage</div>;
}
}
export default Home; |
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/SwitchParams.js | SnowBeaver/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
im... |
src/components/cards/filters/slider-filter.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import Slider from 'antd/lib/slider';
import FilterHeader from "./filter-header";
import 'antd/lib/slider/style/css';
const SliderFilter = ({defaultValue, marks, max, filter, filters, handleSliderClick, handleFilterReset}) => (
<div className="sidebar__b... |
src/components/RightFlank/RightFlank.js | jhabdas/lumpenradio-com | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './RightFlank.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
@withStyles(styles)
class RightFlank extends React.Component {
render() {
return (
<... |
examples/universal/client/index.js | JoeStanton/redux | import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
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... |
example/index.js | MinJieLiu/react-validate-framework | /**
* Created by MingYi on 2016/12/23.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import './bootstrap.css';
import App from './App';
ReactDOM.render(
<App />, // eslint-disable-line react/jsx-filename-extension
document.getElementById('root'),
);
if (module.hot) {
module.hot.accept();
}
|
assets/js/landing/index.js | ueokande/teamdone | import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import {Provider} from "react-redux"
import OrgCreateForm from './component/org-create-form';
import createStoreWithMiddleware from './s... |
app/components/Home.js | FermORG/FermionJS | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Home.scss';
import photon from './photon.scss';
export default class Home extends Component {
render() {
return (
<div className={`${photon['window-content']} ${styles.main}`}>
<div className={p... |
src/redux/utils/createDevToolsWindow.js | seespace/dota2assistant | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | yumikohey/WaiterCar | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/parser/warlock/demonology/modules/pets/PetTimelineTab/TabComponent/KeyCastsRow.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SpellIcon from 'common/SpellIcon';
import Tooltip from 'common/Tooltip';
class KeyCastsRow extends React.PureComponent {
static propTypes = {
className: PropTypes.string,
events: PropTypes.array,
start: PropTypes.number.isRequired,
... |
tests/index-test.js | bpugh/react-editable | import expect from 'expect'
import React from 'react'
import {render, unmountComponentAtNode} from 'react-dom'
import Component from 'src/'
describe('Component', () => {
let node
beforeEach(() => {
node = document.createElement('div')
})
afterEach(() => {
unmountComponentAtNode(node)
})
it('dis... |
webui-react/src/index.js | zhewang/topovis | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/index.js | act-now/act-now | /* globals document */
import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Root from './Root';
import './index.css';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin();
ReactDOM.render(
<Root />, //... |
react/src/index.js | VREMSoftwareDevelopment/bwmon | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
const rootNode = document.getElementById('root');
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
rootNode
);
// If you want your app to work of... |
demos/demo/src/components/Login/CreateUser.js | FWeinb/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {signal, state} from 'cerebral/tags'
import translations from '../../common/computed/translations'
import Input from './Input'
export default connect(
{
buttonClick: signal`user.createUserClicked`,
enterPress: signal`user.createUserEnter... |
example/src/components/App.js | martinandert/babel-plugin-css-in-js | import React from 'react';
import MediaQueries from './MediaQueries';
import Theming from './Theming';
import ButtonList from './ButtonList';
const repoUrl = 'https://github.com/martinandert/babel-plugin-css-in-js';
const codeUrl = `${repoUrl}/tree/master/example/src/components`;
class App extends React.Component {
... |
src/react-motion.js | xyc/react-motion | import React from 'react';
import components from './components';
export const {Spring, TransitionSpring, Motion, StaggeredMotion, TransitionMotion} = components(React);
export spring from './spring';
export presets from './presets';
import reorderKeys from './reorderKeys';
export const utils = {
reorderKeys,
};
|
app/scripts/chat-window/ChatWindow.js | butlermd/reactDemo | 'use strict';
import React from 'react';
import ChatMessages from './ChatMessages'
import Composition from './Composition'
const ChatWindow = () => <div className="col-md-9">
<ChatMessages></ChatMessages>
<Composition></Composition>
</div>;
export default ChatWindow; |
src/content/work/assets/TheThirdDimension/index.js | jmikrut/keen-2017 | import React from 'react';
import VerticalSplit from '../../../../components/Layout/VerticalSplit';
import ContentBlock from '../../../../components/Layout/ContentBlock';
import Gutter from '../../../../components/Layout/Gutter';
import ProjectCTA from '../../../../components/Elements/ProjectCTA';
import ViewSite from... |
src/shared/components/misc/Alert.js | sbekti/path-web-client | import React from 'react'
import ReactDOM from 'react-dom'
class Alert extends React.Component {
render() {
let className = 'alert'
switch (this.props.type) {
case 'success':
className += ' alert-success'
break
case 'info':
className += ' alert-info'
break
... |
react-components/src/library/components/page-header.js | concord-consortium/rigse | import React from 'react'
import Component from '../helpers/component'
import fadeIn from '../helpers/fade-in'
import Tooltip from '../helpers/tooltip'
import ItemTooltip from './tooltip'
const PageHeader = Component({
getInitialState: function () {
return {
windowWidth: window.innerWidth,
nav_menu... |
src/svg-icons/maps/local-post-office.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPostOffice = (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 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
MapsLocalPostOff... |
config/shims/assetInserter/schema.js | Kalcode/Gatsby-Boilerplate | import React from 'react'
import config from 'config'
export default function Schema(props) {
return (
<script
key='schema-script'
type='application/ld+json'
dangerouslySetInnerHTML={{__html: JSON.stringify({
'@context': 'http://schema.org',
'@type': 'Organization',
'add... |
Console/app/node_modules/antd/es/grid/col.js | RisenEsports/RisenEsports.github.io | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _typeof from 'babel-runtime/helpers/typeof';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possible... |
packages/wix-style-react/src/Avatar/Avatar.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '../IconButton';
import { avatarShapes, dataHooks } from './constants';
import { Avatar as CoreAvatar } from 'wix-ui-core/dist/src/components/avatar';
import Loader from '../Loader';
import { placeholderSVGs } from './assets';
import ... |
lib/views/init-dialog.js | atom/github | import React from 'react';
import PropTypes from 'prop-types';
import {TextBuffer} from 'atom';
import TabGroup from '../tab-group';
import {TabbableTextEditor} from './tabbable';
import DialogView from './dialog-view';
export default class InitDialog extends React.Component {
static propTypes = {
// Model
... |
src/components/PageFooter.js | washingtonbr/private-content-react | import React from 'react'
import {
Container,
Content,
Footer,
Icon,
} from 'smalldots/lib/experimental/bulma'
const PageHeader = () => (
<Footer>
<Container>
<Content>
<p>
<strong>Private Content with React</strong> by <a href="https://github.c... |
src/svg-icons/av/replay-30.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay30 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.... |
client/app/components/SignupForm/SignupForm.js | krouw/T.SIA-electron-blueprint | import React, { Component } from 'react';
import axios from 'axios';
export default class SignupForm extends Component {
constructor(){
super();
this.state = {
name: '',
username: '',
rut: '',
email: '',
password: '',
errors: {},
}
}
onChange(e){
this.setStat... |
src/components/ui/layout/Flex.js | daxiangaikafei/QBGoods | import React, { Component } from 'react';
import classNames from 'classnames';
import 'libs/layout/layout-mixin.less';
class Flex extends Component {
constructor(props) {
super(props)
}
render() {
let props = this.props;
let classGroups = ['flexLayout', 'flex'];
classGroups.push( "flex-" + props... |
src/svg-icons/av/playlist-play.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistPlay = (props) => (
<SvgIcon {...props}>
<path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/>
</SvgIcon>
);
AvPlaylistPlay = pure(AvPlaylistPlay);
AvPlaylistPlay.displayName = '... |
modules/__tests__/createRoutesFromReactChildren-test.js | chunwei/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect from 'expect'
import React from 'react'
import { createRoutesFromReactChildren } from '../RouteUtils'
import IndexRoute from '../IndexRoute'
import Route from '../Route'
describe('createRoutesFromReactChildren', function () {
const Parent = React.cr... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasisInverted.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleEmphasisInverted = () => (
<div>
<Segment inverted>
I'm here to tell you something, and you will probably read me first.
</Segment>
<Segment inverted secondary>
I am pretty noticeable but you might check... |
test/CollapseSpec.js | insionng/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Collapse from '../src/Collapse';
describe('Collapse', function () {
let Component, instance;
beforeEach(function(){
Component = React.createClass({
render(){
let { children, ...props } = this.props;
... |
gui/app.js | siauPatrick/seimur | import React from 'react';
import ReactDOM from 'react-dom';
import thunk from 'redux-thunk';
import {applyMiddleware, createStore, combineReducers, compose} from 'redux';
import {Provider} from 'react-redux';
import {Router, Route, IndexRedirect, browserHistory} from 'react-router';
import {syncHistoryWithStore, route... |
app/components/ErrorMessage.js | DeekshithShetty/hydra | import React from 'react'
function ErrorMessage (props) {
return (
<div className='form__error-wrapper js-form__err-animation'>
<p className='form__error'>
{props.error}
</p>
</div>
)
}
ErrorMessage.propTypes = {
error: React.PropTypes.string
}
export default ErrorMessage
|
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ConversationContainer from '../containers/conversation_container';
import ScrollableList from '../../../components/scroll... |
browser/app/index.js | dvstate/minio | /*
* Minio Cloud Storage (C) 2016 Minio, 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... |
fiddles/react/fiddle-0004-AppComponent/src/index.js | bradyhouse/house | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
test/specs/collections/Form/FormField-test.js | aabustamante/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import Radio from 'src/addons/Radio/Radio'
import FormField from 'src/collections/Form/FormField'
import { SUI } from 'src/lib'
import Checkbox from 'src/modules/Checkbox/Checkbox'
import * as common from 'test/specs/commonTests'
describe('FormField', () => {
comm... |
blueocean-material-icons/src/js/components/svg-icons/image/brightness-5.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageBrightness5 = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"/>
</SvgIcon>... |
src/components/SelectItem/SelectItem-test.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import SelectItem from '../SelectItem';
import { shallow } from 'enzyme';
describe('SelectItem', () => {
descri... |
src/svg-icons/av/recent-actors.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRecentActors = (props) => (
<SvgIcon {...props}>
<path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.... |
src/core/actions/index.js | pinussilvestrus/lirete | import React from 'react';
import {browserHistory} from 'react-router';
import Server from '../helpers/server';
export default {
plot: (table) => {
return Server.plotTable(table)
.then(result => {
console.log(result);
if (result.graph) return Promise.resolve(result.graph);
Promise.r... |
ngiiedu-client/src/components/admin/school/list/popup/EditPopup.js | jinifor/branchtest | import React from 'react';
import { connect } from 'react-redux';
import { actionEditSchoolOpen, actionUpdateSchool } from '../../../../../actions/index';
//ํ์
์ฐฝ
import Dialog from 'material-ui/Dialog';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import TextFi... |
src/interface/others/HolyPriestSpreadsheet.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import HealingDone from 'parser/shared/modules/throughput/HealingDone';
import HealingR... |
fields/components/Checkbox.js | danielmahon/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
import { darken, fade } from '../../admin/client/utils/color';
import E from '../../admin/client/constants';
var Checkbox = React.createClass({
displayName: 'Checkbox',
propTypes: {
checked: React.PropTypes.bool,
c... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleUncontrolled.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const options = [
{ text: 'One', value: 1 },
{ text: 'Two', value: 2 },
{ text: 'Three', value: 3 },
]
const DropdownExampleUncontrolled = () => (
<Dropdown
selection
options={options}
placeholder='Choose an option'
/>
)
exp... |
components/date_picker/__test__/index.spec.js | rubenmoya/react-toolbox | import React from 'react';
import { shallow } from 'enzyme';
import theme from '../theme.css';
import { DatePickerDialog, Calendar } from '../DatePicker';
describe('DatePickerDialog', () => {
describe('#on mount', () => {
it('passes value through to calendar if no maxDate/minDate specified', () => {
const ... |
src/StoryNarrative.js | ikr/estimates-template | import React from 'react';
import PropTypes from 'prop-types';
import marked from 'marked';
const renderer = new marked.Renderer();
const tableOrg = renderer.table;
renderer.table = (header, body) => tableOrg(header, body).replace(
'<table>',
'<table class="table table-bordered">'
);
class StoryNarrative ext... |
src/BootstrapMixin.js | blue68/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
src/svg-icons/action/shopping-basket.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionShoppingBasket = (props) => (
<SvgIcon {...props}>
<path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h1... |
src/client/menu.js | leiallen/hacker-menu | import React from 'react'
export default class Menu extends React.Component {
handleOnClick (e) {
e.preventDefault()
this.props.onQuitClick()
}
render () {
var statusText = 'v' + this.props.version
var buttonText = 'Quit'
if (this.props.status === 'update-available') {
statusText += ' ... |
docs/src/app/components/pages/HomeFeature.js | skarnecki/material-ui | import React from 'react';
import {Link} from 'react-router';
import styleResizable from 'material-ui/utils/styleResizable';
import spacing from 'material-ui/styles/spacing';
import transitions from 'material-ui/styles/transitions';
import typography from 'material-ui/styles/typography';
import {grey200} from 'material... |
generators/js-framework/modules/react/components/Account/Login.js | sahat/megaboilerplate | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux'
import { login } from '../../actions/auth';
import { facebookLogin, twitterLogin, googleLogin, vkLogin, githubLogin } from '../../actions/oauth';
import Messages from '../Messages';
class Login extends React.Component... |
chrome/extension/popupapp.js | CKPalk/PA-POC-Video-Contoller | import React from 'react'
import ReactDOM from 'react-dom'
import PopupRoot from '../../app/containers/PopupRoot'
import '../../app/styles/body.styl'
import { getState } from '../../app/utils/localStorage'
import createStore from '../../app/store/configureStore'
getState()
.then(createStore)
.then(store => {
... |
web-react/src/components/Thruster.js | gizmo-cda/g2x-submarine-v2 | import React from 'react';
class Thruster extends React.Component {
static defaultProps = {
cx: 50,
cy: 50,
radius: 10,
skeletonColor: "rgb(128, 128, 128)",
forwardColor: "rgb(0, 128, 0)",
reverseColor: "rgb(192, 64, 64)",
power: 0
};
render() {
let cx = this.props.cx;
let cy = this.props.cy;
l... |
components/public/BaseFormModal.js | hustlzp/react-redux-example | import React from 'react'
import Radium from 'radium'
import Modal from "react-modal"
@Radium
export default class BaseFormModal extends React.Component {
static defaultProps = {
submitText: "ๆไบค"
}
static propTypes = {
title: React.PropTypes.string.isRequired,
closeModal: React.Pro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.