path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/app.js
mikejong0815/Temp
/** * 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...
app/components/BillListItem/TableRow.js
balintsoos/app.rezsi.io
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; import { TableRow as MuiTableRow, TableRowColumn, } from 'material-ui/Table'; import { grey500 as unitColor } from 'material-ui/styles/colors'; import messages fro...
es/mobile/components/MediaList/Row.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import PropTypes from 'prop-types'; import Avatar from "@material-ui/core/es/Avatar"; import ListItem from "@material-ui/core/es/ListItem"; import ListItemText from "@material-ui/core/es/ListItemText"; var MediaRow = function MediaRow(_r...
src/components/InitiativeDropTarget.js
jeremyfry/init-tracker
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { DropTarget } from 'react-dnd'; import { DRAG_TYPES, } from '../constants'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import * as initiativeActions from '../actions/initiativeActions'; class Init...
src/encoded/static/components/viz/components/RotatedLabel.js
4dn-dcic/fourfront
import React from 'react'; import _ from 'underscore'; import memoize from 'memoize-one'; import * as vizUtil from '@hms-dbmi-bgm/shared-portal-components/es/components/viz/utilities'; import { console, isServerSide, layout } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; /** * If keep in RotatedLa...
client/components/basic/Page.stories.js
Sing-Li/Rocket.Chat
import { Button, ButtonGroup, Tile } from '@rocket.chat/fuselage'; import React from 'react'; import { fullHeightDecorator } from '../../../.storybook/decorators'; import Page from './Page'; export default { title: 'components/basic/Page', component: Page, }; const DummyContent = () => <> {Array.from({ length: 60...
HomeRange/app/pages/home/achievement/component/achievement_all.js
Onlyjson/yanShu_Project
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, Image, TouchableOpacity, FlatList } from 'react-native'; import request from '../../../../utils/Request'...
frontend/src/App/AppRoutes.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import { Redirect, Route } from 'react-router-dom'; import BlocklistConnector from 'Activity/Blocklist/BlocklistConnector'; import HistoryConnector from 'Activity/History/HistoryConnector'; import QueueConnector from 'Activity/Queue/QueueConnector'; import ...
docs/src/app/components/pages/components/GridList/Page.js
spiermar/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 gridListReadmeText from './README'; import gridListExampleSimpleCode from...
src/components/SegmentedControl.js
hnq90/elemental
import classnames from 'classnames'; import React from 'react'; module.exports = React.createClass({ displayName: 'SegmentedControl', propTypes: { className: React.PropTypes.string, equalWidthSegments: React.PropTypes.bool, onChange: React.PropTypes.func.isRequired, options: React.PropTypes.array.isRequired...
cheesecakes/plugins/content-manager/admin/src/components/FilterOptions/index.js
strapi/strapi-examples
/** * * FilterOptions * */ import React from 'react'; import PropTypes from 'prop-types'; import { get } from 'lodash'; import cn from 'classnames'; import InputSelect from 'components/InputSelect/Loadable'; import Add from './Add'; import Div from './Div'; import InputWithAutoFocus from './InputWithAutoFocus'; ...
packages/core/upload/admin/src/components/AssetDialog/BrowseStep/PaginationFooter/components.js
wistityhq/strapi
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import ChevronLeft from '@strapi/icons/ChevronLeft'; import ChevronRight from '@strapi/icons/ChevronRight'; import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden'; import { Typography } from '@strapi/de...
components/base/Footer.js
CarbonStack/carbonstack
import React from 'react' class Footer extends React.PureComponent { render () { return <footer> <p> Copyright 2017 Junyoung Choi.&nbsp;<a href='https://github.com/CarbonStack/carbonstack' target='_blank'>Source code of Carbonstack</a>&nbsp;is published under MIT. </p> <style jsx>{` ...
app/javascript/components/Schedule/Ruler.js
rubycentral/cfp-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Ruler extends Component { render() { const { startTime, endTime } = this.props; let hours = []; for (let i = Math.floor(startTime); i <= Math.floor(endTime); i++) { let time; if (i > 12) { time = i - 1...
src/index.js
topit/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/index.js
mtheoryx/tomato-timer
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/demo/fieldArrays/FieldArraysForm.js
tedyuen/react-redux-form-v6-example
import React from 'react'; import { Field, FieldArray, reduxForm } from 'redux-form' import { connect } from 'react-redux' import inputField from '../../utils/validation/inputField'; import renderMembers from './renderMembers'; import validate from './validate'; let FieldArraysForm = props => { const { handleSubmit,...
src/js/components/Widgets/Area_chart.js
masogit/dashboard
/** * Created by huling on 10/22/2016. */ import React, { Component } from 'react'; import { Box, Heading, Header, Menu, Anchor} from 'grommet'; import { AreaChart } from 'react-d3'; import Warpper from './Warpper'; var myDate = new Date(); const areaData = [ { name: "series1", values: [ { x: myDate,...
src/components/auth/Import.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import { Link } from 'react-router'; import classnames from 'classnames'; import Form from '../../lib/Form'; import To...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
andreftavares/react-router
/*globals COURSES:true */ import React from 'react' class Announcement extends React.Component { render() { let { courseId, announcementId } = this.props.params let { title, body } = COURSES[courseId].announcements[announcementId] return ( <div> <h4>{title}</h4> <p>{body}</p> ...
actor-apps/app-web/src/app/components/common/Banner.react.js
supertanglang/actor-platform
import React from 'react'; import BannerActionCreators from 'actions/BannerActionCreators'; class Banner extends React.Component { constructor(props) { super(props); if (window.localStorage.getItem('banner_jump') === null) { BannerActionCreators.show(); } } onClose = () => { BannerActionC...
public/js/components/profile/blocklist/BlockListContainer.react.js
MadushikaPerera/Coupley
import React from 'react'; import Activity from './BlockList.react'; import List from 'material-ui/lib/lists/list'; import ProfileStore from '../../../stores/ProfileStore'; import ProfileActions from '../../../actions/profile/ProfileActions'; const ActivityFeedContainer = React.createClass({ getInitialState: funct...
src/layouts/index.js
EricSSartorius/homepage
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' import favicon from '../../favicon.ico' import Header from '../components/header' import './index.scss' const Footer = () => ( <footer className="footer"> <ul> <li><a href="https://...
app/static/js/modules/client.js
isaaguilar/sandbox
//import React from 'react' //import ReactDOM from 'react-dom' var Counter = React.createClass({ aFunctionNameThatIncrementsCount: function(){ this.setState({ count: this.state.count + 1 }); }, getInitialState: function(){ return { count: 0, message: "Hello React" } }, r...
src/components/Sidebar/StartNow.js
ryanbaer/busy
import React from 'react'; import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router-dom'; import './SidebarBlock.less'; const StartNow = () => (<div className="SidebarBlock"> <h3 className="SidebarBlock__title"> <FormattedMessage id="never_written_post" defaultMessage="Never writte...
app/javascript/mastodon/components/permalink.js
yukimochi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
app/static/js/reactDarts/src/client/app/index.js
pwgraham91/ELO-Darts
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('main') );
src/components/ui/Button.js
arayi/SLions
/** * Buttons * <Button text={'Server is down'} /> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button } from 'react-native-elements'; // Consts and Libs import { AppColors, AppFon...
node_modules/react-navigation/src/views/HeaderTitle.js
joan17cast/Enigma
/* @flow */ import React from 'react'; import { Platform, StyleSheet, Text } from 'react-native'; import type { Style } from '../TypeDefinition'; type Props = { tintColor?: ?string, style?: Style, }; const HeaderTitle = ({ style, ...rest }: Props) => ( <Text numberOfLines={1} {...rest} style={[st...
src/shared/routes.js
poetcyborg/redux-app-skeleton
import React from 'react'; import { Route, NoMatch, IndexRoute } from 'react-router'; import LayoutComponent from './components/LayoutComponent'; import IndexContainer from './containers/IndexContainer'; import RandomTextContainer from './containers/RandomTextContainer'; import AboutComponent from './components/AboutC...
src/shared/components/LinkedAccountList/index.js
rvboris/finalytics
import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Alert } from 'reactstrap'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { get } from 'lodash'; import classnames from 'classnames'; const messages = defineMessages(...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
Gouthamve/BINS-FRONT
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
src/datepicker.js
wiflsnmo/react_study2
import React from 'react'; import ReactDOM from 'react-dom'; import DatePicker from 'react-datepicker'; import moment from 'moment'; // CSS Modules, react-datepicker-cssmodules.css import 'react-datepicker/dist/react-datepicker-cssmodules.css'; class Example extends React.Component { constructor (props) { super...
src/svg-icons/action/language.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLanguage = (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 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 ...
docs/src/GettingStartedPage.js
zerkms/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="getting-started"...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
darul75/react-router
import React from 'react'; class Assignments extends React.Component { render () { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ); } } export default Assignments;
src/browser/auth/SignInPage.js
TheoMer/este
// @flow import type { State } from '../../common/types'; import Email from './Email'; import React from 'react'; import SignInError from './SignInError'; import Social from './Social'; import linksMessages from '../../common/app/linksMessages'; import { Box, Loading, PageHeader } from '../../common/components'; import...
app/javascript/mastodon/features/compose/components/search_results.js
Craftodon/Craftodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/status_container'; import { Link } from 'react-router-dom'; import ...
app/router/Root.js
ykforerlang/my-react-redux
import React from 'react' import { Provider } from 'react-redux' import { Router } from 'react-router' import routes from './routes' const Root = ({ store, history }) => ( <Provider store={store}> <Router history={history} routes={routes} /> </Provider> ) export default Root
src/App.js
longyarnz/WelFurnish-E-Commerce
import React, { Component } from 'react'; import AppLogic from './AppLogic'; import FetchGraph from './components/FetchGraph'; import LandingPanel from './components/LandingPanel'; export default class App extends Component { constructor(props){ super(props); this.actions = this.actions.bind(this); this._...
services/ui/src/components/Tasks/index.stories.js
amazeeio/lagoon
import React from 'react'; import mocks, { seed } from 'api/src/mocks'; import Tasks from './index'; export default { component: Tasks, title: 'Components/Tasks', }; seed(); const environment = mocks.Environment(); const tasks = [ mocks.Task(null, {environment}), mocks.Task(null, {environment}), mocks.Task(...
src/components/Pagination.js
ttrentham/Griddle
import React from 'react'; const Pagination = ({ Next, Previous, PageDropdown, style, className }) => ( <div style={style} className={className}> {Previous && <Previous />} {PageDropdown && <PageDropdown /> } {Next && <Next /> } </div> ); export default Pagination;
client/app/scripts/components/matched-text.js
kinvolk/scope
import React from 'react'; const TRUNCATE_CONTEXT = 6; const TRUNCATE_ELLIPSIS = '…'; /** * Returns an array with chunks that cover the whole text via {start, length} * objects. * * `('text', {start: 2, length: 1}) => [{text: 'te'}, {text: 'x', match: true}, {text: 't'}]` */ function chunkText(text, { start, len...
example/src/App.js
kzima/react-static
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
app/features/player/player.js
tco/ReactPlayer
import React from 'react'; import Video from './video/video.js'; import Controls from './controls/controls.js'; var ReactPlayer = React.createClass({ render: function() { return ( <div id="react-player" onMouseOver={this.showControls} onMouseOut={this.hideControls}> <Video ref=...
src/components/common/svg-icons/action/settings.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettings = (props) => ( <SvgIcon {...props}> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l...
src/Components/App.js
aryalprakash/omgyoutube
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Router, Route, browserHistory, Link } from 'react-router' import Helmet from "react-helmet"; import {getVideoData, getChannelVideos, clearChannelVideos, flushCurrentData, getPlaylistVideos, getMovieList} from '../actions/video.js'...
src/components/blog.js
ateixeira/andreteixeira.info
import React from 'react'; module.exports = React.createClass({ // RENDER render: function() { return ( <div className="blog"> <div className="box"> <div className="title"> Lorem Ipsum Sit Amet Dolor Bla ...
examples/src/components/Contributors.js
Paveltarno/react-select
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
app/components/job/Index/jobs.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import searchQuery from 'search-query-parser'; import Spinner from '../../shared/Spinner'; import Panel from '../../shared/Panel'; import Button from '../../shared/Button'; import Row from './row'; const PAGE_SIZE...
src/components/WebSocketDebugTool/index.js
jiangxy/websocket-debug-tool
import React from 'react'; import {Form, Icon, Input, Button, Checkbox} from 'antd'; import SockJS from 'sockjs-client'; import StompJS from 'stompjs/lib/stomp.js'; import './index.less'; const FormItem = Form.Item; const CheckboxGroup = Checkbox.Group; const Stomp = StompJS.Stomp; /** * 用于调试websocket的一个小工具, 支持sockj...
src/groups/notifs/EditItemFailNotif.js
dash-/netjumpio-tabs-web
/// // Dependencies /// import React, { Component } from 'react'; import FailRetryNotif from '../../elements/FailRetryNotif'; import * as actions from '../actions'; /// // View /// class EditItemFailNotifView extends Component { /// // Rendering /// renderMessage(action, userMessage) { return ( 'Updatin...
app/src/App.js
supernova-at/media-bias
/* * Imports. */ // NPM. import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; // Local. import './App.css'; import './common.css'; import Pager from './components/pager'; import MobileView from ...
packages/expo-dev-menu/vendored/react-native-gesture-handler/src/touchables/TouchableNativeFeedback.android.js
exponent/exponent
import { Platform } from 'react-native'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import GenericTouchable from './GenericTouchable'; /** * TouchableNativeFeedback behaves slightly different than RN's TouchableNativeFeedback. * There's small difference with handling long press rip...
packages/icons/src/md/image/Brightness4.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdBrightness4(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M39.63 17l6.63 6.63-6.63 6.63v9.37h-9.37l-6.63 6.63L17 39.63H7.63v-9.37L1 23.63 7.63 17V7.63H17L23.63 1l6.63 6.63h9.37V17zm-16 18.63c6.63 0 12-5....
src/components/polls.js
KoushikKumar/TakeAPoll_Client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getAllPolls, submitPollByUnauthorizedUser, submitPollByAuthorizedUser, getIpAddress, getUserRelatedPolls, getUserId, deletePoll, getPollDataByPollId } from '../actions'; import { VOTING_APP_CLIENT_URL } from...
app/index.js
BenGoldstein88/hitch-frontend
import React from 'react'; import { render } from 'react-dom'; import routes from '../config/routes'; render( routes, document.getElementById('app') );
src/routes/error/index.js
fvalencia/react-vimeo
/** * 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...
views/components/CustomerViewUi.js
gvaldambrini/madam
import React from 'react'; import { Link, IndexLink } from 'react-router'; // The main customer presentational component. export default React.createClass({ propTypes: { infoPath: React.PropTypes.string.isRequired, appPath: React.PropTypes.string.isRequired, appLinkDisabled: React.PropTypes.bool.isRequi...
examples/next-js/pages/index.js
brandondoran/rollbar-sourcemap-webpack-plugin
import React from 'react' import Head from 'next/head' import Nav from '../components/nav' const Home = () => ( <div> <Head> <title>Home</title> <link rel="icon" href="/favicon.ico" /> </Head> <Nav /> <div className="hero"> <h1 className="title">Welcome to Next.js!</h1> <p c...
client/src/components/Landing/index.js
stanographer/aloft
import React from 'react'; const App = () => ( <div> <h1>App</h1> </div> ); export default App;
server/sonar-web/src/main/js/apps/permission-templates/permission-template-defaults.js
abbeyj/sonarqube
import _ from 'underscore'; import React from 'react'; import QualifierIcon from '../../components/shared/qualifier-icon'; export default React.createClass({ propTypes: { permissionTemplate: React.PropTypes.object.isRequired, topQualifiers: React.PropTypes.array.isRequired }, renderIfSingleTopQualifier(...
packages/television/src/components/AdContainer.js
accosine/poltergeist
import React from 'react'; import PropTypes from 'prop-types'; import { styled } from 'styletron-react'; const Container = styled('div', { display: 'flex', justifyContent: 'center', position: 'relative', '@media screen and (min-width: 1024px)': { top: 0, }, }); const AdContainer = ({ adnetwork, adconfig...
src/svg-icons/editor/vertical-align-center.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignCenter = pure(EditorVerticalAlig...
src/components/ImportButton.js
GeorgioWan/Oi
import React, { Component } from 'react'; import {Button, Glyphicon, Tooltip, OverlayTrigger} from 'react-bootstrap'; import {step} from '../types/step'; export default class ImportButton extends Component { constructor(props){ super(props); } componentDidMount(){ let {addSteps} = this.props; se...
src/DropdownMenu.js
deerawan/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
src/js/modules/Boards/components/BoardForm/BoardForm.js
jmlavoier/task-tool
import React from 'react'; import PropTypes from 'prop-types'; import style from './BoardForm.sass'; class BoardForm extends React.Component { static focusElement(el) { el.focus(); } constructor(props) { super(props); this.state = { name: props.name, }; this.onChangeName = this.onCha...
src/AW_.js
corbig/AfterWorkManager
import React from 'react'; // Composant vierge par défaut // A copier pour créer un nouveau composant // C'est un aide mémoire export default class AW_ extends React.Component { constructor(props) { console.log("AW_.constructor() : Début"); super(props); this.state = {index:1}; // Les variables loca...
mob5/src/components/Home/CalendarList/Footer.js
leGoupil/mob5
import React from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, padding: 8, alignItems: 'center', justifyContent: 'center', }, button: { borderColor: '#8E8E8E', borderWidth: StyleSheet.hairlineWid...
src/components/Leaderboard.js
M-Woo/BeQ
import React from 'react' import Leaders from '../components/Leaders' import { graphql } from 'react-apollo' import gql from 'graphql-tag' class Leaderboard extends React.Component { static propTypes = { data: React.PropTypes.object, } render(){ if (this.props.data.loading){ return(<div>Loading...
packages/material-ui-icons/src/NavigateBefore.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" /></g> , 'NavigateBefore');
src/components/common/header/Header.js
great-design-and-systems/cataloguing-app
import '../../../images/profile.jpg'; import * as actions from '../../../actions/HeaderActions'; import { APP_NAME, LABEL_BOOKS, LABEL_LIBRARY, LABEL_SETTINGS } from '../../../labels/'; import FontAwesome from 'react-fontawesome'; import { HeaderControls } from './HeaderControls'; import Nav from 'react-bootstrap/li...
src/components/ViewReport/ReportCatalogList.js
RegOpz/RegOpzWebApp
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import { bindActionCreators, dispatch } from 'redux'; import _ from 'lodash'; import DatePicker from 'react-datepicker'; import moment from 'moment'; require('react-datepicker/dist/react-datepicker.css'); ...
es/components/style/content-title.js
cvdlab/react-planner
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
js/components/checkbox/index.js
soltrinox/MarketAuth.ReactNative
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, CheckBox, Text } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; class NHCheckbox extends Component { sta...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
buddhike/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment => ( ...
src/Composite/InputAreaWithLabelComposite/InputAreaWithLabelComposite.driver.js
skyiea/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import fieldLabelAttributesDriverFactory from '../../FieldLabelAttributes/FieldLabelAttributes.driver'; const inputAreaWithLabelCompositeDriverFactory = ({element, wrapper, component}) => { const label = element.childNodes[0].childN...
src/components/SignOut.js
hszeto/askout-react-native
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { signOutUser } from '../actions'; import { Container, Content } from 'native-base'; class SignOut extends Component { componentWillMount() { const { email } = this.props; this.props.signOutUser( email ); } render()...
packages/showcase/plot/area-chart-elevated.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // 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 use, copy, modify...
web/src/app/components/user/items.js
sokoow/teleport
import React from 'react'; const U2F_ERROR_CODES_URL = 'https://developers.yubico.com/U2F/Libraries/Client_error_codes.html'; export const ErrorMessage = ({ message }) => { message = message || ''; if(message.indexOf('U2F') !== -1 ) { return ( <label className="grv-invite-login-error"> {message} ...
client/src/Pages/Landing.js
ciex/mietlimbo
// @flow import React from 'react' import { NavLink } from 'react-router-dom' import { defineMessages, FormattedMessage } from 'react-intl' import RaisedButton from 'material-ui/RaisedButton' const style = { wrapper: { fontFamily: ['Open Sans', 'sans-serif'] }, title: { margin: '3em auto' }, okay: {...
src/svg-icons/av/queue-music.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueueMusic = (props) => ( <SvgIcon {...props}> <path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/> </SvgIcon> ); AvQu...
docs/src/app/components/pages/get-started/RequiredKnowledge.js
hwo411/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import requiredKnowledge from './required-knowledge.md'; const RequiredKnowledge = () => ( <div> <Title render={(previousTitle) => `Required Knowledge - ${previousTitle}`} /> <MarkdownEl...
src/svg-icons/av/library-add.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryAdd = (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 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> </S...
src/v2/util/provideChildrenWithProps.js
aredotna/ervell
import React from 'react' export default (children, props) => { if (!children) throw new Error('children is undefined') // If we have a bare string just return it. // Nothing can be provided to it. if (typeof children === 'string') { return children } // If we have a function, render it if (typeof ...
src/app/pages/Home.js
skratchdot/react-file-processor
/*eslint no-console:0 */ import React, { Component } from 'react'; import { Row, Col, Button, Jumbotron, Table } from 'react-bootstrap'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { setSelectedFiles } from '../actions/selectedFiles'; import FileProcessor from '../../lib/index'; ...
src/components/__tests__/TableHeadingTest.js
GriddleGriddle/Griddle
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import TableHeading from '../TableHeading'; test('renders', (t) => { const wrapper = shallow(<TableHeading />); t.true(wrapper.matchesElement(<thead><tr /></thead>)); }); test('renders with style', (t) => { const style = { ba...
blueocean-dashboard/src/main/js/components/stories/RunDetailsHeaderStories.js
ModuloM/blueocean-plugin
/* eslint-disable */ import React from 'react'; import {storiesOf, action} from '@kadira/storybook'; import { ModalView, ModalBody, ModalHeader, PageTabs, Progress, TabLink, } from '@jenkins-cd/design-language'; import WithContext from '@jenkins-cd/design-language/dist/js/stories/WithContext'; i...
packages/material-ui-shell/src/providers/Theme/Context.js
TarikHuber/react-most-wanted
import React from 'react' export const Context = React.createContext(null) export default Context
interfaces/react-redux.d.js
TechnologyAdvice/flow-interfaces
import React from 'react'; declare module 'react-redux' { declare interface ConnectedReactClass extends ReactClass { static WrappedComponent: ReactClass; getWrappedInstance(): React.Component; } declare var Provider: React.Component; declare function connect(mapStateToProps?: (state: Object, ownProps: ...
src/components/Schemes/ThreadingElement/index.js
nobus/weaver
import React, { Component } from 'react'; import './style.css'; class ThreadingElement extends Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } isEnabled() { const {threadingsState, row, col} = this.props; const state = threadingsState[col]; ...
src/Button.js
lako90/react-elements-pagination
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Button extends Component { static propTypes = { label: PropTypes.string, onClick: PropTypes.func, } static defaultProps = { label: '', onClick: () => null, } onClick = () => this.props.onClick; render() {...
node_modules/react-bootstrap/es/ModalHeader.js
FoxMessenger/nyt-react
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/svg-icons/image/switch-camera.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSwitchCamera = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 11.5V13H9v2.5L5.5 12 9 8.5V11h6V8.5l3.5 3.5-3.5...
app/components/HowDoes2Diagram.js
gidich/votrient-kiosk
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import styles from './HowDoes2Diagram.css'; export default class HowDoes2Diagram extends Component { render() { return ( <div className={styles.container}> <div className={styles.close} onClick={browserHistor...
src/components/pages/splash/handler.js
jackblandin/react_express_template
import React from 'react' import { Link } from 'react-router' export default class SplashHandler extends React.Component { render() { return ( <div> <h1>Panoskin</h1> <h3>interactive sales tool</h3> <div> <div><Link to="client">Get Panoskin</Link></div> <div><Li...
src/components/author/AuthorForm.js
wowkin2/react-redux-sample
import React from 'react'; import TextInput from '../common/TextInput'; const AuthorForm = ({author, onSave, onChange, saving, errors}) => { return ( <form> <h1>Manage Author</h1> <TextInput name="firstName" label="First name" value={author.firstName} onChange={onChang...
src/svg-icons/action/build.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBuild = (props) => ( <SvgIcon {...props}> <path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-...
client/extensions/woocommerce/app/settings/email/email-settings/components/notifications-origin.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import PropTypes from 'prop-types'; import React from 'react'; import emailValidator from 'email-validator'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import FormTextInput from 'components/forms/form-text-input'; import FormLabel from 'c...
app/components/comments/comment-box.js
tthew/react-tutorial-es2015
import React from 'react' import jQuery from 'jquery' import CommentList from './comment-list' import CommentForm from './comment-form' export default class CommentBox extends React.Component { constructor(props) { super(props) this.state = { url: props.url, data: [] } } loadCommentsFro...