path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
examples/demos/timeslots.js
intljusticemission/react-big-calendar
import React from 'react' import { Calendar, Views } from 'react-big-calendar' import events from '../events' let Timeslots = ({ localizer }) => ( <Calendar events={events} step={15} timeslots={8} localizer={localizer} defaultView={Views.WEEK} defaultDate={new Date(2015, 3, 12)} /> ) expor...
src/containers/Root.js
jmoguelruiz/react-common-components
import React, { Component } from 'react'; import SimbologicExample from './SimbologicExample'; import SeparatorExample from './SeparatorExample'; import TitleModuleExample from './TitleModuleExample'; import ButtonExample from './ButtonExample'; import DropdownButtonExample from './DropdownButtonExample'; class Root e...
src/app.js
ScientificAnalysisLaboratories/RecJobs
import 'array.prototype.find' import React from 'react'; import ReactDOM from 'react-dom'; import MainPage from './components/MainPage'; ReactDOM.render( <MainPage firebaseUrl='https://reclist.firebaseio.com/' /> , document.getElementById('content') )
ReportSystem/src/main/webapp/resources/js/components/user/tools-bar.js
LittleLazyCat/TXEY
import React from 'react' import Button from 'react-bootstrap/lib/Button' export default class ToolsBar extends React.Component{ render() { return ( <div className="tools-bar"> <span>名字:</span><input type="text" placeholder="Search name..." value={this.props.filterText} onChange={this.props.filterT...
ajax/libs/rxjs/2.3.2/rx.lite.compat.js
zhengyongbo/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
pootle/static/js/editor/components/EditingArea.js
claudep/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'; ...
src/components/ProgtempPopoverComponent.spec.js
maartenlterpstra/GeoWeb-FrontEnd
import React from 'react'; import { default as ProgtempPopoverComponent } from './ProgtempPopoverComponent'; import { mount } from 'enzyme'; import sinon from 'sinon'; const adagucProperties = { wmjslayers: { panelsProperties: [], baselayers: [], overlays: [] } }; const emptyDispatch = () => { /* inte...
node_modules/react-icons/fa/eyedropper.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaEyedropper = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m37.9 2.1q2.1 2.1 2.1 5.1t-2.1 5l-5 5 2.3 2.3q0.2 0.2 0.2 0.5t-0.2 0.5l-4.7 4.7q-0.2 0.2-0.5 0.2t-0.5-0.2l-2.4-2.3-13.4 13.4q-0.8 0.8-2 0.8h-4.6l-5.7 2.9-1.4-1.4 2...
web/src/js/components/General/CircleButton.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import FlatButton from 'material-ui/FlatButton' import Forward from 'material-ui/svg-icons/content/forward' class CircleButton extends React.Component { render() { const iconContainer = { position: 'relative', top: -2, left: 1, }...
packages/react-interactions/events/src/dom/Scroll.js
TheBlasfem/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactDOMResponderEvent, ReactDOMResponderContext, PointerType, } from 'shared/ReactDOMTypes'; impo...
ajax/libs/material-ui/4.9.2/es/internal/svg-icons/RadioButtonUnchecked.js
cdnjs/cdnjs
import React from 'react'; import createSvgIcon from './createSvgIcon'; /** * @ignore - internal component. */ export default createSvgIcon(React.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), 'RadioButto...
components/LocationOutput.js
Hardyng/weatherforecast-nextjs-redux-ssr
import React from 'react'; import { connect } from 'react-redux'; import styled from 'styled-components'; const Container = styled.div` display:flex; align-items:center; justify-content: center; ` const Title = styled.h4` ` const Text = styled.p` margin: 4px 0; line-height:16px; ` class LocationOutput extends...
definitions/npm/react-media_v1.x.x/flow_v0.54.1-/test_react-media_v1.x.x.js
doberkofler/flow-typed
//@flow import React from 'react'; import Media from 'react-media'; // $ExpectError const queryError = <Media query={1} />; // $ExpectError const defaultMatchesError = <Media defaultMatches={1}/>; // $ExpectError const renderError = <Media render={12} />; // $ExpectError const childrenError = <Media>{(matches: number...
ajax/libs/react-instantsearch/5.3.1/Connectors.js
seogi1004/cdnjs
/*! React InstantSearch 5.3.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports',...
app/javascript/mastodon/features/ui/components/actions_modal.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
frontend/contact/ContactForm.js
datoszs/czech-lawyers
import React from 'react'; import {RichText} from '../containers'; import formstatus from '../formstatus'; import {CaptchaForm, TextAreaField, EmailField, TextField} from '../containers/form'; import {sendEmail} from './actions'; import {CONTACT_FORM} from './constants'; export default () => ( <section> <R...
client/src/components/Item.js
teddy-ma/github-comment
import React, { Component } from 'react'; import Avatar from './Avatar.js'; import Content from './Content.js'; import InlineItem from '../styles/InlineItem.js'; class Item extends Component { render() { return ( <InlineItem> <Avatar user={this.props.user} /> <Content content={this.props.co...
src/js/components/Gallery/GalleryImage.js
jamieallen59/jamieallen59.github.io
import React from 'react' import PropTypes from 'prop-types' import CSSModules from 'react-css-modules' import styles from './Gallery.less' import { className } from './Gallery' const GalleryImage = ({ imageUrl, onClick, display = true }) => ( <div onClick={onClick} > <img styleName={display ? `${className}__ima...
src/InputField/InputField.story.js
WolfgaungBeer/scado
import React from 'react'; import { storiesOf } from '@storybook/react'; import { text, boolean } from '@storybook/addon-knobs'; import InputField from './'; const errorMeta = { touched: true, error: 'This Field has an error' }; const warningMeta = { touched: true, warning: 'This Field has an warning' }; storiesOf('I...
boxroom/archive/backup-js-bling-2018-04-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2018-01-11/src/main/js-surface-react.js
js-works/js-surface
import adaptReactLikeComponentSystem from './adaption/adaptReactLikeComponentSystem'; import React from 'react'; import ReactDOM from 'react-dom'; function reactMount(content, targetNode) { ReactDOM.render(content, targetNode); return () => ReactDOM.unmountComponentAtNode(targetNode); } const { createEl...
packages/material-ui-icons/src/Slideshow.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Slideshow = props => <SvgIcon {...props}> <path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" /> </SvgIcon>; Slideshow = pure(Slideshow...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
solium/swift-react-native-hybrid
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
admin/src/components/PopoutPane.js
lojack/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, onLayout: React.PropTypes.func }, componentDidMount () ...
js/ui/Root.js
rabaut/oneroom
import React, { Component } from 'react'; import Welcome from './welcome/welcome'; import Game from './game/game'; export default class Root extends Component { render() { if(true) { return (<Game {...this.props} />); } return (<Welcome />); } }
client/src/Layout.js
AlexQianjin/aquarius
import React from 'react'; import { Outlet, Link } from 'react-router-dom'; function Layout() { const linkStyleClasses = 'text-3xl font-bold no-underline inline-block text-green-600 px-2'; return ( <div> <nav style={{display: 'flex', textAlign: 'center', justifyContent: 'center'}}> ...
app/containers/LanguageProvider/index.js
mamaracas/MEventsRegistration
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
packages/react-reconciler/src/SchedulerWithReactIntegration.new.js
cpojer/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {ReactPriorityLevel} from './ReactInternalTypes'; // Intentionally not named imports because Rollup would...
ajax/libs/cyclejs-core/0.10.1/cycle.js
ColinEberhardt/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Cycle=e()}}(function(){var define,module,exports;retu...
imports/ui/components/client/ClientTabSelector.js
ctagroup/home-app
import React from 'react'; function ClientTabSelector(props) { const generateTab = (data) => { const isActive = (tab) => (props.selectedTab === tab ? 'active' : ''); const linkClasses = `nav-link ${isActive(data.id)}`; const href = `#panel-${data.id}`; return ( <li className="nav-item" key={`na...
ajax/libs/preact-compat/3.0.1/preact-compat.js
extend1994/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('proptypes'), require('preact')) : typeof define === 'function' && define.amd ? define(['proptypes', 'preact'], factory) : (global.preactCompat = factory(global.PropTypes,global.preact)); }(t...
test/stores/TaskStore.spec.js
toddlemoine/tasks
import React from 'react'; import Immutable from 'immutable'; import TaskStore from '../../src/stores/TaskStore'; describe('TaskStore', () => { beforeEach(() => { TaskStore.tasks = Immutable.fromJS({ '19bd3b7c98c6d9717e955dd885a317db': { id: '79bd3b7c98c6d9717e955dd885a317db', ...
ContosoUniversity.Spa.React/ClientApp/src/components/common/TextInput.js
alimon808/contoso-university
import React from 'react'; import PropTypes from 'prop-types'; const TextInput = ({name, label, placeholder, value, onChange, error}) => { let wrapperClass = 'form-group'; if(error && error.length > 0){ wrapperClass += " has-error"; } return ( <div className={wrapperClass}> ...
icon-builder/tpl/SvgIcon.js
mikedklein/material-ui
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import SvgIcon from '{{{ muiRequireStmt }}}'; const {{className}} = React.createClass({ mixins: [PureRenderMixin], render() { return ( <SvgIcon {...this.props}> {{{paths}}} </SvgIcon> ); } }); ...
src/Project.js
ml7757/To-Do-React
import './stylesheets/components.scss'; import React from 'react'; import jQuery from 'jquery'; import TaskList from './TaskList'; class Project extends React.Component{ constructor(){ super(); this.state ={ project: [] } } renderProject(){ // we want to set the state to ...
node_modules/jsx-ast-utils/lib/getPropValue.js
jessest/hugo-foundation-sass
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getPropValue; exports.getLiteralPropValue = getLiteralPropValue; var _values = require('./values'); var _values2 = _interopRequireDefault(_values); function _interopRequireDefault(obj) { return obj && obj.__esModule ? o...
spec/react/tabs/tabs.spec.js
pivotal-cf/pivotal-ui
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-dom/test-utils'; import $ from 'jquery'; import {Tab, LeftTabs, Tabs} from '../../../src/react/tabs'; import MediaSize from '../../../src/react/tabs/media_size'; jest.useFakeTimers(); const mockGetTransitionProgress = jest....
app/containers/Root.js
flocks/ledger-test
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import Routes from '../routes'; type RootType = { store: {}, history: {} }; export default function Root({ store, history }: RootType) { return ( <Provider store={store}> <...
frontend/modules/common/components/FormComponents.js
rustymyers/OpenEats
import React from 'react' import { injectIntl, IntlProvider, defineMessages, formatMessage } from 'react-intl'; import '../css/checkbox.scss' class BaseComponent extends React.Component { constructor(props) { super(props); this.state = { value: this.props.value || '', errors: th...
src/svg-icons/content/backspace.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentBackspace = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12...
Libraries/Network/NetInfo.js
gilesvangruisen/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/utils/nonCorePage-helper.js
PulseTile/PulseTile-React
import React from 'react'; import { nonCorePagesUrls } from '../components/theme/config/nonCorePagesUrls'; /** * This function checks is current URL correspond to non-core page * * @param {string} pathname * @return {boolean} */ export function isPageNonCore(pathname) { let result = false; for (let i = 0, n =...
app/components/ResponsiveButton.js
ryanwashburne/react-skeleton
// React import PropTypes from 'prop-types'; import React from 'react'; // UI import FullscreenDialog from 'material-ui-fullscreen-dialog'; import { Dialog } from 'material-ui'; class ResponsiveButton extends React.Component { state = { mobile: false, normal: false }; render() { co...
lib/svg-icons/device/signal-wifi-1-bar-lock.js
grovelabs/material-ui
'use strict'; var React = require('react/addons'); var PureRenderMixin = React.addons.PureRenderMixin; var SvgIcon = require('../../svg-icon'); var DeviceSignalWifi1BarLock = React.createClass({ displayName: 'DeviceSignalWifi1BarLock', mixins: [PureRenderMixin], render: function render() { return React.cr...
ajax/libs/forerunnerdb/1.3.896/fdb-core+persist.js
sufuf3/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
test/integration/export/pages/dynamic.js
azukaru/next.js
/* global location */ import React from 'react' import Link from 'next/link' export default class DynamicPage extends React.Component { static getInitialProps({ query }) { return { text: query.text } } state = {} componentDidMount() { const [, hash] = location.href.split('#') this.setState({ hash...
ajax/libs/jquery/1.11.0/jquery.min.js
nouveller/cdnjs
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
angular/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
naxtyn45/naxtyn45.github.io
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/follow/followButton.js
motion123/mbookmakerUI
/** * Created by tomihei on 17/05/19. */ import React from 'react'; import styles from './followButton.css'; import IconButton from 'material-ui/IconButton'; import Favorite from 'material-ui/svg-icons/action/favorite'; import FavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; export default class ...
ajax/libs/webshim/1.15.1/dev/shims/moxie/js/moxie-html4.js
Amomo/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...
src/App.js
karaken12/ysfbc-web
import React from 'react'; import {Link} from "react-router-dom"; import './normalize.css'; import './style.scss'; import PageContent from "./components/PageContent"; function App() { return <> <div className="header"> <div className="logo"> <Link to="/"><img src={"/images/spaceship02.svg"} alt="Yo...
pathfinder/vtables/csmservices/src/Report.js
leanix/leanix-custom-reports
import React, { Component } from 'react'; import CommonQueries from './common/CommonGraphQLQueries'; import DataIndex from './common/DataIndex'; import Utilities from './common/Utilities'; import Table from './Table'; class Report extends Component { constructor(props) { super(props); this._initReport = this._in...
app/components/resources/resourcePage.js
nypl-registry/browse
import React from 'react' import ReactDOM from 'react-dom' import { Link } from 'react-router' import { connect } from 'react-redux' import { resourceOverview, resourceByOwi } from '../../utils.js' require('core-js/fn/object/entries') import HeaderNav from '../shared/header_nav.js' import Hero from '../shared/hero.js...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/Badge.js
GoogleCloudPlatform/prometheus-engine
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; var _excluded = ["className", "cssModule", "color", "innerRef", "pill", "tag"]; import React from 'react'; import PropTypes from 'prop-types'; import classNames...
src/js/components/icons/base/Group.js
odedre/grommet-final
/** * @description Group SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prop...
src/mock-data/professional-profile.js
jaiohanlon/portfolio
import React from 'react'; const professionalProfile = { "professionalSkillsTitle": "Professional Skills", "professionalSkillsSubTitle": "All the crazy things he knows...", "professionalSkills": [ { "title": "technology", "skills": [ { "label": "Javascript", "skillLeve...
Prototype/src/LoginService/node_modules/socket.io/node_modules/debug/browser.js
NestorsImagination/Sample-Multiplayer-Shooter
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chro...
ajax/libs/jquery-tools/1.2.7/jquery.tools.min.js
abenjamin765/cdnjs
/*! * jQuery Tools v1.2.7 - The missing UI library for the Web * * dateinput/dateinput.js * overlay/overlay.js * overlay/overlay.apple.js * rangeinput/rangeinput.js * scrollable/scrollable.js * scrollable/scrollable.autoscroll.js * scrollable/scrollable.navigator.js * tabs/tabs.js * tabs/tabs.sli...
docs/src/app/components/pages/components/RefreshIndicator/Page.js
kasra-co/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import refreshIndicatorReadmeText from './README'; import RefreshIndicatorExampl...
ajax/libs/angular.js/1.0.8/angular-scenario.js
hristozov/cdnjs
/*! * jQuery JavaScript Library v1.7.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
mitchellporter/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
test/DropdownToggleSpec.js
natlownes/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import DropdownToggle from '../src/DropdownToggle'; describe('DropdownToggle', function() { const simpleToggle = <DropdownToggle open={false} title='herpa derpa' />; it('renders toggle button', function() { const instance = Reac...
ads/_config.js
vmarteev/amphtml
/** * Copyright 2016 The AMP HTML Authors. All Rights Reserved. * * 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 require...
docs/src/components/nav.js
bhamodi/nuclear-js
import React from 'react' import { BASE_URL } from '../globals' function urlize(uri) { return BASE_URL + uri } export default React.createClass({ render() { const logo = this.props.includeLogo ? <a href={BASE_URL} className="brand-logo">NuclearJS</a> : null const homeLink = this.props.includeL...
ajax/libs/react/0.11.2/react.js
luanlmd/cdnjs
/** * React v0.11.2 */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){var d...
src/popup/components/Card/Cards.js
fluany/fluany
/** * @fileOverview The component to list all cards (Back and front) * @name Cards.js * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { getIndexThingById } from 'reducers/stateManipulate.js' import Card from 'co...
server/sonar-web/src/main/js/apps/settings/components/WildcardsHelp.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/svg-icons/notification/phone-forwarded.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneForwarded = (props) => ( <SvgIcon {...props}> <path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26...
templates/rubix/demo/src/routes/Tables.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Grid, Panel, Table, PanelBody, PanelHeader, FormControl, PanelContainer, } from '@sketchpixy/rubix'; export default class Tables extends React.Component { render() { return ( <div> <Row> <Col sm={6} collapseRight> ...
ajax/libs/backbone-react-component/0.6.4/backbone-react-component-min.js
tjbp/cdnjs
"use strict";!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module&&module.exports){var c=require("react"),d=require("backbone"),e=require("underscore");module.exports=b(c,d,e)}else b(a.React,a.Backbone,a._)}(this,function(a,b,c){function ...
es2015plus/react-redux/src/index.js
lshig/forms-challenge
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './redux/store'; import App from './components/App'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider>, document.getElementById('app') );
src/components/map/Map.js
ArmanAbbasi/react-js-starter-kit
import React from 'react'; import './map.scss'; const handleClick = () => { alert('click 1'); }; const Map = () => { return ( <div className="map"> <button className="map__button" onClick={handleClick}>Btn</button> </div> ); }; export default Map;
src/workflows/generic/components/root/EditSimulationWithFileListing.js
Kitware/HPCCloud
import React from 'react'; import PropTypes from 'prop-types'; import AttachedFileListing from './AttachedFileListing'; // ---------------------------------------------------------------------------- export default function editSimulationWithFiles(props) { return ( <AttachedFileListing owner={props.owner...
demo/js/basicDemo.js
esseb/react-aria-menubutton
import React from 'react'; import ariaMenuButton from '../../src/ariaMenuButton'; const words = ['pectinate', 'borborygmus', 'anisodactylous', 'barbar', 'pilcrow', 'destroy']; class DemoOne extends React.Component { constructor(props) { super(props); this.state = { selected: '', noMenu: false }; this.ari...
src/shared/components/adBanner/adBanner.js
tskuse/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import OutboundLink from 'shared/components/outboundLink/outboundLink'; import styles from './adBanner.css'; const AdBanner = ({ link, imageSource, altText, adBannerText, clickText }) => { if (process.env.NODE_ENV === 'production') { return ( <...
blueprints/layout/files/__test__/layouts/__name__Layout.spec.js
SHBailey/echo-mvp
import React from 'react' describe('(Layout) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
assets/js/src/components/_cartDetails.js
stechDevSP/stechDev
import React from 'react'; import ReactDOM from 'react-dom'; export class CartDetails extends React.Component { constructor(props) { super(props); var self = this; this.goBackClick = this.goBackClick.bind(this); this.finishClick = this.finishClick.bind(this); this.cleanClic...
src/cms/preview-templates/post-preview.js
wall3/wall3.github.io
// @flow strict import React from 'react'; import type { Entry, WidgetFor } from '../../types'; type Props = { entry: Entry, widgetFor: WidgetFor }; const PostPreview = ({ entry, widgetFor }: Props) => { const body = widgetFor('body'); const title = entry.getIn(['data', 'title']); return ( <div classNa...
examples/04 Sortable/Simple/index.js
wagonhq/react-dnd
import React from 'react'; import Container from './Container'; export default class SortableSimple { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b> </p> <p> It i...
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js
pomerantsev/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import Toggle from 'material-ui/Toggle'; const optionsStyle = { maxWidth: 255, marginRight: 'auto', }; /** * This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`. */ export default class DatePi...
NashMicroTShirtSale/Scripts/jquery-1.10.2.min.js
ianlee74/NashMicroTShirtSale
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
src/components/Loader.js
roybailey/research-react
import React from 'react' import loader from 'css-block-loader' let styles = {}; Object.assign(styles, loader); function Loader() { return ( <div className={styles.loader}> <span className={styles.block}></span> <span className={styles.block}></span> <span className={styles.block}></span> ...
src/svg-icons/action/eject.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEject = (props) => ( <SvgIcon {...props}> <path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/> </SvgIcon> ); ActionEject = pure(ActionEject); ActionEject.displayName = 'ActionEject'; export default ActionEjec...
examples/simple-complex-containers/src/ComplexCounterContainer.js
aGuyNamedJonas/slim-redux-react
import React, { Component } from 'react'; import { slimReduxReact } from 'slim-redux-react'; import counterChangeTriggers from './counterChangeTriggers'; import { ComplexCounter } from './ComplexCounter'; const ComplexCounterContainer = (props) => { // Asynchronous code that utilizes change triggers however const ...
src/components/about/About.js
justinkahrs/portfolio
import React from 'react'; import { Col, Image } from 'react-bootstrap'; import profilePic from './me.jpg'; import profileText from './profileText'; import './about.css'; const About = () => ( <Col className="aboutPage" lg={12}> <Col className="profilePic" xs={12} sm={6} md={6} lg={4}> <Image alt="me in ...
src/banksim.js
zagami/banksim
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import Highcharts from 'highcharts'; const instr_en = require('./english.md'); const instr_de = require('./german.md'); import {randomize, randomizeInt, assert} from './helper.coffee'; import {MicroEconomy} from './microeconomy.js'...
xcessiv/ui/src/DatasetExtraction/MainDataExtraction.js
reiinakano/xcessiv
import React, { Component } from 'react'; import './MainDataExtraction.css'; import CodeMirror from 'react-codemirror'; import 'codemirror/lib/codemirror.css'; import 'codemirror/mode/python/python'; import { isEqual } from 'lodash'; import $ from 'jquery'; import { ClearModal } from './Modals'; import { Button, Button...
lib/components/Footer.js
emmenko/redux-react-router-async-example
import React from 'react' import { defineMessages, FormattedMessage } from 'react-intl' const messages = defineMessages({ builtWith: { id: 'footer.builtWith', description: 'Mention how the site is built with', defaultMessage: 'This site is built with <3 using {link}' } }) export default class Footer e...
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasisInverted.js
ben174/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleEmphasisInverted = () => ( <div> <Segment inverted> I'm here to tell you something, and you will probably read me first. </Segment> <Segment inverted secondary> I am pretty noticeable but you might check...
packages/material-ui/src/Table/Tablelvl2Context.js
Kagami/material-ui
import React from 'react'; /** * @ignore - internal component. */ const Tablelvl2Context = React.createContext(); export default Tablelvl2Context;
docs/app/Examples/elements/Step/Content/StepExampleIcons.js
koenvg/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleIcons = () => ( <Step.Group> <Step> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> </Step.Content> ...
fields/types/number/NumberColumn.js
webteckie/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTypes.object, data: React.PropTyp...
ajax/libs/react-redux/5.0.0/redux.min.js
hare1039/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],e):"object"==typeof exports?exports.ReactRedux=e(require("react"),require("redux")):t.ReactRedux=e(t.React,t.Redux)}(this,function(t,e){retu...
src/packages/recompose/__tests__/withReducer-test.js
acdlite/recompose
import React from 'react' import { mount } from 'enzyme' import sinon from 'sinon' import { withReducer, compose, flattenProp } from '../' const SET_COUNTER = 'SET_COUNTER' test('adds a stateful value and a function for updating it', () => { const component = sinon.spy(() => null) component.displayName = 'compone...
src/components/modals/Attachments.react.js
EaglesoftZJ/iGem_Web
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { Container } from 'flux/utils'; import { findDOMNode } from 'react-dom'; import { FormattedMessage } from 'react-intl'; import Modal from 'react-modal'; import { KeyCodes } from '../../constants/ActorAppC...
src/routes/Site/components/SiteView.js
twelch/kit-client-react
import React, { PropTypes } from 'react' import PageLayout from 'layouts/PageLayout' import SiteMenu from '../containers/SiteMenuContainer' import NotFound from 'containers/NotFound' const SiteView = (props, context) => { const {sites, params} = props const siteid = params.siteid let Component = null if (!sit...
client/views/posts/modules/post_info.js
theosp/Telescope
Template[getTemplate('postInfo')].helpers({ pointsUnitDisplayText: function(){ return this.upvotes == 1 ? i18n.t('point') : i18n.t('points'); }, can_edit: function(){ return canEdit(Meteor.user(), this); }, authorName: function(){ return getAuthorName(this); }, ago: function(){ // if post ...
packages/ringcentral-widgets-test/test/userGuide/UserGuide.spec.js
u9520107/ringcentral-js-widget
import React from 'react'; import { shallow, mount } from 'enzyme'; import UserGuide from 'ringcentral-widgets/components/UserGuide'; import Button from 'ringcentral-widgets/components/Button'; describe('<UserGuide />', () => { it('should render corretcly', () => { const wrapper = shallow( <UserGuide ...
exercise-05-solution/src/components/PokemonPage.js
learnapollo/pokedex-react
import React from 'react' import { withRouter } from 'react-router' import { graphql } from 'react-apollo' import gql from 'graphql-tag' import { filter } from 'graphql-anywhere' import PokemonCard from './PokemonCard' import PokemonCardHeader from './PokemonCardHeader' class PokemonPage extends React.Component { ...
pootle/static/js/admin/general/staticpages.js
claudep/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'; import ReactDOM from 'react-dom...
src/components/PlayButton/PlayButton.js
devgeeks/4ZZZfm-app
import React from 'react'; import classNames from 'classnames'; import Tappable from 'react-tappable'; import MdPlayArrow from 'react-icons/lib/md/play-arrow'; import './playbutton.css'; const PlayButton = (props) => { const { handleClick } = props; const cx = classNames({ 'play-button': true, }); return...