path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
ui/js/pages/event/EventPreview.js
ericsoderberg/pbc-web
import React from 'react'; import PropTypes from 'prop-types'; import PageHeader from '../../components/PageHeader'; import EventContents from './EventContents'; const EventPreview = (props) => { const { item } = props; const event = item; return ( <main className="page-preview"> <PageHeader title="Pr...
client/app/components/Cell.js
jfanderson/KIM
import React from 'react'; import classnames from 'classnames'; import sign from '../services/sign.js'; const PropTypes = React.PropTypes; class Cell extends React.Component { constructor() { super(); this.state = { editing: false, value: '', }; } //----------------------------------- ...
src/components/Landing/Landing.js
NeversSync/gongfutea-v2
import React, { Component } from 'react'; import styled from 'styled-components'; import backgroundImage from '../../assets/img/tetsu2.png'; import List from '../List/List'; import Map from '../Map/Map'; const Wrapper = styled.div` height: 1900px; `; const BackgroundImage = styled.div` background: url(${backgroun...
src/svg-icons/action/view-carousel.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewCarousel = (props) => ( <SvgIcon {...props}> <path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/> </SvgIcon> ); ActionViewCarousel = pure(ActionViewCarousel); ActionViewCarousel.displayName =...
components/Tether/Tether.story.js
rdjpalmer/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import Tether, { VERTICAL_ATTACHMENTS, HORIZONTAL_ATTACHMENTS } from './Tether'; const tetherStories = storiesOf('Tether', module) .add('Tether left top', () => ( <div style={ { marginTop: '10rem', height: '100vh', ...
docs/src/app/components/pages/components/SelectField/Page.js
rscnt/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import selectFieldReadmeText from './README'; import SelectFieldExampleSimple fr...
src/assets/js/react/components/Template/TemplateCloseDialog.js
blueliquiddesigns/gravity-forms-pdf-extended
import React from 'react' import PropTypes from 'prop-types' import { withRouter } from 'react-router-dom' /** * Renders our close dialog element * * @package Gravity PDF * @copyright Copyright (c) 2020, Blue Liquid Designs * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @sin...
js/App/Components/Device/Common/USetting.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
examples/basic/app.js
rackt/react-modal
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Modal from 'react-modal'; import SimpleUsage from './simple_usage'; import MultipleModals from './multiple_modals'; import Forms from './forms'; import ReactRouter from './react-router'; import NestedModals from './nested_modals'; const...
src/components/UploadTrack.js
ryanthomas30/AudioNimbus
import React, { Component } from 'react'; import * as actions from '../actions'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import Header from 'grommet/components/Header'; import Box from 'grommet/components/Box'; import Button from 'grommet/components/Button'; import FormFie...
src/svg-icons/device/signal-wifi-3-bar.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.0...
spec/coffeescripts/jsx/due_dates/DueDateCalendarsSpec.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...
blueocean-material-icons/src/js/components/svg-icons/av/branding-watermark.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvBrandingWatermark = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/> </SvgIcon> ); AvBrandingWatermark.displayName = 'AvBrandingWatermark'; AvBrandin...
packages/vulcan-core/lib/modules/containers/registeredMutation.js
VulcanJS/Vulcan
/* HoC that provides a simple mutation that expects a single JSON object in return Example usage: export default withMutation({ name: 'getEmbedData', args: {url: 'String'}, })(EmbedURL); */ import React from 'react'; import { useMutation } from '@apollo/client'; import gql from 'graphql-tag'; import { expandQu...
client/modules/Reason/components/List/List.js
b3j0f/lechangement
import './List.css'; import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import ActionSearch from 'material-ui/svg-icons/action/search'; import Item from '../Item/Item'; class List extends Component { constructor(props) { super(props); this.state = { ...
src/continuous-deployment/presentation.js
travi/presentations
import React from 'react'; import createTheme from 'spectacle/lib/themes/default'; import {Appear, Code, Deck, Heading, Image, Link, List, ListItem, Slide, Text} from 'spectacle'; import Terminal from 'spectacle-terminal'; import Typist from 'react-typist'; import CodeSlide from 'spectacle-code-slide'; import ImageSlid...
app/components/social-list.js
eladg/gariany.com
import React from 'react'; class SocialList extends React.Component { render() { return ( <nav className="nav-icons"> <ul className="nav-list"> <li className="nav-icon"> <a href="https://github.com/eladg"><i className="fa fa-github"></i></a> </li> <li class...
src/components/LoadingComponent.js
AzSiAz/LN-Reader
import React from 'react' import { View, Text, StyleSheet } from 'react-native' export default class LoadingComponent extends React.PureComponent { render() { return ( <View style={styles.container}> <Text style={styles.loader}> Loading </Text> <Text> {this.props...
app/javascript/mastodon/features/ui/components/compose_panel.js
tootsuite/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import SearchContainer from 'mastodon/features/compose/containers/search_container'; import ComposeFormContainer from 'mastodon/features/compose/containers/compose_form_container'; import NavigationContainer from 'mast...
client/src/javascript/components/icons/FolderClosedOutlined.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class FolderClosedOutline extends BaseIcon { render() { return ( <svg className={`icon icon--directory-outlined ${this.props.className}`} viewBox={this.getViewBox()}> <path d="M52.3,47.47a7.07,7.07,0,0,1-7,7H7a7.07,7.07,0...
docs/build.js
apkiernan/react-bootstrap
/* eslint no-console: 0 */ import fsp from 'fs-promise'; import path from 'path'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import {match, RouterContext} from 'react-router'; import Root from './src/Root'; import routes from './src/Routes'; import metadata from './generate-metadata'; ...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
cnbin/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ContactItem extends React.Com...
src/components/FuelSavingsTextInput.js
mikejablonski/newo-brew-web
import React from 'react'; import PropTypes from 'prop-types'; const FuelSavingsTextInput = (props) => { const handleChange = (e) => { props.onChange(props.name, e.target.value); }; const textInputStyle = { 'fontSize': '16px' }; return ( <input className="form-control" type="text" ...
src/js/views/list-details.js
electronspin/touchstonejs-starter
import Container from 'react-container'; import React from 'react'; module.exports = React.createClass({ statics: { navigationBar: 'main', getNavigation (props, app) { var leftLabel = props.prevView === 'list-simple' ? 'Simple' : 'Complex'; return { leftArrow: true, leftLabel: leftLabel, leftAct...
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js
just-boris/create-preact-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import CodeBlock from '../components/CodeBlock'; import { applyStyles } from '../utils/dom/css'; ...
components/BBButton.js
FredTingaud/quick-bench-front-end
import React from 'react'; import InteropHelper from 'components/InteropHelper'; import { Button, Tooltip, OverlayTrigger } from 'react-bootstrap'; import svg from 'components/resources/ico/bb.svg'; class BBButton extends React.Component { openCodeInBB(text, options) { let clientstate = { text: text }; ...
src/components/home/home.js
nordsoftware/react-foundation-docs
import React from 'react'; import { Sizes, GridContainer, Grid, Cell, Link, } from 'react-foundation'; import ButtonDocs from '../docs/button'; import ButtonGroupDocs from '../docs/button-group'; import SwitchDocs from '../docs/switch'; import MenuDocs from '../docs/menu'; import PaginationDocs from '../docs/...
github-projects/src/routes/ProjectList.js
xrlin/xrlin.github.io
import React from 'react'; import { connect } from 'dva'; import ProjectComponent from '../components/ProjectComponent'; import styles from './ProjectList.css'; var ProjectList = React.createClass({ componentWillMount: function () { this.serverRequest = fetch("https://api.github.com/users/xrlin/repos").then(fun...
src/modules/BootPagination/BootPaginationItem.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules } from '../../lib/' const propTypes = { active: PropTypes.bool, children: PropTypes.node, className: PropTypes.string, cssModule: PropTypes.object, disabled: PropTypes.bool, tag: PropTypes.oneO...
src/components/topic/related/related-as-cards.js
nickhsine/twreporter-react
import { shortenString } from '../../../utils/string' import base from './base' import Image from '@twreporter/react-article-components/lib/components/img-with-placeholder' import mq from '../../../utils/media-query' import React from 'react' import styled from 'styled-components' const ImageBorder = styled.div` ${m...
client/containers/Root.prod.js
codeskeptk/capital
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import App from './App'; export default ({ store, }) => ( <Provider store={store}> <App /> </Provider> );
src/components/Responsive.js
WillMayger/CV
import React from 'react'; import PropTypes from 'prop-types'; const Responsive = props => ( <div className="too-small"> <span>This page is designed to be like a document and is therefore not responsive. Please use a device with a screen size of 1366px or more (most laptops and desktops). Thank you f...
src/components/App.js
hiyangguo/react-netease-cloud-music
/** Libs **/ import React, { Component } from 'react'; /** Components **/ import AppBar from 'material-ui/AppBar'; import PropTypes from 'prop-types'; import Avatar from 'material-ui/Avatar'; import IconButton from 'material-ui/IconButton'; import NavigationMenu from 'material-ui/svg-icons/navigation/menu'; import Play...
docs/app/Examples/collections/Form/GroupVariations/index.js
koenvg/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const FormGroupVariationsExamples = () => ( <ExampleSection title='Group Variations'> <ComponentExample title='Evenly Divid...
pootle/static/js/admin/components/Language/LanguageForm.js
r-o-b-b-i-e/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import FormElement from 'compo...
examples/src/components/NumericSelect.js
stephennyu/select-react
import React from 'react'; import Select from 'react-select'; var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes.string }, getInitialState () { return { options: [ { value: 10, label: 'Ten' }, { value: 11, label: 'Eleven' }, { ...
src/components/App/index.js
lucasreppewelander/react-stripe
import React, { Component } from 'react'; import _ from 'lodash'; import Login from '../Login'; import config from '../../config'; import Customers from '../../resources/customers'; import Modal from '../Modal'; import './App.scss'; class App extends Component { constructor(props) { super(props); ...
node_modules/react-bootstrap/es/Popover.js
vitorgomateus/NotifyMe
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/routes/error/index.js
kumarrus/MuffinMan
/** * 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 ErrorPage from './Err...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsUninitialized.js
gabelevi/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps: DefaultProps; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { static defaultProp...
src/client.js
justin808/react-redux-universal-hot-example
/* global __DEVTOOLS__ */ import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import createStore from './redux/create'; import ApiClient from './ApiClient'; import universalRouter from './universalRouter'; const history = new Browser...
examples/shopping-cart/src/components/ProductsContainer.js
aldanor/nuclear-js
import React from 'react' import ProductItem from '../../common/components/ProductItem' import ProductsList from '../../common/components/ProductsList' import reactor from '../reactor' import getters from '../getters' import actions from '../actions' const ProductItemContainer = React.createClass({ onAddToCartCli...
src/server/controllers/serverRenderCtrl.js
skcary/orangeB
import React from 'react' import { RouterContext } from 'react-router' import { renderToString } from 'react-dom/server' import { Provider } from 'react-redux' import config from '../../config' import configureStore from '../../../app/store/configureStore' const store = configureStore() export default async (ctx, next...
src/svg-icons/action/alarm.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarm = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03...
lens-ui/app/components/SavedQueryPreviewComponent.js
sushrutikhar/grill
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
ReactComponents/UserDownloader.js
kunovg/pldownload
import React, { Component } from 'react'; import io from 'socket.io/node_modules/socket.io-client'; import PldAuthService from './PldAuthService'; import {Button, Table, ProgressBar} from 'react-bootstrap'; import FaDownload from 'react-icons/lib/fa/download'; import FaRefresh from 'react-icons/lib/fa/refresh'; import ...
node_modules/_rc-time-picker@2.4.1@rc-time-picker/es/TimePicker.js
ligangwolai/blog
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React, { Component } from 'react'; im...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-pager.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ColorSchemaMixin, Tools} from '../common/common.js'; import {RowMixin, Row, Column, Wrapper, Flc} from '../layout/layout.js'; import Glyphicon from './glyphicon.js'; import Link from './link.js'; import './pager.less'; export const Pager = React.createCla...
Console/app/node_modules/rc-calendar/es/calendar/CalendarHeader.js
RisenEsports/RisenEsports.github.io
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import MonthPanel from '../month/MonthPanel'; import YearPanel from '../year/YearPanel'; import toFragment from 'rc-util/es/Children/mapSelf'; function goMonth(direction) { var next = this.props.value.cl...
src/website/app/demos/Grid/common/renderGridItems.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import GridItem from './DemoGridItem'; export default function renderGridItems(count: number) { let gridItems = []; for (let i = 0; i < count; i++) { gridItems.push(<GridItem key={i}>{i + 1}</GridItem>); } return gridItems; }
src/renderer/libraries/application.js
babie/retro-twitter-client
import _ from 'lodash' import application from '../singletons/application' import ChannelSelector from '../command-models/channel-selector' import DefaultWebBrowser from '../command-models/default-web-browser' import ipc from 'ipc' import React from 'react' import Root from '../components/root' import TwitterAccount fr...
src/svg-icons/editor/border-inner.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderInner = (props) => ( <SvgIcon {...props}> <path d="M3 21h2v-2H3v2zm4 0h2v-2H7v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zM9 3H7v2h2V3zM5 3H3v2h2V3zm12 0h-2v2h2V3zm2 6h2V7h-2v2zm0-6v2h2V3h-2zm-4 18h2v-2h-2v2zM13 ...
src/js/applets/applet.js
SpaceHexagon/pylon
import React from 'react'; export default class Applet extends React.Component { constructor() { super(); // Initial state of the component this.state = {name: 'generic applet'} } setName(name) { // When there's a change in the state, the component and all its sub-components get updated. this.setState({na...
src/client/home/components/Menu/Menu.js
noahamar/smlscrn
import React from 'react'; import classNames from 'classnames/bind'; import styles from './Menu.styl'; const cx = classNames.bind(styles); export default class Menu extends React.Component { constructor() { super(); } render() { return ( <div className={cx('Menu', { 'Menu--show': this.props.isS...
client/src/app/routes/graphs/containers/HighchartTables.js
zraees/sms-project
import React from 'react' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import HighchartTable from '../../../components/graphs/highchart/HighchartTable' export default () => ( ( <div id="content"> <div className="row"> <BigBreadcrumbs items={['HighchartTable...
js/components/list/list-thumbnail.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text, Thumbnail, Left, Body, Right } from 'native-base'; import { Actions } from 'react-native-rout...
src/routes/contact/index.js
samdenicola/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../compo...
src/components/about_me/about_me.js
jetshoji/Asia_Trip
import React, { Component } from 'react'; class AboutMe extends Component{ render(){ return( <div> <p>Welcome to Welcome </p> </div> ); } } export default AboutMe;
src/svg-icons/image/rotate-90-degrees-ccw.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotate90DegreesCcw = (props) => ( <SvgIcon {...props}> <path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.7...
src/svg-icons/maps/map.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMap = (props) => ( <SvgIcon {...props}> <path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ...
docs/app/Examples/elements/Button/Content/ButtonExampleMultipleConditionals.js
aabustamante/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleMultipleConditionals = () => ( <Button.Group> <Button>One</Button> <Button.Or /> <Button>Two</Button> <Button.Or /> <Button>Three</Button> </Button.Group> ) export default ButtonExampleMultipleConditionals
app/javascript/mastodon/features/ui/components/column_subheading.js
imas/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;
app/components/Footer/index.js
Figedi/denon_menu
import React, { Component } from 'react'; import { Toolbar } from 'react-photonkit'; export default class Footer extends Component { props: { onQuit: () => void }; render() { return ( <Toolbar ptType="footer"> <div className="toolbar-actions"> <button onClick={this.props.onQuit} ...
example/examples/AnimatedMarkers.js
ali-alamine/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, Animated, } from 'react-native'; import MapView from 'react-native-maps'; const screen = Dimensions.get('window'); const ASPECT_RATIO = screen.width / screen.height; const LATITUDE = 37.78825; const LONGITUDE = -122...
src/containers/DevTools.js
steelx/ReduxWeatherApp
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 /> </Dock...
src/helpers/universalRouter.js
DenisPostu/react-redux-universal-hot-example
import qs from 'query-string'; import React from 'react'; import {match, RoutingContext} from 'react-router'; import createRoutes from '../routes'; import {Provider} from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : c...
hello-react/src/comment/components/CommentList.js
treason258/TreLibrary
import React from 'react'; import BaseComponent from '../BaseComponent.js' import CommentItem from "./CommentItem"; class CommentList extends BaseComponent { static defaultProps = { comments: [] } handleDeleteComment(index) { if (this.props.onDeleteComment) { this.props.onDele...
packages/wix-style-react/src/Highlighter/HighlightedItem.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import escapeRegExp from 'lodash/escapeRegExp'; class HighlightedItem extends React.PureComponent { static propTypes = { /** Applied as data-hook HTML attribute that can be used in the tests */ dataHook: PropTypes.string, match: PropTypes.str...
src/svg-icons/editor/mode-comment.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorModeComment = (props) => ( <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/> </SvgIcon> ); EditorModeComment = pure(EditorModeComment); Edito...
web/myonlineband-react/src/index.js
myonlineband/MyOnlineBand
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();
node_modules/react-shadow/example/js/app.js
myapos/ClientManagerSpringBoot
import React from 'react'; import { render } from 'react-dom'; import ready from 'document-ready-promise'; import Weather from './weather'; ready().then(() => render(<Weather />, document.querySelector('section.container')));
examples/universal/client/index.js
motephyr/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
test/integration/static/pages/dynamic.js
nelak/next.js
/* global location */ import React from 'react' import Link from 'next/link' export default class DynamicPage extends React.Component { state = {} static getInitialProps ({ query }) { return { text: query.text } } componentDidMount () { const [, hash] = location.href.split('#') this.setState({ ha...
src/index.js
RanjithNair/RJTube
// modules import { AppContainer } from 'react-hot-loader' import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { syncHistoryWithStore } from 'react-router-redux' import { browserHistory } from 'react-router' import injectTapEventPlugin from 'react-tap-event-plugin' i...
node_modules/react-bootstrap/es/TabContent.js
chenjic215/search-doctor
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/svg-icons/device/signal-cellular-no-sim.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
app/javascript/mastodon/features/hashtag_timeline/index.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import ColumnSettingsContainer from './...
frontend/src/Components/Table/VirtualTableSelectAllHeaderCell.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import CheckInput from 'Components/Form/CheckInput'; import VirtualTableHeaderCell from './VirtualTableHeaderCell'; import styles from './VirtualTableSelectAllHeaderCell.css'; function getValue(allSelected, allUnselected) { if (allSelected) { return ...
src/components/tap/TapLineItem.js
Sawtaytoes/Ghadyani-Framework-Webpack-React-Redux
import PropTypes from 'prop-types' import React from 'react' import { connect } from 'react-redux' import { tapMessageType, tapColor, } from 'reducers/tap/helpers' const headerStyles = { margin: '10px 10px 6px', fontSize: '1em', } const Header = ({ text }) => ( <div style={headerStyles}> {text} </div> ) Hea...
src/components/theme-giraffe/petition-message.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' import { Message } from 'GiraffeUI/message' import PetitionFlagForm from '../../containers/petition-flag-form' const hasTag = (tag, petition) => Boolean(petition.tags && petition.tags.filter(t => t.name === tag).length) export const PetitionMessage = ({...
src/Accordion/index.js
daviferreira/react-sanfona
'use strict'; import cx from 'classnames'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { arrayify, getChildrenActiveItems, getActiveItems, isSame } from './utils'; export default class Accordion extends Component { constructor(props) { super(props); this.st...
node_modules/react-bootstrap/es/NavbarHeader.js
joekay/awebb
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 ...
packages/now-cli/test/dev/fixtures/23-docusaurus/src/pages/index.js
zeit/now-cli
import React from 'react'; import classnames from 'classnames'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const features = [ {...
src.test/utils-is-xxx.js
epsitec-sa/electrum
/* global describe it */ import {expect} from 'mai-chai'; import React from 'react'; import {isComponent} from '../src/utils/is-component.js'; import {isStatelessFunctionComponent} from '../src/utils/is-stateless-function-component.js'; /******************************************************************************/...
examples/todo/js/components/TodoList.js
SBUtltmedia/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
examples/pagination/src/index.js
tannerlinsley/react-table
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
tests/site3/code2/components/component1.js
dominikwilkowski/cuttlebelle
import PropTypes from 'prop-types'; import React from 'react'; /** * The Component1 component for the header */ const Component1 = ({ _ID, _pages, _storeSet, _store, _body }) => { _storeSet({ title: _pages[ _ID ].title }); // getting the title from the store (to test the store) return ( <header> <h1>{ ...
public/app/components/base/confirm-dialog.js
vincent-tr/mylife-wine
import React from 'react'; import PropTypes from 'prop-types'; import * as mui from 'material-ui'; import { confirmable, createConfirmation } from 'react-confirm'; import Theme from './theme'; const ConfirmDialog = ({ show, proceed, /*dismiss,*/ cancel, /*confirmation,*/ options }) => ( <Theme> <mui.Dialog ...
src/svg-icons/image/movie-creation.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMovieCreation = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/> </SvgIcon> ); ImageMovieCreati...
src/svg-icons/av/replay-10.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay10 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1....
src/compos/Chat.js
Blacktoviche/RNChat
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Content, Header, Icon, Input, List, Item, Left, Body, Right, ListItem, Thumbnail, Text } from 'native-base'; import { updateChatList, searchTextChanged } from '../core/actions'; import * as backend from '../backend/Medi...
client/Admin/AdminPage.js
AnnotatedJS/meteor-react-start-app
import React from 'react'; import { PageTitle } from './../_App/PageTitle' export const AdminPage = () => ( <div className="container"> <PageTitle pageTitle='Admin Page' /> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel commodo massa, eu adipiscing mi. Class aptent taci...
node_modules/react-bootstrap/es/CarouselItem.js
firdiansyah/crud-req
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/routes/Itinerary/examples/ItineraryExamples.js
denimar/denibudget
import React from 'react'; import ItineraryPanel from '../components/ItineraryPanel'; import './ItineraryExamples.scss' class ItineraryExamples extends React.Component { getItinerary() { return { route: '1234', direction: 'V', trips: [ { id: 1, arrivalTime: '04:50',...
client/page/redirects/row-actions.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; import { connect } from 'react-redux'; import { translate as __ } from 'i18n-calypso'; /** * Internal dependencies */ import { RowActions, RowAction } from 'component/table/row-action'; import { performTableAction } from 'state/redirect/action'; import { ...
src/svg-icons/communication/call-merge.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMerge = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); CommunicationCallMerge...
app/jsx/outcomes/IndividualStudentMastery/OutcomeGroup.js
djbender/canvas-lms
/* * Copyright (C) 2018 - 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...
site/renderPath.js
Reggino/react-dnd
import React from 'react'; import IndexPage from './IndexPage'; export default function renderPath(path, props, onRender) { onRender( IndexPage.renderToString(props) ); }
src/components/Common/Tabs.js
MattMcFarland/tw-client
import React from 'react'; class Tabs extends React.Component { render () { const {activeTab, onFilter} = this.props; return ( <div className="tabs"> <ul className="tab-list"> <li> <button className={activeTab === "latest" ? 'active' : ''} data-filter="latest" onClick={...
src/svg-icons/social/sentiment-very-satisfied.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVerySatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1...