path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/pages/api-docs/backdrop.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/backdrop'; const requireRaw = require.context('!raw-loader!./', false, /\/backdrop\.md$/); export default function Page({ do...
packages/app/app/components/Dashboard/BestNewMusicTab/BestNewMusicMenu/BestNewMusicCard/index.js
nukeop/nuclear
import React from 'react'; import PropTypes from 'prop-types'; import { Icon } from 'semantic-ui-react'; import { createLastFMLink } from '../../../../../utils'; import { favoriteTrackShape } from '../../../../../constants/propTypes'; import styles from './styles.scss'; function toFavoriteTrack({ artist, title, thumb...
src/index.js
jamzi/balistos-react
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import createSagaMiddleware from 'redux-saga'; import App from './components/App'; import reducer from './reducers'; import rootSaga from './sagas'; const sagaMidd...
bemuse/src/game/index.js
bemusic/bemuse
import BemusePackageResources from 'bemuse/resources/bemuse-package' import React from 'react' import SCENE_MANAGER from 'bemuse/scene-manager' import URLResource from 'bemuse/resources/url' import audioContext from 'bemuse/audio-context' import query from 'bemuse/utils/query' import { resolveUrl } from 'url' import { ...
src/app/containers/SerialComponent.js
UrgBenri/UrgBenriWeb
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import SerialConnection from '../components/SerialConnection'; export const SerialComponent = () => ( <div> <SerialConnection /> </div> ) SerialComponent.propTypes = {...
src/clincoded/static/components/publication.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; import createReactClass from 'create-react-class'; import { content_views, listing_views, itemClass, truncateString } from './globals'; import { AuditMixin, AuditIndicators, AuditDetail } from './audit'; import { DbxrefList, Dbxref } from './dbxref'; var search =...
packages/icons/src/md/device/SignalWifi1BarLock.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdSignalWifi1BarLock(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <g> <path d="M40.3 18c.7 0 1.4.1 2.1.2l4.2-5.2c-.9-.7-9.8-8-23.3-8S.9 12.3 0 13l23.3 29 7-8.7V28c0-5.5 4.5-10 10-10z" o...
packages/es-components/src/components/patterns/callToAction/LightCallToAction.js
TWExchangeSolutions/es-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import LightNotification from '../../containers/notification/LightNotification'; import { getCallToActionChildren } from './getCallToActionChildren'; const Container = styled.div` flex-basis: 100%; `; const CallT...
client/utils/index.js
eventhough/react-redux-starter-kit
import assign from 'object-assign'; import React from 'react'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createConstants(...constants) { return constants.reduce((acc, constant) => { return assign(acc, { [constant]: constant, }); }, {}); } export fun...
examples/huge-apps/components/App.js
trotzig/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { render() { var courses = COURSES; return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={co...
1-React-Basic/src/app/index.js
ekaaditiac/React-Basic-API
import React from 'react'; import ReactDOM from 'react-dom'; import Request from 'superagent'; import _ from 'lodash'; class App extends React.Component{ constructor(){ super(); this.state = {}; } componentDidMount(){ // Component yang setelah di render di dalam halaman // var url = "http://o...
react-app/src/components/Race.js
tanykim/swimmers-history
import React, { Component } from 'react'; import ReactResizeDetector from 'react-resize-detector'; import * as d3 from 'd3'; import _ from 'lodash'; import Tippy from 'tippy.js'; class RaceComponent extends Component { drawAthlete(g, a, x, y, halfL, strokeW, isOutside, props, raceId) { g.append('line') .a...
admin/client/components/FormHeading.js
mikaoelitiana/keystone
import React from 'react'; import evalDependsOn from '../../../fields/utils/evalDependsOn'; module.exports = React.createClass({ displayName: 'FormHeading', propTypes: { options: React.PropTypes.object }, render () { if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) { return nu...
src/components/MainNav/AppList/components/ResizeContainer/ResizeContainer.js
folio-org/stripes-core
/** * AppList -> ResizeContainer */ import React from 'react'; import classnames from 'classnames'; import debounce from 'lodash/debounce'; import PropTypes from 'prop-types'; import css from './ResizeContainer.css'; class ResizeContainer extends React.Component { static propTypes = { children: PropTypes.func...
node_modules/react-bootstrap/es/MenuItem.js
saltypaul/SnipTodo
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
test/integration/link-ref/pages/function.js
JeromeFitz/next.js
import React from 'react' import Link from 'next/link' const MyLink = React.forwardRef((props, ref) => ( <a {...props} ref={ref}> Click me </a> )) export default () => ( <Link href="/" passHref> <MyLink /> </Link> )
src/components/Header/Header.js
jahrlin/visual-regression-testing
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.scss'; import withStyles from '../../decorators/withStyles'; import Link from '../../utils/Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { ...
src/components/SearchBox/SearchBox.js
divyanshu013/impulse-tabs
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; class SearchBox extends React.Component { constructor() { super(); this.state = { searchText: '' }; this.search = this.search.bind(this); this.handleUpdateInput = this.handleUpdateInput.bind(this); } searc...
src/BlurryImage.js
ErezNagar/Blurry-Image-Loader
// import React from 'react' class BlurryImage extends React.Component { constructor(props) { super(props); this.state = { style: { overflow: "hidden", backgroundImage: "url(" + this.props.placeholder + ")", backgroundSize: "cover", ...
OleksiiOnSoftware.Apps.Blog/client/components/ShortPost/index.js
boades/PpmSystem
/* @flow */ // React import React from 'react' // UI import { Item } from 'semantic-ui-react' import ReactDisqusThread from 'react-disqus-thread' // Custom UI import { PostDate, PostCategory, PostTag, PostComments } from 'components' // Types import type { Post, Tag, Category } from 'types' type Props = { ...
pages/decal/lesson-6/index.js
jubearsun/innovative-design
import React from 'react'; import DocumentTitle from 'react-document-title'; import { prefixLink } from 'gatsby-helpers'; import $ from 'jquery'; import _ from 'lodash'; export default class Index extends React.Component { constructor(props) { super(props); } componentDidMount() {} render () { retur...
src/components/Card/Card.js
IFS49F/poker
import React from 'react'; import classNames from 'classnames'; import './Card.css'; const Card = ({ highlight, voted, show, suit, score }) => { const cardClass = classNames('Card', { highlight, voted, show }); return ( <div className={cardClass}> <div className="front face"> { !show ...
src/containers/UsersAdd.js
lukin-deema/FileSystem
import React from 'react'; import {connect} from 'react-redux'; import UsersAdd from '../components/UsersAdd'; const calculateNextIndex = (state) => { return Math.max(0, ...state.users.map(x => x.id)) + 1; }; const mapStateToProps = (state) => ({ nextIndex: calculateNextIndex(state) }); export default connec...
stories/components/pages/application-list/index.js
one-love/storybook
import React from 'react'; import Application from '../../molecules/application'; import List from '../../layouts/list'; export default function ApplicationList() { return ( <List title="Applications" service="active"> <Application name="Docker" /> <Application name="Flask" /> <Application nam...
src/components/ContestList.js
bdkay/node-that-band
import React from 'react'; import ContestPreview from './ContestPreview'; const ContestList = ({ contests, onContestClick }) => ( <div className="ContestList"> {Object.keys(contests).map(contestId => <ContestPreview key={contestId} onClick={onContestClick} {...contests[contestId]} /...
demo/src/models/posts/List.js
shrimpliu/shradmin
import React from 'react'; import truncate from 'lodash/truncate'; import { Link } from 'mirrorx'; import { List, DataTable, TextField, BelongsToField } from '../../../../src'; import Filters from './Filters'; export default (props) => ( <List model="posts" filters={<Filters />} {...props}> <DataTable> <Te...
app/Pages/SettlementViewNew/MoneyInfo/Coupon.js
jd-daojia/DaojiaRN
/* @flow */ import React, { Component } from 'react'; import MoneyItem from './MoneyItem' export default class Coupon extends Component { render() { let {couponInfo, couponName} = this.props let couponValue = '' let couponColor = undefined if(!couponInfo.promoteType) { couponValue = couponInf...
src/js/components/ui/Modals/CloseModal.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * 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...
src-client/modules/generator/containers/ComponentNameForm/index.js
ipselon/structor
/* * Copyright 2017 Alexander Pustovalov * * 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 a...
docs/app/Examples/elements/Image/Variations/ImageExampleVerticallyAligned.js
ben174/Semantic-UI-React
import React from 'react' import { Divider, Image } from 'semantic-ui-react' const src = 'http://semantic-ui.com/images/wireframe/image.png' const ImageExampleVerticallyAligned = () => ( <div> <Image src={src} size='tiny' verticalAlign='top' /> <span>Top Aligned</span> <Divider /> <Image src={src} siz...
frontend/javascript/index.js
artyomtrityak/graphql-relay-docker-node
import App from './components/app.component'; import AppHomeRoute from './routes/app-home.route'; import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; Relay.injectNetworkLayer( new Relay.DefaultNetworkLayer('http://192.168.99.100:5000/graphql', { credentials: 'same-origin...
docs/src/components/Home/Hero/IconPreview/IconPreview.js
seekinternational/seek-asia-style-guide
import styles from './IconPreview.less'; import React from 'react'; import { Icon } from 'seek-asia-style-guide/react'; export default function IconPreview() { return ( <div className={styles.root}> <Icon type="education" size="large" /> <Icon type="experience" size="large" /> <Icon type="re...
packages/wix-style-react/src/PageFooter/End/End.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { classes } from './End.st.css'; class End extends React.Component { static propTypes = { children: PropTypes.node, }; render() { const { children } = this.props; return <div className={classes.end}>{children}</div>; } } export...
src/index.js
jchouse/floorball-web
import React, { Component } from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { Provider } from 'react-redux'; import { createStore, compose } from 'redux'; import { addLocaleData ...
src/utils/ValidComponentChildren.js
AlexKVal/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/components/TodoWidget/TodoWidget.js
stefanwille/react-todo
import React from 'react' import TodoForm from 'containers/TodoForm' import TodoList from 'containers/TodoList' import TodoItemsLeft from 'containers/TodoItemsLeft' import TodoFilter from 'containers/TodoFilter' const TodoWidget = () => ( <div className='todo-widget'> <TodoForm /> <TodoList /> <To...
node_modules/react-select/examples/src/components/CustomComponents.js
xuan6/admin_dashboard_local_dev
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from 'react-select'; import Gravatar from 'react-gravatar'; const USERS = require('../data/users'); const GRAVATAR_SIZE = 15; const GravatarOption = createClass({ propTypes: { children: PropTy...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
samzhao/HR-Recruitment-Management-System
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
app/assets/javascripts/react/views/My/TokenCreatedPage.js
Madek/madek-webapp
import React from 'react' import f from 'lodash' import { TokenRow } from './Tokens' import ui from '../../lib/ui.coffee' import UI from '../../ui-components/index.coffee' import setUrlParams from '../../../lib/set-params-for-url.coffee' const t = ui.t class TokenCreatedPage extends React.Component { render (props =...
src/svg-icons/notification/vpn-lock.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVpnLock = (props) => ( <SvgIcon {...props}> <path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-...
src/svg-icons/navigation/menu.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMenu = (props) => ( <SvgIcon {...props}> <path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/> </SvgIcon> ); NavigationMenu = pure(NavigationMenu); NavigationMenu.displayName = 'NavigationMenu';...
templates/rubix/demo/src/routes/Gallery.js
jeffthemaximum/jeffline
import React from 'react'; import { Row, Col, Icon, Grid, Panel, Image, Table, Button, PanelBody, PanelHeader, PanelContainer, } from '@sketchpixy/rubix'; class GalleryItem extends React.Component { constructor(props) { super(props); this.state = { active: this.props.active || fa...
map/src/components/InputField/index.js
teikei/teikei
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' const InputField = ({ meta: { touched, error, warning }, ...props }) => ( <div className={`form-input-${props.type} ${classNames({ 'form-input-error': (error || warning) && touched, })}`} > <label ...
packages/editor/src/components/Controls/Remove/Remove.js
boldr/boldr
/* @flow */ import React from 'react'; import type { Node } from 'react'; import { EditorState, Modifier } from 'draft-js'; import { getSelectionCustomInlineStyle, forEach } from '../../../utils'; import RemoveLayout from './RemoveLayout'; export type Props = { onChange: Function, editorState: Object, config: ...
src/patients/Main.js
ConnectHealth/ch-app
// @flow import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { action } from 'mobx'; import List from 'material-ui/List'; import Header from './Header'; import PatientItem from './PatientItem'; import type PatientStore from './store'; type Props = { patientStore: PatientStore, ...
javascript/components/vendor-id-input.js
kdoran/moriana-react
import React from 'react' export default class VendorIdInput extends React.Component { state = { inputValue: '' } componentDidMount = (newProps) => { if (this.props.value) { this.setState({ inputValue: this.props.value }) } } onChange = (event) => { this.setState({ inputValue: event.current...
app/javascript/mastodon/components/display_name.js
dwango/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, others: ImmutablePropTypes.list, }; render () { const { account, others } = this.pro...
packages/material-ui-icons/src/ExposurePlus1.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ExposurePlus1 = props => <SvgIcon {...props}> <path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z" /> </SvgIcon>; ExposurePlus1 = pure(ExposurePlus1); ExposurePlus1.muiNam...
pages/api/list-item-avatar.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './list-item-avatar.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
app/components/ListItem/index.js
KyleAWang/react-boilerplate
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
actor-apps/app-web/src/app/components/common/Favicon.react.js
hmoraes/actor-platform
import React from 'react'; export default class Fav extends React.Component { static propTypes = { path: React.PropTypes.string } constructor(props) { super(props); //// Create link element and it's attributes //let favicon = document.createElement('link'); //let rel = document.createAttrib...
templates/react/components/foo/Update.js
api-platform/generate-crud
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import Form from './Form'; import { retrieve, update, reset } from '../../actions/{{{lc}}}/update'; import { del } from '../../actions/{{{lc}}}/delete';...
packages/react-native-renderer/src/ReactNativeComponent.js
anushreesubramani/react
/** * Copyright (c) 2013-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. * * @flow * @format */ import type { MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback, ...
src/svg-icons/action/lock.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLock = (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-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-....
examples/components/Root.js
iamvijaydev/react-augment-native-scroll
import React from 'react' import { Router, Route, IndexRoute, hashHistory } from 'react-router' import App from './App' import Home from './Home' import ConnectScrollsExample from './ConnectScrollsExample' import KineticScrollExample from './KineticScrollExample' const Root = () => ( <div> <Router history={ha...
examples/react-testing-library/CheckboxWithLabel.js
bookman25/jest
// Copyright 2004-present Facebook. All Rights Reserved. import React from 'react'; export default class CheckboxWithLabel extends React.Component { state = {isChecked: false}; onChange = () => { this.setState({isChecked: !this.state.isChecked}); }; render() { return ( <label> <input ...
mobile/src/LoadingMessage/index.js
TailorDev/pauling
/* @flow */ import React from 'react'; import { View } from 'react-native'; import { Spinner, Text } from 'native-base'; import { colors } from 'app/settings'; import styles from './styles'; type Props = {| children?: string, |}; const LoadingMessage = ({ children }: Props) => <View style={styles.LoadingMessage}...
src/pages/download/core.js
getinsomnia/website
import React from 'react'; import SocialCards from '../../components/social-cards'; import Contributors from '../../partials/contributors'; import Title from '../../partials/title'; import Link from '../../components/link'; import DownloadIcon from '../../components/download-icon'; export default class extends React.C...
src/packages/toolbar-button/src/BottomLink.js
MikkCZ/pontoon-tools
import React from 'react'; import './BottomLink.css'; /** * React component of a section bottom link. */ export class BottomLink extends React.Component { render() { return ( <button className="BottomLink" onClick={this.props.onClick}>{this.props.text}</button> ); } }
src/application/components/pages/index.js
localnerve/react-pwa-boilerplate
/*** * Copyright (c) 2016 - 2021 Alex Grant (@localnerve), LocalNerve LLC * Copyrights licensed under the BSD License. See the accompanying LICENSE file * for terms. * * A collection of supportive methods for rendering the application. */ import React from 'react'; import ReactModal from 'react-modal'; import mer...
src/component/common/about.js
CaiHuan/react_native_zhihu_demo
import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Header from './header'; export default class About extends Component { constructor(props) { super(props); } render() { return ( <View style={{flexDirection:'column', flex:1, backgroundCo...
judge/client/src/Views/ProblemListView.js
istamenov/NodeJS_Judge
import React, { Component } from 'react'; import CompactProblem from '../Components/CompactProblem' import ProblemForm from '../Components/ProblemForm'; class ProblemListView extends Component { render() { return ( <div className="ProblemListView"> {this.props.problems.map(problem => { ...
app/layouts/TwoColumnLayout/index.js
transparantnederland/browser
import './index.css'; import React from 'react'; const TwoColumnLayout = ({ children }) => <div className="TwoColumnLayout"> <div className="TwoColumnLayout-left"> {children[0]} </div> <div className="TwoColumnLayout-right"> {children[1]} </div> </div>; export default TwoColumnLayout;
assets/jqwidgets/demos/react/app/tagcloud/showhidetags/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTagCloud from '../../../jqwidgets-react/react_jqxtagcloud.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { this.refs.hideItem.on('click', (event) => { ...
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/downloadlist.js
patel344/Mr.Miner
import PropTypes from 'prop-types' import React from 'react' import TransferList from './transferlist.js' import { List } from 'immutable' const DownloadList = ({downloads, onDownloadClick, onClearClick}) => ( <div className="downloads"> <h3> Downloads </h3> <TransferList transfers={downloads} onTransferClick={on...
wrappers/toml.js
amni/portfolio
import React from 'react' import toml from 'toml-js' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
mxcube3/ui/components/Tasks/Characterisation.js
mguijarr/mxcube3
import React from 'react'; import { reduxForm } from 'redux-form'; import { Modal } from 'react-bootstrap'; import validate from './validate'; /* eslint camelcase: 0 */ class Characterisation extends React.Component { constructor(props) { super(props); this.runNow = this.handleSubmit.bind(this, true); ...
src/index.js
joyvuu-dave/joyvuu-dave.github.io
import React from 'react'; import { App } from './App'; React.render(<App />, document.getElementById('root'));
screens/CompanyDetails.js
Justbit-site/justbit-mobile
import React from 'react'; import { View, Text, StyleSheet, TextInput, TouchableOpacity } from 'react-native'; import Ripple from 'react-native-material-ripple'; import { FontAwesome } from '@expo/vector-icons'; import CompanyBox from '../components/companies/companyBox'; import CommentList from '../componen...
src/admin/client/routes/pages/index.js
cezerin/cezerin
import React from 'react'; import List from 'modules/pages/list'; export default () => ( <div className="row row--no-gutter col-full-height scroll"> <div className="col-xs-12 col-sm-12 col-md-10 col-lg-8 col-md-offset-1 col-lg-offset-2"> <List /> </div> </div> );
src/svg-icons/notification/airline-seat-flat.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatFlat = (props) => ( <SvgIcon {...props}> <path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.1...
app/javascript/mastodon/features/ui/components/tabs_bar.js
pixiv/mastodon
import classNames from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; export const lin...
springboot/GReact/src/main/resources/static/app/components/i18n/LanguageSelector.js
ezsimple/java
import React from 'react' import Reflux from 'reflux' import classnames from 'classnames' import LanguageActions from './LanguageActions' import LanguageStore from './LanguageStore' const LanguageSelector = React.createClass({ getInitialState: function(){ return { 'store': LanguageStore.getData...
actor-apps/app-web/src/app/components/activity/GroupMember.react.js
hzy87email/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import React from 'react'; import DialogActionCreators from 'actions/DialogActionCreators'; import KickUserActionCreators from 'actions/KickUserActionCreators'; import KickUserStore from 'stores/KickUserStore' import AvatarItem from 'components/common/Avata...
src/components/visual/FormSubmitFeedback.js
rizip1/TIA
import React from 'react' import styles from './FormSubmitFeedback.scss' export default ({children, type = 'success'}) => { return (<span className={styles[type]}>{children}</span>) }
node_modules/react-bootstrap/es/SplitToggle.js
vitorgomateus/NotifyMe
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DropdownToggle fr...
src/svg-icons/action/rowing.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRowing = (props) => ( <SvgIcon {...props}> <path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-...
client/analytics/components/partials/switсhInfo/GroupMarkerInfo.js
Haaarp/geo
import React from 'react'; import {Link} from 'react-router'; import { ListGroup, ListGroupItem } from 'react-bootstrap'; import Label from 'konux/common/components/Label'; import Button from 'konux/common/components/Button'; import AmPieChart from './../charts/AmPieChart'; class GroupMarkerInfo extends React.Compo...
app/javascript/flavours/glitch/features/compose/components/search_results.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import AccountContainer from 'flavours/glitch/containers/account_container'; import StatusContainer from 'flavours/glitch/...
src/icons/IosSunnyOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosSunnyOutline extends React.Component { render() { if(this.props.bare) { return <g> <style type="text/css"> .st0{fill:#010101;} </style> <g> <rect x="247" y="96" class="st0" width="18" height="56"></rec...
src/components/SearchResultsView.js
KtuluTeam/Ktulu
import React from 'react' import { Text, View, Button } from 'react-native' import * as cards from '../cards' import { ReadLoud, ManitouInfo } from './TextViews' import { NextFooter } from './Buttons' export const Result = ({participant, result}) => { if (!result) { return ( <View> <ReadLoud ...
src/scene/HomeScreen.js
hiteshsahu/React-Native-Music-Player
import React from 'react'; import Style from '../Style'; import { AppRegistry,Image, Text,View,Button,Alert, ToastAndroid,TouchableOpacity,Slider } from 'react-native'; import { StackNavigator } from 'react-navigation'; import MovieRow from '../components/MediaRow'; import MediaList from '../components/MediaList' i...
src/components/CartPreview.js
zeachco/rockplusinc.com
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import cx from 'classnames'; import CartIcon from 'react-icons/lib/md/shopping-cart'; import {toggleModal} from '../store/actions/cart'; const CartPreview = ({ count, isLoading }) => ( <a disabled={...
src/index.js
endreujhelyi/React-Router-Redux-Form
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import promise from 'redux-promise'; import routes from './routes'; import reducers from './reducers'; cons...
packages/material-ui/src/Button/Button.js
cherniavskii/material-ui
// @inheritedComponent ButtonBase import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import { fade } from '../styles/colorManipulator'; import ButtonBase from '../ButtonBase'; import { capitalize } from '../utils/helpers'; ...
src/svg-icons/image/photo-size-select-small.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectSmall = (props) => ( <SvgIcon {...props}> <path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H...
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devi...
packages/ringcentral-widgets-docs/src/app/pages/Components/LogIcon/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import LogIcon from 'ringcentral-widgets/components/LogIcon'; const props = {}; props.currentLocale = 'en-US'; /** * A example of `LogIcon` */ const LogIconDemo = () => ( <LogIcon {...props} /> ); export default LogIconDemo;
spec/javascripts/jsx/account_course_user_search/UsersListRowSpec.js
djbender/canvas-lms
/* * Copyright (C) 2015 - 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...
modules/gui/src/widget/pageable/pageableInfo.js
openforis/sepal
import {Consumer} from './pageableContext' import {msg} from 'translate' import PropTypes from 'prop-types' import React from 'react' export const PageableInfo = props => { const renderDefaultInfo = ({count, start, stop}) => <div> {msg('pagination.info', {count, start, stop})} </div> ...
amp-stories/src/component/view/LinkComponentsStoryView/pages/StoryPage2.js
ampproject/samples
import React from 'react'; import styled from 'styled-components'; import {TextHighlightBanner, Button as SharedButton} from '../shared'; import {BannerWrapper as SharedBannerWrapper} from '/component/base/TextHighlight'; import AmpStoryPage from '/component/amp/AmpStoryPage'; const Button = styled(SharedButton)` p...
src/components/Weui/msg/msg.js
ynu/ecard-wxe
/** * Created by jf on 15/11/4. */ import React from 'react'; import classNames from 'classnames'; import {Button} from '../button/index'; import Icon from '../icon/index'; class Msg extends React.Component { static propTypes = { type: React.PropTypes.string, buttons: React.PropTypes.array ...
app/components/ToggleOption/index.js
Demonslyr/Donut.WFE.Customer
/** * * ToggleOption * */ import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ); ToggleOption.propTypes = { va...
src/svg-icons/communication/call-made.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMade = (props) => ( <SvgIcon {...props}> <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/> </SvgIcon> ); CommunicationCallMade = pure(CommunicationCallMade); CommunicationCallMade.displ...
app/javascript/mastodon/components/status_list.js
primenumber/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/components/SoundList.js
remynaps/colb-ui
import React, { Component } from 'react'; import axios from 'axios'; class SoundList extends React.Component { constructor(props) { super(props); this.state = { sound: [] }; } componentDidMount() { axios.get(`http://localhost:8080/sounds`) .then(res => { this.setState({ soun...
web/react/src/containers/DevTools.js
Croissong/nussnougat
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 /> </Dock...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
darioajr/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
app/lib/BarcodeScanner.js
350467167/react_native
import React, { Component } from 'react'; import { StyleSheet, Text, View, Alert } from 'react-native'; import AndroidScanner from './AndroidBarcodeScanner'; import LoginButton from './LoginButton'; import OrderList from '../ui/OrderList' import OrderDetail from '../ui/OrderDetail' // impor...
src/svg-icons/image/audiotrack.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAudiotrack = (props) => ( <SvgIcon {...props}> <path d="M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/> </SvgIcon> ); ImageAudiotrack = p...