path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Label/Label.js
nreoch25/react-package-dev
import React from 'react'; import PropTypes from 'prop-types'; /** Label with required field display, htmlFor, and block styling */ function Label({htmlFor, label, required}) { return ( <label style={{display: 'block'}} htmlFor={htmlFor}> {label} { required && <span style={{color: 'red'}}> *</span> } <...
app/containers/DevTools.js
jkusachi/gitty
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 /> ...
src/admin/client/modules/products/list/components/list.js
cezerin/cezerin
import React from 'react'; import { List } from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Head from './head'; import ProductsListItem from './item'; import RaisedButton from 'material-ui/RaisedButton'; import FontIcon from 'material-ui/FontIcon'; import messages from 'lib/text'; import style...
src/components/Testimonials.js
maria-robobug/resume_viewer
import React from 'react'; class Testimonials extends React.Component { render () { return ( <section id="testimonials"> <div className="text-container"> <div className="row"> <div className="two columns header-col"> <h1><span>Client Testimonials</span...
src/svg-icons/image/photo-size-select-large.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectLarge = (props) => ( <SvgIcon {...props}> <path d="M21 15h2v2h-2v-2zm0-4h2v2h-2v-2zm2 8h-2v2c1 0 2-1 2-2zM13 3h2v2h-2V3zm8 4h2v2h-2V7zm0-4v2h2c0-1-1-2-2-2zM1 7h2v2H1V7zm16-4h2v2h-2V3zm0 16h2...
src/components/options/QRCodeShow.js
secretin/secretin-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import Secretin from 'secretin'; import QRCode from 'qrcode.react'; import Form from 'components/utilities/Form'; import Modal from 'components/utilities/Moda...
internals/templates/homePage/homePage.js
s0enke/react-boilerplate
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove * the ...
app/src/components/Badge.js
quiaro/chunches
import React from 'react'; import styled from 'styled-components'; const Styled = styled.span` position: absolute; top: 5px; right: 5px; background-color: ${props => props.theme.badge_background}; color: ${props => props.theme.badge_text}; font-size: 0.7rem; height: 1.2rem; width: 1.2rem; border-radi...
src/instacelebs.js
oded-soffrin/gkm_viewer
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tell webpack to load favicon.ico import './styles/styles.scss'; // Yep, that's right. You can import SASS/CSS files too! Webpack will r...
src/entypo/Raft.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Raft'; let EntypoRaft = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M5.6734395,19c-0.877316,0-1.6501045-0.3605442-2.1763153-1.0143661c-0.6450326-0.8027058-0.8514075-1.935459...
src/svg-icons/hardware/smartphone.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSmartphone = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> ); HardwareSmartphone = p...
src/router.js
102010cncger/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Switch, Route, Redirect, routerRedux } from 'dva/router' import dynamic from 'dva/dynamic' import App from 'routes/app' const { ConnectedRouter } = routerRedux const Routers = function ({ history, app }) { const error = dynamic({ app, com...
linksa/pana.js
liuhui219/linksa
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, ScrollView, ActivityIndicator, InteractionManager, Dimensions, ToastAndroid, TextInput, BackAndroid, Image, RefreshControl, ListView, } from 'react-native'; import ScrollableTabView, { Def...
src/svg-icons/image/wb-cloudy.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbCloudy = (props) => ( <SvgIcon {...props}> <path d="M19.36 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.64-4.96...
lib/components/TxAnalyzer/index.js
0mkara/etheratom
'use babel' // Copyright 2018 Etheratom Authors // This file is part of Etheratom. // Etheratom is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
pathfinder/vtables/applicationlifecycleprojects/src/index.js
leanix/leanix-custom-reports
// 3rd party css files import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import '../node_modules/bootstrap/dist/css/bootstrap-theme.min.css'; import '../node_modules/react-bootstrap-table/dist/react-bootstrap-table.min.css'; // Import css declarations for the report import './assets/main.css'; import '@l...
app/components/functionView.js
PPPatt/Lincroft
'use strict' import React from 'react' import {TouchableOpacity, View, Text} from 'react-native' const styles = require('../reusables/styles') module.exports = (args) => { return( <TouchableOpacity key={'fu'+args.funcID.toString()} style={styles.funcView}> <View style={styles.Row}> <View style={sty...
app/components/Items/Items.js
zhrkian/SolarDataApp
// @flow import React, { Component } from 'react'; import s from './Items.css' import { Grid, GridItem } from '../Layouts/Grid' import OpenFITS from '../../components/OpenFITS/OpenFITS' import ListItem from '../ListItem/ListItem' // .container img { // /* Just in case there are inline attributes */ // width: 100% ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
JuanLuisClaure/vistas
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
website/src/components/blog/Blog/index.js
jwngr/sdow
import React from 'react'; import {Helmet} from 'react-helmet'; import Logo from '../../common/Logo'; import StyledLink from '../../common/StyledLink'; import NewsletterSignupForm from '../NewsletterSignupForm'; import { Title, Wrapper, Divider, BlogPostCardWrapper, BlogPostDate, BlogPostDescription, } fr...
client/src/components/Tag/CompactTagList.js
silverstripe/silverstripe-admin
import React, { Component } from 'react'; import TagList from 'components/Tag/TagList'; import SummaryTag from './SummaryTag'; import ResizeAware from 'components/ResizeAware/ResizeAware'; import classnames from 'classnames'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; /** * Extension of Tag...
src/routes/dashboard/components/weather.js
zhangjingge/sse-antd-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './weather.less' function Weather ({ city, icon, dateTime, temperature, name }) { return (<div className={styles.weather}> <div className={styles.left}> <div className={styles.icon} style={{ backgroundImage: `url(${icon...
src/Main/News/Articles/2017-10-21-DiscordBot/index.js
hasseboulen/WoWAnalyzer
import React from 'react'; import DiscordLogo from 'Main/Images/Discord-Logo+Wordmark-White.svg'; import RegularArticle from 'Main/News/RegularArticle'; import DiscordBotGif from './discord-bot.gif'; export default ( <RegularArticle title="The WoWAnalyzer Discord bot" published="2017-12-24" bodyStyle={{ padding: 0...
src/components/molecules/FileCard/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import {Link, TitleSection, FileStatus} from 'components'; import {size, palette, font} from 'styled-theme'; import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card'; import FlatButton from 'material-u...
docs/src/app/components/pages/components/Slider/Page.js
ngbrown/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 sliderReadmeText from './README'; import SliderExampleSimple from './Exam...
packages/material-ui-icons/src/FilterBAndW.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FilterBAndW = props => <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16l-7-8v8H5l7-8V5h7v14z" /> </SvgIcon>; FilterBAndW = pure(FilterBAnd...
app/javascript/mastodon/features/list_editor/components/edit_list_form.js
yukimochi/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
src/React/Widgets/AnnotationEditorWidget/BackgroundScore.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactWidgets/AnnotationEditorWidget.mcss'; export default function render(props) { return ( <div className={style.backgroundScore} style={{ background: props.color, top: `${props.index * props....
index.android.js
dylanbathurst/bacon-mobile
import './shim'; import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import { Provider } from 'react-redux'; import { createStore, compose, applyMiddleware } from 'redux'; import { persistStore, autoRehydrate } from 'redux-persist'; import createSensitiveStorage from 'redux-persist-sen...
project/src/pages/Page/components/Navigation/Navigation.js
boldr/boldr
/* eslint-disable no-return-assign, react/no-unused-state, no-implicit-coercion */ // @flow import React from 'react'; import type { Node } from 'react'; import Link from 'react-router-dom/Link'; import NavLink from 'react-router-dom/NavLink'; import { Cog, Container, Navbar, NavbarBrand, NavbarBurger, Navb...
src/components/common/InnerHtmlStripTags.js
VGraupera/1on1tracker
import React from 'react'; import String from 'string'; import PropTypes from 'prop-types'; /** * @description propTypes for InnerHtmlStripTags * @type {Object} */ const propTypes = { html: PropTypes.string.isRequired, }; /** * @function InnerHtmlStripTags * @param {String} html html string * @returns {XML} ...
src/client/components/ReputationTag.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import { Tag } from 'antd'; import BTooltip from './BTooltip'; import formatter from '../helpers/steemitFormatter'; function ReputationTag({ intl, reputation }) { const formattedReputation = formatter.reputationFl...
src/components/Modal/ModalBtn/ModalBtn.js
jmlweb/paskman
import React from 'react'; import PT from 'prop-types'; import styled from 'styled-components'; import { stripUnit } from 'polished'; import ModalBtnSVG from './ModalBtnSVG'; import spacing from '../../../styles/spacing'; import topBarHeight from '../../../styles/topBarHeight'; const StyledModalBtn = styled.button` ...
examples/huge-apps/components/Dashboard.js
malte-wessel/react-router
import React from 'react' import { Link } from 'react-router' class Dashboard extends React.Component { render() { const { courses } = this.props return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of you...
3-add-redux/src/layout/index.js
chemoish/react-universal-tutorial
import React from 'react'; import { Link } from 'react-router'; export default function Layout(props) { return ( <div> <header> <nav> <ul> <li> <Link to="/">Home</Link> </li> <li> <Link to="/about">About</Link> ...
examples/Demo.js
yeyus/react-vertical-timeline
import React from 'react'; import { Timeline, Bookmark, Marker } from '../src/index'; export default class Demo extends React.Component { constructor(props) { super(props); this.state = { progress: 50 }; this.increment = this.increment.bind(this); this.progressClick = this.progressClick.bi...
src/svg-icons/editor/border-all.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderAll = (props) => ( <SvgIcon {...props}> <path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/> </SvgIcon> ); EditorBorderAll = pure(EditorBorderAll); EditorBorderAll....
docs/src/ComponentsPage.js
Lucifier129/react-bootstrap
import React from 'react'; import findIndex from 'lodash-compat/array/findIndex'; import AutoAffix from 'react-overlays/lib/AutoAffix'; import Waypoint from 'react-waypoint'; import Nav from '../../src/Nav'; import NavItem from '../../src/NavItem'; import Anchor from './Anchor'; import NavMain from './NavMain'; impor...
components/User/UserProfile/ChangePicture.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import UserPicture from '../../common/UserPicture'; import ChangePictureModal from './ChangePictureModal'; import { FormattedMessage, defineMessages } from 'react-intl'; import changeUserData from '../../../actions/user/userprofile/changeUserData'; class C...
apps/marketplace/components/Brief/Edit/AddSellerActions.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import AUlinklist from '@gov.au/link-list/lib/js/react.js' import styles from './AddSellerActions.scss' const AddSellerActions = props => { const { id, onRemoveSellerClick } = props return ( <div className={styles.selectedItemActionsContainer}> ...
js/common/SelectableButton.js
BarberHour/barber-hour
import React, { Component } from 'react'; import { View, Text, StyleSheet, Image } from 'react-native'; import Touchable from './Touchable'; const SelectableButton = (props) => { let styleKey; if (props.disabled) { styleKey = 'disabled'; } else if (props.selected) { styleKey = 'selected'; } el...
test/test_helper.js
nik149/react_test
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
16/notes/src/pages/notes/NoteList.js
nanohop/hop_into_react
import React, { Component } from 'react'; import { PageHeader, Button, ListGroup } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import NoteItem from './NoteItem'; class NoteList extends Component { render() { if(!this.props.loaded) { return ( <div className="loading">Load...
src/routes/contact/index.js
AlanDeLonga/portfolio
import React from 'react'; import Layout from '../../components/Layout'; import Contact from './Contact'; const title = 'Contact Us'; export default { path: '/contact', action() { return { title, component: <Layout><Contact title={title} /></Layout>, }; }, };
src/main/app/scripts/components/Siderbar.js
ondrejhudek/hudy-app
import React from 'react' import { LeftNav } from 'material-ui' import FontAwesome from 'react-fontawesome' import Menu from '../components/Menu' class Sidebar extends React.Component { constructor(props) { super(props) this.state = { open: true } } render() { ...
fmi-2022-05-react-todos/src/About.js
iproduct/course-node-express-react
import React from 'react' export const About = ({application}) => { return ( <h2>About the {application} application ...</h2> ) }
src/containers/Account/Account.js
baruinho/cashier
import React, { Component } from 'react'; import { connect } from 'react-redux'; import AccountBalance from '../AccountBalance/AccountBalance'; import TransactionList from '../../components/TransactionList/TransactionList'; import * as accountActions from '../../redux/modules/accounts/actions'; import { getTransactio...
actor-apps/app-web/src/app/components/Install.react.js
liqk2014/actor-platform
import React from 'react'; export default class Install extends React.Component { render() { return ( <section className="mobile-placeholder col-xs row center-xs middle-xs"> <div> <img alt="Actor messenger" className="logo" src="assets/img/logo.png" ...
example/examples/CustomOverlayXMarksTheSpot.js
zigbang/react-native-maps
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { Polygon, Polyline, Marker } from 'react-native-maps'; class XMarksTheSpot extends React.Component { render() { return ( <View> <Polygon coordinates={this.props.coordinates} ...
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/vibration.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationVibration = (props) => ( <SvgIcon {...props}> <path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0-.83-.67-1.5-1.5-1.5zM16 19H8V5h8...
lib/components/current-weather/summary.js
dunncl15/weathrly
import React from 'react'; const Summary = ({ weather }) => { const today = weather[0].forecast.simpleforecast.forecastday[0]; return ( <div> <p className='summary'> {weather[0].forecast.txt_forecast.forecastday[0].fcttext} </p> </div> ); }; export default Summary;
src/components/Tickets/index.js
nadavspi/UnwiseConnect
import * as TicketsActions from '../../actions/tickets'; import * as UserActions from '../../actions/user'; import AddProject from './AddProject'; import CreateTicketForm from './CreateTicketForm'; import Projects from './Projects'; import React, { Component } from 'react'; import Table from './Table'; import TogglePro...
packages/wix-style-react/src/ListItemAction/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, columns, divider, example as baseExample, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import icons from '../../../stories/utils/icons-for-story'; import * as examples from './examples'...
src/demo-data/data01.js
filipdanic/react-botkit
import React from 'react'; const userTypingInterval = 3000; const botTypingInterval = 2000; const GIF = <img src="https://media.giphy.com/media/daUOBsa1OztxC/giphy.gif" alt="jake from AT" style={{ height: 150 }} /> const CTA = <span> So… <strong><a href="https://github.com/filipdanic/react-botkit" target="_blank">ge...
src/svg-icons/social/mood.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialMood = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.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 8zm3.5-9c.83 ...
src/assets/js/react/components/Template/TemplateScreenshots.js
blueliquiddesigns/gravity-forms-pdf-extended
import PropTypes from 'prop-types' import React from 'react' /** * Display the Template Screenshot for the individual templates (uses different markup - out of our control) * * @package Gravity PDF * @copyright Copyright (c) 2020, Blue Liquid Designs * @license http://opensource.org/licenses/gpl-2.0.php...
examples/async/index.js
gaulucky92/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
src/helpers/shadowDOM.js
agutoli/react-styled-select
require('../polyfill') import React from 'react' import ShadowDOM from 'react-shadow' export default (element) => { return class ShadowDOMHelper extends React.PureComponent { constructor(props) { super(props) this.state = { stylesheet: false } } applyStylesheet = (classNameID...
app/components/Table/index.js
VonIobro/ab-web
/** * Created by helge on 14.02.17. */ import React from 'react'; import PropTypes from 'prop-types'; import { Board } from './Board'; import TableMenu from '../../containers/TableMenu'; import ActionBar from '../../containers/ActionBar'; import tableImage from './tableBG.svg'; import Pot from '../Pot'; import Curta...
web/app/layout/main.js
bitemyapp/serials
// @flow import React from 'react' import {RouteHandler, Link} from 'react-router' import {assign} from 'lodash' import {Users} from '../model/user' import {background, Colors, clickable, displayIf} from '../style' import {AlertView} from '../alert' import {Alerts} from '../model/alert' import {Routes, transitionTo}...
src/components/app.js
marcusdarmstrong/cloth-io
// @flow import React from 'react'; import { Provider } from 'react-redux'; import Route from './route'; import Post from './post'; import Home from './home'; import ShareForm from './share-form'; import Frame from './frame'; import Comments from './comments'; import binder from './binder'; const BoundPost = binder(P...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch04/04_08/finish/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' import './stylesheets/ui.scss' import { App } from './components/App' window.React = React render( <App />, document.getElementById('react-container') )
todo-app/src/index.js
mlaskowski/react
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; function Square(props) { return ( <button className="square" onClick={props.onClick}> {props.value} </button> ); } class Board extends React.Component { renderSquare(i) { return ( ...
src/components/Col/Col.js
aaronvanston/react-flexa
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { themeProvider } from '../../theme'; import { filterProps, mediaQuery, columnWidth, gutter, CSSProperty } from '../../helpers'; const Col = styled(props => React.createElement(props.elementType, filterProp...
src/documentation/RegularPage.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import Link from '../components/Link'; import Footer from '../components/Footer'; import Search from '../components/Search'; import { SecondaryNavigation, SecondaryNavigationTitle, } from '../components/SecondaryNavigation'; import Breadcrumb from '.....
src/main/resources/static/bower_components/jqwidgets/demos/react/app/numberinput/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxNumberInput from '../../../jqwidgets-react/react_jqxnumberinput.js'; class App extends React.Component { render () { return ( <div id='jqxWidget'> <div style={{ marginTop: 10 }}>Number</div> <JqxN...
src/Parser/Hunter/BeastMastery/Modules/Traits/CobraCommander.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from "common/SpellIcon"; import SpellLink from 'common/SpellLink'; import ItemDamageDone from 'Main/ItemDamageDone'; class CobraCommander...
blueocean-material-icons/src/js/components/svg-icons/device/graphic-eq.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceGraphicEq = (props) => ( <SvgIcon {...props}> <path d="M7 18h2V6H7v12zm4 4h2V2h-2v20zm-8-8h2v-4H3v4zm12 4h2V6h-2v12zm4-8v4h2v-4h-2z"/> </SvgIcon> ); DeviceGraphicEq.displayName = 'DeviceGraphicEq'; DeviceGraphicEq.muiName = 'SvgIcon'; ...
src/svg-icons/action/face.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFace = (props) => ( <SvgIcon {...props}> <path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-...
test/integration/css-fixtures/npm-import-nested/pages/_app.js
zeit/next.js
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src0/components/Bids.js
yaswanthsvist/openCexTrade
import React from 'react'; import { StyleSheet, Text,Button, View,ScrollView,StatusBar,Image } from 'react-native'; class Bids extends React.Component{ constructor(props){ super(props) this.state={}; } static navigationOptions={ title:"Bids", drawerLabel: 'Home', tabBarLabel: 'Bids', } ren...
src/calendar-body/CalendarBody.js
topcatcreatives/react-date-scroll
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import CalendarMonth from './CalendarMonth'; import './styles/calendar-body.css'; class CalendarBody extends Component { constructor(props) { super(props); this.state = { months: this.addMonths() }; ...
src/components/dashboard/bar-chart.js
fnumono/combo
import React from 'react'; import { Bar } from 'react-chartjs'; import { getRandomInt } from './util'; class BarChart extends React.Component { constructor() { super(); this.state = { data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [ ...
frontend/src/Settings/Profiles/Quality/QualityProfilesConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { cloneQualityProfile, deleteQualityProfile, fetchQualityProfiles } from 'Store/Actions/settingsActions'; import createSortedSectionSelector from 'Store/...
docs/Documentation/CardPage.js
reactivers/react-material-design
/** * Created by muratguney on 29/03/2017. */ import React from 'react'; import {Card, CardHeader, CardActions, CardBody,Button,Table,TableRow,TableHeaderColumn,TableHeader,TableRowColumn,TableBody} from '../../lib'; import HighLight from 'react-highlight.js' export default class CardPage extends React.Component { ...
packages/slate-html-serializer/test/serialize/block.js
AlbertHilb/slate
/** @jsx h */ import React from 'react' import h from '../helpers/h' export const rules = [ { serialize(obj, children) { if (obj.kind == 'block' && obj.type == 'paragraph') { return React.createElement('p', {}, children) } } } ] export const input = ( <state> <document> <...
demo/src/index.js
sidferreira/aor-firebase-client
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/components/UI/Icon/Icon.js
Aloomaio/netlify-cms
import React from 'react'; import icons from './icons'; /** * Calculates rotation for icons that have a `direction` property configured * in the imported icon definition object. If no direction is configured, a * neutral rotation value is returned. * * Returned value is a string of shape `${degrees}deg`, for use ...
client/src/components/auth/require_authentication.js
uxal/AuthenticationReduxTest
/** * Created by dragos on 18/01/2017. */ import React, { Component } from 'react'; import { connect } from 'react-redux'; export default function(ComposedComponent) { class Authentication extends Component { static contextTypes = { router: React.PropTypes.object } componentW...
examples/with-redux-reselect-recompose/components/page.js
giacomorebonato/next.js
import React from 'react' import PropTypes from 'prop-types' import Link from 'next/link' import { compose, setDisplayName, pure, setPropTypes } from 'recompose' import Clock from './clock' import AddCount from './addCount' const Page = ({ title, linkTo, light, lastUpdate, count, addCount }) => <div> <h1>{title}...
src/index.js
travism26/microservice-frontend
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import './client.min.js' import Bootstrap from "./vendor/bootstrap-without-jquery" import { Router, Route, IndexRoute, browserHistory } from "react-router"; import Archives from "./pages/Archives" import Feature...
newclient/scripts/components/user/dashboard/disclosure-table-row/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/index.js
tiddle/sheet-music-generator
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; import './index.css'; ReactDOM.render( < App / > , document.getElementById('root') );
lib/MultiColumnList/PagingButton.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import { Loading } from '../Loading'; import Button from '../Button'; const PagingButton = ({ loading, onClick, loadingMessage, pagingButtonLabel, sendMessage, ...props }) => { const handleClick = () => { sendMessage(loadingMessage); onClick(); ...
test/integration/production-swcminify/pages/svg-image.js
azukaru/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <h1>SVG with a script tag attempting XSS</h1> <Image id="img" src="/xss.svg" width="100" height="100" /> <p id="msg">safe</p> </div> ) } export default Page
src/react.js
goldensunliu/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/containers/components/container/base.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; /** * The internal dependencies. */ import fieldFactory from 'fields/factory'; /** * The base component used to render the containers. * * @param {Object} props * @param {Ob...
src/parser/monk/windwalker/modules/talents/HitCombo.js
FaideWW/WoWAnalyzer
/* TODO: * Track number of times the buff drops * Track what spell / point in fight the buff dropped */ import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/St...
docs/src/components/Icons/Icons.js
seekinternational/seek-asia-style-guide
import React from 'react'; import styles from './Icons.less'; import { PageBlock, Card, Section, Paragraph, Text } from 'seek-asia-style-guide/react'; import iconsSketchExports from '../../../../react/*/*.iconSketch.js'; import map from 'lodash/map'; const renderIcons = sketch => { return sketch && sketch....
packages/component/src/Toast/ExpandIcon.js
billba/botchat
import PropTypes from 'prop-types'; import React from 'react'; const ExpandIcon = ({ className }) => ( <svg className={(className || '') + ''} height="10" viewBox="0 0 16 10" width="16" xmlns="http://www.w3.org/2000/svg"> <path d="M15.1484 0.648437L15.8516 1.35156L8 9.20312L0.148438 1.35156L0.851563 0.648438L8 7...
client/auth/login.js
jaketrent/gratigoose
import { connect } from 'react-redux' import React from 'react' import styleable from 'react-styleable' import * as actions from './actions' import Field from '../common/components/field' import Fullpage from '../common/layouts/fullpage' import css from './login.css' import renderWithState from '../common/store/render...
src/webview/js/components/log/string.js
julianburr/sketch-debugger
import React, { Component } from 'react'; export default class LogString extends Component { render () { const { name, string } = this.props; return ( <span className="log-string"> {name && ( <span> <span className="log-key">{name}</span> <span className="log-c...
src/js/components/components.app-background.js
stamkracht/Convy
import React from 'react'; class AppBackground extends React.Component { render() { let backgroundImage = { backgroundImage: `url('${this.props.backgroundImage}')` }; return ( <div className="c-app-background" style={ backgroundImage }></div> ); } // functions. } export default AppBackground...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
akingyin1987/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
packages/react-scripts/template/src/index.js
picter/create-react-app
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/components/common/forms/TextAreaInput.js
seyade/loggent
import React from 'react'; const TextAreaInput = ({label, name, id, placeholder, rows, cols, onChange, value}) => { return ( <div className="control"> <label className="control__label" htmlFor={id}>{label}</label> <textarea className="control__textarea" name={name} id={id} ...
src/DropdownToggle.js
pombredanne/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import Button from './Button'; import SafeAnchor from './SafeAnchor'; const CARET = <span> <span className="caret" /></span>; export default class DropdownToggle extends React.Component { render() { const caret = this.props.noCaret ? null : CARET; ...
src/renderer/renderPass.js
gabrielbull/jquery-retinadisplay
import React from 'react'; import { renderToString, renderToStaticMarkup } from 'react-dom/server'; import AsyncRenderer from '../components/AsyncRenderer'; import removeDuplicateModules from '../utils/removeDuplicateModules'; const renderPass = (context, element, staticMarkup = false) => { context.callback = () => ...
docs/app/Examples/elements/Input/States/InputExampleError.js
aabustamante/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleError = () => ( <Input error placeholder='Search...' /> ) export default InputExampleError
data-browser-ui/public/app/components/headerComponents/filterRowComponent.js
CloudBoost/cloudboost
import React from 'react' import { observer } from "mobx-react" import configObject from '../../config/app.js' @observer class FilterRow extends React.Component { constructor(){ super() this.state = { } } componentWillMount(){ } setDataType(e){ let types = configObject.filterTypes.filter((x)=>{ retur...