path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/javascript/mastodon/features/list_editor/index.js | summoners-riftodon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... |
src/encoded/static/components/static-pages/components/StackedBlockVisual.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _, { clone } from 'underscore';
import memoize from 'memoize-one';
import OverlayTrigger from 'react-bootstrap/esm/OverlayTrigger';
import { console, object, logger } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
... |
client/src/components/Instructions.js | codefordenver/Circular | import React from 'react';
const Instructions = () => (
<div className="instructions-wrapper">
<header className="instructions-header">Instructions go here</header>
<div className="steps">
<div className="step create">
<h2 className="instruction-step-title">
<i className="fa fa-foghor... |
client/src/react/settings/ChangePassword.js | charlesj/Apollo | import React from 'react'
import apollo from '../../services/apolloServer'
import { Container, Button, } from '../_controls'
import { NotifySuccess, NotifyError, } from '../../services/notifier'
import './ChangePassword.css'
class ChangePassword extends React.Component {
constructor(props) {
super(props)
th... |
CoreCRM/ClientApp/src/views/Customer/Contact/Add.js | holmescn/CoreCRM | import React from 'react';
import { connect } from 'dva';
// import styles from './Index.css';
function Add() {
return (
<div>客户管理/添加联系人</div>
);
}
Add.propTypes = {
};
export default connect()(Add);
|
src/components/Stream/index.js | OttoH/rereKit |
import React from 'react';
import { connect } from 'react-redux';
import Stream from './presenter'
// bind actions
import { bindActionCreators } from 'redux'
import { actionCreators as authActionCreators } from '../../ducks/auth';
const mapStateToProps = (state) => {
return {
...state.auth,
...st... |
docs/src/app/components/pages/components/Menu/Page.js | pradel/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import menuReadmeText from './README';
import MenuExampleSimple from './ExampleS... |
src/App.js | imakatman/picturesfromMars | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import Home from './routes/Home';
class App extends Component {
constructor(props) {
super(props)
}
componentDidMount() {
// Fetch basic data about each rover: 1) name, number of photos, latest day taken photo
... |
20200300-js-spa-react-node-sql/client/src/components/GameSidebar.js | DamienFremont/blog | import React from 'react';
import { FormattedMessage } from 'react-intl';
import { ListGroup, ListGroupItem } from 'reactstrap';
import avatar from 'avatar.png';
import { userDetails } from '../helpers/auth';
const GameSidebar = (props) => {
return (
<ListGroup flush={true} className="w-100 vh-100">
... |
packages/mineral-ui-icons/src/IconBattery80.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconBattery80(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
src/dir/PlacarContainer.js | marcotterra/reactseries | import React from 'react';
import Time from './Time';
import Partida from './Partida';
export default class PlacarContainer extends React.Component {
constructor() {
super();
this.state = {
gols_casa: 0,
gols_visitante: 0,
};
}
marcarGolCasa() {
thi... |
website/core/WebPlayer.js | gilesvangruisen/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/components/ObjectNotFound.js | jansplichal2/reactnd-project-readable-starter | import React from 'react';
import {Link} from 'react-router-dom';
import _ from 'lodash';
const ObjectNotFound = ({name}) => {
return (<div>
<div className="container">
<div className="row">
<div className="ml-auto mb-4 col-8">
<h1><i classN... |
test/integration/basic/pages/stateless.js | dizlexik/next.js | import React from 'react'
export default () => <h1>My component!</h1>
|
src/components/Header/header.js | Mesamo/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Layout, Menu, Icon, Popover } from 'antd'
import getMenus from '../Menus/menus'
import styles from './header.less'
const { SubMenu } = Menu
const Header = ({
menus,
pathname,
isNavbar,
onSwitchSider,
collapsed,
headerMenus,
headerMen... |
packages/material-ui-icons/src/NetworkCell.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let NetworkCell = props =>
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z" /><path d="M17 7L2 22h15z" />
</SvgIcon>;
NetworkCell = pure(NetworkCell);
NetworkCell.muiName = 'SvgIcon';
export de... |
src/index.js | Aprillion/data_viewer | import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import Demo from './Demo'
import * as serviceWorker from './serviceWorker'
ReactDOM.render(<Demo />, document.getElementById('root'))
// If you want your app to work offline and load faster, you can change
// unreg... |
packages/components/src/Rich/HeaderTitle/HeaderTitle.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import theme from './HeaderTitle.scss';
export default function HeaderTitle(props) {
return (
<div className={classNames(theme.container, 'tc-header-title')}>
<h4 className={classNames(theme.title, 'tc-header-tit... |
v0.1/src/stories/index.js | sakulstra/firebase-web-todo | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import Button from './Button';
import Welcome from './Welcome';
storiesOf('Welcome', module)
.add('to Storybook', () => (
<Welcome showApp={linkTo('Button')}/>
));
storiesOf('Button', module)
.add('with text', () => (
... |
src/components/AuthScreen/Auth.helpers.js | shayc/cboard | import React from 'react';
import { Route, Redirect } from 'react-router-dom';
export const PrivateRoute = ({
component: Component,
isLogged,
to = '/login-signup',
...rest
}) => (
<Route
{...rest}
render={props =>
isLogged ? <Component {...props} /> : <Redirect to={to} />
}
/>
);
export ... |
node_modules/eslint-config-airbnb/test/test-react-order.js | ichbinder/DSLspeedTest | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
rules: {
// It is okay to import devDependencies in tests.... |
ui/modules/www/JobsHelper/JobsHelper.js | aol/chronos | // rules
/* eslint-disable import/no-commonjs */
// import
import _ from 'lodash';
import React from 'react';
import cn from 'classnames';
import later from 'later';
import moment from 'moment';
import prettyCron from 'prettycron';
import styles from './JobsHelper.css';
const JsDiff = require('diff');
// vars
cons... |
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbMiniSizeExample.js | jamiehill/stardust | import React from 'react'
import { Breadcrumb } from 'stardust'
const BreadcrumbMiniSizeExample = () => (
<Breadcrumb size='mini'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Breadcrumb.Divi... |
src/svg-icons/image/brush.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrush = (props) => (
<SvgIcon {...props}>
<path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25... |
src/@ui/Header/Header.stories.js | NewSpring/Apollos | import React from 'react';
import { storiesOf } from '@storybook/react-native';
import Header from '@ui/Header';
storiesOf('Header', module)
.add('renders', () => (
<Header titleText="Welcome!" />
));
|
docs-ui/components/indicators.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import {select} from '@storybook/addon-knobs';
import IndicatorContainer, {Indicators} from 'app/components/indicators';
import IndicatorStore from 'app/stores/indicatorStore';
import {
addSuccessMessage,
addErrorMessage,
addMessage,
} fr... |
blueocean-material-icons/src/js/components/svg-icons/image/nature-people.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageNaturePeople = (props) => (
<SvgIcon {...props}>
<path d="M22.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H6v-3h1v-4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v4h1v5h16v-2h-3v-3.88c3.47-.41 6.17-3.36 6.17-6.95zM4.5 11c.83 0... |
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js | jamesbond12/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import { MessageContentTypes } from 'constants/ActorAppConstants';
import MessageActionCreators from 'actions/MessageActionCreators';
... |
src-client/modules/workspace/containers/Desk/index.js | ipselon/structor | /*
* Copyright 2017 Alexander Pustovalov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
src/client/songs/songlink.react.js | steida/songary | import Component from '../components/component.react';
import React from 'react';
import {Link} from 'react-router';
export default class SongLink extends Component {
static propTypes = {
song: React.PropTypes.object.isRequired
}
render() {
const {song: {artist, id, name}} = this.props;
return (
... |
src/main/resources/webroot/js/app/pivot-table-demo.js | aluketa/pivot-table | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import PivotTable from './pivot-table.js'
/*var testData = [
{
accountName: 'Account 7',
productName: 'Product 13',
quantity: 17,
marketValue: 19
}
];*/
var PivotDemo = React.createClass({
render: f... |
frontend/jqwidgets/jqwidgets-react/react_jqxsplitter.js | yevgeny-sergeyev/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxSplitter extends React.Component {
componentDidMount() {
let options = this.manag... |
Client/src/index.js | Attrash-Islam/react-input-validator | import React from 'react';
import { render } from 'react-dom';
import App from './Examples/App';
render(
<App />, document.getElementById('root'))
|
src/svg-icons/action/youtube-searched-for.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionYoutubeSearchedFor = (props) => (
<SvgIcon {...props}>
<path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.... |
app/javascript/controllers/events/round_map_controller.js | skyderby/skyderby | import { Controller } from 'stimulus'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from 'redux/store'
import RoundMap from 'components/RoundMap'
export default class extends Controller {
connect() {
const eventId = this.element.getAttribute('data... |
packages/react-error-overlay/src/containers/StackTrace.js | matart15/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React, { Component } from 'react';
import StackFrame from './StackFrame';
import Collapsible from '../components/Coll... |
plugins/react/frontend/components/controls/base/FlowObjectControl/index.js | carteb/carte-blanche | /**
* FlowObjectControl
*
* Renders an information field mentioning that this property can't be generated.
*/
import renderControls from '../../../../utils/renderControls';
import React from 'react';
import normalizeProps from './normalizeProps';
import randomValue from './randomValue';
import Row from '../../../f... |
springboot/GReact/src/main/resources/static/app/routes/auth/containers/LockedScreen.js | ezsimple/java | import React from 'react'
import './LockedScreen.css'
export default class LockedScreen extends React.Component {
render() {
return (
<div id="extr-page">
<div id="main" role="main">
<form className="lockscreen animated flipInY" action="#/dashboard/analytics">
<div className=... |
src/components/Home.js | AleksandrRogachev94/chat-vote-go-frontend | import React from 'react';
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import { getIsAuthenticated } from '../reducers/index'
import chat from '../../public/chat.png'
import vote from '../../public/vote.png'
class Home extends React.Component {
render(... |
client/service-manager/src/components/service/LanguageButtons.js | google-org/services-eligibility-calculator | /**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
client/src/App.js | idoalit/slims.js | import React, { Component } from 'react';
import './scss/App.scss';
import Header from './layout/Header';
import Content from './layout/Content';
import Footer from './layout/Footer';
class App extends Component {
state = {users: []}
componentDidMount() {
fetch('/api')
.then(res => res.json())
.t... |
js/components/App.react.js | trongthaonh/react-redux-demo | /**
*
* 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)
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Logo from '../../img/logo.png';
class App extends Com... |
src/components/common/header.js | cjordanball/cjbinfo | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import * as actions from '../../actions';
import BallLogo from '../../../assets/images/BallLogoHD.png';
import Resume from '../../../assets/docs/201707resume.pdf';
class Header extends Component {
... |
examples/with-create-react-app/src/HorizontalScroll.js | lwhitlock/grow-tracker | import React, { Component } from 'react';
import styles from './HorizontalScroll.css'
class HorizontalScroll extends Component {
render() {
return (
<section>
<h2>{this.props.title}</h2>
<div className="HorizontalScroll">
{this.props.children}
</div>
</section>
)
}
}
... |
src/table/test.js | twilson63/t63 | import React from 'react'
import test from 'tape'
import { shallow } from 'enzyme'
import Table from './'
const { Row, Cell } = Table
test('<Table />', t => {
const wrapper = shallow(
<Table>
<Row>
<Cell>Hello World</Cell>
</Row>
</Table>
)
t.ok(
wrapper.contains(
<Row>
... |
local-weather/src/index.js | florinpop17/chingu-speedrun-may | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/jsx/collaborations/LoadingSpinner.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/components/Feedback/Feedback.js | devinschulz/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js | liruqi/actor-platform-v0.9 | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class UserProfileContactInfo extends React.Component {
static propTypes = {
phones: React.PropTypes.arr... |
packages/material-ui-icons/legacy/BorderColorOutlined.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M14 3.25l-10 10V17h3.75l10-10L14 3.25zM6.92 15H6v-.92l8-8 .92.92-8 8zM20.71 4.04c.39-.39.39-1.02 0-1.41L18.37.29a.9959.9959 0 0 0-1.41 0L15 2.25 18.75 6l1.96-1.96z" /><path fillOpacity... |
examples/field-arrays/index.js | jaredpalmer/formik | import React from 'react';
import ReactDOM from 'react-dom';
import { Formik, Field, Form, ErrorMessage, FieldArray } from 'formik';
const initialValues = {
friends: [
{
name: '',
email: '',
},
],
};
const InviteFriends = () => (
<div>
<h1>Invite friends</h1>
<Formik
initialVal... |
src/components/modalspace/ModalSpace.js | Spriithy/tmc2017 | import React, { Component } from 'react';
import './style.css';
export default class ModalSpace extends Component {
render = () => {
return (
<div className="ModalSpace">
{this.props.nots}
</div>
);
}
} |
src/corrections/mainPracticeCorrection/tag.js | AugustinLF/react-training | import PropTypes from 'prop-types';
import React from 'react';
const Tag = ({name}) => <div className="tag">{name}</div>;
Tag.propTypes = {
name: PropTypes.string.isRequired,
};
export default Tag;
|
code/hello_world/src/main.js | st-he/react-workshop | import React from 'react';
import ReactDOM from 'react-dom';
import HelloMessage from './HelloMessage';
const mountNode = document.getElementById('mount');
ReactDOM.render(<HelloMessage greeting="Hello"/>, mountNode);
|
examples/unidirectional-dataflow/modules/App.js | alexeyraspopov/react-coroutine | import React from 'react';
import Coroutine from 'react-coroutine';
import AppContext from './AppContext';
export default Coroutine.create(App);
async function* App({ state, actions, reduce, children }) {
// Rendering initial state, immediately
yield (
<AppContext.Provider value={{ state, actions }}>
{c... |
app/pages/verificationwithpassword/verificationwithpassword.js | hichameyessou/blip | /**
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in the... |
client/app/components/Img/index.js | Kielan/onDemanager | /**
*
* Img.react.js
*
* Renders an image, enforcing the usage of the alt="" tag
*/
import React from 'react';
function Img(props) {
return (
<img className={props.className} src={props.src} alt={props.alt} />
);
}
// We require the use of src and alt, only enforced by react in dev mode
Img.propTypes = ... |
client/lib/interpolate-components/index.js | allendav/wp-calypso | /**
* External Dependencies
*/
import React from 'react';
import createFragment from 'react-addons-create-fragment';
/**
* Internal Dependencies
*/
import tokenize from './tokenize';
let currentMixedString;
function getCloseIndex( openIndex, tokens ) {
var openToken = tokens[ openIndex ],
nestLevel = 0,
tok... |
src/containers/DevTools/DevTools.js | rongkaixia/web-server | 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 /... |
src/browser.js | alpjs/auk-react-redux | import contentLoaded from 'content-loaded';
import React from 'react';
import { hydrate } from 'react-dom';
import reactTreeWalker from 'react-tree-walker';
import Logger from 'nightingale-logger/src';
// eslint-disable-next-line import/no-extraneous-dependencies
import BrowserAppContainer from 'alp-dev/BrowserAppConta... |
src/docs/examples/Label/ExampleRequired.js | thomashoggard/ps-react-tom | import React from 'react';
import Label from 'ps-react-tom/lib/Label';
/** Required label */
export default function ExampleRequired() {
return <Label htmlFor="test" label="test" required />
}
|
app/javascript/flavours/glitch/features/keyboard_shortcuts/index.js | glitch-soc/mastodon | import React from 'react';
import Column from 'flavours/glitch/features/ui/components/column';
import ColumnBackButtonSlim from 'flavours/glitch/components/column_back_button_slim';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'p... |
src/panels/FormPanel/ProfileInput.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import deepEquals from 'mout/src/lang/deepEquals';
import style from 'HPCCloudStyle/Profile.mcss';
import ActiveList from '../ActiveList';
import FormPanel from '.';
export default class FormPanelProfileInput extends React.Component {
constructor(prop... |
project/spreadsheet/src/App.js | amitozdeol/amitozdeol.github.io | import React from 'react';
import Container from '@material-ui/core/Container';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
import Link from '@material-ui/core/Link';
import ProTip from './ProTip';
import Nav from './layout/Nav';
import SignInSide from './SignIn';
fu... |
src/components/EllipsisValue/index.js | mareklibra/userportal | import React from 'react'
import PropTypes from 'prop-types'
import { xor } from '_/propTypeExtras'
import style from './style.css'
import classnames from 'classnames'
class EllipsisValue extends React.Component {
constructor (props) {
super(props)
this.ref = React.createRef()
this.state = {
isOver... |
components/Shared/Label.js | itssumitrai/git-issue-viewer | /**
* Copyright 2016, Sumit Rai
* Copyrights licensed under the New MIT License. See the accompanying LICENSE file for terms.
*/
'use strict';
import React from 'react';
import appConfig from '../../configs/app';
class Label extends React.Component {
render() {
const { props } = this;
const { ... |
js/components/management-table.js | mercycorps/TolaActivity | import { observer } from "mobx-react"
import React from 'react';
import classNames from 'classnames';
// TODO: "size" is no longer used
const ColumnComponent = ({className, size, ...props}) => <td className={["mgmt-table__col", className].join(' ')} {...props}>{props.children}</td>
// TODO: this is redundant with Co... |
packages/create-subscription/src/createSubscription.js | yiminghe/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
import invariant from 'shared/invariant';
import warningWithoutStack from 'shared/warningWi... |
app/index.js | StuartPearlman/duckr | import React from 'react'
import ReactDOM from 'react-dom'
import getRoutes from './config/routes'
import { createStore, applyMiddleware, compose, combineReducers } from 'redux'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import { checkIfAuthed } from 'helpers/auth'
import * as reducers from ... |
resources/react/components/parts/blog/BlogEntries.js | fetus-hina/stat.ink | import PropTypes from 'prop-types';
import React from 'react';
import { STATUS_FAILED, STATUS_LOADING } from '../../../constants';
import { connect } from 'react-redux';
import { createUseStyles } from 'react-jss';
const useStyles = createUseStyles({
ul: {
listStyleType: 'none',
listStyleImage: 'none',
m... |
node_modules/react-router/modules/Link.js | Maxwelloff/react-football | import React from 'react'
import warning from './routerWarning'
const { bool, object, string, func, oneOfType } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
functio... |
src/components/PermissionsAccordion/helpers/filtersConfig.js | folio-org/ui-users | import React from 'react';
import { FormattedMessage } from 'react-intl';
export const permissionTypeFilterConfig = {
label: (<FormattedMessage id="ui-users.permissions.modal.filter.permissionType.label" />),
name: 'permissionType',
cql: 'permissionType',
values: [
{
// permission sets created by use... |
components/TodoList.js | shioju/react-todo | import React from 'react';
import TodoItem from './TodoItem';
export default class TodoList extends React.Component {
render() {
const todoNodes = this.props.data.map(function(todo) {
return (
<TodoItem key={todo.id} todo={todo} />
);
});
return (
<div>
{todoNodes}
... |
src/svg-icons/av/equalizer.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvEqualizer = (props) => (
<SvgIcon {...props}>
<path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"/>
</SvgIcon>
);
AvEqualizer = pure(AvEqualizer);
AvEqualizer.displayName = 'AvEqualizer';
AvEqualizer... |
components/Wrapper/Wrapper.js | PactCoffee/loggins | import React, { Component } from 'react';
import styles from './Wrapper.css';
export default class Wrap extends Component {
render() {
return (
<div className={[styles.root, this.props.className].join(' ')}>
{this.props.children}
</div>
);
}
}
Wrap.propTypes = {
children: React.Prop... |
app/containers/HomePage/components/Welcome/index.js | ryanau/doc_now_client | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import styled from 'styled-components';
import { Glyphicon, Jumbotron, Button } from 'react-bootstrap';
import Experiment from 'react-ab-test/lib/Experiment';
import Variant from 'react-ab-test/lib/Variant';
im... |
cerberus-dashboard/src/components/SecureDataForm/SecureDataForm.js | Nike-Inc/cerberus | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
example/app/routes/Launch/index.js | jpush/jmessage-react-plugin | 'use strict';
import React from 'react';
import ReactNative from 'react-native';
import JMessage from 'jmessage-react-plugin';
import Translations from '../../resource/Translations'
const {
View,
Text,
TouchableHighlight,
StyleSheet,
Alert,
} = ReactNative;
export default class Home extends R... |
src/Parser/Shaman/Restoration/Modules/Features/TidalWaves.js | enragednuke/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import AbilityTracker from 'Parser/Core/Modules/AbilityTrack... |
app/viewControllers/admin/AdminPage.js | Evyy/cffs-ui | 'use strict';
import React from 'react';
import classnames from "classnames";
// import {Link} from 'react-router';
class AdminPage extends React.Component {
constructor(props) {
super(props);
}
static propTypes = {
children: React.PropTypes.any.isRequired,
title: React.PropTypes.... |
app/pages/patientnew/patientnew.js | tidepool-org/blip |
/**
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in th... |
client/modules/core/components/navigation.js | mantrajs/meteor-mantra-kickstarter | import React from 'react';
const Navigation = () => (
<div>
<b> Navigation: </b>
<a href="/">Home</a> |
<a href="/new-post">New Post</a>
</div>
);
export default Navigation;
|
src/index.js | vogelino/design-timeline | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './redux/store/configureStore';
// import fakeEvents from './redux/state/fakeEvents';
import realEvents from './redux/state/realEvents';
import App from './App';
import './fonts.css';
import ... |
src/components/ArrowPlaceholder/index.js | fhelwanger/bayesjs-editor | import React from 'react';
import { positionPropTypes } from 'models';
const ArrowPlaceholder = ({ from, to }) => (
<path
d={`M${from.x},${from.y} ${to.x},${to.y}`}
fill="none"
stroke="#333"
strokeWidth="2"
strokeDasharray="5,5"
markerEnd="url(#triangle)"
/>
);
ArrowPlaceholder.propTypes =... |
examples/todomvc/index.js | ssk7833/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
src/admin/client/modules/settings/paymentsEdit/components/selectShipping.js | cezerin/cezerin | import React from 'react';
import { Field, reduxForm } from 'redux-form';
import { List, ListItem } from 'material-ui/List';
import Checkbox from 'material-ui/Checkbox';
export default class SelectShippingMethodsField extends React.Component {
constructor(props) {
super(props);
const ids = Array.isArray(props.inp... |
react/features/desktop-picker/components/DesktopSourcePreview.js | jitsi/jitsi-meet | /* @flow */
import React, { Component } from 'react';
import { translate } from '../../base/i18n';
/**
* The type of the React {@code Component} props of
* {@link DesktopSourcePreview}.
*/
type Props = {
/**
* The callback to invoke when the component is clicked. The id of the
* clicked on Desktop... |
client/index.js | yjcxy12/ProductSelection | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import rootReducer from './reducers';
import { createStore, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga';
import ProductSelection from './containers/ProductSelection';
import rootSaga fr... |
src/lib/plugins/battery/draining.js | Hyperline/hyperline | import React from 'react'
import PropTypes from 'prop-types'
import Component from 'hyper/component'
import SvgIcon from '../../utils/svg-icon'
export default class Draining extends Component {
static propTypes() {
return {
percentage: PropTypes.number
}
}
calculateChargePoint(percent) {
const... |
docs/src/app/components/pages/components/RaisedButton/ExampleComplex.js | nathanmarks/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import FontIcon from 'material-ui/FontIcon';
const styles = {
button: {
margin: 12,
},
exampleImageInput: {
cursor: 'pointer',
position: 'absolute',
to... |
app/containers/ToolPage/Sidebar/Tags.js | BeautifulTrouble/beautifulrising-client | import React from 'react';
import styled, { ThemeProvider } from 'styled-components';
import Markdown from 'react-markdown';
import { injectIntl } from 'react-intl';
import { RouterLink } from 'utils/markdown';
import TranslatableStaticText from 'containers/TranslatableStaticText';
import ContentBlock from 'component... |
docs/app/Examples/modules/Accordion/Types/AccordionExampleStyled.js | Rohanhacker/Semantic-UI-React | import _ from 'lodash'
import faker from 'faker'
import React from 'react'
import { Accordion } from 'semantic-ui-react'
const panels = _.times(3, () => ({
title: faker.lorem.sentence(),
content: faker.lorem.paragraphs(),
}))
const AccordionExampleStyled = () => (
<Accordion panels={panels} styled />
)
export ... |
docs/src/app/components/pages/components/Paper/ExampleSimple.js | tan-jerene/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleSimple = () => (
<div>
<Paper style={style} zDepth={1} />
<Paper style={style} zDepth={2} />
<Paper style={s... |
src/pages/Contact.js | apisandipas/bryanparonto.com | import React from 'react'
const Contact = () => (
<section className="Contact">
<div className="Contact-inner">
<h1 className="animate fadeInUp one">Contact</h1>
<ul className="Contact-actions animate fadeInUp two">
<li><i className="fas fa-map-marker-alt"></i> Chicago, Illinois</li>
... |
src/svg-icons/action/power-settings-new.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPowerSettingsNew = (props) => (
<SvgIcon {...props}>
<path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 ... |
src/parser/druid/guardian/modules/features/RageWasted.js | fyruna/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import StatisticBox from 'interface/others/StatisticBox';
import Analyzer... |
client/views/admin/settings/inputs/LanguageSettingInput.js | VoiSmart/Rocket.Chat | import { Box, Field, Flex, Select } from '@rocket.chat/fuselage';
import React from 'react';
import { useLanguages } from '../../../../contexts/TranslationContext';
import ResetSettingButton from '../ResetSettingButton';
function LanguageSettingInput({
_id,
label,
value,
placeholder,
readonly,
autocomplete,
di... |
packages/mineral-ui-icons/src/IconRestaurant.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconRestaurant(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
src/svg-icons/notification/airline-seat-flat.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.1... |
react-flux-mui/js/material-ui/src/svg-icons/action/delete-forever.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDeleteForever = (props) => (
<SvgIcon {...props}>
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.