path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/Loginscreen.js
swapnalikadam/cloudprint
import React, { Component } from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import RaisedButton from 'material-ui/RaisedButton'; import Login from './Login'; import Register from './Register'; class Loginscreen extends Component { constructor(props){ super(props); var loginB...
js/components/App.js
orionwei/mygit
import React from 'react'; import Relay from 'react-relay'; class App extends React.Component { render() { return ( <div> <h1>Widget list</h1> <ul> {this.props.viewer.widgets.edges.map(edge => <li key={edge.node.id}>{edge.node.name} (ID: {edge.node.id})</li> ...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
fengchenlianlian/actor-platform
import _ from 'lodash'; import React from 'react'; import ActorClient from 'utils/ActorClient'; import { KeyCodes } from 'constants/ActorAppConstants'; import InviteUserActions from 'actions/InviteUserActions'; import ContactStore from 'stores/ContactStore'; import InviteUserStore from 'stores/InviteUserStore'; im...
docs/app/Examples/elements/Step/index.js
clemensw/stardust
import React from 'react' import Content from './Content' import Groups from './Groups' import States from './States' import Types from './Types' import Variations from './Variations' const StepExamples = () => ( <div> <Types /> <Groups /> <Content /> <States /> <Variations /> </div> ) export...
app/components/MainLayout.js
wbowling/deciderer
import React from 'react' import { Grid } from 'react-bootstrap' import TopBar from './TopBar' import Footer from './Footer' const MainLayout = React.createClass({ render() { return ( <div> <TopBar /> <Grid> {this.props.children} <Footer /> </Grid> </div...
src/icons/AccessibilityIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class AccessibilityIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm18 14H30v26h-4V32h-4v12h-4V18H6v-4h36v4z"...
src/components/Layout/Navigation.js
EthHead/ens.trade
import React from 'react'; import Link from '../Link'; class Navigation extends React.Component { componentDidMount() { window.componentHandler.upgradeElement(this.root); } componentWillUnmount() { window.componentHandler.downgradeElements(this.root); } render() { return ( <nav className...
app/javascript/mastodon/features/ui/util/reduced_motion.js
unarist/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
src/js/components/ui/reduxForm/Radio.js
knowncitizen/tripleo-ui
/** * Copyright 2018 Red Hat 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...
ButtonExample/src/components/Text.js
jacklam718/react-native-button-component
import React from 'react'; import ReactNative, { StyleSheet, Dimensions } from 'react-native'; const scale = Dimensions.get('window').width / 375; export default function Heading1(props) { return ( <ReactNative.Text style={styles.h1} {...props} /> ); } function normalize(size: number): number { return Math...
src/components/ui/Radio.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { Field } from 'mobx-react-form'; import classnames from 'classnames'; export default @observer class Radio extends Component { static propTypes = { field: PropTypes.instanceOf(Field).isReq...
js/components/QuestionTypes/ShortAnswer.js
ecohealthalliance/GoodQuestion
import React from 'react'; import { Text, TextInput, View, } from 'react-native'; import Styles from '../../styles/Styles'; import Color from '../../styles/Color'; import ViewText from '../ViewText'; const ShortAnswer = React.createClass({ propTypes: { id: React.PropTypes.string.isRequired, text: React...
app/routes/method-type/CreateRoute.js
ryrudnev/dss-wm
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as MethodType } from '../../entities/MethodType'; import { PageHeader, Row, Col, Panel } from 'react-bootstrap'; import MethodTypeForm from '../../components/MethodTypeForm'; import Progress from 'rea...
src/svg-icons/notification/phone-bluetooth-speaker.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneBluetoothSpeaker = (props) => ( <SvgIcon {...props}> <path d="M14.71 9.5L17 7.21V11h.5l2.85-2.85L18.21 6l2.15-2.15L17.5 1H17v3.79L14.71 2.5l-.71.71L16.79 6 14 8.79l.71.71zM18 2.91l.94.94-.94.94...
views/blocks/Likes/Likes.js
AlSoEdit/team5
import React from 'react'; import b from 'b_'; import './Likes.css'; const likeCounter = b.lock('like-counter'); export default class Likes extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick() { this.props.on...
manager/src/components/common/Input.js
haaswill/ReactNativeCourses
import React from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secureTextEntry, autoCapitalize }) => { const { inputStyle, labelStyle, containerStyle } = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{la...
client/src/Components/AddMessage.js
fxlemire/graphql-react-tutorial
import PropTypes from 'prop-types'; import React from 'react'; import { gql, graphql } from 'react-apollo'; import { withRouter } from 'react-router-dom'; import { channelDetailsQuery } from './ChannelDetails'; const AddMessage = ({ mutate, match }) => { const handleKeyUp = (e) => { if (e.keyCode === 13) { ...
packages/react/src/components/atoms/Divider/Divider.stories.js
massgov/mayflower
import React from 'react'; import { StoryPage } from 'StorybookConfig/preview'; import Divider from './index'; import DividerDocs from './Divider.md'; export const DividerExample = () => <Divider />; DividerExample.storyName = 'Default'; export default { title: 'atoms/Divider', component: Divider, parameters:...
src/js/views/controls.js
electronspin/touchstonejs-starter
import Container from 'react-container'; import React from 'react'; import Tappable from 'react-tappable'; import Timers from 'react-timers'; import { Link, UI } from 'touchstonejs'; module.exports = React.createClass({ mixins: [Timers()], statics: { navigationBar: 'main', getNavigation () { return { titl...
src/components/icon.js
romainberger/react-switch
import React from 'react' export default class Icon extends React.Component { render() { return <i className={'icon icon-' + this.props.icon} /> } }
server/sonar-web/src/main/js/apps/overview/meta/MetaTags.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/components/Bio.js
mudetroit/mudetroit.github.io
import React from 'react' // Import typefaces import 'typeface-montserrat' import 'typeface-merriweather' import profilePic from './profile-pic.png' import { rhythm } from '../utils/typography' class Bio extends React.Component { render() { return ( <div style={{ display: 'flex', ...
app/client/components/home-page/home-page.js
steelkiwi/hunting-kiwi
import React, { Component } from 'react'; class HomePage extends Component { render() { return ( <h1>Home page!</h1> ); } } export default HomePage;
src/svg-icons/social/notifications.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotifications = (props) => ( <SvgIcon {...props}> <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 ...
TalkToParent/child.js
jennselby/ReactNativeExamples
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, Button, } from 'react-native'; export default class Child extends Component { constructor(props) { super(props); this.state = { value: 0, }; } addOne() { if (this.state.value == 9) { this.props....
src/parser/paladin/holy/modules/talents/CrusadersMight.js
sMteX/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import Analyzer from 'parser/core/Analyzer'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/Sta...
src/components/SupportMe.js
jumpalottahigh/blog.georgi-yanev.com
import React from 'react' import styled from 'styled-components' import { Link } from 'gatsby' const LINK_SIZE = '34px' const StyledLink = styled(Link)` box-shadow: none !important; width: ${LINK_SIZE}; height: ${LINK_SIZE}; font-size: 24px; display: flex; justify-content: center; align-items: center; ...
test/test_helper.js
antzah/gadgetrandomizer
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...
src/pages/gen/help/index.js
nai888/langua
import React from 'react' import { graphql, useStaticQuery } from 'gatsby' import Notice from '../../../components/notice' import Help from '../../../components/help' export const PureGenHelp = ({ data }) => { const metadata = data?.site?.siteMetadata const toolInfo = metadata?.toolInfo?.gen return ( <Help...
server/sonar-web/src/main/js/apps/projects/components/ProjectTagsSelectorContainer.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/components/Chat/Markup/GroupMention.js
welovekpop/uwave-web-welovekpop.club
import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; const GroupMention = ({ className, group }) => ( <span className={cx('ChatMention', `ChatMention--${group}`, className)}> @{group} </span> ); GroupMention.propTypes = { className: PropTypes.string, group: PropTypes...
ajax/libs/react-select/1.0.0-rc.9/react-select.es.js
sashberd/cdnjs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; function arrowRenderer(_ref) { var onMouseDown = _ref.onMouseDown; return React.createElement('span', { className: ...
resources/assets/js/components/admin/forms/TeachersDropdown.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { connect } from 'react-redux'; const mapStateToProps = (state) => { return { teachers: state.adminReducer.teachers }; }; class TeachersDropdown extends Component { constructor(props) { super(props); this.state = { selectedTeacherId: null }...
app/javascript/mastodon/features/compose/components/compose_form.js
hugogameiro/mastodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
src/svg-icons/device/signal-cellular-2-bar.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M14 10L2 22h12z"/> </SvgIcon> ); DeviceSignalCellular2Bar = pure(DeviceSignalCellular2Bar); Device...
src/components/basic/Markdown.js
casesandberg/react-mark
'use strict'; import React from 'react'; import { generate } from 'shortid'; export class MARKDOWN extends React.Component { render() { var refs = []; for (var refName in this.props.references) { var ref = this.props.references[refName]; refs.push(<p key={ generate() } id={ refName }>[{ refName...
web/src/js/utils.js
jvillacorta/mitmproxy
import _ from 'lodash' import React from 'react' import shallowEqual from 'shallowequal' window._ = _; window.React = React; export var Key = { UP: 38, DOWN: 40, PAGE_UP: 33, PAGE_DOWN: 34, HOME: 36, END: 35, LEFT: 37, RIGHT: 39, ENTER: 13, ESC: 27, TAB: 9, SPACE: 32, ...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
ksivam/react-router
/*globals COURSES:true */ import React from 'react' class Grades extends React.Component { render() { let { assignments } = COURSES[this.props.params.courseId] return ( <div> <h3>Grades</h3> <ul> {assignments.map(assignment => ( <li key={assignment.id}>{assignment...
src/components/common/svg-icons/image/filter-5.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter5 = (props) => ( <SvgIcon {...props}> <path d="M21 1H7c-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 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-...
src/map/js/components/AnalysisPanel/LossFootnote.js
wri/gfw-water
/** * Currently not in use * UI Looks like this: Tree cover loss 2001 to 2014 with > 30 % canopy density. */ import CanopyLink from 'components/AnalysisPanel/CanopyLink'; import LossLink from 'components/AnalysisPanel/LossLink'; import {analysisPanelText as text} from 'js/config'; import {mapStore} from 'stores/MapSto...
src/components/Pubs.js
ontappl/rn
import React from 'react'; import { View, StyleSheet, ListView, } from 'react-native'; import {LoadingIndicator,} from './LoadingIndicator'; import {PubRow,} from './PubRow'; import {PlainListSeparator,} from './PlainListRow'; export const Pubs = ({isLoading, pubsDataSource, onPubSelect, onTogglePubFavor...
src/svg-icons/image/hdr-off.js
ArcanisCz/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/svg-icons/notification/do-not-disturb-alt.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbAlt = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8...
assets/registration/components/BasicDetailsComponent.js
janta-devs/nyumbani
import React, { Component } from 'react'; import SuccessAlert from './SuccessAlert'; import DangerAlert from './DangerAlert'; import InformationAlert from './InformationAlert'; import $ from 'jquery'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import ExpandTr...
app/app.js
likesalmon/likesalmon-react-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/Parser/Core/Modules/NetherlightCrucibleTraits/InfusionOfLight.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import HealingDone ...
src/interface/statistics/components/DonutChart/index.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { RadialChart } from 'react-vis'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import { TooltipElement } from 'common/Tooltip'; import './style.scss'; class DonutChart extends React.PureComponent { ...
examples/star-wars/js/components/StarWarsApp.js
liuxiong332/graphql-client
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
src/svg-icons/communication/call-end.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallEnd = (props) => ( <SvgIcon {...props}> <path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-....
src/components/AuthenticatedRoute.js
matapang/virtualraceph2
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; export default ({ component: C, props: cProps, ...rest }) => ( <Route {...rest} render={props => ( cProps.userToken !== null ? <C {...props} {...cProps} /> : <Redirect to={`/login?redirect=${props.location.pathname}${props...
fields/types/number/NumberFilter.js
Tangcuyu/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/antd/es/upload/UploadList.js
ZSMingNB/react-news
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
classic/src/scenes/mailboxes/src/Scenes/AppScene/ServiceTab/ServiceWebViews/Slack/SlackServiceWebView.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import CoreServiceWebView from '../../CoreServiceWebView' import { accountDispatch, accountStore, accountActions } from 'stores/account' import { slackActions } from 'stores/slack' import { URL } from 'url' import { WB_BROWSER_NOTIFICATION_PRESENT, WB_BRO...
fixtures/kitchensink/template/src/features/webpack/LinkedModules.js
d3ce1t/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. */ import React from 'react'; import './assets/style.css'; import { test, version } from 'test-integrity'; export default () => { const ...
src/components/About.js
ArashDai/portfolio
import React from 'react'; const About = () => { return( <div className='container noPadding' href='#about'> <div className='col-xs-12' id='about'> <div className='imgWrapper col-xs-12 col-sm-offset-1 col-sm-4'> <img id='profilePic' className='img-circle img...
docs/app/Examples/elements/Icon/Groups/IconExampleLoadingGroup.js
vageeshb/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleLoadingGroup = () => ( <div> <Icon.Group size='huge'> <Icon size='big' color='red' name='dont' /> <Icon color='black' name='user' /> </Icon.Group> <Icon.Group size='huge'> <Icon loading size='big' name='...
src/components/About.js
benruehl/gatsby-kruemelkiste
import React from 'react' import SectionContainer from '../components/SectionContainer' import BackgroundContentContainer from '../components/BackgroundContentContainer' //import {headerColor} from '../styles/colors' import {contentWidth} from '../styles/dimens' import strings from '../../data/strings' import abstrac...
lib/components/Uploader.js
codebhendi/filepizza
import Arrow from '@app/components/Arrow'; import React from 'react'; import UploadActions from '@app/actions/UploadActions'; export default class UploadPage extends React.Component { uploadFile(file) { UploadActions.uploadFile(file); } render() { switch (this.props.status) { case 'ready': ...
src/Router.js
mksarge/redux-json-router
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { match } from './match'; class Router extends React.Component { constructor() { super(); this.state = { component: null, params: {}, }; this.getNewComponent = this.getNewComponent...
src/components/EmojiList.js
eliasmeire/emoji-pane
import React from 'react'; import Emoji from './Emoji'; const EmojiList = ({ emojis, onSelected, selectedIndex, skinTone }) => ( <div className="emoji-panel__list"> {emojis.length > 0 ? ( emojis .map((emoji, i) => ( <Emoji selected={i === selectedIndex} ...
src/svg-icons/hardware/desktop-windows.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDesktopWindows = (props) => ( <SvgIcon {...props}> <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"/> </SvgIcon> ); HardwareDesk...
app/App.js
eunki7/react-express-starter-kit
import React from 'react'; export default class App extends React.Component { render() { return ( <h1>Hello ReactJs!</h1> ) } }
src/components/Footer.js
JoeEcob/Spendy
import React from 'react'; const Footer = () => ( <footer className="footer"> <div className="container"> <small>Made with <span className="fa fa-heart">&nbsp;</span> in Manchester | </small> <small><a href="https://monzo.me/JosephEcob" title="Beer me">Buy me a beer</a></small> </div> </footer>...
test/helpers/shallowRenderHelper.js
XYZ-123/ActiveFinancialsPOC
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
templates/rubix/rails/rails-seed/src/routes/Home.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Grid, Panel, PanelBody, PanelContainer, } from '@sketchpixy/rubix'; export default class Home extends React.Component { render() { return ( <PanelContainer> <Panel> <PanelBody style={{padding: 0}}> <Grid> ...
spec/javascripts/jsx/calendar/scheduler/components/appointment_groups/ContextSelectorSpec.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
src/components/Navigation/Navigation.js
ShevaDas/exhibitor-management
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import { Link } from 'react-router-dom'; import './Navigation.css'; const LoggedOutView = (props) => { return ( <Nav {...p...
docs/src/app/components/pages/customization/StylesOverridingCssExample.js
hai-cea/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; const StylesOverridingCssExample = () => ( <Checkbox name="StylesOverridingCssExample" label="Checked the mail" className="styles-overriding-css-example" /> ); export default StylesOverridingCssExample;
packages/reactor-kitchensink/src/examples/TitleBar/TitleBar.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { SearchField, TitleBar, Container, Button, Menu, MenuItem } from '@extjs/ext-react'; export default class TitleBarExample extends Component { render() { return ( <Container> <TitleBar title="App Title" docked="top" ...
app/javascript/mastodon/features/list_adder/index.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListAdder, resetListAdder } from '...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
shaunstanislaus/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
app/javascript/mastodon/features/compose/components/upload_button.js
8796n/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; const messages = defineMessages({ upload: { id: 'upload_button.label', defaultMessage: 'Add media' }...
src/components/Layer/Page.js
zjuasmn/sketch-react
import React from 'react' import classnames from 'classnames' import Artboard from "./Artboard"; export default class Page extends React.Component { constructor(props) { super(props); } render() { let {model, children, ...props} = this.props; return ( <div style={{ position: 're...
src/components/pages/client/basic-info-form.js
jackblandin/react_express_template
import React from 'react'; export default class ClientBasicInfoForm extends React.Component { render() { return ( <div> <form> <input type="text" name="firstName" placeholder="First Name" /> <input type="text" name="lastName" placeholder="Last Name" /> </form> </d...
src/parser/druid/restoration/modules/talents/Cultivation.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'...
src/screen/WaveGenerator/components/InstrumentCluster.js
wavicles/fossasia-pslab-apps
import React from 'react'; import SineWavePanel from './SineWavePanel'; import SquareWavePanel from './SquareWavePanel'; import { SettingsContainer } from './InstrumentCluster.styles'; const InstrumentCluster = () => { return ( <SettingsContainer> <div> <SineWavePanel /> </div> <div> ...
web/static/js/components/main.js
babie/goal-server
import React from 'react'; import {Component} from 'flumpt'; import ItemTreeComponent from './item_tree.js'; class MainComponent extends Component { render() { return ( <main> <ul> <ItemTreeComponent key={this.props.root.model.id} ref={this.props.root.model.id} ...
pages/less.js
Cspeisman/cspeisman.github.io
import React from 'react' import './example.less' import DocumentTitle from 'react-document-title' import { config } from 'config' export default class Less extends React.Component { render () { return ( <DocumentTitle title={`${config.siteTitle} | Hi lessy friends`}> <div> <h1 ...
src/svg-icons/action/system-update-alt.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSystemUpdateAlt = (props) => ( <SvgIcon {...props}> <path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/> ...
src/components/SelectPalette.js
gorankami/WebFEM
import React from 'react'; //in: //palettes //selectedPalette //out: //onPaletteChange export default function (props){ if(props.palettes && props.palettes.length){ const options = props.palettes.map(item=>{ return ( <option value={item.id} selected={props.selectedPalette && props.se...
blueocean-material-icons/src/js/components/svg-icons/communication/invert-colors-off.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationInvertColorsOff = (props) => ( <SvgIcon {...props}> <path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.58c1.79 0 3.57-.59 5.03-1.78l2.7 2...
docs/app/Examples/elements/List/Variations/ListExampleSizes.js
shengnian/shengnian-ui-react
import React from 'react' import { Image, List } from 'shengnian-ui-react' const ListExampleSizes = () => { const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive'] return ( <div> {sizes.map(size => ( <div key={size}> <List divided horizontal size={size}> ...
app/components/MainContainer/Main/TabController/AlarmsStackController/AlarmsContainer/Alarms/LogoButtonContainer/LogoButton/index.js
reubn/atomic
import React from 'react' import {TouchableOpacity} from 'react-native' import Logo from '../../../../../../../../Logo' export default ({triggerButton}) => ( <TouchableOpacity onPress={triggerButton}> <Logo height={32} /> </TouchableOpacity> )
javascripts/components/SearchGrid.js
undefinerds/libris
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from '../../stylesheets/grid.css'; class Book extends Component { render() { const { book, i } = this.props; return ( <figure className="item"> <Link to={`/${i}`} style={ {textDecoration: 'none'} }> ...
features/join/join.container.component.js
nlambert/checkin
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { joinTeam } from '../reducers/user.reducer'; const JoinContainer = ({ joinTeam, query, user } = {}) => ( <div> <h1>Join</h1> { user ? <button onClick={joinTeam(user.uid, query.id)}>Join</button> : nu...
app/containers/LandingPageContainer.js
ashley-jelks-truss/DoDidDone
import React from 'react'; import { List } from 'immutable'; import Header from '../components/LandingPage/LandingPageHeader'; import HorizontalContainer from '../components/LandingPage/HorizontalContainer'; import VerticalContainer from '../components/LandingPage/VerticalContainer'; const verticalContent = List([ {...
src/js/components/higher-order-components/index.js
ludonow/ludo-beta-react
import React from 'react'; const withEither = (conditionalRenderingFn, EitherComponent) => (Component) => (props) => conditionalRenderingFn(props) ? <EitherComponent { ...props } /> : <Component { ...props } /> const withMaybe = (conditionalRenderingFn) => (Component) => (props) => conditional...
packages/react-scripts/fixtures/kitchensink/src/features/env/ExpandEnvVariables.js
just-boris/create-preact-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span> <span id="feature-expand-env-1">{process.env.REACT_APP_BASIC}</span> ...
src/Pagination.js
carlosrocha/react-data-components
import React, { Component } from 'react'; import PropTypes from 'prop-types'; // Used to cancel events. var preventDefault = e => e.preventDefault(); export default class Pagination extends Component { static defaultProps = { showPages: 5, }; static propTypes = { onChangePage: PropTypes.func.isRequired...
src/Affix.js
roderickwang/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import AffixMixin from './AffixMixin'; const Affix = React.createClass({ mixins: [AffixMixin], render() { let holderStyle = { top: this.state.affixPositionTop, // we don't want to expose the `style` property ...this.props.style...
src/entypo/Compass.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Compass'; let EntypoCompass = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M5.454,14.548c0,0,4.568-0.627,6.518-2.576s2.576-6.518,2.576-6.518S9.979,6.081,8.03,8.03S5.454,14.54...
react/src/components/dashboard/settings/settings.appUpdatePanel.js
pbca26/EasyDEX-GUI
import React from 'react'; import translate from '../../../translate/translate'; import { connect } from 'react-redux'; import Config from '../../../config'; import { checkForUpdateUIPromise, updateUIPromise, } from '../../../actions/actionCreators'; import io from 'socket.io-client'; const socket = io.connect(`ht...
web/components/shared/CopyButton/index.fixture.js
skidding/flatris
// @flow import React from 'react'; import { StateMock } from '@react-mock/state'; import CopyButton from '.'; export default { default: ( <CopyButton disabled={false} copyText="I made you copy me!" defaultLabel="Copy link" successLabel="Link copied!" errorLabel="Copy failed :(" ...
website/src/react-native/index.js
negativetwelve/react-native
/** * 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. */ 'use strict...
src/web/components/PatientSelect/Header.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
src/components/TextInput/TextInput.js
miker169/ps-react-miker169
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker */ function TextInput({htmlId, name, label, type="text", required=false, onChange, placeholder, v...
src/Parser/DisciplinePriest/Modules/Features/AtonementHealingDone.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Tab from 'Main/Tab'; import Module from 'Parser/Core/Module'; import HealingValue from 'Parser/Core/Modules/HealingValue'; import isAtonement from '../Core/isAtonement'; import AtonementSource from './AtonementSource'; import AtonementHealingBreakdown from './AtonementHealingBreakdow...
static/src/oauth.js
detailyang/cas-server
/** * @Author: BingWu Yang <detailyang> * @Date: 2016-03-13T22:17:03+08:00 * @Email: detailyang@gmail.com * @Last modified by: detailyang * @Last modified time: 2016-04-21T00:24:28+08:00 * @License: The MIT License (MIT) */ import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'rea...
client/scripts/components/config/customize-notifications/customize-notifications/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 License, or (at your ...
generators/app/templates/src/components/pages/About.js
Painatalman/generator-mcnrfb
import React from 'react'; import styles from './About.css'; export default function About(props) { return ( <div> Bla bla bla Prince of all Saiyans </div> ) };