path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
pages/catalog.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' import {flowRight, get} from 'lodash' import getConfig from 'next/config' import {_get, _post} from '../lib/fetch' import {isObsolete} from '../lib/catalog' import attachI18n from '../components/hoc/attach-i18n' import withErrors from '../components/hoc/wit...
node_modules/native-base/Components/Widgets/Icon.js
paulunits/tiptap
/* @flow */ 'use strict'; import React from 'react'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import computeProps from '../../Utils/computeProps'; import Icon from 'react-native-vector-icons/Ionicons'; export default class IconNB extends NativeBaseComponent { getInitialStyle() { ret...
src/components/Feedback/Feedback.js
Rockyluoqi/map_realtime_render
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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, { Component } from 'react'; import withStyle...
milestones/07-css-modules/After/src/carousel.js
jaketrent/react-drift
import PropTypes from 'prop-types' import React from 'react' import styleable from 'react-styleable' import css from './carousel.module.css' function renderSlides(props) { return React.Children.map(props.children, (slide, i) => { return React.cloneElement(slide, { style: { ...slide.props.style, ...
app/app.js
Frai/Events
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/svg-icons/navigation/subdirectory-arrow-left.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationSubdirectoryArrowLeft = (props) => ( <SvgIcon {...props}> <path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"/> </SvgIcon> ); NavigationSubdirectoryArrowLeft = pure(Navigation...
app/scripts/containers/withDrawerState.js
adzialocha/hoffnung3000
import React from 'react' import { connect } from 'react-redux' import { collapseAll, toggleNavigation, toggleSidebar } from '../actions/drawer' export default function withDrawerState(WrappedComponent) { function mapStateToProps(state) { return { ...state.drawer, } } return connect(mapStateToPro...
docs/src/examples/modules/Search/Types/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const SearchTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Standard' description='A...
src/routes/report/index.js
ynu/ecard-wxe
import React from 'react'; import Report from './Report'; import { getShopBill as getDailyBill } from '../../actions/daily'; import { getShopBill as getMonthlyBill } from '../../actions/monthly'; export default { path: '/shop/:shopId/report/:accDate', async action({ params }) { let title = '云南大学一卡通日账单'; ...
src/Parser/Priest/Discipline/Modules/Features/PurgeTheWicked.js
enragednuke/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import En...
src/components/player-badge.js
orouvinen/dnf-ranks-frontend
import React, { Component } from 'react'; import EloChart from './elo-chart'; class PlayerBadge extends Component { matchWinCount() { return this.props.matches .filter(m => m.winner === this.props.player.nick) .length; } winPercentage() { return this.matchWinCount() ...
src/components/common/svg-icons/action/account-box.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
src/components/Navigation/index.js
happyboy171/Feeding-Fish-View-
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 'isomorp...
pkg/interface/groups/src/js/api.js
jfranklin9000/urbit
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import { uuid } from '/lib/util'; import { store } from '/store'; class UrbitApi { setAuthTokens(authTokens) { this.authTokens = authTokens; this.bindPaths = []; this.contactHook = { edit: this.contactEdit.bind(t...
app/app.js
hukid/shootingstudio
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; // TODO constrain eslint import/no-unresolved rule to this block // Load the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!./manifest.json'; // eslint-disable-lin...
imports/ui/components/profile/profile-header.js
irvinlim/free4all
import React from 'react'; import Chip from 'material-ui/Chip'; import Link from '../../layouts/link'; import * as Colors from 'material-ui/styles/colors'; import * as UsersHelper from '../../../util/users'; import * as IconsHelper from '../../../util/icons'; const makeChip = (role, index) => { let label; if (ro...
src/components/GridHeader.js
sateez/salestracker
import React from 'react'; const GridHeader = (props) => { return ( <div className='grid-row row' > <div className='grid-header-row-column column-image col-sm-4'>product</div> <div className='grid-header-row-column column-code col-sm-1'>product id </div> ...
client/src/components/MyDrawer.js
juandaco/voting-app
import React from 'react'; import { Drawer, Navigation, Badge, Icon } from 'react-mdl'; const MyDrawer = ( { username, userPollCount, showUserDashboard, showAllPolls, loginDialog, logoutUser, aboutDialog, }, ) => { const divPointer = { cursor: 'pointer' }; return ( <Drawer title...
src/components/Dialogs/EditMediaDialog/index.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import Dialog from '@mui/material/Dialog'; import DialogTitle from '@mui/material/DialogTitle'; import DialogContent from '@mui/material/DialogContent'; import IconButton from '...
packages/core/upload/admin/src/components/PluginIcon/index.js
wistityhq/strapi
/** * * PluginIcon * */ import React from 'react'; import Landscape from '@strapi/icons/Landscape'; const PluginIcon = () => <Landscape />; export default PluginIcon;
src/SFormSummary.js
thr-consulting/controls
// @flow import React from 'react'; import Form from 'react-formal'; import hash from 'string-hash'; import {Message} from 'semantic-ui-react'; type Props = { otherErrors?: string[], }; /** * Displays a message indicating any errors with the form. Include inside a SForm to automatically read the form's errors. * ...
src/routes.js
SiHeTech/react-templete
import React from 'react'; import { Route } from 'react-router'; import App from './containers/app'; export const routes = ( <Route path="/" component={App} /> ); export default routes;
javascript/tutorial-redux/containers/AddTodo.js
jtwp470/my-programming-learning-book
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return ...
src/components/Tabs/Tabs.js
Galernaya20/galernaya20.com
// @flow import React from 'react' import {Tab, Tabs, TabList, TabPanel} from 'react-tabs' import styled from 'styled-components' const Self = styled.div` .react-tabs__tab-list { margin: 0; padding: 0; list-style-type: none; border-bottom: 1px solid #f1f1f1; } .react-tabs__tab { cursor: poin...
app/components/connect/sidebar/component.js
mic-fadeev/postglass
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as FavoritesActions from '../../../actions/favorites'; import SidebarItemComponent from './item/component'; const propTypes = { getFavorites: React.PropTypes.func.isRequired, setC...
react_native_frontend/src/components/form/backButton.js
CUNYTech/BudgetApp
import React, { Component } from 'react'; import { TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/SimpleLineIcons'; export default class BackButton extends Component { render() { return ( <TouchableOpacity key="icon_left" onPress={this.props.onPressIcon} style={styleWr...
node_modules/react-flexbox-grid/spec/root.js
SerendpityZOEY/Fixr-RelevantCodeSearch
/* global VERSION */ require('./stylesheets/base'); import box from './stylesheets/modules/box'; import React from 'react'; import {Grid, Row, Col} from '../src/index'; const Root = () => ( <div> <h1>React Flexbox Grid <small>Spec {VERSION}</small></h1> <Grid> <Row> <Col xs={12} sm={3} md={2} ...
src/common/components/vanilla/table-interactive/head.js
canonical-websites/build.snapcraft.io
import PropTypes from 'prop-types'; import React from 'react'; import styles from './table.css'; export default function Head(props) { return ( <header className={ styles.head }> { props.children } </header> ); } Head.propTypes = { children: PropTypes.node };
blueocean-material-icons/src/js/components/svg-icons/image/wb-cloudy.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageWbCloudy = (props) => ( <SvgIcon {...props}> <path d="M19.36 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96z"/> </SvgIcon> ); ImageWbCloud...
webpack/components/Search/index.js
johnpmitsch/katello
/* eslint-disable import/no-extraneous-dependencies */ import React, { Component } from 'react'; import { ControlLabel } from 'react-bootstrap'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import TypeAhead from '../../move_to_pf/TypeAhead/TypeAhead'; import api from '...
project/src/scenes/Blog/components/ArticleImage/ArticleImage.js
boldr/boldr
/* @flow */ import React from 'react'; import classnames from 'classnames'; import { StyleClasses } from '@boldr/ui'; const BASE_ELEMENT = StyleClasses.ARTICLE_IMAGE_WRAP; const BASE_ELEMENT2 = StyleClasses.ARTICLE_IMAGE; const ArticleImage = (props: { imageSrc: string, altText: string, className?: string, img...
src/interface/statistics/components/RadarChart/index.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { scaleLinear, scaleOrdinal } from 'd3-scale'; import { schemeCategory10 } from 'd3-scale-chromatic'; import { lineRadial, curveCardinalClosed, curveLinearClosed } from 'd3-shape'; import SvgWrappingText from './SvgWrappingText'; // This is heavily...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-layout-row.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, SectionMixin, CcrWriterMixin, ColorSchemaMixin} from '../common/common.js'; import RowMixin from './row-mixin.js'; import Column from './column.js'; import './row.less'; export const Row = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin...
src/web/Line/helpers/subComponents.js
Krizzu/react-progressor
import React from 'react'; import propTypes from 'prop-types'; const absoluteStyle = { position: 'absolute', left: 0, top: 0, }; export const Container = ({ style, children }) => ( <div style={Object.assign(style, { position: 'relative', })} > {children} </div> ); export const Track = ({ style,...
app/components/meal_list.js
therealaldo/MacroManagement
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, ListView, TouchableOpacity } from 'react-native'; import api from '../utils/api'; import Icon from 'react-native-vector-icons/Ionicons'; export default class MealList extends React.Component { constructor(pro...
src/app-client.js
harrislabel/personal_website
"use strict"; import React from 'react'; import ReactDOM from 'react-dom'; import AppRoutes from './components/AppRoutes'; window.onload = () => { ReactDOM.render(<AppRoutes/>, document.getElementById('main')); };
src/components/LinkButton.js
carlyleec/cc-react
import React from 'react'; // eslint-disable-line import { Link } from 'react-router'; import styled from 'styled-components'; const LinkButton = styled(Link)` background: #2196F3; font-size: 1em; color: #FFF; width: 80%; border-radius: 4px; padding: 5px; margin: auto; margin-top: 0px; display: block...
ajax/libs/zingchart-react/1.0.7/zingchart-react.js
sufuf3/cdnjs
import zingchart from 'zingchart'; import React, { Component } from 'react'; class Core extends Component{ render() { return ( React.createElement("div", {id: this.props.id}) ); } //Called after the render function. componentDidMount(){ zingchart.render({ ...
src/parser/shared/modules/items/bfa/raids/crucibleofstorms/FathuulsFloodguards.js
sMteX/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS/index'; import SPELLS from 'common/SPELLS/index'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import ItemHealingDone from 'interface...
src/index.js
EncontrAR/backoffice
import React from 'react'; import ReactDOM from 'react-dom'; import { LocaleProvider } from 'antd'; import { IntlProvider } from 'react-intl'; import registerServiceWorker from './registerServiceWorker'; import DashApp from './dashApp'; import AppLocale from './languageProvider'; import config, { getCurrentLanguage }...
modules/NavigationMixin.js
RobertKielty/react-router
import invariant from 'invariant'; import React from 'react'; import { stringifyQuery } from './QueryUtils'; var { func } = React.PropTypes; var NavigationMixin = { propTypes: { stringifyQuery: func }, getDefaultProps() { return { stringifyQuery }; }, createPath(pathname, query) { v...
src/mount_app.js
yormi/test-them-all
'use strict' import React from 'react' import { scryRenderedComponentsWithType, renderIntoDocument } from 'react-addons-test-utils' import { unmountComponentAtNode, findDOMNode } from 'react-dom' import initializeDom from '~/src/setup/setup_fake_dom' import { wrapLifecycleMethodsWithTryCatch } from '~/src/h...
src/components/App.js
jainvabhi/PWD
require('./ServiceWorker'); import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Route, Redirect, withRouter } from 'react-router-dom'; import Async from 'react-code-splitting'; import Login from './Auth/Login'; import ChatBot from './Chatbot'; import ...
src/js/components/LeftPanel.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import selectn from 'selectn'; import User from '../components/User'; import AuthenticatedComponent from '../components/AuthenticatedComponent'; import translate from '../i18n/Translate'; import connectToStores from '../utils/connectToStores'...
renderer/components/Icon/AngleLeft.js
LN-Zap/zap-desktop
import React from 'react' const SvgAngleLeft = props => ( <svg height="1em" viewBox="8.59 6 7.41 12" width="1em" {...props}> <path d="M14.59 18L16 16.59 11.42 12 16 7.41 14.59 6l-6 6z" fill="currentColor" /> </svg> ) export default SvgAngleLeft
src/svg-icons/av/repeat-one.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeatOne = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/> </SvgIcon> ); AvRepeatOne = pure(AvRepeatOne); AvRepeatOn...
src/svg-icons/av/subscriptions.js
skarnecki/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> )...
App/Story.js
johnwalley/hacker-news
import React from 'react'; import { StyleSheet, Text, TouchableHighlight, View, } from 'react-native'; const styles = StyleSheet.create({ container: { backgroundColor: 'white', paddingLeft: 10, paddingRight: 10, }, title: { fontSize: 18, color: 'black', fontWeight...
src/Select.js
paulmillr/react-select
/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/react-select */ import React from 'react'; import ReactDOM from 'react-dom'; import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; import defaultArrowRenderer from './utils/de...
app/javascript/mastodon/features/community_timeline/components/column_settings.js
res-ac/mstdn.res.ac
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; @injectIntl export default class ColumnSettings extends React....
src/components/views/dialogs/SessionRestoreErrorDialog.js
aperezdc/matrix-react-sdk
/* Copyright 2017 Vector Creations Ltd Copyright 2018 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.0 Unless required by applicable la...
src/content/work/assets/StickFigureSoiree/index.js
jmikrut/keen-2017
import React from 'react'; import VerticalSplit from '../../../../components/Layout/VerticalSplit'; import ContentBlock from '../../../../components/Layout/ContentBlock'; import ImageBlock from '../../../../components/Layout/ImageBlock'; import Gutter from '../../../../components/Layout/Gutter'; import ProjectCTA from...
stories/components/menu.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { Menu } from 'components/UI' const items = [ { id: 'item1', title: 'Item 1', onClick: action }, { id: 'item2', title: 'Item 2', onClick: action }, { id: 'item3', title: 'Item 3', onCli...
src/components/viewer3d/viewer3d.js
dearkaran/react-planner
"use strict"; import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import * as Three from 'three'; import {parseData, updateScene} from './scene-creator'; import {disposeScene} from './three-memory-cleaner'; import OrbitControls from './libs/orbit-controls'; import diff from...
tndata_backend/chat/static/react-chat/src/components/websocket.js
izzyalonso/tndata_backend
import React from 'react'; //import ReactDOM from 'react-dom'; /* * Adapted from: * https://github.com/mehmetkose/react-websocket/blob/master/index.jsx */ class Websocket extends React.Component { constructor(props) { super(props); this.send = this.send.bind(this); this.state = { ...
app/features/settings/RangeField.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Block, Label, Note } from './styles'; const RangeField = ({ input, min, max, step, label, note, display }) => ( <Block> <Label htmlFor={input.name}> <span>{label || input.name}</span> <input id={input.name} type="range" {...inpu...
src/svg-icons/notification/sync.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSync = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25...
docs/src/IntroductionPage.js
dongtong/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const IntroductionPage = React.createClass({ render() { return ( <div> <NavMain activePage="introduction" /> <...
index.ios.js
feedreaderco/app
import React, { Component } from 'react'; import { AppRegistry, Linking, } from 'react-native'; import App from './components/app'; import ShareExtension from './share-extension.ios'; export default class FeedReader extends Component { componentDidMount() { Linking.addEventListener('url', this._handleOpenURL...
pootle/static/js/shared/components/FormValueInput.js
dwaynebailey/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import AutosizeTextarea from '...
app/containers/DeckListContainer.js
Ruin0x11/fleet
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Home from '../components/Home'; import DeckList from '../components/DeckList'; import { getDeckList } from '../selectors/port'; function mapStateToProps (state) { if(!state.portData.api_deck_port) {...
src/svg-icons/notification/confirmation-number.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationConfirmationNumber = (props) => ( <SvgIcon {...props}> <path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2...
src/modules/Profile/components/ListenAnytime.js
prjctrft/mantenuto
import React from 'react'; import PropTypes from 'prop-types'; const ListenAnytime = (props) => { const styles = require('./ListenAnytime.scss'); return ( <div className={styles.ListenAnytime}> <h2>Listen anytime?</h2> {props.listenAnytime ? <button className={styles.on} onClick={props.togg...
src/components/products/ProductsPage.js
hyoushke/hyo-reactredux-generator
import React from 'react'; import {Link} from 'react-router'; class ProductsPage extends React.Component{ render(){ return ( <div>Products Page Yeah Bah</div> ); } } export default ProductsPage;
packages/icons/src/md/hardware/Laptop.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLaptop(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 36h8v4H0v-4h8c-2.2 0-4-1.8-4-4V12c0-2.2 1.8-4 4-4h32c2.2 0 4 1.8 4 4v20c0 2.2-1.8 4-4 4zM8 12v20h32V12H8z" /> </IconBase> ); } export defau...
app/containers/users/profile.js
DeividasK/tgoals
import React from 'react' import { Link } from 'react-router' import { connect } from 'react-redux' import { firebaseConnect, helpers } from 'react-redux-firebase' import { ButtonGroup, Button } from 'reactstrap' import { injectIntl } from 'react-intl' import PrimaryGoalsList from 'components/lists/primary-goals-list'...
src/Parser/Core/Modules/Items/VialOfCeaselessToxins.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS_OTHERS'; import { formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; class VialOfCeaselessToxins extends Module { damageIncreased = 0; totalCasts = 0; on_initialized() { if (!this.owner...
src/svg-icons/maps/local-car-wash.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCarWash = (props) => ( <SvgIcon {...props}> <path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2...
src/parser/warlock/affliction/modules/features/DotUptimes/index.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { STATISTIC_ORDER } from 'interface/others/StatisticsListBox'; import StatisticBar from 'interface/statistics/StatisticBar'; import AgonyUptime from './AgonyUptime'; import CorruptionUptime from './CorruptionUptime'; import UnstableAfflic...
client/scenes/ShowcaseScene.js
SLIBIO/SLib-Doc
import React, { Component } from 'react'; import { Grid, Card, CardTitle, CardText } from 'react-mdl'; import { NavigationBar } from '../components'; import styles from '../styles/ShowcaseScene.scss'; import Item1 from '../assets/showcase/item1_1.png'; import Item2 from '../assets/showcase/item2_1.png'; const showcase...
app/js/sign-out/index.js
blockstack/blockstack-portal
import React from 'react' import PropTypes from 'prop-types' import { withRouter } from 'react-router' import Initial from './views/initial' import { ShellParent } from '@blockstack/ui' const VIEWS = { INITIAL: 0 } const views = [Initial] const SignOut = ({ location }) => { const view = 0 const viewProps = [ ...
public/app/components/base/input-dialog.js
vincent-tr/mylife-wine
import React from 'react'; import PropTypes from 'prop-types'; import * as mui from 'material-ui'; import { confirmable, createConfirmation } from 'react-confirm'; import base from '../base/index'; class InputDialog extends React.Component { constructor(props, context) { super(props, context); this.state =...
blueprints/dumb/files/__root__/components/__name__/__name__.js
dfalling/todo
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
tests/baselines/reference/reactDefaultPropsInferenceSuccess.js
Microsoft/TypeScript
//// [reactDefaultPropsInferenceSuccess.tsx] /// <reference path="/.lib/react16.d.ts" /> import React from 'react'; interface BaseProps { when?: ((value: string) => boolean) | "a" | "b"; error?: boolean; } interface Props extends BaseProps { } class FieldFeedback<P extends Props = BaseProps> extends React.Comp...
src/CheckBox/CheckBox.stories.js
ctco/rosemary-ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import CheckBox from './CheckBox'; storiesOf('CheckBox', module) .add('Checked', () => <CheckBox onChange={action('onChange')} checked title="This is Title" />) .add('Disabled', () => <Ch...
src/svg-icons/content/block.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentBlock = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8...
src/components/Feedback/Feedback.js
bingomanatee/ReactUserBoilerplate
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
src/components/OrganizationLogo/OrganizationLogo.js
folio-org/stripes-core
import React from 'react'; import { branding } from 'stripes-config'; import styles from './OrganizationLogo.css'; const OrganizationLogo = () => { return ( branding && <div className={styles.logo}> <img alt={branding.logo.alt} src={branding.logo.src} /> </div> )...
src/index.js
bcbcb/react-hot-boilerplate
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
app/src/client/app/framework/PagerPresentation.js
syrel/Open-Data
/** * Created by syrel on 15.05.17. */ import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'underscore'; import $ from 'jquery'; import CompositePresentation from './CompositePresentation'; import Thenable from './../Thenable' class PagerComponent extends CompositePresentation.CompositeCompon...
2-alpha/src/Features/Form/PrimerPreviewSmall.js
saturninoharris/primer-design
import React from 'react' import { connect } from 'react-redux' import styled from 'styled-components' import { Sequence } from '../../components/Sequence' const Container = styled.div` text-align: center; ` const PrimerPreviewSmall = ({ strand, plasmidSegment, geneSegment, animatingPreview }) => { const display...
packages/plugins/users-permissions/admin/src/components/FormModal/Input/index.js
wistityhq/strapi
/** * * Input * */ import React from 'react'; import { useIntl } from 'react-intl'; import { ToggleInput } from '@strapi/design-system/ToggleInput'; import { TextInput } from '@strapi/design-system/TextInput'; import PropTypes from 'prop-types'; const Input = ({ description, disabled, intlLabel, error, ...
src/scenes/Home.js
sunilgautam/ReduxTodo
'use strict'; import React, { Component } from 'react'; import { StyleSheet, View, } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as ActionCreators from '../actions'; import TodoList from '../components/TodoList'; import InputSection from '../com...
src/utils/index.js
kimf/golfstats_client_react_redux_immutable
import React from 'react'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window 'menubar=no,location=no,resizable=yes,scrollbars=no,statu...
src/components/pages/Wiki0/Info/index.js
humaniq/humaniq-pwa-website
import React from 'react'; import * as T from "prop-types"; import './styles.scss'; import {cssClassName} from 'utils' const cn = cssClassName('SE_WikiInfo') import A_Link from 'A_Link' import A_Image from 'A_Image' import A_H from 'A_H' const SE_WikiInfo = ({children, type, img, title, link, external}) =>{ const mo...
src/svg-icons/notification/do-not-disturb.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturb = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13...
src/PaginationButton.js
egauci/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import createSelectedEvent from './utils/createSelectedEvent'; import elementType from 'react-prop-types/lib/elementType'; const PaginationButton = React.createClass({ propTypes: { className: React.PropTypes.string, eventKey: React.PropTypes.on...
app/javascript/mastodon/features/community_timeline/index.js
primenumber/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
js/apps/system/_admin/aardvark/APP/react/src/App.js
Simran-B/arangodb
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; // import Overview from './views/shards/overview'; const jsoneditor = require('jsoneditor'); const d3 = require('d3'); const nvd3 = require('nvd3'); // parse prometheus const parsePrometheusTextFormat = require('parse-prometheus-text-format')...
docs/src/sections/ValidateRefersResetSection.js
yyssc/ssc-grid
import React from 'react'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ValidateRefersResetSection() { return ( <div className="bs-docs-section"> <h3><Anchor id="validate-refers-reset">重置参照</Anchor></h3> <...
packages/ringcentral-widgets-docs/src/app/pages/Components/EntityModal/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
src/components/Search/Logo/index.js
alantva/meli
import React from 'react'; import Src from '../../../assets/images/mercado-libre.png'; const Logo = props => ( <img {...props} src={Src} alt="Logo ML" /> ); export default Logo;
fields/types/password/PasswordFilter.js
everisARQ/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const EXISTS_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ propTypes: { filter: React.PropTyp...
src/components/Contact.js
carlyleec/cc-react
import React from 'react'; import styled from 'styled-components'; import Container from './Container'; import ImageCollection from './ImageCollection'; const SocialImage = styled.img` height: 50px; width: 50px; `; const ContactWrapper = styled.div` display: flex; flex-wrap: wrap; justify-content: center;...
_src/components/TopNav/index.js
apedyashev/react-universal-jobs-aggregator
// libs import React from 'react'; import {PropTypes} from 'prop-types'; // components import NotAuthenticated from './NotAuthenticated'; import Authenticated from './Authenticated'; export default function TopNav({alwaysSticked, isAuthenticated}) { return isAuthenticated ? ( <Authenticated alwaysSticked={always...
js/screens/NotificationsScreenComponents/NotificationRow.js
ujwalramesh/REHU-discourse
/* @flow */ 'use strict' import React from 'react' import { Image, StyleSheet, Text, TouchableHighlight, View } from 'react-native' import Icon from 'react-native-vector-icons/FontAwesome' import DiscourseUtils from '../../DiscourseUtils' class NotificationRow extends React.Component { render() { r...
demo/src/components/Main.js
burakcan/react-snowstorm
import React, { Component } from 'react'; import ReactDom from 'react-dom'; import SnowStorm from 'react-snowstorm'; import 'normalize.css'; import 'styles/global' export default class Main extends Component { render() { return ( <main> <h1 ref='title'>React-snowstorm</h1> <h2 ref='subtit...
newclient/scripts/components/config/general/expand-instructions-toggle/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. 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 Lic...
src/components/SocialLinks.js
akhatri/portfolio-website
import React from 'react'; import '../styles/social-links.scss' const SocialLinks = (props) => { return ( <ul className="social-links"> { props.socialData ? props.socialData.map( (item, index)=> <li key={index}> <a href={item.link} title={item.title} target="_blank" rel="noopene...
src/parser/warlock/affliction/modules/azerite/WrackingBrilliance.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { calculateAzeriteEffects } from 'common/stats'; import { formatPercentage } from 'common/format'; import TraitStatisticBox from 'interface/others/TraitStatisticBox'; const wrackingBrillianceStats = tr...