path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/base-shell/src/components/AuthorizedRoute.js
TarikHuber/react-most-wanted
import React from 'react' import { Navigate, useLocation } from 'react-router-dom' import { useAuth } from '../providers/Auth' import { useConfig } from '../providers/Config' function AuthorizedRoute({ children }) { const { appConfig } = useConfig() const { auth: authConfig } = appConfig || {} const { signInURL ...
examples/js/sort/sort-style-table.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; ...
lib/components/tabs.js
whitelynx/hyperterm
import React from 'react'; import Component from '../component'; import {decorate, getTabProps} from '../utils/plugins'; import Tab_ from './tab'; const Tab = decorate(Tab_, 'Tab'); const isMac = /Mac/.test(navigator.userAgent); export default class Tabs extends Component { template(css) { const { tabs...
src/js/components/icons/base/Note.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/parser/paladin/holy/modules/beacons/BeaconHealingDone.js
sMteX/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import Panel from 'interface/statistics/Panel'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import HealingValue from 'parser/shared/modules/HealingValue'; import HealingDone from 'parser/shared/modules/throughput/HealingDone'; imp...
src/components/Auth/signin.js
gperl27/liftr-v2
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import * as actions from '../../actions'; class Signin extends Component { handleFormSubmit({email, password}){ console.log(email, password); // need to do something to log user in this.props.signinUser({ email, password })...
src/components/MenuAside.js
Leobuaa/online-disk
import React, { Component } from 'react'; class MenuAside extends Component { constructor(props) { super(props); } isActiveButton(index) { if (index === this.props.menuAside.buttonActiveIndex) { return 'item-active'; } return ''; } render() { const lists = [ { index:...
src/svg-icons/editor/drag-handle.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorDragHandle = (props) => ( <SvgIcon {...props}> <path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/> </SvgIcon> ); EditorDragHandle = pure(EditorDragHandle); EditorDragHandle.displayName = 'EditorDragHandle'; Edi...
src/js/components/icons/base/DocumentVideo.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/svg-icons/image/crop-free.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropFree = (props) => ( <SvgIcon {...props}> <path d="M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"/> </SvgIco...
client/views/admin/federationDashboard/FederationDashboardPage.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import FederationDashboardPage from './FederationDashboardPage'; export default { title: 'admin/federationDashboard/FederationDashboardPage', component: FederationDashboardPage, }; export const Default = () => <FederationDashboardPage />;
frontend/src/components/dialog/list-repo-drafts-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import { gettext, siteRoot } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import moment from 'moment'; import editorUtilities from '../.....
wrappers/html.js
pcm-ca/pcm-ca.github.io
import React from 'react' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const page = this.props.route.page.data return ( <div> <Helmet ti...
src/other/DescriptionTeaser.js
ndlib/beehive
import React from 'react' import PropTypes from 'prop-types' import createReactClass from 'create-react-class' const DescriptionTeaser = createReactClass({ displayName: 'Teaser Text', propTypes: { description: PropTypes.string, }, style: function () { return { overflow: 'hidden', textOver...
app/server.js
nurogenic/universal-react-boilerplate
import path from 'path'; import React from 'react'; import Router from 'react-router'; import Hapi from 'hapi'; import _merge from 'lodash.merge'; import routes from './routes.jsx'; import component from './components/Html.jsx'; const server = new Hapi.Server(); server.connection({port: 8000}); server.route({ meth...
packages/mineral-ui-icons/src/IconHealing.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 IconHealing(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}...
code/schritte/2-hierarchy/src/GreetingMaster.js
st-he/react-workshop
import React from 'react'; const GreetingMaster = (props) => { const {greetings, onAdd} = props; const body = greetings.map(greeting => <tr key={greeting.id}><td>{greeting.name}</td><td>{greeting.greeting}</td></tr>); return ( <div> <table> <thead> <tr><t...
assets/jqwidgets/demos/react/app/tabs/mapinsidetab/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; class App extends React.Component { render() { let initialize = () => { let mapCanvas = document.getElementById('map-canvas'); let mapOptions = { ...
src/svg-icons/av/radio.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRadio = (props) => ( <SvgIcon {...props}> <path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3...
imports/ui/pages/Index.js
KyneSilverhide/expense-manager
import React from 'react'; import Grid from 'material-ui/Grid'; import EventsListDashboard from '../containers/events/EventsListDashboard'; import Debts from '../containers/debts/Debts'; const Index = () => <Grid container direction="row"> <Grid item xs={12} lg={9}> <EventsListDashboard /> </Grid> ...
examples/js/style/tr-class-function-table.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; ...
assets/react/source/grid_offset.js
theroyalstudent/unsemantic-100-grid
// Dependencies. import React from 'react' import PropTypes from 'prop-types' // Define class. class GridOffset extends React.Component { // Render method. render () { // Expose UI. return ( <div className='grid-offset'> {this.props.children} </div> ) } } // Validation. GridOffse...
src/mui/detail/Create.js
azureReact/AzureReact
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Card } from 'material-ui/Card'; import compose from 'recompose/compose'; import inflection from 'inflection'; import ViewTitle from '../layout/ViewTitle'; import Title from '../layout/Title'; im...
src/js/components/Projects/TableRow.js
appdev-academy/appdev.academy-react
import PropTypes from 'prop-types' import React from 'react' import { findDOMNode } from 'react-dom' import { Link } from 'react-router' import { DragSource, DropTarget } from 'react-dnd' import GreenButton from '../Buttons/Green' import OrangeButton from '../Buttons/Orange' const style = { border: '1px dashed gray...
src/components/Showcase/ShowcaseEndingCard.js
ndlib/beehive
import React from 'react' import PropTypes from 'prop-types' import createReactClass from 'create-react-class' import { Paper } from '@material-ui/core' import SitePathCard from '../Collection/SitePathCard' const ShowcaseEndingCard = createReactClass({ displayName: 'Showcase Ending', propTypes: { siteObject: P...
src/components/post-header.js
Dmidify/mlblog
import React, { Component } from 'react'; import { postsData } from '../sample-data.js'; class PostHeader extends Component { state = { posts: postsData } render() { return ( <header className="intro-header post"> <div className="container"> <div className="row"> ...
src/svg-icons/navigation/arrow-upward.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowUpward = (props) => ( <SvgIcon {...props}> <path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/> </SvgIcon> ); NavigationArrowUpward = pure(NavigationArrowUpward); NavigationA...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
maxipad37/maxipad37.github.io
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
scripts/dashboard/components/ProjectForm/ProjectFormServiceList/view.js
vedranjukic/dockerino
import React from 'react' import { Link } from 'react-router' import { Table } from 'react-bootstrap'; function view (props, state) { if (!props.project.services || !props.project.services.length) { return ( <div> No services added. <Link to="/project/addservice">Add service to project</Li...
src/svg-icons/communication/swap-calls.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationSwapCalls = (props) => ( <SvgIcon {...props}> <path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8...
src/components/store_types/store-types-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 { getStoreType, updateStoreType } from '../../actions/store-types'; class StoreTypesEdit extends Component { constructor(props) { super(props); ...
ui/js/components/ItemContext.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { loadCategory, unloadCategory } from '../actions'; import PageItem from '../pages/page/PageItem'; import EventItem from '../pages/event/EventItem'; class ItemContext extends Component { comp...
lib-module-modern-browsers-dev/layout/DefaultLayout.js
turacojs/fody
var _jsxFileName = 'layout/DefaultLayout.jsx', _this = this; import React from 'react'; import { ReactElementType as _ReactElementType, LayoutPropsType as _LayoutPropsType } from '../types'; import { Html, Head, Body } from './index'; import t from 'flow-runtime'; const ReactElementType = t.tdz(function () { re...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
joenmarz/joenmarz-yii2-advanced-with-gulp-bootstrap-sass
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/Components/Featured.js
jsmankoo/SPATemplate
import React from 'react'; import {connect} from 'react-redux'; import MediaQuery from 'react-responsive'; import OwlCarousel from './OwlCarousel'; const Featured = ({Properties,Search})=>{ return ( <div className='Featured'> <MediaQuery maxDeviceWidth={767}> <Mobile Properties={Proper...
app/layouts/authenticated.js
meddle0x53/react-webpack-koa-postgres-passport-example
import React, { Component } from 'react'; import { Link, RouteHandler } from 'react-router'; import { Jumbotron, Nav, Row, Col } from 'react-bootstrap'; import { NavItemLink } from 'react-router-bootstrap'; import AuthStore from '../stores/auth'; import SignIn from '../pages/signin'; export default class MainLayout...
src/svg-icons/editor/strikethrough-s.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorStrikethroughS = (props) => ( <SvgIcon {...props}> <path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ...
src/articles/2018-09-30-Suggestions/index.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Link } from 'react-router-dom'; import { Zerotorescue } from 'CONTRIBUTORS'; import RegularArticle from 'interface/news/RegularArticle'; import RandomImageToMakeThisArticleLessBland from './weirdnelfandherfriend.png'; export default ( <RegularArticle title={<>What are <i>YOUR</i...
src/components/Header/Header.js
HereIsJohnny/issuetracker
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
src/interface/report/EventParser.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import ExtendableError from 'es6-error'; import { connect } from 'react-redux'; import { getBuild } from 'interface/selectors/url/report'; import sleep from 'common/sleep'; import { captureException } from 'common/errorLogger'; import EventEmitter from 'pa...
examples/async/containers/Root.js
leeluolee/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
src/components/iconButton.js
Andrey11/golfmanager
'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, TouchableHighlight, Image } from 'react-native'; import styles from '../styles/basestyles.js'; export default class iconButton extends Component { render () { return ( <TouchableHighlight style={this...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js
shrynx/react-super-scripts
/** * 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...
example/src/other/SuperButton.js
b6pzeusbc54tvhw5jgpyw8pwz2x6gs/rix-loader
import React from 'react'; import StyleSheet from 'react-inline'; require('requirish')._(module); var appUtil = require('src/appUtil'); //import appUtil from 'src/appUtil'; console.log('SuperButton'); const { oneOf, bool } = React.PropTypes; class SuperButton extends React.Component { render() { return <div cl...
public/components/tehtPage/tabsComponents/pohjapiirrokset/Pelastussuunnitelma.js
City-of-Vantaa-SmartLab/kupela
import React from 'react'; import SubitemWrapper from './subcontent/SubitemWrapper'; import { connect } from 'react-redux'; const Pelastussuunnitelma = (props) => <SubitemWrapper {...props} />; const mapStateToProps = ({ pelastussuunnitelmatab }) => ({ pelastussuunnitelmatab }); export default connect(mapSta...
docs/src/PageFooter.js
AlexKVal/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className='bs-docs-footer' role='contentinfo'> <div c...
example/common/components/Counter.js
modosc/react-responsive-redux
import React from 'react' import PropTypes from 'prop-types' const Counter = ({ increment, incrementIfOdd, incrementAsync, decrement, counter, }) => ( <p> Clicked: {counter} times {' '} <button onClick={increment}>+</button> {' '} <button onClick={decrement}>-</button> {' '} <button onC...
src/components/Charts/MiniBar/index.js
wu-sheng/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
src/components/Dialog/Container.js
STMU1320/dedao-demo
import React from 'react' import { VelocityComponent } from 'velocity-react' import classnames from 'classnames' import styles from './style.less' const dialogMask = 'dialog_mask' class Container extends React.PureComponent { static defaultProps = { maskClosable: true, placement: 'center', className: ''...
examples/server/store.js
rackt/redux-simple-router
import React from 'react' import { createStore, combineReducers, compose, applyMiddleware } from 'redux' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' import { routerReducer, routerMiddleware } from 'react-rout...
src/components/icons/DragHandle.js
niekert/soundify
import React from 'react'; import { string } from 'prop-types'; const DragHandle = ({ fill, ...props }) => <svg fill={fill} height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" {...props} > <defs> <path d="M0 0h24v24H0V0z" id="a" /> </defs> <clipPa...
src/02-Properties.js
sericaia/react-msf-demos
import React from 'react'; class MyPropertiesExample extends React.Component { render() { return ( <div> <h1>Properties</h1> My favourite dish is {this.props.dish}. </div> ); } } MyPropertiesExample.defaultProps = { dish: 'shrimp with pasta' }; MyPropertiesExample.propTypes ...
frontend/src/Components/Table/TableRowButton.js
geogolem/Radarr
import React from 'react'; import Link from 'Components/Link/Link'; import TableRow from './TableRow'; import styles from './TableRowButton.css'; function TableRowButton(props) { return ( <Link className={styles.row} component={TableRow} {...props} /> ); } export default TableRowButton;
src/svg-icons/communication/contact-mail.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactMail = (props) => ( <SvgIcon {...props}> <path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3...
src/pages/repos.js
geekydatamonkey/hjs-gittagger
'use strict'; import React from 'react'; export default React.createClass({ displayName: 'ReposePage', render() { return ( <main class="container"> <h1>Repos Page</h1> <a href="/"> &larr; back to Public</a> </main> ) } });
node_modules/react-native-svg/elements/Rect.js
MisterZhouZhou/ReactNativeLearing
import React from 'react'; import './Path'; // must import Path first, don`t know why. without this will throw an `Super expression must either be null or a function, not undefined` import createReactNativeComponentClass from 'react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js'; import {pathProps,...
components/AddIngredient.ios.js
kkwokwai22/snacktime
import React, { Component } from 'react'; import { Text, View, Image, TextInput, ListView, TouchableHighlight, TouchableOpacity, Switch } from 'react-native'; import helpers from '../helpers/helpers.js'; import styles from '../styles.ios.js'; import FoodpairResults from './FoodpairResults.ios.js'; import AddIngredientC...
admin/client/App/screens/List/components/ItemsTable/ItemsTableRow.js
benkroeger/keystone
import React from 'react'; import classnames from 'classnames'; import ListControl from '../ListControl'; import { Columns } from 'FieldTypes'; import { DropTarget, DragSource } from 'react-dnd'; import { setDragBase, resetItems, reorderItems, setRowAlert, moveItem, } from '../../actions'; const ItemsRow = Rea...
Example/components/Launch.js
gectorat/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", backgroundColor: "transp...
docs/src/examples/modules/Accordion/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import Advanced from './Advanced' import Types from './Types' import Variations from './Variations' import Usage from './Usage' const AccordionExamples = () => ( <div> <Types /> <Variations /> <Usage /> <Advanced /> </div> ) export default AccordionExamples
app/main.js
henrikra/gym-diary
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import promise from 'redux-promise'; import { Router } from 'react-router'; import createHistory from 'history/lib/createHashHistory'; import reducers from './reduc...
ui/src/main/js/components/UpdateConfig.js
thinker0/aurora
import React from 'react'; import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout'; import TaskConfig from 'components/TaskConfig'; import UpdateDiff from 'components/UpdateDiff'; import { isNully } from 'utils/Common'; export default function UpdateConfig({ update }) { if (isNully(update.upd...
mlflow/server/js/src/model-registry/components/ModelVersionPage.js
mlflow/mlflow
import React from 'react'; import { connect } from 'react-redux'; import { getModelVersionApi, updateModelVersionApi, deleteModelVersionApi, transitionModelVersionStageApi, getModelVersionArtifactApi, parseMlModelFile, } from '../actions'; import { getRunApi } from '../../experiment-tracking/actions'; impor...
src/NavbarBrand.js
egauci/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import tbsUtils from './utils/bootstrapUtils'; class NavbarBrand extends React.Component { render() { const {className, children, ...props} = this.props; let { $bs_navbar_bsClass: bsClass = 'navbar' } = this.context; let brandClasses = tbsU...
admin/client/App/shared/CreateForm.js
brianjd/keystone
/** * The form that's visible when "Create <ItemName>" is clicked on either the * List screen or the Item screen */ import React from 'react'; import assign from 'object-assign'; import vkey from 'vkey'; import AlertMessages from './AlertMessages'; import { Fields } from 'FieldTypes'; import InvalidFieldType from '...
pootle/static/js/auth/components/SocialAuthError.js
Avira/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle 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. */ 'use strict'; import React from 'react'; import { PureRen...
docs/src/pages/layout/hidden/GridIntegration.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import { withStyles } from 'material-ui/styles'; import Paper from 'material-ui/Paper'; import Grid from 'material-ui/Grid'; import withWidth from 'material-ui/utils/withWidth'; import Typography from ...
src/screens/Shared/SearchFilterModal.js
alphasp/pxview
/* eslint-disable camelcase */ import React, { Component } from 'react'; import { StyleSheet, View, SafeAreaView } from 'react-native'; import { connect } from 'react-redux'; import qs from 'qs'; import { withTheme, Button } from 'react-native-paper'; import { connectLocalization } from '../../components/Localization'...
vj4/ui/components/react/DomComponent.js
vijos/vj4
import React from 'react'; import PropTypes from 'prop-types'; export default class DomComponent extends React.PureComponent { componentDidMount() { this.refs.dom.appendChild(this.props.childDom); } componentWillUnmount() { $(this.refs.dom).empty(); } render() { const { childDom, .....
client/main.js
manhhailua/meteor-react-mui-starter-app
/* global document */ import { MuiThemeProvider } from 'material-ui/styles'; import { Meteor } from 'meteor/meteor'; import React from 'react'; import { render } from 'react-dom'; import App from '../imports/ui/components/App'; Meteor.startup(() => { render( <MuiThemeProvider> <App /> </MuiThemeProvid...
src/components/CreateUser/index.js
git-okuzenko/react-redux
import React from 'react'; import PropTypes from 'prop-types'; import { Field, reduxForm } from 'redux-form'; import {validate} from '../../utils'; import '../../assets/styles/common/form.scss'; const renderField = (field) => { let {input, label, type, meta: { touched, error }, input: { name }} = field; let rend...
app/javascript/mastodon/features/favourites/index.js
TootCat/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
components/CounterApp/CounterApp.js
thiagodebastos/react-future-stack
// @flow import React from 'react'; import Button from '../Button'; type Props = { counterApp: { count: number }, increment: CounterAction, decrement: CounterAction }; const Counter = (props: Props) => <div> Counter: {props.counterApp.count} <br /> <Button onClick={props.increment} primary> + </...
src/components/BooleanQuestion.js
flexiform/flexiform-fill-ui
/** * Copyright 2016 ReSys OÜ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
app/components/mapMarker/mapMarkerCalloutView.js
UsabilitySoft/Proximater
import React, { Component } from 'react'; import { AppRegistry, Text, View, Image, Button } from 'react-native'; import { styles } from './styles'; export class MapMarkerCalloutView extends Component { render() { return ( <View style={styles.calloutContainer}> <Text style={styles.calloutText...
app/javascript/mastodon/features/ui/components/column.js
tootsuite/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
examples/src/components/RemoteSelectField.js
katienreed/react-select
import React from 'react'; import Select from 'react-select'; var RemoteSelectField = React.createClass({ displayName: 'RemoteSelectField', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, loadOptions (input, callback) { input = input.toLowerCase(); var rtn = { options: [ ...
src/parser/warrior/arms/modules/core/Dots/index.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import StatisticsListBox, { STATISTIC_ORDER } from 'interface/others/StatisticsListBox'; import DeepWoundsUptime from './DeepWoundsUptime'; import RendUptime from './RendUptime'; class DotUptimeStatisticBox extends Analyzer { static dependencies...
packages/datagrid/stories/DynamicDataGrid.component.js
Talend/ui
import React from 'react'; import random from 'lodash/random'; import { IconsProvider } from '@talend/react-components'; import PropTypes from 'prop-types'; import DataGrid from '../src/components'; import serializer from '../src/components/DatasetSerializer'; import sample from './sample.json'; const ADD_ITEMS_NUMBE...
blueocean-material-icons/src/js/components/svg-icons/notification/do-not-disturb-alt.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationDoNotDisturbAlt = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8c-1.8 0-3.5-.6-4.9-1.7L18.3 7.1C1...
boilerplates/app/src/routes/dashboard/components/completed.js
hexagonframework/antd-admin-cli
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' import styles from './completed.less' import { color } from '../../../utils' function Completed ({ data }) { r...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
mattkrick/react-router
import React from 'react' class Assignments extends React.Component { render() { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ) } } module.exports = Assignments
src/components/LikeButton/index.js
khankuan/asset-library-demo
import React from 'react'; import cx from 'classnames'; import Button from '../Button'; import Text from '../Text'; export default class LikeButton extends React.Component { static propTypes = { children: React.PropTypes.node, liked: React.PropTypes.bool, className: React.PropTypes.string, } getCl...
src/ui/components/ReferenceRoute.js
BE-Webdesign/wp-rest-api-reference
/** * External dependecies. */ import React from 'react' /** * Internal dependecies. */ import EndpointsList from './EndpointsList' const ReferenceRoute = ( route ) => ( <div className="reference-route"> <h2 className="reference-route__title">Route: { route.routeName }</h2> <EndpointsList endpoints={ route.e...
src/common/Dialog/DialogContent.js
Syncano/syncano-dashboard
import React from 'react'; export default ({ children }) => ( <div className="col-flex-1"> {children} </div> );
src/components/PageHome.js
dfilipidisz/overwolf-hots-talents
import React from 'react'; class PageHome extends React.Component { render () { return ( <div> page home </div> ); } } export default PageHome;
app/javascript/mastodon/features/ui/components/list_panel.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchLists } from 'mastodon/actions/lists'; import { connect } from 'react-redux'; import { createSelector } from 'rese...
src/svg-icons/navigation/chevron-right.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronRight = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); NavigationChevronRight = pure(NavigationChevronRight); NavigationChevronRigh...
app/components/Icons/index.js
Byte-Code/lm-digital-store-private-test
import React from 'react'; import PropTypes from 'prop-types'; import * as conditions from '../../utils/weatherConditions'; import styles from './styles.css'; function sunShowerIcon() { return ( <div className={styles.icon}> <div className={styles.cloud} /> <div className={styles.sun}> <div ...
src/Parser/Monk/Mistweaver/Modules/Spells/EssenceFont.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parser/Core/Analyzer'; const debug = false; class EssenceFont extends Analyzer { castEF = 0; targetsEF = 0; on_byPlayer_cast(event) { const ...
src/pages/chart/highCharts/HighMoreComponent.js
zuiidea/antd-admin
import React from 'react' import ReactHighcharts from 'react-highcharts' import HighchartsExporting from 'highcharts-exporting' import HighchartsMore from 'highcharts-more' HighchartsMore(ReactHighcharts.Highcharts) HighchartsExporting(ReactHighcharts.Highcharts) const config = { chart: { polar: true, }, xA...
webapp/src/components/Footer/Footer.js
wfriesen/jerryatric
/** * 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, { Component } from 'react'; import s from '....
webpack/containers/Help.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setSteps } from '../actions/tutorial_actions'; import { Button } from 'react-bootstrap'; import InfoModal from '../components/InfoModal'; class Help ...
docs/app/Examples/collections/Grid/Variations/GridExampleRelaxedVery.js
aabustamante/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleRelaxedVery = () => ( <Grid relaxed='very' columns={4}> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> </Grid.Column> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> ...
src/chapters/04-porazdelitve-verjetnosti/03-diskretne-porazdelitve/05-hipergeometrijska-porazdelitev/index.js
medja/ovs-prirocnik
import React from 'react'; import { createChapter } from 'components/chapter'; import Equation from 'components/equation'; import Formula from 'components/formula'; import Chart from 'components/chart'; const title = 'Hipergeomterijska porazdelitev'; function Title(props) { return ( <span> { ...
consoles/my-joy-images/src/mocks/declarative-redux-form.js
yldio/joyent-portal
import React from 'react'; export default ({ children, ...props }) => React.createElement(children, props);
src/Parser/Druid/Restoration/Modules/Features/NaturesEssence.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import Analyzer from 'Parser/Core/Analyzer'; import Wrapper from 'common/Wrapper'; import SPELLS from 'common/SPELLS'; import Combatants from 'Parser/Core/Modules/Combatants'; const HEAL_WINDOW_MS = ...
js/jqwidgets/demos/react/app/grid/columnshierarchy/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { datatype: 'xml', datafields: [ { name: 'SupplierName',...
customView/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
TheKingOfNorway/React-Native
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
react/features/settings/components/web/audio/TestButton.js
jitsi/jitsi-meet
// @flow import React from 'react'; type Props = { /** * Click handler for the button. */ onClick: Function, /** * Keypress handler for the button. */ onKeyPress: Function, }; /** * React {@code Component} representing an button used for testing output sound. * * @returns { R...