path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/App.js
ncuillery/react-hot-boilerplate
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <h1>Hello, world.</h1> ); } }
src/components/shop/CatalogList.js
mangal49/HORECA
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import Loading from '../Loading'; import { GridList, GridTile } from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import Subheader from 'material-ui/Subheader'; import StarBord...
src/CardTitle.js
SiDevesh/React-Native-Material-Cards
import React from 'react'; import { StyleSheet, Text, View, Image, } from 'react-native'; const CardTitle = (props) => { const newStyle = props.style || {}; const newTitleStyle = props.titleStyle || {}; const newSubtitleStyle = props.subtitleStyle || {}; const newAvatarStyle = props.avatarStyle || {}; ...
tests/routes/Home/components/HomeView.spec.js
NguyenManh94/circle-ci
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
internals/templates/app.js
shiftunion/bot-a-tron
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
test/components/Panel.spec.js
Mobelux/docdown-editor
/* global describe, it, expect */ /* eslint-disable no-unused-expressions */ import React from 'react'; import { mount } from 'enzyme'; import Panel from '../../app/components/Panel'; function setup() { const component = mount(<Panel className="test"><span>TEST</span></Panel>); return { component, span: co...
app/jsx/bundles/dashboard_card.js
djbender/canvas-lms
/* * Copyright (C) 2015 - 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...
blueocean-material-icons/src/js/components/svg-icons/maps/zoom-out-map.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsZoomOutMap = (props) => ( <SvgIcon {...props}> <path d="M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6zm12-6l-2.3 2.3-2.87-2.89-1.42 1.42 ...
examples/server-rendering/shared/components/Welcome.js
amazeui/amazeui-react
import React from 'react'; import { Button, ButtonToolbar, } from './AMUIReact'; export class Welcome extends React.Component { render() { return ( <div> <h2> 请点击上面的链接查看演示。 </h2> </div> ); } }
entry_types/scrolled/package/src/frontend/index.js
tf/pageflow
import './webpackPublicPath'; import './polyfills'; import './globalNotices.module.css'; import React from 'react'; import ReactDOM from 'react-dom'; import {Entry} from './Entry'; import {setupI18n} from './i18n'; import './global.module.css'; import styles from './foregroundBoxes/GradientBox.module.css'; import ...
src/icons/SignalCellularNoSimIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class SignalCellularNoSimIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M37.98 10c0-2.21-1.77-4-3.98-4H20l-4.68 4.68L38 33.36 37.98 10zM7.3 7.76L4.76 10.3 10 15.55V38...
src/layout/Footer.js
r-daneelolivaw/planetdrupal
import React from 'react'; const Footer = () => ( <footer className="footer"> <div className="container"> <div className="content has-text-centered"> <p /> </div> </div> </footer> ); export default Footer;
imports/ui/pages/Sign/pages/Login/components/Content.js
ShinyLeee/meteor-album-app
import { Meteor } from 'meteor/meteor'; import { Accounts } from 'meteor/accounts-base'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Button from 'material-ui/Button'; import Input from 'material-ui/Input'; import { validateEmail } from '/imports/utils'; import Modal from '/impor...
src/browser/offline/OfflinePage.js
sikhote/davidsinclair
// @flow import type { State } from '../../common/types'; import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { connect } from 'react-redux'; import { Box, PageHeader, Text } from '../../common/components'; import { Title } from '../components'; type OfflinePageProps = { onlin...
FloatingLabel.js
APSL/react-native-floating-label
import React from 'react'; import { StyleSheet, Text, TextInput, View, Animated, TouchableWithoutFeedback, } from 'react-native' import t from 'tcomb-form-native' const Textbox = t.form.Textbox class FloatingLabel extends Textbox { constructor (props) { super(props); this.state = { fieldFo...
lib/form/templates/flat/datepicker.js
bjyas/react-native-rnkit
import React from 'react' import { View, Text, DatePickerIOS, StyleSheet, Image, TouchableOpacity, Modal } from 'react-native'; const style = StyleSheet.create({ container: { flex: 1, alignItems: 'stretch', justifyContent: 'flex-end', backgroundColor: 'transparent' }, dateBox: { justifyConten...
src/index.js
cardotrejos/calculator
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import rootReducer from './ducks'; import App from './components/App'; import './index.css'; const store = createStore(rootReducer); ReactDOM.render( <Provider store={store}> ...
src/Examples/StaticPage/OutputTreeView.js
509dave16/resource-aggregate-utility
/** * @file A tree view that displays the ouptout from trasnforming a collection of * resources using an one of the resource aggregation utility funtions * * @see {@link https://github.com/chenglou/react-treeview/blob/master/demos/uncontrolled.js} for source that is component is based off of. */ import React fr...
src/components/icons/CallForward.js
austinknight/ui-components
import React from 'react'; export default function CallForward(props) { return ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" > {props.title && <title>{props.title}</title>} <path d="M14 4l2.29 ...
docs/app/Examples/elements/Segment/Variations/SegmentExampleVeryPadded.js
shengnian/shengnian-ui-react
import React from 'react' import { Segment } from 'shengnian-ui-react' const SegmentExampleVeryPadded = () => ( <Segment padded='very'> Very padded content. </Segment> ) export default SegmentExampleVeryPadded
ui/src/shared/components/GraphTips.js
brianbaker/chronograf
import React from 'react' import ReactTooltip from 'react-tooltip' const GraphTips = React.createClass({ render() { const graphTipsText = '<p><b>Graph Tips:</b><br/><br/><code>Click + Drag</code> Zoom in (X or Y)</p><p><code>Shift + Click</code> Pan Graph Window</p><p><code>Double Click</code> Reset Graph ...
src/components/Chat/Input/EmojiSuggestion.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import ListItemAvatar from '@mui/material/ListItemAvatar'; import ListItemText from '@mui/material/ListItemText'; import Suggestion from './Suggestion'; import emojiUrl from '../../../utils/emojiUrl'; const shortcode = (emoji) => `:${emoji.shortcode}:`; f...
level0/client/containers/App.js
vulcan-estudios/react-examples
// Los contenedores son componentes de React que tienen acceso al estado y conocen // la lógica de la aplicación. // El contenedor principal es quien inicia toda la aplicación, el componente raíz. import React, { Component } from 'react'; import database from 'client/database'; import Title from 'client/components/Ti...
packages/wix-style-react/src/Table/DataTable/docs/ExampleSortableOldDesign.js
wix/wix-style-react
import React from 'react'; import DataTable from '..'; import './Example.scss'; const style = { width: '966px', }; const baseData = [ { firstName: 'Meghan', lastName: 'Bishop' }, { firstName: 'Sara', lastName: 'Porter' }, { firstName: 'Deborah', lastName: 'Rhodes' }, { firstName: 'Walter', lastName: 'Jennin...
src/web/components/Stats/StatsList.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
index.js
sgillespie/beer-recipe-adapter
import { DebugPanel, DevTools, LogMonitor } from 'redux-devtools/lib/react'; import { Provider } from 'react-redux'; import React from 'react'; import Recipe from './containers'; import { render } from 'react-dom'; import store from './store'; const state = { targets: { efficiency: 0.7, gravity: 1.055, ...
client/src/app.js
Nauktis/inab
import createLogger from 'redux-logger'; import thunk from 'redux-thunk'; import transactionReducer from './reducers'; import { applyMiddleware, createStore } from 'redux'; import { render } from 'react-dom'; import ReduxModal from 'react-redux-modal'; import React from 'react'; import Main from './components/Main'; im...
docs/app/Examples/elements/List/Types/ListExampleIconShorthand.js
aabustamante/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleIconShorthand = () => ( <List> <List.Item icon='users' content='Semantic UI' /> <List.Item icon='marker' content='New York, NY' /> <List.Item icon='mail' content={<a href='mailto:jack@semantic-ui.com'>jack@semantic-ui.com...
src/svg-icons/communication/stay-current-landscape.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
stories/FormTextField.js
yayoc/react-textfield
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import FormWrapper from '../examples/FormWrapper'; import TextFieldWrapper from '../examples/TextFieldWrapper'; import { usernameValidators, passwordValidators, emailValidators } from './validators'; storiesOf('FormTextField', module) .addWith...
src/svg-icons/action/watch-later.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (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.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
packages/wix-style-react/stories/CardLayout/index.story.js
wix/wix-style-react
import React from 'react'; import LinkTo from '@storybook/addon-links/react'; import { title, description, columns, table, importExample, code, } from 'wix-storybook-utils/Sections'; import { storySettings } from './storySettings'; import FormExampleRaw from '!raw-loader!./FormExample'; import EmptyStateE...
examples/redux-events/src/DayCell.js
Hanse/react-calendar
/* eslint-disable react/prop-types */ import React from 'react'; import moment from 'moment'; import cx from 'classnames'; import { connect } from 'react-redux'; const DayCell = ({ day, classNames, events }) => ( <div className={cx( 'Calendar-grid-item', day.isSame(moment(), 'day') && 'Calendar-grid...
src/svg-icons/action/zoom-out.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomOut = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 ...
src/components/Project/index.js
xenotime-india/CV
import React from 'react' import './style.scss' class Project extends React.Component { render() { const { html, frontmatter } = this.props return ( <div className="page-content" dangerouslySetInnerHTML={{ __html: html }} /> ) } } export default Project
test/frux-test.js
raulmatei/frux
import test from 'ava'; import frux from '../src/frux'; import React, { Component } from 'react'; import { counter } from './fixtures'; let actions = {}; let getters = {}; test.beforeEach(() => { const registry = frux.initialize({ options: { debug: true }, counter }); actions = registry.actions; gett...
app/js/components/PanelShell.js
blockstack/blockstack-portal
import React from 'react' import PropTypes from 'prop-types' import StyledPanel from '@styled/onboarding' import Show from '@components/Show' import SyncIcon from 'mdi-react/SyncIcon' import { animated, Spring } from 'react-spring' import Spinner from '@components/styled/Spinner' const renderItems = (items, view) => ...
app/jsx/assignments_2/student/components/DateTitle.js
djbender/canvas-lms
/* * Copyright (C) 2018 - 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...
src/components/d3components/ToolTip.js
nbuechler/studious-display
import React from 'react'; import d3 from 'd3'; import _ from 'underscore'; export default class ToolTip extends React.Component { constructor (props) { super(props); this.state = { }; } render () { var ttRectWidth = this.props.ttRectWidth, ttRectHeight = this.props.ttRectHeight, scal...
src/svg-icons/editor/vertical-align-center.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignCenter = pure(EditorVerticalAlig...
src/app/App.js
GoldStarPDX/GoldStar
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { BrowserRouter as Router } from 'react-router-dom'; import Routes from './Routes'; import { checkForToken } from '../auth/actions'; import Footer from './Footer'; import './App.css'; class App extends Component { componentDidMou...
frontend/src/components/organizationProfile/edit/projectImplementation/partnerProfileProjectImplementationBankingInfo.js
unicef/un-partner-portal
import React from 'react'; import { formValueSelector, FormSection } from 'redux-form'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import RadioForm from '../../../forms/radioForm'; import TextFieldForm from '../../../forms/textFieldForm'; import { visibleIfNo, BOOL_VAL } from '../../../....
src/svg-icons/action/print.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPrint = (props) => ( <SvgIcon {...props}> <path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/> </...
src/paginator/__tests__/NextBtn.js
claudioDcv/Tabl3
import React from 'react'; import { mount } from 'enzyme'; import NextBtn from '../NextBtn.jsx'; describe("NextBtn", function () { test('create table-2-new-next-btn', () => { const props = { tableState: { paginator: { lastPage: false, }, }, updateState: () => {}, }...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultProps.js
MichaelDeBoey/flow
// @flow import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props> { static defaultProps: DefaultProps = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<DefaultProps, ...
src/views/Repo.js
isaaguilar/pumpkin-basket
import React from 'react' export default React.createClass({ render() { const { userName, repoName } = this.props.params return ( <div> <h2>{userName} / {repoName}</h2> </div> ) } })
packages/material-ui-icons/src/CardTravel.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z" /></g> ,...
src/app/component/upload-model-list/upload-model-list.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import range from 'lodash/range' import UploadModelList from '.' import UploadModelItem from '../upload-model-item' import UploadModelItemError from '../upload-model-item-error' import UploadModelItemLoad from '../upload-model-item-load' import Link ...
src/svg-icons/editor/border-horizontal.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderHorizontal = (props) => ( <SvgIcon {...props}> <path d="M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zm4 4h2v-2H7v2zM5 3H3v2h2V3zm4 0H7v2h2V3zm8 0h-2v2h2V3zm-4 4h-2v2h2V7zm0-4h-2v2h2V3zm6 14h2v-2h-2v2z...
frontend/src/components/Text.js
Yacenko/PetsInHome
import React from 'react'; /** * Component to show texts in an application * @param props * @returns {XML} * @constructor */ const Text = (props) => { const text = props.text || ''; let arrStr = text.split('/n'); const atLastArray = arrStr.map((item, index) => <p key={index} className='paragraph' danger...
project/react-ant-multi-pages/src/pages/index/containers/FunderProdMgmt/Item/index.js
FFF-team/generator-earth
import React from 'react' import moment from 'moment' import { DatePicker, Button, Form, Input, Col } from 'antd' import BaseContainer from 'ROOT_SOURCE/base/BaseContainer' import request from 'ROOT_SOURCE/utils/request' import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter' import Rules from 'ROOT_SOURCE/utils...
admin/app/assets/javascripts/components/containers/WorldBank.js
ievgenen/workingstats
import React from 'react'; import { Row, Col, Card, CardHeader, CardBody, } from 'reactstrap'; import TaskBoard from '../containers/TaskBoard' const WorldBank = () => ( <div className={'mt-3'}> <Row> <Col> <Card className={"wb-form"}> <CardHeader className={'cardHeader'}> ...
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/After/app/containers/HomePage/index.js
phiratio/Pluralsight-materials
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove * the ...
client/src/js/configurator/Configurator.js
FlorianDe/MotivationalStairs
import React from 'react'; class Configurator extends React.Component { render() { return <h1>Configurator</h1>; } } export default Configurator;
apps/chat_app/web/static/js/app.js
nemanja-m/ex-chat
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import createHistory from 'history/createBrowserHistory'; import configureStore from './store'; import Root from './containers/Root'; const history = createHistory(); const store = configureStore(history); render( ...
docs-ui/components/mutedBox.stories.js
looker/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; // import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import MutedBox from 'app/components/mutedBox'; storiesOf('Muted Box', module) .add('default', withInfo('Default')(() => <MutedBox statusDetails=...
webapp-src/src/TopMenu/DataSourceList.js
babelouest/taliesin
import React, { Component } from 'react'; import { NavDropdown, MenuItem } from 'react-bootstrap'; import StateStore from '../lib/StateStore'; import i18n from '../lib/i18n'; class DataSourceList extends Component { constructor(props) { super(props); this.state = { currentDataSource: props.dataSource, dataSou...
client/app/src/containers/App/index.js
gk95/nightlux
import React from 'react'; import { BrowserRouter, Link, Route, Switch, } from 'react-router-dom'; import { ApolloClient, ApolloProvider, createNetworkInterface, } from 'react-apollo'; import style from './style.css'; import Home from 'Containers/Home'; import Category from 'Containers/Category'; impor...
lib/utils/plugins.js
mike-engel/hyperterm
import { remote } from 'electron'; import { connect as reduxConnect } from 'react-redux'; // we expose these two deps to component decorators import React from 'react'; import Notification from '../components/notification'; import notify from './notify'; // remote interface to `../plugins` let plugins = remote.requir...
src/pages/Dashboard.js
TASnomad/Fallon-react-native-app
import React, { Component } from 'react'; import { AsyncStorage, Dimensions, Image, Modal, ScrollView, StyleSheet, View, Text, RefreshControl, } from 'react-native'; const window = Dimensions.get('window'); import DatePicker from 'react-native-datepicker'; import LightBox from 'react...
src/index.js
saadq/flow-timer
/** * @flow */ import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './app/App' import store from './app/store' const root = document.querySelector('#root') if (root) { render( <Provider store={store}> <App /> </...
src/components/sidebar-actions/action-layout/action-layout.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import { toastr } from 'react-redux-toastr'; import copy from 'copy-to-clipboard'; import { intlShape } from 'react-intl'; import ExportModal from 'components/export-modal'; import SidebarContainer from 'primitives/container/sidebar-container'; import Ent...
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js
tan-jerene/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import Toggle from 'material-ui/Toggle'; const optionsStyle = { maxWidth: 255, marginRight: 'auto', }; /** * This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`. */ export default class DatePi...
src/js/pages/Proposals/Leisure/AvailabilityDatesPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../../../i18n/Translate'; import TopNavBar from '../../../components/TopNavBar/TopNavBar.js'; import '../../../../scss/pages/proposals/leisure/availability-dates.scss'; import connectToStores from "../../../utils/connec...
src/routes.js
captainill/react-redux-universal-hot-example
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, Widgets, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (store) ...
src/containers/payments/show.js
amiuhle/kasisto
import React from 'react' import { connect } from 'react-redux' import ShowPayment from '../../views/payments/show' import { getPaymentById } from '../../reducers' const render = props => { return <ShowPayment {...props} /> } const mapStateToProps = (state, { match }) => ({ payment: getPaymentById(state, mat...
src/NavItem.js
roadmanfong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
frontend/src/components/Posts/index.js
moyuyc/isomorphic-blog
/** * Created by Moyu on 16/10/20. */ import React from 'react'; import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import {Map} from 'immutable' import Post from '../Post' class Posts extends React.Component { constructor(props) { super(props); } shouldComponentUpd...
src/components/ArticlePreview.js
Seeingu/medium-demo
/* 文章标题、点赞数、简介 用户头像、用户名、时间 */ import React from 'react'; import styled from 'styled-components'; import { Link } from 'react-router-dom'; import { getUser } from '../reducers'; import { FlexTruncate, PRIMARY_COLOR, DARK_GRAY, LIGHT_GRAY, Avatar, CustomAuthorLink, media } from '../styl...
src/components/Header/Header.js
mje0002/originReact
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <Link to='/counter' activeClassName='route--activ...
src/components/views/PostDetail.js
ello/webapp
import React from 'react' import PropTypes from 'prop-types' import Editor from '../editor/Editor' import PostContainer from '../../containers/PostContainer' import StreamContainer from '../../containers/StreamContainer' import { MainView } from '../views/MainView' import { loadRelatedPosts } from '../../actions/posts'...
example/scripts/LAB.js
signalwerk/colorLab
import React, { Component } from 'react'; import Slider from 'rc-slider'; import InputNumber from 'rc-input-number'; import 'rc-slider/assets/index.css'; import PropTypes from 'prop-types'; import colorlab from '../../dist/colorlab'; import style from './LAB.css'; // http://colorizer.org/ export default class Lab e...
docs/src/examples/elements/Placeholder/Content/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const PlaceholderContentExamples = () => ( <ExampleSection title='Content'> <Compone...
app/components/Profile/UserCard.js
dvm4078/dvm-blog
import React from 'react'; import PropTypes from 'prop-types'; export default class UserCard extends React.Component { //eslint-disable-line static propTypes = { profile: PropTypes.object, fetched: PropTypes.bool, }; componentDidMount() { setTimeout(() => { console.log(this.props.profile); ...
server/sonar-web/src/main/js/components/ui/CoverageRating.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
app/containers/Root.js
echohubio/hubber
// @flow import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { hot } from 'react-hot-loader'; import { ConnectedRouter } from 'react-router-redux'; import Routes from '../routes'; type Props = { store: {}, history: {} }; class Root extends Component<Props> { // eslint-disable-...
test/dummy/client/components/posts/record-title.js
factore/tenon
import React from 'react'; module.exports = ({ record }) => { let publishText; if (record.formatted_publish_at) { publishText = <span>Published on {record.formatted_publish_at}</span>; } else { publishText = <span>Not published.</span>; } return ( <div> <p className="record__title"> ...
src/components/app/app.js
ebabel-eu/ebabel-home
// React import React, { Component } from 'react'; // Internal dependencies. import Header from '../nav/header/header'; import Nav from '../nav/nav'; import Footer from '../footer/footer'; import './app.scss'; export default class App extends Component { render() { return ( <div className='container'> ...
server/server.js
mahfuzsust/mernt
import Express from 'express'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.config.dev'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from '...
src/svg-icons/action/find-in-page.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFindInPage = (props) => ( <SvgIcon {...props}> <path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5...
src/js/components/Pages/Form.js
appdev-academy/appdev.academy-react
import React from 'react' import { Link } from 'react-router' import Textarea from 'react-textarea-autosize' import ClassNames from 'classnames' import videoPlugin from '../../plugins/video' import ErrorsList from '../ErrorsList' import BlueButton from '../Buttons/Blue' import GreenButton from '../Buttons/Green' // S...
src/components/Tile/components/TitleRow.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import { Grid } from '../../Grid'; const TitleRow = ({ children, action }) => { if (!action) return children; return ( <Grid className="slds-has-flexi-truncate" align="spread"> {children} <div className="slds-shrink-none"> {ac...
docs/app/Examples/collections/Form/States/FormExampleFieldError.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Checkbox, Form, Input, Select } from 'semantic-ui-react' const options = [ { text: 'Male', value: 'male' }, { text: 'Female', value: 'female' }, ] const FormExampleFieldError = () => ( <Form> <Form.Group widths='equal'> <Form.Input label='First name' placeholder='Fir...
src/components/home/About.js
psongpin/Personal-Website-v2
import React from 'react' import { Container, Row, Col } from 'reactstrap' import Link from 'gatsby-link' import divider from '../../styles/Assets/Divider.svg' import frontend from '../../styles/Assets/frontend.svg' import wordpressDev from '../../styles/Assets/wordpressdev.svg' import communityBuilder from '../../sty...
scripts/utils/connectToStores.js
gaearon/flux-react-router-example
import React, { Component } from 'react'; import shallowEqual from 'react-pure-render/shallowEqual'; /** * Exports a higher-order component that connects the component to stores. * This higher-order component is most easily used as an ES7 decorator. * Decorators are just a syntax sugar over wrapping class in a func...
src/stories/Welcome.js
amsb/storybook_styled-components_example
import React from 'react'; const styles = { main: { margin: 15, maxWidth: 600, lineHeight: 1.4, fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif', }, logo: { width: 200, }, link: { color: '#1474f3', textDecoration: 'none', borderBottom: '1px ...
src/components/LengthScene.js
spcoder/movietrivia
import React, { Component } from 'react'; import Scene from './Scene.js'; import Button from './Button.js'; import { connect } from 'react-redux'; import { actionCreators } from './GameState'; class LengthScene extends Component { setNumberOfQuestions(number) { return () => { this.props.dispatch(actionCrea...
src/website/app/demos/Dialog/DialogBody/examples/basic.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import { mineralTheme } from '../../../../../../library/themes'; import { DialogBody, DialogHeader, DialogTitle } from '../../../../../../library/Dialog'; import Text from '../../../../../../library/Text'; import DemoLayout from '../../common/DemoLayout'; import Dialog from ...
src/docs/Example.js
eliaslopezgt/ps-react-eli
import React from 'react'; import PropTypes from 'prop-types'; import CodeExample from './CodeExample'; class Example extends React.Component { constructor(props) { super(props); this.state = { showCode: false }; } toggleCode = event => { event.preventDefault(); this.setState(prevState => { ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
raptor1989/MobileHeader
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
Example/List.js
testshallpass/react-native-dropdownalert
import React from 'react'; import {StyleSheet, Text, Pressable, FlatList} from 'react-native'; const Button = ({ item = {title: '', type: '', color: '#202020'}, onSelect = () => {}, }) => { const text = item.title ? item.title : item.type; return ( <Pressable style={[styles.button, {borderColor: item...
src/demos/kepler.gl/1-basic-keplergl/src/main.js
uber-common/vis-academy
// Copyright (c) 2018 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, merge...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
zhijiansha123/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> ); } } export default Assignments;
app/index.js
AlienStream/experimental-frontend
import React from 'react'; import ReactDOM from 'react-dom' import { compose, createStore, combineReducers, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import { Router, Route, browserHistory, IndexRoute} from 'react-router' import { syncHistoryWithStore, routerReducer, routerMiddleware, push} ...
__tests__/components/Split-test.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Split from '../../src/js/components/Split'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Split', () => { i...
src/index.js
namelos/react-demo
import React, { Component } from 'react'; import { render } from 'react-dom'; import { Paper, Slider, Tabs, Tab, FlatButton } from 'material-ui'; import routes from './routes'; import reset from './utils/normalize'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); import App from './c...
docs/src/examples/elements/Step/Types/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' import ShorthandExample from 'docs/src/components/ComponentDoc/ShorthandExample' const StepTypesExamples = () => ( <ExampleSection t...
src/svg-icons/action/alarm-off.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
src/components/Logo/Logo.js
DelvarWorld/some-game
import React, { Component } from 'react'; import THREE from 'three'; import { Text } from '../'; const topScale = new THREE.Vector3( 1, 1, 0.5 ).multiplyScalar( 1.6 ); const middlePosition = new THREE.Vector3( 1.6, 0, 0 ); const middleScale = new THREE.Vector3( 1, 1, 0.5 ).multiplyScalar( 0.6 ); const bottomPosition...
clients/libs/webpage/src/lib/ux/pluggable-widget/overlay.js
nossas/bonde-client
import React from 'react' /*import PropTypes from 'prop-types'*/ const overlayStyle = { position: 'absolute', top: '0', right: '0', bottom: '0', left: '0', fontWeight: 'bold', borderWidth: '6px', opacity: '.82', backgroundColor: '#222222', fontSize: '1.8rem' } class Overlay extends React.Component...