path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/src/components/courses/CourseSave.js
yegor-sytnyk/contoso-express
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {Modal, Button} from 'react-bootstrap'; import _ from 'lodash'; import helper from '../../helpers/uiHelper'; import * as courseActions from '../../actions/courseActions'; import {departmentSelectListItem} fr...
docs/app/Examples/elements/Divider/index.js
ben174/Semantic-UI-React
import React from 'react' import Types from './Types' import Variations from './Variations' const DividerExamples = () => ( <div> <Types /> <Variations /> </div> ) export default DividerExamples
src/Parser/BloodDeathKnight/Modules/Items/T20_4pc.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Module from 'Parser/Core/Module'; import Combatants from 'Parser/Core/Modules/Combatants'; const GRAVEWARDEN_RUNIC_DISCOUNT = 5; class T20_4pc extends Module { s...
source/view/about.js
togayther/react-native-cnblogs
import React, { Component } from 'react'; import { View, Text, Image, Platform, ScrollView, StyleSheet } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import Panel from '../component/panel'; import Navbar from '../component/navbar'; import Config from '../config'; import ViewP...
packages/starter-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
chungchiehlun/create-starter-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import './assets/style.css'; export default () => <p id="feature-css-inclusion">We love useless text.</p>;
src/components/Form/InputText/InputText.stories.js
auth0-extensions/auth0-extension-ui
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { Field } from 'redux-form'; import InputText from './'; import FakeForm from '../../utils/FakeForm'; import { Provider, store } from '../../utils/formUtils'; function renderField(field) { return ( <Field name={field.name} ...
src/components/app.js
frandm182/reactReduxWeather
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
node_modules/react-router/es6/IndexRedirect.js
xuan6/admin_dashboard_local_dev
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
src/monthpicker/MonthPicker.js
buildo/rc-datepicker
import React from 'react'; import t from 'tcomb'; import { props } from 'tcomb-react'; import { pure, skinnable } from '../utils'; import { MomentDate, Value, Mode } from '../utils/model'; import MonthPickerTop from './MonthPickerTop'; import MonthPickerBody from './MonthPickerBody'; @pure @skinnable() @props({ chan...
app/javascript/mastodon/features/ui/components/modal_loading.js
tootcafe/mastodon
import React from 'react'; import LoadingIndicator from '../../../components/loading_indicator'; // Keep the markup in sync with <BundleModalError /> // (make sure they have the same dimensions) const ModalLoading = () => ( <div className='modal-root__modal error-modal'> <div className='error-modal__body'> ...
client/modules/users/components/.stories/dashboard_friends.js
kaibagoh/PitchSpot
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import DashboardFriends from '../dashboard_friends.jsx'; storiesOf('users.DashboardFriends', module) .add('default view', () => { return ( <DashboardFriends /> ); })
client/components/artists-single.js
VaRt-io/V-aRt
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { updateUserThunk } from '../store'; import { Button } from 'react-bootstrap'; class SingleArtist extends Component { constructor(props) { super(props); const currentArtistId = t...
app/components/horizontal-carousel.js
johnnycoyle/react-rpm
import React from 'react'; import Slider from 'react-slick'; import './horizontal-carousel.less'; import FormInput from './FormInput'; import UploadImage from './upload-image'; import { Transition } from 'semantic-ui-react'; export default class HorizontalCarousel extends React.Component { constructor(props){ s...
shared/Tracking/index.js
murilovmachado/caronete
import React, { Component } from 'react'; import { Text, View } from 'react-native'; import MapView from 'react-native-maps'; import { Router } from '../Nav'; import LogOut from '../LogOut'; import styles from './styles'; export default class Tracking extends Component { constructor(props) { super(props); t...
app/components/payment/selectcard.js
ritishgumber/dashboard-ui
import React from 'react'; import planList from './plans'; import {Menu, MenuItem, Popover} from 'material-ui' var valid = require('card-validator'); const style = { menuItem: { width: '112px' } } class SelectCard extends React.Component { constructor(props) { super(props); this.sta...
src/components/Header.js
whphhg/vcash-ui
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' /** Ant Design */ import Popover from 'antd/lib/popover' /** Components */ import WalletLock from './wallet/WalletLock.js' import WalletUnlock from './wallet/WalletUnlock.js' @translate(['common']) @inje...
client/src/app/admin/panel/users/admin-panel-custom-fields.js
opensupports/opensupports
import React from 'react'; import _ from 'lodash'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import AdminPanelCustomFieldForm from 'app/admin/panel/users/admin-panel-custom-field-form'; import ModalContainer from 'app-components/modal-container'; import AreYouSure from 'app-components/are-y...
src/svg-icons/action/backup.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBackup = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z...
examples/advertisement_discovery/index.android.js
jacobrosenthal/react-native-ble
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import noble from 'react-native-ble'; class advertisement_discovery extends Component { render() { return...
src/routes.js
daniloprates/redux-synth
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import Main from './containers/Main'; import AboutPage from './components/AboutPage.js'; export default ( <Route path="/" component={App}> <IndexRoute component={Main}/> <Route path="about" compo...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
boneyao/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js
masto-donte-com-br/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { changeComposeSensitivity } from 'mastodon/actions/compose'; import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'; const messages = defineMessages({ ...
app/javascript/mastodon/features/favourites/index.js
8796n/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...
EventEmitter.Client/src/components/Slider/Slider.js
Stelmashenko-A/EventEmitter
import React from 'react' import Slick from 'react-slick' import './Slider.scss' var Slider = React.createClass({ render: function () { var settings = { dots: true, infinite: true, speed: 500, // autoplay: true, autoplaySpeed: 7500, slidesToShow: 1, slidesToScroll: 1, ...
webpack/containers/response_sets/ResponseSetShowContainer.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import { denormalize } from 'normalizr'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { hashHistory } from 'react-router'; import { Grid, Row, Col } from 'react-bootstrap'; import { fetchResponseS...
node_modules/react-bootstrap/es/DropdownButton.js
okristian1/react-info
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
client/src/head/preloads.js
HKuz/FreeCodeCamp
import React from 'react'; import styleSheets from './styleSheets'; const preloads = styleSheets.map((styleSheet, i) => ( <React.Fragment> <link as='style' href={styleSheet.props.href} key={`preload-${i}`} rel='preload' /> {styleSheet} </React.Fragment> )); export default prelo...
blueprints/view/files/__root__/views/__name__View/__name__View.js
andest01/react-timeline
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js
formatlos/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! </...
src/roles/notifs/GetListFailNotif.js
dash-/netjumpio-tabs-web
/// // Dependencies /// import React, { Component } from 'react'; import FailRetryNotif from '../../elements/FailRetryNotif'; import * as actions from '../actions'; /// // View /// class GetListFailNotifView extends Component { /// // Rendering /// renderMessage(action, userMessage) { return ( 'Retrievi...
src/parser/warlock/affliction/modules/features/DotUptimes/index.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { STATISTIC_ORDER } from 'interface/others/StatisticsListBox'; import StatisticBar from 'interface/statistics/StatisticBar'; import AgonyUptime from './AgonyUptime'; import CorruptionUptime from './CorruptionUptime'; import UnstableAfflic...
src/components/Board/Core.js
albertfdp/battleship
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import R from 'ramda'; import styles from './styles.css'; export const Header = ({ type, size, vertical }) => <div className={classnames(styles.header, { [styles[type]]: type, [styles.vertical]: vert...
src/components/ContainerDetailsSubheader.react.js
cclauss/kitematic
import _ from 'underscore'; import React from 'react'; import shell from 'shell'; import metrics from '../utils/MetricsUtil'; import ContainerUtil from '../utils/ContainerUtil'; import classNames from 'classnames'; import containerActions from '../actions/ContainerActions'; import dockerMachineUtil from '../utils/Docke...
app/components/HistogramChart/index.js
thuy616/react-d3-charts
import React from 'react'; import PropTypes from 'prop-types'; import SVGWithMargin from '../SVGWithMargin'; import Bar from './Bar'; type Props = { width: PropTypes.number, height: PropTypes.number, values: PropTypes.array.isRequired, margin: PropTypes.object, color: PropTypes.string, xLabel: PropTypes.st...
src/header-numbers.js
danielmoll/component-win-articlepage
import ArticleHeaderContainer from '@economist/component-articletemplate/lib/header'; import React from 'react'; import codify from 'slugger'; import { defaultGenerateClassNameList } from '@economist/component-variantify'; const extendedHeaderItemClasses = [ 'gutter-l', ]; export default class WinNumbersHeader exten...
src/components/checkbox/index.js
rldona/taskfire
import React, { Component } from 'react'; import { View, Text, TouchableOpacity, StyleSheet, ToastAndroid, Vibration } from 'react-native'; import * as firebase from 'firebase'; import * as todoListService from '../../todolist.service'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons';...
main.js
pixelmasochist/pxl.net
import React from 'react'; import ReactDOM from 'react-dom'; import Site from './Site.jsx'; ReactDOM.render(<Site />, document.getElementById('root'));
node_modules/theming/dist/esm/create-with-theme.js
oiricaud/horizon-education
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(ta...
src/statics/Error401.js
ryanbaer/busy
import React from 'react'; import { Link } from 'react-router-dom'; import steemconnect from 'sc2-sdk'; import { FormattedMessage } from 'react-intl'; const Error401 = () => (<div className="main-panel"> <div className="container my-5"> <div className="ptl text-center"> <h1> <FormattedMes...
src/components/Pub.js
ontappl/rn
import React from 'react'; import { View, StyleSheet, ListView, } from 'react-native'; import {NavigationBar,} from './NavigationBar'; import {LoadingIndicator,} from './LoadingIndicator'; import {TapSummary,} from './TapSummary'; import {PlainListSeparator,} from './PlainListRow'; export const Pub = ({i...
app/javascript/mastodon/features/ui/components/onboarding_modal.js
mosaxiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ReactSwipeableViews from 'react-swipeable-views'; import classNames from 'cl...
src/components/logo/logo.js
greaveselliott/rock-paper-scissors
import React from 'react' import './logo.scss'; function Logo() { return ( <h1 className="logo">Rock Paper Scissors.</h1> ) } export default Logo
client/src/components/MainHeader.js
BrianMehrman/rails_probe
import React from 'react'; import Header from 'grommet/components/Header'; import Button from 'grommet/components/Button'; import Title from 'grommet/components/Title'; import Menu from 'grommet/components/Menu'; import Checkbox from 'grommet/components/CheckBox'; import Box from 'grommet/components/Box'; import Power...
app/workstation/initialize.js
Coding/WebIDE-Frontend
/* eslint-disable no-await-in-loop */ import React from 'react' import { isFunction, isBoolean, isString } from 'utils/is' import config from '../config' import api from '../backendAPI' import { stepFactory } from '../utils' import i18n from 'utils/createI18n' import { loadPackagesByType, mountPackagesByType } from '.....
src/components/app.js
rogeriomil/ChuckJokes
import React, { Component } from 'react'; import CategoryList from '../containers/category-list'; import JokeContainer from '../containers/joke-container'; import Header from './Header'; export default class App extends Component { render() { return ( <div> <Header /> <di...
app/index.js
Kamahl19/image-min-app
import React from 'react'; import { render } from 'react-dom'; import { Router, Route } from 'react-router'; import App from './App'; import '../node_modules/uikit/dist/css/uikit.almost-flat.min.css'; import './style.css'; render(( <Router> <Route path="/" component={App} /> </Router> ), document....
src/screens/dashboard.js
SwimmyApp/project-swimmy-mockup
import React from 'react'; import {observer} from 'mobx-react'; import EventsList from '../components/eventsList'; import GroupsList from '../components/groupsList'; import DevTool from 'mobx-react-devtools'; class Dashboard extends React.Component { render() { const {store} = this.props; return ( <div>...
src/parser/warlock/affliction/modules/talents/SoulConduit.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/Stati...
app/containers/Layout/Subheader/index.js
hlex/vms
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Subheader extends Component { render() { return ( <div className="subheader-wrapper"> { this.props.children } </div> ); } } export default Subheader;
examples/counter/devTools.js
angular-redux/ng-redux
import { createDevTools} from 'redux-devtools'; import { render } from 'react-dom'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import React from 'react' import { Provider } from 'react-redux'; const DevTools = createDevTools( <DockMonitor toggleVisibil...
docs/src/app/components/pages/components/Stepper/Page.js
nathanmarks/material-ui
import React from 'react'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import stepperReadmeText from './README.md'; import advancedReadmeText from './Advanced.md'; import HorizontalLinearStepper...
docs/src/app/components/pages/components/Dialog/ExampleModal.js
andrejunges/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * A modal dialog can only be closed by selecting one of the actions. */ export default class DialogExampleModal extends React.Component { sta...
src/ui/Row.react.js
klimesf/tile-puzzle-react-js
import React from 'react'; import Tile from './Tile.react.js'; export default class Row extends React.Component { render() { let tiles = []; this.props.tiles.forEach((tile) => { tiles.push(<Tile tile={tile} game={this.props.game} />); }); return <div className="row">{til...
docs/src/app/components/pages/components/Menu/ExampleNested.js
verdan/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; const style = { display: 'inline-block', mar...
src/components/common/header/AdminAppMenu.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/MenuItem'; import AppMenu from '....
node_modules/native-base/src/basic/Container.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; import {ToastContainer as Toast} from './ToastContainer'; import {ActionSheetContainer as ActionSheet} from './Actionsheet'; im...
web-ui/src/component/SwapBinComponent.js
azadbolour/boardgame
/* * Copyright 2017-2018 Azad Bolour * Licensed under GNU Affero General Public License v3.0 - * https://github.com/azadbolour/boardgame/blob/master/LICENSE.md */ /** @module SwapBin */ import React from 'react'; import PropTypes from 'prop-types'; const ItemTypes = require('./DragDropTypes').ItemTypes; const D...
src/svg-icons/content/delete-sweep.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDeleteSweep = (props) => ( <SvgIcon {...props}> <path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/> </SvgIcon> ); ContentDeleteSwee...
cheesecakes/plugins/content-manager/admin/src/containers/SettingsPage/index.js
strapi/strapi-examples
/** * * SettingsPage */ import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import cn from 'classnames'; import { get, sortBy } from 'lodash'; import PropTypes from 'prop-types'; import { onChange...
js/components/Pad.js
GregSantulli/react-drum-sequencer
"use strict"; import React, { Component } from 'react'; require('../../css/pad.sass') class Pad extends Component { constructor(props) { super(props); this.state = { position: this.props.position } } componentWillMount() { } componentWillUnmount() { } handlePadClick(){ this....
src/templates/tags.js
meerasahib/meerablog1
import React from 'react'; import styled from 'styled-components'; import GatsbyLink from 'gatsby-link'; import { rhythm } from '../utils/typography'; import { getColorFromString } from '../utils/color'; import Link from '../components/Link'; import Preview from '../components/Preview'; const List = styled.ul` dis...
src/AboutPage/AboutPage.js
yining1023/thesisBook
import React from 'react' import s from './styles.css' import {html, title} from './aboutClassindex.md' import SimpleHeader from '../components/Layout/SimpleHeader' import {Link, Route} from 'react-router-dom' import {AboutThesisPage} from './AboutThesisPage' import {AboutClassPage} from './AboutClassPage' import {Abou...
src/Popover/PopoverAnimationVertical.js
pradel/material-ui
import React from 'react'; import Paper from '../Paper'; import transitions from '../styles/transitions'; import propTypes from '../utils/propTypes'; function getStyles(props, context, state) { const {targetOrigin} = props; const {open} = state; const {muiTheme} = context; const horizontal = targetOrigin.horiz...
src/svg-icons/hardware/phone-android.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneAndroid = (props) => ( <SvgIcon {...props}> <path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"/> </SvgIcon> ...
src/components/shop/SaleOrderHistory.js
mangal49/HORECA
import React from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions'; import DialogCancel from './DialogCancel' import OrderDetailHistory from './OrderDetailHistory' import SearchBar from '../SearchBar'; import { Scrollbars } from 'react-custom-scrollbars'; import MobileTearSheet...
src/components/Users/Orders.js
yangdongMC/kaola
import React from 'react'; import { connect } from 'dva'; import { Table, Pagination, Popconfirm, Button } from 'antd'; import { routerRedux } from 'dva/router'; import queryString from 'query-string'; import styles from './Users.css'; import { PAGE_SIZE } from '../../constants'; import UserModal from './UserModal'; f...
app/render/client.js
Xantier/nerd-stack
import React from 'react'; import Router from 'react-router'; import routes from '../components/routes'; import dataLoader from '../util/dataLoader'; import {get as getCached} from '../util/cache'; import rehydrate from '../util/rehydrate'; const token = rehydrate(); const renderState = { element: document.getEleme...
packages/ringcentral-widgets-docs/src/app/pages/Components/Badge/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import Badge from 'ringcentral-widgets/components/Badge'; /** * A simple example of `Badge` * By default, the default floats on right. */ const BadgeDemo = () => <Badge name="Badge">BadgeName</Badge>; export default BadgeDemo;
app/components/H3/index.js
nimzco/takemyidea-ui
import React from 'react'; class H3 extends React.Component { render() { return ( <h3>{ this.props.children }</h3> ); } } export default H3;
ui/js/chart/index.js
beni55/spigo
'use strict'; import React from 'react'; import $ from 'jquery'; import d3 from 'd3'; import reduce from 'lodash.reduce'; import each from 'lodash.foreach'; import bind from 'lodash.bind'; import tooltip from 'd3-tip'; import dispatcher from 'dispatcher'; import ChartStore from 'stores/chart'; import fisheye from 'lib...
app/root.js
anywhy/weidu
'use strict' import React from 'react'; import { Provider } from 'react-redux'; import configureStore from './store/ReduxStore'; import App from './containers/index'; const store = configureStore(); class Root extends React.Component { render() { return( <Provider store={store}> <App /> </Provider> ...
Example/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
SteloLabs/SteloCrypto.js
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
packages/ringcentral-widgets/components/AudioSettingsPanel/index.js
ringcentral/ringcentral-js-widget
import { all, find } from 'ramda'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Tooltip from 'rc-tooltip'; import InfoIcon from '../../assets/images/Info.svg'; import styles from './styles.scss'; import i18n from './i18n'; import BackHeader fr...
web/app/components/Footer/index.js
agapic/TwitchChatStreaming
import React from 'react'; import { FormattedMessage } from 'react-intl'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...messages.licenseMessage} /> </section> <section> </section> ...
index.ios.js
Devnetik/react-native-skeleton
'use strict'; /** * Created by maluramichael on 13/09/16. */ import './ReactotronConfig'; import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import { Provider } from 'react-redux'; import { Data } from './app'; import Application from './application'; class AppWrapper extends Com...
mobile/App/Containers/ThemeScreen.js
JasonQSong/SoulDistance
// @flow import React from 'react' import { View, ScrollView, Text, Image } from 'react-native' import { Colors, Fonts, Images } from '../Themes' import R from 'ramda' // Styles import styles from './Styles/ThemeScreenStyle' // Colors const colors = R.keys(Colors) // Font Types const types = R.keys(Fonts.type) // Fo...
docs/src/app/app.js
kasra-co/material-ui
import React from 'react'; import {render} from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; // Helpers for debugging window.React = React; window.Perf = req...
src/Eventplanner/EventRowHOC.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import EventCell from './EventCell'; import getHeight from 'dom-helpers/query/height'; import { accessor, elementType } from './utils/propTypes'; import { segStyle } from './utils/eventLevels'; import { isSelected } ...
src/components/stars/index.js
buttercomponents/butter-base-components
import React from 'react'; import PropTypes from 'prop-types'; import style from './style.styl'; function getScore(count, max=5) { const top = count <= 10 ? 10 : 100; return (max * count) / top; } class Stars extends React.Component { static propTypes = { rating: PropTypes.number.isRequired, ...
src/svg-icons/action/cached.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCached = (props) => ( <SvgIcon {...props}> <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97....
packages/docs/components/Examples/inline-toolbar/CustomInlineToolbarEditor/index.js
nikgraf/draft-js-plugin-editor
/* eslint-disable react/no-multi-comp */ import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from '@draft-js-plugins/editor'; import createInlineToolbarPlugin, { Separator, } from '@draft-js-plugins/inline-toolbar'; import { ItalicButton, BoldButton, UnderlineButton, CodeB...
src/components/Jobs/Index.js
taiwoabegunde/developersmap
/** * Created by Raphson on 10/10/16. */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import {Link} from 'react-router'; import NavBar from '../NavBar/index'; import Footer from '../Footer/Index'; import Auth from '../../utils/auth'; import JobStore from '../../stores/JobStore'; import ...
src/components/editor.js
kenken64/StackupJSPlayground
import _ from 'lodash'; import React, { Component } from 'react'; import CodeMirror from 'react-codemirror'; import 'codemirror/mode/jsx/jsx'; import * as actions from 'actions'; import { connect } from 'react-redux'; class Editor extends Component { onCodeChange(code) { this.props.updateCode(code); } rende...
src/containers/auth/AuthLayoutContainer.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; import AuthLayout from '../../components/auth/AuthLayout'; import AppStore from '../../stores/AppStore'; import GlobalErrorStore from '../../stores/GlobalErrorStore'; import AppLoader from '../....
src/components/video_detail.js
xuan6/react-videos
import React from 'react'; const VideoDetail = ({video}) => { //check if data is loaded if(!video){ //if data is undefined will return loading div and stop here return <div>Loading...</div>; } const videoId = video.id.videoId; // const url = 'https://www.youtube.com/embed/'+videoId; const...
src/svg-icons/av/sort-by-alpha.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSortByAlpha = (props) => ( <SvgIcon {...props}> <path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ...
web/portal/src/components/Form/Text/index.js
trendmicro/serverless-survey-forms
// CSS import styles from './style.css'; import React from 'react'; import PureComponent from 'react-pure-render/component'; import Question from '../Question'; class Text extends PureComponent { render() { const { data, onClick } = this.props; return ( <div classNam...
src/components/home.js
djake1680/React-Weight-Calculator
import React, { Component } from 'react'; import Header from './header'; import WeightForm from './weight-form'; export default class App extends Component { render() { return ( <div> <Header /> <WeightForm /> </div> ); } }
templates/bootstrap/imports/ui/components/HelloWorld.js
Batistleman/mgb
import React from 'react'; export default function HelloWorld() { return <h1>Hello World</h1>; }
app/containers/SignIn/index.js
monkeyzealer/Webstore-FrontEnd
/* * * SignIn * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router'; import TextField from 'material-ui/TextField'; import {orange500, blue500, brown500, brown900, brown700,} from 'material-ui/styles/colors'; import Responsive from 'react-responsive'; import AppBar fr...
examples/flux-utils-todomvc/js/app.js
hoozi/flux
/** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */ 'use s...
client/react/src/components/orderItem/OrderItemsView.js
peasy/peasy-js-samples
import React from 'react'; import { Link } from 'react-router-dom'; import OrderItemActions from '../../actions/orderItemActions'; import InventoryItemActions from '../../actions/inventoryItemActions'; import constants from '../../constants'; import ListViewBase from '../../components/common/ListViewBase'; let orderIt...
src/layouts/CoreLayout/CoreLayout.js
twelch/kit-client-react-intl-token-proxy
import React from 'react' import { connect } from 'react-redux' import AppBar from 'material-ui/AppBar' import Sidebar from 'containers/Sidebar' import '../../styles/core.scss' import { toggleSidebar, setSidebar } from 'modules/sidebar' class CoreLayout extends React.Component { static propTypes = { children: R...
src/components/MainHeader/MessageItem.js
falmar/react-adm-lte
import React from 'react' import PropTypes from 'prop-types' import Link from '../../utils/Link' const MessageItem = ({href, imageUrl, title, time, message, onClick}) => { return ( <li > <Link href={href} onClick={onClick}> <div className='pull-left'> <img src={imageUrl} className='img-c...
client/app/scripts/components/debug-toolbar.js
paulbellamy/scope
/* eslint react/jsx-no-bind: "off" */ import React from 'react'; import Perf from 'react-addons-perf'; import { connect } from 'react-redux'; import { sampleSize, sample, random, range, flattenDeep, times } from 'lodash'; import { fromJS, Set as makeSet } from 'immutable'; import { hsl } from 'd3-color'; import debug f...
src/svg-icons/maps/local-car-wash.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCarWash = (props) => ( <SvgIcon {...props}> <path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2...
src/pages/london-landmarks-half-marathon.js
kbariotis/kostasbariotis.com
import React from 'react'; import PropTypes from 'prop-types'; import { graphql } from 'gatsby'; import { Row, Col } from 'react-flexbox-grid'; import variables from '../components/blog/variables'; import IndexLayout from '../components/layouts/Index'; import Header from '../components/blog/Header'; import MetaTags fr...
app/javascript/mastodon/components/load_gap.js
Chronister/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...
app/jsx/collaborations/Collaboration.js
venturehive/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...
plugins/react/server/__test__/components/ComponentC.js
pure-ui/styleguide
import React from 'react'; export default () => <div></div>;