path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
node_modules/react-router/es6/Link.js
jwilkinson/tiff16-films
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
fixtures/attribute-behavior/src/App.js
aickin/react
import React from 'react'; import {createElement} from 'glamor/react'; // eslint-disable-line /* @jsx createElement */ import {MultiGrid, AutoSizer} from 'react-virtualized'; import 'react-virtualized/styles.css'; import FileSaver from 'file-saver'; import { inject as injectErrorOverlay, uninject as uninjectError...
client/src/app/components/navigation/components/BigBreadcrumbs.js
zraees/sms-project
import React from 'react' import _ from 'lodash' // import NavigationStore from '../stores/NavigationStore' export default class BigBreadcrumbs extends React.Component { // mixins: [Reflux.listenTo(NavigationStore, 'onNavigationChange')], constructor(props) { super(props); this.state = { items: th...
app/components/Header/components/SessionInfo.js
kme211/srt-maker
import React from 'react'; import getRelativeTimeAgo from '../../../utils/getRelativeTimeAgo'; import styles from './SessionInfo.css'; const SessionInfo = ({ name, status, lastSaved }) => ( <div className={styles.session}> <div className={styles.session__name}>{name}</div> <div className={ last...
src/components/companies/companies-edit.js
Xabadu/VendOS
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { reduxForm } from 'redux-form'; import { getCompany, updateCompany } from '../../actions/companies'; class CompaniesEdit extends Component { constructor(props) { super(props); this.s...
react-flux-mui/js/material-ui/src/svg-icons/action/verified-user.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVerifiedUser = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/> </SvgIcon> ); ActionVerif...
nailgun/static/views/cluster_page.js
huntxu/fuel-web
/* * Copyright 2015 Mirantis, Inc. * * Licensed under the Apache License, Version 2.0 (the 'License'); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
config/routes.js
dkfann/cinesythesia
import React from 'react'; import {Route, Router, IndexRoute, hashHistory} from 'react-router'; import MainContainer from '../containers/MainContainer'; import HomeContainer from '../containers/HomeContainer'; export default ( <Router history={hashHistory}> <Route path="/" component={ MainContainer }> ...
mobile/Simplenote/src/components/screen-activity-indicator.js
abhaydgarg/Simplenote
import React from 'react'; import PropTypes from 'prop-types'; import { ActivityIndicator, View } from 'react-native'; const ScreenActivityIndicator = (props) => { return ( <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> <ActivityIndicator animating color={props.col...
ui/js/components/Image.js
ericsoderberg/pbc-web
import React from 'react'; import PropTypes from 'prop-types'; const Image = (props) => { const { avatar, className, full, image, style } = props; const classes = ['image']; if (avatar) { classes.push('image--avatar'); } if (full) { classes.push('image--full'); } if (className) { classes.push...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/data/ScopeValidation.js
thusithak/carbon-apimgt
/* * 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.org/li...
app/components/About.js
kdemoya/seriesly
import React, { Component } from 'react'; import { Text, View } from 'react-native'; class About extends Component { static navigationOptions = { title: 'About', }; render() { return ( <View> <Text> This is an awesome app! Nothing to watch here... Yet. </Text> ...
node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbSeparator.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; var styles = { root: { display: 'flex...
DevTools.js
mattkrick/redux-operations-counter-example
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q'> <LogMonitor /...
blueocean-material-icons/src/js/components/svg-icons/action/settings-ethernet.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSettingsEthernet = (props) => ( <SvgIcon {...props}> <path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5...
app/javascript/mastodon/components/column.js
nonoz/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import detectPassiveEvents from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, }; scrollTop () { const scrollable = th...
milestones/05-webpack-intro-css/After/src/index.js
jaketrent/react-drift
import React from 'react' import ReactDOM from 'react-dom' import DriftApp from './app.js' ReactDOM.render(<DriftApp />, document.getElementById('app'))
src/svg-icons/toggle/radio-button-checked.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleRadioButtonChecked = (props) => ( <SvgIcon {...props}> <path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
andrewmaudsley/create-react-app
/** * 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. */ import Rea...
components/react-semantify/src/collections/table.js
react-douban/douban-book-web
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; let defaultClassName = 'ui table'; const Table = React.createClass({ mixins: [ClassGenerator], render: function () { let {className, ...other} = this.props; return ( <table {...other} className={this.getClassName(d...
packages/vx-glyph/src/glyphs/Square.js
Flaque/vx
import React from 'react'; import cx from 'classnames'; import { symbol, symbolSquare } from 'd3-shape'; import Glyph from './Glyph'; import additionalProps from '../util/additionalProps'; export default function GlyphSquare({ children, className, top, left, size, ...restProps }) { const path = symbol();...
src/svg-icons/device/access-alarm.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessAlarm = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-...
src/svg-icons/social/sentiment-very-satisfied.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVerySatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1...
examples/week.js
react-component/calendar
/* eslint react/no-multi-comp:0, no-console:0 */ import '../assets/index.less'; import React from 'react'; import moment from 'moment'; import Calendar from '../src'; import DatePicker from '../src/Picker'; import zhCN from '../src/locale/zh_CN'; import enUS from '../src/locale/en_US'; import 'moment/locale/zh-cn'; i...
app/components/Work/ToolsSection/index.js
yasserhennawi/yasserhennawi
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'utils/styled-components'; import WorkSection from '../WorkSection'; import Tool from '../Tool'; const StyledTool = styled(Tool)` margin: 10px 20px 0 0; `; const ToolsWrapper = styled.div` display: flex; flex-wrap: wrap; `; const g...
src/components/Surrounder.js
codeforboston/cliff-effects
import React from 'react'; const Surrounder = function ({ Top, Left, Right, Bottom, children }) { let contents = { top: null, left: null, right: null, bottom: null }; if (Top) { contents.top = (<div className={ `top horizontal` }>{ Top }</div>); } if (Left) { contents.left = (<div className={ `left ...
src/components/App.js
sivael/simpleBlogThingie
import React from 'react' import Header from 'components/Header' import { Link } from 'react-router' class App extends React.Component { render() { return ( <div> <Header /> { this.props.children } </div> ) } } export default App;
app-course-sync/containers/PageContainer.js
globant-ui-rosario/progress-tracker
import React, { Component } from 'react'; class PageContainer extends Component { render () { return ( <div>{this.props.children}</div> ); } }; export default PageContainer;
src/components/searchbar.js
ShaneFairweather/React-iTunes
import React, { Component } from 'react'; export default class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' } this.onInputChange = this.onInputChange.bind(this); } onInputChange(term) { this.setState({term}) this.props....
src/resources/assets/react-app/components/PreHeader.js
darrenmerrett/ruf
import React, { Component } from 'react'; class PreHeader extends Component { render() { return null; } } export default PreHeader;
src/components/TabIcon.js
phodal/growth-ng
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text } from 'react-native'; import { Icon } from 'react-native-elements'; import AppColors from '../theme/colors'; class TabIcon extends React.Component { componentName = 'TabIcon'; render() { return ( <View> <Icon name...
pages/product.js
NigelEarle/SSR-shopping
import React, { Component } from 'react'; import { Provider } from 'mobx-react'; import { initProductStore } from '../store/product'; import { SingleProduct } from '../components'; class Product extends Component { static async getInitialProps(context) { const isServer = !!context.req; const store = initProd...
src/Table.js
kwnccc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, getDefaultProps() { ...
demo/src/demo-components/user-list.js
Strikersoft/striker-store
import React from 'react'; import { shape, func, number, arrayOf } from 'prop-types'; import { observer } from 'mobx-react'; import Status from './indicators'; import UserItem from './user-item'; const UserList = observer(({ users, isReloading, isLoading, ...rest }) => ( <div> {users.map( user => ( ...
src/components/shared/import-geometry/import-geometry.component.js
GeoTIFF/geotiff.io
import React from 'react'; const ImportGeometryComponent = ({ geometry, importGeometry }) => ( <div className='import-geojson'> <p>Import Geometry from file</p> <div className='content-row'> <label className='gt-button-secondary' htmlFor="import-geojson-input" > Import Geo...
exemplos/ExemploMenuItem.js
vitoralvesdev/react-native-componentes
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; import { MenuItem } from 'react-native-componentes'; const ITENS = [ {nome: 'Criar'}, {nome: 'Atualizar'}, {nome: 'Deletar'}, ] export default class ExemploMenuItem extends Componen...
src/svg-icons/content/drafts.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDrafts = (props) => ( <SvgIcon {...props}> <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>...
components/link/Link.js
showings/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { LINK } from '../identifiers'; import { FontIcon } from '../font_icon/FontIcon'; const Link = ({ active, children, className, count, icon, label, theme, ...others }) => {...
lib/Components/IdeaInput.js
DanGrund/Daily-Bullet
import React from 'react'; export default class IdeaInput extends React.Component{ constructor(props){ super(props); this.state = { newTask: {value: ''}, } } handleChange(e){ let task = this.state.newTask task.value = e.target.value this.setState({newTask: task}) } handleSave(...
app/views/STF/Voting/Panels/Vote/Vote.js
RcKeller/STF-Refresh
import React from 'react' import PropTypes from 'prop-types' import { compose, bindActionCreators } from 'redux' import { connect } from 'react-redux' import { Form, Alert, Switch, Button, message } from 'antd' const FormItem = Form.Item const connectForm = Form.create() import { layout } from '../../../../....
client/modules/App/components/DevTools.js
mygithub1216/MERN_SelfCar_Dashboard
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
src/components/buttons/CreateButton.js
shrimpliu/shradmin
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'antd'; import { actions } from 'mirrorx'; import { translate } from '../../i18n'; const CreateButton = ({ translate, model }) => ( <Button type="primary" icon="plus" onClick={() => actions.routing.push(`/${model}/create`)}> {t...
node_modules/react-bootstrap/es/DropdownMenu.js
firdiansyah/crud-req
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/svg-icons/hardware/keyboard.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboard = (props) => ( <SvgIcon {...props}> <path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v...
local-cli/templates/HelloWorld/index.android.js
tadeuzagallo/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
docs/app/Components/ComponentDoc/ComponentProps/ComponentPropsHeader.js
shengnian/shengnian-ui-react
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { Header, Icon } from 'shengnian-ui-react' import { updateForKeys } from 'docs/app/HOC' const headerStyle = { cursor: 'pointer', display: 'inline-flex', margin: '1em 0.5em', marginLeft: 0, } const linkStyle = { co...
app/index.js
feijihn/lotto
require('smoothscroll-polyfill').polyfill(); import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import configureStore from './store/configureStore'; import {Router, hashHistory} from 'react-router'; import routes from './routes'; const initialState = window.__INITIAL_S...
stories/AutoComplete/ExampleStandard.js
skyiea/wix-style-react
import React from 'react'; import AutoComplete from 'wix-style-react/AutoComplete'; const style = { display: 'inline-block', padding: '0 5px 0', width: '200px', lineHeight: '22px' }; const options = [ {id: 0, value: 'First option'}, {id: 1, value: 'Unselectable option', unselectable: true}, {id: 2, valu...
admin/client/Signin/index.js
danielmahon/keystone
/** * The signin page, it renders a page with a username and password input form. * * This is decoupled from the main app (in the "App/" folder) because we inject * lots of data into the other screens (like the lists that exist) that we don't * want to have injected here, so this is a completely separate route and...
node_modules/react-bootstrap/es/MediaBody.js
superKaigon/TheCave
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 ...
packages/@lyra/imagetool/src/ImageLoader.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' export default class ImageLoader extends React.Component { static propTypes = { src: PropTypes.string.isRequired, children: PropTypes.func.isRequired } state = { isLoading: true, image: null, error: null } componentWillMount()...
src/components/DoneFooter.js
rollo-zhou/look
import React from 'react'; import { ActivityIndicator, StyleSheet, Image, Text, View, ListView, TouchableOpacity } from 'react-native'; import Dimensions from 'Dimensions'; const {width, height} = Dimensions.get('window'); import globalVariables from '../globalVariables.js'; const DoneFooter = React.cre...
src/Fade.js
brynjagr/react-bootstrap
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; class Fade extends React.Component { render() { let timeout = this.props.timeout || this.props.duration; retu...
packages/mineral-ui-icons/src/IconFolderShared.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFolderShared(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
docs/src/app/components/pages/components/Menu/ExampleDisable.js
w01fgang/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; const style = { display: 'inline-block', margin: '16px 32px 16px 0', }; const MenuExampleDisable = () => ( <div> <Pap...
src/components/Root.js
kmcarter/karaoke-song-lister
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ConnectedRouter } from 'react-router-redux'; import { Provider } from 'react-redux'; import App from './App'; export default class Root extends Component { render() { const { store, history } = this.props; return ( <...
src/scripts/NavBar.js
lixmal/keepass4web
import React from 'react' import Timer from './Timer' window.$ = window.jQuery = require('jquery') var Bootstrap = require('bootstrap') export default class NavBar extends React.Component { constructor() { super() this.onLogout = this.onLogout.bind(this) this.onCloseDB = this.onCloseDB.bin...
src/js/containers/LoginContainer/LoginContainer.js
shane-arthur/react-redux-and-more-boilerplate
import React, { Component } from 'react'; // eslint-disable-line import/first import LoginPanel from '../../components/LoginPanel/LoginPanel'; export default class LoginContainer extends Component { render(){ return ( <div><LoginPanel /></div> ); } }
src/popup/components/PackEdit/Time.js
fluany/fluany
/** * @fileOverview A component to change interval of the package * @name Time.js * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' import InputRange from 'react-input-range' import { connect } from 'react-redux' import { changeTimePackage } from 'actions/pa...
src/routes/home/Home.js
bobbybeckner/ha-catalyst-test
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/components/LoadingIndicator.js
davendesai/twitchcast
import React, { Component } from 'react'; import { CircularProgress } from 'material-ui'; import '../styles/LoadingIndicator.css'; export default class LoadingIndicator extends Component { render() { return( <div id="twitchcast-loadingindicator"> {this.props.show ? <CircularProgress size={35} colo...
_theme/template/NotFound.js
ElemeFE/react-amap
import React from 'react'; import Layout from './Layout'; export default class NotFound extends React.Component { render() { return <Layout> <div id="notfound"> <img src="https://cloud.githubusercontent.com/assets/3898898/23833528/2e1e198c-0782-11e7-8e13-664b39a29d4b.png" alt=""/> <div clas...
assets/node_modules/react-easy-chart/modules/pie-chart/hybrid/index.js
janta-devs/nyumbani
import React from 'react'; import { scale, layout, svg, select, event as lastEvent, interpolate } from 'd3'; import { createUniqueID, defaultStyles } from '../../shared'; import { createElement } from 'react-faux-dom'; import { Style } from 'radium'; import merge from 'lodash.merge'; const color = scal...
frontend/src/components/login/login.js
unicef/un-partner-portal
import React from 'react'; import Card from '../common/cardLogin'; import LoginForm from './loginForm'; const messages = { title: 'UN Partner Portal', }; const Login = () => ( <Card title={messages.title}> <LoginForm /> </Card> ); export default Login;
packages/material-ui-icons/src/AddCircleOutline.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AddCircleOutline = props => <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.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...
server/dashboard/js/components/BenchLog.react.js
machinezone/mzbench
import React from 'react'; import ReactDOM from 'react-dom'; import LogsStore from '../stores/LogsStore'; import MZBenchActions from '../actions/MZBenchActions'; import MZBenchRouter from '../utils/MZBenchRouter'; import BenchLogEntry from './BenchLogEntry.react'; import LoadingSpinner from './LoadingSpinner.react'; im...
src/javascripts/utils.js
aAXEe/online_chart_ol3
/** * @license AGPL-3.0 * @author aAXEe (https://github.com/aAXEe) */ import viewSize from 'screen-size' import React from 'react' import { FormattedMessage } from 'react-intl' export function floatEqual (num1, num2, eps = 0.0001) { if (num1 === num2) return true return Math.abs(num1 - num2) <= eps } export func...
src/components/ReplConsole.js
boneskull/Mancy
import React from 'react'; import _ from 'lodash'; import ReplConsoleStore from '../stores/ReplConsoleStore'; import ReplDOM from '../common/ReplDOM'; import ReplConsoleMessageFilters from './ReplConsoleMessageFilters'; import ReplConsoleHook from '../common/ReplConsoleHook'; export default class ReplConsole extends R...
app/js/components/ui/containers/field.js
blockstack/blockstack-browser
import React from 'react' import PropTypes from 'prop-types' import { StyledField } from '@ui/components/form' import { slugify } from '@ui/common' import AlertCircleIcon from 'mdi-react/AlertCircleIcon' import CheckCircleOutlineIcon from 'mdi-react/CheckCircleOutlineIcon' /* eslint-disable */ class Field extends Reac...
src/scenes/home/families/facts/facts.js
tal87/operationcode_frontend
import React from 'react'; import styles from './facts.css'; import family3 from '../../../../images/Family-3.jpg'; const Facts = () => ( <div className={styles.facts}> <div className={styles.factsList}> <div className={styles.factsHeading}> <h5>The Facts</h5> </div> <ul> <li cl...
src/scenes/home/chapterLeader/chapterLeader.js
hollomancer/operationcode_frontend
import React from 'react'; import Section from 'shared/components/section/section'; const chapterLeaders = () => ( <div> <Section title="Chapter Leaders" theme="white"> <div> <p> Operation Code is looking for volunteer Chapter Leaders to build local communities nationwide! Tell ...
src/svg-icons/action/group-work.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGroupWork = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5...
web-server/v0.4/src/pages/Summary/index.js
k-rister/pbench
import React from 'react'; import { connect } from 'dva'; import { Spin, Tag, Card, List, Typography, Divider } from 'antd'; import { filterIterations } from '../../utils/parse'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import Table from '@/components/Table'; import TableFilterSelection from '@/c...
code/web/node_modules/react-bootstrap/es/DropdownToggle.js
zyxcambridge/RecordExistence
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/layouts/CoreLayout/CoreLayout.js
harijoe/redux-dollar
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) Co...
actor-apps/app-web/src/app/components/common/MessageItem.react.js
Ajunboys/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import memoize from 'memoizee'; import classNames from 'classnames'; import emojify from 'emojify.js'; import hljs from 'highlight.js'; import marked from 'marked'; import emojiCharacters from 'emoji-named-characters'; ...
packages/benchmarks/src/implementations/radium/Dot.js
css-components/styled-components
/* eslint-disable react/prop-types */ import Radium from 'radium'; import React from 'react'; const styles = { root: { position: 'absolute', cursor: 'pointer', width: 0, height: 0, borderColor: 'transparent', borderStyle: 'solid', borderTopWidth: 0, transform: 'translate(50%, 50%)', ...
examples/counter/containers/App.js
mikekidder/redux-devtools
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import thunk from 'redux-...
app/assets/scripts/views/location/metadata.js
openaq/openaq.org
import React from 'react'; import { PropTypes as T } from 'prop-types'; import moment from 'moment'; import { schemas } from 'openaq-data-format'; import config from '../../config'; const locationSchema = schemas.location; export default function Metadata({ loc, loc: { data: { metadata }, }, }) { if (!me...
client/source/js/models/u_groups_m.js
Vladimir37/Planshark
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import {submitting, getData} from '../submitting.js'; import {Waiting, Error, Empty, Menu, Forbidden} from './templates.js'; import toast from '../toaster.js'; import {colorpick} from '../picker.js'; //responses var actions_r = ['Succ...
index.android.js
kilimondjaro/react-native-couchsurfing-app
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class CouchsurfingApp extends Component { render() { return ( <View style={styles.con...
src/client/components/profile/ProfileUpdateUser.component.js
DBCDK/content-first
import React from 'react'; import Spinner from '../general/Spinner/Spinner.component'; import T from '../base/T'; export default class ProfileUpdateUser extends React.Component { onSubmit = e => { const obj = { name: this.state.name, image: this.props.imageId, acceptedTerms: true, over13:...
js/components/loaders/Spinner.ios.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { ActivityIndicatorIOS } from 'react-native'; export default class SpinnerNB extends Component { prepareRootProps() { const type = { height: 80, }; const defaultProps = { style: type, }; return computeProps(this.props, defaultProps...
node_modules/react-color/src/components/sketch-2/Sketch.js
ottomajik/react-demo
'use strict'; /* @flow */ import React from 'react'; import ReactCSS from 'reactcss'; import { Saturation, Hue, Alpha, Checkboard } from '../common'; import SketchFields from './SketchFields'; import SketchPresetColors from './SketchPresetColors'; export class Sketch extends ReactCSS.Component { constructor() { ...
components/Table/Holders/Card/Modifiers/Face.js
mattbajorek/blackJackReact
import React, { Component } from 'react'; import center from './Positions/posFace'; import selector from './Positions/symbol'; class Face extends Component { render() { let symbol = this.props.symbol; let number = this.props.number; // Fixes club positioning issue if (symbol === '\u2663') { center[2]['to...
app/javascript/mastodon/components/timeline_hint.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const TimelineHint = ({ resource, url }) => ( <div className='timeline-hint'> <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ...
test/async-suggestions/AutosuggestApp.js
JacksonKearl/react-autosuggest-ie11-compatible
import React, { Component } from 'react'; import sinon from 'sinon'; import Autosuggest from '../../src/Autosuggest'; import languages from '../plain-list/languages'; import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js'; const getMatchingLanguages = value => { const escapedValue = escapeR...
app/javascript/mastodon/features/public_timeline/index.js
yukimochi/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
components/Deck/ActivityFeedPanel/ActivityItem.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import likeActivity from '../../../actions/activityfeed/likeActivity'; import {formatDate} from './util/ActivityFeedUtil'; import {navigateAction} from 'fluxible-router'; import {connectToStores} from 'fluxible-addons-react'; import cheerio from 'cheerio'; ...
lib/DragContainer.js
deanmcpherson/react-native-drag-drop
import React from 'react'; import { View, PanResponder, Modal, Easing, Animated, TouchableOpacity, TouchableWithoutFeedback, } from 'react-native'; global.Easing = Easing; const allOrientations = [ 'portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right' ]; class DragMod...
blueprints/view/files/__root__/views/__name__View/__name__View.js
PetrosGit/poker-experiment
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/svg-icons/av/pause-circle-filled.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleFilled = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/> </SvgIcon> ); AvPauseCircleFilled = pure(AvP...
Prac/js/ClientApp.js
JRFrazier/complete-intro-to-react
import React from 'react' import { render } from 'react-dom' import '../public/normalize.css' import '../public/style.css' const App = React.createClass ({ render () { return ( <div className='app'> <div className='landing'> <h1>svideo</h1> <input type='text' placeholder='Search...
node_modules/react-bootstrap/es/Button.js
rblin081/drafting-client
import _Object$values from 'babel-runtime/core-js/object/values'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
packages/material-ui-icons/src/CropSquare.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z" /></g> , 'CropSquare');
src/lens/positive-space/index.js
ethanselzer/react-image-magnify
import React, { Component } from 'react'; import objectAssign from 'object-assign'; import LensPropTypes from '../../prop-types/Lens'; import clamp from 'clamp'; import dataUri from './assets/textured-lens-data-uri'; export default class PositiveSpaceLens extends Component { static propTypes = LensPropTypes s...
src/MyProfilePage/Team/Team.js
velesin/retroinator
import React from 'react'; import { Link } from 'react-router-dom'; import { Icon, ICONS } from '../../shared'; export function Team({ team }) { return ( <Link to={`/team/${team.$key}`} className="MyProfilePage_Teams_Team"> <Icon>{ICONS.TEAM}</Icon> <div>{team.name}</div> </Link> ); }
src/js/components/Drop/stories/AllNotStretched.js
grommet/grommet
import React from 'react'; import PropTypes from 'prop-types'; import { Box, Drop, Text, ThemeContext } from 'grommet'; const OneDrop = ({ align, target }) => ( <Drop align={align} target={target} stretch={false}> <Box pad="small" /> </Drop> ); OneDrop.propTypes = { align: PropTypes.shape({}).isRequired, ...
src/index.js
sebpearce/cycad-react
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import { App } from './App'; import { Provider } from 'react-redux'; import createBrowserHistory from 'history/createBrowserHistory'; import { store } from './store'; import { saveState } from './loc...
src/assets/icons/check.js
HackArdennes2017/Project06
import React from 'react' export default props => <svg viewBox="0 0 100 125" {...props}> <path d="M47.215 8.002a42.128 42.128 0 0 0-11.063 1.437C13.799 15.43.476 38.522 6.466 60.877c5.99 22.355 29.083 35.677 51.438 29.687 22.355-5.99 35.677-29.082 29.687-51.437a4 4 0 1 0-7.719 2.062c4.871 18.179-5.852 36.7...