path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
apps/marketplace/pages/Teams/TeamsPage.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import { connect } from 'react-redux' import { BrowserRouter, Route, Switch, withRouter } from 'react-router-dom' import { rootPath } from 'marketplace/routes' import { ErrorBoxComponent } from 'shared/form/ErrorBox' import AUbutton from '@gov.au/buttons' import PageHeader from '../../compon...
src/components/pages/Checkout/CheckoutSection.js
ESTEBANMURUZABAL/bananaStore
/** * Imports */ import React from 'react'; // Required components import Heading from '../../common/typography/Heading'; /** * Component */ class CheckoutSection extends React.Component { //*** Component Lifecycle ***// componentDidMount() { // Component styles require('./CheckoutSecti...
src/components/SideBarSection/SideBarSection.js
jeffdowdle/l-systems
import React from 'react'; import classNames from 'classnames'; import './side-bar-section.scss'; class SideBarSection extends React.Component { constructor(props) { super(props); this.state = { isExpanded: props.initiallyExpanded, }; this.handleClick = this.handleClick.bind(this); } ha...
src/parser/druid/balance/modules/features/Checklist/Component.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import Requirement from 'parser/shared/modules...
docs/src/app/components/pages/discover-more/Contributing.js
kittyjumbalaya/material-components-web
import React from 'react'; import Title from 'react-title-component'; import contributingText from '../../../../../../CONTRIBUTING.md'; import MarkdownElement from '../../MarkdownElement'; const Contributing = () => ( <div> <Title render={(previousTitle) => `Contributing - ${previousTitle}`} /> <MarkdownElem...
src/scripts/views/disclaimerView.js
recordbleach/recordBleach_front_end
import React from 'react' import Header from './header' import Footer from './footer' var DisclaimerView = React.createClass({ render: function() { return ( <div className="body-container"> <Header /> <div className="disclaimer-container"> <h3>Disclaimer</h3> <p><b>Information, Not Legal Advice.<...
react/src/components/contact/ContactPage.js
ineffablep/simple-ui
import React from 'react'; class ContactPage extends React.Component { render(){ return( <div> <h1>Contact Us</h1> </div> ); } } export default ContactPage;
entry_types/scrolled/package/src/frontend/inlineEditing/LayoutWithPlaceholder.js
codevise/pageflow
import React from 'react'; import {LayoutWithoutInlineEditing} from '../layouts'; import {ContentElementInsertButton} from './ContentElementInsertButton'; import {useEditorSelection} from './EditorState'; import {postInsertContentElementMessage} from './postMessage'; export function LayoutWithPlaceholder(props) { c...
docs/app/Examples/modules/Progress/Content/ProgressExampleLabelPercent.js
koenvg/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleProgressPercent = () => ( <Progress value='4' total='5' progress='percent' /> ) export default ProgressExampleProgressPercent
src/svg-icons/device/devices.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDevices = (props) => ( <SvgIcon {...props}> <path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/> </Sv...
src/containers/List.js
blaqbern/lists
import React from 'react'; import { connect } from 'react-redux'; import { addItem } from '../actions'; import AddNew from '../components/AddNew'; import Item from './Item'; function List({ items, handleAddItemClick }) { return ( <div> <AddNew what="item" handleAddClick={handleAddItemClick}...
frontend/src/main.js
rebiz/requests
import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import {useRouterHistory} from 'react-router'; import {syncHistoryWithStore} from 'react-router-redux'; import createStore from './store/createStore'; import AppContainer from './containers/...
src/Portal.js
yuche/react-bootstrap
/*eslint-disable react/prop-types */ import React from 'react'; import CustomPropTypes from './utils/CustomPropTypes'; import domUtils from './utils/domUtils'; let Portal = React.createClass({ displayName: 'Portal', propTypes: { /** * The DOM Node that the Component will render it's children into *...
src/js/components/Timestamp.js
odedre/grommet-final
// (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import moment from 'moment'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../utils/CSSClassnames'; import { getCurrentLocale } from '../utils/Locale'; c...
codes/chapter03/webpack2/demo08/app/components/Welcome.js
atlantis1024/react-step-by-step
/** * Created by Zhang Peng on 2017/6/8. */ import React from 'react'; import imgSchool from './school.jpg'; class Welcome extends React.PureComponent { render() { return ( <div> <h1>那些年</h1> <img src={imgSchool} /> <div> <p>又回到最初的起点</p> <p>记忆中你青涩的脸</p> ...
components/Agenda/Event/index.js
joaojusto/jose-gomes-landing-page
import React from 'react'; import moment from 'moment'; moment.locale('pt'); import './index.scss'; import Background from './background.jpg'; import BackgroundMobile from './background-mobile.jpg'; import LocationIcon from './location.svg'; import Navigation from '../../Navigation'; import LinkIcon from './link.svg...
frontend/src/Components/Page/Header/ArtistSearchResult.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import ArtistPoster from 'Artist/ArtistPoster'; import Label from 'Components/Label'; import { kinds } from 'Helpers/Props'; import styles from './ArtistSearchResult.css'; function ArtistSearchResult(props) { const { match, artistName, images...
packages/playground/stories/FittedImage.story.js
appearhere/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import { FittedImage } from '@appearhere/bloom'; storiesOf('FittedImage', module) .add('`object-fit: cover`', () => ( <FittedImage style={{ backgroundColor: '#eee', objectFit: 'cover', width: '100%', ma...
src/routes/Home/components/HomeView.js
successkrisz/fx-rates-right
import React from 'react' import './HomeView.scss' import mainPic from 'assets/images/home960.jpg' export const HomeView = () => ( <div className='home_view__container'> <h1>#FX Rates Right</h1> <h4 className='home_view__subtitle'>The app where you can view the currency rates right ;-)</h4> <div> <...
examples/2-spa/src/explore/App.js
chikara-chan/react-power
import React from 'react' import styles from './App.scss' function App() { return ( <div> <h1 className={styles.title}>Explore</h1> </div> ) } export default App
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
KamilSzot/react-router
import React from 'react'; import { Link } from 'react-router'; export default class AnnouncementsSidebar extends React.Component { static loadProps (params, cb) { console.log('AnnouncementsSidebar', 'loadProps'); cb(null, { announcements: COURSES[params.courseId].announcements }); } render (...
ajax/libs/react-select/1.0.1/react-select.es.js
jdh8/cdnjs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; function arrowRenderer(_ref) { var onMouseDown = _ref.onMouseDown; return React.createElement('span', { clas...
client/components/Main.js
yuanyusi/redux
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import NavLink from './modules/navLink' connect(state => ({example: state.example.data })) class Main extends React.Component { render(){ return ( <div> <h1> <Link to="/"> Reduxstagram ...
app/javascript/mastodon/components/column_back_button_slim.js
corzntin/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButtonSlim extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length ==...
src/Picker/SelectButton.js
skystebnicki/chamel
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ArrowDropDownIcon from '../icons/font/ArrowDropDownIcon'; import Menu from '../Menu/Menu'; import Popover from '../Popover/Popover'; import FontIcon from '../FontIcon'; import IconButton from '../Button/IconButton'; import ThemeService...
src/svg-icons/social/notifications-paused.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotificationsPaused = (props) => ( <SvgIcon {...props}> <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.93 6 11...
docs/app/src/pages/Resources.js
tercenya/compendium
import React from 'react'; import { CondLang, NavMain, PageHeader, PageFooter, A, MFizzIcon, FontAwesomeIcon } from '../components'; const Resources = (props) => { return ( <div> <NavMain activePage="resources" /> <PageHeader title="Resources" subTitle="" /> <div className="c...
client/components/ChangePasswordForm.js
homanbromand/node-react-bootstrap
import React from 'react' import { change } from 'client/actions/passwordActions' export default class ChangePassword extends React.Component { constructor() { super() this.submitHandler = this.submitHandler.bind(this) } submitHandler(e) { e.preventDefault() const currentPassword = this.currentPasswordI...
src/routes/expansion_panel/index.js
ChrisWC/MaterL
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Route from './Route'; im...
node_modules 11.32.44 AM/react-router/modules/RoutingContext.js
drankadank/client
import React from 'react'; import invariant from 'invariant'; import getRouteParams from './getRouteParams'; var { array, func, object } = React.PropTypes; /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ var RoutingC...
src/components/RenderComputer.js
tuomotlaine/portfolio
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { toggleAutoScroll } from '../actions'; class RenderComputer extends Component { constructor(props){ super(props); } componentWillMount(){ if(this.props.noAutoScroll){ this.props.toggleAutoScroll(true); } ...
actor-apps/app-web/src/app/components/DialogSection.react.js
gale320/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/containers/Contact/Contact.js
denichodev/personal-web
import React, { Component } from 'react'; import client from '../../services/clientManagement'; import GoogleMapReact from 'google-map-react'; import validate from '../../helpers/validate'; import './Contact.css'; const MapMarker = ({ icon, style }) => <i className={`fa fa-${icon}`} style={style} />; const mapCon...
src/Tooltip.js
yuche/react-bootstrap
/* eslint-disable react/no-multi-comp */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Tooltip = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * An html id attrib...
routes/index.js
RyanCCollins/ryancollins.io
import keystone from 'keystone'; import webpack from 'webpack'; import webpackMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import express from 'express'; import config from '../webpack.config.js'; import createTemplate from './utils/createTemplate'; const isDevel...
src/clincoded/static/components/gene_disease_summary/classification_matrix.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { isScoringForCurrentSOP } from '../../libs/sop'; import GeneDiseaseClassificationMatrix from '../../libs/gene_disease_classification_matrix'; import GeneDiseaseClassificationMatrixSOPv5 from '../../libs/gene_disease_clas...
docs/src/app/components/pages/components/TextField/ExampleError.js
mmrtnz/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleError = () => ( <div> <TextField hintText="Hint Text" errorText="This field is required" /><br /> <TextField hintText="Hint Text" errorText="The error text can be as long as you want, i...
src/svg-icons/image/center-focus-weak.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCenterFocusWeak = (props) => ( <SvgIcon {...props}> <path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-...
src/svg-icons/action/event-seat.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEventSeat = (props) => ( <SvgIcon {...props}> <path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"/> </SvgIcon> ); ActionEventSeat = pure(ActionEventSe...
src/react/puppeteer/src/js/views/add-device-modal/NameInputView.js
nicholastmosher/pa_puppeteer
/** * @author Nick Mosher <nicholastmosher@gmail.com> */ import React from 'react'; import classNames from 'classnames'; export default function DeviceNameInputView(props) { const helpText = props.validName ? null : <span id="nameHelp" className="help-block">Device name cannot be empty</span>; return ( ...
src/svg-icons/hardware/router.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareRouter = (props) => ( <SvgIcon {...props}> <path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6...
src/components/NewModal.js
robshox/boostv1
import React from 'react'; import ReactDOM from 'react-dom'; import NewFolderSetup from './NewFolderSetup'; import NewProcSetup from './NewProcSetup'; import NewDefaultSetup from './NewDefaultSetup'; import { addDeck, showAddDeck, hideAddDeck, addModalFolder, modalShowFold, modalShowProc } from '../actions'; import { c...
src/svg-icons/maps/directions-subway.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsSubway = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5...
src/components/about/AboutPage.js
doron2402/react-redux
import React from 'react'; class AboutPage extends React.Component { render() { return ( <div className="container"> <h2 className="row">About</h2> </div> ); } } export default AboutPage;
src/components/ActionButton/ActionButton.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import _ from 'lodash'; import Icons from '../icons'; import { colors, boxShadows, ifThemeInPropsIsPresentUse, renderThemeKeyOrDefaultValue, renderThemeIfPresentOrDefault, } from '../styles'; const Button ...
webpack/containers/surveys/SurveyDedupeContainer.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Grid, Row, Col } from 'react-bootstrap'; import { setSteps } from '../../actions/tutorial_actions'; import { fetchSurvey, fetchDuplicates } from '../...
src/components/01-atoms/UIBlocker/index.js
buildit/bookit-web
import React from 'react' import styles from './styles.scss' const UIBlocker = () => ( <div className={styles.blocker}></div> ) export default UIBlocker
src/interface/others/ItemManaGained.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import ManaIcon from 'interface/icons/Mana'; import { formatThousands } from 'common/format'; class ItemManaGained extends React.PureComponent { static propTypes = { amount: PropTypes.number.isRequired, approximate: PropTypes.bool, }; static...
src-rx/src/dialogs/AdapterDeletionDialog.js
ioBroker/ioBroker.admin
import React, { Component } from 'react'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@m...
src/styles/theme-decorator.js
bgribben/material-ui
import React from 'react'; export default (customTheme) => { return function(Component) { return React.createClass({ childContextTypes: { muiTheme: React.PropTypes.object, }, getChildContext() { return { muiTheme: customTheme, }; }, render() { ...
src/containers/Application/Application.js
albertfdp/react-podio-universal
import React from 'react'; if (__CLIENT__) { require('./Application.scss'); } export default class Application extends React.Component { constructor(props, context) { super(props, context); } render() { return ( <div className="application"> {this.props.children} </div> ); ...
src/backends/test-repo/AuthenticationPage.js
dopry/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import Input from "react-toolbox/lib/input"; import Button from "react-toolbox/lib/button"; import { Card, Icon } from "../../components/UI"; import logo from "../git-gateway/netlify_logo.svg"; import styles from "../git-gateway/AuthenticationPage.css"; ex...
fields/types/boolean/BooleanField.js
Tangcuyu/keystone
import React from 'react'; import Field from '../Field'; import Checkbox from '../../components/Checkbox'; import { FormField, FormNote } from 'elemental'; module.exports = Field.create({ displayName: 'BooleanField', propTypes: { indent: React.PropTypes.bool, label: React.PropTypes.string, note: React.PropTy...
ReactNative/node_modules/react-navigation/src/views/CardStack/CardStack.js
tahashahid/cloud-computing-2017
import React from 'react'; import clamp from 'clamp'; import { Animated, StyleSheet, PanResponder, Platform, View, I18nManager, Easing, } from 'react-native'; import Card from './Card'; import Header from '../Header/Header'; import NavigationActions from '../../NavigationActions'; import addNavigationHe...
src/pages/index.js
meherranjan/aerosailor
import React from 'react' import SEO from '../components/includes/seo' import Header from '../components/includes/header/header' import Footer from '../components/includes/footer/footer' import GlobalStyles from '../components/includes/fonts' import LandingSection from '../components/core/landing/landing' const Index...
04-redux-store/src/App.js
dtanzer/react-basic-examples
import React, { Component } from 'react'; import User from './User'; class App extends Component { render() { return ( <ul> <User firstName="John" lastName="Doe" email="john.doe@example.com" active={true} /> <User firstName="Jane" lastName="Doe" /> </ul> ); } } export default A...
src/app/components/media-button-like.js
pashist/soundcloud-like-player
import React from 'react'; import {connect} from 'react-redux'; import ReactTooltip from 'react-tooltip'; import * as actions from '../actions'; class MediaButtonLike extends React.Component { componentDidUpdate(){ ReactTooltip.rebuild(); } render() { if (!this.props.track) return null; ...
src/svg-icons/content/move-to-inbox.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMoveToInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3...
test/integration/no-override-next-props/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' class MyApp extends App { static async getInitialProps({ Component, ctx }) { let pageProps = {} if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx) } return { pageProps, router: () => {} } } render() { ...
src/common/components/Box.js
TheoMer/Gyms-Of-The-World
// @flow import type { Color, Theme } from '../themes/types'; import React from 'react'; import isReactNative from '../../common/app/isReactNative'; // Universal styled Box component. The same API for browsers and React Native. // Some props are ommited or limited or set to match React Native behaviour. // - default ...
frontend/src/Components/Form/TextTagInputConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import split from 'Utilities/String/split'; import TagInput from './TagInput'; function createMapStateToProps() { return createSelector( (state, { value...
src/js/components/icons/base/DocumentTime.js
odedre/grommet-final
/** * @description DocumentTime SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. ...
react/gameday2/components/embeds/EmbedIframe.js
verycumbersome/the-blue-alliance
/* eslint-disable react/no-danger */ import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' const EmbedIframe = (props) => { const divStyle = { width: '100%', height: '100%', } let iframeMarkup = props.webcast.channel iframeMarkup = iframeMarkup.replace(/&lt;/, '<') ifr...
example/components/App.js
ekazakov/react-scrollable
import React from 'react'; import {OptionsPanel} from './OptionsPanel'; import {TableRow} from './TableRow'; import {TableRowsSet} from './TableRowSet'; import Scrollable from '../../src/Scrollable'; import '../main.less'; import {Card} from '../card'; import pick from 'lodash.pick'; function calculateAbsoluteTopOffse...
test/integration/serverless-trace/pages/fetch.js
JeromeFitz/next.js
import fetch from 'isomorphic-unfetch' import React from 'react' export default class extends React.Component { static async getInitialProps() { try { const res = await fetch('') const text = await res.text() console.log(text) return { text } } catch (err) { if (err.message.incl...
src/components/MessageSection.js
Ibrasau/socketChatExample
import React, { Component } from 'react'; import moment from 'moment'; import { Row, Alert, Card } from 'antd'; export default class MessageSection extends Component { constructor() { super(); this.state = { messages: [], }; } componentDidMount() { const { socket } = this.props; const...
src/components/ui/Container.js
yuri/notality
import React from 'react'; const Container = ({ children, style = {}, className = '' }) => { return ( <div className={ `container ${ className }` } style={{ ...styles.base, ...style }}> <div className="clearfix"> { children } </div> </div> ); }; const styles = { base: {}, }; export ...
pages/blog/index.js
fmarcos83/mdocs
/** * 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>Blog</h1> <p>Coming soon....
src/app/pages/blog/Home.js
ROZ32/react-example
import React, { Component } from 'react'; class Home extends Component { constructor(props) { super(props); } render() { return ( <div className="container"> <div className="row"> <div className="col-lg-8 col-md-10 mx-auto"> <div className="post-preview"> <a href="post.html"> <h2 cla...
style-guide/src/pages/otkit-typography.js
lastquestion/design-tokens
import React from 'react'; import _ from 'lodash'; import SectionHeader from '../components/section-header'; import token from 'otkit-typography-desktop/token.common'; import styles from '../styles/otkit-typography-desktop.module.css'; const typographyGroups = [ 'xxlarge-bold', 'xlarge-bold', 'large-bold', 'm...
src/parser/warrior/protection/modules/spells/ShieldBlock.js
fyruna/WoWAnalyzer
import React from 'react'; import { formatPercentage, formatThousands } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from...
app/client/js/Application.js
kgunbin/react-sprint-planning
import React from 'react'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import Container from './components/Container'; import reducers from './reducers'; import io from 'socket.io-client'; import createSocketIoMiddleware from 'r...
prop-ui-lib-common/src/components/Hello.js
somrajg7/Astoria
import React from 'react'; let Hello = React.createClass({ render() { return ( <div>Hello World!</div> ); } }); export default Hello;
src/client/story_list.js
qiaoxueshi/hacker-menu
import React from 'react' import Story from './story.js' import _ from 'lodash' export default class StoryList extends React.Component { render () { var onUrlClick = this.props.onUrlClick var onMarkAsRead = this.props.onMarkAsRead var storyNodes = _.map(this.props.stories, function (story, index) { ...
node_modules/react-router/es/Route.js
vinhtran19950804/procure_react
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
docs/app/Examples/collections/Table/Variations/TableExampleColors.js
shengnian/shengnian-ui-react
import React from 'react' import { Table } from 'shengnian-ui-react' const colors = [ 'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black', ] const TableExampleColors = () => ( <div> {colors.map(color => ( <Table color={color} key={color}> ...
react-dev/router.js
575617819/yanghang
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import promise from 'redux-simple-promise'; import reducers from './reducers'; import routes from './routes'...
client/extensions/woocommerce/components/product-reviews-widget/index.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import Rating from 'components/rating'; import { getLink } from 'woocommerce/lib/nav-utils'; ...
views/containers/BaseAppointmentView.js
gvaldambrini/madam
import React from 'react'; import moment from 'moment'; import { connect } from 'react-redux'; import { fetchServicesIfNeeded } from '../redux/modules/services'; import { fetchWorkersIfNeeded } from '../redux/modules/workers'; import { fetchAppointmentIfNeeded, saveAppointment } from '../redux/modules/appointments...
js/components/form/stacked.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Item, Label, Input, Body, Left, Right, Icon, Form, Text } from 'native-base'; import { Actions } from 'react-native-route...
src/components/general/Error.js
Jenny-L/lumohacks2017
/** * Error Screen * <Error text={'Server is down'} /> * * 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'; import Icon from 'react-native-vector-icons/Ionicons'; // Consts and...
packages/react-error-overlay/src/components/CloseButton.js
ro-savage/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { black } from '../styles'; const closeButtonStyle = { color: black, lineHeight: '1re...
src/svg-icons/hardware/tablet.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTablet = (props) => ( <SvgIcon {...props}> <path d="M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2zm-2 14H5V6h14v12z"/> </SvgIcon> ); HardwareTablet = pure(Hardwa...
admin/client/Signin/components/Brand.js
cermati/keystone
/** * Renders a logo, defaulting to the Keystone logo if no brand is specified in * the configuration */ import React from 'react'; const Brand = function (props) { // Default to the KeystoneJS logo let logo = { src: `${Keystone.adminPath}/images/logo.png`, width: 205, height: 68 }; if (props.logo) { // If th...
src/components/AddButton.js
JacksonBates/pair-frontend
import React from 'react'; import { Button, Glyphicon } from 'react-bootstrap'; const AddButton = props => { return ( <Button className='add-button' bsSize="small" onClick={props.open}> <Glyphicon glyph='plus' /> Add </Button> ); }; export default AddButton;
web/static/js/components/app.js
tobyprivett/cavemapper
import React from 'react' import { Link } from 'react-router' export default React.createClass({ render() { return ( <div> <header className="header"> <nav role="navigation"> <ul className="nav nav-pills pull-right"> <li><Link to='/caves/'>Cave Maps</Link></li> ...
src/pages/index.js
kapz/anapaula.art
import React from 'react' import styled from 'styled-components' import Link from 'gatsby-link' import Header from '../components/header' import Footer from '../components/footer' import Slider from '../components/slider' const HomeFooter = styled(Footer)` position: absolute; z-index: 4; left: 50px; bottom: 2...
src/server.js
charesbast/react
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
src/components/providers/Router.js
gribnoysup/diy-dog-search
import React from 'react' import {Link} from '../common/Link' export function dispatchRouteChange(event, href, onClick = () => {}) { onClick(event) if (event.defaultPrevented) return if (event.preventDefault) event.preventDefault() const routeChangeEvent = new CustomEvent('routechange') routeChangeEvent.hr...
src/@ui/ThumbnailCard/index.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { compose, pure, setPropTypes } from 'recompose'; import { startCase, toLower } from 'lodash'; import { withIsLoading } from '@ui/isLoading'; import styled from '@ui/styled'; import Card, { CardContent } from '@ui/Card'; import SideBySideView from '...
example/vds-react/static/js/44.44abb11f.chunk.js
anarh/maze
(this["webpackJsonp@visa/vds-react"]=this["webpackJsonp@visa/vds-react"]||[]).push([[44],{291:function(e,a,t){"use strict";t.r(a);var n=t(144),c=t(0),l=t.n(c),r=t(538),s=t.n(r),o=t(2),i=t.n(o),m=t(544),d=t(543),p=t(39),u=t(8),f=t(532),v=t(18),h=t(23),b=t(16),g=t(530),y=t(64),E=t(531),k=t(533),O=t(534),j=t(535),N=t(536)...
src/svg-icons/av/library-books.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryBooks = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1...
js/src/dapps/dappreg/ModalRegister/modalRegister.js
BSDStudios/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
ui/app/pages/Policies/Policies.js
StamusNetworks/scirius
import React from 'react'; import { Link } from 'ui/helpers/Link'; import UIBreadcrumb from 'ui/components/UIBreadcrumb'; const Policies = () => ( <div> <UIBreadcrumb items={[ 'Stamus ND', <Link app to='stamus-nd/policies'>Policies</Link>, ]} /> Policies </div> ); Policies.m...
src/cms/preview-templates/BlogPostPreview.js
hunterclarke/hunterclarke.me
import React from 'react' import PropTypes from 'prop-types' import { BlogPostTemplate } from '../../templates/blog-post' const BlogPostPreview = ({ entry, widgetFor }) => ( <BlogPostTemplate content={widgetFor('body')} tags={entry.getIn(['data', 'tags'])} title={entry.getIn(['data', 'title'])} /> ) B...
packages/material-ui-icons/src/Palette.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5...
js/CocktailRecipe.js
jimmynono/cocktail-app
import React from 'react' import { Link } from 'react-router' const { shape, string, arrayOf } = React.PropTypes import '../public/stylesheets/components/cocktail-recipe.scss' const CocktailRecipe = React.createClass({ propTypes: { recipe: shape({ sys: shape({ id: string }) }), fields...
app/pages/index/UserDetail/containers/Delete/index.js
czy0729/react-alumni
'use strict'; import React from 'react'; import { ButtonWrap } from 'components'; const Delete = (props) => { const { doDelete } = props; return ( <ButtonWrap> <br /> <p className="text-center text-danger" onClick={() => Utils.onConfirm('确定删除?'...
src/Tooltip.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y'; import { bsClass, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { /** * An html id attribute, necessary for accessibility * @type {st...
src/components/List.js
iRail/datawall
import React, { Component } from 'react'; import styled from 'styled-components'; import icons from '../img/icons'; import { colors, sizes, zIndex } from '../constants'; import ListItem from './ListItem'; const Wrapper = styled.div` width: 100%; height: 100%; background-color: ${colors.black}; color: ${colors...