path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/parser/priest/discipline/modules/spells/Schism.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatPercentage } from 'common/format'; import DualStatisticBox, { STATISTIC_ORDER } from 'interface/others/DualStatisticBox'; import Analyzer from ...
packages/cf-component-button/test/Button.js
koddsson/cf-ui
import React from 'react'; import { felaSnapshot } from 'cf-style-provider'; import { Button } from '../../cf-component-button/src/index'; test('should render with type', () => { const snapshot = felaSnapshot( <Button type="primary" onClick={() => {}}>Button</Button> ); expect(snapshot.component).toMatchSnap...
templates/rubix/meteor/meteor-seed/imports/common/header.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import { Link, withRouter } from 'react-router'; import l20n, { Entity } from '@sketchpixy/rubix/lib/L20n'; import { Label, SidebarBtn, Dispatcher, NavDropdown, NavDropdownHover, Navbar, Nav, NavItem, ...
ukelonn.web.frontend/src/main/frontend/components/AdminPaymenttypesCreate.js
steinarb/ukelonn
import React from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Link } from 'react-router-dom'; import { MODIFY_TRANSACTION_TYPE_NAME, MODIFY_JOB_AMOUNT, CREATE_PAYMENT_TYPE_BUTTON_CLICKED, } from '../actiontypes'; import Locale from './Locale'; import Logout from './Logout'; ex...
src/components/Result.js
nebgnahz/marry-guess
import React from 'react'; import './Result.css'; const gUrlPrefix = "https://www.ladymarry.xyz/"; const gResultArray = ['volcano', 'castle', 'plane', 'rollercoaster', 'balloon', 'underwater', ...
app/components/app.js
joeyschroeder/speedometer-app
import { MODAL_LEVELS, setModal } from '../ducks/modal'; import React, { Component } from 'react'; import { StatusBar, StyleSheet, View } from 'react-native'; import { startTimer, stopTimer } from '../ducks/timer'; import { AdMobBanner } from 'expo'; import DashboardScreen from './screens/dashboard-screen'; import Mod...
web/test/portal/components/FormText.js
trendmicro/serverless-survey-forms
import '../../helpers/env'; import DomMock from '../../helpers/dom-mock'; import expect from 'expect'; import React from 'react'; import TestUtils from 'react-dom/test-utils'; import Text from '../../../portal/src/components/Form/Text'; import Question from '../../../portal/src/components/Form/Question'; DomMock('<htm...
lib/MultiColumnList/stories/ColumnWidths.js
folio-org/stripes-components
import React from 'react'; import MultiColumnList from '../MultiColumnList'; import Select from '../../Select'; import Layout from '../../Layout'; import { asyncGenerate } from './service'; export default class ColumnWidths extends React.Component { constructor() { super(); this.state = { data: [], ...
docs/src/examples/modules/Modal/Usage/ModalExampleMultiple.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Icon, Modal } from 'semantic-ui-react' function ModalExampleMultiple() { const [firstOpen, setFirstOpen] = React.useState(false) const [secondOpen, setSecondOpen] = React.useState(false) return ( <> <Button onClick={() => setFirstOpen(true)}>Open first Modal<...
src/encoded/static/libs/ui/boolean-toggle.js
ENCODE-DCC/encoded
import React from 'react'; import PropTypes from 'prop-types'; /** * Renders a boolean switch in the style of iOS. This keeps no internal state -- the parent * component keeps this state and passes it down. The "frame" of the switch represents the space in * which the actuator slides. The actuator represents the "...
components/tooltip/Popup.js
TDFE/td-ui
/** * Created by kongliang on 29/06/2017. */ import React from 'react'; import ReactDOM from 'react-dom'; import PopupInner from './PopupInner'; export default class Popup extends React.Component { constructor(props) { super(props); this.container = null; // the container that holds the popup and will be m...
src/svg-icons/image/camera.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCamera = (props) => ( <SvgIcon {...props}> <path d="M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4...
src/routes/Slider/components/Slider.js
YanlongLai/pofa-redux
import React from 'react' import PropTypes from 'prop-types' import Slider from 'react-slick' import 'slick-carousel/slick/slick.css' import 'slick-carousel/slick/slick-theme.css' // server config import sliderConfig from '../../../site/t1687/logo/slice' import docConfig from '../../../site/t1687/doc/aboutus' import ...
packages/react-jsx-highstock-datepickers/src/index.js
AlexMayants/react-jsx-highcharts
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import Highcharts from 'highstock-release'; import { provideAxis } from 'react-jsx-highstock'; import '../styles/index.css'; const ONE_DAY = 86400000; class DateRangePick...
client/src/javascript/components/icons/StartIcon.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class Start extends BaseIcon { render() { return ( <svg className={`icon icon--start ${this.props.className}`} viewBox={this.getViewBox()}> <path d="M13.1 9.5L46.9 30 13.1 50.5v-41z" /> </svg> ); } }
app/javascript/mastodon/features/follow_requests/index.js
tri-star/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/components/daily.js
wcastand/okami
import React from 'react' import PropTypes from 'prop-types' import {compose} from 'recompose' import {asHours} from 'pomeranian-durations' import setHours from 'date-fns/fp/setHours' import startOfDay from 'date-fns/startOfDay' import subDays from 'date-fns/fp/subDays' import addDays from 'date-fns/fp/addDays' impor...
src/pages/Login.js
oglimmer/linky
// https://react-bootstrap.github.io/components.html#forms import React from 'react'; import PropTypes from 'prop-types'; import { Button, FormGroup, ControlLabel } from 'react-bootstrap'; import { withRouter } from 'react-router'; import { Form, Control } from 'react-redux-form'; import { connect } from 'react-redu...
styleguide/screens/Patterns/Pagination/Pagination.js
rdjpalmer/bloom
/* globals window: true */ import React from 'react'; import cx from 'classnames'; import dedent from 'dedent'; import Specimen from '../../../components/Specimen/Specimen'; import { D, H, T, C } from '../../../components/Scaffold/Scaffold'; import Pagination from '../../../../components/Pagination/Pagination'; im...
js/jqwidgets/demos/react/app/grid/localizedaddnewrow/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { localdata: generatedata(10), datafields: [ ...
src/pages/Tables/ExtendedTables/TableWithLinks.js
JSLancerTeam/crystal-dashboard
import React, { Component } from 'react'; import generateData from '../generateData'; class TableWithLinks extends Component { state = { items: generateData() }; deleteItem = itemId => { this.setState({ items: this.state.items.filter(item => item.id !== itemId) }); } render() { let { ...
src/components/ServerReleaseVersionTable.js
DanielDeychakiwsky/ReleaseDashboard
import React, { Component } from 'react'; import { Table } from 'react-bootstrap'; import { componentLogger } from '../utils/logger'; const componentName = 'ServerReleaseVersionTable'; class ServerReleaseVersionTable extends Component { componentWillMount() { componentLogger(componentName, 'componentcompo...
src/components/About/index.js
dramich/Chatson
import React from 'react'; import { styles } from './styles.scss'; const emoChart = require('./assets/emotionChart.jpg'); const socChart = require('./assets/socialChart.jpg'); export function About() { return ( <section className={`${styles}`}> <div className="row"> <div className="col-xs-12"> ...
docs/app/Examples/elements/Step/Variations/StepExampleSizes.js
mohammed88/Semantic-UI-React
import React from 'react' import { Step } from 'semantic-ui-react' const steps = [ { icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' }, { active: true, icon: 'payment', title: 'Billing', description: 'Enter billing information' }, { disabled: true, icon: 'info', title: 'Confirm Orde...
blueocean-material-icons/src/js/components/svg-icons/action/view-day.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionViewDay = (props) => ( <SvgIcon {...props}> <path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"/> </SvgIcon> ); ActionViewDay.displayName = 'ActionViewDay'; ActionView...
docs-ui/components/splitLayout.stories.js
gencer/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; // import {action} from '@storybook/addon-actions'; import SplitLayout from 'sentry-ui/splitLayout'; storiesOf('ComponentLayouts/SplitLayout', module).add( 'default', withInfo('Children elements ...
app/src/containers/Search.js
wtfil/google-music-unofficial-client
import React from 'react'; import {connect} from 'react-redux'; import {search, selectTrack} from '../actions'; import List from '../components/List'; import Row from '../components/Row'; @connect(state => state) export default class Artist extends React.Component { static onEnter(dispatch, props) { return dispatch...
src/components/App/App.js
Blackheart340/unified-project
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import b_ from 'b_'; class App extends Component { componentDidMount() { this.props.onInit(); } render() { const { inited } = this.props; return ( <div className={b_('app')}> ...
src/svg-icons/av/library-books.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryBooks = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1...
src/components/slider/demos/startingValue.js
isogon/material-components
import React from 'react' import { Slider } from '../../../' export default () => <Slider min={50} max={100} defaultValue={70} />
client/apps/plugin-status/health.js
Automattic/woocommerce-services
/** * External dependencies */ import React from 'react'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import { ExternalLink } from '@wordpress/components'; /** * Internal dependencies */ import Indicator from './indicator'; import WooCommerceServicesIndicator from './woocommerce...
src/containers/router.js
tlhjc/alpha
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { syncHistoryWithStore } from 'react-router-redux'; import { Router, Route, IndexRoute, hashHistory, applyRouterMiddleware } from 'react-router'; import App from '../components/app.js'; import Home from './home.js'; impo...
js/containers/TayPage/Tay.js
wraithyz/reactNative-menu
import React, { Component } from 'react'; import { StyleSheet, Text, View, ListView, ScrollView, TouchableHighlight, Navigator, ToolbarAndroid } from 'react-native'; import ScrollableTabView, { ScrollableTabBar } from 'react-native-scrollable-tab-view'; import { connect } from 'react-redux'; import { ...
src/svg-icons/action/report-problem.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReportProblem = (props) => ( <SvgIcon {...props}> <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/> </SvgIcon> ); ActionReportProblem = pure(ActionReportProblem); ActionReportProblem.displa...
example/examples/TakeSnapshot.js
parkling/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, Image, } from 'react-native'; import MapView from 'react-native-maps'; import flagBlueImg from './assets/flag-blue.png'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('win...
desktop-application/node_modules/babel-preset-react-hmre/test/Test.js
santosh-surya/pcb-cnc-machine
import React from 'react' export default class Test extends React.Component { render() { return ( <div>Winning?</div> ) } }
src/containers/Root.js
HackDFW/hackdfw-frontend
import React from 'react' import { Provider } from 'react-redux' import { Router } from 'react-router' export default class Root extends React.Component { static propTypes = { history: React.PropTypes.object.isRequired, routes: React.PropTypes.element.isRequired, store: React.PropTypes.object.isRequired ...
test/client/components/Auth/UnauthenticatedHomeTest.js
andela-jmuturi/docman-react-redux
import React from 'react'; import { expect } from 'chai'; // eslint-disable-next-line import UnauthenticatedHomePage from '../../../../client/src/components/Auth/UnauthenticatedHomePage'; import { mountWithContext } from '../utils'; describe('Unauthenticate home page', () => { it('renders the login card by default'...
dac/ui/src/components/Page.js
dremio/dremio-oss
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
week3/react/counter-app/src/index.js
jfhinchcliffe/Coderfactory_Term3_Notes
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('app') );
src/common/components/Paragraph.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 ParagraphContext = { theme: Theme, }; const Paragraph = (props: TextProps, { theme }: ParagraphContext) => { const { marginBottom = theme.paragraph.marginB...
client/routes.js
zhuscat/react-koa-isomorphic-boilerplate
import React from 'react'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import App from './containers/App'; import UserInfoContainer from './containers/UserInfoContainer'; export default ( <Router history={browserHistory}> <Route path="/" component={App}> <IndexRoute component=...
client/modules/Keyword/components/KeywordNavBar/KeywordNavBar.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Navbar, Nav, NavItem, MenuItem, Pagination, FormControl, Button } from 'react-bootstrap'; import styles from '../../../../main.css'; import { setCurrentPage, fetchKeywords, setSearch } from '../...
app/components/Settings.js
Aurora0001/Aether
import React, { Component } from 'react'; import { Link } from 'react-router'; import SettingsBar from './settings/SettingsBar.js'; import SettingsContainer from './settings/SettingsContainer.js'; import styles from './Settings.css'; export default class Settings extends Component { render() { return ( <d...
app/javascript/mastodon/features/getting_started/index.js
h3zjp/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
demo/card/card.js
timkrins/react-mdl
import React from 'react'; import Card, { CardTitle, CardText, CardActions, CardMenu } from '../../src/card/Card'; import Button from '../../src/Button'; import IconButton from '../../src/IconButton'; import Icon from '../../src/Icon'; class Demo extends React.Component { render() { return ( <d...
src/ProfilePicture.js
zugarzeeker/zugarzeeker.github.io
import React from 'react' import cn from 'classnames' const ProfilePicture = () => ( <div className="col-md-6 col-sm-6 picture"> <img className={cn('img-responsive')} src={require('./profile.jpg')} /> </div> ) export default ProfilePicture
components/AlumnusCard.js
efleurine/alumnus
import React from 'react'; function AlumnusCard() { return ( <div> <div className="card shadow-1"> <div className="card-image"> <img src="/static/john-doe.png" alt="Profile" /> <div className="card-content tc pb2"> <span className="card-title b f2 black">Peterson JE...
docs/src/app/components/pages/components/Paper/Page.js
kasra-co/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 paperReadmeText from './README'; import PaperExampleSimple from './Exampl...
src/docs/examples/LeadForm/Example.js
eliaslopezgt/ps-react-eli
import React from 'react'; import LeadForm from 'ps-react/LeadForm'; /** Standard LeadForm */ export default function ExampleStandard() { return ( <LeadForm action="." className="testclass" htmlId="testformId" method="post" name="LeadFormName" /> ); }
docs/index.js
conorhastings/react-color
'use strict' import React from 'react' import ReactDOM from 'react-dom' import Home from './components/home/Home' // var html = ReactDOMServer.renderToString(React.createElement(Home)); // console.log(html); if (typeof document !== 'undefined') { ReactDOM.render( React.createElement(Home), document.getEle...
services/ui/src/components/Problem/index.js
amazeeio/lagoon
import React from 'react'; import { bp, color, fontSize } from 'lib/variables'; import Accordion from 'components/Accordion'; import { getFromNowTime } from "components/Dates"; import ContentDisplay from "components/Problem/ContentDisplay"; const Problem = ({ problem, display }) => { const fromNowDate = getFromNow...
common/food-landing/FoodLanding.js
gobble43/gobble-dist-web
import React from 'react'; import MainLayoutContainer from './../main-layout/MainLayoutContainer'; const FoodLanding = () => ( <MainLayoutContainer> <h1>Food Landing Page</h1> <p>Landing page for Food.</p> </MainLayoutContainer> ); export default FoodLanding;
Realization/frontend/czechidm-core/src/content/identity/IdentityRoleEav.js
bcvsolutions/CzechIdMng
import React from 'react'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import FormInstance from '../../domain/FormInstance'; /** * Extended identity role attributes * * @author Vít Švanda */ export default class IdentityRoleEav extends Basic.AbstractCo...
examples/src/components/CustomOption.js
webcoding/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
server/sonar-web/src/main/js/components/charts/bar-chart.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
app/components/Home.js
shawnxusy/git-dashboard
/* jshint esnext:true */ import React from 'react'; import {Link} from 'react-router'; import HomeStore from '../stores/HomeStore'; import HomeActions from '../actions/HomeActions'; import {first, without, findWhere} from 'underscore'; class Home extends React.Component { constructor(props) { super(props); ...
client/scripts/components/admin/list-view/disclosure-table/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...
app/components/Home.js
rafaellucio/react-learning
import React from 'react'; var Home = React.createClass({ render: function () { return ( <h2 className="text-center"> Search by Github Username Above </h2> ) } }); module.exports = Home;
src/svg-icons/social/location-city.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialLocationCity = (props) => ( <SvgIcon {...props}> <path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h...
modules/gui/src/app/landing/title.js
openforis/sepal
import {msg} from 'translate' import React from 'react' import styles from './title.module.css' const Title = ({className}) => <div className={[styles.title, className].join(' ')}> {msg('landing.title')} <hr className={styles.titleUnderline}/> </div> export default Title
app/src/components/settings/About.js
kort/kort-native
import React, { Component } from 'react'; import VersionNumber from 'react-native-version-number'; import Hyperlink from 'react-native-hyperlink'; import { Linking, View, Platform, ScrollView, Image, Text } from 'react-native'; import I18n from 'react-native-i18n'; import Config from '../../cons...
client/src/components/FourOhFour/index.js
jonathanihm/freeCodeCamp
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { Loader, Spacer } from '../../components/helpers'; import { Link } from 'gatsby'; import notFoundLogo from '../../assets/images/freeCodeCamp-404.svg'; import { randomQuote } from '../../utils/get-words'; import './404.css'; class No...
packages/material-ui-icons/src/Forward30.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Forward30 = props => <SvgIcon {...props}> <path d="M9.6 13.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.1-.2-.1h-.5s-.1.1-.2.1-.1.1-.1.2v.2h-1c0-.2 0-.3.1-.5s.2-.3.3-.4.3-.2.4-.2.4-.1.5-.1c.2 0 .4...
src/App.js
marceltschoppch/react-redux-webpack-blog
import React from 'react'; import ApiClient from './helpers/ApiClient'; class App extends React.Component { constructor(props) { super(props); this.state = { count: this.props.count }; this.handleClick = this.handleClick.bind(this); this.client = new ApiClient(); } handleClick() { ...
src/components/Answer/Answer.js
LemonsLab/Quiz
import React from 'react'; import { Image, Text, TouchableWithoutFeedback, View } from 'react-native'; import styles from '../../style/Answer.js'; const imagesPNG = { arrowDown : require('../images/arrowDown.png'), arrowUp : require('../images/arrowUp.png') ...
services/ui/src/components/BillingGroups/index.js
amazeeio/lagoon
import React from 'react'; import css from 'styled-jsx/css'; import Button from '../Button'; import BillingGroupLink from "../link/BillingGroup"; import { bp, color, fontSize } from 'lib/variables'; const BillingGroups = ({ billingGroups }) => ( <div className="billingGroups"> <div className="header"> <lab...
src/svg-icons/device/screen-rotation.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenRotation = (props) => ( <SvgIcon {...props}> <path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c...
example/examples/MarkerTypes.js
phantomlds/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; import flagBlueImg from './assets/flag-blue.png'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = w...
src/svg-icons/editor/format-shapes.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatShapes = (props) => ( <SvgIcon {...props}> <path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-...
src/helpers/TokenTagger.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import { Button , FormControl , FormGroup , InputGroup , Tab , Tabs , Well } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import { get } from 'lodash'; import TreeNode from '../classes/TreeNode'; import LabelSelector ...
mm-react/src/routes/NotFound.js
Ameobea/tickgrinder
//! Default display route for 404s import React from 'react'; import ContentContainer from '../components/ContentContainer'; function NotFound() { return ( <div> <h1>Not Found</h1> <p>This page doesn't exist; looks like you entered a wrong link or something.<br /> If you got here by clicking ...
analysis/deathknightblood/src/modules/features/checklist/Component.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import Requirement from 'parser/shared/modules/fe...
src/routes/login/index.js
kkdubey/gauri
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/components/about-us/opening/anchors-panel.js
nickhsine/twreporter-react
import { buildFbShareLink } from '../utils/build-fb-share-link' import colors from '../../../constants/colors' import styled, { css, keyframes } from 'styled-components' import { font } from '../constants/styles' import { headerStyle, allPaddingLeft, allPaddingRight } from './section-style' import { replaceGCSUrlOrigin...
src/svg-icons/image/crop-free.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropFree = (props) => ( <SvgIcon {...props}> <path d="M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"/> </SvgIco...
src/index.js
masonforest/react-components
import React from 'react'; import App from './components/App'; React.render(<App />, document.getElementById('root'));
client/src/App.js
petertrotman/adventurelookup
import React from 'react'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from './routes'; import store, { history } from './store'; import './App.scss'; const App = () => ( <Provider store={store}> <Router history={history} routes={routes} /> </Provider> ); expo...
client/components/NotFoundPage.js
Treeeater/expresshome
/* eslint react/forbid-prop-types: "off" */ import React from 'react'; import { Link } from 'react-router-dom'; export class NotFoundPage extends React.Component { componentWillMount() { const { staticContext } = this.props; if (staticContext) { staticContext.is404 = true; } } render() { ...
test/specs/elements/Header/HeaderSubheader-test.js
clemensw/stardust
import faker from 'faker' import React from 'react' import HeaderSubheader from 'src/elements/Header/HeaderSubheader' import * as common from 'test/specs/commonTests' describe('HeaderSubheader', () => { common.isConformant(HeaderSubheader) common.rendersChildren(HeaderSubheader) describe('content', () => { ...
node_modules/react-native/Libraries/Image/Image.ios.js
RahulDesai92/PHR
/** * 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...
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleShorthandElement.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleShorthandElement = () => ( <Checkbox label={<label>Make my profile visible</label>} /> ) export default CheckboxExampleShorthandElement
src/svg-icons/hardware/watch.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareWatch = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2....
src/routes/Pokemons/components/PokemonsView.js
alexblacksnow/alexblacksnow.github.io
import React, { Component } from 'react'; import './PokemonsView.scss'; import { PokemonsListItem } from './PokemonsListItem'; // export const PokemonsView = pokemonsList => ( // <div> // <h4>Welcome!</h4> // <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> // { // po...
src/todoAppRedux/containers/AddTodo.js
yosuzuk/react-playground
import React from 'react'; import { connect } from 'react-redux'; import { addTodo } from '../actions'; export const AddTodo = ({ dispatch }) => { let input; return ( <div> <form onSubmit={ e => { e.preventDefault(); ...
app/javascript/mastodon/components/regeneration_indicator.js
theoria24/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_working.svg'; const RegenerationIndicator = () => ( <div className='regeneration-indicator'> <div className='regeneration-indicator__figure'> <img src={illustration} alt='' /> ...
powerpiapp/__tests__/index.android.js
Knapsacks/power-pi-v2
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
examples/with-react-i18next/components/ExtendedComponent.js
nelak/next.js
import React from 'react' import { translate } from 'react-i18next' function MyComponennt ({ t }) { return ( <div> {t('extendedComponent')} </div> ) } const Extended = translate('common')(MyComponennt) export default Extended
js/components/ResultItem.js
basistam/score-tracker
import React from 'react'; import {} from 'native-base'; class ResultItem extends React.Component { render() { return ( <div></div> ); } } ResultItem.propTypes = {}; ResultItem.defaultProps = {}; export default ResultItem;
src/Alert.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; import Fade from './Fade'; const propTypes = { children: PropTypes.node, className: PropTypes.string, closeClassName: PropTypes.string, closeAriaLabel: Pro...
CompositeUi/src/views/component/__tests__/Advice.js
kreta/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import {shallow} from 'enzyme'; import Re...
__tests__/highlight-value-test.js
reactabular/searchtabular
/* eslint-disable react/prop-types */ import React from 'react'; import TestUtils from 'react-dom/test-utils'; import { highlightValue } from '../src'; describe('search.highlightValue', function () { it('does not highlight if there is no match at all', function () { const value = 'foobar'; const result = Tes...
demo/src/components/App/components/Examples/components/ScrollableContainer/ScrollableContainer.js
YingyuWu/react-autosuggest-fix-ios-scroll-issue
import styles from './ScrollableContainer.less'; import theme from './theme.less'; import React, { Component } from 'react'; import Modal from 'react-modal'; import Autosuggest from 'Autosuggest'; import countries from './countries'; import { escapeRegexCharacters } from 'utils/utils'; const getSuggestions = value =>...
packages/react/components/menu-item.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import F7Icon from './icon'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __re...
src/styles/theme-decorator.js
XiaonuoGantan/material-ui
import React from 'react'; export default (customTheme) => { return function(Component) { return React.createClass({ childContextTypes : { muiTheme: React.PropTypes.object, }, getChildContext() { return { muiTheme: customTheme, }; }, render() {...
app/javascript/mastodon/features/ui/components/list_panel.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchLists } from 'mastodon/actions/lists'; import { connect } from 'react-redux'; import { createSelector } from 'rese...
P/lixil/src/pages/About.js
imuntil/React
import React from 'react' import './About.css' import { Col, Row } from 'antd' import LeftNav from '../components/About/LeftNav' import {connect} from 'react-redux' import {getAnchorIndex, getAnchorScrollStatus} from '../reducers' import {hashChanged, scrollEnd, scrollStart} from '../actions' import Velocity from 'velo...
test/test-client/main-page-test.js
AuxiliumRoa/pitch-in
import React from 'react'; import { expect } from 'chai'; import { shallow, mount, render } from 'enzyme'; import MainPage from '../../client/src/components/main/main-page.jsx' import IconBox from '../../client/src/components/icon-box.jsx' import MainContainer from '../../client/src/components/main/main-container.jsx'...
src/@ui/Button/ButtonLink.stories.js
NewSpring/Apollos
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import { BodyText } from '@ui/typography'; import ButtonLink from './ButtonLink'; storiesOf('Buttons/Link', module) .add('default', () => ( <ButtonLink onPress={() => {}}>Boom</ButtonLink> )) .add('Inherits typographic styles',...
src/container/ThemeColor/index.js
ztplz/CNode-react-native
/** * React Native App * https://github.com/ztplz/CNode-react-native * email: mysticzt@gmail.com */ import React, { Component } from 'react'; import { View, Text, ScrollView, TouchableOpacity, StyleSheet } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-red...