path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
springboot/GReact/node_modules/react-bootstrap/es/Thumbnail.js
ezsimple/java
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 ...
src/components/Accommodations.js
seripap/wedding.seripap.com
import React from 'react'; import Page from './Page'; export default class Accommodations extends React.Component { constructor(props) { super(props); } render() { return ( <div> <Page title="Amanda & Dan's Wedding - Accomodations" /> <section className="section"> <div cl...
src/backward/Widgets/Icon.js
sampsasaarela/NativeBase
import React, { Component } from 'react'; import { connectStyle } from 'native-base-shoutem-theme'; import Ionicons from 'react-native-vector-icons/Ionicons'; import Entypo from 'react-native-vector-icons/Entypo'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import Foundation from 'react-native-ve...
docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js
frnk94/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleLoading = () => ( <div style={style.container}> <RefreshI...
src/shared/routes/index.js
jferrettiboke/dynatic
import React from 'react'; import { Route } from 'react-router'; import App from '../components/App/App'; export default ( <Route path="*" component={App} /> );
app/components/Header/index.js
audoralc/pyxis
/** * * Header * */ import React from 'react'; import glamorous from 'glamorous'; import FontIcon from 'material-ui/FontIcon'; const NavLink = glamorous.a({ padding: '0 .5em', textDecoration: 'none', color: '#000000', ':hover' : { color: '#0c3a7f', }, height: '24px', }) const SubButton = gla...
node_modules/rc-select/es/FilterMixin.js
prodigalyijun/demo-by-antd
import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import { getValuePropValue, defaultFilterFn, UNSELECTABLE_ATTRIBUTE, UNSELECTABLE_STYLE } from './util'; import { Item as MenuItem, ItemGroup as MenuItemGroup } from 'rc-menu'; import warning from 'warning'; export default { filterOptio...
client/services/axios.js
iykyvic/fcc-voting
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import IconButton from 'material-ui/IconButton'; import CloseIcon from 'material-ui-icons/Close'; import { default as axiosHttp } from 'axios'; import { store } from '../store/storeConfiguration'; import { API_CALL_STATUS, LOGOUT } from '../store/a...
lib/cli/test/snapshots/webpack_react/index.js
rhalff/storybook
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') );
extensions/roc-package-web-app-react/app/client/dev-tools.js
rocjs/roc-package-web-app-react
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import { rocConfig } from '../shared/universal-config'; export default createDevTools( <DockMonitor {...rocConfig.dev.redux.devToo...
packages/storybook/examples/core/Avatar.stories.js
iCHEF/gypcrete
import React from 'react'; import Avatar from '@ichef/gypcrete/src/Avatar'; import FlexRow from 'utils/FlexRow'; export default { title: '@ichef/gypcrete|Avatar', component: Avatar, }; export const basicUsage = () => ( <FlexRow> <Avatar alt="Avatar of Design" src="https://api.adorable.io/avatars/285/design...
js/containers/ListForm.js
eugeneglova/react-redux-form
import React from 'react'; import { connect } from 'react-redux'; import Pagination from '../components/Pagination'; import { applyFilter } from '../actions'; import { change } from 'redux-form'; import Filter from './Filter'; import ListItem from './ListItem'; import PerPage from './PerPage'; const ListForm = connect...
src/compoments/UploadFromCameraRoll.js
purple-net/react-native-purple
'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, CameraRoll, DeviceEventEmitter, ActivityIndicatorIOS, Image, TouchableOpacity, Modal, } from 'react-native'; var RNUploader = require('NativeModules').RNUploader; class UploadFromCameraRoll ext...
client/src/components/LoginForm.js
MattMcFarland/reactathon
import React from 'react'; import { Link } from 'react-router'; import { FormErrors } from './partials'; import { Center, LoginWith } from './partials/Elements'; import { Button, Input, ButtonInput } from 'react-bootstrap'; import { AppActions } from '../actions/AppActions'; import { AppStore } from '../stores/A...
src/view/result.js
blgm/convulator
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Number } from './number' import { style } from 'typestyle' export const resultStyle = style({ display: 'flex', padding: '10px 20px', height: '45px' }) function Result ({ result }) { return ( <div cl...
app/components/CompositionBar/index.js
mhoffman/CatAppBrowser
/** * * CompositionBar * */ import React from 'react'; import { withStyles } from 'material-ui/styles'; import PropTypes from 'prop-types'; import { isMobile } from 'react-device-detect'; import { styles } from './styles'; const atomicNumbers = { X: 0, H: 1, He: 2, Li: 3, Be: 4, B: 5, C: 6, N: 7, O: 8, F: 9, Ne: 10,...
src/static/utils/requireAuthentication.js
CRUDNS/CRUDNS
import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; export default function requireAuthentication(Component) { class AuthenticatedComponent extends React.Component { static propTypes = { isAuthenticated: React.PropTypes.bool.isRequired, ...
assets/js/src/main/index.js
stechDevSP/stechDev
import React from 'react'; import ReactDOM from 'react-dom'; import { StartPage } from '../main/_startPage.js'; import { ResetPassword } from '../main/_resetPassword.js'; import { ContactUs } from '../main/_contactUs.js'; (function(APP) { "use strict"; APP.MAIN = {}; APP.MAIN.init = function() { ...
src/components/exercises/letter-rotated.component.js
serlo-org/serlo-abc
import React, { Component } from 'react'; import { View } from 'react-native'; import RoundTextButton from '../common/RoundTextButton'; import { PortraitScreenOrientation } from '../helpers/screen-orientation'; export class LetterRotated extends Component { getTransform = index => { const angleIndex = this.prop...
code/web/node_modules/react-bootstrap/es/DropdownMenu.js
zyxcambridge/RecordExistence
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _Array$from from 'babel-runtime/core-js/array/from'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtim...
src/Events.js
csepreghy/final-handin
import React, { Component } from 'react'; import Event from './Event'; class Events extends Component { constructor(props) { super(); } render() { return ( <section id="events" className="content events container row"> <div className="col s12"> { this.props.title...
app/javascript/mastodon/components/column.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { supportsPassiveEvents } from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, label: PropTypes.string, bindToDoc...
src/Parser/Warrior/Arms/Modules/BuffDebuff/TacticianProc.js
enragednuke/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; const debug = false; class TacticianProc extends Analyzer { totalProcs = 0; on_byPlayer_applybu...
frontend/src/components/rename.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../utils/constants'; import toaster from './toast'; const propTypes = { hasSuffix: PropTypes.bool, name: PropTypes.string.isRequired, onRenameConfirm: PropTypes.func.isRequired, onRenameCancel: PropTypes.func.isRequired, };...
app/components/Sidebar/index.js
dreamweaver1231/frontend
/** * * Sidebar * */ import React from 'react'; import { Drawer } from 'material-ui'; const { bool, func, node } = React.PropTypes; const Sidebar = ({ open, onToggleSidebar, children }) => ( <Drawer docked={false} open={open} onRequestChange={onToggleSidebar} > {children} </Drawer> ); Sidebar....
examples/simple/main.js
vgno/roc-web-react
import React from 'react'; import styles from './style.scss'; export default class Main extends React.Component { render() { const image = require('./roc.png'); return ( <div className={styles.main}> <h1>Bacon ipsum dolor?</h1> <img src={image}/> ...
stories/buttons.js
JAdshead/j-react-ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import { action } from '@storybook/addon-actions'; import { Button, ButtonRaised } from 'j-react-ui'; const buttonStory = storiesOf('Buttons', module) buttonStory.add( 'Default', () => <But...
node_modules/react-router/es6/IndexLink.js
orionwei/mygit
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import Link from './Link'; /** *...
src/components/Ace/MainContainer.js
nagucc/jkef-web-react
/* 使用Ace Admin Template的MainContainer组件 */ import SideBarShortcuts from './SideBarShortcuts'; import SideBarNavList from './SideBarNavList'; import Footer from './Footer'; import Breadcrumbs from './Breadcrumbs'; import React from 'react'; export default class MainContainer extends React.Component { static prop...
src/ReactClient.js
Chyzwar/iso-basics
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { syncHistoryWithStore } from 'react-router-redux'; import { Router, Route, browserHistory } from 'react-router' class ReactClient{ constructor(register) { this.routes = register.routes; this.store = re...
src/components/AboutPage.js
wdzulc/x-dev-team
import React from 'react'; import {Link} from 'react-router'; import '../styles/about-page.css'; // Since this component is simple and static, there's no parent container for it. const AboutPage = () => { return ( <div> <h2 className="alt-header">About</h2> <p> This example app is part of the...
src/menu-icon/index.js
aruberto/react-foundation-components
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import cxBinder from 'classnames/bind'; import styles from './_styles.scss'; const cxStyles = cxBinder.bind(styles); export const MenuIcon = ({ className, dark, controls, open, ...restProps, }) => { const classNam...
src/components/common/icons/CollectionIcon.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; const DEFAULT_WIDTH = 73.645; const DEFAULT_HEIGHT = 55.91; const SCALE = DEFAULT_WIDTH / DEFAULT_HEIGHT; const MediaSourceIcon = (props) => { const height = props.height || DEFAULT_HEIGHT; const width = height * SCALE; return ( <div className="...
src/components/Game/Game.js
jackgardner/tactics
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import s from './Game.scss'; import Engine from '../../Engine'; // Move to NPM module? import { TestScreen } from '../../Game/debug/TestScreen'; import withStyles from '../../decorators/withStyles'; @wit...
examples/files/react/complexRendering.js
dabbott/react-express
import React from 'react' import { render } from 'react-dom' function Card({ loading, error, title, subtitle }) { let content if (error) { content = 'Error' } else if (loading) { content = <h3 style={styles.empty}>Loading...</h3> } else { content = ( <div> <h1 style={styles.title}>{t...
examples/macOs/components/toolbarNav.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import { TitleBar, Toolbar, ToolbarNav, ToolbarNavItem } from 'react-desktop/macOs'; const circle = ( <svg x="0px" y="0px" width="25px" height="25px" viewBox="0 0 25 25"> <circle cx="12.5" cy="12.5" r="12.5"/> </svg> ); const star = ( <svg x="0px" y="0px" width="25p...
pootle/static/js/welcome/components/RandomMessage.js
evernote/zing
/* * Copyright (C) Zing contributors. * * This file is a part of the Zing project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; // passed `items` prop is an array...
pages/postcss.js
frontendyteam/www.frontendy.com
import React from 'react' import './example.css' import DocumentTitle from 'react-document-title' import { config } from 'config' export default class PostCSS extends React.Component { render () { return ( <DocumentTitle title={`${config.siteTitle} | Hi PostCSSy friends`}> <div> <h1 class...
src/utils/ValidComponentChildren.js
snadn/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/examples/exampleHideShow.js
Jguardado/HiRproject
import React, { Component } from 'react'; export default class HideShow extends Component { constructor(props) { super(props); this.state = { visible: false, }; this.show = this.show.bind(this); this.hide = this.hide.bind(this); } show() { this.setState({ visible: true }); } ...
index.js
dmsakamoto/nim
'use strict' import React from 'react'; import ReactDOM from 'react-dom'; class NimGame extends React.Component { constructor() { super(); this.state = { 'board': [3,5,8], 'turns': 0, 'gameOver': false } } checkGameOver() { let gameOver = this.state.gameOver; let winner ...
src/views/UploadMaterialView/index.js
juanda99/react-redux-material-ui
import React from 'react' import {MaterialForm} from 'components/materials' import FullWidthSection from 'components/full-width-section' import { defineMessages, FormattedMessage } from 'react-intl' const messages = defineMessages({ appUploadMaterial: { id: 'appuploadmaterial.title', description: 'Title for ...
examples/cancel/index.js
chentsulin/react-redux-sweetalert
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render( <App />, document.getElementById('root') );
website/core/WebPlayer.js
negativetwelve/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/Meta/GraphDescription.js
Swizec/h1b-software-salaries
import React, { Component } from 'react'; class GraphDescription extends Component { get jobTitleFragment() { const { jobTitle } = this.props.filteredBy; let title; if (jobTitle === '*') { title = 'in tech'; }else{ if (jobTitle === "other") { ...
src/components/positions/positions-list.js
sunpietro/LeagueManager
import React, { Component } from 'react'; import DefaultLayout from '../layouts/default'; import PositionsGroup from './positions-group'; import PositionForm from '../forms/position-form'; import WPAPI from '../../tools/wpapi'; class PositionsList extends Component { constructor() { super(); this....
www/src/views/Marketing.js
naemono/bootstrap-carousel-react
import React from 'react' class Marketing extends React.Component { render() { return ( <div id='marketing'> <div className="row"> <div className="col-lg-4"> <img className="img-circle" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAAL...
src/components/Pre.js
mikebarkmin/gestyled
import React from 'react'; import styled from 'styled-components'; import withStyle from './Base'; const StyledPre = styled.pre``; const Pre = props => <StyledPre {...props} />; export default withStyle(Pre);
src/components/icons/DescriptionIcon.js
austinknight/ui-components
import React from 'react'; const DescriptionIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h...
src/svg-icons/image/camera-rear.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraRear = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm-5 6c-1.11 0-2-.9-2-2s.89-2 1.99-...
app/layout/Navigation.js
phoenixmusical/web-client
import React, { Component } from 'react'; import Relay from 'react-relay'; import { Link } from 'react-router'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import Subheader from 'material-ui/Subheader'; import Divider from 'material-ui/Divider'; import CommitteeMenuItem from '....
index.android.js
davejmac/test-react-native-app
import React, { Component } from 'react'; import Index from './Todo/components/Index' import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class TDN extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Todo! <...
docs/src/examples/addons/Radio/Types/RadioExampleToggle.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Radio } from 'semantic-ui-react' const RadioExampleToggle = () => <Radio toggle /> export default RadioExampleToggle
pages/shows.js
parkerproject/conceptionarts
import React, { Component } from 'react'; import Link from 'next/link'; import Head from 'next/head'; import axios from 'axios'; import { map, size } from 'lodash'; import { nextConnect } from '../store'; import { FETCH_EVENTS } from '../actions/types'; import HeaderSocial from '../components/HeaderSocial'; import Head...
src/parser/priest/holy/modules/spells/Renew.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import DistanceMoved from 'parser/shared/modules/others/DistanceMoved'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import SpellLink from 'common/SpellLink'; import { ABILITIES_THAT_TRIGGER_END...
src/components/Projects/Cell.js
karajrish/karajrish.github.io
import React from 'react'; import PropTypes from 'prop-types'; import dayjs from 'dayjs'; const Cell = ({ data }) => ( <div className="cell-container"> <article className="mini-post"> <header> <h3><a href={data.link}>{data.title}</a></h3> <time className="published">{dayjs(data.date).format...
src/svg-icons/action/help-outline.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHelpOutline = (props) => ( <SvgIcon {...props}> <path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c...
app/packs/src/components/LiteratureCommon.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; import { Button, FormControl, OverlayTrigger, Tooltip, Popover } from 'react-bootstrap'; import uuid from 'uuid'; import Literature from './models/Literature'; import { CitationType, CitationTypeMap } from './CitationType'; const RefByUserInfo = ({ info, l...
src/routes/contact/index.js
TodoWishlist/VizResume
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Layout from '../../compo...
examples/todo/src/components/AddTodo.js
drabinowitz/react-slices
import React from 'react'; import Slices from 'slices'; import TodoStore from '../stores/Todo'; class AddTodo extends React.Component { static propTypes = { user: React.PropTypes.object.isRequired } getInitialState() { return { value: '', }; } render() { return ( <div> <form ...
src/components/icons/EditFilledIcon.js
austinknight/ui-components
import React from 'react'; const EditFilledIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1...
client/modules/App/__tests__/Components/Header.spec.js
Hitzk0pf/BetterBackPacking
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { FormattedMessage } from 'react-intl'; import { Header } from '../../components/Header/Header'; import { intl } from '../../../../util/react-intl-test-helper'; const intlProp = { ...intl, enabledLang...
src/components/ContainerDetailsSubheader.react.js
phnz/kitematic
import _ from 'underscore'; import React from 'react'; import shell from 'shell'; import metrics from '../utils/MetricsUtil'; import ContainerUtil from '../utils/ContainerUtil'; import classNames from 'classnames'; import containerActions from '../actions/ContainerActions'; import dockerMachineUtil from '../utils/Docke...
app/javascript/mastodon/features/standalone/public_timeline/index.js
unarist/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandPublicTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import ColumnHeader from ...
source/patterns/01-molecules/box/docs/box.example.js
apparena/patterns
import React from 'react'; import { Intro } from 'apparena-patterns-react'; export default function BoxExample() { return ( <div> <Intro imgSrc="https://aa-fonts.s3.amazonaws.com/app-arena/atoms-l.svg" headline="Default Box" text="This is my Intro Text" /> <hr/> ...
client/src/js/components/characterDetails/commentBox.js
nicksenger/marvelous
import React, { Component } from 'react'; import { FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { postComment } from '../../actions/index'; import { Link } from 'react-router'; // import { submitComment }...
docs/src/app/components/pages/components/FlatButton/ExampleComplex.js
hai-cea/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import ActionAndroid from 'material-ui/svg-icons/action/android'; const styles = { uploadButton: { verticalAlign: 'middle', }, uploadInput: { cursor: 'pointer', position: 'absolute...
src/ui/quark/ContextMenuItem/index.js
jkubos/tickator-ide
import React from 'react' import classNames from 'classnames' import styles from './style.less' export class ContextMenuItem extends React.Component { static propTypes = { glyph: React.PropTypes.string.isRequired, label: React.PropTypes.string, onClick: React.PropTypes.func.isRequired } static def...
src/svg-icons/notification/airline-seat-legroom-normal.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomNormal = (props) => ( <SvgIcon {...props}> <path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1....
app/src/js/components/common/Paragraph.js
davidk107/Webpack-React-Template
import React from 'react'; class Paragraph extends React.Component { constructor(props) { super(props); } render() { return( <div className="mainParagraph"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas porta tellus nulla, in ullamcorper elit...
actor-apps/app-web/src/app/components/SidebarSection.react.js
ruikong/actor-platform
import React from 'react'; import { Styles, Tabs, Tab } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; import ContactsSection from 'components/sidebar/ContactsSec...
examples/custom-config/src/index.js
urban/react-build-system
import React from 'react' import Dom from 'react-dom' import App from 'components/App' if (typeof document !== 'undefined') { Dom.render( React.createElement(App, { message: 'Urban' }), document.getElementById('root') ) } export default App
src/entry.js
s2t2/react-robots
require("../node_modules/bootstrap/dist/css/bootstrap.css"); require("../public/stylesheets/style.css"); import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, browserHistory, hashHistory, Redirect } from 'react-router'; import App from './components/App.jsx'; import RobotsTa...
app/javascript/mastodon/components/missing_indicator.js
abcang/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_disappointed.svg'; import classNames from 'classnames'; const MissingIndicator = ({ fullPage }) => ( <div className={classNames('regeneration-indicato...
form/ScheduleField.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import _get from 'lodash-es/get'; import _uniq from 'lodash-es/uniq'; import _range from 'lodash-es/range'; import _padStart from 'lodash-es/padStart'; import {view, locale} from 'components'; export default class ScheduleField extends React.Component { ...
src/app/component/cart-nav-link/cart-nav-link.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import {action} from '@storybook/addon-actions' import range from 'lodash/range' import {withState} from '@dump247/storybook-state' import CartNavLink from '.' import CartModelItem from '../cart-model-item' import Button from '../button' storiesOf('...
src/server.js
KeKs0r/evodemo
import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; im...
src/components/Context.js
gnoff/react-redux
import React from 'react' export const ReactReduxContext = React.createContext(null) export default ReactReduxContext
lib/component-library-slides/Mixins.js
RallySoftware/rally-present
import React from 'react'; import CodeBlock from '../components/CodeBlock'; const mixinCode = `React.createClass({ mixins: [ValidationMixin] ...`; export default class Slide extends React.Component { render() { return ( <div> <h1>That sounds like a mixin!</h1> <CodeBlock> {...
client/views/HomeView.js
andersem/react-redux-starter-kit
import React from 'react'; import { connect } from 'react-redux'; @connect(state => ({ counter : state.counter })) export default class HomeView extends React.Component { static propTypes = { dispatch : React.PropTypes.func.isRequired, counter : React.PropTypes.number.isRequired } constructor () { ...
react-dev/components/menu.js
DeryLiu/DeryLiu.github.io
import React, { Component } from 'react'; import AppBar from 'material-ui/AppBar'; import Drawer from 'material-ui/Drawer'; import { MenuItems } from './menu_items'; import SearchBar from '../containers/search_bar'; export default class Menu extends Component { constructor(props) { super(props); this.stat...
index.android.js
WWU-iCharts/iCharts
// @flow import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import AppContainer from './src/containers/AppContainer'; class iCharts extends Component { render() { return ( <AppContainer /> ); } } const styles = StyleSheet.create({ ...
public/javascripts/Home.js
chenjic215/search-doctor
import React from 'react'; import HomeHeader from './HomeHeader'; import HomeInput from './HomeInput'; import '../stylesheets/Home.css'; class Home extends React.Component { constructor(props) { super(props); } render() { return ( <div className="Home-container"> <HomeHeader/> <H...
frontend/sections/timeline/registration/registration.js
apostolidhs/wiregoose
import isEmpty from 'lodash/isEmpty'; import now from 'lodash/now'; import React from 'react'; import PropTypes from 'prop-types'; import { browserHistory } from 'react-router'; import { publish } from '../../../components/events/events.js'; import InfiniteScrollPage from '../../../components/infinite-scroll/page.js';...
Study/Udemy Docker and Kubernetes/Section06/frontend/src/components/UI/ErrorAlert.js
tarsoqueiroz/Docker
import React from 'react'; import './ErrorAlert.css'; function ErrorAlert(props) { return ( <section className='error-alert'> <h2>Something went wrong!</h2> <p>{props.errorText}</p> </section> ); } export default ErrorAlert;
client/src/app/components/employer/Contact.js
lefnire/jobpig
import React from 'react'; import { FlatButton, } from 'material-ui'; import _ from 'lodash'; import {_fetch, _ga, IS_SMALL} from '../../helpers'; import Formsy from 'formsy-react' import { FormsyText } from 'formsy-material-ui/lib'; import { Modal } from 'react-bootstrap'; export default class Contact extends R...
mobile/App.js
liyangwood/DreamCup
import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', android: 'Double tap R on your keyboard to reload,\n' + 'Shake or press menu button for...
helene/assets/js/layouts/small_clock.js
voidpp/Helene
import React from 'react'; import 'babelify/polyfill'; import hu from 'moment/locale/hu'; import '../html'; import DataActionTypes from '../constants/DataConstants'; import DataRequestActionCreator, {DataRequestDescriptor, ServiceDescriptor} from '../actions/DataRequestActionCreator'; import Panel from '../component...
packages/stockflux-chart/src/index.js
owennw/OpenFinD3FC
import React from 'react'; import ReactDOM from 'react-dom'; import { OpenfinApiHelpers } from 'stockflux-core'; import App from './App'; const mountApp = () => { ReactDOM.render(<App />, document.getElementById('root')); }; if (OpenfinApiHelpers.getWindow()) { mountApp(); } else { console.error('This applicati...
demos/frontend-react/app/src/components/ResultsFolder.js
ITISFoundation/oSPARC_Test
import React, { Component } from 'react'; import Rnd from 'react-rnd'; import {Treebeard, decorators} from 'react-treebeard'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { showOutputData } from '../actions/index'; class ResultsFolder extends Component { constructor(prop...
demo/src/index.js
liamross/interval-resizer
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/modules/home/SectionList.android.js
TheOne1006/TheOne1006-theone-io-app
/** * @flow */ import React, { Component } from 'react'; import { Text, View, ListView, } from 'react-native'; import { cloneDeep } from 'lodash'; import ArticleListItem from '../../components/ArticleListItem/ArticleListItem'; import Banner from '../banner/BannerView'; import lightStyles from './themes/light'...
app/jsx/assignments_2/teacher/components/Overrides/OverrideSubmissionTypes.js
djbender/canvas-lms
/* * Copyright (C) 2018 - 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/svg-icons/image/color-lens.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorLens = (props) => ( <SvgIcon {...props}> <path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4...
src/svg-icons/device/battery-charging-60.js
owencm/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...
common/routes/Discussion/components/RightSideBar.js
Notist/front-end
import React, { Component } from 'react'; import { styles } from '../styles/styles'; export default class RightSideBar extends Component { render() { return ( <div id="rightSidebar" style={styles.rightSidebar}> <p style={styles.rightSidebarText}>At a glance:</p> <div className="iframeConta...
src/client/wallet/PowerUpTransaction.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { FormattedMessage, FormattedRelative, FormattedDate, FormattedTime } from 'react-intl'; import BTooltip from '../components/BTooltip'; const PowerUpTransaction = ({ timestamp, amount, to, from }) => ( <div...
app/javascript/mastodon/features/compose/components/navigation_bar.js
yukimochi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ActionBar from './action_bar'; import Avatar from '../../../components/avatar'; import Permalink from '../../../components/permalink'; import IconButton from '../../../components/icon_button...
newclient/scripts/components/user/progress-indicator/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/route/comic/comic.comment.js
vicvinc/yimanga
import React, { Component } from 'react'; import TimeAgo from 'timeago-react'; import * as feather from 'react-feather'; import '../../ui/comment/comment.css'; import '../../ui/form/form.css'; export default class ComicComment extends Component { static defaultProps = { comment: require('../../api.mock/comic.co...