path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
server/sonar-web/src/main/js/apps/overview/gate/gate-condition.js
vamsirajendra/sonarqube
import React from 'react'; import { getPeriodLabel, getPeriodDate } from '../helpers/periods'; import { DrilldownLink } from '../../../components/shared/drilldown-link'; import { formatMeasure } from '../../../helpers/measures'; const Measure = React.createClass({ render() { if (this.props.value == null || isN...
examples/simple/src/App.js
treyhoover/react-greedy-text
import React, { Component } from 'react'; import GreedyText from 'react-greedy-text'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header> <GreedyText> Greedy Text! </GreedyText> </header> <main style={...
components/User/UserProfile/PrivatePublicUserProfile/PrivatePublicUserProfile.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import { List, Segment, Checkbox, Header } from 'semantic-ui-react'; import PublicUserData from '../PublicUserData'; import UserDecks from './UserDecks'; import UserCollections from '../../../DeckCollection/UserCollections'; import UserMenu from './UserMen...
packages/core/upload/admin/src/components/EditAssetDialog/RemoveAssetDialog.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { ConfirmDialog } from '@strapi/helper-plugin'; import { useRemoveAsset } from '../../hooks/useRemoveAsset'; export const RemoveAssetDialog = ({ onClose, asset }) => { const { isLoading, removeAsset } = useRemoveAsset(onClose); const handleConf...
src/parser/shaman/restoration/modules/spells/HealingRain.js
fyruna/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { TooltipElement } from 'common/Tooltip'; import Analyzer from 'parser/core/Analyzer...
WebApp/wwwroot/ReactApp/src/components/codecamp/speakers/SpeakerListItem.js
pkellner/svcc-react4
import React from 'react'; import PropTypes from 'prop-types'; export default function SpeakerListItem(props) { const { id, firstName, lastName, company, imageUrl } = props; const img = () => { if (process.env.NODE_ENV === 'development') { return ( <img src={`assets/images/speakers/Spe...
docs/src/pages/landing/Sponsors.js
lgollut/material-ui
import React from 'react'; import * as PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import { makeStyles } from '@material-ui/core/styles'; import NoSsr from '@material-ui/core/NoSsr'; import MarkdownElement from 'docs/src/modules/components/MarkdownElement'; import Container from '@material-u...
app/components/Home.js
albertmejia/empire_room
import React from 'react'; import {home} from '../styles/home.scss'; import Carousel from './Carousel'; import UpcomingEvents from './UpcomingEvents'; import axios from 'axios'; import { WP_DOMAIN } from '../../wp.config'; class Home extends React.Component { constructor(props) { super(props); this...
todo-list/src/List.js
Nodewarrior/react-examples
import React, { Component } from 'react'; const List = props => ( <ul> {props.items.map((item, index) => <li key={index}>{item}</li>)} </ul> ); export default List;
src/components/App.js
tanykim/julie-and-julia
import React, { Component } from 'react'; import Script from './../data/data.json'; import SearchForm from './SearchForm'; import Visualization from './Visualization'; import SecretStory from './SecretStory'; import TextLineList from './TextLineList'; class App extends Component { constructor(props) { super(pro...
src/backward/Widgets/Container.js
sampsasaarela/NativeBase
/* @flow */ import React from 'react'; import { View, Image, ScrollView } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import { Footer } from '../../basic/Footer'; import { Fab } from '../../basic/Fab'; import _ from 'lodash'; import mapPropsToStyleNames from '../../Utils/mapPropsToSt...
index.js
toubou91/react-lorem
import React from 'react'; import { render } from 'react-dom'; import Lorem from './Lorem'; render( <div> <Lorem /> <Lorem reps={{ times: 4, lineBreak: true }} color={'yellow'} fontSize={'medium'} /> <Lorem color={'blue'} fontSize={30} /> <Lorem color={'rgb(154,67,123)'} fontSize={'large'} /> </div...
client/app/components/IssueIcon/index.js
Kielan/onDemanager
import React from 'react'; class IssueIcon extends React.Component { render() { return ( <svg height="1em" width="0.875em" className={ this.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.1...
test/helpers/shallowRenderHelper.js
jc784999074/study-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
app/javascript/mastodon/components/button.js
rekif/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
app/index.js
AidanNichol/stedwards-booking-system
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import {configureStore} from 'store'; import Root from 'containers/Root'; //...
src/product.js
slx-dev/react-testing
import React from 'react'; import {Row,Col} from 'reactstrap'; import PRODUCTS from './products.json'; // import Gallery from './gallery'; var $ = require ('jquery'); export default class Product extends React.Component { render() { var getProductData = id => $.grep(PRODUCTS, function(e){ retu...
analysis/demonhuntervengeance/src/modules/talents/SpiritBombSoulsConsume.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import BoringSpellValueText from 'parser/ui/BoringSpe...
docs/src/Routes.js
wjb12/react-bootstrap
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import SupportPage from './SupportPage'; import NotFoundPage from './NotFound...
src/routes/Recover/components/EmailForm/EmailForm.js
ronihcohen/magic-vote
import React from 'react' import PropTypes from 'prop-types' import { Field, reduxForm } from 'redux-form' import { TextField } from 'redux-form-material-ui' import RaisedButton from 'material-ui/RaisedButton' import { required, email } from 'utils/forms' import { RECOVER_EMAIL_FORM_NAME } from 'constants' import class...
src/articles/Single.js
NewSpring/Apollos
import React from 'react'; import { ScrollView } from 'react-native'; import { compose, mapProps, pure } from 'recompose'; import withArticle from '@data/withArticle'; import withCachedContent from '@data/withCachedContent'; import BackgroundView from '@ui/BackgroundView'; import Header from '@ui/Header'; import Conte...
frontend/app/js/components/settings/plugins/index.js
serverboards/serverboards
import React from 'react' import rpc from 'app/rpc' import Flash from 'app/flash' import PluginDetails from './details' import plugin from 'app/utils/plugin' import {merge, object_list_to_map} from 'app/utils' import event from 'app/utils/event' import i18n from 'app/utils/i18n' import {set_modal, goto} from 'app/utils...
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_03/finished/src/index.js
yevheniyc/C
import C from './constants' import React from 'react' import { render } from 'react-dom' import routes from './routes' import sampleData from './initialState' import storeFactory from './store' import { Provider } from 'react-redux' import { addError } from './actions' const initialState = (localStorage["redux-store"]...
src/react.js
joshblack/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
src/components/about.js
MichaelMansourati/earCamera
import React from 'react' import { Helmet } from 'react-helmet' import '../styles/about.css' const About = () => ( <div className="page-goes-here" id="about"> <Helmet> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrit...
fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js
saschatimme/reason-react-scripts
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
frontend/sections/timeline/explore/explore.js
apostolidhs/wiregoose
import isEmpty from 'lodash/isEmpty'; import React from 'react'; import PropTypes from 'prop-types'; import CSSModules from 'react-css-modules'; import { LinkContainer } from 'react-router-bootstrap'; import Nav from 'react-bootstrap/lib/Nav'; import NavItem from 'react-bootstrap/lib/NavItem'; import Panel from 'react-...
docs/src/sections/ReferListSection.js
tigerandgirl/ssc-refer
import React from 'react'; import PropTable from '../PropTable'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ReferListSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
src/containers/search_result_list.js
etchoi/theTenSpot
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import axios from 'axios'; import { showItem } from '../actions'; class SearchResultList extends Component { formatPrice(str) { let price = parseInt(str); return (price/100).toFixed(...
webpack/scenes/Subscriptions/components/SubscriptionsToolbar/SubscriptionsToolbar.js
mccun934/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Form, FormGroup, Button } from 'patternfly-react'; import { LinkContainer } from 'react-router-bootstrap'; import { noop } from 'foremanReact/common/helpers'; import { translate as __ } from 'foremanReact/common/I18n'; import Search from...
src/components/Home/break.js
pritchardtw/ReactPersonalSite
import React, { Component } from 'react'; export default class Break extends Component { render() { return ( <div className="break"> </div> ); } }
frontend/src/clue.js
wadobo/socializa
import React from 'react'; import { withRouter } from 'react-router'; import Purifier from 'html-purify'; import { user, getIcon } from './auth'; import Bucket from './bucket'; import Loading from './loading'; import API from './api'; import { EventSolveOpt } from './eventsolve'; import { ResolvableComponent } from '....
src/index.js
spirosikmd/reflow
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; const root = document.getElementById('root'); ReactDOM.render(<App />, root); if (module.hot) { module.hot.accept('./App', () => { const NextApp = require('./App').default; ReactDOM.render(<NextApp />, root); }); }
src/give/AddAccount/Failure.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@ui/styled'; import PaddedView from '@ui/PaddedView'; import Icon from '@ui/Icon'; import { H3, H4, BodyText } from '@ui/typography'; import { withTheme } from '@ui/theme'; import Button, { ButtonLink } from '@ui/Button'; import WebBrows...
server/sonar-web/src/main/js/apps/overview/main/main.js
vamsirajendra/sonarqube
import _ from 'underscore'; import moment from 'moment'; import React from 'react'; import { GeneralDebt } from './debt'; import { GeneralCoverage } from './coverage'; import { GeneralDuplications } from './duplications'; import { GeneralStructure } from './structure'; import { CoverageSelectionMixin } from '../compon...
src/routes/contact/Contact.js
stanxii/laiico
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/main.js
EragonJ/Kaku
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Electron, { ipcRenderer as IpcRenderer, shell as Shell, remote as Remote, } from 'electron'; const Dialog = Remote.dialog; const App = Remote.app; import ReactTooltip from 'react-tooltip'; // general modules import ErrorMonitor ...
src/components/MinimapZoom/Minimap.js
vogelino/design-timeline
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createScaleFunction, getLanes } from '../../helpers/timelineHelper'; import { SIDEBAR_WIDTH, TOPICS_LIST_WIDTH, MINIMAP_MARGIN } from '../../redux/constants/uiConstants'; import EventsLane from '../EventsLane/...
js/jqwidgets/demos/react/app/tabs/defaultfunctionality/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; class App extends React.Component { componentDidMount() { this.refs.animation.on('change', (event) => { ...
src/components/counts/ShortCountVol.js
availabs/avail_app_bootstrap
import React from 'react'; import StackedBarGraph from '../graphs/StackedBarGraph'; import directionCodes from '../utils/directionCodes'; class ShortCountVol extends React.Component { render() { var data = this.props.data; var countDate = `${data.month}/${data.dayOfFirstData}/${data.year}`; var infoTable...
test/fixtures/stateless-assignment/expected.js
layershifter/babel-plugin-transform-react-handled-props
import PropTypes from 'prop-types'; import React from 'react'; const Example = function () { return <div />; }; Example.handledProps = ["active", "children", "className"]; Example.defaultProps = { active: true }; Example.propTypes = { children: PropTypes.node, className: PropTypes.string }; export default Exa...
node_modules/semantic-ui-react/src/modules/Popup/PopupContent.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A PopupContent displays the content body of a Popover. */ export default function PopupContent(props)...
src/client/index.js
playnogames/stacks
import React from 'react'; import ReactDom from 'react-dom'; import App from './components/App'; import './scss/index.scss'; ReactDom.render( <App />, document.getElementById('app') );
client/components/requestUApproved.js
marhyorh/booktrade
import React from 'react'; export default (props) => { const onRemove = (book, event) => { event.preventDefault(); Meteor.call('book.unApprove', book); } const reqApproved = () => { return props.books.map(book => { return ( <li className="list-group-item" key={book._id}> {bo...
src/components/VenueList.js
mgaebler/kicknow-client-web
import React from 'react' export default class VenueList extends React.Component { render () { function generateVenueButton (venue){ return ( <a className="list-group-item" href={`/location/add/${venue.id}`} key={venue.id} > <h4 className="list-grou...
node_modules/react-bootstrap/es/MediaHeading.js
soniacq/LearningReact
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 ...
client/views/admin/oauthApps/OAuthAppsRoute.js
VoiSmart/Rocket.Chat
import React from 'react'; import NotAuthorizedPage from '../../../components/NotAuthorizedPage'; import { usePermission } from '../../../contexts/AuthorizationContext'; import OAuthAppsPage from './OAuthAppsPage'; export default function MailerRoute() { const canAccessOAuthApps = usePermission('manage-oauth-apps');...
web/src/layout/Breadcrumb.js
caicloud/cyclone
import React from 'react'; import { Link } from 'react-router-dom'; import { Breadcrumb } from 'antd'; import PropTypes from 'prop-types'; const mainModules = [ 'overview', 'projects', 'stageTemplate', 'resource', 'integration', 'workflows', ]; const operations = ['update', 'add']; /** * define the route...
roguelike-dungeon-crawler-game/src/App.js
mstoyanovca/front-end
import React, { Component } from 'react'; import Dungeon from './Dungeon'; import Header from './Header'; import LossModal from './LossModal'; import WinModal from './WinModal'; const weapons = ["stick", "brass knuckles", "serrated dagger", "katana", "reaper's scythe", "large trout"]; //tune the game here; you need 24...
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
RobzDoom/frame_trap
/** * 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/ContractRows.js
simoneas02/contracts-list
import React, { Component } from 'react'; import update from 'immutability-helper'; import edit from './icons/edit.svg' import save from './icons/save.svg' import close from './icons/close.svg' class ContractRows extends Component { constructor(props) { super(props); this.state = { contract: [], ...
components/utils/PositionCard.js
Mudano/m-dash-ui
import React from 'react' import className from 'classnames' export default class PositionCard extends React.Component { static defaultProps = { } constructor(props){ super(props) this.state = { isOpen : this.props.isOpen, isReady : !this.props.isOpen, } } componentWillReceivePr...
src/Label.js
roderickwang/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
packages/demos/demo/src/components/Project/Input.js
yusufsafak/cerebral
import React from 'react' import { connect } from 'cerebral/react' import { props, signal, state } from 'cerebral/tags' import translations from '../../common/compute/translations' export default connect( { // autoFocus enterPressed: signal`projects.enterPressed`, escPressed: signal`projects.escPressed`,...
src/www/js/index.js
training4developers/bootcamp_04112016
import React from 'react'; import Relay from 'react-relay'; import ReactDOM from 'react-dom'; import WidgetToolContainer from './containers/widget-tool-container'; import ViewerRoute from './routes/viewer-route'; ReactDOM.render( <Relay.RootContainer Component={WidgetToolContainer} route={new ViewerRoute()} />, d...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Modal.js
Akkuma/npm-cache-benchmark
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch07/07_01/finish/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' // import routes from './routes' import Member from './components/ui/Member' window.React = React render( <Member admin={true} name="Edna Welch" email="edna.welch88@example.com" thumbnail="https://randomuser.me/api/portr...
src/routes/tool/index.js
chunkiat82/rarebeauty-ui
/** * 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 Tool from './Tool'; i...
src/containers/NewRoutineForm.js
snsavage/timer-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux' import RoutineForm from './RoutineForm'; import { createRoutine } from '../actions/routineFormActions'; import { clearCurrentRoutine } from '../actions/routineActions'; export class NewRoutineFo...
client/components/Common/ListItem.js
Mignon-han/issue-processing
import React from 'react'; import './css/style.css'; import { hexToRgb } from '../../utils/utils'; const ListItem = ({ selected, label, value, color, onClick, visible }) => ( <div className="common-list-item"> <div className='item-container bgStyle' data-value={value} onClick={() => onClick()} style={s...
components/TimePickerSelect.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import Icon from './Icon'; export default class TimePickerSelect extends Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, id: PropTypes.string.isRequir...
docs-ui/components/checkboxFancy.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import {number, boolean} from '@storybook/addon-knobs'; import styled from '@emotion/styled'; import CheckboxFancy from 'app/components/checkboxFancy/checkboxFancy'; export default { title: 'Core/Style/Icons', }; export const _CheckboxFancy...
src/js/components/Employees/New.js
appdev-academy/appdev.academy-react
import React from 'react' import { browserHistory } from 'react-router' import { inject, observer } from 'mobx-react' import Form from './Form' @inject('employeesStore') @observer export default class New extends React.Component { constructor(props) { super(props) this.state = { errors: [] } ...
src/components/Header/index.js
frintjs/frint.js.org
import React from 'react'; import Link from "gatsby-link"; import SearchForm from '../SearchForm'; const Header = () => ( <div className="container"> <div className="nav-left"> <Link activeClassName="is-active" className="nav-item brand" to="/"> <img alt="Frint" className="dark" src="/img/frint-log...
src/components/common/FeedbackBlock/index.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import ReactGA from 'react-ga'; import { Heading } from 'common/base'; import Button from 'common/button/Button'; import ButtonGroupImage from 'common/button/ButtonGroupImage'; import Checked from 'common/icons/Checked'; import...
pootle/static/js/admin/components/ItemTableRow.js
JohnnyKing94/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 cx from 'classnames'; import React from 'react'; ...
docs/website/src/templates/package.js
adaltas/node-nikita
// React import React from 'react' // Gatsby import { graphql, Link } from 'gatsby' // MDX import { MDXProvider } from "@mdx-js/react" import { MDXRenderer } from "gatsby-plugin-mdx" // Local import Layout from '../components/Layout' const Template = ({ data }) => { const { page } = data return ( <Layout pag...
app/javascript/mastodon/components/admin/Retention.js
abcang/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedMessage, FormattedNumber, FormattedDate } from 'react-intl'; import classNames from 'classnames'; import { roundTo10 } from 'mastodon/utils/numbers'; const dateForCohort = cohort => { switch(cohort.freque...
client/src/index.js
medelbou/react-redux-express
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
examples/react-application/index.js
alexeyraspopov/actor-system
import React from 'react'; import ReactDOM from 'react-dom'; import { ActorSystem } from 'actor-system'; import Application from './modules/Application.react'; import Wrapper from './modules/Wrapper.react'; import Storage from './modules/Storage'; import Main from './modules/Main.actor'; const system = ActorSystem.fro...
tp-3/euge/src/components/pages/alumnos/components/form/AlumnoForm.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import './alumnoForm.scss'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import TextField from 'material-ui/TextField'; import {orange500, blue500} from 'material-ui/styles/colors'; import RaisedButton from 'material-ui/RaisedButton'; const styles = { errorStyle: { ...
src/commons/title.js
jessy1092/react-semantify
import React from 'react'; import filter from '../filter'; import Div from './div'; const stateArray = ['active']; const defaultClassName = 'title'; const componentName = 'Title'; const Title = new filter(Div) .stateFilter(stateArray) .classGenerator(defaultClassName) .getComposeComponent(componen...
mobile/mock ups/tech_stack/App.js
parammehta/TravLendar
import React from 'react'; import { View } from 'react-native'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import reducers from './src/reducers'; import { Header } from './src/components/common'; import LibraryList from './src/components/LibraryList'; const App = () => ( <Provider s...
src/components/CardsList/cardsList.js
VitaliiK91/AlramRN
import React from 'react'; import PropTypes from 'prop-types'; import { ScrollView, } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { cards as actions } from '../../store/actions'; import Card from '../Card'; const CardList = props => ( <ScrollView> ...
src/components/atoms/Paragraph/index.stories.js
SIB-Colombia/dataportal_v2_frontend
import React from 'react' import { storiesOf } from '@kadira/storybook' import Paragraph from '.' storiesOf('Paragraph', module) .add('default', () => ( <Paragraph> Nisi eu eiusmod cupidatat aute laboris commodo excepteur esse dolore incididunt incididunt aliquip pariatur est minim officia sit. Nulla paria...
src/svg-icons/action/flight-land.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightLand = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2...
src/Tab.js
thealjey/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const Tab = React.createClass({ propTypes: { /** * @private */ active: React.PropTypes.bool, animation: React.PropTypes.bool, /** * It is used by 'Tab...
example/app.js
snario/react-mapbox-gl
import React from 'react'; import SimpleExample from './simple'; import EventsExample from './events'; import VectorLayersExample from './vector-layers'; const examples = <div> <h1>React-Leaflet examples</h1> <h2>Popup with Marker</h2> <SimpleExample /> <h2>Events</h2> <p>Click the map to show a marker at y...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-auto-complete.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin} from './../common/common.js'; import {Link, Backdrop} from './../bricks/bricks.js'; import $ from 'jquery'; import './auto-complete.less'; export default React.createClass({ mixins: [ BaseMixin, ElementaryMixin, ContentMixin ...
app/screens/gold/gold.container.js
it-surya/hack-jeninvest
import React from 'react'; import { View, Image, Keyboard } from 'react-native'; import { RkButton, RkText, RkTextInput, RkStyleSheet, RkTheme, RkAvoidKeyboard, RkChoice } from 'react-native-ui-kitten'; import {GradientButton} from '../../components/'; import {scale, scaleModerate, scaleVertical} fr...
src/px-modal/index.js
jonniespratley/px-components-react
import React from 'react'; import Overlay from '../px-overlay'; import Button from '../px-button'; import classnames from 'classnames'; import stylesheet from './style.scss'; /** * px-modal component */ export default ({ style, modalHeading = 'Modal', btnModalNegative, onBtnModalNegativeClick, btnModalPos...
src/svg-icons/av/recent-actors.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRecentActors = (props) => ( <SvgIcon {...props}> <path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9....
app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js
cybrespace/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import AsyncSelect from 'react-select/lib/Async'; export default @injectIntl class ColumnSettings exte...
extension/panel/src/components/app-view.js
capacitorjs/capacitor
'use strict'; import React from 'react'; import {RouteHandler} from 'react-router'; import Locator from 'capacitor-locator'; import PluginList from 'src/components/plugin-list'; import PluginStore from 'src/stores/plugin'; /** * Display the current list of plugins and the currently-selected plugin */ export default...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-camera.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, Tools} from '../common/common.js'; import './camera.less'; // TODO // quality of picture -> jpg, png, ... // choice of camera devices if pc has more cameras export const Camera = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, Elem...
shared/app/Tms/config/components/TmsConfig.js
pebie/react-universally-node-config
import React from 'react'; import PropTypes from 'prop-types'; import serialize from 'serialize-javascript'; import filterWithRules from '../../../../../shared/utils/objects/filterWithRules'; import { getConfig } from '../../config'; const values = getConfig(); // Filter the config down to the properties that are all...
src/common/EmptyView/EmptyViewDouble.js
Syncano/syncano-dashboard
import React from 'react'; import { FontIcon, RaisedButton } from 'material-ui'; const EmptyViewDouble = ({ title, description, iconClassName, iconColor, leftIconType, rightIconType, handleClickRightButton, handleClickLeftButton, labelButtonLeft, labelButtonRight }) => { const styles = { con...
src/components/exercises/LetterRotated.stories.js
cognostics/serlo-abc
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import LetterRotated from './LetterRotated'; storiesOf('exercises/LetterRotated', module) .add('difficulty level 1', () => ( <LetterRotated letters={['a', 'N', 'E']} rotated={[4]} angles={['50deg']} difficult...
src/ModalBody.js
PeterDaveHello/react-bootstrap
import React from 'react'; import classnames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classnames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.propTypes = { /** ...
src/EmptyRadar.js
shauns/react-d3-radar
// @flow import React from 'react'; import RadarAxis from './RadarAxis'; import RadarRings from './RadarRings'; import type {RadarVariable} from './types'; import {radiusScales, forEachArray} from './utils'; type Props = { width: number, height: number, padding: number, variables: Array<RadarVariable>, domai...
src/views/Blocks/Clock.js
abachman/my-new-tab
import React from 'react' import PropTypes from 'prop-types' import { GridBlockWrapper } from './Base' import formatDate from '../../lib/formatDate' import '../../stylesheets/Clock.css' class Clock extends React.Component { static propTypes = { block: PropTypes.object.isRequired } state = { time: new...
src/components/common/svg-icons/editor/format-shapes.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatShapes = (props) => ( <SvgIcon {...props}> <path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-...
fields/types/date/DateColumn.js
asifiqbal84/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, ...
examples/huge-apps/routes/Grades/components/Grades.js
nhunzaker/react-router
import React from 'react' class Grades extends React.Component { render() { return ( <div> <h2>Grades</h2> </div> ) } } export default Grades
app/containers/App/index.js
nguyenduong127/kong-dashboard
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'components/Header'; import F...
js/components/blankPage/index.js
laurar07/onMy6
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, Button, Icon } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import { popRoute } from '../../actions/route'; import styles from './styles'; class BlankPage exten...
src/entypo/Foursquare.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Foursquare'; let EntypoFoursquare = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M4.92,1C4.412,1,4,1.412,4,1.92v16.516c0,0.625,0.765,0.926,1.192,0.47l4.471-4.79C9.731,14.042,...
src/components/Notification/Notification.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 PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import { settings } from '...
example/react-todo/index.js
justinjung04/treeful
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Treeful from '../../src/treeful'; import './index.scss'; import TodoController from './components/todo-controller'; import Todo from './components/todo'; class App extends Component { constructor () { super(); Treeful.dev(); Tre...
src/components/app.js
jvstrpv/reactredux_2
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; export default class App extends Component { render() { return ( <div> <SearchBar /> </div> ); } }