path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/elements/Input/Variations/InputExampleLeftCornerLabeled.js
shengnian/shengnian-ui-react
import React from 'react' import { Input } from 'shengnian-ui-react' const InputExampleLeftCornerLabeled = () => ( <Input label={{ icon: 'asterisk' }} labelPosition='left corner' placeholder='Search...' /> ) export default InputExampleLeftCornerLabeled
src/docs/components/video/VideoExamplesDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Video from 'grommet/components/Video'; import InteractiveExample from '../../../components/InteractiveExample'; Video.displayName = 'Video'; const PROPS_SCHEMA = { allowFullScreen: { value: true },...
src/views/Index.js
SteemBlog/app
import React from 'react'; import {Link} from "react-router"; import steem from 'steem'; import moment from 'moment'; import http from 'http'; import _ from 'lodash'; import until from 'async/until'; import Dispatcher from "../Dispatcher"; import Store from "../Store"; import Loader from "../components/Loader"; impor...
packages/core/admin/admin/src/content-manager/pages/EditSettingsView/components/FieldButtonContent.js
wistityhq/strapi
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; import { Box } from '@strapi/design-system/Box'; import { Flex } from '@strapi/design-system/Flex'; import { IconButton } from '@strapi/design-system/IconButton'; import { Typogra...
src/views/LinkedInLoginView.js
sujaypatel16/fear-the-repo
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { populateDataFromLinkedIn } from 'actions/resumeActions'; import $ from 'jquery'; const mapStateToProps = (state) => ({ resumeState: state.resumeReducer }); const mapDispatchToProps = (dispatch) => ...
packages/strapi-plugin-content-manager/admin/src/components/TableFooter/index.js
evian42/starpies
/** * * TableFooter * */ import React from 'react'; import LimitSelect from '../LimitSelect'; import Pagination from '../Pagination'; import styles from './styles.scss'; class TableFooter extends React.Component { render() { return ( <div className={`row ${styles.tableFooter}`}> <div className="...
src/components/mediabox/mediabox_info.js
woshisbb43/coinMessageWechat
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; import MediaBoxInfoMeta from './mediabox_info_meta'; /** * Info Items for MediaBox * */ export default class MediaBoxInfo extends React.Component { static propTypes = { /** * automati...
src/Tooltip/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Typography from '../Typography'; import Wrapper from '../Wrapper'; import styles from './styles.css'; import RcTooltip from 'rc-tooltip'; import './tooltip.css'; function Tooltip(props) { const tooltipContent =...
src/containers/Profile/Avatar.js
JustPeople/app
import React from 'react' import { connect } from 'react-redux' import { Avatar } from 'antd' export default connect((state, ownProps) => { var profile = state.profiles.find(profile => profile.id === ownProps.id)||{} return { src: profile.avatar } })(props => { var h = props.size + 'rem' va...
packages/react-native-renderer/src/ReactNativeComponent.js
aickin/react
/** * Copyright (c) 2013-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. * * @flow * @format */ import type { MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback, ...
app/components/Toggle/index.js
andyfrith/weather.goodapplemedia.com
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
src/components/video_list.js
framirez224/youtube-search
import React from 'react'; import VideoListItem from './video_list_item'; const VideoList = (props) => { const videoItems = props.videos.map((vid) => { return ( <VideoListItem onVideoSelect={props.onVideoSelect} key={vid.etag} video={vid} /> ); }); return ( <ul classNam...
react-project/src/containers/ProductsTable/index.js
troy-lamerton/cart-kreatize
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import _ from 'lodash'; import { removeProduct } from '../../actions'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'; import { Percent, Eur...
src/Dropdown/__tests__/Dropdown_test.js
kmees/react-fabric
import React from 'react' import { render, mount } from 'enzyme' import test from 'tape' import Dropdown from '..' import events from '../../util/events.js' const defaultOptions = [ { label: 'Foo', value: 'foo' }, { label: 'Bar', value: 'bar' } ] test('Dropdown', t => { t.ok(Dropdown, 'export') t.equal(Dropd...
public/js/components/admin/feedback/privacy.react.js
TRomesh/Coupley
/** * Created by Isuru 1 on 07/02/2016. */ import React from 'react'; import Table from 'material-ui/lib/table/table'; import TableHeaderColumn from 'material-ui/lib/table/table-header-column'; import TableRow from 'material-ui/lib/table/table-row'; import TableHeader from 'material-ui/lib/table/table-header'; import...
js/components/fab/index.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Button, Left, Right, Body, Icon, List, ListItem, Content, Text } from 'native-base'; import { Actions } from 'react-native-router-flux'; ...
src/index.js
arnoldpaye/react-kib
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Header from './Header'; import Search from './Search'; //import registerServiceWorker from './registerServiceWorker'; let kibana = ( <div> <Header /> <Search /> </div> ); ReactDOM.render(kibana, document....
packages/web/src/components/screens/categories/CategoryForm.js
hwaterke/inab
import {CategoryGroupResource, getSelectedMonthMoment} from '@inab/shared' import PropTypes from 'prop-types' import React from 'react' import {Field, Form} from 'react-final-form' import {connect} from 'react-redux' import {select} from 'redux-crud-provider' import {FieldCondition} from '../../forms/FieldCondition' im...
src/components/InlineSubmitInput/InlineSubmitInput.example.js
6congyao/CGB-Dashboard
/* * Copyright (c) 2016-present, Parse, LLC * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ import React from 'react'; import Field from 'components/Field/Field.react'; import Fieldset from 'components/Fieldset/Fie...
examples/huge-apps/components/App.js
yongxu/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { render() { var courses = COURSES; return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={co...
webapp/src/containers/search/resultsList.js
nathandunn/agr
import React, { Component } from 'react'; import { Link } from 'react-router'; import style from './style.css'; import CategoryLabel from './categoryLabel'; import DetailList from './detailList'; import { NON_HIGHLIGHTED_FIELDS } from '../../constants'; const DEFAULT_FIELDS = ['symbol', 'name', 'synonyms', 'sourceHre...
src/parser/paladin/retribution/CHANGELOG.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { Juko8 } from 'CONTRIBUTORS'; export default [ { date: new Date('2018-10-04'), changes: <React.Fragment> Added <SpellLink id={SPELLS.DIVINE_RIGHT.id} /> </React.Fragment>, contributors: [Juko...
react/features/settings/components/web/video/VideoSettingsContent.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../../../base/i18n'; import Video from '../../../../base/media/components/Video'; import { equals } from '../../../../base/redux'; import { createLocalVideoTracks } from '../../../functions'; const videoClassName = 'video-preview-video...
app/lib/hacks/ScrollView.android.js
alexindigo/ndash
import React, { Component } from 'react'; import { ScrollView, View } from 'react-native'; export default class ScrollViewAndroid extends ScrollView { state = { enableScrollViewScroll: true } disableScroll(disable) { this.setState({enableScrollViewScroll: !disable}); } render() { return ( ...
admin/client/App/components/Navigation/Secondary/index.js
linhanyang/keystone
/** * The secondary navigation links to inidvidual lists of a section */ import React from 'react'; import { connect } from 'react-redux'; import { Container } from '../../../elemental'; import { setActiveList, } from '../../../screens/List/actions/active'; import SecondaryNavItem from './NavItem'; var SecondaryN...
app/addons/fauxton/navigation/components/Burger.js
popojargo/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
docs/src/PageFooter.js
jareth/react-materialize
import React from 'react'; import Footer from '../../src/Footer'; class PageFooter extends React.Component { render() { let links = ( <ul> <li> <a className="grey-text text-lighten-3" href='https://github.com/react-materialize/react-materialize'>GitHub</a> </li> </ul> );...
src/pages/carmila.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Carmila' /> )
src/utils/intl-test.js
zerkedev/zerke-app
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ //SOURCE: http://stackoverflow.com/questions/37021217/i...
pages/gallery/index.js
wasap/beauty_salon
import Layout from '../../components/Layout'; import React from 'react'; import { getPhotos } from '../../core/info'; import { connect } from 'react-redux'; import s from './styles.scss'; import Modal from 'react-modal'; class galeryPage extends React.Component { static propTypes = { dispatch: React.PropTypes.fu...
src/svg-icons/navigation/arrow-drop-down.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDown = (props) => ( <SvgIcon {...props}> <path d="M7 10l5 5 5-5z"/> </SvgIcon> ); NavigationArrowDropDown = pure(NavigationArrowDropDown); NavigationArrowDropDown.displayName = 'NavigationA...
imports/ui/components/resident-details/accounts/private-account/edit-pa-bill/regular.js
gagpmr/app-met
import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory } from 'react-router'; import * as Styles from '/imports/modules/styles.js'; import { UpdateResident } from '/imports/api/residents/methods.js'; export class RegularTableBody extends React.Component { constructor(props) { super(...
node_modules/react-native/Libraries/Modal/Modal.js
kssujithcj/TestMobileCenter
/** * Copyright (c) 2015-present, 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. * * @provides...
front-end (deprecated)/src/components/MainPage/BodySection1.js
iankhor/medrefer
import React from 'react' import { Parallax, Background } from 'react-parallax'; const BodySection1 = (props) => { return ( <div className="generic-center" style = {{backgroundColor: '#FFF'}}> <h2>About Conduit Health</h2> <p>Conduit Health is a Telepsychiatry and Teleh...
client/src/components/auth/signin-container.js
josephstein/drone-flights
import React from 'react' import * as actions from '../../actions' import { reduxForm, Field } from 'redux-form' import { connect } from 'react-redux' import Form from '../auth/form' import FormField from '../auth/form-field' class SigninContainer extends React.Component { handleFormSubmit({ email, password}) { ...
src/svg-icons/device/wifi-lock.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWifiLock = (props) => ( <SvgIcon {...props}> <path d="M20.5 9.5c.28 0 .55.04.81.08L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l12 16 3.5-4.67V14.5c0-2.76 2.24-5 5-5zM23 16v-1.5c0-1.38-1.12-2.5-2.5-2.5S18 13....
stories/components/form/formCheckBox/index.js
OperationCode/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormCheckBox from 'shared/components/form/formCheckBox/formCheckBox'; storiesOf('shared/components/form/formCheckBox', module) .add('Default', () => ( <FormCheckBox name="che...
modules/TransitionHook.js
1000hz/react-router
import React from 'react'; import warning from 'warning'; var { object } = React.PropTypes; var TransitionHook = { contextTypes: { router: object.isRequired }, componentDidMount() { warning( typeof this.routerWillLeave === 'function', 'Components that mixin TransitionHook should have a rou...
src/components/presentation/Zone.js
aerendon/yik-yak
import React, { Component } from 'react'; import styles from './styles'; class Zone extends Component { render() { const style = styles.zone; const zipCode = this.props.currentZone.zipCodes[0]; return ( <div style={style.container}> <h2 styles={style.header}><a style={style.title} href="#"...
modules/Router.js
ThibWeb/react-router
import React from 'react' import warning from 'warning' import createHashHistory from 'history/lib/createHashHistory' import { createRoutes } from './RouteUtils' import RoutingContext from './RoutingContext' import useRoutes from './useRoutes' import { routes } from './PropTypes' const { func, object } = React.PropTyp...
app/containers/RepoListItem/index.js
kaizen7-nz/gold-star-chart
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } fro...
test/intl-test-helper.js
mattermost/mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {mount, shallow} from 'enzyme'; import React from 'react'; import {IntlProvider, intlShape} from 'react-intl'; import {getTranslations} from '@i18n'; const intlProvider = new IntlProvider({locale: '...
src/app/ui/ModalLoader/ModalLoader.js
arikanmstf/mylibrary
/** * Web Component Template By => create-module script * @version 1.0.0 * */ // @flow import React from 'react'; import styled from 'styled-components'; import { connect } from 'react-redux'; import ModalDiv from '@material-ui/core/Modal'; import Loading from 'assets/images/loading.gif'; import { Image } from 'ui...
src/js/components/Tip.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Box from './Box'; import CSSClassnames from '../utils/CSSClassnames'; import Drop from '../utils/Drop'; const CLASS_ROOT = CSSC...
src/index.js
iuriifaevskii/react-youtube-store
import _ from 'lodash'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import SearchBar from './components/search_bar'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; const API_KEY = 'AIzaSyCA_...
src/server/routes/views.js
pavelkukov/pgkoapoc
import KoaRouter from 'koa-router' import React from 'react' import serialize from 'serialize-javascript' import { StaticRouter } from 'react-router' import { renderToString } from 'react-redux-epic' import { renderToStaticMarkup } from 'react-dom/server' import { Provider } from 'react-redux' import { ServerSty...
index.js
voidxnull/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) This program 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, either version 3 of the License, o...
client/src/blocks/Label.js
mbb70/hera2
import React from 'react'; import Label from 'reactstrap/lib/Label'; import { cx } from 'emotion'; import styles from '../styles'; const className = styles.css({ borderRadius: 0, }); export default props => ( <Label {...props} className={cx(className, props.className)}> {props.children} </Label> );
webpack/global_index.js
theforeman/foreman_bootdisk
import React from 'react'; import { addGlobalFill } from 'foremanReact/components/common/Fill/GlobalFill'; import HostBootdiskButtons from './src/extensions/host/HostBootdiskButtons'; addGlobalFill( 'host-details-kebab', 'host-bootdisk-buttons', <HostBootdiskButtons key="host-bootdisk-buttons" />, 300 );
renderer/component/Detail/CopyableText.js
toruta39/Markr
import React from 'react'; var CopyableText = (props) => <input className="form-control" disabled={ props.value == null } onMouseOver={ ({ target }) => target.select() } onMouseOut={ ({ target }) => target.blur() } onChange={ (e) => e.preventDefault() } value={ props.value } />; export default CopyableTex...
app/javascript/mastodon/features/compose/components/search.js
pointlessone/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { searchEnabled } from '../...
draft-js-mention-plugin/src/MentionSuggestionsPortal/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; export default class MentionSuggestionsPortal extends Component { constructor(props) { super(props); // Note: this is a workaround for an obscure issue: https://github.com/draft-js-plugins/draft-js-plugins/pull/667/files // Ideally we can remove this in the futu...
website/builder/pages/docs/toc.js
bdjnk/cerebral
import React from 'react' function TOC (props) { function renderToc (toc) { if (!toc.length) { return null } return ( <ul> {toc.map(function (item, index) { return ( <li key={index}> <a href={`#${item.id}`}>{item.title}</a> {renderToc...
components/ParticipantForm/index.js
shinosakarb/tebukuro-client
// @flow import React from 'react' import { toggleComponentsBySession } from '../SessionProvider' import AfterDeadline from '../AfterDeadline' import ParticipantButton from '../buttons/ParticipantButton' import CancelRegistrationButton from '../buttons/CancelRegistrationButton' type Props = { eventId: ?number, i...
src/App.js
ColoO/reactenv
import React, { Component } from 'react'; import Box from './Box' import CommentBox from './CommentBox' export default class App extends Component { render() { let data = [ {id: 1, author: "Pete Hunt", text: "This is one comment"}, {id: 2, author: "Jordan Walke", text: "This is *another* comment"} ]; re...
src/components/5-ScopedAnimations/ScopedAnimations.js
AgtLucas/css-modules-playground
import styles from './ScopedAnimations.css'; import React from 'react'; export default class ScopedAnimations extends React.Component { render() { return( <div className={styles.root}> <div className={styles.ball} /> </div> ); } };
src/@ui/Icon/icons/Locate.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { Svg } from '../../Svg'; import makeIcon from './makeIcon'; const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => ( <Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}> <Svg.Path d="M12 8.36C10 8.36 8.36 10 ...
src/svg-icons/maps/store-mall-directory.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsStoreMallDirectory = (props) => ( <SvgIcon {...props}> <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/> </SvgIcon> ); MapsStoreMallDirectory = pure(MapsStoreMallDirec...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
KamilSzot/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
src/svg-icons/action/view-carousel.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewCarousel = (props) => ( <SvgIcon {...props}> <path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/> </SvgIcon> ); ActionViewCarousel = pure(ActionViewCarousel); ActionViewCarousel.displayName =...
src/components/Container/Container.js
nielsrowinbik/react-boilerplate
import styled, { css } from 'styled-components'; import React from 'react'; const flex = css` display: flex; & > section { padding: 20px 20px 100px 20px; &:not(:first-child) { border-left: 1px solid #ccc; } &:first-child { padding-left: 0px; } &:last-child { padding-right: 0px; } } `; co...
stories/_general/_welcome.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { Flex } from 'rebass/styled-components' import { Button, Dropdown, Message, Notification } from 'components/UI' import { Form, Input, LightningInvoiceInput, Range, TextArea, Toggle } from 'components/Form' import { Column, Group, Element } f...
server/sonar-web/src/main/js/apps/quality-gates/components/Projects.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
fields/types/date/DateFilter.js
joerter/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value...
src/List/index.js
szchenghuang/react-mdui
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import ClassNames from 'classnames'; import Item from './Item'; import ItemAvatar from './ItemAvatar'; import ItemContent from './ItemContent'; import ItemIcon from './ItemIcon'; import ItemText from './ItemText'; import ItemTitle from './It...
src/components/DynamicPages/FloorList/FloorsTable/index.js
ndlib/usurper
import React from 'react' import Table from 'components/Table' import PropTypes from 'prop-types' const FloorsTable = (props) => { const columns = [ { path: 'floorsText', label: 'Floors', mobileLabel: 'Floors' }, { path: 'fields.callNumberRange', label: 'Call Numbers', mobileLabel: 'Call Numbers' }, { pa...
src/components/FormWizard/FormWizard.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { Module, ModuleBody, ModuleHeader, ModuleFooter } from '../Module'; import settings from '../../globals/js/settings'; const { prefix } = settings; /** The FormWizard is a wrapper for creating Wizard forms. */ ...
react-router/components/Timestamp.js
devypt/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import updateTime from '../actions/updateTime'; import TimeStore from '../stores/TimeStore'; import { connectToStores } from 'fluxible-addons-react'; @connect...
test/integration/production/components/hello-context.js
azukaru/next.js
import React from 'react' import PropTypes from 'prop-types' export default class extends React.Component { static contextTypes = { data: PropTypes.object, } render() { const { data } = this.context return <div>{data.title}</div> } }
src/components/ColorButton.js
kid0809/react-draft-editor
import React from 'react' const colors = [ {color: 'rgba(255, 0, 0, 1.0)', style: 'red'}, {color: 'rgba(255, 127, 0, 1.0)', style: 'orange'}, {color: 'rgba(180, 180, 0, 1.0)', style: 'yellow'}, {color: 'rgba(0, 180, 0, 1.0)', style: 'green'}, {color: 'rgba(0, 0, 255, 1.0)', style: 'blue'}, {color: 'rgba(7...
examples/todomvc/src/index.js
Bloomca/redux-tiles
import React from 'react'; import { render } from 'react-dom'; import App from './App'; import { Provider } from 'react-redux' import store from './store'; render(( <Provider store={store}> <App /> </Provider> ), document.getElementById('root'));
src/pages/sorting/Pancake/Pancake.js
hyy1115/react-redux-webpack3
import React from 'react' class Pancake extends React.Component { render() { return ( <div>Pancake</div> ) } } export default Pancake
src/modules/app/index.js
YogeshDevgun/React-Commenting-System-Demo
import React from 'react'; import {render} from 'react-dom'; import PostPage from './../PostPage/PostPage'; import Signup from './../SignUp/SignUp'; import { BrowserRouter, Route ,Switch } from 'react-router-dom' const routes = ( <Switch> <Route exact path ="/" component = {Signup} /> <Route path ="/pos...
frontend/source/components/FicheAchat.component.js
MadStain/nii-projet-partage
import React from 'react'; import { Button, Col, Panel, ButtonToolbar } from 'react-bootstrap' const FicheAchat = (props) => { return ( <Panel> <h4>{props.text}</h4> <h5>Nom Produit : {props.produit}</h5> <h5>Nom Demandeur : {props.user}</h5> <h5>Montant : {props.prix}</h5> ...
ci/e2e/common.js
kmagiera/react-native-gesture-handler
import React from 'react'; import { Text, StyleSheet } from 'react-native'; const styles = StyleSheet.create({ lipsum: { padding: 10, }, }); export class LoremIpsum extends React.Component { static defaultProps = { words: 1000, style: styles.lipsum, }; loremIpsum() { return LOREM_IPSUM.split...
redux-weather-forecast/src/containers/weather_list.js
andreassiegel/react-redux
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMap from '../components/google_map'; class WeatherList extends Component { renderWeather(cityData) { const name = cityData.city.name; const temps = _.map(cityData.list.map...
client/scripts/components/user/entities/toggle/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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, either version 3 of the Lic...
src/containers/Age/AgesLine.js
CultuurConnect/bieblo-client
import React from 'react' import AgeButton from './AgeButton' const AgesLine = ({ages, onAgeButtonClick}) => { const cols = 12 / ages.length return ( <div className="row"> { ages.map( age => <AgeButton key={`age-${age.id}`} age={age} cols={cols} ...
app.js
wp-wilsonperez/votos
import React from 'react'; import CandidateApp from './app/components/candidate/CandidateApp'; import SponsorApp from './app/components/sponsor/SponsorApp'; React.render(<SponsorApp />, document.getElementById('sponsors-gallery')); React.render(<CandidateApp />, document.getElementById('candidates-gallery'));
src/components/containers/download-list-container.js
HuangXingBin/goldenEast
import React from 'react'; import { Pagination, AutoComplete, DatePicker, message, Tag, Radio, Spin } from 'antd'; import './user-list-container.css'; import DownloadModule from '../views/download-module-view'; import SearchUserInput from '../views/SearchUserInput.js'; import store from '../../store'; import { connec...
src/js/components/icons/base/Cluster.js
linde12/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...
react/features/toolbox/defaultToolbarButtons.js
parisjulien/arkadin-jitsimeet
/* @flow */ import React from 'react'; import UIEvents from '../../../service/UI/UIEvents'; import { openInviteDialog } from '../invite'; import { openDialOutDialog } from '../dial-out'; declare var APP: Object; declare var JitsiMeetJS: Object; /** * All toolbar buttons' descriptors. */ export default { /** ...
docs/app/Examples/elements/Button/States/ButtonExampleLoading.js
koenvg/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleLoading = () => ( <div> <Button loading>Loading</Button> <Button basic loading>Loading</Button> <Button loading primary>Loading</Button> <Button loading secondary>Loading</Button> </div> ) export default Button...
client/src/app/views/logout.js
jhuntoo/starhackit
import React from 'react'; import DocTitle from 'components/docTitle'; import authActions from 'actions/auth'; export default React.createClass( { componentDidMount () { authActions.logout(); }, render() { return ( <div id="logout"> <DocTitle ...
src/components/LinkInput.js
ZachGawlik/print-to-resist
import PropTypes from 'prop-types'; import React from 'react'; import '../styles/LinkInput.css'; class LinkInput extends React.Component { handleUrlChange = event => { this.props.onUrlChange(this.props.index, event.target.value); }; handleDeleteClick = () => { this.props.onDeleteLink(this.props.index); ...
client/utils/index.js
kyledemeule/react-redux-starter-kit
import React from 'react'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createConstants (...constants) { return constants.reduce((acc, constant) => { acc[constant] = constant; return acc; }, {}); } export function createReducer (initialState, reducerMap) { ...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/alarm-off.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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 12 6zm10-.28l-4.6-3.86-1.29 1.53...
bank-app-client/src/components/Show.js
esteban24/bank-app
import React, { Component } from 'react'; class Show extends Component { constructor(props) { super(props); this.state = { charge: {}, err: false }; } componentDidMount() { const { match: { params } } = this.props; fetch('/api/charges/' + params.chargeId ) .then(res...
client/src/svgs/DesktopAppLogo.js
allansachsambia/jytr
import React from 'react'; const DesktopAppLogo = () => <svg className="desktop-app-logo" viewBox="0 0 210 50"> <g transform="matrix(0.166527,0,0,0.166527,-32.4361,-54.4699)"> <path d="M1009.42,456.773C1018.06,453.884 1039.05,443.963 1054.65,440.091C1076.68,434.62 1118.9,429.411 1141.65,423.945C1158.57,419...
es/components/toolbar/toolbar-load-button.js
vovance/3d-demo
import React from 'react'; import PropTypes from 'prop-types'; import IconLoad from 'react-icons/lib/fa/folder-open-o'; import ToolbarButton from './toolbar-button'; import { browserUpload } from '../../utils/browser'; export default function ToolbarLoadButton(_ref, _ref2) { var state = _ref.state; var translator ...
src/collections/Form/FormSelect.js
clemensw/stardust
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Select from '../../addons/Select' import FormField from './FormField' /** * Sugar for <Form.Field control={Select} /> * @see Form * @see Select */ function FormSelect(props) { const { ...
pages/about.js
elliotec/LnL
import React from 'react';
docs/src/app/components/pages/customization/StylesOverridingInlineExample.js
matthewoates/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; const StylesOverridingInlineExample = () => ( <Checkbox name="StylesOverridingInlineExample" label="Checked the mail" style={{ width: '50%', margin: '0 auto', border: '2px solid #FF9800', backgroundColor: '#ff...
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.js
theforeman/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import { Row } from 'patternfly-react'; import { noop } from 'foremanReact/common/helpers'; import { translate as __ } from 'foremanReact/common/I18n'; import { timePropType } from '../../TasksDashboardPropTypes'; import { TASKS_DASHBOARD_AVAILABLE_TIMES }...
src/Renderer.js
HHogg/remarkable-react
import React from 'react'; import assign from './assign'; import defaultChildren from './defaultChildren'; import defaultComponents from './defaultComponents'; import defaultRemarkableProps from './defaultRemarkableProps'; import defaultTokens from './defaultTokens'; import TokenTree from './TokenTree'; export default...
client/src/components/Header/components/NavLogo.js
jonathanihm/freeCodeCamp
import React from 'react'; import FreeCodeCampLogo from '../../../assets/icons/freeCodeCampLogo'; function NavLogo() { return <FreeCodeCampLogo />; } NavLogo.displayName = 'NavLogo'; export default NavLogo;
src/Badge.js
BespokeInsights/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
lib/components/Uploader.js
jekrb/filepizza
import Arrow from '@app/components/Arrow'; import React from 'react'; import UploadActions from '@app/actions/UploadActions'; export default class UploadPage extends React.Component { uploadFile(file) { UploadActions.uploadFile(file); } render() { switch (this.props.status) { case 'ready': ...
src/components/LearningToolbar.js
brancusi/lingo-client-react
import React from 'react'; import Radium from 'radium'; import IconButton from 'components/ui/buttons/IconButton'; @Radium export default class LearningToolbar extends React.Component { static propTypes = { createLangit: React.PropTypes.func.isRequired }; render () { const { createLangit } = this.props;...
packages/ringcentral-widgets/components/CallMonitorBar/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import formatMessage from 'format-message'; import DurationCounter from '../DurationCounter'; import { Button } from '../Button'; import CarrouselBar from '../CarrouselBar'; import i18n from './i18n'; import styles from './styles.scss'; exp...