path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/index.js | imprevo/chat-websocket-web-client | import React from 'react';
import ReactDOM from 'react-dom';
import {HashRouter as Router} from 'react-router-dom';
import {Provider} from 'mobx-react';
import {createMuiTheme, MuiThemeProvider} from 'material-ui/styles';
import {Layout} from 'app';
import {store as chatStore} from 'chat';
import Routes from './routes'... |
docs/app/Examples/elements/Input/Variations/InputExampleIconChild.js | koenvg/Semantic-UI-React | import React from 'react'
import { Icon, Input } from 'semantic-ui-react'
const InputExampleIconChild = () => (
<div>
<Input icon placeholder='Search...'>
<input />
<Icon name='search' />
</Input>
<br />
<br />
<Input iconPosition='left' placeholder='Email'>
<Icon name='at' />
... |
app/javascript/mastodon/components/short_number.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers';
import { FormattedMessage, FormattedNumber } from 'react-intl';
// @ts-check
/**
* @callback ShortNumberRenderer
* @param {JSX.Element} displayNumber Number to display
* @para... |
client/src/components/LookupField/LookupField.js | silverstripe/silverstripe-admin | import React, { Component } from 'react';
import { Input } from 'reactstrap';
import fieldHolder from 'components/FieldHolder/FieldHolder';
import i18n from 'i18n';
import PropTypes from 'prop-types';
class LookupField extends Component {
constructor(props) {
super(props);
this.getValueCSV = this.getValueCS... |
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/sortable-list/index.js | wpexpertsio/WP-Secure-Maintainance | /**
* The external dependencies.
*/
import $ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
class SortableList extends React.Component {
/**
* Lifecycle hook.
*
* @return {void}
*/
componentDidMount() {
this.handleSortableUpdate = this.handleSortableUpdate.bind(this);
this... |
webapp/src/components/disease/referenceCell.js | alliance-genome/agr | import React from 'react';
const ReferenceCell = (refs) => {
return (
<span>
{
refs && refs.map((ref) => {
if (ref.pubMedId && ref.pubMedUrl) {
return <a href={ref.pubMedUrl}>{ref.pubMedId}</a>;
} else if (ref.publicationModId && ref.pubModUrl) {
return <... |
app/components/Icon/Icon.js | arnef/ligatool-hamburg | import React from 'react';
import { Platform } from 'react-native';
import IonIcon from 'react-native-vector-icons/Ionicons';
import styles from './styles';
export default function Icon(props) {
let iconName =
Platform.OS === 'android' ? `md-${props.name}` : `ios-${props.name}`;
if (props.name === 'caret-for... |
src/CrossIcon.js | Lafinboy/react-burger-nav | import React from 'react'
const CrossIcon = React.createClass({
propTypes: {
onClick: React.PropTypes.func.isRequired
},
getCrossStyle(type) {
return {
position: 'absolute',
width: 3,
height: 14,
top: 14,
right: 18,
cu... |
src/articles/2017-11-26-Updated-for-Antorus/index.js | FaideWW/WoWAnalyzer | import React from 'react';
import { Zerotorescue } from 'CONTRIBUTORS';
import AntorusImage from 'raids/antorustheburningthrone/images/antorus.jpg';
import ImageArticle from 'interface/news/ImageArticle';
export default (
<ImageArticle title="Updated for Antorus" publishedAt="2017-12-24" publishedBy={Zerotorescue} ... |
node_modules/react-router/es/withRouter.js | yaolei/Samoyed | 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 _objectWithoutProperties(obj, keys) { var target = {... |
src/DebounceInput.js | keppelen/react-debounce-input | import React from 'react';
import debounce from 'lodash.debounce';
import {shouldComponentUpdate} from 'react/lib/ReactComponentWithPureRenderMixin';
const DebounceInput = React.createClass({
propTypes: {
onChange: React.PropTypes.func.isRequired,
value: React.PropTypes.string,
minLength: React.PropType... |
src/components/navbar.js | JovaniPink/measuredstudios | import React from 'react';
import styled from 'styled-components';
import { Link } from 'gatsby';
import { navLinks } from '../../config';
const StyledNav = styled.nav`
display: none;
@media (min-width: ${({ theme }) => theme.breakpoints.lg}) {
display: flex;
justify-content: space-between;
align-item... |
modules/gui/src/app/home/body/process/recipe/aoi.js | openforis/sepal | import {compose} from 'compose'
import {withMapContext} from '../../../map/mapContext'
import {withRecipe} from '../recipeContext'
import PropTypes from 'prop-types'
import React from 'react'
import _ from 'lodash'
import api from 'api'
class _Aoi extends React.Component {
render() {
return null
}
... |
src/router.js | marchisbogdan/licenta-front | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
src/components/MainMenu.js | codeforboston/cliff-effects | import React from 'react';
import {
// Button,
Menu,
} from 'semantic-ui-react';
import { Link } from 'react-router-dom';
const MainMenu = function ({ translations }) {
return (
<Menu
inverted
secondary
size = { `large` }>
<Menu.Item>
<Link
className = { `main-nav`... |
packages/@lyra/components/src/utilities/ScrollContainer.js | VegaPublish/vega-studio | import React from 'react'
import PropTypes from 'prop-types'
import styles from './styles/ScrollContainer.css'
export default class ScrollContainer extends React.PureComponent {
static propTypes = {
className: PropTypes.string,
children: PropTypes.node,
onScroll: PropTypes.func
}
static defaultProps... |
app/components/shared/FormInputErrors.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const FormInputErrors = ({ className, errors, ...props }) => {
if (errors.length < 1) {
return null;
}
return (
<p className={classNames('mt1 mb2 p0 red', className)} {...props}>
{errors.reduce(
... |
src/components/timeseries-legend-label.js | ronlobo/building-os-charts | import React from 'react';
import ChartLabel from 'components/chart-label';
export default class TimeseriesLegendLabel extends React.Component {
static propTypes = {
text: React.PropTypes.string.isRequired,
x: React.PropTypes.number.isRequired,
y: React.PropTypes.number.isRequired,
}
static default... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | fengshao0907/actor-platform | import React from 'react';
import classNames from 'classnames';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React.Component {
static propTypes = {
di... |
src/App.js | JC-Orozco/BlocksIDE | // Copyright 2016 Juan Carlos Orozco
// Licensed under the Apache License, Version 2.0 (the "License");
// https://github.com/JC-Orozco/BlocksIDE
import React, { Component } from 'react';
import './App.css';
import 'react-tabs/style/react-tabs.css';
import Layout1 from './components/Layout1.jsx';
import Blockly from '... |
frontend/src/components/common/cell/itemColumnCell.js | unicef/un-partner-portal | import Typography from 'material-ui/Typography';
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
const styleSheet = theme => ({
label: {
color: theme.palette.common.formLabel,
paddingBottom: '5px',
},
});
const ItemColumnCell = (props) => {
... |
src/app.js | tomasen/kitematic | require.main.paths.splice(0, 0, process.env.NODE_PATH);
import remote from 'remote';
var Menu = remote.require('menu');
import React from 'react';
import SetupStore from './stores/SetupStore';
import ipc from 'ipc';
import machine from './utils/DockerMachineUtil';
import metrics from './utils/MetricsUtil';
import templ... |
main.js | nikhilsaldanha/simple-graphing | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import App from './containers/App.js';
import configureStore from './store/store.config.js';
const store = configureStore()
ReactDOM.render(
<Provider store={store}><App id='file-upload' /></Provider>,
document.getE... |
src/components/filters/overview.js | thinktopography/reframe | import PropTypes from 'prop-types'
import Lookup from './lookup'
import Select from './select'
import Toggle from './toggle'
import Daterange from './daterange'
import React from 'react'
class Overview extends React.Component {
static propTypes = {
filters: PropTypes.array,
results: PropTypes.object,
on... |
ui/app/components/SideLink/SideLink.js | StamusNetworks/scirius | import React from 'react';
import PropTypes from 'prop-types';
import StyledSideLink from './StyledSideLink';
const SideLink = (props) => <StyledSideLink {...props}>{props.children}</StyledSideLink>
SideLink.propTypes = {
children: PropTypes.any,
}
export default SideLink;
|
node_modules/react-bootstrap/es/ModalDialog.js | WatkinsSoftwareDevelopment/HowardsBarberShop | 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 ... |
src/components/landon.js | dempah14/gitDemostration | import React, { Component } from 'react';
export default class Landon extends Component {
render() {
return (
<div>Landon</div>
);
}
}
|
js/components/fab/basic.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { View, Platform } from 'react-native';
import { Container, Header, Title, Fab, Button, IconNB, Left, Right, Body, Icon } from 'native-base';
import { Actions } from ... |
src/components/Main.js | tenghuiliu/demo-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
// 获取images数据
var imageDatas = require('../sources/imageData.json');
/**
* 利用只执行函数,将图片名信息转成图片URL路径信息
* @param {[type]} imageDatasArr: images数据数组
* @return {[type]} imageDatasArr: 含有图片... |
src/components/ScrollView.js | rofrischmann/kilvin | import React from 'react'
import Box from './Box'
export default function ScrollView({ extend, children, ...props }) {
return (
<Box
{...props}
shrink={1}
grow={1}
maxHeight="100%"
extend={{
WebkitOverflowScrolling: 'touch',
overflow: 'auto',
...extend,
... |
server/middleware/reactApplication/index.js | Braden1996/tron.io | import React from 'react';
import Helmet from 'react-helmet';
import { renderToString, renderToStaticMarkup } from 'react-dom/server';
import { StaticRouter } from 'react-router-dom';
import { AsyncComponentProvider, createAsyncContext } from 'react-async-component';
import asyncBootstrapper from 'react-async-bootstrap... |
packages/material-ui-icons/src/YoutubeSearchedFor.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let YoutubeSearchedFor = props =>
<SvgIcon {...props}>
<path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.01 4... |
src/collections/Form/FormCheckbox.js | aabustamante/Semantic-UI-React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Checkbox from '../../modules/Checkbox'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Checkbox} />.
* @see Checkbox
* @see Form
*/
function FormCheckbox(props) {... |
react/liveevent/components/CurrentMatchDisplay.js | fangeugene/the-blue-alliance | import React from 'react'
import PropTypes from 'prop-types'
import PowerupCount from './PowerupCount'
import CountWrapper from '../../gameday2/components/CountWrapper'
const CurrentMatchDisplay = (props) => {
const { match, matchState, forcePreMatch } = props
if (match === null) {
return <div><span classNam... |
client/components/users/login-form.js | ShannChiang/USzhejiang | import React from 'react';
import {Link} from 'react-router';
export default class extends React.Component {
constructor(props) {
super(props);
this.onSubmit = this.onSubmit.bind(this);
}
onSubmit(e) {
e.preventDefault();
this.props.loginWithPassword(this._emailInput.value, this._passwordInput.v... |
src/layouts/layout-2-2.js | nuruddeensalihu/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className + ' horizontal'} onClick={onClick}>
{components[0]}
{components[1]}
</div>
);
|
storybook/stories/line-chart/index.js | JesperLekland/react-native-svg-charts | import React from 'react'
import { storiesOf } from '@storybook/react-native'
import Standard from './standard'
import Partial from './partial'
import WithGradient from './with-gradient'
import Grouped from './grouped'
import ShowcaseCard from '../showcase-card'
storiesOf('LineChart')
.addDecorator((getStory) => ... |
js/components/pages/ReadmePage.react.js | ariesy/my-git-pages-source | /*
* ReadmePage
*
* This is the page users see when they click the "Setup" button on the HomePage
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
export default class ReadmePage extends Component {
render() {
return (
<div>
<h2>Further Setup</h2>
<p>As... |
Frontend/components/FriendListItem.js | TomGijselinck/aja | import React from 'react';
import { StyleSheet, Text, View, FlatList } from 'react-native';
import { List, ListItem, Avatar } from 'react-native-elements'
import Icon from 'react-native-vector-icons/MaterialIcons';
const myIcon = (<Icon name="trending up" size={30} color="#900" />)
import colors from '../colors.js'
imp... |
src/components/screens/scan.js | builderscon/nanp | // @flow
import React from 'react'
import Reader from '../reader'
type Props = {
navigation: {
navigate: Function,
},
screenProps: {
actions: {
setReadData: Function,
},
},
}
type State = {
isScannedOnce: boolean,
}
export default class Scan extends React.Component {
props: Props
stat... |
fields/types/markdown/MarkdownField.js | giovanniRodighiero/cms | import Field from '../Field';
import React from 'react';
import { FormInput } from '../../../admin/client/App/elemental';
/**
* TODO:
* - Remove dependency on jQuery
*/
// Scope jQuery and the bootstrap-markdown editor so it will mount
var $ = require('jquery');
require('./lib/bootstrap-markdown');
// Append/remo... |
components/Selector.js | BipinBhandari/react-native-item-picker | import React from 'react'
import { View, Text } from 'react-native'
import styles from './Styles/SelectorStyle'
import Ticker from './Ticker'
export default class Selector extends React.Component {
constructor(props){
super(props);
this.state={
collection: props.collection.map((item, in... |
web/src/components/Feedback/index.js | trendmicro/serverless-survey-forms | /**
* @module Feedback
* Feedback form component
* Will handle form components render according to data
*
**/
import styles from './style.css';
import React from 'react';
import PureComponent from 'react-pure-render/component';
import I18Next from 'i18next/index';
import Checkbox from '../Checkbox';
import Radio... |
app/javascript/mastodon/components/setting_text.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
src/routes/register/index.js | jessiepullaro414/kiwi | /**
* 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 Layout from '../../co... |
src/GodButtonReset.js | Visovsiouk/smite-random-picker | import React from 'react';
import { Button, Col } from 'react-bootstrap';
/*"Restet" button component*/
class GodButtonReset extends React.Component {
constructor(props) {
super(props);
this.state = {
pantheon: 'All',
godclass: 'All',
isSelected: true,
pictureClassName: "God-picture-div green"
};
... |
src/svg-icons/navigation/arrow-downward.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDownward = (props) => (
<SvgIcon {...props}>
<path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/>
</SvgIcon>
);
NavigationArrowDownward = pure(NavigationArrowDownward);
Na... |
ignite-base/App/Containers/PresentationScreen.js | lukabers/ignite | import React from 'react'
import { ScrollView, Text, Image, View } from 'react-native'
import { Images } from '../Themes'
import RoundedButton from '../Components/RoundedButton'
import { Actions as NavigationActions } from 'react-native-router-flux'
// Styles
import styles from './Styles/PresentationScreenStyle'
expo... |
2-alpha/src/Admin/LoginPage.js | saturninoharris/primer-design | import React from 'react'
import { firebase, googleAuthProvider } from '../firebase/firebase'
import PropTypes from 'prop-types'
import Nav from '../components/Nav';
import { HighlightButton } from '../components/Button'
import { HighlightLink } from '../components/Link'
import { P, PLight, BigTitle } from '../componen... |
lib/dashboard/components/display/Bar.js | gmrutilus/rutilus-analytics-node-js | /**
* Rutilus
*
* @homepage https://gmrutilus.github.io
* @license Apache-2.0
*/
import React from 'react';
import Parsing from '../../../parsing';
const Bar = React.createClass({
/**
* Rendering
* @returns {XML}
*/
render() {
const total = this.props.data.reduce((t, c) => t + ... |
client/scripts/components/config/relationship/travel-relationship-type/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... |
docs/app/Examples/elements/Loader/Variations/LoaderExampleInverted.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Image, Loader, Segment } from 'semantic-ui-react'
const LoaderExampleInverted = () => (
<Segment inverted>
<Loader active inverted />
<Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' />
</Segment>
)
export default LoaderExampleInverted
|
client/components/Header.js | concerned3rdparty/election-insights | //------------------------------------------------------------------------------
// Copyright IBM Corp. 2015
//
// 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... |
src/svg-icons/device/location-disabled.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationDisabled = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5... |
src/components/Education.js | fgriberi/fgriberi-resume | import React from 'react';
import moment from 'moment';
/**
* Handles education component
*/
const Education = props => {
/**
* Gets education items
*/
const getEducation = props.educationData.map(function(item, index) {
const startDate = moment(item.startDate).format('MMM, YYYY');
const endDate = mom... |
frontend/src/components/collection/DeleteCollectionUI/index.js | webrecorder/webrecorder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Form } from 'react-bootstrap';
import { getCollectionLink } from 'helpers/utils';
import { collection as collectionErr } from 'helpers/userMessaging';
import { AppContext } from 'store/contexts';
import Modal from 'componen... |
src/index.js | zackszhu/Portfolio | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/device/bluetooth-searching.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothSearching = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9... |
src/containers/Home/Home.js | mull/require_hacker_error_reproduction | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from clien... |
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupVertical.js | ben174/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleGroupVertical = () => (
<Button.Group attached='top' vertical>
<Button>Feed</Button>
<Button>Messages</Button>
<Button>Events</Button>
<Button>Photos</Button>
</Button.Group>
)
export default ButtonExampleGroup... |
client-app/src/App.js | mskorsur/music-app | import React, { Component } from 'react';
import {BrowserRouter as Router} from 'react-router-dom';
import {Route} from 'react-router-dom';
import './App.css';
import Welcome from './Welcome';
import Navigation from './Navigation';
import ArtistContentContainer from './artist/ArtistContentContainer';
import AlbumConte... |
app/javascript/mastodon/components/error_boundary.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { version, source_url } from 'mastodon/initial_state';
import StackTrace from 'stacktrace-js';
export default class ErrorBoundary extends React.PureComponent {
static propTypes = {
children: Prop... |
packages/lightning-core/pay/index.js | DaReaper/lightning-app | /* eslint-disable global-require, no-console */
import React from 'react'
import { connect } from 'react-redux'
import { Form, actions as formActions } from 'lightning-forms'
import { actions } from './reducer'
import { remote } from 'electron'
import { actions as accountsActions } from '../accounts'
import { Currency... |
docs/src/app/components/pages/components/Card/ExampleWithAvatar.js | mtsandeep/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleWithAvatar = () => (
<Card>
<CardHeader
title="URL Avatar"
subtitle="Subtitle"
avatar="images/jsa-128.jpg"... |
packages/react-error-overlay/src/components/CodeBlock.js | CodingZeal/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { redTransparent, yellowTransparent } from '../styles';
const _preStyle = {
display: 'b... |
packages/lore-tutorial/templates/esnext/step18/src/components/Tweet.js | lore/lore | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import EditLink from './EditLink';
@lore.connect(function(getState, props){
const tweet = props.tweet;
return {
user: getState('user.byId', {
id: tweet.data.user
})
};
})
class Tweet extends React.Component... |
src/Segments.js | gocreating/react-tocas | import React, { Component } from 'react';
import classNames from 'classnames';
import Box from './Box';
class Segments extends Component {
render() {
let {
className,
...rest
} = this.props;
let cx = classNames(
'segments',
className
);
return (
<Box
ts
... |
src/clincoded/static/components/variant_interpretation_summary/index.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import { curator_page, userMatch, queryKeyValue, external_url_map } from '../globals';
import { RestMixin } from '../rest';
import VariantInterpretationSummaryHeader from './hea... |
src/components/Layout/index.js | oct16/Blog-FE | import React from 'react'
import PropTypes from 'prop-types'
// external-global styles must be imported in your JS.
import normalizeCss from 'normalize.css'
import resetcss from 'styles/reset.less'
import hljscss from 'styles/hljs.css'
// import normalizeCss from 'normalize.css'
import s from './Layout.css'
import ... |
docs/src/app/components/pages/get-started/Installation.js | tan-jerene/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import installationText from './installation.md';
const Installation = () => (
<div>
<Title render={(previousTitle) => `Installation - ${previousTitle}`} />
<MarkdownElement text={insta... |
src/modules/shared/components/ConfirmationModal.js | CaronaBoard/caronaboard-native | import React from 'react'
import { View, Text } from 'react-native'
export const ConfirmationModal = props => (
<View>
<Text>
{'Bico'}
</Text>
</View>
)
|
Libraries/Modal/Modal.js | ndejesus1227/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
code/L10/ReduxDataFlow-Component-to-Store/components/app.js | santhoshthepro/reactjs | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
// Components
import HomePage from './home/home-page';
import MoviesPage from './movies/movies-page';
import ContactPage from './contact/contact-page';
import BookingPage from './cart/booking-page... |
frontend/src/Artist/Index/Overview/Options/ArtistIndexOverviewOptionsModal.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import ArtistIndexOverviewOptionsModalContentConnector from './ArtistIndexOverviewOptionsModalContentConnector';
function ArtistIndexOverviewOptionsModal({ isOpen, onModalClose, ...otherProps }) {
return (
... |
client/modules/List/components/HeaderDescription.js | jeojoe/emplist | import React from 'react';
import { FormattedMessage } from 'react-intl';
const HeaderDescription = (props) => (
<div>
<p style={{ margin: '0 0 10px' }}><FormattedMessage id="headerDescription" /></p>
</div>
);
export default HeaderDescription;
|
MobileApp/node_modules/react-native-elements/example/src/tabs/lists.js | VowelWeb/CoinTradePros.com | import Expo from 'expo';
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { StackNavigator } from 'react-navigation';
import ListsHome from '../views/lists_home';
import ListsDetails from '../views/lists_detail';
const ListsTabView = ({ navigation }) => (
<Lis... |
app/components/shared/JobLink.js | buildkite/frontend | // @flow
import React from 'react';
import Relay from 'react-relay/classic';
import classNames from 'classnames';
import JobTitle from './JobTitle';
type Props = {
job: {
url: string
},
className: string,
style: Object
};
class JobLink extends React.PureComponent<Props> {
render() {
const { job, c... |
app/components/Image.js | Yukaii/ImgurDownloader | /*
* schema:
*
* "id": "LPySUCH",
* "title": "Episode 1",
* "description": "Artist: Yuuki Hagure http://myanimelist.net/people/22227/Hagure_Yuuki",
* "datetime": 1444440612,
* "type": "image/png",
* "animated": false,
* "width": 1280,
* "height": 720,
* "size": 1146833,
* "views": 7620,
* "bandwidth": 8738... |
src/components/common/SimpleEditor/Schema/Blocks/ParagraphNode.js | anztrax/simple-image-server-frontend | import React from 'react';
export default class ParagraphNode extends React.Component{
static get nodeType(){
return 'paragraph';
}
constructor(props){
super(props);
}
render(){
return (
<a>{this.props.children} </a>
);
}
} |
src/parser/druid/restoration/modules/items/azeritetraits/GroveTending.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Mastery from 'parser/druid/restoration/modules/core/Mastery';
import { formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import S... |
src/svg-icons/navigation/expand-less.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationExpandLess = (props) => (
<SvgIcon {...props}>
<path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/>
</SvgIcon>
);
NavigationExpandLess = pure(NavigationExpandLess);
NavigationExpandLess.displa... |
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleShorthandObject.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleShorthandObject = () => (
<Checkbox label={{ children: 'Make my profile visible' }} />
)
export default CheckboxExampleShorthandObject
|
docs/src/pages/discover-more/team/Team.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import CardMedia from '@material-ui/core/CardMedia';
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import Typography from '@material-ui/core/Typography';
import... |
app/src/js/components/settings/slider.js | tahnik/devRantron | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Slider extends Component {
constructor(props) {
super(props);
this.state = {
value: this.props.setting.value,
};
}
render() {
const { theme } = this.props;
return (
<div className="setting slider">... |
src/editor/schemas/SchemataUp.js | Z-Editor/Z-Editor | import React from 'react';
import { EditorBlock } from 'draft-js';
function SchemataUp(props) {
return (
<div>
<span className="up_span">
<EditorBlock {...props} />
</span>
</div>
);
}
export default SchemataUp;
|
ignite/DevScreens/DevscreensButton.js | littletimo/beer-counter | import React from 'react'
import { View, Modal } from 'react-native'
import DebugConfig from '../../App/Config/DebugConfig'
import RoundedButton from '../../App/Components/RoundedButton'
import PresentationScreen from './PresentationScreen'
export default class DevscreensButton extends React.Component {
constructor ... |
src/components/Nav.js | jakedeichert/react-starter | import React from 'react';
import styled from 'styled-components';
import Link from 'components/Link';
const Wrapper = styled.div`
margin: 0 auto 50px;
text-align: center;
a {
color: #ff670f;
margin: 0 10px;
}
`;
const Nav = () => (
<Wrapper>
<Link to="/">/home</Link>
<Link to="/about">/abo... |
geonode/monitoring/frontend/monitoring/src/components/organisms/header/index.js | tomkralidis/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# 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 3 of the License, or
# ... |
app/containers/home/HomePage.js | robogroves/ebp | import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Home from '../../components/home/Home';
import * as HomeActions from '../../actions/home/home';
function mapStateToProps(state) {
return {
counter: state.counter
};
}
function mapDispatchToProps(dispatch) {
return bind... |
examples/real-world/containers/Root.js | tcoopman/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from '../store/configureStore';
import App from './App';
import UserPage from './UserPage';
import RepoPage from './RepoPage';
const store = configureStore();
export de... |
src/static/components/Loader/index.js | samrose3/eventhunt | import React from 'react';
import './style.scss';
export default (props) => {
return (
<div className="loader">
<div className="dot"></div>
<div className="dot"></div>
<div className="dot"></div>
</div>
);
};
|
src/components/switch-button/switch-button.story.js | dima-bu/b2b.core | import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import SwitchButton from './switch-button';
const styles = {
padding: '20px',
'backgroundColor': '#deecee',
'height': '80vh'
};
storiesOf('SwitchButton', module)
.addDecorator(getStory => (
<div style={styles}>{getStory()}</di... |
packages/cmf/src/bootstrap.js | Talend/ui | import React from 'react';
import { render } from 'react-dom';
import createSagaMiddleware from 'redux-saga';
import { batchedSubscribe } from 'redux-batched-subscribe';
import { spawn } from 'redux-saga/effects';
import compose from 'redux';
import App from './App';
import actionCreator from './actionCreator';
import... |
packages/wix-style-react/src/StyledNestableList/Arrow.js | wix/wix-style-react | import React from 'react';
export function Arrow({ className = undefined }) {
return (
<svg
className={className}
xmlns="http://www.w3.org/2000/svg"
width={24}
height={8}
viewBox="0 0 24 8"
>
<defs>
<filter
id="zaxo0jk8xa"
width="110.4%"
... |
src/containers/subscription/SubscriptionFormScreen.js | GustavoKatel/franz | import { remote } from 'electron';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import PaymentStore from '../../stores/PaymentStore';
import SubscriptionForm from '../../components/subscription/SubscriptionForm';
const { BrowserWindow } ... |
src/components/Disc.js | pjkarlik/Radial | import React from 'react';
import ReactDOM from 'react-dom';
import TweenMax, { Bounce } from 'gsap';
import Draggable from 'gsap/src/uncompressed/utils/Draggable';
/**
Comments here
*/
/* eslint no-console: 0 */
/* eslint arrow-body-style: 0 */
/* eslint react/jsx-no-bind: 0 */
export default class Disc extends Reac... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/bookmark.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionBookmark = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionBookmark.displayName = 'ActionBookmark';
ActionBookmark.muiName = 'SvgIcon';
export default Actio... |
web/src/js/components/Authentication/FirebaseAuthenticationUIAction.js | gladly-team/tab | import React from 'react'
import { checkIfEmailVerified } from 'js/authentication/helpers'
class FirebaseAuthenticationUIAction extends React.Component {
componentDidMount() {
// See if the user verified their email address so that we can
// log the verification. It would be better to user a cloud
// fun... |
packages/mangojuice-react/__tests__/React.spec.js | mangojuicejs/mangojuice | import AbstractTests from 'mangojuice-react-core/tests';
import React from 'react';
import ReactDOM from 'react-dom';
import Subscribe from 'mangojuice-react';
AbstractTests(React, ReactDOM, Subscribe, 'React');
|
client/components/dashboard.js | olegccc/10cards | import React from 'react'
import {connect} from 'react-redux'
import CardActions from '../actions/card'
import Card from './card'
import { withRouter } from 'react-router'
import Answer from './answer'
import CardState from '../redux/cardState'
import { Button } from 'react-toolbox/lib/button'
class Dashboard extends ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.