path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
node_modules/react-icons/ti/thumbs-down.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiThumbsDown = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.3 8.3c-1.2 0-2.4 0.5-3.2 1.3-0.1-0.1-0.2-0.2-0.4-0.3-1.6-1.3-6.1-2.6-9.7-2.6-3.1 0-4.3 0.5-5.4 0.9-0.2 0.1-0.4 0.1-0.5 0.2-1.4 0.5-2.7 2-2.9 3.7l-1.2 9.9c-0.2 ... |
app/javascript/mastodon/features/following/index.js | masto-donte-com-br/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
modules/icons/droplets.js | hakonhk/vaerhona | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Icon extends Component {
static defaultProps = {
width: '20px',
height: '20px',
fill: '#000000',
};
static propTypes = {
width: PropTypes.string,
height: PropTypes.string,
fill: PropTypes.s... |
src/TrailsPost.js | melaniebmn/peaktrails | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import SectionHeading from './SectionHeading';
import imgIcons from './assets/img/icons--trail.png';
import trails from './trails.json';
const ImgContainer = styled.figure`
overflow: hidden;
display: flex;
alig... |
src/index.js | s89206x/WebpackSemple_map | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
ajax/libs/yui/3.7.3/datatable-body/datatable-body-coverage.js | zhengyongbo/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... |
src/components/Footer/Footer.js | zsu13579/whatsgoinontonight | /**
* 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 withStyles from 'isom... |
src/react.js | boneyao/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
blueocean-material-icons/src/js/components/svg-icons/av/play-arrow.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvPlayArrow = (props) => (
<SvgIcon {...props}>
<path d="M8 5v14l11-7z"/>
</SvgIcon>
);
AvPlayArrow.displayName = 'AvPlayArrow';
AvPlayArrow.muiName = 'SvgIcon';
export default AvPlayArrow;
|
src/containers/MiscContainer/MiscContainer.js | anvk/redux-portal-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Misc } from '../../components';
class MiscContainer extends Component {
render() {
return <Misc {...this.props} />;
}
}
function mapStateToProps(state) {
return {
emojis: state.shared.emojis,
gitignoreTemplates... |
app/components/layout/newProject/types/website.js | communicode-source/communicode | import React from 'react';
import PropTypes from 'prop-types';
function handleTypeSelect(e, selectProjectType) {
if(e.target.value === 'Select...') {
return selectProjectType('');
}
return selectProjectType(e.target.value);
}
const Website = ({ selectProjectType, type }) => (
<div>
<se... |
src/components/panel/Panel.js | tyleranton/dashboard | import React from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import { DragSource, DropTarget } from 'react-dnd';
import flow from 'lodash/flow';
import styled from 'styled-components';
const panelSrc = {
beginDrag(props) {
return {
id: props.id,
index: props... |
packages/material-ui-icons/lib/esm/NoPhotographyOutlined.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.9 6.07 7.48 4.66 9 3h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 .05-.01.1-.02.16L20 17.17V7h-4.05l-1.83-2H9.88L8.9 6.07zm11.59 17.24L18.17 21H4c-1.1 0-2-.9-2-2V7c0-... |
src/svg-icons/image/music-note.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMusicNote = (props) => (
<SvgIcon {...props}>
<path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/>
</SvgIcon>
);
ImageMusicNote = pure(ImageMusicNote);
ImageM... |
js/components/TaskRow/TaskRow.js | amostap/react-native-todo | import React from 'react';
import PropTypes from 'prop-types';
import { View, Text, TouchableOpacity } from 'react-native';
import MaterialIcon from 'react-native-vector-icons/MaterialIcons';
import OcticonsIcon from 'react-native-vector-icons/Octicons';
import styles from './styles';
import globalStyles from '../../gl... |
src/containers/Quiz/Question.js | AbhishekCode/quiz | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { StyleSheet, css } from 'aphrodite';
import RaisedButton from 'material-ui/RaisedButton';
import Divider from 'material-ui/Divider';
import {getWidth, getHeight} from '../../utils/config'
class Questi... |
modules/__tests__/History-test.js | batmanimal/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import History from '../History'
import Router from '../Router'
import Route from '../Route'
import createHistory from 'history/lib/createMemoryHistory'
describe('History Mixin', function () {
let node
beforeEach(function () {
node = ... |
files/maxmertkit/1.0.0/js/maxmertkit.min.js | cedricbousmanne/jsdelivr | (function(){var e,t,n,r,i,s,o;r=[];s=[];i={x:0,y:0,z:0};o="0.0.1";e=function(){function e(e){this.name=e}e.prototype.callbacks=r;e.prototype.registerCallback=function(e){return this.callbacks.push(e)};return e}();n=function(){function t(){}t.prototype.events=s;t.prototype.registerEvent=function(t){var n;n=new e(t);retu... |
packager/react-packager/src/SocketInterface/__tests__/SocketInterface-test.js | JulienThibeaut/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.
*/
'use strict... |
src/svg-icons/hardware/phone-iphone.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneIphone = (props) => (
<SvgIcon {...props}>
<path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1... |
app/jsx/external_apps/components/ExternalToolsTable.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/RootComponent.js | alelk/houses-building-website | /**
* Root Component
*
* Created by Alex Elkin on 04.11.2017.
*/
import App from './app/App';
import React from 'react';
import {Responsive} from 'semantic-ui-react'
const RootComponent = (props) => (
<div className="RootComponent">
<Responsive as={App} {...Responsive.onlyMobile} {...props} mobile/>
... |
testClient/components/CurrStats.js | DataHiveDJW/ServerHive | import React from 'react';
import Bar from './Bar';
const normalizeBars = (keys, currStats) => {
let divisor = 1;
for (let i = 0; i < keys.length; i += 1) {
// console.log('yo', currStats[keys[i]]);
if (currStats[keys[i]] > 75 && currStats[keys[i]] / 75 > divisor) divisor = Math.floor(currStats[keys[i]] / ... |
src/svg-icons/hardware/sim-card.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSimCard = (props) => (
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0... |
api/swagger/doc/swagger-ui-standalone-preset.js | flasomm/backoffice-react-swagger-api | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUIStandalonePreset=t():e.SwaggerUIStandalonePreset=t()}(this,function(){return function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={... |
proto/data-refining/front/workdir/components/includes/ZBootstrap.js | cttgroup/oceanhub | import React from 'react'
import PropTypes from 'prop-types'
import { FormControl, FormGroup, HelpBlock, Button,
ControlLabel, Checkbox,
} from 'react-bootstrap'
export class ZSelect extends React.Component {
constructor(props) {
super(props)
this.options = []
this.state = {
select: 'norv-small'... |
files/rxjs/2.3.8/rx.lite.compat.js | megawac/jsdelivr | // 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... |
src/routes/home/Home.js | devcharleneg/twitter-react-app | /**
* 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 Twit from 'twit';
imp... |
src/components/LittleLight.js | MrRandol/littleLight | /**********************
REDUX COMPONENT
**********************/
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as Actions from '../actions';
function mapStateToProps(state) { return {loading: state.loading.loading, state: state}; }
function mapDispatchToProps(dispatch) {... |
react/src/components/footer.js | jasonrhodes/how-to-react | import React from 'react'
export default (props) => {
return <footer><a href={props.url}>Here is a link</a></footer>
}
|
src/components/common/svg-icons/action/lock.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLock = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.... |
packages/react-reconciler/src/forks/ReactFiberHostConfig.fabric.js | chenglou/react | /**
* 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.
*
* @flow
*/
export * from 'react-native-renderer/src/ReactFabricHostConfig';
|
examples/src/components/DisabledUpsellOptions.js | oluckyman/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropType... |
src/utils/CustomPropTypes.js | pieter-lazzaro/react-bootstrap | import React from 'react';
const ANONYMOUS = '<<anonymous>>';
const CustomPropTypes = {
isRequiredForA11y(propType){
return function(props, propName, componentName){
if (props[propName] === null) {
return new Error(
'The prop `' + propName + '` is required to make ' + componentName + ' ... |
docs/app/Examples/collections/Table/States/TableExampleActive.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleActive = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Tabl... |
src/components/screens/highScoreScreen/index.js | jiriKuba/Calculatic | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { View, Text, StyleSheet } from 'react-native';
import * as actions from '../../../containers/highScoreScreen/actions';
import HighScoreHistory from '..... |
src/client.js | lordakshaya/pages | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
imp... |
ajax/libs/forerunnerdb/1.3.31/fdb-core+persist.min.js | menuka94/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/svg-icons/action/event-seat.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEventSeat = (props) => (
<SvgIcon {...props}>
<path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"/>
</SvgIcon>
);
ActionEventSeat = pure(ActionEventSe... |
ajax/libs/react-dom/16.4.0/cjs/react-dom-server.browser.production.min.js | sashberd/cdnjs | /** @license React v16.4.0
* react-dom-server.browser.production.min.js
*
* Copyright (c) 2013-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.
*/
'use strict';var p=require("fbjs/lib/invariant"),r=require("obje... |
SynapseClient/components/LoginPage.js | jmorg/synapse | import React, { Component } from 'react';
import {
Image,
Text,
View,
Navigator,
Dimensions,
AsyncStorage,
} from 'react-native';
export class LoginPage extends Component {
componentWillMount() {
var navigator = this.props.navigator;
var doIntroSequence = this.props.doIntroS... |
ajax/libs/shariff/1.3.3/shariff.min.js | SaravananRajaraman/cdnjs |
/*
* shariff - v1.3.2 - 25.11.2014
* https://github.com/heiseonline/shariff
* Copyright (c) 2014 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
* Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){... |
src/components/app.js | dertnius/React.Beginner | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>React simple starter</div>
);
}
}
|
ajax/libs/react-native-web/0.17.4/cjs/exports/NativeEventEmitter/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=void 0;var _NativeEventEmitter=_interopRequireDefault(require("../../vendor/react-native/NativeEventEmitter"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=_NativeEventEmitter.default;exports.default=_default,module.exports=expor... |
ajax/libs/forerunnerdb/1.3.597/fdb-core+persist.js | iwdmb/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... |
cerberus-dashboard/src/components/Banner/Banner.js | Nike-Inc/cerberus | /*
* 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 ... |
packages/my-joy-instances/src/components/create-instance/__tests__/affinity.spec.js | geek/joyent-portal | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import { Rule, Header } from '../affinity';
import Theme from '@mocks/theme';
it('renders <Rule/> without throwing', () => {
expect(
renderer
.create(
<Theme>
<Rule />
</Theme>... |
files/rxjs/2.4.0/rx.lite.compat.js | Third9/jsdelivr | // 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... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | chengjunjian/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
ajax/libs/rxjs/2.5.2/rx.js | chriszarate/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
};
... |
ui/node_modules/react-bootstrap/src/Col.js | bpatters/eservice | import React from 'react';
import classSet from 'classnames';
import constants from './constants';
const Col = React.createClass({
propTypes: {
xs: React.PropTypes.number,
sm: React.PropTypes.number,
md: React.PropTypes.number,
lg: React.PropTypes.number,
xsOffset: React.PropTypes.number,
smO... |
assets/js/vendor/jquery-1.9.1.min.js | ericclemmons/ericclemmons.github.io | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
client/src/index.js | FlevianK/cp2-document-management-system | import 'babel-polyfill';
import React from 'react';
import routes from './routes';
import configureStore from './store/configureStore';
import initialState from './reducers/initialState';
import '../../node_modules/materialize-css/dist/css/materialize.min.css';
import '../../node_modules/materialize-css/dist/js/materia... |
public/js/jquery.min.js | Pablo-Merino/ZendFrameworkLearningProject | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.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.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
packages/core/admin/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import { Grid, GridItem } from '@strapi/design-system/Grid';
import { Flex } from '@strapi/design-system/Flex';
import { Typography } from '@strapi/design-system/Typography';
import { Tooltip } from '@strapi/design-system/Tooltip';
import styled from 'style... |
src/svg-icons/action/perm-device-information.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDeviceInformation = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
... |
client/app/components/TodoApp.js | russll/facebook-starter-kit | /**
* This file provided by Facebook is 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,
* FITNES... |
express-rest-api/node_modules/eslint-plugin-react/lib/util/pragma.js | thoughtbit/node-web-starter | /**
* @fileoverview Utility functions for React pragma configuration
* @author Yannick Croissant
*/
'use strict';
var JSX_ANNOTATION_REGEX = /^\*\s*@jsx\s+([^\s]+)/;
// Does not check for reserved keywords or unicode characters
var JS_IDENTIFIER_REGEX = /^[_$a-zA-Z][_$a-zA-Z0-9]*$/;
function getCreateClassFromCon... |
dulor/assets/fullcalendar/jquery/jquery-1.8.1.min.js | lidah-khatulistiwa/sisfodataktp | /*! jQuery v@1.8.1 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/A11yMain-test.js | vga-/a11y-eval-tool | /**
* External dependencies
*/
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
/**
* Internal dependencies
*/
import A11yMain from '../src/containers/A11yMain.jsx';
import { ScanForm, SummaryTable, DetailedPanel } from '../src/components';
describe('<A11yMain />', () =>... |
js/views/BackgroundView.js | SamyZ/TravelgramApp | import React from 'react';
import { Image } from 'react-native';
import backgroundStyles from '../styles/backgroundStyles';
import backgroundImage from '../../assets/background.jpg';
const propTypes = {
children: React.PropTypes.any,
};
const BackgroundView = props => (
<Image
source={backgroundImage}
sty... |
js/components/forecastitem.js | stage88/react-weather | /**
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
} from 'react-native';
const renderForecastImage = require('./forecastimage');
type Props = {
index: number;
day: string;
icon: string;
low: string;
high: string;
separator: any;
};
... |
ajax/libs/ember-data.js/2.9.0-beta.4/ember-data.js | holtkamp/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2016 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.9.0-beta.4
*/
var loader, define, requireModule, require, requirejs... |
ajax/libs/antd-mobile/1.0.0-alpha.15/antd-mobile.min.js | sreym/cdnjs | /*!
* antd-mobile v1.0.0-alpha.15
*
* 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 expor... |
src/containers/CampView/About.js | JamesJin038801/CampID | import { Text, View, Platform, Image, ScrollView } from 'react-native';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import I18n from 'react-native-i18n';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import NavigationBar from 'react-native-navbar... |
docs/app/Examples/addons/Radio/Types/RadioExampleToggle.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Radio } from 'semantic-ui-react'
const RadioExampleToggle = () => (
<Radio toggle />
)
export default RadioExampleToggle
|
ajax/libs/intl-tel-input/6.4.0/js/intlTelInput.js | dada0423/cdnjs | /*
International Telephone Input v6.4.0
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($... |
src/index.js | thinq4yourself/simply-social-in | import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import React from 'react';
import { store, history} from './store';
import { Route, Switch } from 'react-router-dom';
import { ConnectedRouter } from 'react-router-redux';
import App from './components/App';
ReactDOM.render((
<Provider store... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | honpya/taketodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
node_modules/react-icons/md/flash-auto.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdFlashAuto = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28 12.7h4l-2-6.1z m3.6-9.3l5.4 15h-3.2l-1.1-3.4h-5.4l-1.1 3.4h-3.2l5.4-15h3.2z m-26.6 0h16.6l-6.6 15h6.6l-11.6 20v-15h-5v-20z"/></g>
</Icon>
)
export default ... |
fields/types/color/ColorField.js | wmertens/keystone | import ColorPicker from 'react-color';
import Field from '../Field';
import React from 'react';
import { FormInput, InputGroup } from 'elemental';
const PICKER_TYPES = ['chrome', 'compact', 'material', 'photoshop', 'sketch', 'slider', 'swatches'];
const TRANSPARENT_BG
= `<svg width="24" height="24" viewBox="0 0 24 24... |
examples/app.js | Corilla/corilla-components | import React from 'react';
import { render } from 'react-dom';
import { MarkdownPreview } from '../lib/MarkdownPreview';
import './style.scss';
const ExampleApp = () => (
<div>
<h1>Corilla React UI Components</h1>
<section>
<h2>MarkdownPreview</h2>
<article>
<h3>Example</h3>
<Ma... |
src/containers/LanguageSwitcher/withModal.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Modal from '../../components/feedback/modal';
import Button from '../../components/uielements/button';
import actions from '../../redux/languageSwitcher/actions';
import config from './config';
const { switchActivation, changeLangu... |
ajax/libs/react-bootstrap/0.30.0-rc.1/react-bootstrap.js | cdnjs/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/controls/videofield/videofield.js | thinktopography/reframe | import Buttons from '../../components/buttons'
import Button from '../../components/button'
import PropTypes from 'prop-types'
import Picker from './picker'
import React from 'react'
class VideoField extends React.Component{
static contextTypes = {
form: PropTypes.object
}
static propTypes = {
defaultV... |
client/store/actions.js | Satyam/RoxyMusic | export * from './albums/actions';
export * from './artists/actions';
export * from './songs/actions';
export * from './playLists/actions';
export * from './requests/actions';
export * from './tracks/actions';
export * from './nowPlaying/actions';
export * from './config/actions';
export * from './sync/actions';
export... |
tests/layouts/CoreLayout.spec.js | prashantpawar/blockapps-js-tutorial | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props = {}) {
... |
packages/reactor-kitchensink/src/examples/Charts/3DColumn/NegativeValues/NegativeValues.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
export default class NegativeValues extends Component {
store = Ext.create('Ext.data.Store', {
fields: ['quarter', 'co... |
web/src/components/Loading.js | slice/dogbot | import React from 'react'
import styled, { keyframes } from 'styled-components'
const loadingAnimation = keyframes`
0% {
transform: scale(1);
}
50% {
transform: scale(0.5);
}
100% {
transform: scale(1);
}
`
export const Pulser = styled.div`
display: inline-block;
width: 2rem;
height: 2r... |
step4-router/node_modules/react-router/modules/IndexRoute.js | jintoppy/react-training | import React from 'react'
import warning from './routerWarning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './PropTypes'
const { func } = React.PropTypes
/**
* An <IndexRoute> is used to specify its parent's <Route indexRo... |
node_modules/react-bootstrap/es/SafeAnchor.js | rblin081/drafting-client | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
UserSide/scripts/jquery.js | jassimran/WWCATL_PublicDefenders | /*!
* jQuery JavaScript Library v1.12.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-04-05T19:16Z
*/
(function( global, factory ) {
if ( typeof module =... |
ajax/libs/inferno/1.0.3/inferno-compat.js | Amomo/cdnjs | /*!
* inferno-compat v1.0.3
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('proptypes'), require('./inferno-component'), require('./inferno')) :
typeof define === 'function' && d... |
ajax/libs/oojs-ui/0.19.3/oojs-ui.js | sufuf3/cdnjs | /*!
* OOjs UI v0.19.3-pre (72b81a54a7)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2017 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2017-02-21T22:25:51Z
*/
( function ( OO ) {
'use strict';
/**
* Namespace for all classes, sta... |
webapp-src/src/MainScreen/BreadCrumbMenuCategory.js | babelouest/taliesin | import React, { Component } from 'react';
import { Breadcrumb } from 'react-bootstrap';
import StateStore from '../lib/StateStore';
class BreadCrumbMenuCategory extends Component {
constructor(props) {
super(props);
this.state = {
dataSource: props.dataSource,
category: props.category,
categoryValue: ... |
ajax/libs/antd/1.11.2/antd.min.js | dlueth/cdnjs | /*!
* antd v1.11.2
*
* 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?exports.antd... |
src/routes/notFound/NotFound.js | fvalencia/react-vimeo | /**
* 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-... |
src/routes/Poker/components/PlayerOptions/PlayerOptions.js | GKotsovos/WebPoker | import React, { PropTypes, Component } from 'react';
import classnames from 'classnames';
import Styles from 'styles/main.scss';
export class PlayerOptions extends Component{
render(){
const { player, fold, check, call, bid, leave } = this.props;
return (
<div className="form-group">
{
... |
node_modules/react-icons/md/surround-sound.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdSurroundSound = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 16.6c1.8 0 3.4 1.6 3.4 3.4s-1.6 3.4-3.4 3.4-3.4-1.6-3.4-3.4 1.6-3.4 3.4-3.4z m9.5 12.9c2.5-2.6 3.9-6.1 3.9-9.5s-1.4-6.9-3.9-9.5l-2.5 2.5c2 1.9 3 4.4 3 7s-0.... |
tests/site6/src/nav/nav.js | dominikwilkowski/cuttlebelle | import PropTypes from 'prop-types';
import React from 'react';
/**
* Navigation for use in other components
*
* @disable-docs
*/
const Navigation = ({
nav = {},
pages = {},
ID = '',
startID = '',
relativeURL = ( URL ) => URL,
noParents = false,
level = 0,
childnav1lvl = false,
homepageName = '',
wrappin... |
src/encoded/static/components/item-pages/ExperimentSetView.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import memoize from 'memoize-one';
import Collapse from 'react-bootstrap/esm/Collapse';
import { FlexibleDescriptionBox } from '@hms-dbmi-bgm/shared-portal-components/es/components/ui/FlexibleDescriptionBox';
impo... |
test/LabelSpec.js | laran/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Label from '../src/Label';
describe('Label', () => {
it('Should output a label with message', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Label>
<strong>Message</strong>
</Label>
);
... |
examples/immutable/src/components/Hello.js | supasate/connected-react-router | import React from 'react'
import HelloChild from './HelloChild'
const Hello = () => (
<div>
<div>Hello</div>
<HelloChild />
</div>
)
export default Hello
|
editor/components/IconButton.js | conundrumer/chroma-tone | /* eslint no-underscore-dangle: 0*/
'use strict';
var React = require('react');
var MuiIconButton = require('material-ui').IconButton;
var IconButton = React.createClass({
contextTypes: {
muiTheme: React.PropTypes.object
},
shouldComponentUpdate(nextProps, nextState) {
let {
style,
toolti... |
client/scripts/controllers/season1Ctrl.js | IHarryIJumper/trials-fusion-stats-cptsparkles | import React from 'react';
import { render } from 'react-dom';
import { SeasonOnePageComponent } from '../components/seasonsPages/season1Component.jsx';
export const renderSeason1Page = render(<SeasonOnePageComponent />, document.getElementById('season1-page-target')); |
ajax/libs/react/0.14.8/react-dom.min.js | nolsherry/cdnjs | /**
* ReactDOM v0.14.8
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.... |
app/src/client/components/app/Home.js | dvdschwrtz/DockDev | import React from 'react';
var ReactTooltip = require("react-tooltip");
export default () => {
return (
<div id="content">
</div>
);
};
|
src/routes.js | codegaze/jekyll-admin | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { ADMIN_PREFIX } from './constants';
import App from './containers/App';
import Configuration from './containers/views/Configuration';
import Pages from './containers/views/Pages';
import PageEdit from './containers/views/PageEdit';
im... |
example/misc.js | glenjamin/devboard | import React from 'react';
var BASE_URL = 'https://github.com/glenjamin/devboard/tree/master/example';
export function sourceLink(definecard, dir, file) {
definecard(
<a
href={BASE_URL + '/' + dir + '/' + file}
style={{ position: 'absolute', top: 5, right: 5 }}
>
Page Source
</a>
);
... |
survey/static/lib/reactjs/react-with-addons.js | KevinSeghetti/survey | /**
* React (with addons) v15.3.1
*/
(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!=="undef... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.