path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
webpack/withProtectedView.js
theforeman/foreman_templates
import React from 'react'; // TODO: extract to core const withProtectedView = ( ProtectedComponent, ProtectionComponent, protectionFn, extraProtectionProps = {} ) => props => protectionFn(props) ? ( <ProtectedComponent {...props} /> ) : ( <ProtectionComponent {...props} {...extraProtectionProps} />...
app/jsx/assignments_2/student/components/Context.js
djbender/canvas-lms
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js
liamhu/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class extends Component { static propTyp...
front/components/navbar/navbar.js
bigkangtheory/wanderly
import React, { Component } from 'react'; import { Link } from 'react-router'; import '../../styles/navbar.css'; class Navbar extends Component { constructor(props) { super(props); } handleClick = () => { this.props.action() } render() { const { pathname } = this.props.routing if(pathname === '...
src/components/artboard/ArtBoardTabs.js
justinyueh/express-react
import { Router, Route, IndexRoute, Redirect, Link, browserHistory } from 'react-router' import React from 'react' import SysTpl from './artboardtabs/SysTpl' export default class ArtBoardTabs extends React.Component { constructor() { super(); this.addTpl = this.addTpl.bind(this); this.state = { a...
frontend/src/Components/Table/VirtualTableHeader.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import styles from './VirtualTableHeader.css'; function VirtualTableHeader({ children }) { return ( <div className={styles.header}> {children} </div> ); } VirtualTableHeader.propTypes = { children: PropTypes.node }; export default Vir...
src/app/tabela.js
hugotacito/tabelaebtt
import React from 'react'; import {Navbar, Grid, Row, Col} from 'react-bootstrap'; import {Formulario} from './form'; import {Resultado} from './resultado'; export class Tabela extends React.Component { constructor(props) { super(props); this.state = { formData: {} }; this.handleUserInput = this...
src/App.js
drothschild/react-led-board
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Flag from './Flag' import ColorPicker from './ColorPicker' class App extends Component { constructor(props) { super(props); const defaultColor= "blue" this.state = { color: defaultColor } ...
code/workspaces/web-app/src/containers/modal/ModalRoot.js
NERC-CEH/datalab
import React from 'react'; import { connect } from 'react-redux'; import CreateNotebookDialog from '../notebooks/CreateNotebookDialogContainer'; import CreateSiteDialog from '../sites/CreateSiteDialogContainer'; import CreateDataStoreDialog from '../../components/modal/CreateDataStoreDialog'; import Confirmation from ...
src/components/GameCell.js
Airse/react-minesweeper
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FaFlag, FaBomb } from 'react-icons/lib/fa'; class GameCell extends Component { constructor(props) { super(props); this.onCellClick = this.onCellClick.bind(this); this.onCellFlag = this.onCellFlag.bind(this); } o...
src/Tooltip.js
albertojacini/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import CustomPropTypes from './utils/CustomPropTypes'; export default class Tooltip extends React.Component { render() { const { placement, positionLeft, positionTop, arrowOffsetLeft, arrowOffsetTop, className, ...
actor-apps/app-web/src/app/components/DialogSection.react.js
ruikong/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/components/Github/TabsScreen.js
jseminck/react-native-github-feed
import React from 'react'; import { View, TabBarIOS } from 'react-native'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as githubActions from './githubActions'; import {onLogout} from './../Login/loginActions'; import routes from './../../scripts/routes'; import Loading f...
src/components/MainHeader/ControlSidebarToggle.js
falmar/react-adm-lte
import React from 'react' import PropTypes from 'prop-types' import Link from './../../utils/Link' const ControlSidebarToggle = ({href, onToggle}) => { return ( <li> <Link href={href} onClick={onToggle}> <i className='fa fa-gears' /> </Link> </li> ) } ControlSidebarToggle.propTypes = ...
src/Dropdown/Dropdown.js
yurizhang/ishow
import React from 'react'; import ReactDOM from 'react-dom'; import ClickOutside from 'react-click-outside'; import PropTypes from 'prop-types'; import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法 import Button from '../Button/Button'; import ButtonGroup from '../Button/ButtonGroup'; ...
setup/src/universal/features/user/auth/components/ProfileCompleted/index.js
ch-apptitude/goomi
/** * * ProfileCompleted * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import { Row, Col } from 'react-flexbox-grid'; import moment from 'moment'; import styled from 'styled-components'; import HOCAuth from 'features/user/hoc/HOCAuth'; import { UserPropTypes } from 'features/user/con...
src/widgets/modals/QrScannerModal.js
sussol/mobile
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2021 */ import React from 'react'; import { StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import { RNCamera } from 'react-native-camera'; import BarcodeMask from 'react-native-barcode-mask'; import { ModalContainer } from './ModalContain...
examples/code-highlighting/index.js
ashutoshrishi/slate
import { Editor } from 'slate-react' import { Value } from 'slate' import Prism from 'prismjs' import React from 'react' import initialValue from './value.json' /** * Define our code components. * * @param {Object} props * @return {Element} */ function CodeBlock(props) { const { editor, node } = props const...
fluent-react/examples/redux-async/src/index.js
zbraniecki/fluent.js
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store'; import AppLocalizationProvider from './l10n'; import App from './App'; ReactDOM.render( <Provider store={store}> <AppLocalizationProvider> <App /> </AppLocalizationProvider...
examples/src/main.js
mohebifar/react-persian-datepicker
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render(<App />, document.getElementById('content'));
src/containers/RemoteTodo/RemoteTodoApp.js
yatsu/react-apollo-koa-example
// @flow import React from 'react' import { Container, Divider } from 'semantic-ui-react' import AddTodo from './AddTodo' import TodoList from './TodoList' const RemoteTodoApp = () => ( <Container text className="main main-content"> <h1>Todo Example (GraphQL)</h1> <AddTodo /> <Divider /> <TodoList />...
app/components/add_button.js
therealaldo/MacroManagement
'use strict'; import React from 'react'; import { View, StyleSheet, Alert } from 'react-native'; import { Actions } from 'react-native-router-flux'; import Button from 'react-native-button'; import Icon from 'react-native-vector-icons/Ionicons'; export default class AddButton extends React.Component { render() { ...
client/react/frontpage/components/PrivacyPolicyPage.js
uclaradio/uclaradio
// PrivacyPolicyPage.js import React from 'react'; import './PrivacyPolicyPage.scss'; /** Privacy Policy Page * */ const PrivacyPolicyPage = () => ( <div className="policyPage"> <h1>Welcome to our Privacy Policy</h1> <h3>Your privacy is critically important to us.</h3> UCLA Radio is located at: <br ...
docs/src/Anchor.js
bvasko/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className="anchor"> <span className="anchor-ic...
app/imports/ui/client/components/ScrumBoard/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; import { Session } from 'meteor/session'; import { createContainer } from 'meteor/react-meteor-data'; import { Collections } from '../../../../api/common/collections.js'; import {Meteor} from 'meteor/meteor'; import moment from 'moment'; import Board from './Board.js'; import...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
ejc233/tour-of-heroes
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/widgets/controls/skew.js
abbr/ShowPreper
import React from 'react' import EditableHtmlElement from './editableHtmlElement' import {langs} from 'i18n/lang' import _ from 'lodash' let SkewControl = class extends React.Component { onBlur = (p, v) => { if (isNaN(v)) { return } let newPropObj = _.cloneDeep(this.props.component.skew || {}) ...
packages/material-ui-icons/src/Textsms.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Textsms = props => <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z" /> </SvgIcon>; Textsms = pure(Texts...
packages/mineral-ui-icons/src/IconTabletMac.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconTabletMac(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
src/components/App.react.js
mizki9577/arevelk
import React from 'react' import { Grid, Row, Navbar, Panel, Button } from 'react-bootstrap' import Drawer from './Drawer.react' import ControlPanel from './ControlPanel.react' const App = () => ( <div> <Navbar> <Navbar.Header> <Navbar.Brand>Arevelk</Navbar.Brand> </Navbar.Header> </Navb...
src/components/Footer.js
GrooshBene/shellscripts
import './style/Footer.scss'; import React, { Component } from 'react'; export default class Footer extends Component { render() { return ( <footer> <div className='container'> This is a footer.<br /> A test footer. :P </div> </footer> ); } }
src/routes/Home/components/HomeView.js
BigBlueDot/SMT4AEncyclopedia
import React from 'react'; import DuckImage from '../assets/Duck.jpg'; import './HomeView.scss'; export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ); export default HomeView;
src/svg-icons/action/view-array.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewArray = (props) => ( <SvgIcon {...props}> <path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/> </SvgIcon> ); ActionViewArray = pure(ActionViewArray); ActionViewArray.displayName = 'ActionViewA...
www/spa/src/Survey/components/Complete/Survey.js
gram7gram/Survey
"use strict"; import '../../../../node_modules/react-intl-tel-input/dist/main.css'; import '../../../../node_modules/react-intl-tel-input/dist/libphonenumber.js'; import React from 'react'; import {Row,Col,FormGroup,FormControl,Button,ButtonGroup,Portlet,HelpBlock,Alert} from 'react-bootstrap'; import Spinner from 're...
examples/ExampleDnD.js
t-hiroyoshi/react-dnd-item
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { DragDropContext }from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { DnDItem, DropPositions } from '../src/index'; @DragDropContext(HTML5Backend) class ExampleDnD extends Component { constructor(props) { ...
ui/src/main/js/components/UpdateStateMachine.js
thinker0/aurora
import React from 'react'; import StateMachine from 'components/StateMachine'; import { addClass } from 'utils/Common'; import { UPDATE_STATUS } from 'utils/Thrift'; import { getClassForUpdateStatus } from 'utils/Update'; export default function UpdateStateMachine({ update }) { const events = update.updateEvents; ...
src/ui/components/Settings/Settings.react.js
Eeltech/SpaceMusik
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Nav, NavItem } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; /* |-------------------------------------------------------------------------- | Global View |------------------------------------------...
src/svg-icons/notification/do-not-disturb-off.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbOff = (props) => ( <SvgIcon {...props}> <path d="M17 11v2h-1.46l4.68 4.68C21.34 16.07 22 14.11 22 12c0-5.52-4.48-10-10-10-2.11 0-4.07.66-5.68 1.78L13.54 11H17zM2.27 2.27L1 3.54l2.78 2.78...
app/components/ToggleOption/index.js
kdprojects/nichesportapp
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequir...
packages/react/src/components/organisms/EmergencyAlerts/index.js
massgov/mayflower
/** * EmergencyAlerts module. * @module @massds/mayflower-react/EmergencyAlerts * @requires module:@massds/mayflower-assets/scss/03-organisms/emergency-alerts * @requires module:@massds/mayflower-assets/scss/02-molecules/emergency-alert * @requires module:@massds/mayflower-assets/scss/02-molecules/emergency-header...
app/jsx/external_apps/components/ExternalToolPlacementButton.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/WindowControls.js
manojsinghnegiwd/react-window-titlebar
import React from 'react'; class WindowControls extends React.Component { constructor(props){ super(props); } closeWindow = (remote) => { remote.getCurrentWindow().close(); } minimize = (remote) => { remote.getCurrentWindow().minimize(); } maximize = (remote) => { let window = remote.getCurrentWindo...
vgdb-frontend/src/components/nav/Nav.js
mattruston/idb
import React, { Component } from 'react'; import './Nav.css'; import NavItem from './NavItem'; import SearchBar from './SearchBar'; /* Nav component for a standard style navbar */ class Nav extends Component { render() { return ( <nav className="nav"> <div className="container n...
src/Components/App/Greetings.js
sailingmontezuma/strategiesandtrades
import React from 'react'; class Greetings extends React.Component { render() { return ( <div className="jumbotron"> <h1>Hi!</h1> </div> ); } } export default Greetings;
src/components/MessageForm/component.js
Hylozoic/hylo-redux
import React from 'react' import { throttle, isEmpty } from 'lodash' import CommentImageButton from '../CommentImageButton' import { SENT_MESSAGE, trackEvent } from '../../util/analytics' import { onEnterNoShift } from '../../util/textInput' import { getSocket, socketUrl } from '../../client/websockets' import { STARTE...
react/CloseIcon/CloseIcon.iconSketch.js
seekinternational/seek-asia-style-guide
import React from 'react'; import CloseIcon from './CloseIcon'; export const symbols = { 'CloseIcon': <CloseIcon /> };
votrfront/js/LoginPage.js
fmfi-svt/votr
import React from 'react'; import _ from 'lodash'; import { AboutModal } from './About'; import { Modal, ModalBase } from './layout'; import { AnalyticsMixin, FakeLink } from './router'; var TYPE_NAMES = { 'cosignproxy': 'Cosign (automatické)', 'cosignpassword': 'Cosign (meno a heslo)', 'cosigncookie': 'Cosign...
src/components/content.js
RaulEscobarRivas/React-Redux-High-Order-Components
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getPositionSelected } from '../reducers'; import PlayerSelection from './player-selection'; import Share from './share'; class Content extends Component { renderTitle() { return ( <div className="title"> ...
src/svg-icons/content/flag.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFlag = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ContentFlag = pure(ContentFlag); ContentFlag.displayName = 'ContentFlag'; ContentFlag.muiName = '...
packages/wix-style-react/src/Pagination/Pagination.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { Pagination as CorePagination } from 'wix-ui-core/dist/src/components/pagination'; import { withFocusable } from 'wix-ui-core/dist/src/hocs/Focusable/FocusableHOC'; import ChevronLeft from 'wix-ui-icons-common/ChevronLeft'; import ChevronRight from ...
src/app/domains/NotFound/NotFound.js
blueshift-cc/snooker-scoreboard
import React from 'react'; const NotFound = () => ( <div> <h3>404 page not found</h3> <p>We are sorry but the page you are looking for does not exist.</p> </div> ); export default NotFound;
Realization/frontend/czechidm-core/src/content/role/RoleCompositionTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from '../../utils'; import { RoleCompositionManager, RoleManager, DataManager } from '../../r...
spec/components/tabs.js
soyjavi/react-toolbox
import React from 'react'; import { Tabs, Tab } from '../../components/tabs'; class TabsTest extends React.Component { state = { index: 1, fixedIndex: 1, inverseIndex: 1 }; handleTabChange = (index) => { this.setState({index}); }; handleFixedTabChange = (index) => { this.setState({fixed...
src/index.js
ansonpellissier/gordon-shuffle-react
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import promise from 'redux-promise'; import createSagaMiddleware from 'redux-saga'; import { Router, hashHistory } from 'react-router'; ...
src/svg-icons/action/remove-shopping-cart.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRemoveShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.8...
src/component/InputPhone.js
chengfh11/react
import React, { Component } from 'react'; export default class InputPhone extends React.Component { constructor() { super(); this.state = { phone: '' } } handleChange = (e) => { const formValue = parseInt(e.target.value); if(!Number.isNaN(formValue) && formValue.toString().length <= 10) { this.set...
packages/reactor-kitchensink/src/examples/D3/HeatMap/ConfigurablePivotHeatmap/ConfigurablePivotHeatmap.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Button, Toolbar, Spacer } from '@extjs/ext-react'; import { PivotD3Container } from '@extjs/ext-react-pivot-d3'; import salesData from './salesData'; Ext.require('Ext.pivot.d3.HeatMap'); const regions = { "Belgium": 'Europe', "Netherlands": 'Europe', "Uni...
src/client/admin/tags/tagForm.js
r3dDoX/geekplanet
import Button from '@material-ui/core/Button'; import MenuItem from '@material-ui/core/MenuItem/index'; import Paper from '@material-ui/core/Paper/index'; import MaterialTextField from '@material-ui/core/TextField'; import Downshift from 'downshift'; import PropTypes from 'prop-types'; import React from 'react'; import...
packages/component/src/Middleware/ActivityStatus/RelativeTime.js
billba/botchat
import { hooks } from 'botframework-webchat-api'; import PropTypes from 'prop-types'; import React from 'react'; import ScreenReaderText from '../../ScreenReaderText'; import useForceRenderAtInterval from '../../hooks/internal/useForceRenderAtInterval'; const { useDateFormatter, useLocalizer, useRelativeTimeFormatter...
client/routes.js
msucorey/street-canvas
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute } from 'react-router'; import cookie from 'react-cookie'; import App from './modules/App/App'; import PhotoDetailPageContainer from './modules/Photo/pages/PhotoDetailPage/PhotoDetailPageContainer'; import PhotoAddPageContainer fro...
js/webui/src/position_control.js
hyperblast/beefweb
import React from 'react' import PropTypes from 'prop-types' import clamp from 'lodash/clamp' import PlayerModel from './player_model' import { formatTime } from './utils' import ModelBinding from './model_binding'; class PositionControl extends React.PureComponent { constructor(props) { super(props); ...
fields/types/numberarray/NumberArrayFilter.js
suryagh/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label: 'Between', value: 'between' }, ]; ...
modules/IndexLink.js
pheadra/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
src/lib/plot/axis/y-axis.js
jameskraus/react-vis
// Copyright (c) 2016 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, merge...
src/admin/client/routes/products/categories/index.js
cezerin/cezerin
import React from 'react'; import CategoryEdit from 'modules/productCategories/edit'; import Categories from 'modules/productCategories/list'; export default () => ( <div className="row row--no-gutter col-full-height"> <div className="col-xs-12 col-sm-4 col-md-3 col--no-gutter scroll col-full-height"> <Categorie...
html.js
waigo/waigo.github.io
import React from 'react'; import DocumentTitle from 'react-document-title'; import { prefixLink } from 'gatsby-helpers'; const BUILD_TIME = new Date().getTime(); module.exports = React.createClass({ displayName: 'HTML', propTypes: { body: React.PropTypes.string, }, render () { const title = Docume...
index.js
tgecho/react-prosemirror
import React from 'react' import {ProseMirror} from 'prosemirror' export default React.createClass({ displayName: 'ProseMirror', propTypes: { options: React.PropTypes.object, defaultValue: React.PropTypes.any, value: React.PropTypes.any, onChange: React.PropTypes.func, valueLink: React.PropTypes.shape({ ...
src/index.js
cleancodedojo/numerology-ui-react
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import './styles/styles.scss'; // Yep, that...
docs/src/app/components/pages/components/CircularProgress/Page.js
nathanmarks/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 circleProgressReadmeText from './README'; import circleProgressCode from ...
examples/js/style/td-class-string-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
ngiiedu-client/src/components/users/join/MainContainer.js
jinifor/branchtest
import React from 'react'; import { withRouter } from "react-router-dom"; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import Paper from 'material-ui/Paper'; import FontIcon from 'material-ui/FontIcon'; import {orange500, cyan500} from 'material-ui/styles/colors...
src/components/Button/index.js
oneteam-dev/draft-js-oneteam-rte-plugin
import React, { Component } from 'react'; import unionClassNames from 'union-class-names'; import isFunction from 'lodash/isFunction'; export default class Button extends Component { onMouseDown = (e) => { const { onMouseDown } = this.props; if (isFunction(onMouseDown)) { e.preventDefault(); onMo...
src/website/app/demos/Flex/FlexItem/bestPractices.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Flex, { FlexItem } from '../../../../../library/Flex'; import Button from '../../../../../library/Button'; import Link from '../../../../../library/Link'; import type { BestPractices } from '../../../pages/ComponentDoc/types'; const bestPractices: BestPractices = [ { ...
client/modules/ManageNews/components/NewsList/NewsList.js
tranphong001/BIGVN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Table, Button, Tooltip, OverlayTrigger } from 'react-bootstrap'; import { getCategories, getCities, getDistricts, getWards, getId } from '../../../App/AppReducer'; import { fetchDistricts, fetch...
node_modules/react-bootstrap/es/Tabs.js
CallumRocks/ReduxSimpleStarter
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/main/resources/ui/components/JobSummaryView.js
mesos/chronos
import React from 'react' import {observer} from 'mobx-react' import $ from 'jquery' import 'bootstrap' import {JsonStore} from '../stores/JsonStore' import JsonEditor from './JsonEditor' $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip() }) @observer class JobSummaryView extends React.Component {...
src/client/components/NavbarBrand.js
xouabita/friends-radio
import React from 'react' import {Link} from 'react-router-dom' const NavbarBrand = ({className, ...props}) => <Link className={`${className} navbar-brand`} {...props} /> export default NavbarBrand
src/containers/dne.js
bulletcms/bullet-tracer
import React from 'react'; import {Section} from 'views'; class Dne extends React.Component{ render(){ return <div> <Section> <h1>404</h1> <h4>content not found</h4> </Section> </div>; } } export {Dne};
src/components/Privacy/Privacy.react.js
DeveloperAlfa/chat.susi.ai
import '../Terms/Terms.css'; import $ from 'jquery'; import Footer from '../Footer/Footer.react'; import PropTypes from 'prop-types'; import StaticAppBar from '../StaticAppBar/StaticAppBar.react'; import React, { Component } from 'react'; class Privacy extends Component { constructor(props) { super(props); ...
src/PieChart.js
onefold/react-native-chart
/* @flow */ import React, { Component } from 'react'; import { ART, View, TouchableWithoutFeedback } from 'react-native'; const { Group, Surface } = ART; import * as C from './constants'; import Wedge from './Wedge'; const getColor = (colors : Array<string>, index : number) => colors[index] || colors[colors.length % i...
src/routes.js
GuyLivni/react-redux-login-draggable
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import App from './containers/App'; import LoginPage from './containers/LoginPage'; import HomePage from './containers/HomePage'; import NotFoundPage from './components/NotFoundPage'; import {checkAuth} from './routesAuth'; export default ( <...
src/components/NotFoundPage.js
freelance-tech-writer/barstool-messages-frontend
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/messages"> Go back to messages </Link> </div> ); }; export default NotFoundPage;
js/components/sideBar/sidebar.js
GoldenOwlAsia/cooking-app
import React, { Component } from 'react'; import { Content, Container, Header, Text, Button, Icon, Title } from 'native-base'; import myTheme from '../../themes/base-theme'; import styles from './style'; class SideBar extends Component { static propTypes = { // setIndex: React.PropTypes.func, navigateTo: Re...
examples/huge-apps/routes/Profile/components/Profile.js
stanleycyang/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
docs/src/scenes/Api/components/Section/index.js
directlyio/redink
import React from 'react'; import styles from './styles.scss'; const Method = ({ name, reference }) => { console.log('reference.tags:', reference.tags); const tags = reference.tags; if (!tags) return null; if (!tags[0]) return null; if (tags[0].title !== 'method') return null; tags.shift(); return ( ...
src/components/pages/Home.js
cristianszwarc/react_crud_localStorage
import React from 'react'; import { Component } from 'react'; export default class Home extends Component { render() { return ( <div > <h1> Home </h1> <div className="alert alert-info" role="alert"> This is a linked page. </div> </div> ); } ...
app/javascript/mastodon/features/ui/util/reduced_motion.js
Kirishima21/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
website/core/WebPlayer.js
tszajna0/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
app/routes.js
ClearwaterClinical/cwc-react-redux-starter
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './containers/App' import NotFoundPage from './containers/NotFoundPage' import LoginPage from './containers/LoginPage' import DashboardPage from './containers/DashboardPage' import { urlPrefix } from './constants' export default...
pkg/interface/groups/src/js/components/skeleton.js
ngzax/urbit
import React, { Component } from 'react'; import classnames from 'classnames'; import { HeaderBar } from '/components/lib/header-bar'; import { GroupSidebar } from '/components/lib/group-sidebar'; export class Skeleton extends Component { render() { const { props } = this; let rightPanelClasses = prop...
vocab.js
thaiinhk/VocabReactNative
import React from 'react'; import { Platform, } from 'react-native'; // 3rd party libraries import { Actions, Router, Scene } from 'react-native-router-flux'; import { AdMobInterstitial } from 'react-native-admob'; import DeviceInfo from 'react-native-device-info'; // Views import MainView from './app/views/main';...
src/index.js
TobiasBales/PlayuavOSDConfigurator
import extensiblePolyfill from 'extensible-polyfill'; extensiblePolyfill('immutable'); import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from...
src/components/web/Card.js
Manuelandro/Universal-Commerce
import React from 'react' import styled from 'styled-components' const { View } = { View: styled.div` border: 1px solid #ddd; border-radius: 2px; border-bottom-width: 0; box-shadow: 0, 2px 9px #000; margin-left: 5px; margin-right: 5px; margin-top: 10px; `...
app/app.js
tinysoft-ph/baiji-ui
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/routes.js
arpachuilo/fizz
import React from 'react' import { Route, Router, IndexRedirect, browserHistory } from 'react-router' import { ReduxRouter } from 'redux-router' import App from './containers/App' import Home from './pages/Home' import Browse from './pages/Browse' const routes = ( <ReduxRouter> <Router history={browserHistory}>...
packages/bonde-admin/src/components/navigation/browsable-list/browsable-list.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import classnames from 'classnames' if (require('exenv').canUseDOM) { require('./browsable-list.scss') } const BrowsableList = ({ children, className, style }) => ( <div className={classnames('browsable-list rounded', className)} style={style}> {chi...
app/containers/ContributeMenu/index.js
BeautifulTrouble/beautifulrising-client
/** * * ContributeMenu * */ import React from 'react'; import { injectIntl } from 'react-intl'; import TranslatableStaticText from 'containers/TranslatableStaticText'; import LanguageThemeProvider from 'components/LanguageThemeProvider'; import MenuLink from 'components/MenuLink'; import MenuBlock from 'components/Me...
packages/@lyra/google-maps-input/src/GoogleMapsLoadProxy.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import loadGoogleMapsApi from './loadGoogleMapsApi' class GoogleMapsLoadProxy extends React.Component { static propTypes = { component: PropTypes.func.isRequired } constructor(props) { super(props) this.state = { loading: true, ...
imports/client/ui/includes/MainMenu/Sidebar/Category/index.js
mordka/fl-events
import React from 'react' import { Nav } from 'reactstrap' import LinkItem from '../../LinkItem' import './styles.scss' const Category = ({ item, onClick }) => { const { title, content } = item return ( <li className='category'> <div className='divider' /> <Nav vertical> <div cla...
src/Subscription.js
Samuron/VideoHustle
import React, { Component } from 'react'; import firebase from 'firebase'; import VideoContent from './VideoContent'; import YouTube from 'react-youtube'; import FlatButton from 'material-ui/FlatButton'; const Broadcast = React.createClass({ getInitialState() { return { video: {}, videoKey: this.pro...