path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/react/LogMonitorButton.js
threepointone/redux-devtools
import React from 'react'; import brighten from '../utils/brighten'; const styles = { base: { cursor: 'pointer', fontWeight: 'bold', borderRadius: 3, padding: 4, marginLeft: 3, marginRight: 3, marginTop: 5, marginBottom: 5, flexGrow: 1, display: 'inline-block', fontSize: '...
src/components/NotificationBanner/index.js
unihackhq/skilled-acolyte-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Notification } from 'bloomer'; import NotificationHOC from '../NotificationHOC'; import './index.scss'; const NotificationBanner = (props) => { const { enabled, bannerHidden, subscribed, error, loading, onSubscribe, onHide } = props; ...
cardgame-client/index.js
Valian/react-redux-websocket-cardgame
import 'babel-polyfill' import React from 'react' import io from 'socket.io-client'; import { render } from 'react-dom' import { browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import Root from './containers/Root' import configureStore from './store/configureStore' import...
views/pages/questsAll/questsAll.js
FairTex/team5
import React from 'react'; import ReactDOM from 'react-dom'; import Search from '../../blocks/Search/search'; ReactDOM.render( <div className="container"> <h2 className="page__title">Все квесты</h2> <Search /> </div>, document.getElementById('root') );
src/component/MenuPage.js
wm4n/mcdonald-tw
import React from 'react'; import { View, StatusBar } from 'react-native'; import MenuListView from './MenuListView'; /** * The main page and it's responsible for showing all coupon items */ class MenuPage extends React.Component { // Header style follows the original app that has white text and red background ...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Tab.js
JamieMason/npm-cache-benchmark
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import PropTypes from 'pr...
maodou/usersManage/client/components/userNotifications.js
wuyang910217/meteor-react-redux-base
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { SegmentedControl, WhiteSpace, WingBlank, Flex, List } from 'antd-mobile/dist/antd-mobile'; export default class UserNotifications extends Component { constructor(props) { super(props); this.handleChange = this.handleChange....
src/components/Footer/PdfFooter/index.js
quran/quran.com-frontend
import React from 'react'; import Link from 'react-router/lib/Link'; const PdfFooter = () => ( <footer> <div className="container"> <div className="row"> <div className="col-md-12"> <p className="text-center"> This PDF is exported from {' '} <Link to="https://quran...
pootle/static/js/admin/general/components/LiveEditor.js
Finntack/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. */ import React from 'react'; import _ from 'underscore'; im...
src/components/StepChain/StepChain.stories.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import { ThemeProvider } from 'styled-components'; import { storiesOf } from '@storybook/react'; import StepChain from './StepChain'; import { colors } from '../styles/colors.js'; import { generateFlexedThemeBackground } from '../styles/index.js'; const ThemeComponent = (props) => ( <T...
app/javascript/mastodon/components/media_gallery.js
KnzkDev/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
src/index.js
selimsevencan/catalog
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; // relative import import Store from './store'; import App from './App'; import './index.css'; import data from './data/products.json'; const StoreInstance = Store({ product: data }); ReactDOM.render( <Provider sto...
src/js/func/FuncDef.js
mtford90/brio
import React from 'react'; import FuncParam from './FuncParam'; export default class FuncDef extends React.Component { render() { var { name, params } = this.props, paramNames = Object.keys(params), numParams = paramNames.length; return ( <h3 className="func-def"> ...
fusion/Row.js
pagesource/fusion
import React from 'react'; import { css } from 'emotion'; const rowStyle = css` display: flex; background: #000; color: #fff; `; const Row = () => <div className={rowStyle} />; export default Row;
src/parser/demonhunter/havoc/modules/spells/MetaBuffUptime.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; /* example repo...
client/src/MeetupList.js
WesleydeSouza/graphql-awesome-meetups
import gql from 'graphql-tag'; import React, { Component } from 'react'; import { graphql } from 'react-apollo'; import { Link } from 'react-router-dom'; class MeetupList extends Component { render() { const { loading, meetups } = this.props.data; if (loading) { return <span>Loading...</span>; } ...
examples/read-resource/src/components/Book.js
jmeas/resourceful-redux
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getStatus } from 'redux-resource'; class Book extends Component { render() { const { state, readBook, bookId } = this.props; const readStatus = getStatus(state, 'meta[24].readStatus'); const book = state.resources[book...
frontend/src/lib/mui-components/ComboboxDialog/ComboboxDialogPres.js
jf248/scrape-the-plate
import React from 'react'; import * as Mui from '@material-ui/core'; import * as C from './components'; const styles = theme => ({ root: {}, paper: { // Copied from material-ui Dialog, but add in height: 100% height: '100%', display: 'flex', flexDirection: 'column', margin: 48, position: '...
client/main.js
jscardona12/job-marketplace
import React from 'react'; import { FlowRouter } from 'meteor/kadira:flow-router'; import { mount } from 'react-mounter'; import '../imports/startup/accounts-config.js' import App from '../imports/ui/components/App.jsx'; import Home from '../imports/ui/components/Home.jsx'; import JobsList from '../imports/ui/component...
src/svg-icons/editor/text-fields.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorTextFields = (props) => ( <SvgIcon {...props}> <path d="M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"/> </SvgIcon> ); EditorTextFields = pure(EditorTextFields); EditorTextFields.displayName = 'Edi...
docs/app/Examples/collections/Message/Types/MessageExampleIconProp.js
shengnian/shengnian-ui-react
import React from 'react' import { Message } from 'shengnian-ui-react' const MessageExampleIconProp = () => ( <Message icon='inbox' header='Have you heard about our mailing list?' content='Get the best news in your e-mail every day.' /> ) export default MessageExampleIconProp
node_modules/react-icons/ti/notes.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiNotes = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.4 6.8c-0.2-0.2-0.4-0.3-0.7-0.2l-18.3 2c-0.4 0.1-0.7 0.5-0.7 0.9v17.2c-2.8 0-5 1.8-5 4.1s2.2 4.2 5 4.2 5-1.9 5-4.2v-12.7l10-1v6.2c-2.8 0-5 1.9-5 4.2s2.2 4.2 5 4.2 5-...
src/parser/monk/mistweaver/modules/features/Checklist/Module.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import ManaValues from 'parser/shared/modules/ManaValues'; import PreparationRuleAnalyzer...
node-siebel-rest/siebel_claims_demo/src/Component/Data/ClaimTableRender.js
Pravici/node-siebel
import React, { Component } from 'react'; import BootstrapTable from 'react-bootstrap-table-next'; import filterFactory, { textFilter } from 'react-bootstrap-table2-filter'; import paginationFactory from 'react-bootstrap-table2-paginator'; import { NavLink } from 'react-router-dom'; class ClaimTableRender extends Comp...
src/components/data/DataItem.js
dherault/Oso
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import ac from '../../state/actionCreators'; import definitions from '../../models/'; import { capitalize } from '../../utils/text'; class DataItem extends React.Component { componentWillMount() { const { st...
src/containers/counter-page.js
JamesHageman/rangle-elm-starter
import React from 'react'; import { connect } from 'react-redux'; import { increment, decrement } from '../actions/counter'; import Counter from '../components/counter'; import Container from '../components/container'; function mapStateToProps(state) { return { counter: state.counter.get('count'), }; } func...
definitions/npm/react-addons-css-transition-group_v15.x.x/test_react-addons-css-transition-group.js
davidohayon669/flow-typed
// @flow import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; const shouldWork = () => ( <div> <ReactCSSTransitionGroup transitionName="div" transitionEnterTimeout={500} transitionLeaveTimeout={300}> <div /> </ReactCSSTransitionGroup> ...
fixtures/attribute-behavior/src/App.js
jameszhan/react
import React from 'react'; import {createElement} from 'glamor/react'; // eslint-disable-line /* @jsx createElement */ import {MultiGrid, AutoSizer} from 'react-virtualized'; import 'react-virtualized/styles.css'; import FileSaver from 'file-saver'; import { inject as injectErrorOverlay, uninject as uninjectError...
app/admin/components/AdminListItem.js
ecellju/internship-portal
import React from 'react'; import { Table } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import AdminRemoveButton from './AdminRemoveButton'; const AdminListItem = props => ( <Table.Row> <Table.Cell> {props.admin.email} </Table.Cell> <Table.Cell> {props.admin.isSuperAdmin ? '...
src/templates/page-template.js
renegens/blog
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Page from '../components/Page'; import { useSiteMetadata } from '../hooks'; import type { MarkdownRemark } from '../types'; type Props = { data: ...
docs/app/Examples/modules/Rating/Types/RatingExampleClearable.js
ben174/Semantic-UI-React
import React from 'react' import { Rating } from 'semantic-ui-react' const RatingExampleClearable = () => ( <Rating maxRating={5} clearable /> ) export default RatingExampleClearable
src/js/components/layout/message.js
daniel-madera/pijs
import React from 'react'; import { inject, observer } from 'mobx-react' import { Alert, Col, Grid, Row } from 'react-bootstrap' @inject('appStore') @observer export default class Menu extends React.Component { render = () => { const { message } = this.props.appStore return ( <Row className="contain...
client/components/App.js
AnatolyBelobrovik/itechartlabs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import NavigationBar from './shared/NavigationBar'; import FlashMessagesList from './shared/flash/FlashMessagesList'; import '../public/stylesheets/style.less'; class App extends Component { render() { return ( <div> <...
src/pages/index.js
mozilla/copyright
import fs from 'fs'; import React from 'react'; import Optimizely from '../components/optimizely.js'; import OptimizelySubdomain from '../components/optimizelysubdomain.js'; import Path from 'path'; import Pontoon from '../components/pontoon.js'; var Index = React.createClass({ render: function() { var metaData ...
examples/counter/index.js
vxsx/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
fields/types/relationship/RelationshipColumn.js
Pop-Code/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#bbb', fontSize: '.8rem', fontWeight: 500, marginLeft: 8, }; var RelationshipColumn = React.createClass({ displayName: 'Rel...
src/app/keyring/User.js
mailvelope/mailvelope
/** * Copyright (C) 2019 Mailvelope GmbH * Licensed under the GNU Affero General Public License version 3 */ import React from 'react'; import PropTypes from 'prop-types'; import {Redirect, Link} from 'react-router-dom'; import moment from 'moment'; import {PGP_KEYSTATUS_VALID} from '../../lib/constants'; import {c...
src/components/ContentTitle2.js
BinaryCool/LaceShop
import React from 'react'; import { browserHistory } from 'react-router'; import { changHandle,getCategory } from '../actions'; import { connect } from 'react-redux'; require('styles/ContentTitle2.scss'); export default class ContentTitle2 extends React.Component { constructor(props) { super(props) this.han...
src/components/EyeIcon/EyeIcon.js
miker169/ps-react-miker169
import React from 'react'; /** SVG Eye Icon */ function EyeIcon() { return ( <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"> <g transform="matrix(.02146 0 0 .02146 1 1)" fill="#4d4d4d"> <path d="m466.07 161.53c-205.6 0-382.8 121.2-464.2 296.1-2.5 5.3-2.5 11.5 0 1...
jsxstyle/button.js
konce/css-in-js
import React from 'react'; import {Block} from 'jsxstyle'; let styles = { button: { backgroundColor: '#ff0000', width: '320px', padding: '20px', borderRadius: '5px', border: 'none', outline: 'none' } }; let Button = React.createClass({ render() { return ( <Block textAlign="cent...
src/PowerSelect/index.js
selvagsz/react-power-select
import React, { Component } from 'react'; import Select from '../Select'; import BeforeOptionsWrapper from './BeforeOptionsWrapper'; export default class PowerSelect extends Component { handleSearchInputChange = event => { // hackish this.select.handleSearchInputChange(event); }; render() { let { ...
src/svg-icons/editor/format-line-spacing.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatLineSpacing = (props) => ( <SvgIcon {...props}> <path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/> </SvgIcon> ); EditorFormatLineSpacing =...
examples/basic/src/App.js
tannerlinsley/react-table
import React from 'react' import styled from 'styled-components' import { useTable } from 'react-table' import makeData from './makeData' const Styles = styled.div` padding: 1rem; table { border-spacing: 0; border: 1px solid black; tr { :last-child { td { border-bottom: 0; ...
app/javascript/mastodon/components/status_action_bar.js
kagucho/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenu from './dropdown_menu'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure...
src/svg-icons/action/view-agenda.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewAgenda = (props) => ( <SvgIcon {...props}> <path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.5...
src/Glyphicon.js
chilts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Glyphicon = React.createClass({ propTypes: { /** * bootstrap className * @private */ bsClass: React.PropTypes.string, /** * An icon name. See e.g. http://getbootstrap.com/components/#glyphicons */ glyph: Re...
src/js/components/icons/base/Navigate.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/Components/Resume/Balance/Balance.js
martinvarelaaaa/tintina
import React from 'react'; import PropTypes from 'prop-types'; import { View, TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import { TextAmount, TextInfo } from '../../Atoms/Text'; import theme from '../../../theme'; import styles from './styles'; const ...
src/blocks/embeds/facebook.js
brijeshb42/kattappa
import React from 'react'; import BaseEmbed from './base'; class Facebook extends BaseEmbed { constructor(props) { super(props); this.state = { message: 'Wait', id: '', valid: false, html: '' }; this.validate = this.validate.bind(this); this.loadExternalScript = this.loadE...
src/components/CustomTabBar.js
ztplz/CNode-react-native
/** * React Native App * https://github.com/ztplz/CNode-react-native * email: mysticzt@gmail.com */ import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import { TabBarBottom } from 'react-navigation'; class CustomTabBar exte...
src/components/FieldGroup/FieldGroup.js
oliveirafabio/test-senior
import React from 'react' import classes from './FieldGroup.scss' import { Button, Checkbox, Radio, FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap' import DatePicker from 'react-bootstrap-datetimepicker' import DatePick from 'react-bootstrap-date-picker' export const FieldGroup = ({ id, la...
client/public/src/components/Header.js
openview2017/openview
import React from 'react' import { Link } from 'react-router' /** * notificationContent */ let notificationContent = `<div id="notification"> <div class="main-container"> <header class="notification-header"> <span>Alerts & Recommendations</span> <div class="close"></div> </h...
js/components/build-type.js
paulbevis/teamcity-build-monitor
import React from 'react'; import Relay, {RootContainer} from 'react-relay'; import BuildsComponent from './builds' import BuildsRoute from '../routes/builds-route' class BuildType extends React.Component { constructor(props) { super(props); this.state = {value: '', initialised: false}; this.pollForLat...
BUILD/js/components_js/content-product.js
kevincaicedo/MyStore-Front-end
import React from 'react' import CardProduct from './product-card.js' export default class ContentProduct extends React.Component { constructor(props){ super(props) this.dataproduct = this.props.dataproduct || [] } render(){ let contentcard = this.dataproduct.map((data) => { return (<CardProduct urlimg={...
src/files/modals/publish-modal/PublishModal.stories.js
ipfs/webui
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import i18n from '../../../i18n' import { PublishModal } from './PublishModal' storiesOf('Files/Modals', module) .add('Publishing', () => ( <div className='ma3'> <PublishModal t=...
docs/src/js/component/wrapper/volume.react.js
vwxyutarooo/react-video-icons
'use strict'; import React from 'react'; import Volume from 'volume'; export default class VolumeWrap extends React.Component { constructor(props) { super(props); this.state = this.__getInitialState(); } __getInitialState() { return { level: 2 } } _handleClick(action) { let level = ...
client/src/components/colors/tools/AdjustColorTool.js
alecortega/palettable
// @flow import React from 'react'; import { Tooltip } from 'react-tippy'; import { connect } from 'react-redux'; import ColorPicker from './ColorPicker'; import SliderIcon from './SliderIcon'; import { changeLikedColor } from '../../../redux/actions/likedColors'; import UIPopover from '../../shared/popover/UIPopover';...
components/newsletter/index.js
blockstack/blockstack-site
import React from 'react' import { Box, Flex } from 'blockstack-ui' import { useNewsletterState } from '@components/newsletter/wrapper' import ChevronRightIcon from 'mdi-react/ChevronRightIcon' import LoadingIcon from 'mdi-react/LoadingIcon' import ErrorIcon from 'mdi-react/ErrorIcon' import { useFocus } from 'use-even...
client/modules/App/components/Footer/Footer.js
williaumwu/mern-sample
import React from 'react'; // Import Style import styles from './Footer.css'; export function Footer() { return ( <div style={{ background: '#333c5a' }} className={styles.footer}> <p>&copy; 2016 &middot; MagicBlog &middot; Magic Leap Exam</p> </div> ); } export default Footer;
app/components/search.js
merj4/merj
import React, { Component } from 'react'; import AutoComplete from 'material-ui/AutoComplete'; import _ from 'underscore'; import { Button, Col, Row } from 'react-bootstrap'; import moment from 'moment'; import Filter from './filter'; let transform = (date) => { let readDate = new Date(date); return readDate.toStr...
app/javascript/mastodon/components/common_counter.js
masto-donte-com-br/mastodon
// @ts-check import React from 'react'; import { FormattedMessage } from 'react-intl'; /** * Returns custom renderer for one of the common counter types * * @param {"statuses" | "following" | "followers"} counterType * Type of the counter * @param {boolean} isBold Whether display number must be displayed in bold ...
src/mui/input/FileInput.js
marmelab/admin-on-rest
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { shallowEqual } from 'recompose'; import Dropzone from 'react-dropzone'; import FileInputPreview from './FileInputPreview'; import translate from '../../i18n/translate'; const defaultStyle = { dropZone: { background: '#e...
docs/app/Examples/elements/Input/States/InputExampleDisabled.js
mohammed88/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputDisabled = () => ( <Input disabled placeholder='Search...' /> ) export default InputDisabled
app/javascript/mastodon/features/account_gallery/index.js
NS-Kazuki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { expandAccountMediaTimeline } from '../../actions/timelines'; import LoadingIndicator from '../...
docs/app/Examples/views/Feed/Content/FeedExampleImageLabelShorthand.js
clemensw/stardust
import React from 'react' import { Feed } from 'semantic-ui-react' const FeedExampleImageLabelShorthand = () => ( <Feed> <Feed.Event image='http://semantic-ui.com/images/avatar/small/elliot.jpg' content='You added Elliot Fu to the group Coworkers' /> <Feed.Event> <Feed.Label image='http...
app/components/errDialog.js
JustinBeckwith/trebuchet
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import {remote, shell} from 'electron'; import * as AppEvents from './../machines/appEvents'; export default class errDialog extends React.Component ...
src/svg-icons/notification/wifi.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWifi = (props) => ( <SvgIcon {...props}> <path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9...
client/modules/settings/routes.js
open-dash/open-dash
import React from 'react'; import { mount } from 'react-mounter'; import MainLayout from '/client/modules/core/containers/main_layout'; import SettingsPage from './components/settings_page'; export default function (injectDeps, { FlowRouter }) { const MainLayoutCtx = injectDeps(MainLayout); FlowRouter.route('/se...
internals/templates/containers/NotFoundPage/index.js
kdprojects/nichesportapp
/** * 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...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/FormComponents/SingleInput.js
dewmini/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
examples/counter/containers/CounterApp.js
asaf/redux
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp { render() { co...
pollard/components/SongInput.js
spncrlkt/pollard
import React, { Component } from 'react'; import classNames from 'classnames'; import mergeStyles from '../lib/mergeStyles'; export default class SongInput extends Component { handleChange(event) { this.props.updateSong({ idx: this.props.songIdx, key: this.props.label, val: event.target.value...
examples/DevTools/index.js
stackscz/re-app
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import './index.less'; const DevToolsComponent = createDevTools( <LogMonitor className="DevTools" /> ); export default class DevTools extends React.Component { static instrument = DevTool...
src/parent-ques/QuestionList.js
mrinalkrishnanm/Sld
import React from 'react'; import QuestionBox from './QuestionBox.js' class QuestionList extends React.Component{ constructor(){ super() this.state={ inc: 0 } } quesUpdate(answers){ if(this.state.inc==19) { this.props.updateChildButton(); } else { this.props.ansUpdate(answers);...
blueocean-material-icons/src/js/components/svg-icons/image/crop-din.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageCropDin = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageCropDin.displayName = 'ImageCropDin'; ImageCropDin.muiName = 'SvgIco...
examples/official-storybook/stories/addon-design-assets.stories.js
storybooks/react-storybook
import React from 'react'; export default { title: 'Addons/Design assets', parameters: { options: { selectedPanel: 'storybook/design-assets/panel', }, }, }; export const SingleImage = () => <div>This story should a single image in the assets panel</div>; SingleImage.story = { name: 'single ima...
src/layouts/CoreLayout/CoreLayout.js
City-of-Helsinki/helerm-ui
import React from 'react'; import PropTypes from 'prop-types'; import Header from '../../components/Header'; import NavigationContainer from '../../components/Navigation/NavigationContainer'; import '../../styles/core.scss'; import './CoreLayout.scss'; const CoreLayout = ({ children }) => { return ( <div class...
docs/app/Examples/elements/List/ContentVariations/ListExampleFloated.js
aabustamante/Semantic-UI-React
import React from 'react' import { Button, Image, List } from 'semantic-ui-react' const ListExampleFloated = () => ( <List divided verticalAlign='middle'> <List.Item> <List.Content floated='right'> <Button>Add</Button> </List.Content> <Image avatar src='/assets/images/avatar/small/lena....
relay-starter-kit/js/components/App.js
leighshepperson/absinthe-relay-starter-kit
import React from 'react'; import Relay from 'react-relay'; class App extends React.Component { render() { return ( <div> <h1>Widget list</h1> <ul> {this.props.viewer.widgets.edges.map(edge => <li key={edge.node.id}>{edge.node.name} (ID: {edge.node.id})</li> ...
packages/react-vis/src/sunburst/index.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // 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 limitation the rights // to use, copy, modify...
src/components/SpeakerProfile/index.js
r1cebank/react-native-boilerplate
import React from 'react'; import { Image, View } from 'react-native'; import { Components } from '../../global/globalIncludes'; const { Text } = Components.Text; import Styles from './resources/styles'; class SpeakerProfile extends React.Component { static propTypes = { speaker: React.PropTypes.object ...
src/index.js
corbig/AfterWorkManager
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; //import './index.css'; import AWBoard from './board/AWBoard' import { Router, Route, Link,browserHistory,IndexRoute} from 'react-router' import Main from './main/Main' import store from './store/store'; import { Provider } from 'reac...
src/routes/login/index.js
chenwydj/AFLS_edusys
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/components/NotFoundEmblem.js
Outfitio/breakfast-series-landing
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Parallax from './Parallax'; import moment from 'moment'; import cx from 'classnames'; export default class NotFoundEmblem extends Component { render () { const word = 'Page not found' const array = [...word.split(''), ' '...
test/test_helper.js
ahaditio/journal-frontend
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/pages/404.js
sparkdesignsystem/spark-design-system
import React from 'react'; import Layout from '../components/layouts/Layout'; import SEO from '../components/seo'; const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ); export default Not...
actor-apps/app-web/src/app/components/ToolbarSection.react.js
chenbk85/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin } from 'react-intl'; import classnames from 'classnames'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import DialogStore from 'stores/DialogStore'; import ActivityStore from 'stores/ActivityStore'; //import A...
src/svg-icons/action/history.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHistory = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
src/containers/App/App.js
bartolkaruza/universal-redux-simple-example
import React, { Component } from 'react'; export default class App extends Component { render() { return (<div>Hello Universal React Redux!</div>); } }
src/svg-icons/notification/priority-high.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPriorityHigh = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="19" r="2"/><path d="M10 3h4v12h-4z"/> </SvgIcon> ); NotificationPriorityHigh = pure(NotificationPriorityHigh); NotificationPrio...
docs/app/Examples/collections/Form/Shorthand/FormExampleFieldLabelElement.js
shengnian/shengnian-ui-react
import React from 'react' import { Checkbox, Form } from 'shengnian-ui-react' const FormExampleFieldLabelElement = () => ( <Form> <Form.Field control={Checkbox} label={<label>I agree to the Terms and Conditions</label>} /> </Form> ) export default FormExampleFieldLabelElement
app/lib/utils/devtools.js
icapps/react-isormorphic-kit
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import SliderMonitor from 'redux-slider-monitor'; const DevTools = createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' ...
app/containers/ServerStatus.js
aaroncox/vessel
/* eslint flowtype-errors/show-errors: 0 */ import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Button, Header, Icon, Message } from 'semantic-ui-react'; import ServerSelect from '../components/global/ServerSelect' import ServerReconnect...
src/PlayButtonControl.js
shaneosullivan/spotlist
/** * @flow */ import React, { Component } from 'react'; class PlayButton extends Component { render() { return ( <span className={'play-button'}> <iframe src={'https://open.spotify.com/embed?uri=spotify:track:' + this.props.trackID} frameBorder="0" allowTransparenc...
tests/Rules-isWords-spec.js
yesmeck/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
src/App.js
CodeForNC/reentry-resources-hub
import React, { Component } from 'react'; import ApolloClient from "apollo-boost"; import { ApolloProvider } from "react-apollo"; import { BrowserRouter as Router, Route, Switch, } from 'react-router-dom' import TaxonomiesNav from './TaxonomiesNav'; import CountiesIndex from './CountiesIndex'; import CountyPage f...
react/src/components/dictionary/SprkDictionary.js
sparkdesignsystem/spark-design-system
/* eslint-disable max-len */ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import uniqueId from 'lodash/uniqueId'; const SprkDictionary = (props) => { const { keyValuePairs, variant, idString, additionalClasses, keysAdditionalClasses, valu...
springboot/GReact/src/main/resources/static/app/routes/graphs/containers/Dygraphs.js
ezsimple/java
import React from 'react' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import DygraphsChart from '../../../components/graphs/dygraphs/DygraphsChart' export default class Dygraphs extends React.Component { render() { return ( <div id="content"> <div classNam...
packages/react/src/components/molecules/IconLink/IconLink.stories.js
massgov/mayflower
import React from 'react'; import { StoryPage } from 'StorybookConfig/preview'; import { svgOptions } from 'MayflowerReactBase/Icon/Icon.knob.options'; import * as Icon from 'MayflowerReactBase/Icon'; import Link from 'MayflowerReactMolecules/Link'; import IconLink from '.'; export const IconLinkExample = (args) => {...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
nicolas-amabile/counter
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...