path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/ScrollableInkTabBar.js | tinper-bee/bee-tabs | /**
* This source code is quoted from rc-tabs.
* homepage: https://github.com/react-component/tabs
*/
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import InkTabBarNode from './InkTabBarNode';
import TabBarTabsNode from './TabBarTabsNode';
import TabBarRootNode from '.... |
client/node_modules/uu5g03/dist-node/forms-v3/text-button.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js';
import InputWrapper from './internal/input-wrapper.js';
import TextInput from './internal/text-input.js';
import TextInputMixin from './mixins/text-input-mixin.js'
import ItemList from './internal/item-list.js';
impo... |
poster/src/poster2/index.js | FeifeiyuM/test-repo | import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
const rootRoute = {
childRoutes: [{
path: '/src/poster2',
component: require('./components/poster'),
}]
}
const rootElem = (<Router history={ browserHistory } routes={rootRoute} />)
render(
rootE... |
src/router/index.js | vshao/webapp | import React from 'react'
import { Route, Switch } from 'react-router-dom'
import { E404, E504 } from '@/components/error'
import Home from '@/views/home'
import HotSell from '@/views/hotsell'
export default () => (
<div>
<Switch>
<Route exact path="/" component={Home} />
<Route path="/hotsell" com... |
srcjs/components/BookSearchPanel.js | wlainer/react-redux-tutorial | import React from 'react';
import ReactDOM from 'react-dom';
export default class SearchPanel extends React.Component {
constructor() {
super()
this.onSearchChange = this.onSearchChange.bind(this)
this.onClearSearch = this.onClearSearch.bind(this)
this.state = {}
}
render() {
return (
... |
examples/breadcrumbs/app.js | tylermcginnis/react-router | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link } from 'react-router'
import withExampleBasename from '../withExampleBasename'
import './app.css'
const App = ({ children, routes }) => {
const depth = routes.length
return (
<div>
<aside>
... |
react-github-battle/app/components/Home.js | guilsa/javascript-stuff | import React from 'react'
import { Link } from 'react-router'
import { transparentBg } from '../styles'
import MainContainer from './MainContainer'
var Home = React.createClass({
render () {
return(
<MainContainer>
<h1>Github Battle</h1>
<p className="lead">Some fancy motto</p>
<Lin... |
routes.js | kris1226/clymer-metal-crafts | import React from 'react';
import { Route , Router } from 'react-router';
import App from './containers/App';
import DetailsPage from './containers/DetailsPage';
import ImagesContianer from './containers/ImagesContainer';
import Image from './components/Image';
import createHistory from 'history/lib/createHashHistory';... |
app/react-icons/fa/sliders.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaSliders extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m10.9 31.4v2.9h-7.9v-2.9h7.9z m7.8-2.8q0.6 0 1 0.4t0.4 1v5.7q0 0.6-0.4 1t-1 ... |
app/scripts/components/service.js | kroupaTomass/Rondo-kuchyne | import React from 'react';
import { Link } from 'react-router';
class SectionService extends React.Component{
constructor(props, context) {
super(props);
}
render() {
return (
<section className="services" id="SERVICE">
<div className="container">
<div className="row">
... |
frontend/src/Movie/Index/Table/MovieStatusCell.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import VirtualTableRowCell from 'Components/Table/Cells/TableRowCell';
import { icons } from 'Helpers/Props';
import { getMovieStatusDetails } from 'Movie/MovieStatus';
import translate from 'Utilities/String/translate';
... |
js/containers/ApplicationTabs/Activity2/index.js | Seedstars/reactnative-mobile-app-base | import React, { Component } from 'react';
import {
View,
Text,
} from 'react-native';
import styles from './styles';
export default class Activity2 extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.h1}>
Acti... |
react/features/connection-stats/components/ConnectionStatsTable.js | jitsi/jitsi-meet | /* @flow */
import { withStyles } from '@material-ui/styles';
import clsx from 'clsx';
import React, { Component } from 'react';
import { isMobileBrowser } from '../../../features/base/environment/utils';
import ContextMenu from '../../base/components/context-menu/ContextMenu';
import { translate } from '../../base/i... |
src/icons/SocialGoogleplusOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialGoogleplusOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M223.5,82.1c11.8,9.6,36.4,29.7,36.4,68c0,37.3-21.5,54.9-43.1,71.5c-6.7,6.6-14.4,13.6-14.4,24.7
c0,... |
src/pages/public.js | PLopezD/groupme-playlist | import React from 'react';
import ampersandMixin from 'ampersand-react-mixin';
import { LocalCard } from '../components/card';
import { GridList } from 'material-ui/GridList';
import GmeHeader from '../components/GmeHeader';
import { GmeBottom } from '../components/GmeBottom';
export default React.createClass({
mixi... |
app/app.js | jwarning/react-ci-test | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | sfshine/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
imports/ui/components/todo-item/Todo.js | juliancwirko/scotty | import React from 'react';
import { connect } from 'react-redux';
import { string, func, bool } from 'prop-types';
import { callRemoveTodo, callEditTodo } from '../../../api/redux/async-actions';
const Todo = (props) => {
const { message, todoId, dispatchCallRemoveTodo, dispatchCallEditTodo, finished } = props;
co... |
components/animals/takinIndicky.adult.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/takinIndicky/01.jp... |
client/node_modules/uu5g03/doc/main/client/src/bricks/link.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import UU5 from 'uu5';
import './link.css';
export default React.createClass({
//@@viewOn:mixins
mixins: [
UU5.Common.BaseMixin,
UU5.Common.ElementaryMixin,
UU5.Common.ContentMixin
],
//@@viewOff:mixins
//@@viewOn:statics
statics: {
tagName: 'UU5.Doc.Bricks.Lin... |
src/router.js | PineconeFM/pinecone-client | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
src/js/Components/Common/SectionControls.js | mattgordils/DropSplash | import React, { Component } from 'react';
import InlineSVG from 'svg-inline-react/lib';
import Button from 'Components/Common/Button';
import PlusIcon from 'assets/icons/plus-icon';
import ContentPane from 'Components/ContentPane/ContentPane'
import 'sass/components/common/section-controls';
export default class Ap... |
src/components/FooterComponent.js | Zcyon/lait | 'use strict';
import React from 'react';
require('styles//Footer.css');
let FooterComponent = () => (
<footer className="footer">
<div className="content has-text-centered">
<p>
<strong>Lait</strong> by Lascario Pacheco. The source code is licensed under MIT.
</p>
</div>
</footer>
);
... |
src/components/tools/warnings.js | robzsk/mm.editor | import React, { Component } from 'react';
import PENS from './../../pens';
class Warnings extends Component {
getErrors() {
const { data } = this.props;
let player = false;
let target = false;
const ret = [];
data.forEach(row => {
if (row.indexOf(PENS.PLAYER) !== -1) {
player = true... |
src/pages/talita-kume.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Talita Kume' />
)
|
src/frontend/components/SignUp/SignUp.js | BaranovNikita/Page-About-Me | import React from 'react';
import { TextField, RaisedButton, CircularProgress } from 'material-ui';
import { isEmpty } from 'lodash';
import signupValidate from '../../../share/validate/signup';
class SignUp extends React.Component {
constructor() {
super();
this.handleChange = this.handleChange.bind(this);
thi... |
src/www/js/form-fields/drop-down.js | nickolusroy/react_dnd | import React from 'react';
export class DropDown extends React.Component {
constructor(props) {
super(props);
this.state = {
selection : '',
charData : this.props.charData
};
this.onChange = this.onChange.bind(this);
};
onChange(e) {
this.setState({
selection : e.target.va... |
app/javascript/mastodon/components/button.js | anon5r/mastonon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
src/common/ui/Link/Link.stories.js | MadeInHaus/react-redux-webpack-starter | import React from 'react';
import { storiesOf } from '@storybook/react';
import { Link } from '@ui';
storiesOf('Global/Link', module)
.add('default', () => <Link href="http://www.google.com">Example</Link>)
.add('router (link)', () => <Link to="/someroute">Example</Link>)
.add('router (navlink)', () => (
... |
components/Header.js | ViniciusAtaide/edgartccfront | import React from 'react';
import { Nav, Navbar, NavItem, Button } from 'react-bootstrap';
import { Link } from 'react-router';
export default class Header {
static propTypes = {
onlyBrand: React.PropTypes.bool
};
render() {
let { onlyBrand } = this.props;
let center = {
margin: '0 auto',
... |
node_modules/react-solr-connector/demo/demo.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import React from 'react';
class SolrConnectorDemo extends React.Component {
constructor(props) {
super(props);
this.state = {
solrSearchUrl: "http://localhost:8983/solr/techproducts/select",
query: "memory",
filter: "",
fetchFields: ""
}
}
onSubmit(event) {
event.prevent... |
docs/wp-content/themes/Divi/includes/builder/frontend-builder/gutenberg/controller.js | laurybueno/laurybueno.github.io | import React from 'react';
import placeholder from 'gutenberg/blocks/placeholder';
import { isBuilderUsed, isScriptDebug, getVBUrl } from 'gutenberg/utils/helpers';
import { DIVI, GUTENBERG } from 'gutenberg/constants';
import { registerBlock, unregisterBlock } from 'gutenberg/blocks/registration';
import get from 'lod... |
src/views/Widget.js | iris-dni/iris-frontend | import 'assets/styles/base.scss';
import React from 'react';
import Helmet from 'react-helmet';
import settings from 'settings';
const TITLE_TEMPLATE = `%s | ${settings.title}`;
export default ({ children }) => (
<div className={'wrapper'}>
<Helmet titleTemplate={TITLE_TEMPLATE} />
<main aria-label='Content... |
src/components/TextField/TextField.js | macdja38/pvpsite | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './TextField.css';
class TextField extends Component { // eslint-disable-line react/prefer-stateless-function
static propTypes = {
text: PropTypes.string,
... |
public/js/components/admin/AdminForgotPwd.react.js | MadushikaPerera/Coupley | /**
* Created by Isuru 1 on 24/01/2016.
*/
import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import CardMedia from 'material-ui/li... |
code/workspaces/web-app/src/components/stacks/NewStackButton.js | NERC-CEH/datalab | import React from 'react';
import PropTypes from 'prop-types';
import PagePrimaryAction from '../common/buttons/PagePrimaryActionButton';
const NewStackButton = ({ onClick, typeName, labelPrefix = 'Create' }) => (
<PagePrimaryAction aria-label="add" onClick={onClick}>
{`${labelPrefix} ${typeName}`}
</PagePrima... |
src/svg-icons/places/kitchen.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesKitchen = (props) => (
<SvgIcon {...props}>
<path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/>
... |
examples/real-world/index.js | PatrickEifler/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
techCurriculum/ui/solutions/5.2/src/App.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* 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 in writ... |
client/modules/core/components/.stories/navigation.js | LikeJasper/mantra-plus | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Context from '../../../../../.storybook/Context';
import Navigation from '../navigation';
storiesOf('core.Navigation', module)
.add('default view', () => (
<Context>
<Navigation />
</Context>
));
|
docs/src/examples/collections/Form/Variations/FormExampleSize.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Divider, Form } from 'semantic-ui-react'
const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive']
const FormExampleSize = () => (
<div>
{sizes.map((size) => (
<Form size={size} key={size}>
<Form.Group widths='equal'>
<Form.Fiel... |
src/packages/@ncigdc/components/Aggregations/FacetResetButton.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import Link from '@ncigdc/components/Links/Link';
import Undo from '@ncigdc/theme/icons/Undo';
import styled from '@ncigdc/theme/styled';
import withRouter from '@ncigdc/utils/withRouter';
import {
removeFilter,
fieldInCurrentFilters,
} from '@ncigdc/utils/filters/index';
con... |
src/svg-icons/action/account-balance-wallet.js | lawrence-yu/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/modules/core/routes.js | gotrecillo/daw-euskalvideo | import React from 'react';
import {mount} from 'react-mounter';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
import MainLayout from './components/main_layout';
import HomeLayout from './components/home_layout';
import Login from '../users/containers/login';
import Post from './con... |
test/integration/css-fixtures/single-global/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
elcri.men/src/components/Footer.js | diegovalle/new.crimenmexico | import React from 'react';
import {
FaTwitterSquare,
FaFacebookSquare,
FaGithubSquare,
FaEnvelope,
} from 'react-icons/fa';
import {IconContext} from 'react-icons';
import Obfuscate2 from '../components/Obfuscate';
import {useIntl, FormattedHTMLMessage} from 'react-intl';
function Footer (props) {
const intl... |
packages/material-ui-icons/src/Adjust.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Adjust = props =>
<SvgIcon {...props}>
<path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3... |
examples/_dustbin-interesting/index.js | RallySoftware/react-dnd | 'use strict';
import React from 'react';
import Container from './Container';
const DustbinSorted = React.createClass({
render() {
return (
<div>
<Container />
<hr />
<p>
Several different dustbins can handle several types of items. Note that the last dustbin is special: ... |
src/parser/hunter/beastmastery/modules/spells/azeritetraits/DanceOfDeath.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import { formatNumber, formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import SPELLS from 'common/SPELLS/index... |
platform/ui/src/components/checkbox/checkbox.js | OHIF/Viewers | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './checkbox.css';
export class Checkbox extends Component {
static propTypes = {
label: PropTypes.string.isRequired,
checked: PropTypes.bool,
onChange: PropTypes.func,
};
constructor(props) {
super(props);
t... |
src/routes/codes/values/List.js | yunqiangwu/kmadmin | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Modal } from 'antd'
import classnames from 'classnames'
import { DropOption } from 'components'
import { Link } from 'dva/router'
import AnimTableBody from '../../../components/DataTable/AnimTableBody'
import styles from './List.less'
const c... |
app/javascript/mastodon/features/ui/components/alert_bar.js | increments/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class AlertBar extends React.Component {
static propTypes = {
isEmailConfirmed: PropTypes.bool.isRequired,
};
render () {
const { isEmailConfirmed } = this.props;
return (
... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | aakb/os2web | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/client.js | ptim/react-redux-universal-hot-example | /**
* 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... |
client/src/components/Draftail/decorators/Document.js | torchbox/wagtail | import PropTypes from 'prop-types';
import React from 'react';
import { gettext } from '../../../utils/gettext';
import Icon from '../../Icon/Icon';
import TooltipEntity from '../decorators/TooltipEntity';
const documentIcon = <Icon name="doc-full" />;
const missingDocumentIcon = <Icon name="warning" />;
const Docu... |
src/routes.js | annamaz/interview-app-scroll | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/pages/HomePage';
import NotFoundPage from './components/pages/NotFoundPage';
import ScrollPage from './components/pages/ScrollPage';
export default (
<Route path="/" co... |
src/parser/deathknight/unholy/modules/features/Apocalypse.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Analyzer from 'parser/core/Analyzer';
import EnemyInstances from 'parser/shared/modules/EnemyInstances';
import StatisticBox, { STATISTIC_ORDER } from 'interface/ot... |
src/components/SettingsComponent.js | C3-TKO/gaiyo | 'use strict';
import React from 'react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ActionSettings from 'material-ui/svg-icons/action/settings';
import FlatButton from 'material-ui/FlatButton';
import Dialog from 'material-ui/Dialog';
import SlideListEditor from './SlideListEditorCompo... |
src/interface/statistics/components/BoringSpellValue/index.js | ronaldpereira/WoWAnalyzer | /**
* A simple component that shows the spell icon left and a value right.
* Use this only for things that the player certainly should be familiar with, such as their own spells.
* Do NOT use for items or azerite powers.
*/
import React from 'react';
import PropTypes from 'prop-types';
import SpellIcon from 'commo... |
client/containers/EditLocation/EditLocation.js | joshjg/explore | import React from 'react';
import { connect } from 'react-redux';
import Paper from 'material-ui/Paper';
import Subheader from 'material-ui/Subheader';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import S3Uploader from 'react-s3-uploader';
import LinearProgress f... |
html.js | danheadforcode/fg-gatsby | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
import { TypographyStyle } from 'react-typography'
import typography from './utils/typography'
const BUILD_TIME = new Date().getTime()
export default class HTML extends React.Com... |
src/routes/home/index.js | arkeros/react-native-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
impo... |
renderer/components/Form/OpenDialogInput.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { compose } from 'redux'
import { asField } from 'informed'
import { Flex } from 'rebass/styled-components'
import { withInputValidation, WithOpenDialog } from 'hocs'
import { extractSpaceProps } from 'themes/util... |
examples/todomvc/containers/Root.js | hainuo/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return ... |
src/components/TalentStats.js | dfilipidisz/overwolf-hots-talents | import React from 'react';
import { connect } from 'react-redux';
import AppPopup from './AppPopup';
const lvls = ['1', '4', '7', '10', '13', '16', '20'];
const GraphIcon = ({lvl, openStatDetails}) => {
const open = () => {
openStatDetails(lvl);
};
return (
<i className='fa fa-line-chart' onClick={open... |
packages/reactor-kitchensink/src/examples/Grid/ReduxGrid/Employees.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { filterChange } from './actions';
import { Grid, Column, TitleBar, SearchField, Label } from '@extjs/ext-react';
import data from './data';
Ext.require(['Ext.grid.plugin.PagingToolbar']);
class Employees extends Component {
... |
src/docs/examples/HelloWorld/ExampleHelloWorld.js | Shuki-L/ps-react-shuki | import React from 'react';
import HelloWorld from 'ps-react/HelloWorld';
/** Custome message */
export default function ExampleHelloWorld() {
return <HelloWorld message="ps-react users!" />
} |
app/components/home/header/index.js | ayrton/pinata | /* @flow */
import React from 'react';
import Button from 'components/button';
import Svg from 'components/svg';
import styles from './style.css';
/**
* Header component.
*/
export default function Header(): ReactElement {
return (
<header className={styles.header}>
<a className={styles.logo} href="#"... |
examples/with-redux-thunk/pages/_app.js | BlancheXu/test | import App from 'next/app'
import React from 'react'
import withReduxStore from '../lib/with-redux-store'
import { Provider } from 'react-redux'
class MyApp extends App {
render () {
const { Component, pageProps, reduxStore } = this.props
return (
<Provider store={reduxStore}>
<Component {...pa... |
src/components/App/App.js | hanshenrik/when.fm | import React, { Component } from 'react';
import ReactHighcharts from 'react-highcharts';
import './App.css';
import hightchartsConfig from '../../config/highcharts.js';
import Footer from '../Footer/Footer.js';
import Header from '../Header/Header.js';
import Search from '../Search/Search.js';
class App extends Co... |
node_modules/rc-notification/es/Notification.js | ZSMingNB/react-news | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/help... |
react/features/settings/components/web/audio/AudioSettingsEntry.js | bgrozev/jitsi-meet | // @flow
import React from 'react';
import { Icon, IconCheck, IconExclamationSolid } from '../../../../base/icons';
/**
* The type of the React {@code Component} props of {@link AudioSettingsEntry}.
*/
export type Props = {
/**
* The text for this component.
*/
children: React$Node,
/**
... |
src/containers/DevToolsWindow.js | Shenseye/fisrt-react-redux-todolist | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(
<LogMonitor />
);
|
modules/Dragable.js | wuct/a4 | import React from 'react'
import { findDOMNode } from 'react-dom'
import emptyFunction from './utils/emptyFunction'
class Dragable extends React.Component {
static defaultProps = {
onDragStart: emptyFunction,
onDraging: emptyFunction,
onDragEnd: emptyFunction,
}
isDraging = false
dragStartPosition... |
app/components/ProjectCard/index.js | yagneshmodh/personalApplication | import React from 'react';
import { Card, CardHeader, CardMedia, CardTitle } from 'material-ui/Card';
// import FlatButton from 'material-ui/FlatButton';
import coverImage from '../../common/coverVideo/cover.jpg';
// import baseStyle from '../../common/Style/baseStyle.css';
const componentName = (() =>
<Card>
<C... |
src/monthpicker/MonthPickerTop.js | buildo/react-semantic-datepicker | import React from 'react';
import t from 'tcomb';
import { props } from 'tcomb-react';
import { pure, skinnable } from '../utils';
import { MomentDate, Mode } from '../utils/model';
import PickerTop from '../PickerTop';
@pure
@skinnable()
@props({
visibleDate: MomentDate,
onChangeMode: t.Function,
changeYear: t.... |
examples/async/containers/Root.js | vxsx/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
stories/Modal/index.js | skyiea/wix-style-react | import React from 'react';
import {storiesOf} from '@storybook/react';
import Markdown from '../utils/Components/Markdown';
import CodeExample from '../utils/Components/CodeExample';
import TabbedView from '../utils/Components/TabbedView';
import ReadmeTestKit from '../../src/Modal/README.TESTKIT.md';
import Readme fro... |
src/components/SearchLayoutButton/SearchLayoutButton.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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { settings } from 'carbon-components';
import ListBullet... |
tools/template/index/root/Root.hot.js | SteamerTeam/steamer-react | import { AppContainer } from 'react-hot-loader';
import React from 'react';
import { render } from 'react-dom';
import App from './Root.dev';
const rootEl = document.getElementById('pages');
render(
<AppContainer>
<App />
</AppContainer>,
rootEl
);
if (module.hot) {
module.hot.accept('./Root.de... |
js/components/ProfileCard.react.js | cs2340-titans/RoastWeb | import React from 'react';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import CardMedia from 'material-ui/lib/card/card-media';
import CardTitle from 'material-ui/lib/card/card-title';
import Raised... |
src/toggle-children.js | reactabular/treetabular | import React from 'react';
import { get } from 'lodash';
import getLevel from './get-level';
import hasChildren from './has-children';
const toggleChildren = ({
getIndex = (rowData) => rowData._index, // Look for index based on convention
getRows,
getShowingChildren,
toggleShowingChildren,
props,
idField =... |
src/index.js | easyCZ/easycz.github.io | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
tp-4/recursos/boilerplate/src/index.js | jpgonzalezquinteros/sovos-reactivo-2017 | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import App from './pages/layout';
import configureStore from './redux/c... |
lib/components/displays/Contactzz.js | sljohnson32/networkr | import React, { Component } from 'react';
import ContactCard from '../ContactCard'
import NewContactForm from './NewContactForm';
export default class Contactzz extends Component {
render() {
const { contactzz, addNewContact, displayContactzz, editContact, onNewContactForm, toggleNewContactForm, selectedContact,... |
Js/Ui/Components/DelayedOnChange/index.js | Webiny/Webiny | import React from 'react';
import _ from 'lodash';
import Webiny from 'webiny';
/**
* This component is used to wrap Input and Textarea components to optimize form re-render.
* These 2 are the only components that trigger form model change on each character input.
* This means, whenever you type a letter an entire ... |
assets/javascripts/kitten/components/graphics/logos/goodeedlogo/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import { computeFromRatio } from '../../../../helpers/utils/ratio'
export const GoodeedLogo = ({ color, width, height, ...props }) => {
const DEFAULT_WIDTH = 122
const DEFAULT_HEIGHT = 22
const computed = computeFromRatio({
defaultWidth: DEFAULT_WI... |
src/components/Header/Header.js | giux78/daf-dataportal | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux'
import { reset } from 'redux-form'
import fontawesome from '@fortawesome/fontawesome'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
import { faGlobe } from '@fortawesome/fontawesome-fr... |
src/components/PaymentDetailsForm/index.js | bruceli1986/contract-react | import React from 'react'
import PcListItem from './PcListItem'
import formatter from 'utils/formatter.js'
import './style.scss'
/** 申请和修改页面中用到的支付单明细的信息表单*/
class PaymentDetailsForm extends React.Component {
static propTypes = {
pcList: React.PropTypes.arrayOf(React.PropTypes.shape({
poItem: React.PropType... |
js/components/card/card-image.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { Image, View } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, Left, Body, Right, IconNB } from 'nati... |
packages/node_modules/@webex/react-component-activity-post/src/index.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import ActivityItemBase from '@webex/react-component-activity-item-base';
import ActivityText from '@webex/react-component-activity-text';
import AdaptiveCard from '@webex/react-component-adaptive-card';
const propTypes = {
content: PropTypes.string,
d... |
packages/react-error-overlay/src/components/Collapsible.js | CodingZeal/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 { black } from '../styles';
import type { Element as ReactElement } from '... |
app/javascript/plugins/email_pension/SelectPensionFund.js | SumOfUs/Champaign | //
import $ from 'jquery';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { find, sortBy } from 'lodash';
import Select from '../../components/SweetSelect/SweetSelect';
import Input from '../../components/SweetInput/SweetInput';
imp... |
app/javascript/mastodon/components/dropdown_menu.js | 8796n/mastodon | import React from 'react';
import Dropdown, { DropdownTrigger, DropdownContent } from 'react-simple-dropdown';
import PropTypes from 'prop-types';
class DropdownMenu extends React.PureComponent {
static propTypes = {
icon: PropTypes.string.isRequired,
items: PropTypes.array.isRequired,
size: PropTypes.n... |
src/svg-icons/content/block.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentBlock = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8... |
src/components/Spinner/index.js | HenriBeck/materialize-react | // @flow strict-local
import React from 'react';
import PropTypes from 'prop-types';
import getNotDeclaredProps from 'react-get-not-declared-props';
import Sheet, { type Data } from './Sheet';
type Props = {
active: boolean,
className: string,
color: 'primary' | 'accent',
};
type State = { animationName: strin... |
src/svg-icons/action/supervisor-account.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSupervisorAccount = (props) => (
<SvgIcon {...props}>
<path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 ... |
src/svg-icons/file/cloud.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloud = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"/>... |
index.js | intrepion/redux-form-example-simple | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('app')... |
src/helpers/universalRouter.js | rammano3/react-redux-universal-hot-example | import React from 'react';
import Router from 'react-router';
import createRoutes from '../routes';
import {Provider} from 'react-redux';
const getFetchData = (component = {}) => {
return component.WrappedComponent ?
getFetchData(component.WrappedComponent) :
component.fetchData;
};
export function createTr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.