path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/js/components/icons/base/Shift.js | odedre/grommet-final | /**
* @description Shift SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @prop... |
packages/showcase/plot/stacked-vertical-bar-chart.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/svg-icons/editor/format-indent-increase.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentIncrease = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentIncrease... |
src/server/frontend/Html.js | skyuplam/debt_mgmt | // @flow
/* eslint-disable react/no-danger */
import React from 'react';
const GoogleAnalytics = ({ id }) => (
<script
dangerouslySetInnerHTML={{ __html: `
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.creat... |
src/components/Footer.js | mimccio/Mbtn-site | import React from 'react'
import styled from 'styled-components'
import { palette } from 'm-btn'
const Wrapper = styled.section`
margin-top: auto;
padding-top: 3rem;
`
const LoveIcon = styled.i`
color: ${palette.warning.main};
`
export default () => (
<Wrapper>
<div>
<p>
<a href='https://gi... |
src/client.js | hokustalkshow/friend-landing-page | /**
* 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 createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
assets/javascripts/kitten/components/action/social-button-icon-words/index.js | KissKissBankBank/kitten | import React from 'react'
import { Button } from '../../action/button'
import { FacebookIcon } from '../../graphics/icons/facebook-icon'
import { TwitterIcon } from '../../graphics/icons/twitter-icon'
import { LinkedinIcon } from '../../graphics/icons/linkedin-icon'
import { InstagramIcon } from '../../graphics/icons/i... |
reflux-app/App.js | Orientsoft/conalog-front | import React from 'react'
import ReactDom from 'react-dom'
import Reflux from 'reflux'
import RefluxPromise from 'reflux-promise'
import Promise from 'bluebird'
Reflux.use(RefluxPromise(Promise))
import _ from 'lodash'
// import 'antd/dist/antd.css'
let message = require('antd/lib/message')
let Modal = require... |
zwdemoRect/src/components/frm/addfrm.js | send2ocean/nodelearn | import React from 'react'
import { connect } from 'react-redux'
import { add_frm } from '../../redux/actions'
let ADD_FRM = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(add_fr... |
Activities/WebApp/src/app/footer.js | swcraftlyon/meetup | import React, { Component } from 'react';
const styles = {
footer: {
padding: '0.5rem',
fontSize: '1rem',
backgroundColor: '#3adbdb',
textAlign: 'center'
}
}
export class Footer extends Component {
render() {
return (
<footer style={styles.footer}>
<a href="https://github.com/s... |
sampleApps/react/src/main/webapp/app/app.js | willbuck/g3-2016-grails-gradle-node | import React from 'react';
import ReactDOM from 'react-dom';
import About from './about';
require('./../styles/style.css');
ReactDOM.render(<About />, document.getElementById('app')); |
react-flux/demo01/js/components/Inspector.react.js | majunbao/xue | import React from 'react';
class Inspector extends React.Component {
render() {
return(
<div className="app-inspector"> Inspector </div>
)
}
}
export default Inspector; |
packages/material-ui-icons/src/ThumbsUpDown.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ThumbsUpDown = props =>
<SvgIcon {...props}>
<path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-... |
admin/client/App/shared/InvalidFieldType.js | matthewstyers/keystone | /**
* Renders an "Invalid Field Type" error
*/
import React from 'react';
const InvalidFieldType = function (props) {
return (
<div className="alert alert-danger">
Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong>
</div>
);
};
InvalidFieldType.propTypes = {
path: Reac... |
app/src/containers/BasePage.js | cs-cordero/mtgls | import React from 'react';
import NavBar from '../components/NavBar';
import Footer from '../components/Footer';
import Router from '../components/Router';
export default class BasePage extends React.Component {
render() {
return (
<div className='hero is-fullheight'>
<div class... |
src/main/resources/static/bower_components/jqwidgets/demos/react/app/grid/filtering/app.js | dhawal9035/WebPLP | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
import JqxPanel from '../../../jqwidgets-react/rea... |
src/templates/seo.js | ianmcgregor/mcgregor.codes | import React from 'react';
import Helmet from 'react-helmet';
export default ({
siteMetadata,
settings,
page
}) => {
const siteURL = siteMetadata.url;
const title = page.title && page.slug ? `${settings.title} / ${page.title.toUpperCase()}` : settings.title;
const description = page.description... |
client/containers/NotFound.js | ashoka-ireland/ashoka-ui | import React from 'react';
import { Link } from 'react-router';
import { Card } from 'antd';
import { Footer } from 'components';
const NotFound = () => {
return (
<div class="app">
<main class="container">
<Card>
<h2>404 Page Not Found</h2>
<p><Link to="/"> Go back to homepage... |
src/components/CampaignTimeAndSalary/NotFound.js | goodjoblife/GoodJobShare | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import CommonNotFound from 'common/NotFound';
import Redirect from 'common/routing/Redirect';
import { queryCampaignInfoList } from '../../actions/campaignInfo';
import { isFetched }... |
node_modules/react-bootstrap/es/FormGroup.js | cmccandless/SolRFrontEnd | 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/Router.js | aalluri-navaratan/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
fields/types/money/MoneyField.js | belafontestudio/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'MoneyField',
valueChanged (event) {
var newValue = event.target.value.replace(/[^\d\s\,\.\$€£¥]/g, '');
if (newValue === this.props.value) return;
this.props.onChange(... |
src/index.js | williamliew/brokerApp | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { Router, Route, Link, browserHistory } from 'react-router';
const Home = React.createClass({
render() {
return (<h3>Message</h3>);
}
});
const What = React.createClass({
render() {
return (<h3>Test</h3>);
}
}... |
src/svg-icons/hardware/desktop-mac.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopMac = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/>
</SvgIcon>
);
HardwareDesktopM... |
src/components/PostPage.js | michaelnyu/michaelnyu.github.io | import React from 'react';
import ReactMarkdown from 'react-markdown';
import { GRID_UNIT, VIEW_STYLES } from '~/src/shared/styles';
import { headingStyles, pStyles, FONT_WEIGHT } from '~/src/shared/typography';
const styles = {
body: {
'> h1': headingStyles({
marginBottom: GRID_UNIT * 8,
fontWeight:... |
example/src/TreeChartDemo.js | rsamec/react-pathjs-chart | import React from 'react';
import {Tree} from 'react-pathjs-chart';
import genie from 'genie'
import ChartDemo from './ChartDemo.js';
export class TreeDemo {
get dataTemplate() {
var leafTemplate = {
min: 1,
max: 5,
template: {
name: {
... |
app/javascript/mastodon/features/getting_started/index.js | kazh98/social.arnip.org | import React from 'react';
import Column from '../ui/components/column';
import ColumnLink from '../ui/components/column_link';
import ColumnSubheading from '../ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import Prop... |
front_end/front_end_app/src/server/frontend/render.js | carlodicelico/horizon | import DocumentTitle from 'react-document-title';
import Html from './html.react';
import Promise from 'bluebird';
import React from 'react';
import Router from 'react-router';
import config from '../config';
import immutable from 'immutable';
import initialState from '../initialstate';
import routes from '../../client... |
src/components/render-in-body/RenderInBody.js | edgemesh/emui | import React, { Component } from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
class RenderInBody extends Component {
componentDidMount() {
this.child = document.createElement('div');
document.body.appendChild(this.child);
this._renderLayer();
}
componentDidUpdate() {
this._r... |
library_js/src/components/addBook.js | HoldYourBreath/Library | import React from 'react';
import ShowThumbnail from './ShowThumbnail';
import sessionStore from '../stores/Session';
import { observer } from 'mobx-react';
import locationStore from '../stores/LocationStore';
import { Redirect } from 'react-router'
import {FormGroup,
Button,
Col,
Alert,
... |
client/routes.js | sharvit/my-blog-react | /* eslint-disable global-require */
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './modules/App/App';
// Import Middlewares
import { isAuthenticated, isAuthenticatedSeller } from './modules/Auth/middlewares';
// require.ensure polyfill for node
if (typeof require.ensure... |
src/components/testing.js | ProjectSunday/rooibus | import React from 'react'
import * as Actions from '../actions/actions'
class Testing extends React.Component {
test1Clicked = () => {
Actions.test1()
}
test2Clicked = () => {
Actions.test2()
}
render() {
return (
<div>
{/*<div className="testing... |
src/ButtonGroup.js | coderstudy/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... |
assets/javascripts/kitten/components/graphics/icons/file-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const FileIcon = ({ color, title, ...props }) => (
<svg
width="16"
height="20"
viewBox="0 0 16 20"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}
<path
d="M16 20H0V0h11l5 5v15zM1... |
components/DeviceFrame/DeviceFrame.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { canUseDOM } from 'exenv';
import getValidIndex from '../../utils/getValidIndex/getValidIndex';
import Swap from '../Animate/Swap';
export default class DeviceFrame extends Component {
static propTypes = {
children: PropTypes.... |
app/components/profile/ChangeField.js | ritishgumber/dashboard-ui | import React from 'react';
class ChangeField extends React.Component {
constructor(props) {
super(props);
this.state = {
editMode: false
};
}
render() {
const editField = () => this.setState({ editMode: true });
const closeEditing = () => {
this.setState({ editMode: false });
... |
web/react/components/validation/FieldValidation.js | vdyachenko-determine/tasker | import React from 'react';
/**
* React component for custom field validation
*/
class FieldValidation extends React.Component {
/**
* Constructor
*
* @param props component's properties
*/
constructor(props) {
super(props);
// this declaration allows us to use this inside... |
src/svg-icons/maps/traffic.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTraffic = (props) => (
<SvgIcon {...props}>
<path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41... |
client/guidestours/config.js | allendav/wp-calypso | /**
* External dependencies
*/
import React from 'react';
/**
* Internal dependencies
*/
import Gridicon from 'components/gridicon';
import i18n from 'lib/mixins/i18n';
const config = {
init: {
text: i18n.translate( '{{strong}}Need a hand?{{/strong}} We\'d love to show you around the place, and give you some i... |
modules/gob-web/modules/course-table/missing-course.js | hawkrives/gobbldygook | // @flow
import React from 'react'
import FakeCourse from './fake-course'
type Props = {
+className?: string,
+clbid: string,
+error: Error,
}
export default function MissingCourse(props: Props) {
return (
<FakeCourse
title={`Cannot load course ${props.clbid}`}
details={String(props.error.message)}
cl... |
packages/web/src/components/range/SingleRange.js | appbaseio/reactivesearch | import React, { Component } from 'react';
import { updateQuery, setQueryOptions, setCustomQuery } from '@appbaseio/reactivecore/lib/actions';
import hoistNonReactStatics from 'hoist-non-react-statics';
import {
isEqual,
checkValueChange,
checkSomePropChange,
getClassName,
updateCustomQuery,
getOptionsFromQuery,
... |
app/javascript/mastodon/components/permalink.js | Arukas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Permalink extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
className: PropTypes.string,
href: PropTypes.string.isRequired,
to: PropTypes.string.isRequired,
... |
frontend/src/index.js | rossnomann/playlog | import 'whatwg-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import App from './app';
import {store} from './redux';
import './index.css';
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);... |
src/svg-icons/action/pageview.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPageview = (props) => (
<SvgIcon {...props}>
<path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-... |
src/client/components/admin/GalleryListView.js | dtekcth/dfotose | import React from 'react';
import {Link} from "react-router-dom";
import GalleryList from './GalleryList';
import GalleryStore from '../../GalleryStore';
class GalleryListView extends React.Component {
render() {
const store = new GalleryStore(true);
return (
<div>
<h4> Gallerier </h4>
... |
imports/client/ui/pages/NewEvent/loadable.js | mordka/fl-events | import React from 'react'
import Loadable from 'react-loadable'
const LoadableComponent = Loadable({
loader: () => import('./index'),
render (loaded, props) {
let Component = loaded.default
return <Component { ...props } />
},
loading () { return <div /> }
})
export default LoadableComponent
|
components/FunnelInputField/FunnelInputField.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React from 'react';
import mergeObjectStrings from '../../utils/mergeObjectStrings/mergeObjectStrings';
import InputField from '../Form/InputField/InputField';
import css from './FunnelInputField.css';
const FunnelInputField = ({ classNames, ...rest }) => {
const classes =... |
src/App.js | vincentaudebert/people-recog | /* eslint no-undef: 0 */
import React, { Component } from 'react';
import './App.css';
import '../node_modules/tracking/build/tracking-min';
import '../node_modules/tracking/build/data/face';
import Webcam from 'webcamjs';
import resemble from 'resemblejs';
import Modal from 'react-modal';
const debounce = (func, wait... |
src/components/Login/LoginCtrl.js | folio-org/stripes-core | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect as reduxConnect } from 'react-redux';
import {
withRouter,
matchPath,
} from 'react-router-dom';
import { ConnectContext } from '@folio/stripes-connect';
import {
requestLogin,
requestSSOLogin,
} from '../../loginSer... |
react-router-demo/lessons/03-navigating-with-link/modules/App.js | zhangjunhd/react-examples | import React from 'react'
export default React.createClass({
render() {
return <div>Hello, React Router!</div>
}
})
|
docs/app/Examples/modules/Progress/States/index.js | ben174/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const ProgressStatesExamples = () => (
<ExampleSection title='States'>
<Message info>... |
src/render-to-layer.js | esleducation/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import Events from './utils/events';
import Dom from './utils/dom';
import {debounce} from 'lodash';
// heavily inspired by https://github.com/Khan/react-components/blob/master/js/layered-component-mixin.jsx
const RenderToLayer = React.createClass({
compo... |
src/shared/types/react.js | amcsi/teamap | /* @flow */
// Note: we already have the definitions from
// https://github.com/facebook/flow/blob/master/lib/react.js
// so the below are merely helpful extensions.
import React from 'react';
export type ReactElement = React.Element<any>;
export type ReactNode = string | number | ReactElement | Array<ReactElement>... |
actor-apps/app-web/src/app/components/modals/Preferences.react.js | luwei2012/actor-platform | import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstants';
import Actor... |
subfind_web/ui/src/components/AdminLTE.js | thongdong7/subfind | import React from 'react'
export default class AdminLTE extends React.Component {
render() {
return (
<div className="container">
{this.props.children}
</div>
)
}
}
|
examples/src/components/NumericSelect.js | OpenGov/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
var ValuesAsNumbersField = createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: PropTypes.string
},
getInitialState () {
return {
options: [
{... |
src/svg-icons/action/account-balance-wallet.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBalanceWallet = (props) => (
<SvgIcon {...props}>
<path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-... |
client/packages/core-dashboard-worona/src/dashboard/loading-dashboard-theme-worona/components/Theme/index.js | worona/worona | import React from 'react';
import Footer from '../Footer';
import styles from './style.css';
export const Theme = ({ children }) => (
<div className={styles.app}>
<div></div>
<div className={styles.main}>
{children}
</div>
<div className={styles.footer}>
<Footer />
</div>
</div>
);
... |
frontend/src/components/forms/fields/projectFields/locationField/locationsMap.js | unicef/un-partner-portal |
import React, { Component } from 'react';
import R from 'ramda';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Place from 'material-ui-icons/Place';
import { Marker, Popup, ZoomControl } from "react-mapbox-gl";
import MapContainer from '../../../../common/map/MapContainer';
import {... |
node_modules/react-spinner-children/utils/tester.js | caughtclean/but-thats-wrong-blog | import TestUtils from 'react-addons-test-utils';
import React from 'react';
const jsdom = require('jsdom');
function renderComponent(react, props) {
global.document = jsdom.jsdom('<!DOCTYPE html><html><body></body></html>');
global.window = document.defaultView;
global.navigator = {userAgent: 'node.js'};
con... |
docs/pages/performance/table-emotion.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import NoSsr from '@material-ui/core/NoSsr';
const createComponent = (defaultComponent) => {
const MyComponent = React.forwardRef(function MyComponent(props, ref) {
const { component: Component = defaultComponent... |
frontend/react-stack/react/aluraflix/src/components/Menu/index.js | wesleyegberto/courses-projects | // must be import to be in scope
import React from 'react';
import { Link } from 'react-router-dom';
import './menu.css';
import ButtonLink from './components/ButtonLink';
import Logo from '../../assets/img/LogoMain.png';
// Long way: recommended when there is state
// class Menu extends React.Component {
// rende... |
client/modules/Post/__tests__/components/PostCreateWidget.spec.js | vibhas77/Student-Wallet | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
src/components/controller/AppController.js | DataKind-BLR/antara | import React from 'react';
import RightSidebar from '../views/rightsidebar/RightSidebar';
import ReportView from "../views/reportview/ReportView";
import { appController } from "../ConfigMap";
class AppController extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
app/javascript/mastodon/features/mutes/index.js | KnzkDev/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
analysis/demonhuntervengeance/src/modules/talents/SoulBarrier.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatPercentage, formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import DamageTracker from 'parser/share... |
node_modules/react-router/es6/Link.js | dwmorrisdev/ReactWeather | 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 = {... |
src/components/Timekit-Calendar.js | sogalutira/PollerBears | import React, { Component } from 'react';
import TimekitBooking from 'timekit-booking';
import Livemap from '../components/Map';
require('jquery');
const widget = new TimekitBooking();
class TimekitCalendar extends Component{
componentDidMount(){
console.log(Livemap);
console.log(document.getElementsByClassName(... |
src/interface/news/RegularArticle.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Contributor from 'interface/contributor/Button';
import makeNewsUrl from 'interface/news/makeUrl';
class RegularArticle extends React.PureComponent {
static propTypes = {
title: PropTypes.node.isRequir... |
docs/app/Examples/collections/Table/Variations/TableExampleFixed.js | koenvg/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleFixed = () => {
return (
<Table fixed>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Description</... |
react-ui/src/components/Footer/Footer.js | morewines/refund-calculator-bigcommerce | import React from 'react';
// CSS
import './Footer.css';
const Footer = () => (
<footer className="footer-wrap">
<div className="container">
Built by{' '}
<a href="http://andrewmaidah.com/" target="_blank">
AM
</a>{' '}
for{' '}
<a href="https://www.morewines.com" target="_... |
src/views/clubLayout/Disconnected/Disconnected.js | BudIT/vclub | import React from 'react';
import styles from './Disconnected.css';
export default function Disconnected() {
return (
<div className={styles.container}>
<span>Приложение было отключенно от сервера. Обновите страницу или попробуйте позже.</span>
</div>
);
}
|
index.js | pillys/react-native-html5 | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
Linking,
PixelRatio,
} from 'react-native';
import htmlparser from './lib/htmlparser';
const ratio = PixelRatio.get();
const InlineTags = ['b','font','i','em','big','strong','small','sub','sup','u','ins','mark','code','addre... |
src/svg-icons/hardware/keyboard-backspace.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardBackspace = (props) => (
<SvgIcon {...props}>
<path d="M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"/>
</SvgIcon>
);
HardwareKeyboardBackspace = pure(HardwareKeyboardBackspace);
Ha... |
src/svg-icons/image/image.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageImage = (props) => (
<SvgIcon {...props}>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImageImage = p... |
app/app.js | dfmcphee/pinnr | import React from 'react';
import { Link } from 'react-router';
import { Button, Container, Menu, Segment } from 'semantic-ui-react';
import AuthenticationStore from './stores/authentication-store';
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
au... |
packages/wix-style-react/src/Slider/test/Slider.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import Slider from '../Slider';
import Box from '../../Box';
import { Cell, Layout } from '../../Layout';
const commonProps = {
min: 0,
max: 10,
value: 4,
displayMarks: false,
onChange: e => e,
};
const tests = [
{
describe: '',
... |
openex-front/src/private/components/exercises/injects/InjectAddAudiences.js | Luatix/OpenEx | import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as R from 'ramda';
import Button from '@mui/material/Button';
import Chip from '@mui/material/Chip';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
im... |
app/components/GoogleMapMarker/Marker.js | 7ruth/PadStats2 | import React from 'react';
import PropTypes from 'prop-types';
import { camelize } from '../../utils/GoogleMapsUtils/String';
// const evtNames = ['mouseover', 'click', 'recenter', 'dragend'];
const wrappedPromise = () => {
const wrappedPromise = {}, //eslint-disable-line
promise = new Promise((resolve, reject)... |
packages/showcase/plot/big-base-bar-chart.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
js/components/Main.js | syarul/isoblog | import React from 'react';
import { Grid, Row, Button, Well } from 'react-bootstrap';
export default class Main extends React.Component {
propTypes: {
counter: React.PropTypes.number.isRequired,
onCounterClicked: React.PropTypes.func.isRequired,
falcorGreet: React.PropTypes.string.isRequired
... |
docs/app/Examples/collections/Form/Shorthand/FormExampleFieldLabelObject.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Checkbox, Form } from 'semantic-ui-react'
const FormExampleFieldLabelElement = () => (
<Form>
<Form.Field
control={Checkbox}
label={<label>I agree to the Terms and Conditions</label>}
/>
</Form>
)
export default FormExampleFieldLabelElement
|
src/svg-icons/hardware/desktop-mac.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopMac = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/>
</SvgIcon>
);
HardwareDesktopM... |
src/components/Analyser/Analyser.js | KNETIC-KRPF/KNETIC-CLIENT | import React, { Component } from 'react';
import "./Analyser.css";
class Analyser extends Component {
componentDidMount() {
this.makeAnalyser();
}
makeAnalyser() {
const self = this;
const width = window.innerWidth;
setInterval( function() {
self.props.analyser.fftSize = 1024;... |
pootle/static/js/editor/index.js | phlax/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import assign from 'object-assign';
import React from 'rea... |
NewsAppDemo/Component/Message.js | SpadeZach/RNNewsApp | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class Message extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
消息
</Text>
</View>
);
}
}
const styl... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | brunolimadevelopment/brunolimadevelopment.github.io | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/selectPluginRoutes.js | jcoreio/redux-plugins-immutable-react-router | /* @flow */
import * as Immutable from 'immutable'
import React from 'react'
import memoize from 'lodash.memoize'
import {createSelector, createSelectorCreator, defaultMemoize} from 'reselect'
function shallowEqual(a, b) {
if (a === b) return true
if (a && b) {
if (a.size !== b.size) return false
return a... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js | ontruck/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id = 0, ...rest }) {
return [
{ id:... |
admin/client/App/components/Navigation/Primary/index.js | frontyard/keystone | /**
* The primary (i.e. uppermost) navigation on desktop. Renders all sections and
* the home-, website- and signout buttons.
*/
import React from 'react';
import { Container } from '../../../elemental';
import PrimaryNavItem from './NavItem';
var PrimaryNavigation = React.createClass({
displayName: 'PrimaryNavig... |
web/components/BucketSelector.js | ByzantineFailure/TweetStream | import React from 'react';
const values = [
{ label: '1 second', value: 1000 },
{ label: '3 seconds', value: 3000 },
{ label: '5 seconds', value: 5000 },
{ label: '10 seconds', value: 10000 },
{ label: '30 seconds', value: 30000 },
{ label: '1 minute', value: 60000 }
]
class BucketSelector ext... |
docs/src/pages/components/timeline/ColorsTimeline.js | lgollut/material-ui | import React from 'react';
import Timeline from '@material-ui/lab/Timeline';
import TimelineItem from '@material-ui/lab/TimelineItem';
import TimelineSeparator from '@material-ui/lab/TimelineSeparator';
import TimelineConnector from '@material-ui/lab/TimelineConnector';
import TimelineContent from '@material-ui/lab/Tim... |
src/components/children/ArtistCard.js | Nfinley/Showcase-Playlist-Generator | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import CardMedia from '@material-ui/core/CardMedia';
import IconButton from '@material-ui/core/IconBut... |
src/components/widgets/ot/publisher/Media.js | brancusi/lingo-client-react | import React from 'react';
import Radium from 'radium';
import { fromJS } from 'immutable';
export const WIDTH = 200;
export const HEIGHT = 150;
@Radium
export default class Media extends React.Component {
static propTypes = {
session: React.PropTypes.object,
publishVideo: React.PropTypes.bool.isRequired,
... |
assets/jqwidgets/demos/react/app/datetimeinput/disabled/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js';
class App extends React.Component {
render() {
return (
<JqxDateTimeInput
width={250} height={25} disabled={true}
/>
... |
examples/auth-with-shared-root/components/Login.js | rubengrill/react-router | import React from 'react'
import { History } from 'react-router'
import auth from '../utils/auth.js'
const Login = React.createClass({
mixins: [ History ],
getInitialState() {
return {
error: false
}
},
handleSubmit(event) {
event.preventDefault()
const email = this.refs.email.value
... |
src/components/DBTable/InnerCapacityDetail.js | lijinfengworm/ant-design-reactjs | import React from 'react';
import {
Button,
Table,
Icon,
Modal,
message,
notification,
Affix,
Card, Col, Row, Switch
} from 'antd';
import Logger from '../../utils/Logger';
import Utils from '../../utils';
import ajax from '../../utils/ajax';
import moment from 'moment';
import ImageSlider from '../Imag... |
Code/V1/src/src/Login.js | neurotechuoft/MindType | import React, { Component } from 'react';
import logo from './mindtype_logo.png';
import io from "socket.io-client";
const nlp_socket = io('http://34.73.165.89:8001'); // Socket to connect to NLP Service.
const robot_socket = io('http://localhost:8003'); // Socket to connect to RobotJS
class Login extends React.Compo... |
packages/material-ui-icons/src/Message.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Message = props =>
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z" />
</SvgIcon>;
Message = pure(Me... |
app/components/Header/index.js | lizhaogai/lyda-dada-v | import React from 'react';
import {FormattedMessage} from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-lin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.