path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/index.js
dfucci/Borrowr
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/call-missed.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationCallMissed = (props) => ( <SvgIcon {...props}> <path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/> </SvgIcon> ); CommunicationCallMissed.displayName = 'CommunicationCallMissed'; CommunicationCallMissed.muiName = 'SvgI...
source/js/components/sticky-container.js
mehan/nsf-challenge
import React from 'react'; import classnames from "classnames"; var StickyButton = React.createClass({ getInitialState: function() { return { sticky: this.props.initialState || false }; }, checkSticky: function() { var position = window.scrollY; if (this.props.stickyTo) { return posi...
node_modules/react-native/Libraries/Image/ImageBackground.js
jasonlarue/react-native-flashcards
/** * 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/containers/scenes/Profile/index.js
MarvinAmador7/rn-profile
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { View, Text, } from 'react-native'; import { fetchWelcomeMessage } from '../../../actions/welcome'; // import styles from './styles'; function mapStateToProps (state) { return sta...
packages/wix-style-react/stories/Introduction/Cheatsheet/componentsFamilies/LayoutFamily/LayoutFamily.js
wix/wix-style-react
import React from 'react'; import { FamilyStructure } from '../../sharedComponents'; import PageExamples from './examples/PageExamples'; import MarketingPageLayoutExample from './examples/MarketingPageLayoutExample'; import CardExamples from './examples/CardExamples'; import TableExamples from './examples/TableExamples...
analysis/rogueoutlaw/src/modules/features/Checklist/Component.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import Requirement from 'parser/shared/modules/fe...
src/svg-icons/communication/textsms.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationTextsms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/> </SvgIcon> ); Communica...
src/svg-icons/maps/person-pin-circle.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPinCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-youtube/7.4.0/es/YouTube.js
JamieMason/npm-cache-benchmark
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
components/BackgroundSelect.js
dawnlabs/carbon
import React from 'react' import colornames from 'colornames' import ImagePicker from './ImagePicker' import ColorPicker from './ColorPicker' import Button from './Button' import Popout, { managePopout } from './Popout' import { COLORS, DEFAULT_BG_COLOR } from '../lib/constants' import { capitalize, stringifyRGBA } fr...
lib/site/help/sidebar/component.js
DemocracyOS/app
import React from 'react' import { Link } from 'react-router' import t from 't-component' import config from 'lib/config' const Sidebar = () => ( <div id='help-sidebar-container'> <div className='help-sidebar'> {Sidebar.articles.map((article, i) => ( <Link key={i} to={article.path}>{article.label}<...
modules/gui/src/widget/floatingBox.js
openforis/sepal
import {compose} from 'compose' import {connect} from 'store' import {selectFrom} from 'stateUtils' import BlurDetector from 'widget/blurDetector' import Portal from 'widget/portal' import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' import styles from './floatingBox.module.css' import w...
app/components/Home.js
ikafire/OpenObjectMarker
import React from 'react'; import HomeStore from '../stores/HomeStore'; import cookie from 'react-cookie'; class Home extends React.Component { constructor(props) { super(props); this.state = HomeStore.getState(); } renderAuth() { if (!this.state.user) { this.state.user = cookie.load('use...
src/scripts/components/captcha/Captcha.component.js
ModuloM/kodokojo-ui
/** * Kodo Kojo - Software factory done right * Copyright © 2016 Kodo Kojo (infos@kodokojo.io) * * This program 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 ...
app/javascript/flavours/glitch/features/drawer/search/index.js
vahnj/mastodon
// Package imports. import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, defineMessages, } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; // Components. import Icon from 'flavours/glitch/components/icon'; import Drawe...
src/parser/deathknight/blood/modules/core/DeathsCaress.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import SpellUsable from 'parser/shared/modules/SpellUsable'; const RANGE_WHERE_YOU_SHOULDNT_DC = 12; // yrd clas...
imports/ui/components/AccountCreated/AccountCreated.js
jamiebones/Journal_Publication
import React from 'react'; import { Button , Row , Col ,Jumbotron } from 'react-bootstrap'; import PropTypes from 'prop-types'; import { Meteor } from 'meteor/meteor'; const AccountCreated = ({ history }) => ( <Row> <Col md={ 8 } mdOffset={2} sm={ 8 } smOffset={2} lg={ 8 } lgOffset={...
src/index.js
monners/coloring-book
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
fields/types/email/EmailColumn.js
wustxing/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obje...
src/main.js
adiachenko/catchy_web
import 'semantic/dist/semantic' import 'velocity-animate' import 'velocity-animate/velocity.ui' import React from 'react' import {render} from 'react-dom' import {Router} from 'react-router' import {Provider} from 'react-redux' import store from 'store' import routes from './config/routes' import {load} from 'reducers...
app/app.js
ahsan-virani/react-gcd-portal
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/js/components/Chart/stories/Pattern.js
HewlettPackard/grommet
import React from 'react'; import { Box, Chart } from 'grommet'; export const Pattern = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={grommet}> <Box align="center" pad="large" gap="medium"> {[ 'squares', 'circles', 'stripesHorizontal', 'strip...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-doc-kit-demo.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import Environment from '../environment/environment.js'; import {BaseMixin, ElementaryMixin, SectionMixin, LsiMixin} from '../common/common.js'; import {Glyphicon, Footer, Section, Div, Line, Block, Iframe, Button, ButtonGroup, ButtonSwitch, Pre, FileViewer} from '../bricks/bricks.js'; impor...
data-async-table/src/components/RowTable.js
krescruz/redux-component
import React from 'react' import PropTypes from 'prop-types' const RowTable = ({ name, url, forks_count }) => ( <tr> <td>{name}</td> <td>{url}</td> <td>{forks_count}</td> </tr> ) RowTable.propTypes = { name: PropTypes.string.isRequired, url: PropTypes.string.isRequired, forks_count: PropTypes.n...
src/client/meritBadge/MeritBadge.js
jmicmoore/merit-badge-university
import React from 'react'; import {mbuAPI} from './constants'; import FontAwesome from 'react-fontawesome'; import {Link} from 'react-router-dom'; class MeritBadge extends React.Component { constructor() { super(); this.handleDeleteMeritBadge = this.handleDeleteMeritBadge.bind(this); } ha...
src/components/ui/FormLabelSimple.js
elarasu/roverz-chat
/** * Text Input * <FormLabel></FormLabel> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormLabel } from 'react-native-elements'; // Consts and Libs import { AppColors, AppFonts } ...
Example/components/Home.js
hungtn/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; var styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgrou...
frontend/component/Footer.js
auronzhong/pratice-node-project
/** * Created by zhongwei on 16/7/5. */ import React from 'react'; const footerStyle = { marginTop: 50, padding: 20, }; export default class Footer extends React.Component { render() { return ( <div className="text-center" style={footerStyle}> &copy; CopyRight Node.js...
app/javascript/mastodon/components/column_back_button_slim.js
codl/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButtonSlim extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length ==...
frontend/js/components/pages/profile.js
skeswa/equitize
import React from 'react'; import {Navigation, Link} from 'react-router'; import PrivatePageMixin from '../../mixins/privatepage'; const Profile = React.createClass({ mixins: [ PrivatePageMixin ], render: () => { return ( <div> <h1>profile</h1> </div>...
src/components/Ingredient.js
kishigo/recipes-react-redux
/** * Created by Kelvin Ishigo on 10/1/17. * * Copyright (c) 2017 Kelvin Ishigo * Licensed under the MIT License. See LICENSE file in the project root for full license information. */ import React from 'react' import PropTypes from 'prop-types' /** * Presentational component for an Ingredient in the IngredientLis...
src/components/Idea/EditIdea.js
partneran/partneran
import React, { Component } from 'react'; import Footer from '../Footer/Footer' import { Editor } from 'react-draft-wysiwyg'; import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'; import draftToHtml from 'draftjs-to-html'; import CategoryDetail from './CategoryDetail'; import { connect } from 'react-redux' import ...
src/components/DataTable/DataTable.js
MinisterioPublicoRJ/inLoco-2.0
import React from 'react' // how many columns are visible when used within right sidebar const COLLAPSED_COLUMNS_COUNT = 3 /** * Returns the correct property of layer to be shown on table. * @param {boolean} isCollapsed If DataTable is collapsed or not * @return {string} */ const featureType = (isCollapsed) => is...
src/components/NavBar.js
GelaniNijraj/Hovert
import React from 'react'; import { Link } from 'react-router'; class NavBar extends React.Component { render() { return ( <nav className={'light-blue darken-3'}> <div class={'nav-wrapper'}> <a href={'#'} className={'brand-logo center'}> <img src='resume.png' style={{height: ...
templates/rubix/redux/redux-seed/src/routes/Home2.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { connect } from 'react-redux'; import actions from '../redux/actions'; import { Row, Col, Grid, Panel, PanelBody, PanelContainer, } from '@sketchpixy/rubix'; @connect((state) => state) export default class Home extends React.Component { static fetchData(store) { r...
blueprints/view/files/__root__/views/__name__View/__name__View.js
wardy/cool-story-bro
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/components/captcha/index.js
qiuziz/react-captcha
/* * @Author: qiuziz * @Date: 2017-08-03 17:44:46 * @Last Modified by: qiuziz * @Last Modified time: 2017-08-07 11:08:38 */ import React from 'react'; import { propTypes, defaultProps } from 'prop-types'; import { OPTIONS, CODES } from './config'; export default class Captcha extends React.Component { construc...
app/containers/App/index.js
sairamchappidi/project-x
/** * * 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 SFCs. If...
src/localization/inlineComponents.js
knod/cliff-effects-1
import React from 'react'; import { Icon } from 'semantic-ui-react'; import { ExternalLink } from './../components/ExternalLink'; import { contributors } from './contributors'; /** @name inlineComponents * @description Contains inline components that can be * substituted into translations using the interpolation...
client/containers/AddPhoto/AddPhoto.js
joshjg/explore
import React from 'react'; import { connect } from 'react-redux'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import S3Uploader from 'react-s3-uploader'; import LinearProgres...
src/containers/Search/SearchPagination.js
nyaayaIN/frontend
import React from 'react'; import Pagination from 'react-bootstrap/lib/Pagination'; import { browserHistory } from 'react-router' export default class SearchPagination extends React.Component { constructor(props) { super(props); this.state = { activePage: this.props.activePage, }; thi...
example/index.js
chetstone/react-native-palette
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Sample from './components/sample' export default class example extends Component { render() { retu...
src/Header.js
Ethbet/ethbet
import React, { Component } from 'react'; class Header extends Component { render() { return ( <div className="navbar navbar-default navbar-fixed-top"> <div className="container"> <div className="navbar-header"> <a href="/" className="navbar-brand">E...
src/main.js
nitinkushwaha/react-sticky-scroll-spy
import React from 'react'; import {render} from 'react-dom'; import DevApp from './dev-app'; import './main.css'; render(<DevApp />, document.getElementById('root'));
components/org.wso2.carbon.business.rules.web/src/index.js
grainier/carbon-analytics
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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....
src/components/Account/ResourceList/Resource/Cards/TitleCard/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import Card from '../Card' import CoinsObject from '../../CoinsObject' import Link from 'components/Interactive/Link' import Config from 'shared/Configuration' import styles from '../style.module.css' const TitleCard = (props) => { let link const docN...
index.android.js
SergeyKorchevskiy/real-estate
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class PropertyFinder extends Component { render() { return ( <View style={styles.container}> ...
client/modules/Photo/pages/PhotoDetailPage/PhotoDetailPage.js
msucorey/street-canvas
import React from 'react'; import { connect } from 'react-redux'; import { isEmpty } from 'lodash'; // import { bindActionCreators } from 'redux'; // Import Style import styles from '../../Photo.css'; // Import Actions import { fetchPhoto } from '../../PhotoActions'; // Import Selectors import { getPhoto } from '../...
src/svg-icons/device/battery-charging-full.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryChargingFull = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H...
src/svg-icons/device/sd-storage.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSdStorage = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); DeviceSdStorage ...
app/components/newDefinitionWindow/WordBrowser.js
sedooe/cevirgec
import React, { Component } from 'react'; import {Button, Icon, Input } from 'semantic-ui-react'; import tr from '../../utils/Translation'; /* Actual stylesheet: use following regEx to make it one liner: \s{2,}|\n #cevirgecCopyPopup { border: 1px solid #333; position: absolute; font-family: Helvetic...
docs/pages/components/hidden.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/hidden'; const requireDemo = require.context('docs/src/pages/components/hidden', false, /\.(js|tsx)$/); const requireR...
components/User/SelectInstanceModal.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import FocusTrap from 'focus-trap-react'; import {Form, Button, Input, Modal, Divider, Message, Icon} from 'semantic-ui-react'; import { connectToStores, provideContext } from 'fluxible-addons-react'; import SSOStore from '../../stores/SSOStore'; import clo...
pages/home/index.js
wasap/beauty_salon
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/client/app.js
MatthewKosloski/server-side-react
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import createStore from '../common/store'; import routes from '../common/routes'; // Have client use the initial state defined by the server const initialState = window.__INITIAL_STATE__; const store = createStore(in...
examples/with-redux-code-splitting/containers/homepage.js
nelak/next.js
import React from 'react' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import {namespaceConfig} from 'fast-redux' import Link from 'next/link' const DEFAULT_STATE = {build: 1} const {actionCreator, getState: getHomepageState} = namespaceConfig('homepage', DEFAULT_STATE) const bumpBuil...
src/components/Mine.js
LukeGeneva/react-sweeper
import React from 'react'; export default function(props) { return <div>X</div> }
src/TabPane.js
justinanastos/react-bootstrap
import React from 'react'; import deprecationWarning from './utils/deprecationWarning'; import Tab from './Tab'; const TabPane = React.createClass({ componentWillMount() { deprecationWarning( 'TabPane', 'Tab', 'https://github.com/react-bootstrap/react-bootstrap/pull/1091' ); }, render() { ...
frontend/src/components/dialog/leave-group-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap'; import { gettext, username } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import { Utils } from '../../utils/utils'; import toaster from ...
docs/src/components/DemoButton.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import find from 'lodash/find'; import { Link } from 'react-router'; import IconButton from 'material-ui/IconButton'; import PlayCircleOutlineIcon from 'material-ui-icons/PlayCircleOutline'; import { kebabCase } from 'docs/src/utils/helpers';...
src/icons/PlaylistAddCheckIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class PlaylistAddCheckIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M28 20H4v4h24v-4zm0-8H4v4h24v-4zM4 32h16v-4H4v4zm39-9l3 3-13.99 14L23 31l3-3 6.01 6L43 23z"/></sv...
src/app/components/search/SearchResultsTable/TitleCell.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import Box from '@material-ui/core/Box'; import TableCell from '@material-ui/core/TableCell'; import LayersIcon from '@material-ui/icons/Layers'; import VisibilityOffIcon from '@material-ui/icons/VisibilityOff'; import { Link } from 'react-router'; import {...
website-prototyping-tools/playground.js
heracek/relay
/** * Copyright 2013-2015, 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. */ import 'babel/pol...
src/views/pages/unused/LearnerOverviewPage.js
Domiii/project-empire
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { dataBind } from 'dbdi/react'; import { Alert, Button, Jumbotron, Well, Panel } from 'react-bootstrap'; import { LoadOverlay } from 'src/views/components/overlays'; import UserBadge from 'src/views/components/users/UserBadge'; im...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Base/index.js
Minoli/carbon-apimgt
import React from 'react'; import Drawer from 'material-ui/Drawer'; import Divider from 'material-ui/Divider'; import ChevronLeftIcon from 'material-ui-icons/ChevronLeft'; import ChevronRightIcon from 'material-ui-icons/ChevronRight'; import FolderOpen from 'material-ui-icons/FolderOpen'; import Dns from 'material-ui-i...
app/components/indicator-horizontal.js
7kfpun/TWAQIReactNative
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { indexRanges } from '../utils/indexes'; import I18n from '../utils/i18n'; const styles = StyleSheet.create({ container: { flex: 1, flexDirection: 'row', backgroundColor: 'white', paddingHorizontal: 10, padd...
lib/components/layout.js
ryanbahniuk/isomorphic-app-boilerplate
'use strict' import React from 'react'; import { Link } from 'react-router'; const Layout = React.createClass({ propTypes: { children: React.PropTypes.element.isRequired }, render: function() { return ( <html> <head> <meta charSet="utf-8" /> <meta name="description" co...
lib/components/style-sheet.js
derrickpelletier/hyper
import React from 'react'; export default class StyleSheet extends React.PureComponent { render() { const { customCSS, colors, cursorColor, fontSize, fontFamily, fontSmoothing, foregroundColor, borderColor } = this.props; return ( <style dang...
src/react/index.js
bloodyowl/redux-devtools
import React from 'react'; import createDevTools from '../createDevTools'; export const DevTools = createDevTools(React); export { default as LogMonitor } from './LogMonitor'; export { default as DebugPanel } from './DebugPanel';
node_modules/rc-dialog/es/Modal.js
ZSMingNB/react-news
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import { View, Mo...
src/components/Header.js
thms-rmb/fcc-random-quote-machine
import React, { Component } from 'react'; /** * The header section of the web page. */ class Header extends Component { render () { return ( <div className="uk-section uk-section-primary"> <div className="uk-container"> <h1 className="uk-heading-line uk-tex...
Example/components/Login.js
peteychuk/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgr...
src/svg-icons/hardware/speaker-group.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSpeakerGroup = (props) => ( <SvgIcon {...props}> <path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2...
blueocean-material-icons/src/js/components/svg-icons/action/face.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionFace = (props) => ( <SvgIcon {...props}> <path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.4...
imports/startup/client/index.js
jiyuu-jin/openlens
import React from 'react'; import { Meteor } from 'meteor/meteor'; import { render } from 'react-dom'; import 'materialize-css'; import 'materialize-css/dist/css/materialize.css'; import MainLayout from '../../ui/components/main_layout.jsx'; Meteor.startup(() => { Session.set('navLens', 'historical'); render(( ...
src/components/Header/Header.js
erichardson30/react-starter
/** * React Starter (https://github.com/erichardson30/react-starter) * * Copyright © 2016 Eric Richardson. 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, { Component } from 'react'; import wi...
transitions/app/SharedView.js
lintonye/react-native-diary
// @flow import React, { Component } from 'react'; import { View, UIManager, findNodeHandle, } from 'react-native'; import { SharedItem } from './SharedItems'; class SharedView extends Component { _view: any; static contextTypes = { registerSharedView: React.PropTypes.func, unregi...
docs/pages/components/grid.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/grid'; const requireDemo = require.context('docs/src/pages/components/grid', false, /\.(js|tsx)$/); const requireRaw =...
WasteAppMini/js/components/recipe/milkrecipe.js
airien/workbits
import React, { Component } from 'react'; import { Image,View, ListView,BackAndroid } from 'react-native'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, DeckSwiper } from ...
src/components/_global/Footer/Footer.js
visarts/dotorg
import React from 'react' import { StyledFooter } from './Footer.style' const Footer = props => { return ( <StyledFooter> {decodeURIComponent('%C2%A9')} 2004-2018 Portitude </StyledFooter> ) } export default Footer
src/Containers/TableContainer.js
sirjuan/harmonical-oscillation
import React from 'react'; import { Table } from 'reactstrap'; const TableContainer = ({lines = {}}) => ( <Table striped> <TableHeader headerLine={Object.keys(lines['1'])}/> <TableBody lines={Object.values(lines)}/> </Table> ); export default TableContainer; const TableHeader = ({headerLine})...
frontend/src/components/slidez/index.js
viewportvr/daysinvr
// with a few changes from https://github.com/Pau1fitz/react-slidez /* eslint-disable no-unused-expressions*/ import React, { Component } from 'react'; import Arrows from './Arrows.js'; import './Slideshow.css'; class Slideshow extends Component { constructor(props) { super(props); this.state = { curr...
generators/app/templates/app/components/home/home.js
sgbj/generator-react-sass-es2015
import React from 'react'; export default class Home extends React.Component { render() { return ( <div> <h2>Home</h2> <p> Have fun working on <%= appName %>! &lt;3 </p> </div> ); } }
lib/components/DailyExpenses.js
devinmarieb/budget-app
import React from 'react'; import moment from 'moment'; import Expense from './Expense'; const getCurrentExpenses = (dailyExpensesList, handleDelete) => { const currentArray = dailyExpensesList.filter(data => moment(data.date).isSame(moment(), 'day')); return currentArray.map(data => <Expense key={data.key} ha...
src/components/common/SimpleText.js
marc-ed-raffalli/geo-game
import React from 'react'; import PropTypes from 'prop-types'; const SimpleText = props => (<span>{props.text}</span>); SimpleText.propTypes = { text: PropTypes.string.isRequired }; export default SimpleText;
src/svg-icons/action/lock-outline.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOutline = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c...
admin/client/App/components/Navigation/Secondary/index.js
Yaska/keystone
/** * The secondary navigation links to inidvidual lists of a section */ import React from 'react'; import { connect } from 'react-redux'; import { Container } from 'elemental'; import { setActiveList, } from '../../../screens/List/actions/active'; import SecondaryNavItem from './NavItem'; var SecondaryNavigation...
src/components/grid/GridBox.js
ProAI/react-essentials
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import BaseView from '../../utils/rnw-compat/BaseView'; import { GRID_SIZES } from '../../utils/constants'; const propTypes = { children: PropTypes.node.isRequired, size: PropTypes.oneOf(GRID_SIZES).isRequired, sizeSm: Pr...
modules/dreamview/frontend/src/components/StatusBar/Speedometer.js
ycool/apollo
import React from 'react'; const UNITS = [{ name: 'km/h', conversionFromMeterPerSecond: 3.6, }, { name: 'm/s', conversionFromMeterPerSecond: 1, }, { name: 'mph', conversionFromMeterPerSecond: 2.23694, }]; export default class Speedometer extends React.Component { constructor(props) { super(props); ...
src/components/TestForm/TestForm.js
zuban/edhunter
import React from 'react' import {Field, reduxForm} from 'redux-form'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { Col, Button, Form, FormGroup, Label, Input, FormText } from 'reactstrap'; import s from './Styles.css' import SyntaxHighlighter from 'react-syntax-highlighter'; ...
src/interface/report/Results/EncounterStats.js
anom0ly/WoWAnalyzer
import { Trans } from '@lingui/macro'; import fetchWcl from 'common/fetchWclApi'; import { formatDuration, formatPercentage, formatThousands } from 'common/format'; import ITEMS from 'common/ITEMS'; import { makeItemApiUrl } from 'common/makeApiUrl'; import SPELLS from 'common/SPELLS'; import ROLES from 'game/ROLES'; i...
src/pages/school-edit.js
voidxnull/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) 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 License, o...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
3846masa/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ColumnCollapsable from '../../../components/column_collapsable'; import SettingToggle from '../../notifications/com...
docs/app/Examples/collections/Table/Variations/TableExampleSelectableCell.js
vageeshb/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleSelectableCell = () => { return ( <Table celled> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Not...
src/svg-icons/image/assistant-photo.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistantPhoto = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ImageAssistantPhoto = pure(ImageAssistantPhoto); ImageAssistantPhoto.displayName = 'Image...
src/OptionButton.js
APSL/react-native-options-button
/* @flow */ import React from 'react'; import PropTypes from 'prop-types'; import { View, Text, TouchableOpacity, StyleSheet, ViewPropTypes } from 'react-native'; type Props = { index: number, children: string, onPress: Function, renderSeparator: boolean, style?: any, textStyle?: any, separato...
internals/templates/containers/App/index.js
dbrelovsky/react-boilerplate
/** * * 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 SFCs. If...
client/components/display-paintingDropdown.js
VaRt-io/V-aRt
import React from 'react'; const memory = 'http://www.artnewsblog.com/wp-content/uploads/2004/09/the-persistence-of-time.jpg'; const redFuji = 'https://data.ukiyo-e.org/aic/images/99027_512658.jpg'; const korea = 'https://upload.wikimedia.org/wikipedia/en/6/63/Picasso_Massacre_in_Korea.jpg'; const starry = 'https://ww...
packages/es-components/src/components/patterns/callToAction/LightCallToAction.js
jrios/es-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import LightNotification from '../../containers/notification/LightNotification'; import { getCallToActionChildren } from './getCallToActionChildren'; const Container = styled.div` flex-basis: 100%; `; const CallT...