path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/YearView.js
Kotuhan/react-date-picker
import React from 'react' import { findDOMNode } from 'react-dom' import Component from 'react-class' import assign from 'object-assign' import times from './utils/times' import join from './join' import toMoment from './toMoment' import { Flex, Item } from 'react-flex' import bemFactory from './bemFactory' const ...
webpack/components/TemplateSyncResult/components/SyncedTemplate/StringInfoItem.js
mmoll/foreman_templates
import React from 'react'; import EllipsisWithTooltip from 'react-ellipsis-with-tooltip'; import PropTypes from 'prop-types'; import InfoItem from './InfoItem'; import { itemIteratorId } from './helpers'; const StringInfoItem = ({ template, attr, tooltipText, translate, mapAttr, elipsed, }) => { const i...
src/svg-icons/content/unarchive.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentUnarchive = (props) => ( <SvgIcon {...props}> <path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4...
src/index.js
Chewser/chewser_react
import React from 'react'; import ReactDom from 'react-dom'; import { Route, Router, browserHistory } from 'react-router'; import "./styles/style.css"; import Main from './components/Main/Main'; ReactDom.render( <Router history={browserHistory}> <Route path="/" component={Main} /> </Router>, document.getEl...
src/components/MenuItem.js
TeemuTT/jyvaslounas-react
import React from 'react' export function MenuItem({course, shouldDrawCategory}) { return ( <div className="menuItem"> {shouldDrawCategory ? <span className="categoryName">{course.category}</span> : <span/>} <span className="title_fi">{course.title_fi}</span> <span>{cour...
tests/lib/rules/vars-on-top.js
kentaromiura/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
components/ui/settings/SettingsDividerLong.js
Jack3113/edtBordeaux
import React, { Component } from 'react'; import { StyleSheet, View } from 'react-native'; export default class SettingsDividerLong extends Component { render() { return <View style={styles.dividerStyle} />; } } const styles = StyleSheet.create({ dividerStyle: { width: '100%', heig...
packages/eslint-config-airbnb/test/test-react-order.js
practicefusion/javascript
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, rules: { // It is okay to import devDependencies in tests....
src/components/home.js
fiveinfinity/ic-crowdsale
import React from 'react'; import styles from '../stylesheets/home.css'; export const Home = (props) => { return ( <div id="home" className={styles.home}> <div className={styles.block}> <div className={styles.title}>Peace of mind.</div> <div className={styles.copy}>We want to make insurance easier. With ...
examples/huge-apps/components/Dashboard.js
migolo/react-router
import React from 'react' import { Link } from 'react-router' class Dashboard extends React.Component { render() { const { courses } = this.props return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of you...
app/javascript/mastodon/components/media_gallery.js
honpya/taketodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
examples/components/LineExample.js
ionutmilica/react-chartjs-components
import React from 'react'; import { LineChart } from '../../src' class LineExample extends React.Component { render() { const data = { labels: ["January", "February", "March", "April", "May", "June", "July"], datasets: [ { label: "My First dataset", fill: false, ...
src/app/components/list/Audit.js
cherishstand/OA-react
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import {List, ListItem} from 'material-ui/List'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import {Router, Route, browserHistory, Link} from 'react-router'; import SwipeableViews from 'react-swipeable-...
client/src/App.js
Hypheme/harmonized.js-example
import React, { Component } from 'react'; import './App.css'; import Todos from './todos'; import Authors from './authors'; class App extends Component { componentDidMount() {} render() { return ( <div className="App"> <div> <Authors /> <Todos /> </div> ...
src/svg-icons/image/hdr-off.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrOff = (props) => ( <SvgIcon {...props}> <path d="M17.5 15v-2h1.1l.9 2H21l-.9-2.1c.5-.2.9-.8.9-1.4v-1c0-.8-.7-1.5-1.5-1.5H16v4.9l1.1 1.1h.4zm0-4.5h2v1h-2v-1zm-4.5 0v.4l1.5 1.5v-1.9c0-.8-.7-1.5-1.5-1.5h-1...
src/components/entity-crud/viewable/index.js
marcusnielsen/reactive-tournament
import React from 'react' import {merge as objectMerge} from 'ramda' import ConnectObserver from '../../../utils/connect-observer' import EntityList from '../../entity-list/viewable' import EntityForm from '../../entity-form/viewable' import ViewState from './view-state' import View from './view' export default functi...
src/svg-icons/content/content-copy.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentCopy = (props) => ( <SvgIcon {...props}> <path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/> </SvgIcon> );...
src/pages/build/index.js
chengjianhua/templated-operating-system
import React from 'react'; // import PropTypes from 'prop-types'; import { Provider } from 'mobx-react'; import { Route } from 'react-router-dom'; import Build from './Build'; import BuildStore from './model/BuildStore'; import StylesStore from '../../components/StyleWrapper/StylesStore'; const stylesStore = new Sty...
test/frontend/app/components/test-alert.js
LINKIWI/linkr
import React from 'react'; import {mount} from 'enzyme'; import test from 'tape'; import Alert, {ALERT_TYPE_ERROR} from '../../../../frontend/app/components/alert'; test('Alert renders failure message override', (t) => { const alert = mount( <Alert type={ALERT_TYPE_ERROR} title={'title'} messa...
src/icons/AndroidArrowBack.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidArrowBack extends React.Component { render() { if(this.props.bare) { return <g> <g id="Icon_8_"> <g> <path d="M427,234.625H167.296l119.702-119.702L256,85L85,256l171,171l29.922-29.924L167.296,277.375...
resources/assets/js/components/responses/ResponsesComponent.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; class ResponsesComponent extends Component { render() { return ( <div style={{ flex: 1 }}> {this.props.children} </div> ); } } export default ResponsesComponent;
cerberus-dashboard/src/components/CreateSDBoxForm/CreateSDBoxForm.js
Nike-Inc/cerberus-management-service
/* * Copyright (c) 2020 Nike, inc. * * 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 ...
postcss-with-react/appInit.js
sunitJindal/react-tutorial
import React from 'react'; import { render } from 'react-dom'; import Router from 'react-router/lib/Router'; import { createStore, applyMiddleware } from 'redux'; import { routerMiddleware } from 'react-router-redux'; import { Provider } from 'react-redux'; import thunkMiddleware from 'redux-thunk'; import { hashHistor...
examples/InputFields.js
jareth/react-materialize
import React from 'react'; import Input from '../src/Input'; import Row from '../src/Row'; export default <Row> <Input placeholder="Placeholder" s={6} label="First Name" /> <Input s={6} label="Last Name" /> <Input s={12} label="disabled" defaultValue="I am not editable" disabled /> <Input type="passwor...
views/Service/nwdHttpClient.js
leechuanjun/TLRNProjectTemplate
'use strict'; import React, { Component } from 'react'; import { View, AlertIOS, } from 'react-native'; import NWDBaseHttp from './nwdBaseHttp'; import NWDService from './nwdService'; import NWDMacroDefine from '../Common/nwdMacroDefine'; var NWDHttpClient = { nwdLogin: function(telephone, password, resultCal...
packages/wix-style-react/src/Heading/Heading.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Ellipsis, { extractEllipsisProps } from '../common/Ellipsis'; import { st, classes } from './Heading.st.css'; import { EllipsisCommonProps } from '../common/PropTypes/EllipsisCommon'; import { WixStyleReactContext } from '../WixStyleReactProvider/con...
src/components/FormFillView.js
dialob/dialob-fill-ui
/** * Copyright 2016 ReSys OÜ * * 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...
docs/src/app/components/pages/components/TextField/ExampleError.js
IsenrichO/mui-with-arrows
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleError = () => ( <div> <TextField hintText="Hint Text" errorText="This field is required" /><br /> <TextField hintText="Hint Text" errorText="The error text can be as long as you want, i...
client/src/javascript/components/icons/CalendarCreatedIcon.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class CalendarCreatedIcon extends BaseIcon { render() { return ( <svg className={`icon icon--calendar icon--calendar--created ${this.props.className}`} viewBox={this.getViewBox()}> <path d="M48,9.39V1.15H3...
src/Components/Features/FeatureItems.js
michaelnagy/reactRing0
import React from 'react' import { Header, Icon, Grid } from 'semantic-ui-react' const FeatureItems = () => ( <Grid columns={3} style={{marginTop:'5em', marginBottom:'5em'}}> <Grid.Row> <Grid.Column> <Header as='h2' icon> <Icon name='spy' circular color='teal'/> 15+ Heuristic d...
src/views/HomePage/component.js
khankuan/asset-library-demo
import React from 'react'; import Loading from '../../components/Loading'; import AssetGridView from '../../components/AssetGridView'; import DocumentTitle from 'react-document-title'; export default class HomePage extends React.Component { static propTypes = { HomePageStore: React.PropTypes.object, AssetSt...
OleksiiOnSoftware.Apps.Blog/client/containers/DevTools/index.js
boades/PpmSystem
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' const DevTools = createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' defaultIsVisible={false...
UI/src/components/Groups.js
ssvictorlin/PI
import React, { Component } from 'react'; import { ScrollView, View, Image, Text, ActivityIndicator, ListView, TouchableHighlight } from 'react-native'; import { SearchBar, List, ListItem, Button, Icon } from 'react-native-elements'; import { StackNavigator } from 'react-navigation'; import { Card, CardSection } from '...
es6/main.js
Simproduction/react-client-webpack
import React from 'react'; import ReactDOM from 'react-dom'; import Hello from './component.jsx'; window.React = React; window.ReactDom = React; function main() { ReactDOM.render(<Hello />, document.getElementById('app')); } main();
src/components/ContainerProgress.react.js
daaru00/kitematic
import React from 'react'; /* Usage: <ContainerProgress pBar1={20} pBar2={70} pBar3={100} pBar4={20} /> */ var ContainerProgress = React.createClass({ render: function () { var pBar1Style = { height: this.props.pBar1 + '%' }; var pBar2Style = { height: this.props.pBar2 + '%' }; va...
example/example.js
goldenyz/react-perfect-scrollbar
import React, { Component } from 'react'; // eslint-disable-next-line import ScrollBar from 'react-perfect-scrollbar'; // eslint-disable-next-line import 'react-perfect-scrollbar/styles.scss'; import './example.scss'; function logEvent(type) { console.log(`event '${type}' triggered!`); } const debounce = (fn, ms =...
examples/03 - Basic auth/components/Dashboard.js
gilesvangruisen/browserify-react-live
import React from 'react'; import auth from '../vendor/auth'; export default class Dashboard extends React.Component { render() { var token = auth.getToken(); return ( <div> <h1>Dashboard</h1> <p>You made it!</p> <p>{token}</p> </div> ); } }
src/Parser/Warlock/Demonology/Modules/Features/AlwaysBeCasting.js
enragednuke/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; ...
app/js/components/content/ListComponent.js
lukemarsh/tab-hq-react
'use strict'; import React from 'react'; import ListItemComponent from './ListItemComponent'; import DropFileComponent from './DropFileComponent'; import ReorderMixin from '../../mixins/ReorderMixin'; import ModalMixin from '../../mixins/ModalMixin'; import PageComponentActions from './PageComponentActions'; import Co...
src/js/components/Avatar/stories/Basic.js
HewlettPackard/grommet
import React from 'react'; import { Favorite } from 'grommet-icons'; import { Avatar, Box, Grommet } from 'grommet'; import { grommet } from 'grommet/themes'; export const Basic = () => { const src = '//s.gravatar.com/avatar/b7fb138d53ba0f573212ccce38a7c43b?s=80'; return ( <Grommet theme={grommet}> <B...
example/src/views/swipe_decker.js
kosiakMD/react-native-elements
import Expo from 'expo'; import React, { Component } from 'react'; import { StyleSheet, Text, View, Dimensions } from 'react-native'; import { Button, Card, Icon } from 'react-native-elements'; import { SwipeDeck } from 'react-native-elements'; const SCREEN_WIDTH = Dimensions.get('window').width; const SCREEN_HEIGHT...
imports/ui/components/customer/Customer.js
hwillson/shopify-hosted-payments
import React from 'react'; const shippingAddress = (payment) => { let content = (<p>...</p>); if (payment) { content = ( <p> {payment.x_customer_first_name} {payment.x_customer_last_name} <br /> {payment.x_customer_shipping_address1} <br /> {payment.x_customer_ship...
Paths/React/05.Building Scalable React Apps/3-react-boilerplate-building-scalable-apps-m3-exercise-files/Before/app/containers/LanguageProvider/index.js
phiratio/Pluralsight-materials
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
clients/libs/slate-editor-list-plugin/src/UnorderedListButton.js
nossas/bonde-client
import React from 'react' import FontAwesome from 'react-fontawesome' import classnames from 'classnames' import { Button } from '@slate-editor/components' import { unorderedListStrategy, isUnorderedList } from './ListUtils' // eslint-disable-next-line react/prop-types const UnorderedListButton = ({ value, onChange, ...
app/javascript/mastodon/features/mutes/index.js
rekif/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
benchmarks/source-agilitycms/src/components/PreviewBar.js
gatsbyjs/gatsby
import React, { Component } from 'react'; import './PreviewBar.css' class PreviewBar extends Component { clearPreviewMode() { window.location.href = "?AgilityPreview=0"; } render() { if (this.props.isPreview === 'true') { return (<div id="agility-preview-bar" title="You are currently in Preview ...
Blog/src/js/components/Article/List.react.js
rcatlin/ryancatlin-info
import React from 'react'; import ArticleShort from '../articleShort.react'; import ArticleStore from '../../stores/ArticleStore'; import PageCount from './PageCount.react'; export default class List extends React.Component { static get displayName() { return 'ArticleList'; } constructor(props) {...
gui/components/ReqDetails.js
venogram/ExpressiveJS
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import jsonInterface from './../js/jsonInterface.js'; function ReqDetails(props) { let highlightObj = jsonInterface.getRequestHighlights(props.details); const highlights = Object.keys(highlightObj).map(key => <li>{`${key}: ${JSON.stringi...
src/app.js
giltayar/react-starter-pack
import Counter from './counter'; import {render} from 'react-dom'; import React from 'react'; render(<Counter/>, document.getElementById('content'))
app/main/components/ThingList.js
BitLooter/Stuffr-frontend
import React from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table' import { openThingEditor } from '../actions' import t from '../../common/i18n' // TODO: Height needs to be s...
node_modules/react-bootstrap/es/MediaList.js
saltypaul/SnipTodo
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/marketingTypography/MarketingHeading1.js
teamleadercrm/teamleader-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import cx from 'classnames'; import theme from './theme.css'; class MarketingHeading1 extends Component { render() { const { children, className, ...others } = this.props; const classNames = cx(theme['hea...
src/svg-icons/action/settings-input-composite.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComposite = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2....
src/esm/components/graphics/icons/visa-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["className"]; import React from 'react'; import classNames from 'classnames'; export var VisaIcon = function VisaIcon(_ref) { var className = _ref.cl...
src/components/Dropzone/Dropzone.js
gabrielmf/SIR-EDU-2.0
import React from 'react' import Dropzone from 'react-dropzone' import IconButton from 'material-ui/IconButton'; import './Dropzone.scss' const preventDropOnDocument = () => { window.addEventListener("dragover",function(e){ e = e || event; e.preventDefault(); },false); window.addEventListen...
react/src/GridRow.js
Chalarangelo/react-mini.css
import React from 'react'; // Module constants (change according to your flavor file) var gridRowClassName = 'row'; var gridColumnsClassNamePrefix = 'cols'; var gridColumnExtraSmallSuffix = 'xs'; var gridColumnSmallSuffix = 'sm'; var gridColumnMediumSuffix = 'md'; var gridColumnLargeSuffix = 'lg'; // GridRow componen...
react/src/pages/logs/components/logs-table.js
motiko/sfdc-debug-logs
import React from 'react' import Table, { TableBody, TableHead, TableRow, TableCell } from 'material-ui/Table' import { withStyles } from 'material-ui/styles' const styles = theme => ({ table: { background: theme.palette.background.default } }) function LogsTable({ history, logs, classes }) { const ...
react/features/invite/components/dial-in-summary/web/DialInSummary.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../../../base/i18n'; import { doGetJSON } from '../../../../base/util'; import ConferenceID from './ConferenceID'; import NumbersList from './NumbersList'; declare var config: Object; /** * The type of the React {@code Component} pro...
client/src/utils/index.js
kaiguogit/growfolio
import React from 'react'; import numeral from 'numeral'; import Auth from '../services/Auth'; import styles from '../styles'; import log from './log'; import {DollarValue} from '../selectors/transaction'; export {log}; /** * Wrapper function to try and catch provided callback. */ export const makeSafe = (fn) => { ...
packages/icons/src/md/image/Looks2.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLooks2(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h28zm-8 16v-4c0-2.21-1.79-4-4-4h-8v4h8v4h-4c-2.21 0-4 1.79-4 4v...
examples/react-redux/src/components/ui/Container.js
rangle/redux-segment
import React from 'react'; const Container = ({ children, style = {}, className = '' }) => { return ( <div className={ `container ${ className }` } style={{ ...styles.base, ...style }}> <div className="clearfix"> { children } </div> </div> ); }; const styles = { base: {}, }; export ...
src/svg-icons/device/location-searching.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationSearching = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-...
src/ui/components/IconesSuperiores.js
dartelvis/zf3
import React from 'react'; import PropTypes from 'prop-types'; import Toggle from 'material-ui/Toggle'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; impor...
src/index.js
tybolo/note
import 'normalize.css' import './common.scss' import React from 'react' import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' import App from './App' const render = Comp => { ReactDOM.render( <AppContainer> <Comp /> </AppContainer>, document.getElementById('app') ) } ...
scripts/Calculator.js
sarahedkins/calculator-app
import React, { Component } from 'react'; import '../styles/calculator.css'; export default class Calculator extends Component { constructor(props) { super(props); const today = new Date(); const currentMonthIndex = today.getMonth(); const initialWant = this.getWantValue(); const initialHave = ...
basic/node_modules/react-router/es6/RouteContext.js
jintoppy/react-training
'use strict'; import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin t...
src/components/tools/user-roles.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
src/js/components/icons/base/Checkmark.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/javascript/mastodon/components/avatar.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
scripts/apps/extension-points/directives/ExtensionPointDirective.js
gbbr/superdesk-client-core
import ReactDOM from 'react-dom'; import React from 'react'; /** * @ngdoc directive * @module superdesk.apps.extension-points * @name extensionPointDirective * @packageName superdesk.apps * @description * External superdesk apps can register components that then will be hooked into * the core UI. * Place this ...
modules/RouteContext.js
nickaugust/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
fhchina/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
node_modules/react-bootstrap/es/Alert.js
CallumRocks/ReduxSimpleStarter
import _Object$values from 'babel-runtime/core-js/object/values'; import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
app/javascript/mastodon/features/ui/components/media_modal.js
Ryanaka/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import classNames from 'classnames'; import { defineMessages, injectIntl } from 'react-intl'; i...
apps/chat_app/web/static/js/containers/Root.js
nemanja-m/ex-chat
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ChatRoom from './ChatRoom'; import Signup from './Signup'; import Login from './Login'; import AuthenticationRoute from '../components/AuthenticationRoute'; import { ConnectedRouter } from 'react-router-redux'; import { connectToSoc...
src/pages/404.js
JTRiddick/jtr-webzone
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
admin/client/App/components/Navigation/Mobile/ListItem.js
Pop-Code/keystone
/** * A list item of the mobile navigation */ import React from 'react'; import { Link } from 'react-router'; const MobileListItem = React.createClass({ displayName: 'MobileListItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropTypes.string.isRe...
src/js/Tutorial/SlideShow.js
ludonow/ludo-beta-react
import React, { Component } from 'react'; import { Link } from 'react-router'; import styled from 'styled-components'; import Carousel from 'nuka-carousel'; import decorators from './decorators'; import { desktopImageList, mobileImageList } from './imageList'; import { baseUrl } from '../baseurl-config'; cons...
src/app/Menu/MenuFeed.js
Sekhmet/busy
import React from 'react'; import { Link } from 'react-router'; import { FormattedMessage } from 'react-intl'; import Icon from '../../widgets/Icon'; const MenuFeed = ({ auth, category }) => { const categoryUrl = category ? `/${category}` : ''; const channel = category || 'general'; return ( <ul className="a...
src/SafeAnchor.js
xuorig/react-bootstrap
import React from 'react'; import createChainedFunction from './utils/createChainedFunction'; /** * Note: This is intended as a stop-gap for accessibility concerns that the * Bootstrap CSS does not address as they have styled anchors and not buttons * in many cases. */ export default class SafeAnchor extends React...
storybook/createStory/CenterView/index.android.js
Fineighbor/ui-kit
import React from 'react' import PropTypes from 'prop-types' import { View } from 'react-native' import style from './style' export default function CenterView (props) { return ( <View style={style.main}> {props.children} </View> ) } CenterView.defaultProps = { children: null } CenterView.propTyp...
ui/containers/not_found.js
danjac/podbaby
import React from 'react'; const PageNotFound = () => { return ( <p className="lead">Sorry, nothing to find here.</p> ); }; export default PageNotFound;
examples/src/app.js
serkanozer/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import './example.less'; import Creatable from './components/Creatable'; import Contributors from './components/Contributors'; import GithubUsers from './components/GithubUsers'; import Cus...
src/content/work/assets/SubscriptionsForSaas/modules/List/Icons/Close/index.js
jmikrut/keen-2017
import React from 'react'; import './Close.css'; export default (props) => { let color = props.color ? props.color : ''; return ( <svg className="plus" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"> <line stroke={color} x1="8.24" y1="3.76" x2="3.76" y2="8.24"/> <line stroke={color} x1="8.24" y1="...
examples/amp-first/components/amp/AmpState.js
flybayer/next.js
import PropTypes from 'prop-types' import React from 'react' import { AmpIncludeAmpBind } from './AmpCustomElement' /** * Renders an amp-state element, by either adding local state via `value` * or remote state via the `src` property. * * @param {Props} props */ export default function AmpState(props) { return ...
app/javascript/mastodon/features/compose/components/navigation_bar.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ActionBar from './action_bar'; import Avatar from '../../../components/avatar'; import Permalink from '../../../components/permalink'; import IconButton from '../../../components/icon_button...
src/index.js
bdougie/react-relay-instagram-example
import React from 'react' import Relay from 'react-relay' import ReactDOM from 'react-dom' import ListPage from './components/ListPage' import CreatePage from './components/CreatePage' import { Router, Route, browserHistory, applyRouterMiddleware } from 'react-router' import useRelay from 'react-router-relay' import '....
app/javascript/mastodon/features/notifications/components/column_settings.js
mosaxiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
src/layouts/index.js
brickandgreens/bricks-and-greens-gatsby
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' import './index.css' const Header = () => ( <div style={{ background: 'rebeccapurple', marginBottom: '1.45rem', }} > <div style={{ margin: '0 auto', ...
src/Button.js
wjb12/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; import ButtonInput from './ButtonInput'; const Button = React.createClass({ mixins: [BootstrapMixin], propTypes: { active: React.PropTypes.bool,...
docs/app/Examples/elements/Loader/Types/LoaderExampleText.js
koenvg/Semantic-UI-React
import React from 'react' import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react' const LoaderExampleText = () => ( <div> <Segment> <Dimmer active> <Loader>Loading</Loader> </Dimmer> <Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> </Segment> ...
src/svg-icons/editor/monetization-on.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMonetizationOn = (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 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
atlanthot/angular2
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/time_ago.js
Helabs/handup-web
import React from 'react'; import moment from 'moment'; import TimedRender from './timed_render'; export default function TimeAgo({ time }) { return <TimedRender contentProvider={timeFromNow} />; function timeFromNow() { return moment(time).fromNow(); } }
src/components/Audioplayer/Track/index.js
hasibsahibzada/quran.com-frontend
/* eslint-disable jsx-a11y/no-static-element-interactions */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const Container = styled.div` height: 6px; width: 100%; background-color: #f7f7f7; cursor: pointer; margin-bottom: 5px; `; const ...
src/components/SplashScreen.js
ontappl/rn
import React from 'react'; import { View, Text, StyleSheet, } from 'react-native'; import {colors,} from './styles'; export const SplashScreen = () => ( <View style={styles.container}> <Text>Ładowanie...</Text> </View> ); const styles = StyleSheet.create({ container: { flex: 1, ...
webapp-src/src/Admin/SchemeMod.js
babelouest/glewlwyd
import React, { Component } from 'react'; import i18next from 'i18next'; import apiManager from '../lib/APIManager'; import messageDispatcher from '../lib/MessageDispatcher'; class SchemeMod extends Component { constructor(props) { super(props); this.state = { config: props.config, mods: props....
app/components/Settings/Settings.js
leesander1/hearmenow-electron
import React, { Component } from 'react'; // import { Link } from 'react-router'; import styles from './Settings.css'; export default class Settings extends Component { render() { return ( <div> <h4>Settings</h4> </div> ); } }
examples/auth-with-shared-root/components/PageOne.js
taion/rrtr
import React from 'react' const PageOne = React.createClass({ render() { return <h2>Page One!</h2> } }) export default PageOne
modules/Home/SearchBox.js
cloudytimemachine/frontend
import React from 'react' import { Link } from 'react-router' import SearchBox from '../Common/SearchBox' export default React.createClass({ render() { return ( <div className="searchBox"> <h4>Search the history for a domain or URL</h4> <SearchBox /> </div> ) } })