path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/ComingSoon/index.js
brainsandspace/ship
/** * * ComingSoon * */ import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.div` display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; text-align: center; h1 { font-size: 5rem; span { vertical-align: 20%; font-size: 2.5r...
src/NavItem.js
zanjs/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
lib/components/ContentBlock.js
towry/composer-core
import React, { Component } from 'react'; import { getElementForBlockOfType } from '../blockRenderer'; import BlockLeaf from './BlockLeaf'; import offsetKey from '../util/offsetKey'; import entityRenderer from '../entityRenderer'; export default class ContentBlock extends Component { static displayName = 'ContentB...
src/svg-icons/communication/call-received.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallReceived = (props) => ( <SvgIcon {...props}> <path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"/> </SvgIcon> ); CommunicationCallReceived = pure(CommunicationCallReceived); CommunicationCa...
src/mui/button/RefreshButton.js
matteolc/admin-on-rest
import React from 'react'; import PropTypes from 'prop-types'; import FlatButton from 'material-ui/FlatButton'; import NavigationRefresh from 'material-ui/svg-icons/navigation/refresh'; import translate from '../../i18n/translate'; const RefreshButton = ({ label = 'aor.action.refresh', translate, refresh }) => <FlatBu...
client/src/components/pages/KeywordHistory/index.js
Nonsoft/crdweb
import React, { Component } from 'react'; import { Row, Col, Form } from 'antd'; import QueryBar from '../../QueryBar'; import { FormButton, FormDate, FormInput, KeywordTypeSelect, OperTypeSelect } from '../../FormWiget'; class KeywordHistory extends Component { select = () => { let startTime, endTime; this...
src/svg-icons/file/file-upload.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFileUpload = (props) => ( <SvgIcon {...props}> <path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/> </SvgIcon> ); FileFileUpload = pure(FileFileUpload); FileFileUpload.displayName = 'FileFileUpload'; FileFil...
react_export_input_sample/setup.js
devSC/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; ///, { name, age } 为导出此类的变量 sum为+方法 import EIComponent, { name, age, sum } from './EIComponent' export default class set...
webapp/app/components/MigrationHistory/Table/Line/index.js
EIP-SAM/SAM-Solution-Server
// // Migration History Line main components // import React from 'react'; import moment from 'moment'; import Tr from 'components/Tr'; import Td from 'components/Td'; import { Label } from 'react-bootstrap'; import ButtonPopover from 'components/ButtonPopover'; import statusLabel from 'components/MigrationHistory/sta...
sam-front/src/pages/NewAsset.js
atgse/sam
import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import isEmpty from 'lodash/isEmpty'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import TextField from 'material-ui/TextField'; import AutoComplete from...
website/src/containers/PersonalSettings.js
chrisl8/ArloBot
import React, { Component } from 'react'; import { Card, CardBody, CardHeader, CardTitle } from 'reactstrap'; class PersonalSettings extends Component { constructor(props) { super(props); this.cardTitle = 'Settings'; } render() { const dataTable = []; if (this.props.personalData) { for (c...
fixtures/ssr/server/render.js
jquense/react
import React from 'react'; import {renderToString} from 'react-dom/server'; import App from '../src/components/App'; let assets; if (process.env.NODE_ENV === 'development') { // Use the bundle from create-react-app's server in development mode. assets = { 'main.js': '/static/js/bundle.js', 'main.css': '',...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
eidietrich/bzn-walk-map
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/account/AccountSummary/AccountSummary.js
TulevaEE/onboarding-client
import React from 'react'; import { PropTypes as Types } from 'prop-types'; import sumBy from 'lodash/sumBy'; import { FormattedMessage } from 'react-intl'; import Table, { getProfitClassName } from '../../common/table'; import Euro from '../../common/Euro'; import { Shimmer } from '../../common/shimmer/Shimmer'; exp...
packages/material-ui-icons/src/CallMerge.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CallMerge = props => <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z" /> </SvgIcon>; CallMerge = pure(CallMerge); Call...
cra-network-aware-code-splitting/src/components/LazyLoadingErrorBoundary/index.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
ajax/libs/react-instantsearch/5.0.0/Connectors.js
sufuf3/cdnjs
/*! ReactInstantSearch 5.0.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
src/routes.js
Kakise/Kaki-Blog
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/app'; import PostsIndex from './components/posts_index'; import PostsShow from './components/posts_show'; import PageShow from './components/page_show'; import Asset from './components/asset'; export de...
src/components/RaceResultsTableRow.js
chiefwhitecloud/running-man-frontend
import React from 'react'; import { Link } from 'react-router-dom'; const PositionRowStyle = { textAlign: 'right', }; const NameRowStyle = { textAlign: 'left', }; const TimeRowStyle = { textAlign: 'right', }; const chipTimeStyle = { textAlign: 'right', }; export default class RaceResultTableRow extends Rea...
client/src/js/jsx/components/Tab.js
johnsbarrie/web-dev-env
import React from 'react'; import ReactDOM from 'react-dom'; import { Link, History } from "react-router" export default class Tab extends React.Component { constructor(props, context){ super(props, context) this.router = context.router; } render () { const isActive = (this.router.isActive(this.props.url)) ? ...
modules/IndexLink.js
AnSavvides/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
app/components/Thumbnail/index.js
dreamweaver1231/react-project
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Img from 'components/Img/Loadable'; import { getIndex, capitalize } from 'utils/util'; function Thumbnail({ name, url }) { const imgUrl = getIndex(url); const capitalName = capitalize(name); return ( ...
frontend/src/System/Logs/Files/LogFiles.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Alert from 'Components/Alert'; import Link from 'Components/Link/Link'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import PageContent from 'Components/Page/PageContent'; import PageContentBody from 'Components/...
src/client/me/index.react.js
laxplaer/este
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import Logout from '../auth/logout.react'; import React from 'react'; import requireAuth from '../auth/requireauth'; import {format} from '../intl/store'; @requireAuth export default class MeIndex extends Component...
05-arrow-functions/src/index.js
benmvp/react-esnext
// Module imports to load in dependencies // Uses both default & named imports import React from 'react'; import {render} from 'react-dom'; import App from './containers/App'; render( <App url="//localhost:3000/api/comments" pollInterval={2000} />, document.getElementById('app') );
src/client/athrun/apps/demo/screens/manager/components/list.js
cnfi/laboratory
import React, { Component } from 'react'; import shallowCompare from 'react-addons-shallow-compare' import { Table } from 'antd'; class List extends React.Component { handleChange(pagination, filters, sorter) { console.log(pagination) this.props.boundGotoPage(pagination); } render() { ...
app/javascript/mastodon/features/status/components/card.js
corzntin/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; const IDNA_PREFIX = 'xn--'; const decodeIDNA = domain => { return domain .split('.') .map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part) ...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js
GreenGremlin/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. */ import React from 'react'; import './assets/style.css'; import { test, version } from 'test-integrity'; export default () => { const ...
frontend/app/components/LearnBase/links-list-view.js
First-Peoples-Cultural-Council/fv-web-ui
/* Copyright 2016 First People's Cultural Council Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
packages/cf-component-page/example/basic/component.js
mdno/mdno.github.io
import React from 'react'; import { Page, PageHeader, PageContent } from 'cf-component-page'; const PageComponent = () => ( <Page> <PageHeader title="Title" subtitle="Subtitle" /> <PageContent> <div>Awesome page content.</div> <div>Please buy our things.</div> </PageContent> </Page> ); exp...
components/Deck/ContentPanel/AttachSubdeck/AttachSlidesModal.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import {connectToStores} from 'fluxible-addons-react'; import {Button, Icon, Modal, Container, Segment, TextArea, Popup} from 'semantic-ui-react'; import UserProfileStore from '../../../../stores/UserProfileStore'; import AttachSubdeckModalStore from '../.....
src/components/HomeView.js
neon-dinosaur/rental-ui
import React from 'react'; const HomeView = () => ( <div className="homeview"> <div className="columns"> <div className="column col-4 hide-sm"> </div> <div className="homeview-content column col-6 col-mx-auto"> <h1>Welcome to Sandride Beach</h1> ...
server/server.js
sleys/sley
import 'moment/locale/zh-cn' import path from 'path' import Koa from 'koa' import staticCache from 'koa-static-cache' import convert from 'koa-convert' import compress from 'koa-compress' import React from 'react' import Helmet from 'react-helmet' import { trigger } from 'redial' import { renderToStaticMarkup } from 'r...
server/starters/reactServer.js
OmarBERRABEH/dahakni
import IntlWrapper from '../../client/modules/Intl/IntlWrapper'; import { configureStore } from '../../client/store'; import { Provider } from 'react-redux'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { match, RouterContext } from 'react-router'; import Helmet from 'react-helme...
src/svg-icons/maps/satellite.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSatellite = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8....
lib/component-library-slides/LiteralChildren.js
waynecraig/encoding-present
import React from 'react'; import CodeBlock from '../components/CodeBlock'; const childCode = `<DataTable> <Column title="Name" /> <Column title="FavoriteColor" /> <Row rowIndex={ 0 } name="Suzy" color="black" /> <Row rowIndex={ 1 } name="Fred" color="brown" /> <Pager pageSize={ 2 } startIndex={ 0 } /> </Dat...
docs/app/Examples/elements/List/Types/ListExampleTree.js
clemensw/stardust
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleTree = () => ( <List> <List.Item> <List.Icon name='folder' /> <List.Content> <List.Header>src</List.Header> <List.Description>Source files for project</List.Description> <List.List> <...
plugins/react/frontend/components/controls/base/ObjectControl/ConstraintsForm/renderConstraintForm.js
carteb/carte-blanche
import React from 'react'; import getControl from '../../../../../utils/getControl'; import has from 'lodash/has'; import set from 'lodash/set'; const renderConstraintForm = ( propKey, controlType, updateConstraints, constraints, parsedMetadata, nestedLevel ) => { // retrieving the ConstraintsForm based ...
app/javascript/mastodon/features/ui/components/column_loading.js
nonoz/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Column from '../../../components/column'; import ColumnHeader from '../../../components/column_header'; const ColumnLoading = ({ title = '', icon = ' ' }) => ( <Column> <ColumnHeader icon={icon} title={title} multiColumn={false} focusable={fa...
examples/index.js
zarendar/rselect
import React from 'react'; import ReactDom from 'react-dom'; import Examples from './Examples'; ReactDom.render( <Examples />, document.getElementById('root') );
src/App.js
dkozar/react-data-menu
import _ from 'lodash'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import AppMenuItems from './data/AppMenuItems.js'; import BottomToolbar from './components/BottomToolbar.js'; import Circle from './components/Circle.js'; import {CIRCLE_ID_PREFIX} from './components/Circle.js'; import C...
src/index.js
jessepatricio/react-weather
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
src/widgets/SupplierRequisitionItemDetail.js
sussol/mobile
/* eslint-disable react/forbid-prop-types */ /** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2020 */ import React from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet } from 'react-native'; import { PageInfo } from './PageInfo/PageInfo'; import { getPageInfoColumns } from '../pages/d...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/datatable/editing/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let ordersSource = { dataFields: [ { name: 'OrderID', type: 'int' }, { name: 'Freight', type:...
dist/lib/carbon-fields/assets/js/fields/components/media-gallery/list-item.js
ArtFever911/statrer-kit
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { withHandlers } from 'recompose'; /** * The internal dependencies. */ import { preventDefault } from 'lib/helpers'; /** * Render a file upload field with a preview thumbnail of ...
app/javascript/mastodon/features/account_timeline/index.js
Ryanaka/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { lookupAccount, fetchAccount } from '../../actions/accounts'; import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/time...
src/containers/Profile/Map.js
JustPeople/app
import React from 'react' import { connect } from 'react-redux' import { withScriptjs, withGoogleMap, GoogleMap } from 'react-google-maps' import Avatar from './Avatar' const { MarkerWithLabel } = require("react-google-maps/lib/components/addons/MarkerWithLabel") const SRC = 'https://maps.googleapis.com/maps/api/js?...
src/modules/comments/components/CommentLemma/CommentGroupMeta/CommentGroupMeta.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; // components import CommentGroupMetaWorkTitleContainer from '../../../containers/CommentGroupMetaWorkTitleContainer'; import AvatarIcon from '../../../../users/components/AvatarIcon'; // cts import serializeUrn from '../../../../cts/lib/serializeUrn'; ...
src/core/containers/App.js
getfilament/Distil
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as hqActionCreators from '../actions/hqActionCreators'; import * as urlActionCreators from '../actions/urlActionCreators'; import mui from 'material-ui'; import { AppBar, LeftNav, MenuItem, Paper } f...
spec/components/app_bar.js
react-toolbox/react-toolbox
import React from 'react'; import AppBar from '../../components/app_bar'; const AppBarTest = () => ( <section> <h5>AppBar</h5> <br /> <AppBar title="Title" /> <br /> <AppBar leftIcon="menu" title="Title" /> <br /> <AppBar leftIcon="arrow_back" title="Title" rightIcon="close" /> <br />...
src/browser/users/OnlineUsers.js
chad099/react-native-boilerplate
// @flow import type { State, User } from '../../common/types'; import React from 'react'; import getUserPhotoUrl from '../../common/users/getUserPhotoUrl'; import { Box, Image, Text } from '../../common/components'; import { connect } from 'react-redux'; type OnlineUserProps = { user: User, }; const OnlineUser = (...
src/components/DeleteTaskModalComponent.js
Zcyon/lait
'use strict'; import React from 'react'; require('styles//DeleteTaskModal.css'); let DeleteTaskModalComponent = (props) => ( <div id="modalConfirm" className="modal is-active"> <div className="modal-background" onClick={props.toggleModal}> </div> <div className="modal-content"> <div className="ca...
middle-demo/comment-app/src/index.js
CFshuming/react-demo-gather
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/index.js
conniechu929/eSparkStudentData
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import StudentsTest from './components/student_test'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDO...
node_modules/semantic-ui-react/dist/es/views/Card/CardDescription.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import _isNil from 'lodash/isNil'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; /** * A card can contain a description with one o...
docs/components/header.js
whoisandie/react-rangeslider
import React from 'react' import GitHubButton from 'react-github-button' function Header () { return ( <section className='block'> <h1><a href='/'>React Rangeslider</a></h1> <p> A fast & lightweight react component as a drop in replacement for HTML5 input range slider element. </p> ...
lib/components/term.js
derrickpelletier/hyper
/* global Blob,URL,requestAnimationFrame */ import React from 'react'; import Terminal from 'xterm'; import {clipboard} from 'electron'; import {PureComponent} from '../base-components'; import terms from '../terms'; import returnKey from '../utils/keymaps'; import CommandRegistry from '../command-registry'; import pro...
pkg/interface/chat/src/js/api.js
ngzax/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.groups = { add: this.groupAdd.bind(this), ...
docs/src/examples/views/Item/Content/ItemExampleHeaders.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Item } from 'semantic-ui-react' const ItemExampleHeaders = () => ( <Item.Group> <Item> <Item.Image size='tiny' src='/images/wireframe/image.png' /> <Item.Content verticalAlign='middle'> <Item.Header as='a'>12 Years a Slave</Item.Header> </Item.Content>...
src/client/components/base/Divider/Divider.js
DBCDK/content-first
import React from 'react'; import PropTypes from 'prop-types'; import './Divider.css'; const Divider = ({ type = 'horizontal', variant = 'thick', className = '', ...props }) => { return ( <div className={`${className} divider divider__${type} divider__${type}--${variant}`} {...props} /> ...
src/modules/Components/User/Views/Resources/Scholarships.js
rtellez700/MESA_Connect_2.0
import React, { Component } from 'react'; class Scholarships extends Component { render() { return ( <div className="display--in-center"> <h1> Hello from Scholarships.js! </h1> </div> ); } } module.exports = Scholarships;
compare/src/components/molecules/ApproveButton.js
garris/BackstopJS
import React from 'react'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { approveTest, filterTests } from '../../actions'; import { colors, fonts } from '../../styles'; const REMOTE_HOST = 'http://127.0.0.1'; const REMOTE_PORT = 3000; const APPROVE_STATUS_TO_LABEL_MAP = Object....
tests/flow/react/createElementRequiredProp_string.js
vjeux/prettier
// @flow import React from 'react'; class Bar extends React.Component { props: { test: number, }; render() { return ( <div> {this.props.test} </div> ) } } class Foo extends React.Component { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); ...
src/components/LogoutLink.js
react-auth/react-auth
import React from 'react'; import context from './../context'; import { logout } from './../actions'; export default class LogoutLink extends React.Component { static contextTypes = { router: React.PropTypes.object.isRequired }; state = { disabled: false }; _performRedirect() { var router = co...
web/src/components/ModalWindow.js
nokia/LearningStore
/* @author Félix Fuin Copyright Nokia 2017. All rights reserved. */ import React, { Component } from 'react'; import { Button, Icon, Modal } from 'semantic-ui-react' export default class ModalWindow extends Component{ op; state = { open: false } open = () => this.setState({ open: true }) close = () => t...
ressources/components/svg-icons/SelectionIcon.js
mscodemonkey/Sketch-Find-And-Replace
import React from 'react' const SelectionIcon = (props) => { const { theme, isActive } = props return ( <svg width='38px' height='32px' viewBox='0 0 38 32'> <g stroke='none' strokeWidth='1' fill='none' fillRule='evenodd' > <g transform='translate(6...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
dsopel94/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
front/src/scenes/Landing/index.js
dherault/Aquest
import React from 'react'; import { QueryRenderer, graphql } from 'react-relay'; import environment from '../../relayEnvironment'; import LoadingIndicator from '../../components/LoadingIndicator'; import DevelopmentErrorMessage from '../../components/DevelopmentErrorMessage'; import LandingScene from './LandingScene'...
app/components/FileList.js
shaunstanislaus/fil
import _ from 'underscore'; import React from 'react'; import {connect} from 'react-redux'; import classNames from 'classnames'; import {createFile, deleteFile, renameFile, openFile} from 'actions/files'; class FileRenameForm extends React.Component { constructor(props) { super(props); this.state =...
src/parser/demonhunter/vengeance/modules/spells/SigilOfFlame.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatThousand...
src/pages/ResultsPage.js
Open-Seat-Philly/open-seat
import React from 'react'; const ResultsPage = () => ( <div className='results-page'> <h1>This is the results page.</h1> </div> ); export default ResultsPage;
app/javascript/mastodon/features/search/index.js
ikuradon/mastodon
import React from 'react'; import SearchContainer from 'mastodon/features/compose/containers/search_container'; import SearchResultsContainer from 'mastodon/features/compose/containers/search_results_container'; const Search = () => ( <div className='column search-page'> <SearchContainer /> <div className='...
foodprintReactNative/index.android.js
jwunder127/foodprint
import React, { Component } from 'react'; import { Router, Scene, Actions } from 'react-native-router-flux'; import { Provider, connect } from 'react-redux'; import LoginContainer from './containers/LoginContainer' import SignupContainer from './containers/SignupContainer' import CalendarPage from './containers/Calenda...
app/javascript/mastodon/features/favourited_statuses/index.js
pfm-eyesightjp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
frontend/src/containers/NotStartedVictims.js
esarafianou/rupture
import React from 'react'; import { Link } from 'react-router'; import _ from 'lodash'; import GrayPc from '../img/gray_pc.png'; export default class NotStartedVictims extends React.Component { possibleVictims = () => { if (this.props.victims) { return _.map(this.props.victims, (victim) => {...
src/routes/Admin/routes/MainBannerRegister/components/MainBannerRegisterView.js
eunvanz/flowerhada
import React from 'react' import $ from 'jquery' import { postMainBanner, putMainBanner, deleteMainBanner } from 'common/MainBannerService' import { Link } from 'react-router' import { postLessonImage } from 'common/LessonService' import Button from 'components/Button' class MainBannerRegister extends React.Component ...
fixtures/fiber-debugger/src/Fibers.js
flarnie/react
import React from 'react'; import {Motion, spring} from 'react-motion'; import dagre from 'dagre'; // import prettyFormat from 'pretty-format'; // import reactElement from 'pretty-format/plugins/ReactElement'; function getFiberColor(fibers, id) { if (fibers.currentIDs.indexOf(id) > -1) { return 'lightgreen'; }...
src/containers/Main/index.js
allyrippley/7ds
import React from 'react' import {connect} from 'react-redux' import {bindActionCreators} from 'redux' import * as actions from '../../actions/heroActions' import Hero from '../../components/blocks/HeroFull' const Main = (props) => { window.console.log('MainContainerProps: ', props) return ( <div style={{wid...
src/interface/others/SmallStatisticBox.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { TooltipElement } from 'common/Tooltip'; import './StatisticBox.css'; import STATISTIC_CATEGORY from './STATISTIC_CATEGORY'; export { default as STATISTIC_ORDER } from './STATISTIC_ORDER'; export { default as STATISTIC_CATEGORY } from './STATISTI...
ui-react/src/App.js
cmansel/myWebsite
import React, { Component } from 'react'; import Snow from 'react-snow-effect'; import antton from './assets/AnttonPolaroid.png'; import flockBadge from './assets/Flock_Badge_TransparentBG_White.png'; import flockLogo from './assets/Flock_Horizontal_Transparent_White.png'; import christmasDrone from './assets/christmas...
docs/src/app/pages/components/TabWrapper/Page.js
GetAmbassador/react-ions
import React from 'react' import PropsList from 'private/modules/PropsList' import tabWrapperDocs from '!!docgen!react-ions/lib/components/TabWrapper/TabWrapper' import tabDocs from '!!docgen!react-ions/lib/components/TabWrapper/Tab' import CodeExample from 'private/modules/CodeExample' import styles from 'private/css/...
app/components/LoadingIndicator/index.js
huahuaxiong/console
import React from 'react'; import styles from './styles.css'; function LoadingIndicator() { return ( <div> <div className={styles['sk-fading-circle']}> <div className={styles.skCircle}></div> <div className={styles['sk-circle2']}></div> <div className={styles['sk-circle3']}></div> ...
src/components/SvgIcon/TextInput.js
sk-iv/iva-app
import React from 'react'; import SvgIcon from './SvgIcon'; import classNames from 'classnames'; /** * @ignore - internal component. */ let TextInput = props => ( <SvgIcon {...props} className={classNames('icon--size24', props.className)}> <path d="M7,1h1c2.2,0,4,1.8,4,4v14c0,2.2-1.8,4-4,4H7 M17,1h-0.9C13.9,1,...
client/src/containers/dataset.js
OpenChemistry/materialsdatabank
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux' import _ from 'lodash'; import { loadDatasetById } from '../redux/ducks/datasets' import { loadReconstructions } from '../redux/ducks/reconstructions' import { loadProjections } from '../redux/ducks/proj...
react-ui/src/components/table.js
danielemanuel/in_search_of_happiness
import React, { Component } from 'react'; import Company from './company'; class Table extends Component { state = {companies: []} componentDidMount() { fetch('/api/companies') .then(res => res.json()) .then(companies => this.setState({ companies })); } render() { const companies = this.s...
public/src/server-render/browser.js
codelegant/myReact
/** * Author: CodeLai * Email: codelai@dotdotbuy.com * DateTime: 2016/9/1 10:57 */ //public/src/server-render/browser.js import React from 'react'; import {render} from 'react-dom'; const ItemList=require('./ItemList'); const model=require('./model'); render(<ItemList {...model}/>, document.getElementById('containe...
src/mixins/helpers.js
CondeNast/react-slick
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper'; import assign from 'object-assign'; var helpers = { initialize: function (props) { const slickList = ReactDOM.findDOMNode(this.list); var slideCount = Reac...
src/App.js
henyouqian/sale
import React, { Component } from 'react'; import { NICE, SUPER_NICE } from './colors'; class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 }; this.interval = setInterval(() => this.tick(), 1000); } tick() { this.setState({ counter: this.state.coun...
src/svg-icons/content/forward.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentForward = (props) => ( <SvgIcon {...props}> <path d="M12 8V4l8 8-8 8v-4H4V8z"/> </SvgIcon> ); ContentForward = pure(ContentForward); ContentForward.displayName = 'ContentForward'; export default Conte...
src/profile/Profile.js
VasilyShelkov/ClientRelationshipManagerUI
import React from 'react'; import LoadingSpinner from '../shared/LoadingSpinner'; import ShowProfileWithData from './details/ShowProfile'; import { EDIT_IN_PROGRESS } from './profileReducer'; import EditProfile from './details/EditProfile'; import CompanyProfile from './company/Company'; export default ({ loading, ...
src/svg-icons/maps/subway.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSubway = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="16" r="1"/><circle cx="8.5" cy="16" r="1"/><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2c-1.86 0-4 .09-5.8.8C3.53 3.84 2 6.05 2 8....
src/index.js
withspectrum/slate-markdown
// @flow /** * Most of this was stolen from https://github.com/ianstormtaylor/slate/blob/460498b5ddfcecee7439eafe4f4d31cacde69f41/examples/markdown-preview/index.js */ import React from 'react'; import getDecorator from './decorator'; import { Title, Bold, Italic, Punctuation, Code, List, Hr, Url, } f...
src/svg-icons/action/settings-input-svideo.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputSvideo = (props) => ( <SvgIcon {...props}> <path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h...
app/javascript/mastodon/features/public_timeline/components/column_settings.js
im-in-space/mastodon
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'; export default @injectIntl class ColumnSettings extends React....
src/shared/component/LoadingError.js
temando/open-api-ui
import React from 'react'; import './LoadingError.scss'; class LoadingError extends React.Component { render() { setTimeout(() => { window.location.replace(window.location.pathname); }, 3000); return ( <div className="loading-error"> <h1>Error loading Swagger file</h1> <p>Err...
ajax/libs/react-instantsearch/4.1.0-beta.3/Dom.js
pvnr0082t/cdnjs
/*! ReactInstantSearch 4.1.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
custom_modules/Scenes/Login.js
hustmsc/hustmsc-app
import React, { Component } from 'react'; import { StyleSheet, Image, View, } from 'react-native'; import Dimensions from 'Dimensions'; import Navbar from '../UIKit/Navbar'; export default class LaunchScreen extends Component { render() { return ( <View style={styles.flexContainer}...
server/soman/frontend/app/components/sensors/Humidity.js
bilgorajskim/soman
import React from 'react'; import SensorIcon from 'react-icons/lib/md/grain'; export default function humiditySensor({data, color}) { const value = data ? data.value : '?' return <div> <div className="sensor__icon"> <SensorIcon /> </div> <div className="sensor__label"> {`${value}%`} </d...
src/shared/component/SwaggerURLInput.js
temando/open-api-ui
import React from 'react'; import './SwaggerURLInput.scss'; class SwaggerURLInput extends React.Component { constructor(props) { super(props); this.handleSubmit = this.handleSubmit.bind(this); } render() { return ( <form className="swagger-url-input-form" onSubmit={this.handleSubmit}> ...
packages/react-server-test-pages/pages/root/rootProvider.js
lidawang/react-server
import {RootElement} from "react-server"; import {RootProvider} from "react-server-redux"; import {createStore} from "redux"; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import React from 'react'; function simpleReducer(state = {simpleValue: "Hello"}) { return state; } class BasicCompo...