path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/src/app/components/pages/components/Tabs/ExampleControlled.js
skarnecki/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; export default class TabsExampleControlled extends React.Component { constructor(props) { super(props); this.state =...
react/features/overlay/components/OverlayContainer.js
KalinduDN/kalindudn.github.io
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { CallOverlay } from '../../jwt'; import PageReloadFilmstripOnlyOverlay from './PageReloadFilmstripOnlyOverlay'; import PageReloadOverlay from './PageReloadOverlay'; import SuspendedFilmstripOnlyOverlay from './SuspendedFilmstripO...
src/index.js
Tiramisusie/account-book
import React from 'react'; import ReactDOM from 'react-dom'; import Header from './js/components/header/Header'; import Daily from './js/components/daily/Daily'; import Summary from './js/components/summary/Summary'; import Monthly from './js/components/monthly/Monthly'; import { Row, Col, Button, Menu } from 'antd'; i...
src/App.js
FredBoat/docs.fredboat.com
import React, { Component } from 'react'; import "./css/App.css"; import logo from "../public/logo.svg"; import Markdown from "./Markdown"; import Toc from "./Toc"; import BottomBar from "./BottomBar"; import discord from "../public/icon/discord.svg"; import patreon from "../public/icon/patreon.png"; import github fro...
src/@ui/HorizontalTileFeed/index.js
NewSpring/Apollos
import React from 'react'; import { TouchableWithoutFeedback, Dimensions } from 'react-native'; import PropTypes from 'prop-types'; import { compose, pure, branch, withProps, setPropTypes, defaultProps } from 'recompose'; import { Link } from '@ui/NativeWebRouter'; import { getLinkPath } from '@utils/content'; import ...
app/addons/replication/components/activity.js
michellephung/couchdb-fauxton
// 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 in writing, software // distributed un...
src/packages/@ncigdc/theme/icons/ShoppingCart.js
NCI-GDC/portal-ui
// @flow import React from 'react'; export default ({ className = '', style = {}, ...props }) => ( <i style={style} className={`${className} fa fa-shopping-cart`} {...props} /> );
src/routes/standups/components/team-member-input.js
rtablada/standups-react
import React, { Component } from 'react'; class StandupsNew extends Component { componentDidMount() { this.props.registerChild(this.getInput.bind(this)); } getInput() { return { teamMember: this.props.teamMember, done: this.refs.done.value, work: this.refs.work.value, help: this....
test/test_helper.js
regMeet/ReactSelector
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
ZP_Base/TestReactiveNativeAuto/JS_IOS/MainInterface2.js
zhangpoor/MyExercise
/** * Created by zhangpoor on 16/7/21. */ import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import MyView from './Views/MyView' AppRegistry.registerComponent('mView', () => MyView);
src/components/stories/SimpleLogin.js
neontribe/spool
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import SimpleLogin from '../SimpleLogin'; storiesOf('SimpleLogin', module) .add('SimpleLogin', () => ( <SimpleLogin /> ));
src/layouts/RootLayout/index.js
Bandwidth/shared-components
import React from 'react'; import PropTypes from 'prop-types'; import * as styles from './styles'; import { ScrollShadow } from 'behaviors'; const RootLayout = ({ children, scrollShadowProps, Layout, ...rest }) => ( <ScrollShadow global {...scrollShadowProps} {...rest}> <Layout>{children}</Layout> </ScrollShad...
src/browser/main.js
TheoMer/este
// @flow import type { Action } from '../common/types'; import React from 'react'; import ReactDOM from 'react-dom'; import Root from './app/Root'; import configureFound from './configureFound'; import configureReporting from '../common/configureReporting'; import configureStorage from '../common/configureStorage'; imp...
demo/index.js
joernroeder/react-gmaps
import React from 'react'; import {Gmaps, Marker} from '../dist'; import Events from '../dist/components/events'; let styles = { item: { backgroundColor: 'white', transition: 'background-color 0.2s linear' }, cols: { float: 'left' } }; let App = React.createClass({ render() { let events = ...
pages/index.js
EvanSimpson/evansimpson.github.io
import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import Helmet from 'react-helmet'; import { config } from 'config'; import ExternalLink from '../components/ExternalLink/ExternalLink'; import photo from '../assets/images/evan.png'; import styles from '../css...
packages/adapter-webpack/test/fixtures/react/client-render.js
dennisreimann/uiengine
import React from 'react' import ReactDOM from 'react-dom' export default function clientRender (Component, props) { ReactDOM.hydrate( React.createElement(Component, props), document.querySelector('#app') ) }
src/app/components/pages/DashboardOne.js
ucokfm/admin-lte-react
import React from 'react'; import PageWrapper from '../../../lib/page/PageWrapper'; import PageHeader from '../../../lib/page/PageHeader'; import Breadcrumb from '../../../lib/page/Breadcrumb'; import PageContent from '../../../lib/page/PageContent'; import SmallBox from '../../../lib/widgets/SmallBox'; export default...
node_modules/_antd@2.13.4@antd/es/collapse/Collapse.js
ligangwolai/blog
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _createClass from 'babel-runtime/helpers/createClass'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
common/components/Reg.js
laoqiren/isomorphic-redux-forum
import React from 'react'; import {connect} from 'react-redux'; import fetch from 'isomorphic-fetch' import {browserHistory} from 'react-router'; import {logIn} from '../actions/actions' import { Input, Button,Icon } from 'antd'; class Reg extends React.Component{ constructor(props){ super(props); t...
src/React/Renderers/ImageRenderer/index.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import Monologue from 'monologue.js'; import style from 'PVWStyle/ReactRenderers/ImageRenderer.mcss'; import ContentEditable from '../../Widgets/ContentEditableWidget'; import ImageExporter from '../../../Common/Misc/ImageExporter'; import sizeHelper from...
packages/wix-style-react/src/Swatches/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, columns, divider, code, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import Swatches from '..'; import * as examples from './exam...
src/components/charts/RewardSpreadChart.js
whphhg/vcash-ui
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { CartesianGrid, ResponsiveContainer, Scatter, ScatterChart, Tooltip, XAxis, YAxis } from 'recharts' import moment from 'moment' /** Components */ import { CustomTick, CustomTooltip } ...
src/svg-icons/editor/format-align-left.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignLeft = (props) => ( <SvgIcon {...props}> <path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignLeft = pure(EditorFormatAlignL...
examples/with-inferno/src/index.js
bringking/react-web-animation
import React from 'react'; import { render } from 'react-dom'; // import examples import App from './app'; // render render(<App/>, document.getElementById('root'));
demo-frontend/src/App.js
utain/demo-spring-boot-multimodule
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { constructor(props, context) { super(props, context); this.state = { data: {}, }; this.fetchData = this.fetchData.bind(this); } componentDidMount() { this.fetchData...
src/components/shared/Summary.js
nadavspi/UnwiseConnect
import React from 'react'; import { getJiraIssueKey, CompanyJiraMapping } from "../../helpers/jira"; const Summary = ({ summary, company, value }) => { const dd = value.match(/^DD(\d+)-(\d+)/); if (dd) { return ( <span> <a href={`https://sd.mydonedone.com/issuetracker/projects/${d...
src/components/Header/Header.js
joris77/admin-web
import React from 'react' import AppBar from 'react-toolbox/lib/app_bar' import Navigation from 'react-toolbox/lib/navigation' import { IndexLink, Link } from 'react-router' export const Header = () => ( <AppBar title='Admin' leftIcon='menu'> <Navigation type='horizontal'> <IndexLink to='/' activeClassName...
docs/src/app/pages/components/Chip/ExampleChipLarger.js
GetAmbassador/react-ions
import React from 'react' import Chip from 'react-ions/lib/components/Chip' const ExampleChipLarger = () => ( <Chip text='Danger' size='larger' color='danger' /> ) export default ExampleChipLarger
packages/ringcentral-widgets-docs/src/app/pages/Components/ConferenceCommands/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ConferenceCommands from 'ringcentral-widgets/components/ConferenceCommands'; /** * A example of `ConferenceCommands` */ const ConferenceCommandsDemo = () => ( <div style={{ position: 'relative', height: '500px', width: '300px', ...
src/routes.js
jennywin/donate-for-good
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/app'; import Home from './components/views/home'; import NewAccount from './components/views/account/NewAccount'; import SignIn from './components/views/account/SignIn'; import DonorConfirmation from './compone...
src/components/DataTable/DataTable-story.js
jzhang300/carbon-components-react
import React, { Component } from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import DataTableRow from '../DataTableRow'; import DataTableData from '../DataTableData'; import { DataTa...
test/integration/image-component/base-path/pages/rotated.js
JeromeFitz/next.js
import Image from 'next/image' import React from 'react' const Page = () => { return ( <div> <p>Hello World</p> <Image id="exif-rotation-image" src="/docs/exif-rotation.jpg" layout="fill" /> <p id="stubtext">This is the rotated page</p> </div> ) } export def...
src/TPA/TpaStyleInjector/TpaStyleInjector.js
skyiea/wix-style-react
import React from 'react'; function tpaStyleInjector(Component, styles) { const displayName = Component.displayName; if (!displayName) { throw 'Component must have a displayName'; } const styleSheetId = `wix-style-react-${displayName}`; class TpaStyleInjector extends React.Component { componentDidM...
components/apps-list/index.js
blockstack/blockstack-site
import React from 'react' import { Title, Text } from '@components/section' import { Box, Flex } from 'blockstack-ui' import { transition } from '@common/theme' import { useHover } from 'use-events' import ChevronRightIcon from 'mdi-react/ChevronRightIcon' const AppIcon = ({ ...rest }) => ( <Box pr="4"> <Box siz...
src/pages/index.js
marianoheller/marianoheller.github.io
import React from 'react' import Link from 'gatsby-link' const IndexPage = () => ( <div> <h1>Hi</h1> </div> ) export default IndexPage
src/svg-icons/action/accessibility.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility = pure(ActionAccessib...
src/svg-icons/device/developer-mode.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDeveloperMode = (props) => ( <SvgIcon {...props}> <path d="M7 5h10v2h2V3c0-1.1-.9-1.99-2-1.99L7 1c-1.1 0-2 .9-2 2v4h2V5zm8.41 11.59L20 12l-4.59-4.59L14 8.83 17.17 12 14 15.17l1.41 1.42zM10 15.17L6.83 12 1...
test/integration/production/pages/dynamic/bundle.js
BlancheXu/test
import React from 'react' import dynamic from 'next/dynamic' import Router from 'next/router' import PropTypes from 'prop-types' const HelloBundle = dynamic({ modules: () => { const components = { HelloContext: import('../../components/hello-context'), Hello1: import('../../components/hello1'), ...
app/components/Login.js
sceneweaver/entwine
import React from 'react'; import { browserHistory } from 'react-router' /* ----------------- COMPONENT ------------------ */ export class Login extends React.Component { constructor(props) { super(props); this.onLoginSubmit = this.onLoginSubmit.bind(this); } render() { const { message } = t...
src/svg-icons/social/pages.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPages = (props) => ( <SvgIcon {...props}> <path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/...
src/index.js
SuperCoac/basic-redux-boilerplate
import React from 'react'; import { render } from 'react-dom'; import App from './containers/App'; import configureStore from './store/configureStore'; import { Provider } from 'react-redux'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider> , document.getElementById('app'...
server/server.js
denistakeda/evolution
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; import transit from 'transit-immutable-js'; // Webpack Requirements import webpack from 'we...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
stonegithubs/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
modules/plugins/image/Image.js
devrieda/arc-reactor
import React from 'react'; import Immutable from 'immutable'; import Figure from '../shared/Figure'; import cx from 'classnames'; const PureRenderMixin = require('react-addons-pure-render-mixin'); const { string, object, instanceOf } = React.PropTypes; const Image = React.createClass({ mixins: [PureRenderMixin], ...
client/pages/examples/threejswebvr/snek/index.js
fdesjardins/webgl
import React from 'react' import * as THREE from 'three' import { css } from 'emotion' import * as Tone from 'tone' import { VRButton } from 'three/examples/jsm/webxr/VRButton.js' import { BoxLineGeometry } from 'three/examples/jsm/geometries/BoxLineGeometry.js' import { FirstPersonControls } from 'three/examples/jsm/c...
src/js/App.js
rupesh-jaiswal/MediaPlayer
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import { Provider } from 'react-redux'; import { IntlProvider } from 'react-intl'; import { addLocaleData } from 'react-intl'; import en from 'react-intl/locale-data/en'; import { getCurrentLocale, getLocaleData } from 'gro...
client/modules/accounts/components/.stories/log_in_buttons.js
thancock20/voting-app
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { withKnobs, text, boolean, number, object } from '@kadira/storybook-addon-knobs'; import { setComposerStub } from 'react-komposer'; import LogInButtons from '../log_in_buttons.jsx'; storiesOf('accounts.LogInButtons', module) .a...
src/components/Contact/Contact.js
expdevelop/d812
import React from 'react' import { connect } from 'react-redux' import { FlexGrid, Container, Map, Title, Content } from 'components' import { Phones, Schedule } from "../NavPhones/NavPhones" import { parsePoints } from 'helpers' import { socialLinks, navMail } from 'config' import s from './Contact.sass' const ma...
test/react/visual/tests/Util/Meta.js
JulienPradet/pigment-store
import React from 'react' import PigmentStore from 'pigment-store' import Meta from '../../../../../src/core/display/App/util/View/Meta/index' export default PigmentStore.React.describe('Meta', Meta) .featureJsx( 'Default', <Meta>Faded text</Meta> )
node_modules/react-icons/md/phonelink-setup.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdPhonelinkSetup = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.6 1.6c1.8 0 3.4 1.6 3.4 3.4v30c0 1.8-1.6 3.4-3.4 3.4h-16.6c-1.8 0-3.4-1.6-3.4-3.4v-5h3.4v3.4h16.6v-26.8h-16.6v3.4h-3.4v-5c0-1.8 1.6-3.4 3.4-3.4h16.6z m-18....
src/v2/components/UI/Head/index.js
aredotna/ervell
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet-async' const Head = ({ children, ...rest }) => ( <Helmet defaultTitle="Are.na" {...rest}> {children} </Helmet> ) Head.propTypes = { children: PropTypes.node.isRequired, } export default Head
techCurriculum/ui/solutions/7.1/src/components/TextInput.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * 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...
app/javascript/flavours/glitch/features/following/index.js
glitch-soc/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from 'flavours/glitch/components/loading_indicator'; import { lookupAccount, fetchAccount, fe...
src/js/pages/RegisterPage.js
dnbr2002/FE
import React from 'react'; import DocumentTitle from 'react-document-title'; import { RegistrationForm, LoginLink } from 'react-stormpath'; export default class RegisterPage extends React.Component { render() { return ( <DocumentTitle title={`Registration`}> <div className="container"> <...
src/svg-icons/action/done-all.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDoneAll = (props) => ( <SvgIcon {...props}> <path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4...
index.ios.js
simonayzman/Bubbl
import codePush from 'react-native-code-push'; import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import { Provider } from 'react-redux'; import store from './src/redux/store'; import AppViewContainer from './src/containers/AppViewContainer'; class Bubbl extends Component { render(...
src/carousel.js
andywer/nuka-carousel
'use strict'; import React from 'react'; import tweenState from 'react-tween-state'; import decorators from './decorators'; import assign from 'object-assign'; import ExecutionEnvironment from 'exenv'; React.initializeTouchEvents(true); const addEvent = function(elem, type, eventHandle) { if (elem == null || typeo...
frontend/js/components/ecosystems/ElectionReminderModal.js
ttavenner/okcandidate-platform
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Modal from './../atoms/Modal'; import TextField from './../organisms/TextField'; import Checkbox from './../molecules/Checkbox'; import { setEmailValue, setPhoneValue, toggleNewsletterValue, createElect...
src/Container.js
imasl/react-router-relay
import React from 'react'; import StaticContainer from 'react-static-container'; import getParamsForRoute from './getParamsForRoute'; import RootComponent from './RootComponent'; import RouteAggregator from './RouteAggregator'; export default class Container extends React.Component { static displayName = 'ReactRout...
app/components/setup.js
jonahlyn/Prioritizer
import React from 'react'; import TrelloBoardPicker from './containers/trello-board-picker-container'; var Setup = React.createClass({ render: function() { return ( <div className="setup"> <hr/> <p>Follow the instructions below to setup your boa...
client/src/components/StatusMessages/index.js
fraktio/teamdaily
import React from 'react'; import colors from '../../colors'; import classnames from 'classnames'; import Message from 'components/Message'; import styles from './style.pcss'; export default ({ messages }) => <div className={styles.container}> {colors.map(color => { const classes = classnames(styles.box, c...
app/jsx/context_modules/FileSelectBox.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/router.js
jhlav/MPNLeaderboards
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/components/Experiment/Playground/NotSupported.js
soyguijarro/magic-web
import React from 'react'; import Message from './Message'; const NotSupported = () => ( <Message iconName="sentiment_dissatisfied" title="Not supported" text="The required Web APIs for this demo are not supported by your browser" /> ); export default NotSupported;
lib/components/MapWMSTile.js
wannyk/react-native-maps
import PropTypes from 'prop-types'; import React from 'react'; import { ViewPropTypes, View } from 'react-native'; import decorateMapComponent, { USES_DEFAULT_IMPLEMENTATION, SUPPORTED, } from './decorateMapComponent'; // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44) const vie...
lib/shared/screens/public/screens/page/index.js
relax/relax
import Component from 'components/component'; import Viewer from 'components/viewer'; import React from 'react'; import PropTypes from 'prop-types'; import {dataConnect} from 'relate-js'; @dataConnect( (state) => ({ pageSlug: state.router.params.slug }), (props) => ({ fragments: { page: { _...
src/routes/Counter/components/Counter.js
jsebax/react-finance-app
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
src/instructions.js
coffenbacher/rational
import React, { Component } from 'react'; import { NICE, SUPER_NICE } from './colors'; export class Instructions extends Component { render() { return ( <div> <div className="row"> <div className="col-lg-8"> <h1>Evidence can be overwhelming.</h1> </div> </div...
src/Parser/Hunter/Marksmanship/Modules/Items/Tier20_4p.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; /** * Aimed Shot r...
src/client/todos/buttons.react.js
Tzitzian/Oppex
import './buttons.styl'; import Component from '../components/component.react'; import React from 'react'; export default class TodoButtons extends Component { static propTypes = { actions: React.PropTypes.object.isRequired, clearAllEnabled: React.PropTypes.bool.isRequired, msg: React.PropTypes.object.i...
src/components/Promises/promises_list.js
Betree/democracy-watcher
import React from 'react' import I18n from 'i18n-js' import groupBy from 'lodash.groupby' import Promise from './promise' export default class PromisesList extends React.PureComponent { render() { const groupedPromises = groupBy(this.props.promises, 'subject') const nbSubjects = Object.keys(groupedPromises)...
components/CopyButton.js
cofacts/rumors-site
import React from 'react'; import Button from '@material-ui/core/Button'; import copy from 'copy-to-clipboard'; import { t } from 'ttag'; const CopyButton = React.memo(({ content = '', onSuccess }) => { const handleClickEvent = () => { if (copy(content)) { if (typeof onSuccess === 'function') onSuccess(); ...
src/svg-icons/image/filter-hdr.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterHdr = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageFilterHdr = pure(ImageFilterHdr); ImageFilterHdr.displayName...
src/GridColumn.js
shaneosullivan/spotlist
import React, { Component } from 'react'; import PlayButtonControl from './PlayButtonControl'; class GridColumn extends Component { constructor() { super(); this.state = { selectionCount: -1 }; } shouldComponentUpdate(nextProps) { // Since drawing hundreds of images is performance critical,...
app/javascript/mastodon/features/ui/components/column_header.js
rainyday/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, ...
examples/todomvc/containers/TodoApp.js
nikgraf/redux-devtools
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; class TodoApp extends Component { render(...
packages/mineral-ui-icons/src/IconPermDeviceInformation.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 IconPermDeviceInformation(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon ...
app/main.js
hsin421/tacec-2017
import React from 'react'; import { render } from 'react-dom'; import Frame from './components/Frame'; import Landing from './components/Landing'; import About from './components/About'; import Schedule from './components/Schedule'; import Speaker from './components/Speaker'; import Contact from './components/Contact';...
src/app/components/pages/contact.js
jordanco/drafter-frontend
import React, { Component } from 'react'; //import EmailUnreplied from '../email_unreplied/index' //import Email from '../email/index' //import EmailSuggestion from '../email_suggestion/index' export default () => { return ( <div className="lhs-master"> <div className="main-view-master"> ...
blueocean-material-icons/src/js/components/svg-icons/notification/airline-seat-flat.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationAirlineSeatFlat = (props) => ( <SvgIcon {...props}> <path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.14 3.08.04 4.24 1.19 1.16 3.08 1.1...
packages/idyll-docs/components/editor/index.js
idyll-lang/idyll
import React from 'react'; import IdyllEditArea from './edit-area'; import IdyllRenderer from './renderer'; import GlobalStyles from '../global-styles'; import styles from './styles'; class LiveIdyllEditor extends React.PureComponent { constructor(props) { super(props); const { markup } = props; this.sta...
src/parser/hunter/marksmanship/modules/talents/LethalShots.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; /** * Steady Shot has a 25% chance to cause your next Aimed Shot or Rapid ...
assets/jqwidgets/demos/react/app/tree/righttoleftlayout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTree from '../../../jqwidgets-react/react_jqxtree.js'; class App extends React.Component { render () { // Create jqxTree let source = [ { icon: '../../images/mailIcon.png', label: 'Mail', expanded: true, items: [ ...
src/Control.js
andrewkshim/react-animatronics
// @flow /** * @module Control */ import React from 'react' import ReactDOM from 'react-dom' import type { Ref, ElementType } from 'react' import type { Styles } from './internal/flow-types' import ContextTypes from './internal/context-types' import { IS_PRODUCTION } from './internal/constants' import { makeError ...
src/svg-icons/maps/place.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPlace = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"...
src/containers/DevTools.js
SawyerHood/pomodoro-redux
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </Dock...
packages/mineral-ui-icons/src/IconNfc.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 IconNfc(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> ...
docs/app/Examples/elements/Image/index.js
aabustamante/Semantic-UI-React
import React from 'react' import Groups from './Groups' import States from './States' import Types from './Types' import Usage from './Usage' import Variations from './Variations' const ImageExamples = () => ( <div> <Types /> <States /> <Variations /> <Groups /> <Usage /> </div> ) export defa...
client/components/settings/bank-accesses/confirm-delete-account.js
ZeHiro/kresus
import React from 'react'; import { connect } from 'react-redux'; import { translate as $t, displayLabel } from '../../../helpers'; import { get, actions } from '../../../store'; import { registerModal } from '../../ui/modal'; import ModalContent from '../../ui/modal/content'; import CancelAndDelete from '../../ui/mo...
Frontend/src/App.js
fabiofernandesx/kbArticle
import React, { Component } from 'react'; import './App.css'; class App extends Component { render() { return ( <div className="container"> <div className="header clearfix"> <h3 className="text-muted">Knowledge base</h3> </div> {this.props.children} </div> ); }...
src/svg-icons/action/accessible.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessible = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19...
src/Parser/Hunter/BeastMastery/Modules/Spells/BestialWrath/BestialWrathUptime.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBox from "Main/StatisticBox"; import SpellIcon from "common/SpellIcon"; import { formatPercentage } from "common/format"; import STATISTI...
src/svg-icons/image/style.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageStyle = (props) => ( <SvgIcon {...props}> <path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1....
app/javascript/components/performance-charts/areaChart.js
ManageIQ/manageiq-ui-classic
import React from 'react'; import PropTypes from 'prop-types'; import { AreaChart } from '@carbon/charts-react'; import { getYAxisValue } from './helpers'; const AreaChartGraph = ({ data, format, size, title, }) => { const options = { title, axes: { bottom: { mapsTo: 'key', scaleType:...
docs/src/app/components/pages/components/SelectField/ExampleCustomLabel.js
skarnecki/material-ui
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; export default class SelectFieldExampleCustomLabel extends React.Component { constructor(props) { super(props); this.state = {value: 1}; } handleChange = (event, index, value) => t...
src/components/Forms/Archive/DimensionsDecimal.js
CoreyDH/product-finder
import React from 'react'; import {Col, Row, InputGroup, FormControl, DropdownButton, MenuItem} from 'react-bootstrap'; import {decToFraction} from './../../../helpers/formatters'; export default class ProductFilterWidget extends React.Component { constructor(props) { super(props); this.state = { dim...
src/bundles/ApplicationsAdmin/components/Agency/Agency.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import { connect } from 'react-redux' import { AUcheckbox } from '@gov.au/control-input' import AUselect from '@gov.au/select' import AUtextInput from '@gov.au/text-inputs' import { saveAgency } from '../../redux/modules/agency' import format from 'date-fns/format' class Agency extends React....
ui/src/widgets/job_listing.js
halilozercan/halocoin
import React, { Component } from 'react'; import axios from 'axios'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, } from 'material-ui/Table'; import {Card, CardHeader, CardText} from 'material-ui/Card'; class JobListing extends Component { constructor(props) { super(props); ...
src/svg-icons/av/remove-from-queue.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRemoveFromQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2H8v-2h8z"/> </SvgIcon> );...
src/components/MyComponent/index.js
liang869219658/Music
import React, { Component } from 'react'; import './index.less'; class MyComponent extends Component { render() { return ( <h1 className="demo"> <span className="glyphicon glyphicon-th"></span> 更多干货请前往:http://guoyongfeng.github.io/idoc/ <span className="glyphicon glyphicon-plane"><...