path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
stonegithubs/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
packages/shared/ReactSharedInternals.js
rickbeerendonk/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. */ import React from 'react'; const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent n...
demo.js
tweinfeld/backscatter
import _ from 'underscore'; import Backbone from 'backbone'; import Backscatter from './lib/backscatter.js'; import React from 'react'; class MyCustomComponent extends React.Component { render(){ return <div>{ this.props.title }, { this.props.name }</div> } } // This model is an example of an existing...
guess/app/app.js
ekepes/reactplay
import React from 'react'; function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } var GuessBox = React.createClass({ getInitialState: function() { return { answer: getRandomInt(1, 10), guess: 0, message: "" }; }, handleChange: function(event) ...
demo.js
jrowny/react-absolute-grid
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; // import Perf from 'react-addons-perf'; import createAbsoluteGrid from './index.js'; import SampleDisplay from './demo/SampleDisplay.jsx'; import * as data from './demo/sampleData.js'; import * as _ from 'lodash'; demo(); /** * This demo is...
app/components/Seat/ButtonJoinSeat.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import { ButtonIcon, ButtonStyle, ButtonText, ButtonWrapper, SeatWrapper, } from './styles'; const ButtonJoinSeat = ({ coords, onClickHandler }) => ( <SeatWrapper coords={coords}> <ButtonWrapper onClick={onClickHandler}> <ButtonStyle>...
js/views/login/LogoutView.js
n8e/memoirs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay'; import { hashHistory } from 'react-router'; import LogoutMutation from '../../mutations/LogoutMutation'; class LogoutView extends Component { componentDidMount() { const onSuccess = () => { hashHistory...
definitions/npm/react-redux_v5.x.x/flow_v0.30.x-v0.52.x/test_Provider.js
hansonw/flow-typed
// @flow import React from 'react' import { Provider } from 'react-redux' // $ExpectError <Provider />; // missing store
fields/types/password/PasswordColumn.js
Tangcuyu/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var PasswordColumn = React.createClass({ displayName: 'PasswordColumn', propTypes: { col: React.PropTypes.ob...
web/app/admin/invites.js
bitemyapp/serials
// @flow import React from 'react' import {Link} from 'react-router' import {invitesAll, invitesAdd, invitesSend, invitesDelete, Invite} from '../model/invite' import {userApiURL} from '../model/user' import {reloadHandler} from '../data/load' import {makeUpdate} from '../data/update' import {toDateString} from '../he...
react/features/desktop-picker/components/DesktopPickerPane.js
bgrozev/jitsi-meet
/* @flow */ import { Checkbox } from '@atlaskit/checkbox'; import Spinner from '@atlaskit/spinner'; import React, { Component } from 'react'; import { Platform } from '../../base/react'; import { translate } from '../../base/i18n'; import DesktopSourcePreview from './DesktopSourcePreview'; /** * The type of the Re...
app/static/scripts/layout/footer/main.js
joshleeb/Tobio-PreRelease
import React from 'react'; require('./styles.scss'); export default class Footer extends React.Component { constructor() { super(); } render() { return ( <footer id="footer"> <div className="content"> <p id="version">Tobio <small>PreRelease 0.2.0</small></p> </div> ...
src/DayColumn.js
manishksmd/react-scheduler-smartdata
import PropTypes from 'prop-types'; import React from 'react'; import { findDOMNode } from 'react-dom'; import cn from 'classnames'; import Selection, { getBoundsForNode, isEvent } from './Selection'; import dates from './utils/dates'; import { isSelected } from './utils/selection'; import localizer from './localizer'...
src/components/StreamItemView/index.js
Reditr-Software/reditr
import React from 'react' import moment from 'moment' import { AllHtmlEntities as Entities } from 'html-entities' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import style from '../../utilities/Style' import reddit from '../../api/reddit' import CommentModel from '../../models/CommentMode...
vj4/ui/components/scratchpad/ScratchpadRecordsContainer.js
vijos/vj4
import React from 'react'; import { connect } from 'react-redux'; import Tabs, { TabPane } from 'rc-tabs'; import TabContent from 'rc-tabs/lib/TabContent'; import ScrollableInkTabBar from 'rc-tabs/lib/ScrollableInkTabBar'; import i18n from 'vj/utils/i18n'; import request from 'vj/utils/request'; import Icon from 'vj/c...
packages/react-jsx-highstock/src/components/Scrollbar/Scrollbar.js
AlexMayants/react-jsx-highcharts
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Hidden from 'react-jsx-highcharts/src/components/Hidden'; import getModifiedProps from 'react-jsx-highcharts/src/utils/getModifiedProps'; class Scrollbar extends Component { static propTypes = { update: PropTypes.func, // Provi...
src/lib/reactors/Legend/PolylineSymbol.js
EsriJapan/photospot-finder
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to us...
js/jqwidgets/jqwidgets-react/react_jqxmaskedinput.js
luissancheza/sice
/* jQWidgets v5.3.2 (2017-Sep) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxMaskedInput extends React.Component { componentDidMount() { let options = this.mana...
src/app.js
Lorde-Y/happybuild
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store'; import Root from 'container/root'; import './styles/app.less'; import { AppContainer } from 'react-hot-loader'; const render = (Component) => { ReactDOM.render( <Provider sto...
app/javascript/flavours/glitch/features/compose/components/oekaki.js
Kirishima21/mastodon
import React from 'react'; import Button from '../../../components/button'; export default class CustomEmojiOekaki extends React.PureComponent { onClick(e) { e.preventDefault(); window.open('https://mamemomonga.github.io/mastodon-custom-emoji-oekaki/#kirishima.cloud'); } render () { return ( ...
src/components/tools/ToolDescription.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; const ToolDescription = (props) => { const { name, description, screenshotUrl, url, className } = props; const { formatMessage } = props.intl; return ( <a href={url}> <div className...
client/scripts/components/user/revise/revise/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...
samples/06.recomposing-ui/c.smart-display/src/MicrophoneIcon.js
billba/botchat
import React from 'react'; export default ({ className, size = 22 }) => ( <svg className={(className || '') + ''} height={size} viewBox="0 0 58 58" width={size}> <path d="M 44 28 C 43.448 28 43 28.447 43 29 L 43 35 C 43 42.72 36.72 49 29 49 C 21.28 49 15 42.72 15 35 L 15 29 C 15 28.447 14.552 28 14 28 C 13.448 2...
src/components/google_map.js
nfcortega89/airtime
import React, { Component } from 'react'; class GoogleMap extends Component { componentDidMount() { // create an embeded google map // this.refs.map is where map will be rendered to new google.maps.Map(this.refs.map, { zoom: 12, center: { lat: this.props.lat, lng: this.props.l...
source/pages/users/show.js
simonewebdesign/react-router-page-js
import React from 'react'; export default class UserShowPage extends React.Component { render() { return <div>Showing user with id: { this.props.params.id }</div>; } }
client/trello/src/app/routes/login/Login.js
Madmous/Trello-Clone
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { push } from 'react-router-redux'; import { Link } from 'react-router'; import { LoginForm } from './components/index'; import './Login.css'; const propTypes = { isAuthenticatingSuccessful: PropTypes.bool.isRequired, isAuthen...
example/example.js
AaronCCWong/react-remark
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import ReactRemark from 'react-remark'; class App extends Component { render () { const example = [ '# React Remark\n\n ***\n This is a react component that wraps [Remarkable](https://github.com/jonschlinkert/remarkable). ', 'Anything...
test/NavbarSpec.js
roadmanfong/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Navbar from '../src/Navbar'; import Nav from '../src/Nav'; describe('Nav', function () { it('Should create nav element', function () { let instance = ReactTestUtils.renderIntoDocument( <Navbar /> ); let nav = ...
src/panes/components/GeneralPane.js
trezy/eidetica
// Module imports import React from 'react' // Component imports import KBDContainer from './KBDContainer' import Pane from './Pane' import Switch from './Switch' // Component constants /* eslint-disable import/no-extraneous-dependencies */ const { app, BrowserWindow, globalShortcut, } = require('electr...
src/components/common/svg-icons/maps/directions-boat.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBoat = (props) => ( <SvgIcon {...props}> <path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/FlowNone.js
mroch/flow
import React from 'react'; class MyComponent extends React.Component { static defaultProps: DefaultProps = {}; props: Props; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { st...
frontend/src/pages/sys-admin/users/user-nav.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from '@reach/router'; import { siteRoot, gettext } from '../../../utils/constants'; const propTypes = { currentItem: PropTypes.string.isRequired }; class Nav extends React.Component { constructor(props) { super(props); this.na...
docs/app/Examples/modules/Popup/Variations/PopupExampleHideOnScroll.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button, Popup } from 'semantic-ui-react' const PopupExampleHideOnScroll = () => ( <div> <Popup trigger={<Button icon>Click me</Button>} content='Hide the popup on any scroll event' on='click' hideOnScroll /> <Popup trigger={<Button icon>Hov...
server/sonar-web/src/main/js/apps/overview/meta/MetaOrganizationKey.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...
packages/vx-demo/components/tiles/bargroup.js
Flaque/vx
import React from 'react'; import { BarGroup } from '@vx/shape'; import { Group } from '@vx/group'; import { AxisBottom } from '@vx/axis'; import { cityTemperature } from '@vx/mock-data'; import { scaleBand, scaleLinear, scaleOrdinal } from '@vx/scale'; import { timeParse, timeFormat } from 'd3-time-format'; import { e...
src/svg-icons/navigation/arrow-upward.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowUpward = (props) => ( <SvgIcon {...props}> <path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/> </SvgIcon> ); NavigationArrowUpward = pure(NavigationArrowUpward); NavigationA...
project-templates/reactfiber/externals/react-fiber/fixtures/dom/src/components/fixtures/input-change-events/RangeKeyboardFixture.js
ItsAsbreuk/itsa-cli
import React from 'react'; import Fixture from '../../Fixture'; class RangeKeyboardFixture extends React.Component { constructor(props, context) { super(props, context); this.state = { keydownCount: 0, changeCount: 0, }; } componentDidMount() { this.input.addEventListener('keydown...
examples/single-animation.js
ddcat1115/select
/* eslint no-console: 0 */ import React from 'react'; import Select, { Option } from 'rc-select'; import 'rc-select/assets/index.less'; import ReactDOM from 'react-dom'; function onChange(value) { console.log(`selected ${value}`); } const c1 = ( <div> <div style={{ height: 150 }}/> <h2>Single Select</h2>...
server.js
mtomcal/starship-browser
import express from 'express'; import React from 'react'; import Router from 'react-router'; import ServerBootstrap from './views/ServerBootstrap.jsx'; import Routes from './views/Routes.jsx'; var { RouteHandler, // <-- not the usual RouteHandler! run } = require('react-router-async-props'); let app = express(); ...
src/entry.js
MatthewKosloski/lugar
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import createStore from './store'; import AppContainer from './containers/AppContainer'; let store = createStore(); let app = ( <Provider store={store}> <AppContainer/> </Provider> ); render(app, document.getEl...
src/components/routes/Resources/Resources.js
sievins/sarahs-footsteps
import React from 'react' import PropTypes from 'prop-types' import { join, map } from 'lodash' import { sliding } from 'utils/lists' import ResourcePair from './ResourcePair' Resources.propTypes = { resources: PropTypes.arrayOf(PropTypes.shape({ logo: PropTypes.string.isRequired, link: PropTypes.string.isRe...
__tests__/tests/components/GithubHtmlView.js
gitpoint/git-point
import React from 'react'; import { Text } from 'react-native'; import renderer from 'react-test-renderer'; import { GithubHtmlView } from 'components'; import { Icon } from 'react-native-elements'; describe('<GithubHtmlView />', () => { it('correctly renders <details/> tag in GithubHtmlView with correct icon', () =...
src/routes/home_todelete/index.js
jackinf/skynda.me
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Home from './Home'; impo...
app/shared/resource-type-filter/ResourceTypeFilterContainer.js
fastmonkeys/respa-ui
import includes from 'lodash/includes'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import injectT from '../../i18n/injectT'; import ResourceTypeFilterButton from './ResourceTypeFilterButton'; class ResourceTypeFilterContainer extends Component { static propTypes = { selectedRe...
src/index.js
henyouqian/sale
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
frontend/src/components/showpicker/ShowPickerList.spec.js
tanzdervampire/website
// @flow import React from 'react'; import moment from 'moment'; import ShowPickerList from './ShowPickerList'; import CircularProgress from 'material-ui/CircularProgress'; const shows = [ { 'id': 1, 'day': '20.05.2017', 'time': '14:30', 'type': 'Matinée', 'location': 'Stu...
src/index.js
vladlen-g/ride-with-me
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory, Redirect } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import configure from './store'; import App from './views/App/App.jsx'; import Home fro...
src/components/Blog/Blog.react.js
uday96/chat.susi.ai
import './Blog.css'; import 'font-awesome/css/font-awesome.min.css'; import PropTypes from 'prop-types'; import htmlToText from 'html-to-text'; import $ from 'jquery'; import { Card, CardMedia, CardTitle, CardText, CardActions } from 'material-ui/Card'; import susi from '../../images/susi-logo.svg'; import dateFormat f...
src/components/Chessboard/__tests__/Chessboard-test.js
bigamasta/chess-challenge
/** * Created by BigaMasta on 3/12/16. */ import React from 'react'; import ReactDOM from 'react-dom'; import expect from 'expect'; import alt from '../../../alt'; import Chessboard from '../Chessboard'; import Tile from '../../Tile/Tile'; import TestUtils from 'react-addons-test-utils'; import FigureStore from '../....
app/views/Setup/Setup.js
lishengzxc/random
import styles from './Setup.scss'; import React from 'react'; import MessageBox from '../../views/MessageBox/MessageBox'; import clearTeamActionCreators from '../../actions/clearTeam-action-creators'; var Setup = React.createClass({ clear: function () { MessageBox.open('确认要清空所有数据吗ಥ_ಥ', function () { clearT...
actor-apps/app-web/src/app/components/ToolbarSection.react.js
vanloswang/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin } from 'react-intl'; import classnames from 'classnames'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import DialogStore from 'stores/DialogStore'; import ActivityStore from 'stores/ActivityStore'; //import A...
examples/create-react-app-example/src/index.js
gvmani/socket.io
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want your app to work offline and load f...
app/modules/header/index.js
donofkarma/react-starter
import React from 'react'; import Navigation from 'modules/navigation'; import { SiteHeader } from './style'; class Header extends React.Component { render() { return ( <SiteHeader className={this.props.className}> <h1>React Starter</h1> <Navigation /> ...
src/components/Topbar.js
shockry/editest
import React, { Component } from 'react'; import '../css/Topbar.css'; import UploadButton from './UploadButton'; import DownloadButton from './DownloadButton'; import MainNavbar from './MainNavbar'; class Topbar extends Component { constructor(props) { super(props); this.setOriginalImage = this.setOriginalIma...
_deprecated/src/components/App.js
paigekehoe/paigekehoe.github.io
import React from 'react'; import Interactive from 'react-interactive'; import { Switch, Route } from 'react-router-dom'; import Home from './Home'; import About from './About'; import PageNotFound from './PageNotFound'; import Breadcrumbs from './Breadcrumbs'; import Header from './Header'; import s from '../styles/ap...
client/components/dashboard/ReplyModal.js
creativcoder/rio
import { Modal, Button, Popover, OverlayTrigger, Tooltip } from 'react-bootstrap'; import React from 'react'; import Tweetbox from './Tweetbox'; class ReplyModal extends React.Component { constructor(props) { super(props); this.state = { showModal : false }; this.open = this.open.bind(this); this.close = this...
app/components/Badge.js
Nakan4u/pokemons-finder
import React, { Component } from 'react'; export default class Badge extends Component { makeBackground (type) { var obj = {}; switch (type) { case 'normal': obj.backgroundColor = 'aliceblue'; break; case 'fighting': obj.backg...
src/interface/home/Page.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Trans } from '@lingui/macro'; import { Link, Route, Switch } from 'react-router-dom'; import lazyLoadComponent from 'common/lazyLoadComponent'; import retryingPromise from 'common/retryingPromise'; import New...
app/components/Inputs/TextInput/TextInput.js
hbibkrim/neon-wallet
// @flow import React from 'react' import classNames from 'classnames' import { omit } from 'lodash-es' import ErrorIcon from '../../../assets/icons/errorRed.svg' import styles from './TextInput.scss' type Props = { className?: string, type: string, textInputClassName?: string, activeStyles?: string, place...
src/components/topic/snapshots/foci/builder/FocusBuilderWizard.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import Stepper from '@material-ui/core/Stepper'; import Step from '@material-ui/core/Step'; import StepLabel from '@material-ui/core/StepLabel'; import { FormattedMessage, injectIntl } from 'react-intl'; import BackLin...
graphwalker-studio/src/main/js/components/sidemenu/editor-menu.js
KristianKarl/graphwalker-project
import React, { Component } from 'react'; import { connect } from "react-redux"; import { Button, ButtonGroup } from "@blueprintjs/core"; import { toggleProperties} from "../../redux/actions"; class EditorMenu extends Component { render() { return ( <ButtonGroup minimal={true} vertical={true} large={true}...
app/components/TextInput/index.js
rahsheen/scalable-react-app
/** * * TextInput * */ import React from 'react'; import styles from './styles.css'; import classNames from 'classnames'; class TextInput extends React.Component { // eslint-disable-line react/prefer-stateless-function value() { return this.field.value; } render() { const { errorText } = this.props; ...
src/svg-icons/editor/format-indent-increase.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatIndentIncrease = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/> </SvgIcon> ); EditorFormatIndentIncrease...
static/src/components/islands/IslandLog.js
hammerandchisel/airhornbot
// @flow // jscs:disable maximumLineLength import React from 'react'; type Props = { paused: boolean }; export default ({paused}: Props): React.Element => ( <svg className={`island log ${paused ? 'paused' : ''}`} xmlns="http://www.w3.org/2000/svg" width="259" height="209"> <g fill="none" fill-rule="evenodd">...
src/components/NoMatch.js
uxlayouts/spidermonkey
import React from 'react' const NoMatch = ({ location }) => ( <div className="container-fluid padding-top-3 padding-bottom-3"> <h3>Sorry, we could not find: <code>{location.pathname}</code></h3> </div> ) export default NoMatch
projects/twitch-web/src/components/App.js
unindented/twitch-x
import React from 'react' import PropTypes from 'prop-types' import Root from 'twitch-ui/src/components/Root' import Navigation from 'twitch-ui/src/components/Navigation' import Main from 'twitch-ui/src/components/Main' export default function App (props) { const {children} = props return ( <Root> <Navi...
fields/types/textarea/TextareaField.js
helloworld3q3q/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'TextareaField', statics: { type: 'Textarea', }, renderField () { const { height, path, style, value } = this.props; const styles = { height: height, ...style, ...
src/LeftHalf.js
takng/REACT-STOCK
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; import { Button, Card, Row, Col } from 'react-materialize'; import {LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'recharts'; //const d = [] export default...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/schedule.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSchedule = (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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"...
docs/app/Examples/elements/Image/States/ImageExampleDisabled.js
koenvg/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleDisabled = () => ( <Image src='/assets/images/wireframe/image.png' size='medium' disabled /> ) export default ImageExampleDisabled
docs/app/Examples/views/Comment/Types/CommentExampleComment.js
clemensw/stardust
import React from 'react' import { Button, Comment, Form, Header } from 'semantic-ui-react' const CommentExampleComment = () => ( <Comment.Group> <Header as='h3' dividing>Comments</Header> <Comment> <Comment.Avatar src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> <Comment.Content> ...
examples/quick-start/components/user-form.js
davidkpiano/redux-simple-form
import React from 'react'; import { LocalForm, Form, actions, Control, Field, Errors } from 'react-redux-form'; import { connect } from 'react-redux'; import icepick from 'icepick'; window.i = icepick; const required = (val) => !!(val && val.length); function hasToBeTrue(value) { if (value === false || typeof va...
src/client/spinner.js
eiriklv/hacker-menu
import React from 'react' export default class Spinner extends React.Component { render () { return ( <div className='spinner'> Loading... </div> ) } }
src/components/layouts/main-layout.js
mberneti/ReactAdmin
import React from 'react'; import Menu from './menu'; import Header from './header'; const mainLayout = props => { return ( <div id="wrapper"> {props.alert} <nav className="navbar navbar-default navbar-static-top" role="navigation"> <Header fullname={props.fullname} ...
extension/test/app/components/MainSection.spec.js
skortchmark9/reselect-tools
import { expect } from 'chai'; import sinon from 'sinon'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import MainSection from '../../../app/components/MainSection'; import style from '../../../app/components/MainSection.css'; import TodoItem from '../../../app/components/TodoItem'; impor...
plugins/Files/js/components/addfolderbutton.js
NebulousLabs/New-Sia-UI
import React from 'react' const AddFolderButton = ({ actions }) => { const handleClick = () => actions.showAddFolderDialog() return ( <div onClick={handleClick} className='addfolder-button'> <i className='fa fa-folder fa-2x' /> <span> New Folder </span> </div> ) } export default AddFolderBut...
ios/versioned-react-native/ABI10_0_0/Libraries/Modal/Modal.js
jolicloud/exponent
/** * 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. * * @provides...
src/components/conversation/MessageGif/MessageGif.js
rlesniak/tind3r.com
// @flow import React, { Component } from 'react'; import { observable, action } from 'mobx'; import { observer } from 'mobx-react'; import cx from 'classnames'; import each from 'lodash/each'; import map from 'lodash/map'; import axios from 'axios'; import './MessageGif.scss'; const fetchGipy = query => axios.get(`...
imports/ui/home/components/committee_form.js
dououFullstack/atomic
import React from 'react'; import Modal from 'react-modal'; import { Field, reduxForm } from 'redux-form'; import ReactMarkdown from 'react-markdown'; class Form extends React.Component { constructor(props) { super(props); this.state = { readme: false, invitation: false, }; } readme() { ...
app/javascript/mastodon/features/compose/components/text_icon_button.js
increments/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.s...
assets/javascripts/kitten/components/embed/responsive-iframe-container/stories.js
KissKissBankBank/kitten
import React from 'react' import { ResponsiveIframeContainer } from './index' import { COLORS } from 'kitten' import { DocsPage } from 'storybook/docs-page' export default { title: 'Embed/ResponsiveIframeContainer', component: ResponsiveIframeContainer, parameters: { docs: { page: () => ( <Docs...
upgrade-guides/v0.12-v0.13/es5/src/components/Master.js
lore/lore
/** * This component serves as the root of your application, and should typically be the only * component subscribed to the store. * * It is also a good place to fetch the current user. Once you have configured 'models/currentUser' * to fetch the current user (by pointing it to the correct API endpoint) uncomment ...
src/parser/demonhunter/havoc/modules/spells/MetaBuffUptime.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; /* example repo...
src/ReactPureLoggerComponent.js
D-Andreev/react-logger
import React from 'react'; import Logger from './logger/Logger'; export default class ReactPureLoggerComponent extends React.PureComponent { constructor(props, options) { super(props); this.logger = new Logger(options); this.displayName = props.displayName; } componentWillMount()...
src/AppBar/index.js
reactivers/react-material-design
/** * Created by Utku on 25/03/2017. */ import React from 'react'; import PropTypes from 'prop-types'; import '@material/toolbar/dist/mdc.toolbar.css'; import classNames from 'classnames'; export class AppBarTitle extends React.PureComponent { static propTypes = { iconAlignment: PropTypes.string, ...
src/app/components/task/SingleChoiceTask.js
meedan/check-web
import React, { Component } from 'react'; import Box from '@material-ui/core/Box'; import Radio from '@material-ui/core/Radio'; import RadioGroup from '@material-ui/core/RadioGroup'; import FormGroup from '@material-ui/core/FormGroup'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import Button fro...
src/components/LoginCard/__tests__/LoginCard-test.js
retaxJS/retax-seed
import chai, { expect } from 'chai'; import mockery from 'mockery'; import sinonChai from 'sinon-chai'; import dirtyChai from 'dirty-chai'; chai.use(dirtyChai); chai.use(sinonChai); import { shallow } from 'enzyme'; import React from 'react'; function noop() {} describe('LoginCard', () => { describe('Without DOM'...
src/FormControls/Static.js
mcraiganthony/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
app/components/inputgroup/inputgroup.js
tidepool-org/blip
import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; import cx from 'classnames'; import Select from 'react-select'; import DatePicker from '../datepicker'; // Input with label and validation error message class InputGroup extends React.Component { static propTypes = { name: Pr...
packages/icons/src/md/action/Label.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLabel(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M34.27 11.69A4.015 4.015 0 0 0 31 10l-22 .02c-2.21 0-4 1.77-4 3.98v20c0 2.21 1.79 3.98 4 3.98L31 38c1.35 0 2.54-.67 3.27-1.69L43 24l-8.73-12.31z" /> ...
src/workshops/presentation/attendee/AnttendeeView.js
GrayTurtle/rocket-workshop
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'react-icons-kit'; import { ic_keyboard_arrow_left } from 'react-icons-kit/md/ic_keyboard_arrow_left'; import { ic_keyboard_arrow_right } from 'react-icons-kit/md/ic_keyboard_arrow_right'; import { connect } from 'react-redux'; import {...
src/chat/attachments/PhotoLibrary.js
elarasu/roverz-chat
import React from 'react'; import { StyleSheet, Text, TouchableOpacity, View, Modal, KeyboardAvoidingView, TextInput, Platform, Image, } from 'react-native'; import PropTypes from 'prop-types'; import { Icon } from 'react-native-elements'; import CameraRollPicker from 'react-native-camera-roll-picker'...
src/Affix.js
chilts/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...
resources/js/components/editor.js
ncbrown1/go-playground
import React from 'react'; import { connect } from 'react-redux'; import CodeMirror from 'react-codemirror'; import * as actions from '../actions'; class Editor extends React.Component { constructor(props){ super(props); } shouldComponentUpdate(nextProps, newState) { return nextProps.force...
src/explore/LoadableStartExploringPage.js
ipfs/webui
import React from 'react' import Loadable from '@loadable/component' import ComponentLoader from '../loader/ComponentLoader.js' const LoadableStartExploringPage = Loadable(() => import('./StartExploringContainer'), { fallback: <ComponentLoader/> } ) export default LoadableStartExploringPage
app/javascript/mastodon/components/avatar.js
summoners-riftodon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
test/datepicker_test.js
mitchrosu/react-datepicker
import React from 'react' import ReactDOM from 'react-dom' import TestUtils from 'react-addons-test-utils' import { mount } from 'enzyme' import defer from 'lodash/defer' import DatePicker from '../src/datepicker.jsx' import Day from '../src/day' import TetherComponent from '../src/tether_component.jsx' import moment f...
src/components/icons/NoAnswerMobileIcon.js
austinknight/ui-components
import React from 'react'; const NoAnswerMobileIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24" fill="currentColor"> {props.title && <title>{props.title}</title>} <path d="M15.5,1 L7.5,1 C6.12,1 5,2.12 5,3.5 L5,20.5 C5,21.88 6.12,23 7.5,23 L15.5,23 C1...
test/PanelSpec.js
chilts/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Panel from '../src/Panel'; import Table from '../src/Table'; describe('Panel', function () { it('Should have class and body', function () { let instance = ReactTestUtils.renderIntoDocument( <Panel>Panel content</Panel>...
src/lib/gui/components/ServerViewHeaderToggle/ServerViewHeaderToggle.js
xclix/chan
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const ServerViewHeaderToggle = ({ toggled, serverId, onSwitchButtonClick }) => { const toggleClassNames = classnames({ 'server-view-header-toggle': true, 'server-view-header-toggle--up': toggled }); retur...