path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/Send.js
atFriendly/react-native-friendly-chat
/* eslint no-use-before-define: ["error", { "variables": false }] */ import PropTypes from 'prop-types'; import React from 'react'; import { StyleSheet, Text, TouchableOpacity, View, ViewPropTypes } from 'react-native'; import Color from './Color'; import I18n from './I18nUtil'; export default function Send({ text, c...
docs/src/examples/elements/Header/Content/HeaderExampleSettingsIcon.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Header, Icon } from 'semantic-ui-react' const HeaderExampleSettingsIcon = () => ( <Header as='h2'> <Icon name='settings' /> <Header.Content> Account Settings <Header.Subheader>Manage your preferences</Header.Subheader> </Header.Content> </Header> ) export...
packages/icons/src/md/action/AlarmOff.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdAlarmOff(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24.71 12.29c7.73 0 14 6.27 14 14 0 1.69-.31 3.3-.86 4.8l3.04 3.04a17.79 17.79 0 0 0 1.82-7.84c0-9.94-8.06-18-18.01-18-2.81 0-5.46.66-7.84 1.81l3.05...
src/routes.js
unicredit/react-boilerplate
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import App from './components/App'; import PoweredBy from './components/Powered-by'; import About from './components/About'; import Environment from './components/Environment'; export default function getRoutes() { return ( <Route path...
src/Checkbox.js
jsummer/react-ui
"use strict" import React from 'react' import classnames from 'classnames' import { requireCss } from './themes' requireCss('checkbox') class Checkbox extends React.Component { static displayName = "Checkbox" static propTypes = { checked: React.PropTypes.bool, children: React.PropTypes.any, className...
src/svg-icons/device/network-cell.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
src/components/ReduxDealsApp/ReduxDealsApp.js
iteacat/cc_deals
/** * * Created by yin on 11/22/15. */ import React, { Component } from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import dealsApp from '../../reducers'; import OffersPage from '../OffersPage'; const offerStore = createStore(dealsApp); class ReduxDealsApp extends Compone...
src/svg-icons/action/open-in-new.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInNew = (props) => ( <SvgIcon {...props}> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/> </SvgIcon> );...
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SvgInclusion.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 logo from './assets/logo.svg'; const SvgInclusion = () => ( <img id="feature-svg-inclusion" src={lo...
src/core/corelayout.js
bhuvanmalik007/bhuvanmalik
import React from 'react' import PropTypes from 'prop-types' import Header from '../connectors/Header' import Footer from '../components/appfooter' import styled from 'styled-components' const CoreBlock = styled.div` min-height: 100vh; display: flex; flex-direction: column; ` const Content = styled.div` flex:...
FE/src/profile.js
xil-se/Xilventory
import React from 'react'; import { render } from 'react-dom'; import { withRouter } from 'react-router'; import { Form, FormControl, FormGroup, Checkbox, Col, ControlLabel, Button, Row, Grid, Label, Panel, ProgressBar, ListGroup, ListGroupItem, Collapse } from 'react-bootstrap'; var Pr...
src/entypo/AppStore.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--AppStore'; let EntypoAppStore = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path fillRule="evenodd" clipRule="evenodd" d="M17.5640259,13.8623047c-0.4133301,0.9155273-0.6115723,1.325...
actor-apps/app-web/src/app/components/SidebarSection.react.js
liqk2014/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
STAR.Originations.MegaRunbook.Website/app/components/common/CompactNavBar.js
DaveStoneDotNet/React.MegaRunbookCreator
import React from 'react'; import PropTypes from 'prop-types'; import { Navbar } from 'react-bootstrap'; import { Nav } from 'react-bootstrap'; import { NavItem } from 'react-bootstrap'; import { NavDropdown } from 'react-bootstrap'; import { MenuItem } from 'react-bootstrap'; import { LinkContainer } from 'react-rout...
src/pages/launchWindow/laounchWindowExamples.js
Synchro-TEC/site-apollo-11
import React from 'react'; import { LaunchWindow } from 'syntec-apollo-11'; class LaunchWindowExample extends React.Component { constructor() { super(); } showLaunchWindow(){ this.refs.modal.show(); } render() { return( <div> <LaunchWindow ref='modal'> Modal </La...
js/BaseComponents/Content.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
src/svg-icons/action/trending-down.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingDown = (props) => ( <SvgIcon {...props}> <path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"/> </SvgIcon> ); ActionTrendingDown = pure(ActionTrendingDown); ActionTre...
examples/real-world/index.js
codeslikejaggars/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
public/systemjs/app/render.js
inquisive/keystonejs-site
import React from 'react'; import { Router, Route, Link } from 'react-router' import JadePage from './pages/fetch/jade'; import wrapListeners from './listen'; import {baseRoute, cleanPath, getFileName} from './common/util'; import SearchTags from 'tag-search' import {extend, merge} from 'lodash' import Debug from 'debu...
src/img/Hands.js
karatechops/grommet-docs
import React from 'react'; export default () => ( <svg version='1.1' width='1003' height='350' viewBox='0 0 1003 350'> <defs> <linearGradient id='a' x1='50%' x2='50%' y1='100%' y2='22.206%'> <stop stopColor='#666666' stopOpacity='0' offset='0%'/> <stop stopColor='#666666' offset='100%'/> ...
local-cli/templates/HelloNavigation/components/ListItem.js
skevy/react-native
'use strict'; import React, { Component } from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; /** * Renders the right type of Touchable for the list item, based on platform. */ const Touchable = ({onPress, children}) => { const c...
newclient/scripts/components/admin/detail-view/approval-confirmation/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
app/javascript/mastodon/features/compose/containers/warning_container.js
unarist/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Warning from '../components/warning'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { me } from '../../../initial_state'; const APPROX_HASHTAG_RE = /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i; const mapStateT...
app/javascript/mastodon/features/ui/components/bundle.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const emptyComponent = () => null; const noop = () => { }; class Bundle extends React.PureComponent { static propTypes = { fetchComponent: PropTypes.func.isRequired, loading: PropTypes.func, error: PropTypes.func, children: PropTypes.fu...
client/app/components/ContentEditor/customPlugins/link-plugin/index.js
bryanph/Geist
import React from 'react'; import linkStrategy from './linkStrategy'; import Link from './Link'; import LinkButton from './LinkButton'; import styles from './styles.css'; import { EditorState, Entity, KeyBindingUtil, AtomicBlockUtils, SelectionState, Modifier } from 'draft-js' import { insertLink, isActive } from './i...
js/jqwidgets/demos/react/app/grid/defaultfunctionality/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { datatype: 'xml', datafields: [ { name: 'ProductName', ...
app/src/components/App/ReturnTop/index.js
AlexandreBourdeaudhui/abourdeaudhui.fr
/* * Package Import */ import React, { Component } from 'react'; import { animateScroll } from 'react-scroll'; /* * Local Import */ // Utils import { debounce } from 'src/utils'; /* * Component */ class ReturnTop extends Component { /* * LifeCycle */ componentDidMount() { window.addEventListene...
examples/query-params/app.js
carlosmontes/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var User = React.createClass({ render() { var { query } = this.props.location; var age = query && query.showAge ? '33' : ''; var { userID } = this.props.params; return ( <div className="User"> <h1>User id: {u...
client/src/components/billing/settings.js
WebTalentTop/newsfere-mern
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import * as actions from '../../actions/billing'; const moment = require('moment'); import CheckoutForm from './checkout-form'; class BillingSettings extends Component { constructor(props) { sup...
examples/react-bootstrap/src/App.js
gaearon/react-hot-loader
import React from 'react'; import { hot } from 'react-hot-loader/root'; import FormControl from 'react-bootstrap/lib/FormControl'; class App extends React.Component { render() { return ( <h1> Hello, world.<br /> <FormControl inputRef={console.log} defaultValue="Write me" /> </h1> ...
node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
kssujithcj/TestMobileCenter
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
src/containers/DevTools/DevTools.js
EnrikoLabriko/react-redux-universal-hot-example
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /> </D...
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/text/index.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import withStore from 'fields/decorators/with-store'; import withSetup fr...
examples/js/remote/demo.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import RemoteStoreSorting from './remote-store-sorting'; import RemoteStoreFiltering from './remote-store-filtering'; import RemoteStoreSearch from './remote-store-search'; import RemoteStorePaging from './remote-store-paging'; import RemoteStoreInsertRow from './remot...
app/addons/documents/sidebar/components/DesignDocList.js
apache/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...
apps/marketplace/components/Feedback/Feedback.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import { Control, LocalForm } from 'react-redux-form' import Textarea from 'shared/form/Textarea' import Icon from 'shared/Icon' import AUpageAlert from '@gov.au/page-alerts/lib/js/react.js' import styles from './Feedback.scss' export class Feedback extend...
components/Layout/Header.js
harvard-tabula/frontend
import React from 'react'; import Navigation from './Navigation'; import Link from '../Link/Link'; class Header extends React.Component { render() { return ( <div className="hero is-medium is-primary"> <div className="hero-head"> <div className="nav"> <div className="containe...
src/routes/Library/components/Library.js
altarit/cloudpolis-react
import React from 'react' import PropTypes from 'prop-types' import {Link} from 'react-router-dom' import './Library.scss' export class Library extends React.Component { static propTypes = { libraryName: PropTypes.string, // fetching: PropTypes.bool, compilations: PropTypes.arrayOf(PropTypes.object).isR...
src/svg-icons/av/queue.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueue = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> </SvgIco...
ui/paragraph/index.js
DannyvanderJagt/portfolio
import React from 'react'; import Telescope from 'telescope'; import Config from '../../../portfolio.config'; class Paragraph extends Telescope.Component{ render(){ let content = this.props.children; let parts = content.split('.'); let length = parts.length; let p1 = parts.slice(0, Math.ceil(length/...
packages/storybook-cmf/src/CMFStory/CMFStory.component.js
Talend/ui
/* eslint-disable no-console */ import React from 'react'; import { all, fork } from 'redux-saga/effects'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import api, { store, registry, RegistryProvider, mock } from '@talend/react-cmf'; function* initSagaMiddleWare() { yield all([fork(api....
react/features/device-selection/components/VideoInputPreview.js
gpolitis/jitsi-meet
/* @flow */ import React, { Component } from 'react'; import Video from '../../base/media/components/Video'; const VIDEO_ERROR_CLASS = 'video-preview-has-error'; /** * The type of the React {@code Component} props of {@link VideoInputPreview}. */ type Props = { /** * An error message to display instead ...
components/connected/status/content/index.js
marrus-sh/mastodon-go
// <ConnectedStatusContent> // ======================== // This component renders the status content. For the most part, we // hand this over to `<ConnectedParse>`, but we do need to render // media and spoilers ourselves. // * * * * * * * // // Imports // ------- // Package imports. import classNames fr...
src/svg-icons/places/smoking-rooms.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesSmokingRooms = (props) => ( <SvgIcon {...props}> <path d="M2 16h15v3H2zm18.5 0H22v3h-1.5zM18 16h1.5v3H18zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16....
src/icons/AirplanemodeInactiveIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class AirplanemodeInactiveIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M26 18V7c0-1.66-1.34-3-3-3s-3 1.34-3 3v7.36l15.65 15.65L42 32v-4L26 18zM6 10.55l9.97 9.97L4 2...
classic/src/scenes/wbfa/generated/FASMapPin.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faMapPin } from '@fortawesome/pro-solid-svg-icons/faMapPin' export default class FASMapPin extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faMapPin} />) } }
src/components/ReplOutputInteger.js
antonyr/Mancy
import React from 'react'; import _ from 'lodash'; const mode = { 'bin' : 2, 'oct' : 8, 'dec' : 10, 'hex' : 16 }; export default class ReplOutputInteger extends React.Component { constructor(props) { super(props); this.state = { mode: 'dec', type: 'signed' }; _.each([ 'set...
assets/jqwidgets/demos/react/app/datetimeinput/defaultfunctionality/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js'; class App extends React.Component { render() { return ( <div id='content'> <label>Date Input</label> <JqxDateTimeInput...
app/js/components/menu/Accordion.js
theappbusiness/tab-hq
'use strict'; import React from 'react'; import Category from './Category'; import ReorderMixin from '../../mixins/ReorderMixin'; import NewCategory from './NewCategory'; import CategoryActionCreators from '../../actions/CategoryActionCreators'; import _ from 'lodash'; const Accordion = React.createClass({ mixins: ...
client/app/components/SlotsForm.js
ualikhansars/todo
import React from 'react'; export class SlotsForm extends React.Component { render() { return ( <div className="slots-form"> <form action="/todo" id="create_todo" method="post"> <div className="form-group row"> <label htmlFor="formGrou...
app/js/pages/Hui_yi_tong_zhi.js
arcsecw/auto_writing
import React from 'react'; import { Container, Input, ButtonToolbar, Tabs, DateTimeInput, Button, ModalTrigger, } from 'amazeui-react'; import {Editor, EditorState} from 'draft-js'; import { withRouter } from 'react-router' import { myConfig } from '../components/config.js'; import {post} from '../compo...
zhihu/src/js/zhihu/index.js
fengnovo/webpack-react
import React from 'react' import { render } from 'react-dom' import { HashRouter as Router, Route } from 'react-router-dom' import { Provider } from 'react-redux' import configureStore from './store/configureStore' import Home from './containers/Home' import Detail from './containers/Detail' import Comment from './co...
src/server.js
leopoldjoy/react-ethereum-dapp-example
import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import favicon from 'serve-favicon'; import compression from 'compression'; import cookieParser from 'cookie-parser'; import httpProxy from 'http-proxy'; import path from 'path'; import VError from 'verror'; import Pretty...
app/jsx/bundles/course_grading_standards.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - 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...
test/fixtures/jsconfig/src/App.js
jdcrensh/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, { Component } from 'react'; import PropTypes from 'prop-types'; import load from 'absoluteLoad'; export default class Ap...
src/svg-icons/social/location-city.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialLocationCity = (props) => ( <SvgIcon {...props}> <path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h...
src/Async.js
Reggino/react-select
import React from 'react'; import Select from './Select'; import stripDiacritics from './utils/stripDiacritics'; let requestId = 0; function initCache (cache) { if (cache && typeof cache !== 'object') { cache = {}; } return cache ? cache : null; } function updateCache (cache, input, data) { if (!cache) return...
lib/server/src/descriptors/typography.js
honeyframework/honey-dipper-comb-documentation
import React from 'react'; import descriptionData from '../data/user-style.json'; class CustomElement extends React.Component { render() { const Element = this.props.element; return( <Element className={this.props.classes}> {this.props.text} </Element> ) } } const dummyText = 'Pomm...
src/basic/Badge.js
chaitanya0bhagvan/NativeBase
import React, { Component } from 'react'; import { View, ViewPropTypes } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import variables from '../theme/variables/platform'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Badge extends Component { render() { ...
app/containers/Sesizari/components/hero.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; function Hero() { return ( <section className="container"> <div className="row"> <div className="col-xs-12 col-md-offset-2 col-md-8 page-hero"> <h1> Sesizări </h1> <p> România pe care toți ne-o dorim are nevoie de cetă...
src/components/EntryPage.js
vsherms/LifeCoach
import React from 'react'; import Login from './Login'; import SignUp from './SignUp'; export default class EntryPage extends React.Component { render() { return( <div className="entry-page"> <div style={{width: "100vw", position: "relative", display:'flex', flexWrap:'wrap', justifyContent:'space-...
packages/react/src/components/pages/Error500/index.js
massgov/mayflower
/** * Error500 module. * @module @massds/mayflower-react/Error500 * @requires module:@massds/mayflower-assets/scss/04-templates/narrow-template * @requires module:@massds/mayflower-assets/scss/03-organisms/error-page */ import React from 'react'; import PropTypes from 'prop-types'; import NarrowTemplate from 'Mayf...
react-router-demo/lessons/08-index-routes/modules/App.js
zhangjunhd/react-examples
import React from 'react' import NavLink from './NavLink' export default React.createClass({ render() { return ( <div> <h1>React Router Tutorial</h1> <ul role="nav"> <li><NavLink to="/about">About</NavLink></li> <li><NavLink to="/repos">Repos</NavLink></li> </ul>...
public/pages/EdmundPage.js
dynamicform/dynamicform-react-client
import React from 'react'; import DynamicForm from '../../src/components/DynamicForm'; export default class EricPage extends React.Component{ render(){ return( <DynamicForm formDefinitionSrc="http://localhost:3000/api/getdefinition/Qyijie" submitDataSrc="http://localhos...
react-flux-mui/js/material-ui/src/svg-icons/action/youtube-searched-for.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionYoutubeSearchedFor = (props) => ( <SvgIcon {...props}> <path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2....
examples/preact/src/components/Placeholder/Placeholder.js
bluetidepro/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './Placeholder.css'; /** * Image placeholders. */ export default class Placeholder extends Component { static propTypes = { type: PropTypes.oneOf([ 'animal', 'bacon', 'beard', 'bear', 'cat', 'food', 'city', ...
examples/basic.js
nitin42/terminal-in-react
import React, { Component } from 'react'; import { render } from 'react-dom'; import Terminal from 'terminal-in-react'; class App extends Component { intro = () => "My name is Foo!" render () { return ( <Terminal msg="Hi everyone! This is a terminal component for React" commands={{ webs...
src/components/organisms/AudioParamControls.js
ziagrosvenor/sound-machine
import React from 'react' import styled from 'styled-components' import { Knob, AudioParamInput } from '../molecules' import { Header } from '../atoms' const Container = styled.div` position: relative; ` const AudioParamControls = ({ label, min, max, value, decimalPoints, unitType, onChange, }) => ( ...
src/app/screens/Anonymous/screens/TermsOfService/index.js
docgecko/react-alt-firebase-starter
/*! React Alt Firebase Starter */ import React from 'react'; import { Route } from 'react-router'; import TermsOfService from './components/TermsOfService'; export default ( <Route name='terms-of-service' path='/legal/tos' handler={TermsOfService}/> );
src/Graph.js
flyingjamus/react-graph
import React from 'react'; export default React.createClass({ render() { return ( <svg width="200" height="200"> {this.props.children} </svg> ); } });
src/index.js
JPStrydom/Sudoku-AI
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './components/app'; import configureStore from './redux/store'; ReactDOM.render( <Provider store={configureStore()}> <App /> </Provider>, document.querySelector('.container') );
application/components/groups/Group.js
buildreactnative/assemblies-tutorial
import moment from 'moment'; import Icon from 'react-native-vector-icons/Ionicons'; import NavigationBar from 'react-native-navbar'; import React, { Component } from 'react'; import { View, ListView, ScrollView, TouchableOpacity, Text, Image, ActionSheetIOS } from 'react-native'; import { find, findIndex, isEqual } fro...
examples/async-data/app.js
1000hz/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link, Navigation } from 'react-router'; import { loadContacts, loadContact, createContact } from './utils'; import AsyncProps from 'react-router/lib/experimental/AsyncProps'; var Spinner = React.createClass({ r...
fields/types/html/editor/embedded-code/embedded-code-editing-block.js
nickhsine/keystone
'use strict'; import EntityEditingBlockMixin from '../mixins/entity-editing-block-mixin'; import React from 'react'; class EmbeddedCodeEditingBlock extends EntityEditingBlockMixin(React.Component) { constructor (props) { super(props); this.state.editingFields = { caption: props.caption, embeddedCode: props....
src/components/Footer/Footer.js
haromy/appSO
import React, { Component } from 'react'; class Footer extends Component { render() { return ( <div> <header className="navbar fixed-bottom hidden-md-up bottomnav"> <ul className="nav navbar-nav m-auto"> <li className="nav-item"> <i className="fa fa-home fa-lg" a...
packages/mineral-ui-icons/src/IconChatBubbleOutline.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconChatBubbleOutline(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {......
app/simpleRedux2/app.js
littlethree/DemoProject
/** * Sample React Native App * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import { setValue, getValue } from './count'; import { on, remove, trigger } from './event'; import { connector } from './connector'; class SimpleR...
client/app/scripts/components/terminal-app.js
kinvolk/scope
import React from 'react'; import { connect } from 'react-redux'; import Terminal from './terminal'; import { receiveControlPipeFromParams, hitEsc } from '../actions/app-actions'; const ESC_KEY_CODE = 27; class TerminalApp extends React.Component { constructor(props, context) { super(props, context); cons...
examples/huge-apps/routes/Course/components/Dashboard.js
flocks/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
stories/async.js
Kilix/selectless
import React from 'react' import PropTypes from 'prop-types' import {storiesOf} from '@storybook/react' import 'whatwg-fetch' import {Clear, Select, Item, Label, Search, List, TagList, Tag} from '../src' import { rendering, renderingList, renderingItem, renderingSearch, renderingTag, onChange, } from './ut...
src/svg-icons/editor/space-bar.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; EditorSpaceBar.muiName ...
src/components/map/index.js
Tsarpf/reaktive
import React from 'react'; import style from './style.scss'; export default class About extends React.Component { render() { return ( <div> <img className={ style.map } src="https://aewlabode.files.wordpress.com/2014/04/9688054-treasure-map.jpeg"/> </div> ) } }
L/my-app/src/components/CustomRoute/index2.js
imuntil/React
import React from 'react' import { connect } from 'dva' import { Route, Redirect } from 'dva/router' function mapStateToProps(state) { const { phone, userID, avatar, openID, nick } = state.user return { user: { phone, userID, avatar, openID, nick } } } const AuthRoute = ({ component: Component, user, ...rest }) =>...
src/components/video_list_item.js
GuroKung/react-redux-starter
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div className="media-left"> <img clas...
packages/icons/src/md/action/PermScanWifi.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPermScanWifi(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 5c10.09 0 17.71 3.74 24 8.5L24 43 0 13.47C6.29 8.7 13.91 5 24 5zm2 26V19h-4v12h4zm-4-16h4v-4h-4v4z" /> </IconBase> ); } export defaul...
frontend/src/components/threads-list/list/empty.js
1905410/Misago
import React from 'react'; import DiffMessage from 'misago/components/threads-list/list/diff-message'; // jshint ignore:line export default class extends React.Component { getDiffMessage() { if (this.props.diffSize > 0) { /* jshint ignore:start */ return <DiffMessage diffSize={this.props.diffSize} ...
src/Components/Loader/index.js
sqhtiamo/zaro
import React from 'react'; import ReactDOM from 'react-dom'; import Loader from './loader'; let status = ''; const div = document.createElement('div'); document.body.appendChild(div); function calls() { this.show(status); } function create(tstatus) { return () => { console.log(tstatus); status = tstatus;...
client/src/app/components/common/ToggleMenu.js
zraees/sms-project
import React from 'react' let ToggleMenu = React.createClass({ toggleMenu: function(e){ var $body = $('body'), $html = $('html'); if (!$body.hasClass("menu-on-top")){ $html.toggleClass("hidden-menu-mobile-lock"); $body.toggleClass("hidden-menu"); $body.removeClass("minif...
app/javascript/mastodon/components/status_list.js
kirakiratter/mastodon
import { debounce } from 'lodash'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import LoadGap from './load_gap...
src/js/components/icons/base/Print.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/formatters/highlight-value.js
reactabular/searchtabular
import { isArray } from 'lodash'; import React from 'react'; const highlightValue = (value, highlights, index = 0, classNames = {}) => { if (!highlights) { return <span>{value}</span>; } if (isArray(value)) { return value.map((v, i) => highlightValue(v, highlights[i], i)); } const val = String(valu...
httpdocs/theme/react/hooks-app/opendesktop-home/components/RatingContainer.js
KDE/ocs-webserver
import React, { Component } from 'react'; class RatingContainer extends React.Component { render(){ let ratingContainer; if (this.props.votes){ const votes = this.props.votes.map((cm,index) => ( <li key={index}> <div className="cm-content"> <span className="cm-userinfo"> ...
imports/ui/components/pa-collections/edit-pa-detail.js
gagpmr/app-met
import React from 'react'; import ReactDOM from 'react-dom'; import { Loading } from '/imports/ui/components/loading.js'; import { browserHistory } from 'react-router'; import { updateDetail } from '/imports/api/padetails/methods.js'; var DatePicker = require('react-datepicker'); var moment = require('moment'); requir...
site/src/components/DemoBox.js
Filsh/elemental-themeable
import React from 'react'; import classnames from 'classnames'; import E from '../../../src/constants'; const ALIGN_TRANSFORM = { 'center': 'center', 'left': 'flex-start', 'right': 'flex-end', }; var DemoBox = React.createClass({ propTypes: { align: React.PropTypes.oneOf(['center', 'left', 'right']), children...
src/assets/js/react/components/CoreFonts/CoreFontCounter.js
GravityPDF/gravity-forms-pdf-extended
import React from 'react' import PropTypes from 'prop-types' /** * @package Gravity PDF * @copyright Copyright (c) 2021, Blue Liquid Designs * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 5.0 */ /** * Display an inline counter * * @param queue * @param text ...
src/pages/Feature.js
joegattnet/joegatt.net-client
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; class Feature extends Component { componentWillReceiveProps(nextProps) { if (this.props.location.key !== nextProps.location.key) { this.props.featureQue...
packages/lightning-core/accounts/index.js
DaReaper/lightning-app
import React from 'react' import reactCSS from 'reactcss' import { connect } from 'react-redux' import { store } from 'lightning-store' import { Link } from 'react-router-dom' import { actions } from './reducer' import { Head, Page } from '../common' import Wallet from './Wallet' import ChannelList from './ChannelList...
src/js/components/label.js
frig-js/frigging-bootstrap
import React from 'react' import { sizeClassNames } from '../util.js' import cx from 'classnames' export default class Label extends React.Component { static displayName = 'FriggingBootstrap.Label' static propTypes = { labelWidth: React.PropTypes.object.isRequired, layout: React.PropTypes.string, bloc...
src/NativeButton.js
dancormier/react-native-swipeout
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import { TouchableWithoutFeedback, TouchableNativeFeedback, TouchableHighlight, Text, StyleSheet, Platform, View, } from 'react-native'; const styles = StyleSheet.create({ button: { fl...
app/javascript/mastodon/components/hashtag.js
koba-lab/mastodon
// @ts-check import React from 'react'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from './permalink'; import ShortNumber from 'mastodon/co...