path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
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... |
packages/ui-toolkit/src/divider/__tests___/divider.spec.js | yldio/joyent-portal | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import Divider from '../';
import { Theme } from '../../mocks';
import theme from '../../theme';
describe('Divider', () => {
test('Default Divider', () => {
const tree = renderer
.create(
<Theme... |
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 ... |
test/NavSpec.js | xiaoking/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Nav from '../src/Nav';
import NavItem from '../src/NavItem';
import Button from '../src/Button';
describe('Nav', function () {
it('Should set the correct item active', function () {
let instance = ReactTestUtils.renderIntoDo... |
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... |
src/js/Lists/__tests__/List.js | lwhitlock/grow-tracker | /* eslint-env jest */
jest.unmock('../List');
import React from 'react';
import { findDOMNode } from 'react-dom';
import { renderIntoDocument } from 'react-dom/test-utils';
import List from '../List';
describe('List', () => {
it('merges className and style', () => {
const props = {
style: { background: '... |
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... |
__tests__/components/TodoAppDashboard-test.js | grommet/grommet-todo | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react/lib/ReactTestRenderer';
import TodoAppDashboard from '../../src/js/components/TodoAppDashboard';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
... |
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)... |
step7-unittest/node_modules/enzyme/test/ReactWrapper-spec.js | jintoppy/react-training | import {
describeWithDOM,
describeIf,
itIf,
itWithData,
generateEmptyRenderData,
} from './_helpers';
import React from 'react';
import { expect } from 'chai';
import {
mount,
render,
ReactWrapper,
} from '../src/';
import sinon from 'sinon';
import { REACT013, REACT15 } from '../src/version';
describe... |
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') {
... |
src/svg-icons/action/pan-tool.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPanTool = (props) => (
<SvgIcon {...props}>
<path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4... |
src/svg-icons/action/account-circle.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.... |
src/components/pages/grocerylist/myGrocerylists.js | emilmannfeldt/ettkilomjol | import React, { Component } from 'react';
import './grocerylist.css';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core... |
template/components/Outside.js | HumbleSpark/sambell | import React from 'react';
import { Link } from 'react-router-dom';
export default () =>
<div>{`I can't let you go outside, Sam.`} <Link to="/">Go Home</Link>.</div>
|
client/modules/messaging/components/.stories/conversation_participants.js | StorytellerCZ/Socialize-starter | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import ConversationParticipants from '../conversation_participants.jsx';
storiesOf('messaging.ConversationParticipants', module)
.add('default view', () => {
return (
<Convers... |
Realization/frontend/czechidm-core/src/content/audit/event/EntityEventTable.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _ from 'lodash';
import moment from 'moment';
//
import * as Basic from '../../../components/basic';
import * as Advanced from '../../../components/advanced';
import * as Utils from '../../../utils';
import { En... |
src/components/ui/Spacer.js | yursky/recommend | /**
* Spacer
*
<Spacer size={10} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
/* Component ==================================================================== */
co... |
src/routes/index.js | oldsaratov/postcards-spa | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to file... |
react/features/app/components/AbstractApp.js | parisjulien/arkadin-jitsimeet | import React, { Component } from 'react';
import { I18nextProvider } from 'react-i18next';
import { Provider } from 'react-redux';
import { compose, createStore } from 'redux';
import Thunk from 'redux-thunk';
import { i18next } from '../../base/i18n';
import {
localParticipantJoined,
localParticipantLeft
} fr... |
src/components/posts_show.js | brettcelestre/react-blog-posts | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPost, deletePost } from '../actions/index';
class PostsShow extends Component {
componentDidMount() {
// Pulls ':id' off of the URL
const { id } = this.props.match.params;... |
frontend/src/components/dashboard/agencyDashboard/partnerDecisions/partnerDecisions.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import Button from 'material-ui/Button';
import Grid from 'material-ui/Grid';
import Typography from 'material-ui/Typography';
import { withStyles } from 'material-ui/styles';
import { Link } from 'react-router';
impor... |
public/container/App/index.js | nikolenkoanton92/boilerplate | import React from 'react'
import Navbar from '../../component/Navbar/index.jsx!'
import Footer from '../../component/Footer/index.jsx!'
class App extends React.Component {
render() {
return (
<div>
<Navbar />
{this.props.children}
<Footer />
</div>
)
}
}
export defa... |
src/app/App.js | whiskyoo/dva-scaffolding | import React from 'react';
import './App.less';
import styles from './App.modules.less';
class App extends React.Component {
render() {
return (
<div className="app">
<h1 className={styles.title}>dva-scaffolding</h1>
<p>Welcome to index ...^__^...</p>
</div>
);
}
}
export defa... |
src/components/HeroComponent.js | chiefwhitecloud/running-man-frontend | import React from 'react';
export default function HeroComponent() {
return (
<div style={{height:"450px", backgroundColor:"#292c2f", color:"#ffffff", position:"relative"}}>
<div style={{position:"absolute", left:"50%", top:"50%", transform: "translateX(-50%) translateY(-50%)"}}>
<h1 style={{textAl... |
fields/types/relationship/RelationshipFilter.js | suryagh/keystone | import async from 'async';
import React from 'react';
import xhr from 'xhr';
import { FormField, FormInput, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/components/Popout/PopoutList';
const INVERTED_OPTIONS = [
{ label: 'Linked To', value: false },
{ label: 'NOT Linked To', va... |
Website/src/components/App.js | ameyjain/WallE- | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
src/modules/comments/components/CommentWorkSelect/CommentWorkSelect.js | CtrHellenicStudies/Commentary | import React from 'react';
import './CommentWorkSelect.css';
const CommentWorkSelect = props => {
return (
<div className="commentWorkSelect">
</div>
);
}
export default CommentWorkSelect;
|
tests/components/Header/Header.spec.js | SteveHoggNZ/Choice-As | import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
const _props = {
loginSession: {
loggedIn: true
}
}
_wr... |
app/components/Form/Dropdown.js | pacmessica/hackathon-frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './Form.scss';
export const DropDown = ({ label, options, value, onChange }) => (
<div className={styles.field}>
<div className={styles.dropDown}>
<label>{label}</label>
<select
value={value}
onChange={(... |
src/svg-icons/hardware/keyboard-arrow-right.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowRight = pure(HardwareKeyboardArrowRight);
Hardwar... |
lib/Welcome-Search.js | robbiegreiner/weathrly | import React from 'react';
import Controls from './Controls.js';
import AutoComplete from './autocomplete/AutoComplete.js';
const WelcomeSearch = ({
setAppState,
getCurrentWeather,
searchValue,
cityTrie,
suggestionArray,
}) => {
return (
<div className="welcome-screen">
<h1>welcome to good ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.