path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/action/supervisor-account.js | nathanmarks/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/components/Search/ItemListItem.js | ndlib/beehive | import React from 'react'
import PropTypes from 'prop-types'
import ListItem from './ListItem'
import GridItem from './GridItem'
const ItemListItem = (props) => {
return (props.view === 'list') ? (
<ListItem item={props.item} {...props} />
) : (
<GridItem item={props.item} {...props} />
)
}
ItemListItem... |
submissions/leoasis/src/NavButton.js | staltz/flux-challenge | import React from 'react';
import classNames from 'classnames';
export default class NavButton extends React.Component {
render() {
const className = classNames(
'css-button-' + this.props.direction,
this.props.disabled && 'css-button-disabled'
);
return <button
className={className}
... |
frontend/component/editTopic.js | laayoune/whoquan | import React from 'react';
import jQuery from 'jquery';
import {getTopicDetail,editTopic} from '../lib/client';
import {redirectURL} from '../lib/utils';
import MarkdownEditor from './MarkdownEditor';
export default class EditTopic extends React.Component {
constructor(props) {
super(props);
this.state = {}... |
examples/with-afterjs/src/About.js | jaredpalmer/react-production-starter | import React, { Component } from 'react';
class About extends Component {
render() {
return <div>about</div>;
}
}
export default About;
|
src/components/file-list/file-list-item.js | dylanlott/bridge-gui | import React from 'react';
import FileIcon from 'components/file-list/file-icon';
const FileListItem = (props) => {
function handleClick(event) {
event.preventDefault();
props.fileSelectAction(props.hash, props.mimetype, props.filename);
}
return (
<tr>
<td>
<FileIcon mimetype={props.... |
classic/src/scenes/mailboxes/src/Components/MailboxTooltip/MailboxTooltipServiceAddItem.js | wavebox/waveboxapp | import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import LibraryAddIcon from '@material-ui/icons/LibraryAdd'
import TooltipSectionListItem from 'wbui/TooltipSectionListItem'
import TooltipSectionListItemIcon from 'wbui/TooltipSectionListItemIcon'
import TooltipSectionListItemText from ... |
docs/src/app/components/pages/components/Tabs/ExampleSimple.js | igorbt/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import Slider from 'material-ui/Slider';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
};
function handleActive(tab) {
alert(`A tab with this route property ${tab.props['data... |
test/integration/css-fixtures/global-and-module-ordering/pages/_app.js | azukaru/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
|
src/svg-icons/image/vignette.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
packages/reactor-kitchensink/src/examples/DragAndDrop/Handles/Handles.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel } from '@extjs/ext-react';
import './styles.css';
Ext.require(['Ext.drag.*']);
export default class Handles extends Component {
render() {
return (
<Panel
ref="mainPanel"
padding={5}
sha... |
app/javascript/components/RoundMap/Map/Legend/LegendItem.js | skyderby/skyderby | import React from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
const LegendItem = ({ color, children }) => {
return (
<Item>
<i className="fa fa-circle" style={{ color }} />
—
{children}
</Item>
)
}
const Item = styled.div`
font:... |
src/components/Scenes/Home/Home.render.js | cajacko/RememberWhen | // @flow
import React from 'react';
import PostsList from '../../Posts/List';
/**
* Render the home scene
*
* @param {Object} props The props passed to the component, check flow for more
* detail
*
* @return {ReactElement} The components markup to render
*/
const ScenesHome = () => <PostsList baseRoute="/home"... |
src/components/layer/layer.js | ykx456654/hr_admin | import { Modal, message } from 'antd'
import React from 'react'
import ReactDOM from 'react-dom'
import classnames from 'classnames'
import styles from './layer.less'
const { info, success, error, warning, confirm } = Modal
const layer = {
prefixCls: 'ant-layer',
index: 1,
info,
success,
error,
warning,
... |
src/index.js | alice02/go-todoapi | import React from 'react';
import { render } from 'react-dom';
import { Provider } from "react-redux";
import injectTapEventPlugin from "react-tap-event-plugin";
import App from "./containers/App";
import configureStore from "./store/configureStore";
import { getTodosIfNeeded } from "./actions";
const store = configur... |
docs/src/modules/components/Demo.js | AndriusBil/material-ui | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import IconButton from 'material-ui/IconButton';
import Collapse from 'material-ui/transitions/Collapse';
import CodeIcon from 'material-ui-icons/Code';
import MarkdownElement from 'docs/src/modules... |
manager/src/App.js | haaswill/ReactNativeCourses | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import firebase from 'firebase';
import ReduxThunk from 'redux-thunk';
import reducers from './reducers';
import Router from './Router';
class App extends Component {
componentWillM... |
admin/client/Signin/index.js | alobodig/keystone | /**
* The signin page, it renders a page with a username and password input form.
*
* This is decoupled from the main app (in the "App/" folder) because we inject
* lots of data into the other screens (like the lists that exist) that we don't
* want to have injected here, so this is a completely separate route and... |
src/SimpleCell.js | pandafeeder/react-native-easy-table | import React from 'react'
import {
Text,
View,
StyleSheet,
} from 'react-native'
const SimpleCell = (props) => {
return (
<View style={[styles.container, props.style]}>
<Text style={styles.textStyle}>
{props.children}
</Text>
</View>
)
}
const styles = StyleSheet.create... |
Team4of5/src/Team4of5_App/Chat/MenuFuncs.js | Team4Of5/Project | import React from 'react';
import ReactDOM from 'react-dom';
import {
Grid, Row, Col, Thumbnail, Button, ButtonGroup, MenuItem,
DropdownButton, ButtonToolbar, Media, Image
} from 'react-bootstrap';
import './MenuFuncs.css'
//Reference: https://gorangajic.github.io/react-icons/fa.html
import TiContactsIcon from ... |
src/containers/App.js | philly-d/chirp-for-twitter | import { bindActionCreators } from 'redux'
import React from 'react'
import { connect } from 'react-redux'
import { toggleAppExpansion, closeApp, hideBanner } from '../actions'
import { getCurrentThread } from '../reducers/tweetThread'
import App from '../components/app'
function mapStateToProps (state) {
return s... |
src/images/SsRegExResult.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react'
import screenShot from './graphics/ScreenShotRegExPrayersResult.jpg'
export default React.createClass({
render() {
return <img role="presentation" src={screenShot} height="100%" width="100%"/>
}
})
|
admin/client/components/Forms/FormHeading.js | andreufirefly/keystone | import React from 'react';
import evalDependsOn from '../../../../fields/utils/evalDependsOn';
module.exports = React.createClass({
displayName: 'FormHeading',
propTypes: {
options: React.PropTypes.object,
},
render () {
if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) {
return n... |
src/index.js | kevinb7/react-text-editor | import React from 'react';
import { render } from 'react-dom';
import App from './components/App';
render(<App/>, document.getElementById('root'));
|
packages/lore-react-forms/src/components/Form.js | lore/lore-forms | /* eslint consistent-return: "off" */
import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import _ from 'lodash';
export default createReactClass({
displayName: 'Form',
propTypes: {
data: PropTypes.object.isRequired,
errors: PropTypes.object,
... |
src/client/components/Month/Month.js | 25th-floor/ttrack | import PropTypes from 'prop-types';
import React from 'react';
import Immutable from 'immutable';
import DatePicker from './DatePicker';
import Weeks from './Weeks';
import styles from './less/Month.less';
export default class extends React.Component {
static propTypes = {
user: PropTypes.object.isRequire... |
tribute-page/src/App.js | florinpop17/chingu-speedrun-may | import React, { Component } from 'react';
class App extends Component {
render() {
return (
<div className="container-fluid">
<div className="row">
<div className="col-md-6 col-md-offset-3">
<div className="jumbotron">
<h2 className=... |
app/jsx/external_apps/components/ConfirmationForm.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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... |
app/javascript/mastodon/features/direct_timeline/index.js | danhunsaker/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... |
src/server.js | bobbybeckner/ha-catalyst-test | /**
* 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 path from 'path';
import express from 'express';... |
src/main.js | DimensionLab/narc | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { basename } from 'config'
import configureStore from 'store/configure'
import api from 'services/api'
import App from 'components/App'
const initialState = window.__INITIAL_STATE__
const store = configureStore(... |
client/src/components/UnitStatus/AvailabilityKey.js | mrmckeb/ses-hackathon-location-app | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import IconButton from 'material-ui/IconButton';
// Icons
import Help from 'material-ui/svg-icons/action/help';
import Warning from 'material-ui/svg-icons/alert/warning';
import Done from 'material-ui/s... |
src/widgets/FlexColumn.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
/**
* Simple layout component. For use when needing a simple View with flex
* direction of column.
* @pa... |
src/website/app/demos/Card/CardActions/examples/withLinks.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { mineralTheme } from '../../../../../../library/themes';
import _Link from '../../../../../../library/Link';
import Card, { CardBlock, CardActions } from '../../../../../../library/Card';
import DemoLayout from '../../common/DemoLayout';
import loremIpsum from '../../commo... |
src/app/views/myRecipes.js | benigeri/soapee-ui | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import { Link } from 'react-router';
import meStore from 'stores/me';
import meActions from 'actions/me';
import RecipeListItem from 'components/recipeListItem';
import Spinner from 'components/spinner';
export default React.createClas... |
app/containers/Home.js | thomasantony/budget-app-legacy | import React, { Component } from 'react';
import { Link } from 'react-router';
import {bindActionCreators} from 'redux';
import { connect } from 'react-redux';
import * as AccountActions from '../actions/accounts'
import * as LedgerActions from '../actions/ledger'
// import styles from './Home.module.css';
import { cre... |
client/components/Main.js | orballo/gorgonzola | 'use strict'
import React from 'react'
import Loader from './Loader'
const Main = props => (
<div id='main' style={ {backgroundColor: props.currentUser.color.hex} }>
<h1 className='main-title'>LED Canvas</h1>
<div className='flex-container box'>
{props.children[0]}
</div>
<div className='flex-... |
app/components/Geschaefte/GeschaefteItem.js | barbalex/kapla3 | import React from 'react'
import PropTypes from 'prop-types'
import { observer, inject } from 'mobx-react'
import compose from 'recompose/compose'
import withHandlers from 'recompose/withHandlers'
import styled from 'styled-components'
const StyledId = styled.div`
flex: 1;
padding: 5px;
text-overflow: ellipsis;
... |
src/plugins/alignment.js | MaxKelsen/ory-slate-plugin | /* eslint-disable prefer-reflect */
import React from 'react'
import AlignLeftIcon from 'material-ui-icons/FormatAlignLeft'
import AlignCenterIcon from 'material-ui-icons/FormatAlignCenter'
import AlignRightIcon from 'material-ui-icons/FormatAlignRight'
import AlignJustifyIcon from 'material-ui-icons/FormatAlignJustify... |
app/components/Navbar.js | longgame/koa-boilerplate | 'use strict;'
import React, { Component } from 'react';
import template from './Navbar.rt';
module.exports = React.createClass({
render: template
});
|
src/parser/rogue/assassination/modules/talents/MasterAssassin.js | sMteX/WoWAnalyzer | import React from 'react';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPer... |
src/icons/GlyphCase.js | ipfs/webui | import React from 'react'
const GlyphCase = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M54.74 55.69a4.9 4.9 0 0 1-9.48 0v-.09H19.8v16.86c0 3.29 3.31 6.41 6.81 6.41H74a6.49 6.49 0 0 0 6.24-6.41V55.6H54.76zM78.36 33.9A5.8 5.8 0 0 0 74 31.42H63a8.51 8.51 0 0 0 0-.88v-.73c0-5-3.45-8.68-8.21-8.68h-9.5... |
src/components/NoMatch.js | duwonyi/eng-box-react | import React from 'react'
const NoMatch = () => (
<div>
404
</div>
)
export default NoMatch
|
src/components/HeaderTitle.js | MichelML/masaq.com | import React from 'react';
const HeaderTitle = (props) => (
<span className="mdl-layout-title hide-mobile">
{props.name || "maSAQ"}
</span>
);
export default HeaderTitle;
|
src/components/auth/signup.js | LiJuons/react-dribbble | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
import ReCAPTCHA from 'react-google-recaptcha';
class Signup extends Component {
componentWillMount() {
this.props.clearError();
}
handleFormSubmit(formProps){ this.props.signupUser(fo... |
frontend/src/components/overview/index.js | Kilte/scrobbler | import React from 'react';
import Nowplay from './nowplay';
import RecentTracks from './recent-tracks';
import Streak from './streak';
import Widget from './widget';
import Chart from '../shared/chart';
import Error from '../shared/error';
import Spinner from '../shared/spinner';
class Overview extends React.Compone... |
src/index.js | mudrenok/bookmarks | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension/logOnlyInProduction';
import { Provider } from 'react-redux';
import thunk from 'redux-thun... |
app/components/Home.js | tanysaur/crappy-birds | import React from 'react';
import { connect } from 'react-redux'
import Messages from './Messages';
class Home extends React.Component {
render() {
return (
<div className="container-fluid">
<Messages messages={this.props.messages}/>
<div className="row">
<div className="col-sm-4"... |
src/js/components/Page.js | nama-gatsuo/shikaku-web | import React from 'react'
import $ from 'jquery'
import Menu from './Menu'
import GameButtons from './GameButtons'
export default class Page extends React.Component {
constructor(props) {
super(props);
// Menu に渡す flag をstateに保持
this.state = {
showMenu: false,
is... |
public/js/cat_source/es6/components/analyze/AnalyzeChunksResume.js | riccio82/MateCat | import React from 'react'
import AnalyzeActions from '../../actions/AnalyzeActions'
import OutsourceContainer from '../outsource/OutsourceContainer'
class AnalyzeChunksResume extends React.Component {
constructor(props) {
super(props)
this.payableValues = []
this.payableValuesChenged = []
this.conta... |
code-samples/js/ARPosterDemo/ARPosterDemo.js | viromedia/viro | /**
* Copyright (c) 2017-present, Viro Media, 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.
*/
import Re... |
src/components/OverflowMenu/OverflowMenu.js | jzhang300/carbon-components-react | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classNames from 'classnames';
import ClickListener from '../../internal/ClickListener';
import FloatingMenu from '../../internal/FloatingMenu';
import OptimizedResize from '../../internal/OptimizedResize';
import Icon from '../Icon';
... |
node_modules/react-bootstrap/es/ModalDialog.js | chenjic215/search-doctor | 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 ... |
node_modules/react-native-vector-icons/RNIMigration.js | 15chrjef/mobileHackerNews | import React from 'react';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import Foundation from 'react-native-vector-icons/Foundation';
import Ionicons from 'react-native-vector-icons/Ionicons';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import Zocial from 'react-native-vect... |
packages/mineral-ui-icons/src/IconPlayCircleFilled.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 IconPlayCircleFilled(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...i... |
src/breadcrumb.js | goto-bus-stop/bulmare | import cx from 'classnames'
import React from 'react'
import nest from 'recompose/nest'
import mapProps from 'recompose/mapProps'
import {
bulmaComponent,
withModifiers,
sizeModifiers,
alignmentModifiers
} from './internal'
export const Breadcrumbs = nest(
bulmaComponent('nav', 'breadcrumb',
withModifier... |
src/app/components/search/SelectButton.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown';
const StyledButton = withStyles({... |
src/parser/shared/modules/features/RaidHealthTab/TabComponent/Graph.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import fetchWcl from 'common/fetchWclApi';
import RaidHealthChart from './RaidHealthChart';
const CLASS_CHART_LINE_COLORS = {
DeathKnight: 'rgba(196, 31, 59, 0.6)',
Druid: 'rgba(255, 125, 10, 0.6)',
Hunter: 'rgba(171, 212, 115, 0.6)',
Mage: 'rgba... |
mobile/index.ios.js | kurosouza/lightfox | /**
* 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 mobile extends Component {
render() {
return (
<View style={styles.container}>
... |
src/ModalTitle.js | Terminux/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import tbsUtils, { bsClass } from './utils/bootstrapUtils';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, tbsUtils.prefix(this.props, 'title'))}>
... |
src/components/app.js | alexandrudanpop/EstatesWebApp | import React from 'react';
import EstatesContainer from './estates-container'
export default class App extends React.Component {
render() {
return (
<EstatesContainer />
)
}
} |
src/components/StickyHeader.js | serzhshakur/quest-application-reactjs | import React from 'react'
import icon from '../assets/exit.png'
import {deleteSession} from '../api/api'
import {Redirect} from 'react-router-dom'
class StickyHeader extends React.PureComponent {
constructor(props) {
super(props)
this.state = {
shouldRedirect: false
}
}
... |
docs/app/Examples/elements/Loader/Variations/LoaderExampleSizes.js | koenvg/Semantic-UI-React | import React from 'react'
import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react'
const LoaderExampleSizes = () => (
<div>
<Segment>
<Dimmer active>
<Loader size='mini'>Loading</Loader>
</Dimmer>
<Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' />
... |
transitions/app/AndroidDefaultTransitioner.js | lintonye/react-native-diary | // @flow
import React, { Component } from 'react';
import {
View,
StyleSheet,
Animated,
} from 'react-native';
import { CardStack } from 'react-navigation';
import type { NavigationSceneRendererProps } from 'react-navigation';
class AndroidDefaultTransitioner extends Component {
render() {
con... |
src/index.js | agrakhov/bubba | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack t... |
frontend/src/components/login.js | b1naryth1ef/rowboat | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom'
import {globalState} from '../state';
export default class Login extends Component {
constructor() {
super();
this.state = {
user: globalState.user,
};
globalState.events.on('user.set', (user) => {
thi... |
src/shell/markdown-editor/ArticleDetail.js | Shyam-Chen/React-Fullstack-Starter | // @flow
import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { dynamic } from 'redux-dynamic-manager';
import useRouter from 'use-react-router';
import useForm from 'react-hook-form';
import Markdown from 'react-markdown';
import { setData } from './actions';
import reducer from ... |
src/svg-icons/navigation/unfold-more.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationUnfoldMore = (props) => (
<SvgIcon {...props}>
<path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"/>
</SvgIcon>
);
Navig... |
blueprints/smart/files/__root__/containers/__name__.js | deevatech/frontend | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render() {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const ... |
src/applications/medical-copays/utils/helpers.js | department-of-veterans-affairs/vets-website | import React from 'react';
import moment from 'moment';
import FEATURE_FLAG_NAMES from 'platform/utilities/feature-toggles/featureFlagNames';
import { toggleValues } from 'platform/site-wide/feature-toggles/selectors';
import { getMedicalCenterNameByID } from 'platform/utilities/medical-centers/medical-centers';
expor... |
src/category/category_sections.js | govau/service-manual | import PropTypes from 'prop-types';
import Slugify from 'slugify';
import React from 'react';
/**
* The sections component
*/
const CategorySections = ( page ) => {
const sections = [];
page.sections.map( ( section ) => sections.push({
link: Slugify( section ).toLowerCase(),
title: section,
}));
return (
... |
src/auth/screens/language-setting.screen.js | dyesseyumba/git-point | /* eslint-disable no-shadow */
import React, { Component } from 'react';
import { FlatList } from 'react-native';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { ListItem } from 'react-native-elements';
import { colors, fonts } from 'config';
import { changeLocale } from 'auth';
... |
src/parser/rogue/subtlety/modules/talents/DarkShadow/DarkShadowNightblade.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import DarkShadow from './DarkShadow';
import DanceDamageTracker from '../../core/DanceDamageTracker';
class DarkShadowNightblade extends DarkShadow {
static dependencies = {
...DarkShadow.dependencies,
... |
src/scenes/home/landing/moreInformation/moreInformation.js | NestorSegura/operationcode_frontend | import React from 'react';
import Section from 'shared/components/section/section';
import ClipPathImage from 'shared/components/clipPathImage/clipPathImage';
import familyImage from 'images/Family-1.jpg';
import milImage from 'images/Mil-1.jpg';
import volunteerImage from 'images/Volunteer-1.jpg';
import styles from ... |
src/svg-icons/action/hourglass-empty.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassEmpty = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/>
... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | WitchesTown/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import Permalink from '../../../components/permalink';
import { FormattedMessage } from 'r... |
client/scripts/components/app-header/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
frontend/src/System/Status/About/AboutConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchStatus } from 'Store/Actions/systemActions';
import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector';
import About from '.... |
frontend/src/System/Tasks/Queued/QueuedTaskRow.js | lidarr/Lidarr | import moment from 'moment';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Icon from 'Components/Icon';
import IconButton from 'Components/Link/IconButton';
import ConfirmModal from 'Components/Modal/ConfirmModal';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
im... |
DEPRECATED/node_modules/react-router/es6/IndexLink.js | vanHeemstraDesigns/CreationsEcosystemStatic | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor... |
components/SbLayout.js | stanidesis/stanidesis.github.io | /* This is the top-level Layout component which includes
* the StoryblokService bridge.
*
* Use this to wrap all /SbContents/ components and provide
* Global site-variables within `settings`
*/
import React from 'react'
import StoryblokService from '../utils/storyblok-service'
export default ({ children, setting... |
src/svg-icons/action/zoom-out.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionZoomOut = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 ... |
src/samples/AppSamples.js | lucas-issa/simple-react-dropzone | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
import TextField from 'material-ui/TextField';
import Samples from './Samples';
import '../lib/ui/css/filepicker.css';
import '../lib/ui/css/dropzone.... |
src/index.js | OneMay/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
app/routes/index.js | ellheat/exercise-6-redux | import React from 'react';
import { Route } from 'react-router';
import App from './app.container';
import HomeRoute from './home';
import NotFoundRoute from './notFound';
const routes = (
<Route>
{HomeRoute}
<Route path="404">
{NotFoundRoute}
</Route>
</Route>
);
export default (
<Route com... |
app/routes.js | RoadToGlobal/ClientDistro | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import LandingForm from './views/LandingForm';
import * as actions from './redux/actions';
import Group from './views/group';
import CreateActivity from './views/CreateActivity';
import ActivitySt... |
frontend/app/components/Image/index.js | First-Peoples-Cultural-Council/fv-web-ui | // import Image from 'components/Image'
import React from 'react'
import PropTypes from 'prop-types'
const { string } = PropTypes
export default class Image extends React.Component {
static propTypes = {
className: string,
srcSet: string,
sizes: string,
src: string.isRequired,
alt: string.isRequi... |
src/svg-icons/action/play-for-work.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPlayForWork = (props) => (
<SvgIcon {...props}>
<path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/>
</SvgIcon>
);
ActionPlayForWork ... |
src/js/components/ItemInformation/index.js | waagsociety/ams.datahub.client | import React from 'react'
export default function ItemInformation(dates, strings, feedback) {
const { created, modified, available } = dates
const { temporal, license, keyword, theme } = strings
const { href, type } = feedback
dates = [
{ name: "Created", value: created[0] },
{ name: "Modified", valu... |
src/React/CollapsibleControls/CollapsibleControlFactory/TimeFloatImageControl.js | Kitware/paraviewweb | import React from 'react';
import CollapsibleControlFactory from '.';
import TimeFloatImageControl from '../TimeFloatImageControl';
CollapsibleControlFactory.registerWidget(
'TimeFloatImageControl',
({ model }) => (
<TimeFloatImageControl key="TimeFloatImageControl" model={model} />
)
);
|
components/map/index.js | ElemeFE/react-amap | // @flow
import React from 'react'
import APILoader from '../utils/APILoader'
import isFun from '../utils/isFun'
import log from '../utils/log'
import { toLnglat } from '../utils/common'
import withPropsReactive from '../utils/withPropsReactive'
const Component = React.Component
const Children = React.Children
const c... |
src/ShallowTraversal.js | hartzis/enzyme | import React from 'react';
import { isEmpty } from 'underscore';
import isSubset from 'is-subset';
import {
coercePropValue,
propsOfNode,
isSimpleSelector,
splitSelector,
selectorError,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
} from './Utils';
export function childrenOfNode(node) {
if (!n... |
actor-apps/app-web/src/app/utils/require-auth.js | hmoraes/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
src/index.js | davalb/continuous-divestment | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/client.js | yiweimatou/website | import React from 'react';
import ReactDOM from 'react-dom';
import App from './Component/app';
ReactDOM.render(<App />, document.getElementById('root'));
|
components/App.js | techiesanchez/rythus-app | import React from 'react';
import Footer from './footer';
import SelectableMenu from '../containers/SelectableMenu';
import CardMenu from '../containers/CardMenu';
import MyCards from './mycards'; // this is the player's hand
import Cards from '../containers/Cards';
import ActiveCardDisplay from '../containers/ActiveCa... |
src/routes/login/index.js | shaohuawang2015/goldbeans-admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Button, Row, Form, Input } from 'antd'
import { config } from 'utils'
import styles from './index.less'
const FormItem = Form.Item
const Login = ({
login,
dispatch,
form: {
getFieldDecorator,
validateFiel... |
src/components/MainContent.js | laere/diversion-2 | import React, { Component } from 'react';
export default class MainContent extends Component {
render() {
return (
<div className="content">
{this.props.children}
</div>
);
}
}
|
cloud/dashboard/src/components/ResourceListToolbar.js | rzr/iotivity | /*
* //******************************************************************
* //
* // Copyright 2017 Samsung Electronics All Rights Reserved.
* //
* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* //
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use th... |
src/components/Alert/index.js | Dominic-Preap/react-admin | import React from 'react';
import { Alert } from 'reactstrap';
import PropTypes from 'prop-types';
const Errors = ({ error, color = 'danger' }) => {
return (
<Alert color={color}>
<strong>Error:</strong> {error}
</Alert>
);
};
export default Errors;
Errors.propTypes = {
error: PropTypes.string.is... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.