path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/digger-tree-sections/frontend/src/booking/index.js
binocarlos/templatestack
import React from 'react' import { render } from 'react-dom' import { routerForBrowser } from 'redux-little-router' import RootFactory from 'template-ui/lib/containers/Root' import configureStore from 'template-ui/lib/store/configureStore' import rootSaga from './sagas' import { routeConfig, routes } from './routes' im...
frontend/src/Components/Link/SpinnerButton.js
Radarr/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Icon from 'Components/Icon'; import { icons } from 'Helpers/Props'; import Button from './Button'; import styles from './SpinnerButton.css'; function SpinnerButton(props) { const { className, isSpinning...
definitions/npm/react-navigation_v1.x.x/test_react-navigation.js
doberkofler/flow-typed
// @flow import type { NavigationScreenProp, } from 'react-navigation'; import { TabNavigator, StackNavigator, DrawerNavigator, } from 'react-navigation'; import React from 'react'; /** * Screens */ const FunctionalScreenComponent = ( { navigation }: { navigation: NavigationScreenProp<*> }, ) => { ret...
src/svg-icons/editor/border-all.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderAll = (props) => ( <SvgIcon {...props}> <path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/> </SvgIcon> ); EditorBorderAll = pure(EditorBorderAll); EditorBorderAll....
examples/builder/FormBuilder.js
davidkpiano/react-redux-form
import React from 'react'; import { Field, Control, Form, actions, track, } from 'react-redux-form'; import { connect } from 'react-redux'; import uniqueId from 'lodash/uniqueId'; import get from 'lodash/get'; const controlMap = { text: <input type="text" /> }; const createField = () => ({ id: uniqueId(...
fields/types/text/TextColumn.js
rafmsou/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var TextColumn = React.createClass({ displayName: 'TextColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, linkTo: React.PropType...
admin/client/App/screens/List/components/ListColumnsForm.js
dryna/keystone-twoje-urodziny
import React from 'react'; import assign from 'object-assign'; import Popout from '../../../shared/Popout'; import PopoutList from '../../../shared/Popout/PopoutList'; import { FormInput } from '../../../elemental'; import ListHeaderButton from './ListHeaderButton'; import { setActiveColumns } from '../actions'; var...
src/scripts/GroupViewer.js
lixmal/keepass4web
import React from 'react' import Classnames from 'classnames' export default class GroupViewer extends React.Component { constructor(props) { super(props) } getIcon(element) { var icon = null if (element.custom_icon_uuid) icon = <img className="kp-icon" src={'img/icon/'...
blueprints/route/files/src/routes/__name__/components/__name__.js
ksevezich/DayOfBlueprint
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h4><%= pascalEntityName %></h4> </div> ) export default <%= pascalEntityName %>
pages/about.js
ieugen/reactjs-universal-demo
"use strict"; import React from 'react' import Layout from './layout' export default class IndexPage extends React.Component { render() { return ( <Layout title={this.props.title} > <h1> Despre mine </h1> <p> Sunt consultant IT, trainer pe t...
app/containers/DetailPanel.js
transparantnederland/relationizer
import React from 'react'; import { connect } from 'react-redux'; import api from '../utils/api'; import admin from '../utils/admin'; import ConceptDropTarget from '../components/ConceptDropTarget'; import Detail from '../components/Detail'; function loadData(props) { const { id } = props; if (id) { props.d...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/MenuItem.js
Akkuma/npm-cache-benchmark
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 ...
frontend/app/site/pages/Styles/BlockQuote.js
briancappello/flask-react-spa
import React from 'react' import { DocComponent } from 'components' export default class BlockQuote extends DocComponent { title = 'Block Quotes' html = `\ <blockquote> Success consists of going from failure to failure without loosing enthusiasm. <cite>Winston Churchill</cite> </blockquote> ` }
src/components/UIShell/SideNavDetails.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { settings } from 'carbon-components'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; co...
react-simple-starter/src/components/app.js
majalcmaj/ReactJSCourse
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div>React simple starter</div> ); } }
Tutorial/js/project/2.MeiTuan/Component/Mine/XMGMineMiddleView.js
onezens/react-native-repo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableOpacity } from 'react-native'; /**-------导入外部的json数据-------***/ var MiddleData = require('./MiddleData...
react/features/base/react/components/native/ForwardButton.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { Text, TouchableOpacity } from 'react-native'; import { ColorSchemeRegistry } from '../../../color-scheme'; import { translate } from '../../../i18n'; import { connect } from '../../../redux'; /** * The type of the React {@code Component} props of {@link Fo...
app/js/pages/joinPage.js
Dennetix/Motwo
import React from 'react'; import autobind from 'autobind-decorator'; import { observer } from 'mobx-react'; import chat from '../utils/chat'; import utils from '../utils/utils'; import locale from '../utils/locale'; import { setSettingsProp } from '../utils/settings' import FormMessage from '../components/ui/formMess...
archimate-frontend/src/main/javascript/components/view/edges/view/viewConnection.js
zhuj/mentha-web-archimate
import React from 'react' import { ViewLinkWidget } from '../BaseLinkWidget' export const TYPE='viewConnection'; export class ViewConnectionWidget extends ViewLinkWidget { getClassName(link) { return 'viewConnection'; } }
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
picter/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function* load(limit) { let i = 1; while (i <= limit)...
src/components/movies/MoviePoster.js
santhoshthepro/redux-movies-app
import React, { Component } from 'react'; import { Link } from 'react-router'; import MovieBox from '../movies/MovieBox'; export default class MoviePoster extends Component{ constructor(props){ super(props); //Here is where you initialize state this.state ={ movies: [ {key:'1', title: 'Kabali',des...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupColored.js
ben174/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroupColored = () => ( <Button.Group color='blue'> <Button>One</Button> <Button>Two</Button> <Button>Three</Button> </Button.Group> ) export default ButtonExampleGroupColored
src/components/root/Root.js
Syferpan/adams
import React from 'react' import PropTypes from 'prop-types' import { Provider } from 'react-redux' import createBrowserHistory from '../../services/history/history' import { Router, Route } from 'react-router-dom' import App from '../app/App' const Root = ({ store }) => ( <Provider store={store}> <Router ...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
damoguyan8844/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import { MessageContentTypes } from 'constants/ActorAppConstants'; import MessageActionCreators from 'actions/MessageActionCreators'; ...
src/Explorer.js
BenjaminCosman/alchemistsSolver
import {worldWeight, partitionWeight} from './Logic.js' import {toPercentageString} from './Misc.js' import React from 'react' import _ from 'lodash' import Button from 'antd/lib/button' function countWorlds(worlds) { return _.sumBy(worlds, world => world.golemMaps.length) } function updatePartitions(partitions...
fields/types/color/ColorColumn.js
vokal/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var ColorColumn = React.createClass({ displayName: 'ColorColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
src/components/misc/loader-segment.js
scholtzm/arnold
import React from 'react'; import { Segment, Loader, Image } from 'semantic-ui-react'; import shortParagraph from '../../static/image/short-paragraph.png'; import longParagraph from '../../static/image/long-paragraph.png'; const LoaderSegment = (props) => { const { size } = props; let image; switch(size) { ...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
winiceo/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ActorClient from 'utils/ActorClien...
app/index.js
hisaksen/weather-app
import React from 'react'; import { render } from 'react-dom'; import ReactDOM from 'react-dom'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Routers from './config/router'; //Material-ui requires muiThemeProvider wrapped around the components(inside routers) const App = () => ( <MuiTh...
console-ui/src/components/BatchHandle/BatchHandle.js
alibaba/nacos
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
app/components/MenuBar/index.js
Coding/WebIDE-Frontend
import React from 'react' import { observer } from 'mobx-react' import MenuBar from './MenuBar' import menuBarItems from './menuBarItems' import state from './state' const MenuBarContainer = observer((() => <MenuBar items={state.items} />)) export default MenuBarContainer export { menuBarItems }
app/javascript/mastodon/features/compose/components/search_results.js
rekif/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/sta...
src/components/custom-components/TrackList/TrackItem.js
ArtyomVolkov/music-search
import React from 'react'; import { connect } from 'react-redux'; // M-UI components import { IconMenu, MenuItem, IconButton, CircularProgress, Divider } from 'material-ui'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import { ListItem } from 'material-ui/List'; // Services import TRACK_ACTIO...
file-browser-ui/dev/js/components/profile/profile.js
CloudBoost/cloudboost
import React from 'react'; import {connect} from 'react-redux'; import {saveUserImage, deleteUserImage, showAlert, updateUser} from '../../actions'; import ChangeField from './ChangeField'; import FlatButton from 'material-ui/FlatButton'; import ReactTooltip from 'react-tooltip'; import Dialog from 'material-ui/Dialog...
src/components/place-component.js
havok2905/react-night-entry
import React from 'react'; import Map from './map-component'; class Place extends React.Component { constructor() { super(); } cover() { return `http://quiet-thicket-99975.herokuapp.com/assets/${this.props.place.cover}`; } render() { return ( <div> <img src={ this.cover() } alt={...
assets/node_modules/react-router/es6/RoutingContext.js
janta-devs/janta
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
src/components/pages/NotFoundPage/index.js
SIB-Colombia/dataportal_v2_frontend
import React from 'react' import { PageTemplate, Header, Footer, Heading } from 'components' const NotFoundPage = () => { return ( <PageTemplate header={<Header />} footer={<Footer />}> <Heading>404 Not Found</Heading> </PageTemplate> ) } export default NotFoundPage
app/component/game-cell.js
dazorni/9tac
import React from 'react'; class GameCell extends React.Component { render() { return ( <div onClick={this._onClick.bind(this)} className={this._getClassName()} data-position={this.props.position}> <div className="content"></div> </div> ) } _getClassName() { let className = 'game...
docs/app/Examples/elements/Icon/Variations/IconExampleRotated.js
clemensw/stardust
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleRotated = () => ( <div> <Icon rotated='clockwise' name='cloud' /> <Icon rotated='counterclockwise' name='cloud' /> </div> ) export default IconExampleRotated
app/share/containers/ShareAppPage/HongbaoTitle.js
Princess310/antd-demo
import React from 'react'; import { getHongbaoInfo } from 'utils/utils'; import FlexCenter from 'components/FlexCenter'; import img from 'assets/images/share-hongbao.png'; function HongbaoTitle(props) { const hongbaoInfo = getHongbaoInfo(); return ( <FlexCenter style={{ height: '1.4rem' }}> <img src={im...
app/components/distance-number.js
sirbrillig/voyageur-js-client
import React from 'react'; import AnimateOnChange from 'react-animate-on-change'; const DistanceNumber = ( props ) => { const meters = props.meters; if ( meters === null ) return <span>Loading...</span>; const miles = ( meters * 0.000621371192 ).toFixed( 1 ); const km = ( meters / 1000 ).toFixed( 1 ); const ...
examples/with-overmind/components/Items.js
flybayer/next.js
import React from 'react' import { useOvermind } from '../overmind' function Items() { const { state } = useOvermind() return ( <ul> {state.items.map((item) => ( <li key={item.id}>{item.title}</li> ))} </ul> ) } export default Items
game-of-life-react-parcel/src/App.js
LandRover/kata
import React, { Component } from 'react'; import GameOfLife from './GameOfLife'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <h1>Conway's Game of Life</h1> <GameOfLife /> </div> ); } } export default App;
app/react-native/index.ios.js
sping/abcd-epic-fussball
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import App from './app/app'; AppRegistry.registerComponent('MeetupReactNative', () => App);
src/Toolbar/ToolbarRow.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const ROOT = 'mdc-toolbar__row'; class ToolbarRow extends React.PureComponent { static propTypes = { className: PropTypes.string, children: PropTypes.node, onHeight: PropTypes.func, }; render() { ...
packages/vulcan-i18n/lib/modules/provider.js
acidsound/Telescope
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getSetting, Strings } from 'meteor/vulcan:lib'; import { intlShape } from './shape.js'; export default class IntlProvider extends Component{ constructor(){ super(); this.formatMessage = this.formatMessage.bind(this); ...
MobileApp/node_modules/react-native-elements/example/src/drawer/home.js
VowelWeb/CoinTradePros.com
import Expo from 'expo'; import React from 'react'; import { TabNavigator } from 'react-navigation'; import { Icon } from 'react-native-elements'; import ButtonsTab from '../tabs/buttons'; import ListsTab from '../tabs/lists'; import FormsTab from '../tabs/forms'; import FontsTab from '../tabs/fonts'; const Home = Ta...
stories/components/quoteBanner/index.js
NestorSegura/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import QuoteBanner from 'shared/components/quoteBanner/quoteBanner'; storiesOf('shared/components/quoteBanner', module) .add('Default', () => ( <QuoteBanner author="James bond" quote="I always enjoyed learning a new tongue" ...
lib/components/atoms/button.js
adjohnston/redux-counter-example
import React from 'react'; class Button extends React.Component { render() { const { onClick, text } = this.props; return ( <button onClick={onClick}> {text} </button> ) } } export default Button;
ui/src/components/EditableCell.js
untoldwind/eightyish
import React from 'react' import shallowEqual from '../util/shallowEqual' export default class EditableCell extends React.Component { static propTypes = { activeClassName: React.PropTypes.string, className: React.PropTypes.string, id: React.PropTypes.string, onChange: React.PropTyp...
src/components/utils/decorators/SubscriptDecorator.js
tsaiDavid/react-rich-text-editor
import React from 'react'; export const Subscript = (props) => { return ( <span> <sub> {props.children} </sub> </span> ); };
src/index.js
flucivja/meteostation
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/svg-icons/editor/format-indent-increase.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatIndentIncrease = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/> </SvgIcon> ); EditorFormatIndentIncrease...
components/drawer/Drawer.js
react-toolbox/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import Portal from '../hoc/Portal'; import { DRAWER } from '../identifiers'; import ActivableRenderer from '../hoc/ActivableRenderer'; import InjectOverlay from '../overlay/Overla...
web/src/js/components/Settings/Widgets/WidgetSettingsComponent.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import Toggle from 'material-ui/Toggle' import WidgetConfig from 'js/components/Settings/Widgets/WidgetConfigComponent' import { Card, CardHeader, CardText } from 'material-ui/Card' import { cardHeaderTitleStyle } from 'js/theme/default' import { getWidgetIco...
src/documentation/Accessibility-story.js
wfp/ui
/* eslint-disable no-console */ import React from 'react'; import { storiesOf } from '@storybook/react'; import Link from '../components/Link'; import Page from './Page'; storiesOf('Getting started|Getting started', module) .addParameters({ options: { showPanel: false, isToolshown: false, sort: 'zz' }, }) ....
src/neuralNetwork/infoButtons/OutputLayerInfo.js
csenn/nn-visualizer
import React from 'react'; import InfoButtonTemplate from './InfoButtonTemplate'; export default class InfoButtons extends React.Component { _renderContent() { return ( <div> <p> The output layer is the last layer in a neural network. When a network is being used for classificat...
src/give/RecentArticles.js
NewSpring/Apollos
import React from 'react'; import TaggedContent from '@ui/TaggedContent'; const RecentArticles = () => ( <TaggedContent tagName="giving" sectionTitle="Recent articles about giving" /> ); export default RecentArticles;
frontend/src/components/courses/lessons/LessonsList.js
technoboom/it-academy
import React from 'react'; class LessonsList extends React.Component { render() { return ( <div>lessons list should be here</div> ) } } export default LessonsList;
src/components/Home/Banner/index.js
LifeSourceUA/lifesource.ua
/** * [IL] * Library Import */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; /** * [IV] * View Import */ import Mobile from './Views/Mobile'; import Desktop from './Views/Desktop'; /** * [IBP] * Breakpoints */ import BP from 'lib/breakpoi...
web/src/components/loadingoverlay.js
corradio/electricitymap
import React from 'react'; import styled from 'styled-components'; import { CSSTransition } from 'react-transition-group'; const Overlay = styled.div` background-image: url(${resolvePath('images/loading/loading64_FA.gif')}), url(${resolvePath('images/loading/electricitymap-text.svg')}); background-position...
src/components/awesome-ones/app-bar.js
stefanosKarantin/stefanos-react-prj
import React from 'react' import AppBar from 'material-ui/AppBar' import MenuItem from 'material-ui/MenuItem/MenuItem'; import DropDownMenu from 'material-ui/DropDownMenu'; export class AppBarExample extends React.Component{ constructor(props) { super(props); this.state = {value: 0}; } handleChange = (eve...
src/components/AthletePreview.js
Arunvirat/Logi-heroes
'use strict'; import React from 'react'; import { Link } from 'react-router'; export default class AthletePreview extends React.Component { calculateTotalPoints() { var totalpoints =0; var myGameRows =this.props.medals; if(myGameRows.length>0) { for(var s=0;s<myGameRows.length; s++) { ...
app/routes.js
thereactleague/galaxy
import React from 'react'; import {Router, Route, hashHistory, IndexRoute} from 'react-router' import App from './components/App'; import LoginContainer from './containers/LoginContainer'; import HomeContainer from './containers/HomeContainer'; const First = () => ( <div>{"First"}</div> ); const Second = () => (...
src/svg-icons/action/grade.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGrade = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ActionGrade = pure(ActionGrade); ActionGrade....
frontend/components/SignalPicker.js
heekzz/PowerHour
/** * Created by Fredrik on 2017-06-08. */ import React from 'react'; import {Grid, Row, Col, Button, Panel} from 'react-bootstrap'; import sounds from '../data/drinkSounds'; import { Howl } from 'howler' export default class SignalPicker extends React.Component { constructor(props) { super(props); ...
src/components/CreateResetPassword/components/PasswordValidationField/PasswordValidationField.js
folio-org/stripes-core
/* eslint-disable consistent-return */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { Field } from 'redux-form'; import isEmpty from 'lodash/isEmpty'; import { TextField } from '@folio/stripes-components'; import omitProps from '@folio/stripes-com...
packages/stockflux-container/src/index.js
owennw/OpenFinD3FC
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register() below. Note this come...
Realization/frontend/czechidm-core/src/redux/flash/FlashMessagesManager.js
bcvsolutions/CzechIdMng
import React from 'react'; import _ from 'lodash'; import { push } from 'connected-react-router'; import sha256 from 'js-sha256'; // api import { LocalizationService, AuthenticateService } from '../../services'; /* * action types */ export const ADD_MESSAGE = 'ADD_MESSAGE'; export const HIDE_MESSAGE = 'HIDE_MESSAGE...
webapp/components/PortalPopover/OverlayTrigger.js
raksuns/universal-iraks
import React from 'react'; import { uniqueId } from './utils'; class OverlayTrigger extends React.Component { constructor(props) { super(props); this.state = { open: false, id: uniqueId(), }; this.toggleOverlay = this.toggleOverlay.bind(this); this.onClose = this.onClose.bind(this); this.addCloseHan...
src/ButtonToolbar.js
RichardLitt/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); ...
client/src/app/components/ui/RFFileUpload.js
zraees/sms-project
import React from 'react' import classNames from 'classnames' import Msg from '../i18n/Msg' import LanguageStore from '../i18n/LanguageStore' import Dropzone from 'react-dropzone'; const RFFileUpload = (field) => { const files = field.input.value; const phrase = LanguageStore.getData().phrases["image preview"] ||...
admin/client/App/elemental/DropdownButton/index.js
matthewstyers/keystone
/* eslint quote-props: ["error", "as-needed"] */ import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; import Button from '../Button'; function DropdownButton ({ children, ...props }) { return ( <Button {...props}> {children} <span className={css(classes.arrow)} /> </Button> ...
components/input/Input.js
jasonleibowitz/react-toolbox
import React from 'react'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { INPUT } from '../identifiers.js'; import InjectedFontIcon from '../font_icon/FontIcon.js'; const factory = (FontIcon) => { class Input extends React.Component { static propTypes = { children: R...
src/components/navigation_item.js
tmcw/docbox
import React from 'react'; import PropTypes from 'prop-types'; export default class NavigationItem extends React.PureComponent { static propTypes = { sectionName: PropTypes.string.isRequired, active: PropTypes.bool.isRequired, onClick: PropTypes.func.isRequired, href: PropTypes.string.isRequired } ...
src/components/Feedback/Feedback.js
pandoraui/react-starter
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
src/common/components/popover/index.js
canonical-websites/build.snapcraft.io
import PropTypes from 'prop-types'; import React from 'react'; import styles from './popover.css'; const Popover = (props) => { return ( <div className={styles.popover} style={{ top: `${props.top}px`, left:`${props.left}px` }} onClick={props.onClick} > {props.children} </div> )...
examples/fluxible-router/app.js
pablolmiranda/fluxible
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import Fluxible from 'fluxible'; import Application from './components/Application'; import RouteStore from './stores/RouteStore'; import ApplicationStore from...
src/App.js
loftywaif002/folder-explorer
import React, { Component } from 'react'; import FolderComponent from './Components/FolderComponent'; import FileComponent from './Components/FileComponent'; import FolderTree from './Components/FolderTree'; import styles from './Components/folderTreeCSS.css'; const testData = { "id": 1, "filename": "All Categori...
app/components/IssueIcon/index.js
dbrelovsky/react-boilerplate
import React from 'react' function IssueIcon (props) { return ( <svg height='1em' width='0.875em' className={props.className} > <path d='M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
app/components/HomeNav.js
Strive22/Hunt
import React from 'react'; import { Grid, Row, Col, Button } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import EnterJob from './EnterJob'; import SearchNewJobs from './SearchNewJobs' export default (props) => { return ( <Grid> <Row> <Col md={4}> <div...
Paths/React/05.Building Scalable React Apps/7-react-boilerplate-building-scalable-apps-m7-exercise-files/After/app/components/Link/index.js
phiratio/Pluralsight-materials
/** * * Link * */ import React from 'react'; import styles from './styles.css'; function Link({ link }) { return ( <div className={styles.link}> <div className={styles.votingContainer} > <div className={styles.votingCount} > {link.voteCount} </di...
app/src/components/Chat/Message.js
RekkyRek/tic
import '../../assets/css/Chat/Message.sass'; import React, { Component } from 'react'; import twemoji from 'twemoji'; import emoji from 'node-emoji'; import * as Helpers from '../Utils/Helpers'; const fs = require('fs'); const mime = require('mime'); class Message extends React.Component { constructor(props) { ...
packages/icons/src/dv/Windows.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvWindows(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M20.4 23.133H5.467v-12.8L20.4 8.2v14.933zm22.133 0H22.401V7.936L42.533 5v18.133zM20.4 24.867V39.8L5.467 37.667v-12.8H20.4zm22.133 0V43l-20.132-2.936V...
src/Posts/Standardization/standardization.js
jasongforbes/jforbes.io
import React from 'react'; import PropTypes from 'prop-types'; import { InlineMath, BlockMath } from 'react-katex'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles'; import Highlight from '../../Highlight'; import sty...
services/client/public/js/auth/login.js
cpg1111/demo-maestro-app
'use strict'; import React from 'react' import Redux from 'redux' export class Login extends React.Component { constructor(props){ super(props); this.state = {}; } render(){ return ( <div> <form> <input type="email" name="email" place...
src/components/common/icons/Company.js
chejen/GoodJobShare
import React from 'react'; /* eslint-disable */ const Company = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <g transform="translate(5)"> <path d="M48.4044336 147.763501L80.0395603 147.763501 80.0395603 114.790382 99.0548489 114.790382 99.0548489 147.763501 130.689976 147.76...
tools/kevoree-scripts/browser-tester/src/index.js
kevoree/kevoree-js
import React from 'react'; import ReactDOM from 'react-dom'; import ErrorUI from './components/Error'; import App from './components/App'; const params = decodeURI(window.location.search.substr(1)) .split('&') .reduce((params, value) => { const array = value.split('='); params[array[0]] = array[1]; ret...
src/interface/icons/Twitter.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const Icon = ({ colored, ...other }) => ( <svg viewBox="0 0 300.00006 244.18703" className="icon" {...other}> <g transform="translate(-539.18 -568.86)"> <path d="m633.9 812.04c112.46 0 173.96-93.168 173.96-173.96 0-2.6463-0.0539-5.2806-0.1726-7...
src/decorators/withViewport.js
JeffJin/jigsaw-puzzle
/** * 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'; // eslint-disabl...
src/utils/ReactHelper.js
sk1981/react-header
import React from 'react'; import ObjectHelper from './ObjectHelper' export default { /** * Gets a lit of react children and appends the given properties * to each of them one by one * * Additionally takes addIndex attribute to add an index field * which denotes the index of the given child in the ch...
docs/src/IntroductionPage.js
wjb12/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const IntroductionPage = React.createClass({ render() { return ( <div> <NavMain activePage="introduction" /> <...
src/views/components/formatted-volume/formatted-volume.js
r-park/soundcloud-redux
import React from 'react'; import PropTypes from 'prop-types'; function FormattedVolume({value = 0}) { if (!value) { value = '0.0'; } else { value /= 10; let precision = value >= 1 ? 2 : 1; value = value.toPrecision(precision); } return <span>{value}</span>; } FormattedVolume.propTypes = {...
examples/mobx/src/Counter.js
gaearon/react-hot-loader
import React, { Component } from 'react'; import { hot } from 'react-hot-loader'; import { observer } from 'mobx-react'; import { observable } from 'mobx'; class Counter extends React.Component { state = { count: Math.round(Math.random() * 1000) }; componentDidMount() { //this.interval = setInterval(this.incr...
src/app/components/shell/index.js
drivesense/server
'use strict'; import React from 'react'; import {connect} from 'react-redux'; import AppBar from './AppBar'; import LeftNav from './LeftNav'; import * as leftNav from './redux'; import {logout, hasRole} from '../../auth/redux'; const flex = { flex: 1, display: 'flex', boxSizing: 'border-box', flexDirection: '...
client/views/room/contextualBar/Call/Jitsi/components/CallModal.js
VoiSmart/Rocket.Chat
import { Box, Button, ButtonGroup, Icon, Modal } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../../../../../contexts/TranslationContext'; export const CallModal = ({ handleYes, handleCancel }) => { const t = useTranslation(); return ( <Modal> <Modal.Header> ...
news/routes/index.js
HKuz/FreeCodeCamp
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import Show from './Show'; import Featured from './Featured'; export const routes = [ <Route component={Featured} exact={true} path='/' />, <Route exact={true} path='/:username' render={() => <Redirect to='/' />} />, <Route component...
frontend/landing_page/src/pages/NotFound/index.js
linea-it/dri
/* eslint-disable max-len */ import React from 'react'; import { Grid, Container, Typography, Breadcrumbs, Link, IconButton, } from '@material-ui/core'; import { YouTube, Twitter, GitHub } from '@material-ui/icons'; import styles from './styles'; function AboutUs() { const handlerClick = (socialMedia) => { let...
src/TimeSlot.js
mitul45/ta-calendar
import React from 'react'; import Utils from './Utils'; import ReactDOM from 'react-dom'; var TimeSlot = React.createClass({ getInitialState() { return { taskName: this.props.timeSlot.taskName, editable: false, } }, /** * Format a slot object to human readable time. * @param {Objec...
ui/js/header/index.js
beni55/spigo
'use strict'; import React from 'react'; export default React.createClass({ render () { return ( <header id="header"> <div className="branding"> <h1> SIMIANVIZ </h1> </div> </header> ); } });