path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
sources/views/containers/about/index.js
gigacool/resume-maker
import React from 'react'; import { connect } from 'react-redux'; export class AboutPage extends React.Component { static propTypes = { }; componentWillMount() { } render() { return ( <section>About</section> ); } } //===================================== // CONNECT //---------------------...
src/routes/user/User.js
fkn/ndo
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { Button, FormControl, Row, Col, FormGroup, ControlLabel, } from 'react-bootstrap'; import { showModal } from '../../actions/modals'; ...
src/svg-icons/action/highlight-off.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHighlightOff = (props) => ( <SvgIcon {...props}> <path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 1...
client/index.js
joshgrib/mealplan-datavis
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App.jsx'; ReactDOM.render(<App />, document.getElementById('root'));
src/containers/App/App.js
moo-dal/spoon-web
/* External dependencies */ import React from 'react' import { connect } from 'react-redux' /* Internal dependencies */ import styles from './App.scss' import accountActions from '../../redux/actions/accountActions' @connect() class App extends React.Component { componentWillMount() { this.props.dispatch(accou...
project_react_template/src/js/components/NotFound.js
Mikeysax/mikey
import React from 'react'; export default class NotFound extends React.Component { render() { return ( <div> <h1 className="text-center"> Not Found </h1> </div> ); } }
app/javascript/mastodon/features/account_timeline/index.js
lynlynlynx/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 { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines'; import ...
src/components/ExperienceDetail/ReactionZone/ReactionZoneOtherOptions.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import styles from './ReactionZone.module.css'; const ReactionZoneOtherOptions = ({ toggleReportInspectModal }) => ( <ul className={styles.popoverItem}> <li> <button onClick={toggleReportInspectModal}>查看檢舉</button> </li> </ul> ); Reactio...
src/list/components/ListFooter.js
nheyn/react-stack-skeleton
/* @flow */ import React from 'react'; import { Link } from 'react-router'; type Props = { activeItemsLeft: number, filter?: 'active' | 'completed', onClickClearCompleted: (e: SyntheticInputEvent) => void, }; /** * The footer for the todo list. */ export default function ListFooter(props: Props): React.Elemen...
node_modules/react-native/Libraries/Image/Image.ios.js
solium/swift-react-native-hybrid
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
test/components/tasks/NewTask.specs.js
johnnynotsolucky/logapp
/* eslint-env mocha */ import React from 'react'; import { assert } from 'chai'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import faker from 'faker'; import NewTask from '../../../app/components/tasks/NewTask'; import TaskActions from '../../../app/actions/TaskActions'; describe('components/tasks...
app/javascript/mastodon/features/ui/components/zoomable_image.js
rekif/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const MIN_SCALE = 1; const MAX_SCALE = 4; const getMidpoint = (p1, p2) => ({ x: (p1.clientX + p2.clientX) / 2, y: (p1.clientY + p2.clientY) / 2, }); const getDistance = (p1, p2) => Math.sqrt(Math.pow(p1.clientX - p2.clientX, 2) + Math.pow(p1.client...
src/svg-icons/device/location-disabled.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationDisabled = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5...
pages/_document.js
DimensionLab/narc
import React from 'react' import Document, { Head, Main, NextScript } from 'next/document' import { ServerStyleSheet } from 'styled-components' export default class MyDocument extends Document { static getInitialProps ({ renderPage }) { const sheet = new ServerStyleSheet() const page = renderPage(App => prop...
spec/javascripts/jsx/blueprint_courses/components/MigrationOptionsSpec.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/app/manage.js
fylder/material-ui-webpack
/** * Created by fylder on 2017/5/14. */ import React from 'react'; import {render} from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import PhotoHead from './Components/PhotoHead'; // Our custom react component import PhotoTools from './Components/PhotoTools'; // Our custom react component...
packages/es-components/src/components/controls/dropdown/Dropdown.js
jrios/es-components
import React from 'react'; import styled from 'styled-components'; const DropdownBase = styled.select` background-color: ${props => props.theme.colors.white}; border: 1px solid ${props => props.theme.colors.gray5}; border-radius: 2px; box-shadow: ${props => props.boxShadow}; box-sizing: border-box; color: ...
web/src/index.js
nodefx/nbot
import React from 'react' import ReactDOM from 'react-dom' import {AppContainer} from 'react-hot-loader' import App from 'pages/app' import socketIo from 'socket/index' socketIo() const render = Component => { ReactDOM.render( <AppContainer key={rootKeys()}>{/* 防止开发的时候热更不成功 增加 Math.random */} <Component />...
src/DropdownMenu.js
HorizonXP/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
src/svg-icons/maps/flight.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsFlight = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon>...
fields/types/geopoint/GeoPointFilter.js
jacargentina/keystone
import React from 'react'; import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental'; const DISTANCE_OPTIONS = [ { label: 'Max distance (km)', value: 'max' }, { label: 'Min distance (km)', value: 'min' }, ]; function getDefaultValue () { return { lat: undefined, lon: undefined, distance: {...
client/extensions/woocommerce/app/dashboard/setup/store-location.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { every, find, includes, isEmpty, keys, pick, trim } from 'lodash'; import { localize } from 'i18n-cal...
node_modules/react-sparklines/src/SparklinesBars.js
victor335882/ReduxSimpleStarter-4
import React from 'react'; export default class SparklinesBars extends React.Component { static propTypes = { points: React.PropTypes.arrayOf(React.PropTypes.object), height: React.PropTypes.number, style: React.PropTypes.object, barWidth: React.PropTypes.number }; static ...
src/svg-icons/editor/format-align-justify.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignJustify = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignJustify = pure(EditorFormatAl...
examples/js/pagination/pagination-hook-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; produc...
src/index.js
Ricky-Nz/knocknock-app
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, combineReducers, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import { Router, Route, IndexRoute, IndexRedirect, hashHistory } from 'react-router'; import { syncHistoryWithStore, routerReducer } from 'react-rou...
packages/containers/src/List/List.container.js
Talend/ui
import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import React from 'react'; import { Map, List as ImmutableList } from 'immutable'; import Component from '@talend/react-components/lib/List'; import VirtualizedList from '@talend/react-components/lib/VirtualizedList'; import...
src/routes/Quest/components/Quest.js
lodelestra/SWClermont_2016
import React from 'react' import RevenueSlide from '../containers/RevenueSlideContainer' export const Quest = (props) => ( <div> <RevenueSlide /> <div style={{ backgroundColor: '#444', height:'100vh' }} > <div className='content'> next comp </div> </div> <div className='content'> ...
Paths/React/05.Building Scalable React Apps/9-react-boilerplate-building-scalable-apps-m9-exercise-files/After/app/containers/HomePage/index.js
phiratio/Pluralsight-materials
/* * 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 ...
src/EventRow.js
martynasj/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' import EventRowMixin from './EventRowMixin' class EventRow extends React.Component { static propTypes = { segments: PropTypes.array, ...EventRowMixin.propTypes, } static defaultProps = { ...EventRowMixin.defaultProps, } render() { l...
components/Layout/Navigation.js
priley86/labs-console
import React from 'react'; import Link from '../Link'; import cx from 'classnames' import history from '../../core/history'; import PfBreakpoints from './PfBreakpoints'; import PfVerticalNavigation from './PfVerticalNavigation'; class Navigation extends React.Component { state = { topologyTabActive: false, explicit...
node_modules 11.32.44 AM/alt/test/alt-iso-test.js
drankadank/client
import React from 'react' import Alt from '../' import AltContainer from '../AltContainer' import AltIso from '../utils/AltIso' import { assert } from 'chai' const alt = new Alt() const UserActions = alt.generateActions('receivedUser', 'failed') const UserSource = { fetchUser() { return { remote(state, i...
src/svg-icons/social/sentiment-neutral.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentNeutral = (props) => ( <SvgIcon {...props}> <path d="M9 14h6v1.5H9z"/><circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C1...
src/clusterpost-list-react/src/clusterpost-dashboard.js
juanprietob/clusterpost
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import ClusterpostService from './clusterpost-service'; import _ from 'underscore'; import { connect } from "react-redux"; import { withRouter } from 'react-router-dom'; import {Download} from 'react-feathe...
packages/react-test-renderer/src/ReactShallowRenderer.js
kaushik94/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import {isForwardRef} from 'react-is'; import describeComponentFrame from 'shared/describeC...
ui/src/main/js/pages/__tests__/Home-test.js
rdelval/aurora
import React from 'react'; import { shallow } from 'enzyme'; import Home from '../Home'; import Breadcrumb from 'components/Breadcrumb'; import Loading from 'components/Loading'; import RoleList from 'components/RoleList'; const TEST_CLUSTER = 'test-cluster'; function createMockApi(roles) { const api = {}; api.g...
example/vds-react/static/js/50.22e5a98f.chunk.js
anarh/maze
(this["webpackJsonp@visa/vds-react"]=this["webpackJsonp@visa/vds-react"]||[]).push([[50],{272:function(e,t,a){"use strict";a.r(t);var n=a(144),o=a(0),r=a.n(o),c=a(538),l=a.n(c),s=a(2),i=a.n(s),m=a(544),d=a(543),p=a(39),u=a(8),f=a(532),g=a(18),v=a(23),b=a(16),h=a(530),y=a(64),E=a(531),O=a(533),j=a(534),N=a(535),k=a(536)...
graphql/client/Client/app.js
prayuditb/tryout-01
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TouchableOpacity, } from 'react-native'; export default class App extends Component { constructor(props) { super(props); this.state = { image: '', } } getImage(){ fetch('http://10.0.2.2:4000/grap...
examples/auth-with-shared-root/components/PageOne.js
aaron-goshine/react-router
import React from 'react' const PageOne = React.createClass({ render() { return <h2>Page One!</h2> } }) module.exports = PageOne
src/components/Articles/ArticleSideBar.js
Dynatos/personal-website
import React, { Component } from 'react'; import { data } from './articleData'; export default class ArticleSideBar extends Component { render() { const filters = []; const typeFilter = (element, index) => { if (filters.indexOf(element.type) === -1) { filters.push(element.type); retu...
app/javascript/mastodon/features/ui/components/column_link.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Icon from 'mastodon/components/icon'; const ColumnLink = ({ icon, text, to, href, method, badge }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span...
archimate-frontend/src/main/javascript/components/view/nodes/model_t/technologyFunction.js
zhuj/mentha-web-archimate
import React from 'react' import _ from 'lodash' import { ModelNodeWidget } from '../BaseNodeWidget' export const TYPE='technologyFunction'; export class TechnologyFunctionWidget extends ModelNodeWidget { getClassName(node) { return 'a-node model_t technologyFunction'; } }
src/shared/zarizeni/umistovani/__tests__/index.spec.js
hhjcz/too-simple-react-skeleton
/** Created by hhj on 1/4/16. */ /* eslint-disable no-unused-expressions, no-unused-vars, import/no-extraneous-dependencies */ import { expect } from 'chai' import React from 'react' import sd from 'skin-deep' import createStore from '../../../app/createStore' import Connected from '../index' describe('umistovani conn...
src/AppBundle/Resources/static/jsx/app/Product.js
viszerale-therapie/simple-courses
import React from 'react'; import ReactDOM from 'react-dom'; import tl from '../util/translator'; import DataTable from '../util/DataTable'; import actions from '../util/actions'; import dataProduct from '../data/Product'; export default { init : function(data, meta) { ReactDOM.render( <div> <h1>{tl.t('prod...
client/pages/Terms.js
homanbromand/node-react-bootstrap
import React from 'react' export default class Terms extends React.Component { render() { return ( <div class="bb-page bb-page-terms"> <h1 class="bb-h1">Terms</h1> <p>Terms content, content, content, content ..</p> <p>Terms content, content, content ..</p> <p>Terms content, content ..</p> </d...
packages/mineral-ui-icons/src/IconSmartphone.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconSmartphone(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
src/pages/build/content.js
RexSkz/drone-ui
import {BLOCKED} from '../../components/status'; import {branch} from 'baobab-react/higher-order'; import {Matrix} from './matrix'; import React from 'react'; import {Results} from './results'; import {events, GET_BUILD} from '../../actions/events'; import './index.less'; class Content extends React.Component { con...
app/routes/Leagues/Leagues.js
arnef/ligatool-hamburg
import React from 'react'; import { connect } from 'react-redux'; import { sortBy } from 'lodash'; import { Container, ListItem, Text, Separator } from '../../components'; import * as NavigationActions from '../../redux/modules/navigation'; import * as LeaguesActions from '../../redux/modules/leagues'; import Routes fr...
src/client/components/ui/form/Step.js
JulienPradet/quizzALJP
import React from 'react' export default function Step(props) { return <button type="button" onClick={props.onClick} className={"form-step "+(props.active ? "form-step--active" : '')}> { props.children } </button> }
imports/ui/pages/LatestJournalEdition/LatestJournalEdition.js
jamiebones/Journal_Publication
import React from 'react'; import { Row, Col , Alert , Button , Label , Table } from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; import { Capitalize , capAllFirstLetter , sumMeUp , AuthorRank } from '../../../modules/utilities'; import { RemoveSpaces, ViewOneEditionPapers, ReplaceSpace, StripHtml } f...
client/src/components/roles/createRole.js
natalie-elizabeth/doczy
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { Card, CardText } from 'material-ui/Card'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';...
assets/jqwidgets/demos/react/app/listbox/defaultfunctionality/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js'; class App extends React.Component { render() { let source = [ 'Affogato', 'Americano', 'Bicerin', ...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
pfm-eyesightjp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAccount, unmuteAccount, } from '../../../actions/accounts'; import { me...
examples/redirect-using-index/app.js
ksivam/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, IndexRoute, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/redirect-using-index' }) class App extends React.Component { render() { return ( <div> {this.prop...
examples/js/column-filter/select-filter-with-sort.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) ...
js/ExportData.js
nathanjameshill/ReefWatchPrototype
import React from 'react' export default React.createClass({ render() { return ( <div> <h2>Export Data</h2> </div> ) } })
react/containers/EditBiography.js
xpandmmi/biographies
import React from 'react'; import {render} from 'helpers/buildHelpers'; import Sidebar from 'components/Navigation/Sidebar/Sidebar'; import TopNavigationBar from 'components/Navigation/TopNavigationBar'; import Content from 'components/ContentView/Content'; import TranslatableComponent from 'components/I18N/Translatabl...
packages/react/.storybook/preview.js
massgov/mayflower
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { Title, Subtitle, Primary, ArgsTable, Heading, ComponentsTable, Stories, PRIMARY_STORY, CURRENT_SELECTION, SourceState, DocsContext, Canvas, Story } from '@storybook/addon-docs/blocks'; import { ActionBar, Source }...
src/parser/deathknight/blood/modules/talents/Heartbreaker.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; class Heartbreaker ex...
pootle/static/js/admin/components/User/UserAdd.js
JohnnyKing94/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 UserForm from './UserFo...
assets/javascripts/kitten/components/graphics/icons/long-arrow-icon/stories.js
KissKissBankBank/kitten
import React from 'react' import { Grid, GridCol } from 'kitten' import { LongArrowIcon } from './index' import { DocsPage } from 'storybook/docs-page' export default { title: 'Graphics/Icons/LongArrowIcon', component: LongArrowIcon, parameters: { docs: { page: () => ( <DocsPage filepath={__fil...
src/settings/patronBlocks/BlockTemplates/BlockTemplates.js
folio-org/ui-users
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, injectIntl } from 'react-intl'; import { EntryManager } from '@folio/stripes/smart-components'; import { stripesConnect } from '@folio/stripes/core'; import BlockTemplateDetails from './BlockTemplateDetai...
src/components/Home.js
rapind/grokphoto
import React from 'react' export default React.createClass({ render () { return <h2>Home</h2> } })
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js
viankakrisna/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'; export default class extends Component { static propTyp...
client/test/components/UserListElement.js
CMPUT404F16Project/cmput404-project
import React from 'react'; import { shallow } from 'enzyme'; import assert from 'assert'; import { UserListElement } from '../../src_users/components/UserListElement'; // unit tests for the UserListElement component describe('UserListElement component', () => { describe('render()', () => { it('should rend...
src/svg-icons/maps/layers-clear.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLayersClear = (props) => ( <SvgIcon {...props}> <path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-...
src/containers/Home.js
Tanachi/PollerBears
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Home extends Component { render() { console.log(sessionStorage.getItem({})); return ( <div className="home-text"> <h2>More Than a Voter, More Than a Volunteer,</h2> <h1>Be a <span className=...
node_modules/react-sparklines/src/SparklinesSpots.js
TheeSweeney/ComplexReactReduxMiddlewareReview
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: { ...
pootle/static/js/admin/components/Language/LanguageForm.js
JohnnyKing94/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...
js/components/inputgroup/disabledInput.js
mrcflorian/classbook
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, Text, Body, Left, Right, IconNB, Item, Input } from 'native-base'; import { Actions } from 'react-native-router-flu...
src/Parser/Paladin/Holy/Modules/Items/Ilterendi.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ItemLink from 'common/ItemLink'; import { formatPercentage } from 'common/format'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parser/Core/Analyzer'; import ...
src/NameForm/index.js
sach2211/scube
import React, { Component } from 'react'; import { Link, Redirect } from 'react-router-dom' import './index.css'; class NameForm extends Component { constructor(props) { super(props); this.state = { }; this.handleChange = this.handleChange.bind(this); this.formSubmitHandler = this.formSubmitHandl...
packages/react-vis/src/sankey/sankey-link.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
webpack/move_to_foreman/components/common/table/formatters/collapseableAndSelectionCellFormatter.js
jlsherrill/katello
import React from 'react'; import selectionCellFormatter from './selectionCellFormatter'; import CollapseSubscriptionGroupButton from '../components/CollapseSubscriptionGroupButton'; export default (collapseableController, selectionController, additionalData) => { const shouldShowCollapseButton = collapseableControl...
components/Form/Radio/Radio.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import uniqueId from 'lodash/fp/uniqueId'; import css from './Radio.css'; import noop from '../../../utils/noop'; import Icon from '../../Icon/Icon'; import ScreenReadable from '../../ScreenReadable/ScreenReadabl...
src/index.js
jhkmjnhamster/vcash-electron
/** * Vcash Electron GUI * Copyright (C) 2015-2017, whphhg * * This program 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 later version. * ...
client/components/UploadComponent.js
foxichu/reactgur
import React from 'react'; import {ProgressBar} from 'react-bootstrap'; import FileUpload from './../upload/FileUpload.js'; export default class UploadComponent extends React.Component { constructor(props) { super(props) this.upload = new FileUpload(this.props.file); this.upload.ee.addLis...
src/names/selected/comments/CommentManipulator.js
VasilyShelkov/ClientRelationshipManagerUI
import React from 'react'; import moment from 'moment'; import PrivateIcon from 'material-ui/svg-icons/action/visibility'; import PublicIcon from 'material-ui/svg-icons/social/people'; import IconButton from 'material-ui/IconButton'; import EditCommentForm from './EditCommentForm'; export default ({ userId, id, ...
src/components/Contributor.js
nikau-2016/lifestack-client
import React from 'react' import UserGame from './UserGame' export default React.createClass({ props: { params: React.PropTypes.object.isRequired, contributor: React.PropTypes.object.isRequired, onLoad: React.PropTypes.func.isRequired, error: React.PropTypes.string.isRequired }, com...
app/javascript/mastodon/main.js
summoners-riftodon/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = require('./performance'); function main() { perf.start('main()'); i...
app/utils/injectSaga.js
dvm4078/dvm-blog
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {function} saga A r...
src/svg-icons/action/eject.js
mit-cml/iot-website-source
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...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/Input.js
GoogleCloudPlatform/prometheus-engine
/* eslint react/prefer-stateless-function: 0 */ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, warnOnce, tagPropType } from './utils'; const propTypes = { children: PropTypes.node, type: PropTypes.string, size: PropTypes.oneOfType([P...
src/RMemo.js
crongjie/npm-rjn-demo
/* RMemo - Memo Component */ import React from 'react' let RMemo = React.createClass({ render: function() { let item = this.props.item; return ( <div className="rj-textblock rj-textblock-green" ><h4>{ (item.title) ? item.title : 'Memo'}</h4> { item.text.split('\r\n').map(function(line...
mui-data-table-react/src/components/data-table/TablePaginationActions.js
rob-blackbourn/scratch-js
import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' import IconButton from '@material-ui/core/IconButton' import FirstPageIcon from '@material-ui/icons/FirstPage' import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft' import KeyboardArrowRight...
stories/FieldColor.stories.js
maputnik/editor
import React from 'react'; import {useActionState} from './helper'; import FieldColor from '../src/components/FieldColor'; import {Wrapper} from './ui'; import {withA11y} from '@storybook/addon-a11y'; export default { title: 'FieldColor', component: FieldColor, decorators: [withA11y], }; export const Basic = (...
docs/src/pages/components/timeline/CustomizedTimeline.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Timeline from '@material-ui/lab/Timeline'; import TimelineItem from '@material-ui/lab/TimelineItem'; import TimelineSeparator from '@material-ui/lab/TimelineSeparator'; import TimelineConnector from '@material-ui/lab/TimelineConnec...
react/redux/client/src/components/template/header.js
sabertazimi/st-proj
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; class HeaderTemplate extends Component { renderLinks() { if (this.props.authenticated) { return [ <li key={1 + "header"}> <Link to="/">Home</Link> </li>, <...
app/src/routes/dashboard/components/poll-table/poll-table.spec.js
sproogen/itsgoingto.be
import React from 'react' import { render, fireEvent, screen, waitForElementToBeRemoved, act } from '@testing-library/react' import { map } from 'ramda' import PollTable from './poll-table' jest.mock('./poll-table-row', () => () => <tr><td>Mocked PollTableRow</td></tr>) jest.mock('components/paginator', () => () => ...
src/svg-icons/editor/border-top.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderTop = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h...
src/__tests__/react-numeral-input-test.js
blackbing/react-numeral-input
import expect from 'expect' import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import NumeralInput from '../react-numeral-input'; describe('ReactNumeralInput', function() { var component; var component2; beforeEach(function() { component = TestUtils...
quickviz/2020-07-25-gutenberg-colors/viz/src/index.js
ebemunk/blog
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want your app to work offline and load f...
frontend/src/components/threads-list/thread/subscription/compact.js
1905410/Misago
import React from 'react'; // jshint ignore:line import SubscriptionFull from 'misago/components/threads-list/thread/subscription/full'; // jshint ignore:line import OptionsModal from 'misago/components/threads-list/thread/subscription/modal'; // jshint ignore:line import modal from 'misago/services/modal'; // jshint i...
src/front-end/js/pages/Public.js
aleksey-gonchar/emmofret
import React from 'react' import TopNavbar from '../components/TopNavbar.js' class Public extends React.Component { render () { return ( <div> <TopNavbar /> <div className='container-fluid'> <p>public content pending</p> </div> </div> ) } } export default Pub...
app/app.js
Royten/fashgame
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
test/OverlayTriggerSpec.js
omerts/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import OverlayTrigger from '../src/OverlayTrigger'; import Popover from '../src/Popover'; import Tooltip from '../src/Tooltip'; describe('OverlayTrigger', function() { it('Should create OverlayTrigger element', function() { const i...
src/index.js
twlevelup/watch_edition_react
import React from 'react'; import ReactDOM from 'react-dom'; import HomeScreen from './app/pages/HomeScreen/HomeScreen'; import CounterScreen from './app/pages/CounterScreen/CounterScreen'; import ContactScreen from './app/pages/ContactListScreen/ContactListScreen'; import NotFoundScreen from './app/pages/NotFoundScre...
src/components/grunt/line/GruntLine.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './GruntLine.svg' /** GruntLine */ function GruntLine({ width, height, className }) { return ( <SVGDeviconInline className={'GruntLine' + ' ' + className} icon...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch05/05_02/start/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' import './stylesheets/ui.scss' import { App } from './components/App' import { Whoops404 } from './components/Whoops404' import { Router, Route, hashHistory } from 'react-router' window.React = React render( <Router history={hashHistory}> <Route path="/"...
docs/src/app/components/pages/components/RefreshIndicator/Page.js
tan-jerene/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 refreshIndicatorReadmeText from './README'; import RefreshIndicatorExampl...