path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
apps/marketplace/components/BuyerRFX/BuyerRFXAboutStage.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Form } from 'react-redux-form' import Textfield from 'shared/form/Textfield' import Textarea from 'shared/form/Textarea' import CheckboxDetailsField from 'shared/form/CheckboxDetailsField' import formProps from '...
src/components/game/game-container.js
aautem/aa
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Grid, Col, Row } from 'react-native-easy-grid'; import { ActivityIndicator } from 'react-native'; import Drawer from 'react-native-drawer'; import BottomDrawer from ...
examples/huge-apps/routes/Messages/components/Messages.js
Sirlon/react-router
import React from 'react'; class Messages extends React.Component { render () { return ( <div> <h2>Messages</h2> </div> ); } } export default Messages;
app/jsx/bundles/act_as_modal.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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...
demo/src/index.js
plouc/react-svg-buttons
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './css/index.css' ReactDOM.render(<App />, document.getElementById('root'))
src/main.js
asafusan/react-admin-dashboard-boilerplate
import React, { Component } from 'react'; import Header from './components/header/header'; import Sidebar from './components/sidebar/sidebar'; export default class Main extends Component{ constructor(props) { super(props); this.state = { sidebarCollapsed: false } } render() { ...
src/main/resources/code/react/Apps/ManageRadars/components/ManageTeamsPage/index.js
artieac/technologyradar
'use strict' import React from 'react'; import ReactDOM from 'react-dom'; import createReactClass from 'create-react-class'; import { connect } from "react-redux"; import { addCurrentUserToState} from '../../../redux/CommonUserReducer'; import { UserRepository } from '../../../../Repositories/UserRepository'; import { ...
Native/Learn_TextInput/index.ios.js
renxlWin/React-Native_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TextInput, } from 'react-native'; export default class Learn_TextInput extends Component { constructor(props) { super(props); ...
example/src/index.js
nheyn/react-async-dispatcher
/* * @flow */ import React from 'react'; import ReactDOM from 'react-dom'; import TodoList from './components'; /** * Render the TodoList to the page */ function renderTodoListApp() { ReactDOM.render( <TodoList />, window.document.getElementById('todo-list') ); } window.onload = renderTodoListApp; wi...
src/routes/Error/index.js
daizhen256/i5xwxdoctor-web
import React from 'react' import {Icon} from 'antd' import styles from './index.less' const Error = () => <div className='content-inner'> <div className={styles.error}> <Icon type='frown-o' /> <h1>404 Not Found</h1> </div> </div> export default Error
web/src/containers/DevTools.js
nickhagenov/skiscool_backend
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
js/app.js
tmn/tMD
import React from 'react'; import immstruct from 'immstruct'; import omniscient from 'omniscient'; import Editor from './Editor'; import Preview from './Preview'; import data from './editor-data'; const component = omniscient.withDefaults({ jsx: true }); const App = component('App', ({cursor}) => { return ( ...
src/svg-icons/editor/text-fields.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorTextFields = (props) => ( <SvgIcon {...props}> <path d="M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"/> </SvgIcon> ); EditorTextFields = pure(EditorTextFields); EditorTextFields.displayName = 'Edi...
src/components/Tabs/demo/renderContent/index.js
lebra/lebra-components
/* tslint:disable:no-console */ import React from 'react'; import { render } from 'react-dom'; import ReactDOM from 'react-dom'; import {Tabs, DefaultTabBar } from '../../index'; import './index.less'; const tabData = [ { title: 't1' }, { title: 't2' }, { title: 't3' }, { title: 't4' }, { title: 't5' }, ]; ...
src/components/_archive/_archive/ToggleButton.js
mgoodenough/estimator
'use strict'; /* * Module Definition * */ import React from 'react'; /* * Class Definition * */ class ToggleButton extends React.Component { constructor(props) { super(props); this.state = { isPosition: false, STATIC_STRINGS: { 'SHOW_MAP': 'SHOW MAP', 'SHOW_RESULTS': 'S...
tools/contributor/dashboard-app/client/src/components/Tabs.js
raisedadead/FreeCodeCamp
import React from 'react'; import styled from 'styled-components'; const Container = styled.div` display: flex; justify-content: center; height: 40px; margin: 20px; `; const Tab = styled.div` background: ${({ active, theme }) => (active ? theme.primary : 'white')}; color: ${({ active, theme }) => (active ...
client/node_modules/uu5g03/dist-node/bricks/table-col-group.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin, Tools} from './../common/common.js'; import './table-col-group.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin ], //@...
mobile/components/users/LoginForm.js
MatthieuLemoine/open-image-feed
import React from 'react'; import Form from '../app/Form'; import styles from '../../styles/styles'; const LoginForm = ({ isFetching, login }) => <Form title="Login" submit={login} submitLabel="Sign in" submitDisabled={isFetching} inputs={[ { id : 'username', type ...
client/extensions/woocommerce/app/products/product-form-details-card.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import { localize } from 'i18n-calypso'; import PropTypes from 'prop-types'; import { trim, isNumber } from 'lodash'; /** * Internal dependencies */ import Card from 'components/card'; import CompactTinyMCE from 'woocommerce/...
src/routes/admin/index.js
ImanMh/react-proto
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/PickerTop.js
buildo/react-datepicker
import React from 'react'; import cx from 'classnames'; import t from 'tcomb'; import { props, ReactChildren } from 'tcomb-react'; import View from 'react-flexview'; import { pure, skinnable } from './utils'; @pure @skinnable() @props({ fixed: t.maybe(t.Boolean), handleClick: t.maybe(t.Function), nex...
src/routes/layout.js
hyy1115/react-redux-webpack2
import React from 'react' import Loadable from "react-loadable" import Layout from 'components/BaseLayout' // default const defaultLoad = () => <div/> // backtracking const Knight = () => import('pages/backtracking/Knight/Knight') const Nqueens = () => import('pages/backtracking/Nqueens/Nqueens') // cryptography const...
app/app.js
SergeyMoshkin/logger
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[ext]!./.htaccess';...
Libraries/Image/Image.ios.js
jasonnoahchoi/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/routes/Spots/components/SpotEditForm/AddPhoto.js
ZeusTheTrueGod/WindsurfingNetwork-client
// @flow import React from 'react'; import { centerStyles } from '~/utils/formatters'; import { Glyphicon, Button } from 'react-bootstrap'; import FineUploaderTraditional from 'fine-uploader-wrappers'; import FileInput from 'react-fine-uploader/file-input'; import ProgressBar from 'react-fine-uploader/progress-bar'; im...
admin/client/components/MobileNavigation.js
codevlabs/keystone
import React from 'react'; import Transition from 'react-addons-css-transition-group'; var MobileListItem = React.createClass({ displayName: 'MobileListItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropTypes.string.isRequired, }, render () { r...
src/components/PXCacheImage.js
alphasp/pxview
import React, { Component } from 'react'; import { View, Image, InteractionManager } from 'react-native'; import { globalStyleVariables } from '../styles'; class PXCacheImage extends Component { mounted = false; constructor(props) { super(props); const { width, height } = props; this.state = { w...
app/scripts/components/node-details/node-details-health-overflow.js
hustbill/network-verification-ui
import React from 'react'; import NodeDetailsHealthOverflowItem from './node-details-health-overflow-item'; export default class NodeDetailsHealthOverflow extends React.Component { constructor(props, context) { super(props, context); this.handleClick = this.handleClick.bind(this); } handleClick(ev) { ...
app/components/Header/index.js
stephme/react-specly
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.jpg'; import messages from './messages'; class Header extends React.Component { // eslint-disable-l...
app/packs/src/components/MaterialGroup.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Glyphicon, Tooltip, OverlayTrigger } from 'react-bootstrap'; import VirtualizedSelect from 'react-virtualized-select'; import Material from './Material'; import MaterialCalculations from './MaterialCalculations'; import ElementActions from ...
fields/types/number/NumberFilter.js
jstockwin/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label: 'Between', value: 'between' ...
pootle/static/js/shared/utils/i18n.js
Finntack/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'; /** * Make it possible React...
src/music/Player/MiniControls/MiniControlsThumbnail/MiniControlsThumbnail.stories.js
NewSpring/Apollos
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import MiniControlsThumbnail from './'; storiesOf('MiniControlsThumbnail', module) .add('Default – isPlaying)', () => ( <MiniControlsThumbnail source={'https://picsum.photos/600/400/?random'} /> )) .add('Close Button – isPaused'...
news/routes/index.js
FreeCodeCampQuito/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...
src/components/LogInForm.js
mick842/rental-cars-client
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Card, CardText } from 'material-ui/Card'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; const LogInForm = ({ onSubmit, onChange, errors, user })...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js
CodeLinkIO/react-native
'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! </...
examples/js/custom/search/default-custom-search-clear-button.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, ClearSearchButton } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; ...
src/parser/shared/modules/items/bfa/enchants/ForceMultiplier.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import ITEMS from 'common/ITEMS/index'; import { getIcon, getName } from 'parser/shared/modules/features/STAT'; import SpellIcon from 'common/SpellIcon'; import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY'; import ItemStatistic from...
src/views/NotFoundView/NotFoundView.js
rui19921122/MeetingSystem
import React from 'react' import { Link } from 'react-router' export class NotFoundView extends React.Component { render () { return ( <div className='container text-center'> <h1>This is a demo 404 page!</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ) } } exp...
app/components/Header.js
raelcun/simple-webpack-react-starter
import React from 'react' export default class Header extends React.Component { render() { return ( <div className='header'>Webpack React Starter Kit - Header</div> ) } }
blueprints/component/files/src/components/__name__/__name__.js
nkostelnik/blaiseclicks
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h1><%= pascalEntityName %></h1> </div> ) export default <%= pascalEntityName %>
src/components/TeamView.js
dggriffin/noteworthy
require('styles/index.css'); import styles from 'styles/TeamView.css' import React from 'react'; import Rebase from 're-base'; import NoteboardContainer from 'containers/NoteboardContainer'; import NoteDialogContainer from 'containers/NoteDialogContainer'; import AddTagDialogContainer from 'containers/AddTagDialogCont...
src/components/show_marker.js
davidmferris/showhopper_v3_client
import React, { Component } from 'react'; export default class ShowMarker extends Component { constructor(props) { super(props); } markerWindow() { let artists = this.props.show.performance.map((artist) => `<h5>${artist.displayName}</h5>`).join(''); return `${artists}<h6>${this.props.show.venue.disp...
src/js/components/highlight.js
nicksenger/JSchematic
import React from 'react'; require("../../css/components/highlight.scss"); const Highlight = ( {x, y} ) => { const hStyle = { top: y - 2, left: x - 3, backgroundSize: 'contain', backgroundRepeat: 'no-repeat', backgroundPosition: 'center', } return ( <div className='highlight...
js/jqwidgets/demos/react/app/kanban/itemtemplate/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxKanban from '../../../jqwidgets-react/react_jqxkanban.js'; import JqxInput from '../../../jqwidgets-react/react_jqxinput.js'; class App extends React.Component { componentDidMount() { this.refs.myKanban.on('itemAttrClicked', (event) =>...
app/src/components/date/index.js
ajfisher/tourney-tools
import React, { Component } from 'react'; import Moment from 'moment'; class DateFormat extends Component { render() { const date = Moment(this.props.date); return ( <date> { date.format("MMMM Do YYYY") } </date> ) } } export default DateForma...
packages/icons/src/md/hardware/VideoGameAsset.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdVideoGameAsset(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M42 12c2.21 0 4 1.79 4 4v16c0 2.21-1.79 4-4 4H6c-2.21 0-4-1.79-4-4V16c0-2.21 1.79-4 4-4h36zM22 26v-4h-6v-6h-4v6H6v4h6v6h4v-6h6zm9 4c1.66 0 3-1...
app/hocs/toJS.js
vollmerr/app-hub
// see http://redux.js.org/docs/recipes/UsingImmutableJS.html#use-a-higher-order-component-to-convert-your-smart-components-immutablejs-props-to-your-dumb-components-javascript-props /* eslint-disable */ import React from 'react' import { Iterable } from 'immutable'; const toJS = (WrappedComponent) => (wrappedCompone...
src/svg-icons/content/gesture.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentGesture = (props) => ( <SvgIcon {...props}> <path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3....
src/routes/Home/Home.js
ExtraGains/XLBS
import React from 'react' import { connect } from 'react-redux' import Navbar from '../../components/Navbar/index.js' import './Home.less' class Home extends React.Component { render () { return ( <div className='container'> <Navbar className='index-nav' /> <div className='content'> ...
docs/src/sections/GridColumnAlignSection.js
yyssc/ssc-grid
import React from 'react'; import { FormattedMessage } from 'react-intl'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function GridColumnAlignSection() { return ( <div className="bs-docs-section"> <h3><Anchor id="grid-c...
frontend/modules/recipe_form/components/RecipeForm.js
rustymyers/OpenEats
import React from 'react' import { injectIntl, defineMessages, } from 'react-intl'; import { Input, File, Select, TextArea, Checkbox, } from '../../common/components/FormComponents' import IngredientBox from './IngredientBox' import DirectionBox from './DirectionBox' import SubRecipeBox from './SubRecip...
src/components/UserBadge.js
robertkirsz/magic-cards-manager
import React from 'react' import PropTypes from 'proptypes' import { connect } from 'react-redux' const mapStateToProps = ({ user }) => ({ user }) const propTypes = { user: PropTypes.object } const UserBadge = ({ user: { displayName, email, photoURL } }) => ( <div className="user-badge" title={displayName ...
src/components/main/main.js
PolexRufous/FarmReactUI
import React from 'react'; import OperationsPage from './parts/operation/operation.page'; import PartnersPage from './parts/partner/partners.page'; import DocumentsPage from './parts/documents/documents.page'; import PartnersStore from './stores/partners/partners.store'; import OperationsStore from './stores/operations...
src/containers/TagSidebarContainer.js
dggriffin/noteworthy
import React from 'react'; import Rebase from 're-base'; import TagSidebar from 'components/TagSidebar'; const base = Rebase.createClass('https://noteworthyapp.firebaseio.com'); class TagSidebarContainer extends React.Component { constructor(props) { super(props); this.state = { loading: true }; ...
src/components/Header/Header.js
juan-tonina/internations-poc
/*! 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...
packages/wizard/src/views/RunRecords.js
wq/django-data-wizard
import React from 'react'; import { useComponents } from '@wq/react'; import { useRunInfo } from '../hooks'; import PropTypes from 'prop-types'; export default function RunRecords() { const { Typography, Table, TableHead, TableBody, TableRow, ...
frontend/component/CommentEditor.js
sql370/practice-node-project
import React from 'react'; import jQuery from 'jquery'; import {addTopic} from '../lib/client'; import {redirectURL} from '../lib/utils'; import MarkdownEditor from './MarkdownEditor'; export default class CommentEditor extends React.Component{ constructor(props){ super(props); this.state = props.comment ||...
docs/src/app/components/pages/get-started/Installation.js
xmityaz/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import installationText from './installation.md'; const Installation = () => ( <div> <Title render={(previousTitle) => `Installation - ${previousTitle}`} /> <MarkdownElement text={insta...
src/DropZone.js
transformatika/uspace-sdk-ui
import React from 'react'; import accepts from 'attr-accept'; const supportMultiple = (typeof document !== 'undefined' && document && document.createElement) ? 'multiple' in document.createElement('input') : true; export default class DropZone extends React.Component{ constructor(props, context){ supe...
src/client/auth/requireauth.react.js
jaegerpicker/GLDice
import Component from '../components/component.react'; import React from 'react'; import {usersCursor} from '../state'; // Higher order component. // https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750 export default function requireAuth(BaseComponent) { class Authenticate...
examples/sprite-animation/app.js
bartvde/sdk
/** Sprite animation example. * * Contains a Map and demonstrates how to animate features with a sprite icon. */ import {createStore, combineReducers, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'rea...
src/containers/search_bar.js
frandm182/reactReduxWeather
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; this.onInputChange = this.o...
site/components/StaticHTMLBlock.js
globexdesigns/react-dnd
import React, { Component } from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock extends Component { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas ...
react-flux-mui/js/material-ui/src/svg-icons/communication/chat.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChat = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/> </SvgIcon> ); Communicatio...
src/Parser/HolyPaladin/Modules/Items/Ilterendi.js
mwwscott0/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ItemLink from 'common/ItemLink'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Co...
node_modules/rc-tabs/es/InkTabBarMixin.js
prodigalyijun/demo-by-antd
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import { setTransform, isTransformSupported } from './utils'; import React from 'react'; import classnames from 'classnames'; export function getScroll(w, top) { var ret = w['page' + (top ? 'Y' : 'X') + 'Offset']; var method = 'scroll' + (top ? 'T...
ReactComponents/CampaignView.js
DoSomething/LetsDoThis-iOS
'use strict'; import React from 'react'; import { Text, Image, TouchableHighlight, ListView, View, RefreshControl, NativeAppEventEmitter, StyleSheet, } from 'react-native'; import Dimensions from 'Dimensions'; var Style = require('./Style.js'); var Helpers = require('./Helpers.js'); var NetworkErrorV...
server/server.js
yagneshmodh/QuizeApp
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.js
adamruzicka/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ListView } from 'patternfly-react'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import RepositoryTypeIcon from '../RepositoryTypeIcon'; import EnabledRepositoryContent from './EnabledRepositoryContent'; cl...
client/component/schema/replace/types/index.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; /** * Internal dependencies */ import ReplaceInteger from './integer'; import ReplaceDate from './date'; import ReplaceString from './string'; import ReplaceMember from './member'; import ReplaceKeyValue from './keyvalue'; /** @typedef {import('state/sea...
app/javascript/mastodon/features/generic_not_found/index.js
Craftodon/Craftodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator /> </Column> ); export default GenericNotFound;
docs/src/components/InputSubmit.js
johnpolacek/styled-system-html
import React from 'react' import {Input} from 'styled-system-html' const InputSubmit = props => <Input type="submit" fontSize={1} m={0} px={3} py={2} color='white' bg='blue' {...props} css={{ cursor:'pointer', fontFamily: 'inherit', display: 'inline-block', ...
examples/basic/app.js
diasbruno/react-modal
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Modal from 'react-modal'; import SimpleUsage from './simple_usage'; import MultipleModals from './multiple_modals'; import Forms from './forms'; import ReactRouter from './react-router'; import NestedModals from './nested_modals'; const...
src/pages/knit.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Knit' /> )
src/components/Navigation/Navigation.js
kuao775/mandragora
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; // import cx from 'classname...
src/CardTitle.js
15lyfromsaturn/react-materialize
import React from 'react'; import cx from 'classnames'; import constants from './constants'; class CardTitle extends React.Component { render() { let {image, reveal, waves, children, ...props} = this.props; let classes = { 'card-image': true }; if (waves) { classes['waves-effect'] = true...
packages/storyboard-extension-chrome/src/components/020-story.js
guigrpa/storyboard
/* eslint-disable react/no-multi-comp, react/prefer-stateless-function */ import React from 'react'; import * as ReactRedux from 'react-redux'; import { set as timmSet } from 'timm'; import dateFormat from 'date-fns/format'; import dateDistanceInWords from 'date-fns/distance_in_words_strict'; import { Icon, Spinner, ca...
client/app.js
bmathews/menubar-calendar
import { ipcRenderer as ipc, shell } from 'electron'; import React from 'react'; import Icon from './components/icon'; import Calendar from './components/calendar/calendar'; import EventList from './components/events/eventList'; import eventUtils from './utils/eventUtils'; class App extends React.Component { s...
src/components/UpdateButton/index.js
cantonjs/re-admin
import React, { Component } from 'react'; import PropTypes from 'utils/PropTypes'; import { isFunction } from 'utils/fp'; import localize from 'hocs/localize'; import ContextButton from 'components/ContextButton'; @localize('UpdateButton') export default class UpdateButton extends Component { static propTypes = { l...
src/clincoded/static/libs/render_interpretation_status.js
ClinGen/clincoded
'use strict'; import React from 'react'; import { renderInProgressStatus } from './render_in_progress_status'; import { renderProvisionalStatus } from './render_provisional_status'; import { renderApprovalStatus } from './render_approval_status'; import { renderNewProvisionalStatus } from './render_new_provisional_stat...
packages/expo-image/build/ExpoImage.web.js
exponent/exponent
import React from 'react'; import { Image } from 'react-native'; export default function ExpoImage({ source, ...props }) { const resolvedSource = source ?? {}; return React.createElement(Image, Object.assign({}, props, { source: resolvedSource })); } //# sourceMappingURL=ExpoImage.web.js.map
frontend/src/components/organizationProfile/countryOfficesList.js
unicef/un-partner-portal
import React from 'react'; import { path } from 'ramda'; import PropTypes from 'prop-types'; import HeaderList from '../../components/common/list/headerList'; import OrganizationItem from './organizationItem'; import CountryOfficesHeaderContainer from './countryOfficesHeaderContainer'; const countryOfficesItems = prof...
src/React/CollapsibleControls/CollapsibleControlFactory/LookupTableManagerWidget.js
Kitware/paraviewweb
import React from 'react'; import CollapsibleControlFactory from '.'; import LookupTableManagerControl from '../LookupTableManagerControl'; CollapsibleControlFactory.registerWidget( 'LookupTableManagerWidget', ({ lookupTableManager, activeField }) => { let field = activeField; if (!field) { field = ...
react/src/components/Lints.js
eduardinni/bootlint-online
import React, { Component } from 'react'; import Lint from './Lint'; export default class Lints extends Component { render(){ var lints = [], i = 0; this.props.lints.forEach(function(lint) { i++; lints.push(<Lint key={i} lint={lint} />); }); return ( <div> <div className="a...
lib-module-modern-browsers-dev/index.js
turacojs/fody
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 _jsxFileName = 'index.jsx', _this = this; /* eslint-...
src/encoded/static/components/item-pages/BiosampleView.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { console, object, layout } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { ItemPageTable } from './components/tables/ItemPageTable'; import { ExperimentSetsTableTabView } from '...
app/javascript/mastodon/features/community_timeline/components/column_settings.js
TheInventrix/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
docs/src/NavMain.js
pieter-lazzaro/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
blueocean-material-icons/src/js/components/svg-icons/action/settings-input-composite.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSettingsInputComposite = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 ...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
pallavishende/angular-starter-master
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'));
packages/reactor-kitchensink/src/examples/FormFields/FileField/FileField.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container, Panel, FileField } from '@extjs/ext-react' export default class SearchFieldExample extends Component { state = { }; onChange = (field, value) => { this.setState({ file: value }); } render() { const { file } = this.stat...
src/components/posts_show.js
Starnes81/ReduxBlogTut
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPost, deletePost } from '../actions'; class PostsShow extends Component { componentDidMount() { const { id } = this.props.match.params; this.props.fetchPost(id); } onDeleteCl...
js/redux/learn-redux/node_modules/react-router/es6/IndexLink.js
austinjalexander/sandbox
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; }; import React from 'react'; import Link from './Link'; /** *...
src/pages/community/section/CSLforum/CSLForum.js
HeliumLau/Hoop-react
import React from 'react'; import Part from 'components/Part' export default class CSLForum extends React.Component { render() { const list = [ { icon: 'icon-rocket', name: '休斯顿火箭队', num: 12212, route: '/app/news' }, ...
examples/src/Example.js
UniversalAvenue/react-sound
import React from 'react'; import { SoundAsset, Sound } from 'react-sound'; import PlayerControls from './PlayerControls'; import SongSelector from './SongSelector'; import songs from './songs'; export default class Example extends React.Component { constructor(props) { super(props); this.state = { cu...
fields/types/embedly/EmbedlyField.js
giovanniRodighiero/cms
import React from 'react'; import Field from '../Field'; import { FormField, FormInput } from '../../../admin/client/App/elemental'; import ImageThumbnail from '../../components/ImageThumbnail'; import NestedFormField from '../../components/NestedFormField'; module.exports = Field.create({ displayName: 'EmbedlyField...
demos/forms-demo/src/components/Simple/index.js
FWeinb/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state, signal} from 'cerebral/tags' import {css} from 'aphrodite' import styles from './styles' import Input from '../Fields/Input' import {isValidForm} from 'cerebral-forms' export default connect({ form: state`simple.form.**`, settings: sta...
client/admin/mailer/MailerRoute.js
subesokun/Rocket.Chat
import React from 'react'; import toastr from 'toastr'; import { usePermission } from '../../contexts/AuthorizationContext'; import { useMethod } from '../../contexts/ServerContext'; import { useTranslation } from '../../contexts/TranslationContext'; import { Mailer } from './Mailer'; import NotAuthorizedPage from '.....
src/components/topic/summary/GeoTagSummaryContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedHTMLMessage, FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import MenuItem from '@material-ui/core/MenuItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemIcon from '@...