path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
packages/material-ui-icons/src/Flight.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Flight = props => <SvgIcon {...props}> <path d="M10.18 9" /><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z" /> </SvgIcon>...
test/webpack-demos-master/demo16/index.js
fire17643/Vue-resource
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, Link, IndexRoute } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; require('./app.css'); var App = React.createClass({ render: function () { return ( <div> <header> ...
ajax/libs/yasgui/1.0.4/yasgui.bundled.min.js
hibrahimsafak/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleSlider.js
shengnian/shengnian-ui-react
import React from 'react' import { Checkbox } from 'shengnian-ui-react' const CheckboxExampleSlider = () => ( <Checkbox slider /> ) export default CheckboxExampleSlider
RNApp/node_modules/react-native/local-cli/library/library.js
abhaytalreja/react-native-telescope
/** * 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. */ 'use stric...
Libraries/CustomComponents/ListView/ListView.js
ljhsai/react-native
/** * Copyright (c) 2015, Facebook, Inc. All rights reserved. * * Facebook, Inc. ("Facebook") owns all right, title and interest, including * all intellectual property and other proprietary rights, in and to the React * Native CustomComponents software (the "Software"). Subject to your * compliance with these t...
webpack.config.js
sloiselle/reptile
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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. */ /* eslint-disable global-re...
src/pages/page-2.js
srsheldon/scrootinEyes
import React from 'react' import Link from 'gatsby-link' const SecondPage = () => ( <div className="container"> <h2>This page is just a test</h2> <p>experimenting with gatsby-link</p> </div> ) export default SecondPage
packages/wix-style-react/src/SidebarSectionTitle/test/SidebarSectionTitle.spec.js
wix/wix-style-react
import React from 'react'; import { createRendererWithUniDriver, cleanup } from '../../../test/utils/unit'; import SidebarSectionTitle from '../SidebarSectionTitle'; import { sidebarSectionTitlePrivateDriverFactory } from './SidebarSectionTitle.private.uni.driver'; describe('SidebarSectionTitle', () => { const rend...
docs/app/Examples/modules/Dropdown/States/DropdownExampleError.js
aabustamante/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const options = [ { key: 1, text: 'Choice 1', value: 1 }, { key: 2, text: 'Choice 2', value: 2 }, ] const DropdownExampleError = () => ( <Dropdown text='Dropdown' options={options} error /> ) export default DropdownExampleError
src/serviceWorker.js
cataclyst/archivist-ui
// This optional code is used to register a service worker. // register() is not called by default. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on subsequent visits to a p...
app/components/AudioDetection.js
jrhalchak/BeatsPM
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import { analyze } from '../utils/web-audio-beat-detection'; import AudioPlayer from './AudioPlayer'; import styles from './AudioDetection.css'; import { setDetectedBpm, } from '../actions/bpmActions'; @connect() export def...
src/js/components/ui/reduxForm/HorizontalSelect.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * 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...
Libraries/CustomComponents/ListView/ListView.js
tadeuzagallo/react-native
/** * Copyright (c) 2013-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. * * Facebook,...
node_modules/react-overlays/lib/utils/getContainer.js
caughtclean/but-thats-wrong-blog
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getContainer; var _reactDom = require('react-dom'); var _reactDom2 = _interopRequireDefault(_reactDom); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getContai...
packages/react/src/components/DataTable/__tests__/TableBatchActions-test.js
carbon-design-system/carbon-components
/** * 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 React from 'react'; import { mount } from 'enzyme'; import { TableBatchActions } from '../'; import { settings } from 'carbon-componen...
src/modules/Auth/RequireLoggedIn.js
prjctrft/mantenuto
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { populateUser } from 'modules/user/redux'; export class RequireLoggedInComponent extends Component { static propTypes = { tryingAuth: PropTypes...
src/svg-icons/editor/insert-link.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3...
app/javascript/mastodon/containers/compose_container.js
glitch-soc/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
packages/stockflux-components/src/components/buttons/borderless-buttons/app-shortcuts/News.js
owennw/OpenFinD3FC
import React from 'react'; import { Launchers } from 'stockflux-core'; import NewsIconSmall from '../../../glyphs/small/news.svg'; import NewsIcon from '../../../glyphs/launcher/news.svg'; import RoundButton from '../../round-button/RoundButton'; export default ({ symbol, name, small, disabled, intentsEnabled }) => { ...
app/containers/UGBlogPage/index.js
perry-ugroop/ugroop-react-dup2
import React from 'react'; import { connect } from 'react-redux'; import UGSubpagesHeader from '../../components/UGSubpagesHeader'; import UGBreadcrumbs from '../../components/UGBreadcrums'; import UGSubpagesContainer from '../../components/UGSubpagesContainer'; // import blogPic from './assets/photo2.png'; // impor...
core/modules/quickedit/js/models/EntityModel.js
vladimirrem/d8tg
/** * @file * A Backbone Model for the state of an in-place editable entity in the DOM. */ (function (_, $, Backbone, Drupal) { 'use strict'; Drupal.quickedit.EntityModel = Drupal.quickedit.BaseModel.extend(/** @lends Drupal.quickedit.EntityModel# */{ /** * @type {object} */ defaults: /** @...
test/js/release_test/ViroMaterialVideoTest.js
viromedia/viro
'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import { ViroScene, ViroMaterialVideo, ViroSphere, ViroOmniLight, ViroSceneNavigator, ViroMaterials, ViroText, ViroUtils, ViroImage, } from 'react-viro'; var createRea...
third_party/ckeditor/_source/core/command.js
sgarcavi/testlink
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * Creates a command class instance. * @class Represents a command that can be executed on an editor instance. * @param {CKEDITOR.editor} editor The editor instance th...
src/components/DataTable/TableToolbarMenu.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 cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { settings } from 'carbon-components'; imp...
src/Button.js
poslavsky/react-ui
import React, { Component } from 'react'; import classNames from 'classnames'; export default class Button extends Component { // propTypes: { // disabled: React.PropTypes.bool, // compact: React.PropTypes.bool, // primary: React.PropTypes.bool, // scary: React.PropTypes.bool, // type: React.PropTypes.strin...
Libraries/Components/Touchable/TouchableHighlight.js
lstNull/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...
client2/src/components/react-burger-menu/src/CrossIcon.js
gdomorski/CodeOut
'use strict'; import React from 'react'; import Radium from 'radium'; let CrossIcon = Radium(React.createClass({ propTypes: { styles: React.PropTypes.object }, getCrossStyle(type) { return { position: 'absolute', width: 3, height: 14, top: 14, right: 18, cursor: 'po...
src/components/Loading.js
ncaron/local-weather
import React from 'react'; import PropTypes from 'prop-types'; const Loading = ({ message }) => { return ( <h1 className="loading">{message}</h1> ); }; Loading.propTypes = { message: PropTypes.string.isRequired }; export default Loading;
ajax/libs/6to5/3.5.1/browser.js
Sneezry/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.to5=e()}}(function(){var define,module,exports;return...
app/components/ExerciseCard/ExerciseCard.js
sunnymis/Swoleciety
import React from 'react'; import PropTypes from 'prop-types'; import ExerciseDetail from '../ExerciseDetail/ExerciseDetail'; require('./ExerciseCard.scss'); class ExerciseCard extends React.Component { static defaultProps = { details: {}, onEdit: () => { }, onDelete: () => { }, }; static propType...
ajax/libs/6to5/1.14.13/browser-polyfill.js
luanlmd/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...
src/components/deck-snippet/body/footer/views.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import Icon from "../../../icon"; export const DSViews = ({views}) => { return ( <div className="deckSnippet__body--footer-views"> <Icon name="views"/> <p>{views || 0}</p> </div> ); }; export default DSViews; DSViews.propT...
Examples/UIExplorer/TextInputExample.ios.js
folist/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
packages/ringcentral-widgets/components/ConferencePanel/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import formatNumber from 'ringcentral-integration/lib/formatNumber'; import messages from 'ringcentral-integration/modules/Conference/messages'; import Switch from '../Switch'; import i18n from './i18n'; i...
src/svg-icons/device/brightness-low.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessLow = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
framework/assets/yii.gridView.js
alexinator1/yii2
/** * Yii GridView widget. * * This is the JavaScript widget used by the yii\grid\GridView widget. * * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ (function ($) { ...
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/dist/rx.lite.compat.js
dproebsting/GroupEight
// 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 }; ...
src/components/Label/Label.js
emanualjade/react-jade
import React from 'react'; import PropTypes from 'prop-types'; function Label({htmlFor, label, required}) { return ( <label style={{display: 'block'}} htmlFor={htmlFor}> {label} {required && <span style={{color: 'red'}}> *</span>} </label> ) } Label.propTypes = { /** HTML ID for associated input *...
classic/src/scenes/wbui/TooltipSectionListItemDivider.js
wavebox/waveboxapp
import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { withStyles } from '@material-ui/core/styles' import classNames from 'classnames' import { Divider } from '@material-ui/core' import ThemeTools from 'wbui/Themes/ThemeTools' const styles = (theme) => ({ root: { background...
assets/js/jquery-tiptip/jquery-1.10.2.js
linksync/woo_qbo
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
src/icons/FormatUnderlinedIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FormatUnderlinedIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 34c6.63 0 12-5.37 12-12V6h-5v16c0 3.87-3.13 7-7 7s-7-3.13-7-7V6h-5v16c0 6.63 5.37 12 12 12zm-...
frontend/src/components/posting/edit.js
1905410/Misago
import React from 'react'; //jshint ignore:line import Editor from 'misago/components/editor'; //jshint ignore:line import Form from 'misago/components/form'; import Container from './utils/container'; //jshint ignore:line import Loader from './utils/loader'; //jshint ignore:line import Message from './utils/message'; ...
src/client/xmls/components/xml-list/list.js
jordond/xmlr
import React from 'react' import { inject, observer } from 'mobx-react' import ListItem from './list-item' /** * Renders the list of XMLModel's * * @param {Object} props * @param {Object<XmlStore>} props.xmlStore - Reference to the XML Store * @returns */ function List({ xmlStore: { list, filterText } }) { re...
packages/material-ui-icons/src/PrintRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 8H5c-1.66 0-3 1.34-3 3v4c0 1.1.9 2 2 2h2v2c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-2h2c1.1 0 2-.9 2-2v-4c0-1.66-1.34-3-3-3zm-4 11H9c-.55 0-1-.45-1-1v-4h8v4c0 .55-.45 1-1 1zm4-7c-.55 0-1-.45-1-1s.45-1 1-1 ...
node_modules/core-js/client/library.js
essenlive/electroProto
/** * core-js 2.4.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2016 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
src/Event/components/EventComments.js
jirkae/hobby_hub
import React, { Component } from 'react'; import { connect } from "react-redux"; import moment from 'moment'; import { Row, Col } from 'react-bootstrap'; import { addComment } from './../actions/eventActionCreators'; class EventComments extends Component { constructor(props) { super(props); this.s...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
crod93/googlePlacesEx-react-native
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
html.js
denovo/pete-richardson.com
import React from 'react' import Helmet from "react-helmet" import { prefixLink } from 'gatsby-helpers' import { GoogleFont, TypographyStyle } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ displayName: 'HTML', propT...
src/client.js
jmpallot/react-redux-universal-hot-example
/* global __DEVTOOLS__ */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import createStore from './redux/create'; import ApiClient from './ApiClient'; import universalRouter from './universalRouter'; co...
tests/baselines/reference/tsxReactEmit6.js
minestarks/TypeScript
//// [tests/cases/conformance/jsx/tsxReactEmit6.tsx] //// //// [file.tsx] declare module JSX { interface Element { } interface IntrinsicElements { [s: string]: any; } } //// [react-consumer.tsx] namespace M { export var React: any; } namespace M { // Should emit M.React.createElement // and M.React.__s...
ajax/libs/orb/1.0.7/orb.js
steadiest/cdnjs
/** * orb v1.0.7, Pivot grid javascript library. * * Copyright (c) 2014-2015 Najmeddine Nouri <devnajm@gmail.com>. * * @version v1.0.7 * @link http://nnajm.github.io/orb/ * @license MIT */ 'use strict'; ! function(e) { if ("object" == typeof exports && "undefined" != typeof module) module.exports = e(); ...
themes/frontend/assets/reactjs/process/js/SearchCarModel.js
fonea/velon
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import config from './config'; import _ from 'lodash'; export default class SearchCarModel extends React.Component { constructor(props){ super(props); this.state = { models: [],...
src/component/CreateTagButton.js
rsuite/rsuite-tag
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button } from 'rsuite'; import omit from 'lodash/omit'; const propTypes = { inputMaxLength: PropTypes.number, onInputConfirm: PropTypes.func }; const defaultProps = { inputMaxLength: 128 }; class CreateButton extends Compone...
src/svg-icons/editor/format-color-reset.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorReset = (props) => ( <SvgIcon {...props}> <path d="M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31zm-.88 3.12L12.5 12.5 5.27 5.27 4 6.55l3.32 3.32C6.55 11.32 6 12...
ajax/libs/6to5/2.8.0/browser-polyfill.js
taydakov/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...
node_modules/material-ui/svg-icons/action/reorder.js
captify-iolenchenko/leaderboard
'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...
docs/src/pages/components/switches/FormControlLabelPosition.js
lgollut/material-ui
import React from 'react'; import Switch from '@material-ui/core/Switch'; import FormGroup from '@material-ui/core/FormGroup'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormControl from '@material-ui/core/FormControl'; export default function FormControlLabelPosition() { return ( ...
src/home.js
glenchao/DidVisit
import React, { Component } from 'react'; import { StyleSheet, Text, View, NativeModules, NativeEventEmitter, TouchableHighlight, ScrollView, Dimensions, } from 'react-native'; import { observer } from 'mobx-react/native'; import { generate } from 'shortid'; import Visit from './visit'...
code-on-demand/bootstrap.js
comopra/choirs-submit
import EditorContainer from "./EditorContainer.jsx"; import React from "react"; import { render } from "react-dom"; import { Provider } from "react-redux"; import editorStore from "./editor-store"; function appendContainer() { const div = document.createElement( "div" ); document.body.appendChild( div ); ...
examples/js/style/td-class-function-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; ...
assets/Project/src/views/App/_tests_/App.spec.js
believer/atom-react-alt-templates
import React from 'react' import { App } from '../App' describe('App', () => { let component beforeEach(() => { component = shallow( <App /> ) }) it('should render', () => { expect(component.type()).to.eql('div') }) })
js/jqwidgets/demos/react/app/treegrid/dialog/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; import JqxWindow from '../../../jqwidgets-react/react_jqxwindow.js'; import JqxInput from '../../../jqwidgets-react/react_jqxinput.js'; import JqxDateTimeInput from '../../../jqwidgets-...
src/Actions.js
Karkin/react-native-gifted-chat
import React from 'react'; import { StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; export default class Actions extends React.Component { constructor(props) { super(props); this.onActionsPress = this.onActionsPress.bind(this); } onActionsPress() { const options = Object.key...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupBasic.js
clemensw/stardust
import React from 'react' import { Button, Divider } from 'semantic-ui-react' const ButtonExampleGroupBasic = () => ( <div> <Button.Group basic> <Button>One</Button> <Button>Two</Button> <Button>Three</Button> </Button.Group> <Divider /> <Button.Group basic vertical> <Button>O...
app/components/FormOptionButtonField/index.js
koofka/singleproperty_redux
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { colors } from 'global-colors'; import FormFieldHeading from 'components/FormFieldHeading'; import FormFieldWrapper from 'components/FormFieldWrapper'; const StyledTextInputContainer = styled.div` width: ${...
src/grid/__tests__/Col.js
kosiakMD/react-native-elements
import React from 'react'; import { Text } from 'react-native'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import Col from '../Col'; describe('Col Component', () => { it('should render without issues', () => { const component = shallow(<Col />); expect(component.length).toBe(1); ...
src/svg-icons/navigation/arrow-drop-down-circle.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDownCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/> </SvgIcon> ); NavigationArrowDropDownCircle =...
app/node_modules/react-dom/lib/EventPluginRegistry.js
BZhawaii/ArtStorm
/** * Copyright 2013-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. * * */ 'use st...
src/svg-icons/editor/short-text.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShortText = (props) => ( <SvgIcon {...props}> <path d="M4 9h16v2H4zm0 4h10v2H4z"/> </SvgIcon> ); EditorShortText = pure(EditorShortText); EditorShortText.displayName = 'EditorShortText'; EditorShortText...
src/utils/defaultMenuRenderer.js
dmatteo/react-select
import classNames from 'classnames'; import React from 'react'; function menuRenderer ({ focusedOption, instancePrefix, labelKey, onFocus, onSelect, optionClassName, optionComponent, optionRenderer, options, valueArray, valueKey, onOptionRef }) { let Option = optionComponent; return options.map((option,...
src/components/ClaimsCreate.js
alexfigtree/CoreID
import React, { Component } from 'react'; import '../App.css'; import '../themify-icons/themify-icons.css'; import './Claims.css'; //import PouchDB from 'pouchdb' export default class ClaimsCreate extends Component { render() { return ( <div className="container-fluid container-fullw bg-white...
src/svg-icons/image/filter-tilt-shift.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterTiltShift = (props) => ( <SvgIcon {...props}> <path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62...
src/svg-icons/maps/traffic.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTraffic = (props) => ( <SvgIcon {...props}> <path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41...
src/app/components/media/ItemHistoryDialog.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import CloseIcon from '@material-ui/icons/Close'; import Dialog from '@material-ui/core/Dialog'; import DialogContent from '@material-ui/core/DialogContent'; import DialogTitle from '@material-ui/core/DialogTit...
tests/components/Counter/Counter.spec.js
dkwingsmt/aporeto-pokemongo
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'components/Counter/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter: 5, ...bindActionCre...
Web/src/modules/Game/Game.spec.js
lepsalex/Mansplaining
/* eslint-env mocha */ /* global expect, sinon */ import React from 'react' import { shallow } from 'enzyme' import Game from './Game' describe('<Game />', () => { function setup() { const wrapper = shallow(<Game />) const instance = wrapper.instance() return { wrapper, instance } } it('renders',...
src/routes.js
fuczak/pipsy
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { App, Boardgames, Pubs, NewPub, EditPub, Home, NotFound, } from 'containers'; export default () => { /** * Please keep routes in alphabetical order */ return ( <Route path="/" component={App}...
src/DropdownButton.js
westonplatter/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Dropdown from './Dropdown'; import NavDropdown from './NavDropdown'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import omit from 'lodash-compat/object/omit'; class D...
src/Content/Content.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const FIXED_ADJUST = 'mdc-toolbar-fixed-adjust'; const propTypes = { fixed: PropTypes.bool, children: PropTypes.node, className: PropTypes.string, component: PropTypes.string, }; const defaultProps = { compo...
files/reactor/1.0.2/reactor.min.js
CTres/jsdelivr
!function(context){"use strict";function Reactor(fn,context){this instanceof Reactor?(this._val=fn,this._fns={}):(fn=fn.bind(context),top_function?fn():(top_function=all_functions.push(fn),fn(),top_function=0))}function reaction(){var functions=pending_functions;pending_functions={},pending_reaction=0;for(var id in fun...
src/components/icons/RainIcon.js
maximgatilin/weathernow
import React from 'react'; export default function RainIcon() { return ( <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 129.97 129.8"><path d="M227.5,703h0c0-.25,0-0.5,0-0.75a36.25,36.25,0,1,0-72.51,0s0,0,0,.07a29.59,29.59,0,0,0,1.39,59.16H227.5A29.24,29.24,0,1,0,227.5,703Z" ...
Demo/src/components/PersonDetail.js
bspaulding/presentation-react-router-4-universal-links
import React, { Component } from 'react'; import { View } from 'react-native'; import { getPerson } from '../api/SWApi'; import Loading from './Loading'; import Heading from './Heading'; import SectionHeading from './SectionHeading'; import { Stat, Stats } from './Stat'; import Request from './Request'; import Link fro...
components/AddIngredientCamera.ios.js
fjjk-snacktime/snacktime
'use strict'; import React, { Component } from 'react'; import { Text, Image, TouchableHighlight, View } from 'react-native'; import Camera from 'react-native-camera'; import helpers from '../helpers/helpers.js'; var axios = require('axios'); import styles from '../styles.ios.js'; import GoogleResults from './G...
src/classic/element/ReactElementValidator.js
shripadk/react
/** * Copyright 2014-2015, 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. * * @providesModule ...
express-rest-api/node_modules/rx-lite/rx.lite.js
thoughtbit/node-web-starter
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exp...
src/Accordion/index.js
daviferreira/react-sanfona
'use strict'; import cx from 'classnames'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { arrayify, getChildrenActiveItems, getActiveItems, isSame } from './utils'; export default class Accordion extends Component { constructor(props) { super(props); this.st...
frontend/js/components/ecosystems/Sidebar.js
ttavenner/okcandidate-platform
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AppLogo from './../organisms/AppLogo'; import Profile from './../organisms/Profile'; import SidebarMenu from './../ecosystems/SidebarMenu'; import { toggleSidebarVisibility } from './../../redux/actions/ui-actions'; const adminMen...
ajax/libs/flat-ui/2.1.1/js/jquery-1.8.3.min.js
x112358/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==...
src/list-item.js
anara123/udemy-react-todo-app
import React from 'react'; const rootUrl = 'https://brilliant-inferno-1304.firebaseio.com/'; var ListItem = React.createClass({ getInitialState: function() { return { text: this.props.item.text, done: this.props.item.done, textEdited: false }; }, componentWillMount: function() { this.fb = new Fire...
src/components/video_list.js
khanhhq2k/react-youtube-search-api
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={video.etag} video={video} /> ); }); return( <ul clas...
fields/components/ItemsTableCell.js
danielmahon/keystone
import React from 'react'; import classnames from 'classnames'; function ItemsTableCell ({ className, ...props }) { props.className = classnames('ItemList__col', className); return <td {...props} />; }; module.exports = ItemsTableCell;
app/jsx/gradebook/default_gradebook/GradebookGrid/headers/TotalGradeColumnHeaderRenderer.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
doc/server/vendor/jquery.min.js
gajjargaurav/seguir
/*! jQuery v1.11.1 | (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...
src/components/AppNavDrawer.js
yiweimatou/yishenghoutai
import React from 'react' import Drawer from 'material-ui/Drawer' import {List, ListItem, MakeSelectable} from 'material-ui/List' import getMuiTheme from 'material-ui/styles/getMuiTheme' const SelectableList = MakeSelectable(List) const styles = { containerStyle :{ marginTop:getMuiTheme().appBar.height, ...
src/frontend/modules/core/components/application-data.js
pr0fedt/react-basic-template
'use strict'; import React from 'react'; import {isArray} from 'lib/common'; import {localStorageActions} from '../actions'; import {DEFAULT} from '../constants'; import {localStorageStore, logStore} from '../stores'; const ApplicationData = React.createClass({ mixins: [ localStorageStore.getReactMixin('ls'), ...
packages/ringcentral-widgets/components/ComposeTextPanel/NoSenderAlert.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import messageSenderMessages from 'ringcentral-integration/modules/MessageSender/messageSenderMessages'; import AlertDisplay from '../AlertDisplay'; import MessageSenderAlert from '../MessageSenderAlert'; export default class NoSenderAlert...
ajax/libs/mediaelement/2.8.2/jquery.js
binaek89/cdnjs
/*! * jQuery JavaScript Library v1.7 * 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. *...
ajax/libs/mobx-react/3.3.0/custom.js
jdh8/cdnjs
(function() { function mrFactory(mobx, React, ReactDOM) { if (!mobx) throw new Error("mobx-react requires the MobX package") if (!React) throw new Error("mobx-react/custom requires React to be available"); var isDevtoolsEnabled = false; // WeakMap<Node, Obje...
ajax/libs/video.js/4.5.0/video.dev.js
koggdal/cdnjs
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...