path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/Components/vendor/BigCalendar.js
herman113/workouts
import React, { Component } from 'react'; import BigCalendar from 'react-big-calendar'; import moment from 'moment'; BigCalendar.setLocalizer(BigCalendar.momentLocalizer(moment)); export default class WrappedCalendar extends Component { state = { } render() { return ( <BigCalendar events={this...
examples/nested/app.js
neeharv/react-tabs
import React from 'react'; import ReactDOM from 'react-dom'; import { Tab, Tabs, TabList, TabPanel } from '../../src/main'; const App = React.createClass({ render() { return ( <div style={{ padding: 50 }}> <Tabs> <TabList> <Tab>The Simpsons</Tab> <Tab>Futurama</Ta...
src/components/PaymentForm.js
ovidner/bitket
import React from 'react' import { injectStripe, CardElement } from 'react-stripe-elements' import { Alert, Button, Col, ControlLabel, FormControl, FormGroup, Row, HelpBlock, Checkbox } from 'react-bootstrap' import { connect } from 'react-redux' import * as actions from '../actions' import * as selectors from '../sel...
Example/components/Error.js
hungtn/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet, Animated, Dimensions} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; var { height: deviceHeight } = Dimensions.get("window"); var styles = StyleSheet.create({ container: { positio...
ajax/libs/react-instantsearch/4.1.0-beta.5/Dom.js
BenjaminVanRyseghem/cdnjs
/*! ReactInstantSearch 4.1.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
src/collections/Form/FormDropdown.js
mohammed88/Semantic-UI-React
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Dropdown from '../../modules/Dropdown' import FormField from './FormField' /** * Sugar for <Form.Field control={Dropdown} /> * @see Dropdown * @see Form */ function FormDropdown(props) {...
src/components/App.js
StillLearnin/time-clock-ui
import React from 'react'; import { Component } from 'react'; import css from './App.css'; // components (scenes) that will be displayed by this component import Home from './pages/Home'; // scenes is a silly trick to avoid routes, check the file to see it how works import {Scene, SceneLink} from './Scenes'; export ...
client/public/components/SearchBar.js
SPCMorris/animalsaywhat
import React, { Component } from 'react'; import wikiActions from '../actions/wikipedia.js'; import { Button, Form, Input } from 'semantic-ui-react'; class SearchBar extends Component { constructor(props) { super(props) } state = { formData: {} } handleChange = (e, { value }) => this.setState({ value }) ...
lib/ui/components/Mocks/Sidebar/ContextMenu.js
500tech/bdsm
import PropTypes from 'prop-types'; import React from 'react'; import enhanceWithClickOutside from 'react-click-outside'; import omit from 'lodash/omit'; import API from 'api'; import { Mock } from 'api/models/mock'; import { Group } from 'api/models/group'; import { downloadFile, copyToClipboard } from 'ui/utils/expor...
src/client/components/list/templates/bookcase/ListInfo.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; import {updateList, storeList} from '../../../../redux/list.reducer'; import Share from '../../../base/Share'; import Text from '../../../base/Text'; import T from '../../../base/T'; import FollowButton from '../../button/FollowButton'; import PrintButt...
stories/SimpleUserViewDemo.js
de44/kb-ui
import React from 'react' import kb from '../src/kb-ui' import ViewDemo from './ViewDemo'; const view = kb.view() .asDetails() .fields([ kb.field('id'), kb.field('name'), kb.field('suspended', 'bool'), kb.field('profile.bio', 'html').label('Bio'), kb.field('profile.website').rend...
packages/material-ui-icons/src/SwapVert.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SwapVert = props => <SvgIcon {...props}> <path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z" /> </SvgIcon>; SwapVert = pure(SwapVert); SwapVert.muiName = 'SvgIcon'; export...
src/svg-icons/image/filter-hdr.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterHdr = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageFilterHdr = pure(ImageFilterHdr); ImageFilterHdr.displayName...
src/svg-icons/communication/phonelink-erase.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkErase = (props) => ( <SvgIcon {...props}> <path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0...
src/index.js
fastmountain/tournament
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import CoreLayout from './routes'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provid...
client/components/SelectedFriendEntry.js
gut-js/gut
import React from 'react'; class SelectedFriendEntry extends React.Component { constructor(){ super(); this.unselectDiner = this.unselectDiner.bind(this); } unselectDiner(){ const { diner, removeFromDiners } = this.props; removeFromDiners(diner); } render(){ return( <li className...
react-flux-mui/js/material-ui/src/svg-icons/action/https.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
nlyyAPP/component/MLPhotoView/MLPhotoView.js
a497500306/nlyy_APP
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, Image, Platform, ScrollView, PanResponder, Animated, Modal, DeviceEventEmitter, ActivityIndicator, Alert } from 'react-native'; import ImageViewer from 'react...
app/javascript/mastodon/features/nicovideo/player/components/controller.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Controller extends React.PureComponent { static propTypes = { videoId: PropTypes.string, input: PropTypes.string, onChange: PropTypes.func.isRequired, onClickPlay: PropTypes.func.isRequired, onClickCopy: PropType...
docs/src/app/components/pages/components/Snackbar/ExampleSimple.js
igorbt/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleSimple extends React.Component { constructor(props) { super(props); this.state = { open: false, }; } handleClick = () => { this....
node_modules/react-native-mock/src/api/Animated/createAnimatedComponent.js
niukui/gitpro
import React from 'react'; function createAnimatedComponent(Component) { const refName = 'node'; class AnimatedComponent extends React.Component { render() { return ( <Component {...this._propsAnimated.__getValue()} ref={refName} /> ); } } return Animat...
src/demos/kepler.gl/1-basic-keplergl/src/button.js
uber-common/vis-academy
import React from 'react'; const buttonStyle = { position: 'absolute', zIndex: 100, bottom: 0, right: 0, width: '120px', height: '40px', backgroundColor: '#1f7cf4', color: '#FFFFFF', cursor: 'pointer', border: 0, borderRadius: '3px', fontSize: '12px', margin:'30px', }; const Button = ({onCli...
gui/src/components/App.js
stellar/gateway-server
import React from 'react'; import {HashRouter as Router, Route, Link} from 'react-router-dom'; import AppBar from './AppBar'; import Navigation from './Navigation'; import ReceivedTransactions from './ReceivedTransactions'; import ReceivedTransactionDetails from './ReceivedTransactionDetails'; import SentTransactions f...
cerberus-dashboard/src/components/SideBar/SideBar.js
Nike-Inc/cerberus-management-service
/* * Copyright (c) 2020 Nike, 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 ...
stories/components/button/index.js
hollomancer/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import Button from 'shared/components/button/button'; storiesOf('shared/components/button', module) .add('Default', () => ( <Button handleClick={action('action')}>Click</Button> ));
sites/all/themes/bench/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
eddieduro/portfolio
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/elements/Button/ButtonContent.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly, } from '../../lib' /** * Used in some Button types, such as `animated`. */ function ButtonContent(props) { const { children, classNam...
src/BreadcrumbItem.js
Lucifier129/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import SafeAnchor from './SafeAnchor'; const BreadcrumbItem = React.createClass({ propTypes: { /** * If set to true, renders `span` instead of `a` */ active: React.PropTypes.bool, /** * HTML id for the wrapper `li` element ...
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/InputJSON/index.js
strapi/strapi-examples
/** * * InputJSON * */ import React from 'react'; import PropTypes from 'prop-types'; import cm from 'codemirror'; import 'codemirror/lib/codemirror.css'; import 'codemirror/mode/javascript/javascript'; import 'codemirror/addon/lint/lint'; import 'codemirror/addon/lint/javascript-lint'; import 'codemirror/addon...
src/svg-icons/action/cached.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCached = (props) => ( <SvgIcon {...props}> <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97....
src/components/Header/Header.js
Dylan1312/pool-elo
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div className='jumbotron'> <h1>Pool League</h1> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <Link to='/addGame' activeClassName='ro...
src/svg-icons/action/line-weight.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLineWeight = (props) => ( <SvgIcon {...props}> <path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"/> </SvgIcon> ); ActionLineWeight = pure(ActionLineWeight); ActionLineWeight.displayN...
aplicaciones_informaticas/frontendCentrosSalud/src/index.js
awainer/7539
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import FontIcon from 'react-toolbox/lib/font_icon'; import styles from './index.css'; import CentroMedico from './pages/CentroMedico'; class App extends Component { render() { return ( <div className={styles.app}> <div cla...
examples/todos/components/App.js
tappleby/redux
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default App
admin/src/components/PrimaryNavigation.js
davibe/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; import { Container } from 'elemental'; var PrimaryNavItem = React.createClass({ displayName: 'PrimaryNavItem', propTypes: { className: React.PropTypes.string, children: React.PropTypes.node.isRequired, href: Reac...
src/components/ListingType.js
brookslyrette/reactit
import React, { Component } from 'react'; export default class ListingType extends Component { constructor(props) { super(props); this.loadNew = () => this._changeType('new'); this.loadHot = () => this._changeType('hot'); this.loadRising = () => this._changeType('rising'); this.loadControversial...
developers.diem.com/src/@libra-opensource/diem-docusaurus-components/src/Nav/SubNav/index.js
libra/libra
import React from 'react'; import PropTypes from 'prop-types'; import Desktop from './Desktop'; import Mobile from './Mobile'; import styles from './styles.module.css'; const Subnav = ({activePopupMenu, setPopupMenu}) => ( <div className={styles.root}> <div className="width-wrapper libra-org-width"> <Mobil...
docs/src/app/components/pages/components/DropDownMenu/Page.js
pomerantsev/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 dropDownMenuReadmeText from './README'; import DropDownMenuSimpleExample ...
src/Base/pages/Page404.js
jirkae/hobby_hub
import React from 'react'; const Page404 = () => { return ( <div className="homepage"> 404 </div> ); }; export default Page404;
src/components/NewDropdown/NewDropdown.js
george-vrancianu/coriolis-web
/* Copyright (C) 2017 Cloudbase Solutions SRL This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distribu...
classic/src/scenes/mailboxes/src/Scenes/AccountWizardScene/Common/WizardConfigure/WizardConfigureMicrosoft.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import { accountActions, accountStore } from 'stores/account' import { Paper } from '@material-ui/core' import WizardConfigureUnreadModeOption from './WizardConfigureUnreadModeOption' import WizardConfigureDefaultLayout from './WizardConfigureDefaultLayout' i...
src/index.js
grossmail1/clean-react-dropdown
// Demo component // this is only example component // you can find tests in __test__ folder import React from 'react'; class MyComponent extends React.Component { componentDidMount() { // some logic here - we only test if the method is called } render() { return ( <div classNa...
src/component/BaseNavigation.js
duncanchen/quick-react
import React from 'react'; export class Nav extends React.Component { render() { return ( <nav className="navbar navbar-inverse"> <div className="container-fluid"> <div className="navbar-header"> <button type="button" className="navbar-toggle coll...
src/app/app.js
BerndWessels/react-webpack
/** * Manapaho (https://github.com/manapaho/) * * Copyright © 2015 Manapaho. 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 ReactDOM from 'react-dom'; import Relay from 'r...
app/javascript/mastodon/features/ui/components/boost_modal.js
sylph-sin-tyaku/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; import StatusContent from '../../../components/status_content'; import Av...
src/svg-icons/notification/ondemand-video.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationOndemandVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/> </SvgIc...
frontend/react-stack/react/aluraflix/src/components/Menu/components/ButtonLink/index.js
wesleyegberto/courses-projects
import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; function ButtonLink(props) { return ( <Link to={props.href} className={props.className}> {props.children} </Link> ); } ButtonLink.defaultProps = { href: '/', className: '', }; ButtonLink.prop...
src/controls/FormGroupDropdown.js
amvmdev/amvm-ui
import React from 'react'; import InputError from './InputError'; import Dropdown from './Dropdown'; const FormGroupDropdown = (props) => { const { meta, refFn, children, parentStyle, labelText, ...sourceProps } = props; let targetProps = Object....
app/javascript/mastodon/features/directory/index.js
Kirishima21/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from 'mastodon/components/column'; import ColumnHeader from 'mastodon/components/column...
src/routes.js
21echoes/my-react-starter-kit
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, About, Login, LoginSuccess, Survey, NotFound, WidgetPage, AdminPanel, WidgetsList, WidgetE...
js/BaseComponents/FormattedRelative.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
examples/forms-material-ui/src/components/Master.js
lore/lore-forms
/** * This component serves as the root of your application, and should typically be the only * component subscribed to the store. * * It is also a good place to fetch the current user. Once you have configured 'models/currentUser' * to fetch the current user (by pointing it to the correct API endpoint) uncomment ...
src/admin/app/features/list/components/valueEditors/editBoolean.js
jgretz/node-bits-admin
import React from 'react'; import {Checkbox} from 'react-bootstrap'; export default (item, key, schema, input) => { const handleChange = e => { input.onChange(e.target.checked); }; return ( <div className="checkbox-container"> <Checkbox inline value={input.value} checked={input.value} onChange={ha...
node_modules/react-router/es/Redirect.js
FoxMessenger/nyt-react
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 &...
docs/src/pages/demos/autocomplete/IntegrationAutosuggest.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import Autosuggest from 'react-autosuggest'; import match from 'autosuggest-highlight/match'; import parse from 'autosuggest-highlight/parse'; import TextField from 'material-ui/TextField'; import Paper from 'material-ui/Paper'; import { MenuItem } from 'ma...
share/components/AccountInfo/AccountInfo.js
caojs/password-manager-server
import React from 'react'; import { injectProps } from '../../helpers/decorators'; import style from './AccountInfo.css'; function Item({ label, value }) { return ( <li> <span>{label}</span> <span>{value}</span> </li> ); } class AccountInfo extends React.Component { @injectProps render({ ...
src/svg-icons/editor/format-underlined.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatUnderlined = (props) => ( <SvgIcon {...props}> <path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/> </SvgIcon> ); EditorF...
react-youtube-adaptive-loading/src/components/AppLayout/AppLayout.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import HeaderNav from '../../containers/HeaderNav/HeaderNav'; import ScrollToTop from '../ScrollToTop/ScrollToTop'; import './AppLayout.scss'; export const AppLayout = ({ children }) => { return ( <ScrollToTop> <div className='app-layout'> <HeaderNav /> {childre...
src/views/pages/tasks/tasks-page.js
Metaburn/doocrate
import React, { Component } from 'react'; import { List } from 'immutable'; import _ from 'lodash'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { labelActions, setLabelWithRandomColor } from 'src/labels'; import { buildFilter, tasksActions, taskFilters } from 'src/tasks'; import { ...
ReactNative/Albums/src/components/Button.js
makingsensetraining/mobile-pocs
import React from 'react'; import { Text, TouchableOpacity } from 'react-native'; const Button = ({ onPress, children }) => { const { buttonStyle, textStyle } = styles; return ( <TouchableOpacity onPress={onPress} style={buttonStyle}> <Text style={textStyle}> {children} </Text> </Touch...
src/collections/BootForm/BootFormGroup.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules } from '../../lib/' const propTypes = { children: PropTypes.node, row: PropTypes.bool, check: PropTypes.bool, disabled: PropTypes.bool, tag: PropTypes.string, color: PropTypes.string, classNa...
views/blocks/Quest/Quest.js
urfu-2016/team5
import React from 'react'; import Comments from './../comments/comments'; import QuestInfoContainer from '../QuestInfo/QuestInfoContainer'; import QuestPhotosContainer from '../QuestPhotos/QuestPhotosContainer'; import b from 'b_'; import './Quest.css'; const quest = b.lock('quest'); export default class Quest exten...
packages/mineral-ui-icons/src/IconCloudDownload.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 IconCloudDownload(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...icon...
test/visual/ListGroupItemVisual.js
react-bootstrap/react-router-bootstrap
import React from 'react'; import ListGroup from 'react-bootstrap/ListGroup'; import ListGroupItem from 'react-bootstrap/ListGroupItem'; import { Link } from 'react-router-dom'; import LinkContainer from '../../src/LinkContainer'; export default () => ( <div> <Link to="/home">Back to Index</Link> <h2>ListGr...
webapp/src/frontend/components/Footer.js
holderdeord/hdo-transcript-search
import React from 'react'; class Footer extends React.Component { render() { return ( <footer> <a href="https://www.holderdeord.no/"> <img className="logo" src="/logo.png" /> </a> <h4>Holder de ord &copy; 2014 - {new Date().ge...
src/kitchensink/PageOne.js
RRutsche/react-parallax
import React from 'react'; import { Link } from 'react-router-dom'; import { Parallax } from '../modules/index'; import image2 from '../assets/sw.jpg'; import image3 from '../assets/air.jpg'; import image4 from '../assets/4.jpg'; import image5 from '../assets/3.jpg'; const image1 = 'https://images.fineartamerica....
src/screen/Settings/Settings.js
wavicles/fossasia-pslab-apps
import React from 'react'; const Settings = () => { return <div>Settings</div>; }; export default Settings;
src/routes.js
jweboy/react-webpack-biolerplate
import React from 'react'; import { Switch, Route, Redirect, HashRouter as Router, } from 'react-router-dom'; import HomePage from 'containers/Home'; import CenterPage from 'containers/Center'; const supportsHistory = 'pushState' in window.history; const AppRouter = () => ( <Router basename="/" forceRefres...
src/components/utilities/Console.js
openvcash/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { shortUid } from '../../utilities/common.js' /** Ant Design */ import AutoComplete from 'antd/lib/auto-complete' import Button from 'antd/lib/button' @translate(['common']) @inject('console', 'gui...
node_modules/react-router/es6/RouteContext.js
Zach417/churchetto-web
'use strict'; import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin t...
ozwillo-datacore-web/src/main/webapp/dc-ui/src/components/app.js
ozwillo/ozwillo-datacore
import React from 'react'; import { connect } from 'react-redux'; import Menu from "./menu.js"; import NavBar from "./navbar.js"; import Content from "./content.js"; class App extends React.Component{ constructor(props) { super(props); //we expose this in order to access it from datacore-ui.js windo...
tests/react_modules/es6class-proptypes-callsite.js
MichaelDeBoey/flow
/* @flow */ import React from 'react'; import Hello from './es6class-proptypes-module'; import type {Node} from 'react'; class HelloLocal extends React.Component<{name: string}> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): Node { return <div>{this.props.name}...
examples/complex/src/components/repo/error.js
rocjs/roc-package-web-app-react
import React, { Component } from 'react'; export default class RepoError extends Component { static propTypes = { error: React.PropTypes.string }; render() { return ( <div> <h4>Error loading repos data.</h4> { this.props.error } </div...
src/views/Charts/Charts.js
haromy/appSO
import React, { Component } from 'react'; import { Bar, Doughnut, Line, Pie, Polar, Radar } from 'react-chartjs-2'; const line = { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [ { label: 'My First dataset', fill: false, lineTension: 0.1, background...
src/components/Card.js
Minishlink/DailyScrum
// @flow import React from 'react'; import { View, StyleSheet } from 'react-native'; import Button from './Button'; import appStyle from '../appStyle'; export default (props: PropsType) => { if (props.onPress || props.onLongPress) { return ( <Button style={[styles.container, props.style]} onPress={props.on...
client/src/components/form/Input.js
15thnight/15thnight
import React from 'react'; import FormErrors from './FormErrors'; import FormGroup from './FormGroup'; class Input extends React.Component { constructor(props) { super(props); this.defaultProps = { type: 'text', disabled: false } } handleChange(e) { ...
client/modules/User/pages/User.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import UserNavBar from '../components/UserNavBar/UserNavBar'; import UserList from '../components/UserList/UserList'; import { getId } from '../../Login/LoginReducer'; import { Modal, Button, Form, FormG...
src/components/ab-ctrl/tooltip/singleton.js
jl-/bronote
import React, { Component } from 'react'; import './style.scss'; const TOOLTIP_ACTIVE_CLS = 'tp--active'; let $tooltip = null; function makeTooltip(content) { let tooltipInner; if (!$tooltip) { $tooltip = document.createElement('div'); tooltipInner = $tooltip.cloneNode(); $tooltip.appendChild(tooltipI...
Client/src/js/init.js
simondi88/schoolbus
import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import Promise from 'bluebird'; import './utils/shims'; Promise.config({ cancellation: true, }); import App from './app.jsx'; import * as Api from './api'; import { ApiError } from './utils/http'; var initializationEl = docume...
src/index.js
xkawi/create-react-app-now
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/components/Accordion/Item.js
titon/toolkit
/** * @copyright 2010-2017, The Titon Project * @license http://opensource.org/licenses/BSD-3-Clause * @link http://titon.io * @flow */ import React from 'react'; import PropTypes from 'prop-types'; import Header from './Header'; import Section from './Section'; import emitEvent from '../../utility/e...
src/svg-icons/communication/stop-screen-share.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
src/components/Settings/Settings.component.js
amberleyromo/cboard
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import List, { ListItem, ListItemIcon, ListItemText, ListSubheader } from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Paper from 'material-ui/Paper'; // import Avatar from 'mat...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
h-izumi/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAccount, unmuteAccount, } from '../../../actions/accounts'; import { me...
app/javascript/mastodon/features/notifications/components/column_settings.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import GrantPermissionButton from './grant_permission_button'; import SettingToggle from './set...
web/src/components/Scroll.js
MauriceMahan/FocusOverlay
import smoothscroll from 'smoothscroll-polyfill'; import React from 'react'; import PropTypes from 'prop-types'; const Element = props => { return props.children; }; class Scroll extends React.Component { static propTypes = { type: PropTypes.string, element: PropTypes.string, offset: PropTypes.number,...
src/index.js
tiomno/ads-checkout-system
import React from 'react' import PropTypes from 'prop-types' import { render } from 'react-dom' import { BrowserRouter as Router, Route } from 'react-router-dom' import './css/style.css' import 'react-select/dist/react-select.css' import appContainerFactory from './components/AppContainer' import { Provider } from 'rea...
src/react/components/Pills/Pills.component.js
formtools/core
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './Pills.scss'; export class Pills extends Component { constructor (props) { super(props); this.onPillClick = this.onPillClick.bind(this); } onPillClick (e) { const li = e.target.closest('li'); if (li) { th...
src/svg-icons/places/ac-unit.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAcUnit = (props) => ( <SvgIcon {...props}> <path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.2...
__components__/simple.js
chambo-e/jest-shot
import React, { Component } from 'react'; // eslint-disable-next-line react/prefer-stateless-function export default class SimpleComponent extends Component { render() { return ( <div>Hello</div> ); } }
packages/netlify-cms-backend-azure/src/AuthenticationPage.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import { ImplicitAuthenticator } from 'netlify-cms-lib-auth'; import { AuthenticationPage, Icon } from 'netlify-cms-ui-default'; const LoginButtonIcon = styled(Icon)` margin-right: 18px; `; export default class Azur...
node_modules/react-native-router-flux/src/Router.js
gunaangs/Feedonymous
import React from 'react'; import { observer } from 'mobx-react/native'; import { BackHandler } from 'react-native'; import navigationStore from './navigationStore'; import PropTypes from 'prop-types'; import { addNavigationHelpers } from 'react-navigation'; @observer class App extends React.Component { static propT...
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBreadcrumbs.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
docs/src/app/pages/components/ProgressBar/ExampleProgressBarLabel.js
GetAmbassador/react-ions
import React from 'react' import ProgressBar from 'react-ions/lib/components/ProgressBar' const ExampleProgressBarLabel = () => ( <ProgressBar label='This is a label' showPercentage={true} value={10} denominator={50} /> ) export default ExampleProgressBarLabel
src/ui/components/views/Core/LoadingFancy.js
scrollback/pure
/* @flow */ import React, { Component } from 'react'; import ReactNative from 'react-native'; import shallowCompare from 'react-addons-shallow-compare'; import Loading from './Loading'; import Colors from '../../../Colors'; const { StyleSheet, PixelRatio, View, } = ReactNative; const styles = StyleSheet.create({ ...
lexiconSearch/client/searchResults.js
vistadataproject/nonClinicalRPCs
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import TableComponent from './table'; export default class SearchResults extends React.Component { constructor(props) { // set initial state super(props); this.state = { matchesFound: props.matchesFound, fullResults: ...
src/routes/about/index.js
ben-miller/adddr.io
/** * adddr (https://www.adddr.io/) * * 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 Layout from '../../components/Layout'; impor...
app/javascript/mastodon/components/collapsable.js
honpya/taketodon
import React from 'react'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; const Collapsable = ({ fullHeight, isVisible, children }) => ( <Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight :...
src/svg-icons/device/battery-80.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery80 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h10V5.33z"/><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1...
src/components/Dashboard/Analytics/notable_stats.js
gperl27/liftr-v2
import React, { Component } from 'react'; function avg(arr){ return arr.reduce(function(x, y){ return x + y; })/arr.length; } class NotableStats extends Component { render() { if(this.props.stats.length === 0){ return <div>Waiting for choice to be made...</div> } const weights = this.prop...