path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/Popup/PopupElement.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; class PopupElement extends React.Component { componentDidMount() { this.props.didMount(this._popupElement); } componentWillUnmount() { this.props.onUnmount(); } render() { let attrForType = this.context.parentT...
app/src/modules/User/components/TestComp/TestComp.js
betofigueiredo/homelibraries.org
import React from 'react'; // CSS import CSSModules from 'react-css-modules'; import styles from './style.module.sass'; const TestComp = () => ( <div className="grid-container full" data-test="mybooks-render"> <div className="grid-x"> <div className="medium-12 cell"> <div styleName="top-bar">TestComp</div> ...
src/pages/tags.js
aberkow/gatsby-blog
import React from 'react'; import Link from 'gatsby-link'; import { BlogPostContent, BlogPostContainer, TagList } from '../utils/styles'; import { arrayReducer } from '../utils/helpers'; export default function TagsPage({ data }) { const { edges: posts } = data.allMarkdownRemark; const tagsArray = arrayReducer(...
src/js/routes.js
Chandransh/hackerearth-challenge-page
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import Home from './containers/Home/Home'; import ChallengePage from './connect-views/ChallengePage/ChallengePage'; import NotFoundView from './static-views/NotFoundView/NotFoundView'; export default ( <Route path="/" component={Home}> <...
packages/material-ui-icons/src/Landscape.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Landscape = props => <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z" /> </SvgIcon>; Landscape = pure(Landscape); Landscape.muiName = 'SvgIcon'; export ...
app/javascript/mastodon/features/ui/components/column.js
increments/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
src/components/ShareExperience/InterviewStepsForm/BasicInfo/index.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import subscribeValidation from 'common/subscribeValidation'; import Block from 'common/Block'; import { companyQuery as companyQueryValidator, jobTitle as jobTitleValidator, region as regionValidator, } from '../formCheck'; import CompanyQuery from...
src/index.js
jmikrut/keen-2017
import React from 'react'; import { hydrate, render } from 'react-dom'; import { Provider } from 'react-redux'; import { BrowserRouter as Router } from 'react-router-dom'; import store from './store'; import App from './components/App'; const rootElement = document.getElementById('root'); const Index = () => { retu...
addons/ondevice-knobs/src/types/Number.js
storybooks/react-storybook
import PropTypes from 'prop-types'; import React from 'react'; import { View, Slider } from 'react-native'; import styled from '@emotion/native'; const Input = styled.TextInput(({ theme }) => ({ borderWidth: 1, borderColor: theme.borderColor, borderRadius: 2, fontSize: 13, padding: 5, color: theme.labelCol...
src/editors/DateEditor.js
diogofcunha/react-data-grid-extensions
import React from 'react'; import PropTypes from 'prop-types'; import DayPicker from 'react-day-picker'; import editorWrapper from './editorWrapper'; import "react-day-picker/lib/style.css" const DATE_TYPES = { Object: 0, string: 1 }; const isDate = date => date instanceof Date; const parseStringToDate = value ...
src/pages/articlesPage.js
MartinP-C/my-site
import React from 'react'; import ReactDom from 'react-dom'; import PageHeading from '../components/PageHeading'; import Article from '../components/Article'; import {articles} from '../cms/content.json'; let article; const articlesBuilt = []; articles.sort((a, b) => { return Date.parse(b.date) > Date.parse(a.da...
src/components/Footer/Footer.js
Perspicere/PerspicereMagazine
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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' i...
src/containers/Charts/recharts/charts/simpleBarChart.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; export default class extends Component { render() { const { datas, width, height, colors } = this.props; return (<div className="isoChartWrapper"> <BarChart width={width} heig...
src/pages/404.js
meherranjan/aerosailor
import React from 'react' import Layout from '../components/layout/default' import SEO from '../components/includes/seo' const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export defaul...
app/scripts/Widget/createRoutes.js
igr-santos/bonde-client
import React from 'react' import { Route } from 'react-router' import { SettingsContainer } from './containers' import { DonationWidgetSettings, ExportWidgetData } from '../pages' import { AutoFireFormPage } from './settings' import { createRoutes as matchCreateRoutes } from './plugins/Match' import { createR...
packages/icons/src/md/notification/Adb.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdAdb(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M10 31.11c0 7.73 6.27 14 14 14s14-6.27 14-14v-8H10v8zM32.25 7.85C35.72 10.39 38 14.47 38 19.11v2H10v-2c0-4.64 2.28-8.72 5.75-11.26l-4.2-4.2L13.2 2l4.61 4...
client/Slides/TimeTravel.js
Dean177/jumpy-bird-react-demo
import React, { Component } from 'react'; export default class TimeTravel extends Component { render() { return ( <div className="text-slide"> <a href="https://github.com/gaearon/redux-devtools" target="_blank">Redux dev tools</a> & <a href="https://www.youtube.com/watch?v=xsSnOQynTHs" target="_bla...
src/index.js
oh-my-github/registry
import React from 'react' import ReactDOM from 'react-dom' import { Provider, } from 'react-redux' import { Router, browserHistory, } from 'react-router' import routes from './routes' import configureStore from './store/configureStore' /** initialize */ import injectTapEventPlugin from 'react-tap-event-plugin' injectT...
examples/nested_reused_components/src/index.js
MrEfrem/redux-fly
//@flow import React from 'react' import ReactDOM from 'react-dom' import { createStore, compose } from 'redux' import { Provider } from 'react-redux' import { enhanceStore } from 'redux-fly' import Layout from './containers/page/Layout' const composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOL...
docs/app/Examples/behaviors/Visibility/Wireframe.js
shengnian/shengnian-ui-react
import React from 'react' import { Divider, Image, Segment } from 'shengnian-ui-react' export default () => ( <Segment> <Image src='/assets/images/wireframe/centered-paragraph.png' /> <Divider /> <Image src='/assets/images/wireframe/short-paragraph.png' /> <Divider /> <Image src='/assets/images/w...
draft-js-emoji-plugin/src/components/Emoji/index.js
koaninc/draft-js-plugins
import React from 'react'; import unionClassNames from 'union-class-names'; import emojione from 'emojione'; const Emoji = ({ theme = {}, cacheBustParam, imagePath, imageType, className, decoratedText, ...props }) => { const shortName = emojione.toShort(decoratedText); // short name to image url code steal from em...
plugins/Files/js/components/app.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' import FileBrowser from '../containers/filebrowser.js' import AllowanceDialog from '../containers/allowancedialog.js' const FilesApp = ({ showAllowanceDialog }) => ( <div className='app'> {showAllowanceDialog ? <AllowanceDialog /> : null} <FileBrow...
test/fixtures/case6/input.js
kadirahq/babel-plugin-react-docgen
import React from 'react'; export function hoc (Inner) { const C1 = (props) => <ActualC1 {...props} /> const C2 = (props) => <ActualC2 {...props} /> return { C1, C2 } } class ActualC1 extends React.Component { render() { return <div/> } } class ActualC2 extends React.Component { render() { return ...
src/shared/components/login/login.js
hollomancer/operationcode_frontend
import React, { Component } from 'react'; import getVal from 'lodash/get'; import axios from 'axios'; import config from 'config/environment'; import PropTypes from 'prop-types'; import queryString from 'query-string'; import { Link } from 'react-router-dom'; import Form from 'shared/components/form/form'; import FormB...
example/Header/index.js
antonKalinin/react-json-graph
import React from 'react'; import styles from './header.css'; export default () => ( <div> <div className={styles.title}>React Json Graph</div> <div className={styles.description}> React component for visualizing graphs and networks </div> <ul className={styles.instructi...
src/app/routes/ui/containers/icons/Glyphicons.js
backpackcoder/world-in-flames
import React from 'react' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../../components' export default class Glyphicons extends React.Component { state = { search: '' }; shouldComponentUpdate(nextProps, nextState) { if (this.state.search != nextState.search) { let $conta...
src/components/CoverInfo.js
amaralflavio/cmovies
import React from 'react'; import styled from 'styled-components'; import Text from './Text'; import Title from './Title'; import DetailList from './DetailList'; import Button from './Button'; const CoverInfo = (props) => { const {poster_path, title, overview, vote_average, adult, release_date, id} = props.data;...
consoles/my-joy-templates/src/mocks/theme.js
yldio/joyent-portal
import React from 'react'; import { ThemeProvider } from 'styled-components'; import { theme, RootContainer, PageContainer, ViewContainer } from 'joyent-ui-toolkit'; export default ({ children, ss }) => ( <ThemeProvider theme={theme}> {ss ? ( <RootContainer> <PageContainer> <View...
src/shared/components/navbar/NavTab.js
sbekti/path-web-client
import React from 'react' import { Link, IndexLink } from 'react-router' class NavTab extends React.Component { constructor(props) { super(props) } render() { const isActive = this.context.router.isActive(this.props.to, this.props.onlyActiveOnIndex) const LinkComponent = this.props.onlyActiveOnInde...
boilerplates/app/src/routes/dashboard/components/cpu.js
hexagonframework/antd-admin-cli
import React from 'react' import PropTypes from 'prop-types' import CountUp from 'react-countup' import { LineChart, Line, XAxis, YAxis, CartesianGrid, ResponsiveContainer } from 'recharts' import styles from './cpu.less' import { color } from '../../../utils' const countUpProps = { start: 0, duration: 2.75, use...
app/javascript/mastodon/components/status.js
rutan/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import RelativeTimestamp from './relative_timestamp'; import DisplayName from './display_name'; import StatusContent fro...
src/client/react/admin/views/FeedView/StoryCreate.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import autobind from 'core-decorators/es/autobind'; import { graphql } from 'react-apollo'; import { Button, Intent, Dialog, Icon } from '@blueprintjs/core'; import MarkdownEditor from '../../../../../../lib/react/components/MarkdownEditor'; import { create...
admin/src/components/PopoutBody.js
wustxing/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, scrollable: React.PropTypes.bool, }, render () { let className = classnames('Popout__body'...
client/src/App.js
jlcanela/facebook-friends
/* eslint-disable no-unused-vars */ import React from 'react' import Layout from './Layout' import { Col, Table, Button } from 'react-bootstrap' import { connect } from 'react-redux' import { fetchData, setAdmin } from './actions' import './App.css' /* eslint-enable no-unused-vars */ const Header = ({ columns }) => (...
src/main/resources/app/scripts/app.js
pgrimard/spark-react-es6
import React from 'react'; import HelloWorld from './components/helloworld'; React.render(<HelloWorld/>, document.body);
Js/Core/Lib/Auth/index.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; class Auth { constructor() { this.loginRoute = 'Login'; this.forbiddenRoute = 'Forbidden'; this.routerEvent = null; } init() { Webiny.Router.addRoute(new Webiny.Route(this.loginRoute, '/login', ...
app/containers/App/index.js
dcarneiro/my-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...
node_modules/case-sensitive-paths-webpack-plugin/demo/src/init.js
marsinearth/decisionmaker
import AppRoot from './AppRoot.component.js'; import React from 'react'; import ReactDOM from 'react-dom'; const app = { initialize() { ReactDOM.render(<AppRoot/>, document.getElementById('react-app-hook')); } }; app.initialize();
react/src/components/dashboard/settings/settings.appSettingsPanel.js
pbca26/EasyDEX-GUI
import React from 'react'; import { connect } from 'react-redux'; import ReactTooltip from 'react-tooltip'; import translate from '../../../translate/translate'; import Config from '../../../config'; import { getAppConfig, getAppInfo, resetAppConfig, resetSPVCache, saveAppConfig, skipFullDashboardUpdate, ...
react-swipeable/src/index.js
kimown/gist
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import SimpleSlider from './SimpleSlider' import './index.css'; ReactDOM.render( <SimpleSlider />, document.getElementById('root') );
src/svg-icons/places/kitchen.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesKitchen = (props) => ( <SvgIcon {...props}> <path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/> ...
src/components/common/hocs/PeriodicContent.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import MenuItem from '@material-ui/core/MenuItem'; import ActionMenu from '../ActionMenu'; import { calculateTimePeriods, PAST_WEEK, PAST_MONTH, PAST_YEAR, PAST_ALL } from '../../../lib/dateUtil'; ...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
RobertKielty/react-router
import React from 'react'; class Assignment extends React.Component { render () { var { courseId, assignmentId } = this.props.params; var { title, body } = COURSES[courseId].assignments[assignmentId] return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } export d...
src/js/components/Grid/stories/NColumn.js
HewlettPackard/grommet
import React from 'react'; import { Grommet, Box, Grid } from 'grommet'; import { grommet } from 'grommet/themes'; export const NColumnGrid = () => ( <Grommet theme={grommet} full> <Grid columns={{ count: 6, size: 'auto', }} gap="small" > <Box background="brand">Item ...
src/routes/dashboard/components/numberCard.js
miaoji/guojibackend
import React from 'react' import PropTypes from 'prop-types' import { Icon, Card } from 'antd' import CountUp from 'react-countup' import styles from './numberCard.less' function NumberCard ({ icon, color, title, number, countUp }) { return ( <Card className={styles.numberCard} bordered={false} bodyStyle={{ padd...
app/javascript/mastodon/components/relative_timestamp.js
koba-lab/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ today: { id: 'relative_time.today', defaultMessage: 'today' }, just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, just_now_full: { id: 'relativ...
src/interface/icons/Megaphone.js
yajinni/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/term/megaphone/1399378/ // Created by Jony from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}> <path d="M77.2,7c-3.5,0-6.4,2.4-7.1,5.8L28.7,27.7H14.8c-4.4,0-8,3.6...
src/svg-icons/notification/adb.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAdb = (props) => ( <SvgIcon {...props}> <path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14...
src/components/forging/delegateStats.js
slaweet/lisk-nano
import React from 'react'; import { Card, CardText } from 'react-toolbox/lib/card'; import CircularProgressbar from 'react-circular-progressbar'; import grid from 'flexboxgrid/dist/flexboxgrid.css'; import { translate } from 'react-i18next'; import style from './forging.css'; const identity = x => (x); const addPercen...
BoBoClient/app/pages/Record.js
lan-xue-xing/BoBo
/** * Created by Administrator on 2016/11/6. */ import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import p from '../utils/TransForm'; export default class Record extends Component { render() { return ( <View style={styles.container}...
src/main.js
viltsu/FDB
/** * App entry point */ // Polyfill import 'babel-polyfill'; // Libraries import React from 'react'; import ReactDOM from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { Provider } from 'react-redux' import configureStore from './store' // Routes import Routes from './common/component...
packages/material-ui-icons/legacy/CellWifiSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M6 22h16V5.97L6 22z" /><path d="M18 9.98L6 22h12V9.98zM3.93 5.93l1.29 1.29c3.19-3.19 8.38-3.19 11.57 0l1.29-1.29c-3.91-3.91-10.25-3.91-14.15 0zm5.14 5.14L11 13l1.93-1....
tests/react_children/text.js
AgentME/flow
// @flow import React from 'react'; class Text extends React.Component<{children: string}, void> {} class TextOptional extends React.Component<{children?: string}, void> {} class TextLiteral extends React.Component<{children: 'foo' | 'bar'}, void> {} <Text />; // Error: `children` is required. <TextOptional />; // O...
server/react/components/AddEdit.js
ryordanov/hobby-collection
import React from 'react'; import PropTypes from 'prop-types'; import { Button, FormGroup, FormControl, ControlLabel, Alert } from 'react-bootstrap'; import { Link /*, withRouter */ } from 'react-router-dom'; import { getRequestToAPI, postRequestToAPI, buildUrl, concatQueryParams, setNestedValue } from '../utils'; imp...
src/PaginationButton.js
lo1tuma/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { className: React.PropTypes.string, eventKey: Rea...
node_modules/react-router/es/RouterContext.js
saltypaul/SnipTodo
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; }; var _typeof = typeof Symbol === "function" && typeof Symbol.i...
examples/page-transitions/pages/_document.js
giacomorebonato/next.js
import React from 'react' import Document, { Head, Main, NextScript } from 'next/document' // --------------------------------------------- export default class CustomDocument extends Document { render () { return (<html lang='en-US'> <Head> <meta name='viewport' content='width=device-width, initi...
src/examples/cats/app.js
c00kiemon5ter/react-image-lightbox
import React from 'react'; import ReactDOM from 'react-dom'; import Lightbox from '../../react-image-lightbox'; import styles from './stylesheets/app.scss'; import image1 from './images/1.jpg'; import image2 from './images/2.jpg'; import image3 from './images/3.jpg'; import image4 from './images/4.jpg'; import image1T...
frontend/src/components/Main/Main.js
VitaC123/youTubeMixTape
import React, { Component } from 'react'; import { Route, Switch } from 'react-router-dom'; import FadeIn from '../helper/FadeIn'; import Navigation from './Navigation'; import Home from '../Home/Home'; import NoResults from '../Home/NoResults'; import Artists from '../Artists/Artists'; import Player from '../Player/P...
src/lib/withProps.js
yeojz/react-form-addons
// @flow import React from 'react'; import createSyntheticFormEvent from '../utils/createSyntheticFormEvent'; import getDataFromKey from '../utils/getDataFromKey'; import updateObjectData from '../utils/updateObjectData'; type Props = { formData: Object, formMeta: Object, onChange: Function }; const handleToggl...
src/components/ExampleComponent.js
ambershen/ambershen.github.io
import React from 'react'; import Interactive from 'react-interactive'; import { Switch, Route, Link } from 'react-router-dom'; import ExampleTwoDeepComponent from './ExampleTwoDeepComponent'; import PageNotFound from './PageNotFound'; import s from '../styles/exampleComponent.style'; const ExamplePageText = () => ( ...
client/scripts/components/user/entities/new-entity-button/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
test/mocks/FooComponent.js
fustic/hubrick-frontend-challenge
import React from 'react'; class FooComponent extends React.Component { render() { return <div />; } } export default FooComponent;
src/components/FilterBySearch.js
bjacobel/cabinet
import React, { Component } from 'react'; import { filterBox, filter, filterHint, filterLabel } from '../stylesheets/filterBySearch.css'; export default class FilterbySearch extends Component { render() { return ( <div className={ filterBox }> <label htmlFor="filter-input" className={ filterLabel ...
docs/app/Examples/collections/Breadcrumb/Content/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const BreadcrumbContentExamples = () => ( <div> <ExampleSection title='Content'> <ComponentExample title='Divider' ...
src/components/GridVideoTile.js
lishiyo/listentothis
/** Presentational component to render a single embed, given id, URL, title, and author (author). props: { id: '3ybh3d', title: 'Hello', author: 'AdeleFan', iframeData: <iframe src='http://..' width='350' height='250' ../> iframeReadyCb: function } **/ import React from 'react' import GridTile from 'materi...
src/containers/App.js
FRCTools/Attendance-Client
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import firebase from 'firebase'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import { purple400 }...
packages/cf-component-tabs/src/TabsPanel.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; const styles = ({ theme }) => ({ backgroundColor: theme.backgroundColor }); class TabsPanel extends React.Component { render() { const selected = this.context.active === this.props.id; ret...
test/integration/image-component/base-path/pages/missing-src.js
JeromeFitz/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <Image width={200}></Image> </div> ) } export default Page
examples/basic/simple_usage/modal.js
rackt/react-modal
import React from 'react'; import Modal from 'react-modal'; export default props => { const { title, isOpen, askToClose, onAfterOpen, onRequestClose, onChangeInput } = props; return ( <Modal id="test" contentLabel="modalA" closeTimeoutMS={150} isOpen={isOpen} onAfterOpe...
examples/react-redux-example/app/async/index.js
demones/react-guide
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider>, document.getElementById('layou...
app/components/Feed/FeedEntryPlaceholder.js
yenbekbay/filmstrip-web
/* @flow */ import {css, keyframes} from 'glamor'; import React from 'react'; import {breakpoints, t} from '../../styles'; const loaderAnimation = keyframes({ '0%': {backgroundPosition: '-700px 0'}, '100%': {backgroundPosition: '800px 0'}, }); const styles = { container: css({ ...t.br2, ...t.mt2, ...
src/components/CartInfoPane.js
longyarnz/WelFurnish-E-Commerce
import React, { Component } from 'react'; export default class CartInfoPane extends Component { constructor(props) { super(props); } render() { return ( <div className="cart-info"> <i className="" /> <span>{this.props.content}</span> </div> ); } }
server/sonar-web/src/main/js/apps/overview/gate/gate.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
examples/official-storybook/stories/addon-a11y.stories.js
rhalff/storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { setOptions } from '@storybook/addon-options'; import { checkA11y } from '@storybook/addon-a11y'; import BaseButton from '../components/BaseButton'; import DelayedRender from '../components/DelayedRender'; const text = 'Testing the a11y ...
client/components/Todo/TodoContainer.js
marcocom/portfolio-react-webpack2
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import './todo.less'; import Todo from './Todo'; export default class TodoContainer extends Component { static propTypes = { id: PropTypes.number.isRequired, text: PropTypes.string.isRequired, compl...
src/helpers/connectData.js
ThatCheck/ReactProjectRaspberrySchool
import React, { Component } from 'react'; import hoistStatics from 'hoist-non-react-statics'; /* Note: When this decorator is used, it MUST be the first (outermost) decorator. Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods. */ export default function connectData(fetchData, fe...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/MediaHeading.js
Akkuma/npm-cache-benchmark
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/app/Examples/addons/Responsive/Types/ResponsiveExampleMinWidth.js
shengnian/shengnian-ui-react
import React from 'react' import { Responsive, Segment } from 'shengnian-ui-react' const ResponsiveExampleMinWidth = () => ( <Segment.Group> <Responsive as={Segment} minWidth={768}> Visible only if display has <code>768px</code> width and higher </Responsive> <Responsive as={Segment} minWidth={992}...
webpack/components/NewTemplateSync/components/TextButtonField/CheckboxField.js
theforeman/foreman_templates
import React from 'react'; import { Checkbox } from 'patternfly-react'; import PropTypes from 'prop-types'; const CheckboxField = ({ input, item, disabled }) => ( <Checkbox {...input} disabled={disabled} checked={input.value} /> ); CheckboxField.propTypes = { input: PropTypes.object.isRequired, item: PropTypes....
server/sonar-web/src/main/js/apps/account/components/GlobalNotifications.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import AvatarOverlay from '../../../components/avatar_overlay'; import DisplayNam...
app/components/Editor/TabUploadPost.js
dvm4078/dvm-blog
import React from 'react'; import PropTypes from 'prop-types'; import { Editor } from 'react-draft-wysiwyg'; export default class TabUploadPost extends React.Component { static propTypes = { state: PropTypes.object, onEditorStateChange: PropTypes.func, uploadImageCallBack: PropTypes.func, toggleChang...
js/ShowCard.js
takivlasakakis/complete-intro-to-react-v2
import React from 'react' import { Link } from 'react-router' const { string } = React.PropTypes const ShowCard = React.createClass({ propTypes: {//what i expect to get from my parent poster: string.isRequired, title: string.isRequired, year: string.isRequired, description: string.isRequired, imd...
src/app.js
jsconfcn/ningjs
import React from 'react' import ReactDOM from 'react-dom' import Index from 'Components/pages/Index' import Home from 'Components/pages/Home' import Speakers from 'Components/pages/Speakers' import Sponsors from 'Components/pages/Sponsors' import Coc from 'Components/pages/Coc' import Videos from 'Components/pages/Vid...
app/containers/App/index.js
iPhaeton/Selectors-study
/** * * App * * 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) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'components/Header'; import F...
src/svg-icons/content/redo.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
src/components/Login.js
Phizzard/Reactbase-cms
import React, { Component } from 'react'; import Authentication from '../controllers/Authentication'; import {Card, CardActions, CardTitle, TextField, RaisedButton } from 'material-ui'; export default class Login extends Component { render(){ const inputStyle = { display: 'block' ...
form/views/EmailFieldView.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import {html} from 'components'; import FieldWrapper from './FieldWrapper'; const bem = html.bem('EmailFieldView'); export default class EmailFieldView extends React.Component { static propTypes = { className: PropTypes.string, input...
V2-Node/esquenta.v2/UI/src/views/Widgets/Widget03.js
leandrocristovao/esquenta
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules } from 'reactstrap/lib/utils'; const propTypes = { children: PropTypes.node, className: PropTypes.string, cssModule: PropTypes.object, dataBox: PropTypes.func, }; const d...
src/svg-icons/image/vignette.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageVignette = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/> </SvgIcon>...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
fhchina/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstant...
src/app/controllers/Moon.js
mazahell/eve-react-app
import React from 'react' import {connect} from 'react-redux' import {unmountMoon, getScheme, updFalse, updPrice, recalculate} from '../actions/moonActions' import {setHead} from '../actions/appActions' import {map} from 'lodash' // components import TableResourses from './../components/resourses/moon/Tables' import C...
imports/ui/pages/Login.js
themeteorchef/base
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import handleLogin from '../../modules/login'; export default class Login extends React.Component { componentDidMount() { handleLogin({ component: this }); }...
src/client/components/UserMenuWidget/UserMenuWidget.js
trippian/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' import store from '../../redux/store' import { FormattedMessage } from 'react-intl' const UserMenuWidget = ({ displayName, isAdmin, picture, isAuthed }) => { // const { // } = store.getState().appState.get('user') r...
client/src/components/Draft/DraftTeamList.js
BDiuguid/fantasy-fifa
import React from 'react'; import styled from 'styled-components'; const Flex = styled.div` display: flex; `; const Container = styled.div` padding: ${props => props.theme.spacing}px; width: 200px; line-height: 1.5; `; const SpaceBetween = styled.div` display: flex; justify-content: space-between; `; co...
docs/build.js
dozoisch/react-bootstrap
/* eslint no-console: 0 */ import fsp from 'fs-promise'; import path from 'path'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import {match, RouterContext} from 'react-router'; import Root from './src/Root'; import routes from './src/Routes'; import metadata from './generate-metadata'; ...
src/lib/scripts/components/DialogHost.js
ggarek/react-dialogista
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import Overlay from './Overlay'; import DialogsSummary from './DialogsSummary'; import ReactCSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import FirstChild from './FirstChild'; import { connect } from 'rea...
packages/react-error-overlay/src/components/Header.js
ConnectedHomes/create-react-web-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { red } from '../styles'; const headerStyle = { fontSize: '2em', fontFamily: 'sans-se...
src/components/handlers/InfoHandler.js
cpsubrian/redis-explorer
import React from 'react' import ImmutablePropTypes from 'react-immutable-proptypes' import autobind from 'autobind-decorator' import pureRender from 'pure-render-decorator' import connectToStores from 'alt/utils/connectToStores' import throttle from '../../utils/throttle' import hostsStore from '../../stores/hostsStor...