path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/routes.js
BenMGilman/react-lunch-and-learn
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/layout/Shell'; import BlogPage from './components/blog/BlogPage'; export default ( <Route path="/" component={App}> <IndexRoute component={BlogPage}/> </Route> );
pootle/static/js/shared/components/Dialog.js
evernote/zing
/* * Copyright (C) Pootle contributors. * Copyright (C) Zing contributors. * * This file is a part of the Zing project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react...
src/Modal.js
Azerothian/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import FadeMixin from './FadeMixin'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; // TODO: // - aria-labelledby // - Add `modal-body` div if only one child pass...
demo/app/screens/firstscreen/FirstScreen.js
braveliuchina/pig-react-native
import React, { Component } from 'react'; import { ToolbarAndroid, AppRegistry, StyleSheet, Text, View, Image, TextInput, TouchableOpacity } from 'react-native'; import {Images} from '../../resource/'; import {EditView, LoginButton, NetUtil, LoginSuccess} from '../../components/'; export default class ...
docs/app/Examples/elements/Reveal/Variations/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RevealVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Instant' descr...
src/pages/404.js
srsheldon/scrootinEyes
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
src/browser/auth/SignInPage.js
VigneshRavichandran02/3io
/* @flow */ import type { State } from '../../common/types'; import Email from './Email'; import R from 'ramda'; import React from 'react'; import SignInError from './SignInError'; import Social from './Social'; import linksMessages from '../../common/app/linksMessages'; import { Redirect } from 'react-router'; import ...
src/view/entry/admin/routeDefinition.js
VisitingLandmarks/visitingLandmarks
import React from 'react'; import PropTypes from 'prop-types'; import Admin from '../../admin/intl'; import {routes} from '../../../modules/routes'; import conditionalRoute from '../../conditionalRoute'; const AdminRoute = conditionalRoute(routes.user.login, (store) => { const user = store.getState().session.us...
src/components/Home.js
VuongVu/React_Training
import React from 'react'; import { Link } from 'react-router-dom'; const Home = () => { return ( <div className='home-container'> <h1>Github Battle: Battle your friends... and stuff.</h1> <Link className='button' to='/battle'>Battle</Link> </div> ); }; export default Home;
lib/src/game/minesCounter.js
Hezko/MineBlown-GameUI
import React from 'react'; class MinesCounter extends React.Component { constructor(props) { super(); } render() { let minesCount = this.props.minesCount; let flagsCount = this.props.flagsCount; let remainingMines = minesCount - flagsCount; let left = remainingMine...
example/_src/jsx/components/App.js
glennflanagan/react-stage-indicator
import React from 'react'; import StageIndicator from '../../../../src/StageIndicator'; var App = React.createClass({ render: function() { return( <div> <StageIndicator /> </div> ); } }); export default App;
app/routes.js
pratyk/react-signup-zxcvbn
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import Home from './components/Home'; import Signup from './components/Signup'; import Login from './components/Login'; import About from './components/About'; module.exports = ( <Route path="/" componen...
fields/types/preview/PreviewField.js
nickhsine/keystone
import Field from '../Field'; import React from 'react'; import { Button, FormField } from 'elemental'; module.exports = Field.create({ displayName: 'PreviewField', renderUI () { const previewOrigin = Keystone.previewOrigin || 'https://keystone-preview.twreporter.org' let url = `${previewOrigin}/a/${this.p...
src/components/Main.js
sumoli/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; import ReactDOM from 'react-dom'; //let yeomanImage = require('../images/yeoman.png'); //获取图片相关数据 let imageDatas=require('json!../data/imageDatas.json'); //利用自执行函数,将图片名信息转成图片URL路径信息 imageDatas=(function genImageURL(imageDatas...
src/index.js
csndra0504/react-redux-async
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import reducer from './reducers/index'; import App from './components/App/App'; import './index.css'; const middleware = [ thunk ];...
src/utils/progressHUD/index.js
guangqiang-liu/OneM
/** * Created by guangqiang on 2017/9/10. */ import React from 'react' import ProgressHUD from './progressHUD' import store from '../../store' import type from '../../constants/actionType' import {createAction} from 'redux-actions' import {Actions} from 'react-native-router-flux' const loadingAction = createAction(t...
src/components/Router/index.js
topguru/React-Equiaction
import React from 'react'; import {Text, View, Image, TouchableHighlight } from 'react-native'; import { Scene, Router, Actions, TabBar, } from 'react-native-router-flux'; import { images } from '../../theme'; import { HomeTabIcon, CataTabIcon, AdsTabIcon, FavTabIcon, ProTabIcon } from './TabIcon'; import Home from '.....
src/modules/Form/components/Formbottom.js
YBox-POS/possys
import React from 'react' import { Text, Image, View } from 'react-native' import styles from './styles' import {Button} from 'react-native-elements' const Formbottom = () => ( <View> <View style={styles.FormView}> <Text style={styles.Subtotalfont}>Subtotal:</Text> <Text style={styles.SubtotalfontRt...
docs/app/Examples/collections/Breadcrumb/index.js
jamiehill/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const BreadcrumbExamples = () => ( <div> <ExampleSection title='Types'> <ComponentExample title='Breadcrumb' ...
examples/query-params/app.js
apoco/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link } from 'react-router'; var User = React.createClass({ render() { var { query } = this.props.location; var age = query && query.showAge ? '33' : ''; var { userID } = this.props.params; retur...
Client/src/js/init.js
plavoieBC/hets
import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import Promise from 'bluebird'; import './utils/shims'; Promise.config({ cancellation: true, }); import App from './app.jsx'; import * as Api from './api'; import { ApiError } from './utils/http'; var initializationEl = docume...
app/javascript/mastodon/features/blocks/index.js
maa123/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import PropType...
src/js/components/icons/base/SocialLinkedin.js
kylebyerly-hp/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/src/client/app/model/geo/LGeoObject.js
syrel/Open-Data
/** * Created by syrel on 29.05.17. */ import LGeoEndpoint from './LGeoEndpoint'; import LObject from './../LObject'; import Thenable from './../../Thenable'; import template from '../../template' import _ from 'underscore'; import CardPresentation from './../../framework/CardPresentation'; import geometry from './....
webpack/components/sections/SectionList.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import shallowCompare from 'react-addons-shallow-compare'; import { sectionProps } from "../../prop-types/section_props"; import { isShowable } from '../../utilities/componentHelpers'; import SearchResult from '../SearchResult'; import Loadi...
src/components/AddRecipeForm.js
kishigo/recipes-react-redux
/** * Created by Kelvin Ishigo on 10/1/17. * * Copyright (c) 2017 Kelvin Ishigo * Licensed under the MIT License. See LICENSE file in the project root for full license information. */ import React from 'react' import AddIngredientItem from './AddIngredientItem' import IngredientsList from './IngredientsList' impor...
docs/public/static/examples/v34.0.0/gyroscope.js
exponent/exponent
import React from 'react'; import { Gyroscope } from 'expo-sensors'; import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; export default class GyroscopeSensor extends React.Component { state = { gyroscopeData: {}, }; componentDidMount() { this._toggle(); } componentWillUnmount()...
src/js/containers/app/main-footer.js
campinas-front-end/institucional
'use strict' import React from 'react' const MainFooter = () => ( <footer className='footer' role='contentinfo'> <div className='footer-hold'> <div className='container'> <p> Forked from <a href='https://github.com/frontendbr/eventos' target='_blank'> Front-End Brasil</a> ...
packages/material-ui-icons/src/InfoOutline.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let InfoOutline = props => <SvgIcon {...props}> <path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h...
src/native/auth/SignOut.js
reedlaw/read-it
// @flow import React from 'react'; import buttonsMessages from '../../common/app/buttonsMessages'; import { Button } from '../../common/components'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { signOut } from '../../common/auth/actions'; type SignOutProps = { signOut:...
src/client/client.js
DimitriMikadze/isomorphic-react-webapp
import React from 'react'; import ReactDOM from 'react-dom'; import { Router } from 'react-router'; import { routes } from '../shared/routes'; import createBrowserHistory from './../../node_modules/history/lib/createBrowserHistory'; let doc = document.documentElement; doc.setAttribute('data-useragent', navigator.use...
app/jsx/speed_grader/SpeedGraderProvisionalGradeSelector.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
public/js/14C.js
ritchieanesco/frontendmastersreact
/* Adding a header component */ import React from 'react' import ShowCard from './14D' import Header from './14F' const { arrayOf, shape, string } = React.PropTypes // render () function call is called enhanced object literal e6 syntax // es6 is not about writing function const Search = React.createClass({ propTyp...
docs/app/Examples/elements/Reveal/Types/RevealExampleMoveDown.js
koenvg/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleMoveDown = () => ( <Reveal animated='move down'> <Reveal.Content visible> <Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> ...
pages/error/index.js
cnsuva/cnsuva.io
/** * 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'; ...
tests/baselines/reference/jsxPartialSpread.js
microsoft/TypeScript
//// [jsxPartialSpread.tsx] /// <reference path="/.lib/react16.d.ts" /> const Select = (p: {value?: unknown}) => <p></p>; import React from 'react'; export function Repro({ SelectProps = {} }: { SelectProps?: Partial<Parameters<typeof Select>[0]> }) { return ( <Select value={'test'} {...SelectProps} /> ...
front/app/app/rh-components/rh-Well.js
nudoru/React-Starter-2-app
import React from 'react'; const Well = ({children, className, ...other}) => <div className={"rh-well "+className} {...other}>{children}</div>; export default Well;
internals/templates/containers/LanguageProvider/index.js
theseushu/funong-web
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/svg-icons/image/wb-cloudy.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbCloudy = (props) => ( <SvgIcon {...props}> <path d="M19.36 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96...
src/views/Item/ItemMeta.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * An item can contain content metadata. */ function ItemMeta(props) { const { ...
src/containers/pages/home/block.js
vFujin/HearthLounge
import React from 'react'; import {Link} from 'react-router-dom'; import _ from 'lodash'; import Icon from "../../../components/icon"; const HomeBlock = ({title, width, icon, page, children}) =>{ const blockTitle = _.upperCase((title !== icon && title !== undefined) ? title : icon); return ( <li className={...
information/blendle-frontend-react-source/app/modules/sectionsPage/components/FallbackGridSection/index.js
BramscoChill/BlendleParser
import React from 'react'; import { string } from 'prop-types'; import classNames from 'classnames'; import HorizontalSection from '../HorizontalSection'; import CSS from './style.scss'; function FallbackGridSection({ className, ...props }) { return ( <HorizontalSection {...props} className={classNames(CSS.fallb...
src/packages/address-bar/src/index.js
MikkCZ/pontoon-tools
import React from 'react'; import ReactDOM from 'react-dom'; import { PanelSection } from './PanelSection'; import { BackgroundPontoonClient } from 'Commons/src/BackgroundPontoonClient'; if (!browser) { // eslint-disable-line no-use-before-define var browser = require('webextension-polyfill'); // eslint-disable-line ...
src/app/ui/Button/Button.js
arikanmstf/mylibrary
// @flow import React from 'react'; import WebButton from '@material-ui/core/Button'; import { Link } from 'react-router-dom'; import type { Node } from 'react'; import type { ButtonProps } from './types'; const Button = (props: ButtonProps): Node => { const { text, primary, raised, style, to, color, ...other ...
demo/demo.js
synapsestudios/synfrastructure
import React, { Component } from 'react'; import Modal from '../src/Modal'; import Label from '../src/Label'; import Checkbox from '../src/Checkbox'; import Radio from '../src/Radio'; class Demo extends Component { constructor(props) { super(props); this.state = { modalVisible: false, checkboxC...
plugins/Terminal/js/index.js
NebulousLabs/New-Sia-UI
// index.js: main entrypoint for the Sia-UI wallet plugin. import React from 'react' import ReactDOM from 'react-dom' import CommandLine from './components/app.js' import { createStore } from 'redux' import { Provider } from 'react-redux' import rootReducer from './reducers/index.js' import { initPlugin } from './utils...
packages/material-ui-icons/src/SdStorage.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z" /></g> , 'SdStorage');
fields/types/select/SelectFilter.js
Tangcuyu/keystone
import React from 'react'; import { Checkbox, FormField, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/client/components/Popout/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; function getDefaultValue () { return {...
packages/material-ui-icons/src/LinkedCamera.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><circle cx="12" cy="14" r="3.2" /><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.33V6" /><path d="M17 9c0-1.11-.89-2-2-2V4H9L7.17 6...
src/tools/BaseComponent.js
dacostafilipe/dzencoder
import React from 'react'; import Constants from '../Constants.js'; // // ES6 Helper class class BaseComponent extends React.Component { constructor(props) { super(props); // state helper function this.state = this.defaultState(); } // // Events that are triggered by React....
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/8_VenuePreview/VenueTable/VenueDropZone.js
westoncolemanl/tabbr-web
import React from 'react' import ItemTypes from './ItemTypes' import { DropTarget } from 'react-dnd' import Chip from 'material-ui/Chip' import moveVenue from './moveVenue' const venueTarget = { canDrop (props, monitor) { return true }, drop (props, monitor) { moveVenue(props, monitor) } } function ...
docs/src/app/components/pages/components/SelectField/ExampleSimple.js
andrejunges/material-ui
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; const styles = { customWidth: { width: 150, }, }; /** * `SelectField` is implemented as a controlled component, with the current selection set through the `value` property. * The `Selec...
packages/icons/src/md/maps/DirectionsBus.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdDirectionsBus(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M8 33V13c0-7 7.16-8 16-8s16 1 16 8v20c0 1.77-.78 3.34-2 4.44V41c0 1.1-.9 2-2 2h-2a2 2 0 0 1-2-2v-2H16v2a2 2 0 0 1-2 2h-2c-1.1 0-2-.9-2-2v-3.56c...
web/src/components/Icons/Check.js
dnote-io/cli
/* Copyright (C) 2019, 2020 Monomax Software Pty Ltd * * This file is part of Dnote. * * Dnote 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 License, or * (at your optio...
src/FadeMixin.js
xiaoking/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import deprecationWarning from './utils/deprecationWarning'; // TODO: listen for onTransitionEnd to remove el function getElementsAndSelf(root, classes) { let els = root.querySelectorAll('.' + classes.join('.')); els = [].map.call(els, function(e...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
SpatialMap/SpatialMapDev
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/index.js
imstevecho/state-chart-demo
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import formA from './components/form_A'; import formB from './components/form_B'; import formC from './components/form_C'; impor...
src/svg-icons/action/build.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBuild = (props) => ( <SvgIcon {...props}> <path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-...
packages/wix-style-react/src/TableToolbar/Toolbar.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import s from './Toolbar.scss'; import Text from '../Text'; export const Toolbar = props => { return <div className={s.toolbar}>{props.children}</div>; }; Toolbar.displayName = 'Toolbar'; Toolbar.propTypes = { chi...
server/sonar-web/src/main/js/apps/code/components/Truncated.js
Builders-SonarSource/sonarqube-bis
/* * 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...
src/svg-icons/notification/do-not-disturb-off.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbOff = (props) => ( <SvgIcon {...props}> <path d="M17 11v2h-1.46l4.68 4.68C21.34 16.07 22 14.11 22 12c0-5.52-4.48-10-10-10-2.11 0-4.07.66-5.68 1.78L13.54 11H17zM2.27 2.27L1 3.54l2.78 2.78...
src/interface/others/charts/VerticalLine.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Tooltip from 'common/Tooltip'; import './VerticalLine.css'; const VerticalLine = props => { const { value, style, className, children, // ton of properties get injected from XYPlot xRange, xDomain, marginLeft, ...
Rosa_Madeira/Revendedor/src/components/common/Spinner.js
victorditadi/IQApp
import React, { Component } from 'react'; import { View, ActivityIndicator } from 'react-native'; const Spinner = ({ size }) => { return ( <View style={styles.spinnerStyle}> <ActivityIndicator size={size || 'large'} /> </View> ); }; const styles = { spinnerStyle: { flex: 1, justifyContent...
packages/reactor-kitchensink/src/examples/Lists/BasicStepSwiper/BasicStepSwiper.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { List, Panel } from '@extjs/ext-react'; Ext.require([ 'Ext.dataview.listswiper.ListSwiper', 'Ext.dataview.listswiper.Stepper' ]); export default class BasicStepSwiper extends Component { store = Ext.create('Ext.data.Store', { autoLoad: true, ...
Agenda/src/components/cadastro.js
interlegis/agenda-evento
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { reduxForm } from 'redux-form'; import Recaptcha from 'react-google-recaptcha'; import _ from 'lodash'; import { cadastroUsuario, ErrorMessage, getRecaptchaResponse } from '../actions'; import { FIELD_USUARIO_CADASTRO } from './forms/...
components/Pagination/PaginationTrack.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import first from 'lodash/fp/first'; import last from 'lodash/fp/last'; import getPaginationTrack from './getPaginationTrack'; import { PaginationLink } from './PaginationLink'; import css from './Pagination.css'; const FILLER = 'filler'; const FIRST_PAG...
examples/universal/server/server.js
davidmarkclements/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; import { fetch...
packages/react-devtools-shell/src/app/InspectableElements/CustomObject.js
jzmq/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; class Custom { _number = 42; get number() { return this._number; } } export def...
app/javascript/mastodon/features/compose/components/navigation_bar.js
pfm-eyesightjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import Permalink from '../../../components/permalink'; import { FormattedMessage } from 'r...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
robcmills/svg-game
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
Js/Ui/Components/Growl/WarningGrowl.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; import Growl from './Growl'; class WarningGrowl extends Webiny.Ui.Component { } WarningGrowl.defaultProps = { title: null, ttl: 3000, sticky: false, message: null, type: 'warning', renderer() { return ( ...
packages/wix-style-react/src/BaseModalLayout/LayoutBlocks/Illustration/Illustration.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { st, classes } from './Illustration.st.css'; import { dataHooks } from '../../constants'; import { useBaseModalLayoutContext } from '../../BaseModalLayoutContext'; export const Illustration = ({ dataHook, className, children }) => { const { i...
src/index.js
IveWong/react-transform-boilerplate
import React from 'react'; import { App } from './App'; React.render(<App />, document.getElementById('root'));
src/files/info-boxes/companion-info/CompanionInfo.stories.js
ipfs/webui
import React from 'react' import { storiesOf } from '@storybook/react' import i18n from '../../../i18n-decorator' import CompanionInfo from './CompanionInfo' storiesOf('Files/Info Boxes', module) .addDecorator(i18n) .add('Companion Info', () => ( <div className='ma3 sans-serif'> <CompanionInfo /> </d...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupEqualWidth.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button, Divider } from 'semantic-ui-react' const ButtonExampleGroupEqualWidth = () => ( <div> <Button.Group widths='5'> <Button>Overview</Button> <Button>Specs</Button> <Button>Warranty</Button> <Button>Reviews</Button> <Button>Support</Button> ...
docs/src/GettingStartedPage.js
lo1tuma/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="getting-started"...
src/svg-icons/image/exposure-plus-1.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposurePlus1 = (props) => ( <SvgIcon {...props}> <path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/> </SvgIcon> ); ImageExposurePlus1 = pure(ImageExposurePlus1); ImageEx...
fluxArchitecture/src/js/components/cart/app-cart.js
3mundi/React-Bible
import React from 'react'; import AppStore from '../../stores/app-store'; import AppCartItem from './app-cart-item'; import StoreWatchMixin from '../../mixins/StoreWatchMixin' import { Link } from 'react-router'; const cartItems = () => { return { items: AppStore.getCart() } } const Cart = ( props ) => { var to...
src/components/Single/Single.js
calebeno/LearnReduxTakeTwo
import React from 'react'; import Photo from '../Photo/Photo'; import Comments from '../Comments/Comments'; class Single extends React.Component { render() { const { posts, params, comments } = this.props; const i = posts.findIndex(post => post.code === params.postId); const post = posts[i]...
docs/app/Examples/collections/Message/Variations/MessageExampleSize.js
aabustamante/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleSize = () => ( <div> <Message size='mini'>This is a mini message.</Message> <Message size='tiny'>This is a tiny message.</Message> <Message size='small'>This is a small message.</Message> <Message size='large'>T...
src/svg-icons/device/signal-cellular-off.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularOff = (props) => ( <SvgIcon {...props}> <path d="M21 1l-8.59 8.59L21 18.18V1zM4.77 4.5L3.5 5.77l6.36 6.36L1 21h17.73l2 2L22 21.73 4.77 4.5z"/> </SvgIcon> ); DeviceSignalCellularOff = pure(...
imports/ui/TitleBar.js
dandev237/score-keep
import React from 'react'; import PropTypes from 'prop-types'; export default class TitleBar extends React.Component { renderSubtitle() { if(this.props.subtitle) { return <h2 className="title-bar__subtitle">{this.props.subtitle}</h2> } } render() { retur...
src/components/settings/Prompt.js
reichert621/log-book
import React from 'react' import EditableText from '../forms/EditableText' import css from '../../styles/main.scss' import classNames from 'classnames' const Prompt = ({ prompt, onUpdate, onRemove }) => { const styles = STYLES(prompt) return ( <div className={css['item-container']} style={styles['item-contain...
universal/containers/Header.js
grishanin/auctionata
import React from 'react'; import { connect } from 'react-redux'; import { logIn, selectAuction } from '../actions'; import LogIn from '../components/LogIn'; import Select from '../components/Select'; function Header({ dispatch, user, selectedAuction }) { return ( <div className="header"> <Select v...
examples/js/column-filter/custom-filter.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; p...
src/hooks/useTable.js
tannerlinsley/react-table
import React from 'react' // import { linkColumnStructure, flattenColumns, assignColumnAccessor, unpreparedAccessWarning, makeHeaderGroups, decorateColumn, } from '../utils' import { useGetLatest, reduceHooks, actions, loopHooks, makePropGetter, makeRenderer, } from '../publicUtils' import m...
components/App.js
zhangmingkai4315/PollingApp
import React from 'react' import io from 'socket.io-client' import Header from './parts/Header' import Router from 'react-router' import {RouteHandler} from 'react-router' var PropTypes = React.PropTypes; class App extends React.Component{ constructor(props) { super(props); this.state = {status:"Disconnected", ...
components/PhotoCredit.js
dawnlabs/carbon
import React from 'react' export default ({ photographer }) => ( <div className="photo-credit"> Photo by{' '} <a href={`${photographer.profile_url}?utm_source=carbon&utm_medium=referral`}> {photographer.name} </a> <style jsx> {` .photo-credit { cursor: unset; u...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
tateisu/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...
packages/material-ui-benchmark/src/styles.js
lgollut/material-ui
/* eslint-disable no-console */ import Benchmark from 'benchmark'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import styledComponents, { ServerStyleSheet } from 'styled-components'; import styledEmotion from '@emotion/styled'; import { css } from '@emotion/core'; import { renderStylesToSt...
src/views/HomeView/index.js
asidiali/pivotal.press
import {Icon} from '../../components'; import React from 'react'; import {hashHistory} from 'react-router'; import ls from 'local-storage'; import radium from 'radium'; import styles from './styles'; @radium export default class HomeView extends React.Component { componentDidMount() { if (ls('pp-api') && ls('pp...
tosort/2016/jspm/lib_react_102/components/app/index.js
Offirmo/html_tests
import React from 'react'; import { connect } from 'react-redux' import Menu from '../menu/index' import Journey from '../journey/index' import Fab from '../fab/index' import {actions} from '../../models/journey' //////////////////////////////////// let App = ({ onFabClick }) => ( <div> <Menu /> <Journey /> ...
app/javascript/mastodon/components/domain.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', default...
client/app/app.js
maekks/menu-plus
/** * 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'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
Example/index.android.js
pvanliefland/react-native-motion-detector
import React from 'react'; import {AppRegistry} from 'react-native'; import App from './App'; AppRegistry.registerComponent('Example', () => App);
src/VideoView.js
lmylr/lmylr.github.io
import React from 'react'; class VideoView extends React.Component { render() { return ( <view > <h2 >视频</h2> </view> ); } } export default VideoView;
App/ui/views/events/EventCategory.preview.js
nthbr/mamasound.fr
/* * Copyright (c) 2017. Caipi Labs. All rights reserved. * * This File is part of Caipi. 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 * License, or (at your option) any later version. ...
client/src/main.js
ududsha/React-Redux-Dashboard-boilerplate
import 'babel-polyfill'; import './assets/css/react-widgets.css'; import './assets/css/bootstrap.css'; import './assets/css/font-awesome.css'; import './assets/css/app.css'; import './assets/js/bootstrap.js'; import Moment from 'moment'; import momentLocalizer from 'react-widgets/lib/localizers/moment'; momen...
src/js/components/MaskedInput/stories/URL.js
HewlettPackard/grommet
import React from 'react'; import { Box, Grommet, MaskedInput } from 'grommet'; import { grommet } from 'grommet/themes'; export const UrlMaskedInput = () => { const [value, setValue] = React.useState(''); return ( <Grommet full theme={grommet}> <Box fill align="center" justify="start" pad="large"> ...
app/javascript/mastodon/features/ui/components/column_header.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, ...