path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/js/remote/remote-sorting.js
powerhome/react-bootstrap-table
import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; export default class RemoteSorting extends React.Component { constructor(props) { super(props); } render() { return ( <BootstrapTable data={ this.props.data } remote={ true }...
src/components/FileSelector/FileSelector.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import Dropzone from 'react-dropzone'; import { FormElement, FormElementControl, FormElementError, } from '../Form'; import { Button } from '../Button'; const preventDefault = e => e.preventDefault(); const FileSelector ...
src/components/commons/background.js
jesus-chacon/cookBook
import React, { Component } from 'react'; import { connect } from 'react-redux'; class Background extends Component { render() { if (!!this.props.background && this.props.background.length > 0) { return ( <img id="bg" src={this.props.background} alt="background image" /> ...
demo/tabs/tabs.js
koorchik/react-mdl
import React from 'react'; import Tabs, { Tab } from '../../src/tabs/Tabs'; class Demo extends React.Component { constructor(props) { super(props); this.state = { activeTab: 0 }; this._handleChange = this._handleChange.bind(this); } _handleChange(tabId) { ...
js/components/splashscreen/index.js
phamngoclinh/PetOnline_vs2
import React, { Component } from 'react'; import { Image } from 'react-native'; const launchscreen = require('../../../images/shadow.png'); export default class SplashPage extends Component { static propTypes = { navigator: React.PropTypes.shape({}), } componentWillMount() { const navigator = this.pr...
assets/js/app.js
Subash/sundar-nepal.subash.me
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import 'whatwg-fetch'; import * as util from './util.js'; import 'babel-polyfill'; import Container from './container'; class App { constructor() { this.initializeSDK(); this.userData = {}; this.render(); } async updateUserD...
node_modules/react-bootstrap/es/NavDropdown.js
chenjic215/search-doctor
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/app/js/pages/About.js
skratchdot/colorify
import React, { Component } from 'react'; import { Row, Col, Well } from 'react-bootstrap'; import Page from '../Page'; import { main, links } from '../Readme'; class About extends Component { render() { return ( <Page pageName="About"> <Row> <Col md={8}> <Well dangerouslySetI...
pages/index.js
mvasilkov/mvasilkov.ovh
import React from 'react' import Link from 'next/link' import Article from '../app/article' export const pagePath = 'index' export const pageTitle = 'Start page' export default class extends React.Component { constructor(props) { super(props) this.state = { email: '' } } componentDidMount...
app/javascript/mastodon/features/favourites/index.js
mstdn-jp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
server/sonar-web/src/main/js/apps/settings/components/inputs/MultiValueInput.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...
src/components/common/svg-icons/navigation/subdirectory-arrow-right.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationSubdirectoryArrowRight = (props) => ( <SvgIcon {...props}> <path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/> </SvgIcon> ); NavigationSubdirectoryArrowRight = pure(Navigat...
js/components/button/rounded.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, H3 } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; import { ope...
frontend/src/Settings/MediaManagement/MediaManagement.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FieldSet from 'Components/FieldSet'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLa...
src/svg-icons/image/tag-faces.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTagFaces = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c....
src/containers/Home.js
alcat2008/electron-react-starter
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from '../styles/views/Home.less'; export default class Home extends Component { render() { return ( <div> <div className={styles.container}> <h2>Home</h2> <Link to="/counter">t...
src/routes/ReviewAndSubmit/components/ReviewAndSubmit.js
dannyrdalton/example_signup_flow
import React from 'react' import { Link } from 'react-router' import { FORM_FIELDS as PERSONAL_INFORMATION_FORM_FIELDS } from '../../PersonalInformation/config/personal_information_config' import { FORM_FIELDS as DENTAL_HISTORY_FORM_FIELDS } from '../../DentalHistory/config/dental_history_config' import { FORM_FIELDS a...
frontend/src/lib/react-virtualized-sticky-list/index.js
jf248/scrape-the-plate
import React from 'react'; import * as Virtualized from 'react-virtualized'; class StickyList extends React.PureComponent { static defaultProps = { itemToGroup: item => item && item['group'], wrapperStyle: {}, }; getGroupedItems = (items, itemToGroup) => { let newIndex = 0; const itemsAndGroups ...
frontend/src/Movie/Index/Posters/MovieIndexPoster.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CheckInput from 'Components/Form/CheckInput'; import Icon from 'Components/Icon'; import Label from 'Components/Label'; import IconButton from 'Components/Link/IconButton'; import Link from 'Components/Link/Link'; import SpinnerIconBut...
books-redux/src/containers/book-list.js
rsancle/udemy-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import {selectBook} from "../actions/index"; import {bindActionCreators} from 'redux'; /* * React Component that returns a books html list */ class BookList extends Component{ renderlist() { // For each book return this.props...
docs/app/Examples/elements/Segment/Variations/SegmentExampleAttachedComplex.js
clemensw/stardust
import React from 'react' import { Header, Icon, Message, Segment } from 'semantic-ui-react' const SegmentExampleAttachedComplex = () => ( <div> <Header as='h5' attached='top'> Dogs </Header> <Segment attached> Dogs are one type of animal. </Segment> <Header as='h5' attached> Ca...
thingmenn-frontend/src/components/not-found/index.js
baering/thingmenn
import React from 'react' import './styles.css' export default class NotFound extends React.Component { render() { return ( <div className="not-found"> <h1>404</h1> <div className="travolta"></div> </div> ) } }
demos/function-tree-demos/src/mobx/components/App/index.js
FWeinb/cerebral
import React from 'react' import run from '../../run' import './styles.css' import AddAssignment from '../AddAssignment' import Assignments from '../Assignments' import appMounted from '../../events/appMounted' class App extends React.Component { componentDidMount () { run('appMounted', appMounted) } rende...
client/routes/login/Login.js
ansgmlen/ai-mirror
import React from 'react'; import ReactDOM from 'react-dom'; var classNames = require('classnames'); //var Colours = require('../mixins/Colours'); //var Defaults = require('../mixins/Defaults'); var LoginService = require("../login/LoginService"); var CONFIG = JSON.parse(localStorage.getItem('CONFIG')); //module.expor...
src/shared/components/TestPage.js
dherault/Playlister
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import config from '../../config'; import ac from '../state/actionCreators'; import definitions from '../models/definitions'; // import xhr from '../utils/xhr'; import customFetch from '../utils/customFetch'; import ...
ui-antd/src/routes/error.js
pkaq/Tara
import React from 'react' import {Icon} from 'antd' import styles from './error.less' const Error = () => <div className='content-inner'> <div className={styles.error}> <Icon type='frown-o' /> <h1>404 Not Found</h1> </div> </div> export default Error
packages/demos/demo/src/components/Project/Select.js
yusufsafak/cerebral
import React from 'react' import { connect } from 'cerebral/react' import { props, signal, state } from 'cerebral/tags' import translations from '../../common/compute/translations' export default connect( { // autoFocus clients: state`clients.all`, // field // placeholderKey value: state`projects...
newclient/scripts/components/user/projects/project-relation-dialog/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...
docs/src/app/components/pages/components/Table/Page.js
verdan/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import tableReadmeText from './README'; import TableExampleSimple from './Exampl...
src/components/video_detail.js
Jaberwalky/ReduxCourse
import React from 'react' const VideoDetail = ({ video }) => { if (!video) { return <div>Loading...</div> } const videoID = video.id.videoId const url = `https://www.youtube.com/embed/${videoID}` return( <div className="video-detail col-md-8"> <div className="embed-responsive embed-responsiv...
src/components/google_map.js
nike331185/weather
import React, { Component } from 'react'; class GoogleMap extends Component{ componentDidMount(){ new google.maps.Map(this.refs.map,{ zoom: 12, //放大倍數 center:{ lat:this.props.lat, //經緯度 lng:this.props.lon } }); } render() { // return <di...
src/server.js
SmartStepGroup/react-starter
import express from 'express' import browserify from 'browserify' import React from 'react' import ReactDOM from 'react-dom/server' import path from 'path' import cookieParser from 'cookie-parser' import bodyParser from 'body-parser' import passport from './auth/passport' import { Html } from './components' import expr...
src/containers/LoginRegister/LoginForm.js
anitrack/anitrack-web
import React, { Component } from 'react'; import { Button, Card, Form, FormGroup, Input } from 'reactstrap'; import { login, getMyUserData } from 'actions/user'; import StatusAlert from 'components/StatusAlert'; import * as css from './css'; import { isValidEmail } from 'helper'; class LoginForm extends Component ...
backend/src/main/js/watcher/watcher.js
joostvdg/keep-watching
/*jshint esversion: 6 */ import React from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Table from 'react-bootstrap/lib/Table'; const rest = require('rest'); const mime = require('rest/interceptor/mime'); export class ShowWatcher extends React.Component { constructor(props) { super(pro...
examples/official-storybook/stories/demo/welcome.stories.js
storybooks/react-storybook
import React from 'react'; import { linkTo } from '@storybook/addon-links'; import { Welcome } from '@storybook/react/demo'; export default { title: 'Other/Demo/Welcome', component: Welcome, }; // Some other valid values: // - 'other-demo-buttonmdx--with-text' // - 'Other/Demo/ButtonMdx' export const ToStorybook ...
packages/fyndiq-ui-test/stories/component-productcard.js
fyndiq/fyndiq-ui
import React from 'react' import { storiesOf } from '@storybook/react' import Productcard from 'fyndiq-component-productcard' storiesOf('Product card', module) .addDecorator(story => ( <div style={{ backgroundColor: '#c4e5e9', padding: '1em' }}>{story()}</div> )) .addWithInfo('default', () => ( <Productc...
blocks/panel.js
UXtemple/panels
import React from 'react' import Vertical from './vertical.js' export default class Panel extends React.Component { render() { const { props } = this return ( <Vertical aria-labelledby={props['aria-labelledby']} role={props.role} ref={props._ref} style={{ heig...
src/screens/App/screens/Home/components/Search/index.js
tulsajs/redux-workshop
import React, { Component } from 'react'; import debounce from 'lodash.debounce'; import { Input, Box } from 'BuildingBlocks'; export default class index extends Component { setupEvent = event => { event.persist(); this.handleChange(event); }; handleChange = debounce(event => { const value = event.t...
src/components/Footer/index.js
lukekarrys/repeatone.club
'use strict'; import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import CSSModules from 'react-css-modules'; import Icon from '../Icon'; @CSSModules(require('./style.less')) export default class Footer extends Component { render() { return ( <footer styleName="root"> ...
public/app/components/vpanel-project-tab/properties-project.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import icons from '../icons'; import PropertiesLabel from '../properties/properties-label'; import PropertiesTitle from '../properties/properties-title'; import PropertiesValue from '../properties/properties-value'; import PropertiesEditor from '../properties/properties-editor...
src/js/views/Modals/HotkeysInfo.js
jaedb/Iris
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Modal from './Modal'; import * as uiActions from '../../services/ui/actions'; import { I18n, i18n } from '../../locale'; const hotkeys = [ { label: 'info', keysets: [['i']] }, { label: 'pla...
app/components/Counter.js
pavelkomiagin/npmr
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Counter.css'; class Counter extends Component { props: { increment: () => void, incrementIfOdd: () => void, incrementAsync: () => void, decrement: () => void, counter: number }; rend...
frontend/src/Components/Form/Form.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Alert from 'Components/Alert'; import { kinds } from 'Helpers/Props'; import styles from './Form.css'; function Form({ children, validationErrors, validationWarnings, ...otherProps }) { return ( <div> { validationErrors.length ||...
src/components/Auth/index.js
galsen0/hair-dv-front
/** * Created by diop on 07/05/2017. */ import React from 'react'; import LoginFormComponent from './LoginForm'; import SignUpFormComponent from './SignUpForm'; import { Divider, Grid } from 'semantic-ui-react'; class Auth extends React.Component{ render(){ return( <Grid columns="equal" centered>...
src/routes.js
MoonTahoe/ski-day-counter-redux
import React from 'react' import { Router, Route, IndexRoute, hashHistory } from 'react-router' import { App, Whoops404 } from './components' import SkiDayCount from './components/containers/SkiDayCount' import AddDayForm from './components/containers/AddDayForm' import SkiDayList from './components/containers/SkiDayLi...
storybooks/web/stories/carousels/carousel-2.js
opensource-cards/binary-ui
import ActionIcon from 'binary-ui-components/mobile/ActionIcon'; import IconArrowLeft from 'binary-ui-icons/binary/ArrowLeft'; import IconArrowRight from 'binary-ui-icons/binary/ArrowRight'; import React from 'react'; import BinaryUICarousel from 'binary-ui-carousel'; const colors = ['#AA3939', '#AA6C39']; function ...
src/components/DeveloperMenu.android.js
fabriziomoscon/pepperoni-app-kit
import React from 'react'; import * as snapshot from '../utils/snapshot'; import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'; /** * Simple developer menu, which allows e.g. to clear the app state. * It can be accessed through a tiny button in the bottom right corner of the screen. * ON...
examples/FlatButton.js
15lyfromsaturn/react-materialize
import React from 'react'; import Button from '../src/Button'; export default <Button flat waves='light'>Button</Button>;
example/src/screens/types/TopTabs.js
junedomingo/react-native-navigation
import React from 'react'; import {PixelRatio} from 'react-native'; class TopTabs extends React.Component { static navigatorStyle = { topTabTextColor: '#ffffff', selectedTopTabTextColor: '#ff505c', // Icons topTabIconColor: '#ffffff', selectedTopTabIconColor: '#ff505c', // Tab indicator ...
src/templates/page.js
zccz14/blog
import React from 'react' import PropTypes from 'prop-types' import { graphql } from 'gatsby' import SEO from '../components/seo' import Layout from '../components/layout' import Post from '../components/post' const BlogPostTemplate = ({ data, pageContext }) => { const { frontmatter: { title, date, path, author...
src/@ui/BulletListItem/index.js
NewSpring/Apollos
import React from 'react'; import { compose, pure, setPropTypes } from 'recompose'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import styled from '@ui/styled'; import { BodyText } from '@ui/typography'; const enhance = compose( pure, setPropTypes({ children: PropTypes.oneOfType([...
src/app/components/Header.js
skratchdot/js-playground
import React, { Component } from 'react'; import { Link } from 'react-router'; import { Row, Col, Nav } from 'react-bootstrap'; import { connect } from 'react-redux'; const packageInfo = require('../../../package.json'); class Header extends Component { isLinkActive(pathname) { return this.context.history.isActive(...
src/index.js
dtying/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/routes/about/index.js
zmj1316/InfomationVisualizationCourseWork
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../compo...
client/components/Markdown/elements/_th.js
LetAmericaVote/strikeout
import React from 'react'; const th = (props) => { const { children } = props; return ( <th>{ children }</th> ); }; export default th;
docs/src/pages/docs/index.js
mcanthony/nuclear-js
import React from 'react' import Redirect from '../../layouts/redirect' import { BASE_URL } from '../../globals' export default React.createClass({ render() { return <Redirect to={BASE_URL} /> } })
website/src/pages/components/home/Footer.js
frontyard/keystone
import React, { Component } from 'react'; import Container from '../../../../components/Container'; import { compose } from 'glamor'; import Link from 'gatsby-link'; import theme from '../../../../theme'; export default class ValueProps extends Component { render () { return ( <div className={compose(styles.back...
examples/todomvc/containers/App.js
mrblueblue/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider redux={...
src/client/lib/flux/devtools.js
gaurav-/este
import Component from '../../components/component.react'; import React from 'react'; export default function devTools(BaseComponent) { return class DevTools extends Component { static propTypes = { flux: React.PropTypes.object.isRequired } constructor(props) { super(props); this.hist...
webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
jlsherrill/katello
import React from 'react'; import PropTypes from 'prop-types'; const SubscriptionDetailProducts = ({ subscriptionDetails }) => ( <div> <h2>{__('Provided Products')}</h2> <ul> {subscriptionDetails.provided_products && subscriptionDetails.provided_products.map(prod => ( <li key={prod.id...
analysis/deathknightblood/src/modules/features/BoneShield.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { formatDuration, formatPercentage } from 'common/format'; import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER'; import { t } from '@lingui/macro'; import StatTracker from 'parser/shared/modules/StatTra...
src/svg-icons/content/add-circle-outline.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.5...
src/components/InputIcon/input-icon.js
emsiengineering/emsi-ui
import CSSModules from 'react-css-modules'; import React from 'react'; import CSS from './input-icon.styl'; import Icon from '../Icon'; type Props = { name: string, styles?: Object } function InputIcon({ name, styles, ...other }: Props) { return ( <Icon name={name} styleName='input-icon' size='medium' /> ...
packages/react/src/components/forms/Label/index.js
massgov/mayflower
/** * Label module. * @module @massds/mayflower-react/Label * @requires module:@massds/mayflower-assets/scss/01-atoms/helper-text */ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const Label = ({ children, inputId, hidden, disabled, conditionText, className, ...
admin/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
develnk/irbispanel
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
examples/example-react/client.js
as-com/alef
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-alef' import App from './app' import createRenderer from './renderer' const renderer = createRenderer() render( <Provider renderer={renderer}> <App /> </Provider>, document.getElementById('app') )
src/FormsyAutoComplete/FormsyAutoComplete.spec.js
maccuaa/formsy-mui
import 'jsdom-global/register'; import React from 'react'; import PropTypes from 'prop-types'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import {Form} from 'formsy-react-2'; import Enzyme, { mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import test from 'tape'; import Sinon f...
public/src/components/jobs/NewJobScreen.js
sio-iago/essential-plaform-back
// React import React, { Component } from 'react'; // Redux actions import { connect } from 'react-redux'; // Main application class import ApplicationScreen from './../application/ApplicationScreen'; import { Link } from 'react-router-dom'; // Bootstrap Classes import { Row, Col, Button, FormGroup, ControlLabel, ...
scripts/src/pages/login.js
Twogether/just-meet-frontend
import ReactDOM from 'react-dom'; import React from 'react'; import view from './views/login'; import api from '../utils/api'; import Authentication from '../utils/authentication'; import { browserHistory } from 'react-router'; class Home extends React.Component { constructor(props) { super(props); this.sta...
internals/templates/appContainer.js
Rohitbels/KolheshwariIndustries
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
Realization/frontend/czechidm-core/src/components/basic/Panel/Panel.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { useSelector } from 'react-redux'; // import { makeStyles } from '@material-ui/core/styles'; // import * as Utils from '../../../utils'; import AbstractComponent from '../AbstractComponent/AbstractComponent'; imp...
client/components/atoms/TextI18n/index.js
defe266/keystone-starter
import React from 'react' import { connect } from 'react-redux' import BlockHTML from '../../atoms/BlockHTML'; var TextI18n = function (props) { var lang = props.lang; var value = props.value; var output = value; if(value && lang && typeof value === 'object'){ output = value[lang] } ...
app/javascript/mastodon/features/compose/components/poll_form.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from 'mastodon/components/icon_butt...
frontend/src/components/eois/modals/changeSummary/changeSummaryModal.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { submit, SubmissionError } from 'redux-form'; import ControlledModal from '../../../common/modals/controlledModal'; import { updateReviewSummary } from '../../../../reducers/cfeiReviewSummary'; i...
addons/docs/src/frameworks/react/__testfixtures__/9586-js-react-memo/input.js
storybooks/storybook
import React from 'react'; import PropTypes from 'prop-types'; function Button({ label, onClick }) { // eslint-disable-next-line react/button-has-type return <button onClick={onClick}>{label}</button>; } Button.propTypes = { label: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, }; const Mem...
src-client/modules/generator/containers/GeneratorList/index.js
ipselon/structor
/* * Copyright 2017 Alexander Pustovalov * * 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 a...
Card.js
srserx/react-native-ui-common
import React from 'react'; import { View } from 'react-native'; // This class is intended for styling only. Because there's not shared CSS styles // in react-native. So a style that is to be shared, must be by using a class. const Card = (props) => { return ( <View style={styles.containerStyle}> { props.c...
example/src/components/component10.js
jpuri/darsh
import React, { Component } from 'react'; import { configureStore } from 'react-component-store'; export default class Component10 extends Component { render() { return ( <div style={{padding: 30, border: '1px solid gray'}}> <p>CHILD OF CHILD COMPONENT-1 (Dumb component)</p> <div>This is cu...
pootle/static/js/auth/components/AuthContent.js
dwaynebailey/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 assign from 'object-assign'; import React from 'rea...
Console/app/node_modules/rc-input-number/es/index.ios.js
RisenEsports/RisenEsports.github.io
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import { Text, TextInput, TouchableWithoutFeedback, View } from 'react-native'; import mixin from './mixin'; var InputNumber = createReactClass({ propTypes: { styles: PropTypes.object, style: Pro...
ui/server.js
nlhuykhang/apollo-react-quotes-client
import 'isomorphic-fetch'; import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { ApolloProvider, renderToStringWithData } from 'react-apollo'; import { match, RouterContext } from 'react-router'; i...
src/articles/2018-01-31-1st-Anniversary/TimelineItemImage.js
anom0ly/WoWAnalyzer
import PropTypes from 'prop-types'; import React from 'react'; const TimelineItemImage = ({ source, description, wide }) => ( <figure style={wide ? { maxWidth: 800 } : undefined}> <a href={source} target="_blank" rel="noopener noreferrer"> <img src={source} alt={description} /> </a> <figcaption>{de...
elcri.men/src/components/MxHexTileMapTooltip.js
diegovalle/new.crimenmexico
import React from 'react' import PropTypes from 'prop-types' import MxHexTileMap from '../components/MxHexTileMap' export const withTooltipPropTypes = { tooltipOpen: PropTypes.bool, tooltipLeft: PropTypes.number, tooltipTop: PropTypes.number, tooltipData: PropTypes.object, updateTooltip: PropTypes.func, sh...
src/components/theme-legacy/login-form.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' const LoginForm = ({ setRef, errorList, handleSubmit, isSubmitting }) => ( <div className='container'> <div className='row'> <div className='span6 offset3'> <div className='well login clearfix'> ...
app/javascript/flavours/glitch/features/hashtag_timeline/index.js
vahnj/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from 'flavours/glitch/features/ui/containers/status_list_container'; import Column from 'flavours/glitch/components/column'; import ColumnHeader from 'flavours/glitch/components/column_header...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js
doochik/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
source/js/main.js
mehan/nsf-challenge
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "React" }] */ import React from 'react'; import ReactDOM from 'react-dom'; import Faq from './components/faq.js'; import NsfNav from './components/nsf-nav.js'; import Challenges from './components/challenges.js'; if (document.getElementById(`sticky-nav`)) { ...
src/components/pages/login/Login.js
juandjara/open-crono
import React, { Component } from 'react'; import Input from 'react-toolbox/lib/input/Input' import Checkbox from 'react-toolbox/lib/checkbox/Checkbox' import Button from 'react-toolbox/lib/button/Button' import { connect } from 'react-redux' import { authenticate } from 'reducers/auth.reducer' import './Login.css' exp...
app/index.js
donofkarma/react-starter
import React from 'react'; import Async from 'react-code-splitting' import ReactDOM from 'react-dom'; const App = () => <Async load={import('containers/app')} />; ReactDOM.render( <App />, document.getElementById('app') );
src/svg-icons/action/subject.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSubject = (props) => ( <SvgIcon {...props}> <path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"/> </SvgIcon> ); ActionSubject = pure(ActionSubject); ActionSubject.displayName = 'Acti...
src/client.js
Sawtaytoes/Ghadyani-Framework-Webpack-React-Redux
import React from 'react' import { AppContainer } from 'react-hot-loader' import { hydrate, render } from 'react-dom' // Compatibility Polyfills import 'react-fastclick' import 'utils/polyfills' import ClientRoot from 'components/root/ClientRoot' const isProd = process.env.NODE_ENV === 'production' const rootElement...
node_modules/antd/es/timeline/TimelineItem.js
ZSMingNB/react-news
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/js/components/icons/base/Standards-3dEffects.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/javascript/mastodon/features/introduction/index.js
pinfort/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ReactSwipeableViews from 'react-swipeable-views'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { closeOnboarding } from '../../actions/onboarding'; import screenHell...
pages/index.js
umbchackers/innovategood
import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import TextSection from '../components/TextSection'; import Helmet from 'react-helmet'; import { config } from 'config'; import "./index.css"; import { styles } from '../components/IndexSections/styles'; import ...
redux-form/simple/jsx/FieldArrayForm.js
Muzietto/react-playground
import React from 'react'; import {connect} from 'react-redux'; import {Field, FieldArray, reduxForm} from 'redux-form'; const mapStateToProps = state => { return { // mandatory key name initialValues: state.submitted.fieldArray, // pull initial values from submitted reducer }; }; let FieldArr...
react/features/video-menu/components/web/GrantModeratorButton.js
gpolitis/jitsi-meet
/* @flow */ import React from 'react'; import ContextMenuItem from '../../../base/components/context-menu/ContextMenuItem'; import { translate } from '../../../base/i18n'; import { IconCrown } from '../../../base/icons'; import { connect } from '../../../base/redux'; import AbstractGrantModeratorButton, { _mapSta...
app/components/LoadingIndicator/index.js
anhldbk/react-boilerplate
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
src/pages/qrcode/result/index.js
yiweimatou/admin-antd
import React, { Component } from 'react'; import { Button, message, Modal } from 'antd' import { download } from 'services/qrcode' import style from './index.css' class QRCodeResult extends Component { clickHandler = () => { const { list } = this.props download({ rcmd_code_list: list ...
src/components/Switch/Switch.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { settings } from 'carbon-componen...