path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/pages/404.js
FCCManila/blog
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/index.js
asarode/times-im-free
'use strict' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './containers/App' import configureStore from './store' const store = configureStore() render( <Provider store={store}> <App/> </Provider>, document.getElementById('root') )
www/ui/styling/min-width.js
ForbesLindesay/cabbie
import React from 'react'; import styled from 'styled-components'; const MinWidth = styled.span` display: none; @media(min-width: ${props => props.minWidth}px) { display: inline; } `; export default MinWidth;
client/modules/Search/__tests__/components/PostListItem.spec.js
sethkaufee/TherapyApp
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
dcc-submission-ui/src/Report/Report.js
icgc-dcc/dcc-submission
import React, { Component } from 'react'; import {observable} from 'mobx'; import {observer} from 'mobx-react'; import Status from '~/common/components/Status'; import ReportModel from './ReportModel'; import DetailedReport from './DetailedReport/DetailedReport'; import ErrorReport from './ErrorReport/ErrorReport'; ...
app/components/channel-creator.js
ForbesLindesay/chat-example
'use strict'; import React, { Component } from 'react'; import connect from '../../bicycle/connect'; @connect( props => undefined, ({set, remove}) => ( { createChannel(id, name) { return set('channels', id, {id, name}); } } ) ) export default class ChannelSelector extends Component{ ...
Redux-Weather/src/components/app.js
vivekbharatha/ModernReactWithReduxCourseUdemy
import React, { Component } from 'react'; import SearchBar from './../containers/searchBar'; import WeatherList from './../containers/weatherList'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
admin/client/App/shared/Portal.js
concoursbyappointment/keystoneRedux
/** * Used by the Popout component and the Lightbox component of the fields for * popouts. Renders a non-react DOM node. */ import React from 'react'; import ReactDOM from 'react-dom'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, // eslint-disable-line react/sort-comp compone...
docs/src/components/navigation.js
Cadasta/django-skivvy
import React from 'react'; import PureRenderMixin from 'react-pure-render/mixin'; import NavigationItem from './navigation_item'; import { footerContent } from '../custom'; function getAllInSectionFromChild(headings, idx) { for (var i = idx; i > 0; i--) { if (headings[i].depth === 2) { return getAllInSecti...
examples/good-times/components/GoodTimes.js
loggur/react-redux-provide
import React from 'react'; import PropTypes from 'prop-types'; const GoodTimes = ({ list, pushItem, setRoll, roll }) => ( <div className="good-times"> <div style={{ marginBottom: 20, fontStyle: 'italic' }}> The state of your store(s) will be replicated to local storage so that it persists when you refresh....
docs/pages/blog/may-2019-update.js
lgollut/material-ui
import React from 'react'; import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'blog/may-2019-update'; const requireRaw = require.context('!raw-loader!./', false, /may-2019-update\.md$/); export default fun...
YEAR 3/SEM 1/MOBILE/non-native/PhotoReact/screens/lesson/submission/AddSubmission.js
Zephyrrus/ubb
import React from 'react'; import { Button, Image, View } from 'react-native'; import { ImagePicker } from 'expo'; export default class AddSubmission extends React.Component { state = { image: null, }; render() { let { image } = this.state; return ( <View style={{ flex: 1, alignItems: 'center...
client/src/components/loading-indicator/index.js
quru/wagtail
import React from 'react'; const LoadingIndicator = () => <div className="o-icon c-indicator is-spinning"> <span ariaRole="presentation">Loading...</span> </div>; export default LoadingIndicator;
src/utils/create-test-component.js
connorbanderson/CoinREXX
import React from 'react'; import { findRenderedComponentWithType, renderIntoDocument } from 'react-dom/test-utils'; export function createTestComponent(TestComponent, props) { return findRenderedComponentWithType( renderIntoDocument(<TestComponent {...props}/>), TestComponent ); }
src/components/DownloadButton.js
shockry/editest
import React, { Component } from 'react'; import downloadIcon from '../icons/downloadIcon.svg'; class DownloadButton extends Component { constructor(props) { super(props); this.downloadImage = this.downloadImage.bind(this); this.downloadCanvasBlob = this.downloadCanvasBlob.bind(this); this.revokeURL = t...
src/svg-icons/notification/airline-seat-legroom-normal.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomNormal = (props) => ( <SvgIcon {...props}> <path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1....
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
theBru/llc-prototypes
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
js/Search.js
michael-mclaughlin/myFirstReactApp-2017
import React from 'react' import ShowCard from './ShowCard' const { arrayOf, shape, string } = React.PropTypes const Search = React.createClass({ propTypes: { shows: arrayOf(shape({ title: string, description: string })) }, getInitialState () { // ES6 no need to type the word 'function' it'...
app/components/PictogramSnippet/Item.js
juanda99/arasaac-frontend
/** * * Item * */ import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' class Item extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function static propTypes = { url: PropTypes.string.isRequired, children: PropTypes.node } render()...
public/js/components/comments/CommentBox.react.js
IsuruDilhan/Coupley
import React from 'react'; import CommentAction from '../../actions/ActivityFeed/CommentAction'; import CommentList from './CommentList.react'; import CommentForm from './CommentForm.react'; var CommentBox = React.createClass({ render: function() { return ( <div> <CommentList /> </div> )...
lib/cli/test/snapshots/react_native_scripts/storybook/stories/Welcome/index.js
rhalff/storybook
import React from 'react'; import { View, Text } from 'react-native'; import PropTypes from 'prop-types'; export default class Welcome extends React.Component { styles = { wrapper: { flex: 1, padding: 24, justifyContent: 'center', }, header: { fontSize: 18, marginBottom: 18,...
src/main.js
diMosellaAtWork/GeoWeb-FrontEnd
import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './store/createStore'; import routesDefinition from './routes'; import 'font-awesome/css/font-awesome.css'; // ======================================================== // Render Setup // ===============================================...
assets/frontpage/articles/containers/ArticlesContainer.js
dotKom/onlineweb4
import React, { Component } from 'react'; import Articles from '../components/Articles'; const apiArticlesToArticles = article => ({ articleUrl: article.absolute_url, ingress: article.ingress_short, heading: article.heading, image: article.image, }); class ArticlesContainer extends Component { constructor...
app/components/EditorTalo/index.js
Zurico/t7
// MIT: FormidableLabs/component-playground import React from 'react'; import ReactDOM from 'react-dom'; import TextPanel from 'components/TextPanel'; import CommandPanel from 'components/CommandPanel'; import styles from './styles.css'; //import * as sdk from 'sdk'; //rx, ramda, superagent, evetnsource, url, events, l...
app/js/components/content/NewSectionComponent.js
theappbusiness/tab-hq
'use strict'; import React from 'react'; import ComponentActionCreators from '../../actions/ComponentActionCreators'; require('../../../styles/NewSectionComponent.sass'); const NewSectionComponent = React.createClass({ getInitialState() { return { sectionComponentSelectorVisible: false, plusButton...
src/svg-icons/editor/format-list-numbered.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListNumbered = (props) => ( <SvgIcon {...props}> <path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/...
docs/index.js
zorahrel/styled-grid
import React from 'react'; import { render } from 'react-dom'; import Samples from './samples'; render( React.createElement(Samples), document.querySelector('#root'));
src/svg-icons/social/sentiment-very-dissatisfied.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVeryDissatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8...
src/svg-icons/av/featured-play-list.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedPlayList = (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 8H3V9h9v2zm0-4H3V5h9v2z"/> </SvgIcon> ); AvFeaturedPlayList = pu...
client/src/components/IssueStatus/LastVotes/index.js
dotkom/super-duper-fiesta
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { voteWithNameSelector } from 'features/lastVotes/selectors'; import { activeIssueExists, getOwnVote, getIssueKey } from 'features/issue/selectors'; import css from './LastVotes.css'; const LastVotes = ({ votes...
lib/components/tab.js
spncrgr/hyper
import React from 'react'; import Component from '../component'; export default class Tab extends Component { constructor() { super(); this.handleHover = this.handleHover.bind(this); this.handleBlur = this.handleBlur.bind(this); this.handleClick = this.handleClick.bind(this); this.state = { ...
src/containers/Home/Home.js
erikras/react-redux-universal-hot-example
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; import config from '../../config'; import Helmet from 'react-helmet'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // req...
src/components/passphrase/passphraseVerifier.js
slaweet/lisk-nano
import React from 'react'; import Input from 'react-toolbox/lib/input'; import grid from 'flexboxgrid/dist/flexboxgrid.css'; import styles from './passphrase.css'; class PassphraseConfirmator extends React.Component { constructor() { super(); this.state = { passphraseParts: [], }; } componentD...
app/pages/ActivateAccount/ActivateAccount.js
danielzy95/oaa-chat
import React from 'react' import { Link } from 'react-router' import { ActivateAccountForm } from '../../components' import { LANDING } from '../../components/Routes' import IconButton from 'material-ui/IconButton' const ActivateAccount = () => ( <div> <Link to={LANDING}> <IconButton iconClassName="material-icon...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
mimumemo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, unmuteAccount, pinAccount, unpinAccount, } from '../../../actions/account...
app/components/common/empty-state/index.js
Vizzuality/forest-watcher
// @flow import React, { Component } from 'react'; import { Image, View, Text } from 'react-native'; import styles from './styles'; type Props = { actionTitle: string, body: string, icon: number, onActionPress: () => void, title: string }; export default class EmptyState extends Component<Props> { rende...
senic_hub/setup_app/components/SetupWelcome.js
grunskis/senic-hub
import React from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import { isEmulator } from 'react-native-device-info'; import { Button } from 'react-native-elements'; import Screen from './Screen.js'; export default class SetupWelcome extends Screen { constructor(props) { super(props) ...
src/containers/CourseContainer.js
blwoosky/DigCSS-Theme-v4-Redesign
import React, { Component } from 'react'; import { Link,browserHistory } from 'react-router'; import Course from "./../components/Course"; import { connect } from "react-redux"; import { getCourse } from "./../actions"; import { animateScroll } from 'react-scroll'; class CourseContainer extends Component { con...
app/javascript/flavours/glitch/features/ui/components/embed_modal.js
vahnj/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage, injectIntl } from 'react-intl'; import api from 'flavours/glitch/util/api'; @injectIntl export default class EmbedModal extends ImmutablePureComponent { stat...
src/LoadEarlier.js
Chatnbook/react-native-gifted-chat
import PropTypes from 'prop-types'; import React from 'react'; import { ActivityIndicator, Platform, StyleSheet, Text, TouchableOpacity, View, ViewPropTypes, } from 'react-native'; export default class LoadEarlier extends React.Component { renderLoading() { if (this.props.isLoadingEarlier === false...
server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.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...
node_modules/react-router/es6/RoutingContext.js
Jaime691/ReactTube
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
techCurriculum/ui/solutions/5.3/src/components/User.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
client/components/annotators/text-annotator/text-annotator.js
CommonActionForum/liqen-face
/* global document */ /** * Le Grand Annotator * * Inputs * - Array of tags * * Callbacks * - onAnnotate() - Create an annotation (tag + target) */ import React from 'react' import PropTypes from 'prop-types' import SelectionHandler from './selection-handler' import Tooltip from './tag-tooltip' export defau...
src/client/components/SignIn.js
josh--newman/blog
import React from 'react'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import styles from './SignIn.css'; import { Gravatar } from './Shared'; import { Loading } from './Shared'; const authenticate = gql` mutation authenticate($email: String!, $password: String!) { generateToken(email:...
src/components/ListBox/ListBoxMenuItem.js
jzhang300/carbon-components-react
import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; /** * `ListBoxMenuItem` is a helper component for managing the container class * name, alongside any classes for any corresponding states, for a generic list * box menu item. */ const ListBoxMenuItem = ({ children, isActive...
src/client.js
pirosikick/fluxible-app-example
'use strict'; import React from 'react'; import app from './app'; var context = app.createContext(); React.render(app.getAppComponent()({}), document.body);
src/components/CardGroup/card-group.js
hungtruongquoc/shipper_front
import React, { Component } from 'react'; class CardGroup extends Component { render() { return ( <div className="card-group"> {this.props.children} </div> ) } } export default CardGroup;
src/index.js
economist-components/component-loading
import Delay from 'react-delay'; import React from 'react'; import PropTypes from 'prop-types'; export default class Loading extends React.Component { shouldComponentUpdate() { return false; } render() { const extraClassNames = this.props.className ? this.props.className.split(/\s+/g) : []; const el...
packages/ringcentral-widgets-docs/src/app/pages/Components/RecentActivityPanel/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
fields/types/color/ColorColumn.js
wustxing/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var ColorColumn = React.createClass({ displayName: 'ColorColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obje...
src/components/add-tag-modal/index.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) 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 License, o...
tests/react_native_tests/test_data/native_code/Scrollview/app/components/Artboard/component.js
ibhubs/sketch-components
/** * @flow */ import React from 'react' import PropTypes from 'prop-types' import { observer } from 'mobx-react/native' import styles from './styles' import UserConnect_1 from '../UserConnect_1' import UserConnect_2 from '../UserConnect_2' import UserConnect_3 from '../UserConnect_3' import UserConnect_4 from '../...
src/js/components/icons/base/CaretBack.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/Header/Header.js
zuban/edhunter
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
app/javascript/mastodon/components/status_list.js
nonoz/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ScrollContainer } from 'react-router-scroll'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import LoadMore from './load_more'; import ImmutablePureComponent from 'react-im...
src/svg-icons/device/wifi-lock.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWifiLock = (props) => ( <SvgIcon {...props}> <path d="M20.5 9.5c.28 0 .55.04.81.08L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l12 16 3.5-4.67V14.5c0-2.76 2.24-5 5-5zM23 16v-1.5c0-1.38-1.12-2.5-2.5-2.5S18 13....
Realization/frontend/czechidm-core/src/content/form/FormProjectionIdentities.js
bcvsolutions/CzechIdMng
import React from 'react'; import _ from 'lodash'; // import * as Basic from '../../components/basic'; import { IdentityManager } from '../../redux'; import SearchParameters from '../../domain/SearchParameters'; import IdentityTableComponent, { IdentityTable } from '../identity/IdentityTable'; /** * Identities with s...
app/assets/scripts/views/app.js
developmentseed/blue-pencil
'use strict'; import React from 'react'; var App = React.createClass({ displayName: 'App', propTypes: { dispatch: React.PropTypes.func, children: React.PropTypes.object }, render: function () { return ( <div> <header className='site-header' role='banner'> <div className='i...
app/components/LibraryComponents/LibraryItem.js
MPDL/LabCam
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { View, TouchableOpacity, StyleSheet } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import EntypoIcon from 'react-native-vector-icons/Entypo'; import { SmallText } from '../../common/CamText'; export ...
dva/wd/src/routes/User/ModifyPage.js
imuntil/React
import React from 'react'; import { connect } from 'dva'; import { WhiteSpace, WingBlank, Toast } from 'antd-mobile' import ZInput from '../../components/Form/ZInput.js' import { regexp, formatPhone } from '../../services/ct' import { modifyPassword } from '../../services/user' import MissData from '../../components/Er...
src/native/app/App.js
VigneshRavichandran02/3io
/* @flow */ import type { State } from '../../common/types'; import Menu from './Menu'; import Page from './Page'; import R from 'ramda'; import React from 'react'; import SideMenu from 'react-native-side-menu'; import start from '../../common/app/start'; import { Container } from './components'; import { Match, Redire...
src/Popover.js
pivotal-cf/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
src/svg-icons/action/accessibility.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility = pure(ActionAccessib...
js/components/History/index.js
hz47/expensesApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, Button, Icon, Footer, FooterTab, InputGroup, Input, ListItem, Badge } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import { replaceRoute, popRoute, replaceOrPush...
src/svg-icons/image/photo-size-select-actual.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectActual = (props) => ( <SvgIcon {...props}> <path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/> </SvgIcon> ); ImagePhotoSiz...
src/basic/Checkbox.js
sampsasaarela/NativeBase
import React, { Component } from 'react'; import { TouchableOpacity, Platform } from 'react-native'; import IconNB from 'react-native-vector-icons/Ionicons'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; import variable from '../theme/variabl...
app/index.js
rpoitras/react-universal
import 'babel-polyfill' import ReactDOM from 'react-dom' import React from 'react' import injectTapEventPlugin from 'react-tap-event-plugin' import { AppContainer } from 'react-hot-loader' import store, { history } from './store' import Root from './components/Root' import '../style/common.css' // Needed for onTouc...
src/components/ListItem.js
jcmnunes/josenunesxyz
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import LinkButton from './LinkButton'; const StyledListItem = styled.li` margin-bottom: 32px; list-style: none; position: relative; &:before { content: ''; width: 8px; height: 8px; background...
site/components/StaticHTMLBlock.js
hiddentao/react-dnd
import React from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas separated by Markdown <hr>s into ...
examples/src/components/States.js
alanrubin/react-select
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var StatesField = React.createClass({ displayName: 'StatesField', propTypes: { label: React.PropTypes.string, searchable: React.PropTypes.bool, }, getDefaultProps () { return { label: 'States:', sea...
examples/cra-storybook/src/stories/Button.js
nfl/react-storybook
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ import PropTypes from 'prop-types'; import React from 'react'; const buttonStyles = { border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3px 10px',...
app/javascript/flavours/glitch/components/relative_timestamp.js
vahnj/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' }, minutes: { id: 'relat...
app/src/components/Loader.js
GetStream/Winds
import React from 'react'; import PropTypes from 'prop-types'; import { Img } from 'react-image'; import LoaderIcon from '../images/loaders/default.svg'; const Loader = ({ defaultLoader, radius }) => defaultLoader ? ( <div className="loader"> <Img src={LoaderIcon} /> </div> ) : ( <div className="loader-rol...
src/routes/gallery/index.js
malinowsky/dataroot_03
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
fields/types/cloudinaryimage/CloudinaryImageFilter.js
concoursbyappointment/keystoneRedux
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var CloudinaryImageFilter = React.createClass({ propTypes:...
src/js/components/icons/base/VolumeLow.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/javascript/mastodon/components/load_more.js
amazedkoumei/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...
react/src/components/Models/FullPages/FullWorks.js
museumary/Museumary
/* FullWorks Component that combines multiple components into a single full Page based on the specific model. */ import React from 'react'; import Page from './Page'; import FullPage from 'containers/FullPage'; import PageLoader from 'containers/PageLoader' import { WorksFilter } from 'components/Filters' impo...
js/rendererjs/statusbar.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' import { hot } from 'react-hot-loader' // -- helper functions -- // currentEstimatedHeight returns the estimated block height for the current time. const currentEstimatedHeight = () => { const knownBlockHeight = 100e3 const knownBlockTime = new Date(149...
app/components/Header/index.js
pasangsherpa/memenshare-ui
import React, { Component } from 'react'; import { Link } from 'react-router'; export class Header extends Component { render() { return ( <header> <Link to="/" activeClassName="" title="Memenshare"> <span styleName="brand">Memenshare</span> </Link> </header> ); } }
docs/app/Examples/modules/Dropdown/Content/DropdownExampleIcon.js
clemensw/stardust
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleIcon = () => ( <Dropdown text='Filter' floating labeled button className='icon'> {/* <i class="filter icon"></i> */} <Dropdown.Menu> <Dropdown.Header icon='tags' content='Filter by tag' /> <Dropdown.Divide...
src/components/TodoList.js
Lenousek/Helsinki
import React from 'react'; import Todo from './Todo'; const TodoList = props => { const {todos, onRemove, onToggle} = props; console.log(props, "somtehing"); return ( <ul> {todos.map((todo,i) => { return( <Todo ...
packages/cf-component-tooltip/example/basic/component.js
mdno/mdno.github.io
import React from 'react'; import { TooltipRegion, Tooltip } from 'cf-component-tooltip'; const TooltipComponent = () => ( <div> <TooltipRegion> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti ipsam {' '} <a href="#" title="Title of link">nice link</a> ...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
codl/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...
tests/react_children/view.js
JonathanUsername/flow
// @flow import React from 'react'; type ReactNodeWithoutString = | void | null | boolean | React$Element<any> | Array<ReactNodeWithoutString>; // NOTE: This is intentionally `Array<T>` and // not `Iterable<T>` because `strings` are // `I...
src/universalRouter.js
knowbody/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from './views/createRoutes'; import { Provider } from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export func...
packages/wix-style-react/src/ImageViewer/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, columns, divider, example, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import * as examples from './examples'; import ImageView...
shared/components/DemoApp/Error404/index.js
sergiokopplin/react-universally
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Error404 extends Component { componentWillMount() { const { staticContext } = this.props; if (staticContext) { staticContext.missed = true; } } render() { return <div>Sorry, that page was not found.</div>; ...
modules/Link.js
nottombrown/react-router
import React from 'react' import warning from 'warning' const { bool, object, string, func } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } function isEmptyObject(obj...
eventkit_cloud/ui/static/ui/app/components/icons/IrregularPolygon.js
terranodo/eventkit-cloud
import React from 'react'; import createSvgIcon from '@material-ui/icons/utils/createSvgIcon'; export default createSvgIcon(( <> <path d="M20.4,19.6c-0.1,0-0.1-0.1-0.2-0.1l-0.3-7.4c0.6-0.3,1-1,1-1.8c0-1.1-0.9-1.9-2-1.9c-0.2,0-0.3,0-0.4,0.1L13,3.4 c0.1-0.2,0.1-0.5,0.1-0.7c0-1.1-0.9-1.9-2-1.9c-1.1,0-...
vendor/htmlburger/carbon-fields/assets/js/fields/components/rich-text/index.js
FolsomCreative/storynav
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, setStatic } from 'recompose'; import { isString } from 'lodash'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import RichTextEditor from 'fields/com...
src/components/Burger/Burger.js
aos2006/tesDeploy
import React from 'react'; import BurgerClose from '-!babel-loader!svg-react-loader!./icons/burger-close.svg?name=BurgerClose'; import BurgerShow from '-!babel-loader!svg-react-loader!./icons/burger-show.svg?name=BurgerShow'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import cx from 'classnames'; ...
src/components/Main.js
Wobugaosuni/galleryByReact
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; import ReactDOM from 'react-dom'; import ImgFigure from './imgPos'; import ControllerUnits from './controllerUnits'; import { getRangeRandom, get30DegRandom } from './function'; //获取图片相关数据 let imageDatas = require('../data/i...
app/index.js
L-A/Little-Jekyll
import React from 'react'; import { render } from 'react-dom'; import UI from './components/UI.js'; import css from './assets/css/style.scss'; render( <UI />, document.getElementById('root') );
src/parser/shared/modules/items/bfa/raids/crucibleofstorms/TridentOfDeepOcean.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { calculatePrimaryStat } from 'common/stats'; import { formatNumber, formatPercentage } from 'common/format'; import ITEMS from 'common/ITEMS/index'; import SPELLS from 'common/SPELLS/index'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parse...
src/routes/error/index.js
102010cncger/antd-admin
import React from 'react' import { Icon } from 'antd' import styles from './index.less' const Error = () => (<div className="content-inner"> <div className={styles.error}> <Icon type="frown-o" /> <h1>404 Not Found</h1> </div> </div>) export default Error
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter-center-focus.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilterCenterFocus = (props) => ( <SvgIcon {...props}> <path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-...
docs/app/Examples/collections/Breadcrumb/Variations/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const BreadcrumbVariationsExamples = () => ( <div> <ExampleSection title='Variations'> <ComponentExample title='Siz...
src/components/Error.js
hedgepigdaniel/gnomocracy
import React from 'react' import { notFound } from '../css/Switcher' export default error => <div className={notFound}> ERROR: {error.message} </div>