path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import AsyncSelect from 'react-select/async'; const messages = defineMessages({ plac...
src/js/components/journal-entry.js
donnierayjones/dayone-js-html
import React from 'react'; import JournalPhoto from './journal-photo'; export default class JournalEntry extends React.Component { render() { var legacyPhotoHtml = ''; if(this.props.entry.hasLegacyPhoto()) { legacyPhotoHtml = _.map(this.props.entry.photos(), (photo) => { return <JournalPho...
js/components/LoadingModal/index.js
Seedstars/reactnative-mobile-app-base
import React, { Component } from 'react'; import { View, Text, Modal, ActivityIndicator } from 'react-native'; import { SECONDARY_COLOR } from '../../styles/colors'; import LoadingStyles from './styles'; export default class LoadingModal extends Component { static propTypes = { visible: Re...
example/examples/CustomMarkers.js
amitv87/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE...
views/User.js
Haroenv/monumentrun
// @flow import React, { Component } from 'react'; import { View, Button, Text } from 'react-native'; import Ionicons from 'react-native-vector-icons/Ionicons'; import { StackNavigator } from 'react-navigation'; import { loginWithFacebook, getUser, signOut } from '../helpers/auth'; class SignedIn extends Component {...
src/index.js
xsky-fe/xsky-components
import { AppContainer } from 'react-hot-loader' import React from 'react' import ReactDOM from 'react-dom' import App from './App' import 'bootstrap/dist/css/bootstrap.min.css'; import './style.css'; const rootEl = document.getElementById('root') ReactDOM.render( <AppContainer> <App /> </AppContainer>, rootE...
yycomponent/grid/Col.js
77ircloud/yycomponent
import React from 'react'; import { Col as _Col } from 'antd'; class Col extends React.Component{ constructor(props){ super(props); } render(){ return (<_Col {...this.props}/>); } } export default Col
webapp/app/components/RestoreCreation/index.js
EIP-SAM/SAM-Solution-Server
// // Component page save // import React from 'react'; import { PageHeader } from 'react-bootstrap'; import RestoreCreationForm from 'containers/RestoreCreation/Form'; /* eslint-disable react/prefer-stateless-function */ export default class RestoreCreation extends React.Component { componentWillUnmount() { th...
src/pages/UserEdit.js
prodigalyijun/demo-by-antd
import React from 'react'; import HomeLayout from '../layouts/HomeLayout'; import UserEditor from '../components/UserEditor'; import { get } from '../utils/request'; class UserEdit extends React.Component { constructor(props) { super(props); this.state = { user: null }; } ...
src/Well.js
AlexKVal/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
docs/app/Examples/elements/Input/Variations/InputExampleLabeled.js
aabustamante/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleLabeled = () => ( <Input label='http://' placeholder='mysite.com' /> ) export default InputExampleLabeled
packages/ringcentral-widgets-docs/src/app/pages/Components/IconLine/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import IconLine from 'ringcentral-widgets/components/IconLine'; const props = {}; /** * A example of `IconLine` */ const IconLineDemo = () => ( <IconLine {...props} /> ); export default IconLineDemo;
docs/app/Examples/collections/Table/Types/TableExamplePadded.js
vageeshb/Semantic-UI-React
import React from 'react' import { Header, Table, Rating } from 'semantic-ui-react' const TableExamplePadded = () => { return ( <Table celled padded> <Table.Header> <Table.Row> <Table.HeaderCell singleLine>Evidence Rating</Table.HeaderCell> <Table.HeaderCell>Effect</Table.Header...
src/ace.js
ambassify/react-ace-cdn
import PropTypes from 'prop-types'; import React from 'react'; import isEqual from 'lodash.isequal'; import injectAce from './injectAce'; const editorOptions = [ 'minLines', 'maxLines', 'readOnly', 'highlightActiveLine', 'tabSize', 'enableBasicAutocompletion', 'enableLiveAutocompletion', ...
examples/huge-apps/routes/Messages/components/Messages.js
dyzhu12/react-router
import React from 'react'; class Messages extends React.Component { render () { return ( <div> <h2>Messages</h2> </div> ); } } export default Messages;
nodes/stampzilla-server/web/src/components/CustomCheckbox.js
stampzilla/stampzilla-go
import React from 'react'; const CustomCheckbox = (props) => { const { id, value, required, disabled, readonly, label, autofocus, onChange, } = props; return ( <div className={`checkbox custom-control custom-checkbox ${disabled || readonly ? 'disabled' : ''}`}> <input ...
src/components/fieldgroup.js
lizarraldeignacio/personal-website
import React, { Component } from 'react'; import { Field } from 'redux-form'; /** FormGroup basic component to create forms Params: brandName: The name of the brand validationState: The state of the control ('success', 'warning', 'error', null) key: Unique identifier label: FormControl label h...
src/components/shared/Logo.js
chatch/stellarexplorer
import React from 'react' import PropTypes from 'prop-types' // 2 supported logo forms const squareDimensions = {height: 75, width: 75} const rectangleDimensions = {height: 40, width: 150} // exchange image from anchor image const imagesInBoth = ['papayabot', 'papayaswap', 'ripplefox'] const Logo = ({name, type = 'a...
app/javascript/mastodon/features/ui/components/list_panel.js
clworld/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchLists } from 'mastodon/actions/lists'; import { connect } from 'react-redux'; import { createSelector } from 'rese...
src/decorators/withViewport.js
yinaw/travelBook
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = { width: 1366, height: 768 }; // Default ...
react/eventwizard/components/infoTab/SyncCodeInput.js
phil-lopreiato/the-blue-alliance
import React from 'react' import PropTypes from 'prop-types' import EVENT_SHAPE from '../../constants/ApiEvent' const SyncCodeInput = (props) => ( <div className="form-group"> <label htmlFor="first_code" className="col-sm-2 control-label"> FIRST Sync Code </label> <div className="col-sm-10"> ...
packages/mineral-ui-icons/src/IconLocalConvenienceStore.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 IconLocalConvenienceStore(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon ...
client/src/javascript/components/sidebar/TagFilters.js
stephdewit/flood
import {FormattedMessage} from 'react-intl'; import React from 'react'; import connectStores from '../../util/connectStores'; import EventTypes from '../../constants/EventTypes'; import SidebarFilter from './SidebarFilter'; import TorrentFilterStore from '../../stores/TorrentFilterStore'; import UIActions from '../../...
src/BaseComponents/TextLink/TextLink.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import WixComponent from '../../BaseComponents/WixComponent'; import TextLinkLayout from '../../BaseComponents/TextLinkLayout'; export default class BaseTextLink extends WixComponent { static propTypes = { ...TextLinkLayout.propTypes, link: Prop...
src/Parser/Rogue/Common/Resources/ComboPointDetails.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Tab from 'Main/Tab'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Icon from 'common/Icon'; import ResourceBreakdown from 'Parser/Core/Modules/ResourceTracker/ResourceBreakdown'; import ComboPointTracker from '....
src/js/ui/pages/welcome/newLocalDiary.js
heartnotes/heartnotes
import _ from 'lodash'; import React from 'react'; import Layout from './layout'; import Loading from '../../components/loading'; import { connectRedux, routing } from '../../helpers/decorators'; import * as StringUtils from '../../../utils/string'; var Component = React.createClass({ render: function() { l...
docs/app/Examples/elements/Image/States/ImageExampleDisabled.js
vageeshb/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleDisabled = () => ( <Image src='/assets/images/wireframe/image.png' size='medium' disabled /> ) export default ImageExampleDisabled
node_modules/react-router/es6/Router.js
tousif101/YouTube-Clone-React
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
sam-front/src/components/MainMenu.js
atgse/sam
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import { CardMedia } from 'material-ui/Card'; import { Link } from 'react-router'; import Version from './Version'; const boxShadow = 'rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4p...
pages/about.js
cindytung/calwtcrew
import React from 'react'; import { prefixLink } from 'gatsby-helpers'; // eslint-disable-line import Officers from '../components/Officers'; import Coaches from '../components/Coaches'; import team from '../assets/images/team.jpg'; const AboutComponent = () => ( <div> <div className="page__header"> ABOUT ...
client/components/layout/nav.js
ShannChiang/meteor-react-redux-base
import React from 'react'; import {Link} from 'react-router'; export default (props) => ( <nav className="navbar navbar-default navbar-fixed-top"> <div className="container"> <div className="navbar-header"> <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="coll...
src/home/views/HomeTabNavigation.js
razor1895/react-native-redux-one
import React, { Component } from 'react'; // import { addNavigationHelpers } from 'react-navigation'; import { connect } from 'react-redux'; import HomeTabNavigator from '../navigationConfiguration'; class HomeTabNavigation extends Component { render() { // const { dispatch, navigationState } = this.props; r...
test/kitchensink/src/features/webpack/SvgInCss.js
egoist/vbuild
import React from 'react' import './assets/svg.css' export default () => <div id="feature-svg-in-css" />
src/views/Planets/assets/Cog.js
phazor/phazor.github.io
import React from 'react'; const Cog = ({className, onClick}) => ( <div onClick={onClick}> <svg className={className} viewBox="0 0 64 64" width="64" height="64" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"> <path d="M 27.85368649427099 0 L 36.14631350572901 0 L 37.99826471205134 9.795927840953144...
test/js/release_test/GroupTestMaterials.js
viromedia/viro
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import { ViroScene, ViroBox, ViroMaterials, ViroNode, ViroImage, ViroVideo, ViroFlexView, V...
src/components/pages/language-list/index.js
translatium/translatium
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ /* global document */ import React from 'react'; import PropTypes from 'prop-types'; import AppBar from '@materia...
src/components/FilterManager/index.js
pyreta/MIDInterceptor-Electron
import React from 'react'; import midiActions from '../../helpers/midiActions'; import { otherListenerTypes } from '../../constants'; import * as noteFilters from './noteFilters'; export class FilterManager extends React.Component { componentWillMount() { this.props.dispatch({ selectedFilters: [], filteredNotes:...
src/fields/Image/index.js
cantonjs/re-admin
import styles from './styles'; import React, { Component } from 'react'; import { createRef } from 'utils/reactPolyfill'; import PropTypes from 'utils/PropTypes'; import { observable, action } from 'mobx'; import { observer } from 'mobx-react'; import { Icon, Modal } from 'antd'; import { Upload } from 'components/Form...
js/jqwidgets/demos/react/app/chart/colorbandsxaxis/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let source = { datatype: 'tsv', datafields: [ { name: 'Year' }, ...
react/features/jwt/components/CallOverlay.js
KalinduDN/kalindudn.github.io
/* @flow */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Audio } from '../../base/media'; import { Avatar } from '../../base/participants'; import { Container, Text } from '../../base/react'; import UIEvents from '../../../../service/UI/UIEvents'; import styles from './st...
blueprints/component/files/src/components/__name__/__name__.js
nskpaun/group-therapist
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h1><%= pascalEntityName %></h1> </div> ) export default <%= pascalEntityName %>
src/client/containers/AppContainer.dev.js
iibing/chell
import React from 'react' import {browserHistory} from 'react-router' import {syncHistoryWithStore} from 'react-router-redux' import {Provider} from 'react-redux' import configureStore from '../store' import AppRouter from './AppRouter.js' import DevTools from './DevTools' if (module.hot) { module.hot.accept() } ...
html.js
francisdzheng/calwtcrew
import React from 'react'; import Helmet from 'react-helmet'; import { prefixLink } from 'gatsby-helpers'; const buildTime = new Date().getTime(); const Html = ({ body }) => { const head = Helmet.rewind(); return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta httpEquiv="X-UA-Co...
src/svg-icons/av/hearing.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHearing = (props) => ( <SvgIcon {...props}> <path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ...
src/website/app/demos/Popover/Popover/examples/customContent.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import Button from '../../../../../../library/Button'; import Popover from '../../../../../../library/Popover'; import Popper from '../../../../../../library/Popover/RtlPopper'; import { componentStyleReset } from '../../../../../../library/st...
src/svg-icons/notification/event-available.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEventAvailable = (props) => ( <SvgIcon {...props}> <path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ...
src/index.js
mandeepbrar/react-starter
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app' // Render the main component into the dom ReactDOM.render(<App/>, document.getElementById('app'));
examples/material-UI-components/src/index.js
tannerlinsley/react-table
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
FunPaceReact/app/components/Toggle/index.js
mul1sh/Fun-Pace
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
src/pages/form-test/index.js
Kalcode/Gatsby-Boilerplate
import React from 'react' import Form, { Checkboxes, Input, TextArea, Select, Submit, Radios } from 'components/Form' import ThankYou from 'components/ThankYou' export default function FormTestPage() { return ( <main> <div className='row'> <div className='columns'> <h2>Form Test</h2> ...
src/utils/ValidComponentChildren.js
tannewt/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
src/index.js
timtyrrell/react-redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, connect } = createAll(React);
app/containers/App/index.js
luis-teixeira/react-twilio-webphone
/* global Twilio b:true */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import InOutCall from 'containers/InOutCall'; import MainNavBar from 'containers/MainNavBar'; import { getTWToken, twAppReady, twAppError, twAppConnect, twAppDisco...
react/front/src/components/bootstrap4/b4row.js
kopringo/GenealogyViewer
import React from 'react'; const B4Row = (props) => { return ( <div className="row">{props.children}</div> ); }; export default B4Row;
src/framework/client/init-render.js
foobarhq/reworkjs
// @flow import React from 'react'; import ReactDOM from 'react-dom'; import serverStyleCleanup from 'node-style-loader/clientCleanup'; import { loadableReady } from '@loadable/component'; import { updateServiceWorker } from '../common/service-worker-updater'; import RootComponent from './root-component'; const appCo...
assets/jqwidgets/demos/react/app/maskedinput/fluidsize/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxMaskedInput from '../../../jqwidgets-react/react_jqxmaskedinput.js'; class App extends React.Component { render() { return ( <div> <div style={{ fontSize: 13, fontFamily: 'Verdana', marginTop: 10 }}> ...
docs/app/Examples/elements/Reveal/Variations/RevealExampleInstant.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleInstant = () => ( <Reveal animated='move' instant> <Reveal.Content visible> <Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> ...
app/components/buttons/MyButtonController.js
jefferchang/reactApp
/** * Created by Administrator on 2016/3/30. */ import React from 'react' import ListStore from '../../stores/ListStore' import ButtonActions from '../../actions/ButtonActions' import MyButton from './MyButton' var MyButtonController = React.createClass({ // getInitialState: function () { return { ...
fields/types/number/NumberField.js
Tangcuyu/keystone
import React from 'react'; import Field from '../Field'; import { FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'NumberField', valueChanged (event) { var newValue = event.target.value; if (/^-?\d*\.?\d*$/.test(newValue)) { this.props.onChange({ path: this.props.path, value...
src/views/SecretView.js
dont-fear-the-repo/fear-the-repo
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import counterActions from 'actions/counter'; // import { RaisedButton } from 'material-ui/lib'; const mapStateToProps = (state) => ({ counter: state.counter, routerState: state.router }); const mapDispat...
app/components/Map.js
AlmightyLobsters/CanSat2017.App
import React from 'react'; import { connect } from 'react-redux'; import { Map as LeafletMap, TileLayer, Marker, Popup } from 'react-leaflet'; const toDegrees = tude => { let wholeDegrees = Math.floor(tude / 100); let decimalDegrees = (tude - wholeDegrees * 100) / 60; return wholeDegrees + decimalDegrees; ...
src/reactUrlShortner.js
stejas123/react-google-url-shortner
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _googleApi from './gapi-loader'; class GoogleUrlShortner extends Component { constructor(props) { super(props); /* setting initial state for shortUrl */ this.state = { shortUrl: '' } this._getShortUrl = t...
app/javascript/mastodon/features/ui/components/confirmation_modal.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; export default @injectIntl class ConfirmationModal extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, ...
examples/js/manipulation/debounce-search-table.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries', 'cherries' ]; for (let i =...
geonode/contrib/monitoring/frontend/src/components/molecules/ws-service-select/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; import actions from './actions'; const mapStateToProps = (state) => ({ services: state.wsServices.response, select...
client/src/components/dashboard/messaging/conversation-list.js
joshuaslate/mern-starter
import React, { Component } from 'react'; import cookie from 'react-cookie'; const moment = require('moment'); import ConversationItem from './conversation-item'; class ConversationList extends Component { constructor(props) { super(props); this.userCookie = cookie.load('user'); } render() { const...
app/templates/example/components/App.js
chentsulin/generator-cfm
import React, { Component } from 'react'; import <%= camelModuleName %> from '<%= moduleName %>'; class App extends Component { render() { return ( <p> {<%= camelModuleName %>()} </p> ); } } export default App;
docs/app/Examples/views/Statistic/Variations/StatisticExampleFloated.js
koenvg/Semantic-UI-React
import React from 'react' import { Segment, Statistic } from 'semantic-ui-react' const StatisticExampleFloated = () => ( <Segment> <Statistic floated='right' label='Views' value='2,204' /> <p> Te eum doming eirmod, nominati pertinacia argumentum ad his. Ex eam alia facete scriptorem, est autem aliquip...
node_modules/react-router/es/Router.js
Snatch-M/fesCalendar
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
react-flux-mui/js/material-ui/src/svg-icons/image/crop-portrait.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/> </SvgIcon> ); ImageCropPortrait = pure(ImageCropP...
docs/src/app/components/pages/components/SelectField/Page.js
skarnecki/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...
test/integration/font-optimization/fixtures/with-typekit/pages/static-head.js
zeit/next.js
import React from 'react' import Head from 'next/head' const Page = () => { return ( <> <Head> <link href="https://use.typekit.net/erd0sed.css" rel="stylesheet" /> </Head> <div>Hi!</div> </> ) } export default Page
app/components/Configuration.js
billyvg/pokemon-journal
import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import styles from './Home.css'; export default class Login extends Component { render() { return ( <div className={styles.container}> <TextField hintText="Username" floatingLabelText="Usern...
examples/Main.js
ornl-sava/vis-react-components
import React from 'react' import { Redirect, Route, Switch } from 'react-router-dom' import HistogramExample from './HistogramExample' import HeatmapExample from './HeatmapExample' import ScatterplotExample from './ScatterplotExample' import ChoroplethExample from './ChoroplethExample' import CircumshakerExample from '...
client/components/breadcrumb.js
mickael-kerjean/nuage
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { NgIf, Icon, EventEmitter, EventReceiver } from './'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import './breadcrumb.scss'; export class BreadCrumb extends React.Component { ...
src/js/index.js
omidfi/kish
import React from 'react'; import io from './io'; import Index from './components/Index'; React.render( <Index io={io} />, document.getElementById('container') );
app/javascript/mastodon/components/autosuggest_input.js
clworld/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import Im...
app/javascript/mastodon/components/autosuggest_hashtag.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ShortNumber from 'mastodon/components/short_number'; import { FormattedMessage } from 'react-intl'; export default class AutosuggestHashtag extends React.PureComponent { static propTypes = { tag: PropTypes.shape({ name: PropTypes.string...
src/icons/Ionic.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Ionic extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M423.592,132.804C427.006,127.714,429,121.59,429,115c0-17.675-14.33-32-32-32c-6.59,0-12.714,1.994-17.805,5.409 C344.7...
client/components/Faq/index.js
bzswords/blackstallion
/* * * Faq * */ import React from 'react'; import Page from './../shared/Page'; import PageHeader from './../shared/PageHeader'; import Questions from './../Faq/Questions'; import MobileBackground from './../../assets/images/Faq/mobile-faq-header-img.jpg'; import DesktopBackground from './../../assets/images/Faq...
web/src/client/createRoutes.js
nason/este
import App from './app/app.react'; import Home from './pages/home.react'; import Login from './pages/auth.react'; import Me from './pages/me.react'; import NotFound from './pages/notFound.react'; import React from 'react'; import Todos from './pages/todos.react'; import {IndexRoute, Route} from 'react-router'; export ...
app/javascript/mastodon/features/reblogs/index.js
Toootim/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs } from '../../actions/interactions'; import { ScrollContainer } from ...
src/browser/components/loading/index.js
ap-o/intro
import React from 'react'; const Loading = () => { return ( <div>Loading</div> ); }; export default Loading;
src/Grid.js
snadn/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Grid = React.createClass({ propTypes: { /** * Turn any fixed-width grid layout into a full-width layout by this property. * * Adds `container-fluid` class. */ fluid...
src/components/DangerButton/DangerButton.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import Button from '../Button'; const DangerButton = props => <Button kind="danger" {...props} />; export defaul...
app/react/src/client/manager/preview.js
shilman/storybook
import PropTypes from 'prop-types'; import React, { Component } from 'react'; const iframeStyle = { width: '100%', height: '100%', border: 0, margin: 0, padding: 0, }; class Preview extends Component { shouldComponentUpdate() { // When the manager is re-rendered, due to changes in the layout (going fu...
app/modules/common/pagination/first.js
theseushu/funong-web
import React from 'react'; import IconButton from 'react-mdl/lib/IconButton'; export default (props) => <IconButton ripple name="first_page" {...props}>...</IconButton>;
src/components/Modal/demo/wanshi1/components/HonorDetail/index.js
lebra/lebra-components
import React, { Component } from 'react'; import {PropTypes} from 'prop-types'; import classNames from 'classnames'; import './index.css'; //import imgsrc from './detailhonor.jpeg'; const propType = { honorname: PropTypes.string.isRequired, //荣耀名字:精益求精 honorform: PropTypes.string.isRequired, //荣耀是谁颁发的 hon...
src/pages/dolps.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Dolps' /> )
ressources/components/Gtag.js
mscodemonkey/Sketch-Find-And-Replace
import React from 'react' import styled from 'styled-components' const GtagContainer = styled.div` position: absolute; bottom: 0; right: 0; ` const Gtag = () => { return <GtagContainer> <img style={{ opacity: 0.1 }} src="https://www.google-analytics.com/collect?v=1&tid=UA-37385154-1&cid=555&...
assets/react/src/components/task/mailbox_inbox.js
khoa-le/crontask
import React, { Component } from 'react'; import MailBoxItem from './task_item.js'; import ReactPaginate from 'react-paginate'; export default class MailBoxInbox extends Component { constructor(props) { super(props); this.state = { data: [], offset: 0, loading:f...
src/components/tcomb/TextInput.js
banovotz/WatchBug2
/** * Text Input template for tcomb * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { View } from 'react-native'; // Components import { FormInput, FormLabel, FormValidationMessage } from '@ui/'; /* Component ================================...
src/components/Pagination/Pagination.js
ConciergeAuctions/react-mui-table
// @flow import React, { Component } from 'react'; import isEqual from 'lodash.isequal'; import IconButton from 'material-ui/IconButton'; import ArrowLeft from 'material-ui/svg-icons/hardware/keyboard-arrow-left'; import ArrowRight from 'material-ui/svg-icons/hardware/keyboard-arrow-right'; import RowsPerPage from './...
app/javascript/mastodon/components/column_back_button_slim.js
vahnj/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import ColumnBackButton from './column_back_button'; export default class ColumnBackButtonSlim extends ColumnBackButton { render () { return ( <div className='column-back-button--slim'> <div role='button' tabIndex='0' onClic...
local-cli/templates/HelloWorld/App.js
negativetwelve/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', and...
src/js/components/icons/base/Search.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...
stories/props/allDayAccessor.stories.js
jquense/react-big-calendar
import React from 'react' import { Calendar } from '../../src' import { accessorStoryArgs } from './storyDefaults' import mdx from './allDayAccessor.mdx' export default { title: 'props', component: Calendar, argTypes: { localizer: { control: { type: null } }, events: { control: { type: null } }, defa...
node_modules/react-native-vector-icons/RNIMigration.js
weatherfordmat/YorViewReactNative
import React from 'react'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import Foundation from 'react-native-vector-icons/Foundation'; import Ionicons from 'react-native-vector-icons/Ionicons'; import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; import Zocial from 'react-native-vect...
src/svg-icons/action/restore-page.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestorePage = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3....
src/Parser/DeathKnight/Unholy/Modules/Features/AlwaysBeCasting.js
hasseboulen/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellLink from 'common/SpellLink'; class AlwaysBeCasting extends CoreAlwa...