path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
apps/shared/form/Datefield.js
AusDTO/dto-digitalmarketplace-frontend
/* eslint-disable react/jsx-no-bind */ import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { actions } from 'react-redux-form' import format from 'date-fns/format' import get from 'lodash/get' import styles from './Datefield.scss' class Datefield extends React.Com...
docs/app/Components/LayoutsRoot.js
shengnian/shengnian-ui-react
import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import * as Layouts from '../Layouts' const LayoutsRoot = (props) => { const name = _.get(props, 'match.params.name') const layoutName = `${_.startCase(name).replace(/ /g, '')}Layout` const Layout = Layouts[layoutName] return...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
pierreburton91/jokz-project
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'));
fall-colors/components/default/slideshow.js
mathisonian/idyll
import React from 'react'; const Slide = require('./slide'); class Slideshow extends React.PureComponent { getChildren(children) { let processedChildren = []; React.Children.forEach(children, (child) => { if (typeof child === 'string') { return; } if ((child.type.name && child.type...
src/components/Weui/tab/tabbar_label.js
ynu/ecard-wxe
/** * Created by n7best */ import React from 'react'; import classNames from 'classnames'; export default class TabBarLabel extends React.Component { render() { const {children, className, ...others} = this.props; const cls = classNames({ weui_tabbar_label: true, }, class...
node_modules/semantic-ui-react/dist/es/modules/Search/SearchResult.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
examples/src/components/NumericSelect.js
yonaichin/react-select
import React from 'react'; import Select from 'react-select'; var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes.string }, getInitialState () { return { options: [ { value: 10, label: 'Ten' }, { value: 11, label: 'Eleven' }, { ...
resources/assets/js/Pages/ListPortal.js
jung3o/VacStatus
'use strict'; import React from 'react'; import { Link } from 'react-router'; import BasicComp from '../BasicComp'; export default class ListPortal extends BasicComp { constructor(props) { super(props); this.state = { my_list: [], friends_list: [] }; } componentDidMount() { this.fetchLists(); } fetchList...
docs/src/examples/views/Item/Content/ItemExampleRatings.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Item } from 'semantic-ui-react' const ItemExampleRatings = () => ( <Item.Group> <Item> <Item.Image size='tiny' src='/images/avatar/large/jenny.jpg' /> <Item.Content verticalAlign='middle'> <Item.Header> <Icon name='like' /> Veronik...
site/src/layouts/index.js
leocreatini/leocreatini.github.io
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import Header from '../components/Header' const TemplateWrapper = ({ children }) => ( <div> <Helmet title="Leo Creatini" meta={[ { name: 'description', content: `Leo Creatini's personal website.` },...
src/svg-icons/hardware/keyboard.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboard = (props) => ( <SvgIcon {...props}> <path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v...
backend/dynamic-web-apps/voting-app/client/src/components/Poll.js
mkermani144/freecodecamp-projects
import React from 'react'; import { Redirect } from 'react-router-dom'; import RaisedButton from 'material-ui/RaisedButton'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import Te...
web/src/client/components/valve-switch.js
mrsharpoblunto/it-gets-the-hose-again
/* * @format */ import React from 'react'; import {useEffect, useContext} from 'react'; import {StoreContext} from '../store-provider'; import {useHistory} from 'react-router-dom'; import {pollValve, toggleValve} from '../actions/valve'; export default function ValveSwitch() { const history = useHistory(); const...
src/ModalHeader.js
xuorig/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
src/svg-icons/notification/enhanced-encryption.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEnhancedEncryption = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3....
docs/src/components/item-filter-example.js
chrisclarke1977/nuclear-js
import React from 'react' import { Reactor, Store, toImmutable } from 'nuclear-js' import StateViewer from './state-viewer' import ExampleStep from './example-step' import Browser from './browser' const reactor = new Reactor({ debug: true, expose: 'itemFilterReactor' }); reactor.registerStores({ typeFilter: Sto...
test/integration/client-navigation/pages/nav/head-1.js
flybayer/next.js
import React from 'react' import Head from 'next/head' import Link from 'next/link' export default (props) => ( <div id="head-1"> <Head> <meta name="description" content="Head One" /> <title>this is head-1</title> </Head> <Link href="/nav/head-2"> <a id="to-head-2">to head 2</a> </L...
app/javascript/mastodon/features/ui/components/confirmation_modal.js
Craftodon/Craftodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; @injectIntl export default class ConfirmationModal extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, ...
src/assets/scripts/components/leaflet/LatLng.js
Eastern-Research-Group/epa-digital-services-rfi-js
import React, { Component } from 'react'; import USMap from './USMap.js'; import { MONITORING_STATIONS } from '../../../data/MONITORING_STATIONS'; export default class LatLng extends Component { constructor(props) { super(props); this.state = { lat: this.props.lat, lng: t...
src/kanban/components/Lane.js
rdwrcode/myreact-demo
import React from 'react'; import {compose} from 'redux'; import {connect} from 'react-redux'; import {DropTarget} from 'react-dnd'; import Notes from './Notes'; import Editable from './Editable'; import ItemTypes from '../constants/itemTypes'; import * as laneActions from '../actions/lanes'; import * as noteActions fr...
docs/app/Examples/modules/Dropdown/Content/DropdownExampleDivider.js
mohammed88/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleDivider = () => ( <Dropdown text='Filter' floating labeled button className='icon'> {/* <i class="filter icon"></i> */} <Dropdown.Menu> <Dropdown.Header icon='tags' content='Filter by tag' /> <Dropdown.Div...
examples/todo/src/components/Todo.js
AndriyShepitsen/react-relay-cbi
import ChangeTodoStatusMutation from '../mutations/ChangeTodoStatusMutation'; import RemoveTodoMutation from '../mutations/RemoveTodoMutation'; import RenameTodoMutation from '../mutations/RenameTodoMutation'; import TodoTextInput from './TodoTextInput'; import React from 'react'; import Relay from 'react-relay'; im...
frontend/admin/src/app/components/shared/forms.js
95kach/rails-react-starter
import React from 'react'; export function renderField({ input, label, type, meta: { touched, error, warning } }) { return ( <div> <input {...input} placeholder={label} type={type} className="form__input"/> {touched && ( (error && (<div className="form__input__error">{error}</div>)) || ...
index.js
MortalFlesh/react-search-filter-example
import React from 'react'; import SearchFilterBox from './src/search-filter-box'; React.render(<SearchFilterBox/>, document.getElementById('search-filter'));
src/js/components/icons/status/Label.js
odedre/grommet-final
/** * @description Label SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} className */ // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import classnames fr...
packages/reactabular-table/src/header.js
reactabular/reactabular
import React from 'react'; import { tableHeaderTypes, tableHeaderContextTypes } from './types'; import HeaderRow from './header-row'; class Header extends React.Component { // eslint-disable-line max-len, react/prefer-stateless-function constructor(props) { super(props); this.ref = null; } render() { ...
app/components/Home.js
bgrugett/campusManagement
import React from 'react'; const Home = function(props) { return ( <div> <header className="jumbotron hero-spacer"> <h1>The Margaret Hamilton School of Javascript</h1> <div className = "pic"> <img src = "/images/Margaret_Hamilton_1995.jpg" /> <h4>Margaret Ham...
client/acp/index.js
NicolasSiver/nodebb-plugin-ns-utils
import React from 'react'; import ReactDom from 'react-dom'; import Admin from './components/admin'; ReactDom.render( <Admin />, document.getElementById('acpUtilsContainer') );
src/App.js
jfbisson4/jbisson.com
import React from 'react'; import ReactDOM from 'react-dom'; import { Route, Switch } from 'react-router'; import { BrowserRouter } from 'react-router-dom'; import ReactGA from 'react-ga'; import './App.scss'; import Home from './home/Home'; import Resume from './resume/Resume'; ReactGA.initialize('UA-58699321-2'); c...
blueprints/smart/files/__root__/containers/__name__.js
BrandyMint/uvedomi-proto
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render() { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const ...
fields/explorer/components/FieldSpec.js
trentmillar/keystone
import Domify from 'react-domify'; import React from 'react'; import { Form } from '../../../admin/client/App/elemental'; import Col from './Col'; import Row from './Row'; const ExplorerFieldType = React.createClass({ getInitialState () { return { filter: this.props.FilterComponent.getDefaultValue(), value: ...
src/containers/NoteContainer.js
dggriffin/noteworthy
import React from 'react'; import Note from 'components/Note'; import Rebase from 're-base'; const base = Rebase.createClass('https://noteworthyapp.firebaseio.com'); class NoteboardContainer extends React.Component { constructor(props) { super(props); this.state = { data: { comments: [], ...
src/components/video_detail.js
MarwanGrada/React.Js
import React from 'react'; const VideoDetail = ({video}) => { if (!video){ return <div>Loading...</div> } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-responsive em...
frontend/src/searchBar/utils/highlighter.js
OptimusCrime/youkok2
import React from 'react'; const VALUE_REGULAR = 0; const VALUE_STRONG = 1; const OPEN_STRONG = '<strong>'; const CLOSE_STRONG = '</strong>'; const updateHighlightArray = (searchWord, text, highlight) => { // This is the value we increase every find with const increaseInterval = searchWord.length; let offsetI...
src/renderer/components/editor.js
ka2n/retro-twitter-client
import React from 'react' import twitterClient from '../twitter-client' /** * @param {KeyboardEvent} event * @return {String} */ const keyStringOf = (event) => { if (event.ctrlKey && event.keyCode === 13) { return 'Ctrl+Return'; } else { return ''; } }; export default class Editor extends React.Compo...
Paths/React/05.Building Scalable React Apps/1-react-boilerplate-building-scalable-apps-m1-exercise-files/After/app/containers/LanguageProvider/index.js
phiratio/Pluralsight-materials
/* * * 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...
examples/todos/src/main.js
jbrodriguez/reactorx
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { createStore } from 'reactorx' import App from './components/app' import actions from './actions/todos' import { SHOW_ALL } from './constants/filters' import 'todomvc-app-css/index.css' let initialState = { todos: [ {id...
app/javascript/mastodon/features/ui/components/report_modal.js
codl/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { changeReportComment, submitReport } from '../../../actions/reports'; import { refreshAccountTimeline } from '../../../actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ma...
internals/templates/languageProvider/languageProvider.js
w01fgang/react-boilerplate
/* * * 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...
blueocean-material-icons/src/js/components/svg-icons/editor/format-size.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatSize = (props) => ( <SvgIcon {...props}> <path d="M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z"/> </SvgIcon> ); EditorFormatSize.displayName = 'EditorFormatSize'; EditorFormatSize.muiName = 'SvgIcon'; export default EditorForma...
TestDemos/examples/BookExamples/XA-17-5/FLAnimatedImage.js
AzenXu/ReactNativeTest
/** * Created by Azen on 16/9/7 */ /* import React, { Component } from 'react'; import { requireNativeComponent, NativeModules, View } from 'react-native'; var { ScaleToFill, ScaleAspectFit, ScaleAspectFill } = NativeModules.RNFLAnimatedImageManager; // 导出OC中定义的夸语言常量 var MODES = { 'stretc...
NavigationReact/sample/hotloader/People.js
grahammendick/navigation
import React from 'react'; import { NavigationLink, RefreshLink } from 'navigation-react'; export default ({ people }) => { var rows = people.map((person) => ( <tr key={person.id}> <td> <NavigationLink stateKey="person" navigationData={{ i...
src/js/components/icons/base/Car.js
odedre/grommet-final
/** * @description Car SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @proper...
src/Modal.js
aabenoja/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...
packages/icons/src/md/notification/Sync.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdSync(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 8V2l-8 8 8 8v-6c6.63 0 12 5.37 12 12 0 2.03-.51 3.93-1.39 5.61l2.92 2.92C39.08 30.05 40 27.14 40 24c0-8.84-7.16-16-16-16zm0 28c-6.63 0-12-5.37-12-12...
ui/src/pages/group-settings.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...
src/lib/react-minimap/react-minimap.js
standardhealth/flux
import React from 'react'; import _ from 'lodash'; import PropTypes from 'prop-types' import Child from './components/Child' import './react-minimap.css' export class Minimap extends React.Component { static propTypes = { className: PropTypes.string, selector: PropTypes.string.isRequired, width: PropType...
src/CarouselItem.js
HorizonXP/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...
react/features/participants-pane/components/native/HorizontalDotsIcon.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { Icon, IconHorizontalPoints } from '../../../base/icons'; const HorizontalDotsIcon = () => (<Icon size = { 20 } src = { IconHorizontalPoints } />); export default HorizontalDotsIcon;
src/parser/druid/restoration/modules/talents/Cultivation.js
sMteX/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'...
src/routes/content/index.js
nagucc/jkef-wxe
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Content from './Content'...
lexiconSearch/client/table.js
vistadataproject/nonClinicalRPCs
import React from 'react'; import ReactDOM from 'react-dom' export default class TableComponent extends React.Component { constructor(props) { super(props); this.state = { lexRes: props.fullResults, errInput:'', copy:'', }; this.submitForm = thi...
app/javascript/mastodon/features/blocks/index.js
ikuradon/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/svg-icons/action/open-with.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenWith = (props) => ( <SvgIcon {...props}> <path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/> </SvgIcon> ); ActionOpenWith = pure(Act...
src/svg-icons/action/remove-shopping-cart.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRemoveShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.8...
src/js/component/ProductRow.js
AlexBai1991/learning-react
import React from 'react'; const ProductRow = React.createClass({ render() { let name = this.props.product.stocked ? <span style={{color: 'red'}}>{this.props.product.name}</span> : this.props.product.name; return ( <tr> <td>{name}</td> <td>{this.props.product.price}</td> <td>{th...
node_modules/react-bootstrap/es/FormControlFeedback.js
mohammed52/door-quote-automator
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/Loading.js
yairov/refactored-fortnight
import React from 'react' const Loading = () => ( <div className="loading"> <i className="icon ion-load-c spin"></i> </div> ) export default Loading
demo/src/app.js
APSL/redux-i18n
import React from 'react' import ReactDOM from 'react-dom' import {Provider} from 'react-redux' import {store} from './store' import I18n from 'redux-i18n' import {translations} from './translations' import Main from './main' import MainReducer from './mainreducer' const Demo = () => { return ( <Provider sto...
_seraphim/src/_arch2/DriverList.js
goldbuick/src
import React from 'react'; import RenderScene from 'render/RenderScene'; import RenderObject from 'render/RenderObject'; const DriverList = (props) => ( <RenderObject {...props} name="DriverList" onAnimate3D={(object3D, animateState, delta) => { // animateState.offset = (animateState.o...
src/svg-icons/file/folder-shared.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderShared = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v...
client/app/components/scrapurl.js
Terry-Breen/scrappedideas
import React from 'react'; export default class ScrapURL extends React.Component { render(){ return ( <div className="container-fluid text-center"> <div className="row"> <div className="col-md-6 col-md-offset-3"> <h2>URL: website/scraps/{this.props.params.scrapid}</h2> ...
app/components/Molecules/Lists/Lists.js
shibe97/worc
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import Loading from '../../Atoms/Loading/Loading'; import styles from './lists.css'; export default class Lists extends Component { componentDidMount() { this.props.requestGetList(); } render() { if (this.props.gettingLi...
docs/app/Examples/views/Card/Types/CardExampleGroupProps.js
ben174/Semantic-UI-React
import React from 'react' import { Card } from 'semantic-ui-react' const items = [ { header: 'Project Report - April', description: 'Leverage agile frameworks to provide a robust synopsis for high level overviews.', meta: 'ROI: 30%', }, { header: 'Project Report - May', description: 'Bring to...
src/components/Introduction.js
neontribe/spool
import React, { Component } from 'react'; import Relay from 'react-relay'; import Layout from './Layout'; import Button from './Button'; import ButtonLink from './ButtonLink'; import HideIntroductionMutation from './mutations/HideIntroductionMutation.js'; import UpdatePrivacyMutation from './mutations/UpdatePrivacyMuta...
src/components/FormGroup.js
wintermuted/redux-react-playground
import React from 'react'; class FormGroup extends React.Component { render () { return ( <div className="form-group"> {this.props.children} </div> ); } } export default FormGroup;
modules/dreamview/frontend/src/components/Navigation/index.js
xiaoxq/apollo
import React from 'react'; import MAP_NAVIGATOR from 'components/Navigation/MapNavigator'; import WS from 'store/websocket'; import { MAP_SIZE } from 'store/dimension'; import loadScriptAsync from 'utils/script_loader'; import WindowResizeControl from 'components/Navigation/WindowResizeControl'; export default class...
src/svg-icons/file/cloud-circle.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79...
core/components/BasicLayout/BasicLayout.js
alexandregme/react-core-components
import React, { Component } from 'react'; import { DomainsNavigation } from '../DomainsNavigation'; import { Footer } from '../Footer'; export default class BasicLayout extends Component { render() { const { children } = this.props; return ( <div className="container"> <DomainsNavig...
docs/src/app/app.js
mmrtnz/material-ui
import React from 'react'; import {render} from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; // Helpers for debugging window.React = React; window.Perf = req...
developers.diem.com/src/pages/developer_form.js
libra/libra
import React from 'react'; import FormContainer from '@theme/ContactForm/form-container'; import Layout from '@theme/Layout'; /** * NOTE: These ids should map to the Segment Zendesk mapping. * https://segment.com/docs/destinations/zendesk/ * * See: static/js/forms.js. This is a stateless form and all * the dynam...
client/components/Item/index.js
yoohan-dex/React-Blog
import React, { Component } from 'react'; import { CardMedia, CardText, CardActions, Button } from 'react-toolbox'; import { Card } from 'react-toolbox/lib/card/Card.js'; import { CardTitle } from 'react-toolbox/lib/card/CardTitle'; import s from './styles.scss'; class Item extends Component { render() { const du...
src/components/App.js
vpodolyan/documenter
import React from 'react'; import Document from '../containers/Document'; import Form from '../containers/Form'; const App = () => ( <div className="container app-wrapper"> <div className="row"> <div className="col-sm-4"> <Form /> </div> <div className="c...
fields/types/geopoint/GeoPointField.js
matthieugayon/keystone
import Field from '../Field'; import React from 'react'; import { FormRow, FormField, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'GeopointField', focusTargetRef: 'lat', valueChanged (which, event) { this.props.value[which] = event.target.value; this.props.onChange({ path: t...
docs/src/examples/elements/Reveal/Content/RevealExampleVisible.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleVisible = () => ( <Reveal animated='small fade'> <Reveal.Content visible> <Image src='/images/avatar/large/ade.jpg' size='small' /> </Reveal.Content> <Reveal.Content hidden> <Image src='/images/wire...
front_end/app/screens/ItemList.js
DaniGlass/OneStopShop
import React, { Component } from 'react'; import { View, Text, ScrollView } from 'react-native'; import axios from 'axios'; import colors from '../config/colors'; import { Item } from '../components/Item'; // import BottomNav from '../components/common'; class ItemList extends Component { constructor(props) { ...
src/components/SimpleCommonComponents/Modal/index.js
ProteinsWebTeam/interpro7-client
import React from 'react'; import { createPortal } from 'react-dom'; import T from 'prop-types'; const modalRoot = document.getElementById('modal-root'); import { foundationPartial } from 'styles/foundation'; import ipro from 'styles/interpro-new.css'; import interproTheme from 'styles/theme-interpro.css'; /* needed...
my-app/src/App.js
jazzninja/portfolio-react
import { Well, Accordion, Panel, Thumbnail, Carousel } from 'react-bootstrap'; import { Grid, Row, Col } from 'react-flexbox-grid'; import React, { Component } from 'react'; // import TransitionGroup from 'react-addons-transition-group'; // ES6 import './App.css'; import NavBar from './my_components/NavBar.js'; impor...
app/javascript/mastodon/features/ui/components/mute_modal.js
cybrespace/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import Button from '../../../components/button'; import { closeModal } from '../../../actions/modal'; import { muteAccount }...
app/javascript/mastodon/features/getting_started/index.js
MastodonCloud/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/Jumbotron.js
chilts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Jumbotron = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { ...
src/collections/Form/FormCheckbox.js
shengnian/shengnian-ui-react
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Checkbox from '../../modules/Checkbox' import FormField from './FormField' /** * Sugar for <Form.Field control={Checkbox} />. * @see Checkbox * @see Form */ function FormCheckbox(props) {...
src/containers/Feedback/Spin/index.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { Row, Col } from 'antd'; import Spin from '../../../components/uielements/spin'; import Alert from '../../../components/feedback/alert'; import Switch from '../../../components/uielements/switch'; import PageHeader from '../../../components/utility/pageHeader'; import B...
fields/types/url/UrlColumn.js
qwales1/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var UrlColumn = React.createClass({ displayName: 'UrlColumn', propTypes: { col: React.PropTypes.object, da...
src/common/Touchable.android.js
saketkumar95/zulip-mobile
/* @flow */ import React from 'react'; import { TouchableNativeFeedback, Platform, View } from 'react-native'; import type { StyleObj } from 'react-native/Libraries/StyleSheet/StyleSheetTypes'; import { HIGHLIGHT_COLOR } from '../styles'; const background = Platform.Version >= 21 ? TouchableNativeFeedback.Ripple(HI...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
boyley/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
installer/templates/new/widgets/list/list.js
kittoframework/kitto
import React from 'react'; import {Widget, Helpers} from 'kitto'; import './list.scss'; class ListItem extends React.Component { render() { return ( <li> <span className="label"> {Helpers.truncate(this.props.label, this.props.labelLength || 80)} </span> <span className="v...
node_modules/react-dropzone/src/index.js
together-web-pj/together-web-pj
/* eslint prefer-template: 0 */ import React from 'react' import PropTypes from 'prop-types' import accepts from 'attr-accept' import getDataTransferItems from './getDataTransferItems' const supportMultiple = typeof document !== 'undefined' && document && document.createElement ? 'multiple' in document.createElemen...
src/giraffe-ui/conversation/desktop-progress.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' const DesktopProgress = ({ getStateValue }) => { const section = getStateValue('section') return ( <div> <div className='progress-wrap'> <h3>Check your progress!</h3> <div className={cx( 'step', section...
docs/app/Examples/elements/Divider/Types/DividerExampleVertical.js
mohammed88/Semantic-UI-React
import React from 'react' import { Grid, Segment, Divider } from 'semantic-ui-react' const DividerExampleVertical = () => ( <Grid columns={3} relaxed> <Grid.Column> <Segment basic> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. </Segment> </Grid.Column> <Divider...
src/components/statusApp.js
josoroma/status
import React from 'react'; import {observer} from 'mobx-react'; import {Router} from 'director'; // Needed for onTouchTap import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); import StatusHeader from './statusHeader'; import StatusEntry from './statusEntry'; import StatusOverview from '....
client/app/components/NavigationBar.js
joelseq/SourceGrade
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { NavLink } from 'react-router-dom'; import { LinkContainer } from 'react-router-bootstrap'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import BrandText from './BrandText'; const NavigationBar = (...
tests/react/useReducer_hook.js
popham/flow
// @flow import React from 'react'; { React.useReducer(); // Error: function requires another argument. } function reducer(state, action) { switch (action.type) { case "reset": return { count: action.payload }; case "increment": return { count: state.count + 1 }; case "decrement": r...
css-modules-demo/demo05/components/App.js
zhangjunhd/react-examples
import React from 'react'; import style from './App.css'; export default () => { return ( <h1 className={style.title}> Hello World </h1> ); };
client/src/assets/images/GoogleLogo.js
jonathanihm/freeCodeCamp
/* eslint-disable max-len */ import React from 'react'; const propTypes = {}; function GoogleLogo(props) { return ( <svg id='google-logo' viewBox='1635 200 1400 600' xmlns='http://www.w3.org/2000/svg' xmlnsXlink='http://www.w3.org/1999/xlink' {...props} fill='var(--quaternary...
docs/src/app/components/pages/components/SelectField/Page.js
ArcanisCz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import selectFieldReadmeText from './README'; import SelectFieldExampleSimple fr...
src/components/common/facebook/withFB.js
goodjoblife/GoodJobShare
import React from 'react'; import { wrapDisplayName, setDisplayName } from 'recompose'; import FacebookContext from 'contexts/FacebookContext'; /** * Use `hooks/login/useFacebookLogin` as possible */ const withFB = Component => { const hoc = setDisplayName(wrapDisplayName(Component, 'withFB')); return hoc(props ...
src/containers/PageSelector.js
karmapa/tibetanDiffUI
import React from 'react'; import {connect} from 'react-redux'; import store from '../store/store.js'; import {pageNext, pagePre, pageInput, pageKeyPress} from '../reducers/pager.js'; const handleChange = (event) => { store.dispatch(pageInput(event.target.value)); }; const onPageKeyPress = (event) => { store.disp...
docs/src/components/home/hero.js
evanlucas/node-tap
import React from 'react'; import styled from 'styled-components'; import {theme} from '../../theme'; import {Image, Flex} from 'rebass'; import logo from '../../images/logo.gif'; import {ButtonLink} from '../links'; const description = require('../../../../package.json').description; const OuterCircle = styled.div` ...
src/interface/icons/Cross.js
sMteX/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/term/cross/1147331/ // Created by Andrey from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="15 15 70 70" className="icon stroke" {...other}> <g style={{ strokeLinecap: 'round', strokeMiterlimit: 10, stro...