path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
admin/client/App/components/Navigation/Mobile/SectionItem.js
w01fgang/keystone
/** * A mobile section */ import React from 'react'; import MobileListItem from './ListItem'; import { Link } from 'react-router'; const MobileSectionItem = React.createClass({ displayName: 'MobileSectionItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, curren...
test/utils/instance.js
nofluxjs/noflux-react
import test from 'ava'; import React, { Component } from 'react'; import { isReactComponent, isReactComponentInstance, } from '../../src/utils'; test('check component instance', t => { class App extends Component { render() { return ( <h1> hello, world </h1> ); } }...
src/svg-icons/image/portrait.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePortrait = (props) => ( <SvgIcon {...props}> <path d="M12 12.25c1.24 0 2.25-1.01 2.25-2.25S13.24 7.75 12 7.75 9.75 8.76 9.75 10s1.01 2.25 2.25 2.25zm4.5 4c0-1.5-3-2.25-4.5-2.25s-4.5.75-4.5 2.25V17h9v-.75zM...
src/svg-icons/action/settings-applications.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsApplications = (props) => ( <SvgIcon {...props}> <path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c...
src/docs/templates/SubPageDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Anchor from 'grommet/components/Anchor'; import Box from 'grommet/components/Box'; import Footer from 'grommet/components/Footer'; import Header from 'grommet/components/Header'; import Heading from 'g...
src/svg-icons/notification/sync.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSync = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25...
ui/js/simianviz.js
adrianco/spigo
'use strict'; import React from 'react'; import Layout from 'layout'; import Toolbar from 'toolbar'; import Chart from 'chart'; export default React.createClass({ render () { return ( <Layout> <Toolbar {...this.props} /> <Chart {...this.props} /> </Layout> ); } });
app/containers/App.js
soosgit/vessel
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; import '../app.global.css'; export default class App extends Component { props: { children: Children }; render() { return ( <div> {this.props.children} </div> ); } }
src/components/Demo.js
JstnEdr/emcp-vr
import 'aframe'; import 'aframe-animation-component'; import 'aframe-particle-system-component'; import 'babel-polyfill'; import {Entity, Scene} from 'aframe-react'; import React from 'react'; export default class Demo extends React.Component { constructor(props) { super(props); this.state = {color: 'red'}; ...
src/index.js
tinyx/auth
import React from 'react'; import ReactDOM from 'react-dom'; import Login from './views/Login'; import Register from './views/Register'; import { Router, Route, browserHistory } from 'react-router' import './index.css'; ReactDOM.render( <Router history={browserHistory}> <Route path="/login" component={Login} /> ...
pkg/interface/publish/src/js/components/lib/note.js
jfranklin9000/urbit
import React, { Component } from 'react'; import { Route, Link } from 'react-router-dom'; import { SidebarSwitcher } from './icons/icon-sidebar-switch'; import { Spinner } from './icons/icon-spinner'; import { Comments } from './comments'; import { NoteNavigation } from './note-navigation'; import moment from 'moment';...
app/containers/Order/index.js
rohitRev/React
/* * * Order * */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import Header from '../../components/Header'; import Footer from '../../components/Footer'; import OrderBody from './body'; export class Order extends React.Component { // eslint-disable-line reac...
src/containers/Error404.js
iris-dni/iris-frontend
import React from 'react'; import settings from 'settings'; import Helmet from 'react-helmet'; import ButtonLink from 'components/ButtonLink'; import Container from 'components/Container'; import Header from 'components/Header'; import PageTitle from 'components/PageTitle'; import Notice from 'components/Notice'; impor...
src/icons/Egg.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Egg extends React.Component { render() { if(this.props.bare) { return <g> <path d="M256,32C192,32,96,165.2,96,288.9C96,412.6,160,480,256,480s160-67.4,160-191.1C416,165.2,320,32,256,32z"></path> </g>; } ...
src/svg-icons/av/fiber-manual-record.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberManualRecord = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="8"/> </SvgIcon> ); AvFiberManualRecord = pure(AvFiberManualRecord); AvFiberManualRecord.displayName = 'AvFiberManualRecord'; ...
packages/editor/src/components/Controls/BlockType/BlockTypeLayout.js
strues/boldr
/* eslint-disable react/no-unused-prop-types */ /* @flow */ import React from 'react'; import type { Node } from 'react'; import cn from 'classnames'; import { Paragraph, H1, H2, H3, QuoteLeft, Code } from '../../Icons'; import Option from '../../Option'; import type { ToolbarBlockTypes } from './BlockType'; type Cur...
src/svg-icons/action/compare-arrows.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCompareArrows = (props) => ( <SvgIcon {...props}> <path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/> </SvgIcon> ); ActionCompareArrows = pure(ActionCompareArrows); Acti...
test/fixtures/react-css-modules/resolves non-namespaced styleName (named import)/expected.js
hunnad/babel-plugin-react-native-css
import React from 'react'; import { Text } from 'react-native'; const _Styles2 = { header2: { backgroundColor: '#7C7DCD', width: 100 }, header3: { backgroundColor: '#7C7DCD', width: 100 }, 'header--wwww': { backgroundColor: '#7C7DCD', width: 100 } }; const _Styles = { a: { hei...
MARVELous/client/src/js/components/characterSelect/index.js
nicksenger/StackAttack2017
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchCharacters } from '../../actions/index'; import CharacterScroller from '../characterScroller'; export class CharacterSelect extends Component { componentWillMount() { if (!th...
docs/pages/components/alert.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 = 'components/alert'; const requireDemo = require.context('docs/src/pages/components/alert', false, /\.(js|tsx)$/); const requireRaw...
examples/profile-cards-primitives/src/web.js
weaintplastic/react-sketchapp
import React from 'react'; import Profile from './components/Profile'; import Space from './components/Space'; import { spacing } from './designSystem'; import DATA from './data'; /* * <Profile /> is defined with platform-independent components * from react-primitives. We can use it in our web UI, and * continue to...
src/components/TextOverlay/TextOverlay.js
bhj/karaoke-forever
import PropTypes from 'prop-types' import React from 'react' import styles from './TextOverlay.css' export const TextOverlay = props => ( <div className={styles.container}> <div className={`${styles.text} ${props.className}`}> {props.children} </div> </div> ) export default TextOverlay TextOverlay....
src/svg-icons/hardware/phone-iphone.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneIphone = (props) => ( <SvgIcon {...props}> <path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1...
fields/types/cloudinaryimage/CloudinaryImageFilter.js
frontyard/keystone
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var CloudinaryImageFilter = React.createClass({ propTypes:...
src/index.js
GuillaumeRahbari/react-website
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
resources/assets/admin/components/ReviewButton.js
DoSomething/northstar
import React from 'react'; import gql from 'graphql-tag'; import classNames from 'classnames'; import { useMutation } from '@apollo/react-hooks'; export const ReviewButtonFragment = gql` fragment ReviewButton on Post { id status } `; const REVIEW_POST_MUTATION = gql` mutation ReviewPostMutation($id: Int...
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js
hzy87email/actor-platform
import _ from 'lodash'; import Immutable from 'immutable'; import keymirror from 'keymirror'; import React from 'react'; import { Styles, TextField, FlatButton } from 'material-ui'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import ContactStore from 'stores/ContactStore'; import Cont...
examples/todomvc/containers/TodoApp.js
coderstudy/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
node_modules/react-select/src/Value.js
rblin081/drafting-client
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const Value = createClass({ displayName: 'Value', propTypes: { children: PropTypes.node, disabled: PropTypes.bool, // disabled prop passed to ReactSele...
src/apps/components/selectgame/selectgame.js
janakuma/newLobby
import React from 'react'; export default class Selectgame extends React.Component { render() { return ( ) }; };
app/javascript/mastodon/components/avatar_overlay.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
fields/components/ItemsTableValue.js
joerter/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import { Link } from 'react-router'; var ItemsTableValue = React.createClass({ displayName: 'ItemsTableValue', propTypes: { className: React.PropTypes.string, exterior: React.PropTypes.bool, field: React.PropType...
src/components/common/svg-icons/content/redo.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
frontend/src/containers/play.js
user01/PresidentialDebates
import React from 'react'; // import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as actions from '../actions/playActions'; import GamePlayForm from '../components/GamePlayForm'; export const PlayPage = (props) => { // <GamePlayForm // sav...
src/routes/app/routes/forms/routes/elements/components/Toggle.js
ahthamrin/kbri-admin2
import React from 'react'; import Toggle from 'material-ui/Toggle'; const styles = { toggle: { maxWidth: 250, marginBottom: 16 }, }; const ToggleExampleSimple = () => ( <div className="row"> <div className="col-md-6"> <Toggle label="Simple" style={styles.toggle} /> ...
client/app/scripts/utils/string-utils.js
dilgerma/scope
import React from 'react'; import filesize from 'filesize'; import d3 from 'd3'; const formatLargeValue = d3.format('s'); function renderHtml(text, unit) { return ( <span className="metric-formatted"> <span className="metric-value">{text}</span> <span className="metric-unit">{unit}</span> </sp...
pages/blog/test-article-two.js
Princeton-SSI/organization-website
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 2</h1> <p>Co...
client-side/src/App.js
meltedspork/Re-Word
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
src/Pages/Home.js
yoasia/Akademik
import React from 'react'; import { Card, Icon, Button, Grid, Loader, Dimmer, Header, Dropdown, Modal, Menu, Form } from 'semantic-ui-react'; import axios from 'axios'; const options = [ { key: 'edit', icon: 'edit', text: 'Edit Post', value: 'edit' }, { key: 'delete', icon: 'delete', text: 'Remove Post', value: 'd...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/FormText.js
GoogleCloudPlatform/prometheus-engine
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; var _excluded = ["className", "cssModule", "inline", "color", "tag"]; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'cla...
src/controls/lookup/search.js
thinktopography/reframe
import ModalPanel from '../../components/modal_panel' import { connect } from 'react-redux' import PropTypes from 'prop-types' import Options from './options' import React from 'react' class Search extends React.Component { static contextTypes = { form: PropTypes.object } static propTypes = { label: Pr...
frontend/src/components/templates/reddit-template/index.js
loganabsher/portfolio
'use strict'; import React from 'react'; import propTypes from 'prop-types'; class RedditTemplate extends React.Component{ constructor(props){ super(props); this.state = { post: this.props.post }; } render(){ console.log(this.state.post); return( <li className='reddit-template'>...
site/plugins/gatsby-plugin-favicon-fork/gatsby-ssr.js
tkh44/emotion
import React from 'react' export const onRenderBody = ( { setHeadComponents }, { injectHTML = true, icons: { android = true, appleIcon = true, appleStartup = true, coast = true, favicons = true, firefox = true, twitter = true, yandex = true, windows = t...
demo/components/AddTodo.js
Guria/cerebral
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-react'; @Cerebral({ isSaving: ['isSaving'], newTodoTitle: ['newTodoTitle'] }) class AddTodo extends React.Component { onFormSubmit(event) { event.preventDefault(); this.props.signals.newTodoSubmitted(); } onNewTodoTitleChange(e...
node_modules/react-bootstrap/es/SplitButton.js
vietvd88/developer-crawler
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/status/NodeInfoAdvanced.js
ipfs/webui
import React from 'react' import multiaddr from 'multiaddr' import { connect } from 'redux-bundler-react' import { withTranslation } from 'react-i18next' import Address from '../components/address/Address' import Details from '../components/details/Details' import ProviderLink from '../components/provider-link/Provider...
docs/src/app/components/pages/components/GridList/ExampleComplex.js
IsenrichO/mui-with-arrows
import React from 'react'; import {GridList, GridTile} from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import StarBorder from 'material-ui/svg-icons/toggle/star-border'; const styles = { root: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-around', }, gridLi...
src/Toggle/Toggle.js
kmees/react-fabric
import React from 'react' import cx from 'classnames' import Label from '../Label' import fabricComponent from '../fabricComponent' import invokeWhenNotDisabled from '../util/invokeWhenNotDisabled.js' import isDefined from '../util/isDefined.js' import style from './Toggle.scss' const Toggle = ({ checked, classN...
src/components/LearningOutcome.js
hairmot/REACTModuleTest
import React from 'react' export default class LearningOutcome extends React.Component { constructor(props) { super(props); this.state = { confirmDelete: 0,timeout: {} } } updateID = (e) => { this.props.updateLearningOutcome(this.props.learningOutcome.GUID, e.target.value, this.props.learningOutcome.outcome ...
server/priv/js/components/Timeline.react.js
bks7/mzbench
import React from 'react'; import BenchStore from '../stores/BenchStore'; import TimelineElement from './TimelineElement.react'; import TimelineFilter from './TimelineFilter.react'; import Duration from './Duration.react'; import LoadingSpinner from './LoadingSpinner.react'; import MZBenchRouter from '../utils/MZBenchR...
src/svg-icons/av/equalizer.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvEqualizer = (props) => ( <SvgIcon {...props}> <path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"/> </SvgIcon> ); AvEqualizer = pure(AvEqualizer); AvEqualizer.displayName = 'AvEqualizer'; AvEqualizer...
docs/src/app/components/pages/components/TextField/Page.js
pradel/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 textFieldReadmeText from './README'; import TextFieldExampleSimple from '...
src/src/Components/RulesEditor/components/CustomDragLayer/index.js
ioBroker/ioBroker.javascript
import React from 'react'; import { useDragLayer } from 'react-dnd'; import CardMenu from '../CardMenu'; import CurrentItem from '../CurrentItem'; const layerStyles = { position: 'fixed', pointerEvents: 'none', zIndex: 100, left: 0, top: 0, width: '100%', height: '100%' }; const snapToGrid...
generators/app/templates/_index.js
mitchallen/generator-mitchallen-react-component
/* Module: <%= fullPackageName %> Author: <%= npmAuthor %> */ import React from 'react'; // import PropTypes from 'prop-types'; class <%= reactClassName %> extends React.Component { render() { return ( <div> <div>Package: <%= fullPackageName %></div> <div>Component: <%= reactClassNa...
src/react.js
witer5/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
app/javascript/packs/application.js
cohakim/clean_them_all
import React from 'react' import ReactDOM from 'react-dom' import WebpackerReact from 'webpacker-react' import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); import Uploader from './Uploader'; import StatusPage from './StatusPage'; WebpackerReact.setup({ StatusPage, Uploader })
src/components/TechnologyList/Item.js
honeypotio/techmap
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import styled from 'styled-components'; import Icon from '../Icon'; const StyledLink = styled(Link)` color: #1f2228; display: flex; align-items: center; font-weight: 500; padding: 15px 10px; text-decoration:...
src/components/productivity/modal/Todo.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React, { Component } from 'react'; import { Checkbox, Input, Button, Spin, message } from 'antd'; import { FormattedMessage } from 'react-intl'; import translate from 'app/global/helper/translate'; import { graphql } from 'react-apollo'; import AddTodoCardMutation from 'app/graphql/mutations/car...
examples/demo-react-native/storybook/stories/Button/index.android.js
reactotron/reactotron
import React from 'react' import PropTypes from 'prop-types' import { TouchableNativeFeedback } from 'react-native' export default function Button (props) { return ( <TouchableNativeFeedback onPress={props.onPress}>{props.children}</TouchableNativeFeedback> ) } Button.defaultProps = { children: null, onPr...
storybook/stories/autosuggest_textarea.story.js
8796n/mastodon
import React from 'react'; import { List } from 'immutable' import { action, storiesOf } from '@kadira/storybook'; import AutosuggestTextarea from 'mastodon/components/autosuggest_textarea' const props = { onChange: action('changed'), onPaste: action('pasted'), onSuggestionSelected: action('suggestionsSelected')...
5-use-firebase/src/App.js
pirosikick/react-hands-on-20171023
import React, { Component } from 'react'; import * as firebase from 'firebase'; import { HashRouter, Route, Redirect, Switch } from 'react-router-dom'; import './App.css'; import UserOnlyRoute from './UserOnlyRoute'; import Login from './pages/Login'; import RoomList from './pages/RoomList'; import Room from './pages/R...
src/components/Table/TableBody/TableBody.stories.js
auth0-extensions/auth0-extension-ui
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import TableBody from './'; storiesOf('TableBody', module) .add('default view', () => ( <TableBody> This is the TableBody children. </TableBody> ));
src/src/containers/HeaderContainer.js
alexberriman/local-deals
import React from 'react' import { connect } from 'react-redux' import { goBack } from 'react-router-redux' import Header from 'components/Header' const HeaderContainer = props => ( <Header {...props} onBackButtonClick={props.onBackButtonClick || props.goBack} /> ) HeaderContainer.propTypes = { goBack: R...
src/index.js
theshaune/react-animated-typography-experiments
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import 'normalize.css'; // import App from './components/App'; import App from './containers/App'; import reducers from './reducers'; import './globalStyles'; const store = createS...
src/svg-icons/action/speaker-notes-off.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpeakerNotesOff = (props) => ( <SvgIcon {...props}> <path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14...
.archive-react/client/Alarm.js
KyleKing/PiAlarm
// Quick CRON guide // second 0-59 // minute 0-59 // hour 0-23 // day of month 0-31 // month 0-12 // day of week 0-6 (Sun-Sat) import './styles/Alarm.css' import PropTypes from 'prop-types' import React from 'react' export default class Alarm extends React.Component { static p...
docs/app/Examples/modules/Rating/Types/RatingStarExample.js
jcarbo/stardust
import React from 'react' import { Rating } from 'stardust' const RatingStarExample = () => ( <Rating icon='star' defaultRating={3} maxRating={4} /> ) export default RatingStarExample
src/routes/Payments/components/index.js
vijayasankar/ML2.0
import React from 'react' import ReactTable from 'react-table' import find from 'ramda/src/find' import propEq from 'ramda/src/propEq' import { isoDateTolocaleDate } from 'utils/helpers' class Payments extends React.Component { constructor (props) { super(props) this.limit = 50 this.handleViewMore = this...
src/Parser/Hunter/Marksmanship/Modules/Items/TarnishedSentinelMedallion.js
enragednuke/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import { formatNumber } from 'common/format'; import CoreTarnishedSentinelMedallion from 'Parser/Core/Modules/Items/Legion/TombOfSargeras/TarnishedSentinelMedallion'; import Combatants from 'Parser/Core/Modules/Combatants'...
web/client/components/composition/menu.js
firewow/firewow
/** * Imports */ import React from 'react' /** * Component */ export default class Menu extends React.Component { render() { return( <div className='menu'> {this.props.children} </div> ); } }
reactJS/my-gallery-project/test/helpers/shallowRenderHelper.js
CoderKevinZhang/web-front-end-practice
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/routes/Tournaments/components/TournamentView.js
akossebestyen/getrecd-client-redux
import React from 'react'; import TeamList from './TeamList' const TournamentView = ({tournament, teams}) => { return ( <div> <h4>{tournament.tournamentName}</h4> <TeamList teams={teams} /> </div> ); }; export default TournamentView;
examples/js/basic/no-data-table.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; export default class NoDataTable extends React.Component { render() { const options = { noDataText: 'This is custom text for empty data' // withoutNoDat...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
gaolichuang/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
src/svg-icons/device/signal-wifi-3-bar-lock.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3BarLock = (props) => ( <SvgIcon {...props}> <path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-...
src/svg-icons/navigation/arrow-drop-down.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDown = (props) => ( <SvgIcon {...props}> <path d="M7 10l5 5 5-5z"/> </SvgIcon> ); NavigationArrowDropDown = pure(NavigationArrowDropDown); NavigationArrowDropDown.displayName = 'NavigationA...
app/structural/App/index.js
ThiagoFacchini/3DUX
// @flow /** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support...
apps/marketplace/components/BuyerSpecialist/BuyerSpecialistReviewStage.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import { Form } from 'react-redux-form' import formProps from 'shared/form/formPropsSelector' import AUheading from '@gov.au/headings/lib/js/react.js' import { getBriefLastQuestionD...
app/components/Loading/index.js
rayrw/skygear-apitable
import React from 'react'; import styled from 'styled-components'; import CircularProgress from 'material-ui/CircularProgress'; const Wrapper = styled.div` text-align: center; padding: 20px 0; `; const Loading = () => ( <Wrapper> <CircularProgress /> </Wrapper> ); export default Loading;
src/templates/index-template.js
dalareo/dalareo.github.io
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Feed from '../components/Feed'; import Page from '../components/Page'; import Pagination from '../components/Pagination'; import { useSiteMetadata }...
app/addons/permissions/components/PermissionsSection.js
garrensmith/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
node_modules/@material-ui/core/esm/InputBase/InputBase.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */ import Rea...
src/ModalFullsize/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; import SectionFooterCancelOK from '../SectionFooterCancelOK'; import SectionFooterClose from '../SectionFooterClose'; class ModalFullsize extends React.Component { constructor(props)...
app/main.js
veerasuthan/react-alt-sample
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; ReactDOM.render(<App />, document.getElementById('app'));
packages/toggleButton/DEV/index.js
daniloster/react-experiments
import React, { Component } from 'react'; import { render } from 'react-dom'; import ToggleButton from '../src/ToggleButton'; // app const div = document.createElement('div'); div.id = 'container'; div.style.backgroundColor = 'inherit'; div.style.width = '100vw'; div.style.height = '100vh'; document.body.style.margin...
src/Inform.js
DangrMiao/House
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableOpacity, Image, InteractionManager, ListView, ScrollView, Navigator, } from 'react-native'; import Gonggao ...
node_modules/react-router/modules/Redirect.js
NathanBWaters/website
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should ...
src/svg-icons/maps/local-post-office.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPostOffice = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); MapsLocalPostOff...
react-apps/GeneReactNative/src/libs/DevTools.js
thevikas/genealogy
/** * @providesModule devtools */ import React from 'react'; import { createDevTools } from 'redux-devtools'; /** * These 2 monitors are very commonly used with 'redux-devtools'. * However, you can choose to make your own! */ import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devt...
src/Popover.js
tannewt/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
src/puzzle-reader.js
martintasker/puzzle-reader
import marked from 'marked'; import React from 'react'; class reader { constructor(mdString) { this.mdString = mdString; const htmlString = marked(mdString); const h1Sections = this._geth1Sections(htmlString); this.rubric = h1Sections.rubric.join(''); const puzzleSections = this._getPuzzleSection...
graphwalker-studio/src/main/js/components/configpanel/execution-group.js
GraphWalker/graphwalker-project
import React, { Component } from 'react'; import { connect } from "react-redux"; import {FormGroup, InputGroup, Slider} from "@blueprintjs/core"; import { setExecutionDelay, updateModel } from "../../redux/actions"; import Group from "./group"; class ExecutionGroup extends Component { render() { const { delay, g...
client/components/ModalLink.js
steveliles/react-ssr-codesplit
import React from 'react' import Link from 'redux-first-router-link' const ModalLink = ({ to, params, children }) => ( <Link href={{ type: to, payload: Object.assign({}, { __modal: true }, params) }} > {children} </Link> ) export default ModalLink
app/packs/src/components/qc/components/substance/BlockTitle.js
ComPlat/chemotion_ELN
import React from 'react'; import { Tooltip, OverlayTrigger } from 'react-bootstrap'; const infoTp = ( <Tooltip id="tp-qc-info" className="card-qc"> <p>ChemSpectra (0.10)</p> <p>NMRShiftDB (2.0)</p> <p>ChemSpectraDeepIr (0.10)</p> </Tooltip> ); const BlockTitle = () => ( <div> <h4> <span c...
src/js/discussion/camps/FaceBookButton.js
TTFG-Analytics/commonground
import React from 'react' import {connect} from 'react-redux' import {cachingFbData} from '../actions/actions' import {sendingFbData} from '../actions/actions' class FaceBookButton extends React.Component{ componentDidMount() { // facebook signin button render window.fbAsyncInit = function() { FB.in...
src/containers/Rjm.js
uglybunnies/ub-react
import React from 'react' import { Head } from 'react-static' // var popPic = require('js/popPic.js') export default () => ( <div> <Head> <title>Ugly Bunnies -- Rejuvenation Medi-Spas Website</title> </Head> <header className="splash lh0"><img src="/assets/web-projects/rjm-splash...
lib/components/CoinbaseView/index.js
0mkara/etheratom
'use babel' // Copyright 2018 Etheratom Authors // This file is part of Etheratom. // Etheratom is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
6.6.0/examples/wizard/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e...
lib/admin/admin-topics-form/view.js
DemocracyOS/app
import React from 'react' import { render as ReactRender } from 'react-dom' import closest from 'component-closest' import confirm from 'democracyos-confirmation' import Datepicker from 'democracyos-datepicker' import debug from 'debug' import o from 'component-dom' import t from 't-component' import page from 'page' i...
day20_todoapp/src/components/TodoList.js
eyesofkids/ironman2017
//@flow import React from 'react' import type { TodoListProps } from '../definitions/TodoTypeDefinition.js' const TodoList = ({children}: TodoListProps) => ( <ul>{children}</ul> ) export default TodoList