path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
components/ShopsAndNotification.js
CoffeeApp/clientSide
import React from 'react' import { Match, hashHistory } from 'react-router' import SelectShop from './SelectShop' import Notification from './Notification' import ToggleButtons from './ToggleButtons' import Cart from './Cart' class ShopsAndNotification extends React.Component { constructor(props) { super(props)...
app/app.js
haxorbit/chiron
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
App/Components/FullButton.story.js
samuraitruong/react-native-fx260
import React from 'react' import { storiesOf } from '@storybook/react-native' import FullButton from './FullButton' storiesOf('FullButton') .add('Default', () => ( <FullButton text='A simple button' /> )) .add('Custom Style', () => ( <FullButton text='Style Me Up!' styles={{ backgr...
node_modules/react-router/es/MemoryRouter.js
webtutorial/builder
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/canvas-rce/src/rce/plugins/shared/Upload/UnsplashSVG.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...
node_modules/semantic-ui-react/src/views/Statistic/Statistic.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey, } from '../../lib' import StatisticGroup from './StatisticGroup' import Stat...
ui/src/containers/Visualisations/TemplateMostPopularVerbs/Card.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; import TemplateCard from '../components/TemplateCard'; import buildModel from './buildModel'; import { title, image } from './constants'; /** * @param {immutable.Map} props.model * @param {() => void} props.saveModel */ ...
Realization/frontend/czechidm-core/src/content/audit/loggingEvent/LoggingEventExceptionDetail.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 { LoggingEventExceptionManager } from '../../../redux'; const EU_BCVSOLUTIONS_PREFIX = 'eu.bcvsol...
client/test/components/Group.spec.js
enodi/PostIt
import React from 'react'; import 'materialize-css/dist/js/materialize'; import { Sidebar } from '../../src/components/Dashboard/Sidebar.jsx'; jest.mock('react-dom'); const setup = () => { const props = { currentUser: { id: 1 }, groups: { Groups: [{ id: 1, name: 'general' }], activeGroup: { id:...
example/redux-todomvc/test/components/Footer.spec.js
viclm/jquery-widget
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Footer from '../../components/Footer' import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters' function setup(propOverrides) { const props = Object.assign({ completedCount: 0, activeCount: ...
source/components/HomeButton.react.js
BeethovensWerkstatt/VideApp
import React from 'react'; import PropTypes from 'prop-types'; const HomeButton = ({ onClick }) => { return ( <img src='./resources/pix/videAppLogo.png' className='videAppLogo' alt='Home' onClick={e => { e.preventDefault(); onClick(); }} /> ); }; HomeButton.pro...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Tooltip.js
Akkuma/npm-cache-benchmark
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 ...
docs/src/examples/elements/Step/Groups/StepExampleVertical.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleVertical = () => ( <Step.Group vertical> <Step completed> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> ...
components/ParallaxContainer/ParallaxContainer.js
rdjpalmer/bloom
/* global window: true, */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { subscribe } from 'subscribe-ui-event'; import cx from 'classnames'; import css from './ParallaxContainer.css'; export default class ParallaxContainer extends Component { static propTypes= { c...
web/src/js/components/Settings/Widgets/WidgetConfigComponent.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import Toggle from 'material-ui/Toggle' import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton' class WidgetConfig extends React.Component { render() { const { setting } = this.props switch (setting.type) { case 'boolean': ...
example/todoReact/views/todoapp.js
coderwin/Fluder
import React from 'react'; import todoStore from '../stores/todoStore'; import todoAction from '../actions/todoAction'; import Lines from './lines'; export default class TodoApp extends React.Component{ constructor(props){ super(props); this.state = { items: todoStore.getAll()||[] ...
react/react-fundamentals/PropsChildrenApp.js
claycarpenter/node-sandbox
import React from 'react'; class PropsChildrenApp extends React.Component { render() { return ( <Button>I Tolerate React</Button> ); } } class Button extends React.Component { render() { return ( <button>{this.props.children}</button> ); } } export default PropsChildrenApp
react/exercises/part_03/src/index.js
jsperts/workshop_unterlagen
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import './index.css'; import AppContainer from './containers/App'; import store from './store'; const root = ( <Provider store={store}> <AppContain...
src/components/tracks/individual/_blind/index.js
cannoneyed/tmm-glare
import React from 'react' // const timeline = [{ // time: 0, // fact: '' // }] // export default function Blind() { return ( <div className="track-info-page"> <div className="track-text blind" /> </div> ) }
website/core/SnackPlayer.js
Livyli/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...
src/components/MenuHandle.js
vigetlabs/colonel-kurtz
import React from 'react' import Btn from './Button' const defaultProps = { className: 'col-menu-handle', label: 'Open the menu for this block', type: 'button' } export default class MenuHandle extends React.Component { render() { const { label, ...safe } = this.props return ( <Btn {...safe}> ...
docs/app/Examples/collections/Message/Types/MessageExampleMessage.js
aabustamante/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleMessage = () => ( <Message> <Message.Header> Changes in Service </Message.Header> <p> We updated our privacy policy here to better service our customers. We recommend reviewing the changes. </p> </...
app/packs/src/components/report/Setting.js
ComPlat/chemotion_ELN
import React from 'react'; import { Panel } from 'react-bootstrap'; import ReportActions from '../actions/ReportActions'; import CheckBoxs from '../common/CheckBoxs'; const toggleSplSettings = (text, checked) => { ReportActions.updateSplSettings({ text, checked }); }; const toggleSplSettingsAll = () => { ReportAc...
core/router.js
CharlesSanford/personal-site
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
example/src/test_checkbox.js
flywingdevelopers/rn-naive
/** * <CheckBox> Control Test * Kevin Lee 19 Sept 2017 **/ import React from 'react' import { Screen, Bar, Roll, Text, CheckBox } from 'rn-naive' export default class App extends React.Component { constructor(props) { super(props) this.state = { DisableAll: false, } } render() { return ( ...
src/components/Feedback/Feedback.js
chaudhryjunaid/chaudhryjunaid.com
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
xcessiv/ui/src/DatasetExtraction/DataExtractionTabs.js
reiinakano/xcessiv
import React, { Component } from 'react'; import './MainDataExtraction.css'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import MainDataExtraction from './MainDataExtraction'; //import TestDataExtraction from './TestDataExtraction'; import MetaFeatureExtraction from './MetaFeatureExtraction'; import Stac...
src/svg-icons/av/remove-from-queue.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRemoveFromQueue = (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-7v2H8v-2h8z"/> </SvgIcon> );...
node_modules/react-router/es/Route.js
furgat/sabertoot
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.string, func = _React$PropTypes.func; /** * A <Route> is use...
components/Roster.js
alexxpan/calwtcrew
import React from 'react'; import '../css/roster.scss'; const Roster = ({ rosterName, names, sides, years, hometowns, majors }) => ( <div className="roster-container"> <header> <h1>{rosterName}</h1> </header> <div className="column-container"> <div className="roster__column"> <h3>Nam...
web/src/client/main.js
zanj2006/este
import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router'; import {configureStore} from '@este/common'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import createRoutes from './createRoutes'; import {IntlProvider} from 'react-intl'; import {Provider} from 're...
packages/material-ui-icons/src/Snooze.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Snooze = props => <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9...
src/js/components/Overview.js
bryanjacquot/theme-designer-capstone
import React, { Component } from 'react'; import Section from 'grommet/components/Section'; import Anchor from 'grommet/components/Anchor'; import Pdf from 'grommet/components/icons/base/DocumentPdf'; export default class Overview extends Component { constructor() { super(); } render () { return ( ...
step6-serviceapi/node_modules/react-router/es6/Route.js
jintoppy/react-training
'use strict'; import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './PropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route>...
packages/reactor-kitchensink/src/examples/DragAndDrop/Files/Files.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Panel } from '@extjs/ext-react'; import './styles.css'; Ext.require(['Ext.drag.*']); const DEFAULT_TEXT = 'Drag a file from your computer here'; export default class Files extends Component { state = { iconCls: 'drag-file-icon', labelText: DEFAU...
step02/App/src/components/Loader/index.android.js
grokbot/intro-to-react-native
import React, { Component } from 'react'; import { ActivityIndicator } from 'react-native'; import { Theme, Color } from "../../theme"; export class Loader extends Component { render() { return ( <ActivityIndicator size={45} style={[Theme.loader, Theme.centered]} color={Color.yellow} /> ) } }
Realization/frontend/czechidm-core/src/components/advanced/ModalProgressBar/ModalProgressBar.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; // import * as Basic from '../../basic'; import ProgressBar from '../ProgressBar/ProgressBar'; /** * Progressbar in modal window. * * @author Radek Tomiška */ export default function ModalProgressBar(props) { const { rendered, showLoading, show, coun...
packages/reactor-tests/src/tests/SenchaTestHooks.js
markbrocato/extjs-reactor
import React from 'react'; import { Button } from '@extjs/ext-react'; export default function SenchaTestHooks() { return <Button text="Target" itemId="target"/> }
src/index.js
tolylya/octoberry
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from './components/Root'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tel...
src/main/js/my-app/src/components/NotFound.js
myapos/ClientManagerSpringBoot
import React from 'react'; const NotFound = () => <div> The page that you requested has not found </div>; NotFound.contextTypes = { router: React.PropTypes.object.isRequired, }; export default NotFound;
src/index.js
Maachi/Admin-FrontEnd
import React from 'react'; import { Router, Route, browserHistory } from 'react-router'; import { render } from 'react-dom'; import Login from './pages/Login'; import Dashboard from './pages/Dashboard'; import CreateProcess from './pages/CreateProcess'; import './static/sass/main.scss'; render(( <Router history={bro...
imports/ui/components/form/remove-giveaway-dialog.js
irvinlim/free4all
import React from 'react'; import ConfirmDialog from '../../layouts/confirm-dialog'; const RemoveGiveawayDialog = (props) => ( <ConfirmDialog title="Are you sure?" {...props}> Are you sure you would like to remove this giveaway? </ConfirmDialog> ); export default RemoveGiveawayDialog;
AirFront/point/profile.js
sunshinezxf/Airburg
import React from 'react'; import { NavBar, Button, List, WhiteSpace, WingBlank, InputItem, Toast, } from 'antd-mobile'; const Item = List.Item; var profile = {id: '', name: '', phone: '', point: '123'}; export const PointCenter = React.createClass({ getDefaultProps(){ return {p...
src/containers/NotFound/NotFound.js
martinrp/reduxgitresume
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/components/Statement.js
lukebelliveau/aclu-matchers
import React from 'react'; import { StyleSheet, css } from 'aphrodite'; const styles = StyleSheet.create({ wrapperStyle: { padding: '50px', paddingTop: 0, '@media (max-width: 740px)': { padding: '0px', } }, body: { borderBottom: '2px solid #eee', borderTop: '2px solid #eee', pa...
example/superchatExample/App.js
super-chat/react-native-superchat
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Chat } from 'react-native-superchat'; import messages from './data/messages' import { Platform, StyleSheet, Text, View } from 'react-native'; export default class App exte...
packages/react-ui-components/src/_lib/injectProps.spec.js
dimaip/neos-ui
import React from 'react'; import {shallow} from 'enzyme'; import injectProps from './injectProps.js'; const WrappedComponent = props => <div {...props}/>; test('should return a curried function.', () => { const fn = injectProps(); expect(typeof fn).toBe('function'); }); test('should return yet another curri...
pkg/interface/chat/src/js/components/lib/welcome.js
jfranklin9000/urbit
import React, { Component } from 'react'; export class Welcome extends Component { constructor() { super(); this.state = { show: true } this.disableWelcome = this.disableWelcome.bind(this); } disableWelcome() { this.setState({ show: false }); localStorage.setItem("urbit-chat:wasWe...
www/containers/BlogsPage.js
DremyGit/dremy-blog
import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import BlogItem from '../components/BlogPanel/BlogItem'; import BlogListTitle from '../components/BlogPanel/BlogListTitle'; import Pager from '../components/Pager/Pager'; import config from '../config'; import { fetch...
05_ES6/Code/fork-es6/app/components/StorePane.js
joacoleonelli/react-zerotohero
import React from 'react'; import Store from './Store'; import autoBind from 'react-autobind'; class StorePane extends React.Component { constructor(props) { super(props); autoBind(this); } renderStore(store){ return <Store key={store} index={store} details={this.props.stores[store]} />; } ...
src/GoalInfoNavigation/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from '../Wrapper'; import Typography from '../Typography'; import IconAvaWrapper from '../IconAvaWrapper'; import styles from './styles.css'; function GoalInfoNavigation(props) { return ( <Wrapper className={styles.ou...
app/components/PreSplash/PreSplash.js
heptaman/Voluncheering
import React, { Component } from 'react'; import PropTypes from 'prop-types' import { View, Text, StyleSheet, TouchableOpacity, Animated } from 'react-native' import { connect } from 'react-redux' import { colors, fontSizes } from '~/styles' import { logout } from '~/actions/auth' class PreSplash extends Component {...
electronApp/node_modules/react-element-to-jsx-string/AnonymousStatelessComponent.js
eyang414/superFriend
import React from 'react'; export default function(props) { let {children} = props; // eslint-disable-line react/prop-types return <div>{children}</div>; }
docs/app/Examples/modules/Modal/Types/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const ModalExamples = () => ( <ExampleSection title='Types'> <ComponentExample ...
packages/material-ui-icons/src/SpeakerNotes.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><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-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z" /></g> , 'SpeakerNotes');
website/core/WebPlayer.js
skevy/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...
client-web/client-web/src/components/ListViewProperty.js
ppsari/final
import React from 'react' import { Link } from 'react-router-dom' import axios from 'axios' import prettyMoney from '../helpers/prettyMoney' const api = 'https://api.room360.ga/api' class ListViewProperty extends React.Component { constructor(props){ super(props) this.state={ properties:[] } } ...
app/components/map-canvas.js
laynemcnish/walksafely-react
import React from 'react'; import PureComponent from 'react-pure-render/component'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ActionCreators } from '../actions'; const { initMap } = ActionCreators; export class MapCanvas extends PureComponent { constructor(props)...
old_examples/dyno/app.js
mzabriskie/react-tabs
import React from 'react'; import { render } from 'react-dom'; import Modal from 'react-modal'; import { Tab, Tabs, TabList, TabPanel } from '../../src/index'; import '../../style/react-tabs.css'; Modal.setAppElement(document.getElementById('example')); class App extends React.Component { constructor(props) { s...
app/assets/scripts/main.js
thadk/oc-map
'use strict'; import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import MapWidget from './views/map-widget'; import TableWidget from './views/table-widget'; window.OC_MAP = { initMapWidget: containerEl => { render(( <MapWidget /> ), containerEl); }, initTableW...
js/components/ClinicTab.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; var moment = require('moment'); import { actions } from 'react-native-navigation-redux-helpers'; import { Image, WebView, AsyncStorage, Linking } from 'react-native'; import { Container, Header, Subtitle, Title, Content, H2, Button, Foote...
packages/bonde-admin-canary/src/scenes/Auth/scenes/ResetPassword/InvalidToken.spec.js
ourcities/rebu-client
import test from 'ava' import React from 'react' import { shallow } from 'enzyme' import { Trans } from 'react-i18next' import { Title } from 'bonde-styleguide' import Link, { ButtonLink } from 'components/Link' import InvalidToken from './InvalidToken' test.beforeEach(t => { const i18n = key => key t.context.nod...
fields/types/location/LocationColumn.js
pr1ntr/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'LocationColumn', propTypes: { co...
RNDemo/RNComment/node_modules/react-navigation/src/navigators/DrawerNavigator.js
995996812/Web
/* @flow */ import React from 'react'; import { Dimensions, Platform } from 'react-native'; import createNavigator from './createNavigator'; import createNavigationContainer from '../createNavigationContainer'; import TabRouter from '../routers/TabRouter'; import DrawerScreen from '../views/Drawer/DrawerScreen'; impo...
src/components/GlobalSearchResults.js
FiviumAustralia/RNSH-Pilot
import React, { Component } from 'react'; import { Link } from 'react-router'; import SearchResultRow from 'components/SearchResultRow'; import GlobalSearchFilters from 'components/GlobalSearchFilters'; import styles from './GlobalSearchResults.scss'; export default class GlobalSearchResults extends Component { rend...
src/containers/todo_item_detail.js
vijayviji/react-native-redux-todoapp
import React, { Component } from 'react'; import TodoItemDetailComp from '../components/todo_item_detail' import { MarkTodo } from '../action_creators'; import { TodoStates } from '../constants'; export default class TodoItemDetail extends Component { constructor(props) { super(props); } componentDidMo...
demo/sections/Example/Prop.js
joshq00/react-mdl
import React from 'react'; import Code from './Code'; function getJSON( value ) { const json = JSON.stringify( value, 0, 2 ); return json.replace( /"([^"]+)":/g, '$1:' ).trim(); } const Prop = ( props ) => { let { attr, value } = props; attr = ` ${ attr }`; if ( value === true ) { return <s...
src/components/groups/Edit.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { Modal, Spin, Icon, message, Button, Form, Input } from 'antd'; import ModalHeader from 'app/components/productivity/modal/Header'; const FormItem = Form.Item; import { graphql } from 'react-apollo'; import...
app/javascript/mastodon/features/favourites/index.js
hyuki0000/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
RNApp/app/components/GenericTextInput/GenericTextInput.js
abhaytalreja/react-native-telescope
import React from 'react'; import { View, TextInput } from 'react-native'; import styles from './styles'; const GenericTextInput = (props) => { return ( <View> {props.borderTop ? <View style={styles.divider} /> : null} <TextInput style={styles.input} autoCapitalize="none" auto...
tests/components/circular-grid-lines-tests.js
Apercu/react-vis
import test from 'tape'; import React from 'react'; import {mount} from 'enzyme'; import CircularGridLines from 'plot/circular-grid-lines'; import {testRenderWithProps, GENERIC_XYPLOT_SERIES_PROPS} from '../test-utils'; import FauxRadialScatterplot from '../../showcase/plot/faux-radial-scatterplot'; testRenderWithProp...
src/InfoPanel.js
honmanyau/muup-story
import React, { Component } from 'react'; import './GameController.css'; class InfoPanel extends React.Component { render() { let player = this.props.player; let HPPercentage = player.hp / player.mhp * 100; const HPBarFillWidth = { width: HPPercentage + "%" }; return( <div className...
assets/jqwidgets/demos/react/app/grid/bindingtoremotedata/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { datatype: 'jsonp', datafields: [ { name: 'countryName'...
client/modules/App/components/DevTools.js
tranphong001/BIGVN
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
source/server/routes/main/index.js
ericelliott/universal-react-boilerplate
import React from 'react'; import { match } from 'react-router'; import renderLayout from 'server/render-layout'; import render from 'server/render'; import settings from 'server/settings'; import configureStore from 'shared/configure-store'; import createRoutes from 'shared/routes'; const store = configureStore(); ...
src/demo/field.js
react-entanglement/react-entanglement
import React from 'react' export default function Field({ value, onChange }) { return <input onChange={e => onChange(e.target.value)} value={value} /> }
_experiment/react-fetch-github-repo/v1-external-fetch-file/src/Repo.js
David-Castelli/react-testing
// Render of single element import React from 'react'; import {render} from 'react-dom'; // Single element const Repo = ({repo, item}) => <article> <div className='article-content'> {item} <a href={repo.url}> <h3 className='title'>{repo.name}</h3> </a> <p className='description'>{repo.description}</p...
src/js/ui/components/entryListFilter.js
hiddentao/heartnotes
import _ from 'lodash'; import React from 'react'; import { connectRedux } from '../helpers/decorators'; import Loading from './loading'; var Component = React.createClass({ propTypes: { searchKeyword: React.PropTypes.string, }, getDefaultProps: function() { return { searchKeyword: null, }...
node_modules/react-bootstrap/es/Well.js
geng890518/editor-ui
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 ...
app/components/layout/newProject/imageUploader.js
communicode-source/communicode
import React from 'react'; import styles from './../../../assets/css/pages/createProject.scss'; class ImageUpload extends React.Component { constructor() { super(); this.state = {file: '', imagePreviewUrl: ''}; } _handleSubmit(e) { e.preventDefault(); } _handleImageChange(...
src/svg-icons/hardware/phonelink-off.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhonelinkOff = (props) => ( <SvgIcon {...props}> <path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6...
frontend/src/routes/Home/components/HomeView.js
qurben/mopidy-jukebox
import React from 'react' import DuckImage from '../assets/Duck.jpg' import classes from './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className={classes.duck} src={DuckImage} /> </div> ) export default HomeView
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js
skarnecki/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleTwice extends React.Component { constructor(props) { super(props); this.state = { message: 'Event 1 added to your calendar', open: fals...
src/action-button.js
lonord/react-marked-editor
import React, { Component } from 'react'; import propTypes from 'prop-types'; class ActionButton extends Component { render() { const styles = { wrapper: { height: this.props.height, width: this.props.width }, btn: { height: this.props.height - 2, width: this.props.width - 2, lineHeight...
app/components/FileList.js
zoo1/fil
import _ from 'underscore'; import React from 'react'; import {connect} from 'react-redux'; import classNames from 'classnames'; import {createFile, deleteFile, renameFile, openFile} from 'actions/files'; class FileRenameForm extends React.Component { constructor(props) { super(props); this.state = ...
src/components/AddClient/components/ClientRole/StaffRole.js
TheModevShop/craft-app
import React from 'react'; import _ from 'lodash'; import Radio from 'components/uiElements/Radio/Radio'; import './staff-role.less'; class StaffRole extends React.Component { constructor(...args) { super(...args); this.state = {}; } render() { return ( <div className="staff-role-wrapper"> ...
src/components/top-menu/switch.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2017 Loki Education (Social Enterprise) 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, o...
packages/mineral-ui-icons/src/IconWbIridescent.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 IconWbIridescent(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
frontend/app_v2/src/components/WidgetArea/WidgetAreaContainer.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' // FPCC import WidgetAreaData from 'components/WidgetArea/WidgetAreaData' import Widget from 'components/Widget' import LazyLoader from 'components/LazyLoader' function WidgetAreaContainer({ id }) { const { widgets } = WidgetAreaData({ id }) return ( ...
js/components/AlertBar.js
msldiarra/signals-ui
import React from 'react'; export default class AlertBar extends React.Component { render() { let progressBarClass = (this.props.tank.fillingrate > 50) ? "progress-bar progress-bar-success" : (this.props.tank.fillingrate > 30) ? "progress-bar progress-bar-warning":...
packages/material-ui-icons/src/CompareArrows.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z" /></g> , 'CompareArrows');
src/MeetingLink/__tests__/MeetingLink.js
Detaysoft/react-chat-elements
import React, { Component } from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import MeetingLink from '../MeetingLink'; describe('MeetingLink component', () => { it('should render without issues', () => { const component = shallow(<MeetingLink status='read'/>); expect(comp...
components/Layout/Layout.js
tbescherer/TrumpAnxietyHotline
import {connect} from 'react-redux'; import React from 'react'; import Header from './Header'; import s from './Layout.css'; import store from '../../core/store.js'; class Layout extends React.Component { constructor(props) { super(props); } componentDidMount() { window.componentHandler.upgradeElem...
modules/__tests__/History-test.js
okcoker/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import History from '../History' import Router from '../Router' import Route from '../Route' import createHistory from 'history/lib/createMemoryHistory' describe('History Mixin', function () { let node beforeEach(function () { node = ...
frontend/teg-web-ui/src/common/topNavigation/StaticTopNavigation.js
tegh/tegh-daemon
import React from 'react' import { Link } from 'react-router-dom' import classnames from 'classnames' import Typography from '@mui/material/Typography' import Hidden from '@mui/material/Hidden' import IconButton from '@mui/material/IconButton' import MenuIcon from '@mui/icons-material/Menu' import useStyle from './To...
client/src/App.js
teenoh/Hello-Books
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
docs/app/Examples/views/Statistic/Types/StatisticExampleBottomLabel.js
mohammed88/Semantic-UI-React
import React from 'react' import { Statistic } from 'semantic-ui-react' const StatisticExampleBottomLabel = () => ( <div> <Statistic> <Statistic.Value>5,550</Statistic.Value> <Statistic.Label>Downloads</Statistic.Label> </Statistic> <Statistic value='5,500' label='Downloads' /> </div> ) e...
node_modules/antd/es/button/button.js
yhx0634/foodshopfront
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
.history/src/components/GKM/Category_20170624164531.js
oded-soffrin/gkm_viewer
import React from 'react'; import _ from 'lodash' const Category = ({ category }) => { const items = _.map(category.items, (i) => (<div style={{ display: 'inline-block', padding: '10px' }}>{i.text}</div>)) console.log(items); return ( <div> <div> {category.type}: {category.text} </div> <div>Item...
client/components/TodoTextInput.spec.js
Pennsy/todolist
import React from 'react' import { createRenderer } from 'react-test-renderer/shallow'; import TodoTextInput from './TodoTextInput' const setup = propOverrides => { const props = Object.assign({ onSave: jest.fn(), text: 'Use Redux', placeholder: 'What needs to be done?', editing: false, newTodo: ...