path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/SignInForm/index.js
audoralc/pyxis
/** * * SignInForm * */ import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; class SignInForm extends React.PureComponent { constructor(props) { super(props); this.state = { email: '', password: '', token: '', }; } handleEmail = (e) => { this.setState...
binding/index.js
voydz/xamarin-react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for d...
src/components/MediaList/Actions/AddToPlaylist.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import AddIcon from '@material-ui/icons/Add'; import Action from './Action'; const handleAdd = onAdd => (event) => { const pos = event.target.getBoundingClientRect(); onAdd({ x: pos.left, y: pos.top, }); }; const AddToPlaylist = ({ onAdd, .....
src/components/form/MaskedNumberField.js
RelativeMedia/rm-frontend
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import InputMask from 'react-input-mask' const MaskedNumberField = ({ disabled, alwaysShowMask, mask, maskChar, inputLg, input, label, placeholder, type, meta: {valid, touched, error} }) => { const classes = classNames('...
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/format-color-reset.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatColorReset = (props) => ( <SvgIcon {...props}> <path d="M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31zm-.88 3.12L12.5 12.5 5.27 5.27 4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6 1.52 0...
frontend/src/components/Navigation/DataTable.js
loicbaron/nutrition
import React from 'react'; import PropTypes from 'prop-types'; import { DataGrid } from '@mui/x-data-grid'; const DataTable = ({ columns, rows, height = '400px', pageSize = 5 }) => ( <div style={{ height, width: '100%' }}> <DataGrid rows={rows} columns={columns} pageSize={pageSize} rowsPe...
react-redux-demo/tree-view/src/containers/Node.js
fengnovo/webpack-react
import React from 'react' import { Component } from 'react' import { connect } from 'react-redux' import * as actions from '../actions' export class Node extends Component { handleIncrementClick = () => { const { increment, id } = this.props increment(id) } handleAddChildClick = e => { e.preventDefa...
docs/src/app/components/pages/get-started/Installation.js
verdan/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import installationText from './installation.md'; const Installation = () => ( <div> <Title render={(previousTitle) => `Installation - ${previousTitle}`} /> <MarkdownElement text={insta...
src/pages/Index.js
alexandernanberg/minimal-react-boilerplate
import React from 'react' import Page from '../components/Page' import { H1 } from '../components/common/Title' export default function Index() { return ( <Page> <H1>Home.</H1> </Page> ) }
Context/Provider_01/jsx/Child.js
Muzietto/react-playground
import React from 'react'; import DeviceAware from './DeviceAware'; const Child = ({ device }) => <React.Fragment> <div>{`Provider says: ${device}`}</div> <div>{'Resize the window to see the other values'}</div> </React.Fragment>; export default DeviceAware(Child);
src/Tabs/TabTemplate.js
pradel/material-ui
import React from 'react'; class TabTemplate extends React.Component { static propTypes = { children: React.PropTypes.node, selected: React.PropTypes.bool, }; render() { const styles = { width: '100%', position: 'relative', textAlign: 'initial', }; if (!this.props.selected...
src/components/auction/teams/Team.js
akeely/twoguysandadream-js
import React from 'react'; export default class Team extends React.Component { constructor(props) { super(props); this.updateTeam = this.updateTeam.bind(this); } updateTeam() { this.props.updateTeam(this.props.team.id); } render() { var highlightClass= ''; ...
src/components/Atest.js
yakirn/YTrack
'use strict'; import React from 'react'; //var Actions = require('actions/xxx') require('styles/Atest.scss'); var Atest = React.createClass({ render: function () { console.log('Atest'); return ( <div className="Atest"> <p>Content for Atest</p> </div> ); } }); module.expo...
src/components/Igor.js
evelinalaroussi/evelinalaroussi.github.io
import React from 'react'; import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; //import { Code } from '../styles/style'; //import s from '../styles/home.style'; export default class Igor extends React.Component { constructor(props) { super(props); } render() { return...
node_modules/react-router-dom/es/HashRouter.js
ChrisMichaelPerezSantiago/CodetrotterFinalProject
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
packages/demos/todomvc/src/components/List/index.js
christianalfoni/cerebral
import React from 'react' import Todo from '../Todo' import { connect } from '@cerebral/react' import { state, signal } from 'cerebral/tags' import computedIsAllChecked from '../../computed/isAllChecked' import computedTodosUid from '../../computed/visibleTodosUids' export default connect( { editingUid: state`ed...
src/containers/HomePage/index.js
BeAce/expressjs-react-blog
/* eslint-disable */ import React from 'react'; import { Link, browserHistory } from 'react-router'; import Header from 'components/Header'; import Loading from 'components/Loading'; import Fetch from 'fetch'; import './index.css'; class HomePage extends React.Component { constructor(props) { super(props); th...
app/react-icons/fa/sort.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaSort extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m31.4 24.3q0 0.6-0.5 1l-10 10q-0.4 0.4-1 0.4t-1-0.4l-10-10q-0.4-0.4-0.4-1t0.4-1...
src/components/Radial.react.js
virajkanwade/kitematic
import React from 'react'; import classNames from 'classnames'; var Radial = React.createClass({ render: function () { var percentage; if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) { percentage = ( <div className="percentage"><...
entry_types/scrolled/package/src/contentElements/textBlock/TextBlock.js
tf/pageflow
import React from 'react'; import { EditableText, useContentElementConfigurationUpdate, useI18n } from 'pageflow-scrolled/frontend'; import styles from './TextBlock.module.css'; export function TextBlock(props) { const updateConfiguration = useContentElementConfigurationUpdate(); const {t} = useI18n({locale...
src/line-chart/index.js
JesperLekland/react-native-svg-charts
import React from 'react' import LineChart from './line-chart' import LineChartGrouped from './line-chart-grouped' const LineChartGate = (props) => { const { data } = props if (data[0] && data[0].hasOwnProperty('data')) { return <LineChartGrouped {...props} /> } return <LineChart {...props} /...
src/components/Nav.js
roycejewell/flux-ui-example
import React, { Component } from 'react'; import { Link } from 'react-router'; import Title from 'components/Title'; class Nav extends Component { render() { return ( <nav className='nav'> <Link to={'/'}> <Title type='nav'>Users</Title> </Link> </nav> ); } } export de...
server/sonar-web/src/main/js/components/ui/Level.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...
aside/StepEditor.js
bibleexchange/be-front-new
/* eslint-disable global-require */ import React from 'react'; import { Link } from 'react-router'; import Relay from 'react-relay'; import StepUpdateMutation from './StepUpdateMutation'; import StepDestroyMutation from './StepDestroyMutation'; import Status from './StatusComponent'; import NotePreview from '../Note/No...
src/modules/widget/Tree.js
lenxeon/react
"use strict" // 为了提高效率,直接操作了tree.state.data, // 由于tree.state.data是一个array,当data值改变时,不经过setState, // 所有的Item的data也因此改变,可能破坏了react的一个原则 import React from 'react' import classnames from 'classnames' import { toArray, substitute } from './utils/strings' import { forEach, isEmpty } from './utils/objects' import { require...
packages/ringcentral-widgets-docs/src/app/pages/Components/RecentActivityView/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
src/components/Autocomplete.js
NuCivic/react-dashboard
import React, { Component } from 'react'; import Registry from '../utils/Registry'; import BaseFilter from './BaseFilter'; import ReactSelect from './ReactSelect'; import { makeKey } from '../utils/utils'; import { omit } from 'lodash'; import cx from 'classnames/bind'; export default class Autocomplete extends BaseFi...
src/js/components/nodes/NodeDrives/NodeDrive.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...
src/svg-icons/notification/phone-bluetooth-speaker.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneBluetoothSpeaker = (props) => ( <SvgIcon {...props}> <path d="M14.71 9.5L17 7.21V11h.5l2.85-2.85L18.21 6l2.15-2.15L17.5 1H17v3.79L14.71 2.5l-.71.71L16.79 6 14 8.79l.71.71zM18 2.91l.94.94-.94.94...
src/components/general/StateSelector.js
katima-g33k/blu-react-desktop
/* eslint react/no-did-mount-set-state: 0 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { DEFAULT_STATE_VALUE } from '../../lib/constants'; import I18n from '../../lib/i18n'; import { Select } from './formInputs'; import { State } from '../../lib/models'; export default clas...
src/app/components/LayoutOne/LayoutOne.js
harsh376/Hector
import React from 'react'; import Sidebar from '../Sidebar/Sidebar'; function LayoutOne({ user, content }) { return ( <div> <div className="header"> <div className="profile"> <span>{user.first_name}</span> <a href="/logout"><button>Log out</button></a> </div> </di...
docs/src/modules/components/Carbon.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; const styles = theme => ({ '@global': { '#carbonads': { padding: theme.spacing.unit, zIndex: 1, boxSizing: 'content-box', backgroundColor: theme.palette.backgroun...
Step4/app/screens/CounterScreen.js
soulmachine/react-native-starter-kit
// @flow import React, { Component } from 'react'; import Counter from '../components/Counter'; import rootStore from '../store/index'; import { Provider } from 'mobx-react/native'; // provider should receive a single child // <Provider {...stores}> === <Provider store1={stores.store1} store2={stores.store2}> export d...
generators/app/templates/src/js/components/hello/hello.component.js
Divilon/generator-react-divilon
import React from 'react'; import { connect } from 'react-redux'; const Hello = React.createClass({ propTypes: { message: React.PropTypes.string }, render() { return ( <div className="hello">{this.props.message}</div> ); } }); export { Hello }; function mapStoreToProps(store, ownProps) { ...
src/src/Components/CustomInput.js
ioBroker/ioBroker.web
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { FormControl, FormHelperText, TextField, withStyles } from '@material-ui/core'; import I18n from '@iobroker/adapter-react/i18n'; const styles = theme => ({ input: { minWidth: 300 }, inputNumber: { ...
lens-ui/app/components/CubeTreeComponent.js
sriksun/incubator-lens
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
react-dev/router.js
DeryLiu/DeryLiu.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import promise from 'redux-simple-promise'; import reducers from './reducers'; import routes from './routes'...
app/javascript/mastodon/features/compose/components/announcements.js
mimumemo/mastodon
import React from 'react'; import Immutable from 'immutable'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from '../../../components/icon_button'; const storageKey = 'announcements_dismissed'; class Announcements extends React.PureComponent { static propTypes = { account: Immut...
fields/types/select/SelectField.js
asifiqbal84/keystone
import _ from 'underscore'; import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', valueChanged (ne...
src/components/navigation/messages-dropdown.js
cosminseceleanu/react-sb-admin-bootstrap4
import React from 'react'; import { NavDropdown, DropdownMenu, DropdownToggle, DropdownItem, Badge } from 'reactstrap'; const MessagesDropdown = ({isDropdownOpen, toogleDropdown, messages}) => { return ( <NavDropdown isOpen={isDropdownOpen} toggle={toogleDropdown}> <Dropdo...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
vasekric/regrinder
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 = ...
resources/assets/js/common/components/Alert.js
vestd/ProcessMonitor
import React from 'react'; import {FormattedDate, injectIntl} from 'react-intl'; const Alert = ({message, type}) => { if (!message) { return (<span />) } return ( <div className={ 'alert alert-' + type }>{ message }</div> ) } //Inject the internationalisation data into the componen...
components/app_bar/AppBar.js
KerenChandran/react-toolbox
import React from 'react'; import ClassNames from 'classnames'; import style from './style'; const AppBar = (props) => { const className = ClassNames(style.root, { [style.fixed]: props.fixed, [style.flat]: props.flat }, props.className); return ( <header className={className} data-react-toolbox='app...
Web/Reacting/test-react/src/index.js
Bigsby/PoC
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();
voting_app/frontend/src/components/Authenticated.js
azaleas/sentio
import React from 'react'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; import {api} from './../utils/Api'; const Authenticated = ({ component, ...rest }) => { return ( <Route {...rest} render={(props) =>{ if(api.isLoggedIn()){ return...
lib/components/Spinner/Spinner.js
globalmouth/glomo-boxes
import React from 'react' import PropTypes from 'prop-types' import styles from './Spinner.css' const injectKeyframes = (thickness, PI = Math.PI) => { const animationStyle = `@-webkit-keyframes progressCircle { 8% { stroke-dasharray: 1, calc((100% - ${thickness}px) * ${PI}); stroke-...
src/client/menu.js
yelken/hacker-menu
import React from 'react' export default class Menu extends React.Component { handleOnClick (e) { e.preventDefault() this.props.onQuitClick() } render () { var statusText = 'v' + this.props.version var buttonText = 'Quit' if (this.props.status === 'update-available') { statusText += ' ...
frontend/src/Components/Table/TableHeader.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; class TableHeader extends Component { // // Render render() { const { children } = this.props; return ( <thead> <tr> {children} </tr> </thead> ); } } TableHeader.propTyp...
webpack/components/MultiSelect/index.js
adamruzicka/katello
import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { FormGroup, ControlLabel } from 'react-bootstrap'; import BootstrapSelect from '../../move_to_pf/react-bootstrap-select'; function MultiSelect(props) { const { options, onChange,...
src/svg-icons/image/crop-original.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropOriginal = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"...
src/web/forms/fields/TextInput/index.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
src/SearchBox.js
xando/commitcoffee
import React from 'react'; import { TextInput } from 'grommet'; export default class SearchBox extends React.Component { state = { value: "" } onChange = e => this.setState({ value: e.target.value }); onSubmit = (e) => { e.stopPropagation(); e.preventDefault(); if (!this.state...
src/components/type/Paragraph.js
ProAI/react-essentials
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import BaseText from '../../utils/rnw-compat/BaseText'; const propTypes = { children: PropTypes.node.isRequired, lead: PropTypes.bool, last: PropTypes.bool, }; const Paragraph = React.forwardRef((props, ref) => { const...
src/js/components/icons/base/InProgress.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/app/app.js
rsamec/react-publisher
import React from 'react'; import Router from 'react-router'; import { DefaultRoute, Link, Route, RouteHandler } from 'react-router'; import {Navbar, Nav, NavItem} from 'react-bootstrap'; import FilterableFormList from './views/FilterableFormList.js'; import PrintView from './views/PrintView.js'; import SearchBar from...
src/views/target/Timeline.js
anysome/objective
/** * Created by Layman(http://github.com/anysome) on 16/3/16. */ import React from 'react'; import {StyleSheet, ScrollView, View, Text, ListView} from 'react-native'; import moment from 'moment'; import {analytics, styles, colors, px1, airloy, api, toast, L} from '../../app'; export default class Timeline extends ...
src/js/components/Military/CurrentMilitaryTab.js
alexbance/rp-centre
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Grid, Row, Col } from 'react-flexbox-grid'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'; class CurrentMilitaryTab extends Component { constructor(props...
src/components/gameTableComponent/gameTableComponent.js
craigbilner/quizapp
'use strict'; import React from 'react'; import radium from 'radium'; import style from '../gameTableComponent/gameTableStyle'; import TableTeamComponent from '../tableTeamComponent/tableTeamComponent'; import QMComponent from '../qmComponent/qmComponent'; class GameTableComponent extends React.Component { construc...
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spr...
react/features/prejoin/components/preview/Preview.js
bgrozev/jitsi-meet
// @flow import React from 'react'; import { Avatar } from '../../../base/avatar'; import { Video } from '../../../base/media'; import { connect } from '../../../base/redux'; import { getActiveVideoTrack, isPrejoinVideoMuted } from '../../functions'; export type Props = { /** * The name of the user that is ...
actor-apps/app-web/src/app/components/Install.react.js
zillachan/actor-platform
import React from 'react'; export default class Install extends React.Component { render() { return ( <section className="mobile-placeholder col-xs row center-xs middle-xs"> <div> <img alt="Actor messenger" className="logo" src="assets/img/logo.png" ...
src/routes/dashboard/components/weather.js
mapengze/Antd-Backstage
import React from 'react' import PropTypes from 'prop-types' import styles from './weather.less' function Weather ({ city, icon, dateTime, temperature, name }) { return (<div className={styles.weather}> <div className={styles.left}> <div className={styles.icon} style={{ backgroundImage: `url(${icon...
lib/js/apps/genetic-algorithms/KnightCovering/Metrics.js
jneander/learning
import React from 'react'; import ScreenReaderContent from 'instructure-ui/lib/components/ScreenReaderContent'; import Table from 'instructure-ui/lib/components/Table'; export default class Metrics extends React.PureComponent { render () { return ( <Table caption={<ScreenReaderContent>Metrics</ScreenReader...
docs/app/Examples/collections/Table/Types/TableExampleStructured.js
clemensw/stardust
import React from 'react' import { Icon, Table } from 'semantic-ui-react' const TableExampleStructured = () => { return ( <Table celled structured> <Table.Header> <Table.Row> <Table.HeaderCell rowSpan='2'>Name</Table.HeaderCell> <Table.HeaderCell rowSpan='2'>Type</Table.HeaderCe...
demos/badges/demos/number.js
isogon/styled-mdl-website
import React from 'react' import { Badge } from 'styled-mdl' const demo = () => <Badge text="7">Inbox</Badge> const caption = 'Number over text' const code = '<Badge text="7">Inbox</Badge>' export default { demo, caption, code }
components/Calendar/DayPicker/DayPickerItem.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import momentPropTypes from 'react-moment-proptypes'; import css from './DayPickerItem.css'; import noop from '../../../utils/noop'; import { ENTER } from '../../../constants/keycodes'; import CalendarItem from '...
src/scripts/Top_Bar/Top_Bar.js
mikah1337/null-terminator
import React from 'react'; import Icon_logout from '../../img/icon_logout'; import Logo from '../../img/logo'; import Icon_Instructor from '../../img/icon_instructor'; import theme_colors, {theme_color_hovers, changeBrightness} from '../../scripts/globals'; class Site_Box extends React.Component { constructor(prop...
shelterhub/src/components/ProviderDashboard.js
mim-Armand/GlobalHack6
import React from 'react'; const ProviderDashboard = () => ( <div> <h1>Provider dashboard .. </h1> </div> ) export default ProviderDashboard;
src/buttons/button-label.js
joxoo/react-material
import React from 'react'; import PropTypes from 'prop-types'; import {getClassesStatic} from '../addons/get-classes'; const FlatButtonLabel = (props) => ( <span className={ getClassesStatic('flat-button-label', props) }>{ props.label }</span> ); FlatButtonLabel.propTypes = { label: PropTypes.string }; expor...
docs/src/app/components/pages/components/List/ExampleFolders.js
igorbt/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionInfo from 'material-ui/svg-icons/action/info'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar...
web/index.js
agrcrobles/react-native-web-workspace
// @flow import 'regenerator-runtime/runtime'; import React from 'react'; import { AppRegistry } from 'react-native'; import MyApp from 'react-navigation-playground'; const renderApp = () => <MyApp /> AppRegistry.registerComponent('Linking', () => renderApp); AppRegistry.runApplication('Linking', { rootTag: doc...
src/index.js
themitvp/ReactCMS
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; ReactDOM.render( <App />, document.getElementById('root') );
actor-apps/app-web/src/app/components/Deactivated.react.js
JeeLiu/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
packages/material/src/components/DeleteForm.js
wq/wq.app
import React from 'react'; import { useComponents, useMessages } from '@wq/react'; import PropTypes from 'prop-types'; export default function DeleteForm({ action }) { const { Form, SubmitButton, View, HorizontalView } = useComponents(), { CONFIRM_DELETE } = useMessages(); function confirmSubmit() { ...
src/pages/episode.js
yamalight/bpjs-electron
// npm packages import React from 'react'; // our packages import Chat from '../components/chat/index'; import PluginManager from '../api/index'; export default class Series extends React.Component { constructor(props) { super(props); this.state = { episode: null, file: null, }; // trig...
stories/tooltips.stories.js
isogon/material-components
import React from 'react' import { storiesOf } from '@storybook/react' import wrapStory from './decorators/wrapStory' import Above from '../src/components/tooltips/demos/Above.js' import Below from '../src/components/tooltips/demos/Below.js' import Large from '../src/components/tooltips/demos/Large.js' import Left fro...
assets/jqwidgets/demos/react/app/treegrid/virtualmode/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { render () { let generateTasks = (rowsCounts) => { let rowsCount = !rowsCounts ? 1 + Math.floor(Math.random() * 5) : rowsCou...
src/components/Dashboard.js
brianyamasaki/rideshare
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Drawer from 'react-native-drawer'; import { Actions } from 'react-native-router-flux'; import LeftMenu from './LeftMenu'; import EventList from './EventList'; import { participantList, eventList, carList } from '../actions'; class ...
app/javascript/mastodon/features/compose/components/reply_indicator.js
WitchesTown/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import { defineMessages, injec...
src/modules/Components/Misc/TabsBox.js
rtellez700/MESA_Connect_2.0
import React, { Component } from 'react'; import { Link } from 'react-router'; import TabList from './TabList'; import TabPanelList from './TabPanelList'; class TabsBox extends Component { constructor(props){ super(props); } render() { return ( <div> <TabList tabs={ this.props.data ...
websites/skraning.vefverdlaun.is/src/app/components/Loader/Loader.js
svef/www
import React from 'react' import './Loader.scss' export default () => <div className="Loader">Loading…</div>
demo/Examples.js
JulienPradet/react-flip
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import Basic from './examples/basic/index.js'; import Dropdown from './examples/dropdown/index.js'; import List from './examples/list/index.js'; import PageTransition from './examples/page-transition/index.js'; import ComplexTransition from '....
public/js/components/admin/users/friends/friend.react.js
MadushikaPerera/Coupley
import React from 'react'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; import Colors from 'material-ui/lib/styles/colors'; import IconButton from 'material-ui/lib/icon-button'; import MoreVertIcon from 'material-ui/l...
app/src/App.js
blckt/electron
import React, { Component } from 'react'; import Provider from 'react-redux/lib/components/provider'; import Router from 'react-router/lib/Router'; const store = require('./utils/store'); const routes = require('./routes') const history = require('./utils/history'); export default class App extends React.Component ...
ui/src/components/quotations/pages.js
jollopre/mps
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import queryString from 'query-string'; import { getQuotations, searchQuotations } from '../../actions/quotations'; import { setPage, QUOTATIONS } from '../../actions/pagination'; import Paginatio...
src/index.js
gregchamberlain/react-component-boilerplate
// @flow import React from 'react'; import PropTypes from 'prop-types'; type Props = { title: string }; const MyComponent = ({ title }: Props): React$Element<'h2'> => ( <h2>{title}</h2> ); MyComponent.propTypes = { title: PropTypes.string.isRequired }; export default MyComponent;
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
brandonlilly/react-router
import React from 'react'; class Grades extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments; return ( <div> <h3>Grades</h3> <ul> {assignments.map(assignment => ( <li key={assignment.id}>{assignment.grade} - {assi...
app/containers/AdminFournisseur/components/Offre.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import IconButton from 'material-ui/IconButton'; import EditIcon from 'material-ui/svg-icons/editor/mode-edit'; import TrashIcon from 'material-ui/svg-icons/ac...
src/pages/blog.js
thevangelist/esajuhana-2018
import React from 'react' import Helmet from 'react-helmet' import Link from 'gatsby-link' export default ({data}) => <div> <Helmet title={`Esa Juhana | Blog`} /> <h1>Blog of Esa Juhana</h1> {data.allMarkdownRemark.edges.map(({ node }) => <div key={node.id}> <Link to={node.fields.slug} > ...
src/components/Interactive/RadioList/RadioColumn/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' const RadioColumn = (props) => { return ( <div key={'column_' + props.index} className={'column col-xs-12 col-sm-' + Math.floor(12 / props.columnCount)}> { props.entries.slice(props.maxPerColumn * props.index, props.maxPerColumn * (props....
src/interface/Hotkeys.js
sMteX/WoWAnalyzer
import React from 'react'; class Hotkeys extends React.PureComponent { constructor() { super(); this.handleKeyDown = this.handleKeyDown.bind(this); } componentDidMount() { document.addEventListener('keydown', this.handleKeyDown); } componentWillUnmount() { document.removeEventListener('keydo...
src/Toolbar/Toolbar.js
skarnecki/material-ui
import React from 'react'; function getStyles(props, context) { const {noGutter} = props; const { baseTheme, toolbar, } = context.muiTheme; return { root: { boxSizing: 'border-box', WebkitTapHighlightColor: 'rgba(0,0,0,0)', // Remove mobile color flashing (deprecated) background...
src/controls.js
hzdg/react-controlfacades
import React from 'react'; const {PropTypes} = React; const controlStyles = { display: 'block', position: 'absolute', opacity: 0, top: 0, left: 0, width: '100%', height: '100%', border: '1px solid #000', // Needed to make sure some browsers actually make the element 100% x 100% }; /** * A wrapper f...
src/app/components/home/home.js
feedm3/unhypem-frontend
/** * @author Fabian Dietenberger */ 'use strict'; import React from 'react'; import SongTable from './song-table'; import WelcomeInfoEntry from './welcome-info-entry'; import ShortcutsInfoEntry from './shortcuts-info-entry'; import songDispatcher from '../../dispatcher/song-dispatcher'; import ACTION from '../../co...
src/components/no_match.js
samiluukkonen/grouptube
import React from 'react' import PropTypes from 'prop-types' const NoMatch = ({ location }) => { return ( <div> <h3>No match for <code>{location.pathname}</code></h3> </div> ) } NoMatch.defaultProps = { location: null } NoMatch.propTypes = { location: PropTypes.shape({ pathname: PropTypes.s...
src/shared/views/plans/plan/PlanTime/PlanTime.js
in-depth/indepth-demo
import React from 'react' import { SliderSnaps } from '../../../../components' import styles from './PlanTime.css' const PlanTime = ({ min, max, step, value, action }) => { return ( <div> <h3>We have (hours):</h3> <div className={styles.slider}> <SliderSnaps min={min} ma...
client/src/components/DatetimeField/tests/DatetimeField-story.js
silverstripe/silverstripe-admin
import React from 'react'; // eslint-disable-next-line import/no-extraneous-dependencies import { storiesOf } from '@storybook/react'; import DatetimeField from 'components/DatetimeField/DatetimeField'; import ValueTracker from 'stories/ValueTracker'; const props = { name: 'MyField', title: 'Field title', lang: ...
src/timer/Timer.js
crisu83/timebox
import React from 'react'; import TimerConstants from './constants'; import AppConstants from '../app/constants'; import store from '../app/store'; class Timer extends React.Component { componentDidMount() { this.unsubscribe = store.subscribe(() => { this.forceUpdate(); }); } componentWillUnmount(...
node_modules/react-router/es/Redirect.js
morselapp/shop_directory
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/SplitButton.js
Cellule/react-bootstrap
/* eslint react/prop-types: [1, {ignore: ["children", "className", "bsSize"]}]*/ /* BootstrapMixin contains `bsSize` type validation */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import DropdownStateMixin from './DropdownStateMixin'; import Button from...