path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/case_task_manager.js
uglymugs/JustNUM
import React from 'react'; import ConnectedCaseTaskList from '../containers/connected_case_task_list'; import ConnectedNewTaskForm from '../containers/connected_new_task_form'; const CaseTaskManager = () => <div> <ConnectedNewTaskForm /> <ConnectedCaseTaskList /> </div>; export default CaseTaskManager;
library_js/src/components/logIn.js
HoldYourBreath/Library
import React, { Component } from 'react'; import {FormGroup, Button, Col, Alert, Form, FormControl, ControlLabel} from 'react-bootstrap'; import { Redirect } from 'react-router'; class LogIn extends Component { constructor(props) { super(props); this.stat...
frontend/src/app/containers/ErrorPage.js
6a68/idea-town
import React from 'react'; import View from '../components/View'; export default class ErrorPage extends React.Component { render() { return ( <View spaceBetween={true} showNewsletterFooter={false} {...this.props}> <div className="centered-banner"> <div id="four-oh-four" className="moda...
src/components/common/UserInput/index.js
mcrice123/simple-react-example
import React from 'react'; const UserInput = ({ value, placeholder, onChange, style }) => { return( <input value={value} placeholder={placeholder} onChange={onChange} style={style} /> ); }; export default UserInput;
src/components/LightingAmbient.js
kelsonic/Kelsonic
// Dependencies import 'aframe'; import React from 'react'; const LightingAmbient = () => ( <a-light color="#fff" type="ambient" /> ); export default LightingAmbient;
src/pages/page-2.js
whirish/website
import React from 'react' import { Link } from 'gatsby' import Layout from '../components/layout' const SecondPage = () => ( <Layout> <h1>Hi from the second page</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> </Layout> ) export default SecondPage
addons/centered/src/index.js
shilman/storybook
import React from 'react'; const style = { position: 'fixed', top: 0, left: 0, bottom: 0, right: 0, display: 'flex', alignItems: 'center', justifyContent: 'center', }; export default function(storyFn) { return <div style={style}>{storyFn()}</div>; }
index.ios.js
jefflanzi/rn-app-template
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class appTemplate extends Component { render() { return ( <View style={styles.contain...
src/utils/CustomPropTypes.js
blue68/react-bootstrap
import React from 'react'; import warning from 'react/lib/warning'; import childrenToArray from './childrenToArray'; const ANONYMOUS = '<<anonymous>>'; /** * Create chain-able isRequired validator * * Largely copied directly from: * https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9...
react-components/src/library/components/browse-page/resource-license.js
concord-consortium/rigse
import React from 'react' import Component from '../../helpers/component' const ResourceLicense = Component({ render: function () { const resourceName = this.props.resourceName const license = this.props.license_info const credits = this.props.credits if (!license) { return null } le...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/All.js
facebook/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps: DefaultProps = {}; props: Props; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Componen...
20161118/React-Native-Redux-Demo-master/App/containers/firstPage.js
fengnovo/react-native
'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Navigator, } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Button from 'react-native-button'; import { store } from '../store/index.js'; impor...
src/Main/ChangelogTabTitle.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from 'common/Wrapper'; import CORE_CHANGELOG from '../CHANGELOG'; const SECONDS_IN_DAY = 86400; const DAYS_CONSIDERED_RECENT = 7; class ChangelogTabTitle extends React.PureComponent { static contextTypes = { config: PropTypes.shape(...
src/svg-icons/maps/local-movies.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMovies = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </Svg...
public/javascripts/rubric_assessment.js
djbender/canvas-lms
/* * Copyright (C) 2011 - 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...
react/features/recording/components/Recording/native/HighlightButton.js
jitsi/jitsi-meet
// @flow import React from 'react'; import type { Dispatch } from 'redux'; import { translate } from '../../../../base/i18n'; import { IconHighlight } from '../../../../base/icons'; import { Label } from '../../../../base/label'; import { connect } from '../../../../base/redux'; import BaseTheme from '../../../../bas...
app/js/components/menu/MenuSections.js
lukemarsh/tab-hq-react
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import ReorderMixin from '../../mixins/ReorderMixin'; import NewSection from './NewSection'; import Section from './Section'; import _ from 'lodash'; import SectionActionCreators from '../../actions/SectionActionCreators'; import AppActionCrea...
node_modules/native-base/src/basic/Right.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Right extends Component { render() { return ( <View ref={c => this._root = c} {...this.props} /> ); } ...
src/scene/Home/HomeMenuItem.js
Cowboy1995/JZWXZ
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ //import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, Image, TouchableOpacity } from 'react-native'; import { Heading2 } from '../../widget/Text' import ...
client/src/components/debtorConfirmation.js
CharismaticChard/CharismaticChard
import React from 'react'; import { connect } from 'react-redux'; const mapStateToProps = state => { return { debtors: state.final.debtors, }; }; const mapDispatchToProps = dispatch => { return { }; }; const DebtorConfirmation = ({debtors}) => { var debtorList = debtors.map((debtor, index) => ( <di...
views/components/MainCnt/index.js
KochiyaOcean/www.kochiyaocean.org
import React from 'react' import { CardMedia, CardTitle, CardText } from 'react-toolbox/lib/card' import { Button } from 'react-toolbox/lib/button' import classnames from 'classnames' import faStyle from 'font-awesome/css/font-awesome.css' import avatar from './avatar.svg' import styles from './styles' const MainCnt...
mm-react/src/components/instances/InstanceSpawner.js
Ameobea/tickgrinder
//! Dialog to allow users to spawn new instances. import { connect } from 'dva'; import React from 'react'; import { message, Tooltip, Icon, Select, Button } from 'antd'; const Option = Select.Option; import { getInstance, InstanceShape } from '../../utils/commands'; import MacroManager from '../MacroManager'; import...
src/containers/NotFoundPage/NotFoundPage.js
armaniExchange/wizard
// Style import './_NotFoundPage'; // React & Redux import React, { Component } from 'react'; class NotFoundPage extends Component { render() { return ( <div className="Not-Found-Page"> <h1 className="Not-Found-Page__header">404</h1> <div className="Not-Found-Page__content">The page you are looking for i...
client/routes/PostListView/PostListView.js
chenfanggm/steven-mern-starter-kit
import React from 'react' import PostListContainer from './container/PostListContainer' export const PostListView = () => ( <PostListContainer /> ) export default PostListView
src/pages/Account.js
DIYAbility/Capacita-Controller-Interface
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { PageHeader } from 'react-bootstrap'; class Account extends Component { render() { return ( <div className="page"> <PageHeader>Account</PageHeader> </div> ); } componentDidMount() { this.cha...
blueocean-material-icons/src/js/components/svg-icons/action/perm-phone-msg.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionPermPhoneMsg = (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.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-...
src/Main/ServiceStatus.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const baseStatusUrl = 'https://status.wowanalyzer.com'; const STATUS = { OPERATIONAL: 1, PERFORMANCE_ISSUES: 2, PARTIAL_OUTAGE: 3, MAJOR_OUTAGE: 4, }; class ServiceStatus extends React.PureComponent { static propTypes = { style: PropTypes.o...
client/src/components/Profile/components/PoliticiansListWrapper.js
verejnedigital/verejne.digital
// @flow import React from 'react' import {compose} from 'redux' import {connect} from 'react-redux' import {withRouter} from 'react-router-dom' import {withDataProviders} from 'data-provider' import type {ComponentType} from 'react' import {politiciansProvider} from '../../../dataProviders/profileDataProviders' import...
fields/types/cloudinaryimage/CloudinaryImageColumn.js
dryna/keystone-twoje-urodziny
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var CloudinaryImageColumn = React.createClass({ displayName: 'CloudinaryImageCo...
docs/app/Examples/collections/Menu/States/index.js
jcarbo/stardust
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const States = () => { return ( <ExampleSection title='States'> <ComponentExample title='Hover' descriptio...
src/routes.js
joehua87/redux-universal
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './containers/App' import Counter from './containers/Counter' import Home from './containers/Home' import User from './containers/User' import UserDetail from './containers/UserDetail' import Category from './containers/Categor...
examples/shopping-cart/src/containers/ProductsContainer.js
lifeiscontent/redux
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { addToCart } from '../actions' import { getVisibleProducts } from '../reducers/products' import ProductItem from '../components/ProductItem' import ProductsList from '../components/ProductsList' const ProductsCon...
client/views/Home/User.js
shastajs/boilerplate
import React from 'react' import { PropTypes, connect } from 'shasta' import { Text, Heading, Panel, PanelHeader, Banner, Media } from 'rebass' import actions from 'core/actions' import DataComponent from 'shasta-data-view' @connect({ user: 'api.subsets.user' }) export default class User extends DataComponent { ...
react-notes/src/index.js
wumouren/react-demo
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Container from './container'; import Head from './head'; import One from './one'; import Two from './two'; import Context from './context'; const higher = function(Component,data){ class Higher extends React.Component { con...
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchSelectionTwo.js
vageeshb/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' import { countryOptions } from '../common' // countryOptions = [ { value: 'af', flag: 'af', text: 'Afghanistan' }, ... ] const DropdownExampleMultipleSearchSelectionTwo = () => ( <Dropdown placeholder='Select Country' fluid multiple search sele...
app/javascript/mastodon/features/community_timeline/components/column_settings.js
d6rkaiz/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
app/shared/background-image/BackgroundImage.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React from 'react'; function BackgroundImage({ children, image, height, width, }) { const dimensions = height && width ? `dim=${width}x${height}` : ''; const imageUrl = dimensions ? `${image.url}?${dimensions}` : image.url; const style = imageUrl ? { backgroundImage: ...
src/svg-icons/image/slideshow.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSlideshow = (props) => ( <SvgIcon {...props}> <path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageSlideshow = pure(I...
CompositeUi/src/views/page/organization/AddMember.js
kreta/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import {connect} from 'react-redux'; impo...
src/routes/NotFoundView/NotFoundView.js
robertkirsz/magic-cards-manager
import React from 'react' import { Flex } from 'styled' const NotFoundView = () => ( <Flex> <h1 style={{ margin: '100px auto 0' }}>404 Not Found</h1> </Flex> ) export default NotFoundView
src/svg-icons/action/assignment-ind.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentInd = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 ...
src/js/ui/components/settings/membership/localUser.js
hiddentao/heartnotes
import _ from 'lodash'; import Q from 'bluebird'; import React from 'react'; import Classnames from 'classnames'; import { connectRedux } from '../../../helpers/decorators'; import AttentionIcon from '../../attentionIcon'; import EnableSyncOverlay from './enableSyncOverlay'; import Button from '../../button'; var C...
src/components/Interactive/ServiceNowLink/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import Link from 'components/Interactive/Link' import Config from 'shared/Configuration' const ServiceNowLink = ({ children, isWebContent }) => { let url = `${Config.serviceNowBaseURL}&URL=${window.location}` if (isWebContent) { url += '&lib_list_pro...
system/src/routes/PurchaseOrder/containers/EditPurchaseOrderViewContainer/index.js
axmatthew/react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import purchaseOrderModule from '../../../../modules/purchase-orders'; import EditPurchaseOrderView from '../../components/EditPurchaseOrderView'; import { baseMapStateToProps } from '../../../../common/container-helpers'; class EditPurch...
tests/utils.js
KeywordBrain/redbox-react
import React from 'react' const TestUtils = require('react-addons-test-utils'); export const createComponent = (component, props, ...children) => { const shallowRenderer = TestUtils.createRenderer() shallowRenderer.render(React.createElement(component, props, children.length > 1 ? children : children[0])) return...
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SvgComponent.js
facebookincubator/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { ReactComponent as Logo } from './assets/logo.svg'; const SvgComponent = () => { return <Logo id="...
app/javascript/mastodon/features/ui/components/column_loading.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Column from '../../../components/column'; import ColumnHeader from '../../../components/column_header'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class ColumnLoading extends ImmutablePureComponent { stat...
server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.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...
Libraries/Image/Image.ios.js
Ehesp/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...
src/routes/catalog/index.js
LeraSavchenko/Maysternia
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/components/Profile.js
kakapo2016-projects/tooth-and-pail
import React from 'react' import cookie from 'react-cookie' // display components import NavBar from './NavBar' import Header from './Header' import HBar from './HBar' import ProfilePhoto from './ProfilePhoto' import ProfileName from './ProfileName' import ProgressBar from './ProgressBar' import DonateForm from './Don...
src/js/components/TwitToServe/partial/EmailNotification.js
ajainsyn/project
import React from 'react'; import emailNotification from '../../../../assets/images/email-notification.jpg'; const EmailNotification = ({...props}) => ( <section className="section bg-blue" id="emailNotification"> <div className="container"> <div className="row align-items-center"> ...
src/modules/editor/components/popovers/addTooltip/AddTooltipMenu/AddImageButton/AddImageButton.js
CtrHellenicStudies/Commentary
import React from 'react'; import autoBind from 'react-autobind'; import { connect } from 'react-redux'; // redux import editorActions from '../../../../../actions'; // components import AddTooltipMenuItemButton from '../../AddTooltipMenuItemButton'; // lib import addNewBlock from '../../../../../lib/addNewBlock'; ...
src/DropdownMenu.js
dongtong/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
app/javascript/mastodon/features/status/components/card.js
rainyday/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; import classnames from 'classnames'; import Icon from 'mastodon/components/icon'; const IDNA_PREFIX = 'xn--'; const decodeIDNA ...
src/js/ui/components/settings/topMenu.js
hiddentao/heartnotes
import _ from 'lodash'; import React from 'react'; import Classnames from 'classnames'; import { connectRedux, routing } from '../../helpers/decorators'; import Button from '../button'; import AttentionIcon from '../attentionIcon'; import TabMenu from '../tabMenu'; var Component = React.createClass({ propTypes: ...
test/integration/getserversideprops/pages/catchall/[...path].js
JeromeFitz/next.js
import React from 'react' import Link from 'next/link' import { useRouter } from 'next/router' export async function getServerSideProps({ params }) { return { props: { world: 'world', params: params || {}, time: new Date().getTime(), random: Math.random(), }, } } export default ({ ...
index/components/SemanticQuery.js
JDRomano2/VenomKB
import React from 'react'; import { Button, Form, FormGroup, FormControl, ControlLabel, } from 'react-bootstrap'; class DeclareField extends React.Component { constructor(props) { super(props); } render() { return ( <div id='declare-box'> <FormGroup controlId="testing"> ...
src/components/user-list/user-list.js
DmitriyRelkin/redux-study
import React from 'react'; export default class extends React.Component { constructor(props) { super(props); } render() { return ( <div> <ul className='user-list'> {this.props.data.length ? (this.props.data.map((user, i) ...
test/unit/resources/individual/resource-test.js
travi/admin.travi.org-components
import React from 'react'; import Helmet from 'react-helmet'; import {string} from '@travi/any'; import {assert} from 'chai'; import {shallow} from 'enzyme'; import PageLoading from '../../../../src/atoms/loading-indicators/page'; import {Resource} from '../../../../src/main'; suite('resource component test', () => ...
client/index.js
bayareawebdevs/note-keeper
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './components/Root'; require('../static/css/style.scss'); ReactDOM.render(<Root />, document.getElementById('root'));
server/middleware/reactMiddleware.js
Moises404/Vimeo-React
import {RouterContext, match} from 'react-router' import {Provider} from 'react-redux' import React from 'react' import configureStore from '../../client/store/configureStore' import createLocation from 'history/lib/createLocation' import {fetchFire, setClient} from '../../client/actions/AppActions' import {renderToStr...
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleUncontrolled.js
aabustamante/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const options = [ { key: 1, text: 'One', value: 1 }, { key: 2, text: 'Two', value: 2 }, { key: 3, text: 'Three', value: 3 }, ] const DropdownExampleUncontrolled = () => ( <Dropdown selection options={options} placeholder='Choos...
app/components/error.js
Goodly/TextThresher
import React, { Component } from 'react'; export default class NotFoundRoute extends Component { constructor(props) { super(props); } render() { return ( <div className='item'> <div className='404-message canvas-text'> <h1> Something went wrong... </h1> ...
src/components/Page/Page.js
takahashik/todo-app
/** * 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 PropTypes from 'prop-...
app/assets/scripts/components/Image/index.js
bartoszkrawczyk2/curves.js
import React, { Component } from 'react'; import { applyCurves } from '../../core'; import './style.scss'; class ImageView extends Component { componentDidMount() { let img = new Image(); img.onload = () => { this.props.loadPhoto(img, this.props.image.renderCanvas, this.props.i...
src/App/Containers/Index.js
focuswish/scheduletext
import React from 'react' import Layout from '../Components/Layout' import Input from '../Components/Input' import Btn from '../Components/Btn' import moment from 'moment' import { SingleDatePicker } from 'react-dates'; require('isomorphic-fetch') class Index extends React.Component { constructor(props) { supe...
ui/src/components/denali/NavBarItem.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * 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 t...
client/components/Comments.js
dimitardanailov/reduxstagram
import React from 'react'; const Comments = React.createClass({ renderComment(comment, i) { return ( <div className="comment" key={i}> <p> <strong>{comment.user}</strong> {comment.text} <button className="remove-comment" onClick={this.props.removeComment.bind(null, this.props.params.pos...
src/components/Work/Work.js
GJMcGowan/personal_site
import React, { Component } from 'react'; class Work extends Component { render() { return ( <div className='multibox-container-top'> <div className='col-xs-8 col-xs-offset-2 multibox-container'> <p>I make websites, this is one of them</p> <p>To find more examples of my work, go...
src/client/routes/Viewer/components/ViewerView.js
jaimerosales/visual-reports-bim360dc
import { ReflexContainer, ReflexElement, ReflexSplitter } from 'react-reflex' import ContextMenuExtensionId from 'Viewing.Extension.ContextMenu' import DualExtensionId from 'Viewing.Extension.DualViewer' import PieExtensionId from 'Viewing.Extension.PieChart' import BarExtensionId from 'Viewing.Extension.BarChar...
src/svg-icons/image/flash-off.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashOff = (props) => ( <SvgIcon {...props}> <path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/> </SvgIcon> ); ImageFlashOff = pure(ImageFlashOf...
src/form/createForm.js
aulamber/generic-react-form
/* A FAIRE 1) Ajouter linter 2) Enregistrer un état pristine de la data 3) Proposer de mettre la data à zéro 4) faire un composant de select + checkbox + textarea + radio/radiogroup + number + range (+ email ?) (moins important): email, url, date, color, time 5) Remettre dans l'ordre alpha tous les noms de variables +...
loader/index.js
grantila/node-pure-jsx
'use strict'; const loaderUtils = require( 'loader-utils' ); function isSourceCodeFile( source ) { source = source.trim( ); while ( source.startsWith( '/' ) ) { if ( source.startsWith( '/*' ) ) source = source.substr( source.indexOf( '*/' ) + 2 ).trim( ); else source = source.substr( source.indexOf( '\n'...
app/screen/HomePage.js
daskinnyman/electron-QA
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
components/User/UserNotificationsPanel/UserNotificationsPanel.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import {connectToStores} from 'fluxible-addons-react'; import {navigateAction} from 'fluxible-router'; import UserNotificationsStore from '../../../stores/UserNotificationsStore'; import UserProfileStore from '../../../stores/UserProfileStore'; import UserF...
src/app/components/list/Order.js
cherishstand/OA-react
import React from 'react'; import {Link, browserHistory} from 'react-router'; import {List, ListItem, MakeSelectable} from 'material-ui/List'; import { Router, Route, hashHistory } from 'react-router'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import ArrowBaclIcon from 'm...
app/jsx/custom_help_link_settings/CustomHelpLinkIcons.js
venturehive/canvas-lms
/* * Copyright (C) 2016 - 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...
pages/illustrations/jewel/index.js
DarcyChan/darcychan.com
import React from 'react'; import { Artwork } from 'components/artwork'; import { PageContent } from 'components/page'; import { Image } from 'components/common'; /* eslint-disable quotes */ exports.data = { id: 2, path: `/illustrations/jewel/`, category: `illustration`, type: `artwork`, preview: ...
src/svg-icons/image/healing.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHealing = (props) => ( <SvgIcon {...props}> <path d="M17.73 12.02l3.98-3.98c.39-.39.39-1.02 0-1.41l-4.34-4.34c-.39-.39-1.02-.39-1.41 0l-3.98 3.98L8 2.29C7.8 2.1 7.55 2 7.29 2c-.25 0-.51.1-.7.29L2.25 6.63c-...
src/svg-icons/communication/message.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationMessage = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Commun...
src/svg-icons/communication/contacts.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContacts = (props) => ( <SvgIcon {...props}> <path d="M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s...
app/components/FormContainer.js
ahang/ContentClub
// ---------------------------- // import dependencies // ---------------------------- import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Redirect } from "react-router-dom"; import helpers from "../utils/helpers" class FormContainer extends Component { constructor(props) { supe...
fields/types/geopoint/GeoPointFilter.js
benkroeger/keystone
import React from 'react'; import { FormField, FormInput, Grid, SegmentedControl, } from '../../../admin/client/App/elemental'; const DISTANCE_OPTIONS = [ { label: 'Max distance (km)', value: 'max' }, { label: 'Min distance (km)', value: 'min' }, ]; function getDefaultValue () { return { lat: undefined, l...
src/pages/contact.js
clarkcarter/clark-carter
import React from 'react' export default () => <div> <h1>Get in touch</h1> <p> <a href="mailto:clark@clarkcarter.com">clark@clarkcarter.com</a> </p> </div>
app/javascript/mastodon/features/ui/components/drawer_loading.js
Nyoho/mastodon
import React from 'react'; const DrawerLoading = () => ( <div className='drawer'> <div className='drawer__pager'> <div className='drawer__inner' /> </div> </div> ); export default DrawerLoading;
pootle/static/js/auth/components/SocialVerification.js
Yelp/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle 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 assign from 'object-assign'; import React from 'rea...
src/components/NotFoundPage.js
pagepress/pagepress
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;
assets/jqwidgets/demos/react/app/scheduler/worktime/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { render () { // prepare the data let source = { dataType: 'json', dataFields: [ ...
src/components/Become_a_partner.js
RicardoG2016/WRFD-project-site
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import '../App.css'; class Become_a_partner extends Component { componentDidMount(){ window.scrollTo(0, 0); } render() { return ( <div id="contact"> <div className="row"> <div className="c...
app/addons/replication/route.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/components/event_page/event_details/participant.js
decaster3/hikester_redux
import React from 'react'; import FontAwesome from 'react-fontawesome'; export default class Participant extends React.Component { constructor(props) { super(props); this.state = { }; } render() { let display_style = this.props.show ? 'inline-block' : 'none'; return ( <a cla...
src/pages/eternal-archives/fiction/the-small-village-tavern/index.js
jumpalottahigh/blog.georgi-yanev.com
import React from 'react' import { Link } from 'gatsby' import { Helmet } from 'react-helmet' import Layout from '../../../../components/structure/layout' const TheSmallVillageTavernPage = () => ( <Layout> <Helmet title="The small village tavern - Warcraft Fiction" /> <section> <h1>The small village t...
packages/icons/src/md/communication/StayCurrentPortrait.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdStayCurrentPortrait(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M33.98 2.02c2.21 0 4 1.77 4 3.98v36c0 2.21-1.79 4-4 4h-20C11.77 46 10 44.21 10 42V6c0-2.21 1.77-4 3.98-4l20 .02zm0 35.98V10h-20v28h20z" /...
test/integration/static/pages/counter.js
callumlocke/next.js
import React from 'react' import Link from 'next/link' let counter = 0 export default class Counter extends React.Component { increaseCounter () { counter++ this.forceUpdate() } render () { return ( <div id='counter-page'> <div> <Link href='/'> <a id='go-back'>Go...
client-src/components/pager/PagerButtonsThreePane.js
minimus/final-task
import React from 'react' import propTypes from 'prop-types' import PagerButton from './PagerButton' export default function PagerButtonsThreePane({ base, category, page, pages }) { const pagesArrayFirst = [1, 2, 3] const pagesArrayMiddle = [page - 1, page, page + 1] const pagesArrayLast = [pages - 2, pages - 1,...
spec/javascripts/jsx/gradebook/default_gradebook/GradebookGrid/editors/TotalGradeOverrideCellEditor/ReadOnlyCellSpec.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...
example/src/screens/types/Drawer.js
MattDavies/react-native-navigation
import React from 'react'; import { StyleSheet, View, Text } from 'react-native'; class MyClass extends React.Component { render() { return ( <View style={styles.container}> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, wi...
hub-ui/src/app/routes.js
lchase/hub
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import { routerActions } from 'react-router-redux' import App from './App'; import Content from '../components/layout/Content'; import PublicPage from '../components/layout/PublicPage'; import DashboardContainer from '../dashboard/components/...
app/js/components/HomeButton.js
blockstack/blockstack-portal
import React from 'react' import { Link } from 'react-router' const HomeButton = () => ( <Link to="/"> <div className="btn-home-button"> ‹ Home </div> </Link> ) export default HomeButton