path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/components/Markdown.react.js
ericgio/r-d3
import cx from 'classnames'; import marked from 'marked'; import React from 'react'; class Markdown extends React.Component { componentWillMount() { marked.setOptions({ gfm: true, tables: true, breaks: true, pedantic: false, sanitize: true, smartLists: true, smartypants:...
src/svg-icons/editor/format-list-numbered.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListNumbered = (props) => ( <SvgIcon {...props}> <path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/...
src/components/Modules/withModules.js
folio-org/stripes-core
import React from 'react'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { ModulesContext } from '../../ModulesContext'; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; } export default function withModules(WrappedComponen...
docs/src/app/components/pages/components/IconButton/ExampleSize.js
rhaedes/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionHome from 'material-ui/svg-icons/action/home'; const styles = { smallIcon: { width: 36, height: 36, }, mediumIcon: { width: 48, height: 48, }, largeIcon: { width: 60, height: 60, }, small: { ...
src/main/app/scripts/views/Note.js
ondrejhudek/hudy-app
import React from 'react' import { connect } from 'react-redux' import { Card, CardText } from 'material-ui' import AddNote from '../containers/note/AddNote' import Notes from '../components/note/Notes' import { fetchNotes } from '../actions/notes' let fetched = false const style = { headerCard: { margin...
src/components/common/card/Card.js
seyade/loggent
import React from 'react'; import moment from 'moment'; import { truncate } from '../../../helpers/stringy'; import './Card.scss'; import '../../../assets/svg/table-lamp-simple.svg'; const Card = ({ title, agent, agency, phone, email, description, createdAt, index, id, deleteCard }) => { let momentCreatedAt = moment...
components/Notification.js
CoffeeApp/clientSide
import React from 'react' import Confirm from './Confirm' import ShowOrderStatus from './ShowOrderStatus' const Notification = ({ order, confirmOrder, cancelOrder }) => ( <div className="notification"> <div className="module"> { order.status === 'In process' ? <ShowOrderStatus order={order} /> : ...
app/App.js
halversondm/react-tutorial
import React from 'react'; import styles from './App.css'; export default class App extends React.Component { constructor(props) { super(props); this.state = {test: 'foo'}; } render() { return ( <div className={styles.app}> bar </div> ); } }
imports/client/components/Project/ProjectInfoList.js
evancorl/portfolio
import React from 'react'; class ProjectInfoList extends React.Component { shouldComponentUpdate() { return false; } render() { const { subtitle, list } = this.props; return ( <div className="project-info-list-container"> <h3 className="project-subtitle">{subtitle}:</h3> <ul c...
project-templates/reactfiber/externals/react-fiber/fixtures/ssr/src/components/App.js
ItsAsbreuk/itsa-cli
import React, { Component } from 'react'; import Chrome from './Chrome'; import Page from './Page'; export default class App extends Component { render() { return ( <Chrome title="Hello World" assets={this.props.assets}> <div> <h1>Hello World</h1> <Page /> </div> ...
public/src/js/main.js
Robertmw/imagistral
import React from 'react'; import { render } from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { Router, Route, IndexRoute } from 'react-router'; import Editor from './pages/editor'; import Wall from './pages/wall'; import style from '../css/style.less'; render( <Router ...
src/svg-icons/av/volume-mute.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeMute = (props) => ( <SvgIcon {...props}> <path d="M7 9v6h4l5 5V4l-5 5H7z"/> </SvgIcon> ); AvVolumeMute = pure(AvVolumeMute); AvVolumeMute.displayName = 'AvVolumeMute'; AvVolumeMute.muiName = 'SvgIcon'...
app/components/Filter/SubDropdowns/SubNight.js
Bullseyed/Bullseye
import React from 'react' import { Input } from 'react-materialize' import { connect } from 'react-redux' import { addBType } from '../../../reducers/b-type-reducer' const SubNight = (props) => { const changeHandler = (event) => { let value = event.target.value let str = '' let restStr = '' if (value == 0) st...
login/src/components/MainList.js
bobmacneal/react-native-firebase-auth
import React, { Component } from 'react'; import { Text } from 'react-native'; import { Card, CardSection } from './common'; class MainList extends Component { render() { return ( <Card> <CardSection> <Text>Item 1</Text> </CardSection> <CardSection> <Text>Item 2<...
src/components/map/buildPolygons.js
kobotoolbox/kobomaps-orig
import React from 'react'; import calculateMinSpread from '../../util/calculateMinSpread'; import Area from './Area'; import {getStore} from '../../redux/redux-store'; export function buildPolygons(data) { const areaValues = data.data ?? {}; const {min, spread} = calculateMinSpread(Object.keys(areaValues).map(...
information/blendle-frontend-react-source/app/modules/stories/higher-order-components/includeStoryDetails.js
BramscoChill/BlendleParser
import React from 'react'; import { setStatic, wrapDisplayName } from 'recompose'; export default function includeStoryDetails(ComposedComponent) { const enhance = setStatic( 'displayName', wrapDisplayName(ComposedComponent, 'includeStoryDetails'), ); return enhance(({ storyDetails, ...props }) => ( ...
node_modules/react-bootstrap/es/TabPane.js
mohammed52/door-quote-automator
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 ...
client/index.js
WillHearn/apoc
import React from 'react'; import routes from '../shared/routes'; import DevTools from '../shared/container/DevTools/DevTools'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { configureStore } from '../shared/redux/store/configu...
src/client/pages/home-page.js
nefa/Leeact
import React from 'react'; import products from '../components/transaction/transaction-products'; import AdapterController from '../components/transaction/transaction-adapters'; import {ModalComponent} from '../components/modal/modal-component'; import {ModalActions} from '../stores/modal-store'; import ProductModal fr...
js/components/auth/logIn/index.js
amandamfielding/Coffee-Shop-Mobile
import React, { Component } from 'react'; import { Image, Alert } from 'react-native'; import { Font } from 'exponent'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import { Container, Text, Conte...
src/team/index.js
marchisbogdan/licenta-front
import React from 'react'; import s from './style.css'; import pageConfig from '../pageProps.json'; import SignUp from '../../components/SignUp'; import LobbyLayout from '../../components/LobbyLayout'; import history from "../../src/history"; import {ensureSessionExists,getSessionToken} from "../../core/sessionManager...
src/components/theme-legacy/form/instructions/target-national.js
MoveOnOrg/mop-frontend
import React from 'react' const TargetNational = () => ( <div> <h4>Targeting the White House or Congress</h4> <p>If you choose <strong>The entire U.S. House</strong>, then your petition signers will be asked to sign a petition addressed to their individual representative in the U.S. House of Representatives....
src/mongostick/frontend/src/screens/ReplicaMembers.js
RockingRolli/mongostick
import React from 'react' import { Card, Col, Row } from 'antd' import ReplicaMember from '../components/ReplicaMember' import { connect } from 'react-redux' import DataRow from '../components/DataRow' class ReplicaMembers extends React.Component { render() { const { replica_set } = this.props const { membe...
apps/marketplace/components/BuyerATM/BuyerATMAboutStage.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Form } from 'react-redux-form' import Textfield from 'shared/form/Textfield' import Textarea from 'shared/form/Textarea' import CheckboxDetailsField from 'shared/form/CheckboxDetailsField' import formProps from '...
src/components/ContextEditor.js
jimf/intl-live
import React from 'react'; import PropTypes from 'prop-types'; const handleContextChange = (f, x) => e => f({ [x]: e.target.value }); const inputTypeMap = { numberFormat: 'number', pluralFormat: 'number', dateFormat: 'date', timeFormat: 'time', }; const ContextEditor = ({ context, setContextVa...
src/pages/404.js
BeardedYeti/react-blog
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
docs/src/app/components/pages/components/Snackbar/ExampleAction.js
xmityaz/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleSimple extends React.Component { constructor(props) { super(props); this.state = { autoHideDur...
frontend/src/Settings/Indexers/Indexers/EditIndexerModal.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import { sizes } from 'Helpers/Props'; import EditIndexerModalContentConnector from './EditIndexerModalContentConnector'; function EditIndexerModal({ isOpen, onModalClose, ...otherProps }) { return ( <Modal...
src/shared/LinkButton.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import Button from './Button'; const LinkButton = props => ( <Link to={{ pathname: props.pathname, query: props.query }}> <Button {...props} /> </Link> ); LinkButton.propTypes = { pathname: PropTypes.string, ...
index.android.js
uuom/aitribe
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import App from './app/app'; AppRegistry.registerComponent('aitribe', () => App);
docs/src/app/components/pages/components/Popover/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import popoverReadmeText from './README'; import PopoverExampleSimple from './Ex...
src/encoded/static/components/item-pages/SchemaView.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import { ItemDetailList } from '@hms-dbmi-bgm/shared-portal-components/es/components/ui/ItemDetailList'; export default class SchemaView extends React.PureComponent { static keyTitleDescriptionMap = { '$schema' : { ...
src/index.js
react-store/react-store.ml
require("babel-core/register"); require("babel-polyfill"); import 'rc-slider/assets/index.css'; import React from 'react' import ReactDOM from 'react-dom' import Routes from './routes' import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import...
src/ModalTitle.js
wjb12/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.pr...
client/index.js
mrblueblue/moodmusic
import React from 'react'; import { MoodMusic } from './components/App'; // window.addEventListener('touchstart', function() { // var buffer = myContext.createBuffer(1, 1, 22050); // var source = myContext.createBufferSource(); // source.buffer = buffer; // source.connect(myContext.destination); // source.no...
code/workspaces/web-app/src/components/common/typography/ResourceInfoSpan.js
NERC-CEH/datalab
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles(theme => ({ root: { fontWeight: 200, letterSpacing: '0.05em', color: theme.typography.body2.color, textTransform: 'uppercase', }, })); const ResourceInfoSpan = ({ className = '', children...
app/components/SortMenu.js
billyvg/pokemon-journal
import React, { Component } from 'react'; import { inject, observer, } from 'mobx-react'; import autobind from 'autobind-decorator'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import SortIcon from 'material-ui/svg-icon...
src/components/Schedule.js
w1nston/re-conf
import React, { Component } from 'react'; import SwipeableView from 'react-swipeable-views'; import styled from 'styled-components'; import Day from './Day'; export const Title = styled.h1` font-family: 'Love Ya Like A Sister', 'Arial', 'sans-serif'; font-size: 34px; `; export default class Schedule extends Compo...
pootle/static/js/admin/app.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 'imports?Backbone=>require("backbone")!backbone-mov...
index.ios.js
jindallae/ReactNativeInit
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class jindallae extends Component { render() { return ( <View style={styles.container}> <Tex...
src/main.js
foglerek/yn-mafia
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore'; import AppContainer from './containers/...
examples/ui-web-samples/react/src/ChatView.js
layerhq/layer-js-sampleapps
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { LayerProvider } from 'layer-react'; import Messenger from './containers/Messenger'; import ActiveConversation from './containers/ActiveConversation'; import DefaultPanel from './components/DefaultPanel'; import { IndexRoute, Rou...
app/containers/root.dev.js
fc-io/react-tape-redux
import React from 'react' import {Router} from 'react-router/es6' import {Provider} from 'react-redux' import routes from '../routes' import DevTools from '../dev_tools' export default ({store, history}) => <Provider store={store}> <div> <Router history={history} routes={routes} /> <DevTools /> <...
src/components/common/NoResults.js
TalentedEurope/te-app
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import COMMON_STYLES from '../../styles/common'; export const NoResults = (props) => { const { text } = props; return ( <View style={styles.container}> <Icon name="...
docs/app/Examples/collections/Table/Variations/TableExampleStackable.js
koenvg/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleStackable = () => { return ( <Table stackable> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell textA...
src/components/SearchBar.js
mangal49/HORECA
import React from 'react'; import { connect } from 'react-redux'; import * as actions from '../actions'; import IconButton from 'material-ui/IconButton'; import TextField from 'material-ui/TextField'; import Star from 'material-ui/svg-icons/toggle/star'; import StarBorder from 'material-ui/svg-icons/toggle/star-borde...
ee/client/omnichannel/monitors/MonitorsTable.js
VoiSmart/Rocket.Chat
import React from 'react'; import FilterByText from '../../../../client/components/FilterByText'; import GenericTable from '../../../../client/components/GenericTable'; import { useTranslation } from '../../../../client/contexts/TranslationContext'; import { useResizeInlineBreakpoint } from '../../../../client/hooks/u...
React_Redux/blog/src/components/posts_index.js
awg3/LearnCodeImprove
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPosts } from '../actions/index'; // Link: A React component, which is an anchor tag. import { Link } from 'react-router'; class PostsIndex extends Component { // A Lifecycle method: automatically called by React when the ...
src/routes.js
edabot/ReduxFour
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/app'; import PostsIndex from './components/posts_index'; import PostsNew from './components/posts_new'; import PostShow from './components/post_show'; export default ( <Route path="/" component={App}> ...
src/Tabs/test.js
kareem3d/react-swipeable-tabs
import Tabs from './index'; import React from 'react'; import { Slider, RaisedButton } from 'material-ui'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; const CubesIcon = props => ( <svg viewBox="0 0 40 40" {...props}> <g><path d="m11.7 33.4l7-3.5v-5.7l-7 3v6.2z m-1.2-8.3l7.4-3.1-7.4-3.2-7....
src/components/Search/Search.js
caijinchun/hsweb-antd
import React from 'react' import PropTypes from 'prop-types' import ReactDOM from 'react-dom' import styles from './Search.less' import { Input, Select, Button, Icon } from 'antd' class Search extends React.Component { state = { clearVisible: false, selectValue: (this.props.select && this.props.selectProps) ...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
cargo-transport/web-frontend
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
packages/wix-style-react/src/MessageBox/docs/AlertExamples/Standard.js
wix/wix-style-react
/* eslint-disable react/prop-types */ import React from 'react'; import { MessageBoxFunctionalLayout } from 'wix-style-react'; export default () => ( <MessageBoxFunctionalLayout title="Interruption Message" confirmText="Action" theme="blue" dataHook="alert-standard" > This is a generic message....
ui/src/views/nodes/UpdateNode.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; import NodeStore from "../../stores/NodeStore"; import SessionStore from "../../stores/SessionStore"; import NodeForm from "../../components/NodeForm"; import ApplicationStore from "../../stores/ApplicationStore"; class UpdateNode extends Component { static contextTypes = {...
api/responses/renderRoute.js
joshgagnon/sailjs-webpack-base
"use strict" import React from 'react' import createLocation from 'history/lib/createLocation' import {renderToString } from 'react-dom/server' import routes from '../../assets/js/routes'; import configureStore from '../../assets/js/serverStore'; import { match } from 'redux-router/server'; import { Provider } from 're...
src/js/ui/components/progressButton.js
heartnotes/heartnotes
import _ from 'lodash'; import React from 'react'; import ActionProgress from './actionProgress'; import Button from './button'; module.exports = React.createClass({ propTypes: { checkVar: React.PropTypes.object.isRequired, defaultProgressMsg: React.PropTypes.string, progressProps: React.PropTypes.obje...
src/components/EditorWidgets/Markdown/MarkdownControl/index.js
Aloomaio/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import c from 'classnames'; import { markdownToRemark, remarkToMarkdown } from 'EditorWidgets/Markdown/serializers' import RawEditor from './RawEditor'; import VisualEditor from './VisualEditor'; const MODE_STORAGE_KEY = 'cms.md-mode'; let editorControl; ...
src/pages/Signup.js
GamerZUnited/GamerZUninted-FrontEnd
import React from 'react' import {connect} from 'react-redux' import {pushState } from 'redux-router' import * as Actions from '../actions/AppActions' @connect( state => ({ login: state.login }) ) class Signup extends React.Component { render() { const {login, dispatch} = this.props const handl...
js/Landing.js
PaquitoSoft/complete-intro-to-react
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { setSearchTerm } from './actionCreators'; const { string, func, object } = React.PropTypes; const Landing = React.createClass({ /* WTF!!! */ contextTypes: { router: object }, propTypes: { sea...
stories/form/input.js
lanyuechen/dh-component
import React from 'react'; import { Input } from '../../src'; export default class InputDemo extends React.Component { constructor(props) { super(props); } render() { return ( <div className="test-input"> <div className="test-input-eq "> <Input value="1223" onChange={(e) => {conso...
ElementContent.js
asconwe/formulate
import React, { Component } from 'react'; import CustomElementInput from './CustomElementInput' class ElementContent extends Component { render() { return ( <div> <h3> <CustomElementInput value={this.props.elementTitle} ...
src/components/Footer/Footer.js
yvanwangl/UniversalBlog
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
src/encoded/static/components/navigation/components/BigDropdown/BigDropdownPageTreeMenu.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import url from 'url'; import _ from 'underscore'; import { console, memoizedUrlParse } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { BigDropdownIntroductionWrapper } from './BigD...
src/src/Components/RulesEditor/components/CustomDate/index.js
ioBroker/ioBroker.javascript
import { FormControl, MenuItem, Select } from '@material-ui/core'; import React from 'react'; import cls from './style.module.scss'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import I18n from '@iobroker/adapter-react/i18n'; const DAYS = [ 31, // 1 29, // 2 31, // 3 30, // 4 31, /...
client2/src/components/react-burger-menu/src/BurgerIcon.js
ibulmer/Board
'use strict'; import React from 'react'; import Radium from 'radium'; let BurgerIcon = Radium(React.createClass({ propTypes: { image: React.PropTypes.string, styles: React.PropTypes.object }, getLineStyle(index) { return { position: 'absolute', height: '20%', left: 0, right...
src/index.js
mende/deckard
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './stores'; import App from './containers/App'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider>, document.getElementById('app') );
components/animals/agamaKocincinska.adult.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/agamaKocincinska/0...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/NavItem.js
OpenKGB/webcode
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 ...
client/src/components/trucks/Truck.js
PCGeekBrain/TruckTrack
import React from 'react'; import { Button, ButtonGroup } from 'react-bootstrap'; const Truck = ({truck, onEdit, onDelete}) => { const edit = (event) => { onEdit(event, truck); } const deleteItem = (event) => { onDelete(truck.id) } return ( <div className="truck-card card"> <h2 className=...
src/clincoded/static/components/variant_central/interpretation/population.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'underscore'; import moment from 'moment'; import { RestMixin } from '../../rest'; import { parseClinvar } from '../../../libs/parse-resources'; import { queryKeyV...
src/index.js
christiannaths/supergroups
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './reset.css'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
ui/app/components/wizard/provider_select_stage.js
leapcode/bitmask-dev
import React from 'react' import {Button, ButtonGroup, ButtonToolbar, Glyphicon} from 'react-bootstrap' import App from 'app' import Provider from 'models/provider' import Language from 'lib/language' import ListEditor from 'components/list_editor' import {HorizontalLayout, Column} from 'components/layout' import St...
app/containers/App/index.js
Quinn-Donnelly/poller
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
classic/src/scenes/mailboxes/src/Scenes/AccountWizardScene/ServiceAttachWizardScene/WizardPersonalise.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { Button } from '@material-ui/core' import { withStyles } from '@material-ui/core/styles' import classNames from 'classnames' import lightBlue from '@material-ui/core/colors/lightBlue' import St...
src/js/containers/DevTools.js
petemill/bernie-activism-priorities
import React from 'react'; import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a monitor and produces a DevTools component e...
app/javascript/mastodon/features/trends/index.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import { injectIntl, defineMessages } from 'react-intl'; import Column from '../ui/compon...
src/svg-icons/image/filter-tilt-shift.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterTiltShift = (props) => ( <SvgIcon {...props}> <path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62...
frontend/components/player/Duration.js
BootstrapBETA/GAAMER
import React from 'react' export default function Duration ({ className, seconds }) { return ( <time dateTime={`P${Math.round(seconds)}S`} className={className}> {format(seconds)} </time> ) } function format (seconds) { const date = new Date(seconds * 1000) const hh = date.getHours() const mm ...
react/src/containers/FileMassActions/index.js
sinfin/folio
import React from 'react' import { connect } from 'react-redux' import { massDelete, massCancel, makeMassSelectedIdsSelector } from 'ducks/files' import FileMassActionsWrap from './styled/FileMassActionsWrap' function downloadHref (filesUrl, massSelectedIds) { return `${filesUrl}/mass_download?ids=${massSele...
src/js/components/acl/modals/permission_manager_modal.js
rafaelfbs/realizejs
import React, { Component } from 'react'; import PropTypes from '../../../prop_types'; import $ from 'jquery'; import { autobind, mixin } from '../../../utils/decorators'; import { difference } from 'lodash'; import { Modal, ModalHeader, ModalContent, ModalFooter } from '../../../components/modal'; import CloseModalBu...
ReactNative/messagelist.ios.js
jpush/aurora-imui
'use strict'; import React from 'react'; import ReactNative from 'react-native'; import PropTypes from 'prop-types'; import {ViewPropTypes} from 'react-native'; var { Component, } = React; var { StyleSheet, requireNativeComponent, } = ReactNative; export default class MessageList extends Component { constr...
EEG101/src/components/DecisionButton.js
NeuroTechX/eeg-101
// DecisionButton.js // Round, bordered buttons for choosing BCI action type import React, { Component } from 'react'; import { Text, View, TouchableOpacity, StyleSheet, } from 'react-native'; import { MediaQueryStyleSheet } from 'react-native-responsive'; import * as colors from "../styles/colors"; export de...
src/components/ItemList.js
berrydanielt/redux_thunk_tutorial
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { itemsFetchData } from '../actions/items' class ItemList extends Component { componentDidMount(){ this.fetchData('http://5826ed963900d612000138bd.mockapi.io/items'); } render() { if (this.state.hasErr...
packages/arwes/src/Appear/sandbox.js
romelperez/prhone-ui
import React from 'react'; import Appear from './index'; import Arwes from '../Arwes'; export default () => ( <Arwes> <Appear animate> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim ve...
node_modules/react-bootstrap/es/Collapse.js
darklilium/Factigis_2
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 ...
src/routes/PersonalInformation/components/PersonalInformation.js
dannyrdalton/example_signup_flow
import React from 'react' import { Field } from 'redux-form' import { Link } from 'react-router' import { FORM_FIELDS } from '../config/personal_information_config' export const PersonalInformation = (props) => ( <div> <h2>Personal Information</h2> <form> {FORM_FIELDS.map(field => <Field ...
src/containers/Home/Home.js
jahrlin/isomorphic-flux-react-react-router
import React from 'react'; import { Link } from 'react-router'; class Home extends React.Component { render() { return ( <div className="home"> <h2>This is the &lt;Home&gt; component</h2> <ul className="links"> <li className="links__item"> <i className="fa fa-check" ar...
services/ui/src/components/errors/ProblemNotFound.js
amazeeio/lagoon
import React from 'react'; import ErrorPage from 'pages/_error'; export default ({ variables }) => ( <ErrorPage statusCode={404} errorMessage={`Problem "${variables.id}" not found`} /> );
client/src/components/About.js
Velocies/raptor-ads
import React from 'react'; import { Link } from 'react-router'; import { Item, Statistic, Container, Grid, Divider, Image, Card } from 'semantic-ui-react'; const About = () => <Container textAlign="center" className="about" fluid> <Grid columns={1}> <Grid.Column> <Grid.Row> <Item.Image ...
index.ios.js
feirari/ITS484Project
/** * Load the App component. * (All the fun stuff happens in "/ReactApp/containers/index.js") * * React Native Starter App * // */ 'use strict'; import React from 'react' import { AppRegistry } from 'react-native' import AppContainer from './ReactApp/containers/' AppRegistry.registerComponent('StarterKit', ()...
node_modules/react-router-dom/es/HashRouter.js
bburnett-cpf/react-intro
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 &...
admin/client/App/shared/Popout/PopoutListHeading.js
helloworld3q3q/keystone
/** * Render a popout list heading */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutListHeading = React.createClass({ displayName: 'PopoutListHeading', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, }, ...
docs/client/components/pages/Video/CustomAddVideoVideoEditor/VideoAdd/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import styles from './styles.css'; export default class VideoAdd extends Component { // Start the popover closed state = { url: '', open: false, }; // When the popover is open and users click anywhere on the page, // the popover should close componentDidMo...
src/components/Weui/button/button_area.js
ynu/res-track-wxe
/* eslint-disable */ import React from 'react'; import classNames from 'classnames'; export default class ButtonArea extends React.Component { static propTypes = { direction: React.PropTypes.string }; static defaultProps = { direction: 'vertical' }; render() { const {di...
src/svg-icons/image/panorama-wide-angle.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaWideAngle = (props) => ( <SvgIcon {...props}> <path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12...
src/hoc/withTick.js
xavi160/react-video
import React from 'react'; export default function withTick(milliseconds, condition, Component) { return class Tick extends React.Component { constructor() { super(); this.state = { now: new Date() }; } componentDidMount() { this.tickInterval = setInterval( () => condition(thi...
packages/react-error-overlay/src/components/Footer.js
mangomint/create-react-app
/** * 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. */ /* @flow */ import React from 'react'; import { darkGray } from '../styles'; const footerStyle = { fontFamily: 'sans-serif', color:...
src/PopoverMenuItem3/index.js
DuckyTeam/ducky-components
import Icon from '../Icon'; import React from 'react'; import PropTypes from 'prop-types'; import Typography from '../Typography'; import Wrapper from '../Wrapper'; import classNames from 'classnames'; import styles from './styles.css'; function PopoverMenuItem3(props) { return ( <Wrapper clas...
src/svg-icons/action/alarm-on.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOn = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0...
docs/app/Examples/elements/Header/States/HeaderExampleDisabled.js
ben174/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExampleDisabled = () => ( <Header as='h2' disabled> Disabled Header </Header> ) export default HeaderExampleDisabled