path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/MorphReplace.js
gorangajic/react-svg-morph
// request animation frame import React from 'react'; import PropTypes from 'prop-types'; import MorphTransition from './MorphTransition'; export default class MorphReplace extends React.Component { constructor(props) { super(props); this.progress = 0; this.state = { current...
news-app/src/App.js
abhilashsajeev/news-app
import React, { Component } from 'react'; import './App.css'; import Appbar from 'material-ui/AppBar'; import NewsList from './components/NewsList'; import NewsAdmin from './components/NewsAdmin'; import NewsPublic from './components/NewsPublish'; import Message from './components/Snakbar'; import Link from './componen...
src/ModalHeader.js
bbc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
docs/app/Examples/collections/Message/Types/MessageExampleMessage.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleMessage = () => ( <Message> <Message.Header> Changes in Service </Message.Header> <p> We updated our privacy policy here to better service our customers. We recommend reviewing the changes. </p> </...
front_end/src/pages/Reporting/ReportingNav.js
mozilla/splice
import React from 'react'; import { Link, History } from 'react-router'; export default React.createClass({ mixins: [History], render: function() { return (<nav> {this.props.items.map(item => { return (<Link to={item.link} key={item.label} className={this.history.isActive(item...
frontend/react-stack/react/aluraflix/src/components/BannerMain/components/VideoIframeResponsive/index.js
wesleyegberto/courses-projects
import React from 'react'; import { VideoContainer, ResponsiveIframe } from './styles'; function YouTubeIframeResponsive({ youtubeID }) { return ( <VideoContainer> <ResponsiveIframe title="Titulo do Iframe" src={`https://www.youtube.com/embed/${youtubeID}?autoplay=0&mute=1`} frameB...
components/Markdown.js
nkoder/learn-next-js
import React from 'react' import marked from 'marked' marked.setOptions({ gfm: true, tables: true, breaks: true, sanitize: false }) export default class Markdown extends React.Component { render() { const { content } = this.props return ( <div dangerouslySetInnerHTML={{ __html: marked(content) }}/> ) ...
src/Parser/Priest/Shadow/CHANGELOG.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { hassebewlen, Zerotorescue } from 'CONTRIBUTORS'; import Wrapper from 'common/Wrapper'; import ItemLink from 'common/ItemLink'; import ITEMS from 'common/ITEMS'; export default [ { date: new Date('2017-12-29'), changes: 'Fixed display in the timeline and the inclusion in a...
app/src/components/common/page.js
templatetools/trace
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; import './page.less'; export default class Page extends React.Component { render() { const {title, subTitle, spacing, className, children, footer} = this.props; return ( <section className={`page ${classNa...
src/components/GithubButton/GithubButton.js
MarkPhillips7/happy-holidays
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
node_modules/react-icons/md/card-membership.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdCardMembership = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m33.4 16.6v-10h-26.8v10h26.8z m0 8.4v-3.4h-26.8v3.4h26.8z m0-21.6c1.8 0 3.2 1.4 3.2 3.2v18.4c0 1.9-1.4 3.4-3.2 3.4h-6.8v8.2l-6.6-3.2-6.6 3.2v-8.2h-6.8c-1.8 0-3...
src/parser/shared/modules/spells/VantusRune.js
anom0ly/WoWAnalyzer
import { formatNumber } from 'common/format'; import ITEMS from 'common/ITEMS'; import Analyzer from 'parser/core/Analyzer'; import StatTracker from 'parser/shared/modules/StatTracker'; import DamageDone from 'parser/shared/modules/throughput/DamageDone'; import DamageTaken from 'parser/shared/modules/throughput/Damage...
ajax/libs/react-instantsearch/3.3.0/Dom.js
tholu/cdnjs
/*! ReactInstantSearch 3.3.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
src/pages/articles.js
Smittey/smittey.github.io
import React from 'react'; import { graphql } from 'gatsby'; import PropTypes from 'prop-types'; import Layout from '../components/layout'; import SEO from '../components/seo'; import ArticleItem from '../components/ArticleItem'; const ArticlesPage = ({ data }) => { const articles = data.allContentfulBlogPost.nodes;...
src/svg-icons/communication/call-made.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMade = (props) => ( <SvgIcon {...props}> <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/> </SvgIcon> ); CommunicationCallMade = pure(CommunicationCallMade); CommunicationCallMade.displ...
.history/src/components/InstaCelebs/index_20171001004907.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' const imgMap = { d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg' } const InstaCelebs = ({instaCeleb}) => { console.log('instaCeleb', instaCeleb) const st...
src/svg-icons/action/description.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDescription = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/> </SvgIcon> ); A...
examples/with-next-seo/pages/jsonld.js
BlancheXu/test
import React from 'react' import { ArticleJsonLd } from 'next-seo' // See all available JSON-LD here: // https://github.com/garmeeh/next-seo#json-ld export default () => ( <div> <ArticleJsonLd url='https://example.com/article' title='Article headline' images={[ 'https://example.com/phot...
src/Pagination.js
asiniy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import PaginationButton from './PaginationButton'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const Pagination = React.createClass({ mixins: [BootstrapMixi...
src/list/mixin/built-in-components.js
KleeGroup/focus-components
import React from 'react'; import fieldBehaviourMixin from '../../common/mixin/field-component-behaviour'; import assign from 'object-assign'; import { component as Field } from '../../common/field'; import DisplayText from '../../components/display/text'; const builtInComponentsMixin = { /** * inherited minx...
src/components/Footer/index.js
lijinfengworm/ant-design-reactjs
import React from 'react'; import {BackTop} from 'antd'; import globalConfig from 'config.js'; import './index.less'; /** * 定义Footer组件 */ class Footer extends React.PureComponent { render() { const text = globalConfig.footer || 'footer被弄丢啦!'; // backtop如果不设置target会有问题 // footer的字可以有html标签, 有一定XSS的风险,...
src/svg-icons/device/brightness-low.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessLow = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
app/packs/src/components/DeviceAnalysisDetails.js
ComPlat/chemotion_ELN
import React from 'react' import {Panel , ButtonToolbar, Button, OverlayTrigger, Tooltip} from 'react-bootstrap' import DeviceSampleContainer from './DeviceSampleContainer' import ElementActions from './actions/ElementActions' import DetailActions from './actions/DetailActions' import AnalysisNMR from './AnalysisNMR' ...
static/js/src/components/presentations/equipTraitsText.js
jpludens/quartrmastr
import React from 'react'; import Trait from '../../classes/Trait.js'; import TraitsArray from '../../classes/TraitsArray.js'; const EquipTraitsText = ({ traits }) => { return ( <p> {traits.map((trait, index) => { let text = "Um..."; const data = trait.data; switch (trait.type) { ...
src/Parser/Druid/Balance/Modules/Features/CancelledCasts.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Wrapper from 'common/Wrapper'; import CoreCancelledCasts from 'Parser/Core/Modules/CancelledCasts'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; class CancelledCasts extends CoreCancelledCasts { get suggestionThresholds() {...
react/src/index.js
gaillota/roberval-balance
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
examples/custom-server-fastify/pages/index.js
nelak/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
src/components/portfolio-about.js
relwiwa/fcc-portfolio-page
import React from 'react'; import $ from 'jquery'; import { Foundation } from 'foundation-sites/js/foundation.core'; import { MediaQuery } from 'foundation-sites/js/foundation.util.mediaQuery'; import { ImageLoader } from 'foundation-sites/js/foundation.util.imageLoader'; import { Equalizer } from 'foundation-sites/js...
docs_helpers/ExampleWrapper.js
benwiley4000/react-responsive-audio-player
import React from 'react'; import PropTypes from 'prop-types'; import PlayerContextGroupSecondary from './PlayerContextGroupSecondary'; import PlayerContextProviderSecondary from './PlayerContextProviderSecondary'; function ExampleWrapper({ children }) { return ( <PlayerContextGroupSecondary> <PlayerConte...
src/containers/tips.js
thepeted/dungeon-crawler
import React, { Component } from 'react'; export default class extends Component { constructor() { super(); this.state = { tips: [ `Use WASD or arrow keys to move`, `Press L to look at tiles around you`, `Defeat the Boss in Zone 4 to win`, `Toggle Fog Mode with the 'F' key`, `Restart the ga...
app/components/H3/index.js
koolkt/react-coloc
import React from 'react'; function H3(props) { return ( <h3 { ...props } /> ); } export default H3;
webapp-src/src/Hutch/CoinEditElementMisc.js
babelouest/hutch
import React, { Component } from 'react'; import i18next from 'i18next'; class CoinEditElementMisc extends Component { constructor(props) { super(props); this.state = { coin: props.coin, element: props.element, index: props.index, cbSave: props.cbSave, cbCancel: props.cbCancel...
public-src/components/navigation.js
evantahler/ah-resque-ui
import React from 'react' import { Link } from 'react-router-dom' import { Nav, Navbar } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' function NavItem ({ path, name }) { let active = false const simpleHash = window.location.hash.replace('#/', '') if (path !== '/' && simpleHash.in...
www/components/ListBlock/ListItem.js
DremyGit/dremy-blog
import React from 'react'; import { Link } from 'react-router'; import styles from './ListItem.scss'; import { dateFormat } from '../../utils/time'; export default class ListItem extends React.Component { render() { const { blog } = this.props; const date = new Date(blog.get('create_at')); return ( ...
src/containers/EditProfilePage.js
wilsonkv/mock-project
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Card from 'react-md/lib/Cards/Card'; import CardTitle from 'react-md/lib/Cards/CardTitle'; import CardText from 'react-md/lib/Cards/CardText'; import Button from 'react-md/lib/Buttons/Button'; imp...
runningdinner-webclient/src/common/HttpErrorHandlerHook.js
Clemens85/runningdinner
import {useSnackbar} from "notistack"; import {mapIssuesToErrorObjects, mapValidationIssuesToErrorObjects} from "../shared/Utils"; import React from 'react'; import {useTranslation} from "react-i18next"; function useHttpErrorHandler() { const {enqueueSnackbar} = useSnackbar(); const {t} = useTranslation('common')...
packages/material-ui-icons/legacy/Battery20Sharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7 17v5h10v-5H7z" /><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v13h10V4z" /></React.Fragment> , 'Battery20Sharp');
ui/src/widgets/balance.js
halilozercan/halocoin
import React, { Component } from 'react'; import {MCardStats} from '../components/card.js'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import Avatar from 'material-ui/Avatar'; import FontIcon from 'material-ui/FontIcon'; import {red500, green500} from 'material-ui/st...
es/utils/ClickAwayListener.js
uplevel-technology/material-ui-next
import React from 'react'; import { findDOMNode } from 'react-dom'; import EventListener from 'react-event-listener'; const isDescendant = (el, target) => { if (target !== null && target.parentNode) { return el === target || isDescendant(el, target.parentNode); } return false; }; /** * Listen for click ev...
client/index.js
fs-1706-stackathon/dmv
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App'; import { ApolloClient, createNetworkInterface, ApolloProvider } from 'react-apollo'; const client = new ApolloClient({ networkInterface: createNetworkInterface({ uri: '/graphql', }), }); ReactDOM.render( <ApolloPr...
Console/app/node_modules/react-error-overlay/lib/components/ErrorOverlay.js
RisenEsports/RisenEsports.github.io
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
src/components/settings/recipes/RecipeItem.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import RecipePreviewModel from '../../../models/RecipePreview'; export default @observer class RecipeItem extends Component { static propTypes = { recipe: PropTypes.instanceOf(RecipePreviewModel)...
node_modules/react-bootstrap/es/MediaRight.js
mohammed52/door-quote-automator
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/shop/__index.js
mangal49/HORECA
import React, { Component } from 'react'; import FontIcon from 'material-ui/FontIcon'; import { BottomNavigation, BottomNavigationItem } from 'material-ui/BottomNavigation'; import Paper from 'material-ui/Paper'; import IconLocationOn from 'material-ui/svg-icons/communication/location-on'; const recentsIcon = <FontI...
src/controls/videofield/picker.js
thinktopography/reframe
import ModalPanel from '../../components/modal_panel' import Message from '../../components/message' import Loader from '../../components/loader' import { connect } from 'react-redux' import PropTypes from 'prop-types' import React from 'react' class Picker extends React.Component{ static contextTypes = { form:...
src/svg-icons/communication/stay-primary-landscape.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
app/src/Frontend/libs/weui/components/button/button.js
ptphp/ptphp
/** * Created by jf on 15/10/27. */ import React from 'react'; import classNames from 'classnames'; export default class Button extends React.Component { static propTypes = { disabled: React.PropTypes.bool, type: React.PropTypes.string, size: React.PropTypes.string }; static d...
src/components/app/footer.js
lyuehh/essential-react
import React from 'react'; export default class Footer extends React.Component { render() { return ( <div> <p>footer</p> </div> ) } }
admin/client/components/PopoutPane.js
stunjiturner/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, onLayout: React.PropTypes.func }, componentDidMount () ...
app/components/ImageButton.js
attentiveness/reading
/** * * Copyright 2016-present reading * * 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...
app/components/ApmtList/index.js
zweicoder/Showtime-Dashboard
/** * * ApmtList * */ import React from 'react'; import styles from './styles.css'; function percent(score) { return (parseFloat(score) * 100).toPrecision(3) } class ApmtList extends React.Component { render() { const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thurs', 'Fri', 'Sat']; return ( <div cla...
src/scenes/home/landing/moreInformation/moreInformation.js
miaket/operationcode_frontend
import React from 'react'; import Section from 'shared/components/section/section'; import ClipPathImage from 'shared/components/clipPathImage/clipPathImage'; import familyImage from 'images/Family-1.jpg'; import milImage from 'images/Mil-1.jpg'; import volunteerImage from 'images/Volunteer-1.jpg'; import styles from ...
app/src/components/Common/Text.js
nickdecooman/template-react-frontend
// @flow import React from 'react'; import { StyleSheet, css } from 'aphrodite/no-important'; import { type SheetDefinition, getStyle } from '../../utils/aphrodite'; type Props = { children: string, styleSheet?: { text?: SheetDefinition, }, }; const styles = StyleSheet.create({ text: { fontSize: '12p...
admin/client/components/ItemsTable/ItemsTableDragDrop.js
wmertens/keystone
import React from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { Sortable } from './ItemsTableRow'; import DropZone from './ItemsTableDragDropZone'; var ItemsTableDragDrop = React.createClass({ displayName: 'ItemsTableDragDrop', propTypes: { colum...
src/js/admin/categories/operation-bar/operation-bar.js
ucev/blog
import React from 'react' import { connect } from 'react-redux' import { addCategoryDivStateChange } from '$actions/categories' import OperationConfirmButton from '$components/buttons/operation-confirm-button' import './operation-bar.style.scss' class OperationBar extends React.Component { constructor (props) { ...
imports/ui/components/dataTable/DataTable.js
ctagroup/home-app
import React, { Component } from 'react'; import ReactTable from 'react-table'; import 'react-table/react-table.css'; import { transformColumn } from './helpers.jsx'; import { formatDate } from '/imports/both/helpers'; class DataTable extends Component { // Universal search/filter constructor(props) { super(pr...
vendor/htmlburger/carbon-fields/assets/js/fields/components/search-input/index.js
FolsomCreative/storynav
/** * 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...
src/components/TodoList/TodoList.js
takahashik/todo-app
// @flow import React from 'react'; import cx from 'classnames'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import TodoItem from '../TodoItem'; import type { TodoItemProps } from '../TodoItem'; import _theme from './TodoList.css'; type T = {| theme?: {| wrapper?: string, |}, todos: Array<{ ...
example/examples/AnimatedViews.js
mvakulich/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, Animated, } from 'react-native'; import MapView from 'react-native-maps'; import PanController from './PanController'; import PriceMarker from './AnimatedPriceMarker'; const screen = Dimensions.get('window'); const ASPECT_RATIO = screen.width ...
node_modules/react-router-dom/es/Link.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 = {...
app/javascript/mastodon/features/picture_in_picture/index.js
pinfort/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import Audio from 'mastodon/features/audio'; import { removePictureInPicture } from 'mastodon/actions/picture_in_picture'; import Header from './components/header'; import F...
src/react-in-isolation/index.js
travi/presentations
import React from 'react'; import {render} from 'react-dom'; import Presentation from './presentation'; render(<Presentation />, document.getElementById('root'));
packages/react-error-overlay/src/components/Collapsible.js
g3r4n/create-esri-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, { Component } from 'react'; import { black } from '../styles'; import type { Element as ReactElement } from '...
src/containers/card_grid.js
hamholla/concentration
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Card from '../components/card/index'; import * as cardActions from '../actions/card-actions'; class CardGrid extends Component { handleClick(index) { if(this.props.shouldChangePlayer === true) { return } this....
src/components/body/listings.js
ericaporter/trending-hashtags
import React from 'react'; import HashtagListings from './hashtaglistings'; class Listings extends React.Component { render(){ return <HashtagListings /> } } export default Listings;
src/components/HelloWorld/HelloWorld.js
arnarleifs/ps-react-arnar
import React from 'react'; import PropTypes from 'prop-types'; /** A Hello World component */ const HelloWorld = ({ message }) => { return <div>Hello {message}</div>; }; HelloWorld.propTypes = { /** Message to display */ message: PropTypes.string.isRequired }; HelloWorld.defaultProps = { message: 'W...
src/parser/warlock/affliction/modules/talents/SiphonLifeUptime.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import UptimeBar from ...
src/Parser/HolyPaladin/CombatLogParser.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SuggestionsTab from 'Main/SuggestionsTab'; import Tab from 'Main/Tab'; import Talents from 'Main/Talents'; import Mana from 'Main/Mana'; import CoreCombatLogParser from 'Parser/Core/CombatLogParser'; import LowHealthHealing from 'Parser/Core/Modules/LowHealthHealing'; import HealingD...
src/init.js
msecret/testing-ground
import React from 'react'; import Accordion from './components/accordion/accordion.jsx' import './css/vars.css'; import './css/atom/headings.css'; import './css/atom/links.css'; var items = []; items.push({ title: 'Item A', p: 'Some content that says something simple' }); items.push({ title: 'Item B', p: '...
src/components/posts-new.js
jessicamvs/blog
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { createPost } from '../actions'; class PostsNew extends Component { renderField(field) { const { touched, error } = field.meta; cons...
src/components/svg/List.js
pixel-glyph/better-reads
import React from 'react'; const List = () => { return ( <svg className="btn-icon icon-list" fill="#3a3a3a" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> <path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/> <path d="M0...
src/app/components/LineBarChart.js
mkkhedawat/weather-forecast-react
import React from 'react'; import {ResponsiveContainer, ComposedChart, Line, Area, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'recharts'; /* Exports Chart Component */ export default class LineBarChart extends React.Component{ render () { return ( <ResponsiveContainer width='90%' aspect={4.0/...
packages/core/src/components/Markdown/Markdown.js
appearhere/bloom
// @flow import React from 'react'; import CommonMark from 'commonmark'; import ReactRenderer from 'commonmark-react-renderer'; import cx from 'classnames'; import css from './Markdown.css'; type Props = { children: string, className?: string, overrideClassname?: boolean, linkTarget: '_self' | '_blank', esc...
react/20161128/src/js/B.js
fengnovo/diary
import React from 'react' class B extends React.Component { constructor (props) { super(props) this.handleClickOne = this.handleClickOne.bind(this) this.handleClickFour = ::this.handleClickFour function map(func) { var mapped = new Array(this.length); for(var...
classic/src/scenes/mailboxes/src/Components/ServiceTooltip/ServiceTooltipBookmarkItem.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { withStyles } from '@material-ui/core/styles' import TooltipSectionListItem from 'wbui/TooltipSectionListItem' import TooltipSectionListItemText from 'wbui/TooltipSectionListItemText' import To...
appbase-react-frontend/src/components/DeleteForm.js
corysimmons/appbase-express-react-tutorial
import React from 'react' export default props => { return ( <div> <h2>DELETE</h2> <form onSubmit={props.deleteDog}> <input type="text" name="delete_dogId" placeholder="Document ID" onChange={props.handleChange} value={props.dogId} /> <button type="submit">Delete Dog</button> <...
src/js/containers/DevTools.js
akonyushevskiy/matchmaking
import React from 'react'; import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import SliderMonitor from 'redux-slider-monitor'; // createDevTools t...
app/assets/javascripts/react/decorators/BoxPropTypes.js
Madek/madek-webapp
import React from 'react' import { pick } from 'active-lodash' module.exports = { filterConfigProps() { return React.PropTypes.shape({ search: React.PropTypes.string, meta_data: React.PropTypes.arrayOf(React.PropTypes.shape({ key: React.PropTypes.string.isRequired, match: React.PropT...
client/src/app/main/main-check-ticket-page.js
ivandiazwm/opensupports
import React from 'react'; import classNames from 'classnames'; import {connect} from 'react-redux'; import history from 'lib-app/history'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import SessionStore from 'lib-app/session-store'; import Widget from 'core-components/widget'; import Header ...
src/interface/icons/Person.js
anom0ly/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=person&i=3090778 // person by Marc Torrada from the Noun Project const Icon = ({ ...others }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...others}> <path d="M51.7,46.5c-10.1,0-18.3-8.2-18.3-18.3S41.6,9.9...
app/javascript/mastodon/features/ui/components/bundle.js
PlantsNetwork/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const emptyComponent = () => null; const noop = () => { }; class Bundle extends React.PureComponent { static propTypes = { fetchComponent: PropTypes.func.isRequired, loading: PropTypes.func, error: PropTypes.func, children: PropTypes.fu...
client/src/renderToStrings.js
vfeskov/win-a-beer
import React from 'react' import { renderToString } from 'react-dom/server' import Root from './components/Root' import MuiThemeProvider from '@material-ui/core/styles/MuiThemeProvider' import configureStore from './store/configureStore' import rootSaga from './sagas' import createTheme from './theme/createTheme' impor...
src/components/Bulk/BulkCreateView/SearchResults/SearchResults.js
City-of-Helsinki/helerm-ui
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { every, filter, isEqual } from 'lodash'; import { getStatusLabel } from '../../../../utils/helpers'; import './SearchResults.scss'; import { getDisplayLabelForAttribute } from '../../../../utils/attributeHelper...
node_modules/react-router/es6/RouterContext.js
Win-Myint/ReactChallenge2
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < argum...
src/client/lib/flux/flux.react.js
skaldo/este
import Component from '../../components/component.react'; import FluxClass from './flux'; import React from 'react'; import invariant from 'invariant'; // https://developers.google.com/web/updates/2012/08/When-milliseconds-are-not-enough-performance-now?hl=en function now() { const hasBrowserPerformanceNow = pro...
src/SubRouterFactory.js
UgnisSoftware/react-subrouter
import React from 'react'; import SubRouter from './SubRouter.js'; function SubRouterFactory(routes, defaultRoute){ class Index extends SubRouter { constructor(props, state){ super(props, state, routes, defaultRoute); } } Index.childContextTypes = { isActive: React.Pr...
app/javascript/mastodon/features/ui/components/column_header.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, ...
app/containers/HomePage/index.js
jwarning/react-ci-test
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { makeSelectRepos, mak...
lib/items.js
jihdeh/react-native-dropdown
import React, { Component } from 'react'; import { Dimensions, StyleSheet, View, TouchableWithoutFeedback, Text, ScrollView } from 'react-native'; const window = Dimensions.get('window'); const styles = StyleSheet.create({ scrollView: { height: 120, width: 198 //TODO: this needs to be dynamic ...
src/components/Layout/Layout.js
tinwaisi/take-home
/** * 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-...
frontend/src/components/reports/cfeiManagement/countriesCell.js
unicef/un-partner-portal
import R from 'ramda'; import React from 'react'; import PropTypes from 'prop-types'; import { TableCell } from 'material-ui/Table'; import withCountryName from '../../common/hoc/withCountryName'; import EoiCountryCell from '../../eois/cells/eoiCountryCell'; const CountriesCell = (props) => { const { locations } = p...
ajax/libs/react-instantsearch/4.1.0/Connectors.js
jdh8/cdnjs
/*! ReactInstantSearch 4.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
public/components/tehtPage/tabsComponents/reusables/VaarallisetPohjapiirros.js
City-of-Vantaa-SmartLab/kupela
import React from 'react'; import Showcase from './templates/Showcase'; const VaarallisetPohjapiirros = (props) => ( <div className="vaarallisetpohja"> <p><b>Pohjapiirros:</b></p> {props.dangerfloorplans.map((plan) => <a onClick={props.selectSubItem(plan.nameId, plan, 'yesLayer', 'image...
app/containers/GamesCollection.js
SiDevesh/Bootleg
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import GamesCollectionComponent from '../components/GamesCollectionComponent'; import { callGameSelect, callGameDeSelect, callGameShowNav } from '../actions'; const mapStateToProps = (state) => { return { collection: state....
Libraries/Modal/Modal.js
Guardiannw/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...
src/ShowBox.js
evanchiu/tele-js
import React, { Component } from 'react'; var dateFormat = require('dateformat'); class ShowBox extends Component { render() { var titleLine = ''; var dateLine = ''; const episodes = this.props.episodes // Determine total size for show across episodes var sizeBytes = 0; for (var j = 0; j < e...
lib/site/topic-layout/topic-article/comments/list/comment/footer/component.js
DemocraciaEnRed/vicentelopez
import React from 'react' import t from 't-component' export default function CommentFooter (props) { return ( <footer className='actions'> <div className='votes'> <span className='score'> <span>{props.score}</span> {' '} </span> {!props.isOwner && ( <b...
react-weather-app/src/components/App.js
chrisakakay/project-depot
import React, { Component } from 'react'; import City from './City'; import CurrentWeather from './CurrentWeather'; import Options from './Options'; import Forecast from './Forecast'; import axios from 'axios'; import { connect } from 'react-redux'; import { formatCurrent, formatForecast } from '../helpers/dataFormatte...
src/svg-icons/image/flare.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlare = (props) => ( <SvgIcon {...props}> <path d="M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-...
src/shared/components/indexTable/indexTable.js
tskuse/operationcode_frontend
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import Heading from 'shared/components/heading/heading'; import ReactTable from 'react-table'; class IndexTable extends Component { state = { loggedIn: true, data: [], }; componentD...