path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/views/KeyboardView/Key.react.js | ryym/web-keyboard-simulator | import React from 'react';
import classNames from 'classnames';
export default function Key({ labels, size = 1, pressed }) {
return (
<div
className={classNames(
'keyboard_key',
{ 'is-key-pressed': pressed }
)}
style={{ flexGrow: size }}
>
{renderLabels(labels)}
</... |
client/src/components/dashboard/profile/photo-booth.js | mikelearning91/seeme-starter | import React from 'react';
import { captureUserMedia, S3Upload } from './utils/rtc-utils';
import Webcam from './utils/webcam';
import RecordRTC from 'recordrtc';
import Playback from './utils/playback';
import mui from 'material-ui';
import MdIconPack from 'react-icons/lib/md';
import MdCamera from 'react-icons/lib/md... |
6.0.0-alpha.14/examples/asyncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(290),e.exports=n(288)},function(e,t,n){var r=n(5),o=n(33),i=n(17),a=n(19),u=n(38),s="prototype",... |
src/MasterPassword/MasterPassword.js | Lynx-Productions/OPeM | /***
* Copyright 2017 - present Lynx Productions
*
* 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 applicabl... |
project-templates/reactfiber/externals/react-fiber/fixtures/ssr/src/index.js | itsa-server/itsa-cli | import React from 'react';
import { render } from 'react-dom';
import App from './components/App';
render(<App assets={window.assetManifest} />, document);
|
ReactNative/node_modules/react-navigation/src/navigators/createNavigator.js | tahashahid/cloud-computing-2017 | import React from 'react';
/**
* Creates a navigator based on a router and a view that renders the screens.
*/
export default function createNavigator(router, routeConfigs, navigatorConfig) {
return NavigationView => {
class Navigator extends React.Component {
static router = router;
static navigat... |
static/src/components/islands/IslandDoubleTree.js | andribja/airhornbot | // @flow
// jscs:disable maximumLineLength
import React from 'react';
type Props = {
paused: boolean
};
export default ({paused}: Props): React.Element => (
<svg className={`island double-tree ${paused ? 'paused' : ''}`} xmlns="http://www.w3.org/2000/svg" width="259" height="221">
<g fill="none" fill-rule="e... |
frontend/app/containers/App/index.js | jirwin/ipfs-archive | /**
*
* App.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
... |
src/components/Shared/Parallax.react.js | andmilj/vip-transfers | import React from 'react';
import classNames from 'classnames';
const Parallax = ({ordinal}) => (
<div className={classNames('parallax', `parallax${ordinal}`)}>
<div className="container inner text-center">
</div>
</div>
);
export default Parallax;
|
src/components/heroWidget/heroChart.js | govau/datavizkit |
import React from 'react';
import {compose} from 'recompose';
import withHighcharts from './../withHighcharts';
import withHero from './withHero';
const HeroChart = ({children}) => {
return (
<div>
<span className="chart">{children}</span>
</div>
)
};
const HighchartifiedHeroChart = compose(
wi... |
client/src/components/advancedSelectWidget/MultiTypeAdvancedSelectComponent.js | NCI-Agency/anet | import { SEARCH_OBJECT_LABELS, SEARCH_OBJECT_TYPES } from "actions"
import AdvancedMultiSelect from "components/advancedSelectWidget/AdvancedMultiSelect"
import {
LocationOverlayRow,
OrganizationOverlayRow,
PersonDetailedOverlayRow,
PositionOverlayRow,
ReportDetailedOverlayRow,
TaskSimpleOverlayRow
} from "... |
src/components/icon.js | zccz14/blog | import React from 'react'
import PropTypes from 'prop-types'
import style from '../styles/icon.module.css'
const Icon = props => {
const { d, size = '1em', label, style: styles } = props
return (
<span className={style.root} style={styles} role="figure">
<svg
version="1.1"
width={size}
... |
src/modules/About.js | hong1012/FreePay | import React from 'react'
import {Button} from 'antd'
import {Input, Table, DatePicker} from 'antd'
import moment from 'moment';
import Api from '../utils/Api'
import './About.less';
const dateFormat = 'YYYY-MM-DD';
const columns = [
{
title: 'eid ',
dataIndex: 'eid',
key: 'eid'
},
... |
src/components/antd/input/Group.js | hyd378008136/olymComponents | import React from 'react';
import classNames from 'classnames';
const Group = (props) => {
const { prefixCls = 'ant-input-group', className = '' } = props;
const cls = classNames(prefixCls, {
[`${prefixCls}-lg`]: props.size === 'large',
[`${prefixCls}-sm`]: props.size === 'small',
[`${pr... |
src/components/__tests__/AboutPage.spec.js | svitekpavel/Conway-s-Game-of-Life | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import AboutPage from './../AboutPage';
describe('<AboutPage />', () => {
it('should have a header called \'Pavel Svitek\'', () => {
const wrapper = shallow(<AboutPage />);
const actual = wrapper.find('h1').text();
... |
src/Components/VenueSwiperComponent.js | Xeroeta/nkcgo-webapp | import React, { Component } from 'react';
import ReactSwipe from 'react-swipe';
import { Button } from 'react-bootstrap';
import history from '../history';
const GOOGLE_DIR_PREFIX = 'https://www.google.com/maps/dir/?api=1&dir_action=navigate&travelmode=walking&destination=';
export default class VenueSwiperComponent... |
example/test/components/Input.js | wyze/redux-debounce | import { shallow } from 'enzyme'
import { spy } from 'sinon'
import Input from '../../src/components/Input.jsx'
import React from 'react'
import test from 'ava'
test('renders a value', t => {
const component = shallow(<Input value="Hi!" />)
t.is(component.find('input').prop('defaultValue'), 'Hi!')
})
test('fires... |
node_modules/react-icons/md/format-align-justify.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdFormatAlignJustify = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m5 5h30v3.4h-30v-3.4z m0 10v-3.4h30v3.4h-30z m0 6.6v-3.2h30v3.2h-30z m0 6.8v-3.4h30v3.4h-30z m0 6.6v-3.4h30v3.4h-30z"/></g>
</Icon>
)
export default M... |
client.js | leifdalan/flux-websockets | 'use strict';
import React from 'react';
import debug from 'debug';
import app from './shared/app';
import Router, {HistoryLocation} from 'react-router';
import navigateAction from './shared/actions/navigate';
import config from './config';
import FluxibleComponent from 'fluxible/addons/FluxibleComponent';
import pict... |
node_modules/reactify/node_modules/react-tools/src/browser/ui/__tests__/ReactMountDestruction-test.js | roger-hamilton/PathfinderNode | /**
* Copyright 2013-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.
*
* @emails react-co... |
public/js/lib/codemirror/addon/emmet/emmet.js | zmiftah/freecodecamp | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.emmetCodeMirror=e()}}(function(){var define,module,ex... |
src/components/Charts/StackBar/index.js | ascrutae/sky-walking-ui | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
app/javascript/flavours/glitch/features/list_editor/containers/search_container.js | im-in-space/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists';
import Search from '../components/search';
const mapStateToProps = state => ({
value: state.getIn(['li... |
src/svg-icons/image/crop-3-2.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop32 = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z"/>
</SvgIcon>
);
ImageCrop32 = pure(ImageCrop32);
ImageCro... |
src/Table/TableSortLabel.js | AndriusBil/material-ui | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import ButtonBase from '../ButtonBase';
import ArrowDownwardIcon from '../svg-icons/ArrowDownward';
export const styles = (theme: Object) => ({
root: {
curs... |
packages/cf-component-tabs/test/TabsPanel.js | koddsson/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { felaSnapshot } from 'cf-style-provider';
import { TabsPanel } from '../../cf-component-tabs/src/index';
class Context extends React.Component {
getChildContext() {
return { active: this.props.active };
}
render() {
return this.props... |
src/App.js | partneran/partneran | import React, { Component } from 'react';
// import NaviationAuthorize from './components/Navigation/NavigationAuthorize';
// import NavigationUnauthorize from './components/Navigation/NavigationUnauthorize';
import NavigationBar from './components/Navigation/NavigationBar';
import { isLoggedIn } from './helpers/verifi... |
src/svg-icons/hardware/sim-card.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSimCard = (props) => (
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0... |
ajax/libs/redux-form/4.0.4/redux-form.min.js | boneskull/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
docs/client.js | pandoraui/react-bootstrap | import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... |
ajax/libs/forerunnerdb/1.3.30/fdb-core+views.min.js | kiwi89/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... |
node_modules/react-dom/test-utils.js | NGU2016/gallery-picture | 'use strict';
if (process.env.NODE_ENV === 'production') {
throw Error('test-utils is not available in production mode.');
} else {
module.exports = require('./cjs/react-dom-test-utils.development');
}
|
src/main.js | benkeen/invoice-editor | import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './store/createStore';
import AppContainer from './containers/AppContainer';
const initialState = window.__INITIAL_STATE__;
const store = createStore(initialState);
const MOUNT_NODE = document.getElementById('root');
let render = (... |
src/components/TodoForm.js | Lenousek/Helsinki | import React from 'react';
import uuid from 'node-uuid';
export default class TodoForm extends React.Component {
render() {
return (
<form onSubmit={this.onSubmit.bind(this)}>
<input ref="text" type="text" placeholder="what u wanna todo?" />
<button type="submi... |
src/interface/common/DelayRender.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
class DelayRender extends React.PureComponent {
static propTypes = {
delay: PropTypes.number.isRequired,
children: PropTypes.node.isRequired,
fallback: PropTypes.node,
};
state = {
timerExpired: false,
};
timer = null;
construc... |
example/src/screens/Actions.js | inalist/react-native-navigation | import React from 'react';
import { StyleSheet, ScrollView } from 'react-native';
import Row from '../components/Row';
class Actions extends React.Component {
constructor(props) {
super(props);
this._fab = false;
this._rightButton = null;
this._contextualMenu = false;
this._toggleTabs = 'shown'... |
src/svg-icons/notification/sync-disabled.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncDisabled = (props) => (
<SvgIcon {...props}>
<path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20... |
containers/Navigation.js | brown-jones-industries/client | import React from 'react'
import { connect } from 'react-redux'
import TabPage from '../components/TabPage'
import PreferenceContainer from './PreferenceContainer'
import LocationButton from '../components/LocationButton'
import NumberOfPeople from './NumberOfPeople'
import NavigationBar from '../components/navigation/... |
ajax/libs/react-chartjs-2/2.7.1/react-chartjs-2.js | extend1994/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('chart.js')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'chart.js'], factory) :
(factory((global.ReactChartjs2 = {}),global.React,global.Chart));
}(t... |
src/index.js | starrpatty28/React_ToDoList | import React from 'react';
import { render } from 'react-dom';
import App from 'components/app';
render (<App />, document.getElementById('app')); //this is where we put in our HTML
|
ajax/libs/rxjs/2.3.10/rx.js | DDMAL/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... |
sites/all/modules/jquery_update/replace/jquery/1.9/jquery.min.js | shanti-uva/drupal_shanti_sources | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
admin/client/components/Forms/AltText.js | wmertens/keystone | import React from 'react';
import blacklist from 'blacklist';
import vkey from 'vkey';
var AltText = React.createClass({
propTypes: {
component: React.PropTypes.string,
modified: React.PropTypes.string,
modifier: React.PropTypes.string,
normal: React.PropTypes.string,
},
getDefaultProps () {
return {
c... |
ajax/libs/vue/2.2.6/vue.runtime.common.min.js | BenjaminVanRyseghem/cdnjs | "use strict";function _toString(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function toNumber(e){var t=parseFloat(e);return isNaN(t)?e:t}function makeMap(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:functio... |
test/fixtures-es6-react-project/public/components/stateles-sample.js | capaj/jspm-hot-reloader | import React from 'react'
const Test = (props) => {
return <div onClick={() => console.log('clicked2')}>hello {props.name}</div>
}
export default Test
|
app/config/routes.js | StuartPearlman/github-battle | import React from 'react';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import Home from '../components/Home';
import Main from '../components/Main';
import ConfirmBattleContainer from '../containers/ConfirmBattleContainer';
import PromptContainer from '../containers/PromptContainer';
import R... |
packages/node_modules/@webex/react-component-call-data-activity/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import {FormattedMessage} from 'react-intl';
import messages from './messages';
import {parseActivityCallData} from './helpers';
const propTypes = {
actor: PropTypes.shape({
displayName: PropTypes.string.isRequired
}),
duration: PropTypes.number... |
src/components/markdown.js | ShiChao1996/BlogAdmin | import React, { Component } from 'react';
import MarkDown from 'react-markdown';
import './markdown.css';
export default class MyMarkDown extends Component{
constructor(props){
super(props);
this.state = {
text: ''
}
}
componentWillMount(){
if(this.props.text){
... |
node_modules/react-dnd/karma.conf.js | rageboom/React_Study | var path = require('path');
module.exports = function (config) {
config.set({
browsers: ['Chrome'],
singleRun: true,
frameworks: ['mocha'],
files: [
'tests.webpack.js'
],
preprocessors: {
'tests.webpack.js': ['webpack', 'sourcemap']
},
reporters: ['dots'],
webpack: {
... |
src/Parser/Hunter/Survival/Modules/Items/Tier21_2p.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemDamageDon... |
ajax/libs/react-native-web/0.11.4/vendor/react-native/SwipeableRow/index.js | cdnjs/cdnjs | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule SwipeableRow
*
*/
'use strict';
import Animated from '../../../exports/Animated';
import I18nManager from '../../..... |
website/layout/AutodocsLayout.js | mukesh-kumar1905/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... |
ajax/libs/vue/0.11.0-rc/vue.js | honestree/cdnjs | /**
* Vue.js v0.11.0-rc
* (c) 2014 Evan You
* Released under the MIT License.
*/
;(function(){
"use strict"
/**
* Require the module at `name`.
*
* @param {String} name
* @return {Object} exports
* @api public
*/
function require(name) {
var module = require.modules[name];
if (!module) throw new Error... |
src/stores/MediaSearchStore.js | u-wave/web | import React from 'react';
import { useDispatch } from 'react-redux';
import PropTypes from 'prop-types';
import { hideSearchResults, showSearchResults } from '../actions/SearchActionCreators';
import { get } from '../actions/RequestActionCreators';
import { IDLE, LOADING, LOADED } from '../constants/LoadingStates';
c... |
ajax/libs/can.js/3.11.0/can.js | extend1994/cdnjs | /*[global-shim-start]*/
(function(exports, global, doEval) {
// jshint ignore:line
var origDefine = global.define;
var get = function(name) {
var parts = name.split("."),
cur = global,
i;
for (i = 0; i < parts.length; i++) {
if (!cur) {
break;
}
cur = cur[parts[i]];
}
return cur;
};
var... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | NS-Kazuki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
ajax/libs/yui/3.5.1/event-custom-base/event-custom-base.js | kood1/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
assets/jqwidgets/demos/react/app/treegrid/nestedjsondata/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js';
class App extends React.Component {
render () {
let employees = [
{
'EmployeeID': 2, 'FirstName': 'Andrew', 'LastName': 'Fuller', 'Country': 'US... |
app/javascript/mastodon/components/status_list.js | ikuradon/mastodon | import { debounce } from 'lodash';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import LoadGap from './load_gap... |
node_modules/reactify/node_modules/react-tools/src/core/ReactCompositeComponent.js | belongco/react-multi-select-dropdown | /**
* Copyright 2013-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 ... |
src/clincoded/static/components/software.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import _ from 'underscore';
import { content_views, panel_views, listing_titles, itemClass } from './globals';
import { AuditMixin, AuditIndicators, AuditDetail } from './audit'... |
examples/BeaconsDemo/index.android.js | MacKentoch/react-native-beacons-manager | /**
* @flow
*/
// #region imports
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
SectionList,
View,
TouchableHighlight,
ToastAndroid,
Image,
} from 'react-native';
import Beacons from 'react-native-beacons-manager';
import { Avatar } from 'react-native-elements';
im... |
src/components/NavLink.js | abdulhannanali/github-organization-repos | /**
* NavLink
*
* Contains the Navigational links to be displayed at the root of
* the application
*/
import React from 'react';
import { Link } from 'react-router-dom';
import '../styles/NavLink.css';
const NavLink = () => {
return (
<div className="NavLink">
<div className="row">
<div cla... |
src/svg-icons/image/switch-video.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSwitchVideo = (props) => (
<SvgIcon {...props}>
<path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5... |
config/webpack.client.config.js | Pirolf/nekochan | module.exports = {
node: {
fs: "empty",
net: "empty",
tls: "empty"
},
module: {
loaders: [{
test: /\.js/,
loader: 'babel',
exclude: /node_modules/,
query: {
presets: ['es2015', 'react', 'stage-0', 'stage-1', 'stage-2',... |
app/components/Console.js | Ribeiro/fil | import _ from 'underscore';
import React from 'react';
import OutputLine from 'components/OutputLine';
import ConsoleToolbar from 'components/ConsoleToolbar';
import ErrorLine from 'components/ErrorLine';
export default class Console extends React.Component {
renderLine(line, i) {
return <OutputLine
... |
ajax/libs/webshim/1.15.3/dev/shims/moxie/js/moxie-html4.js | aaqibrasheed/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 ... |
frontend/src/index.js | Svjard/sagedesk | /*eslint-disable import/default*/
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Root from './containers/Root';
import configureStore from './store/configureStore';
import { loginUserSuccess } from './actions';
const target = document.getElementById('root')... |
ajax/libs/rxjs/2.3.25/rx.lite.js | noraesae/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
};
... |
src/components/App/setViewport.js | elurye/ReactJestBoiler | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
import React, { Component } from 'react';
import { canUseDOM } from 'react... |
ajax/libs/rxjs/2.5.2/rx.lite.js | zhangbg/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
};
... |
ajax/libs/react/0.13.0-alpha.2/react-with-addons.min.js | janpaepke/cdnjs | /**
* React (with addons) v0.13.0-alpha.2
*
* Copyright 2013-2014, 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 ... |
src/icons/settings-open.js | leonardosnt/jar-string-editor | import React from "react";
export default () => (
<svg height="16" width="16" viewBox="0 0 16 16">
<path
d="M15 7h-2.1a4.967 4.967 0 0 0-.732-1.753l1.49-1.49a1 1 0 0 0-1.414-1.414l-1.49 1.49A4.968 4.968 0 0 0 9 3.1V1a1 1 0 0 0-2 0v2.1a4.968 4.968 0 0 0-1.753.732l-1.49-1.49a1 1 0 0 0-1.414 1.415l1.49 1.49A4... |
js/components/button/outline.js | bengaara/simbapp |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, H3 } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-native-navigation-redux-helpers';
import { ope... |
blueocean-material-icons/src/js/components/svg-icons/image/navigate-before.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageNavigateBefore = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
ImageNavigateBefore.displayName = 'ImageNavigateBefore';
ImageNavigateBefore.muiName = 'SvgIcon';
export default... |
web-ui/src/backup_account/backup_email/backup_email.spec.js | pixelated-project/pixelated-user-agent | import { shallow } from 'enzyme';
import expect from 'expect';
import React from 'react';
import fetchMock from 'fetch-mock';
import { BackupEmail } from 'src/backup_account/backup_email/backup_email';
describe('BackupEmail', () => {
let backupEmail;
let mockOnSubmit;
let mockTranslations;
let backupEmailInsta... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | ryardley/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
render () {
var announcements = COURSES[this.props.params.courseId].announcements;
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcemen... |
node_modules/react-height/lib/ReactHeight.js | dgferreira/demo | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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]; } } }... |
dnim-client/src/components/InfoItem.js | zhangmingkai4315/DNIS-Project | import React from 'react';
export default class InfoItem extends React.Component {
constructor(props) {
super(props);
this.state={
value:this.props.value
};
this.changeItem=this.changeItem.bind(this);
}
componentWillReceiveProps(nextProps){
this.setState({
value:nextProps.value
... |
services/ui/src/components/TableDisplay/index.js | amazeeio/lagoon | import React, { Component } from 'react';
class TableDisplay extends Component {
render() {
const { columns, data } = this.props;
let headers = <tr>{columns.map((name, n) => <th key={n}>{name}</th>)}</tr>
let rows = data.map((item, i) => {
return <tr key={i}>
<td>{item.name}</td>
... |
ajax/libs/primeui/4.1.10/primeui.min.js | sashberd/cdnjs | !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return t(i),i}:t(jQuery)}(function(t){var e={zindex:1e3,gridColumns:{1:"ui-grid-col-12",2:"ui-grid-col-6",3:"ui-grid-col-4",4:"ui-grid-col-3",6:"ui-grid-col-2",12:"ui-grid-col-11"... |
ajax/libs/forerunnerdb/1.3.875/fdb-core+persist.min.js | froala/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... |
example/login-react/src/index.js | bripkens/formalistic | import ReactDOM from 'react-dom';
import React from 'react';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
doc-components/GitHub.js | miduga/react-slidy | import React from 'react'
import PropTypes from 'prop-types'
export default function GitHubBadge({
slug,
width = 36,
height = 36,
fill = 'black'
}) {
return (
<>
<a
href="https://github.com/midudev/react-slidy"
rel="noopener noreferrer"
target="_blank"
>
<svg v... |
files/clappr/0.0.88/clappr.js | MenZil/jsdelivr | require=(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)... |
ajax/libs/mediaelement/2.9.1/jquery.js | jonobr1/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.
*... |
src/actions/currentUser.js | deguchi/mastobone | import { AsyncStorage } from 'react-native';
const getCurrentUser = (onComplete: ?() => void) => {
return async (dispatch, getState) => {
// AsyncStorage.clear();
return AsyncStorage.getItem('current_user').then((value)=>{
dispatch(Success(value));
if (onComplete) onComplete();
}).catch((erro... |
ajax/libs/ember-data.js/2.5.1/ember-data.prod.js | jonobr1/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2016 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.5.1
*/
var define, requireModule, require, requirejs;
(function() ... |
src/utils/domUtils.js | xiaoking/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
src/parser/warlock/destruction/modules/talents/ChannelDemonfire.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Enemies from 'parser/shared/modules/Enemies';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import Statis... |
static/src/components/islands/IslandShrooms.js | andribja/airhornbot | // @flow
// jscs:disable maximumLineLength
import React from 'react';
type Props = {
number: number,
paused: boolean
};
export default ({number, paused}: Props): React.Element => {
let className = 'island shrooms';
if (number) {
className += `-${number}`;
}
if (paused) {
className += ' paused';
... |
src/js/components/comments.js | lantuhui/NewsApp-react | /**
* Created by lantu on 2017/10/24.
*/
import React from 'react';
import { Row,Col } from 'antd';
import {
Menu,
Icon,
Tabs,
message,
Form,
Input,
Button,
CheckBox,
Modal,
Card,
notification
} from 'antd';
const FormItem = Form.Item;
import { Link } from 'react-router-do... |
packages/material-ui-icons/src/Transform.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z" /></React.Fragment>
, 'Transform');
|
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js | mymail748/drupal734 | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
imports/api/interests/interests.js | howlround/worldtheatremap | // Meteor
import { TAPi18n } from 'meteor/tap:i18n';
// Utilities
import React from 'react';
import ReactSelect from 'react-select';
import { FormattedMessage } from 'react-intl';
import t from 'tcomb-form';
import Checkboxes from '../../ui/components/Checkboxes.jsx';
class InterestsCollection extends TAPi18n.Collect... |
client/src/components/SignUpForm.js | didju/didju | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import PropTypes from 'prop-types';
// import fetch from '../fetch';
export default class SignUpForm extends Component {
constructor(props) {
super(props);
this.state = {
firstName: '',
lastName: '',
ema... |
fields/components/ItemsTableCell.js | dvdcastro/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;
|
docs/src/app/components/pages/components/IconButton/Page.js | rscnt/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 iconButtonCode from '!raw!material-ui/lib/IconButton/IconButton';
import ... |
ajax/libs/ember-data.js/0.0.12/ember-data.prod.js | mirthy/cdnjs | (function() {
window.DS = Ember.Namespace.create({
// this one goes past 11
CURRENT_API_REVISION: 12
});
})();
(function() {
/**
* Date.parse with progressive enhancement for ISO 8601 <https://github.com/csnover/js-iso8601>
* © 2011 Colin Snover <http://zetafleet.com>
* Released under MIT license.
*/
Ember... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | RobertKielty/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.