path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
addons/info/src/components/markdown/pre/copyButton.js
rhalff/storybook
import React from 'react'; import PropTypes from 'prop-types'; import glamorous, { withTheme } from 'glamorous'; const Button = glamorous.button( { overflow: 'hidden', border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 13, padding: '3px 10p...
src/lib/DevTools.js
zrosenbauer/react-no-universal-boilerplate
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" defaultIsVisible={fal...
src/svg-icons/communication/stay-primary-portrait.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> );...
src/containers/Admin/Reports/ExpiredCampaigns.js
EncontrAR/backoffice
import React from 'react'; import StatusReport from './../../../components/admin/reports/campaignStatusReport'; import reportActions from '../../../redux/report/actions'; import { connect } from 'react-redux'; const title = 'Lista de campañas expiradas' const { indexStatusCampaigns } = reportActions; export class Ex...
docs/src/components/home/hero.js
isaacs/node-tap
import React from 'react'; import styled from 'styled-components'; import {theme} from '../../theme'; import {Image, Flex} from 'rebass'; import logo from '../../images/logo.gif'; import {ButtonLink} from '../links'; const description = require('../../../../package.json').description; const OuterCircle = styled.div` ...
src/components/general/Placeholder.js
visa-innovation-sf/ldn-retail-demo
/** * Placeholder Scene * <Placeholder text={"Hello World"} /> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; // Consts and Libs import { AppStyles } from '@theme/'; // ...
src/views/UserStory/components/widgets/TextWidget.js
giux78/daf-dataportal
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'; import React, { Component } from 'react'; //import { Editor } from 'react-draft-wysiwyg'; import htmlToDraft from 'html-to-draftjs'; import { EditorState, convertToRaw, ContentState, convertFromHTML } from 'draft-js'; import draftToHtml from 'draftjs-to-html';...
client/js/components/PokerRoom.js
X-Fix/ts-poker-planning
import React from 'react'; import { connect } from 'react-redux'; import { apiRequests } from '../api'; import { itemActions, modalActions, participantActions } from '../actionCreators'; import { CARDS } from '../utilities/constants'; import { find, isEmpty, isEqual, map } from '../utilities/lodash'; import { getStorag...
client/pages/examples/threejs/gpu-compute/index.js
fdesjardins/webgl
import React from 'react' import { css } from 'emotion' import * as THREE from 'three' import threeOrbitControls from 'three-orbit-controls' import { GPUComputationRenderer } from 'three/examples/jsm/misc/GPUComputationRenderer' import Example from '-/components/example' import notes from './readme.md' const WHITE = ...
frontend-app/welcome-app/header/navbar-list-element.js
easybird/easyblog
import React from 'react'; const NavBarListElement = ({listElement}) => ( <li className={listElement.isActive && "active"}> <a href={listElement.id}>{listElement.text} </a> </li> ); export default NavBarListElement;
src/components/Card.js
nikgraf/belle
import React, { Component } from 'react'; import PropTypes from 'prop-types'; // eslint-disable-line no-unused-vars import cardStyle from '../style/card'; /** * Card component with a light shadow. * * This component will apply any attribute to the div that has been provided as * property & is valid for a div. */ ...
src/views/Home.js
nobleach/react-redux-example
import React from 'react'; export default class Home { render() { return ( <div> <h1>Home</h1> </div> ); } }
views/main.js
rocky-jaiswal/black-screen
import React from 'react'; import _ from 'lodash'; import Rx from 'rx'; import {TerminalLayout} from './compiled/src/views/TerminalLayout.js'; var keys = { goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38, goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ...
imports/startup/both/routes.js
juliancwirko/scotty
import React from 'react'; import { Route } from 'react-router-dom'; import Main from '../../ui/layouts/main/Main'; import Home from '../../ui/pages/home/Home'; import Subpage from '../../ui/pages/subpage/Subpage'; export default ( <Main> <Route exact path="/" component={Home} /> <Route exact path="/subpage"...
src/routes/app.js
rtablada/react-router-redux-boilerplate
import React, { Component } from 'react'; import Navbar from '../partials/navbar'; class App extends Component { render() { return ( <div> <Navbar /> <h1>Standups</h1> </div> ); } } export default App;
src/components/gameStatus.js
TroutZen/minesweeper
import React from 'react' import classNames from 'classNames' export class GameStatus extends React.Component { constructor(props) { super(props) this.state = { show: false } } componentWillReceiveProps(nextProps) { if (nextProps.gameOver || nextProps.didWin) { this.setState({ show: true }) ...
src/svg-icons/alert/warning.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertWarning = (props) => ( <SvgIcon {...props}> <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/> </SvgIcon> ); AlertWarning = pure(AlertWarning); AlertWarning.displayName = 'AlertWarning'; Aler...
src/components/Hero/HeroBackground.js
Bartekus/r3
import React from 'react'; import styles from './Hero.scss'; export default class HeroBackground extends React.Component { static displayName = 'HeroBackground'; static propTypes = { image: React.PropTypes.string.isRequired, }; render() { return ( <div className={ styles.background } style={ { b...
app/components/Comments.js
nosplashurinal/order-management
import React from 'react'; import PropTypes from 'prop-types'; import OrderComments from './OrderComments'; import styles from '../styles/comments.scss'; import { Editor, EditorState, ContentState } from 'draft-js'; import { stateToHTML } from 'draft-js-export-html'; class Comments extends React.Component { ...
src/Parser/Druid/Feral/Modules/Talents/SavageRoarUptime.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { ST...
app/components/UGFooter/index.js
perry-ugroop/ugroop-react-dup2
import React from 'react'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import UGContainer from './UGContainer'; import UGFooterStyle from './UGFooterStyle'; import UGGotoUp from './UGGotoUp'; function UGFooter() { return ( <UGFooterStyle> <UGContainer> <p><For...
src/utils/react-utils.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
app/components/Main.js
ilonade/OpenCookbook
import React from 'react' import { render } from 'react-dom' import { combineReducers, createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import { Router, Route, hashHistory } from 'react-router' import { syncHistoryWithStore, routerReducer, routerMiddleware } from 'react-router-redux' i...
src/tool_grommet_advanced_platform_observer/monitor-app/src/js/components/TodoAppDashboard.js
lefousdu05/performance_modelisation
import React, { Component } from 'react'; import Box from 'grommet/components/Box'; import Heading from 'grommet/components/Heading'; import List from 'grommet/components/List'; import ListItem from 'grommet/components/ListItem'; import Meter from 'grommet/components/Meter'; import Value from 'grommet/components/Value'...
frontend/components/PageSubheader.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import styles from './PageSubheader.less'; const PageSubheader = ({children}) => ( <div className={styles.main}> <h2>{children}</h2> <hr /> </div> ); PageSubheader.propTypes = { children: PropTypes.node.isRequired, }; export d...
src/svg-icons/device/battery-charging-20.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging20 = (props) => ( <SvgIcon {...props}> <path d="M11 20v-3H7v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17h-4.4L11 20z"/><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 ...
packages/react-cache/src/ReactCache.js
jzmq/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 warningWithoutStack from 'shared/warningWithoutStack'; import {createLRU} from './L...
rojak-ui-web/src/app/utils/Navbar.js
rawgni/rojak
import React from 'react'; import { Link } from 'react-router'; import rojakBlack from '../../assets/images/rojak-black.svg'; import styles from './Navbar.css'; const Navbar = () => ( <nav className={`uk-navbar ${styles.navbar}`}> <ul className="uk-navbar-nav"> <li className="uk-active"> ...
src/containers/equipment/CategoriesContainer.js
PocketOfWeird/GearGoober
import React from 'react' import { connect } from 'react-redux' import Categories from '../../components/Categories' const mapStateToProps = state => ({ categoriesObject: state.data.categories }) const mapDispatchToProps = dispatch => ({ handleClick: id => e => console.log(id) }) export default connect( mapSt...
frontend/app/components/LearnBase/contributors-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...
examples/huge-apps/routes/Course/components/Nav.js
tkirda/react-router
import React from 'react' import { Link } from 'react-router' const styles = {} styles.nav = { borderBottom: '1px solid #aaa' } styles.link = { display: 'inline-block', padding: 10, textDecoration: 'none' } styles.activeLink = { ...styles.link, color: 'red' } class Nav extends React.Component { rende...
src/IconCircularFrame/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from '../Icon'; import styles from './styles.css'; function IconCircularFrame(props) { return ( <div className={classNames(styles.wrapper, { [styles.border]: props.borderColor, [s...
src/components/app/App.js
Oritechnology/pubApp
import React from 'react' import { NavLink, Link } from 'react-router-dom' import './App.css' import pkg from '../../../package.json' /* The .active class is being applied to '/' even when it isn't the current location.pathname because all other paths are its children. This method corrects for that. */ const onl...
lib/Card/stories/BasicUsage.js
folio-org/stripes-components
import React from 'react'; import Card from '../Card'; import Button from '../../Button'; /* eslint-disable max-len */ export default () => ( <div> <Card headerStart="Default"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut en...
src/components/Schedule.js
ClaremontAB/Kalvhagen
import React, { Component } from 'react'; import {Table} from 'react-bootstrap'; class Schedule extends Component { render () { return ( <Table responsive> <thead> <tr> <th>Tid</th> <th>Måndag</th> <th>Tisdag</th> <th>Onsdag</th> ...
src/main/webapp/static-wx/js/app.js
zzhoouxin/react-demo
/** * Created with of1410. * Date: 2016/5/3 * Time: 16:58 */ import React from 'react'; import {render} from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import {createHashHistory} from 'history'; const history = useRouterHistory(createHashHistory)({queryKey: false}) const rootRoute = { ...
consoles/my-joy-templates/src/containers/breadcrumb.js
yldio/joyent-portal
import React from 'react'; import paramCase from 'param-case'; import get from 'lodash.get'; import { Link } from 'react-router-dom'; import { Margin } from 'styled-components-spacing'; import { Breadcrumb, BreadcrumbItem } from 'joyent-ui-toolkit'; export default ({ match }) => { const serviceGroupId = get(match, ...
packages/frontend/src/components/statusPage/Header/index.js
ks888/LambStatus
import React from 'react' import Title from 'components/statusPage/Title' import SubscriptionMenu from 'components/statusPage/SubscriptionMenu' import classes from './Header.scss' export default class Header extends React.Component { render () { return ( <div className={classes.top}> <Title /> ...
src/pages/RegistrationPage.js
belaczek/BeerCheese-client
import React from 'react'; import { Col,Button, FormGroup, Label } from 'reactstrap'; import { browserHistory} from 'react-router'; import { connect } from 'react-redux'; import localizedTexts from '../text_localization/LocalizedStrings'; import api from '../api.js'; import { openModal } from '../actions/openModal'; im...
internals/templates/appContainer.js
w01fgang/react-boilerplate
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
examples/todomvc/containers/TodoApp.js
ataker/redux-devtools
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; class TodoApp extends Component { render(...
src/overlay/Overlay.js
martinezguillaume/react-native-elements
import PropTypes from 'prop-types'; import React from 'react'; import { View, StyleSheet, Dimensions, Platform, ViewPropTypes as RNViewPropTypes, } from 'react-native'; const dimensions = Dimensions.get('window'); const windowWidth = dimensions.width; const windowHeight = dimensions.height; const ViewPropTy...
react-poc-main/app/containers/NotFoundPage/index.js
Meesayen/react-poc
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
react/src/components/dividers/SprkDivider.js
sparkdesignsystem/spark-design-system
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const SprkDivider = (props) => { const { element, additionalClasses, idString, ...other } = props; const classNames = classnames('sprk-c-Divider', additionalClasses); const TagName = element; return <TagName cla...
app/javascript/mastodon/features/list_adder/index.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListAdder, resetListAdder } from '...
app/javascript/mastodon/features/compose/containers/warning_container.js
maa123/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Warning from '../components/warning'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { me } from '../../../initial_state'; const buildHashtagRE = () => { try { const HASHTAG_SEPARATORS = '_\\u00b7\...
websites/svef.is/src/app/middlewares/react-redux/index.js
svef/www
import React from 'react' import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import { compose } from 'redux' import { Provider } from 'react-redux' import { composeWithDevTools } from 'redux-devtools-extension' import rootReducer from 'app/reducers' // Middleware for reducing boilerp...
aiohttp_admin/static/react-admin/js/components/Fields/ShowField.js
aio-libs/aiohttp_admin
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import { BooleanField } from 'admin-on-rest'; export class ShowField extends React.Component { render () { const { source, record = {} } = this.props; let data = get(record, source); if (data instanceof Object...
src/components/common/Operations/OperationLogs.js
ndxm/NDReactBoilerplate
import React from 'react'; import Styles from './OperationLogs.css'; import OperationLog from './OperationLog'; import Section from '../Section/Section'; var OperationLogs = React.createClass({ propTypes: { logs: React.PropTypes.array }, render: function () { return ( <Sectio...
app/javascript/mastodon/features/picture_in_picture/components/footer.js
musashino205/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import classNames from 'classna...
src/utils/defaultStyle.js
effektif/react-mentions
import React from 'react' import useStyles from 'substyle' function createDefaultStyle(defaultStyle, getModifiers) { const enhance = (ComponentToWrap) => { const DefaultStyleEnhancer = ({ style, className, classNames, ...rest }) => { const modifiers = getModifiers ? getModifiers...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js
devex-web-frontend/create-react-app-dx
/** * 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...
p216/src/component/NextPrevious.js
Sylvestre67/packde16
import React, { Component } from 'react'; import './NextPrevious.css'; // import PropTypes from 'prop-types'; import IconButton from 'material-ui/IconButton'; import HardwareKeyboardArrowLeft from 'material-ui/svg-icons/hardware/keyboard-arrow-left'; import HardwareKeyboardArrowRight from 'material-ui/svg-icons/hardwa...
front/src/components/CommentList.js
muhammad-awan/financial-news
import React from 'react' import Comment from './Comment' export default function CommentList({ items }){ return( <div> { items.map((item) => ( <Comment key={ item._id } { ... item } /> )) } </div> ) }
app/components/ProgressBar/index.js
joegattnet/joegatt.net-client
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
app/javascript/mastodon/features/compose/components/autosuggest_account.js
MitarashiDango/mastodon
import React from 'react'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class AutosuggestAccount extends Immuta...
app/javascript/mastodon/features/ui/components/report_modal.js
kagucho/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { changeReportComment, submitReport } from '../../../actions/reports'; import { refreshAccountTimeline } from '../../../actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ma...
react-app/src/components/LoadingIndicator.js
floodfx/gma-village
import React from 'react'; import FontAwesome from 'react-fontawesome'; const LoadingIndicator = ({text}) => ( <div> <FontAwesome name='spinner' spin={true} className="mr1" /> {text} </div> ) export default LoadingIndicator;
components/Footer.js
adamkrogh/adamkrogh.com
import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import styled from 'styled-components'; import { config } from 'config'; const StyledFooter = styled.footer` background-color: #292b2c; color: #ddd; bottom: 0; left: 0; width: 100%; pad...
docs/app/Examples/elements/Segment/Types/SegmentRaisedExample.js
jcarbo/stardust
import React from 'react' import { Segment } from 'stardust' const SegmentRaisedExample = () => ( <Segment raised> Pellentesque habitant morbi tristique senectus. </Segment> ) export default SegmentRaisedExample
src/components/common/HeroRow/HeroRow.js
transmute-industries/eth-faucet
import React from 'react' import Navbar from 'components/common/Navbar' import classes from './HeroRow.scss' import { PropTypes } from 'prop-types'; import Particles from 'react-particles-js'; import particles from './particles.json' import Theme from 'theme' export const HeroRow = ({ children, renderParticles }) ...
shared/components/App/AsyncEdit/AsyncSlices/SlicesRoute.js
deanslamajr/trakta.co
import React from 'react' import { compose } from 'redux' import { connect } from 'react-redux' import withStyles from 'isomorphic-style-loader/lib/withStyles' import SampleInstances from '../../../../../client/components/SampleInstances' import InstancePlaylist from '../../../../../client/components/InstancePlaylist'...
indico/modules/rb/client/js/common/map/util.js
indico/indico
// This file is part of Indico. // Copyright (C) 2002 - 2022 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import LatLon from 'geodesy/latlon-nvector-spherical'; import _ from 'lodash'; import PropTypes from...
client/index.js
raunofreiberg/blackford
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import './sass/style.scss'; import './sass/_fonts.scss'; import createReduxStore from './configureStore'; import Router from './Router'; import rootReducer from './reducers'; import Auth from './utils/authentication';...
src/index.js
yokuba/data-protest
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/svg-icons/maps/directions-bus.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBus = (props) => ( <SvgIcon {...props}> <path d="M4 16c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8...
server/sonar-web/src/main/js/apps/overview/components/domain-bubble-chart.js
vamsirajendra/sonarqube
import _ from 'underscore'; import React from 'react'; import { BubbleChart } from '../../../components/charts/bubble-chart'; import { getComponentUrl } from '../../../helpers/urls'; import { getFiles } from '../../../api/components'; import { formatMeasure } from '../../../helpers/measures'; import Workspace from '.....
docs/src/pages/NavbarPage.js
mattBlackDesign/react-materialize
import React from 'react'; import Row from 'Row'; import Col from 'Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import Samples from './Samples'; import iconLinksNavbar from '../../../examples/IconLinksNavbar'; import leftAlignedNavbar from '../../../examples/LeftAlignedNav...
lib/views/renderers/fallback-renderer.js
jneuendorf/code-annotations
import React from 'react' export default class FallbackRenderer extends React.Component { static isBinary = false static description = 'Displays an error message' static type = 'fallback' static fileExtension = 'txt' static getName() { return 'FallbackRenderer' } render() { ...
src/components/modal.js
puffers/puffers
import React from 'react'; import PropTypes from 'prop-types'; import Header from './header'; import Footer from './footer'; import '../styles/main.css'; class Modal extends React.Component { constructor(props) { super(props); this.state = { active: props.active } this.onClose = this.onClos...
docs/src/app/components/pages/components/Slider/ExampleSimple.js
ichiohta/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; /** * The `defaultValue` property sets the initial position of the slider. * The slider appearance changes when not at the starting position. */ const SliderExampleSimple = () => ( <div> <Slider /> <Slider defaultValue={0.5} /> <Slide...
client/modules/core/components/ui/col.js
jshimko/home-dash
import React, { Component } from 'react'; class Col extends Component { constructor(props) { super(props); this._classMap = { xs: 'col-xs', sm: 'col-sm', md: 'col-md', lg: 'col-lg', xsOffset: 'col-xs-offset', smOffset: 'col-sm-offset', mdOffset: 'col-md-offset', ...
src/pages/person/PersonInfo.js
zzelune/neam
import React, { Component } from 'react'; import { View, StyleSheet, StatusBar, Image, TouchableOpacity, ScrollView, RefreshControl, Dimensions } from 'react-native'; import { Content, Left, Body, Right, List, ListItem, Separator, Text, Button, Thumbnail } from 'native-base'; import common from '../../common'; import E...
src/components/AboutPage/AboutPage.js
josedigital/koala-app
import React from 'react' import SearchResults from '../SearchResults/SearchResults' const AboutPage = ({profile}) => <div> <h2>About {profile.given_name}</h2> <p>I'm going to place some random components in here to test</p> </div> export default AboutPage
docs/src/app/components/pages/get-started/Examples.js
kittyjumbalaya/material-components-web
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import examplesText from './examples.md'; const Examples = () => ( <div> <Title render={(previousTitle) => `Examples - ${previousTitle}`} /> <MarkdownElement text={examplesText} /> </...
src/svg-icons/maps/local-play.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPlay = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4....
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Base/Loading/Loading.js
Minoli/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
client/app/components/Card/RestaurantCard.js
yanhao-li/menu-plus
import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardMedia, CardTitle, CardText } from 'material-ui/Card'; const propTypes = { restaurant: PropTypes.object.isRequired, }; const styles = { card: { height: '384px', width: '250px', backgroundColor: '#f6f6f6', margin: '10p...
demo/index.js
saschwarz/react-svgpathplayer
'use strict'; import 'highlight.js/styles/github.css'; import 'react-ghfork/gh-fork-ribbon.ie.css'; import 'react-ghfork/gh-fork-ribbon.css'; import './main.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; main(); function main() { const app = document.getElementsByC...
packages/material-ui-icons/src/NetworkCellOutlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M17 7L2 22h15V7z" /></React.Fragment> , 'NetworkCellOutlined');
src/components/DataTable/stories/with-dynamic-content.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import Delete from '@carbon/icons-react/lib/delete/16'; import Save from '@carbon/icons-react/lib/save/16'; import...
react-router-es6-example/node_modules/react-router/es6/IndexRedirect.js
akhilaantony/React-Stylisted
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
docs/pages/api-docs/radio.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/radio'; const requireRaw = require.context('!raw-loader!./', false, /\/radio\.md$/); export default function Page({ docs }) ...
bai/src/components/ProgramsList/index.js
blackinai/blackinai.github.io
import { Button, Card, CardActions, CardContent, CardMedia, Container } from '@material-ui/core/'; import Grid from '@material-ui/core/Grid'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import React from 'react'; import Typography from '../Typography'; const styles = (the...
src/components/Account/ResourceList/Resource/presenter.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import Actions from './Actions' import { hasActions } from './Actions/presenter' import Cards from './Cards' import styles from '../style.module.css' const Resource = (props) => { return ( <div className={styles.cardItem + (props.listType === '...
webapp-src/src/Footer/WebradioNow.js
babelouest/taliesin
import React, { Component } from 'react'; import StateStore from '../lib/StateStore'; import MediaInfo from './MediaInfo'; import i18n from '../lib/i18n'; class WebradioNow extends Component { constructor(props) { super(props); this.state = { imgThumbBlob: false, media: props.media, }; this.loadCover...
app/navigation/AppNavigator.js
RoninSTi/react-image-picker
import { StyleSheet } from 'react-native'; import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { addNavigationHelpers, StackNavigator } from 'react-navigation'; import AppContainer from '../containers/AppContainer'; import Picker from '../components/Picker'; co...
lib/components/App.js
Brainpowered/advanced-react
import React from 'react'; import DataApi from '../DataApi'; import { data } from '../testData'; import ArticleList from './ArticleList'; const api = new DataApi(data); class App extends React.Component { constructor() { super(); this.state = { articles: api.getArticles(), authors: api.getAuthor...
code/material/router/GreetingDisplay.js
st-he/react-workshop
import React from 'react'; export default function GreetingDisplay(props) { return <h1>Hier sollte der Gruß stehen</h1>; }
docs/app/Examples/collections/Grid/Variations/GridExampleTextAlignmentMixed.js
koenvg/Semantic-UI-React
import React from 'react' import { Grid, Menu } from 'semantic-ui-react' const GridExampleTextAlignmentJustified = () => ( <Grid> <Grid.Row columns={3}> <Grid.Column> <Menu fluid vertical> <Menu.Item className='header'>Cats</Menu.Item> </Menu> </Grid.Column> <Grid.Colu...
fields/types/date/DateField.js
asifiqbal84/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, InputGroup, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'DateField', focusTargetRef: 'dateInput', // default input format inpu...
examples/amp-first/components/amp/AmpState.js
JeromeFitz/next.js
import PropTypes from 'prop-types' import React from 'react' import { AmpIncludeAmpBind } from './AmpCustomElement' /** * Renders an amp-state element, by either adding local state via `value` * or remote state via the `src` property. * * @param {Props} props */ export default function AmpState(props) { return ...
src/slides/AcronymMethod.js
joshforisha/fred-talks
import PropTypes from 'prop-types'; import React from 'react'; import SvgSlide from 'components/SvgSlide'; import activeVerbs from 'lib/active-verbs'; import adverbs from 'lib/adverbs'; import nouns from 'lib/nouns'; import passiveVerbs from 'lib/passive-verbs'; import styled from 'styled-components'; import { chance, ...
docs/src/app/pages/components/Typeahead/ExampleTypeaheadCustomSearch.js
GetAmbassador/react-ions
import React from 'react' import Typeahead from 'react-ions/lib/components/Typeahead/Typeahead' import options from './CountryList' class ExampleTypeaheadDefaultValue extends React.Component { constructor(props) { super(props) } state = { loading: false } handleSearch = value => { return new Pr...
clients/packages/admin-client/src/components/layout/page-centralized-layout/page.js
nossas/bonde-client
import PropTypes from 'prop-types'; import React from 'react'; import { SettingsPageLayout, SettingsPageContentLayout, } from '../../../components/layout'; if (require('exenv').canUseDOM) require('./page.scss'); const PageCentralizedLayout = ({ children }) => { return ( <SettingsPageLayout className="page-...
src/App.js
edwinwright/react-project
import React from 'react'; import { Router, hashHistory } from 'react-router'; import { Provider } from 'react-redux'; import Routes from './config/Routes'; import configureStore from './store/configStore' const App = () => ( <Provider store={configureStore()}> <Router history={ hashHistory }> {Routes} ...
app/routes/MailboxRoute.js
danjamin/react-fluxlike-mail-demo
import React from 'react'; import {Router} from 'fl-router'; import MailboxActionCreators from '../actions/MailboxActionCreators.js'; import MessageActionCreators from '../actions/MessageActionCreators.js'; import AppActionCreators from '../actions/AppActionCreators.js'; import MessagesView from '../views/MessagesView...
examples/simple_increment/client/view.js
Vandise/redux-socket.io-middleware
import React from 'react'; import { connect } from 'react-redux'; import { actions } from './actions'; const Menu = class extends React.Component { componentDidMount() { // connect the socket to the server once the component mounts this.props.dispatch(actions.INCREMENT_CONNECT('localhost', 44500)); } r...
techCurriculum/ui/solutions/4.2/src/components/CardForm.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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...
addons/themes/editorial/includes/PostList.js
rendact/rendact
import React from 'react'; import {Link} from 'react-router'; const PostList = ({image, title, content, id}) => ( <article> <Link className="image" to={"/post/"+ id}><img src={image} alt=""/></Link> <h3>{title}</h3> <p dangerouslySetInnerHTML={{__html: content}}/> <ul className="actions"> <li>...