path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
pootle/static/js/auth/components/SocialAuthError.js
Avira/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import React from 'react'; import { PureRen...
docs/src/pages/layout/hidden/GridIntegration.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import { withStyles } from 'material-ui/styles'; import Paper from 'material-ui/Paper'; import Grid from 'material-ui/Grid'; import withWidth from 'material-ui/utils/withWidth'; import Typography from ...
src/screens/Shared/SearchFilterModal.js
alphasp/pxview
/* eslint-disable camelcase */ import React, { Component } from 'react'; import { StyleSheet, View, SafeAreaView } from 'react-native'; import { connect } from 'react-redux'; import qs from 'qs'; import { withTheme, Button } from 'react-native-paper'; import { connectLocalization } from '../../components/Localization'...
vj4/ui/components/react/DomComponent.js
vijos/vj4
import React from 'react'; import PropTypes from 'prop-types'; export default class DomComponent extends React.PureComponent { componentDidMount() { this.refs.dom.appendChild(this.props.childDom); } componentWillUnmount() { $(this.refs.dom).empty(); } render() { const { childDom, .....
example/__tests__/index.ios.js
onaclover/react-native-refreshable-list
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 /> ); });
client/main.js
manhhailua/meteor-react-mui-starter-app
/* global document */ import { MuiThemeProvider } from 'material-ui/styles'; import { Meteor } from 'meteor/meteor'; import React from 'react'; import { render } from 'react-dom'; import App from '../imports/ui/components/App'; Meteor.startup(() => { render( <MuiThemeProvider> <App /> </MuiThemeProvid...
src/components/CreateUser/index.js
git-okuzenko/react-redux
import React from 'react'; import PropTypes from 'prop-types'; import { Field, reduxForm } from 'redux-form'; import {validate} from '../../utils'; import '../../assets/styles/common/form.scss'; const renderField = (field) => { let {input, label, type, meta: { touched, error }, input: { name }} = field; let rend...
app/javascript/mastodon/features/favourites/index.js
TootCat/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
components/CounterApp/CounterApp.js
thiagodebastos/react-future-stack
// @flow import React from 'react'; import Button from '../Button'; type Props = { counterApp: { count: number }, increment: CounterAction, decrement: CounterAction }; const Counter = (props: Props) => <div> Counter: {props.counterApp.count} <br /> <Button onClick={props.increment} primary> + </...
src/components/BooleanQuestion.js
flexiform/flexiform-fill-ui
/** * Copyright 2016 ReSys OÜ * * 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...
app/components/mapMarker/mapMarkerCalloutView.js
UsabilitySoft/Proximater
import React, { Component } from 'react'; import { AppRegistry, Text, View, Image, Button } from 'react-native'; import { styles } from './styles'; export class MapMarkerCalloutView extends Component { render() { return ( <View style={styles.calloutContainer}> <Text style={styles.calloutText...
app/javascript/mastodon/features/ui/components/column.js
tootsuite/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
examples/src/components/RemoteSelectField.js
katienreed/react-select
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: [ ...
code/workspaces/web-app/src/components/modal/CreateClusterDialog.spec.js
NERC-CEH/datalab
import React from 'react'; import { shallow } from 'enzyme'; import CreateClusterDialog from './CreateClusterDialog'; describe('CreateClusterDialog', () => { const getProps = () => ({ title: 'Create Cluster Dialog Title', formName: 'createCluster', onSubmit: jest.fn().mockName('onSubmit'), onCancel: ...
src/parser/warrior/arms/modules/core/Dots/index.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import StatisticsListBox, { STATISTIC_ORDER } from 'interface/others/StatisticsListBox'; import DeepWoundsUptime from './DeepWoundsUptime'; import RendUptime from './RendUptime'; class DotUptimeStatisticBox extends Analyzer { static dependencies...
packages/datagrid/stories/DynamicDataGrid.component.js
Talend/ui
import React from 'react'; import random from 'lodash/random'; import { IconsProvider } from '@talend/react-components'; import PropTypes from 'prop-types'; import DataGrid from '../src/components'; import serializer from '../src/components/DatasetSerializer'; import sample from './sample.json'; const ADD_ITEMS_NUMBE...
blueocean-material-icons/src/js/components/svg-icons/notification/do-not-disturb-alt.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationDoNotDisturbAlt = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8c-1.8 0-3.5-.6-4.9-1.7L18.3 7.1C1...
boilerplates/app/src/routes/dashboard/components/completed.js
hexagonframework/antd-admin-cli
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' import styles from './completed.less' import { color } from '../../../utils' function Completed ({ data }) { r...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
mattkrick/react-router
import React from 'react' class Assignments extends React.Component { render() { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ) } } module.exports = Assignments
src/components/LikeButton/index.js
khankuan/asset-library-demo
import React from 'react'; import cx from 'classnames'; import Button from '../Button'; import Text from '../Text'; export default class LikeButton extends React.Component { static propTypes = { children: React.PropTypes.node, liked: React.PropTypes.bool, className: React.PropTypes.string, } getCl...
src/ui/components/ReferenceRoute.js
BE-Webdesign/wp-rest-api-reference
/** * External dependecies. */ import React from 'react' /** * Internal dependecies. */ import EndpointsList from './EndpointsList' const ReferenceRoute = ( route ) => ( <div className="reference-route"> <h2 className="reference-route__title">Route: { route.routeName }</h2> <EndpointsList endpoints={ route.e...
src/common/Dialog/DialogContent.js
Syncano/syncano-dashboard
import React from 'react'; export default ({ children }) => ( <div className="col-flex-1"> {children} </div> );
src/components/PageHome.js
dfilipidisz/overwolf-hots-talents
import React from 'react'; class PageHome extends React.Component { render () { return ( <div> page home </div> ); } } export default PageHome;
app/javascript/mastodon/features/ui/components/list_panel.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchLists } from 'mastodon/actions/lists'; import { connect } from 'react-redux'; import { createSelector } from 'rese...
src/svg-icons/navigation/chevron-right.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronRight = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); NavigationChevronRight = pure(NavigationChevronRight); NavigationChevronRigh...
app/components/Icons/index.js
Byte-Code/lm-digital-store-private-test
import React from 'react'; import PropTypes from 'prop-types'; import * as conditions from '../../utils/weatherConditions'; import styles from './styles.css'; function sunShowerIcon() { return ( <div className={styles.icon}> <div className={styles.cloud} /> <div className={styles.sun}> <div ...
Step4/__tests__/index.android.js
soulmachine/react-native-starter-kit
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/Parser/Monk/Mistweaver/Modules/Spells/EssenceFont.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parser/Core/Analyzer'; const debug = false; class EssenceFont extends Analyzer { castEF = 0; targetsEF = 0; on_byPlayer_cast(event) { const ...
src/pages/chart/highCharts/HighMoreComponent.js
zuiidea/antd-admin
import React from 'react' import ReactHighcharts from 'react-highcharts' import HighchartsExporting from 'highcharts-exporting' import HighchartsMore from 'highcharts-more' HighchartsMore(ReactHighcharts.Highcharts) HighchartsExporting(ReactHighcharts.Highcharts) const config = { chart: { polar: true, }, xA...
webapp/src/components/Footer/Footer.js
wfriesen/jerryatric
/** * 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, { Component } from 'react'; import s from '....
webpack/containers/Help.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setSteps } from '../actions/tutorial_actions'; import { Button } from 'react-bootstrap'; import InfoModal from '../components/InfoModal'; class Help ...
docs/app/Examples/collections/Grid/Variations/GridExampleRelaxedVery.js
aabustamante/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleRelaxedVery = () => ( <Grid relaxed='very' columns={4}> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> </Grid.Column> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> ...
src/chapters/04-porazdelitve-verjetnosti/03-diskretne-porazdelitve/05-hipergeometrijska-porazdelitev/index.js
medja/ovs-prirocnik
import React from 'react'; import { createChapter } from 'components/chapter'; import Equation from 'components/equation'; import Formula from 'components/formula'; import Chart from 'components/chart'; const title = 'Hipergeomterijska porazdelitev'; function Title(props) { return ( <span> { ...
react-native-demo/SmarterWeather/__tests__/index.android.js
zhangjunhd/react-examples
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 /> ); });
test/ButtonInputSpec.js
Firfi/meteor-react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonInput from '../src/ButtonInput'; import {shouldWarn} from './helpers'; describe('ButtonInput', () =>{ it('renders an input button element with type=button', function () { const instance = ReactTestUtils.renderIntoDocum...
consoles/my-joy-images/src/mocks/declarative-redux-form.js
yldio/joyent-portal
import React from 'react'; export default ({ children, ...props }) => React.createElement(children, props);
src/Parser/Druid/Restoration/Modules/Features/NaturesEssence.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import Analyzer from 'Parser/Core/Analyzer'; import Wrapper from 'common/Wrapper'; import SPELLS from 'common/SPELLS'; import Combatants from 'Parser/Core/Modules/Combatants'; const HEAL_WINDOW_MS = ...
js/jqwidgets/demos/react/app/grid/columnshierarchy/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { datatype: 'xml', datafields: [ { name: 'SupplierName',...
customView/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
TheKingOfNorway/React-Native
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/components/Footer/__tests__/index.js
henriquesosa/intro-ao-electron
jest.unmock('./') import React from 'react' import ReactDOM from 'react-dom' import TestUtils from 'react-addons-test-utils' import Footer from './' describe('Footer Component', () => { it('shows a title', () => { // const Footer = TestUtils.renderIntoDocument( // <Footer /> // ) // const FooterNode = Rea...
react/features/settings/components/web/audio/TestButton.js
jitsi/jitsi-meet
// @flow import React from 'react'; type Props = { /** * Click handler for the button. */ onClick: Function, /** * Keypress handler for the button. */ onKeyPress: Function, }; /** * React {@code Component} representing an button used for testing output sound. * * @returns { R...
actor-apps/app-web/src/app/components/DialogSection.react.js
dut3062796s/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import PeerUtils from 'utils/PeerUtils'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'c...
demo/__tests__/index.ios.js
nbonamy/react-native-app-components
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 /> ); });
src/index.js
FranciscoHerrera/floggit-whiteboard-client
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './reduxStore'; import './common/css/master.css'; import Home from './pages/Home'; ReactDOM.render( <Provider store={store}> <Home /> </Provider>, document.getElementById('root'));
test/components/friendlist.spec.js
TianZhiWang/cmput404-project
/* MIT License Copyright (c) 2017 Conner Dunn, Tian Zhi Wang, Kyle Carlstrom, Xin Yi Wang, Josh Deng Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitat...
frontend/src/index.js
generalelectrix/color_organist
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
docs/src/pages/docs/index.js
colindresj/nuclear-js
import React from 'react' import Redirect from '../../layouts/redirect' import { BASE_URL } from '../../globals' export default React.createClass({ render() { return <Redirect to={BASE_URL} /> } })
examples/webpack/src/components/RandomButton.js
sapegin/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import sample from 'lodash/sample'; import './RandomButton.css'; /** * Button that changes label on every click. */ export default class RandomButton extends Component { static propTypes = { /** * List of possible labels. */ va...
node_modules/react-bootstrap/es/Pagination.js
darklilium/Factigis_2
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
examples/src/app.js
katienreed/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import Select from 'react-select'; import CustomRenderField from './components/CustomRenderField'; import MultiSelectField from './components/MultiSelectField'; import RemoteSelectField from './components/RemoteSelectField'; import SelectedValuesField from '...
src/routes/Home/components/HomeView.js
amaurisquezada/battleship
import React from 'react' export const HomeView = () => ( <div> <h4>Welcome!</h4> </div> ) export default HomeView
src/layouts/CoreLayout/CoreLayout.js
aurel-tackoen/spencer.io
import React from 'react' import Header from '../../components/Header' import classes from './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className={classes.mainContainer}> {children} </div> ...
src/components/Box/BoxHeader.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; function BoxHeader({ noPadding, compact, children, center }) { const className = classnames('ui-box-header', { 'ui-box-header-no-padding': noPadding, 'ui-box-header-compact': compact, 'ui-box-header-center': center, }); return ( <di...
src/svg-icons/editor/border-outer.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderOuter = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"/> </SvgIcon> ); EditorBorderOuter =...
popup/src/scripts/components/search/PeopleSearchList.js
CaliAlec/ChromeIGStory
import React, { Component } from 'react'; import {connect} from 'react-redux'; import Tooltip from '@material-ui/core/Tooltip'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemAvatar from '@material-u...
app/components/ListItem/index.js
iFatansyReact/react-boilerplate-imagine
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
votrfront/js/MojePredmetyPage.js
fmfi-svt/votr
import React from 'react'; import { ZapisnyListSelector } from './ZapisnyListSelector'; import { CacheRequester, Loading } from './ajax'; import { coursesStats, renderCredits, renderWeightedStudyAverage } from './coursesStats'; import { classForSemester, humanizeTerminHodnotenia, humanizeTypVyucby, plural } from './hu...
src/svg-icons/device/battery-50.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery50 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
app/App.js
luketlancaster/github-notetaker
import React from 'react'; import Router from 'react-router'; import routes from './config/routes'; Router.run(routes, (Root, state) => { React.render(<Root {...state}/>, document.getElementById('app')) })
examples/forms-material-ui/src/components/forms-create-overlay/Hook.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import moment from 'moment'; export default createReactClass({ displayName: 'Hook', render: function() { return lore.forms.tweet.create({ blueprint: 'overlay' }); } });
src/js/routes.js
VitorHP/TI3
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import LobbyContainer from './containers/lobby_container'; import TableContainer from './containers/table_container'; import AppContainer from './containers/app_container'; import MainMenu from './components/main_menu'; import RacesScreenConta...
src/components/Footer/Footer.js
dorono/resistance-calendar-frontend
import React from 'react'; import { Link } from 'react-router-dom'; import { Copyright } from '../'; import styles from './Footer.sass'; function footerLinks() { /* eslint-disable jsx-a11y/href-no-hash */ return ( <div className={styles.linksWrapper}> <Link to="/">Home</Link> <a href="htt...
www/imports/component/TextareaClean.js
terraswat/hexagram
// TextAreaClean.js // A textarea to contain text that contains only printable characters. import React, { Component } from 'react'; import PropTypes from 'prop-types'; import utils from '/imports/common/utils.js'; export default class TextareaClean extends Component { constructor (props) { super(props...
src/components/LaborRightsSingle/Body.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import { StickyContainer, Sticky } from 'react-sticky'; import cn from 'classnames'; import { Section, Wrapper, Heading } from 'common/base'; import GradientMask from 'common/GradientMask'; import MarkdownParser from './MarkdownParser'; import styles from '...
src/components/LaborRightsSingle/index.js
chejen/GoodJobShare
import React from 'react'; import Helmet from 'react-helmet'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Loader from 'common/Loader'; import { formatTitle, formatCanonicalPath, formatUrl, } from 'utils/helmetHelper'; import NotFound from 'common/NotFound'; import CallToAction from 'common/...
client/components/common/FormRenderWrappers.js
zhakkarn/Mail-for-Good
/* eslint-disable */ import React from 'react'; import { Combobox, DropdownList } from 'react-widgets'; import { Field } from 'redux-form'; import TextEditor from '../../containers/common/TextEditor'; // Ref redux-form http://redux-form.com/6.0.5/docs/GettingStarted.md/ // Ref react-widgets https://jquense.github.io/r...
test/BadgeSpec.js
tonylinyy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Badge from '../src/Badge'; describe('Badge', function () { it('Should output a badge with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Badge> <strong>Content</strong> </Badge...
src/Notification.js
rolandsusans/react-bootstrap-table
import React, { Component } from 'react'; import { ToastContainer, ToastMessage } from '@allenfang/react-toastr'; const ToastrMessageFactory = React.createFactory(ToastMessage.animation); class Notification extends Component { // allow type is success,info,warning,error notice(type, msg, title) { this.refs....
test/OverlayTriggerSpec.js
zanjs/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import OverlayTrigger from '../src/OverlayTrigger'; import Popover from '../src/Popover'; import Tooltip from '../src/Tooltip'; import { render } from './helpers'; describe('OverlayTrigger', function() { it('Should create OverlayTrigg...
mm-react/src/components/docs/Ckeditor.js
Ameobea/tickgrinder
//! Creates a ckeditor instance. Contains options for taking callbacks involved with saving changes. /* global CKEDITOR */ import React from 'react'; import { connect } from 'dva'; /** * After the CKEditor plugin has loaded, initialize the editor */ function awaitCk(rand) { setTimeout(() => { let ckeditorLoa...
docs/app/Examples/views/Comment/Variations/CommentExampleMinimal.js
clemensw/stardust
import React from 'react' import { Button, Comment, Form, Header } from 'semantic-ui-react' const CommentExampleMinimal = () => ( <Comment.Group minimal> <Header as='h3' dividing>Comments</Header> <Comment> <Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> <Comm...
app/javascript/mastodon/features/compose/components/search.js
summoners-riftodon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { searchEnabled } from '../...
src/chat/ui/NavBackAbs.js
elarasu/roverz-chat
import React from 'react'; import { TouchableOpacity, StyleSheet, } from 'react-native'; import { Icon } from 'react-native-elements'; import { Actions } from 'react-native-router-flux'; import PropTypes from 'prop-types'; import { isIphoneX } from 'react-native-iphone-x-helper'; import { AppColors } from '../../th...
admin/client/components/FooterBar.js
mikaoelitiana/keystone
import React from 'react'; import blacklist from 'blacklist'; var FooterBar = React.createClass({ propTypes: { style: React.PropTypes.object }, getDefaultProps () { return { style: {} }; }, getInitialState () { return { position: 'relative', width: 'auto', height: 'auto', top: 0 }; }, c...
packages/web/examples/NumberBox/src/index.js
appbaseio/reactivesearch
import React from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase, NumberBox, ResultList, ReactiveList } from '@appbaseio/reactivesearch'; import './index.css'; const Main = () => ( <ReactiveBase app="good-books-ds" url="https://a03a1cb71321:75b6603d-9456-4a5a-af6b-a487b309eb61@appbase-demo-ans...
src/components/common/NavBarCancel.js
jinqiupeter/mtsr
import React from 'react'; import {StyleSheet, Platform, View, Text} from 'react-native'; import {Actions} from 'react-native-router-flux'; import dismissKeyboard from 'dismissKeyboard'; import * as components from '../'; export default () => { return <components.NavBarLeftButton text='取消' onPress={() => { ...
web/app/data/load.js
bitemyapp/serials
// @flow import {map, flatten} from 'lodash' import {Promise} from 'es6-promise' import React from 'react' type Route = { handler: { load:Function; } } export function loadAll(routes:Array<Route>, params:Object, query:Object, onData:(data:any)=>void) { var data = {loaded: false}; routes .filter(rout...
src/js/components/icons/base/PlatformPiedPiper.js
odedre/grommet-final
/** * @description PlatformPiedPiper SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textCol...
src/parser/priest/shadow/modules/spells/VampiricTouch.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import SmallStatisticBo...
apps/mk-app-versions/action.js
ziaochina/mk-demo
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current this.webapi = this.config.webapi } onInit = ({ component, i...
src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js
department-of-veterans-affairs/vets-website
// Node modules. import React from 'react'; import PropTypes from 'prop-types'; import Telephone, { CONTACTS, } from '@department-of-veterans-affairs/component-library/Telephone'; // Relative imports. import CernerCallToAction from '../../../components/CernerCallToAction'; import { getCernerURL } from 'platform/utili...
app/containers/NotFoundPage/index.js
nikb747/threejs-react-proto
/** * 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...
spec/javascripts/jsx/files/components/FilePreviewSpec.js
djbender/canvas-lms
/* * Copyright (C) 2016 - 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...
DemoApp/lib/profile-header/index.js
andyfen/react-native-UIKit
import React from 'react'; import { StyleSheet, Image, View, Dimensions, } from 'react-native'; const { width } = Dimensions.get('window'); const styles = StyleSheet.create({ container: { paddingBottom: 30, }, backgroundImg: { resizeMode: 'cover', height: 150, }, profileImg: { border...
lib/views/LayoutSectionView.js
tuomashatakka/reduced-dark-ui
'use babel' import React from 'react' import Field from '../components/layout/Field' const LayoutSection = (props) => { return ( <section className='section'> <Field scope='layout.uiScale' style='primary' /> <Field scope='layout.spacing' style='primary' /> <Field scope='layout.fixedTabBar' st...
src/Root.js
streamr-app/streamr-web
import React from 'react' import { Provider } from 'react-redux' import configureStore from './configureStore' import { ConnectedRouter } from 'react-router-redux' import { Route } from 'react-router-dom' import Application, { history } from './components/Application' const store = configureStore(history) ;(functi...
conference-management-system-front-end/src/components/paperManage.js
Kokosowys/conference-management-system
import React from 'react'; class PaperManage extends React.Component { render() { //var item = this.props.item; return ( <div className="userDiv"> <div> <p>this is your paper</p> </div> <br/><br/> </div> ...
blueprints/dumb/files/__root__/components/__name__/__name__.js
blinkmobile/things-mgr
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
examples/reactstrap/programmatic-submission.js
mkatanski/strap-forms
import React from 'react' import { Label } from 'reactstrap' import Form from './components/Form' import Input from './components/Input' import Group from './components/Group' class MyForm extends React.Component { handleSubmit = () => { // eslint-disable-next-line console.log('Programmatic submission') ...
blueocean-material-icons/src/js/components/svg-icons/action/speaker-notes.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSpeakerNotes = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z"/> </SvgIcon> ); Ac...
examples/basic-jsx/src/index.js
4Catalyzer/found
import Link from 'found/Link'; import Redirect from 'found/Redirect'; import Route from 'found/Route'; import createBrowserRouter from 'found/createBrowserRouter'; import makeRouteConfig from 'found/makeRouteConfig'; import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; funct...
client/extensions/woocommerce/woocommerce-services/views/live-rates-carriers-list/carriers-list.js
Automattic/woocommerce-services
/** * External dependencies */ import React from 'react' import { localize } from 'i18n-calypso' import { Tooltip } from '@wordpress/components' /** * Internal dependencies */ import Card from 'components/card' import CarrierIcon from '../../components/carrier-icon' import Gridicon from 'gridicons' const Actions ...
src/app/components/pages/BlankPage.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'; export default function BlankPage() { return ( <PageWrapper> ...
src/components/video_detail.js
polettoweb/ReactReduxStarter
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="em...
src/index.js
zestxjest/learn-redux-async-action
import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import Root from './containers/Root' render( <Root />, document.getElementById('root') )
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js
damoguyan8844/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ContactStore from 'stores/ContactStore'; import ContactActionCreators from 'actions/ContactActionCreators'; import AddContactStore from 'stores/AddContactStore'...
node_modules/react-bootstrap/es/MediaListItem.js
lucketta/got-quote-generator
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 ...
docs/app/Examples/modules/Progress/Variations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ProgressVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Inverted' des...
app/javascript/mastodon/components/column_back_button.js
mecab/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length === 1) this.context.r...
src/app/components/media/OcrButton.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { graphql, commitMutation } from 'react-relay/compat'; import { FormattedMessage } from 'react-intl'; import MenuItem from '@material-ui/core/MenuItem'; import ListItemIcon from '@material-ui/core/ListItemIcon...