path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/lib/mui-components/MoreButton/MoreButtonPres.js
jf248/scrape-the-plate
import React from 'react'; import { IconButton, Menu, withStyles } from '@material-ui/core'; import MoreVert from '@material-ui/icons/MoreVert'; const styles = () => ({}); MoreButtonPres.defaultProps = {}; function MoreButtonPres(props) { const { anchorEl, children, className: classNameProp, classe...
index.js
craigbilner/react-modal-play
import React from 'react'; import { render } from 'react-dom'; import App from './src/app'; render(<App />, document.getElementById('main'));
src/svg-icons/maps/directions-railway.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRailway = (props) => ( <SvgIcon {...props}> <path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2...
react/render.js
rumbleyam/morty-api
import React from 'react'; import ReactDOM from 'react-dom/server'; import {Provider} from 'react-redux'; import {flushChunkNames} from 'react-universal-component/server'; import flushChunks from 'webpack-flush-chunks'; import configureStore from './configureStore'; import App from './src/components/App'; import {Shee...
src/components/DeveloperMenu.android.js
jacktuck/registr
import React from 'react'; import * as snapshot from '../utils/snapshot'; import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'; /** * Simple developer menu, which allows e.g. to clear the app state. * It can be accessed through a tiny button in the bottom right corner of the screen. * ON...
src/components/Main.js
taotaoabc/pin2
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; import ReactDOM from 'react-dom'; let Penguins = require('../images/Penguins2.jpg'); class Cell extends React.Component { handleClick(e){ (this.props.move)(); e.stopPropagation(); e.preventDefault(); } componentD...
src/svg-icons/av/video-call.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoCall = (props) => ( <SvgIcon {...props}> <path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"/> </SvgIcon> )...
docs/components/common/paragraph/paragraph.js
t1m0n/air-datepicker
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import {FormattedMessage} from 'react-intl'; import css from './paragraph.module.scss'; function Paragraph({id, doubleOffset, values, className} = {}) { return ( <FormattedMessage className={cn(classNam...
src/components/NewsList.js
amoghesturi/react-news-app
import React from 'react'; import PropTypes from 'prop-types'; import Article from './Article.js'; class NewsList extends React.Component { render() { if(this.props.articles.length) { let newsArticles = this.props.articles.map( (article, i) => ( <Article article={article} key={i}/> )); ...
docs/app/Examples/modules/Rating/Variations/RatingSizeExample.js
jamiehill/stardust
import React from 'react' import { Rating } from 'stardust' const RatingSizeExample = () => ( <div> <Rating maxRating={5} defaultRating={3} icon='star' size='mini' /> <br /> <br /> <Rating maxRating={5} defaultRating={3} icon='star' size='tiny' /> <br /> <br /> <Rating maxRating={5} def...
src/components/Headline.js
wbreakell/changeover
// @flow import React from 'react'; import styled from 'styled-components'; import { media } from '../styles/media'; const Headline = styled.h1` color: #fff; font-size: 1.5rem; font-weight: 500; margin-bottom: 6rem; margin-top: 2rem; ${media.md` font-size: 2.25rem; margin-bottom: 8rem; margin...
src/index.js
jed/react-swipe
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Swipe from 'swipe-js-iso'; import isEqual from 'lodash.isequal'; class ReactSwipe extends Component { static propTypes = { swipeOptions: PropTypes.shape({ startSlide: PropTypes.number, speed: PropTypes.number, ...
app/react-icons/fa/folder-open.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaFolderOpen extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m39.9 21.2q0 0.6-0.6 1.4l-7.2 8.4q-0.9 1.1-2.5 1.9t-3.1 0.7h-23.1q-0.7 0-...
packages/bonde-styleguide/src/content/IconColorful/svg/Greeting.js
ourcities/rebu-client
import React from 'react' const Icon = () => ( <svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' viewBox='0 0 60 40'> <g fill='none' fillRule='evenodd'> <circle cx='30' cy='20' r='20' fill='#E09' opacity='.297' /> <circle cx='30' cy='20' r='16' fill='#E09' opacity='.3' /> <circle c...
src/components/footer.js
mozilla/donate.mozilla.org
import React from 'react'; var Footer = React.createClass({ contextTypes: { intl: React.PropTypes.object }, render: function() { return ( <footer> <div className="footer"> <div className="footer-links"> <ul> <li><a href="https://twitter.com/mozilla" targe...
fields/types/cloudinaryimages/CloudinaryImagesField.js
tanbo800/keystone
import _ from 'underscore'; import React from 'react'; import Field from '../Field'; import { Button, FormField, FormInput, FormNote } from 'elemental'; const SUPPORTED_TYPES = ['image/gif', 'image/png', 'image/jpeg', 'image/bmp', 'image/x-icon', 'application/pdf', 'image/x-tiff', 'image/x-tiff', 'application/postscri...
new-lamassu-admin/src/pages/Wizard/components/OperatorInfo.js
naconner/lamassu-server
import { makeStyles } from '@material-ui/core' import React from 'react' // import OperatorInfo from 'src/pages/OperatorInfo' import styles from 'src/pages/AddMachine/styles' const useStyles = makeStyles(styles) function WizardOperatorInfo() { const classes = useStyles() return ( <div className={classes.wra...
src/CardImg.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { tag: tagPropType, top: PropTypes.bool, bottom: PropTypes.bool, className: PropTypes.string, cssModule: PropTypes.object, }; const de...
frontend/modules/header/components/CreateRecipeMenuItem.js
RyanNoelk/OpenEats
import React from 'react' import { injectIntl, IntlProvider, defineMessages, formatMessage } from 'react-intl'; import { MenuItem } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' class CreateRecipeMenuItem extends React.Component { render () { const {formatMessage} ...
app/javascript/flavours/glitch/components/link.js
Kirishima21/mastodon
// Inspired by <CommonLink> from Mastodon GO! // ~ 😘 kibi! // Package imports. import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; // Utils. import { assignHandlers } from 'flavours/glitch/util/react_helpers'; // Handlers. const handlers = { // We don't handl...
src/lightbox/LightboxHeader.js
saketkumar95/zulip-mobile
/* @flow */ import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import ModalNavBar from '../nav/ModalNavBar'; import { SlideAnimationView, Avatar } from '../common'; import { shortTime, humanDate } from '../utils/date'; import { PopRouteAction } from '../types'; const customStyles = Styl...
src/components/Scheme/HypertensionA.js
lethecoa/work-order-pc
import React from 'react'; import {Form, InputNumber, Row, Col, Radio} from 'antd'; import MedicationInfo from './MedicationInfo'; import styles from './Scheme.less'; const FormItem = Form.Item; const RadioGroup = Radio.Group; const formItemLayout = { labelCol: { xs: { span: 24 }, sm: { span: 8 }, }, wrapperCo...
src/components/link/link-controls.js
xutou12/draft-richer
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { RichUtils, EditorState } from 'draft-js'; import Icon from '../icons'; import Button from '../button'; import LinkModal from './link-modal'; import { linkFilter } from '../decorator/link'; import { prefixCls } fr...
node_modules/semantic-ui-react/src/views/Feed/FeedLabel.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { createHTMLImage, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Icon from '../../elements/Icon' /** * An event can contain an image or icon label. *...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
pheadra/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class AnnouncementsSidebar extends React.Component { render() { let { announcements } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcements....
docs/pages/system/api.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'system/api'; const requireDemo = require.context('docs/src/pages/system/api', false, /\.(js|tsx)$/); const requireRaw = require.c...
src/components/post/short-post.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/svg-icons/maps/local-florist.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalFlorist = (props) => ( <SvgIcon {...props}> <path d="M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2....
src/routes/yourwins/Yourwins.js
zsu13579/pinterest-apollo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/parser/warrior/arms/modules/talents/FervorOfBattle.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import SPELLS from 'common/SPELLS'; import { formatPercentage, formatThousands } from 'common/format'; import SpellLink from 'common/SpellLink'; impor...
client/containers/NoMatchPage.js
Temzasse/ntu-crysis
import React from 'react'; const NoMatchPage = () => ( <div className='NoMatchPage' style={{ width: '100%' }}> Page Not Found </div> ); export default NoMatchPage;
src/interface/icons/Dropdown.js
FaideWW/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=dropdown&i=1871189 // Dropdown by zalhan from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 9" {...other}> <path d="M14.0059397,2.26485497e-14 C15.1072288,2.26485497e-14 15.3722573,0.6...
src/views/HomeView.js
gj262/noaa-coops-viewer
import PropTypes from 'prop-types' import React from 'react' import { connect } from 'react-redux' import { actions as coOpsActions } from 'actions/coOps' import LeftPane from 'components/LeftPane' import RightPane from 'components/RightPane' import './HomeView.scss' class HomeView extends React.Component { static ...
frontend/pages/ErrorPage.js
StefanKjartansson/drf-react-skeleton
import React from 'react'; export default class ErrorPage extends React.Component { render() { return ( <div>Some error occured</div> ); } }
FunPaceReact/app/components/ListItem/index.js
mul1sh/Fun-Pace
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
src/components/Modal/ModalBody.js
nolawi/champs-dialog-sg
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import React from 'react'; import classNames from 'classnames'; import styles from './Modal.css'; export type Props = { className?: string, children?: React.Element<any> }; function ModalBody(props: Props): React.Element<any> { const className = class...
stories/Scansion/index.js
cltk/annotations
import React from 'react' import Annotatable, { createEditorState } from '../../src' import { argonautica } from '../stubs' import { addScansionToBlocks, greekProsodyDecorator, } from '../../src' export default class Scansion extends React.Component { constructor(props) { super(props) this.state = { ...
docs/app/Views/Usage.js
Rohanhacker/Semantic-UI-React
import React from 'react' import pkg from 'package.json' import { Container, Header, Segment, } from 'src' import Logo from '../Components/Logo/Logo' import { semanticUIDocsURL, semanticUIRepoURL, semanticUICSSRepoURL } from 'docs/app/utils' const suiCSSVersion = pkg.devDependencies['semantic-ui-css'].replace(/[...
addons/jest/src/hoc/provideJestResult.js
rhalff/storybook
import React from 'react'; import PropTypes from 'prop-types'; const provideTests = Component => { class TestProvider extends React.Component { static propTypes = { channel: PropTypes.shape({ on: PropTypes.func, removeListener: PropTypes.func, }).isRequired, api: PropTypes.shape...
3.react/main.js
jadekler/git-js-workshop
import './stylesheets/app.scss' import React from 'react' import ReactDOM from 'react-dom' import ResultsPage from './src/ResultsPage' ReactDOM.render( <ResultsPage/>, document.getElementById('content') )
testResources/reactProject/src/index.js
mthmulders/stryker-jest-runner
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/HOCs/archive/ShowOnArchivedHOC.js
VGraupera/1on1tracker
import React from 'react'; import PropTypes from 'prop-types'; import ArchiveHocFactory from './ArchiveHocFactory'; const propTypes = { isArchived: PropTypes.bool, }; const defaultProps = { isArchived: false, }; export const componentFactory = (WrappedComponent) => { const ShowOnArchived = (props) => { c...
src/server.js
ryaneof/streaming-pics
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/modules/common/footer.js
shojib/react-seed
import React from 'react'; class Footer extends React.Component { render () { var currentYear = new Date().getFullYear(); var copyrightYears = currentYear > 2016 ? 2016 + '-' + currentYear : 2016; return ( <small>(c) {copyrightYears} Shojib React-Seed.<br/> This seed is based on ...
app/containers/App.js
agrant216/React-Electron-Mtg
// @flow import React, { Component } from 'react'; export default class App extends Component { props: { children: HTMLElement }; render() { return ( <div> {this.props.children} </div> ); } }
examples/shared-root/app.js
BerkeleyTrue/react-router
import React from 'react' import { render } from 'react-dom' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/shared-root' }) class App extends React.Component { render() { return ( <div> ...
lib-module-node7-dev/layout/Html.js
turacojs/fody
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; }; var _jsxFileName = 'layout/Html.jsx', _this = this; impo...
src/Parser/Rogue/Common/Legendaries/MantleOfTheMasterAssassin.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import Wrapper from 'common/Wrapper'; class MantleOfTheMasterAssassin extends Analyzer { static dependencies = { combatants: Combatants, }; on_i...
src/platform/apps/team/admin/views/users/index.js
ccetc/platform
import React from 'react' import Page from 'admin/components/page' import Collection from 'admin/components/collection' import Avatar from 'admin/components/avatar' import moment from 'moment' import New from './new' class Index extends React.Component { render() { return ( <div className="chrome-body"> ...
src/components/Icons/TwitterIcon.js
zerkedev/zerke-app
import React from 'react'; import SvgIcon from 'material-ui/SvgIcon'; const TwitterIcon = (props) => { return ( <SvgIcon width={300} height={244} viewBox="550 550 300 300" {...props}> <path d="m633.9 812.04c112.46 0 173.96-93.168 173.96-173.96 0-2.6463-0.0539-5.2806-0.1726-7.903 11.938-8.6302 22.31...
frontend/src/CategoryCreator/CategoryCreator.js
swpease/MoodJournal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Button from 'material-ui/Button'; import AddIcon from 'material-ui-icons/Add'; import { withStyles } from 'material-ui/styles'; import CategoryEditor from '../CategoryEditor/CategoryEditor.js'; /* * CategoryCreator has two states: ...
src/views/LogoutView.js
ghartong/react_falcor
import React from 'react' import {Paper} from 'material-ui' class LogoutView extends React.Component { constructor(props) { super(props) } componentWillMount() { if (typeof localStorage !== 'undefined' && localStorage.token) { delete localStorage.token delete localS...
core/router.js
ReidWilliams/hello-react
/** * 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. */ /* eslint-disable no-conti...
Realization/frontend/czechidm-core/src/content/notification/NotificationAttachmentTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from '../../utils'; import { NotificationAttachmentManager } from '../../redux'; const notif...
tests/format/flow-repo/react_modules/es6class-proptypes-module.js
jlongster/prettier
/* @flow */ import React from 'react'; class Hello extends React.Component<void, {name: string}, void> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): React.Element<*> { return <div>{this.props.name}</div>; } } module.exports = Hello;
techCurriculum/ui/solutions/4.5/src/components/Card.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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 to...
src/server.js
alexbonine/react-starter-kit
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; import _ from 'lodash'; import fs from 'fs'; import path from 'path'; impo...
src/components/Editor/index.js
NE-SmallTown/React-QuietWater
/** * v0.0.1 * * Copyright (c) 2017 * * Date: 2017/5/18 by Heaven */ import React from 'react'; import PropTypes from 'prop-types'; import RichTextEditor from 'react-rte'; import globalConfig from '../../globalConfig'; import './index.css'; // TODO 编辑器要能全屏 // TODO 找个更合适的编辑器 // https://github.com/leejaen/reac...
src/SafeAnchor.js
bvasko/react-bootstrap
import React from 'react'; import createChainedFunction from './utils/createChainedFunction'; /** * Note: This is intended as a stop-gap for accessibility concerns that the * Bootstrap CSS does not address as they have styled anchors and not buttons * in many cases. */ export default class SafeAnchor extends React...
Realization/frontend/czechidm-core/src/components/basic/EnumValue/EnumValue.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; // import Label from '../Label/Label'; import Icon from '../Icon/Icon'; /** * Simple enum formatter. * * @author Radek Tomiška */ export default function EnumValue(props) { const { rendered, value, style, label, level, title } = props; const enumCl...
src/js/components/startMenuItem.js
GarrettEstrin/windows.garrettestrin.com
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { clickStartMenuItem } from '../actions/start_menu_actions'; class StartMenuItem extends Component { constructor(props) { super(props); this.showWindow = this.showWindow.bind(this); } showWindow(){ if(this.prop...
app/client/src/scenes/Settings/Settings.js
uprisecampaigns/uprise-app
import React from 'react'; import { List, ListItem } from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Link from 'components/Link'; import s from 'styles/Settings.scss'; function Settings(props) { return ( <div className={s.outerContainer}> <div className={s.innerContainer}> ...
__sites_/src/components/doc/en/home.js
Vanthink-UED/react-core-image-upload
import React from 'react'; import vendor from '../../../lib/vendor'; export default class EnHome extends React.Component { constructor(props) { super(props); } render() { return ( <div className="components c-home"> <p className="center"> <img src="http://img1.vued.vanthink.cn/vu...
src/svg-icons/hardware/phonelink-off.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhonelinkOff = (props) => ( <SvgIcon {...props}> <path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6...
app/javascript/mastodon/components/media_gallery.js
tri-star/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
src/svg-icons/navigation/arrow-forward.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowForward = (props) => ( <SvgIcon {...props}> <path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/> </SvgIcon> ); NavigationArrowForward = pure(NavigationArrowForward); Navigation...
server/sonar-web/src/main/js/main/nav/component/component-nav-menu.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
app/javascript/mastodon/features/public_timeline/index.js
kazh98/social.arnip.org
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/SplitToggle.js
pombredanne/react-bootstrap
import React from 'react'; import DropdownToggle from './DropdownToggle'; export default class SplitToggle extends React.Component { render() { return ( <DropdownToggle {...this.props} useAnchor={false} noCaret={false} /> ); } } SplitToggle.defaultProps = DropdownToggle...
client/app/scripts/main.dev.js
kinvolk/scope
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../styles/main.scss'; import '../images/favicon.ico'; import configureStore from './stores/configureStore.dev'; const store = configureStore(); function renderApp() { const App = re...
docs/src/pages/customization/BusinessVariables.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import Checkbox from 'material-ui/Checkbox'; import { createMuiTheme, MuiThemeProvider, withStyles } from 'material-ui/styles'; import orange from 'material-ui/colors/orange'; const styles = theme => ({ danger: { color: theme.status.da...
site/src/constants/config/learn/vue.js
appbaseio/reactivesearch
import React from 'react'; import theme from './../../theme/vue'; import baseConfig from './../base/vue'; const { primary, primaryDark } = theme; export default { ...baseConfig, title: 'Get Started with Reactive Search Vue', description: ( <React.Fragment> Use our step-by-step guide to learn all about Reactiv...
index.android.js
ColdForge/icebox
/** * 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 iceboxiOS extends Component { render() { return ( <View style={styles.container}> <Tex...
spec/coffeescripts/react_files/components/ZipFileOptionsFormSpec.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
packages/react-devtools-shared/src/devtools/views/Profiler/NoInteractions.js
TheBlasfem/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'; import styles from './NoInteractions.css'; export default function NoInteractions({ hei...
src/reactImpl/Component.js
pengzhanlee/xeact
import React from 'react'; import {addIdToInstanceRelation} from "../methods"; /** * 方法暴露 * 将 instanceId (xeactId) 与 internal instance 关联 */ function methodExpose() { // const exposedId = this[EXPOSED_METHODS_ID_KEY]; // // const exposedInstance = getExposedInstance(exposedId); // // if(exposedI...
front-end/app/containers/incidents/incident_update_container.js
akumbhani66/cantaloupe
import { connect } from 'react-redux'; import IncidentUpdate from '../../components/incidents/Incident_update_component'; import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import * as Actions from '../../actions/actions'; const mapStateToProps = (state) => { return { state: state...
src/components/home.js
universo-mw8/smart-sale-pwa
import React from 'react' export default React.createClass({ render () { return <div>Home</div> } })
docs/src/examples/modules/Dropdown/Variations/DropdownExampleMenuDirectionLeft.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Dropdown, Icon } from 'semantic-ui-react' const DropdownExampleMenuDirectionLeft = () => ( <Dropdown text='Menu' floating labeled button className='icon'> <Dropdown.Menu className='left'> <Dropdown.Item> <Icon name='dropdown' /> <span className='text'>Left...
19-移动端/01-react-native/04-图标组件/04-图标组件.js
csxiaoyaojianxian/JavaScriptStudy
import React, { Component } from 'react'; import { TabBarIOS, AppRegistry, StyleSheet, Text, View } from 'react-native'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import Icon from 'react-native-vector-icons/Ionicons'; class List extends Component { render(){ return ( <Vi...
src/views/presentation-view/svg/symbols/point.js
vynogradskyi/resume
import React from 'react'; export default function () { return ( <symbol id="point" data-name="point" viewBox="0 0 174 174"> <circle cx="87" cy="87" r="87"/> <circle fill="#fff" cx="86.5" cy="86.5" r="70.5"/> <circle cx="86" cy="86" r="56"/> </symbol> ); }
extension/src/actions.js
webextensions/live-css-editor
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { CommandPalette } from './command-palette/command-palette.js'; import { APP_$_CLOSE_COMMAND_PALETTE } from 'reducers/actionTypes.js'; function mapStateToProps(state) { return { open: state.ap...
src/routes/Counter/components/Counter.js
aburd/issues-tracker
import React from 'react' import PropTypes from 'prop-types' export const Counter = ({ counter, increment, doubleAsync }) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {counter}</h2> <button className='btn btn-primary' onClick={increment}> Increment </button> {' '} <button className...
src/screens/Counter/Clicker.js
prashaantt/hapi-react-transform-boilerplate
import React from 'react'; export default class Clicker extends React.Component { handleClick() { if (this.props.type === 'increment') { this.props.incrementCounter(this.props.amount); } else { this.props.decrementCounter(this.props.amount); } } re...
src/svg-icons/maps/local-hotel.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsLocalHotel = pu...
app/about/components.js
alyzhao/my-blog
import React from 'react'; class AboutComponent extends React.Component { constructor(props) { super(props); } render() { return ( <div className="about"> </div> ); } } export { AboutComponent };
modules/dreamview/frontend/src/components/Header/Selector.js
xiaoxq/apollo
import React from 'react'; export default class Selector extends React.Component { constructor(props) { super(props); this.state = { name: props.name, value: props.currentOption, }; this.onChangeHandler = this.onChangeHandler.bind(this); } onChangeHandler(event) { this.setState...
.storybook/stories/infinite-scroll.js
eberhara/react-bidirectional-infinite-scroll
import React from 'react' import { storiesOf } from '@storybook/react' import Vertical from '../../demo/src/examples/vertical' import Horizontal from '../../demo/src/examples/horizontal' storiesOf(' > InfiniteScroll', module) .add('Vertical', () => <Vertical />) .add('Horizontal', () => <Horizontal />)
docs/app/Examples/modules/Dimmer/Variations/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DimmerVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Blurring' desc...
investninja-web-ui-app/src/frontend/index.js
InvestNinja/InvestNinja-web-ui
import React from 'react'; import ReactDOM from 'react-dom'; import App from './component/App'; import CarteiraBox from './component/Carteira/CarteiraBox'; import { AppContainer } from 'react-hot-loader'; import { overrideComponentTypeChecker } from 'react-toolbox'; import { Route, BrowserRouter } from 'react-router-do...
src/svg-icons/file/cloud-upload.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudUpload = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4....
components/card/card-content.js
Centroida/CentroUI
import React from 'react'; import { asset, Pano, Text, View, Plane, } from 'react-vr'; export default class CnCardContent extends React.Component { constructor(props) { super(props) } render() { return ( //Think about resizing images <View st...
src/js/components/Object.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.OBJECT; const LIST_ITEM = CSSClassnames.LIST_ITEM; export default class GrommetObject...
src/pages/About/About.js
moje-skoly/app-reloaded
import React from 'react'; import { Container, Row, Col } from 'reactstrap'; import './About.less'; const About = () => { return ( <Container> <Row> <Col md={{ size: 6, offset: 3 }} sm={{ size: 8, offset: 2 }} xs={12}> <div className="about"> <h1>O projektu <strong>Moje školy...
spec/coffeescripts/react_files/components/NoResultsSpec.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/svg-icons/image/panorama-horizontal.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaHorizontal = (props) => ( <SvgIcon {...props}> <path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C...
examples/pinterest/app.js
taion/rrtr
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, IndexRoute, Link } from 'rrtr' const PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekitten.com/610/610' }, { id: 2, src: 'http://placekitten.com/620/620' } ] const Moda...
node_modules/antd/es/radio/radio.js
yhx0634/foodshopfront
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
examples/simple/index.js
bmcmahen/react-simple-menu
import React from 'react'; import ReactDOM from 'react-dom' import App from './components/App'; ReactDOM.render( <App />, document.getElementById('root') );
app/javascript/mastodon/features/ui/components/column_subheading.js
clworld/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;