path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/nodes/Node.js | ebenpack/patches.js | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {removeNode, nodeDragStart, connectStart, connectAttempt, widgetUpdate} from './actions';
const Node = ({node, removeNode, nodeDragStart, connectStart, connectAttempt, widgetUpdate}) => {
const title = node.... |
src/common/components/Button.js | reedlaw/read-it | // @flow
import type { ColorProps, Theme } from '../themes/types';
import type { TextProps } from './Text';
import Box from './Box';
import React from 'react';
import Text, { computeTextStyle } from './Text';
import isReactNative from '../../common/app/isReactNative';
export type ButtonProps = ColorProps & TextProps &... |
src/js/pages/index.js | waagsociety/ams.datahub.client | import React from 'react'
import { connect } from 'react-redux'
import axios from 'axios'
import * as action from '../store'
import {
GlobalNavigation,
SearchPanel,
ResultPanel,
ResultBrowser,
RelatedPanel,
Item,
} from '../containers'
@connect ((store) => ({ store }))
export default class Index exte... |
react/Strong/Strong.demo.js | seek-oss/seek-style-guide | import React from 'react';
import Strong from './Strong';
import Text from '../Text/Text';
export default {
route: '/strong',
title: 'Strong',
category: 'Typography',
component: Text,
initialProps: {
headline: true,
regular: true,
children: ['This text is ', <Strong key="strong">strong</Strong>]
... |
index.android.js | jlebensold/peckish | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class peckish extends Component {
render() {
return (
<View style={styles.container}>
<Text ... |
jobs/screens/AuthScreen.js | haaswill/ReactNativeCourses | import React, { Component } from 'react';
import { View } from 'react-native';
import { connect } from 'react-redux';
import { facebookLogin } from '../actions';
class AuthScreen extends Component {
componentDidMount() {
this.props.facebookLogin();
// if we had logged before
//this.onAuthComplete(this.pr... |
js/controls/KendoDropDownList.js | wingspan/wingspan-forms | import React from 'react'
import SelectWidgetMixin from '../mixins/SelectWidgetMixin'
const PropTypes = React.PropTypes;
const KendoDropDownList = React.createClass({
mixins: [SelectWidgetMixin('kendoDropDownList')],
propTypes: {
id: PropTypes.string,
value: PropTypes.any,
onChange: P... |
app/javascript/mastodon/components/status_action_bar.js | salvadorpla/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenuContainer from '../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureCompo... |
app/javascript/mastodon/components/gifv.js | d6rkaiz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class GIFV extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
onClick: PropTypes.func,
};
state = {
l... |
packages/shared/forks/object-assign.umd.js | rricard/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
export d... |
test/helpers/shallowRenderHelper.js | partner0125/hualang | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/modules/designerServer 2/index.js | 2941972057/flower-react | /**
* Created by dllo on 17/8/23.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import DesignerServer from './DesignerServer'
ReactDOM.render(
<DesignerServer />,
document.getElementById('app')
)
|
src/routes/Home/components/HomeView.js | codingarchitect/react-counter-pair | import React from 'react'
import { connect } from 'react-redux'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
import HomeView from './home-view.rt'
const mapStateToProps = (state) => ({
DuckImage : DuckImage
})
export default connect(mapStateToProps)(HomeView) |
src/shared/theme/navBar.js | CharlesMangwa/Chloe | /* @flow */
import React from 'react'
import { NavigationExperimental } from 'react-native'
import { SFUIDISPLAY_REGULAR } from '@theme/fonts'
const {
Header: NavigationHeader,
} = NavigationExperimental
export const TRANSPARENT_NAV_BAR = {
backgroundColor: 'transparent',
borderBottomWidth: 0,
}
export const ... |
docs/src/app/components/pages/components/Paper/ExampleSimple.js | skarnecki/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleSimple = () => (
<div>
<Paper style={style} zDepth={1} />
<Paper style={style} zDepth={2} />
<Paper style={s... |
analysis/roguesubtlety/src/CONFIG.js | anom0ly/WoWAnalyzer | import { Tyndi } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import React from 'react';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a l... |
src/containers/Asians/TabControls/_components/AppBar/LargeAppBar/BreakRoundsButtons/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Instance from './Instance'
export default connect(mapStateToProps)(({
breakCategories
}) => {
return (
<div
className={'flex flex-row'}
>
{breakCategories.sort((a, b) => b.default).map(breakCategory =>
<Instance
... |
ui/src/components/role/RoleTable.js | yahoo/athenz | /*
* Copyright 2020 Verizon Media
*
* 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 t... |
react/features/welcome/components/native/settings/components/SettingsView.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import {
Alert,
NativeModules,
Platform,
ScrollView,
Text
} from 'react-native';
import { Divider, Switch, TextInput, withTheme } from 'react-native-paper';
import { translate } from '../../../../../base/i18n';
import JitsiScreen from '../../../../../base/modal/... |
app/components/HeadsUpDisplay.js | lotgd/client-react-native | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View, } from 'react-native';
import _ from 'lodash';
class HeadsUpDisplay extends Component {
render() {
const values = _.map(this.props.values, function(value, key) {
return (
<View key={key} style={style... |
src/containers/Navigator.js | scottdj92/t7-chicken-native | import React from 'react';
import { Provider, connect } from 'react-redux';
// dependencies
import { StackNavigator, DrawerNavigator } from 'react-navigation';
import Router from './Router';
// components
import InitialLoading from './InitialLoading/';
import DrawerNavMenu from '../components/DrawerNavMenu/';
// Mai... |
packages/cf-component-header/example/basic/component.js | jroyal/cf-ui | import React from 'react';
import { Box } from 'cf-component-box';
import { Header, NavList, NavItem, Hamburger } from 'cf-component-header';
import { Logo } from 'cf-component-logo';
const ViewComponent = () => (
<Header>
<Box display="flex">
<Hamburger onClick={() => console.log('Yum! Hamburger')} />
... |
src/components/header.js | siddharthkp/siddharthkp.github.io | import React from 'react'
import { Twitter, Github, Medium, Youtube } from './social-icons'
// const CourseBanner = () => (
// <section id="course">
// <img alt="" src="https://frontend.army/react-game/logo.png" /> Working on a new course:{' '}
// <a href="https://frontend.army/react-game" target="_blank" re... |
src/widgets/Charger/index.js | mydearxym/mastani | /*
*
* Charger
*
*/
import React from 'react'
// import T from 'prop-types'
import { ICON_CMD } from '@/config'
import { buildLog } from '@/utils/logger'
import { Wrapper, Battery, Liquid, MoneySign } from './styles'
/* eslint-disable-next-line */
const log = buildLog('c:Charger:index')
// battery effect: http... |
packages/material-ui-icons/src/Brightness6.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z" /></g>
, 'Brightness6');
|
app/utils/injectReducer.js | andyzeli/Bil | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './reducerInjectors';
/**
* Dynamically injects a reducer
*
* @param {string} key A key of the reducer
* @param {function} reducer A reducer that will be injected
*
... |
src/Table/TableHead.js | dsslimshaddy/material-ui | // @flow
import React, { Component } from 'react';
import type { Element } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
fontSize: 12,
fontWeight: theme.typography.font... |
src/routes/Landing/components/LandingPage/StartButton/StartButton.js | nobt-io/frontend | import PropTypes from 'prop-types';
import React from 'react';
import styles from './StartButton.scss';
const StartButton = ({ active, ...props }) => {
let className = active ? styles.activeButton : styles.button;
return (
<a className={className} href="create" {...props}>
Get started - Create a Nobt
... |
src/admin/components/history/index.js | ccetc/platform | import React from 'react'
import { connect } from 'react-redux'
import * as actions from './actions'
export class History extends React.Component {
static childContextTypes = {
history: React.PropTypes.object
}
static contextTypes = {
router: React.PropTypes.object
}
static propTypes = {
histo... |
src/svg-icons/maps/flight.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsFlight = (props) => (
<SvgIcon {...props}>
<path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>... |
src/interface/statistics/StatisticGroup.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY';
const StatisticGroup = ({ children, large, wide, style, ...others }) => (
<div
className={wide ? 'col-md-6 col-sm-12 col-xs-12' : 'col-lg-3 col-md-4 col-sm-6 col-xs-12'}
style... |
actor-apps/app-web/src/app/components/modals/MyProfile.react.js | Just-D/actor-platform | //import _ from 'lodash';
import React from 'react';
import { KeyCodes } from 'constants/ActorAppConstants';
import MyProfileActions from 'actions/MyProfileActions';
import MyProfileStore from 'stores/MyProfileStore';
import AvatarItem from 'components/common/AvatarItem.react';
import Modal from 'react-modal';
imp... |
src/esm/components/graphics/icons/shield-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var ShieldIcon = function ShieldIcon(_ref) {
var color = _re... |
src/svg-icons/editor/format-bold.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatBold = (props) => (
<SvgIcon {...props}>
<path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1... |
src/encoded/static/components/static-pages/StaticPage.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import memoize from 'memoize-one';
import { compiler } from 'markdown-to-jsx';
import { MarkdownHeading } from '@hms-dbmi-bgm/shared-portal-components/es/components/static-pages/TableOfContents';
import { console,... |
lib/components/Tooltip/Tooltip.js | vandreleal/react-social-github | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import './Tooltip.css';
class Tooltip extends Component {
constructor() {
super();
this.state = {};
}
render() {
let isOpen = this.props.open === t... |
src/client/components/test/list.js | adamgruber/mochawesome-report-generator | import React from 'react';
import PropTypes from 'prop-types';
import { Test } from 'components/test';
import classNames from 'classnames/bind';
import styles from './test.css';
const cx = classNames.bind(styles);
const TestList = ({
className,
tests,
beforeHooks,
afterHooks,
enableCode,
}) => (
<ul class... |
site/pages/ExamplePage.js | colbyr/react-dnd | import React from 'react';
import Header from '../components/Header';
import PageBody from '../components/PageBody';
import SideBar from '../components/SideBar';
import { ExamplePages } from '../Constants';
export default class ExamplesPage {
render() {
return (
<div>
<Header/>
<PageBody ha... |
src/components/dot-net/plain-wordmark/DotNetPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './DotNetPlainWordmark.svg'
/** DotNetPlainWordmark */
function DotNetPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'DotNetPlai... |
example/entry.js | rpominov/react-joyful-testing | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import createJoy from '../src/index'
const {
renderToRelevant,
eventsToLog,
mapOverRenders,
eventCreators: {triggerCallback, setProps},
} = createJoy(React, TestUtils)
// Stateless component example
import MyStateless from './targets... |
packages/react-error-overlay/src/components/NavigationBar.js | Clearcover/web-build | /**
* 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 from 'react';
import { red, redTransparent } from '../styles';
const navigationBarStyle = {
marginBottom: '0... |
yycomponent/col/Col.js | 77ircloud/yycomponent | import React from 'react';
import { Col as _Col } from 'antd';
class Col extends React.Component{
constructor(props){
super(props);
}
render(){
return (<_Col {...this.props}/>);
}
}
export default Col
|
src/Navbar/index.js | Erazihel/react-wp | // @flow
import React from 'react';
import {
Navbar,
NavbarToggler,
NavbarBrand,
Nav,
NavItem,
NavLink,
Collapse,
} from 'reactstrap';
import { Link } from 'react-router-dom';
import config from '../../config';
type Data = {
name: string,
};
class NavbarComponent extends React.Component<any, any> {
... |
src/slides/seven/decorators.js | brudil/slides-es6andbeyond | import React from 'react';
import Radium from 'radium';
import Snippet from '../../Snippet';
import {bindShowHelper} from '../../utils';
const styles = {
inlinePre: {
display: 'inline'
},
slide: {
textAlign: 'center'
}
};
const examplesSource = [
`
class Person {
name() {return \`\${this.first} \... |
src/Shared/intl-enzyme-test-helper.js | psychobolt/react-native-boilerplate | /**
* Components using the react-intl module require access to the intl context.
* This is not available when mounting single components in Enzyme.
* These helper functions aim to address that and wrap a valid,
* English-locale intl context around them.
*/
import React from 'react';
import { IntlProvider, intlSha... |
docs/src/index.js | zackharley/react-colours | import React from 'react';
import { render } from 'react-dom';
import Colours from '../../dist/react-colours.min';
import colours from './colours';
render(
<Colours colours={colours}/>,
document.getElementById('app')
)
|
src0/components/Trade.js | yaswanthsvist/openCexTrade | import React from 'react';
import {connect} from 'react-redux';
import * as bitfinexActions from './../actions/bitfinex';
import { StyleSheet, Text,Button, View,ScrollView,StatusBar,Image } from 'react-native';
import wsBitfinex from './../services/webSocket';
import MarketDepth from './ui/MarketDepth';
let BOOK = {
... |
src/components/DecoratorHelper/DropDownMenuDecorator/DropDownMenuDecorator.js | dreambo8563/RSK | import React, { Component } from 'react';
import { observer } from 'mobx-react'
import { observable, action } from 'mobx'
export const dropDownMenu = PopComponent =>
Target =>
@observer class DropDownMenuDecorator extends Component {
@observable show = false;
@action
showMenu() {
... |
app/app.js | arnaudmolo/awkward-list | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill'
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json'
import 'file?name=[name].[ext]!./.htaccess'
/*... |
element-react-test/src/containers/NoneedLogin.js | fengnovo/fengnovo-react-test | import React from 'react'
import {
Layout,
Menu,
Breadcrumb,
Table,Form,
DateRangePicker,
Button,
Select,
Input,
Pagination
} from 'element-react'
import { mockData } from '../mock'
class NoneedLogin extends React.Component {
constructor(...args){
super(...args)
... |
src/SplitButton.js | omerts/react-bootstrap | /* eslint react/prop-types: [2, {ignore: "bsSize"}] */
/* BootstrapMixin contains `bsSize` type validation */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import DropdownStateMixin from './DropdownStateMixin';
import Button from './Button';
import Butto... |
client/sidebar/header/actions/CreateRoomList.js | VoiSmart/Rocket.Chat | import { Box, Margins } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import React from 'react';
import { modal, popover } from '../../../../app/ui-utils/client';
import { useAtLeastOnePermission, usePermission } from '../../../contexts/AuthorizationContext';
import { ... |
examples/counter/src/index.js | tjdavies/RDX | import React from 'react';
import ReactDOM from 'react-dom';
import copal from 'copal';
export const TodoApp = copal(
(state, actions) =>
<div>
<button onClick={actions.decrement}>-</button>
<div>{state.value}</div>
<button onClick={actions.increment}>+</button>
... |
components/profile/runhistory/runHistory.js | akashnautiyal013/ImpactRun01 | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight,
Image,
ListView,
ScrollView,
AppRegistry,
Dimensions,
ActivityIndicatorIOS,
RefreshControl,
AsyncStorage,
TouchableOpacity,
AlertIOS,
TextInput,
} from 'react-native';
import apis from '../../api... |
app/src/Frontend/modules/weui/pages/button/index.js | ptphp/ptphp | /**
* Created by jf on 15/12/10.
*/
"use strict";
import React from 'react';
import {Button} from '../../../../index';
import Page from '../../component/page';
import './button.less';
export default class ButtonDemo extends React.Component {
render() {
return (
<Page className="button" tit... |
src/svg-icons/image/photo-camera.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24... |
src/app/about/aboutPage.js | sonnylazuardi/natal-ppl-app | import React from 'react';
import RaisedButton from 'material-ui/lib/raised-button';
import Router from 'react-router';
import Header from '../header';
class About extends React.Component {
handleTransition () {
this.context.router.transitionTo('instagram');
}
handleAbout () {
// window.open('http://so... |
client/src/components/GalleryItem/GalleryItem.js | open-sausages/silverstripe-asset-admin | import i18n from 'i18n';
import React, { Component } from 'react';
import classnames from 'classnames';
import CONSTANTS from 'constants/index';
import fileShape from 'lib/fileShape';
import draggable from 'components/GalleryItem/draggable';
import droppable from 'components/GalleryItem/droppable';
import Badge from 'c... |
src/utils/ValidComponentChildren.js | PeterDaveHello/react-bootstrap | import React from 'react';
/**
* Maps children that are typically specified as `props.children`,
* but only iterates over children that are "valid components".
*
* The mapFunction provided index will be normalised to the components mapped,
* so an invalid component would not increase the index.
*
* @param {?*} ... |
src/components/courses/CourseContainer.js | kipp0/course_directory | import React from 'react';
import Course from './Course';
const CourseContainer = ({data}) => {
let courses = data.map((course) => {
return <Course title={course.title}
desc={course.description}
img={course.img_src}
key={course.id} />
});
return (
... |
src/components/Grid.js | alanrsoares/redux-game-of-life | import React from 'react'
import PropTypes from 'prop-types'
import Tile from './Tile'
const renderTile = (toggle, y) => (alive, x) => (
<Tile
key={x}
alive={alive}
toggle={(alive) => toggle({
coordinates: { y, x },
current: alive
})}
/>
)
const renderRow = (toggle) => (row, y) => (
... |
src_back/index.js | noframes/react-youtube-search | 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... |
admin/client/App/screens/Item/components/RelatedItemsList/RelatedItemsList.js | brianjd/keystone | import React from 'react';
import { Link } from 'react-router';
import { Alert, BlankState, Center, Spinner } from '../../../../elemental';
import DragDrop from './RelatedItemsListDragDrop';
import ListRow from './RelatedItemsListRow';
import { loadRelationshipItemData } from '../../actions';
import { TABLE_CONTROL_C... |
src/components/ReplEntry.js | princejwesley/Mancy | import React from 'react';
import ReplEntryIcon from './ReplEntryIcon';
import ReplEntryMessage from './ReplEntryMessage';
import ReplEntryStatus from './ReplEntryStatus';
import ReplActions from '../actions/ReplActions';
import ReplNotebook from './ReplNotebook';
import _ from 'lodash';
export default class ReplEntry... |
app/javascript/mastodon/features/following/index.js | mstdn-jp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import {
fetchAccount,
fetchFollowing,
expandFollowing,
} from '../../actions/account... |
app/components/List/index.js | jdm85kor/sentbe | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/GridList/ExampleSingleLine.js | pbogdan/react-flux-mui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
src/components/DataTable/AnimTableBody.js | terryli1643/thinkmore | import React from 'react'
import PropTypes from 'prop-types'
import { TweenOneGroup } from 'rc-tween-one'
const enterAnim = [
{
opacity: 0,
x: 30,
backgroundColor: '#fffeee',
duration: 0,
}, {
height: 0,
duration: 200,
type: 'from',
delay: 250,
ease: 'easeOutQuad',
onComplet... |
src/svg-icons/image/crop-portrait.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/>
</SvgIcon>
);
ImageCropPortrait = pure(ImageCropP... |
geonode/contrib/monitoring/frontend/src/components/cels/alerts/index.js | simod/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import HoverPaper from '../../atoms/hover-paper';
import actions from '../../organisms/alert-list/actions';
import styles from './styles';
const mapStateToProps = (state) => ({
alertList: state.alertList.response,
... |
src/svg-icons/image/leak-remove.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakRemove = (props) => (
<SvgIcon {...props}>
<path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24... |
client/components/AuthFormSignup.js | escape-hatch/escapehatch | import React from 'react';
import PropTypes from 'prop-types';
import signupLoginScss from './scss/SignupLogin.scss';
const AuthFormSignup = props => {
const { name, displayName, handleSignupSubmit, error, prevPath } = props;
return (
<div className="container">
<div className="row">
<div className="... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js | gunaangs/Feedonymous | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
app/javascript/mastodon/components/avatar.js | d6rkaiz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class Avatar extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
size: PropType... |
docs/app/Examples/collections/Form/Content/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const FormTypesExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Field'
description='A fie... |
src/svg-icons/image/center-focus-strong.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusStrong = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V... |
client/scripts/components/entity-relationship-summary/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... |
src/components/chatrooms/suggestions/SuggestionsStats.js | AleksandrRogachev94/chat-vote-go-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { ResponsiveContainer, PieChart, Pie, Tooltip } from 'recharts';
const SuggestionsStats = (props) => {
const { suggestions } = props
const data = suggestions.filter(sug => sug.voters.length)
.map(sug => (
{ name: sug.title, value: sug.v... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js | gutenye/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(id = 0) {
return [
{ id: id + 1, name... |
frontend/js/components/pages/404.js | skeswa/equitize | import React from 'react';
import {Navigation, Link} from 'react-router';
const NotFound = React.createClass({
render: () => {
return (
<div>
<h1>404</h1>
</div>
);
}
});
export default NotFound;
|
docs/src/app/components/pages/components/AppBar/Page.js | rscnt/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 appBarReadmeText from './README';
import AppBarExampleIcon from './Exampl... |
app/javascript/mastodon/features/list_editor/components/account.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../compone... |
modules/dreamview/frontend/src/components/Tasks/QuickStart.js | ycool/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import classNames from 'classnames';
import UTTERANCE from 'store/utterance';
import WS from 'store/websocket';
class CommandGroup extends React.Component {
render() {
const {
name, commands, disabled,
extraCommandClass, extra... |
client/src/components/SideMenu.js | esausilva/profile-updater | import React, { Component } from 'react';
import { Container, Header, Icon } from 'semantic-ui-react';
import { Link, withRouter } from 'react-router-dom';
import update from 'immutability-helper';
import SocialProfileList from './SocialProfileList';
import SocialButtonList from './SocialButtonList';
import firebase f... |
node_modules/react-icons/ti/directions.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiDirections = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m34.8 15.8l-4.5-4.3c-1-0.9-2.5-1.5-3.8-1.5h-4.8v-0.8c0-1.4-1.2-2.5-2.5-2.5s-2.5 1.1-2.5 2.5v0.8h-5.9c-3.2 0-5.8 2.6-5.8 5.8 0 2.4 1.4 4.4 3.4 5.3l-3.1 3.1 4.3 4.2c... |
modules/dreamview/frontend/src/components/Navigation/index.js | ycool/apollo | import React from 'react';
import MAP_NAVIGATOR from 'components/Navigation/MapNavigator';
import WS from 'store/websocket';
import { MAP_SIZE } from 'store/dimension';
import loadScriptAsync from 'utils/script_loader';
import WindowResizeControl from 'components/Navigation/WindowResizeControl';
export default class... |
src/js/components/table/table_header.js | working-minds/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import Realize from '../../realize';
import { mixin } from '../../utils/decorators';
import { CssClassMixin, LocalizedResourceFieldMixin } from '../../mixins';
const validFormats = [
'text',
'currency',
'number',
'percentage',... |
example/App.js | zzzkk2009/react-native-leancloud-sdk | /**
* Created by zachary on 2017/3/1.
*/
import React, { Component } from 'react';
import {Actions, Scene, Router} from 'react-native-router-flux';
import PushDemo from './PushDemo'
import PushDemoCallback from './PushDemoCallback'
const scenes = Actions.create(
<Scene key="root">
<Scene key="PushDemo" initial... |
definitions/npm/styled-components_v2.x.x/flow_v0.25.x-v0.41.x/test_styled-components_v2.x.x.js | orlandoc01/flow-typed | // @flow
import {renderToString} from 'react-dom/server'
import styled, {ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager} from 'styled-components'
import React from 'react'
import type {Theme} from 'styled-components'
const Title = styled.h1`
font-size: 1.5em;
text-align: center;
color: ... |
assets/Project/src/views/Start/Start.js | believer/atom-react-alt-templates | import React from 'react'
import CSSModules from 'react-css-modules'
import styles from './Start.css'
export const Start = () =>
<div />
export default CSSModules(Start, styles)
|
src/svg-icons/notification/ondemand-video.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationOndemandVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/>
</SvgIc... |
src/components/TouchableWrapper/index.ios.js | aaron-edwards/Spirit-Guide | import React from 'react';
import { TouchableHighlight } from 'react-native';
export default TouchableWrapper = props => {
const touchableProps = {
onPress: props.onPress,
underlayColor: props.underlayColor || '#CCCCCC',
};
return (<TouchableHighlight { ... touchableProps }>
{props.children}
</Tou... |
react-flux-mui/js/material-ui/src/svg-icons/editor/title.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTitle = (props) => (
<SvgIcon {...props}>
<path d="M5 4v3h5.5v12h3V7H19V4z"/>
</SvgIcon>
);
EditorTitle = pure(EditorTitle);
EditorTitle.displayName = 'EditorTitle';
EditorTitle.muiName = 'SvgIcon';
ex... |
react/dashboard_example/src/vendor/recharts/demo/component/Sector.js | webmaster444/webmaster444.github.io | import React from 'react';
import { Surface, Sector } from 'recharts';
export default React.createClass({
render () {
return (
<Surface width={500} height={500}>
<Sector fill="#ff7902" cx={200} cy={300} innerRadius={150} outerRadius={200} endAngle={90} />
</Surface>
);
}
});
|
public/js/components/trends/trendactivitySharedList.react.js | TRomesh/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import CardMedia from 'material-ui/lib/card/card-media';
import CardText from 'material-ui/lib/card/card-text';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/... |
example/src/Screens/Docs/AnimatedSwitch/Props.js | maisano/react-router-transition | import React from 'react';
import { css } from 'glamor';
import Footer from '../shared/Footer';
const propTypesRule = css`
font-size: 1.6rem;
border-bottom: 1px solid #eee;
padding-bottom: 1rem;
margin: 3rem 0 1rem;
`;
const Props = () => (
<div>
<h2>Props</h2>
<div css={propTypesRule}>
<code... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js | gutenye/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return [
{ id: 1, name: '1'... |
frontend/src/Album/Delete/DeleteAlbumModal.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import { sizes } from 'Helpers/Props';
import DeleteAlbumModalContentConnector from './DeleteAlbumModalContentConnector';
function DeleteAlbumModal(props) {
const {
isOpen,
onModalClose,
...otherPro... |
src/video_list_item.js | nikitadeshmukh02/testVsCode | import React from 'react'
const VideoListItem=({video,onVideoSelect})=>{
//debugger
//const video=video;
//debugger
const imageURL=video.snippet.thumbnails.default.url;
//let onVideoSelect=onVideoSelect
return(
<li onClick={()=>onVideoSelect(video)} className="list-group-item">
<div className='video-list m... |
demo/src/stories/Menu/MenuExample/Menu.js | tannerlinsley/react-story | import React from 'react'
import PropTypes from 'prop-types'
const Menu = ({ children }) => (
<ul>{children}</ul>
)
Menu.propTypes = {
children: PropTypes.node
}
export default Menu
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.