path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
client/src/components/thankyou.js | JoeDou/wesayidou | import React from 'react'
export default () => {
return (
<div className="thankyou">
<div className="thankyou-msg black">We got your</div>
<img src="/assets/images/rsvp.jpg" width="600" height="350"/>
<div className="thankyou-msg black">Thank You!</div>
</div>
)
} |
main.js | BigAB/can-react-performance-test | import React from 'react';
import ReactDOM from 'react-dom';
import App from "./containers/app";
ReactDOM.render(
<App />,
document.querySelector( '#app' )
);
|
app/components/LoadingOverlay.js | LouWii/syno-music-app | import React from 'react';
import '../styles/LoadingOverlay.global.css'
class LoadingOverlay extends React.Component {
render() {
const visibilityClass = this.props.ui.loadingOverlay ? 'running' : 'done'
return (
<div className={'loading-overlay '+visibilityClass}>
<div className="loading-back... |
src/docs/examples/ProgressBar/ExampleProgressBar.js | choudlet/ps-react-choudlet | import React from 'react';
import ProgressBar from 'ps-react/ProgressBar';
/** 80% Example */
export default function ExampleProgressBar() {
return <ProgressBar width={200} percent={80} />
} |
src/clincoded/static/components/experimental_curation.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import _ from 'underscore';
import moment from 'moment';
import url from 'url';
import { curator_page, content_views, history_views, queryKeyValue, dbxref_prefix_map, external_u... |
client/auth/Forgot.js | bryanph/Geist |
import React from 'react'
import fetchJSON from './utils/fetch'
import { withRouter } from 'react-router-dom'
import { Link } from 'react-router-dom'
import { RenderErrors, ValidationErrors } from './Error'
import getHeaders from './headers'
import { FlatButton } from '../app/components/button'
import { InputEmail, ... |
app/containers/DashboardPage.js | ClearwaterClinical/cwc-react-redux-starter | import React from 'react'
import { connect } from 'react-redux'
import { t } from '../i18n'
import { Panel } from 'react-bootstrap'
class DashboardPage extends React.Component {
componentDidMount () {
document.title = `${t('navigation.dashboard')} | ${t('_brand-styled')}`
}
render () {
const { user } =... |
src/svg-icons/navigation/more-vert.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreVert = (props) => (
<SvgIcon {...props}>
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"... |
docs/app/Examples/elements/Step/Groups/StepExampleVertical.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Icon, Step } from 'semantic-ui-react'
const steps = [
{ completed: true, icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' },
{ completed: true, icon: 'credit card', title: 'Billing', description: 'Enter billing information' },
{ active: true, icon: ... |
src/components/SkeletonText/SkeletonText-story.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable no-console */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean, numbe... |
src/svg-icons/av/forward-5.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward5 = (props) => (
<SvgIcon {...props}>
<path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.... |
src/parser/warlock/destruction/modules/talents/Inferno.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatThousands } from 'common/format';
import StatisticListBoxItem from 'interface/others/... |
vendor/laravel/framework/src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js | binmurv/C.B.U.L.M.S. | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class Example extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-8 col-md-offset-2">
... |
test/InputSpec.js | sheep902/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Input from '../src/Input';
import Button from '../src/Button';
import DropdownButton from '../src/DropdownButton';
import MenuItem from '../src/MenuItem';
import Glyphicon from '../src/Glyphicon';
import {shouldWarn} from './helper... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | sylph-sin-tyaku/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as ImmutableList } from 'immut... |
webapp-src/src/Login/PasswordForm.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import apiManager from '../lib/APIManager';
import messageDispatcher from '../lib/MessageDispatcher';
class PasswordForm extends Component {
constructor(props) {
super(props);
this.state = {
username: props.username,
p... |
src/components/Icon.js | CookPete/rplayr | // http://dmfrancisco.github.io/react-icons
import React from 'react'
import classNames from './Icon.scss'
export default function Icon ({ icon, className = '', ...extraProps }) {
return (
<svg
{...extraProps}
className={classNames.icon + ' ' + className}
viewBox='0 0 24 24'
preserveAsp... |
app/containers/App/index.js | j921216063/chenya | /**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import Helmet from 'react-helmet';
// import styled from 'styled-components';
import Header from 'components/Header';
impor... |
client/components/singleentry/DetailTable.js | MusicConnectionMachine/VisualizationG6 | import React from 'react'
export default class DetailTable extends React.Component {
constructor (props) {
super(props)
var entries = []
let defaultEntries = []
if (props.type === 'artists') {
defaultEntries = [
{ id: 'name', name: 'Name' },
{ id: 'dateOfBirth', ... |
src/routes/UIElement/iconfont/index.js | zhangjingge/sse-antd-admin | import React from 'react'
import { Iconfont } from '../../../components'
import { Table, Row, Col } from 'antd'
import styles from './index.less'
const iconlist = ['Cherry', 'Cheese', 'Bread', 'Beer', 'Beet', 'Bacon', 'Banana', 'Asparagus', 'Apple']
const IcoPage = () => <div className="content-inner">
<ul classNam... |
lib/components/elements/text-box/style.js | rento19962/relax | import React from 'react';
import Utils from '../../../utils';
import Colors from '../../../colors';
import {Types} from '../../../data-types';
export default {
type: 'text',
options: [
{
label: 'Font Family',
id: 'font',
type: Types.Font
},
{
label: 'Font Size',
id: 'font... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | codl/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
src/packages/@ncigdc/modern_components/DownloadClinicalDropdown/DownloadClinicalDropdown.relay.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import { graphql } from 'react-relay';
import { withRouter } from 'react-router-dom';
import { compose, withPropsOnChange } from 'recompose';
import Query from '@ncigdc/modern_components/Query';
import { makeFilter, addInFilters } from '@ncigdc/utils/filters';
export default (Comp... |
client/containers/process_by_id.js | vidi-insights/vidi-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {Link} from 'react-router'
import {Panel, PageHeader} from '../components/index'
import ChartistGraph from 'react-chartist'
import {subscribe, unsubscribe} from '../actions/vidi'
import _ from 'lodash'
export const ProcessById = React.c... |
resources/_pages/Contact.js | AndrewTJohnston/andrewtjohnston.com | import React from 'react'
import Nodes from './ContactNodes'
import Share from './ShareContact'
export default React.createClass({
getInitialState() {
return {
data: require('json!./../_assets/data/contact.json'),
width: 1000,
height: 1000
}
},
render() {
return (
<div>
<Share />
<Node... |
app/components/build/Show.js | buildkite/frontend | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import { RootContainer } from 'react-relay/classic';
import * as BuildQuery from 'app/queries/Build';
import AnnotationsList from './AnnotationsList';
import Header from './Header';
declare var Buildkite: {
JobComponent: Object,
BuildManualJo... |
src/decorators/withViewport.js | JosephArcher/KappaKappaKapping | /*! 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... |
webapp/app/components/Notifications/Form/Groups/SelectedGroups/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component selected groups form notifications
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap';
import ButtonPopover from 'components/ButtonPopover';
import Option from 'components/Option';
import styles from 'components/Notifications/styles.css';
/*... |
react-flux-mui/js/material-ui/src/svg-icons/image/hdr-strong.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrStrong = (props) => (
<SvgIcon {...props}>
<path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ... |
node_modules/react-router-scroll/test/routes.js | juhov/travis-test | import React from 'react';
import { Route } from 'react-router-dom';
function Page1() {
return (
<div style={{ width: 20000, height: 20000 }} />
);
}
function Page2() {
return (
<div style={{ width: 10000, height: 10000 }} />
);
}
export const syncRoutes = [
<Route path="/" exact key="page1" compon... |
server/sonar-web/src/main/js/apps/component-measures/details/treemap/MeasureTreemap.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/parser/priest/holy/modules/talents/90/Halo.js | fyruna/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import React from 'react';
import ItemHealingDone from 'interface/others/ItemHealingDone';
import ItemDamageDone from 'interface/others/ItemDamageDo... |
packages/react-percy-test-framework/src/__tests__/Suite-getSnapshotMarkup-tests.js | percy/react-percy | import React from 'react';
import Suite from '../Suite';
let executed;
let suite;
let parent;
const execute = name => executed.push(name);
const executeAsync = (name, delay) =>
new Promise(resolve => {
setTimeout(() => {
execute(name);
resolve();
}, delay);
});
const givenSyncBeforeAll = (tar... |
PublicApp/Main.js | sergiu-paraschiv/pi-media-center-automation | import React from 'react';
import ReactDOM from 'react-dom';
import InjectTapEventPlugin from 'react-tap-event-plugin';
import PageComponent from './Page/components/PageComponent';
InjectTapEventPlugin();
ReactDOM.render(
<PageComponent />,
document.getElementById('content')
);
|
node_modules/radium/src/resolve-styles.js | Sweetgrassbuffalo/ReactionSweeGrass-v2 | /* @flow */
import type {Config} from './config';
import appendImportantToEachValue from './append-important-to-each-value';
import cssRuleSetToString from './css-rule-set-to-string';
import getState from './get-state';
import getStateKey from './get-state-key';
import hash from './hash';
import {isNestedStyle, merge... |
app/javascript/mastodon/features/direct_timeline/components/conversation.js | primenumber/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from 'mastodon/components/status_content';
import AttachmentList from 'mastodon/components/attachment_list'... |
spec/react/copy-to-clipboard/copy_to_clipboard.spec.js | pivotal-cf/pivotal-ui | import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
import {setProps} from '../../support/jest-helpers';
import {CopyToClipboard} from '../../../src/react/copy-to-clipboard';
import ClipboardHelper from '../../../src/react/copy-to-clipboard/clipboard_helper';
jest.useFakeTimers();
des... |
tests/routes/Home/components/HomeView.spec.js | shinja/react-redux-c3 | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
__tests__/Style-04.js | buildbreakdo/style-it | import React from 'react';
import { findDOMNode, render } from 'react-dom';
import TestUtils from 'react-addons-test-utils';
const removeNewlines = (string) => (string.replace(/(\r\n|\n|\r)/gm, ''))
import Style from '../src/index.js';
describe('Style-04', () => {
it('creates a contains selector scope when selecto... |
app/components/Home.js | firewenda/testwebsite | import React from 'react';
import {Link} from 'react-router';
import HomeStore from '../stores/HomeStore'
import HomeActions from '../actions/HomeActions';
import {first, without, findWhere} from 'underscore';
class Home extends React.Component {
constructor(props) {
super(props);
this.state = HomeStore.getS... |
src/decorators/withSize.js | orionsoft/parts | import React from 'react'
import autobind from 'autobind-decorator'
import throttle from 'lodash/throttle'
export default function(ComposedComponent) {
return class WithSize extends React.Component {
constructor(props) {
super(props)
this.state = this.calculateSize()
this.debouncedHandle = thro... |
svg/logo.js | michael-lowe-nz/NBA-battles | import React from 'react'
module.exports = () =>
<svg id="Layer_1" x="0px" y="0px"
width="220px" height="220.5px">
<circle fill="#FFFFFF" stroke="#000000" strokeWidth="3" strokeMiterlimit="10" cx="110" cy="110.25" r="93.982"/>
<line fill="none" stroke="#000000" strokeWidth="3" strokeMiterlimit="10"... |
step7-flux/node_modules/react-router/es6/Lifecycle.js | jintoppy/react-training | 'use strict';
import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation... |
src/components/TextInput/index.js | IDEOorg/steps-guide-builder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './index.less';
export default class TextInput extends Component {
constructor(props) {
super(props);
this.state = {value: this.props.value ? this.props.value : ""};
this.handleChange... |
src/client.js | twomoonsfactory/custom-poll | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
imp... |
blueocean-material-icons/src/js/components/svg-icons/social/person-outline.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialPersonOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.... |
node_modules/react-bootstrap/es/ButtonGroup.js | okristian1/react-info | 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 ... |
packages/reactor-kitchensink/src/examples/Charts/3DColumn/Basic3DColumn/Basic3DColumn.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import createData from './createData';
Ext.require([
'Ext.chart.interactions.PanZoom',
'Ext.chart.axis.Numeric',
'Ext.c... |
app/containers/App/index.js | nandakishore2009/smart-will | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
modules/RouteContext.js | andreftavares/react-router | import React from 'react'
const { object } = React.PropTypes
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitions.
*/
const RouteContext = {
prop... |
app/javascript/mastodon/features/pinned_statuses/index.js | Arukas/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
src/PaginationButton.js | xsistens/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import createSelectedEvent from './utils/createSelectedEvent';
import CustomPropTypes from './utils/CustomPropTypes';
const PaginationButton = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
... |
src/svg-icons/social/party-mode.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPartyMode = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 .... |
app/javascript/mastodon/components/account.js | narabo/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import DisplayName from './display_name';
import Permalink from './permalink';
import IconButton from './icon_button';
import { defineMessages, injectIntl } from 'rea... |
src/svg-icons/editor/border-horizontal.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderHorizontal = (props) => (
<SvgIcon {...props}>
<path d="M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zm4 4h2v-2H7v2zM5 3H3v2h2V3zm4 0H7v2h2V3zm8 0h-2v2h2V3zm-4 4h-2v2h2V7zm0-4h-2v2h2V3zm6 14h2v-2h-2v2z... |
src/js/components/tabs/tab_button.js | working-minds/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import { mixin } from '../../utils/decorators';
import {
CssClassMixin,
ContainerMixin,
FormContainerMixin
} from '../../mixins';
@mixin(
CssClassMixin,
ContainerMixin,
FormContainerMixin
)
export default class TabButton e... |
src/Item.js | karote00/todo-react | require('../stylesheets/item.scss');
import React, { Component } from 'react';
import FontAwesome from 'react-fontawesome';
import { tabStore } from './tabStore';
import classNames from 'classnames';
export class Item extends Component {
constructor(props) {
super(props);
this.state = {
list: tabStore.getState... |
dist/react-input-autosize.es.js | JedWatson/react-input-autosize | import React, { Component } from 'react';
import PropTypes from 'prop-types';
var asyncGenerator = function () {
function AwaitValue(value) {
this.value = value;
}
function AsyncGenerator(gen) {
var front, back;
function send(key, arg) {
return new Promise(function (resolve, reject) {
... |
ext_frontend/src/index.js | per-garden/webapp | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/svg-icons/image/timer-3.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer3 = (props) => (
<SvgIcon {...props}>
<path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49.11-.73 0-.55-.09-1.... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | chf2/react-router | /*globals COURSES:true */
import React from 'react'
class Announcement extends React.Component {
render() {
let { courseId, announcementId } = this.props.params
let { title, body } = COURSES[courseId].announcements[announcementId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
... |
src/Parser/ShadowPriest/CombatLogParser.js | mwwscott0/WoWAnalyzer | import React from 'react';
import MainCombatLogParser from 'Parser/Core/CombatLogParser';
import DamageDone from 'Parser/Core/Modules/DamageDone';
import SuggestionsTab from 'Main/SuggestionsTab';
import AbilityTracker from './Modules/Core/AbilityTracker';
import CastEfficiency from './Modules/Features/CastEfficienc... |
src/field/ImageRenderer.js | carab/Pinarium | import React from 'react';
import useFirebaseImage from '../hooks/useFirebaseImage';
function ImageRenderer({value, name, ...props}) {
const [src] = useFirebaseImage(value);
if (src) {
return <img src={src} alt={value} {...props} />;
}
return null;
}
export default ImageRenderer;
|
web/src/js/__tests__/components/FlowView/ToggleEditSpec.js | vhaupert/mitmproxy | // jest.mock('../../../ducks/ui/flow')
import React from 'react'
import renderer from 'react-test-renderer'
import ToggleEdit from '../../../components/FlowView/ToggleEdit'
import { Provider } from 'react-redux'
import { startEdit, stopEdit } from '../../../ducks/ui/flow'
import { TFlow, TStore } from '../../ducks/tuti... |
src/js/routes.js | julianburr/wp-react-theme | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Index from './templates';
import Loading from './templates/loading';
import Home from './templates/home';
import SearchResult from './templates/search-result';
import Content from './templates/content';
import { connect } from 'react-r... |
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/CableParams.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from ... |
app/containers/MainContent.js | SiDevesh/Bootleg | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import MainContentComponent from '../components/MainContentComponent';
const mapStateToProps = (state) => {
return {
selectedPane: state.navPaneState.selectedPane,
windowWidth: state.themeState.windowWidth,
windowHe... |
src/js/index.js | nikdelig/react-redux-sass-starter-kit | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import App from './components/App';
const root = document.getElementById('root');
render(
<Provider>
<Router>
<App />
</Router>
</Provider>... |
docs/src/pages/styles/basics/AdaptingHOC.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
const styles = {
root: {
background: (props) =>
props.color === 'red'
? 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)'
: '... |
src/components/Popovers.js | vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome | import React from 'react';
import {Page, Toolbar, BackButton, Popover} from 'react-onsenui';
class Popovers extends React.Component {
constructor(props) {
super(props);
this.state = {
isOpen: false
};
}
showPopover() {
this.setState({isOpen: true});
set... |
ee/client/omnichannel/additionalForms/MaxChatsPerAgentDisplay.js | VoiSmart/Rocket.Chat | import React from 'react';
import { useTranslation } from '../../../../client/contexts/TranslationContext';
import UserInfo from '../../../../client/views/room/contextualBar/UserInfo';
const MaxChatsPerAgentDisplay = ({
data: { livechat: { maxNumberSimultaneousChat = '' } = {} } = {},
}) => {
const t = useTranslati... |
next-express/components/Header.js | thoughtbit/node-web-starter | import React from 'react'
import Link from 'next/link'
import NProgress from 'nprogress'
import Router from 'next/router'
Router.onRouteChangeStart = (url) => {
console.log(`Loading: ${url}`)
NProgress.start()
}
Router.onRouteChangeComplete = () => NProgress.done()
Router.onRouteChangeError = () => NProgress.done(... |
src/DatePicker/Calendar.spec.js | xmityaz/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Calendar from './Calendar';
import {addMonths, dateTimeFormat} from './dateUtils';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Calendar />', () => {
const muiTheme = getMuiTheme();
... |
node_modules/react-bootstrap/es/Tooltip.js | NickingMeSpace/questionnaire | 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 ... |
src/svg-icons/social/location-city.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialLocationCity = (props) => (
<SvgIcon {...props}>
<path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h... |
src/components/pages/register.js | cosminseceleanu/react-sb-admin-bootstrap4 | import React from 'react';
import {Link} from 'react-router-dom';
import {
Card,
CardBody,
CardHeader,
Form,
Input,
Label,
FormGroup,
Button,
Col
} from 'reactstrap';
const Register = () => {
return (
<Card className="card-register mx-auto mt-5">
<CardHeader>... |
app/src/components/RSSPanels/SuggestedFeeds.js | GetStream/Winds | import { Link } from 'react-router-dom';
import getPlaceholderImageURL from '../../util/getPlaceholderImageURL';
import { Img } from 'react-image';
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import Panel from '../Panel';
import { getSuggestedRss, followRss, unf... |
app/views/Proposals/Proposal/View/View.js | RcKeller/STF-Refresh | // NOTE: This abstraction isn't necessary, but directories will be super cluttered without.
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Alert } from 'antd'
import Head from './Head/Head'
import Overview from './Overview/Overview'
import Body ... |
fields/types/datetime/DatetimeField.js | davibe/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'DatetimeField',
focusTargetRef: 'dateInput',
// d... |
app/components/Icon.js | alexeyraspopov/evo | import React from 'react';
export default function Icon({type, className = ''}) {
return <span className={`material-icons ${className}`}>{type}</span>;
}
|
fields/components/columns/ArrayColumn.js | suryagh/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
... |
frontend/src/Components/Table/VirtualTable.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Grid, WindowScroller } from 'react-virtualized';
import Measure from 'Components/Measure';
import Scroller from 'Components/Scroller/Scroller';
import { scrollDirections } from 'Helpers/Props';
import hasDifferentItemsOrOrder from 'U... |
test/test_helper.js | kleavjames/SimpleYoutubeSearchApp | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux'... |
fields/types/boolean/BooleanField.js | danielmahon/keystone | import React from 'react';
import Field from '../Field';
import Checkbox from '../../components/Checkbox';
import { FormField } from '../../../admin/client/App/elemental';
const NOOP = () => {};
module.exports = Field.create({
displayName: 'BooleanField',
statics: {
type: 'Boolean',
},
propTypes: {
indent: Re... |
src/applications/disability-benefits/all-claims/pages/contactInformation.js | department-of-veterans-affairs/vets-website | import React from 'react';
// import _ from 'platform/utilities/data';
import merge from 'lodash/merge';
import omit from 'platform/utilities/data/omit';
import fullSchema from 'vets-json-schema/dist/21-526EZ-ALLCLAIMS-schema.json';
// import dateUI from 'platform/forms-system/src/js/definitions/date';
// import dateRa... |
src/containers/auth/AuthenticateView.js | yursky/recommend | /**
* Authenticate Screen
* - Entry screen for all authentication
* - User can tap to login, forget password, signup...
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import {
View,
Image,
StyleSheet,
} from 'react-native';
... |
app/javascript/mastodon/features/followers/index.js | lindwurm/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
client/modules/core/components/error.js | open-dash/open-dash | import React from 'react';
const CustomError = ({error}) => (
<div style={{ color: 'red', textAlign: 'center' }}>
{error.message}
</div>
);
export default CustomError;
|
src/server.js | nobleach/react-redux-example | import Express from 'express';
import React from 'react';
import Router from 'react-router';
import Location from 'react-router/lib/Location';
import routes from './views/routes';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy... |
src/containers/Main.js | WapGeaR/react-redux-boilerplate-auth | import React from 'react'
import {BreadCrumbs, PageHeading} from 'template/layout'
import {Block} from 'template/components'
export default class Main extends React.Component {
render() {
return(
<div className="page-content">
<BreadCrumbs childs={[
{name: 'Dashboard', url: '... |
src/components/tab/tab_body.js | n7best/react-weui | import React from 'react';
import classNames from '../../utils/classnames';
/**
* Content Wrapper for Tab
*/
export default class TabBody extends React.Component {
render() {
const {children, className, ...others} = this.props;
const cls = classNames({
'weui-tab__panel': true
... |
examples/todomvc/src/components/Master.js | lore/lore | /**
* This component serves as the root of your application, and should typically be the only
* component subscribed to the store.
*
* It is also a good place to fetch the current user. Once you have configured 'models/currentUser'
* to fetch the current user (by pointing it to the correct API endpoint) uncomment ... |
client/components/PhotoDetailContainer.js | yinkyo/react-redux-learning | import React from 'react';
import PhotoDetail from './PhotoDetail';
// import Comment from ./Comment;
const PhotoDetailContainer = React.createClass({
render() {
const i = this.props.posts.findIndex(
(post) => post.code === this.props.params.postId
);
const post = this.props.posts[i];
const co... |
src/components/Button/icons/mail.js | yante/halfof8 | import React from 'react';
export default ({ color }) => <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 16">
<g fill="none" fill-rule="evenodd">
<path d="M-2-4h24v24H-2z"/>
<path fill={color || "#5261FF"} fill-rule="nonzero" d="M18 0H2C.9 0 .01.9.01 2L0 14c0 1.1.9 2 ... |
src/svg-icons/action/restore-page.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestorePage = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.... |
node_modules/semantic-ui-react/dist/es/modules/Accordion/AccordionTitle.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
src/components/containers/Zones.js | aerendon/yik-yak | import React, { Component } from 'react';
import Zone from '../presentation/Zone.js';
import superagent from 'superagent';
class Zones extends Component {
constructor() {
super()
this.state = {
zone: {
name: '',
zipCode: ''
},
list: []
}
}
componentDidMount() {
... |
packages/material-ui-icons/src/PlusOne.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z" /></g>
, 'PlusOne');
|
examples/huge-apps/routes/Course/components/Dashboard.js | frankleng/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
src/components/Main.js | aframevr/aframe-inspector | import React from 'react';
THREE.ImageUtils.crossOrigin = '';
const Events = require('../lib/Events.js');
import ComponentsSidebar from './components/Sidebar';
import ModalTextures from './modals/ModalTextures';
import ModalHelp from './modals/ModalHelp';
import SceneGraph from './scenegraph/SceneGraph';
import Camer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.