path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
example/examples/LoadingMap.js
ksincennes/react-native-maps
import React from 'react'; import { Text, View, Dimensions, StyleSheet, } from 'react-native'; import MapView from 'react-native-maps'; import flagImg from './assets/flag-blue.png'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGI...
app/App.js
pro-react/react-app-boilerplate
import React, { Component } from 'react'; import {render} from 'react-dom'; class App extends Component { render(){ return ( <h1>Hello World</h1> ); } } render(<App />, document.getElementById('root'));
client/app/Core/MultiSelectDropDown/index.js
puja1234/DTA
/** * Created by saubhagya on 1/8/17. */ import React, { Component } from 'react'; import TtnButton from 'core/Button/btn'; class MultiSelectDropdown extends Component{ constructor(){ super(); } render(){ return( <div> {this.props.newCollab.map((item, index) ...
web/src/components/SimpleReport.js
Ding-Jun/Analysis
import React from 'react'; import { Link } from 'react-router' import { Card, Row, Col } from 'antd'; var RANK_LOW=0; var RANK_MEDIUM=3; var RANK_HIGH=5; class SimpleReport extends React.Component{ handleClick(e){ e.preventDefault(); console.log(this.props.id) } render(){ var rankCls; switch (this....
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js
xiaohu-developer/create-react-app
/** * 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. */ import Rea...
src/pages/julia-plus.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Julia Plus' /> )
app/index.js
atomixinteractions/material-theme-generator
import React from 'react' import ReactDOM from 'react-dom' import RedBox from 'redbox-react' import { AppContainer } from 'react-hot-loader' import RootComponent from './root' import baseStyles from './styles' const rootPoint = document.createElement('div') document.body.insertBefore(rootPoint, document.body.firstChi...
components/date_picker/DatePicker.js
showings/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { DATE_PICKER } from '../identifiers'; import events from '../utils/events'; import time from '../utils/time'; import InjectIconButton from '../button/IconB...
src/app/components/EthernetConnection.js
UrgBenri/UrgBenriWeb
import React from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import IconButton from 'material-ui/IconButton'; import ActionLabelOutline from 'material-ui/svg-icons/action/label-outline'; import ActionLabel from 'material-ui/svg-icons/action/label'; import Subheader fr...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-tree.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin} from './../common/common.js'; import List from './tree-list.js'; import Item from './tree-item.js'; import './tree.less'; export const Tree = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, Conten...
fields/types/relationship/RelationshipColumn.js
kwangkim/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; const moreIndicatorStyle = { color: '#bbb', fontSize: '.8rem', fontWeight: 500, marginLeft: 8, }; var RelationshipColumn = React.create...
examples/js/column-filter/date-filter-programmatically.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const startDate = new Date(2015, 0, 1); const endDate = new Date(); ...
src/shared/universal/components/App/Posts/Post/Post.js
DAppx/SharpReact
/* */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import * as FromState from '../../../../reducers'; function Post({ post }) { if (!post) { // Post hasn't been fetched yet. It would be better if we had a "status" // reducer attached to our post...
src/shared/views/plugins/Model3d/Model3d.js
in-depth/indepth-demo
import React from 'react' import styles from './Model3d.css' const Model3d = (props) => { return ( <div className={styles.holder}> <iframe width="100%" height="100%" src={props.url} frameBorder="0" allowFullScreen /> </div> ) } Model3d.propTypes = { url: React.PropTypes.string.isRequired, } expo...
src/index.dev.js
ryanswapp/react-starter-template
import 'App/style/index'; import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import routes from 'config/routes.js'; import { createStore, compose, applyMiddleware, combineReducers } from 'redux'; import { Provider } from 'react-redux'...
monkey/monkey_island/cc/ui/src/components/attack/techniques/T1107.js
guardicore/monkey
import React from 'react'; import ReactTable from 'react-table'; import {renderMachineFromSystemData, ScanStatus} from './Helpers' import MitigationsComponent from './MitigationsComponent'; class T1107 extends React.Component { constructor(props) { super(props); } static renderDelete(status) { if (sta...
client/components/todo-list.js
wbinnssmith/react-redo
import values from 'lodash/values'; import React from 'react'; import { connect } from 'react-redux'; import { pure } from 'recompose'; import Todo from './todo'; import { deleteTodo, toggleTodo, updateTodo } from '../modules/todos'; function stateToProps(state, props) { return { todos: values(state.todos).sort...
frontend/src/Artist/Index/Overview/ArtistIndexOverviews.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Grid, WindowScroller } from 'react-virtualized'; import ArtistIndexItemConnector from 'Artist/Index/ArtistIndexItemConnector'; import Measure from 'Components/Measure'; import dimensions from 'Styles/Variables/dimensions'; import get...
packages/map-gl/src/overlays/GeoJSONLayer.expo.js
wq/wq.app
import React from 'react'; import PropTypes from 'prop-types'; import { Marker as RNMarker, Polyline as RNPolyline } from 'react-native-maps'; import { Colors } from 'react-native-paper'; import { useGeoJSON } from '@wq/map'; const COLOR_LIST = Object.values(Colors); export default function GeoJSONLayer({ id, data })...
Redux-Weather/src/containers/searchBar.js
vivekbharatha/ModernReactWithReduxCourseUdemy
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from './../actions/index'; class SearchBar extends Component { constructor(props){ super(props); this.state = { term: '' }; this.onInputChange = this.onIn...
app/javascript/mastodon/features/list_editor/components/search.js
codl/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists'; import classNames from 'classnames'; const messages ...
app/containers/Merchant/index.js
theterra/newsb
import React from 'react'; import { connect } from 'react-redux'; import AuthStyle from './AuthStyle'; import BackgrndStyle from './BackgrndStyle'; import AuthForm from '../../components/AuthForm'; import CurveStyle from './CurveStyle'; import LogoStyles from './LogoStyles'; import LoadingStyle from './LoadingStyle'; i...
examples/src/components/Contributors.js
MattMcFarland/react-select
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
src/components/GameWrapper/GameWrapper.js
rainbowland302/hangman
import React from 'react'; import { Row, Col } from 'react-flexbox-grid'; import './GameWrapper.scss'; import WordChipContainer from '../../containers/WordChipContainer'; export const GameWrapper = (props) => { return ( <div id="gameContainer" className="game-wrapper"> <div className="row"> { ...
src/index.js
alpjs/alp-react-redux
import React from 'react'; import { renderToString } from 'react-dom/server'; import Helmet from 'react-helmet'; import reactTreeWalker from 'react-tree-walker'; import Logger from 'nightingale-logger/src'; import createIsModernBrowser from 'modern-browsers'; import htmlLayout from './layout/htmlLayout'; import createA...
client/routes.js
pandaben7890/react-panda-style-level-1
import React from 'react' import { Router, Route, IndexRoute, browserHistory } from 'react-router' import { App, Home, About } from './components' export default () => { return ( <Router history={browserHistory}> <Route path='/' component={App}> <IndexRoute component={Home} /> <Route path='...
src/actions/search.js
ello/webapp
import React from 'react' import * as ACTION_TYPES from '../constants/action_types' import * as MAPPING_TYPES from '../constants/mapping_types' import * as api from '../networking/api' import * as StreamRenderables from '../components/streams/StreamRenderables' import { ZeroState } from '../components/zeros/Zeros' exp...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
mxw0417/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import AvatarItem from...
src/index.js
sPyOpenSource/personal-website
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import './index.css'; import Layout from './Layout'; import Home from './view/Home'; import About from './view/About'; import Media from './view/Media'; import Projects from './view/Proje...
frontend/src/client/index.js
tsurupin/portfolio
import 'shared/styles/vendors'; import 'shared/styles/globals'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { applyRouterMiddleware, Router, browserHistory } from 'react-router'; import useScroll from 'react-router-scroll'; import { createStore, applyMidd...
docs/app/Examples/modules/Sidebar/SlideOut/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const SidebarVariationsExamples = () => ( <ExampleSection title='Slide Out'> <ComponentExample title='Left Slide Out' ...
src/app/modules/HeaderBar/components/HeaderBar.js
toxzilla/app
import React from 'react'; import {connect} from 'cerebral-view-react'; import {classNames} from 'react-dom-stylesheet'; import {User} from './../../../common/User'; import {Badge, Button, ButtonGroup, Icon, Popover, PopoverControl, Text} from './../../../common/UserInterface'; import profile from './../../../store/co...
app/main.js
firewenda/testwebsite
import React from 'react'; import Router from 'react-router'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import routes from './routes'; import Navbar from './components/Navbar'; let history = createBrowserHistory(); ReactDOM.render(<Router history={history}>...
src/RadioButton/RadioButtonGroup.js
rscnt/material-ui
import React from 'react'; import RadioButton from '../RadioButton'; import warning from 'warning'; class RadioButtonGroup extends React.Component { static propTypes = { /** * Should be used to pass `RadioButton` components. */ children: React.PropTypes.node, /** * The CSS class name of t...
components/GroupRow.js
Jack3113/edtBordeaux
import React from 'react'; import { Text, TouchableHighlight, View } from 'react-native'; import PropTypes from 'prop-types'; import style from '../Style'; export default class GroupRow extends React.PureComponent { static propTypes = { cleanName: PropTypes.string.isRequired, color: PropTypes.stri...
src/components/search-mapping-view/index.js
datea/datea-webapp-react
import './search-mapping-view.scss'; import React from 'react'; import {observer, inject} from 'mobx-react'; import InfiniteScroll from 'react-infinite-scroller'; import InfiniteLoaderIcon from '../infinite-loader-icon'; import Button from '@material-ui/core/Button'; import MappingColumnLayout from '../mapping-card-gri...
assets/jqwidgets/demos/react/app/treegrid/xmldata/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.on('bindingComplete', () => { this.refs.myTreeGrid.expandRow(2); }); ...
src/components/App.js
phuchle/recipeas
import React from 'react'; import Navigation from './Nav'; import Main from './Main'; import 'bootstrap/dist/css/bootstrap.css'; import '../App.css'; const App = (props) => { return ( <div className="App"> <Navigation /> <Main /> </div> ); }; export default App;
client/src/javascript/components/modals/settings-modal/ConnectivityTab.js
stephdewit/flood
import {Checkbox, Form, FormRow, Textbox} from 'flood-ui-kit'; import {FormattedMessage} from 'react-intl'; import React from 'react'; import ModalFormSectionHeader from '../ModalFormSectionHeader'; import SettingsTab from './SettingsTab'; export default class ConnectivityTab extends SettingsTab { state = {}; ge...
ajax/libs/react-select/1.0.0/react-select.es.js
holtkamp/cdnjs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; function arrowRenderer(_ref) { var onMouseDown = _ref.onMouseDown; return React.createElement('span', { clas...
client/admin/info/UsageSection.stories.js
Sing-Li/Rocket.Chat
import React from 'react'; import { UsageSection } from './UsageSection'; export default { title: 'admin/info/UsageSection', component: UsageSection, decorators: [ (fn) => <div className='rc-old'>{fn()}</div>, ], }; const statistics = { totalUsers: 'statistics.totalUsers', nonActiveUsers: 'nonActiveUsers', ...
js/jqwidgets/demos/react/app/scheduler/monthviewwithautorowheight/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { componentDidMount () { this.refs.myScheduler.ensureAppointmentVisible('id1'); } render () { let appointments = new Arr...
app/user/profile/UnselectedProfileSkillListItem.js
ecellju/internship-portal
import React from 'react'; import { Label, Icon } from 'semantic-ui-react'; import PropTypes from 'prop-types'; export default class UnselectedProfileSkillListItem extends React.Component { constructor() { super(); this.handleClick = (event, data) => { console.log(data.children[0].props.children); ...
packages/television/src/components/Head/Favicons.js
accosine/poltergeist
import React from 'react'; export default ({ config: { media, mediasuffix } }) => [ <link rel="apple-touch-icon" sizes="57x57" href={`${media}apple-touch-icon-57x57.png${mediasuffix}`} />, <link rel="apple-touch-icon" sizes="60x60" href={`${media}apple-touch-icon-60x60.png${mediasuffix}`} ...
docs/client/components/pages/Focus/SimpleFocusEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import { convertFromRaw, EditorState, } from 'draft-js'; import Editor, { composeDecorators } from 'draft-js-plugins-editor'; import createFocusPlugin from 'draft-js-focus-plugin'; import createColorBlockPlugin from './colorBlockPlugin'; import editorStyles from './editor...
packages/ndla-image-search/src/ImageSearchForm.js
netliferesearch/frontend-packages
/** * Copyright (c) 2016-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button } from 'ndla-ui'; import BEMHelper from 'react...
packages/components/src/DateTimePickers/pickers/TimePicker/TimePicker.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { timeToStr, pad } from '../../Time/time-extraction'; import withListGesture from '../../../Gesture/withListGesture'; import theme from './TimePicker.scss'; function isBefore(a, b) { if (a.hours > b.hours) { ...
mdbreact/components/NavItem.js
ryanwashburne/react-skeleton
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; class NavItem extends Component { render() { const { children, className, tag: Tag, ...attributes } = this.props; const classes = classNames( 'nav-item', ...
graphwalker-studio/src/main/js/index.js
KristianKarl/graphwalker-project
import "core-js/stable"; import "regenerator-runtime/runtime"; import React from 'react'; import { render } from "react-dom"; import { Provider } from 'react-redux' import store from './redux/store' import Application from './Application'; render(<Provider store={store}><Application /></Provider>, document.getElementB...
src/js/admin/articles/filters/label-filter/label-filter.js
ucev/blog
import React from 'react' import { connect } from 'react-redux' import FilterInput from '../filter-input' const LabelFilter = ({ value }) => ( <FilterInput title="标签" label="label" value={value} /> ) const mapStateToProps = state => ({ value: state.filters.label, }) const mapDispatchToProps = () => ({}) const ...
packages/veritone-react-common/src/components/OAuthLoginButton/story.js
veritone/veritone-sdk
import React from 'react'; import { storiesOf } from '@storybook/react'; import OAuthLoginButton from './'; storiesOf('OAuthLoginButton', module) .add('With text', () => { return <OAuthLoginButton />; }) .add('Logo icon only', () => { return <OAuthLoginButton iconOnly />; });
frontend/js/components/ecosystems/LocationForm.js
Code4HR/okcandidate-platform
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Hr from './../atoms/Hr'; import Alert from './../organisms/Alert'; import TextField from './../organisms/TextField'; import { getLocationByGPS, getLocationByAddress, fetchNonRegionLimitedSurveys } from './....
src/screens/App/components/Header.js
enesTufekci/react-clear-starter-kit
/* @flow */ import React from 'react'; const Header = () => ( <div className="App-header"> <h2>React Clear Starter Kit</h2> </div> ); export default Header;
webpack/containers/questions/QuestionModalContainer.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Modal, Button, Row, Col } from 'react-bootstrap'; import $ from 'jquery'; import { saveQuestion } from '../../actions/questions_actions'; import { fe...
src/components/UserDetailSections/ExtendedInfo/components/RequestPreferencesView/RequestPreferencesView.js
folio-org/ui-users
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { Col, KeyValue, Row, } from '@folio/stripes/components'; import { requestPreferencesShape } from '../../../../../shapes'; import styles from './RequestPreferencesView.css'; class...
src/containers/views/PageNew.js
jekyll/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory, withRouter } from 'react-router'; import DocumentTitle from 'react-document-title'; import CreateMarkdownPage from '../../components/C...
app/containers/SignUpContainer.js
jcarral/cafeADE
import React, { Component } from 'react'; import { connect } from 'react-redux'; import SignUp from '../components/SignUp'; import LoadingPage from '../components/LoadingPage'; import { signUp } from '../actions/statusActions'; class SignUpContainer extends Component { static navigationOptions = { title: 'Regi...
src/routes/authority/account/Filter.js
muidea/magicSite
import React from 'react' import PropTypes from 'prop-types' import { Form, Button, Row, Col, Input, Popconfirm } from 'antd' const { Search } = Input const ColProps = { xs: 24, sm: 12, style: { marginBottom: 16 }, } const TwoColProps = { ...ColProps, xl: 96, } const Filter = ({ onAdd, onFilterChange, ...
packages/es-components/src/components/controls/radio-buttons/RadioButton.js
jrios/es-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Label from '../label/Label'; import getRadioFillVariables from './radio-fill-variables'; import { useTheme } from '../../util/useTheme'; import ValidationContext from '../ValidationContext'; import useUniqueId...
test/integration/scss-fixtures/npm-import-nested/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
app/components/Product.js
Byte-Code/lm-digital-store-private-test
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { Map, fromJS } from 'immutable'; import glamorous from 'glamorous'; import throttle from 'lodash/throttle'; import inRange from 'lodash/inRange'; import ImageSlider from './...
src/entry-points/client.js
shaunstanislaus/react-redux-starter-kit
import React from 'react'; import App from 'containers/app'; import { history } from 'react-router/lib/BrowserHistory'; React.render(<App history={history} />, document.getElementById('mount'));
src/svg-icons/image/filter-7.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter7 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2l4-8V5h-6v2h4l-4 8h2z...
__tests__/TestComponentWhichShouldThrow4.js
liegeandlief/whitelodge
'use strict' import React from 'react' import {AddStoreSubscriptions} from '../src/' class TestComponent extends React.Component { render () { return null } } export default AddStoreSubscriptions(TestComponent, ['testStore'], window, ['notAString'])
app/javascript/mastodon/components/column_back_button_slim.js
esetomo/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButtonSlim extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length ==...
docs/src/app/components/pages/components/Avatar/Page.js
pradel/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 avatarReadmeText from './README'; import AvatarExampleSimple from './Exam...
src/bundles/ApplicationsAdmin/components/AppDiff/AppDiff.js
AusDTO/dto-digitalmarketplace-frontend
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Control, LocalForm } from 'react-redux-form'; import { appSave } from '../../redux/modules/application'; import { diff_match_patch } from 'diff-match-patch'; import styles from './AppDiff.css'; import traverse from 'traverse'; c...
app/javascript/mastodon/components/missing_indicator.js
codl/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='regeneration-indicator missing-indicator'> <div> <div className='regeneration-indicator__figure' /> <div className='regeneration-indicator__label'> <FormattedMessage id=...
src/html/tags/HtmlTagLi.js
saketkumar95/zulip-mobile
import React from 'react'; import { StyleSheet, View } from 'react-native'; import styles from '../HtmlStyles'; import HtmlNodeText from '../HtmlNodeText'; import renderHtmlChildren from '../renderHtmlChildren'; const BULLET = '\u2022'; const customStyles = StyleSheet.create({ text: { flexWrap: 'wrap', fle...
src/index.js
ebn646/react-moviesearch
import React from 'react' import { render } from 'react-dom' import { browserHistory, hashHistory,Router, Route, IndexRoute, Link, withRouter } from 'react-router' import App from './components/app/app.js' import Home from './components/home/home.js' import Movie from './components/movie/movie.js' import MovieList from...
src/server.js
samerce/lampshade
/** * 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 'babel-polyfill'; import path from 'path'; import e...
app/app.js
maciejsikora/react-task-list
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import TaskBox from './tasklist/taskbox.jsx'; const App = React.createClass({ render:function(){ r...
frontend/components/Question.js
ParroApp/parro
import React from 'react'; import Navbar from './Navbar'; import TypeWriter from 'react-typewriter'; import RecordRTC from 'recordrtc'; const StereoAudioRecorder = RecordRTC.StereoAudioRecorder; import {captureUserMedia, uploadAudio} from './AppUtils'; class Question extends React.Component { constructor(props) { ...
src/DataTables/DataTablesTable.js
hyojin/material-ui-datatables
import React from 'react'; import {Table} from 'material-ui/Table'; class DataTablesTable extends Table { createTableBody(base) { return React.cloneElement( base, { allRowsSelected: this.state.allRowsSelected, multiSelectable: this.props.multiSelectable, onCellClick: this.onC...
node_modules/react-router/es/Redirect.js
juhov/travis-test
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
app/private/indexerApp/imports/ui/pages/Documents.js
ericvrp/GameCollie
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, Button } from 'react-bootstrap'; import DocumentsList from '../components/DocumentsList'; const Documents = () => ( <div className="Documents"> <Row> <Col xs={ 12 }> <div className="page-header clearfix"> <...
src/svg-icons/social/poll.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPoll = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); SocialPoll = ...
client/src/javascript/components/icons/DownloadThickIcon.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class DownloadThickIcon extends BaseIcon { render() { return ( <svg className={`icon icon--download ${this.props.className}`} viewBox={this.getViewBox()}> <polygon points="44.1,23 33,39.7 33,4.6 27,4.6 27,39.7 15.9,23 10....
src/index.js
arimaulana/rest-api-frontend-in-react
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import jwtDecode from 'jwt-decode'; import setAuthorizationToken from './utils/setAuthorizationToken'; import { setCurrentUser } from './actions/authA...
stories/props/drilldownView.stories.js
jquense/react-big-calendar
import React from 'react' import moment from 'moment' import { Calendar, Views, momentLocalizer } from '../../src' import demoEvents from '../resources/events' import mdx from './drilldownView.mdx' const mLocalizer = momentLocalizer(moment) export default { title: 'props', component: Calendar, argTypes: { l...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js
leechuanjun/TLReactNativeProject
import React, { Component } from 'react'; class Foo extends Component { render() {} }
src/components/Sidebar/Copyright/Copyright.js
Chogyuwon/chogyuwon.github.io
import React from 'react'; import styles from './Copyright.module.scss'; const Copyright = ({ copyright }) => ( <div className={styles['copyright']}> {copyright} </div> ); export default Copyright;
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js
horizon-z40/RN-homework
import React, { Component } from 'react'; class Foo extends Component { render() {} }
docs/src/app/components/pages/get-started/ServerRendering.js
skarnecki/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import serverRenderingText from './serverRendering.md'; const ServerRendering = () => ( <div> <Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} /> <MarkdownElemen...
src/svg-icons/navigation/subdirectory-arrow-right.js
matthewoates/material-ui
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...
clients/libs/slate-editor-alignment-plugin/src/AlignmentCenterButton.js
nossas/bonde-client
/* eslint-disable react/prop-types */ import React from 'react' import classnames from 'classnames' import FontAwesome from 'react-fontawesome' import { Button } from '@slate-editor/components' import { alignmentMarkStrategy, hasMark, getMark } from './AlignmentUtils' const AlignmentCenterButton = ({ value, onChange,...
src/routes/contact/Contact.js
MxMcG/tourlookup-react
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
KamilSzot/react-router
import React from 'react'; class Grades extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignments: COURSES[params.courseId].assignments //}); //} render () { //var { assignments } = this.props; var assignments = COURSES[this.props.params.courseId].assignments...
mlflow/server/js/src/experiment-tracking/components/artifact-view-components/ShowArtifactPdfView.js
mlflow/mlflow
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getSrc } from './ShowArtifactPage'; import { Document, Page, pdfjs } from 'react-pdf'; import { Pagination, Spin } from 'antd'; import { getArtifactBytesContent } from '../../../common/utils/ArtifactUtils'; import './ShowArtifactPdfV...
packages/icons/src/dv/GithubAlt.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvGithubAlt(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M7.25 16.633c-.563-2.05.198-6.693 1.375-9.524 2.664.284 5.942 1.787 9.868 4.5 3.516-.726 7.162-.68 10.914 0 3.572-2.35 6.914-4.014 9.861-4.5 1.129 ...
src/components/ShareExperience/TimeSalaryForm/BasicInfo.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import subscribeValidation from 'common/subscribeValidation'; import Select from 'common/form/Select'; import TextInput from 'common/form/TextInput'; import CompanyQuery from '../common/CompanyQuery'; import IsEmployed from '../WorkExperiencesForm/WorkInfo...
fields/types/relationship/RelationshipField.js
andreufirefly/keystone
import async from 'async'; import Lists from '../../../admin/client/stores/Lists'; import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import xhr from 'xhr'; import { Button, InputGroup } from 'elemental'; function compareValues (current, next) { const currentLength = current ?...
react/features/overlay/components/web/ReloadButton.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { reloadNow } from '../../../app/actions'; import { translate } from '../../../base/i18n'; import { connect } from '../../../base/redux'; /** * The type of the React {@code Component} props of {@link ReloadButton}. */ type Props = { /** * Reloads ...
app/react-icons/fa/text-height.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaTextHeight extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m38.9 31.4q0.8 0 1 0.4t-0.3 1l-2.8 3.7q-0.4 0.5-1.1 0.5t-1.1-0.5l-2.8-3.7...
docs/app/Examples/collections/Breadcrumb/Types/BreadcrumbExampleProps.js
koenvg/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const sections = [ { key: 'Home', content: 'Home', link: true }, { key: 'Store', content: 'Store', link: true }, { key: 'Shirt', content: 'T-Shirt', active: true }, ] const BreadcrumbExampleProps = () => ( <Breadcrumb icon='right angle' ...
examples/globalsaga-pair-of-random-gif-viewers/src/boilerplate.js
HansDP/redux-container-state
import React from 'react' import { render } from 'react-dom' import { createStore, compose, combineReducers } from 'redux' import { Provider, connect } from 'react-redux' import { sagaStoreEnhancer } from 'redux-container-state-globalsaga' export default (containerDomId, View, updater) => { const storeFactory = com...
src/components/Login.js
ValentinAlexandrovGeorgiev/iStore
import React, { Component } from 'react'; import auth from './Auth'; import ajax from 'superagent'; import SERVER_URL from '../config'; class Login extends Component { constructor(){ super(); this.state = { }; this.authenticate = this.authenticate.bind(this); } authenticate(e...
src/svg-icons/content/archive.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentArchive = (props) => ( <SvgIcon {...props}> <path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-....
src/scenes/Auth/components/AuthPage.js
ntxcode/react-base
import React from 'react'; import './AuthPage.css'; const AuthPage = props => <div className="AuthPage"> <header> <h1 className="AuthPageTitle">{props.title}</h1> </header> {props.children} </div>; export default AuthPage;
src/server.js
avantcontra/react-redux-custom-starter
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/store/configureStore...