path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
Realization/frontend/czechidm-core/src/content/audit/AuditDetailTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from '../../utils'; import { AuditManager } from '../../redux'; const auditManager = new Aud...
app/components/library-location.js
sirbrillig/voyageur-js-client
import React from 'react'; import classNames from 'classnames'; import { DragSource, DropTarget } from 'react-dnd'; import flow from 'lodash.flow'; import { buildTripLocationFromLocation } from 'lib/helpers'; const LibraryLocationControls = ( props ) => { if ( props.location.isLoading ) { return <span className=...
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
nauman-ahmad-qureshi/adsManagement
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
src/app/routes/index.js
skratchdot/react-github-corner
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import App from '../containers/App'; const packageInfo = require('../../../package.json'); // pages import NotFound from '../pages/NotFound'; import Home from '../pages/Home'; import About from '../pages/About'; const routes = ( <Switch> ...
examples/todomvc/index.js
bloodyowl/redux-devtools
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
react/src/components/dashboard/tools/toolsWifToWif.js
pbca26/EasyDEX-GUI
import React from 'react'; import translate from '../../../translate/translate'; import addCoinOptionsCrypto from '../../addcoin/addcoinOptionsCrypto'; import addCoinOptionsAC from '../../addcoin/addcoinOptionsAC'; import Select from 'react-select'; import { triggerToaster, apiToolsBalance, apiToolsBuildUnsigned,...
docs/app/Examples/elements/Input/States/InputExampleLoading.js
vageeshb/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleLoading = () => ( <Input loading icon='user' placeholder='Search...' /> ) export default InputExampleLoading
app/javascript/mastodon/features/ui/util/reduced_motion.js
glitch-soc/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
public/js/cat_source/es6/components/header/cattol/search/Search.js
matecat/MateCat
import React from 'react' import _ from 'lodash' import CattolConstants from '../../../../constants/CatToolConstants' import SegmentStore from '../../../../stores/SegmentStore' import CatToolStore from '../../../../stores/CatToolStore' import SearchUtils from './searchUtils' import SegmentConstants from '../../../../c...
src/js/components/TextInput/stories/Suggestions.js
HewlettPackard/grommet
import React from 'react'; import { Box, Grommet, TextInput } from 'grommet'; import { grommet } from 'grommet/themes'; const allSuggestions = Array(100) .fill() .map((_, i) => `${i + 1} suggestion`); export const Suggestions = () => { const [suggestions, setSuggestions] = React.useState(allSuggestions); con...
src/svg-icons/editor/format-list-numbered.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListNumbered = (props) => ( <SvgIcon {...props}> <path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/...
src/components/ExternalTeaserBlock/index.js
iris-dni/iris-frontend
import React from 'react'; import Heading2 from 'components/Heading2'; import TextCenter from 'components/TextCenter'; import Grid from 'components/Grid'; import GridItem from 'components/GridItem'; import ExternalTeaser from 'components/ExternalTeaser'; import styles from './external-teaser-block.scss'; const Externa...
src/FieldsContainer.js
esbenp/react-native-clean-form
import React from 'react' import styled from 'styled-components/native' const FieldsContainer = styled.View` flex:1; ` export default FieldsContainer
src/components/Background.js
guzmonne/gux-d3-react
import React from 'react' import T from 'prop-types' import {IStyle} from './propTypes.js' class Background extends React.Component { render() { return ( <rect className="rd3__chart-svg-body-bg" width={this.props.width} height={this.props.height} style={this.props.style}/> ) ...
react-youtube-adaptive-loading/src/containers/Trending/Trending.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
src/MessageBox/MessageBox.js
abdurrahmanekr/react-chat-elements
import React, { Component } from 'react'; import './MessageBox.css'; import PhotoMessage from '../PhotoMessage/PhotoMessage'; import FileMessage from '../FileMessage/FileMessage'; import SystemMessage from '../SystemMessage/SystemMessage'; import LocationMessage from '../LocationMessage/LocationMessage'; import Spotif...
app/routes.js
morinted/openrooms
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './containers/App' import NotFoundPage from './containers/NotFoundPage' import RoomPage from './containers/RoomPage' import { urlPrefix } from './constants' export default ( <Route path={urlPrefix} component={ App }> <In...
src/index.js
bryanmartin82/react-starter
import React from 'react'; import { render } from 'react-dom'; import configureStore from './configureStore'; import { AppContainer as HMR } from 'react-hot-loader'; import Immutable from 'immutable'; import Root from './Root'; if (process.env.NODE_ENV !== 'production') { const immutableDevTools = require('immutable...
app/javascript/mastodon/components/poll.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Motion fr...
src/client/react/user/views/Feed/CreateUserStory.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import autobind from 'core-decorators/es/autobind'; import { graphql } from 'react-apollo'; import { Button, Dialog } from '@blueprintjs/core'; import { createUserStory } from '../../../../graphql/story'; @graphql(createUserStory('ok'), { name: 'MutationC...
packages/material-ui-icons/src/Shuffle.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Shuffle = props => <SvgIcon {...props}> <path d="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2....
src/svg-icons/file/folder-open.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderOpen = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/> </SvgIcon> ); FileFolderOpen = pure(F...
js/main.js
merodeadorNocturno/transfer
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import reducers from './reducers'; import getRoutes from './...
imports/ui/components/Cart/CartCommon.js
haraneesh/mydev
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Panel, PanelGroup, Button, } from 'react-bootstrap'; import { formatMoney } from 'accounting-js'; import Product from '../Orders/Product'; import constants from '../../../modules/constants'; import { accountSettings } from '../../../mod...
index.js
erumawan/react-native-floating-label-text-image-input
/** * This is RN package is based on * https://github.com/eyaleizenberg/react-native-floating-label-text-input * main credit goes to https://github.com/eyaleizenberg * @Author: Erum Abid Awan <erumabidawan> * @Date: 2017-01-26T10:33:35+05:00 * @Email: erumawan.21@gmail.com * @Filename: index.js * @Last modified by: ...
src/js/components/header.js
Lurk/blog
import React from 'react'; import LogOut from './LogOut'; import {browserHistory, Link} from 'react-router'; class Home extends React.Component{ constructor(props){ super(props); this.home = this.home.bind(this); } home(){ browserHistory.push('/'); } render(){ ...
src/components/general/Spinner.js
katima-g33k/blu-react-desktop
import React, { Component } from 'react'; import ReactLoading from 'react-loading'; const styles = { spinner: { color: '#7D8364', height: 64, margin: 'auto', width: 64, }, wrapper: { textAlign: 'center', }, }; export default class Spinner extends Component { render() { return ( ...
examples/website/src/components/ASTOutput.js
w-y/ecma262-jison
import PropTypes from 'prop-types'; import React from 'react'; import cx from '../utils/classnames.js'; import visualizations from './visualization'; const {useState} = React; function formatTime(time) { if (!time) { return null; } if (time < 1000) { return `${time}ms`; } return `${(time / 1000).toF...
example5/src/components/SubComponent.js
JoeTheDave/Talk-ReactUpAndRunning
//SubComponent.js import React from 'react'; class SubComponent extends React.Component{ constructor (props) { super(props); } render() { let buttonText = '(' + this.props.text + ')' return ( <button onClick={this.props.handler}>{buttonText}</button> ); } } ...
maodou/customers/client/components/admin/customersList.js
ShannChiang/meteor-react-redux-base
import React, { Component } from 'react'; import {Link} from 'react-router'; import Loading from 'client/components/common/loading'; import moment from 'moment'; export default class CustomersList extends Component { render() { const { data, status } = this.props.customers; return( <div className="admi...
src/AppBundle/Resources/static/jsx/util/form/InputCurrency.js
viszerale-therapie/simple-courses
import React from 'react'; import tl from '../translator'; import InputLabel from './InputLabel'; import InputDefault from './InputDefault'; export default class InputCurrency extends InputDefault { constructor(props) { super(props); this.state = { value: { currencyCode: 'EUR', valu...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js
sThig/jabbascrypt
/** * 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...
src/BasicForm.js
moser-inc/react-json-form
import React from 'react' import omit from 'lodash/omit' import { createForm } from './createForm' export const BasicForm = createForm(props => <form {...omit(props, ['getJson'])} />)
internals/templates/app.js
Jonathan-Steinmann/react-boilerplate-testing
/** * 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...
app/containers/Table/index.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import Pusher from 'pusher-js'; import Raven from 'raven-js'; import { Receipt } from 'poker-helper'; import * as sto...
packages/material-ui-icons/src/StayPrimaryLandscape.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let StayPrimaryLandscape = props => <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z" /> </SvgIcon>; StayPrimaryLandscape ...
node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.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 ArrowDownwardIcon from '../internal/svg-icons/ArrowDownward'; import withStyles fro...
node_modules/react-bootstrap/es/FormControlFeedback.js
acalabano/get-committed
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-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/Unit/Unit.stories.js
wfp/ui
import React from 'react'; import markdown from './README.mdx'; import Unit from '.'; import Table from '../Table'; import Text from '../Text'; export default { title: 'Components/Content Related/Unit', component: Unit, parameters: { componentSubtitle: 'Component', status: 'released', mdx: markdown, ...
src/parser/warrior/arms/CONFIG.js
fyruna/WoWAnalyzer
import React from 'react'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; import { Matardarix } from '../../../CONTRIBUTORS'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If some...
src/fields/Input.js
111StudioKK/react-simpleform
import React from 'react'; import Field from '../main/Field.js'; export default class Input extends Field { componentDidMount() { if (this.props.type === 'number' && this.props.value) { this.onChange(parseInt(this.props.value)); } else { this.onChange(this.props.value || ''); } } re...
app/javascript/mastodon/features/reblogs/index.js
summoners-riftodon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs ...
WasteApp/js/components/icon/index.js
airien/workbits
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, View } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; class NHForm extends Component { // eslint-disable-line static pr...
src/browser/ticket/components/Events/EventsNav.js
glaserp/Maturita-Project
import Component from 'react-pure-render/component' import React from 'react' export default class EventsNav extends Component { constructor(props) { super(props) } render() { return ( <nav className="main-nav"> <ul> <li className="active"><a>Vše</a></li> <li><a>Konce...
src/svg-icons/image/photo.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePhoto = p...
actor-apps/app-web/src/app/components/Login.react.js
zwensoft/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import Banner from 'components/common/Banner.react'; import LoginActionCreators from 'actions/LoginActionCreators'; import...
node_modules/react-router/es/RouterContext.js
vallihe/wizarddemo
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; }; var _typeof = typeof Symbol === "function" && typeof Symbol.i...
admin/client/Signin/components/Alert.js
rafmsou/keystone
/** * Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set * the signedOut prop to true to show the standard signed out message */ import React from 'react'; import { Alert } from '../../App/elemental'; const AlertView = function (props) { if (props.isInvalid) { return <Alert key="error" c...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
cro55er/yogaTest
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
imports/ui/components/EditPaper/EditPaper.js
jamiebones/Journal_Publication
/* eslint-disable */ import React from 'react'; import PropTypes from 'prop-types'; import { Meteor } from 'meteor/meteor'; import { Link } from 'react-router'; import { Bert } from 'meteor/themeteorchef:bert'; import { withTracker } from 'meteor/react-meteor-data'; import {_} from 'meteor/underscore'; import Loading f...
src/svg-icons/editor/format-align-justify.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignJustify = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignJustify = pure(EditorFormatAl...
node_modules/recharts/demo/component/Pie.js
SerendpityZOEY/Fixr-RelevantCodeSearch
import React from 'react'; import { Surface, Pie } from 'recharts'; const data = [ { name: 'iphone4', value: 120, fill: '#ff7300' }, { name: 'iphone4s', value: 500, fill: '#e5671a' }, { name: 'iphone5', value: 600, fill: '#907213' } ]; export default React.createClass({ displayName: 'PieDemo', render () { ...
src/svg-icons/notification/priority-high.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPriorityHigh = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="19" r="2"/><path d="M10 3h4v12h-4z"/> </SvgIcon> ); NotificationPriorityHigh = pure(NotificationPriorityHigh); NotificationPrio...
app/jsx/shared/EmptyDesert.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
components/Navigation/Navigation.js
jordansissel/react-playground
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ /* Changes copyright (c) Jordan Sissel */ import './Navigation.scss'; import Link from '../Link'; import AppBar from 'material-ui/lib/app-bar'; import LeftNav from 'mat...
src/components/common/messages/transport.js
transitlinks/web-app
import React from 'react'; import { defineMessages } from 'react-intl'; export default defineMessages({ 'bus': { id: 'transport.bus', defaultMessage: 'Bus', description: 'Bus' }, 'car': { id: 'transport.car', defaultMessage: 'Car', description: 'Car' }, 'taxi': { id: 'transport.ta...
client/src/app/components/ui/RFLabel.js
zraees/sms-project
import React from 'react' import classNames from 'classnames' import Msg from '../i18n/Msg' import LanguageStore from '../i18n/LanguageStore' const RFLabel = ({input, label, className, type, disabled, readOnly}) => ( <input {...input} type={type} className="" c...
src/components/common/svg-icons/content/add-circle.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircle = (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 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/> </SvgIcon> ); ContentAddCircle = pure(Cont...
src/CarouselItem.js
modulexcite/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...
src/components/icons/CompanyIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const CompanyIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M18,15H16V17H18M18,11H16V13H18M20,19H12V17H14V15H12V13H14V11H12V9H20M10,7H8V5H10M10,11H8V9H10M10,15H8V13H1...
app/javascript/mastodon/features/compose/components/compose_dropdown.js
cybrespace/mastodon
// Package imports // import React from 'react'; import PropTypes from 'prop-types'; // Mastodon imports // import IconButton from '../../../components/icon_button'; const iconStyle = { height : null, lineHeight : '27px', }; export default class ComposeDropdown extends React.PureComponent { ...
src/index.js
zednis/parsnip
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import tasksReducer from './reducers' import './index.css'; import App from './App'; import registerServiceWorker from './registerS...
src/components/pages/Admin/Contents/AdminContents.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; import connectToStores from 'fluxible-addons-react/connectToStores'; import {FormattedMessage} from 'react-intl'; import {Link} from 'react-router'; // Flux import ContentsAddStore from '../../../../stores/Contents/ContentsAddStore'; import ContentsListStore from '../../.....
react/features/settings/components/web/audio/Meter.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { Icon, IconMeter } from '../../../../base/icons'; type Props = { /** * Own class name for the component. */ className: string, /** * Flag indicating whether the component is greyed out/disabled. */ isDisabled?: boolean, /** *...
demo/grid/grid.js
eferte/react-mdl-1
import React from 'react'; import Grid, { Cell } from '../../src/Grid'; class Demo extends React.Component { render() { return ( <div style={{width: '80%', margin: 'auto'}}> <Grid className="demo-grid-ruler"> <Cell col={1}>1</Cell> <Cell ...
webapp-src/src/Modal/ModalMedia.js
babelouest/taliesin
import React, { Component } from 'react'; import { Modal, Row, Col, Image, Button, ButtonGroup, DropdownButton, MenuItem } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import StateStore from '../lib/StateStore'; import i18n from '../lib/i18n'; import ModalManage from '../Modal/ModalManage'; cl...
packages/cf-component-form/example/basic/component.js
mdno/mdno.github.io
import React from 'react'; import { Form, FormHeader, FormFooter, FormFieldset, FormLabel, FormFieldError } from 'cf-component-form'; import { Flex, FlexItem } from 'cf-component-flex'; import { Input } from 'cf-component-input'; import Select from 'cf-component-select'; import { Textarea } from 'cf-compone...
src/Spinner/index.js
aspyrx/audiovisual
/** * Loading spinner React component. * * @module src/Spinner */ import React from 'react'; import styles from './index.less'; /** * The spinner component. * * @returns {ReactElement} The rendered spinner. */ export default function Spinner() { return <div className={styles.spinner} />; }
Intermediate Front End Development Projects/wikipedia-viewer/src/index.js
shashank7200/FreeCodeCamp-Projects
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
step6-serviceapi/node_modules/react-router/modules/RouteUtils.js
jintoppy/react-training
import React from 'react' import warning from './routerWarning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componen...
packages/mineral-ui-icons/src/IconDeviceHub.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 IconDeviceHub(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsInline.js
claudiopro/flow
// @flow import React from 'react'; class MyComponent extends React.Component { props: {a: number, b: number, c: number}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { props: {a: number, b: numbe...
src/components/common/indicators/Badge.js
ESTEBANMURUZABAL/bananaStore
/** * Imports */ import React from 'react'; /** * Component */ class Badge extends React.Component { //*** Component Lifecycle ***// componentDidMount() { // Component styles require('./Badge.scss'); } //*** Template ***// render() { return ( <div classN...
admin/frontend/pages/emails/reset.js
latteware/marble-seed
import React from 'react' import PageComponent from '~base/page-component' import storage from '~base/storage' import tree from '~core/tree' import api from '~base/api' import {forcePublic} from '~base/middlewares/' import MarbleForm from '~base/components/marble-form' const schema = { 'password_1': { 'widget'...
src/utils/defaultFormObject.js
KonstantinKo/rform
import FormObject from '../object/FormObject' import compact from 'lodash/compact' import flatten from 'lodash/flatten' import React from 'react' export default function defaultFormObject(model, children) { const properties = collectPropertiesFromAllChildren(children) let formObject = class DefaultFormObject exte...
client/views/directory/TeamsTab.js
VoiSmart/Rocket.Chat
import React from 'react'; import NotAuthorizedPage from '../../components/NotAuthorizedPage'; import { usePermission } from '../../contexts/AuthorizationContext'; import TeamsTable from './TeamsTable'; function TeamsTab(props) { const canViewPublicRooms = usePermission('view-c-room'); if (canViewPublicRooms) { ...
fields/components/Checkbox.js
matthieugayon/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import { darken, fade } from '../../admin/client/utils/color'; import E from '../../admin/client/constants'; var Checkbox = React.createClass({ displayName: 'Checkbox', propTypes: { checked: React.PropTypes.bool, c...
js/jqwidgets/demos/react/app/layout/fluidsize/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxLayout from '../../../jqwidgets-react/react_jqxlayout.js'; class App extends React.Component { render() { let layout = [{ type: 'layoutGroup', orientation: 'horizontal', items: [{ typ...
frontend/src/archive/components/stencil-archive/index.js
OptimusCrime/youkok2
import React from 'react'; import {randomBetween} from "../../../common/utils"; export const StencilArchiveTitle = () => <div className="stencil-archive__title"/>; export const StencilArchiveList = ({ size }) => { const range = [...Array(size).keys()]; return ( <React.Fragment> {range.map(key => ...
src/scripts/base/P.js
ButuzGOL/constructor
import React from 'react'; import Radium from 'radium'; import variables from '../styles/variables'; @Radium export default class P extends React.Component { getStyles() { return { margin: `0 0 ${variables.baseMarginVertical} 0`, marginTop: variables.baseMarginVertical }; } render() { ...
src/js/components/video/FullscreenButton.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Intl from '../../utils/Intl'; import CSSClassnames from '../../utils/CSSClassnames'; import Button from '../Button'; import ExpandIcon from '../icons/base/Expand'; ...
src/parser/warrior/fury/CHANGELOG.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Eylwen, Zerotorescue, Abelito75 } from 'CONTRIBUTORS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { change, date } from 'common/changelog'; export default [ change(date(2020, 3, 27), <>Removed Frothing Berserker suggestion.</>, Abelito75)...
packages/material-ui-icons/src/Spa.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Spa = props => <SvgIcon {...props}> <path d="M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61zm10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64z" /><path d="M15.49 9.63c-.1...
entry.js
bchoe/React-Kanban
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import configureStore from './configureStore'; import { Provider } from 'react-redux'; const store = configureStore(); ReactDOM.render( <Provider store={store} > <App /> </Provider>, document.getElementById('root') );
docs/server.js
victorzhang17/react-bootstrap
/* eslint no-console: 0 */ import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development =...
src/index.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import ReactDOM from 'react-dom'; import ReactDOMServer from 'react-dom/server'; import { AppContainer } from 'react-hot-loader'; import { match, RouterContext, useRouterHistory } from 'react-router'; import { createMemoryH...
examples/01 Dustbin/Multiple Targets/index.js
nickknw/react-dnd
import React from 'react'; import Container from './Container'; export default class DustbinMultipleTargets { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the Source</a></b> </p> ...
tp-3/recursos/react-slingshot/src/components/pages/about/AboutPage.js
solp/sovos-reactivo-2017
import React from 'react'; // Since this component is simple and static, there's no parent container for it. const AboutPage = () => { return ( <div> <h2 className="alt-header">About Me</h2> <p> Aqui van a poner una pagina relacionada a usted... veamos si hacen algo decente con el disenio... ...
app/pages/search/controls/SelectControl.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React from 'react'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Select from 'react-select'; import isArray from 'lodash/isArray'; import classNames from 'classnames'; import injectT from '../../../...
stories/alignment/src/colorBlockPlugin.js
nikgraf/draft-js-plugin-editor
import React from 'react'; const ColorBlock = React.forwardRef( ( { block, // eslint-disable-line no-unused-vars blockProps, // eslint-disable-line no-unused-vars customStyleMap, // eslint-disable-line no-unused-vars customStyleFn, // eslint-disable-line no-unused-vars decorator, //...
docs/src/app/components/pages/components/Card/ExampleWithAvatar.js
kasra-co/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleWithAvatar = () => ( <Card> <CardHeader title="URL Avatar" subtitle="Subtitle" avatar="images/jsa-128.jpg"...
src/components/referrals/ReferralPage.js
GHImplementationTeam/FrontEnd
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { bindActionCreators } from 'redux'; import { ACTIONS } from '../../Setup'; import PageBase from '../base/PageBase'; import ReferralTable from './ReferralTable'; class...
docs/src/app/components/pages/components/Paper/Page.js
pradel/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import paperReadmeText from './README'; import PaperExampleSimple from './Exampl...
src/parser/monk/brewmaster/modules/features/checklist/Module.js
FaideWW/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist2/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist2/PreparationRuleAnalyzer'; import IronSkinBrew from '../../spells/Ir...
Website/src/components/Header/Header.js
ameyjain/WallE-
import React, { Component } from 'react'; import { connect } from 'react-redux' export default class Header extends Component { render() { return ( <section id="banner"> <div className="inner"> <div className="logo"><span className="icon fa-diamond"></span></div> <h...
src/Parser/Druid/Balance/Modules/Features/StellarFlareUptime.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Sta...
src/components/WaitList/index.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { useVirtual } from 'react-virtual'; import ModRow from './ModRow'; import SimpleRow from './SimpleRow'; const { useRef, } = React; function estimateSize() { return 40; } function WaitList({ className, users, onMov...
frontend/src/components/icons/Download.js
webrecorder/webrecorder
import React from 'react'; function Download() { return ( <svg width="8px" height="8px" viewBox="0 0 21 21" version="1.1" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"> <g transform="translate(-258.000000, -35.000000)" fill="#7B7B7B"> ...
src/Parser/Core/Modules/DeathTracker.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatNumber, formatMilliseconds, formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; const debug = true; class DeathTracker extends Analyzer { static d...
pootle/static/js/shared/mixins/FormValidationMixin.js
phlax/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. */ import React from 'react'; // eslint-disable-line no-unus...