path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
website/irulez/src/components/admin_menu/Dashboard.js
deklungel/iRulez
import React, { Component } from 'react'; import './Dashboard.css'; class Admin extends Component { constructor(props) { super(props); this.props.Collapse('dashboard'); } render() { return ( <div className='Admin'> <div className='App-header'> ...
src/Parser/HolyPaladin/Modules/Items/Tier20_4set.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; impor...
src/components/UI/NewEntry/NewEntry.js
wanchopen/vida
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './NewEntry.css'; import Dialog from 'material-ui/Dialog'; import {grey400, cyan500} from 'material-ui/styles/colors'; import IconButton from 'material-ui/IconButton'; import EditorBorderColor from '...
frontend/react-stack/web/src/Header.js
wesleyegberto/courses-projects
import React from 'react'; function Header(props) { return <h1>{ props.title }</h1>; } export default Header;
client/layout/guided-tours/main-tour.js
tinkertinker/wp-calypso
import React from 'react'; import { translate } from 'i18n-calypso'; import { overEvery as and } from 'lodash'; import { makeTour, Tour, Step, Next, Quit, Continue, Link, } from 'layout/guided-tours/config-elements'; import { isNewUser, isEnabled, selectedSiteIsPreviewable, selectedSiteIsCustomizable, prev...
client/index.prod.js
BitTigerInst/ElasticSearch
import React from 'react'; import routes from '../shared/routes'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { configureStore } from '../shared/redux/store/configureStore'; const store = configureStore(window.__INITIAL_STATE...
src/views/Card/CardDescription.js
shengnian/shengnian-ui-react
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useTextAlignProp, } from '../../lib' /** * A card can contain a description with one or more paragraphs....
packages/es-components/src/components/patterns/callToAction/getCallToActionChildren.js
TWExchangeSolutions/es-components
import React from 'react'; export function getCallToActionChildren(children, type = 'default') { const allChildren = React.Children.toArray(children); const actions = allChildren .filter(child => child.type.name === 'Action') .map(action => { if (type === 'light') { const styleType = action.p...
course/example_2/src/routes/Home/components/HomeView.js
FMCalisto/redux-get-started
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
app/javascript/mastodon/features/bookmarked_statuses/index.js
imas/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks'; import Column from '../ui/components/column'; import ColumnHeader...
ext/lib/site/home-forum/component.js
DemocraciaEnRed/vicentelopez
import React from 'react' import HomeProyectos from '../home-proyectos/component' import HomePropuestas from '../home-propuestas/component' const HomeForum = (props) => { const { params: { forum } } = props switch (forum) { case 'propuestas': return <HomePropuestas {...props} /> default: return...
src/views/ReviewSettings/DetailBox.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { Table } from 'antd' @connect( state => ({ detail: state.pages.reviewSettings.strategyDetail }) ) export default class DetailBoxView extends React.Component { render () { const { info, detail } = this.props const columns = [{ ...
src/app/containers/Support.js
pingwing/travel-guide-las-palmas
import React from 'react'; import {Component} from 'react'; export default class Support extends Component { askUltimateQuestion() { alert('the answer is 42'); } render() { return ( <form onSubmit={this.askUltimateQuestion}> <input type="text" className="support" placeholder="ask us anyth...
pyxis/components/PButton/index.js
gtkatakura/furb-desenvolvimento-plataformas-moveis
import React from 'react'; import { View, Button, StyleSheet } from 'react-native'; const styles = StyleSheet.create({ button: { marginBottom: 8, marginLeft: 40, marginRight: 40, } }); const PButton = ({ title, onPress}) => { return ( <View style={styles.button}> <Button title={title} onPr...
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js
pancho111203/material-ui
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; const style = { marginRight: 20, }; /** * Default size and `mini` FABs, in primary (default), `secondary` and `disabled` colors. */ const FloatingActionButton...
src/client/components/hoc/Permissions/withPermissions.hoc.js
DBCDK/content-first
import React from 'react'; import {useDispatch, useSelector} from 'react-redux'; import {get} from 'lodash'; import Kiosk from '../../base/Kiosk/Kiosk'; import {loadKiosk} from '../../../redux/kiosk.thunk'; import {OPEN_MODAL, CLOSE_MODAL} from '../../../redux/modal.reducer'; import permissions from './permissions.j...
src/main/app/components/system/host/Host.js
reactor/reactor-pylon
/* * Copyright (c) 2011-2016 Pivotal Software Inc, All Rights Reserved. * * 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 * * Unles...
frontend/app_v2/src/components/DictionaryDetail/DictionaryDetailPresentation.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Disclosure } from '@headlessui/react' // FPCC import { getMediaUrl } from 'common/urlHelpers' import useIcon from 'common/useIcon' import useVisibilityIcon from 'common/useVisibilityIcon' import { makePlural }...
lib/src/detailcard.js
SerendpityZOEY/Fixr-RelevantCodeSearch
/** * Created by yue on 2/9/17. */ import React from 'react'; import {List, ListItem, NestedList} from 'material-ui/List'; import {BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'recharts'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import Lines fr...
packages/veritone-react-common/src/components/NavigationSideBar/SectionTree.js
veritone/veritone-sdk
import React from 'react'; import cx from 'classnames'; import { noop, initial, get, map, kebabCase } from 'lodash'; import { string, arrayOf, shape, func, element, bool, objectOf, any } from 'prop-types'; import Button from '@material-ui/core/Button'; import ArrowBackIcon from '@material-ui/icons/Arrow...
src/common/components/Heading.js
chad099/react-native-boilerplate
// @flow import type { TextProps } from './Text'; import type { Theme } from '../themes/types'; import Text from './Text'; import React from 'react'; type HeadingContext = { theme: Theme, }; const Heading = (props: TextProps, { theme }: HeadingContext) => { const { bold = true, fontFamily = theme.heading....
sb-admin-seed-react/src/vendor/recharts/demo/component/AreaChart.js
Gigasz/tropical-bears
import React from 'react'; import { changeNumberOfData } from './utils'; import { AreaChart, Area, XAxis, YAxis, Tooltip, CartesianGrid, Brush, ReferenceArea, ReferenceLine, ReferenceDot, ResponsiveContainer } from 'recharts'; const data = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400 }, { name: 'Page B', uv...
src/components/icons/OutlinedFlagIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const OutlinedFlagIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M14 6l-1-2H5v17h2v-7h5l1 2h7V6h-6zm4 8h-4l-1-2H7V6h5l1 2h5v6z" /> <path fill="none" d="M0 0h24v24...
examples/withReactRouterReduxIntl/client/containers/index.js
Canner/coren
import React from 'react'; import ReactDOM from 'react-dom'; import Index from '../components/index'; ReactDOM.render( <Index/> , document.getElementById('root')); if(module.hot) { module.hot.accept(); }
packages/react-router-native/__tests__/index.ios.js
goblortikus/react-router
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
client/src/app/admin/panel/settings/admin-panel-system-preferences.js
ivandiazwm/opensupports
import React from 'react'; import _ from 'lodash'; import store from 'app/store'; import ConfigActions from 'actions/config-actions'; import API from 'lib-app/api-call'; import i18n from 'lib-app/i18n'; import LanguageSelector from 'app-components/language-selector'; import ToggleButton from 'app-components/toggle-but...
src/SparklinesSpots.js
Jonekee/react-sparklines
import React from 'react'; export default class SparklinesSpots extends React.Component { static propTypes = { size: React.PropTypes.number, style: React.PropTypes.object, spotColors: React.PropTypes.object }; static defaultProps = { size: 2, spotColors: { ...
cms/react-static/src/containers/Post.js
fishjar/gabe-study-notes
import React from 'react' import { withRouteData, Link } from 'react-static' // export default withRouteData(({ post }) => ( <div> <Link to="/blog/">{'<'} Back</Link> <br /> <h3>{post.title}</h3> <p>{post.body}</p> </div> ))
app/components/Hello.js
designjockey/reactor
import React from 'react'; class Hello extends React.Component { render() { return ( <h1 ref={(node) => { this.heading = node; }}>Hello World</h1> ); } } export default Hello;
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
xiaotaijun/actor-platform
import _ from 'lodash'; import React from 'react'; import mixpanel from 'utils/Mixpanel'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import MyProfileActions from 'actions/MyProfileActions'; import LoginActionCreators from 'action...
app/components/RollPage.js
mzanini/DeeMemory
import React from 'react' import Roll from './Roll' const RollPage = () => ( <Roll/> ) export default RollPage
src/js/pages/PricingTable.js
hadnazzar/ModernBusinessBootstrap-ReactComponent
import React from 'react'; import {Link} from "react-router"; import Subheading from '../components/Subheading'; export default class Layout extends React.Component { constructor() { super(); this.state = { title:"Welcome to Momoware!", }; } changeTitle(title){ this.setSt...
app/m_components/Copyright.js
kongchun/BigData-Web
import React from 'react'; import { Link } from 'react-router'; class Copyright extends React.Component { render() { return ( <div className="copyright"> <div className="container"> <div className="row"> <div className="col-sm-12"> <span>Copyright © <a...
app/javascript/mastodon/features/followers/index.js
mhffdq/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchAccount, fetchFollowers, expandFollowers, } from '../../actions/account...
app/react-icons/fa/pie-chart.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaPieChart extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m17.6 19.9l12.2 12.2q-2.3 2.4-5.5 3.7t-6.7 1.3q-4.6 0-8.6-2.3t-6.2-6.2-2.3-...
src/server.js
labreaks/ep-web-app
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
src/components/Races/SelectYearComponent.js
chiefwhitecloud/running-man-frontend
import React from 'react'; import PropTypes from 'prop-types'; const SelectYearComponent = ({years}) => { return <div> {years.map(function(year){ return <div>{year}</div> })} </div>; }; SelectYearComponent.propTypes = { years: PropTypes.array }; export default SelectYearComponent;
src/components/Rating/index.js
xenotime-india/CV
import React from 'react' class Rating extends React.Component { render() { const { skillName, rating } = this.props const userRating = [] for (let i = 0; i < rating; i++) { userRating.push( <i className="fa fa-circle fa-2x" aria-hidden="true" key={i} /> ) } while (userRating....
src/mui-themeable.js
tyfoo/material-ui
import React from 'react'; import DefaultRawTheme from './styles/raw-themes/light-raw-theme'; import ThemeManager from './styles/theme-manager'; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; } export default function muiThemeable(WrappedComp...
src/index.js
Ibrasau/socketChatExample
import React, { Component } from 'react'; import { render } from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import Chat from './components/Chat.js'; import reducer from './reducers/rootReducer'; const store = createStore(reducer); render( <Provider store={store}> <...
modules/__tests__/transitionHooks-test.js
arasmussen/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect, { spyOn } from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import execSteps from './execSteps' import Router from '../Router' describe('When a router enters a branch', function () { let node, Dashb...
src/components/tabBar.js
Seeingu/borrow-book
/* 底部栏 */ import React from 'react'; import { StyleSheet, Text, View, Image, TouchableOpacity, } from 'react-native'; import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome'; import Icon from 'react-native-vector-icons/Ionicons'; import { ComponentStyles, CommonStyles } from '../assets/styles';...
app/components/Keywords.js
alexindigo/ndash
import React, { Component } from 'react'; import { Text, View } from 'react-native'; import { combine } from '../helpers/styles'; export default class Keywords extends Component { renderKeywords() { if (!this.props.keywords) { return null; } return React.Children.toArray(this.props.keywords).map...
docs/src/components/nav.js
mcanthony/nuclear-js
import React from 'react' import { BASE_URL } from '../globals' function urlize(uri) { return BASE_URL + uri } export default React.createClass({ render() { const logo = this.props.includeLogo ? <a href={BASE_URL} className="brand-logo">NuclearJS</a> : null const homeLink = this.props.includeL...
app/javascript/mastodon/features/account_gallery/index.js
masarakki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { expandAccountMediaTimeline } from '../../actions/timelines'; import LoadingIndicator from '../...
src/svg-icons/action/settings-remote.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsRemote = (props) => ( <SvgIcon {...props}> <path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41...
src/components/Code.js
doug2k1/webpack-generator
// @flow /* eslint react/no-danger: "off" */ import React from 'react' import { js_beautify as beautify } from 'js-beautify/js/lib/beautify' // import only highlight.js core and javascript language for smaller bundle size import hljs from 'highlight.js/lib/highlight' import hljsJS from 'highlight.js/lib/languages/javas...
src/svg-icons/action/eject.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEject = (props) => ( <SvgIcon {...props}> <path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/> </SvgIcon> ); ActionEject = pure(ActionEject); ActionEject.displayName = 'ActionEject'; ActionEject.muiName = 'Svg...
wegas-app/src/main/node/wegas-react-form/src/Script/singleStatement.js
Heigvd/Wegas
import PropTypes from 'prop-types'; import React from 'react'; import { types } from 'recast'; /** * HOC single statement builder */ function singleStatement(Comp) { /** * Component * @param {{code:Object[], onChange:(AST:Object[])=>void}} props Component's props */ function SingleStatement(pr...
imports/ui/pages/ViewResources.js
lizihan021/SAA-Website
import React from 'react'; import NotFound from './NotFound'; import PropTypes from 'prop-types'; export default class ViewResources extends React.Component { render() { return ( <div className="ViewResources"> <h2 className="page-header">{this.props.params.id}</h2> <embed src={ `/files/${this.pro...
index.js
Prashant31/redux-blog
import React from 'react' import { render } from 'react-dom' import {initialize} from './utils/Root' var {provider} = initialize(); render(provider, document.getElementById('root'));
src/TreeSelect/TreeSelect.stories.js
ctco/rosemary-ui
import React from 'react'; import { storiesOf, action } from '@storybook/react'; import noop from 'lodash/noop'; import { TreeSelect, SingleTreeSelect, TreeWithInactiveSwitch } from './TreeSelect'; let nextId = 0; const makeOption = (displayString, treeNodeHash, leaf, active = true, id = null) => { nextId++; ...
src/components/Select/__tests__/select.spec.js
StepanYurtsiv/kep-e-campus
import React from 'react'; import Select from '../index'; import { renderToJson } from '../../../lib/utils/testing'; describe('Select component', () => { it('should render Select component with options', () => { const options = [{ _id: 123, text: 'Option 1', }, { _id: 456, text: 'Opti...
src/components/App/index.js
LamouchiMS/adintel
import React from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import {fade} from 'material-ui/utils/colorManipulator'; import { cyan700, grey600, yellowA100, yell...
src/BottomNavigation/BottomNavigation.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = (theme: Object) => ({ root: { display: 'flex', justifyContent: 'center', height: 56, backgroundColor: theme.palette.b...
src/components/Title.js
mirego/mirego-open-web
import React from 'react'; import styled from '@emotion/styled'; const Content = styled.div` padding: 0 10px; margin: 0 0 30px; text-align: center; color: #666; @media (prefers-color-scheme: dark) { & { color: #aaa; } } `; const Title = styled.h2` margin: 0 0 5px; text-align: center; ...
app/components/DropdownFontSelectorMenu.js
googlefonts/korean
import React, { Component } from 'react'; import { FONTS } from '../constants/defaults'; import { connect } from 'react-redux'; import { changeDescFontDropdownOpened, changeCurrentDescFont } from '../actions'; import onClickOutside from "react-onclickoutside"; import _ from 'lodash'; const Fragment = React.Fragment; ...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_02/finish/src/components/SkiDayCount.js
yevheniyc/Autodidact
import React from 'react' import '../stylesheets/ui.scss' export const SkiDayCount = React.createClass({ render() { return ( <div className="ski-day-count"> <div className="total-days"> <span>5 days</span> </div> <div className="powder-days"> <span>2 days</span> </div> <div classNam...
test/react/ModalBody.spec.js
onap-sdc/sdc-ui
import React from 'react'; import ModalBody from '../../src/react/ModalBody.js'; import renderer from 'react-test-renderer'; describe('ModalBody', () => { test('basic test', () => { const header = renderer.create(<ModalBody/>).toJSON(); expect(header).toMatchSnapshot(); }); });
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleDeviceVisibility.js
mohammed88/Semantic-UI-React
import React from 'react' import { Grid, Segment } from 'semantic-ui-react' const GridExampleDeviceVisibility = () => ( <Grid> <Grid.Row columns={2} only='large screen'> <Grid.Column> <Segment>Large Screen</Segment> </Grid.Column> <Grid.Column> <Segment>Large Screen</Segment> ...
examples/tree-view/src/containers/Node.js
roth1002/redux
import React from 'react' import { Component } from 'react' import { connect } from 'react-redux' import * as actions from '../actions' export class Node extends Component { handleIncrementClick = () => { const { increment, id } = this.props increment(id) } handleAddChildClick = e => { e.preventDefa...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
jamesbond12/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classnames from 'classnames'; import ActorClient from 'utils/ActorClient'; import confirm from 'utils/con...
src/components/AdminSidebar.js
PickaxeCMS/pickaxecms
import React, { Component } from 'react'; import { connect } from 'react-redux' import MediaQuery from 'react-responsive'; import { Sidebar, Menu, Image, Dropdown, Icon, Segment, Form, Button, Input, Header } from 'semantic-ui-react' class AdminSidebar extends Component { constructor(props) { super(props); ...
app/javascript/mastodon/features/ui/components/column.js
verniy6462/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
addons/info/src/components/types/ObjectOf.js
rhalff/storybook
import React from 'react'; import PrettyPropType from './PrettyPropType'; import { TypeInfo, getPropTypes } from './proptypes'; const ObjectOf = ({ propType }) => ( <span> {'{[<key>]: '} <PrettyPropType propType={getPropTypes(propType)} /> {'}'} </span> ); ObjectOf.propTypes = { propType: TypeInfo....
src/applications/financial-status-report/pages/income/spouse/spouseInfo.js
department-of-veterans-affairs/vets-website
import React from 'react'; import AdditionalInfo from '@department-of-veterans-affairs/component-library/AdditionalInfo'; const MaritalStatusInfo = ( <AdditionalInfo triggerText="Why does my marital status matter?"> <p> We want to make sure we understand your household’s financial situation. </p> <...
modules/gui/src/widget/form/input.js
openforis/sepal
import {Input, Textarea} from 'widget/input' import {Subject, debounceTime, distinctUntilChanged} from 'rxjs' import {compose} from 'compose' import {getErrorMessage} from 'widget/form/error' import {withFormContext} from 'widget/form/context' import PropTypes from 'prop-types' import React from 'react' import withSubs...
samples/06.recomposing-ui/d.plain-ui/src/CardActionButton.js
billba/botchat
import React from 'react'; import ImBackButton from './ImBackButton'; import MessageBackButton from './MessageBackButton'; import PostBackButton from './PostBackButton'; // "cardAction" could be either, "imBack", "messageBack", or "postBack". export default ({ cardAction }) => { switch (cardAction.type) { case ...
src/svg-icons/image/crop-original.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropOriginal = (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 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"...
example/pages/searchbar/index.js
woshisbb43/coinMessageWechat
import React from 'react'; import Page from '../../component/page'; import SampleData from './nameDB'; import { //main component SearchBar, //for display data Panel, PanelHeader, PanelBody, PanelFooter, MediaBox, MediaBoxHeader, MediaBoxBody, MediaBoxTitle, MediaBoxDescr...
frontend/app_v2/src/common/icons/ForwardArrow.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' /** * @summary ForwardArrow * @component * * @param {object} props * * @returns {node} jsx markup */ function ForwardArrow({ styling }) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className={styling}> <title>For...
cerberus-dashboard/src/components/LoginUserForm/LoginUserForm.js
Nike-Inc/cerberus
/* * Copyright (c) 2020 Nike, inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
src/pages/User/components/PullRequests/UserShare.js
jenkoian/hacktoberfest-checker
import React from 'react'; const UserShare = () => { Tw(); Fb(); return <div id="fb-root"></div>; }; function Tw() { window.twttr = (function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); ...
src/components/list_items.js
blanck-space/reacTube
import React from 'react'; const VListItem = (props) => { return( <li onClick={()=>props.onItemClick(props.video)} className="list-group-item"> <div className="video-list media"> <div className="media-left"> <img className="media-object" src={props.video.snippet.thumbnails.default.url} />...
app/static/index.js
Murdius/GW2Snapshot
import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware, compose } from 'redux'; import { Provider } from 'react-redux'; import App from './components/App.jsx'; import createLogger from 'redux-logger'; import thunkMiddleware from 'redux-thunk'; import reducer from './reducer...
packages/metadata-react/src/TabularSection/TabularSection.js
oknosoft/metadata.js
import React from 'react'; import PropTypes from 'prop-types'; import MComponent from '../common/MComponent'; import TabularSectionToolbar from './TabularSectionToolbar'; import SchemeSettingsTabs from '../SchemeSettings/SchemeSettingsTabs'; import LoadingMessage from '../DumbLoader/LoadingMessage'; import ReactDataG...
packages/material-ui-icons/src/DoNotDisturbAlt.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8c-1.8 0-3.5-.6-4.9-1.7L18.3 7.1C19.4 8.5 20 10.2 20 12c0 4.4...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js
ro-savage/create-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. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id = 0, ...rest }) { return [ { id:...
src/svg-icons/image/straighten.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageStraighten = (props) => ( <SvgIcon {...props}> <path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/> </SvgIcon> ); ImageStr...
app/admin/actions/AddSkill.js
in42/internship-portal
import React, { Component } from 'react'; import axios from 'axios'; import { Form, Button, Divider } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import Auth from '../../auth/modules/Auth'; const addSkill = skill => axios.post('/api/admin/add-skills', skill, { headers: { Authorization: `bearer ...
src/index.js
RUTH2013/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/svg-icons/device/add-alarm.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAddAlarm = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4....
test/dialog-spec.js
tomrosier/material-ui
import React from 'react'; import Dialog from 'dialog'; import {spy} from 'sinon'; import TestUtils from 'react-addons-test-utils'; describe('Dialog', () => { it('appends a dialog to the document body', () => { const testClass = 'test-dialog-class'; TestUtils.renderIntoDocument( <Dialog open={t...
frontend/src/login.js
rarellano/socializa
import React from 'react'; import { hashHistory, Link } from 'react-router' import $ from 'jquery'; import API from './api'; import { login } from './auth'; import { translate, Interpolate } from 'react-i18next'; import i18n from './i18n'; class Login extends React.Component { constructor(props) { super...
client/modules/App/components/Footer/Footer.js
ArthurGerbelot/keystamp-mern
import React from 'react'; import { FormattedMessage } from 'react-intl'; // Import Style import styles from './Footer.css'; // Import Images import bg from '../../header-bk.png'; export function Footer() { return ( <div style={{ background: `#FFF url(${bg}) center` }} className={styles.footer}> <p>&copy...
docs/app/Examples/elements/Header/Variations/HeaderBlockExample.js
jamiehill/stardust
import React from 'react' import { Header } from 'stardust' const HeaderBlockExample = () => ( <Header as='h3' block> Block Header </Header> ) export default HeaderBlockExample
analysis/rogueassassination/src/modules/features/Checklist/Module.js
yajinni/WoWAnalyzer
import { ComboPointDetails, EnergyCapTracker, EnergyDetails } from '@wowanalyzer/rogue'; import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants';...
client/src/pages/Product.js
ccwukong/lfcommerce-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Breadcrumb, BreadcrumbItem, Button, Row, Col } from 'reactstrap'; import { withRouter } from 'react-router-dom'; import jwt from 'jsonwebtoken'; import { FormattedMessage } from 'react-intl'; import ProductForm from './product/Produc...
src/views/auth/index.js
foysalit/react-mcq
import React, { Component } from 'react'; import AuthSignin from './signin'; import AuthSignup from './signup'; import AuthStore from '../../stores/auth'; import AppActions from '../../actions/app'; import { Paper } from 'material-ui'; export class Auth extends Component { constructor(props) { super(props); } _a...
client/routes.js
jozecarlos/bloodonors
/* eslint-disable global-require */ import React from 'react'; import { Route } from 'react-router'; import Container from './modules/home/'; // require.ensure polyfill for node if (typeof require.ensure !== 'function') { require.ensure = function requireModule(deps, callback) { callback(require); }; } /* Wor...
app/javascript/mastodon/components/load_more.js
mosaxiv/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...
src/svg-icons/image/wb-auto.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbAuto = (props) => ( <SvgIcon {...props}> <path d="M6.85 12.65h2.3L8 9l-1.15 3.65zM22 7l-1.2 6.29L19.3 7h-1.6l-1.49 6.29L15 7h-.76C12.77 5.17 10.53 4 8 4c-4.42 0-8 3.58-8 8s3.58 8 8 8c3.13 0 5.84-1.81 7.1...
src/parser/monk/windwalker/modules/talents/Serenity.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Statistic from 'interface/statistics/Statistic'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import BoringSpellValueText from 'interface/statistics/components/BoringSpellValueText/index'; import SPELLS from 'common/SPELLS'...
node_modules/react-native-maps/lib/components/MapPolygon.js
RahulDesai92/PHR
import PropTypes from 'prop-types'; import React from 'react'; import { ViewPropTypes, } from 'react-native'; import decorateMapComponent, { USES_DEFAULT_IMPLEMENTATION, SUPPORTED, } from './decorateMapComponent'; const propTypes = { ...ViewPropTypes, /** * An array of coordinates to describe the polygon...
client/extensions/woocommerce/app/products/product-create.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { head, isNumber } from 'lodash'; import { localize } from 'i18n-calypso'; import page from 'page'; /** * Internal ...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
Maxwelloff/react-football
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
resources/js/components/Team/MemberComponent.js
Stasgar/BugWall_Visual_Bugtracker
import React, { Component } from 'react'; import Ability from './AbilityComponent'; class Member extends React.Component { constructor(props) { super(props); this.props = props; this.api = props.api; } render() { return ( <tr><td> <a href={this.p...
packages/components/src/ResourceList/Toolbar/StateFilter/StateFilter.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withTranslation } from 'react-i18next'; import ActionIconToggle from '../../../Actions/ActionIconToggle'; import I18N_DOMAIN_COMPONENTS from '../../../constants'; import getDefaultT from '../../../translate'; i...
script/js/react/material-ui/src/demo/hello/hello.js
joshuazhan/arsenal4j
import React from 'react'; import {render} from 'react-dom'; render( <h1>Hello, world!</h1>, document.getElementById('content') );
carbon-page/stories/task/index.js
ShotaOd/dabunt
import React, { Component } from 'react'; import { storiesOf, action } from '@kadira/storybook'; import cardStory from './card' const story = storiesOf('Task', module); cardStory(story);