path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
docs/app/Examples/elements/Button/Variations/ButtonSocialExample.js
jcarbo/stardust
import React from 'react' import { Button, Icon } from 'stardust' const ButtonSocialExample = () => ( <div> <Button color='facebook'> <Icon name='facebook' /> Facebook </Button> <Button color='twitter'> <Icon name='twitter' /> Twitter </Button> <Button color='google plus'> <Icon...
src/containers/Asians/Registration/Institutions/StatusNotice/AcceptedInstance/index.js
westoncolemanl/tabbr-web
import React from 'react' import withStyles from 'material-ui/styles/withStyles' import Card, { CardHeader, CardContent } from 'material-ui/Card' import * as utils from 'utils' const styles = theme => ({ body: { marginBottom: theme.spacing.unit } }) export default withStyles(styles)(({ registrationIns...
src/scripts/components/TodoHeader.js
fantasywind/React-Todo
import React from 'react'; import {Link} from 'react-router-component'; import CollapseControl from './CollapseControl.js'; import ToDoCreator from './ToDoCreator.js'; const styles = { wrap: { display: 'flex', height: 60, lineHeight: '60px', borderBottom: '1px solid #aaa' } }; const TodoHeader = ...
src/prisonBreak/commandProcessor.js
link1900/linkin-games
// @flow import React from 'react'; import Chance from 'chance'; import { includes, first, find, filter, intersection, isNil, tail, isEmpty } from 'lodash'; import './commandLine.css'; import CommandRef from './CommandRef'; import type { PrisonBreakStore } from './PrisonBreakReducer'; import { convertToDirection, flipD...
app/javascript/mastodon/features/ui/components/onboarding_modal.js
imomix/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Permalink from '../../../components/per...
App/Containers/HomeContainer.js
bretth18/PresidioWallet
'use strict'; /* container binds action creators and inject state/dispatchers as props */ import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Home from '../Components/Home'; import * as HomeActions from '../Actions/homeActions'; class H...
views/blocks/Button/Button.js
AlSoEdit/team5
import React from 'react'; import './Button.css'; import b from 'b_'; const button = b.lock('button'); export default class Button extends React.Component { render() { const {disabled, text, type, inProgress, onClick} = this.props; return ( <button type={type} ...
src/app/routes.js
paulawasylow/e-commerce-react-app
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import HomeContainer from './containers/HomeContainer'; import CategoryContainer from './containers/CategoryContainer'; import NotExist from './components/NotExist'; export default ( <Route path="/" componen...
docs/src/app/components/pages/components/RaisedButton/Page.js
skarnecki/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import raisedButtonReadmeText from './README'; import raisedButtonExampleSimpleC...
src/routes/register/Register.js
joaquingatica/git-demo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
assets/javascripts/kitten/components/layer/overlay/stories.js
KissKissBankBank/kitten
import React from 'react' import { Overlay } from './index' import { Button } from 'kitten' import { DocsPage } from 'storybook/docs-page' const TOGGLE_EVENT = 'event:toggle' const CLOSE_EVENT = 'event:close' const OPEN_EVENT = 'event:open' const handleToggleClick = () => window.dispatchEvent(new Event(TOGGLE_EVENT))...
src/applications/static-pages/health-care-manage-benefits/get-medical-records-page/components/UnauthContent/index.unit.spec.js
department-of-veterans-affairs/vets-website
// Dependencies. import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; // Relative imports. import UnauthContent from '.'; describe('Get Medical Records Page <UnauthContent>', () => { it('renders what we expect', () => { const wrapper = shallow(<UnauthContent />); const...
src/modules/DesignerShow/index.js
2941972057/flower-react
/** * Created by dllo on 17/8/23. */ import React from 'react' import ReactDOM from 'react-dom' import DesignerShow from './DesignerShow' ReactDOM.render( <DesignerShow />, document.getElementById('app') )
node_modules/react-bootstrap/es/ModalHeader.js
geng890518/editor-ui
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 ...
Example/__tests__/index.ios.js
billoosijok/react-native-interactive-card
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/Parser/Hunter/Shared/Modules/Items/TheShadowHuntersVoodooMask.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemHealingDone from 'Main/ItemHealingDone'; /** * The Shadow Hunter's Voodoo Mask * Heal for 20% of your maxi...
admin/client/App/screens/Item/index.js
giovanniRodighiero/cms
/** * Item View * * This is the item view, it is rendered when users visit a page of a specific * item. This mainly renders the form to edit the item content in. */ import React from 'react'; import { Center, Container, Spinner } from '../../elemental'; import { connect } from 'react-redux'; import { Link } from ...
react/features/settings/components/web/audio/SpeakerEntry.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import logger from '../../../logger'; import AudioSettingsEntry from './AudioSettingsEntry'; import TestButton from './TestButton'; const TEST_SOUND_PATH = 'sounds/ring.wav'; /** * The type of the React {@code Component} props of {@link SpeakerEntry}. */ type Pr...
src/routes/error/index.js
kevinchau321/TReactr
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import ErrorPage from './Err...
client/src/components/billing/initial-checkout.js
RajivLinkites/Starter-Skeleton
import React, { Component } from 'react'; import CheckoutForm from './checkout-form'; class InitialCheckout extends Component { render() { return ( <CheckoutForm plan={this.props.params.plan} /> ); } } export default InitialCheckout;
src/components/Button.js
colouroscope/colouroscope
import React from 'react' import classNames from 'classnames' let Button = ({ onClick, children, className }) => ( <button className={classNames('btn', 'btn-secondary', className)} onClick={onClick}>{children}</button> ) export default Button
screens/MoresScreen/index.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { ScrollView, View } from 'react-native' import PropTypes from 'prop-types' import { Colors } from 'constants' import Mores from './MoresContainer' import { Search } from '@components' const MoresScreen = ( { navigation } ) => ( <ScrollView> <Mores navigation={navigation} /> <...
src/layouts/index.js
colsondonohue/colsondonohue.github.io
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'gatsby-link'; import Helmet from 'react-helmet'; import Container from '../components/Container'; import Header from '../components/Header'; import Footer from '../components/Footer'; import './index.css'; const propTypes = { children: ...
src/components/header/index.js
jackblackCH/zululo
import React from 'react'; import './Header.css' export default () => <header className="c-header"><a href="/"><img alt="" className="c-header__logo" src='/assets/logo.png' /></a></header>
app/packs/src/components/computed_props/Highlight.js
ComPlat/chemotion_ELN
import React from 'react'; import { ScaleUtils, AbstractSeries } from 'react-vis'; function cropDimension(loc, startLoc, minLoc, maxLoc) { if (loc < startLoc) { return { start: Math.max(loc, minLoc), stop: startLoc }; } return { stop: Math.min(loc, maxLoc), start: startLoc }; } ex...
blueprints/smart/files/__root__/containers/__name__.js
availabs/kauffman-atlas
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render() { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const ...
client/components/position-table/PositionTableContainer.js
kanehara/yostock
import React from 'react' import services from '../../services' import { PositionTable } from './PositionTable' export class PositionTableContainer extends React.Component { constructor(props) { super(props) this.state = { positions: services.PositionService.getPositions() } } render() { r...
src/svg-icons/toggle/star.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStar = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ToggleStar = pure(ToggleStar); ToggleStar.disp...
src/components/chart.js
StephanYu/modern_redux_weather_forecast
import _ from 'lodash'; import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; function average(data) { return _.round(_.sum(data)/data.length); } export default (props) => { return( <div> <Sparklines height={120} width={180} data={props.data}>...
app/components/news/category.js
sonic182/gnosisapp
import React, { Component } from 'react'; import { View, Text, StyleSheet, Platform, } from 'react-native'; import utils from '../../utils/utils'; const Touchable = utils.Touchable; export default class Category extends Component { render () { const categoryStyle = [styles.category] const categoryTextStyl...
packages/material-ui-icons/src/AssistantPhoto.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z" /></g> , 'AssistantPhoto');
src/components/app.js
AdevaS/weather_redux
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
src/routes/post/index.js
Grusteam/spark-in-me
import React from 'react'; import Layout from '../../components/Layout'; import Post from '../../components/Post'; import request from '../../core/request'; import {sortMetatags} from '../../core/sortMetatags'; export default { path: '/post/:alias', async action(args) { const responseGlobal = await request(...
platform/viewer/src/connectedComponents/ViewerLocalFileData.js
OHIF/Viewers
import React, { Component } from 'react'; import { metadata, utils } from '@ohif/core'; import ConnectedViewer from './ConnectedViewer.js'; import PropTypes from 'prop-types'; import { extensionManager } from './../App.js'; import Dropzone from 'react-dropzone'; import filesToStudies from '../lib/filesToStudies'; impo...
app/javascript/mastodon/features/favourited_statuses/index.js
pinfort/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
packages/icons/src/md/action/Delete.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdDelete(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M12 38c0 2.21 1.79 4 4 4h16c2.21 0 4-1.79 4-4V14H12v24zM38 8h-7l-2-2H19l-2 2h-7v4h28V8z" /> </IconBase> ); } export default MdDelete;
src/components/ProfileInfo/ProfilePhone.js
dialogs/dialog-native-components
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import type { Phone } from '@dlghq/dialog-types'; import React from 'react'; import { Text } from 'react-native'; import PhoneNumber from 'awesome-phonenumber'; type Props = { phone: Phone }; function formatPhone(phone: string) { try { return PhoneN...
src/Heading.js
itsolutions-dev/react-styled-ui
// @flow import React from 'react'; import Heading1 from './Heading1'; import Heading2 from './Heading2'; import Heading3 from './Heading3'; import Heading4 from './Heading4'; import Heading5 from './Heading5'; import Heading6 from './Heading6'; const headings = [ Heading1, Heading2, Heading3, Heading4, Hea...
src/main/react/src/main.js
mbrossard/cryptonit-cloud
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './containers/Ap...
src/components/video_detail.js
theoryNine/react-video-browser
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-responsive e...
shared/components/StoryItem.js
AndrewGibson27/react-fetch-boilerplate
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; const StoryItem = ({ path, data: { _id, headline } }) => ( <li> <p>{headline}</p> <NavLink to={`${path}/${_id}`}>Details</NavLink> </li> ); export default StoryItem;
docs/app/Examples/collections/Form/Shorthand/FormExampleFieldLabelElement.js
koenvg/Semantic-UI-React
import React from 'react' import { Checkbox, Form } from 'semantic-ui-react' const FormExampleFieldLabelElement = () => ( <Form> <Form.Field control={Checkbox} label={{ children: 'I agree to the Terms and Conditions' }} /> </Form> ) export default FormExampleFieldLabelElement
src/index.js
dbachrach/react-imageloader
import React from 'react'; const {PropTypes} = React; const {span} = React.DOM; const Status = { PENDING: 'pending', LOADING: 'loading', LOADED: 'loaded', FAILED: 'failed', }; export default class ImageLoader extends React.Component { static propTypes = { wrapper: PropTypes.func, className: PropTy...
src/containers/PlanetsPage.js
tsahnar/swapi_proj
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import WithDataHOC from '../HOC/WithDataHOC' import List from '../components/common/List' import Planet from '../components/Planet' const PlanetsPage = ({ data: planetsData }) => { return ( <div> <h4 className="page-title text-center"...
javascript/AddOn/Message.js
AppStateESS/stories
import React from 'react' import PropTypes from 'prop-types' const Message = (props) => { let icon = '' switch (props.type) { case 'danger': icon = 'fas fa-exclamation-triangle' break case 'success': icon = 'far fa-thumbs-up' break case 'info': icon = 'fas fa-info-circle...
code/workspaces/web-app/src/components/app/Segment.js
NERC-CEH/datalab
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; const styles = theme => ({ segment: { padding: theme.spacing(1), }, }); const Segment = ({ classes, children }) => ( <div className={classes.segment}> {children} </div> ); export default withStyles(styles)(Segment);
src/svg-icons/notification/network-check.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkCheck = (props) => ( <SvgIcon {...props}> <path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28...
src/viewElements/shared/radioSelection/RadioBlock.js
yasavbrain/yasav
import React from 'react'; import { ListItem, Text } from 'native-base'; import Style from 'yasav/src/styles/Shared' export class RadioBlock extends React.Component { render() { if(this.props.selected){ return ( <ListItem style={Style.radioBlockSelected} onPress={this.props.onPress}> <T...
src/DatePicker/DatePickerDialog.js
rscnt/material-ui
import React from 'react'; import EventListener from 'react-event-listener'; import keycode from 'keycode'; import Calendar from './Calendar'; import Dialog from '../Dialog'; import DatePickerInline from './DatePickerInline'; import FlatButton from '../FlatButton'; import {dateTimeFormat} from './dateUtils'; class Dat...
app/containers/Login/index.js
projectcashmere/web-server
/* * * Login * */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import styled from 'styled-components'; import { login } from './actions'; import { sele...
src/components/Tabbar/index.js
TongChia/react-alp
import React from 'react'; import './style.styl'; export default function Tabbar({ children }) { return ( <div className="tabbar"> {children} </div> ); }
tests/Rules-isInt-spec.js
sdemjanenko/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
examples/animations/app.js
tylermcginnis/react-router
import React from 'react' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' import { render } from 'react-dom' import { browserHistory, Router, Route, IndexRoute, Link } from 'react-router' import withExampleBasename from '../withExampleBasename' import './app.css' const App = ({ children, loca...
examples/enzyme/CheckboxWithLabel.js
aaron-goshine/jest
// Copyright 2004-present Facebook. All Rights Reserved. import React from 'react'; export default class CheckboxWithLabel extends React.Component { constructor(props) { super(props); this.state = {isChecked: false}; // bind manually because React class components don't auto-bind // http://faceboo...
src/client/lib/menuHelper.js
andrerpena/monomock
import VNavItem from '../components/VNavItem'; import _ from 'underscore'; import React from 'react'; class MenuHelper { /** * Creates VNavItems from an Object containing nodes (each property in the nodes object represents a node) * @param nodes * @param onItemClick * @returns {*} */ ...
src/svg-icons/av/library-books.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryBooks = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1...
packages/wix-style-react/src/EmptyState/test/EmptyState.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import { visualize, snap, story } from 'storybook-snapper'; import EmptyState from '../EmptyState'; import ImagePlaceholder from '../../../stories/utils/ImagePlaceholder'; import { RTLWrapper } from '../../../stories/utils/RTLWrapper'; const comm...
site/components/PageBody.js
colbyr/react-dnd
import React from 'react'; import './PageBody.less'; export default class PageBody { static propTypes = { hasSidebar: React.PropTypes.bool }; render() { var {hasSidebar, html, ...props} = this.props; return ( <div className={`PageBody ${hasSidebar ? 'PageBody--hasSidebar' : ''}`}> <div...
www/src/@docpocalypse/gatsby-theme/components/SideNavigation.js
jquense/react-formal
import React from 'react'; import sortBy from 'lodash/sortBy'; import groupBy from 'lodash/groupBy'; import SideNavigation, { usePageData, } from '@docpocalypse/gatsby-theme/src/components/SideNavigation'; function AppSideNavigation(props) { const { api } = usePageData(); const groupedByMembers = groupBy( a...
frontend/src/components/dialog/sysadmin-dialog/sysadmin-delete-member-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import { gettext } from '../../../utils/constants'; import { seafileAPI } from '../../../utils/seafile-api'; import { Utils } from '../../../utils/utils'; import toaster from '...
node_modules/react-router/es/RouterContext.js
nockgish/gish
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.i...
src/entypo/ThumbsDown.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--ThumbsDown'; let EntypoThumbsDown = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M6.352,12.638c0.133,0.356-3.539,3.634-1.397,6.291c0.501,0.621,2.201-2.975,4.615-4.602c1.331-0...
js/jqwidgets/demos/react/app/grid/nestedgrids/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { componentDidMount() { this.refs.myGrid.showrowdetails(1); } render() { let employeesSource = { dataf...
app/containers/MainPage/index.js
crp2002/e-commerce-site
/* * MainPage * * 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/LinkHandler.js
taskworld/legendary-pancake
import { isPathnameStartingWithBasename, stripBasenameFromPathname } from './PathUtils' import PropTypes from 'prop-types' import React from 'react' // # LinkHandler {#LinkHandler} // // A `<div>` tag that handles link clicks. // export class LinkHandler extends React.Component { static contextTypes = { legenda...
test/pincreator-test.js
ResponsibleRye/responsiblerye
//chai import { assert, expect } from 'chai'; import should from 'chai/register-should'; //sinon import { spy } from 'sinon'; //enzyme import { mount, shallow, render } from 'enzyme'; //react utils import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; //react...
src/svg-icons/action/shop-two.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShopTwo = (props) => ( <SvgIcon {...props}> <path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4...
pages/less.js
adjohnson916/site-gatsby
import React from 'react' import './example.less' export default class Less extends React.Component { render () { return ( <div> <h1 className="the-less-class" > Hi lessy friends </h1> <div className="less-nav-example"> <h2>Nav example</h2> ...
src/common/components/Appbar/jsPsychInitEditor/index.js
jspsych/jsPsych-Redux-GUI
import React from 'react'; import Dialog from 'material-ui/Dialog'; import Subheader from 'material-ui/Subheader'; import FlatButton from 'material-ui/FlatButton'; import IconButton from 'material-ui/IconButton'; import TextField from 'material-ui/TextField'; import { grey800 as normalColor, cyan500 as iconHighlig...
src/svg-icons/image/flip.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlip = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v...
react-flux-mui/js/material-ui/src/svg-icons/maps/directions-railway.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRailway = (props) => ( <SvgIcon {...props}> <path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2...
src/components/__tests__/InfoBar-test.js
vidaaudrey/mindr
import React from 'react'; import ReactDOM from 'react-dom'; import {renderIntoDocument} from 'react-addons-test-utils'; import { expect} from 'chai'; import { InfoBar } from 'components'; import { Provider } from 'react-redux'; import {reduxReactRouter} from 'redux-router'; import createHistory from 'history/lib/creat...
node_modules/react-router/es/withRouter.js
mohammed52/something.pk
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import invariant from 'invariant'; import React from 'react';...
src/js/components/plan/EditPlan.js
knowncitizen/tripleo-ui
/** * Copyright 2017 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...
frontend/src/components/dialog/sysadmin-dialog/sysadmin-set-org-max-user-number-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Alert, Modal, ModalHeader, ModalBody, ModalFooter, Button, Form, FormGroup, Input, InputGroup, InputGroupAddon, InputGroupText } from 'reactstrap'; import { gettext } from '../../../utils/constants'; import { Utils } from '../../../utils/utils'; c...
app/containers/App/index.js
keithalpichi/NobleNote
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
submissions/winstonewert/src/root.js
winstonewert/flux-challenge
import React from 'react' import ObiWanPlanetMonitor from './obi-wan-planet-monitor' import DarkJediList from './dark-jedi-list' export default class Root extends React.Component { render() { return <div className="app-container"> <div className="css-root"> <ObiWanPlanetMonitor /> <DarkJediList /> </d...
src/components/Snake/Body.js
nataly87s/rx-snake
import React from 'react'; import glamorous from 'glamorous'; import { SOLUTO_BLUE } from '../../resources/colors'; const Circle = glamorous.circle({ opacity: 0.4, }); const BodySvg = ({ style, color = SOLUTO_BLUE }) => ( <svg x="0px" y="0px" viewBox="0 0 77 77" style={style}> <path fill="#FFFFFF" d="M27.3,72...
app/containers/settings/index.js
7kfpun/TWAQIReactNative
import React, { Component } from 'react'; import { FlatList, Platform, StyleSheet, Text, View } from 'react-native'; import { iOSColors } from 'react-native-typography'; import Collapsible from 'react-native-collapsible'; import DeviceInfo from 'react-native-device-info'; import OneSignal from 'react-native-onesignal'...
src/svg-icons/hardware/keyboard-hide.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardHide = (props) => ( <SvgIcon {...props}> <path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H...
app/javascript/mastodon/features/ui/components/columns_area.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import { link...
src/routes/Counter/components/Counter.js
codingarchitect/react-counter-pair
import React from 'react' import PropTypes from 'prop-types' import Counter from './counter.rt'; Counter.propTypes = { value : PropTypes.number.isRequired, onIncrement : PropTypes.func.isRequired, onDecrement : PropTypes.func.isRequired } export default Counter;
frontend/Views/NotFound/index.js
shoumma/ReForum
import React, { Component } from 'react'; class NotFound extends Component { render() { return ( <h3>Coudn't found the url buddy. Please check it out.</h3> ); } } export default NotFound;
components/animals/araArarauna.adult.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/araArarauna/01.jpg...
packages/core/content-type-builder/admin/src/components/TextareaEnum/index.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; import { Textarea } from '@strapi/design-system/Textarea'; const TextareaEnum = ({ description, disabled, error, intlLabel, labelAction, name, onChange, placeholder, value, }) => { const { formatMes...
src/templates/landing.js
gabrielcsapo/tryitout
import 'psychic.css/dist/psychic.min.css' import './landing.css' import React from 'react' import PropTypes from 'prop-types' import { render } from 'react-dom' import HTML from '../HTML' import { cleanString } from '../../lib/util' class Landing extends React.Component { render () { const { title, nav, body, ...
Root.js
praida/admin
import React from 'react'; import PropTypes from 'prop-types'; import { IntlProvider } from 'react-intl'; import { Provider } from 'react-redux'; import './styles/normalize.scss'; import './styles/default.scss'; import './styles/layout.scss'; import Routes from './Routes'; const Root = props => ( <IntlProvider loca...
src/interface/common/Alert/index.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; class Alert extends React.PureComponent { static propTypes = { kind: PropTypes.oneOf(['danger', 'warning', 'info']), children: PropTypes.node.isRequired, className: PropTypes.string, }; render() { const { kind, children, className, ....
app/javascript/flavours/glitch/features/ui/components/image_loader.js
vahnj/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class ImageLoader extends React.PureComponent { static propTypes = { alt: PropTypes.string, src: PropTypes.string.isRequired, previewSrc: PropTypes.string.isRequired, width: PropTypes.n...
src/pages/PrivacyPage.js
neontribe/gbptm
import React from 'react'; import { Helmet } from 'react-helmet'; import PageLayout from '../components/PageLayout'; import Container from '../components/Container'; import Text from '../components/Text'; import Spacer from '../components/Spacer'; import Button from '../components/Button'; import config from '../conf...
src/components/IntroScreen/index.js
vogelino/design-timeline
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import ReactMarkdown from 'react-markdown'; import ScrollArea from '../ScrollArea'; import { combineCssClasses } from '../../helpers/styleHelper'; import * as introScreenActi...
test/LabelSpec.js
rapilabs/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Label from '../src/Label'; describe('Label', function () { it('Should output a label with message', function () { let instance = ReactTestUtils.renderIntoDocument( <Label> <strong>Message</strong> </Labe...
src/svg-icons/notification/phone-paused.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C...
docs/src/main.js
kwangkim/nuclear-js
import React from 'react' import ItemFilterExample from './components/item-filter-example' import addScrollClass from './utils/scroll-class' addScrollClass("scrolled") render(ItemFilterExample, 'item-filter-example') updateSideBar() function render(component, id) { var el = document.getElementById(id) if (el) {...
src/App.js
stevecd/mpcnc_calc_react
import React, { Component } from 'react'; import update from 'react-addons-update'; import {Navbar, Tabs, Tab, Input, Grid, Row, Col, Button } from 'react-bootstrap'; import 'bootstrap/dist/css/bootstrap.css'; import './App.css'; let defaultState = { x: 21, y: 21, z: 6.1, xCa: 11, yCa: 11, zCa: 7.9, xBa:...
packages/reactor-kitchensink/src/examples/DragAndDrop/Proxies/Proxies.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Panel } from '@extjs/ext-react'; import './styles.css'; Ext.require(['Ext.drag.*']); export default class Proxies extends Component { state = { noneText: 'No Proxy' } render() { const {noneText} = this.state; return ( ...
src/components/searchBar.js
gabriellisboa/reduxStudies
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } onInputChange(event) { this.setState({ term: event.target.value, }); } render() { return ( ...
src/svg-icons/action/stars.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionStars = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
Jaeandroid/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
src/app/js/index.js
AppSaloon/socket.io-tester
import { Provider } from 'react-redux' import { createStore } from 'redux' import React from 'react' import { render } from 'react-dom' import reducer from './reducers/reducer' import App from './components/App' const store = createStore(reducer, window.devToolsExtension ? window.devToolsExtension() : undefined )...