path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/modules/Progress/Content/Label.js
jcarbo/stardust
import React from 'react' import { Progress } from 'stardust' const ProgressLabelExample = () => ( <Progress percent={55}>Label</Progress> ) export default ProgressLabelExample
news/routes/Show/Show.js
otavioarc/freeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import Helmet from 'react-helmet'; import Youtube from 'react-youtube'; import { Image } from 'react-bootstrap'; import Author from './components/Author'; import { Loader, Spacer } from '../../....
src/js/components/Tags.js
samogami/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Box from './Box'; import Props from '../utils/Props'; const CLASS_ROOT = "tags"; export default class Tags extends Component { render () { var classes = [CLASS_ROOT]; if (this.props.class...
src/Router.js
timmykuo/Serve
import React from 'react'; import {StyleSheet, Text, View } from 'react-native'; import {StackNavigator, TabNavigator, NavigationActions} from 'react-navigation'; import Icon from 'react-native-vector-icons/FontAwesome'; import Login from './components/Login/Login'; import ExploreScreen from './components/MainTabs/Expl...
packages/react/src/components/AspectRatio/AspectRatio-story.js
carbon-design-system/carbon-components
/** * 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 './AspectRatio-story.scss'; import { withKnobs, select } from '@storybook/addon-knobs'; import React from 'react'; import { Grid, Row...
ui/src/app/components/username.js
ridakk/citrix-challenge
import React from 'react'; import TextField from 'material-ui/TextField'; class Username extends React.Component { constructor(props) { super(props) this.state = { errorText: '', value: props.value } this.onChange = this.onChange.bind(this); } onChange(event) { let username = event.target.valu...
client/app/components/RestaurantPage/Business/RestaurantInfoEdit.js
maekks/menu-plus
import React from 'react'; import PropTypes from 'prop-types'; import TextField from 'material-ui/TextField'; import { updateResInfo } from 'actions/RestaurantActions'; const propTypes = { dispatch: PropTypes.func.isRequried, restaurant: PropTypes.object.isRequried, cancelEdit: PropTypes.func.isRequired, }; cla...
client/index.js
rystecher/senior-design
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; import setAuthorizationToken from './Contests/Login/actions/setAuthorizationToken'; import jwtDecode from 'jwt-...
pootle/static/js/shared/mixins/ModelFormMixin.js
claudep/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import _ from 'underscore'; im...
docs/src/app/components/pages/components/List/ExampleContacts.js
pancho111203/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import Divider from 'material-ui/Divider'; import Avatar from 'material-ui/Avatar'; import {pinkA200, transparent} from 'mater...
src/svg-icons/editor/wrap-text.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorWrapText = (props) => ( <SvgIcon {...props}> <path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/> </SvgIcon> ); EditorWra...
src/Enigma/UI/Component/PlugBoard.js
minkiele/EnigmaUI
import React from 'react'; import EventEmitter from 'events'; import PlugBoardWiring from './PlugBoard/PlugBoardWiring'; import NewPlugBoardWiring from './PlugBoard/NewPlugBoardWiring'; import Well from 'react-bootstrap/lib/Well'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import ListGroup from 'react...
src/components/Modal/index.js
LIQIDTechnology/liqid-react-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { ModalPortal, ModalBackground, ModalContent } from './Components.js'; import './styles.scss'; /** * The base Modal, which wraps the content Components * @param {Object} props The props for the component * @re...
docs/app/Examples/modules/Dropdown/Types/DropdownExamplePointing.js
vageeshb/Semantic-UI-React
import React from 'react' import { Dropdown, Menu } from 'semantic-ui-react' const DropdownExamplePointing = () => ( <Menu> <Menu.Item> Home </Menu.Item> <Dropdown text='Shopping' pointing className='link item'> <Dropdown.Menu> <Dropdown.Header>Categories</Dropdown.Header> <Dr...
src/components/Header/Header.js
stanxii/laiico
/** * 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...
front/app/js/components/xAPIToggle.js
nudoru/learning-map
import React from 'react'; import PropTypes from 'prop-types'; import Toggle from 'react-toggle'; /** * Sends a complete statement when the toggle is clicked */ const completedLabel = 'Completed'; const incompleteLabel = 'Mark complete'; export class XAPIToggle extends React.PureComponent { static propTypes = {...
node_modules/rc-slider/es/Handle.js
prodigalyijun/demo-by-antd
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runt...
packages/showcase/sankey/voronoi.js
uber-common/react-vis
import React from 'react'; import Sankey from 'react-vis/sankey'; const BLURRED_NODE_OPACITY = 0.8; const FOCUSED_NODE_OPACITY = 1; const nodes = [{name: 'a'}, {name: 'b'}, {name: 'c'}]; const links = [ {source: 0, target: 1, value: 10}, {source: 0, target: 2, value: 20}, {source: 1, target: 2, value: 20} ]; ...
src/component/loading/index.js
pot-code/redux-demo
import React from 'react'; import classnames from 'classnames'; import { Spin } from 'antd'; import './loading.less'; const Loading = ({ loading, ...props }) => { const className = classnames('spinContainer', { loading }) return ( <div className={className}> <Spin spinning={loading} {...props} /> </div> ); ...
client/accounts-reactstrap/Button.js
focallocal/fl-maps
import React from 'react' import { Button } from 'reactstrap' const Button_ = ({ onClick, social, text }) => { if (social) { return ( <Button onClick={onClick} className={text}> <i className={`fab fa-${text}`} /> {`Continue with ${text[0].toUpperCase()}${text.substr(1)}`} </Button> ...
src/icons/Compass.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Compass extends React.Component { render() { if(this.props.bare) { return <g> <g> <g> <path d="M256,32c-39,0-75.6,10-107.5,27.4C136.9,42.9,117.7,32,96,32c-35.3,0-64,28.7-64,64c0,21.7,10.9,40.9,27.4,52.5 ...
client/src/javascript/components/general/NavigationList.js
jfurrow/flood
import classnames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; class NavigationList extends React.Component { static propTypes = { defaultItem: PropTypes.string, itemClassName: PropTypes.string, items: PropTypes.array, listClassName: PropTypes.string, onChange...
src/components/ScanLine.js
tobice/flux-lumines
import React from 'react'; import PureComponent from './PureComponent.js'; import {SQUARE_SIZE, SCAN_LINE_WIDTH, GRID_HEIGHT} from '../game/dimensions.js'; export default class ScanLine extends PureComponent { render() { const {scanLine} = this.props; return ( <g className="lumines-sca...
react/dashboard_example/src/vendor/recharts/demo/component/BrushDemo.js
webmaster444/webmaster444.github.io
import React from 'react'; import { Surface, Brush } from 'recharts'; export default React.createClass({ render () { let data = [ '2015-10-01', '2015-10-02', '2015-10-03', '2015-10-04', '2015-10-05', '2015-10-06', '2015-10-07', '2015-10-08', ...
demo/static/js/node_modules/react-router/modules/IndexLink.js
jonashagstedt/django-jsx
import React from 'react'; import Link from './Link'; var IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }); export default IndexLink;
app/javascript/mastodon/features/notifications/components/grant_permission_button.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class GrantPermissionButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn colum...
app/export/export-page-header.js
jaketrent/photo-surf
import React from 'react' import styleable from 'react-styleable' import css from './export-page-header.css' function ExportPageHeader(props) { return ( <div className={props.css.root}>{props.children}</div> ) } export default styleable(css)(ExportPageHeader)
src/server.js
jade-press/jadepress-react-spa
import React from 'react' import * as tools from './common/constants' import { renderToString } from 'react-dom/server' import { bindActionCreators } from 'redux' import { match, RouterContext } from 'react-router' function getRenderProps({ routes, location }) { return new Promise((resolve, reject) => { match({...
app/components/Icon/index.js
delmaroi/tododemo
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const Icon = (props) => { const { name, style, className, } = props; const iconClass = classNames( className, { [`icon--${name}`]: name, }, ); return ( <i className={i...
modules/RouteUtils.js
axross/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
packages/@vega/article-state-tool/src/components/ArticleStateTool.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import {get} from 'lodash' import {withRouterHOC} from 'part:@vega/core/router' import ArticleFeatures from './ArticleFeatures' import styles from './styles/ArticleStateTool.css' // eslint-disable-next-line class ArticleStateTool extends React.Component { ...
src/Alert.js
aabenoja/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number }, getDefaultProps() { return { bsCla...
frontend/src/pages/file-history/main-panel.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import Prism from 'prismjs'; import Loading from '../../components/loading'; import { mediaUrl } from '../../utils/constants'; import DiffViewer from '@seafile/seafile-editor/dist/viewer/diff-viewer'; require('@seafile/seafile-editor/dist/editor/code-highl...
test/unit/testHelper.js
kwynns/test
import jq from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import createHistory from 'react-router/lib/browserHistory'; import { Provider...
app/main.js
guillaumearm/todolist
// Styles import './css/base.css' // React import React from 'react' import { render } from 'react-dom' // Redux import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import thunk from 'redux-thunk' // App import App from './containers/App' // Reducers import rootReducer from '...
app/main/GDMain.js
Hey2Li/RNGD
import React, { Component } from 'react'; import { StyleSheet, Navigator, Image, DeviceEventEmitter, AsyncStorage, } from 'react-native'; import TabNavigator from 'react-native-tab-navigator'; import Home from '../home/GDHome'; import HT from '../ht/GDHt'; import HourList from '../hourList/GDHourList'; imp...
blueocean-material-icons/src/js/components/svg-icons/image/filter-4.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilter4 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-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 16H7V3h14v14z"/> </SvgIcon> ); ImageFilt...
archimate-frontend/src/main/javascript/components/view/edges/model/servingRelationship.js
zhuj/mentha-web-archimate
import React from 'react' import _ from 'lodash' import { ModelLinkWidget } from '../BaseLinkWidget' export const TYPE='servingRelationship'; export class ServingRelationshipWidget extends ModelLinkWidget { getBaseClassName(link) { return TYPE; } }
definitions/npm/react-css-modules_v3.x.x/flow_v0.53.x-/test_react-css-modules-v3.js
gaborsar/flow-typed
// @flow import React, { Component } from 'react'; import CSSModules from 'react-css-modules'; const styles = { test: '123' }; class ExampleModule extends Component<{ foo: string, styles: typeof styles, }> { render() { return <div className={this.props.styles}>{this.props.foo}</div>; } } const ExampleCS...
src/parser/druid/feral/modules/spells/FerociousBiteEnergy.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; const ENERGY_MIN_USED_BY_BITE = 25; const ENERGY_FOR_FULL_DAMAGE_BITE ...
ui/src/js/ranking/RankingItemSmall.js
Dica-Developer/weplantaforest
import Accounting from 'accounting'; import counterpart from 'counterpart'; import he from 'he'; import React, { Component } from 'react'; import { Link } from 'react-router'; export default class RankingItem extends Component { constructor(props) { super(props); } render() { let text = Accounting.forma...
frontend/src/System/Logs/Files/LogFilesTableRow.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Link from 'Components/Link/Link'; import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import TableRow from 'Components/Table/TableRow...
src/client/entity-editor/alias-editor/alias-row-merge.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2019 Nicolas Pelletier * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is...
blueocean-material-icons/src/js/components/svg-icons/av/fiber-new.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvFiberNew = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v1.12h2.5v1.26H11v1.11h2.5V15h-4V9...
src/pages/Home.js
prodigalyijun/demo-by-antd
import React from 'react'; import style from '../styles/home-page.less'; class Home extends React.Component { render() { return ( <div className={style.welcome}> Welcome </div> ); } } export default Home;
example/src/components/ButtonList.js
lucy-orbach/react-inline
import React from 'react'; import StyleSheet from 'react-inline'; import Button from './Button'; class ButtonList extends React.Component { render() { return ( <div> <h2>Bootstrap's buttons, realized with React Inline</h2> <p>Enumerating Bootstrap-style buttons of all types and sizes.</p> ...
client-src/components/parts/InspectionsSearchResults.js
Neil-G/InspectionLog
// @flow import React, { Component } from 'react'; import { Link } from 'react-router' import Parts from './index' require('./../../../public/custom.css') class InspectionsSearchResults extends Component { render() { const { inspections } = this.props return ( <div> <div style={{ marginBottom: ...
src/components/search_bar.js
willhcurry/ReduxStarter
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } render() { return ( <div> <input value={this.state.term} onChange=...
docs/app/Examples/collections/Breadcrumb/Types/BreadcrumbDividerExample.js
jcarbo/stardust
import React from 'react' import { Breadcrumb } from 'stardust' const BreadcrumbDividerExample = () => ( <Breadcrumb> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider icon='right angle' /> <Breadcrumb.Section link>Store</Breadcrumb.Section> <Breadcrumb.Divider icon='right angle'...
src/app/charts/chart/chart.js
manapaho/react-reporting
/** * Manapaho (https://github.com/manapaho/) * * Copyright © 2015 Manapaho. 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 ReactDOM from 'react-dom'; import Relay from 'r...
src/svg-icons/device/signal-wifi-4-bar.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi4Bar = (props) => ( <SvgIcon {...props}> <path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/> </SvgIcon> ); DeviceSignalWifi4Bar = pure(Devic...
src/Axis.js
ornl-sava/vis-react-components
import React from 'react' import PropTypes from 'prop-types' import ReactDom from 'react-dom' import { select } from 'd3' import { setAxis, isOrdinalScale } from './util/d3' // Truncate labels based on maximum allowable characters, where // characters should be estimated at 8-10 pixels per character. const truncateLab...
src/svg-icons/action/check-circle.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCheckCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/> </SvgIcon> ); ActionChec...
docs/src/app/components/pages/components/Menu/ExampleNested.js
mtsandeep/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; const style = { display: 'inline-block', mar...
src/TimePicker/TimeDisplay.js
skarnecki/material-ui
import React from 'react'; class TimeDisplay extends React.Component { static propTypes = { affix: React.PropTypes.oneOf(['', 'pm', 'am']), format: React.PropTypes.oneOf(['ampm', '24hr']), mode: React.PropTypes.oneOf(['hour', 'minute']), onSelectAffix: React.PropTypes.func, onSelectHour: React.Pr...
src/components/StartDayView.js
IShin00biI/Ktulu
import React from 'react' import { Text, View, Button } from 'react-native' import { Top } from './index' export const StartDayView = ({onMenu, statueHolder, onDuel, onSearch, duels}) => { return ( <View> <Top statueHolder={statueHolder} onMenu={onMenu} /> <Button title='Przejdź do pojedynku' o...
examples/src/components/SelectedValuesField.js
snowkeeper/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var SelectedValuesField = React.createClass({ displayName: 'SelectedValuesField', propTypes: { allowCreate: React.PropTy...
app/javascript/mastodon/features/ui/components/image_loader.js
yukimochi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { LoadingBar } from 'react-redux-loading-bar'; import ZoomableImage from './zoomable_image'; export default class ImageLoader extends React.PureComponent { static propTypes = { alt: PropTypes.string, s...
src/routes/user/index.js
yyjazsf/react-study
import React from 'react' import { connect } from 'dva' import { Link } from 'dva/router' function User({ user, loading, match }) { return ( <div> <h1>user</h1> <ul> <li><Link to="/user/yyj">晚上吃鸡-yyj</Link></li> <li><Link to="/user/who">who</Link></li> <li><Link to="/user/xxg"...
packages/icons/src/dv/Trello.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvTrello(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M10.332 5.954h27.244a4.378 4.378 0 0 1 4.378 4.378v27.244a4.378 4.378 0 0 1-4.378 4.378H10.332a4.378 4.378 0 0 1-4.378-4.378V10.332a4.378 4.378 0 0 1 ...
app/components/PageItemSocial/index.js
interra/data-generate
import React from 'react'; import PropTypes from 'prop-types'; import Item from './Item'; import Wrapper from './Wrapper'; import { Link } from 'react-router-dom'; import 'font-awesome/css/font-awesome.min.css'; function PageItemSocial(props) { const url = window.location; return ( <div style={{borderRadius:...
src/svg-icons/editor/format-quote.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatQuote = (props) => ( <SvgIcon {...props}> <path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/> </SvgIcon> ); EditorFormatQuote = pure(EditorFormatQuote); EditorFormatQuote.displayName = 'EditorFor...
src/client/router/genericError.js
r3dDoX/geekplanet
import SentimentVeryDissatisfied from '@material-ui/icons/SentimentVeryDissatisfied'; import React from 'react'; import { FormattedMessage, FormattedHTMLMessage } from 'react-intl'; import styled from 'styled-components'; import grey from '@material-ui/core/colors/grey'; const grey600 = grey['600']; const Container =...
public/app/components/header.js
jclo/kiwii
/* eslint */ // -- Vendor modules import React from 'react'; // -- Project Modules // -- Variables // -- Main section export default class extends React.Component { render() { return ( <header className={`bar bar-nav ${this.props.menu}`}> <a className={'pull-left icon fa fa-bars'} href={'#menu'}...
app/components/Trees/VerticalTree.js
ivtpz/brancher
import React, { Component } from 'react'; import * as styles from '../Home.scss'; import CodeEditor from '../CodeEditor'; import PopOver from '../../containers/PopOver'; import Visualizer from './Visualizer'; import { flatten, pause, highlight } from '../../utils/vertTreeUtils'; import tutorialWindows from '../../tutor...
src/svg-icons/image/wb-cloudy.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbCloudy = (props) => ( <SvgIcon {...props}> <path d="M19.36 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.64-4.96...
dashboard-ui/app/components/campaign/push.js
CloudBoost/cloudboost
/** * Created by Darkstar on 11/29/2016. */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { showAlert, sendPushCampaign } from '../../actions'; import SelectAudience from './selectAudience'; import { Button } from 'react-bootstrap'; export class PushCamp...
src/components/AsyncComponent.js
nunoblue/ts-react
import React, { Component } from 'react'; const asyncComponent = getComponent => class AsyncComponent extends Component { static Component = null; state = { Component: AsyncComponent.Component }; componentWillMount() { if (!this.state.Component) { getComponent().then((Component) => { ...
src/components/BottomNav.js
ciacci1234/visualization
import React from 'react' import TimeLine from './TimeLine' import StatsPanel from './StatsPanel' const BottomNav = () => { return ( <div className='BottomNav'> <div className='columns'> <div className='column is-4'> <div className='gr-BottomNavInnerPadding'> <div className='...
src/controls/FontFamily/index.js
michalko/draft-wyswig
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { toggleCustomInlineStyle, getSelectionCustomInlineStyle, } from 'draftjs-utils'; import LayoutComponent from './Component'; export default class FontFamily extends Component { static propTypes = { onChange: Pr...
src/basic/FooterTab.js
chaitanya0bhagvan/NativeBase
import React, { Component } from 'react'; import { View, ViewPropTypes } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class FooterTab extends Component { render() { return ( <View ref={c => this._root = c} ...
src/app/components/share-panel-items.js
pashist/soundcloud-like-player
import React from 'react'; import url from 'url'; import SharePanelItem from './share-panel-item'; export default class SharePanelItems extends React.Component { render() { if (!this.props.data) return null; let links = this.createLinks(this.props.data); return ( <ul className="...
src/components/progress/demos/Progress.js
isogon/material-components
import React from 'react' import { Progress } from '../../../' export default () => <Progress percent={0.4} width="300px" />
src/Parser/Druid/Balance/Modules/Features/AstralPower.js
enragednuke/WoWAnalyzer
import React from 'react'; import Icon from 'common/Icon'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'common/RESOURCE_TYPES'; import { formatPercentage } from 'common/format'; import Wrap...
web/src/components/integration/component/formGroup/Cluster/SwitchField.js
caicloud/cyclone
import React from 'react'; import { Form, Switch } from 'antd'; import PropTypes from 'prop-types'; const FormItem = Form.Item; const defaultFormItemLayout = { labelCol: { span: 4 }, wrapperCol: { span: 16 }, }; const FieldSwitch = props => { const { label, field: { value }, formItemLayout, onC...
packages/bonde-admin/src/mobilizations/components/list/items/created-at.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage } from 'react-intl' /* eslint-disable camelcase */ const CreatedAt = ({ created_at, createdAt }) => { const date = new Date(Date.parse(created_at || createdAt)) return ( <div className='created-at px3 col col-2'> {`${...
webapp-src/src/Modal/ModalConfirm.js
babelouest/taliesin
import React, { Component } from 'react'; import { Button, Modal } from 'react-bootstrap'; import i18n from '../lib/i18n'; class ModalConfirm extends Component { constructor(props) { super(props); this.state = {show: props.show, title: props.title, message: props.message, cb: props.onCloseCb}; this.close...
examples/files/helloWorld.js
dabbott/react-native-express
import React from 'react' import { StyleSheet, Text, View } from 'react-native' export default function App() { return ( <View style={styles.container}> <Text style={styles.text}>Hello, world!</Text> </View> ) } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: 'whi...
index.js
MoarCatz/timetable-app
import React, { Component } from 'react'; import { AppRegistry, Text } from 'react-native'; class App extends Component { render() { return ( <Text>Hello, World!</Text> ); } } AppRegistry.registerComponent('TimetableApp', () => App);
src/shared/components/Icon/LightBulb.js
CharlesMangwa/Chloe
/* @flow */ import React from 'react' import Svg, { Path } from 'react-native-svg' type Props = { color: string, size: number, } const LightBulb = (props: Props) => { const { color, size } = props const ratio = 10 / 16 return ( <Svg width={ratio * size} height={size} viewBox="0 200 10 16"> <Path ...
src/app/development/trc/SubNode.js
cityofasheville/simplicity2
import React from 'react'; import NodeSteps from './NodeSteps'; const SubNode = ({ node }) => ( <div key={node.id} style={{ verticalAlign: 'top', padding: '0.5rem 0.25rem', flex: 1, minWidth: '150px', }} > <div style={{ fontSize: '1.25em', padding: '0 0 0.15em 0' }}>{node.id...
app/components/ListSeperated/index.js
simon-johansson/PB-labz
import React from 'react'; import uuid from 'uuid'; import styles from './styles.css'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender ...
app/pages/HomePage.js
antoligy/healthbeacon
import React from 'react'; import DocumentTitle from 'react-document-title'; import Heading from 'grommet/components/Heading'; import Box from 'grommet/components/Box'; import Paragraph from 'grommet/components/Paragraph'; import { Link } from 'react-router'; class HomePage extends React.Component { render = () => ...
react/features/security/components/security-dialog/web/PasswordForm.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../../../base/i18n'; import { LOCKED_LOCALLY } from '../../../../room-lock'; /** * The type of the React {@code Component} props of {@link PasswordForm}. */ type Props = { /** * Whether or not to show the password editing fi...
example/examples/MassiveCustomMarkers.js
lelandrichardson/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView, { Marker, ProviderPropType } from 'react-native-maps'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = ...
index.android.js
gztomas/rnapp
/** * Sample React Native App * @flow */ import React, { Component } from 'react'; import {AppRegistry, StyleSheet, Text, Image, View} from 'react-native'; import MapView from 'react-native-maps'; class Bananas extends Component { render() { let pic = { uri: 'https://upload.wikimedia.org/wikipedia/co...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js
andrewmaudsley/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/js/views/NotFoundView/index.js
gregRV/myoutsidelands-frontend
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class NotFoundView 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> </di...
src/components/Layers/index.js
Vizzuality/iadb
'use strict'; import './style.css'; import _ from 'lodash'; import React from 'react'; class Layers extends React.Component { constructor(props) { super(props); this.state = { layer: _.find(props.layers, {columnName: props.layerName}) }; } render() { if (!this.props.layers || !(this.prop...
app/javascript/flavours/glitch/features/account/components/account_note.js
im-in-space/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Icon from 'flavours/glitch/components/icon'; i...
src/components/widgets/O_ArticleList/index.js
humaniq/humaniq-pwa-website
import React from 'react'; import * as T from "prop-types"; import './styles.scss'; import {cssClassName} from 'utils' import A_Link from 'A_Link' const cn = cssClassName('O_ArticleList') import A_H from 'A_H' import A_Container from 'A_Container' const O_ArticleList = ({articles, title}) =>{ const getList = (artic...
packages/arwes/src/Table/sandbox.js
romelperez/prhone-ui
import React from 'react'; import Arwes from '../Arwes'; import Table from './index'; export default () => ( <Arwes> <div style={{ padding: 20 }}> <Table animate headers={['Prop name', 'Type', 'Default', 'Description']} dataset={[ ['name', 'string', "''", 'The base name of...
src/server/routes/index.js
Insanehero/Serverside-Rendering-Example
import express from 'express'; import React from 'react'; import ReactServer from 'react-dom/server'; import App from '../../client/components/App'; import fs from 'fs'; let router = express.Router(); router.get('*', (req, res) => { let initialState = {}; //Set the initial state of the app initialState.peopleLis...
threeforce/node_modules/react-bootstrap/es/Pagination.js
wolfiex/VisACC
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/routes/adminToolResponses/index.js
goldylucks/adamgoldman.me
import React from 'react' import AdminToolResponses from './AdminToolResponses' import Layout from '../../components/Layout' async function action({ path }) { return { chunks: ['adminToolResponses'], title: 'Tool Responses', path, description: 'Tools responses', component: ( <Layout path=...
code/schritte/mobx/7-mobx-complete-app/src/components/Counter.js
st-he/react-workshop
import React from 'react'; import {inject} from 'mobx-react'; const Counter = ({greetingCount, filteredGreetingsCount}) => ( <div className="Counter">Showing {filteredGreetingsCount} of {greetingCount} Greetings</div> ); Counter.displayName = 'Counter'; export default inject( ({store}) => ({ greetingC...
src/examples/src/App.js
NE-SmallTown/React-QuietWater
/** * v0.0.1 * * Copyright (c) 2017 * * Date: 2017/5/1 by Heaven */ import React from 'react'; import Select, { Option } from 'rc-select'; import QuietWater, { LanguageProvider, globalConfig } from '../../index'; import './globalStyles/global.scss'; const languageObj = require(`../../language/${globalConfig.l...
src/components/App.js
gorankami/WebFEM
import React, { Component } from 'react'; import './App.css'; import SelectPalette from "./SelectPalette"; import LegendView from "./LegendView"; import MeshView from "./MeshView"; import {getPalettes} from "../services/api"; import BtnApplyToMesh from './BtnApplyToMesh'; class App extends Component { state = { ...
src/common/UserSettingsDialog.js
kriasoft/react-static-boilerplate
/** * React Starter Kit for Firebase * https://github.com/kriasoft/react-firebase-starter * Copyright (c) 2015-present Kriasoft | MIT License */ import React from 'react'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; import DialogContent from '@material-ui...
docs/src/layouts/doc-wrapper.js
bhamodi/nuclear-js
import React from 'react' import Wrapper from './wrapper' import DocSidebar from '../components/doc-sidebar' import Nav from '../components/nav' export default React.createClass({ propTypes: { title: React.PropTypes.string.isRequired, contents: React.PropTypes.string.isRequired, }, render() { return...