path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/Table/TableActionCell/TableActionCell.specs.js | auth0-extensions/auth0-extension-ui | import React from 'react';
import { mount } from 'enzyme';
import { expect } from 'chai';
import TableActionCell from './';
const { describe, it } = global;
describe('TableActionCell', () => {
it('should render one td item', () => {
const text = 'This is the TableActionCell children.';
const wrapper = moun... |
packages/material-ui-icons/src/TabletAndroidSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 0H3v24h18V0zm-7 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z" />
, 'TabletAndroidSharp');
|
actor-apps/app-web/src/app/utils/require-auth.js | ketoo/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
node_modules/material-ui/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js | SerendpityZOEY/Solr-Search-React-UI | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
Scripts/client.js | gvas/subtitle-quality-checker | /*eslint-env browser*/
/*global INITIAL_STATE*/
import './client.scss'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createHistory } from 'history'
import { Router, useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-red... |
src/view/UIElement/editor/index.js | fishmankkk/mircowater2.0 | import React from 'react'
import { Editor } from 'components'
import { convertToRaw } from 'draft-js'
import { Row, Col, Card } from 'antd'
import draftToHtml from 'draftjs-to-html'
import draftToMarkdown from 'draftjs-to-markdown'
// https://github.com/jpuri/react-draft-wysiwyg/blob/master/docs/src/components/Demo/ind... |
assets/node_modules/material-ui/Stepper/StepButton.js | janta-devs/nyumbani | '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]; } } }... |
client/containers/add-film.container.js | tenkiller/flix | import React from 'react';
import { connect } from 'react-redux';
import { addFilm } from '../actions/film.actions';
let AddFilmContainer = ({ dispatch }) => {
let count = 1, title, year, rating, genre;
return (
<form className="form-inline" onSubmit={ e => {
e.preventDefault();
dispatch... |
ui/js/dfv/src/fields/time/index.js | pods-framework/pods | import React from 'react';
import PropTypes from 'prop-types';
import DateTime from '../datetime';
import { FIELD_COMPONENT_BASE_PROPS } from 'dfv/src/config/prop-types';
const Time = ( props ) => {
const {
fieldConfig = {},
} = props;
// Process the field config so that properties prefixed with "date_"
// are... |
src/svg-icons/action/settings-ethernet.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsEthernet = (props) => (
<SvgIcon {...props}>
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12... |
src/components/canvas/grid.js | robzsk/mm.editor | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Row from './row';
import { connect } from 'react-redux';
import { draw } from './../../actions/grid';
class Grid extends Component {
getWidth() {
return this.props.state.grid[0].length;
}
getHeight() {
return this.props.st... |
package.js | dolgarev/meteor-reactive-var-increment-and-decrement | Package.describe({
name: 'liberation:reactive-var-inc-and-dec',
summary: 'Adds methods "inc" and "dec" to ReactiveVar',
version: '1.0.2',
git: 'https://github.com/dolgarev/meteor-reactive-var-increment-and-decrement.git'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use('reactive-var');
... |
examples/with-styled-components/pages/index.js | nahue/next.js | import React from 'react'
import styled from 'styled-components'
const Title = styled.h1`
color: red;
font-size: 50px;
`
export default () => <Title>My page</Title>
|
src/components/Projects/Outfitr/Outfitr.js | NathanBWaters/website | import React, { Component } from 'react';
import Helmet from 'react-helmet';
// import ReactMarkdown from 'react-markdown';
// import Markdown2HTML from 'react-markdown-to-html';
export default class Outfitr extends Component {
render() {
const pStyles = require('../Projects.scss');
const rStyles = require(... |
frontend/js/components/atoms/Card.js | ttavenner/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Icon from './../atoms/Icon';
class Card extends Component {
constructor(props) {
super(props);
}
render() {
return (
<section
className={`${this.props.className} card`}
... |
renderer/components/Icon/Btcpay.js | LN-Zap/zap-desktop | import React from 'react'
const SvgBtcpay = props => (
<svg height="1em" viewBox="0 0 400 400" width="1em" {...props}>
<g fillRule="evenodd">
<path
d="M132.759 62.5c-.022.055-.104.809-.182 1.676l-.141 1.577.582-1.122c.677-1.305.752-2.231.182-2.231-.22 0-.418.045-.441.1m60.631 6.548c.357.356.769.526... |
template/AdminLTE/bower_components/Flot/jquery.js | finsananda/ecommarcekppl | /*!
* jQuery JavaScript Library v1.8.3
* 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: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
src/__tests__/components/ChatApp/MessageListItem/Feedback.js | RMCoder198/chat.susi.ai | import React from 'react';
import Feedback from '../../../../components/ChatApp/MessageListItem/Feedback.react';
import { shallow } from 'enzyme';
describe('<Feedback />', () => {
it('render Feedback without crashing', () => {
shallow(<Feedback />);
});
});
|
src/routes/UIElement/editor/index.js | liuweiGL/eastcoal_mgr_react | import React from 'react'
import { Editor } from '../../../components'
import { convertToRaw } from 'draft-js'
import { Row, Col, Card } from 'antd'
import draftToHtml from 'draftjs-to-html'
import draftToMarkdown from 'draftjs-to-markdown'
// https://github.com/jpuri/react-draft-wysiwyg/blob/master/docs/src/components... |
src/propTypes/ImageStylePropTypes.js | lelandrichardson/react-native-mock | /**
* https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageStylePropTypes.js
*/
import React from 'react';
import ColorPropType from './ColorPropType';
import TransformPropTypes from './TransformPropTypes';
import ShadowPropTypesIOS from './ShadowPropTypesIOS';
import LayoutPropTypes from './Layo... |
packages/react-error-overlay/src/containers/StackTrace.js | CodingZeal/create-react-app | /**
* 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.
*/
/* @flow */
import React, { Component } from 'react';
import StackFrame from './StackFrame';
import Collapsible from '../components/Coll... |
examples/query-params/app.js | adityapunjani/react-router | var React = require('react');
var Router = require('react-router');
var { Route, RouteHandler, Link } = Router;
var App = React.createClass({
render: function () {
return (
<div>
<ul>
<li><Link to="user" params={{userID: "123"}}>Bob</Link></li>
<li><Link to="user" params={{userI... |
public/src/silverstripe-component.js | open-sausages/silverstripe-reactjs-common | /**
* @file Base component which all SilverStripe ReactJS components should extend from.
*/
import React from 'react';
import $ from 'jquery';
class SilverStripeComponent extends React.Component {
/**
* @func componentDidMount
* @desc Bind event listeners which are triggered by legacy-land JavaScript.
* Thi... |
app/src/Frontend/libs/weui/components/tab/tabbar.js | ptphp/ptphp | /**
* Created by n7best
*/
import React from 'react';
import classNames from 'classnames';
export default class TabBar extends React.Component {
render() {
const {children, className, ...others} = this.props;
const cls = classNames({
weui_tabbar: true
}, className);
... |
app/javascript/mastodon/features/ui/components/columns_area.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import TabsBa... |
apps/mk-app-dashboard-analysis/apps/mk-app-market-widget/action.js | ziaochina/mk-demo | import React from 'react'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
import moment from 'moment'
import utils from 'mk-utils'
class action {
constructor(option) {
this.metaAction = option.metaAction
this.config = config.current
}
onInit =... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | yaoliyc/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
src/parser/druid/feral/modules/features/EnergyCapTracker.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Icon from 'common/Icon';
import SPELLS from 'common/SPELLS';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { formatDuration, formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Tooltip from 'common/To... |
src/components/Form.js | marcelblijleven/thunder | import React from 'react';
import 'bootstrap/dist/css/bootstrap.css';
import Utils from './../utils/Utils';
import './../css/Form.css'
export default class Form extends React.Component {
constructor() {
super();
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind... |
user_guide/_static/jquery.js | stevezaxz/ciolproject2 | /*! 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===... |
ajax/libs/angular-ui-select/0.8.3/select.js | lucasls/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.8.3 - 2014-10-14T18:22:05.432Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: ... |
src/index.js | rsimmons/immersion-player | import React from 'react';
import ReactDOM from 'react-dom';
import EventEmitter from 'events';
import './index.css';
import App from './components/App';
import ErrorDisplay from './components/ErrorDisplay';
import MainActions from './mainActions';
import { SubscribableState, StateMapper } from './ruxx';
// Load Kur... |
front_end/front_end_app/src/client/lib/flux/decorate.js | Horizon-Framework/horizon | import Component from '../../components/component.react';
import Flux from './flux';
import React from 'react';
// https://developers.google.com/web/updates/2012/08/When-milliseconds-are-not-enough-performance-now?hl=en
function now() {
const hasBrowserPerformanceNow =
process.env.IS_BROWSER && window.performanc... |
src/Interpolate.js | apisandipas/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
src/svg-icons/device/battery-alert.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryAlert = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0... |
examples/basic/src/index.js | mateomurphy/react-tabbed | import React from 'react'
import ReactDOM from 'react-dom'
import { Tabbed, Tab, Pane } from '../../../src'
const App = React.createClass({
render() {
return (
<Tabbed defaultValue='foo'>
<div>
<h1>Basic example</h1>
<ul className='nav nav-tabs'>
<Tab for='foo'>Foo... |
src/components/mask.js | elbecita/me | 'use-strict';
import React from 'react';
const Mask = () => {
return (
//<figure className="tint">
<div id="home" className="intro view">
<div className="container-fluid d-flex align-items-center justify-content-center">
<div className="row d-flex justify-content-center">
<div classN... |
src/routes/login/Login.js | divsbhalala/accelEventsWebApp | /**
* 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 React from 'react';
import PropTypes from 'prop-... |
bundle-size/fixtures/Icon.size.js | Semantic-Org/Semantic-UI-React | import { Icon } from 'semantic-ui-react'
import React from 'react'
import ReactDOM from 'react-dom'
function App() {
return <Icon name='book' />
}
ReactDOM.render(<App />, document.querySelector('#root'))
|
packages/material-ui-icons/src/TextRotationNone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12.75 3h-1.5L6.5 14h2.1l.9-2.2h5l.9 2.2h2.1L12.75 3zm-2.62 7L12 4.98 13.87 10h-3.74zm10.37 8l-3-3v2H5v2h12.5v2l3-3z" />
, 'TextRotationNone');
|
ajax/libs/yui/3.14.0/event-focus/event-focus-coverage.js | kartikrao31/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/6to5/2.13.5/browser-polyfill.js | gokuale/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... |
tst/unit/Title.spec.js | doug-wade/incubator-application | import ReactTestRenderer from 'react-test-renderer';
import Title from '../../browser/components/Title';
import React from 'react';
test('Title has site title', () => {
const renderer = ReactTestRenderer.create(
<Title />
);
expect(renderer.toJSON().children[0].children[0]).toBe('Cornish Incubator Applicati... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | Tushige/Angular2-Imdb | 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/material-ui-icons/src/SecurityOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z" /></g></React.Fra... |
client/src/app/components/forms/inputs/IonSlider.js | zraees/sms-project | import React from 'react'
import 'script-loader!ion-rangeslider/js/ion.rangeSlider.min.js'
export default class IonSlider extends React.Component {
componentDidMount() {
$(this.refs.input).ionRangeSlider();
}
render() {
return (
<input {...this.props} ref="input"/>
)
}
}
|
ajax/libs/preact/4.5.0/preact.dev.js | rlugojr/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.preact = factory());
}(this, function () { 'use strict';
function VNode(nodeName, attributes, children) {
/** @type... |
ajax/libs/6to5/1.14.0/browser.js | tholu/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
src/svg-icons/image/center-focus-strong.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusStrong = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V... |
data-min.js | sbrl/microjs.com | <<<<<<< HEAD
var MicroJS=[{"name":"blobcounter.js","tags":["blob","image","canvas","processing","2D","blobcounter"],"description":"blobcounter.js helps you find blobs and shapes in an image","url":"https://github.com/amirhkkh/blobcounter.js","size":"0.5 kB","ghwatchers":"0","ghforks":"0","xmlEncodedName":"blobcounter.j... |
ajax/libs/webshim/1.15.6-RC1/dev/shims/es6.js | AMoo-Miki/cdnjs | // ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableW... |
examples/official-storybook/stories/addon-events.stories.js | rhalff/storybook | import React from 'react';
import EventEmitter from 'eventemitter3';
import { storiesOf } from '@storybook/react';
import WithEvents from '@storybook/addon-events';
import Logger from './Logger';
const EVENTS = {
TEST_EVENT_1: 'test-event-1',
TEST_EVENT_2: 'test-event-2',
TEST_EVENT_3: 'test-event-3',
TEST_EV... |
analysis/warlockdemonology/src/modules/talents/SacrificedSouls.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import { formatThousands } from 'common/format';
import STATISTIC_CATEG... |
admin/src/components/PopoutListHeading.js | ligson/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
},
render () {
let className = classnames('PopoutList__heading', this.props.cl... |
src/components/Chat/Markup/compile.js | u-wave/web | import React from 'react';
import Bold from './Bold';
import Code from './Code';
import Italic from './Italic';
import StrikeThrough from './StrikeThrough';
import Mention from './Mention';
import GroupMention from './GroupMention';
import Link from './Link';
import Emoji from './Emoji';
export default function compil... |
pages/demos/popovers.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/demos/popovers/popovers.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={... |
ajax/libs/vega-lite/2.0.0-beta.7/vega-lite.js | pvnr0082t/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.vl = f()}})(fu... |
ajax/libs/react-data-grid/0.14.23/react-data-grid.js | emmy41124/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... |
src/packages/@ncigdc/components/Aggregations/ExactMatchFacet.js | NCI-GDC/portal-ui | // @flow
// Vendor
import React from 'react';
import { compose, withState, pure } from 'recompose';
import LocationSubscriber from '@ncigdc/components/LocationSubscriber';
// Custom
import { parseFilterParam } from '@ncigdc/utils/uri';
import { getFilterValue, makeFilter } from '@ncigdc/utils/filters';
import { Row, ... |
__tests__/index.android.js | DevelopHack/React-Native-Github | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/svg-icons/action/flight-land.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
flask/lib/python2.7/site-packages/werkzeug/debug/shared/jquery.js | jfarcher/checkinapi | /*! jQuery v1.11.3 | (c) 2005, 2015 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... |
definitions/npm/@reach/dialog_v0.2.x/flow_v0.84.x-/test_dialog_v0.2.x.js | splodingsocks/FlowTyped | // @flow
import React from 'react';
import { Dialog, DialogContent, DialogOverlay } from '@reach/dialog';
import { it, describe } from 'flow-typed-test';
describe('@reach/dialog', () => {
describe('Dialog', function () {
it('accepts isOpen flag', function () {
<Dialog isOpen>foo</Dialog>;
// $FlowEx... |
information/blendle-frontend-react-source/app/containers/IssueStackContainer.js | BramscoChill/BlendleParser | import React from 'react';
import { string } from 'prop-types';
import AltContainer from 'alt-container';
import IssueStack from 'components/IssueStack';
import IssueActions from 'actions/IssueActions';
import IssuesStore from 'stores/IssuesStore';
function findSrc(latestIssues, providerId) {
const latestIssue = lat... |
app/components/ImageButton.js | attentiveness/reading | /**
*
* Copyright 2016-present reading
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
src/containers/views/tests/staticfiles.spec.js | bunto/bunto-admin | import React from 'react';
import { mount } from 'enzyme';
import { StaticFiles } from '../StaticFiles';
import { staticfile } from './fixtures';
function setup(files=[staticfile]) {
const actions = {
fetchStaticFiles: jest.fn(),
uploadStaticFiles: jest.fn(),
deleteStaticFile: jest.fn(),
search: je... |
src/svg-icons/action/opacity.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpacity = (props) => (
<SvgIcon {...props}>
<path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.... |
ajax/libs/primeui/4.1.8/primeui.min.js | humbletim/cdnjs | var PUI={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"},charSet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",scrollInView:function(t,e){var i=parseFloat(t.css("borderTopWidth"))||0,s=parseFloat(t.css("paddingTop"))||0,n=e.offset().top-t.... |
ajax/libs/es6-shim/0.22.0/es6-shim.js | sufuf3/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.22.0
* see https://github.com/paulmillr/es6-shim/blob/0.22.0/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
ui/components/Test.js | nlhuykhang/apollo-react-quotes-client | import React from 'react';
const Test = ({ text }) => (
<div className="">
{text}
</div>
);
Test.propTypes = {
text: React.PropTypes.string.isRequired,
};
export default Test;
|
packages/xo-web/src/xo-app/xoa/update/index.js | vatesfr/xo-web | import _, { messages } from 'intl'
import ActionButton from 'action-button'
import AnsiUp from 'ansi_up'
import Button from 'button'
import Copiable from 'copiable'
import decorate from 'apply-decorators'
import defined, { get } from '@xen-orchestra/defined'
import Icon from 'icon'
import React from 'react'
import Tool... |
src/svg-icons/action/visibility.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibility = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-... |
tests/client/core/components/TestNotFound.js | mstriemer/usetopscore-widgets | import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import NotFound from 'core/components/NotFound';
describe('<NotFound />', () => {
const root = renderIntoDocument(<NotFound />);
it('sets a heading', () => {
assert.equal(
root.refs.heading.textContent, "We're sorry... |
mobile/mock ups/albums/src/components/AlbumDetail.js | parammehta/TravLendar | import React from 'react';
import { View, Text, Image, Linking } from 'react-native';
import Card from './Card';
import CardSection from './CardSection';
import Button from './Button';
const AlbumDetail = ({ album }) => {
const { title, artist, thumbnail_image, image, url } = album;
const {
heade... |
src/svg-icons/editor/format-list-numbered.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatListNumbered = (props) => (
<SvgIcon {...props}>
<path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/... |
ajax/libs/vkui/4.27.0/cjs/components/SliderSwitch/SliderSwitchButton.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SliderSwitchButton = void 0;
var _jsxRu... |
src/pages/list/comp.Item.js | neekey/daigou | import React from 'react';
import style from './comp.Item.scss';
import LazyLoad from 'react-lazyload';
import placeholderImg from './placeholder.png';
const isSource = document.location.host.includes('-source');
function requireAll(requireContext) {
return requireContext.keys().map(requireContext);
}
// requires an... |
examples/dynamic-form-fields/app.js | RMSAuto/formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import { Form } from 'formsy-react';
import MyInput from './../components/Input';
import MySelect from './../components/Select';
import MyRadioGroup from './../components/RadioGroup';
import MyMultiCheckboxSet from './../components/MultiCheckboxSet';
const ... |
tp-3/marisol/src/components/AboutPage.js | solp/sovos-reactivo-2017 | import React from 'react';
import { Link } from 'react-router-dom';
import '../styles/about-page.css';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About</h2>
<p>
This example app is part ... |
src/toolPages/downloader.js | kura52/sushi-browser | window.debug = require('debug')('info')
// require('debug').enable("info")
import process from './process'
import {ipcRenderer as ipc} from './ipcRenderer'
import React from 'react';
import ReactDOM from 'react-dom';
import uuid from 'node-uuid';
import Selection from '../render/react-selection/indexTable';
import path... |
src/components/ApplicationContext.js | 0xcdc/rfb-client-app | import React from 'react';
const ApplicationContext = React.createContext({
fetch: () => {
throw new Error('Fetch method not initialized.');
},
});
export default ApplicationContext;
|
src/containers/SearchBar.js | vamsikoduri/udemy_next_level_redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
import { connect } from 'react-redux';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: "" };
this.onInputChan... |
ajax/libs/yui/3.8.1/datatable-body/datatable-body-coverage.js | ddeveloperr/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
packages/node_modules/@webex/react-component-button/src/index.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '@webex/react-component-icon';
import styles from './styles.css';
const propTypes = {
accessibilityLabel: PropTypes.string,
buttonClassName: PropTypes.string,
children: PropTypes.node,
iconColo... |
ajax/libs/angular-ui-select/0.11.1/select.js | vetruvet/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.11.0 - 2015-03-09T00:55:08.441Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: 18... |
examples/basic/forms/index.js | diasbruno/react-modal | import React, { Component } from 'react';
import Modal from 'react-modal';
const MODAL_A = 'modal_a';
const MODAL_B = 'modal_b';
const DEFAULT_TITLE = 'Default title';
class Forms extends Component {
constructor(props) {
super(props);
this.state = { isOpen: false };
}
toggleModal = event => {
con... |
react-flux-mui/js/material-ui/src/svg-icons/maps/directions-transit.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsTransit = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
test/containers/CounterPage.spec.js | waha3/Electron-NeteaseCloudMusic | import React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import CounterPage from '../../app/containers/CounterPage';
import configureStore from '../../app/store/configureStore';
function setup(initialState) {
const store = configureStore(initialState);
const app = mount(
... |
information/blendle-frontend-react-source/app/components/tiles/NoResultsTile.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import Tile from 'components/Tile';
import { translateElement } from 'instances/i18n';
export default class NoResultsTile extends React.Component {
static propTypes = {
query: PropTypes.string.isRequired,
};
render() {
return (
<Tile t... |
sandbox-react-redux/src/index.js | ohtomi/sandbox | import React from 'react'
import ReactDOM from 'react-dom'
import AppContainer from './components/AppContainer'
import { Provider } from 'react-redux'
import store from './store'
import router from './router'
import history from './history'
import './index.css'
import registerServiceWorker from './registerServiceWor... |
react-test/__tests__/CheckboxWithLabel-test.js | jcdoig/reactjs101 | jest.dontMock('../CheckboxWithLabel');
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
const CheckboxWithLabel = require('../CheckboxWithLabel');
describe('CheckboxWithLabel', () => {
it('changes the text after click', () => {
// Render a checkbox... |
src/svg-icons/action/dashboard.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDashboard = (props) => (
<SvgIcon {...props}>
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/>
</SvgIcon>
);
ActionDashboard = pure(ActionDashboard);
ActionDashboard.displayName... |
examples/async/index.js | eiriklv/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
app/javascript/mastodon/components/__tests__/avatar_overlay-test.js | koba-lab/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import AvatarOverlay from '../avatar_overlay';
describe('<AvatarOverlay', () => {
const account = fromJS({
username: 'alice',
acct: 'alice',
display_name: 'Alice',
avatar: '/animated/alice.gif',... |
packages/material-ui-icons/src/NearMe.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="M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z" /></React.Fragment>
, 'NearMe');
|
src/admin/routes.js | jasonthomas/addons-frontend | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import LoginRequired from 'core/containers/LoginRequired';
import HandleLogin from 'core/containers/HandleLogin';
import App from './containers/App';
import AddonPage from './containers/AddonPage';
import SearchPage from './containers/Search... |
frontend/src/Components/Form/EnhancedSelectInputSelectedValue.js | Radarr/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import styles from './EnhancedSelectInputSelectedValue.css';
function EnhancedSelectInputSelectedValue(props) {
const {
className,
children,
isDisabled
} = props;
return (
<div className={classNam... |
src/docs/examples/TextInputBEM/ExampleError.js | miker169/ps-react-miker169 | import React from 'react';
import TextInputBEM from 'ps-react/TextInputBEM';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInputBEM
htmlId="example-optional"
name="firstname"
label="First Name"
onChang... |
Week03/Assignment1StarterCode/CoursesAPI/Scripts/jquery-1.10.2.js | RagnarRa/2015-T-514-VEFT | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
src/components/animation/index.js | KleeGroup/focus-components | //dependencies
import PropTypes from 'prop-types';
import React from 'react';
import { CSSTransitionGroup as ReactCSSTransitionGroup } from 'react-transition-group';
const propTypes = {
//If you want to use a custom css class
// for each transion step, set this prop to TRUE.
customClasses: PropTypes.bool,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.