path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js
peopleticker/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class extends Component { static propTyp...
src/resources/assets/react-app/components/AuthHome.js
z5internet/ruf
import React, { Component } from 'react'; class AuthHome extends Component { render() { return ( <div> You are logged in! </div> ) } } export default AuthHome;
src/pages/dashboard/page.js
vgarcia692/wutmi_frontend
import React from 'react'; import styles from './style.css'; import CustomAxios from '../../common/components/CustomAxios'; export default class DashboardPage extends React.Component { constructor() { super() } render() { return ( <div className={styles.content}> <h1 className={styles.he...
app/containers/LanguageProvider/index.js
tomazy/react-boilerplate
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
demos/forms-demo/src/components/CurrentView/index.js
bdjnk/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state} from 'cerebral/tags' import Simple from '../Simple' const VIEWS = { Simple } export default connect({ currentView: state`app.currentView` }, function CurrentView ({currentView}) { const View = VIEWS[currentView] return ( <div ...
src/datagrid-wrapper.js
JamesHageman/redux-datagrid
import React from 'react'; const { func, string, any, array, object } = React.PropTypes; export default class DatagridWrapper extends React.Component { static propTypes = { Component: func, initDatagrid: func, columns: array, name: string, searchText: string, sortBy: string, groupBy: str...
assets/js/components/ActivityPicker.js
ung-it/UngIT
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import {Glyphicon} from "react-bootstrap"; import '../../styles/activitypickerStyle.css'; let names = [ "Amerikansk idrett", "Bandy", "Basketball", "Biljard", "Boksing", "Bueskyting", "Cricket...
examples/nested-components/pages/index.js
dstreet/next.js
import React from 'react' import P from '../components/paragraph' import Post from '../components/post' import style from 'next/css' export default () => ( <div className={styles.main}> <Post title='My first blog post'> <P>Hello there</P> <P>This is an example of a componentized blog post</P> </P...
__tests__/InfoDisplay_test.js
SashaKoro/redux-tic-tac-toe
/* eslint-disable no-undef */ import React from 'react'; import { shallow, mount } from 'enzyme'; import InfoDisplay from '../src/components/InfoDisplay'; describe('InfoDisplay', () => { it('should be selectable by class name', () => { const wrapper = shallow(<InfoDisplay info="Your Turn!" />); expect(wrapp...
Sources/ewsnodejs-server/node_modules/react-transition-group/esm/ReplaceTransition.js
nihospr01/OpenSpeechPlatform-UCSD
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import TransitionGroup from './TransitionGroup'; /*...
src/SwipeableWithPagination.js
zeljkoX/swipable-views-with-pagination
import { StyleSheet, View, Image, Dimensions } from 'react-native'; import React, { Component } from 'react'; import SwipeableViews from 'react-swipeable-views/lib/index.native.animated'; import Pagination from './Pagination'; let paginationSize = 0; export default class SwipeableWithPagination extends Com...
packages/days-off/src/components/App/index.js
simonrelet/days-off
import React, { Component } from 'react'; import injectSheet from 'react-jss'; import Icon from '@marv/components/Icon'; import fetch, { parseJSON, handleError } from '@marv/components/fetch'; import { isHalfDayBefore, isHalfDayAfter } from '../dateUtils'; import Calendars from '../Calendars'; import UserHeader from '....
app/jsx/permissions/index.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...
client/src/javascript/components/general/filesystem/PriorityMeter.js
jfurrow/flood
import {injectIntl} from 'react-intl'; import React from 'react'; import PiorityLevels from '../../../constants/PriorityLevels'; const METHODS_TO_BIND = ['handleClick']; class PriorityMeter extends React.Component { constructor() { super(); this.state = { optimisticData: { level: null, ...
node_modules/react-bootstrap/es/Radio.js
NathanBWaters/jb_club
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/index.js
asithagihan03/alankara-hapi
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, hashHistory } from 'react-router'; import routes from './routes'; ReactDOM.render( <Router routes={routes} history={hashHistory} />, document.getElementById('root') );
node_modules/react-native/Libraries/Components/TextInput/TextInput.js
hpdmitriy/Bjj4All
/** * 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...
still/src/components/Layout/Footer.js
marktheshark13/Stillwaters-farm
import React, { Component } from 'react'; class Footer extends Component { render() { return ( <div> <h1>Footer test</h1> </div> ); } } export default Footer;
src/content/index.js
squarewave/bhr.html
import React from 'react'; import Perf from 'react-addons-perf'; import { render } from 'react-dom'; import Root from './containers/Root'; import createStore from './create-store'; import 'photon-colors/colors.css'; import '../../res/style.css'; if (process.env.NODE_ENV === 'production') { const runtime = require('o...
docs/src/app/components/pages/components/GridList/Page.js
pancho111203/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 gridListReadmeText from './README'; import gridListExampleSimpleCode from...
client/modules/App/components/Menu/Menu.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { getUserName, getId } from '../../../Login/LoginReducer'; import { logout } from '../../../Login/LoginActions'; import { Tab, Row, Col, Nav, NavItem, NavDropdown, MenuItem } from'react-bootstrap'...
packages/react-router-website/modules/components/App.js
react-translate-team/react-router-CN
import React from 'react' // don't want the shimmed one // eslint-disable-next-line import BrowserRouter from '../../../react-router-dom/BrowserRouter' // this stuff is shimmed, see ReactRouterDOMShim.js for more details import { Switch, Route } from 'react-router-dom' import DelegateMarkdownLinks from './DelegateMa...
web/src/templates/blog-list.js
ajmalafif/ajmalafif.com
import React from 'react' import { graphql } from 'gatsby' import { mapEdgesToNodes, filterOutDocsWithoutSlugs, filterOutDocsPublishedInTheFuture, } from '../lib/helpers' import BlogPostPreviewGrid from '../components/blog-post-preview-grid' import GraphQLErrorList from '../components/graphql-error-lis...
public/app/components/online-tab/details-component-binding.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import * as mui from 'material-ui'; import icons from '../icons'; const DetailsComponentBinding = ({ binding }) => ( <div> <icons.Binding style={{verticalAlign: 'middle'}}/> &nbsp; Binding: &nbsp; {`${binding.remote_id}.${binding.remote_attribute}`} &...
UI/app/components/Dashboard.js
Acheron-VAF/Acheron
// @flow import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styles from './Home.css'; type Props = { increment: () => void, incrementIfOdd: () => void, incrementAsync: () => void, decrement: () => void, counter: number }; export default class PageTemplate extends Comp...
src/components/Paralax/Paralax/Paralax.js
easingthemes/notamagic
import React from 'react'; import { Parallax as ParallaxComponent } from 'react-parallax'; import { Link } from 'react-router'; import bgImage from '../images/parallax.jpg'; const Parallax = (props) => ( <ParallaxComponent id="info-1" className={'pt50 pb50 parallax-window mt' + props.mt} bgImage={bgImage} stren...
node_modules/eslint-config-airbnb/test/test-react-order.js
ichbinder/homeapp
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, // This rule fails when executing on text. rules: { indent: ...
app/javascript/mastodon/features/lists/index.js
Craftodon/Craftodon
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 Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compo...
src/components/video_detail.js
kahlilashanti/react_youtube_project
import React from 'react'; const VideoDetail = ({video}) => { if(!video){ return <div>Hold yer horses...</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-r...
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js
rscnt/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import areIntlLocalesSupported from 'intl-locales-supported'; let DateTimeFormat; /** * Use the native Intl.DateTimeFormat if available, or a polyfill if not. */ if (areIntlLocalesSupported(['fr', 'en-US'])) { DateTimeFormat = global.Intl...
frontend/src/Components/Form/CaptchaInputConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { getCaptchaCookie, refreshCaptcha, resetCaptcha } from 'Store/Actions/captchaActions'; import CaptchaInput from './CaptchaInput'; function createMapSta...
src/CameraView.js
AppADay/AppADayApp
import React, { Component } from 'react'; import { StyleSheet, Text, View, Platform, TouchableOpacity, Image, Animated, Easing, InteractionManager, } from 'react-native'; import Emoji from 'react-native-emoji'; import Camera from 'react-native-camera'; import fs from 'react-native-fs'; import idx from...
client/src/components/city/city-view.js
BrunoSalerno/citylines
import React from 'react'; import Translate from 'react-translate-component'; import CityBase from '../city-base'; import PropTypes from 'prop-types'; import CityViewStore from '../../stores/city-view-store'; import MainStore from '../../stores/main-store'; import {PanelHeader, PanelBody} from '../panel'; import Line...
src/containers/OverBar.js
zachlevy/react-playground
import React from 'react' import { connect } from 'react-redux' import { setTheme } from '../actions' const mapStateToProps = (state, ownProps) => ({ theme: state.theme }) let OverBar = ({ theme, dispatch }) => { let input const handleOnSubmit = (e) => { e.preventDefault() if (!input.value.trim()) {...
src/DatePicker/DateDisplay.spec.js
lawrence-yu/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import getMuiTheme from '../styles/getMuiTheme'; import {dateTimeFormat} from './dateUtils'; import DateDisplay from './DateDisplay'; describe('<DateDisplay />', () => { const muiTheme = getMuiTheme(); c...
app/javascript/mastodon/features/notifications/components/column_settings.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
src/components/register/v1/form-field.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2017 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/components/profile_page/ProfilePage.js
thewizardplusplus/vk-group-stats
import React from 'react' import {DrivedProfile} from '../../containers/drived_profile/DrivedProfile' export default class ProfilePage extends React.Component { render() { return <DrivedProfile /> } }
src/svg-icons/editor/format-paint.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatPaint = (props) => ( <SvgIcon {...props}> <path d="M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z"/> </SvgIco...
src/js/screens/Anchor.js
grommet/next-sample
import React from 'react'; import { Anchor, Box } from 'grommet'; import doc from 'grommet/components/Anchor/doc'; import { Edit } from 'grommet-icons'; import Doc from '../components/Doc'; const desc = doc(Anchor).toJSON(); function onClick(event) { event.preventDefault(); alert('hi'); } export default () =>...
rojak-ui-web/src/App.js
bobbypriambodo/rojak
import React from 'react'; import { Provider } from 'react-redux'; import { ReduxRouter } from 'redux-router'; import routes from './routes'; import store from './store'; import createRojakClient from './app/utils/createRojakClient'; class App extends React.Component { static childContextTypes = { rojakCli...
packages/cockpit/ui/src/components/Pagination.js
iurimatias/embark-framework
import React from 'react'; import {Pagination as RPagination, PaginationItem, PaginationLink} from 'reactstrap'; import PropTypes from 'prop-types'; const NB_PAGES_MAX = 8; const Pagination = ({currentPage, numberOfPages, changePage}) => { let max = currentPage + NB_PAGES_MAX / 2; if (max > numberOfPages) { m...
src/components/general/WebView.js
eventures-io/ldn-retail-demo
/** * Web View * * <WebView url={"http://google.com"} /> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { WebView, StyleSheet, InteractionManager, } from 'react-native'; // Consts an...
app/javascript/mastodon/features/compose/components/poll_button.js
lindwurm/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ add_poll: { id: 'poll_button.add_poll', defaultMessage: 'Add a poll' }, remove_poll: { id: 'poll_button...
webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetails.js
snagoor/katello
import React, { Component } from 'react'; import BreadcrumbsBar from 'foremanReact/components/BreadcrumbBar'; import { PropTypes } from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import api from '../../../services/api'; import ContentDetails from '../../../components/Content/Details/Conte...
docs/src/app/components/pages/components/Paper/ExampleSimple.js
nathanmarks/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleSimple = () => ( <div> <Paper style={style} zDepth={1} /> <Paper style={style} zDepth={2} /> <Paper style={s...
test/specs/collections/Form/Form-test.js
Semantic-Org/Semantic-UI-React
import faker from 'faker' import _ from 'lodash' import React from 'react' import Form from 'src/collections/Form/Form' import FormButton from 'src/collections/Form/FormButton' import FormCheckbox from 'src/collections/Form/FormCheckbox' import FormDropdown from 'src/collections/Form/FormDropdown' import FormField fro...
docs/client.js
sheep902/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
app/containers/LocaleToggle/index.js
zuban/zuban-boilerplate
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
src/svg-icons/av/skip-previous.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSkipPrevious = (props) => ( <SvgIcon {...props}> <path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/> </SvgIcon> ); AvSkipPrevious = pure(AvSkipPrevious); AvSkipPrevious.displayName = 'AvSkipPrevious'; AvSkipPrevious.mu...
test/OverlayTriggerSpec.js
glenjamin/react-bootstrap
import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import { mount } from 'enzyme'; import OverlayTrigger from '../src/OverlayTrigger'; import Popover from '../src/Popover'; import Tooltip from '../src/Tooltip'; describe('<OverlayTrigger>', () => { // Swallow extra props...
app/components/EyesProtect/EyesNotify.js
SuperDOgePx/chrome-extension-react
import React, { Component } from 'react'; import { unmountComponentAtNode } from 'react-dom'; import { setChromeLocalStore, getChromeLocalStore } from '../../utils/settings'; export default class EyesNotify extends Component { constructor(props) { super(props); this.state = { timer: 30 }; this.notiInterva...
docs/app/Examples/addons/Radio/Types/RadioExampleRadio.js
vageeshb/Semantic-UI-React
import React from 'react' import { Radio } from 'semantic-ui-react' const RadioExampleRadio = () => ( <Radio label='Make my profile visible' /> ) export default RadioExampleRadio
src/layouts/index.js
getinsomnia/insomnia.rest
import React from 'react'; import Helmet from 'react-helmet'; import './styles/index.less'; import Navbar from '../partials/navbar'; import Footer from '../partials/footer'; import Title from '../partials/title'; import { isLoggedIn } from '../lib/session'; import { site } from '../config'; import { parse as urlParse }...
src/public/js/main.js
datalocale/dataviz-finances-gironde
import { createStore } from 'redux'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Record, Map as ImmutableMap, List, Set as ImmutableSet } from 'immutable'; import { csv, xml, json } from 'd3-fetch'; import page from 'page'; import {urls, FINANCE_DATA, A...
src/components/thumbnail.js
menthena/project-a
import React from 'react'; import { Link } from 'react-router'; const Thumbnail = ({ thumbnailURL }) => ( <div className="thumbnail"> <img src={thumbnailURL} /> </div> ); Thumbnail.propTypes = { thumbnailURL: React.PropTypes.string.isRequired }; export default Thumbnail;
tests/client/admin/components/TestNavBar.js
mstriemer/addons-frontend
import React from 'react'; import { NavBar, NavBarLink } from 'core/components/NavBar'; import AdminNavBar from 'admin/components/NavBar'; import { shallowRender } from 'tests/client/helpers'; describe('<AdminNavBar />', () => { it('renders a link to Search but not log out unauthenticated', () => { const root =...
src/scripts/Playlist.js
Ribeiro/yoda
'use strict'; import React from 'react'; import PlaylistHeader from './PlaylistHeader'; import PlaylistVideos from './PlaylistVideos'; const PureRenderMixin = React.addons.PureRenderMixin; export default React.createClass({ propTypes: { playlist: React.PropTypes.array.isRequired, }, mixins: [PureRenderMix...
example/example/index.android.js
JimmyDaddy/doctorstrange-updater
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Alert } from 'react-native'; import DoctorstrangeUpdater from 'doctorstrange-updater'; console.log(DoctorstrangeUpdater); export d...
src/components/type-link.js
tylerchilds/pokedex
import React from 'react'; import { Link } from 'react-router'; export default class TypeLink extends React.Component { render() { const type = this.props.type.name || this.props.type; return ( <Link to={`/type/${type}`} className={`type ${type.toLowerCase()}`}>{type}</Link> ); } }
src/js/containers/NotFound/index.js
ClubExpressions/poc-expression.club
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class NotFound extends Component { render () { return ( <div className='container text-center'> <h1>This is a demo 404 page!</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ...
src/components/app.js
jameswatkins77/React-Blogger-App
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> {this.props.children} </div> ); } }
src/main.js
vesparny/react-kickstart
import 'sanitize.css/sanitize.css' import React from 'react' import ReactDOM from 'react-dom' const rootEl = document.getElementById('root') let render = () => { const Root = require('./components/Root').default ReactDOM.render(<Root />, rootEl) } if (module.hot) { const renderApp = render const renderError ...
blueprints/smart/files/__root__/containers/__name__.js
donnycrash/react-redux-electron-starter-kit
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render() { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const ...
src/js/test/components/pages/items/Item.spec.js
athill/wimf
import React from 'react'; import { shallow } from 'enzyme'; import faker from 'faker'; import sinon from 'sinon'; import Item, { ItemHeader } from '../../../../components/pages/items/Item'; describe('Item', () => { const name = faker.lorem.words(); const quantity = faker.random.number(); const date = '2016-01-02'...
material-ui/src/cookbook/2-appbar/AppbarWithComplexMenu.js
Muzietto/react-playground
import React from 'react'; import { fade, makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import IconButton from '@material-ui/core/IconButton'; import Typography from '@material-ui/core/Typography'; import InputBase from '@ma...
src/svg-icons/editor/format-color-text.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorText = (props) => ( <SvgIcon {...props}> <path fillOpacity=".36" d="M0 20h24v4H0z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/> </SvgIcon> );...
src/containers/Address/index.js
wvfan/HSBC
import * as F from 'firebase'; import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { withRouter } from 'react-router'; import Page from 'components/Page'; import Header from 'components/Page/Header'; import Body from '...
src/widgets/JSONForm/widgets/TimePicker.js
sussol/mobile
/* eslint-disable no-console */ import React from 'react'; import { TextInput } from 'react-native'; import moment from 'moment'; import PropTypes from 'prop-types'; import { DatePickerButton } from '../../DatePickerButton'; import { FlexRow } from '../../FlexRow'; import { useJSONFormOptions } from '../JSONFormContex...
app/src/display/DisplaySearch.js
sfelderman/inverted-index
import React from 'react'; import {connect} from 'react-redux'; import {clean} from '../util/createDict'; import FileBlock from './FileBlock'; let DisplaySearch = ({dict, files, query}) => { let result = dict[query.toLowerCase()]; if (!result) { result = dict[clean(query)]; } if (!result) { result = ''...
fluxible-router/app.js
eriknyk/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 Fluxible from 'fluxible'; import Application from './components/Application'; import RouteStore from './stores/RouteStore'; import ApplicationStore from...
src/components/TextInput/ControlledPasswordInput-test.js
joshblack/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 React from 'react'; import TextInput from '../TextInput'; import { mount, shallow } from 'enzyme'; describe('TextInput', () => { de...
ui/src/main/js/pages/Home.js
apache/aurora
import React from 'react'; import Breadcrumb from 'components/Breadcrumb'; import Loading from 'components/Loading'; import RoleList from 'components/RoleList'; export default class HomePage extends React.Component { constructor(props) { super(props); this.state = {cluster: '', roles: [], loading: true}; ...
app/src/App.js
kawallis/omni_mock
import React, { Component } from 'react'; import './App.css'; import NavBar from './components/navbar'; import DateTimeContainer from './DateSelector/DateTimeContainer'; class App extends Component { render() { return ( <div className="App"> <NavBar /> <div className="DateContainer"> ...
MobileApp/App/components/closetradenext.js
VowelWeb/CoinTradePros.com
/** * CoinTradePros.com React Native App * http://www.cointradepros.com/ * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, Image, TouchableOpacity, PixelRatio, Text, TouchableHighlight, ScrollView, TextInput, Picker, } from 'react-native'; import ImagePicker ...
src/components/block-types/block-types.js
xutou12/draft-richer
import React from 'react'; import Icon from '../icons'; import Header from './header'; import Button from '../button'; import ButtonPopover from '../button-popover'; /** * Draft.DefaultDraftBlockRenderMap * <h1/> header-one * <h2/> header-two * <h3/> header-three * <h4/> header-four * <h5/> header-five * <h...
packages/mineral-ui-icons/src/IconEnhancedEncryption.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconEnhancedEncryption(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {.....
docs/app/Examples/collections/Menu/Types/index.js
clemensw/stardust
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' // TODO: Add example with <Popup> after it will be added const Types = () => { return ( <ExampleSection title='Types'> <C...
components/stories/header.js
kadira-samples/react-storybook-demo
import React from 'react'; import Header from '../Header'; import { storiesOf, action } from '@kadira/storybook'; storiesOf('Header', module) .add('default view', () => { return ( <div className="todoapp"> <Header addTodo={action('Add Todo')}/> </div> ); });
packages/reactor-kitchensink/src/examples/Charts/Area/FullStackedArea/FullStackedArea.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; export default class FullStackedAreaChartExample extends Component { constructor(){ super(); } store = Ext.cre...
actor-apps/app-web/src/app/components/ToolbarSection.react.js
webwlsong/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin } from 'react-intl'; import classnames from 'classnames'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import DialogStore from 'stores/DialogStore'; import ActivityStore from 'stores/ActivityStore'; //import A...
app/javascript/mastodon/components/__tests__/display_name-test.js
foozmeat/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import DisplayName from '../display_name'; describe('<DisplayName />', () => { it('renders display name + account name', () => { const account = fromJS({ username: 'bar', acct: 'bar@baz', ...
packages/material-ui-icons/src/AirlineSeatLegroomExtra.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AirlineSeatLegroomExtra = props => <SvgIcon {...props}> <path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1.12-1.79-1....
src/scotch-night/App.js
SeattleScotchSociety/ScotchNight
// @flow import React, { Component } from 'react'; import Expo from 'expo'; import { Provider } from 'react-redux'; import Store from './app/Store'; import ScotchNight from './app/ScotchNight'; export default class App extends Component { constructor() { super(); this.state = { isLoadi...
app/components/Home.js
yaolei/Node-Clound
import React from 'react'; import {bindActionCreators, createStore} from 'redux'; import 'babel-polyfill'; // 为generator 使用 import {connect, Provider} from 'react-redux'; import fetch from 'isomorphic-fetch'; export default class Home extends React.Component { constructor(props){ super(props); this....
test/date_input_test.js
flexport/react-datepicker
import React from 'react' import moment from 'moment' import ReactDOM from 'react-dom' import TestUtils from 'react-addons-test-utils' import DateInput from '../src/date_input.jsx' describe('DateInput', function () { it('adds disabled attribute to input field when disabled is passed as prop', function () { var d...
src/components/Header/Header.js
golotiuk/Good_luck
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Header.scss'; import Link from '../Link'; import Navigation from '../Navigation'; class Header extends Component { render() { return ( <div className={s.root}> <div className...
src/adjudicator/adjudicationTable.js
dgretho/adjudication
import React from 'react'; import { render } from 'react-dom'; import { Table } from 'react-bootstrap'; function AdjudicationTableRow(props) { return ( // TODO: Set style using a class <tr onClick={props.onClick} style={{cursor: 'pointer'}}> <td>{props.case.address}</td> <td...
src/pages/homepage/list/RecommendTopics.js
HeliumLau/Hoop-react
import React from 'react'; import Header from 'components/Header.js'; import ArticleList from 'components/ArticleList.js'; import './normalcontainer.less'; export default class RecommendTopics extends React.Component { constructor(props) { super(props); this.state = { articlelist: [ ...
friday-ui/src/routes.js
freekbrinkhuis/friday
import React, { Component } from 'react'; import { BrowserRouter, Switch, Route } from 'react-router-dom'; import App from './Components/App'; import Dashboard from './Components/Dashboard'; import NotFound from './Components/NotFound'; class Routes extends Component { render(){ return( <Brows...
client/src/components/TeamsList/TeamsList.js
ccabrales/espn-fantasy-stats
import React from 'react'; import PropTypes from 'prop-types'; import { Table, Image } from 'semantic-ui-react'; import sortBy from 'lodash.sortby'; import { getValue } from '../../services/utility'; /** * Display the teams in a sortable table * @param teamData */ class TeamsList extends React.Component { /** ...
src/client/components/filter/FilterCards/FilterCards.component.js
DBCDK/content-first
import React from 'react'; import Swiper from 'react-id-swiper'; import {isMobile} from 'react-device-detect'; import Heading from '../../base/Heading'; import Icon from '../../base/Icon'; import T from '../../base/T'; import {withTagsFromUrl} from '../../hoc/AdressBar'; import CardList from './templates/CardList.com...
app/routes/Course/routes/Announcements/components/Sidebar.js
jefferchang/reactApp
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class AnnouncementsSidebar extends React.Component { render() { let { announcements } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcements....
src/js/components/app.js
MiladNazeri/stockHelper
import '../stylesheets/main.scss'; import React from 'react'; class App extends React.Component { constructor(props){ super(props); this.state={ } } render(){ return( <div> {this.props.children} </div> ) } } export default A...
internals/templates/notFoundPage.js
ReelTalkers/reeltalk-web
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react' export function NotFound() { return ( <h1>Page Not Found</h1> ) } export default NotFound
packages/reactor-conference-app/src/schedule/Schedule.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { toggleSearch, filterByDay, toggleFavorite, filterByFavorites } from './actions'; import { setTitle } from '../actions'; import { loadEvent } from '../event/actions'; import { Container, Button, TabPanel, Panel, Toolbar, SearchFi...
test/test_helper.js
mcrice123/simple-react-example
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
docs/site/src/demos/dialogs/AlertDialog.js
und3fined/material-ui
// @flow weak import React, { Component } from 'react'; import Button from 'material-ui/Button'; import { Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, } from 'material-ui/Dialog'; export default class AlertDialog extends Component { state = { open: false, }; handleRequest...
public/src/admin/editor/BlockStyleControls.react.js
SLedunois/personal-website
import React from 'react'; import StyleButton from './StyleButton.react'; import BLOCK_TYPES from './blockTypes'; const BlockStyleControls = props => { const { editorState } = props; const selection = editorState.getSelection(); const blockType = editorState .getCurrentContent() .getBlockForKey(selectio...
src/components/Navigation.js
mgaebler/kicknow-client-web
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { openDrawer, closeDrawer } from '../modules/navigation/actions' import { Toolbar, ToolbarRow, ToolbarTitle, ToolbarSection, Icon } from 'react-mdc-web' import Menu from './Menu' class Navigation ext...