path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/react-data-grid/0.14.27/react-data-grid-with-addons.js | jonobr1/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
modules/__tests__/matchRoutes-test.js | andreftavares/react-router | /*eslint-env mocha */
import React from 'react'
import Route from '../Route'
import assert from 'assert'
import expect from 'expect'
import { createLocation } from 'history'
import { createRoutes } from '../RouteUtils'
import matchRoutes from '../matchRoutes'
describe('matchRoutes', function () {
let routes, RootR... |
packages/material-ui-icons/src/NotificationImportantTwoTone.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 6c-2.76 0-5 2.24-5 5v7h10v-7c0-2.76-2.24-5-5-5zm1 10h-2v-2h2v2zm0-4h-2V8h2v4z" opacity=".3" /><path d="M12 23c1.1 0 1.99-.89 1.99-1.99h-3.98c0 1.1.89 1.99 1.99 1.99zm7-6v-6c0-... |
react/features/base/react/components/native/PagedList.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { SafeAreaView, Text, TouchableOpacity, View } from 'react-native';
import { Icon } from '../../../icons';
import { connect } from '../../../redux';
import styles from './styles';
/**
* The type of the React {@code Component} props of {@link PagedList}.
*/... |
ajax/libs/forerunnerdb/1.3.610/fdb-core+persist.min.js | viskin/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... |
fields/types/html/HtmlField.js | woody0907/keystone | import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import tinymce from 'tinymce';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
var lastId = 0;
function getId() {
return 'keystone-html-' + lastId++;
}
module.exports = Field.create({
... |
src/shared/routes.js | sheodox/react-redux-base | 'use strict';
import React from 'react';
import {Router, Route, Link} from 'react-router';
import App from './components/App';
export default [{
path: '/',
component: App
}]; |
ajax/libs/rxjs/2.3.16/rx.compat.js | stefanneculai/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/svg-icons/image/filter-frames.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterFrames = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/>
</... |
plugins/subschema-plugin-type-text/test/Text-test.js | jspears/subschema-devel | import React from 'react';
import { change, expect, findNode, into } from 'subschema-test-support';
import { Text } from 'subschema-plugin-type-text';
describe('types/Text', function () {
it('should create a input with a value', function () {
const text = into(<Text value="abc" onChange={(e) => e}/>);
... |
app/components/accountList/AccountListContainer.js | btg5679/portalReact | import React from 'react';
import AccountContainer from './AccountContainer';
import Actions from '../../actions/Actions';
export default class AccountListContainer extends React.Component {
static loadAction(params, domain) {
return Actions.loadLatestAccountList(params, domain);
}
constructor(props) {
... |
src/scenes/home/scholarship/preview/preview.js | hollomancer/operationcode_frontend | import React, { Component } from 'react';
import LinkButton from 'shared/components/linkButton/linkButton';
import PropTypes from 'prop-types';
import styles from './preview.css';
class Preview extends Component {
render() {
const { scholarship } = this.props;
return (
<div className={styles.preview}>
... |
versions/2-react/1-sum/client/src/index.js | hamczu/techsummit-web2016 | import React from 'react'
import { render } from 'react-dom'
import App from './App'
render(<App/>, document.getElementById('root')) |
src/index.js | Aikk/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
ajax/libs/cyclejs-dom/3.0.2/cycle-dom.js | sympmarc/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.CycleDOM = f()... |
src/client/components/TrippianListItemRoundWidget/TrippianListItemRoundWidget.js | trippian/trippian | import log from '../../log'
import React from 'react'
import {
Link
}
from 'react-router'
const TrippianListItemRoundWidget = ({
name = 'Amanda . Sydney', id, picture = 'lorempixel.com/200/200/people/'
}) => {
return (
<div className="popular-trippians-item text-center">
<Link to={`trippian/${id}`}>
... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | WangCrystal/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classnames from 'classnames';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
im... |
ext/packages/sencha-core/src/GlobalEvents.js | LTD-Beget/sprutio-frontend | /**
* An `{@link Ext.mixin.Observable Observable}` through which Ext fires global events.
*
* Ext.on() and Ext.un() are shorthand for {@link #addListener} and {@link #removeListener}
* on this Observable. For example, to listen for the idle event:
*
* Ext.on('idle', function() {
* // do something
... |
src/app/components/footer/index.js | JulianIsrael/basic-react-boilerplate | import React from 'react';
//import Divider from 'components/divider';
const Footer =() => {
return (
<div>
</div>
);
}
export default Footer;
|
examples/with-redux/pages/other.js | nahue/next.js | import React from 'react'
import { initStore, startClock } from '../store'
import withRedux from 'next-redux-wrapper'
import Page from '../components/Page'
class Counter extends React.Component {
static getInitialProps ({ store, isServer }) {
store.dispatch({ type: 'TICK', light: !isServer, ts: Date.now() })
... |
src/widgets/TextInputs/TextInputWithAffix.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
import React from 'react';
import { TextInput as RNTextInput, TextInputProps as RNTextInputProps } from 'react-native';
import propTypes from 'prop-types';
import { FlexRow } from '../FlexRow';
export const TextInputWithAffix = React.forwardRef(
({ TextInputImpl, SuffixC... |
ajax/libs/yui/3.8.0pr1/event-custom-base/event-custom-base-debug.js | dada0423/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* 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.
* @mo... |
node_modules/react-router/modules/IndexLink.js | SlateRobotics/slate-website | import React from 'react'
import Link from './Link'
/**
* An <IndexLink> is used to link to an <IndexRoute>.
*/
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
server/static/node_modules/reactify/node_modules/react-tools/src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js | Grigs-b/wrangler | /**
* 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 the same directory.
*
* @emails react-co... |
js/jquery.js | startcloning/startcloning.github.io | /*! 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... |
resources/static/js/jquery-1.8.3.min.js | tokuhirom/Gaap | /*! 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==... |
node_modules/react-bootstrap/es/Alert.js | newphew92/newphew92.github.io | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
src/index.js | as-ideas/axelspringer-githubpages | import ReactDOM from 'react-dom';
import React from 'react';
import App from 'containers/App/App';
import ProgressiveImage from 'components/ProgressiveImage/ProgressiveImage';
import '../node_modules/normalize.css/normalize.css'
import 'index.html';
import 'styles/normalize.scss';
import 'styles/base.scss';
ReactDO... |
docs/src/PageHeader.js | lo1tuma/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className='bs-docs-header' id='content'>
<div className='container'>
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | kebabdk/angular2gs | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
packages/yhtml5-scripts/demo/spa/src/index.js | yhtml5/YHTML5-CLI | import React from 'react';
import ReactDOM from 'react-dom';
import './global.css'
import App from './components/App/App';
import registerServiceWorker from './registerServiceWorker';
import './test/yhtml5Utils';
import mock from './features/mock';
import axios from "axios";
import { square, cube } from './features/tre... |
app/javascript/mastodon/features/directory/index.js | lindwurm/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from 'mastodon/components/column';
import ColumnHeader from 'mastodon/components/column... |
node_modules/react/lib/ReactDOMInput.js | rajendrav5/webpack2.0 | /**
* 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.
*
* @providesModu... |
example/RNApp/app/components/Button/Button.js | DesignmanIO/react-native-meteor-offline | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
import styles from './styles';
const Button = (props) => {
const { text, onPress } = props;
return (
<TouchableOpacity style={styles.button} onPress={onPress}>
<Text style={styles.buttonText}>
{text}
</Text>
... |
src/routes/crmaccount/List.js | vincentdd/crm | /**
* Created by wxy on 2017/9/24.
*/
import React from 'react'
import moment from 'moment'
import PropTypes from 'prop-types'
import {
Table,
Icon,
Modal,
} from 'antd'
import {
DropOption
} from 'components'
const confirm = Modal.confirm
const List = ({
onEditItem,
onUpdateStatusItem,
...tableProps
... |
pootle/static/js/auth/components/AuthContent.js | pavels/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import assign from 'object-assign';
import React from 'rea... |
scripts/components/presentational/HSpinner.js | moneytrack/frontend | "use strict";
/**
* Copyright (c) 2016 Nikolai Mavrenkov <koluch@koluch.ru>
*
* Distributed under the MIT License (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT).
*
* Created: 23.01.2016 18:33
*/
import React from 'react'
const HorSpinner = React.createClass({
render: function()... |
stories/ToggleSwitch/ExampleSizes.js | nirhart/wix-style-react | import React from 'react';
import ToggleSwitch from 'wix-style-react/ToggleSwitch';
const styles = {
header: {
display: 'flex'
},
switch: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
height: '40px',
},
text: {
padding: '0 25px 0 5px'
}
};
export default () ... |
ajax/libs/angular.js/1.0.4/angular-scenario.js | ColinEberhardt/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/containers/MyList.js | river-lee/react-group | /* app/containers/App.js */
import React from 'react';
import { connect } from 'react-redux';
import * as ListsAction from '../actions/mylist';
import { bindActionCreators } from 'redux';
import UserCollect from '../components/detail_module/user_collect';
import GroupList from '../components/GroupList';
import Toast f... |
ajax/libs/reactive-coffee/0.0.6/reactive-coffee.js | ThibWeb/cdnjs | (function() {
var DepArray, DepCell, DepMap, DepMgr, Ev, FakeObsCell, FakeSrcCell, IndexedArray, IndexedDepArray, IndexedMappedDepArray, MappedDepArray, ObsArray, ObsCell, ObsMap, ObsMapEntryCell, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, SrcMapEntryCell, asyncBind, bind, depMgr, ev, events, firstWhere, flatten, ... |
public_html/basic/web/jqGrid/js/jquery/1.7.2/jquery.min.js | gendalfbug/yii.local | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
More/contents/5 แอพรายรับรายจ่าย เพื่อการออมเงินของคุณ_files/8JtFbB4cTQ7.js | hatoriz/hatoriz.github.io | /*!CK:2466199151!*//*1450069873,*/
if (self.CavalryLogger) { CavalryLogger.start_js(["WZvLc"]); }
__d('InputLabel.react',['React','cx','invariant','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=h.PropTypes,m=0;function n(){return 'js_input_label_'+m++;}var o=h.createClass(... |
src/svg-icons/file/cloud-off.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudOff = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-... |
src/types/dom-types.js | bruderstein/unexpected-react | import GlobalHook from 'react-render-hook';
import React from 'react';
import UnexpectedHtmlLike from 'unexpected-htmllike';
import RenderedReactElementAdapter from 'unexpected-htmllike-reactrendered-adapter';
function installInto(expect) {
const renderedReactElementAdapter = new RenderedReactElementAdapter({
... |
src/routes/chart/lineChart/index.js | tigaly/antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Row, Col, Card, Button } from 'antd'
import Container from '../Container'
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
} from 'recharts'
const data = [
{
name: 'Page A',
uv: 4000,
pv: 2400,
... |
src/components/book/BookForm.js | budiantotan/book-store | import React from 'react';
const BookForm = (props) => {
let titleInput, authorInput, priceInput, yearInput = null;
return (
<form onSubmit={e => {
var input = {
title: titleInput.value,
author: authorInput.value,
price: priceInput.value,
... |
addons/web/static/lib/cleditor/jquery.cleditor.js | QianBIG/odoo | /*!
CLEditor WYSIWYG HTML Editor v1.4.4
http://premiumsoftware.net/CLEditor
requires jQuery v1.4.2 or later
Copyright 2010, Chris Landowski, Premium Software, LLC
Dual licensed under the MIT or GPL Version 2 licenses.
*/
(function ($) {
//==============
// jQuery Plugin
//==============
... |
docs/app/components/appbar/index.js | jasonleibowitz/react-toolbox | import React from 'react';
import { AppBar } from 'react-toolbox';
import { Link } from 'react-router';
import Logo from '../logo';
import Navigation from '../navigation';
import style from './style';
const MainAppBar = (props) => {
let className = style.appbar;
if (props.className) className += ` ${props.classNam... |
files/core-js/1.2.1/core.js | osxi/jsdelivr | /**
* core-js 1.2.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
src/renderers/native/__mocks__/flattenStyle.js | yuhualingfeng/react | /**
* 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.
*/
'use strict';
//... |
web/static/js/containers/SettingsContainer.js | mojotech/pivotal-swimlanes | import React, { Component } from 'react';
import Settings from '../components/Settings/Settings';
import Loading from '../components/shared/Loading';
import { getSettings, updateSettings } from '../utils/settings';
import $ from 'jquery';
import _ from 'lodash';
const pivotalAPI = 'https://www.pivotaltracker.com/servi... |
website-prototyping-tools/playground.js | chentsulin/relay | /**
* 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.
*/
'use strict... |
examples/todomvc/containers/App.js | ngokevin/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider redux={... |
src/routes/RetailersMap/components/RetailersMap.js | TheModevShop/craft-app | import React from 'react';
import {addEvent, addPageView} from 'utility/ga.js';
import $ from 'jquery';
import _ from 'lodash';
import {Link} from 'react-router';
import LocationList from './LocationList/LocationList';
import LocationDetails from './LocationDetails/LocationDetails';
import MapLoading from './MapLoading... |
node_modules/react-icons/io/usb.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoUsb = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m11.3 17.2z m18.7-7.2c0 0.9-0.5 1.6-1.1 2.1-0.1 0.1-0.2 0.4-0.2 0.6-0.1 1.5-0.3 2.8-0.7 3.9-0.6 1.4-1.6 2.5-3.1 3.6-1.3 0.9-2.2 1.6-2.8 2.6-0.5 0.9-0.9 2.2-0.9 4.2v1.8c0 ... |
src/library/Dialog/DialogTitle.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { withTheme } from 'emotion-theming';
import IconDanger from '../Icon/IconDanger';
import IconSuccess from '../Icon/IconSuccess';
import IconWarning from '../Icon/IconWarning';
import { textWithThemeOverrides } from '../Text';
import { APPEARANCE } from './constants';
impor... |
examples/counter/containers/Root.js | johnbacon/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
packages/material-ui-icons/src/DirectionsCar.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let DirectionsCar = props =>
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-... |
app/imports/ui/client/pages/404/index.js | valcol/ScrumNinja | import React from 'react';
const NotFound = () => <div className="error-page">
<h2 className="headline text-yellow"> 404</h2>
<div className="error-content">
<h3><i className="fa fa-warning text-yellow" /> Oops! Page not found.</h3>
<p>
We could not find the page you were looking for.
Meanwhile, you may <... |
js/vendor/jquery-1.11.0.min.js | gh1fields/COX_TicTacToe | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | tateisu/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { changeComposeSensitivity } from 'mastodon/actions/compose';
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl';
const messages = defineMessages({
... |
js/components/pages/Dashboard.react.js | techaware/biometric-auth | /*
* HomePage
*
* The Dashboard is only visible to logged in users
* Route: /dashboard
*
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Chart } from 'react-d3-core';
import { BarChart } from 'react-d3-basic';
import {LineChart} from 'react-d3-basic';
class Dashboar... |
app/components/__tests__/RadioOption.js | LeagueDevelopers/lol-skins-viewer | import React from 'react';
import { shallow, mount } from 'enzyme';
import RadioOption from '../RadioOption';
describe('<RadioOption />', () => {
it('should render two children', () => {
const wrapper = mount(<RadioOption checked />);
expect(wrapper.children().length).toBe(2);
});
it('should render its... |
ajax/libs/yasr/2.2.1/yasr.bundled.min.js | WebReflection/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.YASR=e()}}(function(){var e;return function t(e,n,r){... |
docs/src/components/Home/Hero/ColorPreview/ColorPreview.js | seekinternational/seek-asia-style-guide | import styles from './ColorPreview.less';
import React from 'react';
import lessToJs from 'less-vars-to-js';
import Droplet from './Droplet/Droplet';
import elements from '!!raw-loader!seek-asia-style-guide/theme/palette/elements.less';
const elementsValues = lessToJs(elements);
const getSwatch = name => {
const v... |
node_modules/core-js/client/core.js | r7lemieux/increment | /**
* core-js 2.5.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2017 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The r... |
src/containers/DevToolsWindow.js | franferdez/fuga-challenge | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
export default createDevTools(
<LogMonitor />
)
|
examples/todomvc/test/components/MainSection.spec.js | zalmoxisus/remote-redux-devtools | import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import MainSection from '../../components/MainSection';
import TodoItem from '../../components/TodoItem';
import Footer from '../../components/Footer';
import { SHOW_ALL, SHOW_COMPLETED } from '../../constants/TodoF... |
ajax/libs/jquery-localScroll/1.2.9/jquery.localScroll.js | chrisyip/cdnjs | /*!
* jQuery.LocalScroll
* Copyright (c) 2007-2013 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html
* @author Ariel Flesler
* @version 1.2.9
*/
;(function( $ ){
var URI = location.href.replace(... |
shared/routes.js | tomzmtl/Brew-Master | import { Route } from 'react-router';
import React from 'react';
import App from './components/App';
const routes = (
<Route path="/" component={App} />
);
export default routes;
|
docs/components/Homepage/Featured/index.js | nfl/react-storybook | import React from 'react';
import PropTypes from 'prop-types';
import './style.css';
const Item = ({ storybook, owner, source }) =>
<div className="ft-sbooks col-xs-6 col-md-4" key={storybook.link}>
<div className="col-md-4">
<a href={storybook.link} target="_blank" rel="noopener noreferrer">
<cent... |
app/javascript/mastodon/features/compose/components/search.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
src/view/dashboard/components/numberCard.js | fishmankkk/mircowater2.0 | import React from 'react'
import PropTypes from 'prop-types'
import { Icon, Card } from 'antd'
import CountUp from 'react-countup'
import styles from './numberCard.less'
function NumberCard ({ icon, color, title, number, countUp }) {
return (
<Card className={styles.numberCard} bordered={false} bodyStyle={{ padd... |
ajax/libs/zeroclipboard/2.0.0-beta.8/ZeroClipboard.js | sahat/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.0.0-beta.8
*/
(function(window, undefined) {
"use s... |
app/router/tools-route.js | get-focus/focus-demo-app | import React from 'react';
import NotificationsView from '../views/tools/notifications';
const route = [
{
path: 'tools/notifications',
component: (props) => (<NotificationsView {...props} />)
}
];
export default route;
|
src/components/Sector.js | ingenalls/circularity | import React from 'react'
import { getCircleX, getCircleY, getX, getY, getAngleBetween } from '../utils/calculations'
const getSectorData = (r, B, C, centerX = r, centerY = r) => {
const x1 = getCircleX(r, B)
const y1 = getCircleY(r, B)
const x2 = getCircleX(r, C)
const y2 = getCircleY(r, C)
return `M${cent... |
ajax/libs/rxjs-dom/4.0.1/rx.dom.compat.js | ColinEberhardt/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
var ... |
src/common/components/FelaProvider.js | TheoMer/este | // @flow
import React from 'react';
import { Provider as Fela } from 'react-fela';
// Enhance Fela provider for universal base components.
export default class FelaProvider extends React.Component {
static propTypes = {
Button: React.PropTypes.func.isRequired,
Image: React.PropTypes.func.isRequired,
Text... |
app/jsx/external_apps/components/Lti2Iframe.js | djbender/canvas-lms | /*
* Copyright (C) 2014 - 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... |
src/shared/routes.js | DarriusWrightGD/BloggingSite | import { Router,Route, IndexRoute,browserHistory } from 'react-router';
import React from 'react';
import App from './components/App';
import Home from './components/Home';
import About from './components/About';
export default (
<Router history={browserHistory}>
<Route component={App} path='/'>
<IndexRout... |
frontend/src/Settings/CustomFormats/CustomFormats/CustomFormats.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Card from 'Components/Card';
import FieldSet from 'Components/FieldSet';
import Icon from 'Components/Icon';
import PageSectionContent from 'Components/Page/PageSectionContent';
import { icons } from 'Helpers/Props';
import translate f... |
ajax/libs/yui/3.10.1/event-custom-base/event-custom-base.js | Timbioz/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* 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.
* @mo... |
examples/custom-server/pages/b.js | nikvm/next.js | import React from 'react'
export default () => <div>b</div>
|
src/app/routes/forms/jcrop/components/OptionSet.js | backpackcoder/world-in-flames | import React from 'react'
import {connect} from 'react-redux'
import {setOptions} from '../actions/options'
import OptionSetBtn from './OptionSetBtn'
const mapStateToProps= (state, props)=>({
//disabled: state.options[props.option] === props.value,
label: props.label,
options: props.options
});
const map... |
ajax/libs/yui/3.1.2/event-custom/event-custom-debug.js | iwdmb/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 e... |
src/components/Badge/Badge.js | GetAmbassador/react-ions | import React from 'react'
import PropTypes from 'prop-types'
import style from './style.scss'
import classNames from 'classnames/bind'
import Icon from '../Icon'
const Badge = props => {
const cx = classNames.bind(style)
const iconPlusText = (props.icon && props.text) ? 'padded' : null
const iconSize = props.siz... |
javascript/containers/new-user-page.js | kdoran/moriana-react | import React from 'react'
import withResource from 'containers/with-resource'
import fetcher from 'fetching/fetcher'
export default class NewUserPage extends React.Component {
state = { error: null, success: false, username: '', password: '', rpassword: '' }
onSubmit = (event) => {
event.preventDefault()
... |
ajax/libs/jQRangeSlider/4.0/jQRangeSliderBar.min.js | SaravananRajaraman/cdnjs | (function(a,b){a.widget("ui.rangeSliderBar",a.ui.rangeSliderDraggable,{options:{leftHandle:null,rightHandle:null,bounds:{min:0,max:100},type:"rangeSliderHandle",range:false,drag:function(){},stop:function(){},values:{min:0,max:20},wheelSpeed:4,wheelMode:null},_values:{min:0,max:20},_waitingToInit:2,_wheelTimeout:false,... |
rest_framework_swagger/static/rest_framework_swagger/lib/jquery-1.8.0.min.js | vmfarms/django-rest-swagger | /*! jQuery v@1.8.0 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=... |
src/components/icons/MoreVertIcon.js | austinknight/ui-components | import React from 'react';
const MoreVertIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none" />
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2... |
frontend/src/pages/sys-admin/virus-scan/nav.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from '@reach/router';
import { siteRoot, gettext } from '../../../utils/constants';
const propTypes = {
currentItem: PropTypes.string.isRequired
};
class Nav extends React.Component {
constructor(props) {
super(props);
this.na... |
js/AsyncRoute.js | adamki/Reactv2-2017 | import React from 'react'
const { object } = React.PropTypes
const AsyncRoute = React.createClass({
propTypes: {
props: object,
loadingPromise: object
},
getInitialState () {
return {
loaded: false
}
},
componentDidMount () {
this.props.loadingPromise.then((module) => {
consol... |
src/components/utilities/icons/LinkIcon.js | jackson-/hireblack.io | import React from 'react'
import PropTypes from 'prop-types'
const Link = () => (
<svg className='link' x='0px' y='0px'
width='28px' height='28px' viewBox='78.05 77.7 35.9 36' enableBackground='new 78.05 77.7 35.9 36'>
<path d='M84.336,104.522l2.891,2.891
c0.399,0.299,0.798,0.498,1.296,0.498c0.498,0,0.9... |
ajax/libs/yui/3.17.2/datatable-body/datatable-body.js | thesandlord/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
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... |
client/components/404/index.js | karuppiah7890/Mail-for-Good | import React from 'react';
const NotFound = () => {
return (
<div>
<section className="content-header">
<h1>Page not found
<small>Please check the URL</small>
</h1>
</section>
</div>
);
};
export default NotFound;
|
lib/components/Home.js | veeracs/react-stackex | import React from 'react'
import styles from './home.scss';
export default class Home extends React.Component {
render() {
return (
<div className={styles.home}>
<h2>Home</h2>
</div>
)
}
}
|
src/app/containers/Photo.js | pingwing/travel-guide-las-palmas | import React from 'react';
import {Component} from 'react';
export default class Photo extends Component {
render() {
return (<div className="row">
<p className="name row" style={{height:'10px', marginLeft:'5em'}}>{this.props.currentMarker.name}</p>
<div className="row">
<img role="pres... |
demo/demoFactory/components/groupComponents/Group.js | gearz-lab/redux-autoform | import React from 'react';
import { array, object, string } from 'prop-types';
export default class Group extends React.Component {
static propTypes = {
component: string,
fields: array.isRequired,
layout: object.isRequired,
componentFactory: object.isRequired
};
getCompone... |
docs/src/app/components/pages/components/Badge/Page.js | rhaedes/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 badgeReadmeText from './README';
import BadgeExampleSimple from './Exampl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.