path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app1/client/index.js
Guru107/massive_proj
import React from 'react'; import ReactDOM from 'react-dom'; import ListingContainer from '../container/ListingContainer.jsx'; ReactDOM.render(<ListingContainer />, document.getElementById('root'));
demo/js/complete.js
bebeanan/monkey-ui
/** * Created by yyx on 2016/11/4. */ import React from 'react'; import ReactDOM from 'react-dom'; import MonkeyUi from '../../lib/monkeyui.js'; var Button=MonkeyUi.Button; var Icon=MonkeyUi.Icon; var ButtonGroup=Button.ButtonGroup; var Tree=MonkeyUi.Tree; var TreeNode=Tree.TreeNode; var Modal=MonkeyUi.Modal; var Aut...
src/js/components/pin-controls.js
mtharrison/whereyouat
import React, { Component } from 'react'; export default ({ removeAllPins }) => ( <div className="col-md-4"> <button onClick={removeAllPins}>Remove All Pins</button> </div> );
ReduxReactToDo/app/components/Filters/index.js
michaelgichia/TODO-List
import React from 'react'; import Tasks from './Tasks'; import Label from './Label'; class Filters extends React.Component { // eslint-disable-line react/prefer-stateless-function constructor(props) { super(props) } render() { return ( <Tasks> <Label id="all-todo">All</Label> <Labe...
client/src/LoginScreen.js
nux17/kryptchat
import React from 'react'; import { View, TextInput, StyleSheet, Text, TouchableHighlight } from 'react-native'; import { Link } from 'react-router-native'; import { setCurrentUser, setJWT } from './security'; class LoginScreen extends React.Component { constructor() { super(); this.state = { login: '',...
src/table/TableHeader.js
HarvestProfit/harvest-profit-ui
import React from 'react'; import PropTypes from 'prop-types'; /** * Placed directly under the `<Table>` component to render the table header */ const TableHeader = props => ( <div className={`table-header v2 ${props.className}`} style={props.style}> {props.children} </div> ); TableHeader.propTypes = { /*...
src/helpers/universalRouter.js
jsfeb26/gsd
import React from 'react'; import Router from 'react-router'; import createRoutes from '../routes'; import { Provider } from 'react-redux'; const getFetchData = (component = {}) => { // recursively go through all of the components in the routes // and if they have a mehtod called fetchData then call it // Wrappe...
assets/jqwidgets/demos/react/app/dropdownlist/loaddatafromselect/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { let updating = false; let select = document.getElementById('select'); this.refs.myDropDo...
src/svg-icons/action/android.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAndroid = (props) => ( <SvgIcon {...props}> <path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8...
client/node_modules/uu5g03/dist-node/bricks/slider.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin} from '../common/common.js'; import Backdrop from './backdrop.js'; import './slider.less'; export const Slider = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin, ...
app/assets/scripts/components/checkbox-group.js
energy-data/market-opportunities
import React from 'react' import Checkbox from './checkbox' const CheckboxGroup = React.createClass({ propTypes: { layerId: React.PropTypes.string, values: React.PropTypes.array, selected: React.PropTypes.array, updateLayerFilter: React.PropTypes.func }, render: function () { const { value...
src/icons/AndroidBar.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidBar extends React.Component { render() { if(this.props.bare) { return <g> <g id="Icon_37_"> <g> <path d="M234.667,277.333V408H128v40h256v-40H277.333V277.333L448,106.667V64H64v42.667L234.667,277.333z...
app/addons/documents/sidebar/reducers.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...
examples/with-goober/pages/_app.js
zeit/next.js
import React from 'react' import { prefix } from 'goober-autoprefixer' import { setup } from 'goober' // goober's needs to know how to render the `styled` nodes. // So to let it know, we run the `setup` function with the // `createElement` function and prefixer function. setup(React.createElement, prefix) export defa...
src/App.js
JJVvV/redux-example
import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory' import HashHistory from 'react-router/lib/HashHistory' import Root from './js/containers/Root.js' const history = new HashHistory(); React.render(<Root history={history} />, document.getElementById('app'));
components/Presets.js
dawnlabs/carbon
import React from 'react' import Button from './Button' import { COLORS, DEFAULT_PRESETS } from '../lib/constants' import * as Arrows from './svg/Arrows' import Remove from './svg/Remove' const removeButtonStyles = { position: 'absolute', top: '6px', right: '6px', width: '11px', height: '11px', borderRadi...
public/js/components/chat/tabs1.react.js
rajikaimal/Coupley
import React from 'react'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import TextField from 'material-ui/lib/text-field'; import Divider from 'material-ui/lib/divider'; import IconButton from 'material-ui/lib/icon-button'; import Tabs from 'material-ui/lib/tab...
components/UnorderedList.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const propTypes = { children: PropTypes.node, className: PropTypes.string, nested: PropTypes.bool, }; const defaultProps = { nested: false, }; const UnorderedList = ({ children, className, nested, ...other }) ...
admin/client/components/List/ListColumnsForm.js
tony2cssc/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import CurrentListStore from '../../stores/CurrentListStore'; import Popout from '../Popout'; import PopoutList from '../Popout/PopoutList'; import { Button, InputGroup, FormField, FormInput } from 'elemental'; var ListColumnsForm = React.createClass({ disp...
src/js/components/icons/base/PlatformNorton.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...
src/components/common/ListItem.js
abzfarah/Pearson.NAPLAN.GnomeH
import React, { Component } from 'react'; import classnames from 'classnames'; import Box from './Box'; import Props from '../utils/Props'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.LIST_ITEM; export default class ListItem extends Component { render () { const { child...
app/components/Weather/Weather.js
zchen9/DonutTab
import React from 'react'; require('./Weather.scss'); const WEATHER_API = 'https://api.heweather.com/x3/weather'; const CITY_API = 'https://api.heweather.com/x3/citylist'; const KEY = 'ac32bea2133a4f849fc136a0ffae65dd'; const showStyle = { display: 'inline' }; const hideStyle = { display: 'none' }; export d...
packages/react-error-overlay/src/components/NavigationBar.js
matart15/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { red, redTransparent } from '../styles'; const navigationBarStyle = { marginBottom: '0...
src/BreadcrumbItem.js
mxc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; import warning from 'react/lib/warning'; const BreadcrumbItem = React.createClass({ propTypes: { /** * If set to true, renders `span` instead of `a` */ active: React.PropTypes.bool, /** *...
app/components/Header/index.js
Jan-Jan/react-hackathon-boilerplate
import React from 'react' import { IndexLink, Link } from 'react-router' export default () => <div> <IndexLink to="/" activeClassName="route--active"> Home </IndexLink> {' · '} <Link to="/counter" activeClassName="route--active"> Counter </Link> {' · '} <Link to="/login" activ...
client/memories.js
hr-memories/TagMe
import React from 'react'; import { StyleSheet, AsyncStorage, View, Text, TouchableHighlight, Image } from 'react-native'; import { Font } from 'exponent'; import { Container, Header, Title, Content, Footer, InputGroup, Input, Button } from 'native-base'; import { Ionicons } from '@exponent/vector-icons'; ...
src/components/PreviewMenu.js
jozanza/pixels
import React from 'react'; import { withState } from 'recompose'; import styled from 'styled-components'; import MenuWrapper from './MenuWrapper'; import Layer from './Layer'; import { play as Play, pause as Pause } from './Icons'; import { mergePixels, debounce } from '../utils'; class Debounce extends React.Componen...
src/app/components/media/MediaDetail.js
meedan/check-web
import React from 'react'; import Card from '@material-ui/core/Card'; import styled from 'styled-components'; import MediaExpanded from './MediaExpanded'; import { brandSecondary, } from '../../styles/js/shared'; const StyledMainCard = styled.div` .media-detail { box-shadow: none; border: 1px solid ${bran...
shared/components/Main/ResetPassword/ResetPassword.js
KCPSoftware/KCPS-React-Starterkit
import React, { Component } from 'react'; import { changeTitle } from '../../../actions/pageActions'; import { resetPasswordWithLink } from '../../../actions/userActions'; import { connect } from 'react-redux'; import Notification from '../../SubComponents/Notification'; const queryString = require('query-string'); @...
client/src/components/LoginFormHeader.js
RiddleMan/giant-privacy-spy
import React from 'react'; import logo from '../images/touch/chrome-touch-icon-192x192.png'; const Logo = () => { const logoStyle = { width: '90px', margin: '14px 20px', marginRight: '0px' }; const imgStyle = { maxWidth: '100%' }; return (<picture style={logoStyle}...
examples/query-params/app.js
rdjpalmer/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link } from 'react-router' class User extends React.Component { render() { let { userID } = this.props.params let { query } = this.props.location let age = query && query.showAge ? '33' : '' return (...
src/scenes/player/components/PlayQueue/Track.js
niekert/soundify
import React from 'react'; import { string, func, bool } from 'prop-types'; import DragHandle from 'components/icons/DragHandle'; import ArtWork from 'components/Track/ArtWork'; import CloseIcon from 'components/icons/CloseIcon'; import { DragSource, DropTarget } from 'react-dnd'; import { compose, withHandlers } from ...
src/components/common/cover/CoverBackground/CoverBackground.js
CtrHellenicStudies/Commentary
import React from 'react'; class CoverBackground extends React.Component { constructor(props) { super(props); this.state = { transform: 'translate(-1%, -2%)', }; } translateBackground(e) { const { reactsToMouse } = this.props; if (reactsToMouse) { let x = e.pageX / window.innerHeight; x *= -2...
app/js/pages/AdminLogin.js
arcsecw/myfd
import React from 'react'; import PageContainer from '../components/PageContainer'; import { render } from 'react-dom' import { Grid, Col, Form, Input, Thumbnail, Image, Icon, Button, Panel, } from 'amazeui-react'; import auth from '../components/auth' import { browserHistory, Router, Route, Link, wit...
tests/format/flow-repo/react/createElement_string.js
jlongster/prettier
// @flow import React from 'react'; class Bar extends React.Component {} class Foo extends React.Component { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); } }
threeforce/node_modules/react-bootstrap/es/Tooltip.js
wolfiex/VisACC
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 ...
app/javascript/mastodon/components/button.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
examples/04 Sortable/Simple/index.js
nickknw/react-dnd
import React from 'react'; import Container from './Container'; export default class SortableSimple { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b> </p> <p> It i...
app/containers/HomePage.js
axynos/STARK
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
tools/public-components.js
justinanastos/react-bootstrap
import React from 'react'; import * as index from '../src/index'; let components = []; Object.keys(index).forEach(function (item) { if (index[item] instanceof React.Component.constructor) { components.push(item); } }); export default components;
docs/src/app/components/pages/get-started/Prerequisites.js
tan-jerene/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import prerequisitesText from './prerequisites.md'; const Prerequisites = () => ( <div> <Title render={(previousTitle) => `Prerequisites - ${previousTitle}`} /> <MarkdownElement text={p...
src/Components/ObjectProperty/ToggleColumn.js
apiaryio/attributes-kit
import Radium from 'radium'; import React from 'react'; import PropTypes from 'prop-types'; import Toggle from '../Toggle/Toggle'; @Radium class ToggleColumn extends React.Component { static propTypes = { isExpanded: PropTypes.bool, onClick: PropTypes.func, }; static contextTypes = { includedProper...
source/components/ContentPanel/Body/MainContent.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import Embedly from 'components/Embedly'; import LongText from 'components/Texts/LongText'; import VideoPlayer from 'components/VideoPlayer'; import ContentEditor from './ContentEditor'; import ErrorBoundary from 'components/Wrappers/ErrorBoundary'; import ...
src/svg-icons/action/open-with.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenWith = (props) => ( <SvgIcon {...props}> <path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/> </SvgIcon> ); ActionOpenWith = pure(Act...
src/svg-icons/maps/person-pin-circle.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPinCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0...
examples/test-cra/src/index.js
shilman/storybook
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
components/admin/nav.js
wi2/sails-isomorphic-react-admin-example
"use strict"; import React from 'react' import {Link} from 'react-router' export default class { render() { let identities = this.props.identities; return ( <nav className="navbar navbar-default navbar-fixed-top"> <div className="container"> <ul className="nav navbar-nav"> ...
generators/app/templates/app/src/server.js
hasura/generator-hasura-web
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import path from 'path'; import Html from './helpers/Html'; import PrettyError from 'pretty-error'; import http from 'http'; // Server Side Rendering (S...
investninja-web-ui-admin/src/components/Ninja/Carteira/CarteiraCards.js
InvestNinja/InvestNinja-web-ui
import React from 'react'; import CarteiraBox from './CarteiraBox'; import { PageHeader } from 'react-bootstrap'; import Button from 'react-bootstrap/lib/Button'; import { Form } from 'react-bootstrap'; import { animateScroll } from 'react-scroll'; export default class CarteiraCards extends React.Component { ...
components/Static.js
djhi/dpc
import React from 'react'; import PropTypes from 'prop-types'; import ReactMarkdown from 'react-markdown'; import { gql, graphql } from 'react-apollo'; import compose from 'recompose/compose'; import getContext from 'recompose/getContext'; import withState from 'recompose/withState'; import withProps from 'recompose/wi...
client.js
lamplightdev/countdown
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import logger from './middleware/redux/logger'; import syncDB from './middleware/redux/syncDB'; import pr...
src/components/Input/Select.js
titon/toolkit
/** * @copyright 2010-2017, The Titon Project * @license http://opensource.org/licenses/BSD-3-Clause * @link http://titon.io * @flow */ import React from 'react'; import Input from './Input'; import style from '../../styler'; import { INPUT_CLASSES } from './types'; import { optionListPropType } from...
src/Checkbox.story.js
prometheusresearch/react-ui
/** * @flow */ import React from 'react'; import {storiesOf} from '@kadira/storybook'; import Checkbox from './Checkbox'; import I18N from './I18N'; storiesOf('<Checkbox/>', module) .add('Off state', () => <Checkbox value={false} />) .add('On state', () => <Checkbox value={true} />) .add('With label', () => <...
src/components/SendMessage.js
bigzhe/Liveboard
import React from 'react' import { Input, Button, Container, Grid, Header } from 'semantic-ui-react' const SendMessage = ({status, dispatchSetSending, dispatchSendMessage, dispatchNextStatus, dispatchResetStatus}) => { let text = '' const handleOnChange = (event) => { text = event.target.value if (text !==...
test/test_helper.js
Jaberwalky/ReduxCourse
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
traveller/App/Containers/ThemeScreen.js
Alabaster-Aardvarks/traveller
// @flow import React from 'react' import { View, ScrollView, Text, Image } from 'react-native' import { Colors, Fonts, Images } from '../Themes' import R from 'ramda' // Styles import styles from './Styles/ThemeScreenStyle' // Colors const colors = R.keys(Colors) // Font Types const types = R.keys(Fonts.type) // Fo...
02-simple-contacts/src/components/ContactList.js
posquit0/react-tutorial
import React from 'react'; import ContactItem from './ContactItem'; class ContactList extends React.Component { renderContactItem(contact) { return <ContactItem key={ contact.id } contact={ contact } /> } render() { const contacts = this.props.contacts; return ( <ul className="contact-list">...
Paths/React/06.Styling React Components/2-react-styling-components-m2-exercise-files/demo/Before/src/index.js
phiratio/Pluralsight-materials
import React from 'react' import ReactDOM from 'react-dom' import DriftApp from './app' ReactDOM.render(<DriftApp />, document.getElementById('app'))
app/javascript/mastodon/features/report/components/status_check_box.js
mhffdq/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
fields/types/select/SelectColumn.js
Freakland/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.ob...
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/html/index.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import withStore from 'fields/decorators/with-store'; import withSetup from 'fields/dec...
app/features/settings/components/SettingsButton.js
jitsi/jitsi-meet-electron
// @flow import SettingsIcon from '@atlaskit/icon/glyph/settings'; import { SpotlightTarget } from '@atlaskit/onboarding'; import * as Mousetrap from 'mousetrap'; import 'mousetrap/plugins/global-bind/mousetrap-global-bind'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import type...
assets/jqwidgets/demos/react/app/chart/sparklines/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { createSparkline(selector, data, type) { let padding = { left: 0, t...
client/src/components/Task/TaskProfileNames.js
DemocracyGuardians/DGTeam
import React from 'react'; import { withRouter } from 'react-router-dom' import PropTypes from 'prop-types' import TaskProfileEntries from './TaskProfileEntries' import substituteVariables from '../../util/substituteVariables' import './TaskProfileNames.css' class TaskProfileNameTextEntry extends React.Component { ...
packages/react/components/swipeout-actions.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7SwipeoutActions extends React.Component {...
src/components/Main.js
georgeQaQ/gallery-based-on-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; // 获取图片信息 // import imageDatass from '../data/imageData.json'; let imageDatass = require('../data/imageData.json'); //将图片名信息转化成图片路径信息 const imageDatas = imageDatass.map((image)=>{ image....
src/components/Room.js
danielgavrilov/room-bookings
import moment from '../moment'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import VisibilitySensor from './VisibilitySensor'; import Availability from '../containers/Availability'; import getClassificationName from '../utils/classification-name'; ...
fields/types/number/NumberFilter.js
mikaoelitiana/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const CONTROL_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label: 'Between', value: 'between' } ]...
node_modules/react-bootstrap/es/Tabs.js
rblin081/drafting-client
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 ...
index.js
proto2017/react-router
/** * Created by protp on 2017/2/26. */ import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import routes from './modules/routes' render (<Router routes={routes} history={browserHistory} />, document.getElementById('app'));
src/renderer/components/Frame/Controls/Maximize.js
MovieCast/moviecast-desktop
import React from 'react'; import PropTypes from 'prop-types'; const Maximize = ({ isMaximized, ...props }) => { if (!isMaximized) { return ( <svg height="100%" width="100%" shapeRendering="crispEdges" {...props}> <rect x="18" y="8" width="9" height="9" stroke="white" fill="none" /> </svg> ...
js/components/ScheduleList/TagPopover.js
weihanglo/pycontw-mobile
import React from 'react' import PropTypes from 'prop-types' import {Dimensions, StyleSheet, TouchableOpacity, View} from 'react-native' import {LargeText} from '../../common/PyText' import * as Colors from '../../common/PyColors' import categoryMapping from '../../i18n/categoryMapping' export default class extends R...
node_modules/react-router-dom/node_modules/react-router/es/Switch.js
NickingMeSpace/questionnaire
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
Redux_examples/todos-with-undo/src/containers/AddTodo.js
hiddaorear/jsTips
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
packages/reactor-kitchensink/src/examples/DragAndDrop/Handles/Handles.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Panel } from '@extjs/ext-react'; import './styles.css'; Ext.require(['Ext.drag.*']); export default class Handles extends Component { render() { return ( <Panel ref="mainPanel" padding={5} sha...
app/javascript/mastodon/components/status_content.js
yukimochi/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; import PollContainer from 'mastodon/containers/poll_container'; import Icon ...
node_modules/native-base/Components/Widgets/Tabs.js
tedsf/tiptap
/* @flow */ 'use strict'; import React from 'react'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import computeProps from '../../Utils/computeProps'; import ScrollableTabView from './../vendor/react-native-scrollable-tab-view'; export default class TabNB extends NativeBaseComponent { getInitia...
test/integration/with-router/pages/_app.js
JeromeFitz/next.js
import App from 'next/app' import React from 'react' import HeaderNav from '../components/header-nav' export default class MyApp extends App { static async getInitialProps({ Component, router, ctx }) { let pageProps = {} if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx)...
frontend/src/Settings/Profiles/Release/ReleaseProfiles.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Card from 'Components/Card'; import FieldSet from 'Components/FieldSet'; import Icon from 'Components/Icon'; import PageSectionContent from 'Components/Page/PageSectionContent'; import { icons } from 'Helpers/Props'; import EditRelease...
src/icons/StrokeCode.js
ipfs/webui
import React from 'react' const StrokeCode = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M75 24H25.11c-4.19 0-8 4.11-8 8.61v35.26a8.29 8.29 0 0 0 8 8.13H75a8.11 8.11 0 0 0 7.87-8.13V32.61C82.91 28.55 79.54 24 75 24zm-49.89 3H75c2.74 0 4.87 3 4.87 5.61v1.32H20.09v-1.32c0-2.83 2.49-5.61 5.02-5.61zm-...
src/App.js
xkawi/create-react-app-now
import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Link, Switch, } from 'react-router-dom' import About from './About'; import logo from './logo.svg'; import './App.css'; const NoMatch = ({ location }) => ( <div> <p>No Match for <code>{location.pathname}</code></p> <Li...
src/components/AppAlert.js
Ntobon/dm_react_app
import React from 'react'; import Alert from 'react-bootstrap/lib/Alert'; class AppAlert extends React.Component { constructor(props) { super(props); } handleAlertDismiss() { this.props.callbackDismiss(); } handleAlertShow() { this.props.visible=true; } render() { if (this.props.visibl...
src/components/VerticalBarChart/VerticalBarChart.js
rocket-internet-berlin/RocketDashboard
import React from 'react'; import PropTypes from 'prop-types'; import { ResponsiveContainer, BarChart, Bar, XAxis, YAxis, Tooltip } from 'recharts'; import './VerticalBarChart.scss'; import constants from '../../config/constants'; const VerticalBarChart = ({ data }) => ( <div className="VerticalBarChart"> <Resp...
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/content/components/action-button.js
nossas/bonde-client
import React from 'react' import classnames from 'classnames' const ActionButton = ({ children, editing, changeState, onClick, title, style, className, value }) => ( <button className={classnames('btn bg-blacker rounded', className)} onClick={() => onClick(value, changeState)} style={{ position: 'r...
src/App/index.js
blundercode/node-api-server
/*** @jsx React.DOM */ import React from 'react'; import { RouteHandler } from 'react-router'; var App = React.createClass({ render: function() { return ( <div className="wrapper"> <header> <h1><a href="#/">Pokemon API Server</a></h1> </header...
blueocean-material-icons/src/js/components/svg-icons/editor/short-text.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorShortText = (props) => ( <SvgIcon {...props}> <path d="M4 9h16v2H4zm0 4h10v2H4z"/> </SvgIcon> ); EditorShortText.displayName = 'EditorShortText'; EditorShortText.muiName = 'SvgIcon'; export default EditorShortText;
src/user/UserFollowing.js
Sekhmet/busy
import React, { Component } from 'react'; import UserList from './UserList'; import Loading from '../widgets/Loading'; import { getAllFollowing } from '../helpers/apiHelpers'; export default class UserFollowing extends Component { constructor(props) { super(props); this.state = { isLoading: false, ...
frontend/src/components/ReadableDuration.js
OwenRay/Remote-MediaServer
import React from 'react'; function readableDuration(props) { return <span>{`${Math.round(props.children / 60)}m`}</span>; } export default readableDuration;
client/src/components/dashboard/adminDashboard/usersView.component.js
andela-opikuda/documentManagementSystem
import React, { Component } from 'react'; import { browserHistory, Link } from 'react-router'; import jwtDecode from 'jwt-decode'; let usersList = []; /** * @param {Object} props * @returns {void} return table */ const UserDocs = (props) => { /** * @param {Object} roles * @param {Object} index * @retu...
newclient/scripts/components/user/manual/manual-event/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. 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 Lic...
src/pages/About.js
byoigres/minutes
import React from 'react'; import { FormattedHTMLMessage } from 'react-intl'; const About = () => <FormattedHTMLMessage id="content.about" />; export default About;
app/containers/HomePage/index.js
koofka/singleproperty_redux
/* * HomePage * * This is the first thing users see of our App, at the '/' 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 necessity for you then you can refactor it and remove * the l...
src/Parser/Core/Modules/Items/Legion/AntorusTheBurningThrone/NorgannonsProwess.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage, formatNumber } from 'common/format'; import { calculatePrimaryStat } from 'common/stats'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Par...
packages/expo-barcode-scanner/build/ExpoBarCodeScannerView.web.js
exponentjs/exponent
import React from 'react'; import { Text, View } from 'react-native'; export default class ExpoBarCodeScannerView extends React.Component { render() { return (React.createElement(View, null, React.createElement(Text, null, "BarCodeScanner Component not supported on the web"))); } } //# sourc...
react-client/src/components/UnifiedComponent.js
lowtalkers/escape-reality
import {Entity} from 'aframe-react'; import React from 'react'; import 'aframe-bmfont-text-component'; import TextPlane from './TextPlane'; import RingTag from './RingTag'; export default props => { {/* Draft UnifiedComponent return ( <Entity ref="RingTag123"> <RingTag id="pyramidTag" clickFunc...
src/svg-icons/editor/insert-photo.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertPhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); EditorI...
packages/react-interactions/events/src/dom/Scroll.js
Simek/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactDOMResponderEvent, ReactDOMResponderContext, PointerType, } from 'shared/ReactDOMTypes'; impo...
src/admin/NotPermissible.js
rendact/rendact
import React from 'react'; var NotPermissible = React.createClass({ componentDidMount: function(){ }, render: function(){ return ( <div className="content-wrapper"> <div className="content-fluid"> <section className="content"> <div className="row"> <h3 className="text-center"> ...
docs/server.js
mcraiganthony/react-bootstrap
import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import ip from 'ip'; const development = process.env.NODE_ENV !== 'production'; const port = process.env.PORT || ...
ui/src/main/js/components/TaskConfig.js
rdelval/aurora
import React from 'react'; export default function TaskConfig({ config }) { return <pre>{JSON.stringify(config, null, 2)}</pre>; }