path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/containers/test/CalendarContainerTest.js
opiskelija-dashboard/dashboard
import test from 'ava'; import React from 'react'; import {shallow, mount} from 'enzyme'; import ReactDOM from 'react-dom'; import configureStore from "redux-mock-store"; import { Provider } from "react-redux"; import HeatmapContainer from '../HeatmapContainer'; test.beforeEach(t => { const mockStore = configureSt...
app/javascript/mastodon/components/avatar.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
src/components/Layout/Layout.js
taekungngamonosus/monoreact
/** * 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 PropTypes from 'prop-...
packages/arwes/src/Puffs/Puffs.js
romelperez/ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; export default class Puffs extends Component { static propTypes = { theme: PropTypes.any.isRequired, classes: PropTypes.any.isRequired, animate: PropTypes.bool, /** * How often to create ...
src/index.js
Shashank1706/olep-serverless
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import App from './App'; import './index.css'; ReactDOM.render( <Router> <App /> </Router>, document.getElementById('root') );
src/ui/components/views/PageLoading.js
Anup-Allamsetty/pure
/* @flow */ import React, { Component } from 'react'; import shallowEqual from 'shallowequal'; import LoadingItem from './LoadingItem'; import Page from './Page'; export default class PageLoading extends Component<void, any, void> { shouldComponentUpdate(nextProps: any): boolean { return !shallowEqual(this.props, ...
addons/themes/solid-state/layouts/Single.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import Menu from '../includes/Menu'; let Single = React.createClass({ componentDidMount(){ require('../assets/css/main.css') }, ...
app/containers/BootStrap/BSFormGroup/index.js
perry-ugroop/ugroop-react-dup2
/** * Created by Yang on 18/11/16. */ import React from 'react'; const BSFormGroup = (props) => <div className={`form-group ${props.className}`}> {props.children} </div>; BSFormGroup.propTypes = { className: React.PropTypes.any, children: React.PropTypes.any, }; export default BSFormGroup;
packages/veritone-react-common/src/components/SearchPill/story.js
veritone/veritone-sdk
import React from 'react'; import { storiesOf } from '@storybook/react'; import { boolean } from '@storybook/addon-knobs'; import SearchPill from './'; const onClick = function () { console.log('Clicked on the search pill'); }; const onDelete = function () { console.log('Delete the pill'); }; storiesOf('SearchPi...
src/svg-icons/communication/stay-primary-landscape.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
src/icons/menu.js
jasongforbes/jforbes.io
import React from 'react'; export default props => ( <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" {...props}> <path d="M24 6 h-24 v-4 h24 v4 zm0 4 h-24 v4 h24 v-4 zm0 8 h-24 v4 h24 v-4 ...
src/svg-icons/device/battery-charging-30.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging30 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M11 20v-5.5H7...
www/frontSrc/Header/Icons/HomeIcon.js
jben94/centreon
import React from 'react' import SvgIcon from '@material-ui/core/SvgIcon' const HomeIcon = (props) => ( <SvgIcon {...props}> <path fill="#2B9E93" d="M376.4,733.6v-18.8v-16.9v-1.9v18.8V733.6c-19.8-0.1-35.8-16-35.8-35.8l0,0v-80h-70.2v80 c-0.1,19.8-16,35.7-35.8,35.8l0,0h-98.5c-19.9,0-35.8-16-35.9-35.8l0,0...
client/filter.js
golmansax/funnel
import React from 'react'; import styles from './filter.css'; import Link from './link'; import lookupImage from './lookup_image'; const CATEGORY_MAP = { "Men's Shoes": { category: true, color: true }, }; export default class Filter extends React.Component { constructor(props) { super(props); this._render...
src/app/web/App.js
arikanmstf/mylibrary
// @flow import React from 'react'; import { injectGlobal } from 'styled-components'; import font from 'assets/fonts/libre-baskerville.regular.ttf'; // Redux import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import reducers from 'store/reduce...
react-client/src/utils.js
transformative-tire-swings/transformative-tire-swings
import React from 'react'; export default { location: () => { let options = { enableHighAccuracy: true, timeout: 5000, maximumAge: 0 }; let success = (pos) => { var crd = pos.coords; console.log('Your current position is:'); console.log(`Latitude : ${crd.latitude}`);...
src/containers/Feedback/Notification/index.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { Row, Col, Icon } from 'antd'; import notification from '../../../components/feedback/notification'; import Button from '../../../components/uielements/button'; import PageHeader from '../../../components/utility/pageHeader'; import Box from '../../../components/utility...
src/parser/warlock/affliction/modules/azerite/DreadfulCalling.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import StatTracker from 'parser/shared/modules/StatTracker'; import calculateBonusAzeriteDamage from 'parser/core/calculateB...
src/index.js
teafn/react-webpack-sample
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
docs/src/sections/LabelSection.js
apkiernan/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 LabelSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anc...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/PaginationItem.js
GoogleCloudPlatform/prometheus-engine
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; var _excluded = ["active", "className", "cssModule", "disabled", "tag"]; import React from 'react'; import PropTypes from 'prop-types'; import classNames from '...
aaf-enrollment/src/components/enrollment/method-authenticators/U2FMethod.js
MicroFocus/CX
import React from 'react'; import Authenticator from '../Authenticator'; import {getU2FOriginFromUrl, u2fParseError, u2fRegister} from '../../../api/devices/u2f-device.api'; import {STATUS_TYPE} from '../../../ux/ux'; import t from '../../../i18n/locale-keys'; class U2FMethod extends React.PureComponent { construc...
src/modules/xman/components/FlightList/FlightList.js
devteamreims/4me.react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; import LinearProgress from 'material-ui/LinearProgress'; import FlightRow from './FlightRow'; import theme from '../../../../shared/theme'; import { Table, TableHeader, TableHeaderColumn, TableRow, Tabl...
src/module.js
notion-app/web
// Bootstrapping module import React from 'react'; import Router from 'react-router'; import routes from 'routes'; Router.run(routes, Router.HistoryLocation, (Root, state) => { React.render(<Root {...state}/>, document.getElementById('content')); });
jenkins-design-language/src/js/components/material-ui/svg-icons/action/info-outline.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionInfoOutline = (props) => ( <SvgIcon {...props}> <path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"/> </SvgIcon> ); Acti...
src/SafeAnchor.js
HorizonXP/react-bootstrap
import React from 'react'; import createChainedFunction from './utils/createChainedFunction'; /** * Note: This is intended as a stop-gap for accessibility concerns that the * Bootstrap CSS does not address as they have styled anchors and not buttons * in many cases. */ export default class SafeAnchor extends React...
src/client/assets/js/features/driver/components/Data/Data.js
me-box/iot.red
import React from 'react'; import DataType from './DataType'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { actionCreators as driverActions, selector } from '../../'; @connect(selector, (dispatch) => { return{ actions: bindActionCreators(driverActions, dispatch), ...
src/components/bars/listBar.js
jollopre/beverage_planning
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ListItemBar from './listItemBar'; export default class ListBar extends Component { render() { const { list } = this.props; const view = list.map(item => (<ListItemBar key={item.id} bar={item} />)); return <div className="row">{...
src/svg-icons/communication/rss-feed.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationRssFeed = (props) => ( <SvgIcon {...props}> <circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17...
node_modules/react-router/modules/RouteUtils.js
WatkinsSoftwareDevelopment/HowardsBarberShop
import React from 'react' import warning from './warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName,...
fields/types/datetime/DatetimeField.js
kumo/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'DatetimeField', focusTargetRef: 'dateInput', // d...
react-components/src/library/components/materials-bin/user-materials-container.js
concord-consortium/rigse
import React from 'react' import createFactory from '../../helpers/create-factory' import MBFetchDataHOC from './fetch-data-hoc' import MBMaterialsCollection from './materials-collection' class _MBUserMaterialsContainer extends React.Component { getVisibilityClass () { if (!this.props.visible) { return 'm...
source/redux/client/render.js
halt-hammerzeit/react-isomorphic-render
import React from 'react' import { getLocationUrl } from '../../location' import { matchRoutes } from '../../router' import { createRouterElement } from '../../router/client' import { isServerSidePreloaded } from '../../client/flags' // Renders the current page React element inside the `to` DOM element. // // Returns...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-10/Page.js
Brandon-J-Campbell/codemash
import React from 'react'; export default function Page({ children }) { return ( <div className="page"> <div className="content">{children}</div> </div> ); }
client/src/groups/group.card.component.js
Thiht/docktor
// React import React from 'react'; import { Link } from 'react-router'; // Dependencies import moment from 'moment'; // Style import './group.card.component.scss'; // GroupCard Component class GroupCard extends React.Component { render() { const group = this.props.group; return ( <div className='u...
packages/react/components/menu-dropdown-item.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '.....
src/components/FeatureItem/index.js
line64/landricks-components
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FontAwesome from 'react-fontawesome'; import styles from './styles'; class FeatureItem extends Component { renderLabel(style, props) { if (props.renderLabel) { return props.renderLabel(style, props); } if (!prop...
Example/components/Login3.js
gijoehosaphat/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgr...
components/svg/Settings.js
dawnlabs/carbon
import React from 'react' export default () => ( <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 18 18"> <path fill="#fff" fillRule="evenodd" d="M206.532032,366.702224 L208.523318,368.142728 C208.69279,368.3122 208.721035,368.509915 208.608053,368.735877 L206.786238,...
src/svg-icons/action/line-weight.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLineWeight = (props) => ( <SvgIcon {...props}> <path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"/> </SvgIcon> ); ActionLineWeight = pure(ActionLineWeight); ActionLineWeight.displayN...
src/views/icons/UserIcon.js
physiii/open-automation
import React from 'react'; import IconBase from './IconBase.js'; export const UserIcon = (props) => ( <IconBase {...props} viewBox="0 0 20 20"> <path d="M10.9 0C4.7-.5-.5 4.7 0 10.9c.4 4.8 4.3 8.6 9 9 6.2.6 11.4-4.6 10.9-10.9-.4-4.7-4.2-8.5-9-9zm1.3 14.2c-.2 0-.3-.3-.1-.4 1.4-1.3 2.3-3.6 2.3-5.2 0-2.4-2-4.4-4.4-4.4...
src/components/FooterComponent.js
fustic/hubrick-frontend-challenge
import React, { Component } from 'react'; import { NavLink } from 'fluxible-router'; if (process.env.BROWSER) { require('../style/Footer.scss'); } class Footer extends Component { render() { return ( <div className="Footer"> <div> <strong>Hubrick Frontend Challenge</strong> is app bui...
pages/blog/test-article-one.js
saintnikopol/react-static-boilerplate
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 1</h1> <p>Co...
src/server/frontend/render.js
reedlaw/read-it
// @flow import BaseRoot from '../../browser/app/BaseRoot'; import Helmet from 'react-helmet'; import Html from './Html'; import React from 'react'; import Root, { createRouterRender } from '../../browser/app/Root'; import config from '../config'; import configureFela from '../../browser/configureFela'; import configur...
test/fixtures/hoc/expected.js
layershifter/babel-plugin-transform-react-handled-props
import PropTypes from 'prop-types'; import React from 'react'; export default function Foo() { return function Bar(Component) { return class Baz extends React.Component { static propTypes = { children: PropTypes.node }; render() { return <Component />; } static hand...
src/components/utilities/LoadingSpinner.js
jackson-/hireblack.io
import React from 'react' import { Row } from 'react-bootstrap' import './LoadingSpinner.css' const LoadingSpinner = ({top}) => { return ( <Row className='loader-bg fadeIn animated'> <div className='loader' style={{top}} /> </Row> ) } export default LoadingSpinner
src/svg-icons/av/sort-by-alpha.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSortByAlpha = (props) => ( <SvgIcon {...props}> <path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ...
components/Animate/Roll.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { spring, TransitionMotion } from 'react-motion'; const DEFAULT_SPRINT_CONFIG = { stiffness: 250, damping: 25 }; export default class Roll extends Component { static propTypes = { children: PropTypes.any, width: PropTypes.s...
examples/with-redux-observable/pages/other.js
giacomorebonato/next.js
import React from 'react' import Link from 'next/link' const OtherPage = () => ( <div> <h1>Other Page</h1> <Link href='/'> <a>Get back to "/"</a> </Link> </div> ) export default OtherPage
webapp/src/components/Header.js
ArnaudBrousseau/blockbin
import React, { Component } from 'react'; import ShowCubeForm from './ShowCubeForm'; import MetamaskStatus from './MetamaskStatus'; class Header extends Component { render() { return ( <header className="header"> <div className="header-container"> <a href="/" className="header-link"> ...
src/routes/Login/components/LoginView.js
roslaneshellanoo/react-redux-tutorial
import React from 'react' import LoginContainer from '../containers/LoginContainer' export default class LoginView extends React.Component { render () { return ( <div className='wrap-login'> <h2>This is login page</h2> <LoginContainer /> </div> ) } }
RNTester/js/ActivityIndicatorExample.js
jevakallio/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. * * @flow * ...
frontend/src/components/li.js
1905410/Misago
import React from 'react'; export default class extends React.Component { isActive() { if (this.props.isControlled) { return this.props.isActive; } else { if (this.props.path) { return document.location.pathname.indexOf(this.props.path) === 0; } else { return false; } ...
docs/app/Examples/collections/Table/Variations/TableExampleVeryPadded.js
vageeshb/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleVeryPadded = () => { return ( <Table padded='very'> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>...
src/widgets/CollapseMenu/index.js
mydearxym/mastani
/* * * CollapseMenu * */ import React from 'react' import T from 'prop-types' import { keys } from 'ramda' import { groupByKey } from '@/utils/helper' import { buildLog } from '@/utils/logger' import Group from './Group' import { Wrapper } from './styles' const MAX_DISPLAY_COUNT = 5 const TOTAL_TOGGLE_THROLD =...
public/src/home/homepage.component.js
MaciejSzaflik/CharadesAndStuff
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardText, CardTitle, RaisedButton, Dialog, TextField} from 'material-ui'; import {Col, Grid, Row} from 'react-flexbox-grid'; import {Link} from 'react-router'; import {GameCard} from './'; import {store} from '../root.store'; import {toggleD...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
pinball1973b/ui_ux_study
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
components/DeviceFrame/Macbook.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import spaceGrey from './images/macbook-space-grey.png'; import gold from './images/macbook-gold.png'; import DeviceFrame from './DeviceFrame'; import VideoDeviceFrame from './VideoDeviceFrame'; import css from './Macbook.css'; const deviceImages = { 's...
ReactJS/class-2017-12-24/redux1/src/App.1.js
tahashahid/cloud-computing-2017
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
docs/app/Examples/elements/List/Variations/ListExampleCelled.js
aabustamante/Semantic-UI-React
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleCelled = () => ( <List celled> <List.Item> <Image avatar src='/assets/images/avatar/small/helen.jpg' /> <List.Content> <List.Header>Snickerdoodle</List.Header> An excellent companion </Lis...
src/containers/DocList.js
metasfresh/metasfresh-webui-frontend
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import classnames from 'classnames'; import { updateUri } from '../actions/AppActions'; import { getWindowBreadcrumb } from '../actions/MenuActions'; import { selectTableItems, setLatestNewDocument,...
src/decorators.js
probachaiyu/nuka-carousel
'use strict'; import React from 'react'; const DefaultDecorators = [ { component: React.createClass({ render() { return ( <button style={this.getButtonStyles(this.props.currentSlide === 0 && !this.props.wrapAround)} onClick={this.handleClick}>PREV</button> ...
src/img-zoom/add.js
HsuTing/cat-components
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; export default Component => class extends React.Component { // eslint-disable-line react/display-name static contextTypes = { zoomIn: PropTypes.func.isRequired, zoomOut: PropTypes.func.isRequired } render() { return ( ...
app/components/Store/Category/CategoryHeader/index.js
VineRelay/VineRelayStore
import React from 'react'; import styled from 'styled-components'; import { createFragmentContainer, graphql } from 'react-relay'; import PropTypes from 'prop-types'; import CategoryLogo from '../CategoryLogo'; const Wrapper = styled.div` display: flex; align-items: center; `; const CategoryName = styled.h3` di...
components/feed.js
buffaly/Thinner
import stylesheet from 'antd/dist/antd.css'; import { Layout, Menu, Breadcrumb } from 'antd'; const { Header, Content, Footer } = Layout; import { Card, Col, Row } from 'antd'; import Navbar from '../components/navbar'; import React from 'react'; import fetch from 'isomorphic-fetch'; import JSONPretty from 'react-json-...
src/index.js
zeusdeux/kebabful
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './index.css' ReactDOM.render( <App />, document.getElementById('root') )
packages/material-ui-icons/src/PinDrop.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z" /></g> , 'PinDrop');
src/examples/SimpleCounter.js
steos/elmar.js
import React from 'react' export const init = count => count const Action = { Increment: x => x + 1, Decrement: x => x - 1 } export const update = (action, model) => action(model) export const view = (signal, model) => ( <div> <button onClick={signal(Action.Decrement)}>-</button> <div>{m...
packages/reflow-board/src/App/index.js
Bamieh/re-flow
import React, { Component } from 'react'; import { createHttpLink } from 'apollo-link-http'; import { InMemoryCache } from 'apollo-cache-inmemory'; import logo from '../logo.svg'; import './style.css'; import ApolloClient from 'apollo-client'; import { ApolloProvider } from 'react-apollo'; import ProjectsPage from '....
examples/huge-apps/routes/Grades/components/Grades.js
maksad/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
server/dashboard/js/components/BenchGraphs.react.js
machinezone/mzbench
import React from 'react'; import MZBenchActions from '../actions/MZBenchActions'; import Graph from './Graph.react'; import GraphModal from './GraphModal.react'; import LoadingSpinner from './LoadingSpinner.react'; import MZBenchRouter from '../utils/MZBenchRouter'; import BenchStore from '../stores/BenchStore'; impor...
app/components/Footer/index.js
belongapp/belong
import React from 'react'; import messages from './messages'; import A from 'components/A'; import styles from './styles.css'; import { FormattedMessage } from 'react-intl'; import LocaleToggle from 'containers/LocaleToggle'; function Footer() { return ( <footer className={styles.footer}> <section> ...
server/sonar-web/src/main/js/apps/quality-gates/components/DetailsContent.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...
docs/app/Examples/collections/Table/Variations/TableExampleUnstackable.js
aabustamante/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleUnstackable = () => { return ( <Table unstackable> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell t...
examples/js/custom/insert-modal/default-custom-insert-modal-header.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, InsertModalHeader } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; ...
src/containers/VerseTafsir/index.js
korabh/quran.com-frontend
import * as customPropTypes from 'customPropTypes'; import React from 'react'; import { connect } from 'react-redux'; import { asyncConnect } from 'redux-connect'; import Helmet from 'react-helmet'; import Loadable from 'react-loadable'; import Button from 'quran-components/lib/Button'; import ComponentLoader from 'co...
node_modules/antd/es/card/Grid.js
yhx0634/foodshopfront
import _extends from 'babel-runtime/helpers/extends'; var __rest = this && this.__rest || function (s, e) { var t = {}; for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; }if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i...
src/icons/AndroidChat.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidChat extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M391.553,64H57.607C53.131,64,48,67.745,48,72.159v214.217c0,4.413,5.131,8.624,9.607,8.624H115v88.894L205.128,295 ...
test/DataTables/tableSettings.js
hyojin/material-ui-datatables
import React from 'react'; import {deepOrange500} from 'material-ui/styles/colors'; export const TABLE_COLUMNS = [ { key: 'name', label: 'Dessert (100g serving)', }, { key: 'calories', label: 'Calories', }, { key: 'fat', label: 'Fat (g)', }, { key: 'carbs', label: 'Carbs (g)', ...
frontend/src/components/repo-info-bar.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import ModalPortal from './modal-portal'; import ListTaggedFilesDialog from './dialog/list-taggedfiles-dialog'; import ListRepoDraftsDialog from './dialog/list-repo-drafts-dialog'; import ReadmeDialog from './dialog/readme-dialog'; import { siteRoot, gettex...
packages/mineral-ui-icons/src/IconEventBusy.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconEventBusy(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
component-starter-server/src/main/frontend/src/app/components/Processor/Connection/Connection.container.js
chmyga/component-runtime
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.com * * 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...
src/app/components/Footer.js
nnance/react-backbone-flux-example
import React from 'react'; module.exports = React.createClass({ toTop: function(ev) { ev.preventDefault(); window.scrollTo(0, 0); }, render: function() { return <div> <hr /> <small> <a href="#" onClick={this.toTop}>Top</a> </smal...
src/modules/comments/components/LemmaReferenceModal/LemmaReferenceModal.js
CtrHellenicStudies/Commentary
import React from 'react'; const LemmaReferenceModal = props => { return ( <div /> ); }; export default LemmaReferenceModal;
src/index.js
amitnavindgi/bonjour
import 'react-hot-loader/patch'; import React from 'react'; import ReactDom from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './app/App.jsx'; const render = Component => { ReactDom.render( <AppContainer> <Component /> </AppContainer>, document.getElement...
src/interface/Home.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Trans } from '@lingui/macro'; import { Link, Route, Switch } from 'react-router-dom'; import lazyLoadComponent from 'common/lazyLoadComponent'; import retryingPromise from 'common/retryingPromise'; import New...
src/svg-icons/device/signal-cellular-3-bar.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceSignalCellular3Bar = pure(DeviceSignalCellular3Bar); DeviceS...
demos/demo/src/components/LangSelector/index.js
FWeinb/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {signal, state} from 'cerebral/tags' import translations from '../../common/computed/translations' import * as LANGS from '../../common/translations' const LANG_OPTS = Object.keys(LANGS).map(lang => ( [lang, LANGS[lang].language] )) export defa...
packages/core/src/icons/components/CrmMemberNote.js
iCHEF/gypcrete
import React from 'react'; export default function SvgCrmMemberNote(props) { return ( <svg width="1em" height="1em" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" clipRule="evenodd" d="M687.5 593.8v-...
docs/src/PropTable.js
natlownes/react-bootstrap
import merge from 'lodash/object/merge'; import React from 'react'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); let capitalize = str => str[0].toUpperCase() + str....
src/router.js
IssaTan1990/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Router } from 'dva/router' import App from './routes/app' const registerModel = (app, model) => { if (!(app._models.filter(m => m.namespace === model.namespace).length === 1)) { app.model(model) } } const Routers = function ({ history, app ...
src/index.js
dawidvdh/dawidvdh.github.io
// @flow import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import { extractCritical } from 'emotion-server'; import Home from './Home'; type Props = { style?: string }; const Html = ({ style }: Props) => ( <html lang="en"> <head> <title>Dawid van der Hoven - Coming Soo...
client/acp/src/view/display/round-button.js
NicolasSiver/nodebb-plugin-ns-awards
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; export default class RoundButton extends React.Component { render() { let buttonClass = classNames('round-button', 'fa-stack', { 'round-button--animate': this.props.animate }); le...
src/scenes/home/informationForm/informationForm.js
hollomancer/operationcode_frontend
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import Section from 'shared/components/section/section'; import FormButton from 'shared/components/form/formButton/formButton'; import { patchBackend } from 'shared/utils/apiHelper'; import Identifier from './formComponents/identifie...
client/src/components/AppView.js
kfirprods/tpp
import React from 'react'; import { BrowserRouter, Switch, Route } from 'react-router-dom' import Home from "./pages/Home"; import Login from "./pages/Login"; import Register from "./pages/Register"; import MyProjects from "./pages/MyProjects"; import CreateProject from "./pages/CreateProject"; import Rules from "./pa...
src/components/controls/Buttons/EditButton.js
TTCErembodegem/TTC-React-Front
import React from 'react'; import PropTypes from '../../PropTypes.js'; import {EditIcon} from '../Icon.js'; export const EditButton = ({onClick, title, style, fa}) => ( <button className="btn btn-default"onClick={onClick} title={title} style={style}> <EditIcon className={fa} /> </button> ); EditButton.propTyp...
components/Cards/EmptyListingCard/EmptyListingCard.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import Blokk from '../../Blokk/Blokk'; import css from '../DestinationListingCard/DestinationListingCard.css'; const EmptyListingCard = ({ className, carouselClassName, bodyClassName }) => ( <div className={ className }> ...
frontend/sections/authorization/signup.js
apostolidhs/wiregoose
import React from 'react'; import { browserHistory } from 'react-router'; import SignupComponent from '../../components/authorization/signup.js'; export default class Signup extends React.Component { render() { return ( <SignupComponent onSigninClicked={() => browserHistory.replace('/auth/login')}...
js/account/src/components/Issue/Issue.js
fogfish/oauth2
import React from 'react' import { NonIdealState, Button, Intent } from '@blueprintjs/core' import { IconNames } from '@blueprintjs/icons' import { authorize } from 'react-hook-oauth2' const Unauthorized = () => ( <NonIdealState icon={IconNames.USER} title="Ops, Sorry!" description="Your session is expir...
20161210/RN-test/src01/index.android-01.js
fengnovo/react-native
import React, { Component } from 'react'; import { AppRegistry,View,Text,TextInput,Image,ScrollView,ListView, Navigator,TouchableHighlight,StyleSheet,Animated } from 'react-native'; import Blink from './app/js/components/Blink.js' import MySceneOne from './app/js/components/MySceneOne.js' import Pageone from...