path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
ButtonExample/src/containers/ProgressButtons.js
jacklam718/react-native-button-component
import React, { Component } from 'react'; import { View, ScrollView, StyleSheet } from 'react-native'; import ButtonComponent from 'react-native-button-component'; import GroupContainer from '../components/GroupContainer'; export default class ProgressButtons extends Component { constructor(props) { super(props)...
docs/src/app/components/pages/components/SvgIcon/Page.js
mmrtnz/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 iconReadmeText from './README'; import IconExampleSimple from './ExampleS...
es/sources/soundcloud/PreviewPlayer.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import PropTypes from 'prop-types'; import qsStringify from 'qs-stringify'; var createEmbedUrl = function createEmbedUrl(sourceID) { return "https://w.soundcloud.com/player/?" + qsStringify({ url: "https://api.soundcloud.com/tracks...
packages/react-cookie-demo/src/client.js
reactivestack/cookies
import React from 'react'; import ReactDOM from 'react-dom'; import { CookiesProvider } from 'react-cookie'; import App from './components/App'; const appEl = document.getElementById('main-app'); ReactDOM.render( <CookiesProvider> <App /> </CookiesProvider>, appEl );
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
gale320/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
app/Modules/Index/Pages/IndexPage/index.js
ecidi/winterfall
/** * Copyright (c) 2016-present, ecidi. * All rights reserved. * * This source code is licensed under the GPL-2.0 license found in the * LICENSE file in the root directory of this source tree. * * IndexPage */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router...
client/src/App.js
Faxn/fcc-dynamic-vote
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
src/index.js
moweiyang0214/gallery-in-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/svg-icons/image/exposure-neg-1.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureNeg1 = (props) => ( <SvgIcon {...props}> <path d="M4 11v2h8v-2H4zm15 7h-2V7.38L14 8.4V6.7L18.7 5h.3v13z"/> </SvgIcon> ); ImageExposureNeg1 = pure(ImageExposureNeg1); ImageExposureNeg1.displayName...
packages/material-ui-icons/src/LibraryBooks.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LibraryBooks = 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...
docs/app/Examples/collections/Table/Variations/TableExampleVerticalAlign.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleVerticalAlign = () => { return ( <Table striped> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Not...
app/imports/startup/client/routes.js
ericvrp/GameCollie
/* eslint-disable max-len */ import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { Meteor } from 'meteor/meteor'; import App from '../../ui/layouts/App.js'; import Documents from '../../ui/pages/Documents.js'; import Files from...
client/components/landingPage.js
VaRt-io/V-aRt
import React, { Component } from 'react'; import {OurCarousel} from './index'; export default class Main extends Component{ render(){ return ( <div> <OurCarousel /> <div id="landingPageDescriptors"> <div className=" col-xs-12 col-md-6 col-lg-4"> <...
client/src/App.js
Socialsquare/dr-bybilleder
import React, { Component } from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import Collage from './containers/Collage'; import './App.css'; const Overview = () => { return (<h1>Velkommen til Bybilleder</h1>); }; class App extends Component { render() { return ( <Ro...
src/ScrollInfinite.js
lzcmaro/react-ratchet
import React from 'react'; let ScrollInfinite = React.createClass({ render(){ let wrapStyle={ display:'none', textAlign:'center', fontSize:'12px', height:'20px', lineHeight:'20px' }; return ( <div style={wrapStyle}> ...
views/main.js
RyanTech/black-screen
import React from 'react'; import _ from 'lodash'; import Rx from 'rx'; import ApplicationView from './compiled/src/views/ApplicationView.js'; var keys = { goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38, goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ...
app/javascript/mastodon/components/avatar_overlay.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
SynapseClient/components/ImageButton.js
jmorg/synapse
/** * Created by jhank on 4/13/2017. */ import React, { Component } from 'react'; import { Image, TouchableHighlight, } from 'react-native'; export class ImageButton extends Component { render() { return( <TouchableHighlight style = {[this.props.imageStyle, {borderRa...
src/PaginationButton.js
jakubsikora/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
app/components/IncomingResults.js
nosplashurinal/order-management
import React from 'react'; import styles from '../styles/notifications.scss'; import classNames from 'classnames'; const IncomingResults = () => <section className={styles.incoming_results}> <div className={classNames(styles.notification_result, styles.w_table_row)}> <div className={clas...
app/index.js
albertmejia/empire_room
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import configureStore from './store/configureStore'; import Root from './cont...
src/components/run.js
geekydatamonkey/letterforms-in-css
import React from 'react'; import App from './App'; // Render the main component into the dom React.render(<App />, document.getElementById('app'));
packages/react/src/components/atoms/table/Table/index.js
massgov/mayflower
/** * Table module. * @module @massds/mayflower-react/Table * @requires module:@massds/mayflower-assets/scss/01-atoms/table */ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const Table = (table) => { let tableWideClass = ''; let tableHeaderRow = []; if (t...
src/svg-icons/image/timer-off.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimerOff = (props) => ( <SvgIcon {...props}> <path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1....
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
ONode/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
src/components/SearchResultsList/index.js
JohnPaulHarold/ReactExample
import React from 'react'; import PropTypes from 'prop-types'; import { SearchResult } from '../../components/'; const SearchResultsList = ({ searchResults }) => { const rows = searchResults.map((r) => { return <SearchResult key={r.id} data={r} />; }); return ( <div> {rows} </div> ); }; SearchResults...
src/components/SelectedItem.js
aarboleda1/Reddit_Mobile
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Text, Image, Linking } from 'react-native'; import { Card, CardSection, Header, Button } from './common'; import { timeDifference, validateImage } from './helpers'; const propTypes = { url: PropType...
src/browser/extension/options/AllowToRunGroup.js
zalmoxisus/redux-devtools-extension
import React from 'react'; export default ({ options, saveOption }) => { const AllowToRunState = { EVERYWHERE: true, ON_SPECIFIC_URLS: false }; return ( <fieldset className="option-group"> <legend className="option-group__title">Allow to run</legend> <div className="option option_type_r...
src/svg-icons/action/payment.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPayment = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); ActionPay...
test/helpers/shallowRenderHelper.js
GlacierXX/react-gallery-demo
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/index.js
RostislavBlaha/Learn2Code
import React from 'react' import ReactDOM from 'react-dom' import App from './App' ReactDOM.render(<App url="/api/data" />, document.getElementById('root'))
src/containers/DevTools.js
hbaughman/audible-temptations
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...
app/javascript/mastodon/features/status/components/card.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; import classnames from 'classnames'; const IDNA_PREFIX = 'xn--'; const decodeIDNA = domain => { return domain .split('.')...
js/components/leads_old/View2.js
aditya-simplecrm/iosReactAppNoresha
import React, { Component } from 'react'; import { Container, Header, Title, Content, Footer, FooterTab, Button, Icon, Text, List, ListItem } from 'native-base'; class View2 extends Component { render() { console.log('View2 props: ', this.props); return ( <Container> ...
src/templates/blog-post.js
FCCManila/blog
import React from 'react' import Helmet from 'react-helmet' import Link from 'gatsby-link' import get from 'lodash/get' import Bio from '../components/Bio' import { rhythm, scale } from '../utils/typography' class BlogPostTemplate extends React.Component { render () { const post = this.props.data.markdownRemark...
components/fetch.js
OrcaXS/react-aria2
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import configUri from '../config'; const fetchOptions = { method: 'post', headers: { Accept: 'application/json', 'Content-Type': 'text/plain; charset=utf-8', }, body: JSON.stringify({ jsonrpc: ...
src/components/SearchBar.js
vieiralucas/reakedex
import React from 'react'; const SearchBar = ({ searchTerm, onType }) => ( <div className='search-bar'> <svg className="search-bar-icon" width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1216 832q0-185-131.5-316.5t-316.5-131.5-316.5 131.5-131.5 316.5 131...
src/Parser/Druid/Restoration/Modules/Items/T21_2Set.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'; import ItemHealingDo...
client/App.js
GO345724/pair-programming
import React from 'react'; import PropTypes from 'prop-types'; import { ConnectedRouter } from 'connected-react-router'; import routes from './routes'; const App = ({history}) => { return( <ConnectedRouter history={history}> { routes } </ConnectedRouter> ) } App.propTypes = { history: PropTypes.ob...
src/svg-icons/av/pause-circle-filled.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleFilled = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/> </SvgIcon> ); AvPauseCircleFilled = pure(AvP...
fields/types/localfiles/LocalFilesField.js
geminiyellow/keystone
import _ from 'underscore'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import { Button, FormField, FormInput, FormNote } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ const ICON_EXTS = [ 'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'd...
src/Composer.js
atFriendly/react-native-friendly-chat
/* eslint no-use-before-define: ["error", { "variables": false }] */ import PropTypes from 'prop-types'; import React from 'react'; import { Platform, StyleSheet, TextInput } from 'react-native'; import { MIN_COMPOSER_HEIGHT, DEFAULT_PLACEHOLDER } from './Constant'; import Color from './Color'; import I18n from './I1...
webpack/__mocks__/foremanReact/components/common/EmptyState.js
johnpmitsch/katello
import React from 'react'; const EmptyState = props => ( <div> {`EmptyState: ${JSON.stringify(props)}`} </div> ); export default EmptyState;
js/components/loaders/ProgressBar.android.js
keopsdd/FuelTrack
import React, { Component } from 'react'; import { ProgressBarAndroid } from 'react-native'; export default class SpinnerNB extends Component { render() { return ( <ProgressBarAndroid {...this.props} styleAttr="Horizontal" indeterminate={false} progress={this.props.progre...
app/javascript/mastodon/features/compose/components/action_bar.js
mimumemo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ edit_profile: { id: 'a...
src/config/qiniusdk.js
MiRECoFu/textcontroller
'use strict'; import React from 'react'; var qiniu = require("qiniu"); function type(obj) { return Object.prototype.toString.call(obj).slice(8, -1); } qiniu.conf.ACCESS_KEY = '49NzYx9uDHH8sYL6EvYJa62PjVNKnJKdMKUSOB8b'; //您的AccessKey qiniu.conf.SECRET_KEY = '4600SeDVpWFKZ7KTLdmJZoea_iIhi-U-ou_pi-vn'; //您的SecretAcc...
packages/react-ui-components/src/Label/index.story.js
neos/neos-ui
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withKnobs, text} from '@storybook/addon-knobs'; import {StoryWrapper} from './../_lib/storyUtils'; import Label from '.'; storiesOf('Label', module) .addDecorator(withKnobs) .addWithInfo( 'default', () => ( ...
client/src/components/About.js
Darkrender/raptor-ads
import React from 'react'; import { Link } from 'react-router'; import { Item, Statistic, Container, Grid, Divider, Image, Card } from 'semantic-ui-react'; const About = () => <Container textAlign="center" className="about" fluid> <Grid columns={1}> <Grid.Column> <Grid.Row> <Item.Image ...
_app/src/core/_ums.js
oicr-webdev/oicr-webdev.github.io
/* global document, window UMS_CONFIG */ import React from 'react'; import ReactDOM from 'react-dom'; import { Router, hashHistory } from 'react-router'; import { Core, UMS, Provider as CoreProvider } from 'oicr-ui-core'; import UserDashboard from '../site/modules/UserDashboard'; import PrivateFile from '../site/module...
app/javascript/mastodon/features/domain_blocks/index.js
tootsuite/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...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/PureComponent.js
jamesgpearce/flow
// @flow import React from 'react'; class MyComponent extends React.PureComponent<DefaultProps, Props, State> { static defaultProps: DefaultProps = {}; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extend...
app/utils/pageRenderer.js
zuuuttt/pokerintelReact
import React from 'react'; import { renderToString } from 'react-dom/server'; import { Provider } from 'react-redux'; import { RouterContext } from 'react-router'; import { trackingID } from 'config/app'; import Helmet from 'react-helmet'; /* * Consider async script loading if you support IE9+ * https://developers.g...
app/javascript/mastodon/components/permalink.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
src/components/google_map.js
D7Torres/react-forecastsparks
import React, { Component } from 'react'; class GoogleMap extends Component { componentDidMount() { new google.maps.Map(this.refs.map, { zoom: 12, center: { lat: this.props.lat, lng: this.props.lon } }); } render() { ...
src/components/Progress/index.js
TF2PickupNET/components
// @flow strict-local import React from 'react'; import clamp from 'clamp'; import PropTypes from 'prop-types'; import getNotDeclaredProps from 'react-get-not-declared-props'; import Sheet, { type Data } from './Sheet'; type Props = { progress: number, indeterminate: boolean, active: boolean, className: stri...
packages/mineral-ui-icons/src/IconSatellite.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 IconSatellite(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
docs/src/app/components/pages/components/Toolbar/Page.js
lawrence-yu/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 toolbarReadmeText from './README'; import toolbarExampleSimpleCode from '...
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/containers/ListPage/index.js
strapi/strapi-examples
/** * * ListPage * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import { capitalize, findIndex, get, isEmpty, isUndefined, toInteger, upperFirst } fr...
src/interface/common/FullscreenError.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import DiscordButton from 'interface/common/thirdpartybuttons/Discord'; import GithubButton from 'interface/common/thirdpartybuttons/GitHub'; import AppBackgroundImage from './AppBackgroundImage'; const FullscreenError = ({ error, details, background, ch...
src/Parser/DeathKnight/Blood/Modules/Items/T20_4pc.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; const GRAVEWARDEN_RUNIC_DISCOUNT = 5; class T20_4pc extends Analyzer...
source/components/row.js
u9520107/meepworks-datatable
import React from 'react'; import Component from 'meepworks/component'; import PureRenderComponent from './pure-render-component'; import styles, { transform } from './styles'; import { merge } from 'meepworks/styles'; import Cell from './cell'; export default class Row extends PureRenderComponent { _getFixedCol...
app/components/Battle-Child/Player-Preview.js
mohamekasem/reactstart
import React from 'react'; import PropTypes from 'prop-types'; let PlayarPreview = (props)=> { return ( <div> <div className='column'> <img className='avatar' src={props.avatar} alt={'Avatar for ' + props.username} /> <h2 className='username'>@{props.use...
src/public/components/list/item/torrent.js
Lunik/tcloud
import React from 'react' import List from '@react-mdc/list' import $ from 'jquery' import io from 'socket.io-client' import Notify from '../../notification' import Color from '../../../style/theme' import { ArrowIcon, HeartIcon } from '../../image/svg' import TorrentToolbox from '../../toolbox/torrent' import Radial...
src/NavPane/windows/Pane/Button/index.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Radium, { getState } from 'radium'; import { transparentize } from '../../../../color'; import { ColorContext, colorContextTypes } from '../../../../style/color/windows'; import { ThemeContext, themeContextTypes } from '../../../../sty...
docs/pages/components/links.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'components/links'; const requireDemo = require.context('docs/src/pages/components/links', false, /\.(js|tsx)$/); const requireRaw...
src/svg-icons/content/font-download.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFontDownload = (props) => ( <SvgIcon {...props}> <path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13...
app/javascript/mastodon/components/attachment_list.js
clworld/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Icon from 'mastodon/components/icon'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export ...
src/components/auth/require_auth.js
ahmadabugosh/client-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; export default function(ComposedComponent) { function mapStateToProps(state) { return { authenticated: state.auth.authenticated }; } class Authentication extends Component { // static contextTypes = { // router: React...
app/components/Header/style.js
ArtemDervoed/DiplomWork
import React from 'react'; import styled from 'styled-components'; export const Div = styled.div` button { color: white !important; } `;
app/components/IssueIcon/index.js
anneback/react-quiz
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
src/app-client.js
Arunvirat/Logi-heroes
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import AppRoutes from './components/AppRoutes'; window.onload = () => { ReactDOM.render(<AppRoutes/>, document.getElementById('main')); };
src/js/pages/OwnUser/AboutMePage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './AboutMePage.scss'; import '../../../scss/pages/other-user/proposals.scss'; import translate from '../../i18n/Translate'; import connectToStores from "../../utils/connectToStores"; import AuthenticatedComponent from "../....
aplicaciones_informaticas/frontendPacientes/src/pages/Pacientes/HomePacientes.js
awainer/7539
import React, { Component } from 'react'; import { Recommendation, Scores, RealTimeMap } from '../../components'; import { Tab, Tabs } from 'react-toolbox/lib/tabs'; class HomePacientes extends Component { constructor (props) { super(props); this.state = { tabIndex: 0 }; this.displayComponent = this.di...
src/svg-icons/device/brightness-high.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessHigh = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
components/list/ListItemActions.js
react-toolbox/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import { LIST } from '../identifiers'; import InjectListItemAction from './ListItemAction'; const factory = (ListItemAction) => { const ListItemActions = ({ type, children, theme }) => { const validChildren = ...
src/icons/OpacityIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class OpacityIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M35.32 15.99L24 4.69l-11.32 11.3C9.56 19.11 8 23.27 8 27.27s1.56 8.22 4.68 11.34 7.22 4.7 11.32 4.7 8.2-1....
src/js/routes.js
petemill/bernie-activism-priorities
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; import App from './components/App'; import ActivismPrioritiesApp from './containers/ActivismPrioritiesApp/ActivismPrioritiesApp'; import NotFoundView from './views/NotFoundView'; export default ( <Route path="/" component={App}> ...
src/InputGroup.js
glenjamin/react-bootstrap
import classNames from 'classnames'; import PropTypes from 'prop-types'; import { elementType } from 'prop-types-extra'; import React from 'react'; import createWithBsPrefix from './utils/createWithBsPrefix'; import { createBootstrapComponent } from './ThemeProvider'; /** * * @property {InputGroupAppend} Append * ...
examples/js/keyboard-nav/nav-with-select-table.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 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; products.push({ id: id, ...
internals/templates/containers/NotFoundPage/index.js
PokerGuy/react-boilerplate
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a 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 necessity for you then you can refactor it...
example/with-static-markup/src/routes.js
iansinnott/react-static-webpack-plugin
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import { App, Home, About, NotFound } from './components.js'; export const routes = ( <Route path='/' component={App}> <IndexRoute title='App' component={Home} /> <Route path='about' title='App - About' component={About} /> <Ro...
src/routes/LessonScreen/components/Lesson.js
gReis89/sam-ovens-website
import React from 'react' import PropTypes from 'prop-types' import VideoPlayer from 'components/VideoPlayer' import Button from 'components/Button' import ResourcesList from 'components/ResourcesList' import LessonController from './LessonController' import iconBlackDown from 'assets/imgs/icon-arrow-black-down.svg' im...
src/Link/Link.js
kmees/react-fabric
import React from 'react' import elementType from 'react-prop-types/lib/elementType' import fabricComponent from '../fabricComponent' import style from './Link.scss' const Link = ({ children, componentClass: Component, ...props }) => ( <Component data-fabric="Link" {...props} styleName={'ms-Link'}> ...
js/src/dapps/dappreg/SelectAccount/selectAccount.js
jesuscript/parity
// Copyright 2015, 2016 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
app/static/src/performer/TestRecommendationList.js
vsilent/Vision
import React from 'react'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import FormControl from 'react-bootstrap/lib/FormControl'; import Accordion from 'react-bootstrap/lib/Accordion'; import Panel from 'react-bootstrap/lib/Panel'; import {Link} from 'react-router'; import NewTestForm from './NewTestForm'; i...
examples/websdk-samples/LayerReactNativeSample/src/ui/messages/QuoteMessagePart.js
layerhq/layer-js-sampleapps
import React, { Component } from 'react'; import { StyleSheet, View, Text } from 'react-native'; export default class QuoteMessagePart extends Component { render() { return ( <View style={styles.container}> <Text style={styles.messageText}>{'"' + this.props.messagePart.body + '"'}</Text> ...
examples/huge-apps/routes/Messages/components/Messages.js
egobrightan/react-router
import React from 'react' class Messages extends React.Component { render() { return ( <div> <h2>Messages</h2> </div> ) } } export default Messages
client/src/components/DialogBox.js
apologeticcookie/apologeticcookie
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; class DialogBox extends React.Component { state = { open: false, }; handleOpen = () => { this.setState({open: true}); }; handleClose = () => { this.setState({open: false}); }; ...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/ListGroupItem.js
GoogleCloudPlatform/prometheus-engine
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; var _excluded = ["className", "cssModule", "tag", "active", "disabled", "action", "color"]; import React from 'react'; import PropTypes from 'prop-types'; impor...
src/icons/FormatAlignRightIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FormatAlignRightIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 42h36v-4H6v4zm12-8h24v-4H18v4zM6 26h36v-4H6v4zm12-8h24v-4H18v4zM6 6v4h36V6H6z"/></svg>;} };
src/routes/Customisable/components/plugins/delivery-address/delivery-address.plugin.js
codingarchitect/react-counter-pair
import React from 'react' import { connect } from 'react-redux' import DeliveryAddress from './delivery-address.rt' export const pluginMetadata = { name : "react-counter/soe/soh/delivery-address", displayName : 'Delivery Address', sequence : 6, active : true, childPlug...
app/jsx/bundles/content_shares.js
djbender/canvas-lms
/* * Copyright (C) 2019 - 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...
packages/frontend-web/tooling/storybook/config.js
Instrument/conversationai-moderator
/* Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
node_modules/react-bootstrap/es/PaginationButton.js
Technaesthetic/ua-tools
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
amezcua/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import { assign } from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, Snackbar } from 'material-ui'; im...
src/browser/components/layout_browse/index.js
ap-o/intro
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Link } from 'react-router-dom'; import MiniCardGrid from '../minicard_grid'; import AddIcon from 'Common/fixtures/glyphs/add.svg'; import FloatButton from 'Browser/components/button/float_button'; const Fi...
example/pie/index.js
somonus/react-echarts
import React, { Component } from 'react'; import Chart from '../../src'; export default class App extends Component { render() { const options = { title : { text: '某站点用户访问来源', subtext: '纯属虚构', x:'center' }, tooltip : { trigger: 'item', formatter: "{a} <b...
src/parser/priest/discipline/modules/spells/Lenience.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import fetchWcl from 'common/fetchWclApi'; import SpellIcon from 'common/SpellIcon'; import { formatThousands, formatNumber } from 'common/format'; import LazyLoadStatisticBox from 'interface/others/LazyLoadStatisticBox'; import Analyzer from 'parser/cor...
packages/app/app/components/TrackRow/index.js
nukeop/nuclear
import React from 'react'; import _ from 'lodash'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import numeral from 'numeral'; import { Icon } from 'semantic-ui-react'; import { formatDuration, getTrackArtist, getTrackTitle } from '@nuclear/ui'; ...
src/svg-icons/av/playlist-add.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistAdd = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/> </SvgIcon> ); AvPlaylistAdd = pure(AvPlaylistAdd); AvPlaylistAdd...