path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Events/EventsList.js
llukasxx/school-organizer-front
import React from 'react' import ReactPaginate from 'react-paginate' import EventListItem from './EventListItem' export class EventsList extends React.Component { constructor(props) { super(props) this.renderEventListItems = this.renderEventListItems.bind(this) this.handlePageClick = this.handlePageClic...
src/components/AdminDocSecuence.js
aurigadl/EnvReactAsk
import React from 'react' import Reflux from 'reflux'; import * as cSecAc from '../actions/confSecu'; import confSecuStore from '../stores/confSecu'; import { Form, InputNumber, Radio, Input, Button } from 'antd'; const FormItem = Form.Item; const ButtonGroup = Button.Group; const AdminDocSecuence = Form.create()(...
src/pwa.js
delwiv/saphir
import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from './helpers/Html'; export default function () { return `<!doctype html>${ReactDOM.renderToStaticMarkup(<Html />)}`; }
app/javascript/mastodon/features/explore/results.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { expandSearch } from 'mastodon/actions/search'; import Account from 'mastodon/containers/account_contai...
packages/mineral-ui-icons/src/IconGroupWork.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconGroupWork(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
src/containers/Root.js
dpca/whats-free
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { BrowserRouter } from 'react-router-dom'; import App from './App'; import type { Store } from '../types'; type Props = { store: Store, }; function Root({ store }: Props) { return ( <BrowserRouter> <Provider store={store...
lib/index.js
t-obi/react-simple-resize
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Handle from './Handle'; class Resize extends Component { static propTypes = { initialHeight: PropTypes.number, initialWidth: PropTypes.number, minHeight: PropTypes.number, minWidth: PropTypes.number, children: P...
components/Header.js
spirityy/dashboard
import React from 'react' import { Link } from 'react-router' export default class Header extends React.Component { render() { return( <header> <div className="logo"> <Link to="/">Logo</Link> </div> <div className="hd"> Dashboard </div> </header> ...
client/components/Skeleton.js
VoiSmart/Rocket.Chat
import { Box, Skeleton } from '@rocket.chat/fuselage'; import React from 'react'; export const FormSkeleton = (props) => ( <Box w='full' pb='x24' {...props}> <Skeleton mbe='x8' /> <Skeleton mbe='x4' /> <Skeleton mbe='x4' /> <Skeleton mbe='x8' /> <Skeleton mbe='x4' /> <Skeleton mbe='x8' /> </Box> );
tests/react_modules/es6class-types-callsite.js
fletcherw/flow
/* @flow */ import React from 'react'; import Hello from './es6class-types-module'; type Props = {name: string}; class HelloLocal extends React.Component<void, Props, void> { props: Props; render(): React.Element<*> { return <div>{this.props.name}</div>; } } class Callsite extends React.Component<void, Pr...
components/Pages/Home/Home.js
pigflymoon/geo-app
import React from 'react'; import Page from "../Page"; import Banner from '../../Banner' import NewsSlider from '../../NewsSlider' import QuakesListMap from '../../QuakesListMap' export default class Home extends React.Component { render() { return ( <Page> <Banner /> ...
openex-front/src/components/Error.js
Luatix/OpenEx
import React from 'react'; import * as R from 'ramda'; import * as PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import Alert from '@mui/material/Alert'; import AlertTitle from '@mui/material/AlertTitle'; class ErrorBoundaryComponent extends React.Component { constructor(props) { su...
news/NewsApp.js
HKuz/FreeCodeCamp
import React from 'react'; import { Grid } from 'react-bootstrap'; import Helmet from 'react-helmet'; import { SlimWidthRow } from '../common/app/helperComponents'; import Nav from './components/Nav'; import { routes } from './routes'; const propTypes = {}; /* eslint-disable max-len */ const styles = ` .app-layout p,...
src/components/SmallProfile/SmallProfile.js
ihnat/tream
/** * 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, { Component } from 'react'; import withStyle...
app/javascript/mastodon/features/account/components/account_note.js
primenumber/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Textarea from 'react-textarea-autosize'; impor...
old_boilerplate/js/components/pages/ReadmePage.react.js
hbaughman/audible-temptations
/* * ReadmePage * * This is the page users see when they click the "Setup" button on the HomePage */ import React, { Component } from 'react'; import { Link } from 'react-router'; export default class ReadmePage extends Component { render() { return ( <div> <h2>Further Setup</h2> <p>As...
admin/client/App/screens/Item/components/FormHeading.js
webteckie/keystone
import React from 'react'; import evalDependsOn from '../../../../../../fields/utils/evalDependsOn'; module.exports = React.createClass({ displayName: 'FormHeading', propTypes: { options: React.PropTypes.object, }, render () { if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) { re...
client/components/BubbleSlider.js
kauffecup/news-insights
//------------------------------------------------------------------------------ // Copyright IBM Corp. 2016 // // 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...
newclient/scripts/components/responsive-component/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...
js/components/projectEdit/tabDescription.js
bsusta/HelpdeskAppTemplate
import React, { Component } from 'react'; import {Alert} from 'react-native'; import {Form, Input, Label, Button, Icon, Item, Footer, FooterTab, Thumbnail, Container, Content, Card, CardItem, Text, ListItem, List, Left, Body, Right } from 'native-base'; import styles from './styles'; import {updateProject,deleteProjec...
internals/templates/containers/HomePage/index.js
Ratholien/JobReact
/* * 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...
node_modules/react-bootstrap/es/Breadcrumb.js
rblin081/drafting-client
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 ...
src/svg-icons/device/bluetooth-disabled.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothDisabled = (props) => ( <SvgIcon {...props}> <path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29...
src/main.js
nrandecker/poller
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import createStore from './store/createStore'; import AppContainer from './containers/AppContainer'; injectTapEventPlugin(); // ======================================================== // Store Insta...
src/parser/demonhunter/havoc/CONFIG.js
fyruna/WoWAnalyzer
import React from 'react'; import { Mamtooth, Yajinni } from 'CONTRIBUTORS'; import SPECS from 'game/SPECS'; import retryingPromise from 'common/retryingPromise'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long...
src/components/Category/MemberIdea.js
partneran/partneran
import React from 'react'; const MemberIdea = () => { return ( <div className="container"> <div className="section text-center"> <h2>Ideas which User Follow</h2> <div className="row"> <div className="col-md-4 text-left"> ...
app/javascript/mastodon/components/column_back_button_slim.js
KnzkDev/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import ColumnBackButton from './column_back_button'; import Icon from 'mastodon/components/icon'; export default class ColumnBackButtonSlim extends ColumnBackButton { render () { return ( <div className='column-back-button--slim'> ...
src/main/resources/ui/components/Main.js
mesos/chronos
import React from 'react' import JobSummaryView from './JobSummaryView' import JobEditor from './JobEditor' import {observer} from 'mobx-react' @observer export default class Main extends React.Component { derp(event) { console.log(event) } render() { const jobSummaryStore = this.props.jobSummaryStore ...
actor-apps/app-web/src/app/index.js
boyley/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import injectTapEventPlugin from 'react-tap-event-plugin'; import Deactivated from 'components/Deactivated.react'; import Login from 'components/Login.react'; import ...
web/src/views/Main/Authenticated/PeerReview/PeerReview.js
envman/e-net
import React from 'react' import {Table, TableBody, TableRow, TableRowColumn} from 'material-ui/Table'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import {List, ListItem} from 'material-ui/List'; export class PeerReview extends React.Component { constructor(props, context) { super(...
client/component/schema/filter/types/string.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; /** * Internal dependencies */ import Logic from '../logic'; import { DropdownText } from 'wp-plugin-components'; import SearchFlags from 'component/search-flags'; function FilterString( props ) { const { ...
src/app1/app1.js
joeldenning/simple-single-spa-webpack-example
import React from 'react'; import ReactDOM from 'react-dom'; import singleSpaReact from 'single-spa-react'; import Root from './root.component.tsx'; const reactLifecycles = singleSpaReact({ React, ReactDOM, rootComponent: Root, domElementGetter, }); export function bootstrap(props) { return reactLifecycles....
src/components/Feedback/Feedback.js
toddsmart/react-starter
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
src/containers/DevTools.js
llukasxx/school-organizer-front
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </Dock...
frontend/src/components/print/print-react/renderingDependencies.js
ecamp/ecamp3
import React from 'react' import wrap from './minimalHalJsonVuex.js' import createI18n from './i18n.js' import documents from './documents/index.js' import { pdf } from '@react-pdf/renderer' export default { React, wrap, createI18n, pdf, documents }
node_modules/react-router/es/Link.js
aalpgiray/react-hot-boilerplate-ts
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 _objectWithoutProperties(obj, keys) { var target = {...
src/frontend/screens/Login/index.js
Koleso/invoicer
import React from 'react'; import LoginLayout from 'screens/LoginLayout'; import SignupContainer from 'containers/SignupContainer'; const Login = () => ( <LoginLayout page="login"> <div> <h1 className="introTitle">Vítejte!</h1> <p>Taky je už slyšíte cinkat?</p> <SignupContainer action="login" /> </div> ...
app/containers/HomePage/index.js
andyfrith/weather.goodapplemedia.com
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { makeSelectLoading, makeSelectError, makeSelectCurrentWeather, makeSe...
src/TweetContainer.js
chelsea-le/nastywoman
// Tweets component import React from 'react'; import firebase from 'firebase'; import Tweet from './Tweet'; import TweetBox from './TweetBox'; import SortFilter from './SortFilter'; import './css/App.css' var tweetRef; var TweetContainer = React.createClass({ getInitialState:function() { return {tweets:[]...
client2/src/components/whiteboard/whiteboard.js
gdomorski/CodeOut
import React, { Component } from 'react'; import axios from 'axios'; import CanvasDraw from './canvasdraw'; import Gallery from './gallery'; import WhiteboardNav from './whiteboard_nav'; import Webcams from './../webcams/webcam-bar'; import PickColor from './colorbox'; import PickBackground from './bgcolorbox'; import ...
client/node_modules/redux-form/es/ConnectedFields.js
Dans-labs/dariah
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux';...
src/js/views/Library/Tracks.js
jaedb/Iris
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import TrackList from '../../components/TrackList'; import Header from '../../components/Header'; import DropdownField from '../../components/Fields/DropdownField'; import FilterField from '../../componen...
src/components/DeveloperMenu.android.js
jiawang1/hoenixN
import React from 'react'; import * as snapshot from '../utils/snapshot'; import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'; /** * Simple developer menu, which allows e.g. to clear the app state. * It can be accessed through a tiny button in the bottom right corner of the screen. * ON...
examples/with-app-layout/pages/_app.js
BlancheXu/test
import React from 'react' import App from 'next/app' class Layout extends React.Component { render () { const { children } = this.props return <div className='layout'>{children}</div> } } export default class MyApp extends App { render () { const { Component, pageProps } = this.props return ( ...
src/svg-icons/image/timelapse.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimelapse = (props) => ( <SvgIcon {...props}> <path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4...
src/index.js
DinoJay/cateract_app
import * as d3 from 'd3'; import React from 'react'; import ReactDOM from 'react-dom'; import 'font-awesome/css/font-awesome.css'; // import _ from 'lodash' import _ from 'lodash'; // import $ from 'jquery'; // import { introJs } from 'intro.js'; // delete for web build // import 'cordova'; // import 'intro.js/introjs...
app/components/List/index.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import WithLoading from '../WithLoading'; import ListItem from '../ListItem'; const Wrapper = styled.div` overflow-y: auto; `; const Table = styled.table` border-collapse: collapse; background-color: transpare...
docs/src/examples/collections/Grid/Variations/GridExampleFloated.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleFloated = () => ( <Grid> <Grid.Column floated='left' width={5}> <Image src='/images/wireframe/paragraph.png' /> </Grid.Column> <Grid.Column floated='right' width={5}> <Image src='/images/wireframe/parag...
components/Internship/NextSteps.js
uclaacm/website
import React from 'react'; function NextSteps(props) { const { image, name, info} = props; return ( <> <div style={{border: '1px solid grey', margin: '5px', borderRadius: '5px', padding: '15px'}}> {/* eslint-disable-next-line @next/next/no-img-element */} <img src={image...
classic/src/scenes/wbfa/generated/FASDownload.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faDownload } from '@fortawesome/pro-solid-svg-icons/faDownload' export default class FASDownload extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faDownload} />) } }
src/components/selectSite/SelectSiteView.js
timLoewel/sites
/** * Created by tim on 10/03/17. */ import {connect} from 'react-redux'; import React from 'react'; import { AppRegistry, AsyncStorage, Button, StyleSheet, Text, View, } from 'react-native'; class SelectSiteView extends React.Component { static navigationOptions = { tabBar: { label: 'SelectSite', /...
test/index.js
theuprising/react-animable
import React from 'react' import { test } from 'ava' import { shallow } from 'enzyme' import ReactAnimable from '../' test('ReactAnimable renders without crashing', t => { t.notThrows(() => shallow(<ReactAnimable />)) }) test('ReactAnimable accepts className', t => { const c = shallow(<ReactAnimable className='r...
blueocean-material-icons/src/js/components/svg-icons/hardware/keyboard-arrow-down.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareKeyboardArrowDown = (props) => ( <SvgIcon {...props}> <path d="M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"/> </SvgIcon> ); HardwareKeyboardArrowDown.displayName = 'HardwareKeyboardArrowDown'; HardwareKeyboardArrowDown.muiName = ...
client-src/components/parts/InspectionPreview.js
Neil-G/InspectionLog
// @flow import React, { Component } from 'react'; import { Link } from 'react-router' require('./../../../public/custom.css') import moment from 'moment' class InspectionPreview extends Component { render() { const { inspection: { createdAt, updatedAt, _id, DOB, ad...
EquationScreen.js
stevenpan91/ChemicalEngineerHelper
'use strict' import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, TouchableHighlight, TouchableOpacity, Navigator } from 'react-native'; class EquationScreen extends Component { render() { return ( <Navigator renderScene={this.renderScene...
app/components/Sidebar/index.js
medevelopment/UMA
import React from 'react'; import {FormattedMessage} from 'react-intl'; import {IndexRoute, browserHistory} from 'react-router'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import SearchBar from '../SearchBar'; import UserBox from '../UserBox'; import HeaderLink from './HeaderLink'; im...
src/components/Pictos/Logo.js
Skoli-Code/DerangeonsLaChambre
import React from 'react'; import SvgIcon from 'material-ui/SvgIcon'; import * as _ from 'lodash'; const Logo = (props)=>{ const useWhite = props.useWhite; const path1Color = useWhite ? 'white': '#051440'; const path2Color = useWhite ? 'white': '#ec1920'; const _props = _.pick(props, _.keys(props).filter(k=>k!...
wrappers/toml.js
tim-thimmaiah/iyla
import React from 'react' import toml from 'toml-js' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
frontend/src/signup/components/ProgressSteps.js
rabblerouser/core
import React from 'react'; import { connect } from 'react-redux'; import { getProgress } from '../reducers'; import DetailsForm from './DetailsForm'; import Finished from './Finished'; const steps = [ null, <DetailsForm />, <Finished />, ]; export const ProgressSteps = ({ currentStep }) => steps[currentStep]; ...
src/App/Body/Inputs/FileInput/index.js
ksmithbaylor/emc-license-summarizer
import React from 'react'; import RaisedButton from 'material-ui/lib/raised-button'; import FileHandler from './FileHandler'; export default function FileInput({ requestResults, style }) { return ( <div style={style.section}> <RaisedButton label="OPEN" primary linkButton onT...
src/common/components/Home/HomeRender.js
minmaster/gig-native-web
'use strict'; import React from 'react'; import classNames from 'classnames'; var If = React.createClass({ render: function() { if (this.props.condition) { return this.props.children; } else { return false; } } }); export default function (props, state...
src/TextField.js
kiloe/ui
import React from 'react'; import View from './View'; import CSS from './utils/css'; import ReactDOM from 'react-dom'; const rowsHeight = 32; CSS.register({ // TODO: scrap this, I was just playing with how to move the placeholder, it's webkit only so not great '.textField': { marginBottom: '6px', positi...
actor-apps/app-web/src/app/components/dialog/messages/Text.react.js
damoguyan8844/actor-platform
import _ from 'lodash'; import React from 'react'; import memoize from 'memoizee'; import emojify from 'emojify.js'; import emojiCharacters from 'emoji-named-characters'; import Markdown from '../../../utils/Markdown'; const inversedEmojiCharacters = _.invert(_.mapValues(emojiCharacters, (e) => e.character)); emoj...
app/js/components/Profile.js
dYb/react-boilerplate
import React from 'react'; import { Link } from 'react-router'; export default class Profile extends React.Component { constructor(props) { super(props); } render(){ console.log('profile') return ( <div className="profile"> <h2>Profile</h2> <ul> <li><Link to="/">Home...
src/app/containers/Sidebar.js
GContaldi/node_chat
import React from 'react'; import { connect } from 'react-redux'; import Avatar from '../components/Avatar'; const Sidebar = (props) => ( <div data-component="Sidebar"> <ul> { props.users.map((user, index) => ( <li key={index} className="sidebar--username"> <Avatar username={...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
tsdl2013/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import AvatarItem from 'components/common/AvatarItem.react'; var ContactItem = React.createClass({ displayName: 'ContactItem', propTypes: { contact: React.PropTypes.object, onSelect: React.PropTypes.func }, mixins: [PureRende...
docs/app/Examples/modules/Accordion/Types/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const AccordionTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExam...
src/components/AppRow.js
leanix/leanix-app-launchpad
import React from 'react' // eslint-disable-next-line no-unused-vars import AppBox from './AppBox' export default class AppRow extends React.Component { render () { const boxes = this.props.apps.map((app, index) => { return <AppBox app={app} key={index} /> }) return ( <div className="row"> ...
App/Containers/DeviceInfoScreen.js
okmttdhr/YoutuVote
// @flow // An All Components Screen is a great way to dev and quick-test components import React from 'react'; import { View, ScrollView, Text, Image, NetInfo } from 'react-native'; import DeviceInfo from 'react-native-device-info'; import { metrics, Images } from '../Themes'; import styles from './Styles/DeviceInfoS...
src/components/Conversation/RequestItem.js
andresmechali/shareify
import React from 'react'; import PropTypes from 'prop-types'; import { withApollo } from 'react-apollo'; import classNames from 'classnames'; import REQUEST_ITEM from "../../utils/queries/REQUEST_ITEM"; class RequestItem extends React.Component { constructor(props) { super(props); this.state = ...
admin/client/components/Forms/CreateForm.js
wmertens/keystone
import React from 'react'; import Fields from '../../fields'; import InvalidFieldType from './InvalidFieldType'; import { Alert, Button, Form, Modal } from 'elemental'; var CreateForm = React.createClass({ displayName: 'CreateForm', propTypes: { err: React.PropTypes.object, isOpen: React.PropTypes.bool, list: ...
withReduxSaga/withReduxSaga.js
batusai513/next-saga-boilerplate
import React, { Component } from 'react'; import withRedux from 'next-redux-wrapper'; export default params => (InnerComponent, actions) => { class ReduxContainer extends Component { static async getInitialProps({ store, isServer, ...rest }) { if (isServer) { const action = actions.server || action...
stories/sizeReport.js
quanxiaoxiao/size-report
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import SizeReport from '../src/main'; class Quan extends React.Component { state = { width: 0, height: 0, } handleChange({ width, height }) { this.setState({ width, height, }); } render() { const { wid...
tools/render.js
ahw/flash-cards-static-app
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import glob from 'glob'; import { join, dirname } from 'path'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from '../components/Html'...
src/client/login.js
DBCDK/dbc-ufo
/** * @file * Client side login file. */ import ReactDOM from 'react-dom'; import React from 'react'; // Components import TopbarContainer from './components/topbar/topbarContainer.component'; import LoginContainer from './components/login/loginContainer.component'; const topbarContainer = document.getElementById...
test/integration/client-navigation/pages/async-props.js
zeit/next.js
import React from 'react' export default class AsyncProps extends React.Component { static async getInitialProps() { return fetchData() } render() { return <p>{this.props.name}</p> } } function fetchData() { const p = new Promise((resolve) => { setTimeout(() => resolve({ name: 'Diego Milito' })...
node_modules/react-router/es6/Router.js
MichaelWiss/React_E
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 _objectWithoutProperties(obj, keys) { var target = {...
docs/app/Examples/modules/Dropdown/States/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DropdownStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Loading' description=...
src/components/Tabs/components/InkTabBarMixin.js
zhangjianguo1500/f01
import { setTransform, isTransformSupported } from './utils'; import React from 'react'; import classnames from 'classnames'; export function getScroll(w, top) { let ret = w[`page${top ? 'Y' : 'X'}Offset`]; const method = `scroll${top ? 'Top' : 'Left'}`; if (typeof ret !== 'number') { const d = w.document; ...
src/Map/Layers/Marker.js
woutervh-/cancun-react
import React from 'react'; export default class Marker extends React.Component { static propTypes = { position: React.PropTypes.shape({ latitude: React.PropTypes.number.isRequired, longitude: React.PropTypes.number.isRequired }).isRequired, anchor: React.PropTypes.sh...
src/svg-icons/image/control-point.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageControlPoint = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-...
src/routes/home/index.js
RomanovRoman/react-starter-kit
/** * 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 Home from './Home'; impo...
src/components/introduction/Introduction.js
DarylRodrigo/DarylRodrigo.github.io
import React from 'react'; import Scroll from '../common/Scroll'; import laptopCover from '../../images/laptopCover.png'; const Introduction = () => ( <section id="intro" className="wrapper style2 spotlights show-case"> <div className="inner"> <div className="content-section"> <div className="intr...
frontend/react-slingshot/src/components/NotFoundPage.js
ggchan0/git_diffed
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
src/svg-icons/notification/phone-locked.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneLocked = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5...
resource/js/components/HeaderSearchBox/SearchSuggest.js
crow-misia/crowi
import React from 'react'; import ListView from '../PageList/ListView'; export default class SearchSuggest extends React.Component { render() { if (!this.props.focused) { return <div></div>; } if (this.props.searching) { return ( <div className="search-suggest" id="search-suggest">...
docs/app/Examples/elements/Label/Content/LabelExampleImage.js
koenvg/Semantic-UI-React
import React from 'react' import { Image, Label } from 'semantic-ui-react' const LabelExampleImage = () => ( <div> <Label as='a'> <Image avatar spaced='right' src='http://semantic-ui.com/images/avatar/small/elliot.jpg' /> Elliot </Label> <Label as='a'> <img src='http://semantic-ui.com/i...
test/integration/image-component/default/pages/rotated.js
JeromeFitz/next.js
import Image from 'next/image' import React from 'react' const Page = () => { return ( <div> <p>Hello World</p> <Image id="exif-rotation-image" src="/exif-rotation.jpg" unsized /> <p id="stubtext">This is the rotated page</p> </div> ) } export default Page
js/pages/logframe/index.js
mercycorps/TolaActivity
/** * Entry point for the logframe webpack bundle */ import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'mobx-react'; import FilterStore from './models/filterStore'; import ProgramStore from './models/programStore'; import TitleBar from './components/title'; import LogframeApp from...
src/components/errors/ErrorView.js
ZhukMax/feap
import React from 'react'; import { Link } from 'react-router'; import { Container, Row, Col } from 'reactstrap'; class ErrorView extends React.Component { render() { return ( <Container className="b-container"> <div className="b-content-wrapper"> <Container ...
app/components/Console/Console.js
crysislinux/chrome-react-perf
import React from 'react'; import Log from './Log'; import Table from './Table'; import styles from './Console.css'; const propTypes = { data: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.array, ]).isRequired, }; function renderData(data) { if (typeof data === 'string') { retu...
src/components/MediaListItem.js
ratedali/desudesu
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Card, { CardActions, CardContent, CardMedia } from 'material-ui/Card'; import { CircularProgress } from 'material-ui/Progress'; import IconButton from 'material-ui/IconButton'; import Bu...
Libraries/Components/TextInput/TextInput.js
naoufal/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
project/src/scenes/Account/AccountContainer.js
boldr/boldr
/* @flow */ import React from 'react'; import Route from 'react-router-dom/Route'; import { flattenRoutes } from '@boldr/core'; import type { FlattenedRoutes } from '../../types/boldr'; import routes from './routes'; type Props = { path: string, }; // eslint-disable-next-line const AccountContainer = (props: Props)...
src/containers/Link.js
cyrfer/firestarter
import React from 'react' import PropTypes from 'prop-types' const Link = ({ active, children, onClick }) => { if (active) { return <span>{children}</span> } return ( <a href="#" onClick={e => { e.preventDefault() onClick() }} > {children} </a> ) } Link...
src/js/main.js
caseypt/ebird-hotspot-viewer
import '../sass/app.scss'; import '../index.html'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App.js'; import Home from './components/Home.js'; import About from './components/About.js'; import HotspotList from './components/HotspotList.js'; import SightingsList from './...
src/client/components/pages/editor-revision.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2020 Prabal Singh * * This program 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 2 of the License, or * (at your option) any later version. * * This program is distr...
src/svg-icons/image/lens.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLens = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/> </SvgIcon> ); ImageLens = pure(ImageLens); ImageLens.displayName = 'ImageLens'; ex...
resources/assets/js/common/components/TimeAgo.js
vestd/ProcessMonitor
import React from 'react'; import {FormattedRelative, injectIntl} from 'react-intl'; const TimeAgo = ({date, intl}) => { if (date == null) { return (<span>-</span>) } return ( <FormattedRelative value={new Date(date)} /> ) } //Inject the internationalisation data into the component ...
node_modules/react-router/es6/Route.js
fahidRM/aqua-couch-test
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...