path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/home_timeline/components/column_settings.js
imomix/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; import SettingText from '../../../components/se...
src/index.js
virusvn/react-native-svg-animated-linear-gradient
import React, { Component } from 'react'; import PropTypes from 'prop-types' import { View, StyleSheet, Animated } from 'react-native'; //import Expo, { Svg } from 'expo'; import Svg, { Circle, ClipPath, G, LinearGradient, Rect, Defs, Stop } from 'react-native-svg'; const AnimatedSvg = Ani...
React Fundamentals/EXAM_19.11.2017/exam-app/src/App.js
NikiStanchev/SoftUni
import React, { Component } from 'react'; import {Switch, Route, withRouter} from 'react-router-dom' import {connect} from 'react-redux' import {logoutAction} from './actions/authActions' import LoginPage from './component/Auth/LoginPage' import RegisterPage from './component/Auth/RegisterPage' import Footer from './c...
Dockerfiles/node/nodeapp/src/Components/LightBarrier.js
4lexBaum/projekt-5s-dhbw
import React from 'react'; export class LightBarrier extends React.Component { constructor(props) { super(props); } render() { return ( <div className="lightBarrier"> <div className="block"></div> <div id={this.props.lightBarrierId} className="line"></div> <div ...
src/svg-icons/maps/local-gas-station.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGasStation = (props) => ( <SvgIcon {...props}> <path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.4...
client/src/index.js
JoeDou/wesayidou
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import { Router, browserHistory, Route, IndexRoute } from 'react-router' import promise from 'redux-promise' import reducers from './reducers' import routes from './rou...
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/search-input/index.js
boquiabierto/wherever-content
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withState, withHandlers, defaultProps } from 'recompose'; import { debounce } from 'lodash'; /** * The internal dependencies. */ import { KEY_ENTER } from 'lib/constants'; /** * Render the field u...
app/js/components/GenericPanelItem.js
niksoc/srmconnect
import React from 'react'; import {Panel, Label, Badge,ListGroupItem,ListGroup} from 'react-bootstrap'; import {Link} from 'react-router'; import {pure} from 'recompose'; import Timestamp from './Timestamp'; import TagList from'./common/TagList'; import UserThumb from './UserThumb'; import Markdown from './Markdown'; i...
src/components/Sidebar.js
Phizzard/Reactbase-cms
import React, { Component } from 'react'; import {MenuItem, Drawer, Divider, FloatingActionButton} from 'material-ui'; import ContentAdd from 'material-ui/svg-icons/content/add'; import { NavLink } from 'react-router-dom'; import ContentController from '../controllers/Content'; import utl from '../utl/StringFormatting'...
src/components/common/form/RadioDefault.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import { P } from 'common/base'; import { makeId } from 'utils/stringUtil'; import styles from './RadioDefault.module.css'; class RadioDefault extends React.PureComponent { constructor(props) { super(props); this....
client/main/main.js
mordra/cotwmtor
import React from 'react'; import { connect } from 'react-redux'; import {GameScreen} from '/core/maps.js'; import _ from 'lodash'; import createFragment from 'react-addons-create-fragment'; import MapView from './mapComponent.js'; export const MainView = ({game, area, player}) => ( <div> <h1>Welcome to Castle o...
blueocean-material-icons/src/js/components/svg-icons/editor/format-list-numbered.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatListNumbered = (props) => ( <SvgIcon {...props}> <path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/> </SvgIcon> ); EditorFormatLis...
components/PageFooter/NewsletterForm.js
anvilabs/anvilabs.co
/* @flow */ import {config} from 'config'; // eslint-disable-line import/no-unresolved, import/extensions import cx from 'classnames'; import React from 'react'; import {isDarkMode} from '../../utils'; const NewsletterForm = ({className}: {className?: string}) => ( <form action={config.mailchimpActionUrl} ...
src/components/Sponsor.js
garfieldduck/twreporter-react
import React from 'react' import { SPONSOR_TITLE, SPONSOR_TEXT, SPONSOR_BUTTON } from '../constants/sponsor' import { donatePath } from '../constants/index' import map from 'lodash/map' import classNames from 'classnames' import styles from './Sponsor.scss' const _ = { map } const boxClasses = classNames( 'center...
src/containers/DevTools.js
alfonsoperez/tessa
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </...
examples/slorber-scalable-frontend/src/randomGif/RandomGif.js
mpeyper/redux-subspace
import React from 'react' import { connect } from 'react-redux' import { getGif } from './actions' const RandomGif = ({ loading, src, getGif }) => ( <div style={{ width: '100px' }}> <button onClick={getGif} disabled={loading}>{ loading ? "Loading..." : "Get Gif" }</button> { src && <div><img alt="Gif" src={s...
src/InputBase.js
cgvarela/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import FormGroup from './FormGroup'; import Glyphicon from './Glyphicon'; class InputBase extends React.Component { getInputDOMNode() { return React.findDOMNode(this.refs.input); } getValue() { if (this.props.type === 'static') { retu...
src/components/About/HobbiesEvents/HobbiesEvents.js
jumpalottahigh/jumpalottahigh.github.io
import React from 'react' import styled from 'styled-components' import { graphql, StaticQuery } from 'gatsby' import Img from 'gatsby-image' import H2 from '../../elements/H2/H2.js' import CenteredDiv from '../../elements/CenteredDiv/CenteredDiv.js' import BaseGrid from '../../elements/Grid/Grid' const Grid = styled...
views/components/utilities/form-builder.js
service-bot/servicebot
import { setFormData } from "./actions"; import { connect } from 'react-redux'; import _ from "lodash"; import update from 'immutability-helper'; import React from 'react'; import PropTypes from 'prop-types'; let mapStateToProps = function(name, mapState){ return function(state, ownProps) { if (state.all...
.history/src/components/GKM/EtsyProduct_20170624114125.js
oded-soffrin/gkm_viewer
import React from 'react' import '../../styles/gkm-item.scss'; import ProductItem from './ProductItem' import Input from '../Common/Input' import SearchBar from '../SearchBar'; import _ from 'lodash' class EtsyProduct extends React.Component { constructor(props, context) { super(props, context); this.edit...
packages/lore-hook-forms-bootstrap/src/blueprints/destroy/Wizard/index.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Wizard from './Wizard'; export default createReactClass({ render: function() { const { modelName } = this.props; const { model, schema, fieldMap, actionMap, steps, data, validators, ...
app/react-icons/fa/stop-circle-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaStopCircleO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m20.1 2.9q4.7 0 8.6 2.3t6.3 6.2 2.3 8.6-2.3 8.6-6.3 6.2-8.6 2.3-8.6-2.3-...
src/containers/Authenticated.js
jmporchet/bravakin-client
import React from 'react'; import { connect } from 'react-redux'; import { Route, Redirect, Switch } from 'react-router-dom'; import { addUser, setPerformanceData, setInfluenceData, } from '../actions'; import TopMenu from '../components/TopMenu' import Dashboard from '../components/Dashboard'; import Performan...
packages/icons/src/md/device/Storage.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdStorage(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M4 40v-8h40v8H4zm4-6v4h4v-4H8zM4 8h40v8H4V8zm8 6v-4H8v4h4zM4 28v-8h40v8H4zm4-6v4h4v-4H8z" /> </IconBase> ); } export default MdStorage;
src/parser/shared/modules/items/bfa/enchants/Navigation.js
fyruna/WoWAnalyzer
import React from 'react'; import SpellIcon from 'common/SpellIcon'; import { formatDuration, formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import StatisticBox from 'interface/others/StatisticBox'; import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY'; import UptimeI...
src/js/components/icons/base/PlatformAmazon.js
odedre/grommet-final
/** * @description PlatformAmazon SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor....
src/components/map.js
tuncatunc/react-blog
import React, { Component } from 'react'; import { connect } from 'react-redux' import GoogleMap from './google-map' export default class Map extends Component { onClick(event) { const tongo = {lat: -21.2576638, lng:-175.4094311}; this.setState(tongo); } render() { return ( <div> <but...
packages/component/src/index.js
Pinecast/encoder
import React from 'react'; import ReactDOM from 'react-dom'; import Encoder from './component'; Array.from(document.querySelectorAll('[data-pinecoder]')).forEach(elem => { ReactDOM.render( <Encoder />, elem ); });
components/App.js
arpith/wordanddeedindia
import React from 'react'; import Header from './Header'; import HeaderImg from './HeaderImg'; import Headline from './Headline'; import Body from './Body'; import Footer from './Footer'; class App extends React.Component { render() { return ( <div> <HeaderImg /> <Header /> <Headlin...
src/components/Form/CustomInput.js
ChluNetwork/chlu-demo
import React from 'react' import CustomInput from 'components/MaterialDashboardPro/CustomInput' function CustomFormInput(props) { const { input, meta: { touched, error }, helpText, inputProps, ...others } = props const hasError = Boolean(touched && error) return <CustomInput error={hasError} helpText={h...
actor-apps/app-web/src/app/index.js
ruikong/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import injectTapEventPlugin from 'react-tap-event-plugin'; import Deactivated from 'components/Deactivated.react'; import Login from 'components/Login.react'; import ...
app/components/MovieDetails/PeerIcon.js
yenbekbay/filmstrip-web
/* @flow */ import React from 'react'; const PeerIcon = ( { scale = 1, className, }: { scale?: number, className?: string, }, ) => ( <svg width={`${47.5 * scale}px`} height={`${47.5 * scale}px`} viewBox="0 0 47.5 47.5" className={className} > <defs> <clipPath id="cl...
app/react/containers/dashboard/index.js
NikaBuligini/whistleblower-server
// @flow /* eslint-disable react/no-unused-prop-types */ import React from 'react'; import Relay from 'react-relay'; import DocumentTitle from 'react-document-title'; import Layout from '../layouts/DefaultLayout'; import ProjectItem from './ProjectItem'; import type { Project } from '../../actions/types'; type Viewer...
vertex_ui/src/components/Sidebar/Sidebar.js
zapcoop/vertex
import React from 'react'; import { PropTypes } from 'prop-types'; import Velocity from 'velocity-animate'; import _ from 'underscore'; import classNames from 'classnames'; import { Menu as SidebarMenu } from './components'; import classes from './Sidebar.scss'; import { AffixWrap, ScrollBarContainer } from './../'; ...
src/components/AboutUs.js
shravanshetty5/WhatsHappening
import React from 'react'; const User = () => ( <div>My Name is Shravan</div> ); export default User;
src/docs/appbar/index.js
bfletcherbiggs/DocreactJS
import React from 'react'; import PropTypes from 'prop-types'; // import { AppBar } from 'react-toolbox'; import { Link } from 'react-router'; import Logo from '../logo'; import Navigation from '../navigation'; import style from './style.styl'; const MainAppBar = (props) => { let className = style.appbar; if (prop...
app/javascript/mastodon/features/status/components/detailed_status.js
tateisu/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...
themes/genius/Genius 2.3.1 Bootstrap 4/React_Full_Project/src/views/Pages/Page404/Page404.js
davidchristie/kaenga-housing-calculator
import React, { Component } from 'react'; class Page404 extends Component { render() { return ( <div className="container"> <div className="row justify-content-center"> <div className="col-md-6"> <div className="clearfix"> <h1 className="float-left display-3 mr-2...
app/components/ChatDock/index.js
shiftunion/bot-a-tron
import React from 'react'; import ChatMessage from 'components/ChatMessage'; import Wrapper from './Wrapper'; import Form from './Form'; import Input from './Input'; function ChatDock(props) { let mainContent = (<div></div>); if (props.chatMessages) { mainContent = props.chatMessages.map((item, index) => ( ...
docs/app/Examples/elements/Step/Variations/StepExampleFluid.js
mohammed88/Semantic-UI-React
import React from 'react' import { Grid, Step } from 'semantic-ui-react' const StepExampleFluid = () => ( <Grid columns={2}> <Grid.Column> <Step.Group fluid vertical> <Step completed icon='truck' title='Shipping' description='Choose your shipping options' /> <Step active icon='dollar' title...
stories/components/heading/index.js
sethbergman/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import Heading from 'shared/components/heading/heading'; storiesOf('shared/components/heading', module) .add('Default', () => ( <Heading text="Hello World" /> )) .add('Without heading lines', () => ( <Heading text...
src/svg-icons/navigation/fullscreen-exit.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreenExit = (props) => ( <SvgIcon {...props}> <path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/> </SvgIcon> ); NavigationFullscreenExit = pure(NavigationF...
blueocean-material-icons/src/js/components/svg-icons/av/loop.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvLoop = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 1...
src/components/PersonCard/component.js
Hylozoic/hylo-redux
import React from 'react' import { isEmpty } from 'lodash' import { humanDate } from '../../util/text' import A from '../A' import Dropdown from '../Dropdown' export default function PersonCard ({ person, slug, onSkillClick, removeMember, onMouseOver }) { const { id, avatar_url, name, bio, isModerator, joined_at...
src/components/tag/raw/index.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) 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 License, o...
src/app/Main.js
isaacjoh/foreseehome-test
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Dialog from 'material-ui/Dialog'; import {deepOrange500} from 'material-ui/styles/colors'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import Paper from 'material-ui/Paper'; import ...
src/app/components/search/SearchResultsTable/SubmittedCell.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import TimeCell from './TimeCell'; export default function SubmittedCell({ projectMedia }) { // return the greater (more recent) of `last_seen` or `created_at_timestamp`. if `last_seen` is undefined/null, use `created_at_timestamp` return <TimeCell uni...
src/containers/LandingPage/Learn/Body.js
westoncolemanl/tabbr-web
import React from 'react' import Paper from 'material-ui/Paper' export default () => <div> <Paper className={'pa5 mw8 center'} > <div className={'pa5'} > <div className={'f1 pb3 b'} > {'Learn'} </div> <div className={'f4 ...
app/components/Main.js
calebgregory/react-app
'use strict'; import React, { Component } from 'react'; export default class Main extends Component { render() { return ( <div className="main-container"> <nav className="navbar navbar-default" role="navigation"> <div className="col-sm-7 col-sm-offset-2" style={{marginTop: 15}}> ...
docs/src/app/components/pages/components/Stepper/Page.js
mmrtnz/material-ui
import React from 'react'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import stepperReadmeText from './README.md'; import advancedReadmeText from './Advanced.md'; import HorizontalLinearStepper...
fields/types/number/NumberColumn.js
Tangcuyu/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: ...
app/containers/LanguageProvider/index.js
vonkanehoffen/wp-react
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/components/chips/ChipContact.js
isogon/styled-mdl
import React from 'react' import PropTypes from 'prop-types' import { ChipContactImg, ChipContactSpan } from './Chip.style' export default function ChipContact({ text, src, ...props }) { return src ? ( <ChipContactImg src={src} {...props} /> ) : ( <ChipContactSpan {...props}>{text}</ChipContactSpan> ) }...
js/animation/animation-test/src/index.js
fishjar/gabe-study-notes
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/svg-icons/device/brightness-high.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessHigh = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
test/integration/basic/pages/nav/as-path.js
arunoda/next.js
import React from 'react' export default class extends React.Component { static getInitialProps ({ asPath, req }) { return { asPath } } render () { return ( <div className='as-path-content'> {this.props.asPath} </div> ) } }
components/illustrations/binary-search/high.js
skidding/illustrated-algorithms
import PropTypes from 'prop-types'; import React from 'react'; import NumberVar from '../shared/number-var'; export default function High({ frame }) { const { value, top, left, opacity, rotation, } = frame.high; if (value === undefined) { return null; } return ( <div class...
src/components/Login/Logout.js
Angular-Toast/habitat
import React, { Component } from 'react'; import { Text, Image, Button, AsyncStorage, Modal, View } from 'react-native'; import { onSignOut } from '../auth' export default class Logout extends React.Component { constructor(props) { super(props); this.state = { modalVisible: true } } static navigationOption...
app/javascript/mastodon/features/community_timeline/components/column_settings.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
src/step-18/ListItemDetail.js
gufsky/react-native-workshop
import React, { Component } from 'react' import Highlight from 'react-syntax-highlight' import Note from '../Note' import detailShot from './detail-shot.png' import fileTree from './file-tree.png' const baseComponent = `import React from 'react' import { View, Text, Image, TouchableOpacity, StyleSheet, Button, Scroll...
app/javascript/mastodon/features/notifications/components/notification.js
robotstart/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import Avatar from '../../../components/avatar'; import { FormattedMessage } from 'react-intl';...
docs/app/Examples/views/Card/Types/CardExampleIndividualCard.js
ben174/Semantic-UI-React
import React from 'react' import { Card, Icon, Image } from 'semantic-ui-react' const CardExampleIndividualCard = () => ( <Card> <Image src='http://semantic-ui.com/images/avatar2/large/matthew.png' /> <Card.Content> <Card.Header> Matthew </Card.Header> <Card.Meta> <span clas...
modules/gui/src/app/home/body/process/recipe/timeSeries/panels/preProcessingOptions/preProcessingOptions.js
openforis/sepal
import {Form} from 'widget/form/form' import {Layout} from 'widget/layout' import {Panel} from 'widget/panel/panel' import {RecipeFormPanel, recipeFormPanel} from 'app/home/body/process/recipeFormPanel' import {compose} from 'compose' import {msg} from 'translate' import {selectFrom} from 'stateUtils' import React from...
src/svg-icons/maps/directions-bus.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBus = (props) => ( <SvgIcon {...props}> <path d="M4 16c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8...
src/sv/button/svButtonAnimated.js
Synchro-TEC/apollo-11
import React, { Component } from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; class SvButtonAnimated extends Component { render() { const cssClasses = classNames( 'sv-bt-animated', this.props.className, this.props.color, this.props.icon, this.pro...
client/src/components/Draftail/Tooltip/Tooltip.js
takeflight/wagtail
import PropTypes from 'prop-types'; import React from 'react'; const TOP = 'top'; const LEFT = 'left'; const TOP_LEFT = 'top-left'; const getTooltipStyles = (target, direction) => { const top = window.pageYOffset + target.top; const left = window.pageXOffset + target.left; switch (direction) { case TOP: r...
src/components/Main.js
everxy/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; //let yeomanImage = require('../images/1.jpg'); var imageDatas = require('json-loader!../data/imageDatas.json'); var imageDatas = (function(imageDatasArr) { for (var i = 0, j = imageDatas...
src/svg-icons/hardware/phone-android.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneAndroid = (props) => ( <SvgIcon {...props}> <path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"/> </SvgIcon> ...
analysis/warlockdemonology/src/modules/pets/PetTimelineTab/index.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import DeathTracker from 'parser/shared/modules/DeathTracker'; import SpellHistory from 'parser/shared/modules/SpellHistory'; import DemoPets from '../DemoPets'; import TabComponent from './TabComponent'; class PetTimelineTab extends Analyzer { ...
src/src/pages/Charts/index.js
chaitanya1375/Myprojects
import React from 'react'; import PerformanceChart from './PerformanceChart'; import Nasdaq from './Nasdaq'; import PublicPreference from './PublicPreference'; import UserBehavior from './UserBehavior'; const Charts = () => ( <div className="content"> <div className="container-fluid"> <div className="row">...
docs/src/Root.js
lo1tuma/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
examples/router/index.js
zalmoxisus/remote-redux-devtools
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import Root from './containers/Root'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); render( <Provider store={stor...
src/routes.js
muhammadsayuti/releasify-server
import React from 'react' import en from 'react-intl/locale-data/en' import id from 'react-intl/locale-data/id' import { Route, Switch, Redirect } from 'react-router' import blue from '@material-ui/core/colors/blue' import lightBlue from '@material-ui/core/colors/lightBlue' import { IntlProvider, addLocaleData } from '...
src/components/Header.js
shravanshetty5/WhatsHappening
import React from 'react'; import { browserHistory, Link } from 'react-router'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; export default class Header extends React.Component { constructor(props) { super(props); this.state = { UserName :'PRIYANKA' }; } handl...
mxcube3/ui/components/SampleChanger/SampleChanger.js
marcus-oscarsson/mxcube3
import React from 'react'; import { Panel, Button, DropdownButton, Glyphicon, } from 'react-bootstrap'; import { ContextMenu, MenuItem, ContextMenuTrigger } from 'react-contextmenu'; import './SampleChanger.css'; import '../context-menu-style.css'; /* eslint-disable react/no-multi-comp */ export class SampleChanger...
src/ui/modules/ServicesModule.js
gouxlord/dev-insight
import React from 'react'; import Title from 'src/ui/elements/Title'; import Subtitle from 'src/ui/elements/Subtitle'; import MediumPresenter from 'src/ui/modules/presenters/MediumPresenter'; import styles from './ServicesModule.scss'; import data from 'data/data.json' import _ from 'lodash' var componentData = _.find...
src/Table.js
IveWong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, render() { let c...
node_modules/react-bootstrap/es/SplitToggle.js
joekay/awebb
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DropdownToggle fr...
src/Parser/Hunter/Shared/Modules/Features/CancelledCasts.js
enragednuke/WoWAnalyzer
import React from 'react'; import CoreCancelledCasts from 'Parser/Core/Modules/CancelledCasts'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Icon from 'common/Icon'; class CancelledCasts extends CoreCan...
jenkins-design-language/src/js/components/material-ui/svg-icons/content/backspace.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentBackspace = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17...
app/javascript/mastodon/components/avatar_overlay.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
spring-boot-create-react-app-web/src/App.js
ThomasBem/spring-boot-create-react-app
// @flow import React from 'react'; import getText from './AppService'; import Header from './header/Header'; type State = { text: string }; class App extends React.Component<{}, State> { constructor() { super(); this.state = { text: '' }; } componentDidMount() { getText().then(response...
example/src/Screens/Docs/shared/Browser/Wrapper.js
maisano/react-router-transition
import React from 'react'; import { css } from 'glamor'; const wrapperRule = css` max-width: 100%; border: 2px solid rgb(236, 236, 236); box-sizing: border-box; border-radius: 4px; margin: 0 auto 3rem; overflow: hidden; `; const Wrapper = ({ children }) => ( <div css={wrapperRule}> {children} </di...
packages/cf-builder-table/src/TableBuilder.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import TableBuilderPropTypes from './TableBuilderPropTypes'; import { Table, TableBody, TableHead, TableHeadCell, TableRow } from 'cf-component-table'; class TableBuilder extends React.Component { render()...
src/components/SVG/Column.js
UncleYee/crm-ui
import React from 'react'; export default class Column extends React.Component { static propTypes = { name: React.PropTypes.string, isSelected: React.PropTypes.bool, }; constructor(props) { super(props); } componentWillMount() { } render() { return ( <svg version="1.1" xmlns="htt...
ui/src/main/js/components/UpdateDiff.js
apache/aurora
import React from 'react'; import Diff from 'components/Diff'; import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout'; import { instanceRangeToString } from 'utils/Task'; export default class UpdateDiff extends React.Component { constructor(props) { super(props); this.state = {groupI...
app/src/components/NoAudioWarning/index.js
civa86/electrophone
import React from 'react'; const NoAudioWarning = () => { return ( <div id="no-audio-warning" className="modal fade" tabIndex="-1" role="dialog"> <div className="modal-dialog" role="document"> <div className="modal-content"> <div className="modal-header"> ...
tp-3/euge/src/components/pages/welcome/WelcomePage.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; // Since this component is simple and static, there's no parent container for it. const WelcomePage = () => { return ( <div> <h2 className="alt-header">Bienvenido a Sovosiano! </h2> <p> Esta es la pagina estatica de bienvenida solamente. Tu tendras que hacer una co...
app/javascript/flavours/glitch/features/favourites/index.js
glitch-soc/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from 'flavours/glitch/components/loading_indicator'; import { fetchFavourites } from 'flavours/glitch/actions/interactions'; import Ac...
src/core/display/App/Category/List.js
JulienPradet/pigment-store
import React from 'react' import {Link} from 'react-router' import * as LinkList from '../util/View/LinkList' export default ({category, pathname}) => { return <LinkList.Container> <LinkList.Title>Subcategories</LinkList.Title> <LinkList.Content> <ul> {category.categories.map(({name}) => <li ke...
tp-3/juan-pablo-gonzalez/src/shared/components/sovos-dynamic-form/components/formField/components/formCheckBoxField/FormCheckBoxField.js
jpgonzalezquinteros/sovos-reactivo-2017
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Checkbox } from 'fusionui-shared-components-react'; import './FormCheckBoxField.scss'; class FormCheckBoxField extends Component { constructor(props) { super(props); this.state = { checked: props.value === '1', ...
fields/types/localfiles/LocalFilesField.js
riyadhalnur/keystone
import _ from 'underscore'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, FormField, FormInput, FormNote } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ const ICON_EXTS = [ 'aac', 'ai', 'aiff', 'avi', '...
src/ReactRest/RestHoc.js
Okazari/react-rest-hoc
import React from 'react' import PropTypes from 'prop-types' const getDisplayName = c => c.displayName || c.name || 'Component' const RestHOC = (Component, ResourceService) => { return class extends React.Component { static displayName = `RestHoc(${getDisplayName(Component)})` static propTypes = { que...
fields/types/markdown/MarkdownField.js
matthieugayon/keystone
import Field from '../Field'; import React from 'react'; import ReactDOM from 'react-dom'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on jQuery */ // Scope jQuery and the bootstrap-markdown editor so it will mount var $ = require('jquery'); require('./lib/bootstrap-markdown'); // App...
src/svg-icons/image/filter-9-plus.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter9Plus = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2zm-3-3V8h1v1h-1zm10-8H7c-1.1...
src/views/GetURL.js
AugustoL/BKCBlog
import React from 'react'; import {Link} from "react-router"; import steem from 'steem'; import moment from 'moment'; import http from 'http'; import _ from 'lodash'; import until from 'async/until'; import Dispatcher from "../Dispatcher"; import Store from "../Store"; import Loader from "../components/Loader"; cons...
src/svg-icons/maps/local-pharmacy.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPharmacy = (props) => ( <SvgIcon {...props}> <path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/> </SvgIcon> ); MapsLocalPharmacy = pure...
src/components/directs/single/additional-info/AdditionalInfo.js
VGraupera/1on1tracker
import React from 'react'; import Paper from 'material-ui/Paper'; import { Card } from 'material-ui/Card'; import PropTypes from 'prop-types'; import Phone from './Phone'; import StartDate from './StartDate'; import Notes from './Notes'; const propTypes = { phone: PropTypes.string, notes: PropTypes.string, star...
app/javascript/mastodon/components/admin/Dimension.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedNumber } from 'react-intl'; import { roundTo10 } from 'mastodon/utils/numbers'; import Skeleton from 'mastodon/components/skeleton'; export default class Dimension extends React.PureComponent { static pr...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
rekif/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-he...