path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
frontend/app/components/Category/create.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import ProviderHelpers from 'common/ProviderHelpers'
import StateLoading from 'components/Loading'
import StateErrorBoundary from 'components/ErrorBoundary'
import StateSuccessDefault from './states/successCreate'
import StateCreate from './states/create'
imp... |
lib/types/CompositeImageQueryDataModel.js | Kitware/in-situ-data-viewer | import CollapsibleElement from 'paraviewweb/src/React/Widgets/CollapsibleWidget';
import CompositeControl from 'paraviewweb/src/React/Widgets/CompositePipelineWidget';
import contains from 'mout/src/array/contains';
import PipelineModel from 'paraviewweb/src/Common/State/PipelineState';
import QueryDataModelImageBuilde... |
src/svg-icons/hardware/cast-connected.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareCastConnected = (props) => (
<SvgIcon {...props}>
<path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ... |
src/NavItem.js | johanneshilden/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
linkId: React.PropTypes.string,
onSelect: React.PropTypes.func,
active: React.PropTypes.bool,
disabled: React.Pr... |
src/packages/@ncigdc/theme/icons/Hide.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
const HideIcon = ({ className = '', ...props }) => (
<i className={`${className} fa fa-eye-slash`} {...props} />
);
export default HideIcon;
|
docs/src/app/components/pages/components/DropDownMenu/Page.js | verdan/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 dropDownMenuReadmeText from './README';
import DropDownMenuSimpleExample ... |
boxroom/archive/backup-js-bling-2018-04-28/boxroom/archive/js-glow-2018-02-10/src/main/__modules__/react/addons.js | mcjazzyfunky/js-surface | import adaptHtmlBuilders from '../../adaption/adaptHtmlBuilders';
import adaptSvgBuilders from '../../adaption/adaptSvgBuilders';
import React from 'react';
const
createElement = React.createElement,
Component = React.Component,
Fragment = React.Fragment,
fragment = createElement.bind(null, React.Fragm... |
client/src/routes.js | patteri/slave-cardgame | import React from 'react';
import PropTypes from 'prop-types';
import { Router, Route, IndexRoute, Redirect, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import { connectedRouterRedirect } from 'redux-auth-wrapper/history3/redirect';
import Root from './components/Root';
import Home fr... |
src/docs/components/sun-burst/SunBurstDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import SunBurst from 'grommet/components/SunBurst';
import Box from 'grommet/components/Box';
import Legend from 'grommet/components/Legend';
import Value from 'grommet/components/Value';
import Button from '... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsConstructorInferred.js | facebook/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
constructor(props) {}
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
class MyComponent2 extends React.Component {
props: Props;
constructor(props) {}
defaultProps: T;
s... |
src/client/components/todos/newtodo.js | vacuumlabs/todolist | import PureComponent from '../../../lib/purecomponent';
import React from 'react';
import immutable from 'immutable';
import {addTodo, onNewTodoFieldChange} from '../../todos/actions';
import {addons} from 'react/addons';
import {msg} from '../../intl/store';
export default class NewTodo extends PureComponent {
add... |
examples/js/remote/remote-all.js | neelvadgama-hailo/react-bootstrap-table | import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
export default class RemoteAll extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<BootstrapTable data={ this.props.data }
remote={ true }
... |
react/features/video-menu/components/native/GrantModeratorDialog.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { ConfirmDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import AbstractGrantModeratorDialog, { abstractMapStateToProps }
from '../AbstractGrantModeratorDialog';
/**
* Dialog to confir... |
src/subheader-wif.js | danielmoll/component-win-articlepage | import ArticleSubheaderContainer from '@economist/component-articletemplate/lib/subheader';
import React from 'react';
import { defaultGenerateClassNameList } from '@economist/component-variantify';
const extendedSubheaderItemClasses = [
'margin-l-1',
'gutter-l',
];
export default function WifSubheader({
generat... |
example/App/AutoUnmount.js | nkbt/react-collapse | import React from 'react';
import PropTypes from 'prop-types';
import {UnmountClosed} from '../../src';
class Test extends React.PureComponent {
static propTypes = {
onMount: PropTypes.func.isRequired,
onUnmount: PropTypes.func.isRequired
};
componentDidMount() {
const {onMount} = this.props;
... |
src/components/booking/AddPaymentModal.js | ChrisWhiten/react-rink | import React, { Component } from 'react';
import AttachMoney from 'material-ui/svg-icons/editor/attach-money';
import RaisedButton from 'material-ui/RaisedButton';
import {
HelpBlock,
FormGroup,
FormControl,
Modal,
} from 'react-bootstrap';
import './styles/AddPaymentModal.css';
import CircularProgress from 'm... |
frontend/src/components/shared/focus-lost/index.js | Kilte/cindy | import React from 'react';
function isDescendantNode(parent, child) {
let node = child.parentNode;
while (node !== null) {
if (node === parent) {
return true;
}
node = node.parentNode;
}
return false;
}
class FocusLost extends React.Component {
constructor(props... |
src/ShortURLs.js | betoesquivel/pili_frontend | import React, { Component } from 'react';
import { gql, graphql } from 'react-apollo';
import ShortURLInfo from './ShortURLInfo';
class ShortURLs extends Component {
render() {
const items = this.props.data.shortURLs;
return (
<div>
{typeof items !== 'undefined' ?
<section className=... |
consoles/my-joy-navigation/src/app.js | yldio/joyent-portal | import React from 'react';
import { ApolloProvider } from 'react-apollo';
import { ThemeProvider } from 'emotion-theming';
import theme from '@state/theme';
import { client } from './state';
import Header from './header';
export default () => (
<ApolloProvider client={client}>
<ThemeProvider theme={theme}>
... |
src/index.js | mt26691/learning-react | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
src/main.js | gabrielmansour/acquainted | 'use strict';
import React from 'react';
import { Router, Route } from 'react-router';
import SiteHeader from './common/site_header';
import Deck from './containers/deck';
import Everyone from './containers/everyone';
import Colophon from './containers/colophon';
require("./style.scss");
class Main extends React.... |
src/components/layouts/Resume.js | kbariotis/kostasbariotis.com | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { graphql, StaticQuery } from 'gatsby';
import { css } from 'emotion';
const containerStyle = css({
color: 'black',
});
export default function ResumeLayout({ children }) {
return (
<StaticQuery
quer... |
src/routes/content/index.js | zjr/zjrio | /**
* 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 Content from './Content'... |
app/javascript/mastodon/features/reblogs/index.js | kirakiratter/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs ... |
examples/redirect-using-index/app.js | davertron/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
{this.props.children}
</div>
);
}
});
var Index = React.createClass({
render () {
return (
<div>
<h1>You should not se... |
src/main/react-front-end/src/views/HomePageComponent.js | didclab/onedatashare | /**
##**************************************************************
##
## Copyright (C) 2018-2020, OneDataShare Team,
## Department of Computer Science and Engineering,
## University at Buffalo, Buffalo, NY, 14260.
##
## Licensed under the Apache License, Version 2.0 (the "License"); you
## may not use this ... |
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | chnfeeeeeef/react-native | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
ListView,
Platform,
StyleSheet,
View,
} from 'react-native';
import ListItem from '../../components/ListItem';
import Backend from '../../lib/Backend';
export default class ChatListScreen extends Component {
stat... |
src/server.js | NoobJS-nwhax/nwhacks-2017 | 'use strict';
import path from 'path';
import { Server } from 'http';
import Express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import routes from './routes';
import NotFoundPage from './components/NotFoundPage';
/... |
examples/with-freactal/pages/index.js | giacomorebonato/next.js | import React from 'react'
import { injectState } from 'freactal'
import app from '../components/app'
const Index = injectState(({ state: { ajaxStatus, githubReposList }, effects }) => {
const fetchMore = () =>
effects.fetchGithubReposList(githubReposList.username, githubReposList.page + 1)
return (
<div>
... |
src/js/components/ImageFigure.js | AlexBai1991/react-images-gallery | 'use strict';
import React, { Component } from 'react';
export default class ImageFigure extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
// 取消默认行为,阻止冒泡
e.preventDefault();
e.stopPropagation();
const target = e.cu... |
5.3.0/src/index.js | erikras/redux-form-docs | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import store from 'redux/store'
import DevTools from './components/DevTools'
import component from './routes'
import Perf from 'react-addons-perf'
import devToolsEnabled from './devToolsEnabled'
const dest = document.ge... |
src/svg-icons/action/account-box.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBox = (props) => (
<SvgIcon {...props}>
<path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3... |
app/containers/QueryResults.js | josser/pickler | import React, { Component } from 'react';
import { connect } from "react-redux";
class QueryResults extends Component {
render() {
const columns = this.props.results.length > 0 ? Object.keys(this.props.results[0]) : ['']
const results = this.props.results;
return (
<table className="table-striped... |
20161122/src/js/routes.js | fengnovo/fengnovo-react-test | import React from 'react';
import { Router, Route, IndexRoute, browserHistory} from 'react-router';
import App from './pages/app.jsx';
import Home from './pages/home.jsx';
import Detail from './pages/detail.jsx';
import NotFound from './pages/notFound.jsx';
const historyOptions = {
queryKey : false
};
const routes... |
web/src/js/components/Search/SearchPageComponent.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import Input from '@material-ui/core/Input'
import IconButton from '@material-ui/core/IconButton'
import InputAdornment from '@material-ui/core/InputAdornment'
import SearchIcon from '@material-ui/icons/Se... |
src/SnackBarPanel3/index.js | DuckyTeam/ducky-components | import Icon from '../Icon';
import LabelStandard from '../LabelStandard';
import Typography from '../Typography';
import Wrapper from '../Wrapper';
import Counter from '../Counter';
import styles from './styles.css';
import React from 'react';
import PropTypes from 'prop-types';
function SnackBarPanel3(props) {
l... |
src/List/ListItemIcon.js | AndriusBil/material-ui | // @flow
import React from 'react';
import type { Element } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
height: 24,
marginRight: theme.spacing.unit * 2,
width: 24,
color: theme.palette.action.ac... |
app/javascript/mastodon/components/extended_video_player.js | imomix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
class ExtendedVideoPlayer extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
time: PropTypes.number,
controls: PropTypes.bool.isRequired,
muted: PropTypes.bool.isRequired,
};
handleLoadedData = () =... |
src/components/GithubLoginButton.js | BoilerMake/frontend | import React from 'react';
import { githubLogin } from '../actions';
import { ALLOW_SIGNUPS } from '../config';
const GithubLoginButton = ({ actionText }) => {
return ALLOW_SIGNUPS ? (
<div onClick={githubLogin} className="p-login__with_github">
<i className="fa fa-github" />
{actionText}... |
js/src/components/Dropdown/DropdownOption/index.js | understory-dev/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css'; // eslint-disable-line no-unused-vars
export default class DropDownOption extends Component {
static propTypes = {
children: PropTypes.any,
value... |
index.android.js | joaopiopedreira/shopping-list-app | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class AwesomeProject extends Component {
render() {
return (
<View style={styles.cont... |
app/containers/LanguageProvider/index.js | aahluwal/react-bananagrams | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/parser/shared/modules/features/SelfHealTimingGraph.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import {
FlexibleWidthXYPlot as XYPlot,
XAxis,
YAxis,
LineSeries,
AreaSeries,
MarkSeries,
DiscreteColorLegend,
Hint,
} from 'react-vis';
import VerticalLine from 'interface/others/charts/VerticalLine';
import Analyzer from 'parser/core/Analy... |
src/containers/Asians/_components/BreakRoundMotions/LargeMotions.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Card, {
CardContent,
CardHeader
} from 'material-ui/Card'
import Table, {
TableHead,
TableCell,
TableRow,
TableBody
} from 'material-ui/Table'
export default connect(mapStateToProps)(({
breakRound,
motionsById,
motionsDebatedCoun... |
packages/flow-runtime-docs/src/components/docs/ExoticTypesPage.js | codemix/flow-runtime | /* @flow */
import React, { Component } from 'react';
import {observer} from 'mobx-react';
import Example from '../Example';
const simpleClassCode = `
class User {}
type UserClass = Class<User>;
console.log((User: UserClass));
console.log((false: UserClass)); // throws
`.trim();
const keysCode = `
type Obj = {
... |
src/svg-icons/toggle/check-box.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleCheckBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</SvgIcon>
);... |
src/components/common/svg-icons/action/power-settings-new.js | abzfarah/Pearson.NAPLAN.GnomeH | 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 ... |
examples/decorators/router/Listing.js | stackscz/re-app | import React from 'react';
export default class Listing extends React.Component {
render() {
return (
<div className="Listing">
<h1>Listing</h1>
<pre>{JSON.stringify(this.props, null, 2)}</pre>
</div>
);
}
}
|
src/main.js | codelittinc/react-stepzilla | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Promise from 'promise';
export default class StepZilla extends Component {
constructor(props) {
super(props);
this.state = {
...this.getPrevNextBtnState(this.props.startAtStep),
compState: this.props.startAtStep... |
src/svg-icons/maps/local-hotel.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
src/components/BottomToolbar.js | dkozar/react-data-menu | import React, { Component } from 'react';
import DropdownMenu from './DropdownMenu.js';
import { items1 } from './../data/items1.js';
import { items2 } from './../data/items2.js';
import { aboutItems } from './../data/aboutItems.js';
import AboutRenderer from './../renderers/AboutRenderer.js';
export default class Bot... |
src/esm/components/graphics/icons-next/status-icon-next/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["status"],
_excluded2 = ["color"],
_excluded3 = ["color"],
_excluded4 = ["color"],
_excluded5 = ["color"],
_excluded6 = ["color"];
... |
src/routes/home/Home.js | bmatthews/haze-lea | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-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';
import PropTypes from 'prop-... |
node_modules/rc-slider/es/common/Track.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
var Track = function Track(_ref) {
var className = _ref.className,
included = _ref.included,
vertical = _ref.vertical,
offset = _ref.offset,
length = _ref.length,
minimumTrackStyle = _ref.minimumTrackStyle;... |
src/components/home/HomePage.js | bj0rge/bjorge-irc | import React from 'react';
import {Link} from 'react-router';
const HomePage = () => {
return (
<div className="jumbotron">
<h1>React Redux Firebase Starter</h1>
<p>This is an starter project to make your life easier</p>
<Link to="about" className="btn btn-primary btn-lg">Learn more</Link>
... |
src/client/components/entity-link.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2016 Ben Ockmore
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distr... |
cli/base-antd-pro/src/routes/User/Login.js | CFshuming/react-demo-gather | import React, { Component } from 'react';
import { connect } from 'dva';
import { Link } from 'dva/router';
import { Checkbox, Alert, Icon } from 'antd';
import Login from '../../components/Login';
import styles from './Login.less';
const { Tab, UserName, Password, Mobile, Captcha, Submit } = Login;
@connect(({ login... |
client/modules/App/components/DevTools.js | AlinaNor/ReactAuction | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
client/app/components/ContentEditor/customPlugins/content-link-plugin/insertContentLink.js | bryanph/Geist | import React from 'react';
import { Entity, RichUtils } from 'draft-js';
import { getSelectionEntity } from '../../utils/inline.js'
export function insertContentLink(editorState, { nodeId, showAddRelationWindow, removeEdge }) {
/*
* Insert or remove content link based on selection
*/
const selection ... |
src/docs/components/paragraph/ParagraphDoc.js | karatechops/grommet-docs | // (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Paragraph from 'grommet/components/Paragraph';
import Button from 'grommet/components/Button';
import DocsArticle from '../../../components/DocsArticle';
const TEXT = `Raised on hip-hop and foster car... |
src/components/Launcher.react.js | ProjectDreamland/launcher | import React from 'react'
import path from 'path'
import shell from 'shell'
import Progress from './Progress'
import fs from 'fs'
import sweetAlert from 'sweetalert'
import {
spawn
}
from 'child_process'
import {
getCurrentWindow
}
from 'remote'
var updated = 0;
export default class LUNCH extends React.Component {
... |
classic/src/scenes/mailboxes/src/Scenes/AppScene/Toolbar/ToolbarExtensions/ToolbarExtensions.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import ToolbarExtension from './ToolbarExtension'
import { crextensionStore } from 'stores/crextension'
import { withStyles } from '@material-ui/core/styles'
import classNames from 'classnames'
const styles = {
buttons: {
display: 'flex',
alignItem... |
examples/customised/styleguide/components/StyleGuide.js | styleguidist/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import Logo from 'rsg-components/Logo';
import Markdown from 'rsg-components/Markdown';
import Styled from 'rsg-components/Styled';
const xsmall = '@media (max-width: 600px)';
const styles = ({ font, base, light, link, baseBackground, mq }) => ({
root: {... |
step09a_redux_epic_http/src/App.js | panacloud/learn-react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { ajaxAction } from './store/action/action-ajax'
function mapStateToProps(state) {
return {
data: state.ajaxReducer.data,
isError: state.ajaxReducer.isError,
loading: state.ajaxReducer.loading,
}
}
f... |
src/map/editPointProperties.js | ruipgil/GatherMySteps | import React from 'react'
import { createPopup, openPopup } from './createPopup'
import {
selectPoint,
updatePoint,
deselectPoint,
straightSelected
// interpolateTimeSelected
} from 'actions/segments'
export default (lseg, current, dispatch) => {
return (e) => {
const { target, originalEvent } = e
... |
src/browser/components/Radio.js | sikhote/davidsinclair | // @flow
import type { CheckboxProps } from './Checkbox';
import Checkbox from './Checkbox';
import React from 'react';
export type RadioProps = CheckboxProps & {
selected: any,
};
const defaultSvgIconChecked = (
<svg viewBox="7 9 70 70">
<path
d="M45,24c11.579,0,21,9.42,21,21c0,11.579-9.421,21-21,21c-1... |
docs/src/app/components/pages/components/Chip/ExampleArray.js | w01fgang/material-ui | import React from 'react';
import Chip from 'material-ui/Chip';
/**
* An example of rendering multiple Chips from an array of values. Deleting a chip removes it from the array.
* Note that since no `onTouchTap` property is defined, the Chip can be focused, but does not gain depth
* while clicked or touched.
*/
exp... |
src/main/resources/ui/components/Header.js | mesos/chronos | import React from 'react'
const Header = ({ title }) => (
<nav className="navbar navbar-inverse">
<div className="container-fluid">
<div className="navbar-header" style={{letterSpacing: 6}}>
<a className="navbar-brand" href="#">{title}</a>
</div>
</div>
</nav>
)
export default Header
|
src/svg-icons/device/access-time.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessTime = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-1... |
src/svg-icons/notification/do-not-disturb.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturb = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13... |
src/page3.js | wiflsnmo/react_study2 | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import ReactPaginate from 'react-paginate';
import $ from 'jquery';
window.React = React;
export class CommentList extends Component {
render() {
return (
<div id="project-comments" className="commentList">
<ul>
... |
packages/icons/src/md/device/GpsFixed.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdGpsFixed(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 16c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm17.88 6H46v4h-4.12c-.92 8.34-7.54 14.96-15.88 15.88V46h-4v-4.12C13.66 40.96 7.04 34.34 6... |
src/components/jquery/plain-wordmark/JqueryPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './JqueryPlainWordmark.svg'
/** JqueryPlainWordmark */
function JqueryPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'JqueryPlai... |
new-lamassu-admin/src/pages/Machines/MachineSidebar.js | naconner/lamassu-server | import List from '@material-ui/core/List'
import ListItem from '@material-ui/core/ListItem'
import ListItemText from '@material-ui/core/ListItemText'
import { makeStyles } from '@material-ui/core/styles'
import React from 'react'
import styles from './Machines.styles'
const useStyles = makeStyles(styles)
const Machine... |
springboot/GReact/src/main/resources/static/app/routes/graphs/containers/HighchartTables.js | ezsimple/java | import React from 'react'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
import HighchartTable from '../../../components/graphs/highchart/HighchartTable'
export default () => (
(
<div id="content">
<div className="row">
<BigBreadcrumbs items={['HighchartTable... |
examples/src/components/UsersField.js | colbyr/react-select | import GravatarOption from './CustomOption';
import GravatarValue from './CustomSingleValue';
import React from 'react';
import Select from 'react-select';
const USERS = require('../data/users');
var UsersField = React.createClass({
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
r... |
app/screens/app/index.js | vgno/getroc | import React from 'react';
import Helmet from 'react-helmet';
import PropTypes from 'prop-types';
import Navbar from '../../components/navbar';
import Footer from '../../components/footer';
import styles from './style.scss';
export default class App extends React.Component {
static propTypes = {
children... |
src/layouts/components/CoreLayout.js | char0n/apiary-switch | import React from 'react';
const CoreLayout = ({ children }) => (
<section className="core-layout">
{children}
</section>
);
CoreLayout.propTypes = {
children: React.PropTypes.node.isRequired,
};
export default CoreLayout;
|
node_modules/antd/es/menu/MenuItem.js | yhx0634/foodshopfront | import React from 'react';
import { Item } from 'rc-menu';
import PropTypes from 'prop-types';
import Tooltip from '../tooltip';
var MenuItem = function MenuItem(props, _ref) {
var inlineCollapsed = _ref.inlineCollapsed;
return React.createElement(
Tooltip,
{ title: inlineCollapsed && props.lev... |
src/js/components/exam/questioner-template.js | daniel-madera/pijs | import React from 'react'
import { observer, inject } from 'mobx-react'
import { Alert, Form, FormGroup, FormControl, ControlLabel, Button, Row, Col, Grid, InputGroup, Glyphicon } from 'react-bootstrap'
import { GlyphButton } from '../others/form'
import QuestionerHints from './questioner-hints'
@inject('appStore', ... |
node_modules/react-bootstrap/es/NavbarCollapse.js | ASIX-ALS/asix-final-project-frontend | 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 ... |
js/components/initiationInfo/index.js | kwoumn3/khemet | 'use strict';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {View } from 'react-native';
import { actions } from 'react-native-navigation-redux-helpers';
class InitiationInfo extends Component {
}
|
packages/xo-web/src/common/json-schema-input/enum-input.js | vatesfr/xo-web | import _ from 'intl'
import uncontrollableInput from 'uncontrollable-input'
import Component from 'base-component'
import React from 'react'
import { createSelector } from 'reselect'
import { findIndex, map } from 'lodash'
import { PrimitiveInputWrapper } from './helpers'
// ==========================================... |
src/svg-icons/maps/near-me.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNearMe = (props) => (
<SvgIcon {...props}>
<path d="M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z"/>
</SvgIcon>
);
MapsNearMe = pure(MapsNearMe);
MapsNearMe.displayName = 'MapsNearMe';
MapsNearMe.muiName... |
webapp/app/components/SaveCreation/Form/Users/index.js | EIP-SAM/SAM-Solution-Node-js | //
// UsersFormGroup in form for page SaveCreation
//
import React from 'react';
import { FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap';
import Option from 'components/Option';
import styles from 'components/SaveCreation/styles.css';
/* eslint-disable react/prefer-stateless-function */
expo... |
website/src/showcase.js | uber-common/deck.gl | import React from 'react';
import {withPrefix} from 'gatsby';
import styled from 'styled-components';
import items from '../showcase.json';
const ShowcaseContainer = styled.div`
padding: 60px 12px;
max-width: 800px;
margin: 0 auto;
@media screen and (max-width: 600px) {
padding: 12px;
}
`;
const Thumbnail = style... |
app/views/DislikedIngredientsPreferencesView.js | hippothesis/Recipezy | /*
* Copyright 2017-present, Hippothesis, 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.
*/
'use strict';
import React, { Component } from 'react';
import {
Body,
Button,
Container,
Content,
... |
demos/todomvc/src/components/NewTodo/index.js | FWeinb/cerebral | import React from 'react'
import { connect } from 'cerebral/react'
import {state, signal} from 'cerebral/tags'
export default connect({
title: state`app.newTodoTitle`,
titleChanged: signal`app.newTodoTitleChanged`,
submitted: signal`app.newTodoSubmitted`
},
function NewTodo ({ isSaving, title, titleChanged, su... |
src/svg-icons/toggle/check-box-outline-blank.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleCheckBoxOutlineBlank = (props) => (
<SvgIcon {...props}>
<path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ToggleCheckBoxOutlineBlank =... |
src/components/wallet/WalletEncrypt.js | whphhg/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { action, computed, extendObservable } from 'mobx'
import { inject, observer } from 'mobx-react'
/** Ant Design */
import Button from 'antd/lib/button'
import Input from 'antd/lib/input'
import notification from 'antd/lib/notification'
@transl... |
src/TabbedArea.js | jontewks/react-bootstrap | import React from 'react';
import Tabs from './Tabs';
import TabPane from './TabPane';
import ValidComponentChildren from './utils/ValidComponentChildren';
import deprecationWarning from './utils/deprecationWarning';
const TabbedArea = React.createClass({
componentWillMount() {
deprecationWarning(
'TabbedA... |
src/entry.js | croy-kronos/fna-chrome-plugin | import React from 'react'
import ReactDOM from 'react-dom'
import { PanelGroup } from 'react-bootstrap';
import InfosComponent from './infos/infos.js'
import DebugComponent from './debug/debug.js';
import ImportExport from './components/ImportExport.js';
import FNAPreset from './components/FNAPreset.js';
class MasterC... |
src/components/Navbar/Navbar.js | prod-alex2006hw/dev.alex2006hw.com | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* 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'; // eslint-disable-line no-unused-vars
class Navbar {
rende... |
admin/client/App/App.js | w01fgang/keystone | /**
* The App component is the component that is rendered around all views, and
* contains common things like navigation, footer, etc.
*/
import React from 'react';
import { Container } from './elemental';
import { Link } from 'react-router';
import { css, StyleSheet } from 'aphrodite/no-important';
import MobileN... |
modules/dqt/jsx/react.navigationStepper.js | aces/Loris | import React from 'react';
import PropTypes from 'prop-types';
import {Stepper} from './components/stepper';
const NavigationStepper = (props) => {
const mySteps = ['Info', 'DefineFields', 'DefineFilters', 'ViewData'];
const steps = [
{
title: 'Create or Load',
onClick: (e) => {
e.preventD... |
sb-admin-seed-react/src/vendor/recharts/demo/component/PolarRadiusAxis.js | Gigasz/tropical-bears | import React from 'react';
import { Surface, PolarRadiusAxis } from 'recharts';
export default React.createClass({
render () {
const ticks = [
{ value: '100', radius: 50 },
{ value: '200', radius: 100 },
{ value: '300', radius: 150 },
{ value: '400', radius: 200 },
{ value: '500', r... |
app/components/charts/areaChart.js | it-surya/hack-jeninvest | import React from 'react';
import {
View,
Image,
Dimensions
} from 'react-native';
import {
RkComponent,
RkTheme,
RkText
} from 'react-native-ui-kitten';
import {
VictoryChart,
VictoryAxis,
VictoryArea,
VictoryScatter,
VictoryGroup,
VictoryCandlestick
} from 'victory-native';
export class Area... |
common/containers/PostsContainer/PostContainer.js | sauleddy/HomePortal | import React from 'react';
import { connect } from 'react-redux';
import { Post } from '../../components/List/Posts';
export default connect(
(state) => ({
docsUrl: state['postPage'].getIn(['docsUrl']),
resource: state['postPage'].getIn(['resource']),
}),
(dispatch) => ({
})
)(Post);
|
src/interface/others/Feeding.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Icon from 'common/Icon';
import { TooltipElement } from 'common/Tooltip';
// import Toggle from 'react-toggle';
function formatThousands(number) {
return (`${Math.round... |
tests/lib/rules/vars-on-top.js | inikulin/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
* @copyright 2014 Danny Fritz. All rights reserved.
* @copyright 2014 Gyandeep Singh. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requiremen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.