path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/jQuery-Validation-Engine/2.6.3/jquery-1.8.2.min.js | gaearon/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==... |
test/regressions/tests/ListSubheader/PrimaryListSubheader.js | allanalexandre/material-ui | import React from 'react';
import ListSubheader from '@material-ui/core/ListSubheader';
export default function PrimaryListSubheader() {
return <ListSubheader color="primary">Title</ListSubheader>;
}
|
test/integration/css-fixtures/valid-and-invalid-global/pages/_app.js | zeit/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/scripts/components/Line.js | drankadank/client | 'use strict';
import React from 'react';
import Firebase from 'firebase';
export default class Line extends React.Component {
constructor(props) {
super(props);
this.state = {
line: []
};
this.fireRef = new Firebase('https://drank.firebaseio.com/');
this.lineRef = this.fireRef.child('line'... |
client/app/containers/Session/components/UserCard/index.js | sosaucily/r3-go | import React from 'react';
import styled from 'styled-components';
import Avatar from 'components/Avatar';
import UserDataField from './UserDataField';
const Container = styled.div`
align-items: center;
color: #666662
cursor: pointer;
display: flex;
font-family: Lato Light,sans-serif;
height: ... |
src/components/common/svg-icons/file/cloud-queue.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudQueue = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.9... |
files/babel/5.2.0/browser-polyfill.js | cedricbousmanne/jsdelivr | (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... |
pkg/ui/src/components/EditorPage.js | matt-deboer/kuill | import React from 'react'
import PropTypes from 'prop-types'
import FlatButton from 'material-ui/FlatButton'
import RaisedButton from 'material-ui/RaisedButton'
import Dialog from 'material-ui/Dialog'
import { routerActions } from 'react-router-redux'
import { connect } from 'react-redux'
import { grey500 } from 'mate... |
ajax/libs/yui/3.7.3/event-custom-base/event-custom-base.js | itvsai/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... |
app/containers/HomePage/index.js | haithemT/app-test | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectRepos, mak... |
ajax/libs/jquery-mobile/1.3.1/jquery.mobile.js | XVicarious/cdnjs | /*
* jQuery Mobile 1.3.1
* Git HEAD hash: 74b4bec049fd93e4fe40205e6157de16eb64eb46 <> Date: Wed Apr 10 2013 21:57:23 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory )... |
test/helpers/shallowRenderHelper.js | CuteCodevx/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/svg-icons/communication/stay-current-landscape.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
node_modules/eslint-plugin-react/lib/util/version.js | scaulfield01/HallHorn | /**
* @fileoverview Utility functions for React version configuration
* @author Yannick Croissant
*/
'use strict';
function getFromContext(context) {
var confVer = '999.999.999';
// .eslintrc shared settings (http://eslint.org/docs/user-guide/configuring#adding-shared-settings)
if (context.settings.react && c... |
sites/default/files/js/js_LAQ89rWpNGzxQg_lqmcqLoVR47H75_fQvpP08fihfYM.js | iAssureIT/sparcnets | window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),i=document.getElementsByTagName("script")[0],n=null;t.type="text/css";t.id="matchmediajs-test";i.parentNode.insertBefore(t,i);n="getComputedStyle"in window&&window.getComputed... |
ajax/libs/forerunnerdb/1.3.133/fdb-core+views.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... |
client/forms/textBoxBaseLib.js | Cellarise/cell-cycle | "use strict";
import React from 'react';
import PropTypes from 'prop-types';
import R from 'ramda';
import classnames from "classnames";
import {formattedDate, formattedDateTime} from '../utils';
import {updateEventValue} from "../utils/domDriverUtils";
import * as inputBaseLib from './inputBaseLib.js';
import {getFiel... |
src/svg-icons/maps/rate-review.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRateReview = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1... |
app/components/Dashboard/BtnUpgrade.js | VonIobro/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import UpgradeDialog from '../../containers/UpgradeDialog';
import Button from '../Button';
const BtnUpgrade = ({
account,
messages,
modalAdd,
modalDismiss,
}) => (
<Button
size="link"
onCl... |
src/scripts/base/img.js | ButuzGOL/constructor | import React from 'react';
import Radium from 'radium';
@Radium
export default class Img extends React.Component {
static propTypes = {
src: React.PropTypes.string.isRequired,
alt: React.PropTypes.string,
width: React.PropTypes.number,
height: React.PropTypes.number
};
static defaultProps = {
... |
src/svg-icons/image/flare.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlare = (props) => (
<SvgIcon {...props}>
<path d="M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-... |
examples/universal/server/server.js | dkdewitt/redux | /* eslint-disable no-console, no-use-before-define */
import path from 'path';
import Express from 'express';
import qs from 'qs';
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import webpackConfig from '../webpack.... |
src/scripts/common/input/InputText.js | arikanmstf/userauth | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class InputText extends Component {
constructor (props) {
super(props);
this.state = {
placeholder: props.placeholder
};
this.handleChange = this.handleChange.bind(this);
}
handleChan... |
client/components/LandingPage.js | nimblecode/nimblecode | import React, { Component } from 'react';
import LandingPageInfoBox from './LandingPageInfoBox';
class LandingPage extends Component {
componentWillMount() {
this.content = {
boxOneTitle: 'Learn By Typing',
boxOneText: 'Become a faster and more efficient coder, whether you are an experienced or beg... |
packages/material-ui-icons/src/StopScreenShareTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M10.67 12.54C9.13 12.92 7.96 13.71 7 15c.31-1.48.94-2.93 2.08-4.05L4.13 6.02H4v10.01h10.14l-3.47-3.49z" opacity=".3" /><path d="M21.79 18l2 2H24v-2h-2.21zM1.11 2.98l1.55 1.56c-.41.37-.... |
ajax/libs/mobx-react/3.0.4/index.min.js | iwdmb/cdnjs | !function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&p.set(t,e),d.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(e,t){var n=e[t],o=u[t];e[t]=function(){n&&n.apply(this,argume... |
tests/autocomplete/jsx-function-component.js | gabelevi/flow | // @flow
var React = require('react');
type Props = $ReadOnly<{x: number, y: string}>;
function C(props: Props) {
}
<C // space
|
aiohttp_admin/static/react-admin/js/components/Fields/ShowField.js | aio-libs/aiohttp_admin | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
import { BooleanField } from 'admin-on-rest';
export class ShowField extends React.Component {
render () {
const { source, record = {} } = this.props;
let data = get(record, source);
if (data instanceof Object... |
client/app/components/UsuariosDatatable/UsuariosDatatable.js | krouw/T.SIA-electron-blueprint | import React, { Component } from 'react';
import ReactDataGrid from 'react-data-grid'
import axios from 'axios'
import moment from 'moment'
//function to retrieve a row for a given index
const rowGetter = function(i){
return _rows[i];
};
const columns = [
{
key: 'nombre',
name: 'Nombre',
sortable : true,
w... |
ajax/libs/rxjs/2.1.20/rx.modern.js | qrohlf/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
es6/Badge/Badge.js | yurizhang/ishow | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
ajax/libs/cyclejs-core/0.14.4/cycle.js | jackdoyle/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... |
src/svg-icons/device/battery-charging-50.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging50 = (props) => (
<SvgIcon {...props}>
<path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z"/><path fillOpacity=".3" d="M15.67 4H14V... |
src/routes/privacy/index.js | tonimoeckel/lap-counter-react | /**
* 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 Layout from '../../co... |
imports/ui/components/room-residents.js | gagpmr/app-met | import React from 'react';
import { Link } from 'react-router';
import { Loading } from './loading.js';
import * as Styles from '../../modules/styles.js';
const renderList = (array) => {
return <div>
{ array.map((resident) => (
<div key={ resident._id } className="row">
<div className... |
client/utils/checkAuth.js | andela-jmacharia/hati-DMS | 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('/home');
}
}
componentWillUpdate(nextProps) ... |
ajax/libs/vue/2.2.6/vue.runtime.js | tonytomov/cdnjs | /*!
* Vue.js v2.2.6
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function ()... |
components/Icons/IconMendeleev.js | nickroberts404/meadowlab | import React from 'react'
export default function IconMendeleev (props) {
if(props.color){
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 293"><title>mendeleev-icon</title><g fill="#64D6C2" fillRule="evenodd"><path fillOpacity=".3" d="M89 17v76L3.3 264.4c-8 15.8 0 28.6 17.7 28.6h208c17.7 0 25.6... |
ajax/libs/es6-shim/0.20.1/es6-shim.js | wallin/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.20.1
* see https://github.com/paulmillr/es6-shim/blob/master/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
packages/material-ui-icons/src/AirlineSeatReclineNormalOutlined.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="M7.59 5.41c-.78-.78-.78-2.05 0-2.83s2.05-.78 2.83 0 .78 2.05 0 2.83c-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5 5 5h6v-2H9c-1.66 0-3-1.3... |
ui-antd/src/components/layout/sider.js | pkaq/Tara | import React, { PropTypes } from 'react'
import { Icon, Switch } from 'antd'
import styles from './main.less'
import { config } from '../../utils'
import Menus from './menu'
function Sider ({ siderFold, darkTheme, location, changeTheme, navOpenKeys, changeOpenKeys }) {
const menusProps = {
siderFold,
darkThe... |
src/imageSlider/test.js | ChDeinert/react-katas | import React from 'react';
import { shallow, mount } from 'enzyme';
import ImageSlider from './';
describe('ImageSlider', () => {
it('renders without images', () => {
const wrapper = shallow(<ImageSlider images={[]} />);
expect(wrapper.find('SliderControls').length).toBe(1);
expect(wrapper.find('SliderC... |
dist/internal/components/navigation/OrdinoBreadcrumbs.js | Caleydo/ordino | import React from 'react';
import { EViewMode } from 'tdp_core';
import { ViewWrapper } from '../../ViewWrapper';
function OrdinoBreadcrumbItem(props) {
const historyClassNames = {
[EViewMode.CONTEXT]: 't-context',
[EViewMode.HIDDEN]: 't-hide',
[EViewMode.FOCUS]: 't-focus',
};
// TOD... |
src/App.js | brunnolou/styled-jsx-example | import React, { Component } from 'react';
import Styled from './Styled';
export default class App extends Component {
render() {
return (
<div>
<Styled />
<p>This paragraph will not!</p>
</div>
)
}
}
|
public/js/components/admin/graphs/customers.react.js | TRomesh/Coupley | /**
* Created by Isuru 1 on 20/02/2016.
*/
import React from 'react';
import { Link } from 'react-router';
const CustomerGraphs = React.createClass({
preload: function () {
document.getElementById('chartContainer').style.display = 'block';
},
render: function () {
return (
<div>
<di... |
static/js/reactions.js | PhilSk/zulip | var reactions = (function () {
var exports = {};
function send_reaction_ajax(message_id, emoji_name, operation) {
if (!emoji.emojis_by_name[emoji_name]) {
// Emoji doesn't exist
return;
}
var args = {
url: '/json/messages/' + message_id + '/emoji_reactions/' + encodeURIComponent(emo... |
frontend/src/metabase/home/components/NewUserOnboardingModal.spec.js | metabasecn/metabasecn | import React from 'react'
import { shallow } from 'enzyme'
import sinon from 'sinon'
import NewUserOnboardingModal from './NewUserOnboardingModal'
describe('new user onboarding modal', () => {
describe('advance steps', () => {
it('should advance through steps properly', () => {
const wrapper = ... |
site/src/components/DownloadStats.js | appbaseio/reactivesearch | import React, { Component } from 'react';
import { css, cx } from 'react-emotion';
import { string, object } from 'prop-types';
import Number from 'react-animated-number';
import { mediaKey } from '../utils';
import H2 from '../styles/H2';
import Heading from './Heading';
import theme from '../constants/theme/web';
c... |
Inspector/js/inspector.js | riccoyu/WebDriverAgent | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
6.webpack/message/index.js | zhufengnodejs/201608node | require('bootstrap/dist/css/bootstrap.css');
import MessageBox from './components/MessageBox.js';
import React from 'react';
import ReactDOM from 'react-dom';
//此DB模块是用来对消息进行查询 添加 和删除的
//数据存储手段是多样化的,有可能 是localStorage http接口
import http from './http.js';
//db.list;列出所有的消息
//db.add;添加一个消息,返回最新的消息数组
//db.remove;删除一个消息,返回最... |
examples/src/app.js | sarahbkim/react-select-custom | /* eslint react/prop-types: 0 */
import React from 'react';
import Select from 'react-select';
import CustomRenderField from './components/CustomRenderField';
import MultiSelectField from './components/MultiSelectField';
import RemoteSelectField from './components/RemoteSelectField';
import SelectedValuesField from '... |
src/pages/Tables/index.js | JSLancerTeam/crystal-dashboard | import React from 'react';
import { Route } from 'react-router-dom';
import RegularTables from './RegularTables';
import ExtendedTables from './ExtendedTables';
import ReactBootstrapTable from './ReactBootstrapTable';
const Tables = ({match}) => (
<div className="content">
<Route path={`${match.url}/regular-tabl... |
src/components/icons/ImportIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const ImportIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
<path d="M0 0h24v24H0z" fill="none" />
</svg>
);
expor... |
ajax/libs/angular.js/1.0.0rc11/angular-scenario.js | urish/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.
... |
wail-ui/containers/collectionView.js | N0taN3rd/wail | import React from 'react'
import ViewCollection from '../components/collections/viewCollection'
const CollectionView = ({ match, history, location }) => (
<div className='widthHeightHundoPercent' id='collViewDiv'>
<ViewCollection viewingCol={match.params.col} />
</div>
)
export default CollectionView
|
frontend/src/Auth/PasswordReset/index.js | swpease/MoodJournal | import React from 'react';
import ReactDOM from 'react-dom';
import PasswordReset from './PasswordReset.js';
import registerServiceWorker from '../../registerServiceWorker';
ReactDOM.render(<PasswordReset />, document.getElementById('root'));
registerServiceWorker();
|
src/client/components/JumbotronTitleWidget/JumbotronTitleWidget.js | vidaaudrey/trippian | import log from '../../log'
import React from 'react'
import {
Link
}
from 'react-router'
const JumbotronTitleWidget = ({
title = 'title', subTitle = 'subTitle'
}) => {
return (
<div className = "container" >
<div className="col-sm-12 col-md-8 col-md-offset-2 text-center">
<h1>{title}</h1>
... |
src/Stepper/StepConnector.spec.js | ngbrown/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {PlainStepConnector as StepConnector} from './StepConnector';
import getMuiTheme from '../styles/getMuiTheme';
describe('<StepConnector />', () => {
const muiTheme = getMuiTheme();
const themedShal... |
fields/types/color/ColorField.js | dryna/keystone-twoje-urodziny | import { SketchPicker } from 'react-color';
import { css, StyleSheet } from 'aphrodite/no-important';
import Field from '../Field';
import React from 'react';
import {
Button,
FormInput,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
import transparentSwatch from ... |
ajax/libs/material-ui/5.0.0-alpha.12/NativeSelect/NativeSelect.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... |
src/docs/examples/TextInputBEM/ExampleError.js | alexcondorachi/ps-react-alexc | 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"
label="First Name"
name="firstname"
onChang... |
client/__tests__/index.android.js | pranavjain97/react-native-chatApp | 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 />
);
});
|
frontend/test/app/components/ExperimentRowCard-test.js | mozilla/testpilot | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import moment from 'moment';
import ExperimentRowCard from '../../../src/app/components/ExperimentRowCard';
describe('app/components/ExperimentRowCard', () => {
let mockExperiment, mockClickEvent, ... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js | mailtoharshit/Reactor | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
cerberus-dashboard/src/actions/manageSafetyDepositBoxActions.js | Nike-Inc/cerberus-management-service | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
docs/app/Examples/elements/Button/Types/ButtonExampleLabeledBasic.js | clemensw/stardust | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleLabeledBasic = () => (
<div>
<Button
color='red'
content='Like'
icon='heart'
label={{ basic: true, color: 'red', pointing: 'left', content: '2,048' }}
/>
<Button
basic
color='blue'... |
src/assets/js/react/components/CoreFonts/CoreFontListSpacer.js | GravityPDF/gravity-forms-pdf-extended | import React from 'react'
/**
* @package Gravity PDF
* @copyright Copyright (c) 2021, Blue Liquid Designs
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 5.0
*/
/**
* Display a spacer block
*
* @since 5.0
*/
const CoreFontListSpacer = () => (
<div data-test... |
examples/huge-apps/routes/Course/components/Course.js | tmbtech/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
static loadProps (params, cb) {
console.log('C... |
ajax/libs/yui/3.12.0/datatable-core/datatable-core-debug.js | wallin/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
docs/src/app/components/pages/components/Card/ExampleWithAvatar.js | kittyjumbalaya/material-components-web | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleWithAvatar = () => (
<Card>
<CardHeader
title="URL Avatar"
subtitle="Subtitle"
avatar="images/jsa-128.jpg"... |
app/javascript/mastodon/features/compose/index.js | amazedkoumei/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
app/javascript/mastodon/containers/status_container.js | rutan/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Status from '../components/status';
import { makeGetStatus } from '../selectors';
import {
replyCompose,
mentionCompose,
directCompose,
} from '../actions/compose';
import {
reblog,
favourite,
unreblog,
unfavourite,
pin,
unpin,
}... |
good-old-react-authentication-flow/src/components/ImgPreviewHint/index.js | strapi/strapi-examples | /**
*
* ImgPreviewHint
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import './styles.scss';
function ImgPreviewHint(props) {
let pStyle;
switch (true) {
case props.showWhiteHint:
pStyle = { zIndex: 999, color: '#fff' };
break;
case props.displayHint:
pStyle ... |
docs/src/examples/modules/Sticky/Variations/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const StickyVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Active'
descri... |
fixtures/nesting/src/modern/App.js | acdlite/react | import React from 'react';
import {useState, Suspense} from 'react';
import {BrowserRouter, Switch, Route} from 'react-router-dom';
import HomePage from './HomePage';
import AboutPage from './AboutPage';
import ThemeContext from './shared/ThemeContext';
export default function App() {
const [theme, setTheme] = useS... |
modules/__tests__/pushState-test.js | cgrossde/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import resetHash from './resetHash'
import execSteps from './execSteps'
import Router from '../Router'
import Route from '../Route'
describe('pushState', function () {
beforeEach(resetHash)
let node
beforeEach(function () {
node = d... |
ajax/libs/clappr/0.0.61/clappr.js | vetruvet/cdnjs | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)... |
src/components/Footer/Footer.js | FAN-CUK/official | import React from 'react';
class Footer extends React.Component {
render() {
return(
<footer>
<p>Copyright F.A.N of Cathlic University CSIE. All rights reserved.</p>
</footer>
);
}
}
export default Footer
|
frontend/src/Artist/Index/Banners/ArtistIndexBannerInfo.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import getRelativeDate from 'Utilities/Date/getRelativeDate';
import formatBytes from 'Utilities/Number/formatBytes';
import styles from './ArtistIndexBannerInfo.css';
function ArtistIndexBannerInfo(props) {
const {
qualityProfile,
showQualityPro... |
react-demo/demo13/src/browser.js | zhangjunhd/react-examples | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
ReactDOM.render(<App items={window.APP_PROPS.items} />, document.getElementById('content'));
|
test/integrations/examples/Bar-react-happo.js | enduire/happo.io | import React from 'react';
export default [
{
component: 'Bar',
variants: {
one: () => <div>one</div>,
two: () => <div>two</div>,
},
},
];
|
src/Table.js | johanneshilden/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
render() {
let c... |
client/src/component/toolbar/ToolbarLeft.js | Hacktus/react-ui-builder | 'use strict';
var React = require('react/addons');
var ModalProgressTrigger = require('../modal/ModalProgressTrigger.js');
var ModalProgressTriggerAction = require('../../action/modal/ModalProgressTriggerActions.js');
var ModalProjectSettingsTriggerActions = require('../../action/modal/ModalProjectSettingsTriggerActio... |
ajax/libs/rxjs/2.2.26/rx.lite.js | advancedpartnerships/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
};
v... |
app/containers/LoginPage/index.js | balintsoos/app.rezsi.io | /**
*
* LoginPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { Card, CardActions, CardTitle, CardText } from 'm... |
src/containers/NotFound/index.js | edmcouncil/specsite | /* @flow */
import React from 'react';
import Helmet from 'react-helmet';
import styles from './styles.scss';
export default () => (
<div className={styles.NotFound}>
<Helmet title="Oops" />
<p>Oops, Page was not found!</p>
</div>
);
|
Sources/ewsnodejs-server/node_modules/@material-ui/styles/es/withTheme/withTheme.js | nihospr01/OpenSpeechPlatform-UCSD | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { chainPropTypes, getDisplayNa... |
client/modules/Survey/__tests__/components/PostListItem.spec.js | Bonchouuur/kimanjou | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import PostListItem from '../../components/PostListItem/PostListItem';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ... |
client/app/components/header.js | tyrsius/tuner-react | import React from 'react';
import Router from 'react-router';
var Link = Router.Link;
class Header extends React.Component{
constructor(props, context) {
super(props);
}
render() {
var items = this.props.routes.map(item => <li key={ item.route}><Link to={ item.route} activeClassName="active">{ item.tit... |
clients/render/components/Fields/FileInput.js | Desertsnowman/Caldera-Forms | import {CalderaFormsFieldPropType} from "../CalderaFormsFieldRender";
import {sizeFormat} from "../../util";
import React from 'react';
import PropTypes from 'prop-types';
import Dropzone from 'react-dropzone';
/**
* A FileInput
*
* @since 1.8.0
*
* @param props
* @return {*}
* @constructor
*/
export const Fil... |
public/components/tehtPage/tabsComponents/someuutiset/FieldUutiset.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { connect } from 'react-redux';
import Basic from '../reusables/templates/Basic';
import ShareButton from './ShareButton';
import { showAllNews, showPrioNews } from '../../../../reducer/news/actions';
const FieldUutiset = (props) =>
<div className="uutiset">
<p><b>Uutiset:</... |
ajax/libs/react-dom/15.3.2/react-dom.min.js | tholu/cdnjs | /**
* ReactDOM v15.3.2
*
* 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 directo... |
packages/metadata-react/src/SchemeSettings/SchemeSettingsSelect.js | oknosoft/metadata.js | /**
* ### Выбор варианта сохраненных настроек
* страница формы справочника SchemeSettings
*
* Created 19.12.2016
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import Toolbar from '@material-ui/core/Toolbar';
import IconButton from '@material-ui/core/IconButton';
import SaveIcon fr... |
website/src/react-native/showcase.js | nickhargreaves/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var React ... |
ajax/libs/mediaelement/2.15.0/jquery.js | callumacrae/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
api/clients/Admin/src/Components/Sensor.js | 4rzael/pheromon | 'use strict';
var React = require('react');
var Modifiable = React.createFactory(require('./Modifiable.js'));
var PlacePicker = React.createFactory(require('./PlacePicker.js'));
var DeleteButton = React.createFactory(require('./DeleteButton.js'));
var pokemonNames = require('pokemon-names').all();
/*
interface Sensor... |
ajax/libs/rxjs/2.3.16/rx.all.compat.js | ahocevar/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... |
packages/material-ui-icons/lib/esm/HourglassTopRounded.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M8 2c-1.1 0-2 .9-2 2l.01 3.18c0 .53.21 1.03.58 1.41L10 12l-3.41 3.43c-.37.37-.58.88-.58 1.41L6 20c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-3.16c0-.53-.21-1.04-.58-1.... |
files/videojs/4.11.2/video.dev.js | walkermatt/jsdelivr | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
ajax/libs/mediaelement/2.9.3/jquery.js | hanbyul-here/cdnjs | /*!
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.