path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/AppBar/AppBar.js
rscnt/material-ui
import React from 'react'; import IconButton from '../IconButton'; import NavigationMenu from '../svg-icons/navigation/menu'; import Paper from '../Paper'; import propTypes from '../utils/propTypes'; import warning from 'warning'; function getStyles(props, context) { const { appBar, button: { iconButto...
src/layout-v2/main-content/ratings.js
bblassingame/at-home-climate-website
import React from 'react' import RatingsIcon from './ratings-icon.png' import RatingsIconGold from './ratings-icon-gold.png' import RatingsIconGrey from './ratings-icon-grey.png' const Ratings = () => { return ( <div className='mc-sub-panel'> <img className='mc-sub-panel-img' src={RatingsIcon} alt='a star...
src/js/contexts/ResponsiveContext/stories/ResponsiveGrid.js
HewlettPackard/grommet
import React from 'react'; import { deepMerge } from 'grommet/utils'; import { grommet } from 'grommet/themes'; import { Box, Grid, Paragraph, Grommet, ResponsiveContext } from 'grommet'; const customBreakpoints = deepMerge(grommet, { global: { breakpoints: { xsmall: { value: 500, }, ...
src/routes/savoringYourPetAfterPayment/index.js
goldylucks/adamgoldman.me
import React from 'react' import SavoringYourPetAfterPayment from './savoringYourPetAfterPayment' function action({ path }) { return { chunks: ['savoringYourPetAfterPayment'], title: 'Savoring Your Pet - Success', path, description: 'Success page', component: <SavoringYourPetAfterPayment path={p...
src/app/MapPage/LocationButton.js
EsriJapan/photospot-finder
// Copyright (c) 2016 Esri Japan import React from 'react'; import { Glyphicon } from 'react-bootstrap'; class LocationButton extends React.Component { constructor (props) { super(props); } render () { return ( <div className="location-button" onClick={this.props.onClickLocationButton}> ...
src/bloks/Blok/Blok.js
frankydoge/blok
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import '../../blok.css' import Article from './Article' import Container from './Container' import Footer from './Footer' import Header from './Header' import Sidebar from './Sidebar' const Blok = (props) => { const { childr...
sb-admin-seed-react/src/vendor/recharts/demo/component/ScatterChart.js
Gigasz/tropical-bears
import React from 'react'; import { ScatterChart, Scatter, CartesianGrid, Tooltip, Legend, XAxis, YAxis, ZAxis, ReferenceLine, ReferenceDot, ReferenceArea } from 'recharts'; import { changeNumberOfData } from './utils'; const data01 = [ { x: 100, y: 200, z: 200 }, { x: 120, y: 100, z: 260 }, { x: 170, y: 300, z...
SnowyMobile/index.ios.js
alexandradutz/mdevprog-laboratory
/** * 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 SnowyMobile extends Component { render() { return ( <View style={styles.contain...
src/svg-icons/action/remove-shopping-cart.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRemoveShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.8...
src/routes/login/index.js
machix/mm-inventory
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/redux-app/DisplayIfChecked.js
zenria/react-redux-sandbox
// @flow import {connect} from 'react-redux'; import type {State} from './reducers'; import React from 'react'; import DisplayIfCond from '../commons/DisplayIfCond' const mapStateToProps = (state: State) => ({ cond: state.checkboxChecked }) const DisplayIfChecked = connect(mapStateToProps,null)(DisplayIfCond); ex...
techCurriculum/ui/starter_code/cards-app/src/index.js
tadas412/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 in writ...
src/app/components/graphs/inline/EasyPieChart.js
backpackcoder/world-in-flames
import React from 'react' import ReactDOM from 'react-dom' import 'script-loader!smartadmin-plugins/bower_components/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js'; export default class EasyPieChart extends React.Component { componentDidMount() { let $element = $(ReactDOM.findDOMNode(this)); let pr...
src/components/IPScan/NucleotideSummary/index.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import T from 'prop-types'; import Link from 'components/generic/Link'; import Loading from 'components/SimpleCommonComponents/Loading'; import { foundationPartial } from 'styles/foundation'; import fonts from 'EBI-Icon-fonts/fonts.css'; import ebiGlobalStyles from 'ebi-framework/...
native/base.js
joe-sky/nornj-react
import njr from '../lib/core'; import nj, { registerComponent } from 'nornj'; import bindTemplate from '../lib/bindTemplate'; import '../lib/extension/debounce'; import React from 'react'; import { AccessibilityInfo, ActivityIndicator, ART, Button, DatePickerIOS, DrawerLayoutAndroid, FlatList, Image, ...
src/pages/divina-pele.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Divina Pele' /> )
packages/material-ui-icons/src/ArrowDropDown.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ArrowDropDown = props => <SvgIcon {...props}> <path d="M7 10l5 5 5-5z" /> </SvgIcon>; ArrowDropDown = pure(ArrowDropDown); ArrowDropDown.muiName = 'SvgIcon'; export default ArrowDropDown;
src/components/Inspector/Trackers/TrackerGroup.js
Secretmapper/react-transmission
import React from 'react'; import CSSModules from 'react-css-modules'; import { lastAnnounceStatus, getAnnounceState, lastScrapeStatus, } from './services/tracker-stats'; import styles from './styles/index.css'; // NOTE: We're not currently supporting multitracker entries. // See http://www.bittornado.com/docs...
packages/ndla-icons/src/common/Pencil.js
netliferesearch/frontend-packages
/** * Copyright (c) 2017-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT import React from 'react'; import Icon from '../Icon'; const Pencil = props => ( <Icon viewBo...
src/parser/priest/holy/modules/talents/30/AngelsMercy.js
sMteX/WoWAnalyzer
import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import React from 'react'; const DESPERATE_PRAYER_BASE_COOLDOWN = 90000; // Example Log: /report/1bgY6k8ADWJLzjPN/7-Mythic+Taloc+-+Kill+(5:45)/1-C...
docs/src/app/components/pages/components/Drawer/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import drawerReadmeText from './README'; import DrawerSimpleExample from './Exam...
docs/src/pages/demos/lists/CheckboxList.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import List, { ListItem, ListItemSecondaryAction, ListItemText } from 'material-ui/List'; import Checkbox from 'material-ui/Checkbox'; import IconB...
client/src/components/SpeakerPage.js
rantav/reversim-summit-2017
import React from 'react'; import Page from "./Page"; import { Container, Row, Col } from 'reactstrap'; import {getSessionTypeStr} from "../utils"; import heroImg from '../images/speaker.png'; import {Link} from "react-router-dom"; import Tag from './Tag'; import SpeakerShort from "./SpeakerShort"; import { uploadPhoto...
frontend/src/components/NotFound.js
textilemuseum/spinningjenny
import React from 'react' // components import Grid from 'material-ui/Grid' class NotFound extends React.Component { render() { return ( <Grid item xs={12}> <h2>Not Found</h2> </Grid> ) } } export default NotFound
packages/expo-status-bar/build/ExpoStatusBar.android.js
exponent/exponent
import React from 'react'; import { StatusBar } from 'react-native'; import styleToBarStyle from './styleToBarStyle'; import useColorScheme from './useColorScheme'; export default function ExpoStatusBar(props) { const { style, animated, hidden, backgroundColor: backgroundColorProp, translucent: translucentProp, } =...
src/packages/@ncigdc/components/EntityPageVerticalTable.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { Column } from '@ncigdc/uikit/Flex'; import { withTheme } from '@ncigdc/theme'; import Table, { Tr, Td, Th, CollapsibleTd, } from '@ncigdc/uikit/Table'; // th are vertical const EntityPageVerticalTable = ({ style = {}, title, des...
XmppDemo/index.ios.js
aksonov/react-native-xmpp
import React from 'react'; import {AppRegistry} from 'react-native'; import {Router, Switch, Scene} from 'react-native-mobx'; import Conversation from './components/Conversation'; import Login from './components/Login'; import xmpp from './stores/XmppStore'; // Define all routes of the app var XmppDemo = React.createCl...
app/js/App.js
mattbarton/horla
/** * The main component of the app * @module */ import React from 'react'; import _ from 'lodash'; import PlayerControls from './PlayerControls'; import TextReader from './TextReader'; export default class App extends React.Component { constructor(props) { super(props); this.state = { currentTime...
src/index.js
medipass/react-health-card
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styled from 'styled-components'; import _get from 'lodash/get'; import _padEnd from 'lodash/padEnd'; import images from './card-images'; const Attribute = styled.div` ${props => props.attributeS...
docs/src/app/components/pages/components/List/ExampleMessages.js
pomerantsev/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar'; import {grey400, darkBlack, lightBlack} from 'material-ui...
pages/versions/v20.0.0/sdk/app-loading.js
ccheever/expo-docs
import markdown from 'markdown-in-js' import withDoc, { components } from '~/lib/with-doc' import { expoteam } from '~/data/team' import { Code } from '~/components/base/code' // prettier-ignore export default withDoc({ title: 'AppLoading', authors: [expoteam], })(markdown(components)` A React component that tel...
docs/pages/api-docs/expansion-panel-details.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/expansion-panel-details'; const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel-details\.md$/); exp...
components/body.js
volodalexey/spachat
import React from 'react' import switcher_core from '../js/switcher_core.js' import extend_core from '../js/extend_core.js' import Localization from '../js/localization' import utils from '../js/utils' import users_bus from '../js/users_bus' import chats_bus from '../js/chats_bus' import Location_Wrapper from './locat...
src/views/ContractBusiness/Guarantee/ApplyGuarantee.js
bruceli1986/contract-react
import React from 'react' import PageHeader from 'components/PageHeader' import GuaranteeBasicInfo from 'components/GuaranteeBasicInfo' import FileUpload from 'components/FileUpload' import TaskApplyForm from 'components/TaskApplyForm' import formatter from 'utils/formatter.js' class ApplyGuarantee extends React.Compo...
src/js/components/icons/base/PauseFill.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/javascript/mastodon/features/compose/components/autosuggest_account.js
summoners-riftodon/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...
src/entypo/Twitter.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Twitter'; let EntypoTwitter = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M17.316,6.246c0.008,0.162,0.011,0.326,0.011,0.488c0,4.99-3.797,10.742-10.74,10.742c-2.133,0-4.116-0...
app/containers/MessageListItem/index.js
davidnum/chat
import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import Avatar from 'material-ui/Avatar'; import { makeSelectCurrentUser } from '../App/selectors'; import { formatDate } from '../../utils/date'; import ListItem from '../../components/ListItem'; impor...
docs/src/CardsPage.js
jsbranco/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import store from './store'; import Samples from './Samples'; import imageCard from '../../examples/CardImage'; import revealCard from '../....
src/containers/Contact/index.js
bobrown101/tau-tag
import React from 'react'; // import {Link} from 'react-router'; // import Header from '../../components/Header.js'; import Section from '../../components/Section.js'; // import AngledDivider from './AngledDivider.js'; import CursiveHeader from '../../components/CursiveHeader.js'; import CenteredContainer from '../../c...
src/components/footer/Footer.js
jckfa/img.silly.graphics
import React from 'react' import styled from 'styled-components' import Gutters from '../utils/Gutters' import Flexlist from '../utils/Flexlist' import {site} from '../config/vars' const Flex = styled(Flexlist)` justify-content: center; padding-top: 2em; padding-bottom: 2em; ` const Link = styled.a` displa...
client/src/components/shared/Info/Info.js
verejnedigital/verejne.digital
// @flow import React from 'react' import {Container, Row, Col} from 'reactstrap' import {Link, NavLink} from 'react-router-dom' import classnames from 'classnames' import {getNewFinancialData, ShowNumberCurrency} from '../../../services/utilities' import {compose, withHandlers} from 'recompose' import {connect} from ...
src/svg-icons/communication/comment.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationComment = (props) => ( <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Co...
docs/src/app/components/pages/customization/StylesOverridingCssExample.js
mmrtnz/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; const StylesOverridingCssExample = () => ( <Checkbox name="StylesOverridingCssExample" label="Checked the mail" className="styles-overriding-css-example" /> ); export default StylesOverridingCssExample;
src/main.js
mrsudo/mrsudo
import React from 'react'; import { render } from 'react-dom'; import Root from './components/Root'; // Invoke on DOM load, rather than wait for the whole page to be completely // loaded (which may include external assets, ads, etc). // // NOTE DOMContentLoaded isn't supported on IE <= 8. document.addEventListener('D...
Team4of5/src/Team4of5_App/ProjectManagement/react-trello/src/components/Loader.js
Team4Of5/Project
import React from 'react' import {LoaderDiv, LoadingBar} from '../styles/Loader' const Loader = () => ( <LoaderDiv> <LoadingBar /> <LoadingBar /> <LoadingBar /> <LoadingBar /> </LoaderDiv> ) export default Loader
src/svg-icons/device/screen-lock-portrait.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockPortrait = (props) => ( <SvgIcon {...props}> <path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1....
fields/types/datearray/DateArrayFilter.js
pr1ntr/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const PRESENCE_OPTIONS = [ { label: 'At least one element', value: 'some' }, { label: 'No element', value:...
examples/with-rematch/shared/withRematch.js
BlancheXu/test
import React from 'react' import { checkServer } from './utils' import { initializeStore } from './store' const __NEXT_REDUX_STORE__ = '__NEXT_REDUX_STORE__' function getOrCreateStore (initialState) { // Always make a new store if server, otherwise state is shared between requests if (checkServer()) { return...
soft64-quantum/es6/render.js
bryanperris/Soft64
// jshint esversion:6 import $ from 'jquery'; import Main from './Main'; import fs from 'fs'; import path from 'path'; import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import ...
packages/react-error-overlay/src/iframeScript.js
mangomint/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import 'react-app-polyfill/ie9'; import React from 'react'; import ReactDOM from 'react-dom'; import CompileErrorContainer from './conta...
src/shared/components/Products/ProductCategory.js
Grace951/ReactAU
import React from 'react'; const ProductCategory = (props) => ( <div> { (props.children) ? (<div> {React.cloneElement(props.children, props)} </div>) : (<div/>) } </div> ); ProductCategory.propTypes = { children: React.PropTypes.node }; export default ProductCategory;
docs/app/Examples/collections/Grid/Variations/GridExampleTextAlignmentCenter.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Menu } from 'shengnian-ui-react' const GridExampleTextAlignmentCenter = () => ( <Grid textAlign='center' columns={3}> <Grid.Row> <Grid.Column> <Menu fluid vertical> <Menu.Item className='header'>Cats</Menu.Item> </Menu> </Grid.Column>...
src/components/SummonerCard/index.js
dragoncodes/dragon-lol
import React from 'react' import { connect } from 'react-redux' class SummonerCard extends React.Component { static propTypes = { customRender: React.PropTypes.func, summonerIcon: React.PropTypes.string, profileInfo: React.PropTypes.object }; render () { const { customRend...
app/containers/Minna/layout/header.js
oliverox/react99
import React from 'react'; import Alerts from '../misc/alerts'; /** * Layout: Header * * Display the site's header */ export default class Header extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <header id="main-header" className="menubar fixed" {...t...
examples/auth-with-shared-root/app.js
tylermcginnis/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router } from 'react-router' import withExampleBasename from '../withExampleBasename' import routes from './config/routes' render(( <Router history={withExampleBasename(browserHistory, __dirname)} routes={routes} /> ), d...
src/Login.js
aksharora/ReactNativeDemoBasic
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, Button, DatePickerIOS, View, TextInput, Alert, Image, Dimensions, TouchableOpacity, } from 'react-native'; import ApiIntructor ...
src/index.js
namuol/react-transform-boilerplate-es7-initializer-bug
import React from 'react'; import { App } from './App'; React.render(<App />, document.getElementById('root'));
src/pages/HomePage.js
fustic/hubrick-frontend-challenge
import React, { Component } from 'react'; import { connectToStores } from 'fluxible/addons'; import { Paper, DropDownMenu } from 'material-ui'; import ExecuteFlow from '../components/ExecuteFlowComponent'; class HomePage extends Component { constructor(props) { super(props); this.state = { flow: this....
internals/templates/containers/HomePage/index.js
hieubq90/react-boilerplate-3.4.0
/* * HomePage * * This is the first thing users see of our App, at the '/' 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 necessity for you then you can refactor it and remove * the l...
src/js/components/icons/base/InProgress.js
odedre/grommet-final
/** * @description InProgress 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. * ...
app/app.js
trufa/react-chess
/** * 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'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the favicon, the manifest.json file and the .htaccess file import 'file?n...
src/components/KeyManager.js
pyreta/MIDInterceptor-Electron
import React from 'react'; import { notes } from '../constants'; import { mapMajor } from '../constants/scales'; const KeySelect = ({ updateKey, currentKey }) => <div> <select onChange={(e) => updateKey(e.target.value)} value={currentKey}> {notes.map((note, idx) => <option value={note} key={idx}>{not...
lib/ModalFooter/stories/ModalFooterExample.js
folio-org/stripes-components
/** * Modal: With ModalFooter component */ import React from 'react'; import { action } from '@storybook/addon-actions'; import ModalFooter from '../ModalFooter'; import Modal from '../../Modal'; import Button from '../../Button'; export default () => { const footer = ( <ModalFooter> <Button but...
app/addons/documents/sidebar/components/DesignDocList.js
michellephung/couchdb-fauxton
// 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 writing, software // distributed un...
src/app/components/FormPopup/Input.js
Krekotun/seat-booking
import React from 'react'; function Input(props) { const { input, type, label, meta: {touched, error} } = props let klass = touched && error ? '-error' : '' return ( <label> <input type={ type } {...input} placeholder={ label } className={ klass } /> {/* { touched && (error && <span>{ err...
fields/types/Field.js
codevlabs/keystone
import classnames from 'classnames'; import evalDependsOn from '../utils/evalDependsOn.js'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, FormField, FormInput, FormNote } from 'elemental'; import blacklist from 'blacklist'; function isObject(arg) { return Object.prototype.toString.call...
src/List/ListItemContent.js
tleunen/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from '../Icon'; const propTypes = { avatar: PropTypes.oneOfType([ PropTypes.string, PropTypes.element ]), children: PropTypes.node, className: PropTypes.string, icon: Prop...
app/components/Dashboard/NewSearch.js
pacmessica/hackathon-frontend
import PropTypes from 'prop-types'; import React from 'react'; import styles from './NewSearch.scss'; export const NewSearch = ({value, onUpdate, onSubmit}) => { return ( <div className={styles.container}> <h1>Search Posts</h1> <div className={styles.box}> <div class...
addons/docs/src/frameworks/react/__testfixtures__/js-function-component/input.js
storybooks/storybook
import React from 'react'; import PropTypes from 'prop-types'; import { imported } from '../imported'; const local = 'local-value'; /** * A component that renders its props */ export const PropsWriter = (props) => <pre>{JSON.stringify(props)}</pre>; PropsWriter.propTypes = { numberRequired: PropTypes.number.isR...
src/routes/chart/Container.js
cuijiaxu/react-front
import React from 'react' import PropTypes from 'prop-types' import styles from './Container.less' import { ResponsiveContainer } from 'recharts' const Container = ({ children, ratio = 5 / 2, minHeight = 250, maxHeight = 350 }) => <div className={styles.container} style={{ minHeight, maxHeight }}> <div style={{ marg...
src/toolPages/tabHistorySidebar.js
kura52/sushi-browser
window.debug = require('debug')('info') import process from './process' import React from 'react'; import ReactDOM from 'react-dom'; import App from './tabHistoryBase'; import '../defaultExtension/contentscript' require('./themeForPage')('themeTabHistorySidebar') ReactDOM.render( <App sidebar={true}/>, document....
docs/src/pages/components/tooltips/CustomizedTooltips.js
lgollut/material-ui
import React from 'react'; import { withStyles, makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Tooltip from '@material-ui/core/Tooltip'; import Typography from '@material-ui/core/Typography'; const LightTooltip = withStyles((theme) => ({ tooltip: { backgroundC...
src/bundles/ApplicationsAdmin/components/AdminReports/AdminReports.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import { connect } from 'react-redux' import AUbutton from '@gov.au/buttons/lib/js/react.js' import AUheading from '@gov.au/headings/lib/js/react.js' import { AUradio } from '@gov.au/control-input' import { downloadReport } from '../../redux/modules/report' import styles from './AdminReports...
src/components/Footer/Footer.js
jzhang300/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import Link from '../Link'; import Button from '../Button'; const Footer = ({ className, children, labelOne, linkTextOne, linkHrefOne, labelTwo, linkTextTwo, linkHrefTwo, buttonText, ...other }) => {...
client/src/components/addFriends.js
CharismaticChard/CharismaticChard
import React from 'react'; import { Button, Modal, Table, Form, FormGroup, FormControl, Col, ControlLabel } from 'react-bootstrap'; import AddFriendsByUserButton from './addFriendsByUser.js'; import { connect } from 'react-redux'; import { PhoneNumberUtil, PhoneNumberFormat } from 'google-libphonenumber'; import { addD...
website/src/components/grid.js
explosion/spaCy
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import classes from '../styles/grid.module.sass' export default function Grid({ cols = 1, narrow = false, gutterBottom = true, className, style, children, }) { const gridClassNames = classNames...
app/components/BottomNavigationItem/view.js
kelsonic/react-redux-material-ui-boilerplate
/** * * BottomNavigationItem view * */ import React from 'react'; import { BottomNavigationItem } from 'material-ui/BottomNavigation'; export default function render() { return ( <BottomNavigationItem label={this.props.label} icon={this.props.icon} onTouchTap={this.props.onTouchTap} /> )...
src/navigators/TabNavigator.js
kkamperschroer/react-navigation
/* @flow */ import React from 'react'; import { Platform } from 'react-native'; import createNavigator from './createNavigator'; import createNavigationContainer from '../createNavigationContainer'; import TabRouter from '../routers/TabRouter'; import TabView from '../views/TabView/TabView'; import type { TabViewCon...
src/Project.js
mikadamsterdam/react_for_project
import React from 'react'; import { Link } from 'react-router'; class Project extends React.Component { constructor(){ super(); } componentDidMount() { console.log(data); this.setState({ id: this.props.id, name: this.props.name, goal: this.props.goal, }); } render(){ ...
frontend/pages/swe/week-9.js
souvik1997/website
import React from 'react'; import Link from 'next/link'; import Head from '../../components/head'; import BlogPost, { CodeBlock } from '../../components/swe-blog'; import { Container, Nav, NavItem, NavLink, Row, Col } from 'reactstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; const pickOfTheWeek = ( <div> ...
src/components/Footer.js
suranartnc/react-tutorial
import React from 'react'; export default function() { return ( <div> Footer </div> ); }
demo-react-redux-async/src/component/login/view.js
renhongl/Summary
import React from 'react'; export default class Login extends React.Component { constructor(props) { super(props); } onClick = () => { this.props.updateLogin(); } render() { const { login } = this.props; return ( <div> <div>{JSON.st...
demo/snippets/demo3/00_shell.js
simonswiss/react-music
import React, { Component } from 'react'; import Mousetrap from 'mousetrap' /* ############################ */ /* ##### initial state ##### */ /* ############################ */ import { STATE } from './snippets/demo3/data/state' /* ############################ */ /* ##### instrument steps ##### */ /* ############...
examples/universal/server/server.js
gajus/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path' import Express from 'express' import qs from 'qs' import webpack from 'webpack' import webpackDevMiddleware from 'webpack-dev-middleware' import webpackHotMiddleware from 'webpack-hot-middleware' import webpackConfig from '../webpack.config...
src/index.js
balaclark/jayaprabhupada-web
import React from 'react' import { render } from 'react-dom' import { Router, Route, browserHistory, Redirect } from 'react-router' import NotFound from './components/not-found' import AudioContainer from './components/audio-container' render(( <Router history={browserHistory}> <Redirect path='/' to='/radio/kirt...
app/component/mainItem.js
Juice4213/GZHReactNativeDemo
/** * Created by tompda on 2017/2/5. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, PixelRatio, } from 'react-native'; export default class mainItem extends ...
docs/app/Examples/modules/Embed/Types/index.js
vageeshb/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const EmbedTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample ...
step7-flux/node_modules/react-router/modules/RouterContext.js
jintoppy/react-training
import invariant from 'invariant' import React from 'react' import deprecateObjectProperties from './deprecateObjectProperties' import getRouteParams from './getRouteParams' import { isReactChildren } from './RouteUtils' import warning from './routerWarning' const { array, func, object } = React.PropTypes /** * A <...
src/components/Posts/index.js
uppermanis/react-course
/* global document */ import React from 'react'; import uuid from 'uuid'; // Декоратор, нужен для того чтобы в нашем компоненте была возможность использовать функции роутера. import { withRouter } from 'react-router'; // Функция connect является связующим между компонентом и store из redux, // эта функция принимает ...
src/index.js
notaurologist/jasonlemoine.com
import React from 'react'; import ReactDOM from 'react-dom'; import {install} from 'offline-plugin/runtime'; install(); import {Router, Route, IndexRedirect, Redirect, browserHistory} from 'react-router'; import App from './components/App'; import About from './components/About/About'; import Contact from './components...
src/components/header.js
ninalouw/portfolio
import React, { Component } from 'react'; import { Link } from 'react-router'; import {Row, Col} from 'react-materialize'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation...
src/components/projects/content/Halo4.js
tehfailsafe/portfolioReact
import React from 'react'; import Section from '../show/Section' import CopySplitLeft from '../show/CopySplitLeft' import CopySplitRight from '../show/CopySplitRight' import Copy from '../show/Copy' import ImageFull from '../show/ImageFull' import VideoPlayer from '../show/VideoPlayer' export default React.createClas...
UI/app/components/ThreatModeler.js
Acheron-VAF/Acheron
// @flow import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styles from './Home.css'; type Props = { increment: () => void, incrementIfOdd: () => void, incrementAsync: () => void, decrement: () => void, counter: number }; export default class PageTemplate extends Comp...
fields/types/datetime/DatetimeField.js
tanbo800/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'DatetimeField', focusTargetRef: 'dateInput', // d...
_app/src/site/_ums.js
oicr-webdev/oicr-webdev.github.io
/* global document, window UMS_CONFIG */ import React from 'react'; import ReactDOM from 'react-dom'; import { Router, hashHistory } from 'react-router'; import { Publications, Core, UMS, Provider as CoreProvider, } from 'oicr-ui-core'; import UserDashboard from './modules/UserDashboard'; // Load store...
scripts/App.js
jamieholliday/scrum-poker
'use strict'; import React from 'react'; import Cards from './Cards'; import Observer from './Observer'; import Firebase from 'firebase'; require('../styles/app'); var App = React.createClass({ componentWillMount () { this.firebaseRef = new Firebase('https://react-poker.firebaseio.com/app'); this.firebaseRef.on...
src/routes/documentarchive/index.js
murthymuddu/murthy-umg
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../c...
react-native/Community_App/src/index.js
Nygma297/_CommunityProject
import React from 'react' import { Provider } from 'react-redux' import createStore from './store/create' import Router from './scenes' const Kernel = () => ( <Provider store={createStore(data)}> <Router /> </Provider> ) export default Kernel
src/components/DoubleContentBrick/index.js
line64/landricks-components
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './styles'; import { ThemePropagator, GenericBrick } from '../../'; import { LandricksPropTypes } from '../../conventions'; class DoubleContentBrick extends Component { renderFirstContent(firstChild, parentStyles, paren...