path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/device/signal-wifi-off.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifiOff = (props) => (
<SvgIcon {...props}>
<path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.5 0-2.89.19-4.15.48L18.18 13.8 23.64 7zm-6.6 8.22L3.27 1.44 2 2.72l2.05 2.06C1.91 5.76.59 6.82.36 7l11.63 14.4... |
src/client/react/user/components/dashboards/PostRaceDashboard.js | bwyap/ptc-amazing-g-race | import React from 'react';
import { Route } from 'react-router-dom';
import { connect } from 'react-redux';
import { Switch, Redirect } from 'react-router-dom';
import Base from '../Base';
import PostRaceMenu from '../menus/PostRaceMenu';
import TeamDashboard from '../../views/TeamDashboard';
import Feed from '../../vi... |
app/App.js | singun/kanban-app | import React from 'react';
import ReactDOM, { render } from 'react-dom';
import { Router, Route } from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import KanbanBoardContainer from './KanbanBoardContainer';
import KanbanBoard from './KanbanBoard';
import EditCard from './EditCar... |
app/views/listing/add.js | jtparrett/countcals | import React from 'react'
import { StyleSheet, View, TextInput, Button } from 'react-native'
import Moment from 'moment'
import Input from '../../components/input'
export default class AddEntry extends React.Component {
constructor(props) {
super(props)
this.state = {
...props,
timestamp: props... |
src/parser/hunter/shared/modules/talents/BindingShot.js | FaideWW/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import React from 'react';
/**
* Fires a magical projectile, tethering the enemy and any other enemies within 5 yards for 10 sec, rooting them in place for 5 sec if th... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | fanhc019/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
render () {
var announcements = COURSES[this.props.params.courseId].announcements;
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcemen... |
frontend/src/screens/qa/qa.js | linea-it/qlf | import React, { Component } from 'react';
import Steps from './widgets/steps/steps';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
const styles = {
container: {
display: 'flex',
justifyContent: 'space-around',
flexDirection: 'column',
marginBottom: '1vh',
... |
CalcScreen.js | stevenpan91/ChemicalEngineerHelper | 'use strict'
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button,
TouchableHighlight,
TouchableOpacity,
TextInput,
Navigator
} from 'react-native';
class CalcScreen extends Component {
render() {
return (
<Navigator
renderScene={this.re... |
webapp/imports/ui/layouts/SecurityDialog.js | clinical-meteor/meteor-on-fhir | // base layout
import { CardHeader, CardText, CardTitle } from 'material-ui/Card';
import PropTypes from 'prop-types';
import { ReactMeteorData } from 'meteor/react-meteor-data';
import ReactMixin from 'react-mixin';
import React, { Component } from 'react';
import FlatButton from 'material-ui/FlatButton';
import {... |
src/svg-icons/action/history.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHistory = (props) => (
<SvgIcon {...props}>
<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 ... |
node_modules/react-bootstrap/es/ModalBody.js | newphew92/newphew92.github.io | 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 ... |
example/src/TabOne.js | PlexChat/mobx-navigation | import React from 'react';
import {
Button,
Text,
TextInput,
StyleSheet,
View
} from 'react-native';
import { inject, observer } from 'mobx-react';
import { scene } from '../..';
import Circular from './Circular';
const styles = StyleSheet.create({
test: {
backgroundColor: 'green',
},
});
@scene('Ta... |
packages/watif-display/src/components/interactive-description.js | jwillesen/watif | import React from 'react'
import {string, element, func, arrayOf} from 'prop-types'
import Watext from './watext'
import VerbBar from './verb-bar'
import {verbShape} from '../property-shapes'
import './interactive-description.css'
export default class InteractiveDescription extends React.Component {
static propTypes... |
app/routes/index.js | vasanthk/redux-blog-example | import React from 'react';
import { Route } from 'react-router';
import App from './App';
import SignupRoute from './SignupRoute';
import LoginRoute from './LoginRoute';
import ProfileRoute from './ProfileRoute';
import NotFound from '../components/NotFound';
import redirectBackAfter from '../utils/redirectBackAfter';
... |
node_modules/react-router/es6/IndexRoute.js | Win-Myint/ReactChallenge2 | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
docs/src/examples/modules/Modal/Usage/ModalExampleCallbacks.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Grid, Label, Modal, Segment } from 'semantic-ui-react'
function exampleReducer(state, action) {
switch (action.type) {
case 'CLEAR_LOG':
return { ...state, log: [] }
case 'OPEN_MODAL':
return {
log: [
{
event: action.event,
... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/complete/friends/Friends.entry.js | Brandon-J-Campbell/codemash | import React from 'react';
import getFriendsFromApi from './get-friends-from-api';
import Friends from './Friends';
export default class FriendsEntry extends React.Component {
state = {
friends: []
}
async componentDidMount() {
const friends = await getFriendsFromApi();
this.setState({
frien... |
pilgrim3/components/optionsTable.js | opendoor-labs/pilgrim3 | import React from 'react'
import { map } from 'lodash'
export default class OptionsTable extends React.Component {
optionRow(value, key) {
return (
<tr key={`${key}-${value}`}>
<th>{key}</th>
<td>{value.toString()}</td>
</tr>
);
}
render() {
if (!this.props.object) {
... |
src/svg-icons/image/linked-camera.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLinkedCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3... |
app/assets/scripts/views/about.js | openaq/openaq.github.io | 'use strict';
import React from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import JoinFold from '../components/join-fold';
import SponsorList from '../components/sponsor-list';
import TeamList from '../components/team-list';
import content from '../../content/content.json';
import sponsors... |
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js | liruqi/actor-platform-v0.9 | import { assign } from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, Snackbar } from 'material-ui';
import ReactZeroClipboard from 'reac... |
lib/components/Application.js | sljohnson32/networkr | import React, { Component } from 'react';
import firebase, { signIn, signOut } from '../firebase';
import { pick, map, extend } from 'lodash';
import WelcomeScreen from './WelcomeScreen';
import HomeScreen from './HomeScreen';
import moment from 'moment'
export default class Application extends Component {
construc... |
src/components/Background.js | shoegazer/shuffle-guru | import React from 'react'
import {connect} from 'react-redux'
@connect(state => ({
cover: state.track.current.cover
}))
class Background extends React.Component {
render() {
return pug`#background(style=${this.props.cover ? {backgroundImage: 'url(' + this.props.cover + ')'} : {}})`;
}
}
export default Backg... |
examples/Autocomplete.js | react-materialize/react-materialize | import React from 'react';
import Autocomplete from '../src/Autocomplete';
import Row from '../src/Row';
export default
<Row>
<Autocomplete
title='Company'
data={
{
'Apple': null,
'Microsoft': null,
'Google': 'http://placehold.it/250x250'
}
}
/>
</Row>;
|
examples/src/components/RemoteSelectField.js | nightwolfz/react-select | import React from 'react';
import Select from 'react-select';
var RemoteSelectField = React.createClass({
displayName: 'RemoteSelectField',
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
loadOptions (input, callback) {
input = input.toLowerCase();
var rtn = {
options: [
... |
src/Parser/Mage/Frost/Modules/Items/Tier20_2set.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
import HIT_TYPES from 'Parser/Core/HIT_TYPES';
import getDamageBonus f... |
src/parser/druid/balance/modules/Abilities.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import CoreAbilities from 'parser/core/modules/Abilities';
import ISSUE_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE';
class Abilities extends CoreAbilities {
spellbook() {
const combatant = this.selectedCom... |
src/common/Icon.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import BAD_ICONS from 'common/BAD_ICONS';
const Icon = ({ icon, className, ...others }) => {
if (!icon) {
return null;
}
icon = icon.replace('.jpg', '').replace(/-/g, '');
if (icon === 'petbattle_healthdown') {
// Blizzard seems to have fo... |
web/react360/src/components/hocs/getDevice.js | JamesMillercus/Portfolio-Website | import { connect } from 'react-redux';
import { UserAgent } from '@quentin-sommer/react-useragent';
import { View } from 'react-360';
import React, { Component } from 'react';
import { fetchDeviceType } from './../../actions';
// export default GetDevice(connect(mapStateToProps, mapDispatchToProps)(ChildComponent));
e... |
src/AffixMixin.js | westonplatter/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
fields/types/url/UrlField.js | riyadhalnur/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'URLField',
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) {
href = 'http://' + href;
}
window... |
app/components/Character.js | jeflores7/character-voting-app | import React from 'react';
import CharacterStore from '../stores/CharacterStore';
import CharacterActions from '../actions/CharacterActions';
class Character extends React.Component {
constructor(props) {
super(props);
this.state = CharacterStore.getState();
this.onChange = this.onChange.bind(this);
}
... |
05_ES6/Code/fork-es6/app/components/InboxPane.js | sayar/ReactMVA | import React from 'react';
import InboxItem from './InboxItem';
import autoBind from 'react-autobind';
class InboxPane extends React.Component {
constructor(props) {
super(props);
autoBind(this);
}
renderConvoSum(human) {
return <InboxItem key={human} index={human} details={this.props.humans[human... |
widgets/NoticeWidget.js | FaridSafi/react-native-gifted-form | import React from 'react';
import createReactClass from 'create-react-class';
import {
View,
Text
} from 'react-native';
var WidgetMixin = require('../mixins/WidgetMixin.js');
module.exports = createReactClass({
mixins: [WidgetMixin],
getDefaultProps() {
return {
type: 'NoticeWidget',
};
... |
src/index.js | UnforbiddenYet/react-sleek-photo-gallery | import React from 'react';
import Gallery from './components/gallery';
import Preloader from './components/preloader';
import config from './config';
export default function GalleryApp({ images, thumbnailHeight = config.THUMBNAIL_HEIGHT, ...rest }) {
return (
<Preloader images={images} maxThumbnailHeight={thumb... |
analysis/deathknightblood/src/modules/talents/Voracious.js | anom0ly/WoWAnalyzer | import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER';
import TalentStatisticBox from 'parser/ui/TalentStatisticBox';
import React from 'react';
class Voracious extends Analyzer {
cons... |
actor-apps/app-web/src/app/index.js | lzpfmh/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import 'babel/polyfill';
import RouterContainer from 'utils/RouterContainer';
import crosstab from 'crosstab';
import React, { Component } from 'react';
import Router from 'react-router';
import ReactMixin from 'react-mixin';
import { intlData } from 'l18n'... |
components/forms/Input.js | jebeck/nefelion | import React from 'react';
import PropTypes from 'prop-types';
import { Form } from 'semantic-ui-react';
import styled from 'styled-components';
import { errorText, formText } from 'utils/themes';
const Label = styled.label`
color: ${formText} !important;
`;
const InputError = styled.div`
color: ${errorText};
... |
node_modules/react-router-dom/es/Link.js | Aznachang/CompanyPersonelReactJS | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
test/helpers/shallowRenderHelper.js | openciti/dinesafe6 | /**
* 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/hoc/withProps.js | nobt-io/frontend | import React from 'react';
const withProps = additionalProps => Component => props => {
return <Component {...props} {...additionalProps} />;
};
export default withProps;
|
src/containers/App.js | brtx/friendlist | /* src/containers/App.js */
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import AddFriendInput from '../components/AddFriendInput';
import FriendList from '../components/FriendList';
import * as FriendsActions from '../actions/FriendsAc... |
src/debugger/Debugger.js | josdejong/insight | 'use strict';
import React, { Component } from 'react';
import Immutable from 'seamless-immutable';
import { cloneDeep, reduce, isEqual } from 'lodash';
import Timeline from './Timeline';
export default class Debugger extends Component {
constructor (props) {
super(props);
let now = new Date().valueOf();
... |
src/parser/demonhunter/vengeance/modules/features/Checklist/Component.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist';
import Rule from 'parser/shared/modules/features/Checklist/Rule';
import GenericCastEfficiencyRequirement from ... |
src/Duration.js | siiptuo/tiima-spa | import React from 'react';
import PropTypes from 'prop-types';
import { duration } from './filters';
export default class Duration extends React.Component {
static propTypes = {
startTime: PropTypes.instanceOf(Date),
endTime: PropTypes.instanceOf(Date),
};
constructor(props) {
super(props);
if (... |
public/src/containers/dnd/board.js | white87332/react-redux | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import PropTypes from 'prop-types';
import BoardSquare from './boardSquare';
import Knight from './knight';
@DragDropContext(HTML5Backend)
class Board extends Component
{
const... |
node_modules/react-bootstrap/es/PagerItem.js | Crisa221/Lista-Giocatori | 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 ... |
examples/huge-apps/routes/Course/components/Nav.js | skevy/react-router | import React from 'react';
import { Link } from 'react-router';
import AnnouncementsRoute from '../routes/Announcements';
import AssignmentsRoute from '../routes/Assignments';
import GradesRoute from '../routes/Grades';
const styles = {};
styles.nav = {
borderBottom: '1px solid #aaa'
};
styles.link = {
display: ... |
example10/src/main.js | JoeTheDave/Talk-ReactUpAndRunning |
//main.js
import React from 'react';
import {render} from 'react-dom';
import ApplicationComponent from './components/ApplicationComponent';
render(<ApplicationComponent />, document.getElementById('app')); |
src/client/components/Notfound.js | matystl/shopping_list | import DocumentTitle from 'react-document-title';
import React from 'react';
import {Link} from 'react-router';
export default class NotFound extends React.Component {
render() {
return (
<DocumentTitle title={'Page Not Found'}>
<div>
<h1>
{`This page isn't available`}
... |
src/ButtonToolbar.js | zanjs/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonToolbar = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'button-toolbar'
};
},
render() {
let classes = this.getBsClassSet();
... |
src/svg-icons/navigation-arrow-drop-right.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../SvgIcon';
let NavigationArrowDropRight = (props) => (
<SvgIcon {...props}>
<path d="M9.5,7l5,5l-5,5V7z" />
</SvgIcon>
);
NavigationArrowDropRight = pure(NavigationArrowDropRight);
NavigationArrowDropRight.displayName = 'Navi... |
src/components/login/Login.js | nikolay-is/jsappproject | import React from 'react';
import Observer from '../../utilities/observer';
import ERR from '../../utilities/err';
import { userLogin } from '../../models/User';
import LoginUserForm from './Login-Userform-View';
import { getClientInfo } from '../../models/UserLog';
class Login extends React.Component {
constructor... |
src/components/App.js | mmapplebeck/react-redux-minesweeper | import React from 'react'
import Window from './Window'
import Menu from './Menu'
import Game from '../containers/Game'
import '../assets/spritesheet.png'
import '../style/app.scss'
import '../style/sprite.scss'
const getMenuItems = props => ([
{
label: 'Game',
groups: [[{
label: 'New',
onClick: ... |
app/components/H2/index.js | AK33M/scalable-react | import React from 'react';
import styles from './styles.css';
function H2(props) {
return (
<h2 className={styles.heading2} {...props} />
);
}
export default H2;
|
docs/app/Examples/modules/Accordion/Types/AccordionExamplePanelsProp.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Accordion } from 'semantic-ui-react'
import faker from 'faker'
import _ from 'lodash'
const panels = _.times(3, () => ({
title: faker.lorem.sentence(),
content: faker.lorem.paragraphs(),
}))
const AccordionExamplePanelsProp = () => (
<Accordion panels={panels} />
)
export def... |
Realization/frontend/czechidm-core/src/components/advanced/ImageDropzone/ImageDropzone.js | bcvsolutions/CzechIdMng | import React from 'react';
import Well from '../../basic/Well/Well';
//
import * as Basic from '../../basic';
import { Dropzone } from '../../basic/Dropzone/Dropzone';
/**
* Advanced Dropzone component
* it will shows dropzone if there is no uploaded image yet
* otherwise it will show an image
*
* @author Petr Hanák
*... |
src/components/Radial.react.js | kelemen/kitematic | import React from 'react';
import classNames from 'classnames';
var Radial = React.createClass({
render: function () {
var percentage;
if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) {
percentage = (
<div className="percentage"><... |
docs/src/app/components/pages/components/DatePicker/ExampleInline.js | nathanmarks/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* Inline Date Pickers are displayed below the input, rather than as a modal dialog.
*/
const DatePickerExampleInline = () => (
<div>
<DatePicker hintText="Portrait Inline Dialog" container="inline" />
<DatePicker hintText="Land... |
src/admin/components/container/index.js | ccetc/platform | import React from 'react'
import _ from 'lodash'
import { connect } from 'react-redux'
import * as actions from './actions'
class Container extends React.Component {
static childContextTypes = {
container: React.PropTypes.object
}
static propTypes = {
onFetchResource: React.PropTypes.func
}
render... |
frontend/components/dashboard/MenuUl.js | wpmg/wpcl_hd | import React from 'react';
import PropTypes from 'prop-types';
import MenuLi from './MenuLi';
const MenuChildComponent = (component, depth) => {
const childArray = [
<MenuLi
key={component.menuItem.path}
menuItem={component.menuItem}
auth={component.auth}
location={component.location}
... |
examples/Examples.js | christiaanderidder/react-googlecharts | import React from 'react';
import GoogleChart from '../src/components/GoogleChart';
export default React.createClass({
getInitialState() {
return {
data: [],
options: {
curveType: 'function'
}
};
},
componentDidMount() {
window.setTimeout(() => {
this.setState({
data: [
['City', '2010... |
src/components/FooterBar/Responses/Favorite.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import FavoritedIcon from '@material-ui/icons/Favorite';
import FavoriteIcon from '@material-ui/icons/FavoriteBorder';
import Button from './Button';
const enhance = translate();
const handleFavorite = onFavorite... |
src/components/small-print.js | mozilla/donate.mozilla.org | import React from 'react';
import Link from './link.js';
import { FormattedHTMLMessage, FormattedMessage } from 'react-intl';
var Footer = React.createClass({
contextTypes: {
intl: React.PropTypes.object
},
render: function() {
var wireTransferLink = (<Link to={'/' + this.context.intl.locale + '/ways-to-... |
src/React/CollapsibleControls/CollapsibleControlFactory/CompositeControl.js | Kitware/paraviewweb | import React from 'react';
import CollapsibleControlFactory from '.';
import CollapsibleWidget from '../../Widgets/CollapsibleWidget';
import CompositePipelineWidget from '../../Widgets/CompositePipelineWidget';
CollapsibleControlFactory.registerWidget(
'CompositeControl',
({ pipelineModel }) => (
<Collapsibl... |
src/components/Alert.js | kiyoshitaro/Instagram- | import React from 'react';
import { createAlert } from 'react-redux-alerts';
const MyAlert = ({message, close}) => (
<div className='myAlert'>
{message}
<button onClick={close}> Click to Dismiss me </button>
</div>
);
export default createAlert({
alertName: 'myAlert',
alertMessage: 'Because I am Batma... |
envkey-react/src/components/shared/broadcast_loader.js | envkey/envkey-app | import React from 'react'
const svgString = `<?xml version="1.0" encoding="utf-8"?>
<svg width='56px'
height='56px'
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
class="uil-blank">
<rect x="0"
y="0"
width="100"
height="100"
... |
src/utils/domUtils.js | roderickwang/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
src/components/EditorWidgets/Markdown/MarkdownPreview/index.js | Aloomaio/netlify-cms | import PropTypes from 'prop-types';
import React from 'react';
import { markdownToHtml } from 'EditorWidgets/Markdown/serializers';
const MarkdownPreview = ({ value, getAsset }) => {
if (value === null) {
return null;
}
const html = markdownToHtml(value, getAsset);
return <div className="nc-widgetPreview" ... |
src/views/NavigatorView/index.js | r1cebank/EventCore | import React from 'react';
// Include global
import { Views } from '../../global/globalIncludes';
import { Navigator, Platform } from 'react-native';
import { connect } from 'react-redux';
import Styles from './resources/styles';
class NavigatorView extends React.Component {
renderScene(route, navigator) {
... |
src/components/Header/Header.js | juliocanares/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
docs/src/app/components/pages/components/Dialog/ExampleCustomWidth.js | skarnecki/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
const customContentStyle = {
width: '100%',
maxWidth: 'none',
};
export default class DialogExampleCustomWidth extends React.Component {
const... |
src/svg-icons/action/room.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoom = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z... |
app/screens/social/feed.js | it-surya/hack-jeninvest | import React from 'react';
import {
FlatList,
View,
Image,
} from 'react-native';
import {
RkCard,
RkText, RkStyleSheet
} from 'react-native-ui-kitten';
import {Avatar} from '../../components/avatar';
import {SocialBar} from '../../components/socialBar';
import {data} from '../../data';
let moment = require('... |
Components/ProgressBar.web.js | tradle/tim |
import {
View,
StyleSheet
} from 'react-native'
import PropTypes from 'prop-types'
import React, { Component } from 'react';
const debug = require('debug')('tradle:app:progressbar')
class ProgressBar extends Component {
// static propTypes = {
// recipient: PropTypes.string.isRequired
// };
render() {... |
fields/types/number/NumberColumn.js | lastjune/keystone | import React from 'react';
import numeral from 'numeral';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var NumberColumn = React.createClass({
displayName: 'NumberColumn',
propTypes: {
col: React.PropTypes.obj... |
src/containers/LiveHelp/index.js | TUIHackfridays/tuise-poc | import React from 'react'
const LiveHelp = () =>
<div>
The live help page
</div>
const styles = {
}
export default LiveHelp
|
templates/react-redux/app/containers/DevTools.js | grvcoelho/starhopper | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
</Do... |
examples/nested/src/client/index.js | ericf/react-intl | import React from 'react';
import ReactDOM from 'react-dom';
import {addLocaleData, IntlProvider} from 'react-intl';
import enLocaleData from 'react-intl/locale-data/en';
import App from './components/app';
addLocaleData(enLocaleData);
const {locale, messages} = window.App;
ReactDOM.render(
<IntlProvider
... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateNotDefinedButUsed.js | facebook/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
render() {
return this.state.children;
}
}
class MyComponent2 extends React.Component {
render() {
const state = {};
return state;
}
}
const expression1 = () =>
class extends React.Component {
render() {
... |
src/svg-icons/hardware/smartphone.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSmartphone = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);
HardwareSmartphone = p... |
ui/mobile/src/screens/VitezoveKategorieScreen.js | ivosh/jcm2018 | import React from 'react';
import { Dimensions, StyleSheet, View } from 'react-native';
import moment from 'moment';
import VitezKategorie from '../components/VitezKategorie';
import PopisekKategorie from '../components/Popisek/PopisekKategorie';
const kategorie = {
pohlavi: 'muž',
typ: 'maraton',
vek: { min: 18... |
src/Login.js | budasuyasa/warungapp | /* @flow */
import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
Image,
Alert,
AsyncStorage,
} from 'react-native';
import {
Button
} from 'react-native-elements';
import {
EndpointURL,
LocalStorage
} from './Config';
import { realmWarung } from './realm/RealmWarung';
import... |
react-flux-mui/js/material-ui/src/svg-icons/device/screen-lock-rotation.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockRotation = (props) => (
<SvgIcon {...props}>
<path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59... |
src/browser/lib/logRenderTime.js | jks8787/este-experimental-app | import Component from 'react-pure-render/component';
import React from 'react';
// When UI renders thousands components, it's useful to check render time.
// Example:
// @logRenderTime
// export default class App extends Component {}
export default function logRenderTime(BaseComponent) {
return class LogRenderTim... |
front/app/js/components/controls/Alert.js | nudoru/React-Starter-3 | import React from 'react';
import {css} from 'emotion';
import { withStyles, styleComponentPropTypes, createClassNameFromProps } from './common/StyleManager';
import {joinClasses, omit} from '../../utils/componentUtils';
import Link from './Anchor';
const componentStyle = css`
border-left-width: 5px;
`;
class BAl... |
src/js/components/Paragraph/stories/CustomThemed/Themed.js | HewlettPackard/grommet | import React from 'react';
import { Grommet, Paragraph } from 'grommet';
import { deepMerge } from 'grommet/utils';
import { grommet } from 'grommet/themes';
const customTheme = deepMerge(grommet, {
paragraph: {
font: {
family: 'Comic Sans MS',
},
},
});
export const Themed = () => (
<Grommet the... |
frontend/src/components/player/ButtonMenu.js | OwenRay/Remote-MediaServer | import React, { Component } from 'react';
import { Button } from 'react-materialize';
class ButtonMenu extends Component {
shouldComponentUpdate() {
return false;
}
onSelect(item) {
this.props.onSelect(this.props.type, item.value);
}
render() {
const { items, type } = this.props;
if (!items... |
web_frontend/src/containers/DevTools/DevTools.js | suribit/Lucy25 | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
app/views/Wedding.js | mziemer21/wedding | import React, { Component } from 'react';
import { Grid, Row, Col, Modal, Button } from 'react-bootstrap';
// images
import heart from '../assets/img/glyphicons/glyphicons_012_heart_b.png';
import bell from '../assets/img/glyphicons/glyphicons_333_bell_b.png';
import cake from '../assets/img/glyphicons/glyphicons_272_c... |
src/containers/start/start.js | noahehall/udacity-trainschedule | import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Table } from 'reactabular';
import * as actionCreators from 'store/actions/index.js';
import * as dom from 'lib/dom.js';
import * as forms from 'components/forms/forms.js';
import * as time from 'lib/time.js';
// now using my gi... |
src/website/app/Paragraph.js | mineral-ui/mineral-ui | /* @flow */
import styled from '@emotion/styled';
import React from 'react';
import type { StyledComponent } from '@emotion/styled-base/src/utils';
type Props = {
/* rendered chilren */
children: React$Node,
/* available font variants */
variant?: 'ui' | 'prose' | 'mouse'
};
const componentTheme = (baseTheme)... |
src/components/Match.js | kangarang/mp-react | import React from 'react'
export default(props) => {
const styles = {
container: {
minWidth: '48%',
display: 'flex',
justifyContent: 'space-around',
textAlign: "left",
padding: ".5em .5em 1em .5em"
},
wrapper: {
color: "#262626"
},
match: {
display: 'flex',
flexDirection: 'column',
... |
node_modules/react-native-form-generator/src/lib/PickerComponent.android.js | paulunits/tiptap | 'use strict';
import React from 'react';
import ReactNative from 'react-native';
let { View, StyleSheet, TextInput, Text, Picker} = ReactNative;
import {Field} from '../lib/Field';
var PickerItem = Picker.Item;
export class PickerComponent extends React.Component{
constructor(props){
super(props);
... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | darul75/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//assignments: COURSES[params.courseId].assignments
//});
//}
render () {
//var { assignments } = this.props;
var assignments = COURSES[th... |
source/index.js | zorfling/checkin | import React from 'react';
import { render } from 'react-dom';
import createApp from './App';
const App = createApp(React);
const props = {
foo: 'yay!',
title: 'Title!'
};
render(
<App { ...props }></App>,
document.getElementById('root')
);
|
app/profile/Profile.js | ccfcheng/recommendation-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { setPath } from '../appReducer';
import Database from '../database/Database';
import { FIREBASE_URL } from '../appConstants';
import Avatar from 'material-ui/Avatar';
import { setUserProfile } from '../login/LoginReducer';
const D... |
src/index.js | noedlm/png-site | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/subcharts/WordFrequencyScatterPlot.js | nbuechler/ample-affect-exhibit | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import d3 from 'd3';
import { connect } from 'react-redux';
import DivListGroup from '../groups/DivListGroup'
import { Table, Alert } from 'react-bootstrap';
import { selectActivityDataset, fetchDataIfNeeded } from '../../actions/actions'... |
packages/slate-html-serializer/test/serialize/inline-with-data.js | ashutoshrishi/slate | /** @jsx h */
import React from 'react'
import h from '../helpers/h'
export const rules = [
{
serialize(obj, children) {
if (obj.object == 'block' && obj.type == 'paragraph') {
return React.createElement('p', {}, children)
}
if (obj.object == 'inline' && obj.type == 'link') {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.