path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
client/service-manager/src/components/service/form/OverviewSection.js
google-org/services-eligibility-calculator
/** * Copyright 2020 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
docs/src/pages/demos/collapsible-tree/Example1.js
tannerlinsley/react-move
import React from 'react' const Example = () => { return ( <div> <iframe title="Collapsible Tree" src="https://codesandbox.io/embed/ww0xkyqonk?view=preview" style={{ width: '100%', height: '500px', border: 0, borderRadius: 4, overflow: 'hidden' }} sandbox="allow-modals allow...
src/components/dumb/BooksView.js
janimattiellonen/munkirjat-v4
import React from 'react'; import _ from 'lodash'; import history from '../history' import BooksList from './BooksList'; import SmartSearch from 'smart-search'; import classNames from 'classnames'; import {List, Map} from 'immutable'; import * as Utils from '../utils'; import {Link} from 'react-router'; export default...
examples/FloatingButton.js
jareth/react-materialize
import React from 'react'; import Button from '../src/Button'; export default <Button floating large className='red' waves='light' icon='add' />;
Projets/C#/Asp Core + React/WebApplication1/WebApplication1/ClientApp/src/components/test.js
thib123/TPJ
import React, { Component } from 'react'; export class test extends Component { displayName = test.name constructor(props) { super(props); this.num = 1; this.test = "lalala"; } render() { return ( <div> <h1>test</h1> <p>test page react.</p> ...
index.ios.js
jiangchunyu/ReactNativeGank
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class ShineGank extends Component { render() { return ( <View style={styles.container...
client/src/templates/Introduction/Intro.js
HKuz/FreeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import { Link, graphql } from 'gatsby'; import Helmet from 'react-helmet'; import { Button, ListGroup, ListGroupItem } from '@freecodecamp/react-bootstrap'; import LearnLayout from '../../components/layouts/Learn'; import FullWidthRow from '../../com...
react/StyleGuideProvider/StyleGuideProvider.js
seek-oss/seek-style-guide
import styles from './StyleGuideProvider.less'; import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Helmet } from 'react-helmet'; import ScreenReaderOnly from '../ScreenReaderOnly/ScreenReaderOnly'; const defaultPageTitleAU = "SEEK - Australia's no. 1 jobs, ...
SettlementWeb/src/login/index.js
wjwu/Settlement-React
import React from 'react'; import ReactDOM from 'react-dom'; import { Form, Input, Button, Row, Col, Alert } from 'antd'; import config from './config'; import Captcha from './Captcha'; import login from './action'; const FormItem = Form.Item; const createTimeSpan = () => { let strRand = Math.random() + ''; return ...
client/src/app/admin/panel/staff/invite-staff-modal.js
ivandiazwm/opensupports
import React from 'react'; import _ from 'lodash'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import SessionStore from 'lib-app/session-store'; import Header from 'core-components/header' import Form from 'core-components/form'; import FormField from 'core-components/form-field'; import Subm...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
Ajunboys/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstant...
packages/idyll-docs/pages/tutorials.js
idyll-lang/idyll
import React from 'react'; import Link from 'next/link'; import Layout from '../components/basic-layout'; import GalleryGroup from '../components/gallery-group'; import { tutorials } from '../gallery'; import Donate from '../components/donate-link'; const Tutorials = () => ( <section style={{ position: 'relative' }}...
client/src/components/DropContainer.js
nickbreaton/spare-page
import { add } from '../state/files' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { throwError } from '../state/errors' import Drop from './Drop' import React from 'react' const DropContainer = (props) => ( <Drop error={props.error} addFile={props.add} throwErro...
app/javascript/mastodon/features/notifications/components/filter_bar.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; const tooltips = defineMessages({ mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' }, favourites: { id: '...
test/specs/collections/Breadcrumb/BreadcrumbDivider-test.js
clemensw/stardust
import React from 'react' import BreadcrumbDivider from 'src/collections/Breadcrumb/BreadcrumbDivider' import * as common from 'test/specs/commonTests' describe('BreadcrumbDivider', () => { common.isConformant(BreadcrumbDivider) common.implementsIconProp(BreadcrumbDivider, { shorthandDefaultProps: { clas...
src/svg-icons/action/perm-data-setting.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermDataSetting = (props) => ( <SvgIcon {...props}> <path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0...
test/containers/CounterPage.spec.js
derycktse/reedee
import React from 'react'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import { createBrowserHistory } from 'history'; import { ConnectedRouter } from 'react-router-redux'; import CounterPage from '../../app/containers/CounterPage'; import { configureStore } from '../../app/store/configureSt...
src/Options.js
maral/matchbox
import React, { Component } from 'react'; import { Container, Row, Col, Button, ButtonGroup } from 'reactstrap'; class Options extends Component { render() { return ( <Container> <Row> <Col sm="3" xs="12"> <Radio title="Obtížnost" options={[ { text: "1", value: ...
src/Parser/HolyPaladin/Modules/Talents/AuraOfSacrifice.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Combatants f...
src/Preview.js
snakajima/studio-js
// // Copyright (c) 2016 Satoshi Nakajima (https://github.com/snakajima) // License: The MIT License // import React, { Component } from 'react'; import Generator from './Generator'; class Preview extends Component { render() { const width = this.props.width-200; const height = this.props.dimensio...
mxcube3/ui/containers/LoggerContainer.js
bolmsten/mxcube3
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setLogPage } from '../actions/logger'; export class LoggerContainer extends React.Component { constructor(props) { super(props); this.firstPage = props.setLogPage.bind(this, 0); this.la...
src/components/views/lists/FollowerList.js
planlodge/soundmix
import React from 'react'; import UserPlainView from '../items/UserPlainView'; // Using "Stateless Functional Components" export default function(props) { //console.log("Ps", props); return ( <UserPlainView userList={props.followers} /> ); }
src/js/components/InfiniteScroll/stories/ShowBefore.js
HewlettPackard/grommet
import React from 'react'; import { grommet } from 'grommet/themes'; import { Grommet, Box, InfiniteScroll, Text } from 'grommet'; const allItems = Array(240) .fill() .map((_, i) => `item ${i + 1}`); const Example = props => ( <Grommet theme={grommet}> <InfiniteScroll items={allItems} {...props}> {it...
foodprintReactNative/components/Home.js
jwunder127/foodprint
import React from 'react'; import { TouchableOpacity, Text, View } from 'react-native'; import { Container, Content, Thumbnail, Card, CardItem, Spinner } from 'native-base'; import moment from 'moment'; import {vw, vh} from '../util'; const citrusYellow = '#F6E49C'; const citrusPink = '#FC8A67'; const lightYellow = '#...
src/pages/index.js
mding5692/mding5692.github.io
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Layout, Hero, About, Jobs, Featured, Projects, Contact } from '@components'; const StyledMainContainer = styled.main` counter-reset: section; `; const IndexPage = ({ location }) => ( <Layout location={l...
packages/react-test-renderer/src/ReactShallowRenderer.js
chenglou/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * 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 {isForwardRef, isMemo, ForwardRef} from 'react-is'; import describeComponentFrame fr...
components/OutputTemplate.js
suprsidr/force-components
import React from 'react' import OutputSlide from './OutputSlide'; class OutputTemplate extends React.Component { constructor (props) { super(props); this.state = this.props.currentState; } render() { return ( <i> {this.props.slides.map((slide, i) => ( <OutputSlide ...
client/index.js
bootcampfire/hycamp
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import Routes from './routes/'; import css from './styles/main.scss'; import './styles/icon-font.scss'; render(<Router history={browserHistory} routes={Routes} />, document.getElementById('main'));
form/views/FieldLabelView.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import {html} from 'components'; import Tooltip from 'shared/tooltip/Tooltip'; const bem = html.bem('FieldLabelView'); export default class FieldLabelView extends React.Component { static propTypes = { className: PropTypes.string, la...
src/svg-icons/navigation/arrow-back.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowBack = (props) => ( <SvgIcon {...props}> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/> </SvgIcon> ); NavigationArrowBack = pure(NavigationArrowBack); NavigationArrowB...
src/components/App.js
AhmedShab/portfolio
import React, { Component } from 'react'; import NavLink from './NavLink'; import { Nav, Navbar, NavItem, MenuItem, NavDropdown } from 'react-bootstrap'; import About from './About'; import Work from './Work'; import Contact from './Contact'; export default class App extends Component { render() { const navbarI...
app/containers/HomePage/index.js
shiftunion/bot-a-tron
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import AtPrefix from './AtPre...
src/components/SyncComponent.js
C3-TKO/junkan
'use strict'; import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import NotificationSync from 'material-ui/svg-icons/notification/sync'; import NotificationSyncDisabled from 'material-ui/svg-icons/notification/sync-disabled';...
src/svg-icons/maps/local-dining.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalDining = (props) => ( <SvgIcon {...props}> <path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1....
ajax/libs/react-instantsearch/4.1.0-beta.4/Dom.js
pvnr0082t/cdnjs
/*! ReactInstantSearch 4.1.0-beta.4 | © 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...
resouces/src/components/Table/index.js
TCL-MIG-FE/react-web-spa-startkit
import React from 'react'; import {Table as AntdTable} from 'antd'; import className from 'classnames'; import './style.less'; const Table = (props)=>{ const {dataSource} = props; const classes = className({ "ant-table-normal": dataSource.length > 0 }); return <AntdTable className={classes} {...props} /> ...
src/components/search/TransactionFilter.js
openvcash/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' /** Ant Design */ import Button from 'antd/lib/button' import Popover from 'antd/lib/popover' import Switch from 'antd/lib/switch' /** Component */ import { SwitchIcon } from '../utilities/Common.js' @tr...
components/Navigation/Navigation.js
el-besto/examples
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; import './Navigation.scss'; import Link from '../Link'; function Navigation() { return ( <ul className="Navigation" role="menu"> ...
modules/RoutingContext.js
zipongo/react-router
import React from 'react' import RouterContext from './RouterContext' import warning from 'warning' const RoutingContext = React.createClass({ componentWillMount() { warning(false, '`RoutingContext` has been renamed to `RouterContext`. Please use `import { RouterContext } from \'react-router\'.`') }, render...
src/lib/components/nineCellMenu/NineCellMenu.js
lighter-cd/ezui_react_one
import React from 'react'; import PropTypes from 'prop-types'; import injectSheet from 'react-jss'; import classNames from 'classnames'; import Link from '../../utils/Link'; import { Icon } from '../icon'; const styles = { menu: { flex: 'none', width: props => props.width, display: 'flex', flexFlow: ...
src/index.js
sozialhelden/accessibility-cloud-js
// eslint-disable react/jsx-filename-extension import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( React.createElement(App, { token: '7f039b60e27a4d02b13c5ad79fbe9d7b', // <-- Replace this token with your own locale: 'de_DE', // <-- Rep...
src/components/ShowVeggies.js
rachaelsh/interview-practice
import React from 'react'; export default class ShowVeggies extends React.Component { render() { //create a map function for your name and counter here. return ( <div>return your mapped items here.</div> ); } } ShowVeggies.propTypes = {things: React.PropTypes.array};
tests/layouts/PageLayout.spec.js
sonofbjorn/circle-ci-test
import React from 'react' import PageLayout from 'layouts/PageLayout/PageLayout' import { shallow } from 'enzyme' describe('(Layout) PageLayout', () => { it('renders as a <div>', () => { shallow(<PageLayout />).should.have.tagName('div') }) it('renders a project title', () => { shallow(<PageLayout />).f...
src/index.js
jhen0409/react-native-boilerplate
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './configureStore'; const store = configureStore(); export default () => ( <Provider store={store}> <App /> </Provider> );
source/components/settings.js
Aokibi/Regents-Navigation
import React from 'react' import SettingsButton from './settings-button' import MainMenuButton from './main-menu-button' import HelpButton from './help-button' import Icon from './icon' import styles from './our-styles.less' /* Allows users to change the color scheme and text size. */ class Settings extends React.Comp...
springboot-dva/src/main/frontend/src/components/MainLayout/MainLayout.js
wefine/reactjs-guide
import React from 'react'; import Header from './Header'; import styles from './MainLayout.css'; function MainLayout({ children, location }) { return ( <div className={styles.normal}> <Header location={location} /> <div className={styles.content}> <div className={styles.main}> {chil...
www/src/components/Drawer.js
TaitoUnited/taito-cli
import React from 'react'; import styled from '@emotion/styled'; import { css } from '@emotion/react'; import { FiMenu } from 'react-icons/fi'; import { navigate } from 'gatsby'; import PropTypes from 'prop-types'; import { mobileOnly } from '../utils'; import { IS_BROWSER } from '../constants'; const MENU_WIDTH = IS...
src/index.js
dpastoor/assignment-manager
import React from 'react'; import { render } from 'react-dom' import {Router, Route, Link, browserHistory} from 'react-router' import App from './App'; import UserDashboard from './components/UserDashboard'; import Submission from './components/Submission'; render(( <Router history={browserHistory}> <Route pa...
src/svg-icons/hardware/device-hub.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDeviceHub = (props) => ( <SvgIcon {...props}> <path d="M17 16l-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"/> </SvgIcon>...
src/Progress.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType, toNumber } from './utils'; const propTypes = { children: PropTypes.node, bar: PropTypes.bool, multi: PropTypes.bool, tag: tagPropType, value: PropTypes.oneOfType([ Pr...
src/packages/@ncigdc/modern_components/FacetSelection/FacetSelection.js
NCI-GDC/portal-ui
import React from 'react'; import { every, filter, groupBy, includes, isEqual, map, noop, omitBy, some, toLower, values, } from 'lodash'; import { css } from 'glamor'; import { compose, defaultProps, renameProps, setDisplayName, withHandlers, withProps, withState, } from 'recompose';...
app/src/components/footer/Footer.js
tafkanator/drupal-react
import React from 'react'; import './footer.scss'; const Footer = () => ( <div className="footer"> <a className="row" href="mailto:info@rahvaravi.ee"> <span className="icon icon-mail" /> info@rahvaravi.ee </a> <a className="row" href="//www.facebook.com/v2ekas" target="blank"> <span className="icon ico...
static/js/src/todo.omni.js
maneeshpal/Missile
import React from 'react'; import immstruct from 'immstruct'; import Immutable from 'immutable'; import omniscient from 'omniscient'; import Router from 'react-router'; const { Route, RouteHandler, Link } = Router; const component = omniscient.withDefaults({ jsx: true }); ...
packages/reactor-conference-app/src/attendees/Attendees.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { setTitle } from '../actions'; import { Panel } from '@extjs/ext-react'; import WorldMap from './WorldMap'; class Attendees extends Component { store = Ext.create('Ext.data.Store', { autoLoad: true, fields: [{...
app/javascript/draft/helpers.js
michigan-sustainability-cases/gala
/** * Helper functions for manipulating the Draft.js EditorState data structure * * @flow */ import React from 'react' import { RichUtils, Modifier, EditorState, SelectionState } from 'draft-js' import getRangesForDraftEntity from 'draft-js/lib/getRangesForDraftEntity' import { Intent } from '@blueprintjs/core' i...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/FlowNone.js
JonathanUsername/flow
import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props, State> { static defaultProps: DefaultProps = {}; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Compon...
collect-webapp/frontend/src/security/pages/UserGroupsPage.js
openforis/collect
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Button, Container, Row, Col } from 'reactstrap' import L from 'utils/Labels' import RouterUtils from 'utils/RouterUtils' import * as UserGroupActions from 'actions/usergroups' import { withNavigate } from 'com...
src/svg-icons/av/repeat-one.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeatOne = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/> </SvgIcon> ); AvRepeatOne = pure(AvRepeatOne); AvRepeatOn...
frontend/src/app/containers/HomePage.js
clouserw/testpilot
import React from 'react'; import HomePageNoAddon from './HomePageNoAddon'; import HomePageWithAddon from './HomePageWithAddon'; export default class HomePage extends React.Component { render() { if (this.props.hasAddon) { return <HomePageWithAddon {...this.props} />; } return <HomePageNoAddon {.....
src/docs/pages/spinner.js
gabrielcsapo/psychic-ui
import React from 'react'; import Example from '../components/example'; class Spinner extends React.Component { render() { const { brand, alternate } = this.props; const height = window.innerHeight; return ( <section style={{ 'minHeight': height, position: "relative"}}> <div style={{paddin...
Console/app/node_modules/rc-input-number/es/InputHandler.js
RisenEsports/RisenEsports.github.io
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inheri...
geonode/contrib/monitoring/frontend/src/components/cels/health-check/index.js
MapStory/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import HoverPaper from '../../atoms/hover-paper'; import styles from './styles'; const mapStateToProps = (state) => ({ alertList: state.alertList.response, errorList: state.errorList.response, timestamp: state....
examples/animating-transitions/src/index.js
ui-router/react
import React from 'react'; import { render } from 'react-dom'; import { TransitionGroup, CSSTransition } from 'react-transition-group'; import { UIRouter, UIView, hashLocationPlugin } from '@uirouter/react'; import './index.css'; import { Home, About, Menu } from './components'; const states = [ { url: '/home'...
src/react/LogMonitorEntryAction.js
tomatau/redux-devtools
import React from 'react'; import JSONTree from 'react-json-tree'; const styles = { actionBar: { paddingTop: 8, paddingBottom: 7, paddingLeft: 16 }, payload: { margin: 0, overflow: 'auto' } }; export default class LogMonitorAction extends React.Component { renderPayload(payload) { r...
src/svg-icons/action/perm-scan-wifi.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermScanWifi = (props) => ( <SvgIcon {...props}> <path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/> </SvgIcon> ); ActionPermScanWifi = pure(A...
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Experiment/Modules/index.js
Zephyrrus/ubb
import React from 'react' import PropTypes from 'prop-types' import chapters from '../../../mocks/modules.json' import Modules from './Modules' const ModuleScreen = () => <Modules modules={chapters} /> ModuleScreen.navigationOptions = () => ({ title: 'Modules' }) ModuleScreen.propTypes = { navigation: PropType...
src/components/GiphySelect/index.js
WEACOMRU/react-giphy-select
import 'isomorphic-fetch'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import GiphyList from '../GiphyList'; import styles from './styles.css'; export default class GiphySelect extends Component { static propTypes = { theme: PropTypes.shape({ select: PropTypes.string, ...
src/svg-icons/maps/local-grocery-store.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGroceryStore = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-...
src/svg-icons/av/forward-30.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward30 = (props) => ( <SvgIcon {...props}> <path d="M9.6 13.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.1-.2-.1h-.5s-.1.1-.2.1-.1.1-.1.2v.2h-1c0-.2 0-.3.1-.5s.2-.3.3-.4.3-.2.4-.2.4-.1.5-.1c.2 0 .4...
RN_Day08/index.ios.js
RainliFu/react-native
/** * 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 RN_Day08 extends Component { render() { return ( <View style={styles.container}> <Text...
pages/index.js
Tkoefod/javasciprt-today
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from 'react-helmet' import { config } from 'config' import '../css/main.less' export default class Index extends React.Component { render () { return ( <div className="darkMain"> ...
src/components/icon/SawtoothWaveIcon.js
reklawnos/synthesizer
import React from 'react'; export default function SawtoothWaveIcon() { return ( <svg viewBox="0 25 100 50" className="waveform-icon"> <g transform="scale(-1,1) translate(-100, 0)"> <path d="M64 61.9v-20l-30 20v-20L5.6 60.8l-1.2-1.6L36 38.1v20l30-20v20l28.4-18.9 1.2 1.6z" /> </g> </svg> ...
website/components/Navbar/utils/makeSection.js
matthewstyers/keystone
import React from 'react'; import Link from 'gatsby-link'; import Item from '../Item'; export default function makeSection (currentPath, layer, pathname) { return layer.map((section, idx) => { const locationArray = pathname.split('/'); const currentSection = locationArray[locationArray.length - 1]; const menuI...
demo09/src/components/User.js
lxlneo/reactdemo
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' const User = ({ user }) => { const { login, avatarUrl, name } = user return ( <div className="User"> <Link to={`/${login}`}> <img src={avatarUrl} alt={login} width="72" height="72" /> <h3> ...
js/components/FriendsList.js
sayden/relay-mongoose-example
import Relay from 'react-relay'; import Friend from './Friend.js'; import React from 'react'; class FriendList extends React.Component { render() { let user = this.props.user; let friends = user.friends.map((friend) => { return <Friend friend={friend} key={friend.__dataID__} />; }); return (<d...
packages/wix-style-react/stories/RichTextArea/index.story.js
wix/wix-style-react
import React from 'react'; import { storySettings } from './storySettings'; import { header, title, description, table, importExample, columns, example, } from 'wix-storybook-utils/Sections'; import LinkTo from '@storybook/addon-links/react'; import * as examples from './examples'; import { FormField, Ri...
assets/js/components/SessionDash.js
warrenatmindset/DjangoFlowApp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './style/todoInput.css'; const style = { dashboard_container: { marginTop: '200px' }, button_container: { position: 'relative', display: 'inline-block', width: '225px', height: '200px', padding: '10px 20px', border: ...
src/components/badge.js
siddharthkp/siddharthkp.github.io
import React from 'react' const Badge = props => { let classes = 'badge' if (props.appearance) classes += ` ${props.appearance}` return <span className={classes}>{props.children}</span> } export default Badge
client/src/ListenerCount.js
jghibiki/Doc
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import Typography from '@mate...
test/specs/table/table_actions.spec.js
working-minds/realizejs
import React from 'react'; import { TableActions } from 'components/table'; import { assert } from 'chai'; import { mount } from 'enzyme'; describe('<TableActions/>', () => { it('exists', () => { assert(TableActions); }); it('renders with the default props', () => { const renderedTableActions = mount(<T...
internals/templates/app.js
andyzeli/Bil
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/components/Help/HelpBanner/index.js
ProteinsWebTeam/interpro7-client
import React from 'react'; import T from 'prop-types'; import { foundationPartial } from 'styles/foundation'; import config from 'config'; import fonts from 'EBI-Icon-fonts/fonts.css'; import style from './style.css'; import Link from 'components/generic/Link'; const f = foundationPartial(style, fonts); const helpTo...
src/components/resources.js
finfort/TodoReactApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../actions'; class Resources extends Component { componentWillMount() { this.props.fetchMessage(); } render() { return (<div> Super context <ul> ...
test/specs/elements/Header/Header-test.js
Rohanhacker/Semantic-UI-React
import faker from 'faker' import React from 'react' import Header from 'src/elements/Header/Header' import HeaderContent from 'src/elements/Header/HeaderContent' import HeaderSubheader from 'src/elements/Header/HeaderSubheader' import * as common from 'test/specs/commonTests' describe('Header', () => { common.hasUI...
client/src/components/layout/DownloadButton.js
RiddleMan/giant-privacy-spy
import React from 'react'; import FileDownload from 'material-ui/svg-icons/file/file-download'; import IconButton from 'material-ui/IconButton'; export default (props) => { const { name, url } = props; const onDownload = () => { const aEl = document.createElement('a'); aEl.href = url; a...
src/components/offcanvas/Offcanvas.js
ProAI/react-essentials
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import cx from 'classnames'; import findNodeHandle from 'react-native-web/dist/cjs/exports/findNodeHandle'; import OffcanvasContext from './OffcanvasContext'; import OffcanvasBody from './OffcanvasBody'; import OffcanvasHea...
react-flux-mui/js/material-ui/src/svg-icons/action/trending-up.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingUp = (props) => ( <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/> </SvgIcon> ); ActionTrendingUp = pure(ActionTrendingUp); ActionTrending...
src/components/BuddiesList/index.js
AihuishouFE/AiChat
import React, { Component } from 'react'; import './index.less'; class BuddiesList extends Component { render() { const { buddiesList } = this.props; return ( <div className="buddies-list"> {Object.keys(buddiesList).map(buddyKey => ( <div key={buddyKey} className="buddy">{buddiesList[...
node_modules/react-navigation/lib-rn/navigators/StackNavigator.js
RahulDesai92/PHR
import React from 'react'; import createNavigationContainer from '../createNavigationContainer'; import createNavigator from './createNavigator'; import CardStackTransitioner from '../views/CardStackTransitioner'; import StackRouter from '../routers/StackRouter'; import NavigatorTypes from './NavigatorTypes'; var babe...
src/containers/CalendarView.js
hui-w/events-vanilla
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import SubMenu from '../components/common/SubMenu'; import BusyIcon from '../components/common/BusyIcon'; import CalendarSelector from '../components/calen...
app/components/FileList.js
dikalikatao/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 =...
frontend/src/components/Checkout.js
loicbaron/nutrition
import React from 'react'; import PropTypes from 'prop-types'; import Consumption from '../models/Consumption'; import { Button } from '@mui/material'; import DeleteForeverIcon from '@mui/icons-material/DeleteForever'; import { FormattedMessage, injectIntl } from 'react-intl'; import BasicTable from './BasicTable'; co...
example/index.js
lapanoid/scroll-section-stuff
import React from 'react'; import ReactDOM from 'react-dom'; import 'reset-css/reset.css' import 'normalize.css/normalize.css' import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/app/components/annotations/EmbedUpdate.js
meedan/check-web
import React from 'react'; import { FormattedMessage } from 'react-intl'; import ParsedText from '../ParsedText'; const EmbedUpdate = (props) => { const changes = JSON.parse(props.activity.object_changes_json); if (!changes.data && changes.value_json) { changes.data = [JSON.parse(changes.value_json[0]), JSON.p...
src/containers/Chrview/Wallet.js
zerocoolkiller/Eve-Swagger-Api
import React from 'react' import { push } from 'react-router-redux' import { connect } from 'react-redux' import * as chrrdActions from '../../Redux/Chrrd' import * as ViewChrActions from '../../Redux/ViewChr' import numeral from 'numeral'; class Chr extends React.Component { render() { var string = n...
www/src/components/footer.js
niklasvh/html2canvas
import React from 'react'; export default () => <footer css={{ backgroundColor: '#558b2f', color: 'rgba(255,255,255, 0.8)', fontWeight: 300, minHeight: '50px', lineHeight: '50px', padding: '10px 0px' }} > <div ...
packages/react-error-overlay/src/components/CloseButton.js
ConnectedHomes/create-react-web-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 { black } from '../styles'; const closeButtonStyle = { color: black, lineHeight: '1re...
src/ui/Account/Actions/actions.js
jacogr/parity-js
import React, { Component } from 'react'; import { FlatButton } from 'material-ui'; import { Toolbar, ToolbarGroup } from 'material-ui/Toolbar'; import ActionAccountBalance from 'material-ui/svg-icons/action/account-balance'; import ContentSend from 'material-ui/svg-icons/content/send'; export default class Actions e...
src/svg-icons/notification/airline-seat-legroom-normal.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomNormal = (props) => ( <SvgIcon {...props}> <path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1....
frontend/test/app/components/EmailDialog-test.js
mathjazz/testpilot
import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import EmailDialog from '../../../src/app/components/EmailDialog'; describe('app/components/EmailDialog', () => { const mockClickEvent = { preventDefault() {}, stopPropagation() {} }; ...