path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/device/battery-90.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery90 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
packages/material-ui-icons/src/OpenInNew.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" /></g>
, 'OpenInNew');
|
packages/react-error-overlay/src/components/CodeBlock.js | picter/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.
*/
/* @flow */
import React from 'react';
import { redTransparent, yellowTransparent } from '../styles';
const _preStyle = {
display: 'b... |
src/svg-icons/action/launch.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLaunch = (props) => (
<SvgIcon {...props}>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
</SvgIcon>
);
Ac... |
src/common/lib/redux-fields/fields.js | TheoMer/este | // @flow
import React from 'react';
import invariant from 'invariant';
import { path as ramdaPath } from 'ramda';
import { resetFields, setField } from './actions';
import isReactNative from '../../app/isReactNative';
type Path = string | Array<string> | ((props: Object) => Array<string>);
type Options = {
path: Pa... |
src/components/Cell/index.js | devrsi0n/React-2048-game | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './cell.scss';
import { isObjEqual } from '../../utils/helpers';
// Game board cell, minimum component in game board,
// one component stand for a number.
export default class Cell extends React.Compo... |
templates/rubix/node-seed/src/common/sidebar.js | jeffthemaximum/jeffline | import React from 'react';
import {
Sidebar, SidebarNav, SidebarNavItem,
SidebarControls, SidebarControlBtn,
LoremIpsum, Grid, Row, Col, FormControl,
Label, Progress, Icon,
SidebarDivider
} from '@sketchpixy/rubix';
import { Link, withRouter } from 'react-router';
@withRouter
class ApplicationSidebar exten... |
app/components/NewTask.js | GongDexing/work-board | /*jshint esversion:6*/
import React, { Component } from 'react';
import { Modal, Button, Form, Input, DatePicker, Col, Select } from 'antd';
import { TextareaRule } from '../validate/rules';
import AlertMsg from './AlertMsg';
import { fetchProjects } from '../actions/projects';
import { fetchMembers } from '../actions/... |
docs/app/Examples/elements/Segment/Groups/SegmentExampleSegments.js | koenvg/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleSegments = () => (
<Segment.Group>
<Segment>Top</Segment>
<Segment>Middle</Segment>
<Segment>Middle</Segment>
<Segment>Middle</Segment>
<Segment>Bottom</Segment>
</Segment.Group>
)
export default SegmentE... |
src/components/icons/MessageBulletedIcon.js | austinknight/ui-components | import React from 'react';
const MessageBulletedIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M20,2H4A2,2 0 0,0 2,4V22L6,18H20A2,2 0 0,0 22,16V4A2,2 0 0,0 20,2M8,14H6V12H8V14M8,11H6V9H8V11M8,8... |
src/components/Shared/Form/index.js | dominicfallows/todo-app-react-redux-aws | import React from 'react';
import PropTypes from 'prop-types';
import formValid from "./formValidate";
import FormInput from "./FormInput";
class Form extends React.Component {
render() {
const { onSubmit, handleErrorMessage, elements, children } = this.props;
let onSubmitWrapper;
if(onSubmit) onSubmi... |
src/decorators/withViewport.js | nagyistoce/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
src/components/header/saveLoadGame/ImportModal.js | TechyFatih/Nuzlog | import React from 'react';
import { Modal, FormControl, Button } from 'react-bootstrap';
import normalize from 'utilities/normalize';
import { types } from 'actions';
export default class ImportModal extends React.Component {
constructor() {
super();
this.state = {
save: '',
error: ''
};
... |
client/index.js | eantler/simmeme-client | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import { configureStore } from './store';
//Material Ui
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import createStyleManager f... |
stories/index.js | hollomancer/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Button from './Button';
import Welcome from './Welcome';
storiesOf('Welcome', module)
.add('to Storybook', () => (
<Welcome showApp={... |
node_modules/antd/es/auto-complete/index.js | ZSMingNB/react-news | import _typeof from 'babel-runtime/helpers/typeof';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possible... |
app/containers/Updates/ChatByBranch.js | medevelopment/UMA | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import {FormattedMessage} from 'react-intl';
import axios from 'axios';
import LoadingIndicator from 'components/LoadingIndicator';
import firebase from 'firebase';
import reactfire from 'reactfire';
import s... |
client/src/DisplayFavoriteRestaurants/RestaurantDetails/RestaurantDetails.js | ahorrocks2/what_sounds_good_to_you | import React from 'react';
const RestaurantDetails = props => {
return (
<div>
<p>{props.restaurant.type}</p>
<p>{props.restaurant.hood}</p>
</div>
)
}
export default RestaurantDetails;
|
node_modules/react-select/examples/src/app.js | mannyng/ceap | /* eslint react/prop-types: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import Select from 'react-select';
import Creatable from './components/Creatable';
import Contributors from './components/Contributors';
import GithubUsers from './components/GithubUsers';
import CustomComponents from './com... |
src/Playtester.js | fateseal/react-mtg-playtester | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import { connect } from 'react-redux';
import cx from 'classnames';
import {
BATTLEFIELD,
HAND,
LIBRARY,
GRAVEYARD,
EXILE,
COMMAND
}... |
examples/src/components/ValuesAsNumbersField.js | alanrsoares/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.... |
src/components/contractors/Stars.js | tutorcruncher/socket-frontend | import React from 'react'
import ReactTooltip from 'react-tooltip'
const STAR_PATH = 'M1728 647q0 22-26 48l-363 354 86 500q1 7 1 20 0 21-10.5 35.5t-30.5 14.5q-19 0-40-12l-449-236-449 ' +
'236q-22 12-40 12-21 0-31.5-14.5t-10.5-35.5q0-6 2-20l86-500-364-354q-25-27-25-48 0-37 56-46l502-73 225-455q19-41 ' +
'49-41t49 4... |
example/src/test_format.js | flywingdevelopers/rn-naive | /**
* Test format function
* Kevin Lee 22 Oct 2017
**/
import React from 'react'
import { Screen, Text } from 'rn-naive'
export default class App extends React.Component{
render() {
return(
<Screen title='Test format Function'>
<Text>{"{0}, How are you?".format("Jason")}</Text>
<Te... |
devmgmtui/src/index.js | projectOpenRAP/OpenRAP | import React from 'react';
import ReactDOM from 'react-dom';
import 'semantic-ui-css/semantic.min.css';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux'
import reduxThunk from 'redux-thunk'
import './index.css';
import App from './App';
import reducers from './reducers'
co... |
docs/app/Examples/elements/Input/Variations/InputExampleIconPosition.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleIconPosition = () => (
<Input icon='users' iconPosition='left' placeholder='Search users...' />
)
export default InputExampleIconPosition
|
app/components/GroupBlock/index.js | prudhvisays/newsb | import React from 'react';
import TopGroup from '../TopGroup';
import { DateRangePicker, SingleDatePicker, DayPickerRangeController } from 'react-dates';
import moment from "moment";
import DateRange from '../DateRange';
var SelectedStartDate = moment('2017-05-05');
var SelectedEndDate = moment('2017-05-09');
export d... |
demo/badge/badge.js | timkrins/react-mdl | import React from 'react';
import Icon from '../../src/Icon';
import Badge from '../../src/Badge';
class Demo extends React.Component {
render() {
return (
<div>
<p>Number badge on icon</p>
<Badge text="1">
<Icon name="account_box" />
... |
src/modal.js | goto-bus-stop/bulmare | import React from 'react'
import mapProps from 'recompose/mapProps'
import { bulmaComponent, withModifiers } from './internal'
import { Delete } from './misc'
export const Modal = bulmaComponent('div', 'modal',
withModifiers({ open: 'is-active' })
)
export const ModalBackground = bulmaComponent('div', 'modal-backgro... |
docs/src/app/pages/components/ColorPicker/ExampleColorPickerDefault.js | GetAmbassador/react-ions | import React from 'react'
import ColorPicker from 'react-ions/lib/components/ColorPicker'
const ExampleColorPickerDefault = () => (
<div>
<ColorPicker />
</div>
)
export default ExampleColorPickerDefault
|
src/index.js | PhyrexTsai/ens-bid-dapp | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import 'normalize.css';
import AppContainer from './container/AppContainer';
import configureStore from './store/configureStore';
import registerServiceWorker from './registerServiceWorker';
const store = configureStor... |
6.webpack/react/index.js | zhufengnodejs/201608node | import React from 'react';
import ReactDOM from 'react-dom';
import Panel from './components/Panel.js';
var props = {
head:'我是头',
body:'我是身体'
}
//head={props.head} body={props.body}
ReactDOM.render(<Panel {...props}></Panel>,document.getElementById('app')); |
src/app/src/components/Lessons.js | istreight/eggbeatr | /**
* FILENAME: Lessons.js
* AUTHOR: Isaac Streight
* START DATE: November 2nd, 2016
*
* This file contains the Intructors class for the
* collection of instructors for the web application.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import Tabl... |
public/app/components/ui-project-tab/toolbox.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import * as mui from 'material-ui';
import ToolboxControlContainer from '../../containers/ui-project-tab/toolbox-control-container';
const Toolbox = ({ project }) => (
<mui.List>
<mui.ListItem key={'text'}>
<ToolboxControlContainer project={project} type={'text'}>... |
webapp/src/components/DataTable/DataTable.js | templatetools/trace | import React from 'react'
import PropTypes from 'prop-types'
import { Table } from 'antd'
import { request } from 'utils'
import lodash from 'lodash'
import './DataTable.less'
class DataTable extends React.Component {
constructor (props) {
super(props)
const { dataSource, pagination = {
showSizeChanger... |
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js | tharakawj/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';
export default () => (
<span id="feature-shell-env-variables">
{process.env.REACT_APP_SHELL_ENV_MESSAG... |
src/components/MeetupCard.js | ChicagoJS/chicagojs.org | import React from 'react'
import PropType from 'prop-types'
import fetchJsonp from 'fetch-jsonp'
import { format } from 'date-fns'
import './MeetupCard.css'
class MeetupCard extends React.Component {
_isMounted = false
state = {
totalMembers: 0,
upcomingEvent: {}
}
componentDidMount() {
this._isM... |
node_modules/react-router/es6/IndexRedirect.js | GregSantulli/react-drum-sequencer | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
src/svg-icons/device/screen-lock-landscape.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockLandscape = (props) => (
<SvgIcon {...props}>
<path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c... |
packages/mcs-lite-ui/src/Hr/Hr.example.js | MCS-Lite/mcs-lite | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import Hr from '.';
storiesOf('Hr', module)
.add(
'API',
withInfo({
text: 'default',
inline: true,
})(() => <Hr />),
)
.add(
'With children',
withInfo({
... |
src/svg-icons/social/sentiment-satisfied.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentSatisfied = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1... |
src/routes.js | sateez/salestracker | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import Dashboard from './containers/Dashboard';
import SalesTrackerPage from './containers/SalesTrackerPage.js';
import OverviewPage from './containers/OverviewPage.js';
import NewCarPage from './con... |
src/lib/core/hyperline.js | edoren/hyperline | import React from 'react'
import Component from 'hyper/component'
import decorate from 'hyper/decorate'
class HyperLine extends Component {
static propTypes() {
return {
plugins: React.PropTypes.array.isRequired
}
}
styles() {
return {
line: {
display: 'flex',
alignItems:... |
react-native/rnthreeth/index.ios.js | tung1404/react-courses | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class rnthreeth extends Component {
render() {
return (
<View style={styles.container... |
fields/types/text/TextFilter.js | Ftonso/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{... |
src/index.js | m-lasly/react_redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
packages/material-ui-icons/src/History.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 ... |
main.js | stitchfix/cxe-interns-todolist | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'))
|
web/src/components/Navbar/NavBar.js | gianksp/warbots | import React from 'react'
import PropTypes from 'prop-types'
import { NavLink } from 'react-router-dom'
import 'bulma/css/bulma.css'
import './navBar.css'
export const NavBar = (props) => {
return (
<div className="column is-half is-offset-one-quarter">
<nav className="navbar ">
<div id="... |
index.ios.js | J-Priebe/react-native-facebook-firebase | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class RNFacebookFirebase extends Component {
render() {
return (
<View style={styles.... |
packages/cf-component-modal/src/ModalActions.js | mdno/mdno.github.io | import React from 'react';
import PropTypes from 'prop-types';
class ModalActions extends React.Component {
render() {
return (
<div className="cf-modal__actions">
{this.props.children}
</div>
);
}
}
ModalActions.propTypes = {
children: PropTypes.node
};
export default ModalActions... |
Auth/website/src/auth/SignUp.js | awslabs/aws-serverless-workshops | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* o... |
src/routes/MainLayout.js | huang6349/react-dva | import React, { Component } from 'react';
import {
Layout,
Row,
Col,
Icon,
Button,
} from 'antd';
import PropTypes from 'prop-types';
import { Scrollbars } from 'react-custom-scrollbars';
import { connect } from 'dva';
import { Header, Sidebar, Bread, Footer } from '../components/layout';
import styles from... |
src/components/LayoutSwitch.js | dominic-blain/viper-visualizer | import React from 'react';
class LayoutSwitch extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(direction) {
const length = this.props.layouts.length;
var index = this.props.activeLayout + direction;
if (index < 0) {
index = len... |
src/Parser/GuardianDruid/Modules/Spells/Moonfire.js | mwwscott0/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Module from 'Parser/Core/Module';
import Enemies from 'Parser/Core/Modules/Enemies';
... |
assets/js/components/Error.js | italia/developers.italia.it | import React from 'react';
import PropTypes from 'prop-types';
import { createUseStyles } from 'react-jss';
import { l10NLabels } from '../utils/l10n.js';
const useStyle = createUseStyles({
description: {
opacity: '0.8',
},
});
export const Error = ({ description = null }) => {
const classes = useStyle();
... |
src/main/js/my-app/src/components/PaginationLinks.js | myapos/ClientManagerSpringBoot | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Pagination from './Pagination';
import * as actions from '../actions/';
import { connect } from 'react-redux';
class PaginationLinks extends Component {
static propTypes = {
setActivePage: PropTypes.func,
activePage: PropTyp... |
src/collections/Form/FormInput.js | mohammed88/Semantic-UI-React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Input from '../../elements/Input'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Input} />
* @see Form
* @see Input
*/
function FormInput(props) {
const { con... |
fields/components/DateInput__OLD.js | udp/keystone | import moment from 'moment';
import Pikaday from 'pikaday';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = React.createClass({
displayName: 'DateInput',
// set default properties
getDefaultProps: function() {
return {
format: 'YYYY-MM-DD'
};
},
getInitialState: fu... |
doc-components/GitHub.js | miduga/react-slidy | import React from 'react'
import PropTypes from 'prop-types'
export default function GitHubBadge({
slug,
width = 36,
height = 36,
fill = 'black'
}) {
return (
<>
<a
href="https://github.com/midudev/react-slidy"
rel="noopener noreferrer"
target="_blank"
>
<svg v... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | yangchaogit/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
frontend/src/common/components/empty-item.js | OptimusCrime/youkok2 | import React from 'react';
export const EmptyItem = ({ text }) => (
<li className="list-group-item">
<em>{text}</em>
</li>
); |
src/components/Draggable.js | heikkipesonen/batmanin-ostoslista | import _ from 'lodash';
import React from 'react';
import Rectangle from '../class/Rectangle';
const DEFAULT_OPTIONS = {
x: true,
y: true,
tensionX: 0.3,
tensionY: 0.3,
maxX: 0,
maxY: 0,
minX: 0,
minY: 0
};
class Draggable extends React.Component {
constructor (props, options) {
super(props);
... |
docs/src/app/components/pages/components/Stepper/HorizontalLinearStepper.js | matthewoates/material-ui | import React from 'react';
import {
Step,
Stepper,
StepLabel,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* Horizontal steppers are ideal when the contents of one step depend on an earlier step.
* Avoid using long step ... |
node_modules/re-base/examples/chatapp/src/components/Container.js | react-beer/the-beer-store-jsday-facisa | import React from 'react';
import Rebase from 're-base';
import Message from './Message.js';
var base = Rebase.createClass('https://jt-ts.firebaseio.com/rebase-chat');
console.log('Please change to your own firebase address in components/Container.js');
class Container extends React.Component {
constructor(props){... |
dist/frontend/users/components/User.js | angeloocana/freecomclub | import React from 'react';
import Relay from 'react-relay';
class User extends React.Component {
render() {
let { user } = this.props;
return (React.createElement("li", null,
user.id,
" ",
React.createElement("br", null),
user.email,
" ",
... |
examples/js/keyboard-nav/nav-with-cell-edit-table.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
client/src/components/SocialProfileList.js | esausilva/profile-updater | import React from 'react';
import PropTypes from 'prop-types';
import { Icon, Button } from 'semantic-ui-react';
import { removeUserProviderFromFirebase } from '../library/firebaseMethods';
import { firstLetterToUpper } from '../library/utils';
import styles from './SocialProfileList.css';
const propTypes = {
fire... |
app/containers/App.js | matanwerbner/playlist_web | import React from 'react';
import PropTypes from 'prop-types';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import {Link, IndexLink} from 'react-router';
import TopMenu from '../components/shared/topMenu';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | ganquan0910/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import pureRender from 'pure-render-decorator';
import { Styles, TextField, FlatButton } from 'material-ui';
import AddContactStore from 'stores/AddContactStore';
import AddContactActionCreators from 'actions/AddContactActionCreators'... |
examples/redux/routes.js | dlmr/react-router-redial | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import Index from './components/Index';
import Github from './components/Github';
import User from './components/User';
export default (
<Route path="/" component={App}>
<IndexRoute component={Index}... |
client/desktop/app/components/teacher/classes/ClassData/StudentData.js | absurdSquid/thumbroll | import React from 'react'
import {Route, RouteHandler, Link} from 'react-router'
import api from '../../../../utils/api';
class StudentData extends React.Component {
constructor(props){
super(props);
this.state = {
firstName: this.props.location.state.firstName,
lastName: this.props.location.sta... |
docs/src/app/components/pages/components/SelectField/ExampleLongMenu.js | ngbrown/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const items = [];
for (let i = 0; i < 100; i++ ) {
items.push(<MenuItem value={i} key={i} primaryText={`Item ${i}`} />);
}
export default class DropDownMenuLongMenuExample extends React.Compone... |
src/components/ui/ActivateTrialButton/index.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import { defineMessages, intlShape } from 'react-intl';
import classnames from 'classnames';
import { Button } from '@meetfranz/forms';
import { gaEvent } from '../../../lib/analytics';
import ... |
public/pages/CreateDynamicFormPage.js | dynamicform/dynamicform-react-client | import React from 'react';
import {connect} from 'react-redux';
import DynamicForm from '../../src/components/DynamicForm';
@connect()
export default class CreateDynamicFormPage extends React.Component{
beforeSubmit(){
console.log('回调函数beforeSubmit');
}
onSuccess(response){
console.log('回调... |
lib/bar/TopBar.js | ebias/react-native-photo-browser | import React from 'react';
import PropTypes from 'prop-types';
import {
Image,
Text,
StyleSheet,
TouchableOpacity,
Platform,
} from 'react-native';
import { BarContainer } from './BarContainer';
export default class TopBar extends React.Component {
static propTypes = {
displayed: PropTypes.bool,
... |
src/svg-icons/device/network-wifi.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkWifi = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0... |
App/index.ios.js | victoryforphil/GTMobile | import React, { Component } from 'react';
import {
AppRegistry,
PropTypes,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
Alert,
Navigator
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import DrawerContent from './Components/DrawerContent.js';
import NavBar ... |
src/svg-icons/navigation/more-horiz.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreHoriz = (props) => (
<SvgIcon {...props}>
<path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-... |
blueocean-material-icons/src/js/components/svg-icons/maps/local-offer.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalOffer = (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.59-1.41 0-.55-.23-1.06-.59-1.42z... |
app/javascript/mastodon/features/hashtag_timeline/index.js | tri-star/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
packages/react/src/components/organisms/Footer/index.js | massgov/mayflower | /**
* Footer module.
* @module @massds/mayflower-react/Footer
* @requires module:@massds/mayflower-assets/scss/03-organisms/footer
* @requires module:@massds/mayflower-assets/scss/02-molecules/footer-links
* @requires module:@massds/mayflower-assets/scss/01-atoms/sidebar-heading
* @requires module:@massds/mayflow... |
react-twitter-save-data-loading(hook)/src/components/Twitter/Photos.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
05-react-router-demos/src/AppBasic.js | iproduct/course-node-express-react | import React from 'react';
import './App.css';
import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";
export default function App() {
return (
<Router>
<div>
<nav>
<ul>
<li>
<Link t... |
src/svg-icons/navigation/unfold-less.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationUnfoldLess = (props) => (
<SvgIcon {...props}>
<path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"/>
</SvgIcon>
)... |
src/svg-icons/communication/rss-feed.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRssFeed = (props) => (
<SvgIcon {...props}>
<circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17... |
src/decorators/withViewport.js | bencallis1/the-shop | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
modules/gui/src/app/home/body/process/recipe/mosaic/panels/aoi/countrySection.js | openforis/sepal | import {Form} from 'widget/form/form'
import {Layout} from 'widget/layout'
import {PreviewMap} from './previewMap'
import {Subject, map, takeUntil} from 'rxjs'
import {compose} from 'compose'
import {connect, select} from 'store'
import {countryEETable, countryToEETable} from 'app/home/map/aoiLayer'
import {msg} from '... |
docs/app/Examples/elements/Input/Variations/InputExampleActionLabeledButton.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleActionLabeledButton = () => (
<Input
action={{ color: 'teal', labelPosition: 'right', icon: 'copy', content: 'Copy' }}
defaultValue='http://ww.short.url/c0opq'
/>
)
export default InputExampleActionLabeledButton
|
app/containers/AdminRelaisCommandes/components/FournisseurToolbar.js | Proxiweb/react-boilerplate | import React from 'react';
import PropTypes from 'prop-types';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import PersonIcon from 'material-ui/svg-icons/social/person';
import MailIcon from 'material-ui/svg-icons/communication/mail-outline';
import MessageIcon f... |
src/components/TrendDonationSize.js | kakapo2016-projects/tooth-and-pail | import React from 'react'
import { Chart } from 'react-google-charts'
import getRequest from '../getRequest.js'
import url from '../../config.js'
export default React.createClass ({
getInitialState: function () {
return {
ColumnChart: {
data: [],
chartType: "",
options : {}
}
... |
src/components/django/plain/DjangoPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './DjangoPlain.svg'
/** DjangoPlain */
function DjangoPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'DjangoPlain' + ' ' + className}
... |
geonode/monitoring/frontend/monitoring/src/index.js | francbartoli/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... |
webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js | pmoravec/katello | import React from 'react';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import {
headerFormatter,
cellFormatter,
} from '../../../move_to_foreman/components/common/table';
const TableSchema = [
{
property: 'name',
header: {
... |
talks-articles/frameworks/react/reactjs/tutorialspoint.com/react-app/App.js | abhishekkr/tutorials_as_code | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
class App extends Component{
constructor(){
super();
this.state = {
myclass: "main"
};
}
render(){
return(
<div className={this.state.myclass}>
<Header/>
... |
src/index.js | zebras-filming-videos/streamr-web | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer as HotEnabler } from 'react-hot-loader'
import Root from './Root'
import 'normalize.css/normalize.css'
import 'rc-tooltip/assets/bootstrap.css'
import './styles/index.styl'
const render = (Component) => {
ReactDOM.render(
<HotEna... |
src/components/common/svg-icons/navigation/chevron-left.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationChevronLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
NavigationChevronLeft = pure(NavigationChevronLeft);
NavigationChevronLeft.dis... |
archimate-frontend/src/main/javascript/components/view/nodes/model_p/distributionNetwork.js | zhuj/mentha-web-archimate | import React from 'react'
import _ from 'lodash'
import { ModelNodeWidget } from '../BaseNodeWidget'
export const TYPE='distributionNetwork';
export class DistributionNetworkWidget extends ModelNodeWidget {
getClassName(node) { return 'a-node model_p distributionNetwork'; }
}
|
admin/client/App/elemental/DropdownButton/index.js | andrewlinfoot/keystone | /* eslint quote-props: ["error", "as-needed"] */
import React from 'react';
import { css } from 'glamor';
import Button from '../Button';
function DropdownButton ({ children, ...props }) {
return (
<Button {...props}>
{children}
<span className={css(classes.arrow)} />
</Button>
);
};
// NOTE
// 1: take a... |
examples/simple/components/App.js | macropodhq/react-custom-scrollbars | import random from 'lodash/number/random';
import React, { Component } from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
function getRandomSize() {
return {
height: random(300, 500),
width: random(50, 100) + '%'
};
}
export default class App extends Component {
construct... |
js/components/inputgroup/success.js | LetsBuildSomething/vmag_mobile |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, IconNB, Item, Input } from 'native-base';
import { Actions } from 'react-native-router-flu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.