path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/components/book_list/new_book_form.js
MaxwellKendall/Book-Project
import React, { Component } from 'react'; const NewBookForm = (props) => { let title, pageLength; let { books, newBook_A_C, exitForm } = props; console.log('newBookform props', props); const AddBooktoMyLibrary = (book) => { let test = books.some( (el, index) => { if (el.title === book.title){ ...
ajax/libs/vue-material/1.0.0-beta-6/components/MdTable/index.js
sufuf3/cdnjs
!(function(e,t){var n,r;if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{n=t("object"==typeof exports?require("vue"):e.Vue);for(r in n)("object"==typeof exports?exports:e)[r]=n[r]}})(this,(function(e){return (funct...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
dsopel94/create-react-app
/** * 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/domain/home/HomeSearchBox.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React from 'react'; import Button from 'react-bootstrap/lib/Button'; import FormControl from 'react-bootstrap/lib/FormControl'; import injectT from '../../../app/i18n/injectT'; class HomeSearchBox extends React.Component { static propTypes = { onSearch: PropTypes.func....
src/docs/examples/TextInputBEM/TextExample.js
choudlet/ps-react-choudlet
import React from 'react'; import TextInputBEM from 'ps-react/TextInputBEM'; /** Required TextBox with error */ export default class ExampleError extends React.Component { render() { return ( <TextInputBEM htmlId="example-optional" label="First Name" name="firstname" onChang...
app/containers/FeaturePage/index.js
ParkarDev/react-resume
/* * FeaturePage * * List all the features */ import React from 'react'; import { connect } from 'react-redux'; import { routeActions } from 'react-router-redux'; import Button from 'Button'; import H1 from 'H1'; import A from 'A'; import styles from './styles.css'; export class FeaturePage extends React.Compon...
app/router/routes.js
ykforerlang/my-react-redux
import React from 'react' import { Route, IndexRoute } from 'react-router' import Home from '../components/home/Home' import About from '../components/about/About' import PropsStore from '../components/propsStore/PropsStore' export default ( <Route path="/"> <IndexRoute component={Home} /> <Route p...
docs/app/Examples/elements/Input/Variations/InputExampleRightLabeled.js
clemensw/stardust
import React from 'react' import { Dropdown, Input } from 'semantic-ui-react' const options = [ { text: '.com', value: '.com' }, { text: '.net', value: '.net' }, { text: '.org', value: '.org' }, ] const InputExampleRightLabeled = () => ( <Input label={<Dropdown defaultValue='.com' options={options} />} ...
src/components/AreaViewer/index.js
rodrigo-puente/poke-nostalgia
import React from 'react'; import styles from '../../styles/AreaViewer'; import areaImage from '../../images/poke_map.png'; export const AreaViewer = ({pokemonName, isLoading}) => { return ( <div className="container" style={ styles.container }> <div className="gbScreen" style={ styles.gbScreen }> ...
packages/material-ui-icons/src/Publish.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Publish = props => <SvgIcon {...props}> <path d="M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z" /> </SvgIcon>; Publish = pure(Publish); Publish.muiName = 'SvgIcon'; export default Publish;
src/client/js/components/Finish.js
larbreapages/bookbuilder
import React from 'react'; import Button from 'antd/lib/button'; import Icon from 'antd/lib/icon'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { reset } from '../actions/index'; const Finish = (props) => { return (<div className="finish"> <Icon type="check-circ...
src/svg-icons/action/flight-land.js
verdan/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...
ajax/libs/jssip/0.7.7/jssip.js
sashberd/cdnjs
/* * JsSIP v0.7.7 * the Javascript SIP library * Copyright: 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan) * Homepage: http://jssip.net * License: MIT */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&def...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
WangCrystal/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import InviteUserStore from 'stores/InviteUserStore'; import { AsyncActionStates } from 'constants/ActorAppConstants'; import AvatarItem from 'components/common/AvatarItem.react'; ...
src/parser/shaman/shared/maelstromchart/Maelstrom.js
fyruna/WoWAnalyzer
//Based on Main/Mana.js and parser/VengeanceDemonHunter/Modules/PainChart //Note: For those that might wish to add Boss Health in the future- some of the work is already done here: https://github.com/leapis/WoWAnalyzer/tree/focusChartBossHealth import React from 'react'; import PropTypes from 'prop-types'; import { f...
src-ui/map-list/map-list.js
cdaniel/atlas2
/* Copyright 2017, 2018 Krzysztof Daniel. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
app/utils/devtools.component.js
dleszcz/ladder
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-w" defaultIsVisible={fal...
src/svg-icons/action/settings-voice.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsVoice = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3...
Sources/ewsnodejs-server/node_modules/jss/src/index.js
nihospr01/OpenSpeechPlatform-UCSD
// @flow /** * A better abstraction over CSS. * * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present * @website https://github.com/cssinjs/jss * @license MIT */ import Jss from './Jss' import type StyleSheet from './StyleSheet' import type { ConditionalRule, KeyframesRule, StyleRule, ViewportRule, ...
client/modules/Post/__tests__/components/PostCreateWidget.spec.js
svolkov92/TextStreams
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { FormattedMessage } from 'react-intl'; import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const props = { ...
ajax/libs/rxjs/2.2.28/rx.all.compat.js
stefanocudini/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 }; v...
src/index.js
ndxm/nd-react-scaffold
'use strict'; import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import configureStore from './store/configureStore'; const store = configureStore(); let Root; if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'beta' || process.env.NODE_ENV === 'debug') { ...
src/components/AboutPage.js
eodolphi/rd-converter
import React from 'react'; import '../styles/about-page.css'; // Since this component is simple and static, there's no parent container for it. const AboutPage = () => { return ( <div> <h2 className="alt-header">About</h2> <p> Convert RD-coordinates to GPS-coordinates and vice versa </p...
stories/containers/channels/channel-card-list-item.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { number, select } from '@storybook/addon-knobs' import { action } from '@storybook/addon-actions' import { infoSelectors } from 'reducers/info' import { tickerSelectors } from 'reducers/ticker' import { ChannelCardListItem } from 'components...
node_modules/material-ui/svg-icons/action/view-list.js
firdiansyah/crud-req
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
modules/Redirect.js
yongxu/react-router
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './PropTypes'; var { string, object } = React.PropTypes; /** * A <Redirect> is used to declare another URL path a client shou...
[4]. Project/DianShang/Component/Home/SJHomeMiddleBottomView.js
knightsj/RN_Demo
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; var data = require('../../LocalData/SJHome_D4.json') var CommonItemView = require('../Common/SJCommonItemView') var dataArr0 = data.data; var itemData0 = dataArr0[0]; var MiddleBottomView = React.cr...
docs/src/pages/customization/components/ClassesNesting.js
kybarg/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; const useStyles = makeStyles({ root: { background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)', borderRadius: 3, border: 0, color: 'white', height: 48, paddi...
src/routes/Election/routes/Media/layouts/MediaDetail/MediaDetail.js
imrenagi/rojak-web-frontend
import React from 'react' import { Container, Grid, Button, Dimmer, Loader, Image } from 'semantic-ui-react' import NewsSection from '../../components/NewsSection' import RelatedTagSection from '../../components/RelatedTagSection' import SentimentChart from '../../components/SentimentChart' import { bindActionCreator...
react/node_modules/react-d3-cloud/lib/__tests__/WordCloud.spec.js
hys-rabbit/ReactWordCloud
'use strict'; var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props &&...
app/containers/CreateGamePage.js
cdiezmoran/playgrounds-desktop
// @flow import React, { Component } from 'react'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; import type { Dispatch } from '../actions/types'; // import actions import { addGameRequest, fetchEditGameIfNeeded, editGameRequest } from '../actions/game'; import { requestSignatureCa...
react-flux-mui/js/material-ui/src/svg-icons/maps/local-car-wash.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCarWash = (props) => ( <SvgIcon {...props}> <path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2...
packages/mineral-ui-icons/templates/Icon.template.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function {{componentName}}(props: IconProps) { const iconProps = { rtl: {{rtl}}, ...props }; return ( <Icon {...ic...
src/svg-icons/action/class.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionClass = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/> </SvgIcon> ); ActionClass = pure(ActionClass);...
ajax/libs/react-native-web/0.12.1/exports/TouchableOpacity/index.min.js
cdnjs/cdnjs
"use strict";function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t}).apply(this,arguments)}function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Obje...
app/components/children/OutsiderView.js
asconwe/formulate
import React, { Component } from 'react'; import axios from 'axios'; import OutsiderElement from './outsiderView-children/OutsiderElement'; import formElementLibrary from './formBuilder-children/formElementLibrary'; const whiteBackground = { background: "white" }; class OutsiderView extends Component { cons...
src/components/icons/MessageAlertIcon.js
austinknight/ui-components
import React from 'react'; const MessageAlertIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M13,10H11V6H13M13,14H11V12H13M20,2H4A2,2 0 0,0 2,4V22L6,18H20A2,2 0 0,0 22,16V4C22,2.89 21.1,2 20,2Z"...
src/views/authPage/AuthPage.js
BudIT/vclub
import React from 'react'; import { Field, reduxForm, formValueSelector } from 'redux-form'; import { connect } from 'react-redux'; import compose from 'recompose/compose'; import withHandlers from 'recompose/withHandlers'; import { auth } from 'vclub/redux/club/auth'; import VKLogin from 'vclub/components/api/vkAuth'...
ajax/libs/react-modal/0.0.5/react-modal.min.js
luhad/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.ReactModal=e()}}(function(){return function e(t,n,r){...
src/svg-icons/communication/comment.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationComment = (props) => ( <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Co...
pathfinder/vtables/applicationdataqualitycompleteness/src/common/TableUtilities.js
leanix/leanix-custom-reports
import React from 'react'; import Utilities from './Utilities'; import Link from './Link'; import LinkList from './LinkList'; /* formatting functions for the table */ const OVERFLOW_CELL_STYLE = { maxHeight: '100px', overflow: 'auto' }; function formatLinkFactsheet(setup) { const baseUrl = Utilities.getFrom(setup...
Echo_Frontend/src/components/Example.js
ideaworld/Echo
import React from 'react'; const Example = () => { return ( <div> Example </div> ); }; Example.propTypes = { }; export default Example;
src/Spring.js
wilfreddenton/react-motion
import React from 'react'; import components from './components'; module.exports = components(React);
src/Parser/Hunter/BeastMastery/Modules/Features/AlwaysBeCasting.js
hasseboulen/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellLink from 'c...
ajax/libs/cyclejs-core/0.20.4/cycle.js
khasinski/cdnjs
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Cycle = f()}})...
src/components/App.js
aurigadl/EnvReactAsk
import React from 'react' import {Link} from 'react-router' import auth from '../utils/auth' import { Menu, Affix, Popover, Layout, Icon, Button} from 'antd'; const SubMenu = Menu.SubMenu; const {Sider} = Layout; const content = ( <Menu mode="vertical"> <Menu.Item key="1"> <Link to='/pageOne'> ...
ajax/libs/vis/1.1.0/vis.js
fastest963/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 1.1.0 * @date 2014-06-06 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
pkg/interface/groups/src/js/components/lib/icons/icon-spinner.js
ngzax/urbit
import React, { Component } from 'react'; export class Spinner extends Component { render() { let classes = !!this.props.classes ? this.props.classes : ""; let text = !!this.props.text ? this.props.text : ""; let awaiting = !!this.props.awaiting ? this.props.awaiting : false; if (awaiting) { ...
client/templates/globals/connectioninfo.js
RobNeXX/4minitz
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import {ReactiveVar} from 'meteor/reactive-var'; import $ from 'jquery'; let templateInstance; // allow showDelay() to access the template Template.connectionInfo.onCreated(function() { this.currentSymbol = new ReactiveVar(fal...
ajax/libs/analytics.js/2.3.27/analytics.min.js
ddeveloperr/cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
generators/src/templates/javascripts/main.js
gzgogo/generator-react-web-app
import '../stylesheets/common-style.styl'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App' ReactDOM.render( <App />, document.getElementById('app-wrapper') );
ajax/libs/flat-ui/2.0.0/js/jquery-1.8.3.min.js
dhenson02/cdnjs
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==...
headsupper/base/static/js/app.browserify.js
peterbe/headsupper
import React from 'react'; class Form extends React.Component { render() { alert("works") return <button type="submit">Save</button> } } React.render(<Form/>, document.getElementById('form'));
frontend/src/components/pages/NotFound/NotFound.js
thebillkidy/Brewr-Site
import MainLayout from '../../layouts/MainLayout'; import React from 'react'; export default class NotFound extends React.Component { constructor(props) { super(props); } render() { return ( <MainLayout> Not Found </MainLayout> ); } }
flow-typed/npm/eslint-config-prettier_vx.x.x.js
alexreardon/raf-stub
// flow-typed signature: 4bf0e5d69e0057ce27b15b595ceaebe6 // flow-typed version: <<STUB>>/eslint-config-prettier_v^6.0.0/flow_v0.102.0 /** * This is an autogenerated libdef stub for: * * 'eslint-config-prettier' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to ...
ajax/libs/intl-tel-input/5.1.5/js/intlTelInput.js
dhowe/cdnjs
/* International Telephone Input v5.1.5 https://github.com/Bluefieldscom/intl-tel-input.git */ // wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js (function(factory) { if (typeof define === "function" && define.amd) { define([ "jquery" ], function($) { factory($, window...
src/js/components/Progress.js
karatechops/grommet-fsi
import React, { Component } from 'react'; const CLASS_ROOT = 'progress'; export default class Progress extends Component { render() { return ( <div className={CLASS_ROOT} style={{width: `${this.props.percent}%`}}></div> ); } };
test/index.js
npbee/react-gateway
import {expect} from 'chai'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { Gateway, GatewayDest, GatewayProvider } from '../src/index.js'; function render(jsx) { return ReactDOMServer.renderToStaticMarkup(jsx); } function assertEqual(actual, expected) { expect(render(ac...
imports/ui/pages/teams/Teams.js
KyneSilverhide/team-manager
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, Button } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import TeamsList from '../../containers/teams/TeamsList.js'; const Teams = () => ( <div className="Teams"> <Row> <Col xs={ 12 }> <div clas...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxdataadapter.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxDataAdapter = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes()...
src/client/assets/js/features/driver/components/Publish/Publish.js
me-box/platform-sdk
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class Publish extends React.Component { render(){ return <h1> publish </h1> } }
test/unit/client/common/components/dropdown-overlay.js
jmeas/finance-app
import React from 'react'; import {shallow} from 'enzyme'; import DropdownOverlay from '../../../../../client/common/components/dropdown-overlay'; describe('DropdownOverlay', function() { describe('rendering with no `onClick` prop', () => { beforeEach(() => { this.onClick = stub(); this.wrapper = sha...
src/svg-icons/action/alarm-on.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOn = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0...
src/components/local-form-component.js
nikitka/react-redux-form
import React from 'react'; import PropTypes from 'prop-types'; import Form from './form-component'; import combineForms from '../reducers/forms-reducer'; import { createStore } from 'redux'; import omit from '../utils/omit'; class LocalForm extends React.Component { constructor(props) { super(props); this.s...
src/components/Header.js
vijayporwal/react-component-lifecycle
import React from 'react'; export default class Header extends React.Component { render() { return ( <header>{this.props.headerLabel}</header> ); } }
examples/01 Dustbin/Single Target/index.js
tomulin1/react-dnd
import React from 'react'; import Container from './Container'; export default class DustbinSingleTarget { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Single%20Target'>Browse the Source</a></b> </p> <p> ...
lib/components/pages/Forbidden.js
Baqend/coremedia
import React from 'react' export default function Forbidden () { return ( <div> <div className="header"> <h1>Forbidden</h1> </div> <div className="content"> <p> You are not authorized to see the XXX page </p> </div> </div> ) }
src/components/search_bar.js
silky098/Youtube-React-Search
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } render() { return ( <div className="search-bar"> <input placeholder="search..." value={this.state.term} onChange...
desktop-application/node_modules/material-ui/lib/table/table-row.js
santosh-surya/pcb-cnc-machine
'use strict'; 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; }; Object.defineProperty(exports, "__esModule", {...
src/components/video_list.js
iamwithnail/react-redux
/** * Created by chris on 04/03/2017. */ import React from 'react'; import VideoListItem from './video_list_item' const VideoList = (props) => { const videoItems = props.videos.map((video) => { return ( <VideoListItem onVideoSelect={props.onVideoSelect} key={v...
docs/src/app/components/pages/get-started/Installation.js
tan-jerene/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...
app/javascript/mastodon/features/notifications/components/column_settings.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
src/components/Admin/AdminStudents/Student.js
unihackhq/skilled-acolyte-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Button } from 'bloomer'; // TODO: make student specific UI const Student = ({ student: s }) => ( <React.Fragment> <pre>{JSON.stringify(s, null, 4)}</pre> <Button render={props => <Link to={`...
src/js/components/AccordionPanel.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Header from './Header'; import Button from './Button'; import ListItem from './ListItem'; import CaretNextIcon from './icons/bas...
packages/expo-dev-menu/vendored/react-native-gesture-handler/src/Swipeable.js
exponent/exponent
// @flow // Similarily to the DrawerLayout component this deserves to be put in a // separate repo. Although, keeping it here for the time being will allow us // to move faster and fix possible issues quicker import React, { Component } from 'react'; import { Animated, StyleSheet, View, I18nManager } from 'react-nati...
src/index.js
shsaci/cobra-telegram
import React from 'react' import ReactDOM from 'react-dom' import {Router, Route, hashHistory} from 'react-router' import App from './components/App' import About from './components/About' import Header from './components/Header' document.addEventListener('DOMContentLoaded', () => { ReactDOM.render( <Router his...
packages/core/content-type-builder/admin/src/pages/ListView/index.js
wistityhq/strapi
import React from 'react'; import { useTracking } from '@strapi/helper-plugin'; import Plus from '@strapi/icons/Plus'; import ArrowLeft from '@strapi/icons/ArrowLeft'; import Check from '@strapi/icons/Check'; import Pencil from '@strapi/icons/Pencil'; import { Button } from '@strapi/design-system/Button'; import { Link...
javascript/jquery-1.4.3.min.js
nyeholt/silverstripe-frontend-dashboards
/*! * jQuery JavaScript Library v1.4.3 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
tests/layouts/PageLayout.spec.js
EricThsi/thsi-react-admin
import React from 'react' import PageLayout from 'layouts/PageLayout/PageLayout' import { shallow } from 'enzyme' describe('(Layout) PageLayout', () => { it('renders as a <div>', () => { shallow(<PageLayout />).should.have.tagName('div') }) it('renders a project title', () => { shallow(<PageLayout />).f...
client/src/components/instructor/InstructorCourseRow.js
yegor-sytnyk/contoso-express
import React from 'react'; const InstructorCourseRow = (props) => { let course = props.course; let activeClass = props.selectedCourseId === course.id ? 'success' : ''; return ( <tr className={activeClass}> <td className="tools"> <a href="#" onClick={props.onSelectClick...
app/components/Notes/NotesList.js
LlamaSantos/react_day4
import React from 'react'; export default React.createClass({ render() { var notes = this.props.notes.map(function(note, index){ return <li className="list-group-item" key={index}> {note} </li> }); return ( <ul className="list-group"> {notes} </ul> ); } });
ajax/libs/forerunnerdb/1.3.385/fdb-core+views.min.js
sreym/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
src/svg-icons/action/open-in-browser.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInBrowser = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/> </SvgIcon> ); ...
ajax/libs/analytics.js/2.3.22/analytics.min.js
tonytomov/cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
IntegrationTests/WebSocketTest.js
forcedotcom/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. * * @flow * ...
examples/js/advance/demo.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import EditTypeTable from './edit-type-table'; import InsertDefaultValueTable from './insert-default-value-table'; import DataInsertTypeTable from './insert-type-table'; import InsertErrorHandleTable from './insert-error-handle-table'; import AutoRowKeyTable from './au...
src/client/components/DeploymentFormComponent.js
aaronpanch/hercules
import React from 'react'; import Input from './InputComponent'; import FormRow from './FormRowComponent'; import ajax from '../ajax'; require('../styles/side-menu.scss'); class DeploymentForm extends React.Component { constructor(props) { super(props); this.state = { ref: '', environment: '' ...
ajax/libs/forerunnerdb/1.3.796/fdb-legacy.js
nolsherry/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...
ajax/libs/yasr/2.5.1/yasr.bundled.min.js
noraesae/cdnjs
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){...
src/components/RepoItem.js
bmacheski/gh-contributors
'use strict'; import React from 'react'; import { Router, Link } from 'react-router'; export default React.createClass({ render: function() { return ( <li> <div className="pure-g repo-outer-container"> <div className="pure-u-2-3"> <Link to="contribresults" params={{ username:...
src/components/List/index.js
kfbow/inventory-app
import React from 'react'; import RowHead from 'components/Row/RowHead'; import Row from 'components/Row'; const List = ({ columns, data }) => { if (data.size) { return ( <div> <RowHead columns={columns} /> { data.map(el => ...
pages/rundeclaration/index.js
jeffiar/lqrun-web-app
import React from 'react'; import Layout from '../../components/Layout'; import Link from '../../components/Link' import s from './styles.css'; class AboutPage extends React.Component { render() { return ( <Layout className={s.content}> <main> <h2>Test Page</h2> <p> The c...
ajax/libs/foundation/4.0.5/js/vendor/jquery.js
timnew/cdnjs
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
node_modules/react-router/es6/IndexRoute.js
silky098/Youtube-React-Search
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
src/components/ShareExperience/common/ExperienceInYear.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import Select from 'common/form/Select'; import InputTitle from './InputTitle'; import shareStyles from './share.module.css'; import { experienceInYearOptions } from './optionMap'; const ExperienceInYear = ({ jobTitle, experienceInYear, onChange }) => (...
src/utils/bundle.js
brucecham/redux-saga
import React from 'react' /* * 代码分割模型,调用该模型的方式如下。 * import SearchContainer from 'bundle-loader?lazy!./containers/Search/searchContainer'; * * const Search = () => ( * <Bundle load={SearchContainer}> * {(Search) => <Search />} * </Bundle> * ) */ export default class Bundle extends React...
packages/material-ui-icons/src/ExpandMoreOutlined.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z" /> , 'ExpandMoreOutlined');
node_modules/_antd@2.13.4@antd/es/affix/index.js
ligangwolai/blog
import _defineProperty from "babel-runtime/helpers/defineProperty"; import _extends from "babel-runtime/helpers/extends"; import _classCallCheck from "babel-runtime/helpers/classCallCheck"; import _createClass from "babel-runtime/helpers/createClass"; import _possibleConstructorReturn from "babel-runtime/helpers/possib...
packages/bonde-admin/src/mobilizations/blocks/components/block-miniature/index.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import classnames from 'classnames' // Current module dependencies if (require('exenv').canUseDOM) require('./index.scss') const isActive = (selected, layout) => JSON.stringify(selected) === JSON.stringify(layout) const BlockMiniature = ({ selectedLayout, l...
docs/app/Examples/views/Advertisement/Types/AdvertisementExampleSmallButton.js
shengnian/shengnian-ui-react
import React from 'react' import { Advertisement } from 'shengnian-ui-react' const AdvertisementExampleSmallButton = () => ( <Advertisement unit='small button' test='Small Button' /> ) export default AdvertisementExampleSmallButton