path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/index.js
natac13/portfolio-2016
// Immutable dev tools makes for easier viewing of Maps and Lists in the // Chrome Developer tools. import Immutable from 'immutable'; import installDevTools from 'immutable-devtools'; installDevTools(Immutable); import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); import React from 're...
app/scripts/components/Explore/samples/datasetItem.js
resource-watch/prep-app
import React from 'react'; import Switch from '../../Button/Switch'; export const DATASET_ITEM_SAMPLE = { metadata: { title: 'Title', subtitle: 'Subtitle', description: 'Description', tags: ['Hazard', 'Temperature'] }, leftElement: <Switch onChange={() => {}} checked />, toolsElements: [ (<...
client/components/FlassCommon/Video/VideoVolumeBar/VideoVolumeBar/VideoVolumeBarComponent.js
Nexters/flass
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import { VideoVolumeBar } from './VideoVolumeBarStyled'; import './VideoVolumeBarComponentStyles.scss'; const { func, bool, number } = PropTypes; const propTypes = { onVolumebarClick: func.isRe...
client/src/index.js
iwazaru/all-stereotypes-are-wrong
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
geonode/monitoring/frontend/src/components/cels/layer-select/index.js
mcldev/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; import actions from './actions'; import styles from './styles'; const mapStateToProps = (state) => ({ interval: stat...
src/components/OverlayTitle/OverlayTitle.js
Zoomdata/nhtsa-dashboard-2.2
import styles from './OverlayTitle.css'; import React, { Component } from 'react'; import OverlayDescription from '../OverlayDescription/OverlayDescription'; class OverlayTitle extends Component { render() { const { makeWrapperDimensions, aboutVisibility, hideOverlay } = this.props; const overlayT...
resources/src/js/components/Player/FloatingPlayer.js
aberon10/thermomusic.com
'use strict'; import React from 'react'; import displayPlayer from './animation'; export default class FloatingPlayer extends React.Component { render() { return( <div className="floating-player" id="floating-player"> <div className="floating-player__left"> <button className="control-button toggle-bu...
src/svg-icons/maps/local-airport.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalAirport = (props) => ( <SvgIcon {...props}> <path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon> ); MapsLocalA...
src/docs/apiExamples/LabelList.js
recharts/recharts.org
import React from 'react'; import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Label, LabelList } from 'recharts'; const data = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400, }, { name: 'Page B', uv: 3000, pv: 1398, amt: 2210, }, { name: 'Page C', uv: 2000, pv...
src/components/Feedback/Feedback.js
grantgeorge/react-app
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedb...
src/views/NotFoundView/NotFoundView.js
itjope/tipskampen
import React from 'react' import { Link } from 'react-router' export class NotFoundView extends React.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> ) } } exp...
app/Recipezy.js
hippothesis/Recipezy
/* * Copyright 2017-present, Hippothesis, 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. */ 'use strict'; import React, { Component } from 'react'; import { Provider } from 'react-redux'; import Sto...
src/containers/App/App.js
Nuriddinkhuja/photoshare
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Header from '../Header/Header'; export default class App extends Component { static propTypes = { children: PropTypes.object.isRequired }; render() { const { children } = this.props; return ( <div> <He...
Realization/frontend/czechidm-core/src/content/role/RoleDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; import _ from 'lodash'; import { connect } from 'react-redux'; import uuid from 'uuid'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from '../...
packages/starter-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js
chungchiehlun/create-starter-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'; function load(prefix) { return [ { id: 1, [`${prefi...
packages/lore-tutorial/templates/es6/step2/src/components/Layout.js
lore/lore
/** * This component is intended to reflect the high level structure of your application, * and render any components that are common across all views, such as the header or * top-level navigation. All other components should be rendered by route handlers. **/ import React from 'react'; import Header from './Heade...
src/components/Username/WithCard.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import withProps from 'recompose/withProps'; import userCardable from '../../utils/userCardable'; import UsernameBase from '.'; const enhance = compose( userCardable(), withProps(props => ({ onUsernameClick...
example/main.js
teosz/react-chartist
import React from 'react'; import ChartistGraph from '../index'; class Pie extends React.Component { render() { var data = { labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'], series: [ [1, 2, 4, 8, 6, -2, -1, -4, -6, -2] ] }; var options = { high: 10...
src/packages/@ncigdc/utils/withControlledAccess/index.js
NCI-GDC/portal-ui
import React from 'react'; import { connect } from 'react-redux'; import { isEqual, omit, } from 'lodash'; import { compose, lifecycle, setDisplayName, withHandlers, withPropsOnChange, withState, } from 'recompose'; import { fetchApi } from '@ncigdc/utils/ajax'; import withRouter from '@ncigdc/utils/wi...
src/routes/Counter/components/Counter.js
mje0002/originReact
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
tests/react/src/components/App.js
fruuf/pack
import React from 'react'; import Message from '/components/Message'; import './app.scss'; export default () => ( <div className="app"> <Message /> </div> );
src/components/searchbar/searchbar.js
woshisbb43/coinMessageWechat
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; import Icon from '../icon'; /** * weui search component * */ class SearchBar extends React.Component { static propTypes = { /** * default value for ...
src/parser/druid/guardian/modules/spells/IronFur.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SCHOOLS from 'game/MAGIC_SCHOOLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Anal...
src/map/js/components/LayerPanel/WaterStressLegend.js
wri/gfw-water
import {layerPanelText} from 'js/config'; import Request from 'utils/request'; import React from 'react'; export default class WaterStressLegend extends React.Component { constructor(props) { super(props); //- Set legend Info to an empty array until data is returned this.state = { legendInfoLevels...
app/js/components/ColorDisplay.js
raulalgo/scales-react
'use strict'; import React from 'react'; import Colorable from 'colorable'; var divStyle = { backgroundColor: 'rgb(255,255,0)', minWidth: '100%' } var textClass = "darkText" class ColorDisplay extends React.Component{ constructor(props) { super(props); } defaultState () { } re...
src/svg-icons/file/cloud-download.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudDownload = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-...
src/parser/rogue/subtlety/modules/core/NightbladeUptime.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import Enemies from 'parser/shared/modules/Enemies'; import StatisticBox from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIc...
src/parser/deathknight/blood/modules/talents/Tombstone.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatPercentage } from 'common/format'; import DamageTracker from 'parser/shared/modules/AbilityTracker'; import TalentStatisticBox from 'in...
src/components/Header/Header.js
tinwaisi/take-home
/** * 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 withStyles from 'isom...
modules/experiences/client/components/create-experience/Report.js
Trustroots/trustroots
// External dependencies import { useTranslation } from 'react-i18next'; import PropTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; // Internal dependencies import '@/config/client/i18n'; import Switch from '@/modules/core/client/components/Switch'; const ReportContainer = ...
src/components/category/category-list.js
chemoish/react-webpack
import React from 'react'; import Reflux from 'reflux'; import CategoryList from './component/_category-list.js'; import CategoryListDomainAction from './store/category-list-domain-action.js'; import CategoryListDomainStore from './store/category-list-domain-store.js'; export default React.createClass({ mixins: [...
assets/jqwidgets/demos/react/app/bulletchart/righttoleftlayout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxBulletChart from '../../../jqwidgets-react/react_jqxbulletchart.js'; class App extends React.Component { render() { let ranges = [ { startValue: 0, endValue: 200, color: '#000000', opacity: 0.5 }, ...
src/routes/dashboard/index.js
medevelopment/updatemeadmin
/** * 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 Dashboard from './Das...
src/routes/about/index.js
DaveyEdwards/myiworlds
/** * 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 { graphql } from 'rel...
.structor/src/MouseButtonsOverlay.js
ipselon/structor-meta
import React, { Component } from 'react'; class MouseButtonsOverlay extends Component { constructor (props) { super(props); this.handleMouseOver = this.handleMouseOver.bind(this); this.handleMouseOut = this.handleMouseOut.bind(this); this.handleContextMenu = this.handleContextMenu.bind(this); th...
src/instructions/HowItWorks.react.js
DhammaLuke/citybook
import React, { Component } from 'react'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import '../../styles/instructions.scss'; export default class HowItWorks extends Component { render() { return ( <section className="how-it-works"> <Row> <Col m...
App/Components/ChatPage.js
OUCHUNYU/Ralli
import groupsApi from'../Utils/groupsApi.js' import usersApi from'../Utils/usersApi.js' import Firebase from 'firebase' import React, { Component } from 'react'; import { StyleSheet, Text, AlertIOS, ListView, View, TextInput, TouchableHighlight, Image, } from 'react-native'; let styles = StyleSheet.c...
src/components/Carousel/Carousel.js
sprakash1993/NVSApp
import React, { Component } from 'react'; import { Carousel, CarouselItem, CarouselControl, CarouselIndicators, CarouselCaption } from 'reactstrap'; const items = [ { src: 'data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22800%22%20height%3D%22400%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg...
zwdemoRect/src/index.js
send2ocean/nodelearn
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; ReactDO...
src/containers/HomePage.js
wilsonkv/mock-project
import React, { Component } from 'react'; import { connect } from 'react-redux'; import FontIcon from 'react-md/lib/FontIcons'; import PropTypes from 'prop-types'; import TextField from 'react-md/lib/TextFields'; import Loader from 'react-loader'; import { Card, CardTitle, CardText } from 'react-md'; import { fetchAll...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/library-music.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57 0 1.08.19 1.5.51V5h4v2zM4 6H2v14...
src/index.js
bedoherty/NameGame
import React from 'react'; import ReactDOM from 'react-dom'; // Import our components import Window from './components/Window'; import './index.css'; ReactDOM.render( <Window />, document.getElementById('root') );
examples/js/column/column-style-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
app/javascript/mastodon/components/relative_timestamp.js
WitchesTown/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' }, minutes: { id: 'relat...
dayangWeb/src/containers/AppContainer.js
dianziguan1234/React
import { connect } from 'react-redux' import React, { Component } from 'react'; import Home from '../components/HomePage' import {btnClick} from '../actions/BtnClickAction' // var Home = React.createClass({ // render:function() { // console.info("HomeState") // console.info("HomeState",this.props.H...
fixtures/flight/src/index.js
ericyang321/react
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTransportDOMClient from 'react-transport-dom-webpack'; import App from './App'; let data = ReactTransportDOMClient.createFromFetch( fetch('http://localhost:3001') ); ReactDOM.render(<App data={data} />, document.getElementById('root'));
src/components/AthletePage.js
pneiman1/react-athlete-medals-app
import React from 'react'; import { Link } from 'react-router-dom'; import { AthletesMenu } from './AthletesMenu'; import { Medal } from './Medal'; import { Flag } from './Flag'; export const AthletePage = ({ athlete, athletes }) => { const headerStyle = { backgroundImage: `url(/img/${athlete.cover})` }; return ( ...
fixtures/packaging/systemjs-builder/dev/input.js
facebook/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
src/svg-icons/maps/navigation.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsNavigation = (props) => ( <SvgIcon {...props}> <path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/> </SvgIcon> ); MapsNavigation = pure(MapsNavigation); MapsNavigation.displayName = 'MapsNavigation'; ...
src/components/common/svg-icons/communication/voicemail.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationVoicemail = (props) => ( <SvgIcon {...props}> <path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3...
src/routes.js
wenjiezhang2013/react_learn
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
src/svg-icons/device/screen-lock-landscape.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockLandscape = (props) => ( <SvgIcon {...props}> <path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c...
app/js/index.js
workco/hackathon-talent
'use strict'; import React from 'react'; import Router from 'react-router'; import routes from './Routes'; if(process.env.NODE_ENV !== 'production' ) { // Enable React devtools window.React = React; } Router.run(routes, Router.HistoryLocation, function(Handler, state) { React.render(<Handler params={state.para...
js/components/poeme_details/index.js
Rebaiahmed/Alchaaer
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; import { Container, Header, Title, Right, List, ListItem,InputGroup, Input ,Picker,Badge,H3, Fab,Content, Card, CardItem, Thumbnail, Text, Button, Icon, Left, Body} from 'native-base'; i...
packages/ringcentral-widgets-docs/src/app/pages/Components/Footer/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
application/3-react/js/app.js
bishopZ/Sandbox
import React from 'react'; import { render } from 'react-dom'; import { HashRouter as Router, Route } from 'react-router-dom'; import { Provider, connect } from 'react-redux'; import { ConnectedRouter } from 'connected-react-router'; import { history, store } from './database/store.js'; import * as Actions from './d...
frontend/js/components/organisms/RadioButtons.js
ttavenner/okcandidate-platform
'use strict'; import React, { Component } from 'react'; import RadioButton from './../molecules/RadioButton'; import PropTypes from 'prop-types'; class RadioButtons extends Component { render() { return ( <div className="radio-buttons"> { !this.props.hideN...
app/javascript/mastodon/features/account/components/header.js
rainyday/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from 'mastodon/components/button'; import ImmutablePureComponent from 'react-immutable-pure-component'; impo...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
yangchaogit/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import Inputs from 'utils/Inputs'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes...
src/components/video-list.js
romashka50/ReactReduxModern
import React from 'react'; import VideoItem from './video-list-item'; const VideoList = (props) => { const videoItems = props.videos.map(item => <VideoItem key={item.etag} video={item} onSelectVideo={props.onSelectVideo} />); return ( <ul className="col-md-4 col-lg-4 col-xl-4 list-group"> {videoItems} ...
src/components/Header/Header.js
ADourgarian/Syscoin-Payroll
/** * 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 withStyles from 'isom...
src/app/views/CurriculumVitae/index.js
nhardy/web-scaffold
import React, { Component } from 'react'; import { Helmet } from 'react-helmet'; import { Link } from 'react-router'; import cx from 'classnames'; import config from 'app/config'; import { smoothScrollTo } from 'app/lib/scroll'; import { makeAbsoluteUrl, makeTitle } from 'app/lib/social'; import DefaultLayout from 'ap...
react/features/base/label/components/CircularLabel.web.js
bgrozev/jitsi-meet
// @flow import React from 'react'; import AbstractCircularLabel, { type Props as AbstractProps } from './AbstractCircularLabel'; type Props = AbstractProps & { /** * Additional CSS class names to add to the root of {@code CircularLabel}. */ className: string, /** * HTML ID attribute...
app/assets/javascripts/react/views/My/TokenNewPage.js
Madek/madek-webapp
import React from 'react' import f from 'lodash' import ui from '../../lib/ui.coffee' import UI from '../../ui-components/index.coffee' import RailsForm from '../../lib/forms/rails-form.cjsx' const t = ui.t class TokenNewPage extends React.Component { render(props = this.props) { const action = f.get(props, 'get...
src/routes/main/about/About.js
labzero/lunch
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Grid from 'react-bootstrap/lib/Grid'; import s from './About.scss'; const About = () => ( <div className={s.root}> <Grid className={s.grid}> <h2>About Lunch</h2> <p> Hi! I’m {' '} ...
app/components/Loading.js
zhanghaj00/shop-reactnative
/** * ShopReactNative * * @author Tony Wong * @date 2016-08-13 * @email 908601756@qq.com * @copyright Copyright © 2016 EleTeam * @license The MIT License (MIT) */ import React from 'react'; import { StyleSheet, View, Text, ActivityIndicator, } from 'react-native'; import Common from '../common...
src/components/widgets/O_SimpleForm_H_2/Dropdown/index.js
humaniq/humaniq-pwa-website
import React, { Component } from 'react'; import * as T from "prop-types"; import './styles.scss'; import {cssClassName} from 'utils' const cn = cssClassName('M_Dropdown_H') import onClickOutside from 'react-onclickoutside' import A_InputText_H from 'A_InputText_H' class M_Dropdown extends Component { state = { ...
src/components/TextInputCSSModules/TextInputCSSModules.js
ThomasBem/ps-react-thomasbem
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styles from './textInput.css'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text",...
src/panels/ControlPanel/FilterPanel/index.js
Kitware/visualizer
import React from 'react'; import PropTypes from 'prop-types'; import ActionList from 'paraviewweb/src/React/Widgets/ActionListWidget'; import style from 'VisualizerStyle/ToggleIcons.mcss'; import { connect } from 'react-redux'; import { selectors, actions, dispatch } from '../../../redux'; const ICON_MAPPING = { ...
src/routes/app/routes/ui/routes/pricingTables/components/PricingTables.js
ahthamrin/kbri-admin2
import React from 'react'; import QueueAnim from 'rc-queue-anim'; const PricingTables = () => ( <div> <div className="divider divider-lg" /> <div className="row"> <div className="col-md-3 col-xsm-6"> <section className="pricing-table pricing-table-primary"> <header><h2>Free</h2></head...
client/src/app-components/popup-message.js
ivandiazwm/opensupports
import React from 'react'; import i18n from 'lib-app/i18n'; import ModalContainer from 'app-components/modal-container'; import Button from 'core-components/button'; import Icon from 'core-components/icon'; import Message from 'core-components/message'; class PopupMessage extends React.Component { static propTy...
src/components/Header/Header.js
albperezbermejo/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../../utils/Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { ...
src/components/PopupBlocked.js
prjctrft/mantenuto
import React from 'react'; import { ClipLoader } from 'react-spinners'; import RefitButton from 'components/RefitButton'; const PopupBlocked = (props) => ( <div> <h3>Your room will open up in a new window. Make sure you turn off your browser's popup blocker!</h3> <RefitButton onClick={() => props.open...
example/src/TextField.js
ryo33/react-state-redux
import React from 'react' import { connect } from '../../src/index' const mapStateToProps = (state, componentState) => ({ value: componentState }) function componentReducer(state = "", { type, payload }) { switch (type) { case 'CHANGE': return payload default: return state } } const TextFi...
libs/util.js
dersoncheng/react-native-iconfont-text
import React from 'react'; const glypyMapMaker = (glypy) => Object.keys(glypy).map((key) => { return { key, value: String.fromCharCode(parseInt(glypy[key], 16)) }; }).reduce((map, glypy) => { map[glypy.key] = glypy.value return map; }, {}); export { glypyMapMaker };
test/fixtures/basic/pages/stateless.js
dstreet/next.js
import React from 'react' export default () => <h1>My component!</h1>
examples/js/app.js
pvoznyuk/react-bootstrap-table
import React from 'react'; import ReactDOM from 'react-dom'; import { IndexRoute, Router, Route } from 'react-router'; import createHistory from 'history/lib/createHashHistory'; const history = createHistory( { queryKey: false } ); import App from './components/App'; import Home from './components/Home'; import Gett...
index.js
EmilScherdin/react-native-local-notification
import React, { Component } from 'react'; import { PanResponder, View, Text, StyleSheet, Platform, LayoutAnimation, InteractionManager, StatusBar, UIManager } from 'react-native'; import PropTypes from 'prop-types'; import timer from 'react-native-timer'; class LocalNotificationItem extends Component...
cheesecakes/plugins/settings-manager/admin/src/components/ContentHeader/index.js
strapi/strapi-examples
/** * * ContentHeader * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import styles from './styles.scss'; /* eslint-disable react/require-default-props */ function ContentHeader({ name, description }) { // eslint-disable-line react/prefer-stateless-f...
lib/components/WeatherNow/WeatherNow.js
the-oem/weathrly
import React, { Component } from 'react'; import Moment from 'moment'; import './WeatherNow.css'; const WeatherNow = (now) => { const { cityState, currentCondition, currentTemp, icon, today, todayCondition, todayHigh, todayLow, } = now; ...
fields/types/boolean/BooleanField.js
pr1ntr/keystone
import React from 'react'; import Field from '../Field'; import Checkbox from '../../components/Checkbox'; import { FormField } from 'elemental'; module.exports = Field.create({ displayName: 'BooleanField', statics: { type: 'Boolean', }, propTypes: { indent: React.PropTypes.bool, label: React.PropTypes.strin...
app_learn/src/constants/constant.js
liuboshuo/react-native
/** * Created by liushuo on 17/4/19. */ import React, { Component } from 'react'; import { StyleSheet, Dimensions } from 'react-native'; export const screenWidth = Dimensions.get("window").width; export const screenHeigt = Dimensions.get("window").height; export const viewBgColor = "#e6e6e6"; export con...
test/integration/css-fixtures/multi-global-reversed/pages/_app.js
flybayer/next.js
import React from 'react' import App from 'next/app' import '../styles/global2.css' import '../styles/global1.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src/docs/patterns/PrimaryPageDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Anchor from 'grommet/components/Anchor'; import Box from 'grommet/components/Box'; import Header from 'grommet/components/Header'; import Heading from 'grommet/components/Heading'; import Label from 'g...
src/components/TimeAndSalary/SearchScreen/Helmet.js
goodjoblife/GoodJobShare
import React from 'react'; import Helmet from 'react-helmet'; import { formatTitle, formatCanonicalPath } from 'utils/helmetHelper'; import { SITE_NAME } from '../../../constants/helmetData'; const SearchScreenHelmet = ({ keyword, page }) => { const title = `查詢${keyword}的結果 - 第${page}頁`; const description = `查詢${k...
Beatbox_app/blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
whiletrace/beatbox
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
time-on-task/app/components/RadioGroup.js
ajaymore/time-on-task
import React, { Component } from 'react'; import { View } from 'react-native'; import { CheckBox } from 'react-native-elements'; import PropTypes from 'prop-types'; export default class RadioGroup extends Component { state = { checkedId: this.props.selectedId }; _checked = checkedId => { this.setState({ ...
src/components/Main.js
ShangShungFoundation/tib_learn_app
import React from 'react' import { Switch, Route } from 'react-router-dom' import Home from './Home' import Sentence from './Sentence' import SpellChecker from './SpellChecker' import ExportWidget from './ExportWidget' // The Main component renders one of the three provided // Routes (provided that one matches). Both ...
src/Col.js
jsbranco/react-materialize
import React from 'react'; import cx from 'classnames'; import constants from './constants'; const Col = ({ children, className, node: C = 'div', s, m, l, offset, ...other }) => { let sizes = { s, m, l }; let classes = { col: true }; constants.SIZES.forEach(size => { classes[size + sizes[siz...
internals/templates/notFoundPage.js
mhtsharma9482/reactTest
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
react-components/src/library/components/stem-finder.js
concord-consortium/rigse
import React from 'react' import Component from '../helpers/component' import StemFinderResult from '../components/stem-finder-result' import sortByName from '../helpers/sort-by-name' import sortResources from '../helpers/sort-resources' import fadeIn from '../helpers/fade-in' import pluralize from '../helpers/plurali...
ui/src/js/findTree/FindTreePage.js
Dica-Developer/weplantaforest
import axios from 'axios'; import counterpart from 'counterpart'; import React, { Component } from 'react'; import Notification from '../common/components/Notification'; import FindTrees from './FindTrees'; import TreeItem from './TreeItem'; import TreesFound from './TreesFound'; require('./findTreePage.less'); expor...
src/index.js
dchudz/PlannedPooling
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
lib/components/Row.js
Raathigesh/Dazzle
import React from 'react'; import PropTypes from 'prop-types'; import Column from './Column'; import Widgets from './Widgets'; /** * Returns a set of columns that belongs to a row. */ function Row(props) { const { rowClass, columns, widgets, onRemove, layout, rowIndex, editable, fra...
dva/wd/src/components/CocktailCard.js
imuntil/React
import React from 'react'; import { Icon } from 'antd-mobile' import styles from './CocktailCard.css'; function CocktailCard({ more, width = '45%', data = {} }) { return ( <div className={styles.normal} style={{ width }}> <img src={data.src || require('../assets/ig-dir/cocktail-1.jpg')} alt="" /> <p ...
app/addons/fauxton/navigation/components/NavBar.js
apache/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
app/components/PreschoolProject/NoPermission.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; const NoPermissionView = ({ project }) => { return ( <div> <div className="alert alert-danger"> <i className="fa fa-lock fa-lg" aria-hidden="true" /> Insufficient Privileges. Only administrators can modify boundary details. ...
app/js/components/search/SearchInputComponent.js
theappbusiness/tab-hq
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import AppStore from '../../stores/AppStore'; import AppActionCreators from '../../actions/AppActionCreators'; import Reflux from 'reflux'; require('../../../styles/SearchComponent.sass'); function getStateFromStores() { return { searc...
examples/05 Customize/Handles and Previews/index.js
globexdesigns/react-dnd
import React, { Component } from 'react'; import Container from './Container'; export default class CustomizeHandlesAndPreviews extends Component { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/05%20Customize/Handles%20and%20Previews'>...
docs/src/app/components/pages/components/DropDownMenu/ExampleLongMenu.js
pancho111203/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; const items = []; for (let i = 0; i < 100; i++ ) { items.push(<MenuItem value={i} key={i} primaryText={`Item ${i}`} />); } export default class DropDownMenuLongMenuExample extends React.Compo...