path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
Realization/frontend/czechidm-acc/src/content/connectorserver/RemoteServerConnectors.js
bcvsolutions/CzechIdMng
import React from 'react'; import { connect } from 'react-redux'; // import { Basic, Domain, Managers } from 'czechidm-core'; import { RemoteServerManager } from '../../redux'; import ConnectorTable from './ConnectorTable'; const manager = new RemoteServerManager(); /** * Connectors available on remote server. * *...
admin/src/App.js
zentrope/webl
// // Copyright (c) 2017 Keith Irwin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published // by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // // This program is distri...
src/mixins/helpers.js
iam4x/react-slick
'use strict'; import React from 'react'; import ReactTransitionEvents from 'react/lib/ReactTransitionEvents'; import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper'; import assign from 'object-assign'; var helpers = { initialize: function (props) { var slideCount = React.Children.count(prop...
app.js
Code4Newark/newark-viz
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; import Location from '....
src/Parser/Rogue/Common/Legendaries/DreadlordsDeceit.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import Wrapper from 'common/Wrapper'; class DreadlordsDeceit extends Analyzer { static dependencies = { combatants: Combatants, }; on_initialize...
packages/mineral-ui-icons/src/IconEqualizer.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 IconEqualizer(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
src/routes/about/index.js
tarixgit/test
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 '../../compo...
js/react-components/components/CategoryList.js
JACooper/Forge-client
import React from 'react'; class CategoryList extends React.Component { constructor(props) { super(props); this.setActive = this.setActive.bind(this); this.addCategory = this.addCategory.bind(this); this.state = { newCategoryName: '', }; } componentWillMount() { this.props.getCat...
app/components/ClearButton/index.js
rapicastillo/beautifulrising-client
/** * * ClearButton * */ import React from 'react'; import styled from 'styled-components'; export default styled.button` outline: none; font-weight: 800; font-family: 'Avenir', 'Kaff', sans-serif; font-weight: 800; padding-${p=>p.theme.isArabic?'left':'right'}: 24px; text-transform: uppercase; padding-bottom: 20px; ...
src/components/Navigation/Navigation.js
Grusteam/spark-in-me
import React from 'react'; import ReactDOM from 'react-dom' import cx from 'classnames'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Navigation.css'; import Link from '../Link'; import request from '../../core/request'; class Navigation extends React.Component { constructor(props...
components/webrtc/SocialSharing.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import { Dropdown, Icon, Button } from 'semantic-ui-react'; import {ShareButtons, generateShareIcon} from 'react-share'; class SocialSharing extends React.Component { /* Props: roomURL: full URL to share currentSlideURL: full URL to share ha...
app/javascript/mastodon/components/missing_indicator.js
esetomo/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='missing-indicator'> <div> <FormattedMessage id='missing_indicator.label' defaultMessage='Not found' /> </div> </div> ); export default MissingIndicator;
src/svg-icons/action/three-d-rotation.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThreeDRotation = (props) => ( <SvgIcon {...props}> <path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-....
client/components/settings/emails/index.js
bnjbvr/kresus
import React from 'react'; import { connect } from 'react-redux'; import { get } from '../../../store'; import { translate as $t } from '../../../helpers'; import Alerts from './alert-list'; import EmailConfig from './config'; import Reports from './report-list'; function EmailsParameters(props) { let maybeEdito...
client/src/components/layout/header.js
martindavid/hackathon-starter
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import { Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, } from 'reactstrap'; import LoginButton from 'components/LoginButton'; class Header extends Component { constructor(props) { super(props); t...
pages/components/prompt.js
GallenHu/Hinote
/** * Prompt 组件 * 可以弹出文本输入框 * */ import React from 'react'; import PropTypes from 'prop-types'; export default class Prompt extends React.Component { constructor(props) { super(props); this.state = { show: true, }; } render() { const contentValue = this.props.value; const placehold...
docs/app/Examples/views/Statistic/Types/StatisticExampleTopLabel.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Statistic } from 'semantic-ui-react' const StatisticExampleTopLabel = () => ( <div> <Statistic> <Statistic.Label>Views</Statistic.Label> <Statistic.Value>40,509</Statistic.Value> </Statistic> </div> ) export default StatisticExampleTopLabel
src/svg-icons/av/airplay.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAirplay = (props) => ( <SvgIcon {...props}> <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); AvAirplay = pure(AvAirplay...
app/javascript/mastodon/components/load_gap.js
cybrespace/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); export default @injectIntl class LoadGap extends React.PureComponent { static propTypes...
frontend/src/utils/requireAuth.js
andres81/auth-service
import React from 'react'; import {connect} from 'react-redux'; export default function (ProtectedComponent) { class Authenticate extends React.Component { componentWillMount() { if (!this.props.isAuthenticated) { this.context.router.push('/'); } } ...
src/index.js
nlsandler/gridlock
import React from 'react'; import ReactDOM from 'react-dom'; import Puzzle from './components/Puzzle'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import './index.css'; ReactDOM.render( <Puzzle/>, document.getElementById('root') );
frontend/src/Components/Page/Sidebar/Messages/Messages.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import MessageConnector from './MessageConnector'; import styles from './Messages.css'; function Messages({ messages }) { return ( <div className={styles.messages}> { messages.map((message) => { return ( <MessageCo...
pages/template.js
headwinds/porthole
import React, { Component } from 'react'; import { compose } from 'recompose'; import withRedux from 'next-redux-wrapper'; import { bindActionCreators } from 'redux'; import initializeStore from '../store/store'; import Main from '../apollo/layout'; import Header from '../components/Header'; import Submit from '../comp...
frontend/src/pages/index.js
djhi/boilerplate
import React from 'react'; import Head from 'next/head'; import Layout from '../app/public/PublicLayout'; export default () => ( <Layout> <Head> <title>The Application</title> <meta charSet="utf-8" /> <meta name="viewport" content="initial-scale=1.0, width=device-width" ...
src/components/common/header/Header.js
forkhacker/webapp-react
import React from 'react'; import Logo from './Logo'; import SearchBox from './SearchBox'; import UserActions from './UserActions'; import Loader from '../Loader'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as loginActions from '../../../actions/loginActions'; import {REDI...
analysis/warriorarms/src/modules/talents/Cleave.js
anom0ly/WoWAnalyzer
import { formatThousands } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import StatisticListBoxItem from 'parser/ui/StatisticListBoxItem'; import React from...
src/components/JoinChangers.js
PatrickHai/react-client-changers
import React from 'react'; class JoinChangers extends React.Component{ jumpUrl(){} closeTitle(){} render(){ return ( <aside className="layout_box box-center-v layer_dl" id="float_title"> <div className="logo"></div> <div className="txt_s box_col"> <p>常客</p> ...
src/components/common/Video.js
serlo-org/serlo-abc
import { propOr } from 'ramda'; import React, { Component } from 'react'; import { View } from 'react-native'; import { Video } from 'expo-av'; import Constants from 'expo-constants'; const styles = { container: { width: '100%', flex: 1, alignItems: 'center', justifyContent: 'center' } }; export d...
admin/client/App/components/Footer/index.js
Pop-Code/keystone
/** * The global Footer, displays a link to the website and the current Keystone * version in use */ import React from 'react'; import { css } from 'glamor'; import { Container } from '../../elemental'; import theme from '../../../theme'; var Footer = React.createClass({ displayName: 'Footer', propTypes: { app...
ignite/Examples/Components/i18nExample.js
mohammadhendy/DriverApp
// @flow import React from 'react' import { View, Text } from 'react-native' import ExamplesRegistry from '../../../App/Services/ExamplesRegistry' import I18n from 'react-native-i18n' // Example ExamplesRegistry.addPluginExample('I18n', () => <View> <Text style={{color: '#ffffff'}}>Locale: {I18n.defaultLocale}<...
frontend/src/Components/Link/Button.js
Radarr/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { align, kinds, sizes } from 'Helpers/Props'; import Link from './Link'; import styles from './Button.css'; class Button extends Component { // // Render render() { const { classN...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
ankitsinghania94/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
__tests__/index.android.js
rafaellincoln/react-native-telephony
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 /> ); });
src/components/JobItem/index.js
apedyashev/react-universal-jobs-aggregator
// libs import React from 'react'; import {PropTypes} from 'prop-types'; import format from 'date-fns/format'; // components import {Card, CardHeader, CardText} from 'material-ui/Card'; import LocationIcon from 'material-ui/svg-icons/communication/location-on'; import BusinessIcon from 'material-ui/svg-icons/communicat...
src/js/app.js
gragland/instatype
import React from 'react'; import Results from './components/results.js'; import InputComponent from './components/input.js'; import Loading from './components/loading.js'; import rawStyle from './../less/style.less'; // For older versions of React (deprecated in 0.14) if (typeof React.initializeTouchEvents === 'funct...
src/index.js
emil-mi/token-crack
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
client/queuelist.js
YocketList/YocketList
import React from 'react'; import ReactDOM from 'react-dom'; import Queue from './queue'; const QueueList = (props) => { const list = props.queues.map(function(queue, ind) { return <Queue key={ind} link={queue} />; }); return <div>{list}</div>; }; export default QueueList;
src/TestIndex/PhaserTestIndex.js
builden/react-electron-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import '../index.css'; import PhaserTest from '../PhaserTest'; console.log('start PhaserTestIndex'); ReactDOM.render(<PhaserTest />, document.getElementById('root'));
test/client/components/Hello.spec.js
toomastahves/react-layout2-example
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { expect } from 'chai'; import { Hello } from 'client/components/Hello'; const setup = () => { const props = { message: 'hello' }; const renderer = TestUtils.createRenderer(); renderer.render(<Hello {...props} />); const o...
app/son.js
vijanny/react-native-DemoPrj
import React, { Component } from 'react'; import {View, AppRegistry, StyleSheet, Text,Image,Dimensions,TouchableHighlight,Alert,Animated,Easing,} from 'react-native'; import Header from './header'; import Modal from 'react-native-modalbox'; import AnimatedCircleProgress from './CircleProgressComponents/AnimatedCircleP...
src/components/HtmlRenderer.js
avshalomh/display-server
import React, { Component } from 'react'; require('../styles/full-screen-iframe.css'); class HtmlRenderer extends Component { componentDidMount = () => { this.updateIframe(); }; updateIframe() { var iframe = this.refs.iframe; iframe.contentDocument.open(); iframe.contentDocument.write(this.pr...
consoles/my-joy-instances/src/components/instances/__tests__/snapshots.spec.js
yldio/joyent-portal
import React from 'react'; import renderer from 'react-test-renderer'; import 'jest-styled-components'; import { Table, TableTbody } from 'joyent-ui-toolkit'; import SnapshotList, { Item } from '../snapshots'; import Theme from '@mocks/theme'; it('renders <Item /> without throwing', () => { expect( renderer ...
frontend/src/view-file-document.js
miurahr/seahub
import React from 'react'; import ReactDOM from 'react-dom'; import { seafileAPI } from './utils/seafile-api'; import { gettext, mediaUrl} from './utils/constants'; import FileView from './components/file-view/file-view'; import FileViewTip from './components/file-view/file-view-tip'; import Loading from './components/...
src/main/js/builder/views/components/SponsorTeamView.js
Bernardo-MG/dreadball-toolkit-webpage
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import Box from 'grommet/components/Box'; import Heading from 'grommet/components/Heading'; import DocumentPdfIcon from 'grommet/components/icons/base/DocumentPdf'; import SponsorAffinitiesList fr...
admin/client/components/List/ListFilters.js
andreufirefly/keystone
import React from 'react'; import filterComponents from '../../filters'; import CurrentListStore from '../../stores/CurrentListStore'; import Popout from '../Popout'; import { Pill } from 'elemental'; const Filter = React.createClass({ propTypes: { filter: React.PropTypes.object.isRequired, }, getInitialState () ...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
TimurTarasenko/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstants'; import ActorTheme from 'constants/ActorTheme'; import MessageAction...
src/svg-icons/av/playlist-play.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistPlay = (props) => ( <SvgIcon {...props}> <path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/> </SvgIcon> ); AvPlaylistPlay = pure(AvPlaylistPlay); AvPlaylistPlay.displayName = '...
js/react-ssr/src/app/containers/ListBySubject.js
Icokie/study
import React from 'react'; let ListBySubject = () => { return ( <div>list by subject</div> ); }; export {ListBySubject};
node_modules/@material-ui/core/es/internal/svg-icons/createSvgIcon.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import React from 'react'; import SvgIcon from '../../SvgIcon'; export default function createSvgIcon(path, displayName) { const Component = React.memo(React.forwardRef((props, ref) => React.createElement(SvgIcon, _extends({}, props, { ref: ref }), path)));...
src/svg-icons/social/domain.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialDomain = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v...
src/components/common/svg-icons/navigation/arrow-downward.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDownward = (props) => ( <SvgIcon {...props}> <path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/> </SvgIcon> ); NavigationArrowDownward = pure(NavigationArrowDownward); Na...
src/components/Faq/index.js
chejen/GoodJobShare
import React from 'react'; import Helmet from 'react-helmet'; import { Section, Wrapper } from 'common/base'; import PageBanner from 'common/PageBanner'; import editorStyles from 'common/Editor.module.css'; import styles from './Faq.module.css'; import { HELMET_DATA } from '../../constants/helmetData'; const Faq = () ...
packages/material-ui-icons/src/NoteAdd.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let NoteAdd = props => <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z" /> </SvgIcon>; Not...
examples/custom-validation/app.js
optiopay/optiopay-form
import React from 'react'; import ReactDOM from 'react-dom'; import Formsy from 'formsy-react'; import MyInput from './../components/Input'; const currentYear = new Date().getFullYear(); const validators = { time: { regexp: /^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(:([0-5]?[0-9]))?$/, message: 'Not valid ...
src/components/AboutPage.js
polinazolotukhina/redux-movieDB
import React from 'react'; import {Link} from 'react-router'; import '../styles/about-page.css'; // Since this component is simple and static, there's no parent container for it. const AboutPage = () => { return ( <div> <h2 className="alt-header">About</h2> <p> This example app is part of the...
temp/AsyncStorageTest.js
duangangqiang/GitHubTrending
import React, { Component } from 'react'; import { View, Text, TextInput, StyleSheet, AsyncStorage } from 'react-native'; import NavigationBar from '../js/common/NavigationBar'; import Toast, { DURATION } from 'react-native-easy-toast'; const KEY = 'test'; export default class AsyncStorageTest ex...
src/components/contact.js
basvandriel/WWW
import React from 'react'; import { Container } from 'react-bootstrap'; import { StyledSectionTitle, StyledParagraph } from '@styles/GlobalStyle'; import styled from 'styled-components'; import theme from '../theme'; import StyledSection from '@styles/Section'; const StyledContainer = styled(Container)` display...
__tests__/index.ios.js
aksharora/ReactNativeDemoBasic
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
webpack/move_to_pf/TypeAhead/TypeAheadInput.js
ares/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormControl } from 'patternfly-react'; class TypeAheadInput extends Component { constructor(props) { super(props); this.handleKeyPress = this.handleKeyPress.bind(this); } componentDidMount() { if (this.ref) { ...
server/sonar-web/src/main/js/components/ui/Avatar.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...
client/src/server/server.nashorn.js
Pitzcarraldo/spring-react-redux-universal-example
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { RoutingContext, match } from 'react-router'; import { Provider } from 'react-redux'; import createLocation from 'history/lib/createLocation'; import { fetchComponentDataBeforeRender } from '../common/api/fetchComponentDataBeforeRender';...
src/svg-icons/av/library-music.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-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-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57...
src/components/Feedback.js
kirillku/smartroompro
import React from 'react'; const Feedback = () => ( <div className="Feedback"> <h3>Please leave some feedback:</h3> <img src="/star-rating.png" alt="Rate this mode" /> <div className="input-group-lg"> <textarea id="text"/> </div> </div> ) export default Feedback
src/containers/card/index.js
jamjar919/bork
import React from 'react'; import PropTypes from 'prop-types'; const Card = props => ( <div className={`card ${props.className}`}> <h3 className="card-header">{props.title}</h3> {props.children} </div> ); Card.propTypes = { children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element...
src/js/pages/HomePage.js
pk8est/dot
const shell = require('electron').shell import React, { Component } from 'react'; import fetch from 'node-fetch'; import socket from '../backend/socket'; socket.on('connect', function(){ socket.emit("add-listener"); }); class HomePage extends Component { constructor(props) { super(props); thi...
src/MenuItem.js
lo1tuma/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const MenuItem = React.createClass({ propTypes: { header: React.PropTypes.bool, divider: React.PropTypes.bool, href: React.PropTypes.string, title: React.PropTypes.string, target: React.PropTypes.string, onSelect...
src/index.js
latentflip/redux-form
import React from 'react'; import {connect} from 'react-redux'; import createAll from './createAll'; export const { actionTypes, blur, change, changeWithKey, destroy, focus, reducer, reduxForm, getValues, initialize, initializeWithKey, propTypes, reset, startAsyncValidation, startSubmit, ...
src/helpers.js
MaxKelsen/ory-slate-plugin
import Button from 'material-ui/Button' import React from 'react' export const makeTagNode = Tag => { const NodeComponent = ({ attributes, children, node }: { attributes: Object, children: any, node: any }) => { const align = node.data.get('align') const indent = node.data.get('in...
app/__tests__/index.ios.js
vitalybe/radio-stream
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
docs/src/CodeExample.js
mcraiganthony/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
maodou/events/client/components/events.js
ShannChiang/USzhejiang
import React from 'react'; import {Link} from 'react-router'; import moment from 'moment'; import Loading from 'client/components/common/loading'; export default (props) => { const T = props.context.T; return ( <div className="container" style={{ paddingTop: '60px'}}> <div className="row"> { ...
stories/components/login/index.js
NestorSegura/operationcode_frontend
import React from 'react'; import createHistory from 'history/createBrowserHistory'; import { Router } from 'react-router'; import { storiesOf } from '@storybook/react'; import Login from 'shared/components/login/login'; const history = createHistory(); storiesOf('shared/components/login', module) .add('Basic', ()...
blueocean-material-icons/src/js/components/svg-icons/device/bluetooth.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBluetooth = (props) => ( <SvgIcon {...props}> <path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"/> <...
app/components/H3/index.js
itimofeev/hustledb-ui
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
src/components/Assets/Pins/ComingSoon.js
Ftornik/forwardteam.space
import React, { Component } from 'react'; import svg from 'lib/svg'; @svg({ width: 600, height: 584 }) export default class Challenger extends Component { render = () => { const st2Style = { opacity: '0.3' }; /* eslint-disable */ return ( <g> ...
src/components/SpeedDials.js
vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome
import React from 'react'; import { Page, Toolbar, BackButton, SpeedDial, SpeedDialItem, Fab, Icon } from 'react-onsenui'; class SpeedDials extends React.Component { renderToolbar() { return ( <Toolbar> <div className="left"> <Bac...
app/components/LoadingIndicator/index.js
7ruth/PadStats2
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
src/svg-icons/communication/call-missed.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMissed = (props) => ( <SvgIcon {...props}> <path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/> </SvgIcon> ); CommunicationCallMissed = pure(CommunicationCallMissed); CommunicationC...
src/components/__specs__/TabBarButton.spec.js
Kortelainen/Softala3SuperAda
/*eslint-disable max-nested-callbacks*/ import sinon from 'sinon'; import React from 'react'; import {TouchableOpacity, Text} from 'react-native'; import {shallow} from 'enzyme'; import {describe, it} from 'mocha'; import {expect} from 'chai'; import {hasStyles} from '../../../test/assertions'; import TabBarButton fr...
Splash.js
dcy0701/ReactNativeServer
'use strict'; import React from 'react'; import { AsyncStorage, Image, StyleSheet, Text, View, Dimensions, } from 'react-native'; var Animated = require('Animated'); var WINDOW_WIDTH = Dimensions.get('window').width; var DataRepository = require('./DataRepository'); var repository = new DataRepository(...
src/js/components/character/character-details.js
trwalker/marvel-react
import React from 'react'; class CharacterDetails extends React.Component { constructor(props) { super(props); this.characterId_ = props.params.characterId; } render() { return <div>Details Here!!!! - Character: {this.characterId_}</div> } } export default CharacterDetails;
index.android.js
WholeFoodsCoop/ReactMobileApp
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ScrollView, Dimensions } from 'react-native'; import NavBar from './NavBar.js'; import PageAds from './PageAds.js'; import PageHom...
assets/jqwidgets/demos/react/app/editor/fluidsize/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxEditor from '../../../jqwidgets-react/react_jqxeditor.js'; class App extends React.Component { render() { return ( <JqxEditor width={'100%'} height={'95%'} tools={'bold italic underline | left center right'}> ...
modules/dreamview/frontend/src/components/StatusBar/DrivingMode.js
jinghaomiao/apollo
import React from 'react'; import classNames from 'classnames'; import UTTERANCE from 'store/utterance'; export default class DrivingMode extends React.PureComponent { componentWillUpdate() { UTTERANCE.cancelAllInQueue(); } render() { const { drivingMode, isAutoMode } = this.props; UTTERANCE.speak...
node_modules/react-autosuggest-legacy/examples/src/TrackLinks/TrackLinks.js
mannyng/ceap
import React, { Component } from 'react'; export default class TrackLinks extends Component { componentDidMount() { if (typeof analytics !== 'object') { return; } const links = this.refs.children.querySelectorAll('a'); const linksCount = links.length; for (let i = 0; i < linksCount; i++) ...
docs/src/app/components/pages/components/RefreshIndicator/Page.js
rscnt/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import refreshIndicatorReadmeText from './README'; import RefreshIndicatorExampl...
app/components/IssueIcon/index.js
davecyen/react-boilerplate-material
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...
app/components/UGFooterSitemap/UGBtnSubscribe.js
perry-ugroop/ugroop-react-dup2
/** * Created by Ber on 02/12/16. */ import React from 'react'; const UGBtnSubscribe = (props) => <button type="submit" className={`btn btn-default ${props.className}`}> {props.children} </button>; UGBtnSubscribe.propTypes = { className: React.PropTypes.any, children: React.PropTypes.any, }; export default U...
fields/types/select/SelectField.js
suryagh/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', valueChanged (newValue) { // TODO: This should be natively handled by the Selec...
src/applications/static-pages/contact-chatbot-cta/components/App/index.js
department-of-veterans-affairs/vets-website
// Node modules. import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; const restrictWidgetStorageKey = 'restrict-chatbot-cta'; const displayThreshold = 50; export const App = () => { // restrict view to roughly 50% of users const restrictDisplay = () => { const...
src/views/UserManage/UserTable.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Table, Modal } from 'antd' import Spin from 'COMPONENT/effects/Spin' import { formatDateTime, checkBtnList } from 'UTIL/filters' import PreviewBox from './PreviewBox' import BindRoleBox from './BindRoleBo...
src/esm/components/graphics/icons/bold-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var BoldIcon = function BoldIcon(_ref) { var color = _ref.co...
client/src/App.js
no-stack-dub-sack/alumni-network
import './styles/App.css'; import '../node_modules/flag-icon-css/css/flag-icon.css'; import AppContainer from './components/AppContainer'; import FlashMessagesList from './components/flash/FlashMessagesList'; import HomePage from './components/HomePage'; import LoginPage from './components/signup/LoginPage'; import Na...
internals/templates/containers/HomePage/index.js
gihrig/react-boilerplate-logic
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
node_modules/react-select/examples/src/components/RemoteSelectField.js
yomolify/cc-server
import React from 'react'; import Select from 'react-select'; var RemoteSelectField = React.createClass({ displayName: 'RemoteSelectField', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, loadOptions (input, callback) { input = input.toLowerCase(); var rtn = { options: [ ...
fields/components/columns/IdColumn.js
pr1ntr/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var IdColumn = React.createClass({ displayName: 'IdColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, list: React.PropTypes.obje...
examples/counter/index.js
chicoxyzzy/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
packages/generator-fluxible/app/templates/components/About.js
pablolmiranda/fluxible
import React from 'react'; class About extends React.Component { render() { return ( <div> <h2>About</h2> <p>This is a description of the site.</p> </div> ); } } export default About;
docs/app/Examples/elements/List/Content/ListExampleHeader.js
shengnian/shengnian-ui-react
import React from 'react' import { List } from 'shengnian-ui-react' const ListExampleHeader = () => ( <List> <List.Item> <List.Header>New York City</List.Header> A lovely city </List.Item> <List.Item> <List.Header>Chicago</List.Header> Also quite a lovely city </List.Item> ...
src/Main/App.js
Yuyz0112/WoWAnalyzer
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link, browserHistory } from 'react-router'; import ReactTooltip from 'react-tooltip'; import makeWclUrl from 'common/makeWclUrl'; import getFightName from 'common/getFightName'; import AVAILABLE_CONFIGS from 'Parser/AVAILABLE_CONFI...