path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/vue/3.2.5/vue.global.prod.js | cdnjs/cdnjs | var Vue=function(e){"use strict";function t(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const n=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Arr... |
src/primitives/other/spinner/index.js | mpigsley/sectors-without-number | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './style.scss';
export default function Spinner({ className, isDark, size }) {
return (
<div
style={{ width: size, height: size }}
className={classNames('Spinner', className, {
'Spinner... |
examples/basic-mapUrlToProps/src/App.js | pbeshai/react-url-query | import React, { Component } from 'react';
import MainPage from './MainPage';
import history from './history';
class App extends Component {
componentDidMount() {
// force an update if the URL changes
history.listen(() => this.forceUpdate());
}
render() {
return (
<div>
<h3>react-url-qu... |
ajax/libs/yui/3.10.3/event-focus/event-focus.js | boneskull/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
life3/static/react/src/LifeCardListItem.js | BoraDowon/Life3.0 | import React from 'react';
import 'whatwg-fetch'
class LifeCardListItem extends React.Component {
constructor(props) {
super(props);
}
render() {
let typeIcon = null;
if (this.props.cardType == 'W') {
typeIcon = <span className="label label-success">W</span>;
}... |
src/components/submit.js | frig-js/frig | import React from 'react'
const Submit = (props, context) => {
const ThemedSubmit = context.frigForm.theme.Submit
return <ThemedSubmit {...props} />
}
Submit.contextTypes = {
frigForm: React.PropTypes.shape({
theme: React.PropTypes.object.isRequired,
}).isRequired,
}
Submit.displayName = 'Frig.Submit'
ex... |
src/components/Login/index.js | moxun33/react-mobx-antd-boilerplate | import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import { Form, message, Icon, Input, Button } from 'antd';
import { withRouter } from 'react-router-dom';
const FormItem = Form.Item;
function hasErrors(fieldsError) {
return Object.keys(fieldsError).some(field => fieldsError[fi... |
src/svg-icons/image/crop-free.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropFree = (props) => (
<SvgIcon {...props}>
<path d="M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"/>
</SvgIco... |
tests/react_imports/es-default.js | JonathanUsername/flow | import React from 'react';
(React.Component: Object); // OK
(React.Component: number); // Error
('Hello, world!': React.Node); // Error: Not in default export.
({}: React.Node); // Error: Not in default export.
(null: React.Missing); // Error: Not in default export.
|
src/components/Tos/DeleteView/__tests__/deleteView.spec.js | City-of-Helsinki/helerm-ui | import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import Enzyme, { mount } from 'enzyme';
import React from 'react';
import { DeleteView } from '../DeleteView';
Enzyme.configure({ adapter: new Adapter() });
describe('(Component) DeleteView', () => {
let _wrapper;
beforeEach(() => {
_wrapper = mount(
... |
ajax/libs/forerunnerdb/1.3.806/fdb-all.js | holtkamp/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... |
packages/material-ui-icons/src/EventNote.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let EventNote = props =>
<SvgIcon {...props}>
<path d="M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v2h7v-2z" /... |
client/src/play/ControlPanel.js | xpsurgery/shopping-cart | import React from 'react'
import { connect } from 'react-redux'
import { play, pause, resetGame } from './actionCreators'
const ControlPanel = ({dispatch}) =>
<div className='control-panel'>
<button className='btn btn-danger' onClick={() => dispatch(play())}>
Play
</button>
<button className='btn b... |
client/app/containers/ComposeBox/index.js | Kielan/onDemanager | import React from 'react';
import ReactDOM from 'react-dom';
import autobind from 'react-autobind';
import { connect } from 'react-redux';
import { ButtonInput } from 'react-bootstrap';
import { createSelector } from 'reselect';
import composeBoxContentSelector from 'composeBoxContentSelector';
import usernameSelecto... |
packages/material-ui-icons/src/StrikethroughS.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 2.21.34.66.22 1.23.54 1.69.94.47.4.83.88 1.08 1.43.25... |
ajax/libs/yui/3.14.0/event-custom-base/event-custom-base-coverage.js | abbychau/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-custom-base/event-custom-base.js']) {
__coverage__['build/event-custom-base/event-custom-base.js'] = {"path":"build/event-custom-base/event-custom-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,... |
packages/wix-style-react/src/GoogleAddressInput/GoogleAddressInput.js | wix/wix-style-react | /* eslint-disable no-console */
import React from 'react';
import PropTypes from 'prop-types';
import castArray from 'lodash/castArray';
import Search from 'wix-ui-icons-common/Search';
import Input from '../Input';
import InputWithOptions from '../InputWithOptions';
import {
google2address,
includes,
trySetStre... |
HomeRange/app/common/Global.js | Onlyjson/yanShu_Project | /**
* @author: zhangyh-k@glondon.com
* @description:
* @Date: 2017/9/30 下午2:08
*/
import React, { Component } from 'react';
import { Dimensions, StyleSheet, PixelRatio, Platform, Alert } from 'react-native';
let {height, width} = Dimensions.get('window');
// 系统是iOS
global.iOS = (Platform.OS === 'ios');
// 系统是安卓
g... |
src/pages/conference/topic/topicDetail/addTopic.js | sunway-official/acm-admin | import React, { Component } from 'react';
import { Subheader, IconButton } from 'material-ui';
import { Link } from 'react-router-dom';
import { ActionHome, HardwareKeyboardArrowRight } from 'material-ui/svg-icons';
import { graphql, compose } from 'react-apollo';
import { queries, mutations } from '../helpers';
import... |
examples/sidebar/app.js | nhunzaker/react-router | import React from 'react'
import { render } from 'react-dom'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
import data from './data'
require('./app.css')
const history = useBasename(createHistory)({
basename: '/sidebar'
})
class Category extends React.Compo... |
vendor/react-notifications/src/Notifications.js | Axivity/openmovement-axsys-client | import React from 'react';
import Notification from './Notification';
import ReactCSSTransitionGroup from 'react/lib/ReactCSSTransitionGroup';
import ClassNames from 'classnames';
class Notifications extends React.Component {
static propTypes = {
notifications: React.PropTypes.array.isRequired,
onRequestHide... |
gui/47F181BCB730C0DDF388060436817142.cache.js | JamesJeffryes/MINE-app | gui.onScriptDownloaded(["var $wnd = $wnd || window.parent;var __gwtModuleFunction = $wnd.gui;var $sendStats = __gwtModuleFunction.__sendStats;$sendStats('moduleStartup', 'moduleEvalStart');var $gwt_version = \"2.6.0\";var $strongName = '47F181BCB730C0DDF388060436817142';var $doc = $wnd.document;function __gwtStartLoadi... |
RNTester/js/examples/Image/ImageExample.js | exponentjs/react-native | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
'use strict';
const React = require('react');
const {
ActivityIndicator,
Image,
StyleS... |
lib/components/core/Svg.js | mrkre/react-d3-viz | import React from 'react';
import PropTypes from 'prop-types';
const Svg = ({
width,
height,
viewBox,
children,
className,
}) => (
<svg width={width} height={height} viewBox={viewBox} className={className}>{children}</svg>
);
Svg.propTypes = {
width: PropTypes.number,
height: PropTypes.number,
viewB... |
gNewsDemo/index.ios.js | yueenen/React-Native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class gNewsDemo extends Component {
render() {
return (
<View style={styles.container... |
StarterRNP/src/screens/MyCustomer.js | khanhqd/ProjectOT1 | import React, { Component } from 'react';
import {
Text,
View,
TouchableOpacity,
StyleSheet,
Alert,
Platform,
ListView,
Dimensions,
Image,
TextInput
} from 'react-native';
import { firebaseApp } from '../app.js';
import { Card, CardSection, Input, Button2, InfoBox, TitleBox } from './common';
var {... |
jslibs/yui/2.8.1/yuiloader/yuiloader.js | csfeng/WebDreamer | /*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.8.1
*/
/**
* The YAHOO object is the single global object used by YUI Library. It
* contains utility function for setting up namespaces, inheritance, and
* logging. YA... |
static/src/components/islands/IslandPond.js | hammerandchisel/airhornbot | // @flow
// jscs:disable maximumLineLength
import React from 'react';
type Props = {
paused: boolean
};
export default ({paused}: Props): React.Element => (
<svg className={`island pond ${paused ? 'paused' : ''}`} xmlns="http://www.w3.org/2000/svg" width="259" height="251">
<g fill="none" fill-rule="evenodd"... |
src/client/assets/js/nodes/datastores/temperature/node.js | me-box/databox-sdk | import React from 'react';
//import composeNode from 'utils/composeNode';
import Textfield from 'components/form/Textfield';
import Textarea from 'components/form/Textarea';
import Select from 'components/form/Select';
import Cell from 'components/Cell';
import Cells from 'components/Cells';
//import '../../../../style... |
ajax/libs/rxjs/2.3.16/rx.lite.js | baig/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... |
dist/1.10.2/jquery-css-deprecated-dimensions-offset-wrap.min.js | eric-seekas/jquery-builder | /*! jQuery v1.10.2 -wrap,-css,-effects,-offset,-dimensions,-deprecated | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,t){var n,r,i=typeof t,a=e.location,o=e.document,s=o.documentElement,u=e.jQuery,l=e.$,c={},p=[],d="1.10.2 -wrap,-css,-effects,-offset,-di... |
spec/components/Controls-spec.js | reergymerej/todo | 'use babel';
import React from 'react';
import {shallow} from 'enzyme';
import chai from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import Controls from '../../lib/components/Controls';
chai.should();
chai.use(sinonChai);
function factory(props) {
function noop() {}
return (
<Cont... |
website/src/index.js | tmt514/se101f17 | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
server/sonar-web/src/main/js/apps/projects/filters/__tests__/SearchableFilterFooter-test.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
docs/src/app/components/pages/components/List/ExampleNested.js | andrejunges/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import ContentInbox from 'material-ui/svg-icons/content/inbox';
import ContentDrafts from 'material-ui/svg-icons/content/draft... |
ajax/libs/webshim/1.14.3-RC2/dev/shims/moxie/js/moxie.js | urish/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
ajax/libs/material-ui/5.0.0-alpha.20/modern/internal/svg-icons/Add.min.js | cdnjs/cdnjs | import*as React from"react";import{createSvgIcon}from"../../utils";export default createSvgIcon(React.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"); |
core/modules/contextual/js/contextual.js | spiritfelix/drupal8 | /**
* @file
* Attaches behaviors for the Contextual module.
*/
(function ($, Drupal, drupalSettings, _, Backbone, JSON, storage) {
'use strict';
var options = $.extend(drupalSettings.contextual,
// Merge strings on top of drupalSettings so that they are not mutable.
{
strings: {
open: Dr... |
src/Parser/Core/Modules/CooldownThroughputTracker.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Tab from 'Main/Tab';
import CooldownOverview from 'Main/CooldownOverview';
import CASTS_THAT_ARENT_CASTS from 'Parser/Core/CASTS_THAT_ARENT_CASTS';
const debug = false;
export const BUILT_IN_SUMMARY_T... |
public/components/Footer.js | ranebo/project-ipsum | import React from 'react';
import {Grid, Row, Col} from 'react-bootstrap';
var handleSubmit = (e) => {
e.preventDefault();
// do login with github here
window.location.href = '/auth/github';
}
class Footer extends React.Component {
render() {
return (
<div className='footer'>
<div className='foo... |
ajax/libs/antd-mobile/0.7.8/antd-mobile.min.js | froala/cdnjs | /*!
* antd-mobile v0.7.8
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?export... |
src/forms/rentFields.js | codeforboston/cliff-effects | import React, { Component } from 'react';
import { MonthlyCashFlowRow } from './cashflow';
import {
isNonNegNumber,
hasOnlyNonNegNumberChars,
} from '../utils/validators';
const BLANK_FUNCTION = function () {};
class RentShareField extends Component {
state = { valid: true, message: null };
storeValidator... |
examples/custom-server-polka/pages/b.js | BlancheXu/test | import React from 'react'
export default () => <div>b</div>
|
packages/material-ui-icons/src/MotorcycleTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M9.7 12.31l.25.69h.77l2-2H8.98c.3.39.54.83.72 1.31z" opacity=".3" /><path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.5... |
src/routes/home/index.js | ADourgarian/Syscoin-Payroll | /**
* 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 Home from './Home';
i... |
public/assets/application-cfbf94ff187125a62040dcc4e28c9043.js | minoruito/rbase | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if... |
test/DetailView.ava.js | ohtake/sanrio-wardrobe | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import createShallow from '@material-ui/core/test-utils/createShallow';
import clone from 'lodash/clone';
import range from 'lodash/range';
import AppBar from '@material-ui/core/AppBar';
import DetailView from '../src/DetailView';
import P... |
packages/story-editor/src/app/rightClickMenu/menus/stickerMenu.js | GoogleForCreators/web-stories-wp | /*
* Copyright 2022 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
src/mui/form/FormInput.js | azureReact/AzureReact | import React from 'react';
import FormField from './FormField';
const FormInput = ({ input, ...rest }) =>
input ? (
<div
className={`aor-input aor-input-${input.props.source}`}
style={input.props.style}
>
<FormField input={input} {...rest} />
</div>
)... |
app/static/src/diagnostic/EquipmentTestForm.js | vsilent/Vision | import React from 'react';
import DateTimeField from 'react-bootstrap-datetimepicker/lib/DateTimeField';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Checkbox from 'react-bootstrap/li... |
example/babel.config.web.js | kmagiera/react-native-gesture-handler | module.exports = {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
extensions: ['.js', '.ts', '.tsx'],
alias: {
'react-native-gesture-handler': '../src/index',
'react': './node_modules/react',
},
},
],
],
};
|
src/components/home/action-bar.js | supercandy/block-breaker | // Action bar
import React, { Component } from 'react';
import { Animated, Easing, View } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import { ICON_SIZE, ICON_COLOUR } from '../../util/constants';
// Css
import styles from '../../styles/main';
// Vars
const dailyChallenge = (<Icon n... |
components/dataset/header/infos.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import {translate} from 'react-i18next'
import licenses from '../../../lib/licenses'
const Infos = ({metadata, t}) => {
const dataType = t(`common:enums.dataTypes.${metadata.type}`, {
defaultValue: metadata.type
})
let... |
ajax/libs/material-ui/4.9.4/es/useMediaQuery/useMediaQuery.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import { getThemeProps, useTheme } from '@material-ui/styles';
export default function useMediaQuery(queryInput, options = {}) {
const theme = useTheme();
const props = getThemeProps({
theme,
name: 'MuiUseMediaQuery',
... |
ajax/libs/forerunnerdb/1.3.705/fdb-all.js | joeyparrish/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/Month.js | Incubity/react-big-calendar | import React from 'react';
import { findDOMNode } from 'react-dom';
import cn from 'classnames';
import dates from './utils/dates';
import localizer from './localizer'
import chunk from 'lodash/chunk';
import { navigate, views } from './utils/constants';
import { notify } from './utils/helpers';
import getPosition fr... |
src/components/Header.js | neetuktoor/tossUP | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import * as Actions from '../actions';
class Header extends React.Component {
handleSignout(){
this.props.signOutUser();
}
renderAuthLinks(){
//the link is because we're not routing anywehre we jsut need... |
Examples/UIExplorer/UIExplorerList.ios.js | honger05/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/movie.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvMovie = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/>
</SvgIcon>
);
AvMovie.displayName = 'AvMovie';
AvMovie.muiName = 'SvgIcon'... |
src/components/MessageParts/MessageUserAvatar.js | orbitdb/orbit-web | 'use strict'
import React from 'react'
import PropTypes from 'prop-types'
function MessageUserAvatar ({ message }) {
const { name: username } = message.meta.from
return <div className='Message__Avatar'>{username ? username.charAt(0).toUpperCase() : ''}</div>
}
MessageUserAvatar.propTypes = {
message: PropTypes... |
bin/html/jquery.min.js | uadnan/CodeSkulptor-Server | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim... |
website/core/SnackPlayer.js | forcedotcom/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
ajax/libs/yui/3.14.0/datatable-core/datatable-core-debug.js | contentfree/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/Menu/ExampleSimple.js | manchesergit/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
const style = {
display: 'inline-block',
margin: '16px 32px 16px 0',
};
const MenuExampleSimple = () => (
<div>
<Paper style={style}>
<Menu>
<Menu... |
tests/layouts/CoreLayout.spec.js | phizaz/happy-meeting | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import CoreLayout from 'layouts/CoreLayout/CoreLayout';
function shallowRender (component) {
const renderer = TestUtils.createRenderer();
renderer.render(component);
return renderer.getRenderOutput();
}
function shallowRenderWithProps ... |
demo/public/component/FloatActionButton.js | ev-ui/ev-ui | import React from 'react'
import {render} from 'react-dom'
import styled from 'styled-components'
const FloatActionBtn=styled.div`
position: absolute;
right:150px;
bottom:150px;
.btn:hover{
box-shadow:0 0 30px rgba(30,30,30,.5);
}
.btn{
position: absolute;
left:0;
... |
ajax/libs/yui/3.1.1/event-custom/event-custom-base.js | hanbyul-here/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... |
components/analytics/iot-analytics/org.wso2.carbon.device.mgt.cdmf.analytics/src/main/resources/carbonapps/GadgetUnsecuredDevices_1.0.0/unsecured-devices/js/vega.js | warunalakshitha/carbon-device-mgt-plugins | (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.vg = f()}})(fu... |
src/server.js | bingomanatee/ReactUserBoilerplate | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const bodyParser = requ... |
Libraries/Text/Text.web.js | brainpoint/febs-react-web | /**
* Copyright (c) 2015-present, Alibaba Group Holding Limited.
* All rights reserved.
*
* Copyright (c) 2015, Facebook, Inc. All rights reserved.
*
* @providesModule ReactText
*/
'use strict';
import React from 'react';
import { Mixin as TouchableMixin } from 'ReactTouchable';
import { Mixin as LayoutMixin }... |
frontend/src/components/Filters/index.js | XiaocongDong/mongodb-backup-manager | import React, { Component } from 'react';
import Select from 'react-select';
import { STATUS } from 'constants/backup';
const statusOpts = STATUS.map(status => {
return {
value: status,
label: status
}
});
export default class Filters extends Component {
render() {
const props = t... |
admin/client/App/shared/Popout/PopoutList.js | benkroeger/keystone | /**
* Render a popout list. Can also use PopoutListItem and PopoutListHeading
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
const PopoutList = React.createClass({
displayName: 'PopoutList',
propTypes: {
children: React.PropTypes.node.isRequired,
classNam... |
packages/material-ui-icons/src/PlayCircleFilledWhiteSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z" /></React.Fragment>
, 'PlayCircleFilledWhiteSharp');
|
node_modules/react-router-dom/node_modules/react-router/es/StaticRouter.js | 937aaron/reduxblog | 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]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
app/components/GameButton/Button.js | cdiezmoran/AlphaStage-2.0 | import React from 'react';
import { bool, func, string } from 'prop-types';
const Button = ({ text, iconClass, btnClass, handleClick, isDisabled }) => (
<button className={btnClass} onClick={handleClick} disabled={isDisabled}>
<i className={iconClass} /> {text}
</button>
);
Button.propTypes = {
text: string... |
ajax/libs/rxjs/2.2.27/rx.lite.compat.js | svvitale/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/LanguageProvider/index.js | andyfrith/weather.goodapplemedia.com | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
app/containers/Contacts/ContactCard/messages.js | Get-In-Touch/get-in-touch | import { defineMessages } from 'react-intl';
export default defineMessages({
header: {
id: 'app.containers.ContactCard.header',
defaultMessage: 'This is ContactCard container !',
},
});
|
ajax/libs/react-native-web/0.11.3/vendor/react-native/SwipeableFlatList/index.js | cdnjs/cdnjs | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule SwipeableFlatList
*
* @format
*/
'use strict';
function _objectSpread(target) { for (var i = 1; i < arguments.leng... |
tests/components/Counter/Counter.spec.js | hajiwon1023/react-webpack-redux | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'components/Counter/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter: 5,
...bindActionCre... |
test/integration/Stepper/VerticalLinearStepper.spec.js | lawrence-yu/material-ui | /* eslint-env mocha */
import React from 'react';
import {mount} from 'enzyme';
import {assert} from 'chai';
import getMuiTheme from 'src/styles/getMuiTheme';
import VerticalLinearStepper from './VerticalLinearStepper';
describe('<VerticalLinearStepper />', () => {
const muiTheme = getMuiTheme();
const mountWithCo... |
src/components/Page/Pagination/Pagination.stories.js | auth0-extensions/auth0-extension-ui | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import Pagination from './';
function renderField(field) {
return (
<Pagination
handlePageChange={action('handlePageChange')}
totalItems={field.totalItems}
perPage={field.perPage}
/>
);
}
storiesOf('Pagina... |
src/BackEndBundle/Resources/public/js/plugins/nggrid/lib/jquery-1.9.1.js | ernestgm/hoteles | /*!
* 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... |
ajax/libs/backbone-react-component/0.9.0/backbone-react-component.js | samthor/cdnjs | // Backbone React Component
// ========================
//
// Backbone.React.Component v0.9.0
//
// (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com>
// Backbone.React.Component can be freely distributed under the MIT license.
//
//
// `Backbone.React.Component` is a mixin that glues [Backbone](http:/... |
src/internal/ClearFix.js | igorbt/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import BeforeAfterWrapper from './BeforeAfterWrapper';
const styles = {
before: {
content: "' '",
display: 'table',
},
after: {
content: "' '",
clear: 'both',
display: 'table',
},
};
const ClearFix = ({style, children, ...other... |
docs/src/app/components/pages/components/Paper/Page.js | spiermar/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 paperReadmeText from './README';
import PaperExampleSimple from './Exampl... |
node_modules/react-router/es/MemoryRouter.js | FoxMessenger/nyt-react | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/components/App/WeirdLocaleYearInfo.js | TTCErembodegem/TTC-React-Front | import React from 'react';
export const WeirdLocaleYearInfo = ({params}) => ( // eslint-disable-line
<div>
<h2>
WIJZIGING ZAAL
</h2>
<b>Opgelet: TTC Erembodegem speelt niet meer op Groeneweg 28</b>
<br />
<h3>Sportzaal Technigo</h3>
<b>{params.location}</b>
<br />
{params.trai... |
src/svg-icons/editor/attach-money.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorAttachMoney = (props) => (
<SvgIcon {...props}>
<path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.... |
ajax/libs/asynquence-contrib/0.3.0-c/contrib.js | him2him2/cdnjs | /*! asynquence-contrib
v0.3.0-c (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*/
!function(n,e){"undefined"!=typeof module&&module.exports?(module.exports=function t(n){try{n=require(n)}catch(r){return t}return e(n)},module.exports=module.exports(require("path").join("..",n))):"function"==typeof d... |
src/svg-icons/alert/warning.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertWarning = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
AlertWarning = pure(AlertWarning);
AlertWarning.displayName = 'AlertWarning';
Aler... |
ajax/libs/video.js/5.0.0-rc.77/alt/video.novtt.js | maruilian11/cdnjs | /**
* @license
* Video.js 5.0.0-rc.77 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports... |
frontend/src/components/MyConsumptionReport.js | loicbaron/nutrition | import React from 'react';
import { Button } from '@mui/material';
import { makeStyles } from '@mui/styles';
import GetAppIcon from '@mui/icons-material/GetApp';
import Consumption from '../models/Consumption';
import DataTable from './Navigation/DataTable';
import Composition from '../models/Composition';
import { ge... |
ajax/libs/yui/3.7.3/datatable-core/datatable-core.js | Teino1978-Corp/Teino1978-Corp-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... |
test/JumbotronSpec.js | HorizonXP/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Jumbotron from '../src/Jumbotron';
describe('Jumbotron', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
<strong>Content</strong>... |
src/Text/Text.spec.js | und3fined/material-ui | // @flow weak
/* eslint-env mocha */
import React from 'react';
import { assert } from 'chai';
import { createShallowWithContext } from 'test/utils';
import Text, { styleSheet } from './Text';
describe('<Text />', () => {
let shallow;
let classes;
before(() => {
shallow = createShallowWithContext();
cl... |
examples/files/core_components/sectionlistHomogenous.js | dabbott/react-native-express | import React from 'react'
import { SectionList, StyleSheet, Text } from 'react-native'
const sections = [
{
id: '0',
title: 'Basic Components',
data: [
{ id: '0', text: 'View' },
{ id: '1', text: 'Text' },
{ id: '2', text: 'Image' },
],
},
{
id: '1',
title: 'List Compone... |
src/main/webapp/WEB-INF/static/template/blog/js/jquery.min.js | shenyoujun/XPBlog | /*! 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... |
lib/SevenHour.js | danalvarez5280/Weatherly | import React from 'react';
import Card from './Card';
export default function SevenHour (props) {
const hourlyInfo = props.sevenHourInfo.slice(0, 6)
return (
<div className="hourly-forecast">
The 7 Hour Forecast
<div className="seven-hour">
{
hourlyInfo.map(obj => {
return ... |
src/icons/ImageIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class ImageIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M42 38V10c0-2.21-1.79-4-4-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4zM17 27l5 6.01L29... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.