path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
fields/types/geopoint/GeoPointField.js
tanbo800/keystone
import Field from '../Field'; import React from 'react'; import { FormRow, FormField, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'GeopointField', focusTargetRef: 'lat', valueChanged (which, event) { this.props.value[which] = event.target.value; this.props.onChange({ path: t...
Realization/frontend/czechidm-core/src/content/codelist/CodeListDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import classnames from 'classnames'; // import * as Utils from '../../utils'; import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import { CodeListManager } from '../...
utils/withAuth.js
turntwogg/final-round
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Page from '../components/Page'; import PageContent from '../components/PageContent'; import Redirect from '../components/Redirect'; const mapStateToProps = state => ({ user: state.user }); const withAuth = WrappedComponent => { ...
SynapseClient/components/IntroSequence.js
jmorg/synapse
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Alert, Image, Dimensions, } from 'react-native'; const windowsWidth = Dimensions.get('window').width; const windowsHeight = Dimensions.get('window').height; import AppIntro from 'react-native-app-intro'; const styles ...
src/routes/Devices/components/nodes/Address.js
KozlovDmitriy/Pos.Hierarchy.Net
import React from 'react' import PropTypes from 'prop-types' import { Group } from '@vx/group' import Plus from './Plus' import NodeLabel from './NodeLabel' import CollapsedNode from './CollapsedNode' class Address extends CollapsedNode { static propTypes = { node: PropTypes.object.isRequired, errors: PropTy...
fields/types/boolean/BooleanField.js
mekanics/keystone
import React from 'react'; import Field from '../Field'; import { Checkbox, FormField, FormNote } from 'elemental'; module.exports = Field.create({ displayName: 'BooleanField', propTypes: { indent: React.PropTypes.bool, label: React.PropTypes.string, note: React.PropTypes.string, onChange: React.PropTypes....
src/ModalDialog.js
thealjey/react-bootstrap
/* eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ModalDialog = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * A Callback fired when the header closeButton or non-static backdrop is ...
src/forms/output/GraphTimeButtons.js
codeforboston/cliff-effects
import { Button } from 'semantic-ui-react'; import React from 'react'; const GraphButton = function ({ id, activeID, onClick }) { return ( <Button id = { id } active = { activeID === id } onClick = { onClick }> { id } </Button> ); }; const GraphTimeButtons = function ({ acti...
modules/Navigation.js
RobertKielty/react-router
import React from 'react'; var { object } = React.PropTypes; /** * A mixin for components that modify the URL. * * Example: * * import { Navigation } from 'react-router'; * * var MyLink = React.createClass({ * mixins: [ Navigation ], * handleClick(event) { * event.preventDefault(); * ...
consoles/my-joy-templates/src/components/toolbar.js
yldio/joyent-portal
import React from 'react'; import Flex from 'styled-flex-component'; import { If, Then } from 'react-if'; import { Margin } from 'styled-components-spacing'; import { Link } from 'react-router-dom'; import { Field } from 'redux-form'; import { FormGroup, Input, FormLabel, Button } from 'joyent-ui-toolkit'; export con...
fields/types/markdown/MarkdownField.js
concoursbyappointment/keystoneRedux
import Field from '../Field'; import React from 'react'; import { FormInput } from '../../../admin/client/App/elemental'; /** * TODO: * - Remove dependency on jQuery */ // Scope jQuery and the bootstrap-markdown editor so it will mount var $ = require('jquery'); require('./lib/bootstrap-markdown'); // Append/remo...
src/routes/app/routes/xdashboard/components/StatBoxes.js
ahthamrin/kbri-admin2
import React from 'react'; import ReactEcharts from 'components/ReactECharts'; import CHARTCONFIG from 'constants/ChartConfig'; // Small line charts const smline1 = {}; const smline2 = {}; const smline3 = {}; const smline4 = {}; smline1.options = { tooltip: { show: false, trigger: 'axis', axisPointer: { ...
tripwreck_mobile/src/components/common/CardSection.js
CupNCup/tripwreck
import React from 'react'; import { View } from 'react-native'; const CardSection = (props) => ( <View style={[styles.containerStyle, props.style]}>{ props.children }</View> ); const styles = { containerStyle: { borderBottomWidth: 1, padding: 5, backgroundColor: '#fff', justifyContent: 'flex-start...
src/index.js
Wenqer/food-proto
import React from 'react'; const buttonStyles = { border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3px 10px', }; const Button = ({ children, onClick, style = {} }) => ( <button style={{ ...buttonStyles, ...style }} onClick={onClick...
src/routes/Counter/components/Counter.js
YanlongLai/pofa-redux
import React from 'react' import PropTypes from 'prop-types' export const Counter = ({ counter, increment, doubleAsync }) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {counter}</h2> <button className='btn btn-primary' onClick={increment}> Increment </button> {' '} <button className...
src/components/Header/Header.js
kirsty-forrester/react-photo-collage
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
src/containers/pages/decks/deck/right-container/topbar/deck-author-details/social-media.js
vFujin/HearthLounge
import React from 'react'; import Tooltip from 'antd/lib/tooltip'; import Icon from "../../../../../../../components/icon"; import PropTypes from "prop-types"; const SocialMediaDetails = ({deckAuthor}) =>{ const {username, facebook, twitter, twitch, youtube} = deckAuthor; const wrapper = (media, profile, affix = ...
src/app/components/todolist_demo/todolist.js
ROZ32/react-example
import React from 'react'; import classNames from 'classnames'; // import Todo from './todo'; import TodoStore from '../../stores/TodoStore'; import TodoActions from '../../actions/TodoActions'; // import '../../styles/basic_demos.scss'; import '../../styles/todolist.scss' const MESSAGE = 'No items on the list'; cla...
web/src/components/DocumentView.js
Ding-Jun/Analysis
/** * Created by admin on 2016/10/8. */ import React from 'react' import {Row, Col} from 'antd'; class DocumentView extends React.Component { render() { var layout = { xs: { span: 24 }, sm: { span: 16, offset: 4 } } return ( <Row> <Col {...l...
client/views/admin/mailer/MailerRoute.js
VoiSmart/Rocket.Chat
import React from 'react'; import NotAuthorizedPage from '../../../components/NotAuthorizedPage'; import { usePermission } from '../../../contexts/AuthorizationContext'; import { useMethod } from '../../../contexts/ServerContext'; import { useToastMessageDispatch } from '../../../contexts/ToastMessagesContext'; import...
src/svg-icons/action/swap-vert.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVert = (props) => ( <SvgIcon {...props}> <path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/> </SvgIcon> ); ActionSwapVert = pure(ActionSwapVert); ActionSwapVert.displa...
examples/AwesomeApp/src/component/like.js
QianmiOpen/iflux
import { useRelax } from 'iflux'; import React from 'react'; import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; export default function Like() { const { count, setState } = useRelax(['count']); const inc = () => setState(state => { state.count++; }); const dec = () => se...
packages/mineral-ui-icons/src/IconInsertLink.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 IconInsertLink(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
src/MonthPicker/MonthPicker.stories.js
ctco/rosemary-ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import MonthPicker from './MonthPicker'; import Button from '../Button/Button'; storiesOf('MonthPicker', module).add('default', () => ( <div style={{ textAlign: 'center' }}> <MonthPicker> <Button className="btn-link" /> ...
services/web/client/components/npm-info.js
apparatus/mu-app
'use strict' import React from 'react' export const NpmInfo = React.createClass({ propTypes: { npm: React.PropTypes.object.isRequired }, render () { return ( <div className="panel-module"> <h2 className="mt0"><span className="logo logo-npm"></span> npm</h2> <ul className="list-unst...
actor-apps/app-web/src/app/components/dialog/messages/State.react.js
dsaved/africhat-platform-0.1
import React from 'react'; import { MessageContentTypes } from '../../../constants/ActorAppConstants'; class State extends React.Component { static propTypes = { message: React.PropTypes.object.isRequired }; render() { const { message } = this.props; if (message.content.content === MessageContentTy...
shared/components/HTML/index.js
oyeanuj/react-universally
/* eslint-disable react/no-danger */ /* eslint-disable jsx-a11y/html-has-lang */ import React from 'react'; import PropTypes from 'prop-types'; /** * The is the HTML shell for our React Application. */ function HTML(props) { const { htmlAttributes, headerElements, bodyElements, appBodyString } = props; return ...
stories/Text/ExampleStandard.js
skyiea/wix-style-react
import React from 'react'; import {Text} from 'wix-style-react'; export default () => <div> <div>Default:</div> <Text>Hello, World!</Text> <hr/> <div>As `h1` with `H0` appearance:</div> <Text appearance="H0">Hello, World!</Text> <div>As `h2` with `H1` appearance:</div> <Text appearanc...
src/ModalBody.js
snadn/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.prop...
src/components/RouterTabs.js
guryanov-a/react-search
import React from 'react'; import RouterTab from './RouterTab'; const RouterTabs = (props) => ( <ul className="filter-tabs nav nav-tabs"> { props.tabs.map((tab, i) => ( <RouterTab key={i} {...tab} onClick={props.handleClick} /> )) } </ul> ); export...
packages/react-examples/src/pages/observe-image/index.js
ustbhuangyi/better-scroll
import React from 'react' import './index.styl' const ObserveImage = (props) => <>{props.children}</> export default ObserveImage
src/renderer/main-starter.js
sabazusi/tsukikaze
import ActionDispatcher from './dispatcher/action-dispatcher'; import ContextMenuAction from './actions/contextmenu-action'; import ClipboardAction from './actions/clipboard-action'; import DirectMessageStore from './stores/direct-message-store'; import EditorAction from './actions/editor-action'; import EditorStore fr...
src/components/ToolbarInputTextarea.js
dominic-blain/viper-visualizer
import React from 'react'; class ToolbarInputTextarea extends React.Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); } handleChange(event) { const onChangeData = this.props.onChangeData; this.props.onChange(event.target.name, event.target.value, onChangeData)...
src/components/stories/AddressLine.js
regenduft/kartevonmorgen
// import React from 'react' // import { storiesOf, action } from '@kadira/storybook' // var AddressLine = require('../AddressLine.coffee'); // storiesOf('AddressLine', module) // .add('Full address', () => ( // <AddressLine // street="Musterstr. 12" // zip="12345" // city="Musterstadt" // ...
src/js/components/privKey/PrivKeyImport.js
safexio/safexweb
import React from 'react'; var privKeyActions = require('actions/privKeyActions'); var uiStore = require('stores/uiStore'); var PrivKeyImport = React.createClass({ getInitialState: function() { return uiStore.getStore(); }, _addPrivKey: function(e) { e.preventDefault(); var privKeyEl = this.refs....
UI/Loading.js
Datasilk/Dedicate
import React from 'react'; import {Animated, Easing} from 'react-native'; import {Path} from 'react-native-svg'; import SvgIcon from 'ui/SvgIcon'; import AppStyles from 'dedicate/AppStyles'; export default class Loading extends React.Component { constructor(props){ super(props); this.state = { ...
app/containers/Notifications/index.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; // eslint-disable-line import { connect } from 'react-redux'; import { removeMessage } from 'containers/App/actions'; import Snackbar from 'material-ui/Snackbar'; class Notifications extends Component { //...
app/header.js
ibjohansen/k5g.no
'use strict'; import React from 'react'; import Router, {Link} from 'react-router'; import StickyDiv from 'react-stickydiv'; module.exports = React.createClass({ displayName: 'app/header.js', mixins: [Router.Navigation], getDefaultProps() { return { menuItems: [ {rou...
node_modules/react-select/examples/src/components/GithubUsers.js
rblin081/drafting-client
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from 'react-select'; import fetch from 'isomorphic-fetch'; const GithubUsers = createClass({ displayName: 'GithubUsers', propTypes: { label: PropTypes.string, }, getInitialState () { retu...
stories/landing/index.js
NestorSegura/operationcode_frontend
import React from 'react'; import { Router } from 'react-router-dom'; import createHistory from 'history/createBrowserHistory'; import { storiesOf } from '@storybook/react'; import Landing from 'scenes/home/landing/landing'; const history = createHistory(); storiesOf('Landing', module) .add('Basic', () => ( <R...
src/icons/GlyphAdd.js
ipfs/webui
import React from 'react' const GlyphAdd = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M71.13 28.87a29.88 29.88 0 1 0 0 42.26 29.86 29.86 0 0 0 0-42.26zm-18.39 37.6h-5.48V52.74H33.53v-5.48h13.73V33.53h5.48v13.73h13.73v5.48H52.74z' /> </svg> ) export default GlyphAdd
05-react-router-demos/src/AppNestedParams.js
iproduct/course-node-express-react
import React from 'react'; import './App.css'; import { BrowserRouter as Router, Switch, Route, Link, useRouteMatch, useParams } from "react-router-dom"; export default function App() { return ( <Router> <div> <ul> <li> <Link to="/">Ho...
docs/src/app/components/pages/components/Stepper/HorizontalNonLinearStepper.js
pradel/material-ui
import React from 'react'; import { Step, Stepper, StepButton, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Non-linear steppers allow users to enter a multi-step flow at any point. * * This example is similiar to the ...
src/components/video_detail.js
naveensoman/ReactYoutube
import React from 'react'; const VideoDetail = ({video}) => { if(!video){ return <div>Loading....</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-responsive embed-responsive...
src/svg-icons/action/flight-takeoff.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightTakeoff = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-....
src/routes.js
evonsdesigns/markts-app
'use strict'; import React from 'react' import { Route, IndexRoute } from 'react-router' import Layout from './components/Layout'; import IndexPage from './components/IndexPage'; import Lookup from './components/Lookup'; const routes = ( <Route path="/" component={Layout}> <IndexRoute component={IndexPage}/> ...
actor-apps/app-web/src/app/index.js
yangchenghu/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import babelPolyfill from 'babel/polyfill'; // eslint-disable-line import RouterContainer from 'utils/RouterContainer'; import crosstab from 'crosstab'; import React, { Component } from 'react'; import Router from 'react-router'; import Raven from 'utils/Rav...
test/setup.js
OttoH/rereKit
import React from 'react'; import { expect } from 'chai'; import jsdom from 'jsdom'; const doc = jsdom.jsdom('<!doctype html><html><body></body></html>'); const win = doc.defaultView; global.document = doc; global.window = win; Object.keys(window).forEach((key) => { if (!(key in global)) { global[key] = ...
app/main.js
samarpanda/react-webpack-express
import React from 'react'; import ReactDOM from 'react-dom'; import Page from './handlers/Root'; import { Router, Route } from 'react-router'; import history from './history'; import rconfig from './routes.js'; console.log("YO"); ReactDOM.render(<Router history={history} routes={rconfig()}/>, document.getElementById('...
examples/InputCheckbox.js
mattBlackDesign/react-materialize
import React from 'react'; import Input from '../src/Input'; import Row from '../src/Row'; export default <Row> <Input name='group1' type='checkbox' value='red' label='Red' /> <Input name='group1' type='checkbox' value='yellow' label='Yellow' defaultValue='checked' /> <Input name='group1' type='checkbox' v...
src/components/CreateEvent.js
codefordenver/encorelink
import PropTypes from 'prop-types'; import React from 'react'; import { Field, reduxForm } from 'redux-form'; import Datetime from 'react-datetime'; import 'react-datetime/css/react-datetime.css'; import AutocompleteLocation from './forms/AutocompleteLocation'; import FormattedFormField from './forms/FormattedFormField...
src/parser/druid/balance/modules/talents/Starlord.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatDuration, formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/ot...
src/entypo/Icloud.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Icloud'; let EntypoIcloud = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10.909,5c1.884,0,3.417,1.598,3.417,3.561c0,0.136-0.012,0.29-0.037,0.484c0,0-0.163,1.262-0.206,1.594c...
spec/coffeescripts/jsx/epub_exports/DownloadLinkSpec.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...
src/components/abstractWidget/abstractWidget.js
govau/datavizkit
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import get from 'lodash/get'; import AbstractChart from './abstractChart'; import { validChartType } from './../../helpers/propsValidators'; class AbstractWidget extends Component { getChart() { return this.abstractChart._instance; }...
docs/src/app/components/pages/components/Paper/ExampleCircle.js
w01fgang/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleCircle = () => ( <div> <Paper style={style} zDepth={1} circle={true} /> <Paper style={style} zDepth={2} circle={...
app/src/js/component/AccountForm.js
enoa7/chart-account
import React from 'react'; export default class AccountForm extends React.Component { _handleSubmit(e) { e.preventDefault(); let name = this._name.value; let type = this._type.value; let code = this._code.value; let desc = this._desc.value; let total = (this._total.value.length) ? this._total.value : '-...
src/js/components/icons/base/FormCheckmark.js
kylebyerly-hp/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...
app/containers/HomePage/index.js
guruganeshm/ReactJs
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import AtPrefix from './AtPre...
app/javascript/mastodon/features/compose/components/action_bar.js
salvadorpla/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ edit_profile: { id: 'a...
src/containers/Welcome.js
yyssc/ssc30-admin
/** * 调试首页 */ import React from 'react'; import { Link } from 'react-router'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as WelcomeActions from '../actions/welcome'; class Welcome extends React.Component { componentWillMount() { } render() { const link =...
src/svg-icons/device/battery-charging-60.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1...
examples/huge-apps/components/GlobalNav.js
skevy/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
app/javascript/mastodon/features/list_editor/components/search.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists'; import classNames from 'classnames'; import Icon from...
example/src/components/layout/header/header.js
mrblueblue/react-collider
import React from 'react' import {Link} from 'react-router' export default class Header extends React.Component { render() { return ( <header> <Link to="/"> <img height="60px" src="http://static1-preprod.dmcdn.net/images/header/logo_dailymotion@2x.png.v41c4e9...
frontend/src/Calendar/Header/CalendarHeaderViewButton.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import * as calendarViews from 'Calendar/calendarViews'; import Button from 'Components/Link/Button'; import titleCase from 'Utilities/String/titleCase'; // import styles from './CalendarHeaderViewButton.css'; class CalendarHeaderViewButton ...
app/components/CategoryIcon/index.js
JSSolutions/Perfi
import React from 'react'; import PropTypes from 'prop-types'; import { MaterialCommunityIcons } from '@expo/vector-icons'; import { dimensions } from '../../styles'; const NavIcon = ({ tintColor, ...props }) => ( <MaterialCommunityIcons size={dimensions.iconSize} style={{ color: tintColor }} {...props}...
src/docs/ComponentPage.js
choudlet/ps-react-choudlet
import React from 'react'; import PropTypes from 'prop-types'; import Example from './Example'; import Props from './Props'; const ComponentPage = ({component}) => { const {name, description, props, examples} = component; return ( <div className="componentpage"> <h2>{name}</h2> <p>{description}</p...
src/Header/Header.js
Nichsiciul/git-user-search
import React from 'react'; import './Header.css'; import logo from './logo.svg'; function Header(props){ return( <div className="container-fluid" id="header"> <h1 className="App-intro"> Git User Search using <img className="App-logo" src={logo} alt="logo"/></h1> </div> ); } export default Header;
src/svg-icons/communication/import-export.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportExport = (props) => ( <SvgIcon {...props}> <path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/> </SvgIcon> ); CommunicationImportExport = pure(CommunicationImpo...
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/multi.input.js
storybooks/storybook
/* eslint-disable */ import React from 'react'; import Button from './Button'; // If we have multiple storiesOf calls, export multiple defaults. It's not valid // JS but will still save the user time in converting. storiesOf('Button1', module) .add('story1', () => <Button label="Button1.1" />) .add('story2', () =...
src/GatewayDest.js
cloudflare/react-gateway
import React from 'react'; import PropTypes from 'prop-types'; import GatewayRegistry from './GatewayRegistry'; import {deprecated} from 'react-prop-types'; export default class GatewayDest extends React.Component { static contextTypes = { gatewayRegistry: PropTypes.instanceOf(GatewayRegistry).isRequired }; ...
awsmobilecognitocustomui/src/components/TaskListItem.js
adrianhall/blog-code
import React from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import Swipeout from 'react-native-swipeout'; import CenteredIcon from './CenteredIcon'; const Touch...
src/tabs/Profile/index.web.js
NewSpring/Apollos
import React from 'react'; import { shouldUpdate } from 'recompose'; import withUser from '@data/withUser'; // import withTopics from '@data/withTopics'; import Header from '@ui/Header'; import BackgroundView from '@ui/BackgroundView'; import TabView, { SceneMap } from '@ui/TabView'; import UserAvatarView from '@ui/Use...
P/bst/src/index.js
imuntil/React
import React from 'react' import ReactDOM from 'react-dom' import { HashRouter as Router, Route, Switch } from 'react-router-dom' import createHistory from 'history/createHashHistory' import { createStore, applyMiddleware, compose } from 'redux' import { Provider } from 'react-redux' import thunk from 'redux-thun...
src/Table/TableCell.js
collegepulse/material-react-components
import makeClass from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Styles from './TableCell.css'; class TableCell extends React.Component { render() { const { children, className, head, ...other } = this.props; const Component = head ? 'th' :...
blueprints/dumb/files/__root__/components/__name__/__name__.js
dingchaoyan1983/ReactRedux
import React from 'react' export class <%= pascalEntityName %> extends React.Component { constructor(props, context) { super(props, context); } render () { return ( <div> </div> ) } } <%= pascalEntityName %>.defaultProps = { } <%= pascalEntityName %>.contextTypes = { } <%= pasca...
client/src/components/candidate/roadmap.js
Siyanda-Mzam/hire-grad
import React, { Component } from 'react'; import Timeline from './timeline'; class RoadMap extends Component { render() { return ( <div className="section roadmap"> <div className="container"> <div className="card"> <header className="card-header"> <p className="card...
src/App.js
ngmanh/seo-sandbox
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Hello! My name is Halasuzitaka...
app/components/Label.js
denisflorkin/signup-react
import React from 'react' const style = { marginTop: '8px', fontWeight: 100, } export class Label extends React.PureComponent { render() { const { props } = this return ( <label style={style} {...props} > { React.Children.toArray(props.children) } </label> )} }...
frontend/assets/js/components/AppMenu.js
ianmilliken/rwf
/* * * FRONTEND * components/AppMenu.js * */ import React from 'react'; class AppMenu extends React.Component { render() { return ( <svg width="20" height="20" viewBox="0 0 20 20"> <g id="Symbols" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd" opacity="0.800000012"> ...
app/javascript/mastodon/features/ui/components/focal_point_modal.js
pointlessone/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import ImageLoader from './image_loader'; import classNames from 'classnames'; import { changeUploadCompose } from '../../../...
src/components/Exchanges/index.js
ELTCOIN/website
import React, { Component } from 'react'; import coinexchangeLogo from './images/coinexchange.png'; import idexLogo from './images/idex.png'; import mercatoxLogo from './images/mercatox.png'; import simpleswapLogo from './images/simpleswap.png'; function nFormatter(num, digits) { const si = [ { value: 1, symbol:...
src/components/MusicPlayer/music_list_items.js
TonCoder/react-music-player
import React from 'react'; function MusicListItems(props){ function DisplayPlaying(){ if(props.isPlaying){ return <i className="fa fa-check" aria-hidden="true"></i> } } return( <li className="list-group-item playing" onClick={props.selectedSong} > ...
services/ui/src/components/BillingGroup/index.js
amazeeio/lagoon
import React from 'react'; import css from 'styled-jsx/css'; import { bp, color, fontSize } from 'lib/variables'; const BillingGroup = ({ billingGroupCosts }) => { const { id, name, currency, availability, hitCost, hitCostFormula, storageCost, storageCostFormula, environmentCost, environmentCostFormula, total, modi...
common/containers/notifications-container.js
vincent178/scala-china
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { authenticatedAction } from '../lib/util'; import { detectScrollEnd } from '../lib/scroll'; import { fetchNotifications } from '../actions/notification'; import NotificationList from '../components/notification-container/notificat...
src/routes/Help/components/Help.js
Terrapin-Ticketing/althea
import React, { Component } from 'react'; import './Help.scss'; class Help extends Component { constructor(props) { super(props); this.state = { }; } componentDidMount() { document.title = 'Help - Terrapin Ticketing'; $(document).ready(function(){ $('.collapsible').collapsible(); }); ...
src/index.js
hacksociety-security-maps/safe-maps-app
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/views/Routes.js
bfollington/react-redux-isomorphic-boilerplate
import React from 'react'; import {Route, Router} from 'react-router'; import Main from 'views/Main'; import Another from 'views/Another'; import createMemoryHistory from 'history/lib/createMemoryHistory'; import createBrowserHistory from 'history/lib/createBrowserHistory'; var history; try { window; history...
web/static/js/containers/Alerts.js
maxdec/cellar
import React, { Component } from 'react'; import { actions, store } from '../store'; import Gql from 'react-gql'; const config = { getState: state => ({ errors: state.cellar.lastErrors }) }; class Alerts extends Component { handleDiscard(index) { return (event) => { event.preventDefault(); st...
packages/wix-style-react/src/SegmentedToggle/SegmentedToggle.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { st, classes } from './SegmentedToggle.st.css'; import ToggleButton from './ToggleButton/ToggleButton'; import ToggleIcon from './ToggleIcon/ToggleIcon'; class SegmentedToggle extends React.Component { static displayName = 'SegmentedToggle'; ...
src/components/example.js
notion-app/web
import React from 'react'; import connectToStores from 'alt/utils/connectToStores'; import DummyStore from 'stores/dummyStore'; import DummyActions from 'actions/dummyActions'; import NotionNavBar from 'components/ui/notionNavBar'; require('../css/landingpage.css'); @connectToStores class ExampleComponent extends Reac...
src/index.js
iwaldman/reactnd-readable
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { BrowserRouter as Router, Switch, Route } from 'react-router-dom' import PageHeader from 'react-bootstrap/lib/PageHeader' import './index.css' import App from './components/App' import PostDetail from './component...
Projets/JS/React/Projet 3 BAR/myRecipeBox/src/components/App.js
thib123/TPJ
// React import React from 'react'; //Components import Header from './Header'; import Admin from './Admin'; import Card from './Card'; // Importer les recettes import recettes from '../recettes'; // Firebase import base from '../base'; class App extends React.Component { state = { recettes: {} }; componentWill...
tests/react_native_tests/test_data/native_code/Scrollview/storybook/stories/UserConnect_3/index.js
ibhubs/sketch-components
import React from 'react' import { storiesOf } from '@storybook/react-native' import { action } from '@storybook/addon-actions' import { linkTo } from '@storybook/addon-links' import UserConnect_3 from 'app/components/UserConnect_3' storiesOf('UserConnect_3', module) .add('default', () => ( <UserConnect_3 butt...
app/components/Landing.js
hsin421/tacec-2017
import React from 'react'; import Appbar from 'muicss/lib/react/appbar'; import Button from 'muicss/lib/react/button'; import Container from 'muicss/lib/react/container'; import Divider from 'muicss/lib/react/divider'; import Row from 'muicss/lib/react/row'; import Col from 'muicss/lib/react/col'; import { Link } from...
test/test_helper.js
DeAnnHuang/ReduxSimpleStarter
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
frontend/app_v2/src/common/useText.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' function useText(textName, textStyling) { const styling = textStyling ? textStyling : 'fill-current h-12 w-8' switch (textName) { case 'kids': return ( <svg className={styling} width="281.031" height="71.9" viewBox="0 0 281.031 71....
demo/src/components/App/components/Examples/components/MultipleSections/MultipleSections.js
JacksonKearl/react-autosuggest-ie11-compatible
import styles from './MultipleSections.less'; import theme from './theme.less'; import React, { Component } from 'react'; import isMobile from 'ismobilejs'; import Link from 'Link/Link'; import Autosuggest from 'Autosuggest'; import languages from './languages'; import { escapeRegexCharacters } from 'utils/utils'; co...
index.js
Rewieer/react-native-vertical-swipe
/** * Copyright (c) 2017-present, Evosphere. * All rights reserved. */ import React, { Component } from 'react'; import { BackHandler, Easing, StyleSheet, Animated, View, PanResponder, Dimensions } from 'react-native'; const screenHeight = Dimensions.get("window").height; type Props = { // Amount of space availa...