path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/library/Form/FormFieldDivider.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import { FormFieldDividerRoot as Root } from './styled'; import { formFieldDividerPropTypes } from './propTypes'; import type { FormFieldDividerProps } from './types'; const FormFieldDivider = (props: FormFieldDividerProps) => ( <Root {...props} role="separator" /> ); FormFie...
src/svg-icons/editor/title.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorTitle = (props) => ( <SvgIcon {...props}> <path d="M5 4v3h5.5v12h3V7H19V4z"/> </SvgIcon> ); EditorTitle = pure(EditorTitle); EditorTitle.displayName = 'EditorTitle'; EditorTitle.muiName = 'SvgIcon'; ex...
webapp/app/components/SaveCreation/index.js
EIP-SAM/SAM-Solution-Server
// // Page create save // import React from 'react'; import { PageHeader } from 'react-bootstrap'; import SaveCreationForm from 'containers/SaveCreation/Form'; /* eslint-disable react/prefer-stateless-function */ export default class SaveCreation extends React.Component { componentWillUnmount() { this.props.res...
ui/src/components/common/LeftMenu.js
d3sw/conductor
import React from 'react'; import {Link} from 'react-router' import {connect} from 'react-redux'; const menuPaths = { Workflow: [{ header: true, label: 'Executions', href: '/events', icon: 'fa-star' }, { label: 'All', href: '/workflow', icon: 'fa-circle-thin' }, { label: 'Running'...
src/app/Content.js
zangrafx/esnext-quickstart
import React from 'react'; import styles from './Content.css'; export default class Content extends React.Component { render() { return ( <section className={styles.content}> <h1>Hello, SydJS!</h1> </section> ); } }
src/components/chrome/ChromePointerCircle.js
socialtables/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import shallowCompare from 'react-addons-shallow-compare' export class ChromePointerCircle extends ReactCSS.Component { shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1]) classes(): any { retur...
src/components/ImgFigure.js
mojm/photobyreact
import React from 'react'; import ReactDOM from 'react-dom'; require('../css/ImgFigure.scss'); var ImgFigure = React.createClass({ handleClick: function(e) { if (this.props.arrange.isCenter) { this.props.inverse(); } else { this.props.center(); } e.stopPropagation(); e.preventDefault(); ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/All.js
mroch/flow
// @flow import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props, State> { static defaultProps: DefaultProps = {}; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends Re...
packages/@lyra/components/src/lists/grid/GridList.js
VegaPublish/vega-studio
// @flow import React from 'react' import styles from './styles/GridList.css' import cx from 'classnames' export default function GridList(props: {className: string}) { const { className, onSortEnd, onSortStart, lockToContainerEdges, useDragHandle, ...rest } = props return <ul {...rest} c...
src/webview/js/app.js
julianburr/sketch-plugin-boilerplate
import React, { Component } from 'react'; import { sendAction } from 'actions/bridge'; import { autobind } from 'core-decorators'; import { connect } from 'react-redux'; import sketchLogo from 'assets/sketch-logo.svg'; import 'styles/index.scss'; const mapStateToProps = state => { return { actions: state.bridge...
client/src/components/forms/Systems.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import { Form } from 'react-form'; import BootstrapForm from 'react-bootstrap/lib/Form'; import Panel from 'react-bootstrap/lib/Panel'; import Well from 'react-bootstrap/lib/Well'; import reactStringReplace from 'r...
index.js
nchaulet/bitbucket-team-pullrequests
import Root from './src/containers/Root'; import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render(<Root />, document.getElementById('root'));
pootle/static/js/auth/components/RequestPasswordResetSent.js
JohnnyKing94/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 { PureRenderMixin } from...
node_modules/react-router/es6/RoutingContext.js
tempestaddepvc/proyecto-electron
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
src/components/Database/DatabaseChartBar/index.js
wu-sheng/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
envkey-react/src/components/assoc_manager/assoc_row/key_generated.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" import copy from 'lib/ui/copy' import {openLinkExternal} from 'lib/ui' export default class KeyGenerated extends React.Component { constructor(props){ super(props) this.state = { copied: false } } _kvPair(){ return `ENVKEY=${...
src/deposit/DepositModal.js
nuruddeensalihu/binary-next-gen
import React from 'react'; import Modal from '../containers/Modal'; import DepositContainer from './DepositContainer'; export default (props) => ( <Modal shown> <DepositContainer {...props} /> </Modal> );
src/js/components/ui/NetworkLine/NetworkLine.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './NetworkLine.scss'; import RoundedIcon from "../RoundedIcon/RoundedIcon"; export default class NetworkLine extends Component { static propTypes = { network: PropTypes.string.isRequired }; renderIcon...
src/components/Layout/Bread.js
IssaTan1990/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Breadcrumb, Icon } from 'antd' import { Link } from 'dva/router' import styles from './Bread.less' import pathToRegexp from 'path-to-regexp' import { queryArray } from '../../utils' const Bread = ({ menu }) => { // 匹配当前路由 let pathArray = [] le...
src/atoms/social/speaker/social-link.js
dsmjs/components
import React from 'react'; import {bool, func, string} from 'prop-types'; import Icon from 'react-simple-icons'; import ExternalLink from '../../links/external'; const iconSize = 20; const listItemStyles = { padding: '0 0 0 .5em', height: iconSize, span: { paddingLeft: '.25em' } }; export const nonHoveredI...
src/components/posts_index.js
JRiepe/reactblog
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) => { ...
packages/react-vis/src/radar-chart/index.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/renderer/renderPass.js
gabrielbull/react-router-server
import React from 'react'; import { renderToString, renderToStaticMarkup } from 'react-dom/server'; import AsyncRenderer from '../components/AsyncRenderer'; import removeDuplicateModules from '../utils/removeDuplicateModules'; const renderPass = (context, element, staticMarkup = false) => { context.callback = () => ...
client/src/components/NotFound.js
marceloogeda/react-graphql-example
import React from 'react'; const NotFound = ({ match }) => { return ( <div className="NotFound">404 Not Found</div> ); }; export default NotFound;
src-clean/routes.js
SIB-Colombia/dataportal_v2_frontend
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from 'components/App' import { HomePage } from 'components' const routes = ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> </Route> ) export default routes
src/svg-icons/device/nfc.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNfc = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2...
src/components/MainPage/MainContainer.js
coolshare/ReactReduxStarterKit
import React from 'react'; import {connect} from 'react-redux' import cs from '../../services/CommunicationService' import Footer from './Footer'; import FormTableContainer from './FormTable/FormTableContainer'; import GoogleMapContainer from './Maps/GoogleMap/GoogleMapContainer'; import { Tab, Tabs, TabList, TabPanel ...
frontend/src/components/agency/partnerApplicationListFilter.js
unicef/un-partner-portal
import R from 'ramda'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { browserHistory as history, withRouter } from 'react-router'; import { withStyles } from 'material-ui/styles'; import Grid from 'mat...
node_modules/react-router-dom/es/HashRouter.js
charmainetham/charmainetham.github.io
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
containers/App.js
jonathanpeterwu/calculator
// import React, { Component } from 'react'; // import SomeApp from './SomeApp'; // import { createStore, combineReducers } from 'redux'; // import { Provider } from 'react-redux'; // import * as reducers from '../reducers'; // const reducer = combineReducers(reducers); // const store = createStore(reducer); // expor...
docs/src/modules/components/AppDrawer.js
lgollut/material-ui
import React from 'react'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import { withStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import Drawer from '@material-ui/core/Drawer'; import SwipeableDrawer from '@material-ui/co...
src/svg-icons/image/rotate-right.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotateRight = (props) => ( <SvgIcon {...props}> <path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.7...
app/src/containers/Home.js
mertkahyaoglu/mertkahyaoglu.github.io
import React from 'react'; import Profile from '../components/Profile'; import NavMenu from '../components/NavMenu'; import ProjectCard from '../components/ProjectCard'; import SkillCard from '../components/SkillCard'; import SocialMenu from '../components/SocialMenu'; import profile from '../data/profile'; import pr...
admin/client/components/List/ListDownloadForm.js
wmertens/keystone
import React from 'react'; import CurrentListStore from '../../stores/CurrentListStore'; import Popout from '../Popout'; import PopoutList from '../Popout/PopoutList'; import { Button, Checkbox, Form, FormField, InputGroup, SegmentedControl } from 'elemental'; const FORMAT_OPTIONS = [ { label: 'CSV', value: 'csv' }, ...
app/components/PostTitle/index.js
brainsandspace/ship
/** * * PostTitle * */ import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.h1` color: firebrick; text-align: center; `; function PostTitle(props) { return ( <Wrapper> {props.children} </Wrapper> ); } PostTitle.propTypes = { }; export default PostTitle;
src/index.js
caviles/wflows
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from './components/Root'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tel...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-modal.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import $ from 'jquery'; import {BaseMixin, ElementaryMixin, SectionMixin, Tools} from '../common/common.js'; import {FloatMixin} from '../layout/layout.js'; import Header from './modal-header.js'; import Body from './modal-body.js'; import Footer from './modal-footer.js'; import './modal.les...
src/routes/Login/components/LoginForm/LoginForm.js
ronihcohen/magic-vote
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' import { Field, reduxForm } from 'redux-form' import { TextField } from 'redux-form-material-ui' import RaisedButton from 'material-ui/RaisedButton' import Checkbox from 'material-ui/Checkbox' import { RECOVER_PATH, LOGIN_F...
js/screens/NotificationsScreenComponents/Filter.android.js
ujwalramesh/REHU-discourse
/* @flow */ 'use strict' import React from 'react' import { Animated, Easing, Text, TouchableHighlight, View } from 'react-native' import Dimensions from 'Dimensions' import _ from 'lodash' import Orientation from 'react-native-orientation' import colors from '../../colors' class Filter extends React.Co...
App.js
zhiyuanMA/ReactNativeShowcase
import React, { Component } from 'react'; import { StatusBar, StyleSheet } from 'react-native'; import { StackNavigator } from 'react-navigation'; import MainView from './components/main/MainView'; import Watch from './components/watch/Watch'; import Tinder from './components/tinder/Tinder'; const Showcase = StackNav...
src/components/NextItem.js
aaroncraigongithub/jsla-talk
import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardText, } from 'material-ui'; import { itemType } from '../propTypes'; import ListItem from './ListItem'; const NextItem = ({ item, onListItemUpdate }) => ( <Card> <CardHeader title="Next item up" /> <CardText> ...
examples/with-custom-webpack-config/src/client.js
jaredpalmer/react-production-starter
import React from 'react'; import { hydrate } from 'react-dom'; import App from './App'; hydrate(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept(); }
admin/client/App/shared/Popout/PopoutList.js
danielmahon/keystone
/** * Render a popout list. Can also use PopoutListItem and PopoutListHeading */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; const PopoutList = React.createClass({ displayName: 'PopoutList', propTypes: { children: React.PropTypes.node.isRequired, classNam...
src/components/navbar.js
lucasflores/lucasflores.github.io
import React from 'react' import styled, { css } from 'styled-components' import { Flex, Box } from 'grid-styled' import scrollToElement from 'scroll-to-element' import Name from './name' import { media } from '../utils/style' const Base = styled.div` padding: 0; margin: 0; max-height: 62px; line-height: 62p...
docs/src/sections/TabsSection.js
jesenko/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function TabsSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anch...
examples/universal/client/index.js
omnidan/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
server/sonar-web/src/main/js/app/components/extensions/ProjectAdminPageExtension.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
manoseimas/compatibility_test/client/app/ResultsView/SimilarityMps/OneMp.js
ManoSeimas/manoseimas.lt
import React from 'react' import { SimilarityBar, SimilarityWidget } from '../../../components' import styles from '../../../styles/views/results.css' const OneMp = ({mp, fraction, topics, user_answers, expandTopics, expanded_mp}) => <div className={styles.item} key={mp.id}> <a href={mp.url} className={styles....
src/client/components/JumbotronTripWidget/JumbotronTripWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' import { photos as appConfig } from '../../config/appConfig' import { JumbotronTitleWidget, ContactButtonWidget, StarRatingWidget, JumbotronMetaAreaWidget } from '../index' /* isTitled will show/hide the title area isNoCon...
client/containers/TimerMulti.js
rickyeh/nimblecode
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import CountdownTimerMulti from './CountdownTimerMulti'; import StartButtonMulti from './StartButtonMulti'; import { endGame, leavePage, updateElapsedTime } from '../actions/index'; class TimerM...
src/components/pages/organize/DetailView.js
yiweimatou/yibinghoutai
import React from 'react' const styles = { div:{ display:'flex', flexFlow:'row wrap' }, img:{ width: 256, heigt:256 }, dl:{ marginLeft:50 }, dt:{ float: 'left', width: 160, overflow: 'hidden', clear: 'left', tex...
src/component/listing-item/index.js
Roomlet/roomlet
import React from 'react' import { connect } from 'react-redux' import * as listingActions from '../../action/listing-actions.js' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import { List, ListItem } from 'material-ui/List' import FloatingActionButton from 'material-ui/FloatingActionButton' impor...
app/screens/containers/seller/goods.js
yiyinsong/react-native-example-jdh
import React, { Component } from 'react'; import { View, Text, ScrollView, TouchableOpacity, TouchableHighlight, TextInput, Image, FlatList, InteractionManager, DeviceEventEmitter, Modal } from 'react-native'; import Utils from '../../../js/utils'; import Config from '../../../config/config'; imp...
src/components/InfiniteCarouselDots.js
leaffm/react-infinite-carousel
import React from 'react'; import PropTypes from 'prop-types'; import './InfiniteCarousel.css'; const InfiniteCarouselDots = function ({ carouselName, numberOfDots, activePage, onClick }) { const dots = []; let classNameIcon; let dotName; for (let i = 0; i < numberOfDots; i += 1) { classNameIcon = `Infini...
src/svg-icons/action/card-travel.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardTravel = (props) => ( <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H...
src/shared/element-react/dist/npm/es6/src/layout/Col.js
thundernet8/Elune-WWW
import _typeof from 'babel-runtime/helpers/typeof'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import { Component, PropTyp...
fields/types/relationship/RelationshipColumn.js
codevlabs/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; const moreIndicatorStyle = { color: '#bbb', fontSize: '.8rem', fontWeight: 500, marginLeft: 8, }; var RelationshipColumn = React....
lib/Modal/stories/BasicUsage.js
folio-org/stripes-components
/** * Modal: Basic Usage */ import React from 'react'; // import { text, boolean, select } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import Modal from '../Modal'; import Button from '../../Button'; export default () => { // const showHeader = boolean('Show header', true); ...
src/pages/dashboard/components/weather.js
zuiidea/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Spin } from 'antd' import styles from './weather.less' function Weather({ city, icon, dateTime, temperature, name, loading }) { return ( <Spin spinning={loading}> <div className={styles.weather}> <div className={styles.left}> ...
app/javascript/mastodon/features/compose/components/search.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { searchEnabled } from '../...
app/javascript/mastodon/features/keyboard_shortcuts/index.js
mhffdq/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
src/index.js
mangal49/HORECA
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, browserHistory } from 'react-router'; import routes from './Routes'; import { Provider } from 'react-redux'; import { store } from './store'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; // import darkBaseTheme from ...
app/clients/next/components/pagination.js
koapi/koapp
import React from 'react' import Paginate from 'react-paginate' import { translate } from 'react-i18next' export default translate(['common'])(class Pagination extends React.Component { render () { const { t } = this.props return ( <Paginate containerClassName='pagination' pageClassName='page-i...
src/components/basic/Blockquote.js
casesandberg/react-mark
'use strict'; import React from 'react'; export class BLOCKQUOTE extends React.Component { render() { return <blockquote>{ this.props.children }</blockquote>; } } export default BLOCKQUOTE;
Libraries/CustomComponents/Navigator/Navigator.js
wenpkpk/react-native
/** * Copyright (c) 2013-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. * * Facebook,...
website/core/WebPlayer.js
Swaagie/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/Feedback/Feedback.js
djfm/ps-translations-interface-mockup
/** * 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 s from '....
src/pages/index.js
apburnes/allpointsburnes
import React from 'react' import { StaticQuery, graphql } from 'gatsby' import Layout from '../components/Layout' import ContentContainer from '../components/ContentContainer' import Section from '../components/Section' import CardsSection from '../components/CardsSection' import Download from '../components/elements/D...
plugins/Wallet/js/components/lockscreen.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' import PasswordPrompt from '../containers/passwordprompt.js' import UninitializedWalletDialog from '../containers/uninitializedwalletdialog.js' import RescanDialog from './rescandialog.js' const LockScreen = ({ unlocked, unlocking, encrypted, rescanning }) =...
client/modules/App/components/Header/Header.js
sethkaufee/TherapyApp
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { FormattedMessage } from 'react-intl'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typo...
src/svg-icons/action/pageview.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPageview = (props) => ( <SvgIcon {...props}> <path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-...
app/containers/Notifications/index.js
VonIobro/ab-web
import React from 'react'; // import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { notifyRemove } from './actions'; import { selectNotifications } from './selectors'; import { makeSelectLoggedIn } from '../AccountProvider/selectors'; ...
test/test.js
VovanR/react-multiselect-two-sides
import test from 'ava'; import React from 'react'; import {shallow, mount} from 'enzyme'; import C from '../src'; test('render component block', t => { const wrapper = shallow(<C/>); t.true(wrapper.hasClass('msts')); t.is(wrapper.type('div'), 'div'); }); test('allow to add custom class name', t => { const props =...
examples/with-qs/pages/index.js
BDav24/next-url-prettifier
import React from 'react'; import {Link} from 'next-url-prettifier'; import {Router} from '../routes'; export default function IndexPage() { const linkParams = { a: 1, b: [2, 3], c: {d: [4, 5]} }; return ( <div> <h1>Homepage</h1> <Link route={Router.getPrettyUrl('index', linkParams)}>...
src/Svg/ArrowSVG.js
numieco/patriot-trading
import React from 'react' const ArrowSVG = () => ( <div> <svg width="9px" height="17px" viewBox="0 0 9 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink"> <title>Shape Copy 8</title> <desc>Created with Sketch.</desc> <defs></defs> <g id="Welcome...
docs/src/sections/PanelSection.js
jesenko/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function PanelSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anc...
src/DropdownToggle.js
pandoraui/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import Button from './Button'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const CARET = <span> <span className="caret" /></span>; export default class DropdownToggle extends React.Component { render() ...
src/svg-icons/navigation/arrow-drop-up.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropUp = (props) => ( <SvgIcon {...props}> <path d="M7 14l5-5 5 5z"/> </SvgIcon> ); NavigationArrowDropUp = pure(NavigationArrowDropUp); NavigationArrowDropUp.displayName = 'NavigationArrowDrop...
app/containers/Home/HomeContainer.js
saelili/F3C_Website
import React from 'react' import { HeroContainer, AdminsContainer, CtaContainer, ResourcesContainer } from '../' import styles from './styles.scss' const HomeContainer = () => ( <div> <HeroContainer /> <hr className={styles.break} /> <AdminsContainer /> <hr className={styles.break} /> <CtaContain...
ReactNativeApp/react-native-starter-app/src/index.js
jjhyu/hackthe6ix2017
/** * Index - this is where everything * starts - but offloads to app.js * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ /* global __DEV__ */ import React from 'react'; import { applyMiddleware, compose, createStore } from 'redux'; import { connect, Provider } from 'react-re...
modules/gui/src/app/home/body/process/recipe/ccdc/panels/opticalPreprocess/opticalPreprocess.js
openforis/sepal
import {Form} from 'widget/form/form' import {Layout} from 'widget/layout' import {Panel} from 'widget/panel/panel' import {RecipeFormPanel, recipeFormPanel} from 'app/home/body/process/recipeFormPanel' import {compose} from 'compose' import {msg} from 'translate' import {selectFrom} from 'stateUtils' import React from...
react/ScreenReaderSkipTarget/ScreenReaderSkipTarget.js
seekinternational/seek-asia-style-guide
import styles from './ScreenReaderSkipTarget.less'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class ScreenReaderSkipTarget extends Component { static propTypes = { name: PropTypes.string.isRequired, children: PropTypes.oneOfType([ PropTypes.arrayOf(Pr...
docs-site/src/components/schema-form/grid-layout.js
bolt-design-system/bolt
import { h } from '@bolt/core'; // import React from 'react'; import React, { Component } from 'react'; import { WidthProvider, Responsive } from 'react-grid-layout'; const ResponsiveReactGridLayout = WidthProvider(Responsive); const originalLayouts = getFromLS('layouts') || {}; /** * This layout demonstrates how to...
web/src/components/Description.js
doeg/plantly-graphql
import cx from 'classnames' import React from 'react' import style from './description.css' import EditableText from './EditableText' import type { PlantPatch } from '../mutations/UpdatePlantMutation' type Props = { children?: ?any, className?: ?string, onPlantUpdate: (plantPatch: PlantPatch) => void, plant: ...
Client/src/js/history.js
simondi88/schoolbus
import React from 'react'; import * as Api from './api'; import * as Constant from './constants'; // History Entity Types export const BUS = 'School Bus'; export const OWNER = 'Owner'; export const USER = 'User'; export const ROLE = 'Role'; export const INSPECTION = 'Inspection'; // History Events export const BUS_...
blueocean-material-icons/src/js/components/svg-icons/action/search.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSearch = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5...
example/pages/preview/index.js
n7best/react-weui
import React from 'react'; import Page from '../../component/page'; import { Preview, PreviewHeader, PreviewFooter, PreviewBody, PreviewItem, PreviewButton } from '../../../build/packages'; const PreviewDemo = (props) => ( <Page className="preview" title="Preview" subTitle="表单预览"> <Preview> <P...
assets/jqwidgets/demos/react/app/fileupload/buttonsrendering/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxFileUpload from '../../../jqwidgets-react/react_jqxfileupload.js'; class App extends React.Component { render() { return ( <JqxFileUpload width={300} uploadUrl={'imageUpload.php'} fileInputNa...
app/components/AppExperimentals/index.js
ethan605/react-native-zero
/** * @providesModule ZeroProj.Components.AppExperimentals */ import React from 'react'; import { StyleSheet, View } from 'react-native'; import Button from 'react-native-button'; import moment from 'moment'; import _ from 'lodash'; // Constants import { FEATURES } from 'app/constants/Flags'; // Utils import FontU...
admin/client/App/shared/Popout/PopoutListItem.js
michaelerobertsjr/keystone
/** * Render a popout list item */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutListItem = React.createClass({ displayName: 'PopoutListItem', propTypes: { icon: React.PropTypes.string, iconHover: React.PropTypes.string, isSelected: React.PropTy...
javascript/User/SingleBallotTicket.js
AppStateESS/election
'use strict' import React from 'react' import PropTypes from 'prop-types' import Panel from '../Mixin/Panel' import SingleCandidate from './SingleCandidate' import {BreakIt} from '../Mixin/Mixin.jsx' const SingleBallotTicket = (props) => { const candidateCount = props.candidates.length let candidates if (candida...
src/views/AdminView.js
mjasinski5/ContestReduxApp
import React from 'react'; import { Link } from 'react-router'; const AdminView = () => ( <div className='container text-center'> <h1>Admin</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ); export default AdminView;
examples/with-loadable-components/src/Body.js
jaredpalmer/react-production-starter
import React from 'react'; import loadable from 'loadable-components'; const BodyPart = loadable(() => import(/* webpackChunkName: "body-part" */ './BodyPart') ); const Body = () => ( <div> This is my Body <BodyPart /> </div> ); export default Body;
src/svg-icons/action/view-week.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewWeek = (props) => ( <SvgIcon {...props}> <path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4...
src/svg-icons/hardware/keyboard-voice.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardVoice = (props) => ( <SvgIcon {...props}> <path d="M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.42 2.72 6....
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/add-item.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 { includes, size, some } from 'lodash'; /** * Internal dependencies */ imp...
tests/components/icons/status/CriticalStatus-test.js
abzfarah/Pearson.NAPLAN.GnomeH
import {test} from 'tape'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import CriticalStatus from '../../../src/components/icons/status/CriticalStatus'; import CSSClassnames from '../../../src/utils/CSSClassnames'; const STATUS_ICON = CSSClassnames.STATUS_ICON; test('loads a cr...
_src/src/pages/404.js
YannickDot/yannickdot.github.io
import React from 'react' import { Link } from 'react-router' import { Container } from 'react-responsive-grid' import { prefixLink } from 'gatsby-helpers' import { rhythm, scale } from 'utils/typography' import { config } from 'config' import MarkdownIt from 'markdown-it' const md = new MarkdownIt() const mdText = m...
src/icons/AndroidFolder.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidFolder extends React.Component { render() { if(this.props.bare) { return <g> <g id="Icon_10_"> <g> <g> <path d="M213.338,96H74.666C51.197,96,32,115.198,32,138.667v234.666C32,396.802,51.197,416,74...
app/packs/src/components/managing_actions/ManagingModalSharing.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; import {Button, FormGroup, FormControl, ControlLabel} from 'react-bootstrap'; import Select from 'react-select'; import {debounce} from 'lodash'; import SharingShortcuts from '../sharing/SharingShortcuts'; import CollectionActions from '../actions/Collec...