path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
node_modules/react-bootstrap/es/Alert.js
yeshdev1/Everydays-project
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
components/index.js
volodalexey/spachat
import React from 'react' import {Router, Route, browserHistory} from 'react-router' import localization from '../js/localization.js' import users_bus from '../js/users_bus.js' import Login from '../components/login' import Chat_App from '../components/chat_app' const requireAuth = function(nextState, replace) { ...
src/MainPage.js
Mathannus/porvoonkuntoajot
import React, { Component } from 'react'; import {Link} from 'react-router-dom'; import './MainPage.css' class MainPage extends Component { render() { return ( <div className="mainPage"> <div className="filler-div">&nbsp;</div> <div className="contentBox"> <h1>PORVOON KUNTOAJOT ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
HelpfulHuman/helpful-react-scripts
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function* load(limit) { let i = 1; while (i <= limit)...
admin/client/components/Lightbox.js
riyadhalnur/keystone
import React from 'react'; import blacklist from 'blacklist'; import Portal from './Portal'; import Transition from 'react-addons-css-transition-group'; const BODY = document.getElementsByTagName('body')[0]; var Lightbox = React.createClass({ displayName: 'Lightbox', propTypes: { backdropClosesModal: React.PropTy...
src/js/pages/Proposals/Experience/PreviewPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../../../i18n/Translate'; import TopNavBar from '../../../components/TopNavBar/TopNavBar.js'; import '../../../../scss/pages/proposals/experience/preview.scss'; import CreatingProposalStore from "../../../stores/Creatin...
tests/react_16_6/Suspense.js
samwgoldman/flow
// @flow import React from 'react'; const {Suspense} = React; function Loading() { return <div>Loading...</div>; } { <Suspense fallback={Loading} /> // Error: function is incompatible with exact React.Element } { <Suspense fallback={<Loading/>} /> } { <Suspense fallback={<Loading/>}> <div>Hello</div> ...
app/javascript/mastodon/features/ui/util/reduced_motion.js
PlantsNetwork/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
src/pages/moduleHomePage/essence/Essence.js
HeliumLau/Hoop-react
import React from 'react'; import ArticleList from 'components/ArticleList.js'; export default class Essence extends React.Component { constructor(props) { super(props); this.state = { articlelist: [ { title: '惊!安东尼签约火箭竟只为他!', ...
pathfinder/vtables/csmoperations/src/common/Link.js
leanix/leanix-custom-reports
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Link extends Component { constructor(props) { super(props); this._handleClick = this._handleClick.bind(this); } _handleClick(e) { e.preventDefault(); lx.openLink(this.props.link, this.props.target); } render() { if (!...
src/svg-icons/content/content-copy.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentCopy = (props) => ( <SvgIcon {...props}> <path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/> </SvgIcon> );...
src/components/enquiry/EnquiryButton.js
tutorcruncher/socket-frontend
import React from 'react' import {Link, Route} from 'react-router-dom' import EnquiryModal from './EnquiryModal' const EnquiryButton = ({root, config}) => ( <div className="tcs-app"> <div className="tcs-enquiry-modal"> <Link to={root.url('enquiry')} className="tcs-button tcs-enquiry-button"> {confi...
src/components/Modal-Wrapper.js
MichaelLSmith/recipeBox
import React, { Component } from 'react'; import { Button, ButtonToolbar, Modal } from 'react-bootstrap'; import RecipeForm from '../containers/Recipe-Form'; export default class ModalWrapper extends Component { //props: //isOpen = bool //onCloseRequest = function --> closeModal as defined in App.js renderTit...
web/src/containers/Login.js
miaolz123/samaritan
import { ResetError } from '../actions'; import { UserLogin } from '../actions/user'; import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import { Button, Form, Input, Icon, Tooltip, notification } from 'antd'; class Login extends React.Component { constru...
app/components/Account.js
deepakpster/Dinder
import React, { Component } from 'react'; import { Content, Footer, Button, InputGroup, Input, View, Icon, Text, Spinner } from 'native-base'; import AuthStore from './../stores/authStore' const authStore = new AuthStore() export default class Account extends Component { render() { const {state}...
client/app/components/List/index.js
jjt/ffsssshh
import React from 'react'; import styles from './styles.css'; class List extends React.Component { render() { return ( <div className={ styles.listWrapper }> <ul className={ styles.list }> {this.props.items.map((item, index) => { return ( <this.props.render key=...
src/components/NPCInfoBrowser.js
kristyjy/battleplan
import React from 'react'; //import { Button } from 'reactstrap'; //import './InitiativePanel.scss' class NPCInfoBrowser extends React.Component { constructor(props, context) { super(props, context); } render() { return ( <div className="npc-info-browser"> NPC Info </div> ); }...
packages/insights-web/src/scenes/explorer/filter/index.js
mariusandra/insights
import './styles.scss' import React from 'react' import { useValues } from 'kea' import { Icon } from 'antd' import OneFilter from './one-filter' import explorerLogic from 'scenes/explorer/logic' export default function Filter () { const { filter } = useValues(explorerLogic) let i = 0 return ( <div cla...
src/components/secrets/SecretUserListNew.js
secretin/secretin-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import * as MetadataActions from 'slices/MetadataSlice'; import Secret from 'models/Secret'; import User, { UserRights, userRightLabel } from 'models/User'; import { confirm } from 'components/utiliti...
src/views/Footer.js
romanantl/aws-js-self-updater
import React from 'react'; export default class Footer extends React.Component { render() { return ( this.props.html ? <div dangerouslySetInnerHTML={{__html: this.props.html}}></div> : <div>Actual footer</div> ) } }
video_browser/src/components/video_list_item.js
williampuk/ReduxCasts
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div className="media-left"> <img clas...
examples/js/column-filter/select-filter-with-default-value.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) ...
docs/src/components/UsePictureSlideshow.js
HsuTing/cat-components
'use strict'; import React from 'react'; import radium from 'radium'; import PictureSlideshow from 'cat-components/lib/picture-slideshow'; import Button from 'cat-components/lib/button'; import * as style from './style/usePictureSlideshow'; const imgs = [{ src: 'https://scontent-tpe1-1.cdninstagram.com/t51.2885-15...
app/components/Dish.js
rondobley/meal-planner
import React from 'react'; import { Link } from 'react-router'; import DishStore from '../stores/DishStore'; import DishActions from '../actions/DishActions'; import Modal from './Modal'; var s = require('underscore.string'); class Dish extends React.Component { constructor(props) { super(props); ...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
dadams85/dadams85.github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
node_modules/react-icons/fa/group.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaGroup = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m12.3 20q-3.4 0.1-5.5 2.7h-2.8q-1.7 0-2.8-0.9t-1.2-2.4q0-7.4 2.6-7.4 0.1 0 0.9 0.5t2 0.8 2.5 0.5q1.4 0 2.7-0.5-0.1 0.8-0.1 1.4 0 2.9 1.7 5.3z m22.3 13.2q0 2.5-1.6 4t-4 ...
src/components/GeolocationComponents/index.js
joelvoss/react-gmaps
import React from 'react'; import styled from 'styled-components'; import Loader from 'components/LoadingOverlay/Loader'; /** * Simple loading component. * @param {object} props - Component properties. */ export const GeolocationLoading = props => { const LoadingWrap = styled.div` display: ${props => props.vi...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js
prometheusresearch/create-react-app
/** * 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. */ import Rea...
examples/universal/server/server.js
JoeStanton/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path' import Express from 'express' import qs from 'qs' import webpack from 'webpack' import webpackDevMiddleware from 'webpack-dev-middleware' import webpackHotMiddleware from 'webpack-hot-middleware' import webpackConfig from '../webpack.config...
src/icons/IosCheckmarkEmpty.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosCheckmarkEmpty extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M223.9,329.7c-2.4,2.4-5.8,4.4-8.8,4.4s-6.4-2.1-8.9-4.5l-56-56l17.8-17.8l47.2,47.2l124.8-125.7l17.5,18.1L22...
src/containers/AppContainer/index.js
LamouchiMS/adintel
// Subscribe to store here import React from 'react'; import {Router, Route, IndexRoute, browserHistory} from 'react-router'; import Layout from '../../containers/Layout'; import First from '../../components/First'; import Database from '../../containers/Database'; import MassComm from '../../containers/MassComm'; imp...
src/components/NotebookListItem/TagList.js
anibali/showoff
import React from 'react'; const contrastBW = (hex) => { hex = hex.replace(/^\s*#|\s*$/g, ''); const r = parseInt(hex.substr(0, 2), 16); const g = parseInt(hex.substr(2, 2), 16); const b = parseInt(hex.substr(4, 2), 16); const luminance = (0.299 * r) + (0.587 * g) + (0.114 * b); return luminance > 150 ? '...
app/app.js
thomasmichaelwallace/network-be
import React from 'react'; import { Provider } from 'react-redux'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import ChannelFinder from './containers/ChannelFinder'; const app = ({ store }) => ( <Provider store={store}> <MuiThemeP...
src/components/graphs/spider-graph.js
marcusdarmstrong/mockdraftable-web
// @flow import React from 'react'; import { round } from 'lodash'; import type { Point } from '../../types/graphing'; import type { Color } from '../../types/domain'; type Props = { points: Point[], factors: number[], className: string, scale: number, offset: number, color?: Color, }; const SpiderGraph...
src/components/Form/InputGroup.js
antoinechalifour/Reddix
import React from 'react' import styled from 'styled-components' const Outer = styled.div` & + & { margin-top: 24px; } ` const InputGroup = ({ children }) => { return ( <Outer> {children} </Outer> ) } export default InputGroup
examples/04 Sortable/Simple/Container.js
randrianov/react-dnd
import React, { Component } from 'react'; import update from 'react/lib/update'; import Card from './Card'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; const style = { width: 400 }; @DragDropContext(HTML5Backend) export default class Container extends Co...
src/calendar-body/CalendarDate.js
topcatcreatives/react-date-scroll
import React, { Component } from 'react'; import './styles/calendar-date.css'; class CalendarDate extends Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick() { if (this.props.date !== null) { this.props.dateClick(this.props.date); } } ...
src/components/Tabs.js
rackt/react-tabs
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { childrenPropType, onSelectPropType, selectedIndexPropType, } from '../helpers/propTypes'; import UncontrolledTabs from './UncontrolledTabs'; import { getTabsCount } from '../helpers/count'; const MODE_CONTROLLED = 0; const MOD...
app/javascript/mastodon/features/getting_started/index.js
Kirishima21/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/app/development/trc/MajorDevelopmentDashboard.js
cityofasheville/simplicity2
import React from 'react'; // import SectionNav from './SectionNav'; import { Link } from 'react-router'; import Accordion from '../../../shared/Accordion'; import ErrorBoundary from '../../../shared/ErrorBoundary'; import { devDashSections } from './textContent'; const introductoryContent = ( <header style={{paddin...
src/svg-icons/editor/attach-file.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorAttachFile = (props) => ( <SvgIcon {...props}> <path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2...
src/svg-icons/action/trending-up.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingUp = (props) => ( <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/> </SvgIcon> ); ActionTrendingUp = pure(ActionTrendingUp); ActionTrending...
src/main.js
rumblesan/web-befunge
/* global Two: false */ import 'babel-polyfill'; import * as Befunge from './befunge'; import * as Grid from './befunge/grid'; import * as GridGFX from './befunge/gridGfx'; import * as Interpreter from './befunge/interpreter'; import * as PointerGFX from './befunge/pointerGfx'; import * as Terminal from './ui/t...
packages/vx-legend/src/legends/Legend.js
Flaque/vx
import React from 'react'; import cx from 'classnames'; import PropTypes from 'prop-types'; import LegendItem from './LegendItem'; import LegendLabel from './LegendLabel'; import LegendShape from './LegendShape'; import valueOrIdentity from '../util/valueOrIdentity'; Legend.propTypes = { className: PropTypes.string,...
app/client.js
sagnikm95/internship-portal
import ReactDOM from 'react-dom'; import React from 'react'; import { Router } from 'react-router-dom'; import { Grid } from 'semantic-ui-react'; import Routes from './routes'; import browserHistory from './history'; import './globals.scss'; ReactDOM.render( <Router history={browserHistory}> {/* Responsive...
src/svg-icons/action/settings-input-antenna.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputAntenna = (props) => ( <SvgIcon {...props}> <path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 ...
client/src/javascript/components/modals/feeds-modal/FeedsTab.js
jfurrow/flood
import _ from 'lodash'; import {defineMessages, FormattedMessage, injectIntl} from 'react-intl'; import { Button, Checkbox, Form, FormError, FormRow, FormRowGroup, FormRowItem, Select, SelectItem, Textbox, } from 'flood-ui-kit'; import formatUtil from '@shared/util/formatUtil'; import React from 're...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-internal-item-list.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, SectionMixin, Tools} from './../../common/common.js'; import './item-list.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, SectionMixin ], //@@viewOff:mixins //@@viewOn:statics s...
src/util/RichTextTagger.js
Hylozoic/hylo-redux
import React from 'react' import { getKeyCode, keyMap } from '../util/textInput' import { exitNode, insertJSX, removeCurrentNode, replaceNodeWithJSX, selectCurrentNode } from '../util/tinymce' import { includes, some } from 'lodash' export const hashtagAttribute = 'data-autocompleting' export const justCreat...
cerberus-dashboard/src/components/SDBMetadata/SDBMetadata.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 ...
assets/jqwidgets/demos/react/app/complexinput/fluidsize/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxComplexInput from '../../../jqwidgets-react/react_jqxcomplexinput.js'; class App extends React.Component { render() { return ( <JqxComplexInput ref='myComplexInput' width={'30%'} height={25} value={'1000 + 2...
example/src/index.js
ionutmilica/redux-modal-container
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store'; import App from './app'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root'), );
front/src/components/icons/WifiIcon.js
MichaelKostin/mars-rover
import React from 'react'; import PropTypes from 'prop-types'; const WifiIcon = ({ quality }) => ( <svg xmlns="http://www.w3.org/2000/svg" height="50px" viewBox="0 0 466 466.47546" width="50px"> <path fill="#d6f6e9" d="m115.449219 351.132812c4.042969 4.003907 9.910156 5.554688 15.40625 4.078126l-19.488281-19.488...
src/components/footer/footer.js
jdaio/jdaio.github.io
/** * Footer Component * * @description Renders the global site footer. */ import React from 'react'; import { useStaticQuery, graphql } from 'gatsby'; import PropTypes from 'prop-types'; import Wrapper from '../wrapper/wrapper'; import style from './footer.module.scss'; function Footer({ id }) { /** * G...
app/app.js
CarlaCrandall/DoItNow
import React, { Component } from 'react'; import { addNavigationHelpers, NavigationActions } from 'react-navigation'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { BackAndroid, View } from 'react-native'; import * as actions from './actions'; import { AppContainerStyles } f...
src/containers/DevTools.js
879479119/Github-Mobile
import React from 'react' // 从redux-devtools中引入createDevTools import { createDevTools } from 'redux-devtools' // 显示包是单独的,要额外指定 import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' // 创建DevTools组件 const DevTools = createDevTools(( <DockMonitor toggleVisibilit...
views/containers/AppointmentsView.js
gvaldambrini/madam
import React from 'react'; import moment from 'moment'; import BaseAppointmentsView from './BaseAppointmentsView'; // The appointments main container used in the customers section. export default React.createClass({ propTypes: { params: React.PropTypes.shape({ id: React.PropTypes.string.isRequired })...
packages/containers/src/ComponentForm/fields/MultiSelect/MultiSelect.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import MultiSelect from '@talend/react-components/lib/MultiSelect'; import Form from '@talend/react-forms'; const FieldTemplate = Form.UIForm.FieldTemplate; export default class MultiSelectField extends React.Component { constructor(props) { super(prop...
src1/common/messageComponent/view/Message.react.js
Cron-J/CSV-REE
import React from 'react'; import * as MessageAction from '../actions/messageActions'; import NotificationSystem from 'react-notification-system'; import { Button, Modal } from 'react-bootstrap'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; class Message extends React.Component { ...
src/svg-icons/action/chrome-reader-mode.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChromeReaderMode = (props) => ( <SvgIcon {...props}> <path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"/> ...
src/client/components/devtools-cursore/index.js
kevinhikaruevans/uojs2
import React, { Component } from 'react'; import style from './style' class DevtoolsCursore extends Component { static displayName = '[component] devtools-cursore'; state = { x : 150, y : 150, cursor : 'default', list : [ 'col-resize', ...
test/helpers/shallowRenderHelper.js
js-for-fun/wishcorn-frontend
/** * 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'...
app/jsx/outcomes/OutcomeAlignmentDeleteLink.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/svg-icons/av/videocam.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideocam = (props) => ( <SvgIcon {...props}> <path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/> </SvgIcon> ); AvVideocam = pure(AvVideocam); Av...
src/containers/SearchView/FilterView.js
JamesJin038801/CampID
import { Text, View, Platform, Image, ScrollView, StyleSheet } from 'react-native'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import I18n from 'react-native-i18n'; import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; import NavigationBar from 'react-n...
redux-weather-forecast/src/index.js
andreassiegel/react-redux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
frontend/src/components/slidez/Arrows.js
viewportvr/daysinvr
import React from 'react'; import './Slideshow.css'; const Arrows = function(props) { return ( <div className="arrows"> <span onClick={props.decreaseCount} className="arrow btn-arrow btn-arrow-left" /> <span onClick={props.increaseCount} className="arrow btn-arro...
app/components/ToggleOption/index.js
likesalmon/likesalmon-react-boilerplate
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequir...
src/index.js
bogdanovroman/booklist-redux
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; import App from './components/app'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider>, document...
examples/with-url-object-routing/pages/index.js
dizlexik/next.js
import React from 'react' import Link from 'next/link' const href = { pathname: '/about', query: { name: 'next' } } const as = { pathname: '/about/next', hash: 'title-1' } export default () => ( <div> <h1>Home page</h1> <Link href={href} as={as}> <a>Go to /about/next</a> </Link> </div> ...
app/javascript/mastodon/features/list_editor/components/account.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
app/containers/Header/index.js
gitlab-classroom/classroom-web
/* * * Header * */ import React from 'react'; import { connect } from 'react-redux'; import selectHeader from './selectors'; import AppBar from 'material-ui/AppBar'; import styled from 'styled-components'; const AppBarContainer = styled.div` position: fixed; left: 0; top: 0; right: 0; zIndex: 10; `; ex...
lib/component-library-slides/DevEnvironment.js
RallySoftware/rally-present
import React from 'react'; const imgSrc = require('./images/kitt.gif'); export default class Slide extends React.Component { render() { return ( <div> <h1>Use a separate environment for development</h1> <img src={ imgSrc } /> </div> ); } }
src/components/common/svg-icons/navigation/more-horiz.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMoreHoriz = (props) => ( <SvgIcon {...props}> <path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-...
packages/mineral-ui-icons/src/IconBrightness2.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 IconBrightness2(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPr...
src/AddTask.js
mikadamsterdam/react_for_project
import React from 'react'; import jQuery from 'jquery'; class AddTask extends React.Component { onSubmit(event){ // if we don't call event.preventDefault, the browser will think we want to submit the form event.preventDefault(); this.props.onSubmit(this.refs.newTask.value, this.refs.newDes...
src/client.js
leviluo/oneToone
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory, match } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './contai...
renderer/components/header.js
trainto/Catalogger
'use strict'; import React from 'react'; import {Button, Glyphicon, form, Checkbox, Dropdown, MenuItem, Badge} from 'react-bootstrap'; import {dispatcher} from '../dispatcher'; import './styles/header.css'; class Header extends React.Component { constructor(props) { super(props); this.state = { isStar...
example/src/server/index.js
tizmagik/react-csjs
import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import App from '../components/App'; import { getStyle } from 'react-csjs'; const server = express(); const clientAssets = require(KYT.ASSETS_MANIFEST); server.use(express.static(path.join(proces...
src/highOrderComponents/Redux.js
lapanoid/redux-as-component
import React, { Component } from 'react'; import R from 'ramda'; import _ReduxOptions from './ReduxOptions'; import _ReduxHolder from './ReduxHolder'; export default R.curry((callbacksSelectorsMap, changedPropKeyAcMap, methodsMap, createReduxFunc, reduxOptions, _Component)=>{ const ReduxHolder = _ReduxHolder(createRe...
src/components/cards/left-container/sidebar-header.js
vFujin/HearthLounge
import React from 'react'; import _ from 'lodash'; import Button from "../../buttons/button"; const SidebarHeader = ({filters, inExtensions, inDeckCreation, handleFilterViewToggle, handleFilterReset}) =>{ return ( <h3 className="sidebar__header"> Filters <div> {!_.isEmpty(filters) &&<Button h...
Example/DynamicExample.js
skv-headless/react-native-scrollable-tab-view
import React from 'react'; import { Text, TouchableHighlight, } from 'react-native'; import TimerMixin from 'react-timer-mixin'; import ScrollableTabView, { ScrollableTabBar, } from 'react-native-scrollable-tab-view'; import createReactClass from 'create-react-class'; const Child = createReactClass({ onEnter() {...
docs/src/app/components/pages/discover-more/RelatedProjects.js
nathanmarks/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import relatedProjectsText from './related-projects.md'; const RelatedProjects = () => ( <div> <Title render={(previousTitle) => `Related Projects - ${previousTitle}`} /> <MarkdownEleme...
src/js/Components/Score/Team.js
gabsprates/facomp-quiz
import React, { Component } from 'react'; export default function Team(props) { return ( <div className={`team ${props.team}`}> <span className='score'> { props.score } </span> </div> ); }
packages/stockflux-container/src/index.js
ScottLogic/StockFlux
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this come...
node_modules/react-router/es/Router.js
chenjic215/search-doctor
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
src/parser/hunter/beastmastery/modules/talents/KillerInstinct.js
FaideWW/WoWAnalyzer
import React from 'react'; import SpellLink from 'common/SpellLink'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import ItemDamageDone from 'interface/others/ItemDamageDone'; import StatisticListBoxItem from 'interface/others/StatisticListBoxItem'; import calculateEffectiveDamage from 'parser/...
src/containers/search_bar.js
dushyant/ReactWeatherApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: ''}; this.onInputChange...
docs/app/Examples/views/Comment/Content/CommentExampleAvatar.js
vageeshb/Semantic-UI-React
import React from 'react' import { Comment } from 'semantic-ui-react' const CommentExampleAvatar = () => ( <Comment.Group> <Comment> <Comment.Avatar src='http://semantic-ui.com/images/avatar/small/elliot.jpg' /> <Comment.Content> <Comment.Author as='a'>Elliot Fu</Comment.Author> </Comme...
src/packages/@ncigdc/modern_components/DownloadClinicalButton/DownloadClinicalButton.js
NCI-GDC/portal-ui
/* @flow */ import React from 'react'; import { compose, withState } from 'recompose'; import DownloadButton from '@ncigdc/components/DownloadButton'; import { makeFilter } from '@ncigdc/utils/filters'; import Dropdown from '@ncigdc/uikit/Dropdown'; import DownloadIcon from '@ncigdc/theme/icons/Download'; import Spinn...
node_modules/react-bootstrap/es/PaginationButton.js
cmccandless/SolRFrontEnd
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 ...
packages/react-router-native/examples/RouteConfig.js
d-oliveros/react-router
import React from 'react' import { StyleSheet, Text, AppRegistry, View } from 'react-native' import { NativeRouter, Route, Link } from 'react-router-native' // Some folks find value in a centralized route config. // A route config is just data. React is great at mapping // data into components, and <Route> is a compon...
src/svg-icons/notification/phone-paused.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C...
src/components/Overdrive/index.js
KNETIC-KRPF/KNETIC-CLIENT
import React, { Component } from 'react'; import Knob from '../Knob'; import RockerSwitch from '../RockerSwitch'; import './Overdrive.css'; class Overdrive extends Component { constructor(props) { super(props) this.state = { isToggleOn: false } this.handleClick = this.handleClick.bind(this) } handleClic...
src/svg-icons/maps/terrain.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTerrain = (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> ); MapsTerrain = pure(MapsTerrain); MapsTerrain.displayName = 'MapsTerr...
src/decorators/view-port.js
ecasilla/flux-starter
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default size for server-side rendering const RESIZE_EVENT = 'res...
src/EventEndingRow.js
manishksmd/react-scheduler-smartdata
import PropTypes from 'prop-types' import React from 'react' import EventRowMixin from './EventRowMixin' import { eventLevels } from './utils/eventLevels' import message from './utils/messages' import range from 'lodash/range' let isSegmentInSlot = (seg, slot) => seg.left <= slot && seg.right >= slot let eventsInSlot ...
frontend/src/Section.js
googleinterns/step78-2020
import React from 'react'; import TextField from '@material-ui/core/TextField'; import {Input, Card, CardContent} from '@material-ui/core'; import FormLabel from '@material-ui/core/FormLabel'; import FormGroup from '@material-ui/core/FormGroup'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import ...
src/routes/dashboard/index.js
zsu13579/whatsgoinontonight
/** * 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 Layout from '../../co...
src/components/Home.js
hrasoa/rsk
import React from 'react'; import PostListing from './Posts/PostListing'; export default props => ( <div> <h2>Latest Posts</h2> <PostListing {...props} /> </div> );