path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
app/client.js | Yamikamisama/ReactReduxDemo | /* eslint-env browser */
/* global process */
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import HashHistory from 'react-router/lib/HashHistory';
import Root from './Root';
const history = (process.env.NODE_ENV === 'production')
? new BrowserHisto... |
frontend/src/containers/NewBackup/index.js | XiaocongDong/mongodb-backup-manager | import React, { Component } from 'react';
import BackupConfig from 'components/BackupConfig';
export default class NewBackup extends Component {
render() {
return (
<BackupConfig />
)
}
} |
ajax/libs/instantsearch.js/1.11.7/instantsearch-preact.min.js | holtkamp/cdnjs | /*! instantsearch.js 1.11.7 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantse... |
src/svg-icons/notification/power.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPower = (props) => (
<SvgIcon {...props}>
<path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"/>
</SvgIcon>
);
NotificationPower = pu... |
app/components/team/Show.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import DocumentTitle from 'react-document-title';
import PageHeader from '../shared/PageHeader';
import Emojify from '../shared/Emojify';
import permissions from '../../lib/permissions';
import TabControl from '../s... |
src/svg-icons/device/network-wifi.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkWifi = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0... |
addon/models/immunization.js | davekago/ember-fhir | import DS from 'ember-data';
import DomainResource from 'ember-fhir/models/domain-resource';
const { attr, belongsTo, hasMany } = DS;
export default DomainResource.extend({
identifier: hasMany('identifier', { async: true }),
status: attr('string'),
notGiven: attr('boolean', { allowNull: true }),
vaccineCode: ... |
test/Badge.js | GetAmbassador/react-ions | import React from 'react'
import Badge from '../src/components/Badge'
import Icon from '../src/components/Icon'
describe('Badge', () => {
let wrapper
it('displays a button', () => {
wrapper = shallow(<Badge icon='icon-link-1' text='Word' theme='success' />)
expect(wrapper.props().className).to.equal('badg... |
pages/about.js | HashtasticDesign/build | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>About Us</h1>
<p>Coming s... |
app/Plugin/TinyMCE/webroot/js/tiny_mce/plugins/legacyoutput/editor_plugin_src.js | laravelartisan/cake | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements... |
src/reserve/reserve.js | kondoSoft/react-car-rental | import React, { Component } from 'react';
import SingleCarReserve from '../components/single-car-reserve/singleCarReserve'
import FormCarReserve from '../components/form-car-reserve/formCarReserve'
import FormCarReserveRight from '../components/form-car-reserve-right/formCarReserveRight'
import { Container } from 'sema... |
src/components/Panel/Panel.js | Landish/react-spectre-css | import React from 'react';
import {} from 'prop-types';
import classNames from 'classnames';
const Panel = ({ children, className, ...rest }) => {
return (
<div className={classNames('panel', className)} {...rest}>
{children}
</div>
);
};
/**
* Panel property types.
*/
Panel.propTypes = {};
/**
... |
docs/src/examples/elements/Icon/Groups/IconExampleCornerGroup.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleCornerGroup = () => (
<Icon.Group size='huge'>
<Icon name='puzzle' />
<Icon corner name='add' />
</Icon.Group>
)
export default IconExampleCornerGroup
|
ajax/libs/react-virtualized/7.11.2/react-virtualized.js | Piicksarn/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("React"), require("React.addons.shallowCompare"), require("ReactDOM")) : "function" == typeof define && define.amd ? define([ "React", "React.addons.shallowCompare", "ReactDOM" ], factory) : "object... |
packages/material-ui-icons/src/RemoveCircle.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z" /></g>
, 'RemoveCircle');
|
src/components/effects/LazyDisplay.js | halo-design/halo-optimus | import React from 'react'
export default class LazyDisplay extends React.Component {
constructor (props) {
super(props)
this.state = {
remove: true
}
}
clearTimer () {
this.delayTimer && clearTimeout(this.delayTimer)
}
componentWillReceiveProps (nextProps, nextState) {
const { ent... |
source/demo/App.js | emilebres/react-flex-accordion | import React from 'react'
import {FlexAccordionExample} from '../FlexAccordion/FlexAccordion.example'
const styles = {
header: {
backgroundColor: '#2196f3',
color: 'rgba(255,255,255,0.85)',
margin: 0,
padding: '1rem 0'
},
container: {
width: '800px',
maxWidth: '100%',
margin: '.5rem... |
episode-223/store/public/javascripts/jquery-1.4.2.min.js | moh-alsheikh/railscasts-episodes | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
src/components/Weather/WeatherDay.js | Edmondton/weather-forecasts | import React from 'react';
import Immutable from 'immutable';
import styles from './styles.scss';
export default function WeatherDay({date, data = Immutable.List(), isMetric}) {
if (data.size === 0) {
return null;
}
const temps = data.map((item, index) => {
const unit = isMetric ? 'C' : 'F';
return (
<l... |
src/render-native/html/__tests__/renderHtmlChildren-test.js | kunall17/zulip-mobile | import React from 'react';
import { View } from 'react-native';
import ReactTestRenderer from 'react-test-renderer';
import { Provider } from 'react-redux';
import store from '../../../boot/store';
import htmlToDomTree from '../htmlToDomTree';
import renderHtmlChildren from '../renderHtmlChildren';
const htmlToJson =... |
src-rx/src/components/CustomDragLayer.js | ioBroker/ioBroker.admin |
import React from 'react';
import { useDragLayer } from 'react-dnd';
import DrawerItem from './DrawerItem';
import { withStyles } from '@material-ui/core/styles';
const layerStyles = {
position: 'fixed',
pointerEvents: 'none',
zIndex: 100,
left: 0,
top: 0,
width: '100%',
height: '100%'
};
... |
test/TableSpec.js | tonylinyy/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Table from '../src/Table';
describe('Table', function () {
it('Should be a table', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Table />
);
assert.equal(React.findDOMNode(instance).nodeName,... |
src/docs/examples/TextInputStyledComponents/ExampleError.js | emanualjade/react-jade | import React from 'react';
import TextInputStyledComponents from 'ps-react/TextInputStyledComponents';
export default class ExampleError extends React.Component {
render() {
return (
<TextInputStyledComponents
htmlId="example-optional"
label="First Name"
name="firstname"
req... |
src/components/ui/Modal.js | yuri/notality | import React from 'react';
const Modal = ({ isVisible, children, style = {} }) => {
const visibleStyle = isVisible ? styles.visible : styles.hidden;
return (
<div
className="fixed top-0 bottom-0 left-0 right-0 p1"
style={{ ...styles.base, ...visibleStyle, ...style }}>
{ children }
</div>... |
packages/material-ui-icons/src/InsertChartOutlinedSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4zm2 2H5V5h14v14zm2-16H3v18h18V3z" />
, 'InsertChartOutlinedSharp');
|
ajax/libs/analytics.js/2.8.5/analytics.min.js | dakshshah96/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
src/common/topic-displayer/index.js | asimsir/focus-components | import React from 'react';
import builder from 'focus-core/component/builder';
import {translate} from 'focus-core/translation';
import {map} from 'lodash/collection';
// Components
import {component as Button} from '../button/action';
const TopicDisplayer = {
displayName: 'TopicDisplayer',
/**
* Defaul... |
stories/Badge/index.js | skyiea/wix-style-react | import React from 'react';
import story from '../utils/Components/Story';
import component from 'wix-style-react/Badge';
import source from '!raw-loader!wix-style-react/Badge/Badge';
import readmeTestkit from '../../src/Badge/README.TESTKIT.md';
import CodeExample from '../utils/Components/CodeExample';
import Defau... |
src/main.js | tmslav/project1 | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
src/FormGroup.js | chilts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class FormGroup extends React.Component {
render() {
let classes = {
'form-group': !this.props.standalone,
'form-group-lg': !this.props.standalone && this.props.bsSize === 'large',
'form-group-sm': !this.props.standalone && this.pr... |
app/containers/App/index.js | Bogatkin/invar-test-app | /**
*
* App.react.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... |
src/App.js | jzz4012650/react_starter | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>Hello world.</div>
);
}
}
|
AddFriends.js | Murad-Awad/PingIt | import React, { Component } from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
Dimensions,
View,
FlatList,
Avatar,
} from 'react-native';
import * as firebase from 'firebase';
import FBSDK, { LoginManager } from 'react-native-fbsdk';
import { List... |
src/client/components/user.js | caseywebdev/bruteball | import {withPave} from 'pave-react';
import getAvatarUrl from '../../shared/utils/get-avatar-url';
import live from '../utils/live';
import React from 'react';
import SetName from './set-name';
import SignIn from './sign-in';
import store from '../utils/store';
const expireTokens = ({props: {pave: {store}}}) =>
stor... |
src/components/Common/List/Components/Magazines/Views/Mobile/tpl.js | LifeSourceUA/lifesource.ua | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import Styles from './Styles/main.scss';
// import Palette from 'theme/Palette';
//
import BP from 'lib/breakpoints';
function Mobile(props) {
const yearClass = cx({
[Styles.year]: true,
[Styles.active]: tr... |
frontend/src/components/change-avatar/upload.js | 1905410/Misago | import React from 'react';
import AvatarCrop from 'misago/components/change-avatar/crop'; // jshint ignore:line
import Button from 'misago/components/button'; // jshint ignore:line
import ajax from 'misago/services/ajax'; // jshint ignore:line
import snackbar from 'misago/services/snackbar'; // jshint ignore:line
impor... |
packages/material-ui-icons/src/ExposurePlus2.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0zm0 0h24v24H0z" /><path d="M16.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-... |
src/Cube/index.js | Zacqary/rubix | import React from 'react';
const CUBE_SIZE_PX = 100;
const CUBE_COLORS = [
'#39c', '#927fb9', '#edbe01', '#dedede', '#e55447', '#73bf4c'
];
export default ({type, dir, depth, colors}) => {
const innerFaceKeys = ['front', 'left', 'right', 'top'];
const children = [];
if (depth === 0) {
children.push(<div ... |
src/components/pages/Admin/Admin.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import {RouteHandler} from 'react-router';
import config from '../../../config';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
import fetchAllCollections from '../../../actions/Collections/fetchAllCollections';
// Required components
import Authe... |
server/uiamsd.js | IveWong/uiams |
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './router/routes';
import Html from '../src/components/Html';
import { _SERVER } from '../src/config/conf';
const server = global.server = expres... |
ajax/libs/flocks.js/0.17.0/flocks.min.js | dhenson02/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
src/components/Options.js | 7fffffff/linkgrabber | import React from 'react';
import './Options.css';
class Options extends React.Component {
state = {
newBlockedDomain: '',
};
blockDomain = (event) => {
event.preventDefault();
const val = this.state.newBlockedDomain.toLowerCase().trim();
if (val === '') {
return;
}
const blockedDo... |
ajax/libs/mobx-react/4.0.0-rc.2/custom.min.js | him2him2/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mobx"),require("react")):"function"==typeof define&&define.amd?define(["mobx","react"],t):"object"==typeof exports?exports.mobxReact=t(require("mobx"),require("react")):e.mobxReact=t(e.mobx,e.React)}(this,function(e,t){return fun... |
src/main.js | oceanTsai/react-template | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import { Provider } from 'react-redux'
import configureStore from '@redux/store/configureStore'
import App from './App'
import '@css/semantic/semantic.min.css'
const store = configureStore()
const renderApp = (ap... |
client/layouts/Demo/LoginLayout.js | briefguo/learn-js | /**
* 登录页面的布局组件
*
* 布局组件注意点:
* 1.布局组件,应该是尽量自己写的组件
* 2.不包含第三方UI库的东西,比如:
*
* // XXX
* import { Col, Row } from 'antd'
*
* 3.绝对不是一个redux组件,只是一个单纯的react组件
* 4.尽量只引用react、自定义工具库utils、布局的样式
*/
// 引入React、React-Redux
import React from 'react'
// 引入自定义组件库
import Svg from 'utils/Svg'
import Styles from './Logi... |
src/App.js | hAPPckathon/20v | import React, { Component } from 'react';// eslint-disable-line no-unused-vars
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';// eslint-disable-line no-unused-vars
import PlayerManager from './components/PlayerManager';// eslint-disable-line no-unused-vars
import Search from './components/Searc... |
src/views/Home.js | cef62/react-redux-universal-hot-example | import React from 'react';
export default class Home {
render() {
return (
<div>
<h1>Home</h1>
</div>
);
}
}
|
ajax/libs/react-instantsearch/3.3.0/Dom.js | sashberd/cdnjs | /*! ReactInstantSearch 3.3.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
ajax/libs/angular-google-maps/1.0.16/angular-google-maps.js | dannyxx001/cdnjs | /*! angular-google-maps 1.0.16 2014-03-26
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
(function() {
angular.element(document).ready(function() {
if (!(google || (typeof google !== "undefined" && google !== null ? google.maps : void 0) || (google.maps.... |
src/components/Main.js | jxzsxsp/gallery-by-react | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import ImgFigure from './ImgFigure';
import ControllerUnit from './ControllerUnit';
require('normalize.css/normalize.css');
require('styles/Main.scss');
// 获取图片相关的数据
let imageDatas = require('../data/imageDatas.json');
// 利用自执行函数, 将图片名信息转成图片U... |
packages/mineral-ui-icons/src/IconMotorcycle.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 IconMotorcycle(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
services/ui/src/components/AddTask/index.js | amazeeio/lagoon | import React from 'react';
import ReactSelect from 'react-select';
import withLogic from './logic';
import DrushArchiveDump from './components/DrushArchiveDump';
import DrushSqlDump from './components/DrushSqlDump';
import DrushCacheClear from './components/DrushCacheClear';
import DrushCron from './components/DrushCro... |
ui/src/pages/PeopleManagePage/PersonaView.js | LearningLocker/learninglocker | /* eslint-disable react/jsx-indent */
import React from 'react';
import PropTypes from 'prop-types';
import { compose, withProps, setPropTypes, defaultProps } from 'recompose';
import { Map } from 'immutable';
import Tabs from 'ui/components/Material/Tabs';
import { Tab } from 'react-toolbox/lib/tabs';
import { withMod... |
packages/react-scripts/scripts/utils/createJestConfig.js | andrewmaudsley/create-react-app | // @remove-file-on-eject
/**
* 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 d... |
packages/material-ui-icons/src/PermDataSettingTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M17.99 11.57H20V0L0 20h11.56v-2H4.83L17.99 4.83v6.74z" /><path d="M23.77 20.32l-1.07-.83c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.0... |
src/client/components/PreviewImageWidget/PreviewImageWidget.js | vidaaudrey/trippian | import log from '../../log'
import React from 'react'
const PreviewImageWidget = ({
src = '', alt = 'trippian image'
}) => {
return (
<div className="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<a href={src} className="thumbnail">
<img src={src} alt={alt} />
</a>
</div>
)
}
Preview... |
src/routes/Home/components/TitleScreen/TitleScreen.js | RomelioTavas/may-i-go-out | import React from 'react'
import Button from 'components/Button'
import PropTypes from 'prop-types'
import './TitleScreen.css'
const propTypes = {
onTimeIn: PropTypes.func.isRequired
}
const TitleScreen = (props) => (
<div className='title-screen-container'>
<div className='title-screen-text'>May I go out?</d... |
server/sonar-web/src/main/js/apps/settings/licenses/LicenseRow.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
fields/types/password/PasswordFilter.js | wustxing/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false }
];
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true
};
},
toggleChecked (checked) {
... |
blueocean-material-icons/src/js/components/svg-icons/action/highlight-off.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionHighlightOff = (props) => (
<SvgIcon {...props}>
<path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 1... |
ajax/libs/highmaps/1.0.3/highcharts.src.js | sreym/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.0.3 (2014-07-03)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
local-cli/link/ios/mapHeaderSearchPaths.js | cpunion/react-native | /**
* Given Xcode project and path, iterate over all build configurations
* and execute func with HEADER_SEARCH_PATHS from current section
*
* We cannot use builtin addToHeaderSearchPaths method since react-native init does not
* use $(TARGET_NAME) for PRODUCT_NAME, but sets it manually so that method will skip
*... |
dist/1.8.2/jquery-deprecated.js | michaelBenin/jquery-builder | /*!
* jQuery JavaScript Library v1.8.2 -deprecated
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Sun Sep 23 2012 10:57:41 GMT-0700 (PDT)
*/
(function( windo... |
app/components/Audiobook.js | robcalcroft/edison | import React from 'react';
import PropTypes from 'prop-types';
import { AsyncStorage, Image, StyleSheet, TouchableHighlight, View } from 'react-native';
import moment from 'moment';
import Text from './Text';
import { KEY_TRACK_PREFIX } from '../constants/globals';
const styles = StyleSheet.create({
audiobook: {
... |
ajax/libs/forerunnerdb/1.3.799/fdb-all.js | brix/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... |
app/scripts/controllers/root.js | jcouyang/react-on-wails | import ReactDOM from 'react-dom';
import React from 'react';
import Header from '../components/header';
import Panels from '../components/pannels';
function root(channel = 'topstories') {
return [
{
selector: 'header-tabs',
component: <Header />,
},
{
selector: 'tab-panels',
compon... |
ajax/libs/material-ui/4.12.1/StepButton/StepButton.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _extends2=_interopRequireDefault(require("@bab... |
examples/shopping-cart/src/components/ProductItem.js | baldwmic/redux-saga | import React, { Component, PropTypes } from 'react'
import Product from './Product'
export default class ProductItem extends Component {
render() {
const { product } = this.props
const addToCartAction = (
<button
onClick={this.props.onAddToCartClicked}
disabled={product.inventory > 0 ? ... |
ajax/libs/forerunnerdb/1.3.751/fdb-all.min.js | jonobr1/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... |
ajax/libs/yui/3.11.0/event-focus/event-focus-coverage.js | AlicanC/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"... |
ajax/libs/jQuery-Validation-Engine/0.1.0/jquery-1.8.2.min.js | bdukes/cdnjs | /*! 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==... |
file-browser-ui/dev/js/components/profile/profile.js | CloudBoost/cloudboost | import React from 'react';
import {connect} from 'react-redux';
import {saveUserImage, deleteUserImage, showAlert, updateUser} from '../../actions';
import ChangeField from './ChangeField';
import FlatButton from 'material-ui/FlatButton';
import ReactTooltip from 'react-tooltip';
import Dialog from 'material-ui/Dialog... |
packages/material-ui-icons/src/SignalWifi3Bar.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path fill="none" d="M0 0h24v24H0z" /><path d="M3.53 10.95l8.46 10.54.01... |
public/js/src/index/index.js | ruistime/Isomorphism-react-todomvc | import React from 'react'
import Root from './containers/Root'
import storeCreator from './store'
import { SERVER_UPDATE } from './constants/SocketTypes'
import { FILTER_ITEMS } from './constants/FilterTypes'
const initialState = JSON.parse(document.getElementById('initialData').innerHTML)
const store = storeCreator(i... |
ajax/libs/x-editable/1.5.0/bootstrap3-editable/js/bootstrap-editable.js | masklinn/cdnjs | /*! X-editable - v1.5.0
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form ... |
node_modules/node-summary/test/summary.js | samuelyuan/AtomForum | var summary = require('..'),
assert = require('should');
var title = "Swayy is a beautiful new dashboard for discovering and curating online content [Invites]";
var content = "";
content += "Lior Degani, the Co-Founder and head of Marketing of Swayy, pinged me last week when I was in California to tell me about his s... |
ajax/libs/6to5/3.6.0/browser-polyfill.js | steadiest/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/clincoded/static/components/activity_indicator.js | ClinGen/clincoded | // # Activity Indicator Helper Method
// # Parameters: message string while loading data
// # Usage: showActivityIndicator('Loading... ')
// # Dependency: None
'use strict';
import React from 'react';
export function showActivityIndicator(message) {
return (
<div className="activity-indicator overlay-wrapper">
... |
node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.min.js | Malibu-Awesome/hack-housing | (function(e,t){function n(e){var t=e.length,n=ut.type(e);return ut.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Nt[e]={};return ut.each(e.match(ct)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(ut.acceptData(e)){var o,a,s=ut.expan... |
javascript/safari-driver/inject/tab.js | quoideneuf/selenium | // Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
ajax/libs/zeroclipboard/2.1.4/ZeroClipboard.js | jimmybyrum/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.1.4
*/
(function(window, undefined) {
"use strict";... |
ajax/libs/yui/3.9.0pr1/datatable-body/datatable-body-debug.js | gokuale/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
ajax/libs/angular.js/0.9.0/angular-scenario.js | gaearon/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
ajax/libs/cyclejs-core/0.6.8/cycle.js | CyrusSUEN/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Cycle=e()}}(function(){var define,module,exports;retu... |
ajax/libs/semantic-ui-react/0.58.2/semantic-ui-react.min.js | sashberd/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.semanticUIReact=t(require("React"),require("ReactDOM")):e.semanticUIReact=t(e.React,e.ReactDOM)}(t... |
test/unit/spec/Dark.js | angarg12/incremental_table_elements | /* eslint no-var: 0 */
/* globals describe,commonSpec,it,expect,beforeEach */
/* jshint varstmt: false */
'use strict';
describe('Dark', function() {
let spec = {};
commonSpec(spec);
beforeEach(function () {
spec.data.constants = {
'DARK_START': 100,
'DARK_STEP': 2,
};
spec.state.regist... |
src/notebook/ipython_profiles/profile_narrative/kbase_templates/static/kbase/js/widgets/narrative_core/kbaseNarrativeDownloadPanel.js | scanon/narrative | /**
* "Download" panel for each element in data list panel.
* @author Roman Sutormin <rsutormin@lbl.gov>
* @public
*/
(function( $, undefined ) {
$.KBWidget({
name: "kbaseNarrativeDownloadPanel",
parent: "kbaseWidget",
version: "1.0.0",
options: {
token: null,
t... |
test/test_helper.js | pgriscti/payment-orginizer | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
tests/new_react/propTypes.js | dv/flow | var React = require('react');
var PropTypes = React.PropTypes;
var C = React.createClass({
propTypes: {
statistics: PropTypes.arrayOf(PropTypes.shape({
label: PropTypes.string.isRequired,
value: PropTypes.number,
})).isRequired,
}
});
<C statistics={[
{},
{label:"",value:undefined},
]}/>; ... |
node_modules/react-bootstrap/es/MediaList.js | Technaesthetic/ua-tools | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
components/Recipes.ios.js | xfredlix/snacktime | import React, { Component } from 'react';
import { Text, View, Image, TextInput, ListView, TouchableHighlight, TouchableOpacity } from 'react-native';
import helpers from '../helpers/helpers.js';
import Recipe from './Recipe.ios.js';
import styles from '../styles.ios.js';
import NutrientComparisons from './NutrientsCom... |
tools/webpack.config.js | willchertoff/Ben-Kinde | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path';
import webpack from 'webpack';... |
packages/material-ui-icons/src/ShopTwo.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z" />
, 'ShopTwo');
|
ajax/libs/webshim/1.14.6-RC1/dev/shims/combos/26.js | ColinEberhardt/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 ... |
client/util/requireAuth.js | rystecher/senior-design | import React from 'react';
import { connect } from 'react-redux';
export default function (ComposedComponent) {
class Authenticate extends React.Component {
componentWillMount() {
if (!this.props.isAuthenticated) {
this.context.router.push('/');
}
}
... |
static/dist/assets/index.js | yicheng-irun/yinode | !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
frontend/source/components/Profil.component.js | MadStain/nii-projet-partage | import React from 'react';
import { Image, Col, Panel } from 'react-bootstrap'
const Profil = (props) => {
return (
<Panel>
<h3> Mon compte </h3>
<Image src={props.imgUrl} responsive circle />
<p> typeUser: {props.typeUser}</p>
<p> Identifiant: {props.username}</p>
<... |
src/components/Layout/SearchDrawer/presenter.js | ndlib/usurper |
import React from 'react'
import PropTypes from 'prop-types'
import SearchPreference from './SearchPreference'
import SearchBox from './SearchBox'
import AdvancedSearch from './AdvancedSearch'
import AdditionalLinks from './AdditionalLinks'
import 'static/css/global.css'
import 'static/css/search.css'
const Drawer = ... |
src/components/Skeleton/Skeleton.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './Skeleton.css';
const Skeleton = props => {
const elements = [];
const countTo = props.count || 1;
for (let i = 0; i < countTo; i += 1) {
elements.push(<span key={i} cla... |
ajax/libs/yui/3.0.0b1/yui/yui.js | gokuale/cdnjs | (function() {
var _instances = {},
_startTime = new Date().getTime(),
p,
i,
add = function () {
if (window.addEventListener) {
return function(el, type, fn, capture) {
el.addEventListener(type, fn, (!!capture));
};
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.