path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/hardware/speaker.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSpeaker = (props) => ( <SvgIcon {...props}> <path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c...
src/elements/functionElements.js
EtherTyper/react-lang
import React from 'react' import { generateAST } from '..'; const Functions = (Super = Object) => class BasicElements extends Super { static function(element, props, children) { let [ body ] = children; let id = props.id ? generateAST(props.id) : null; let params = props.params.map(generat...
src/routes/Counter/components/Counter.js
harijoe/redux-dollar
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
test/test_helper.js
tpechacek/redux-blog
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
information/blendle-frontend-react-source/app/modules/issue/containers/PagesIssueContainer.js
BramscoChill/BlendleParser
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AltContainer from 'alt-container'; import PagesIssue from 'modules/issue/components/PagesIssue'; import IssuesStore from 'stores/IssuesStore'; import AuthStore from 'stores/AuthStore'; import Settings from 'controllers/settings'; impor...
src/hooks/useProtectedState.js
sussol/mobile
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2020 */ import React from 'react'; import { useDoIf } from './useDoIf'; export const useProtectedState = (initialState, controller) => { const [state, _setState] = React.useState(initialState); const setState = useDoIf(_setState, controller); return [sta...
js/jqwidgets/demos/react/app/listbox/itemsreorder/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js'; class App extends React.Component { render() { let source = [ 'Affogato', 'Americano', 'Bicerin', ...
packages/mineral-ui-icons/src/IconPermPhoneMsg.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 IconPermPhoneMsg(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
docs/app/Examples/collections/Table/States/TableExampleError.js
clemensw/stardust
import React from 'react' import { Icon, Table } from 'semantic-ui-react' const TableExampleError = () => { return ( <Table celled> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Notes<...
docs/components/pages/ComponentPage.js
romagny13/react-form-validation
import React from 'react'; import PropTypes from 'prop-types'; import Example from '../Example'; import PropsComponent from '../PropsComponent'; import { changeMetaDescription } from '../../utils/seo'; class ComponentPage extends React.Component { componentWillMount() { this.changeMetaDescription(this.pro...
ajax/libs/react-instantsearch/6.0.0-beta.0/Dom.js
sufuf3/cdnjs
/*! React InstantSearch 6.0.0-beta.0 | © Algolia, inc. | https://github.com/algolia/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], facto...
src/browser.js
robbyemmert/react-dev-tools
import React from 'react'; import ReactDOM from 'react-dom'; import { AppRoot } from './index.js'; ReactDOM.render( <AppRoot />, document.getElementById('reactRoot') ); export class SomeClass { constructor() { console.log('constructed!'); } heyo(){ console.log('Party on dudes!'); ...
node_modules/react-router/es6/Lifecycle.js
mbestwick/medication-search
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
src/components/header/index.js
ngochuy13/react-firebase-address
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router'; import {Icon} from 'semantic-ui-react' import { PageNames } from '../../constants'; if(process.env.WEBPACK) require('./index.scss'); class Header extends Component { render() { return ( <div className='header'> <head...
detox/test/src/Screens/TimeoutsScreen.js
simonracz/detox
import React, { Component } from 'react'; import { Text, View, Image, TouchableOpacity } from 'react-native'; export default class TimeoutsScreen extends Component { constructor(props) { super(props); this.state = { greeting: undefined, }; } render() { if (this.state.greeting) ret...
assets/javascripts/kitten/components/form/date-picker/stories.js
KissKissBankBank/kitten
import React from 'react' import { DatePicker } from './index' import { COLORS } from 'kitten' import { DocsPage } from 'storybook/docs-page' const styles = { header: { backgroundColor: COLORS.font1, color: '#fff', icon: { color: '#fff', }, }, borderColor: 'var(--color-grey-400)', weekday...
boilerplate/app.js
mcittar/react-jarb
import React from 'react'; import ReactDOM from 'react-dom'; import configureStore from './store/store'; import Root from './components/root'; document.addEventListener('DOMContentLoaded', () => { const root = document.getElementById('root'); let store = configureStore(); ReactDOM.render(<Root store={ stor...
Elagance/source/scripts/test/test.index.js
MR03/Project-Mountain
import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './test.app' import todoApp from './test.reducer' let store = createStore(todoApp) render( <Provider store={store}> <App /> </Provider>, document...
src/esm/components/form/checkbox-set/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["items", "disabled", "className", "name", "error", "label", "children"], _excluded2 = ["id", "className"]; import React from 'react'; import PropTy...
app/src/scripts/widgets/Header/Header.js
vyorkin-archive/assignment
import React from 'react'; import { Link } from 'react-router'; import './Header.css'; export default class Header { render() { return ( <header className='header'> <div className='container header__content'> <Link to='index' className='header__title'> PROTECT<span className=...
components/preview-picture/index.js
bebeanan/monkey-ui
//容器 /* * 接口设计 参数设计: visible //modal hide show viewData //图片列表数据 删除图片接口设计 //动态渲染左侧缩略图 and 同时删除外层上传数据和显示数据 and 删除按钮设计 //点击左侧缩略图左侧对应大图展示 // 阻止删除和展示事件传递和冒泡,防止预览触发删除,或删除触发预览 //bug 修复 upload组件删除事件会触发预览事件 */ import React from 'react'; import Modal from '../modal/index'; import ViewPic from './viewPic'; const getFileList=(...
src/components/Admin/FormWrapper/Filter.js
n3ssi3/liveaboard-express
import React from 'react' import PropTypes from 'prop-types' import FieldGroup from '../../Form/FieldGroup' import './Filter.css' const Filter = (props) => { let txt = props.filterText.toLowerCase() return ( <div className='cell-sm-12 cell-md-4 cell-lg-4 cell-xl-3'> <aside className='text-sm-left form...
src/entypo/Share.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Share'; let EntypoShare = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M15,13.442c-0.633,0-1.204,0.246-1.637,0.642l-5.938-3.463C7.471,10.433,7.5,10.237,7.5,10.037S7.471,9.642...
examples/query-params/app.js
cgrossde/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var User = React.createClass({ render() { var { query } = this.props.location; var age = query && query.showAge ? '33' : ''; var { userID } = this.props.params; return ( <div className="User"> <h1>User id: {u...
app/containers/TodoDashboard/index.js
kfiil/betadilemma-react-starter
// @flow import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { TodoListComponent } from '../../components/TodoListComponent'; import NewTodoComponent from '../../components/NewTodoComponent'; import * as ...
client/views/notFound/NotFoundPage.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import NotFoundPage from './NotFoundPage'; export default { title: 'components/NotFoundPage', component: NotFoundPage, }; export const Default = () => <NotFoundPage />;
src/docs/components/tiles/TilesExamplesDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Tiles from 'grommet/components/Tiles'; import Tile from 'grommet/components/Tile'; import Card from 'grommet/components/Card'; import Image from 'grommet/components/Image'; import Box from 'grommet/com...
src/components/video_details.js
chiatanyaRVS/reactUdemy1
import React from 'react'; const VideoDetail=(props) => { const video = props.video; if(!video){ return <div>Loading... </div>; } const videoId = video.id.videoId; const urlYT = `https://www.youtube.com/embed/${videoId}`; return( <div className="video-detail col-md-8"> <div className="embed-responsi...
ui/src/components/Rocket/index.js
danielbh/danielhollcraft.com-gatsbyjs
import React from 'react' import './index.scss' import rocket from './little-rocket-light.png' import trail from './trail.png' export default () => ( <div className="frame"> <div className="loader"> <div className="loader-ring"></div> <div className="rocket-wrapper"> <div className="trail-...
src/svg-icons/action/turned-in.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionTurnedIn = pure(ActionTurnedIn); ActionTurnedIn.displayName = 'Ac...
src/routes/SearchPage.js
ndlib/beehive
import React from 'react' import PropTypes from 'prop-types' import Search from '../components/Search//Search' import FacetQueryParms from '../modules/FacetQueryParams' import HoneycombURL from '../modules/HoneycombURL' const SearchPage = ({ match, children }) => { const queryParams = new URLSearchParams(window.loca...
packages/benchmarks/src/implementations/css-modules/Box.js
necolas/react-native-web
import classnames from 'classnames'; import React from 'react'; import View from './View'; import styles from './box-styles.css'; const Box = ({ color, fixed = false, layout = 'column', outer = false, ...other }) => ( <View {...other} className={classnames(styles[`color${color}`], { [styles.fixed]: fix...
src/svg-icons/image/monochrome-photos.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMonochromePhotos = (props) => ( <SvgIcon {...props}> <path d="M20 5h-3.2L15 3H9L7.2 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14h-8v-1c-2.8 0-5-2.2-5-5s2.2-5 5-5V7h8v12zm-3...
Project/node_modules/grommet-cli/templates/static/src/js/index.js
IhtishamShah/GamifiedLearningApp
import '../scss/index.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; let element = document.getElementById('content'); ReactDOM.render(<Router history={browserHistory} routes={routes} />, element); document....
src/containers/Dashboard.js
metasfresh/metasfresh-webui-frontend
import { Hints } from 'intro.js-react'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import Container from '../components/Container'; import DraggableWrapper from '../components/dashboard/DraggableWrapper'; // import { introHints } from '../compo...
node_modules/react-router/es6/Route.js
jsg7440/jQuery-ToDo
'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e...
src/components/Card.js
carlyleec/cc-react
import React from 'react'; // eslint-disable-line import styled from 'styled-components'; const Card = styled.div` display: flex; justify-content: center; align-items: center; flex: 0 0 95%; flex-wrap: wrap; box-shadow: 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12), ...
packages/theme-patternfly-org/components/tableOfContents/tableOfContents.js
patternfly/patternfly-org
import React from 'react'; import { JumpLinks, JumpLinksItem, JumpLinksList } from '@patternfly/react-core'; import './tableOfContents.css'; import { trackEvent } from '../../helpers'; export const TableOfContents = ({ items }) => { // Used to recalculate JumpLinks offset if screen size changes const [width, setWi...
src/parser/warrior/fury/modules/talents/EndlessRage.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import { SELECTED_PLAYER } from 'parser/core/EventFilter'; class EndlessRage extends Analyzer { ra...
src/index.js
Jae-Huh/react-calculator
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/Alert.js
HPate-Riptide/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, bsStyles, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils'; import { State } from './utils/StyleConfig'; const propTypes = { onDismiss: React.PropTypes.func, closeLabel: React.PropTypes.string, }; const defaultPr...
client/src/components/dashboard/Landing.js
FCC-Alumni/alumni-network
import React from 'react'; const link = ( <a href="https://github.com/FCC-Alumni/alumni-network" rel="noopener noreferrer" target="_blank" > {'open-source on GitHub'} </a> ); const image = (source, position) => ( <img alt='FCC logo' className={`ui small image floated ${position}`} sr...
2-state/src/index.js
mariusz-malinowski/tutorial-react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
docs/app/Examples/modules/Progress/Types/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ProgressTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Standard' description='...
src/card.js
JesperLekland/react-native-svg-charts
import React from 'react' import { StyleSheet, Text, View } from 'react-native' class Card extends React.PureComponent { state = { hasError: false, } componentDidCatch(error, info) { console.warn(error, info) this.setState({ hasError: true }) } render() { const { h...
src/svg-icons/maps/beenhere.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsBeenhere = (props) => ( <SvgIcon {...props}> <path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59...
admin/client/components/ListSort.js
stunjiturner/keystone
import { FormNote } from 'elemental'; import classNames from 'classnames'; import React from 'react'; import Popout from './Popout'; import PopoutList from './PopoutList'; import Transition from 'react-addons-css-transition-group'; import vkey from 'vkey'; import CurrentListStore from '../stores/CurrentListStore'; va...
Extension/src/common/translators/reactTranslator.js
AdguardTeam/AdguardBrowserExtension
import React from 'react'; import { translate } from '@adguard/translate'; import { i18n } from './i18n'; /** * Retrieves localised messages by key, formats and converts into react components or string */ export const reactTranslator = translate.createReactTranslator(i18n, React);
website-prototyping-tools/RelayPlayground.js
u9520107/relay
import './RelayPlayground.css'; import 'codemirror/mode/javascript/javascript'; import Codemirror from 'react-codemirror'; import React from 'react'; import ReactDOM from 'react/lib/ReactDOM'; import Relay from 'react-relay'; window.Relay = Relay; import babel from 'babel-core/browser'; import babelRelayPlaygroundPlu...
node_modules/semantic-ui-react/dist/es/views/Feed/FeedDate.js
SuperUncleCat/ServerMonitoring
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; /** * An event or an event summary can contain a date. */ function Fe...
app/javascript/mastodon/features/follow_requests/index.js
res-ac/mstdn.res.ac
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 { ScrollContainer } from 'react-router-scroll-4'; import Column from '../ui/componen...
client/scripts/components/navbar-menu.js
rubeniskov/web-palomasafe
import React from 'react'; export default class NavbarMenu extends React.Component { constructor(props) { super(props); } render() { return ( <div className="content-wrap"> <header id="header-wrapper-mp" className="head-overlay sticky-menu-light"> <div className="sticky-header he...
website-prototyping-tools/RelayPlayground.js
jshanson7/relay
import './RelayPlayground.css'; import 'codemirror/mode/javascript/javascript'; import Codemirror from 'react-codemirror'; import React from 'react'; import ReactDOM from 'react/lib/ReactDOM'; import Relay from 'react-relay'; window.Relay = Relay; import babel from 'babel-core/browser'; import babelRelayPlaygroundPlu...
src/index.js
hao123-fe/weeport
import React from 'react' import ReactDOM from 'react-dom' import App from '@/components/App.js' import {createStore} from 'redux' import {Provider} from 'react-redux' import reducer from '@/store/reducers.js' import '@/stylus/main.styl' const $root = document.createElement('div') $root.classList.add('root') document....
docs/app/Examples/elements/Step/Variations/StepExampleSizes.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Step } from 'semantic-ui-react' const steps = [ { icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' }, { active: true, icon: 'payment', title: 'Billing', description: 'Enter billing information' }, { disabled: true, icon: 'info', title: 'Confirm Orde...
src/components/Session/View/RoundsCompleted.js
diegocasmo/workouter
import React from 'react' export const RoundsCompleted = ({rounds, roundsCompleted}) => ( <p className='wkr-rounds-completed__text'> {roundsCompleted}/{rounds} rounds completed </p> )
src/Navigation/Tabs/tabFive/views/TabFiveScreenOne.js
Ezeebube5/Nairasense
import React from 'react'; import { Body, Header, Left, Right, Button, Title } from 'native-base'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Icon from 'react-native-vector-icons/FontAwesome'; import { View, Text } from 'react-native'; import { Colors } from '../../../../T...
app/javascript/mastodon/features/notifications/index.js
palon7/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
src/ButtonGroup.js
leozdgao/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const ButtonGroup = React.createClass({ mixins: [BootstrapMixin], propTypes: { vertical: React.PropTypes.bool, justified: React.PropTypes.b...
src/components/Settings/ReciterDropdown/index.js
hasibsahibzada/quran.com-frontend
import React, { Component } from 'react'; import * as customPropTypes from 'customPropTypes'; import { connect } from 'react-redux'; import Menu, { MenuItem } from 'quran-components/lib/Menu'; import Radio from 'quran-components/lib/Radio'; import Loader from 'quran-components/lib/Loader'; import Icon from 'quran-compo...
src/decorators/ItemPreview/index.js
edulan/react-virtual-kanban
import React from 'react'; import * as propTypes from './propTypes'; import PureComponent from '../../PureComponent'; export default class ItemPreview extends PureComponent { static propTypes = propTypes; render() { // TODO: Grab a proper item width const { row, rowStyle, containerWidth: width, isGhost ...
src/components/structures/RightPanel.js
aperezdc/matrix-react-sdk
/* Copyright 2015, 2016 OpenMarket Ltd Copyright 2017 Vector Creations Ltd Copyright 2017 New Vector Ltd 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...
src/common/components/Routes.js
scubism/react_todo_web
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import HomePage from '../../modules/home/containers'; import TodoPage from '../../modules/todo/containers'; import TodoList from '../../modules/todo/components/TodoList'; import TodoDetail from '../../modules/todo/com...
client/src/decorators/withViewport.js
pram/recipesearch
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
packages/material-ui-icons/src/SentimentDissatisfied.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SentimentDissatisfied = props => <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5" /><circle cx="8.5" cy="9.5" r="1.5" /><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S...
imports/ui/components/Public/Public.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; const Public = ({ loggingIn, authenticated, afterLoginPath, component, path, exact, ...rest }) => ( <Route path={path} exact={exact} render={props => ( !authenticated ? (Reac...
shared/components/DemoApp/Header/Menu/index.js
thehink/equilab-web
import React from 'react'; import Link from 'react-router-dom/Link'; function Menu() { return ( <ul style={{ marginTop: '1rem', padding: '1rem', backgroundColor: '#c6c6c6' }}> <li><Link to="/">Home</Link></li> <li><Link to="/counter">Counter</Link></li> <li><Link to="/about">About</Link></li> ...
app/components/SellingAidsBadge.js
Byte-Code/lm-digitalstore
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { Map } from 'immutable'; import glamorous from 'glamorous'; import Filter from './Filter'; const Wrapper = glamorous.div({ height: '179px', background: '#333333', dis...
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/package-select.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { localize } from 'i18n-calypso'; import classNames from 'classnames'; import { isEmpty, map, reduce } from 'lodash'; ...
src/containers/Development/index.js
carlyleec/cc-react
import React from 'react'; import { graphql } from 'react-apollo'; import styled from 'styled-components'; import { groupBy } from 'lodash'; import Container from '../../components/Container'; import Loading from '../../components/Loading'; import Card from '../../components/Card'; import CardTitleWithImage from '../....
frontend/src/components/partners/profile/overview/undata/partnerVendor/deleteVendorNumberModal.js
unicef/un-partner-portal
import { prop, find, propEq } from 'ramda'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import Typography from 'material-ui/Typography'; import { withStyles } from 'material-ui/styles'; import Loader from...
javascript/EntryList/SortBy.js
AppStateESS/stories
'use strict' import React from 'react' import PropTypes from 'prop-types' const SortBy = ({sortBy, updateSort,}) => { let sortStr switch (sortBy) { case 'updateDate': sortStr = 'last updated' break case 'title': sortStr = 'title' break default: sortStr = 'date published...
app/imports/ui/pages/user/Favourites.js
mondrus/meteor-starter
/** * @Author: philip * @Date: 2017-05-29T12:59:12+00:00 * @Filename: Favourites.js * @Last modified by: philip * @Last modified time: 2017-05-31T10:23:59+00:00 */ import React, { Component } from 'react'; import { Col, Row } from 'react-bootstrap'; import { Link } from 'react-router-dom'; import NewsFeedL...
js/app.js
jsphdnl/Dreamers
/** * * app.js * * This is the entry file for the application, mostly just setup and boilerplate * code. Routes are configured at the end of this file! * */ // Load the ServiceWorker, the Cache polyfill, the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!../serviceworker.js'; import 'f...
examples/simple/index.js
nd0ut/react-multi-slider
import React from 'react'; import App from './components/App'; React.render( <App />, document.getElementById('root') );
examples/with-redux/pages/index.js
nikvm/next.js
import React from 'react' import { initStore, startClock } from '../store' import withRedux from 'next-redux-wrapper' import Page from '../components/Page' class Counter extends React.Component { static getInitialProps ({ store, isServer }) { store.dispatch({ type: 'TICK', light: !isServer, ts: Date.now() }) ...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
app/src/components/AddRSSModal.js
GetStream/Winds
import React from 'react'; import PropTypes from 'prop-types'; import ReactModal from 'react-modal'; import { Img } from 'react-image'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import fetch from '../util/fetch'; import saveIcon from '../images/icons/save.svg'; import rssIc...
client/framework-webclient/src/routes/Knowledge/subviews/StandardList/components/StandardAddView.js
DimitriZhao/sinosteel
import React from 'react'; import { Form, Input, Tooltip, Icon, Cascader, Select, Row, Col, Checkbox, Button, DatePicker, InputNumber, Card } from 'antd'; const FormItem = Form.Item; const Option = Select.Option; import AddView from 'common/basic/components/AddView'; import QuerySelect from 'components/QuerySelect/Q...
private/classes/Router.js
THernandez03/react-components
import React from 'react'; import { renderToString } from 'react-dom/server'; import { createMemoryHistory } from 'react-router'; import { createStore, applyMiddleware, compose } from 'redux'; import { syncHistoryWithStore } from 'react-router-redux'; import thunk from 'redux-thunk'; import express from 'express'; imp...
src/Parser/Core/Modules/Items/Legion/TombOfSargeras/TarnishedSentinelMedallion.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemDamageDone from 'Main/ItemDamageDone'; import Abilities from 'Parser/Core/Modules/Abilities'; /** * Tarnish...
test/helpers/shallowRenderHelper.js
jolylai/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/components/RichTestBtcPathAndAddress.js
rbdeyoung/react-slingshot-test
import React from 'react'; import PropTypes from 'prop-types'; // Since this component is simple and static, there's no parent container for it. const PathAndAddress = ({path, address}) => { return ( <tr> <td>{path}</td> <td>{address}</td> </tr> ); }; PathAndAddress.propTypes = { path: PropT...
lib/Components/HourlyCardContainer/HourlyCardContainer.js
francylang/weathrly
import React from 'react'; import HourlyCard from '../HourlyCard/HourlyCard.js'; import '../HourlyCardContainer/HourlyCardContainer.css'; const HourlyCardContainer = props => { const hours = props.hour.sevenHourTime || []; const hourArray = hours.map((hour, i) => { return [props.hour.sevenHourTime[i], p...
app/pages/set/roleManage/roleCheckbox.js
duxianwei520/react
import { Checkbox } from 'antd'; import React from 'react'; class RoleCheckbox extends React.Component { constructor(props) { super(props); this.state = { isChecked: false, }; this.onChange = this.onChange.bind(this); } componentWillMount() { this.setState({ isChecked: this.props...
frontend/src/components/guild_icon.js
aliasfalse/rowboat
import React, { Component } from 'react'; class GuildIcon extends Component { render() { if (this.props.guildIcon) { const source = `https://cdn.discordapp.com/icons/${this.props.guildID}/${this.props.guildIcon}.png`; return ( <img src={source} height={this.props.scale || 128} className={...
app/jsx/gradezilla/SISGradePassback/PostGradesApp.js
venturehive/canvas-lms
/* * Copyright (C) 2014 - 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/svg-icons/hardware/router.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareRouter = (props) => ( <SvgIcon {...props}> <path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6...
src/components/common/editor/OpenApi.js
Gisto/Gisto
import React from 'react'; import PropTypes from 'prop-types'; import SwaggerUI from 'swagger-ui-react'; import 'swagger-ui-react/swagger-ui.css'; const OpenApi = ({ url, className }) => { return <SwaggerUI className={ `open-api-body ${className}` } url={ url }/>; }; OpenApi.propTypes = { url: PropTypes.string, ...
src/component/navigation/item/ParentItem.js
pingfengafei/lf-rc-component
/** * Created by pingfengafei on 3/22/17. */ import React from 'react'; import classNames from 'classnames'; import './Item.less'; class ParentItem extends React.Component { constructor(props) { super(props); this.state = { open: false }; this.handleClick = this.handleClick.bind(this); } ...
src/component/Item.js
CompileYouth/SmallFish
import React, { Component } from 'react'; import { View, Text } from 'react-native'; export default class Application extends Component { render() { return ( <View> <Text /> </View> ); } }
src/svg-icons/av/subscriptions.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSubscriptions = (props) => ( <SvgIcon {...props}> <path d="M20 8H4V6h16v2zm-2-6H6v2h12V2zm4 10v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2v-8c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-6 4l-6-3.27v6.53L16 16z"/> </SvgIcon> )...
src/components/posts_index.js
vmandic/ReduxBlogEntries
import React, { Component } from 'react'; import { connect } from "react-redux"; import { fetchPosts } from "../actions/index"; import { Link } from "react-router"; class PostsIndex extends Component { componentWillMount() { this.props.fetchPosts(); } renderPosts() { return this.props.posts.map(post => ...
imports/old/signup/hello.js
jiyuu-llc/jiyuu
import React from 'react'; const Hello = () => ({ helloNext(){ FlowRouter.go("/register/1"); }, render() { return ( <div id="jiyuu"> <h2 className="question">Hello there. Would you like to join jiyuu?</h2> <div id="question-card" className="form-group"> <br/> ...
src/components/Html.js
fkenk/Majsternia
/** * 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 PropTypes from 'prop-...
src/work/components/ProjectCardDescription.js
elailai94/elailai94.github.io
import React, { Component } from 'react'; import { Card } from 'semantic-ui-react'; import PropTypes from 'prop-types'; class ProjectCardDescription extends Component { render() { const { text } = this.props; return ( <Card.Description style={styles.description}> {text} </Card.Descriptio...
packages/wix-style-react/src/ToggleSwitch/ToggleSwitch.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { ToggleSwitch as CoreToggleSwitch } from 'wix-ui-core/dist/src/components/toggle-switch'; import ToggleOff from 'wix-ui-icons-common/system/ToggleOff'; import ToggleOn from 'wix-ui-icons-common/system/ToggleOn'; import ToggleOffSmall from 'wix-ui-ic...
src/routes/app/routes/DataGraph/components/xDashboard.js
ahthamrin/kbri-admin2
import React from 'react'; import QueueAnim from 'rc-queue-anim'; import KPIsChart from './KPIsChart'; import AquisitionChart from './AquisitionChart'; import StatBoxes from './StatBoxes'; import EngagementStats from './EngagementStats'; import BenchmarkChart from './BenchmarkChart'; const Main = () => ( <div classN...
src/components/accessoryfooter.js
waxmansgym/ratio-calculator
/* Waxman's Gym Ratio Calculator Copyright (C) 2017 Waxman's Gym This program is free software: 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 (at your option) any later version. This program ...
src/containers/DevTools.js
FiviumAustralia/RNSH-Pilot
import React from 'react'; import { createDevTools } from 'redux-devtools'; import FilterMonitor from 'redux-devtools-filter-actions'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-...